(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["vendors~home"],{ /***/ "./node_modules/@amap/amap-jsapi-loader/dist/index.js": /*!************************************************************!*\ !*** ./node_modules/@amap/amap-jsapi-loader/dist/index.js ***! \************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; (function(m,p){ true?module.exports=p():undefined})(this,function(){function m(a){var b=[];a.AMapUI&&b.push(p(a.AMapUI));a.Loca&&b.push(r(a.Loca));return Promise.all(b)}function p(a){return new Promise(function(h,c){var f=[];if(a.plugins)for(var e=0;et.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function u(t,e,n){return(e=y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function f(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function v(t,e){return n(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(t,e)||_(t,e)||g()}function d(t){return function(t){if(Array.isArray(t))return e(t)}(t)||f(t)||_(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function _(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}var x=6371008.8,E={centimeters:100*x,centimetres:100*x,degrees:360/(2*Math.PI),feet:3.28084*x,inches:39.37*x,kilometers:x/1e3,kilometres:x/1e3,meters:x,metres:x,miles:x/1609.344,millimeters:1e3*x,millimetres:1e3*x,nauticalmiles:x/1852,radians:1,yards:1.0936*x},k={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:2.9155334959812285e-7,millimeters:1e6,millimetres:1e6,yards:1.195990046};function b(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=e||{},r.geometry=t,r}function w(t,e){switch(t){case"Point":return I(e).geometry;case"LineString":return L(e).geometry;case"Polygon":return S(e).geometry;case"MultiPoint":return O(e).geometry;case"MultiLineString":return T(e).geometry;case"MultiPolygon":return R(e).geometry;default:throw new Error(t+" is invalid")}}function I(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!U(t[0])||!U(t[1]))throw new Error("coordinates must contain numbers");return b({type:"Point",coordinates:t},e,n)}function N(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return C(t.map((function(t){return I(t,e)})),n)}function S(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(o[o.length-1].length!==o[0].length)throw new Error("First and last Position are not equivalent.");for(var s=0;s2&&void 0!==arguments[2]?arguments[2]:{};return C(t.map((function(t){return S(t,e)})),n)}function L(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.length<2)throw new Error("coordinates must be an array of two or more positions");return b({type:"LineString",coordinates:t},e,n)}function P(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return C(t.map((function(t){return L(t,e)})),n)}function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"FeatureCollection"};return e.id&&(n.id=e.id),e.bbox&&(n.bbox=e.bbox),n.features=t,n}function T(t,e){return b({type:"MultiLineString",coordinates:t},e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}function O(t,e){return b({type:"MultiPoint",coordinates:t},e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}function R(t,e){return b({type:"MultiPolygon",coordinates:t},e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}function A(t,e){return b({type:"GeometryCollection",geometries:t},e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}function D(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e&&!(e>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,e||0);return Math.round(t*n)/n}function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"kilometers",n=E[e];if(!n)throw new Error(e+" units is invalid");return t*n}function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"kilometers",n=E[e];if(!n)throw new Error(e+" units is invalid");return t/n}function V(t,e){return Y(q(t,e))}function G(t){var e=t%360;return e<0&&(e+=360),e}function B(t){return(t%=360)>180?t-360:t<-180?t+360:t}function Y(t){return 180*(t%(2*Math.PI))/Math.PI}function z(t){return t%360*Math.PI/180}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"kilometers",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"kilometers";if(!(t>=0))throw new Error("length must be a positive number");return F(q(t,e),n)}function X(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"meters",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"kilometers";if(!(t>=0))throw new Error("area must be a positive number");var r=k[e];if(!r)throw new Error("invalid original units");var i=k[n];if(!i)throw new Error("invalid final units");return t/r*i}function U(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function Z(t){return null!==t&&"object"===m(t)&&!Array.isArray(t)}function H(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!U(t))throw new Error("bbox must only contain numbers")}))}function W(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(m(t)))throw new Error("id must be a number or a string")}var J=Object.freeze({__proto__:null,areaFactors:k,azimuthToBearing:B,bearingToAzimuth:G,convertArea:X,convertLength:j,degreesToRadians:z,earthRadius:x,factors:E,feature:b,featureCollection:C,geometry:w,geometryCollection:A,isNumber:U,isObject:Z,lengthToDegrees:V,lengthToRadians:q,lineString:L,lineStrings:P,multiLineString:T,multiPoint:O,multiPolygon:R,point:I,points:N,polygon:S,polygons:M,radiansToDegrees:Y,radiansToLength:F,round:D,validateBBox:H,validateId:W});function K(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return d(t.geometry.coordinates);if("Point"===t.type)return d(t.coordinates)}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return d(t);throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Q(t){if(Array.isArray(t))return t;if("Feature"===t.type){if(null!==t.geometry)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function $(t){if(t.length>1&&U(t[0])&&U(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return $(t[0]);throw new Error("coordinates must only contain numbers")}function tt(t,e,n){if(!e||!n)throw new Error("type and name required");if(!t||t.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.type)}function et(t,e,n){if(!t)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!t||"Feature"!==t.type||!t.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!t.geometry||t.geometry.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.geometry.type)}function nt(t,e,n){if(!t)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!t||"FeatureCollection"!==t.type)throw new Error("Invalid input to "+n+", FeatureCollection required");var r,i=a(t.features);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(!o||"Feature"!==o.type||!o.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!o.geometry||o.geometry.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+o.geometry.type)}}catch(t){i.e(t)}finally{i.f()}}function rt(t){return"Feature"===t.type?t.geometry:t}function it(t,e){return"FeatureCollection"===t.type?"FeatureCollection":"GeometryCollection"===t.type?"GeometryCollection":"Feature"===t.type&&null!==t.geometry?t.geometry.type:t.type}var ot=Object.freeze({__proto__:null,collectionOf:nt,containsNumber:$,featureOf:et,geojsonType:tt,getCoord:K,getCoords:Q,getGeom:rt,getType:it});function st(t,e){if(!0===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).final)return function(t,e){var n=st(e,t);return n=(n+180)%360}(t,e);var n=K(t),r=K(e),i=z(n[0]),o=z(r[0]),s=z(n[1]),a=z(r[1]),u=Math.sin(o-i)*Math.cos(a),l=Math.cos(s)*Math.sin(a)-Math.sin(s)*Math.cos(a)*Math.cos(o-i);return Y(Math.atan2(u,l))}function at(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=K(t),o=z(i[0]),s=z(i[1]),a=z(n),u=q(e,r.units),l=Math.asin(Math.sin(s)*Math.cos(u)+Math.cos(s)*Math.sin(u)*Math.cos(a));return I([Y(o+Math.atan2(Math.sin(a)*Math.sin(u)*Math.cos(s),Math.cos(u)-Math.sin(s)*Math.sin(l))),Y(l)],r.properties)}function ut(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=K(t),i=K(e),o=z(i[1]-r[1]),s=z(i[0]-r[0]),a=z(r[1]),u=z(i[1]),l=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(a)*Math.cos(u);return F(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),n.units)}function lt(t,e){var n;return(n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).final?ht(K(e),K(t)):ht(K(t),K(e)))>180?-(360-n):n}function ht(t,e){var n=z(t[1]),r=z(e[1]),i=z(e[0]-t[0]);i>Math.PI&&(i-=2*Math.PI),i<-Math.PI&&(i+=2*Math.PI);var o=Math.log(Math.tan(r/2+Math.PI/4)/Math.tan(n/2+Math.PI/4));return(Y(Math.atan2(i,o))+360)%360}function ct(t,e,n){if(null!==t)for(var r,i,o,s,a,u,l,h,c=0,f=0,g=t.type,p="FeatureCollection"===g,v="Feature"===g,d=p?t.features.length:1,y=0;ya||f>u||g>l)return s=o,a=n,u=f,l=g,void(i=0);var p=L([s,o],t.properties);if(!1===e(p,n,r,g,i))return!1;i++,s=o}))&&void 0}}}))}function bt(t,e,n){var r=n,i=!1;return kt(t,(function(t,o,s,a,u){r=!1===i&&void 0===n?t:e(r,t,o,s,a,u),i=!0})),r}function wt(t,e){if(!t)throw new Error("geojson is required");xt(t,(function(t,n,r){if(null!==t.geometry){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(!1===e(t,n,r,0,0))return!1;break;case"Polygon":for(var s=0;s0){e+=Math.abs(Ot(t[0]));for(var n=1;n=e?(r+2)%e:r+2],a=i[0]*Tt,u=o[1]*Tt;n+=(s[0]*Tt-a)*Math.sin(u),r++}return n*Ct}function Rt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t.bbox&&!0!==e.recompute)return t.bbox;var n=[1/0,1/0,-1/0,-1/0];return ct(t,(function(t){n[0]>t[0]&&(n[0]=t[0]),n[1]>t[1]&&(n[1]=t[1]),n[2]e[2]&&(n|=2),t[1]e[3]&&(n|=8),n}function qt(t,e){var n,r=[],i=a(t);try{for(i.s();!(n=i.n()).done;){var o=At(n.value,e);o.length>0&&(o[0][0]===o[o.length-1][0]&&o[0][1]===o[o.length-1][1]||o.push(o[0]),o.length>=4&&r.push(o))}}catch(t){i.e(t)}finally{i.f()}return r}function Vt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Number(t[0]),r=Number(t[1]),i=Number(t[2]),o=Number(t[3]);if(6===t.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var s=[n,r];return S([[s,[i,r],[i,o],[n,o],s]],e.properties,{bbox:t,id:e.id})}var Gt=function(){return s((function t(e){i(this,t),this.points=e.points||[],this.duration=e.duration||1e4,this.sharpness=e.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=e.stepLength||60,this.length=this.points.length,this.delay=0;for(var n=0;nt&&(e.push(r),n=i)}return e}},{key:"vector",value:function(t){var e=this.pos(t+10),n=this.pos(t-10);return{angle:180*Math.atan2(e.y-n.y,e.x-n.x)/3.14,speed:Math.sqrt((n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y)+(n.z-e.z)*(n.z-e.z))}}},{key:"pos",value:function(t){var e=t-this.delay;e<0&&(e=0),e>this.duration&&(e=this.duration-1);var n=e/this.duration;if(n>=1)return this.points[this.length-1];var r=Math.floor((this.points.length-1)*n);return function(t,e,n,r,i){var o=function(t){var e=t*t,n=e*t;return[n,3*e*(1-t),3*t*(1-t)*(1-t),(1-t)*(1-t)*(1-t)]}(t),s={x:i.x*o[0]+r.x*o[1]+n.x*o[2]+e.x*o[3],y:i.y*o[0]+r.y*o[1]+n.y*o[2]+e.y*o[3],z:i.z*o[0]+r.z*o[1]+n.z*o[2]+e.z*o[3]};return s}((this.length-1)*n-r,this.points[r],this.controls[r][1],this.controls[r+1][0],this.points[r+1])}}])}();function Bt(t){for(var e,n,r=Q(t),i=0,o=1;o0}function Yt(t,e){for(var n=0,r=0,i=0,o=0,s=0,a=0,u=0,l=0,h=null,c=null,f=t[0],g=t[1],p=e.length;n0&&l>0)a=l,s=(h=c)[0]-f;else{if(u=c[0]-t[0],l>0&&a<=0){if((o=s*l-u*a)>0)i+=1;else if(0===o)return 0}else if(a>0&&l<=0){if((o=s*l-u*a)<0)i+=1;else if(0===o)return 0}else if(0===l&&a<0){if(0===(o=s*l-u*a))return 0}else if(0===a&&l<0){if(0===(o=s*l-u*a))return 0}else if(0===a&&0===l){if(u<=0&&s>=0)return 0;if(s<=0&&u>=0)return 0}h=c,a=l,s=u}}return i%2!=0}function zt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");var r=K(t),i=rt(e),o=i.type,s=e.bbox,a=i.coordinates;if(s&&!1===function(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}(r,s))return!1;"Polygon"===o&&(a=[a]);for(var u=!1,l=0;l2&&void 0!==arguments[2]?arguments[2]:{},r=K(t),i=Q(e),o=0;oi)return!1}else if(0!==g)return!1;return Math.abs(c)===Math.abs(f)&&0===Math.abs(c)?!r&&(n[0]===t[0]&&n[1]===t[1]):r?"start"===r?Math.abs(c)>=Math.abs(f)?c>0?a0?u=Math.abs(f)?c>0?a<=o&&o0?u<=s&&s=Math.abs(f)?c>0?a0?u=Math.abs(f)?c>0?a<=o&&o<=l:l<=o&&o<=a:f>0?u<=s&&s<=h:h<=s&&s<=u}function Ut(t,e){if("Feature"===t.type&&null===t.geometry)return!1;if("Feature"===e.type&&null===e.geometry)return!1;if(!Zt(Rt(t),Rt(e)))return!1;var n,r=a(rt(e).coordinates);try{for(r.s();!(n=r.n()).done;){var i,o=a(n.value);try{for(o.s();!(i=o.n()).done;){if(!zt(i.value,t))return!1}}catch(t){o.e(t)}finally{o.f()}}}catch(t){r.e(t)}finally{r.f()}return!0}function Zt(t,e){return!(t[0]>e[0])&&(!(t[2]e[1])&&!(t[3]0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Kt;if(i(this,t),this.data=e,this.length=this.data.length,this.compare=n,this.length>0)for(var r=(this.length>>1)-1;r>=0;r--)this._down(r)}),[{key:"push",value:function(t){this.data.push(t),this.length++,this._up(this.length-1)}},{key:"pop",value:function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}}},{key:"peek",value:function(){return this.data[0]}},{key:"_up",value:function(t){for(var e=this.data,n=this.compare,r=e[t];t>0;){var i=t-1>>1,o=e[i];if(n(r,o)>=0)break;e[t]=o,t=i}e[t]=r}},{key:"_down",value:function(t){for(var e=this.data,n=this.compare,r=this.length>>1,i=e[t];t=0)break;e[t]=s,t=o}e[t]=i}}])}();function Kt(t,e){return te?1:0}function Qt(t,e){return t.p.x>e.p.x?1:t.p.xe.p.y?1:-1:1}function $t(t,e){return t.rightSweepEvent.p.x>e.rightSweepEvent.p.x?1:t.rightSweepEvent.p.x0?(h.isLeftEndpoint=!0,l.isLeftEndpoint=!1):(l.isLeftEndpoint=!0,h.isLeftEndpoint=!1),e.push(l),e.push(h),s=a,re+=1}}ee+=1}var oe=s((function t(e){i(this,t),this.leftSweepEvent=e,this.rightSweepEvent=e.otherEvent}));function se(t,e){if(null===t||null===e)return!1;if(t.leftSweepEvent.ringId===e.leftSweepEvent.ringId&&(t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.rightSweepEvent)||t.leftSweepEvent.isSamePoint(e.leftSweepEvent)||t.leftSweepEvent.isSamePoint(e.rightSweepEvent)))return!1;var n=t.leftSweepEvent.p.x,r=t.leftSweepEvent.p.y,i=t.rightSweepEvent.p.x,o=t.rightSweepEvent.p.y,s=e.leftSweepEvent.p.x,a=e.leftSweepEvent.p.y,u=e.rightSweepEvent.p.x,l=e.rightSweepEvent.p.y,h=(l-a)*(i-n)-(u-s)*(o-r),c=(u-s)*(r-a)-(l-a)*(n-s),f=(i-n)*(r-a)-(o-r)*(n-s);if(0===h)return!1;var g=c/h,p=f/h;return g>=0&&g<=1&&p>=0&&p<=1&&[n+g*(i-n),r+g*(o-r)]}var ae=function(t,e){var n=new Jt([],Qt);return function(t,e){if("FeatureCollection"===t.type)for(var n=t.features,r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=n.removeDuplicates,i=void 0===r||r,o=n.ignoreSelfIntersections,s=void 0===o||o,a=[];"FeatureCollection"===t.type?a=a.concat(t.features):"Feature"===t.type?a.push(t):"LineString"!==t.type&&"Polygon"!==t.type&&"MultiLineString"!==t.type&&"MultiPolygon"!==t.type||a.push(b(t)),"FeatureCollection"===e.type?a=a.concat(e.features):"Feature"===e.type?a.push(e):"LineString"!==e.type&&"Polygon"!==e.type&&"MultiLineString"!==e.type&&"MultiPolygon"!==e.type||a.push(b(e));var u=ae(C(a),s),l=[];if(i){var h={};u.forEach((function(t){var e=t.join(",");h[e]||(h[e]=!0,l.push(t))}))}else l=u;return C(l.map((function(t){return I(t)})))}function le(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=rt(t);switch(e.properties||"Feature"!==t.type||(e.properties=t.properties),n.type){case"Polygon":return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=rt(t),r=n.coordinates,i=e.properties?e.properties:"Feature"===t.type?t.properties:{};return he(r,i)}(n,e);case"MultiPolygon":return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=rt(t),r=n.coordinates,i=e.properties?e.properties:"Feature"===t.type?t.properties:{},o=[];return r.forEach((function(t){o.push(he(t,i))})),C(o)}(n,e);default:throw new Error("invalid poly")}}function he(t,e){return t.length>1?T(t,e):L(t[0],e)}function ce(t,e){var n=rt(t),r=rt(e),i=n.type,o=r.type;switch(i){case"MultiPoint":switch(o){case"LineString":return fe(n,r);case"Polygon":return pe(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"LineString":switch(o){case"MultiPoint":return fe(r,n);case"LineString":return function(t,e){if(ue(t,e).features.length>0)for(var n=0;n0}function pe(t,e){for(var n=!1,r=!1,i=t.coordinates.length,o=0;o=Math.abs(a)?s>0?t[0]<=n[0]&&n[0]<=e[0]:e[0]<=n[0]&&n[0]<=t[0]:a>0?t[1]<=n[1]&&n[1]<=e[1]:e[1]<=n[1]&&n[1]<=t[1]:Math.abs(s)>=Math.abs(a)?s>0?t[0]0?t[1]2&&void 0!==arguments[2]?arguments[2]:{ignoreSelfIntersections:!0}).ignoreSelfIntersections,r=void 0===n||n,i=!0;return xt(t,(function(t){xt(e,(function(e){if(!1===i)return!1;i=function(t,e,n){switch(t.type){case"Point":switch(e.type){case"Point":return r=t.coordinates,i=e.coordinates,!(r[0]===i[0]&&r[1]===i[1]);case"LineString":return!ye(e,t);case"Polygon":return!zt(t,e)}break;case"LineString":switch(e.type){case"Point":return!ye(t,e);case"LineString":return!function(t,e,n){var r=ue(t,e,{ignoreSelfIntersections:n});if(r.features.length>0)return!0;return!1}(t,e,n);case"Polygon":return!me(e,t,n)}break;case"Polygon":switch(e.type){case"Point":return!zt(e,t);case"LineString":return!me(t,e,n);case"Polygon":return!function(t,e,n){var r,i=a(t.coordinates[0]);try{for(i.s();!(r=i.n()).done;){if(zt(r.value,e))return!0}}catch(t){i.e(t)}finally{i.f()}var o,s=a(e.coordinates[0]);try{for(s.s();!(o=s.n()).done;){if(zt(o.value,t))return!0}}catch(t){s.e(t)}finally{s.f()}var u=ue(le(t),le(e),{ignoreSelfIntersections:n});if(u.features.length>0)return!0;return!1}(e,t,n)}}var r,i;return!1}(t.geometry,e.geometry,r)}))})),i}function ye(t,e){for(var n=0;n0}function _e(t,e,n){var r=n[0]-t[0],i=n[1]-t[1],o=e[0]-t[0],s=e[1]-t[1];return 0==r*s-i*o&&(Math.abs(o)>=Math.abs(s)?o>0?t[0]<=n[0]&&n[0]<=e[0]:e[0]<=n[0]&&n[0]<=t[0]:s>0?t[1]<=n[1]&&n[1]<=e[1]:e[1]<=n[1]&&n[1]<=t[1])}var xe=Object.defineProperty,Ee=function(t,e){return xe(t,"name",{value:e,configurable:!0})},ke=function(){return s((function t(e){var n,r,o;i(this,t),this.direction=!1,this.compareProperties=!0,this.precision=Math.pow(10,-(null!=(n=null==e?void 0:e.precision)?n:17)),this.direction=null!=(r=null==e?void 0:e.direction)&&r,this.compareProperties=null==(o=null==e?void 0:e.compareProperties)||o}),[{key:"compare",value:function(t,e){var n=this;if(t.type!==e.type)return!1;if(!we(t,e))return!1;switch(t.type){case"Point":return this.compareCoord(t.coordinates,e.coordinates);case"LineString":return this.compareLine(t.coordinates,e.coordinates);case"Polygon":return this.comparePolygon(t,e);case"GeometryCollection":return this.compareGeometryCollection(t,e);case"Feature":return this.compareFeature(t,e);case"FeatureCollection":return this.compareFeatureCollection(t,e);default:if(t.type.startsWith("Multi")){var r=Ie(t),i=Ie(e);return r.every((function(t){return i.some((function(e){return n.compare(t,e)}))}))}}return!1}},{key:"compareCoord",value:function(t,e){var n=this;return t.length===e.length&&t.every((function(t,r){return Math.abs(t-e[r])2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!we(t,e))return!1;var i=t,o=e;if(r&&!this.compareCoord(i[0],o[0])){var s=this.fixStartIndex(o,i);if(!s)return!1;o=s}var a=this.compareCoord(i[n],o[n]);return this.direction||a?this.comparePath(i,o):!!this.compareCoord(i[n],o[o.length-(1+n)])&&this.comparePath(i.slice().reverse(),o)}},{key:"fixStartIndex",value:function(t,e){for(var n,r=-1,i=0;i=0&&(n=[].concat(t.slice(r,t.length),t.slice(1,r+1))),n}},{key:"comparePath",value:function(t,e){var n=this;return t.every((function(t,r){return n.compareCoord(t,e[r])}))}},{key:"comparePolygon",value:function(t,e){var n=this;if(this.compareLine(t.coordinates[0],e.coordinates[0],1,!0)){var r=t.coordinates.slice(1,t.coordinates.length),i=e.coordinates.slice(1,e.coordinates.length);return r.every((function(t){return i.some((function(e){return n.compareLine(t,e,1,!0)}))}))}return!1}},{key:"compareGeometryCollection",value:function(t,e){var n=this;return we(t.geometries,e.geometries)&&this.compareBBox(t,e)&&t.geometries.every((function(t,r){return n.compare(t,e.geometries[r])}))}},{key:"compareFeature",value:function(t,e){return t.id===e.id&&(!this.compareProperties||Se(t.properties,e.properties))&&this.compareBBox(t,e)&&this.compare(t.geometry,e.geometry)}},{key:"compareFeatureCollection",value:function(t,e){var n=this;return we(t.features,e.features)&&this.compareBBox(t,e)&&t.features.every((function(t,r){return n.compare(t,e.features[r])}))}},{key:"compareBBox",value:function(t,e){return Boolean(!t.bbox&&!e.bbox)||!(!t.bbox||!e.bbox)&&this.compareCoord(t.bbox,e.bbox)}}])}();Ee(ke,"GeojsonEquality");var be=ke;function we(t,e){return t.coordinates?t.coordinates.length===e.coordinates.length:t.length===e.length}function Ie(t){return t.coordinates.map((function(e){return{type:t.type.replace("Multi",""),coordinates:e}}))}function Ne(t,e,n){return new be(n).compare(t,e)}function Se(t,e){if(null===t&&null===e)return!0;if(null===t||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=0,o=n;i1&&void 0!==arguments[1]?arguments[1]:{},n="object"===m(e)?e.mutate:e;if(!t)throw new Error("geojson is required");var r=it(t),i=[];switch(r){case"LineString":i=Pe(t,r);break;case"MultiLineString":case"Polygon":Q(t).forEach((function(t){i.push(Pe(t,r))}));break;case"MultiPolygon":Q(t).forEach((function(t){var e=[];t.forEach((function(t){e.push(Pe(t,r))})),i.push(e)}));break;case"Point":return t;case"MultiPoint":var o={};Q(t).forEach((function(t){var e=t.join("-");Object.prototype.hasOwnProperty.call(o,e)||(i.push(t),o[e]=!0)}));break;default:throw new Error(r+" geometry not supported")}return t.coordinates?!0===n?(t.coordinates=i,t):{type:r,coordinates:i}:!0===n?(t.geometry.coordinates=i,t):b({type:r,coordinates:i},t.properties,{bbox:t.bbox,id:t.id})}function Pe(t,e){var n=Q(t);if(2===n.length&&!Ce(n[0],n[1]))return n;var r=[],i=n.length-1,o=r.length;r.push(n[0]);for(var s=1;s2&&Te(r[o-3],r[o-1],r[o-2])&&r.splice(r.length-2,1))}if(r.push(n[n.length-1]),o=r.length,("Polygon"===e||"MultiPolygon"===e)&&Ce(n[0],n[n.length-1])&&o<4)throw new Error("invalid polygon");return"LineString"===e&&o<3||Te(r[o-3],r[o-1],r[o-2])&&r.splice(r.length-2,1),r}function Ce(t,e){return t[0]===e[0]&&t[1]===e[1]}function Te(t,e,n){var r=n[0],i=n[1],o=t[0],s=t[1],a=e[0],u=e[1],l=a-o,h=u-s;return 0===(r-o)*h-(i-s)*l&&(Math.abs(l)>=Math.abs(h)?l>0?o<=r&&r<=a:a<=r&&r<=o:h>0?s<=i&&i<=u:u<=i&&i<=s)}function Oe(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).ignoreSelfIntersections,r=void 0===n||n,i=!1;return xt(t,(function(t){xt(e,(function(e){if(!0===i)return!0;i=!de(t.geometry,e.geometry,{ignoreSelfIntersections:r})}))})),i}function Re(t,e,n,r,i){Ae(t,e,n||0,r||t.length-1,i||Fe)}function Ae(t,e,n,r,i){for(;r>n;){if(r-n>600){var o=r-n+1,s=e-n+1,a=Math.log(o),u=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*u*(o-u)/o)*(s-o/2<0?-1:1);Ae(t,e,Math.max(n,Math.floor(e-s*u/o+l)),Math.min(r,Math.floor(e+(o-s)*u/o+l)),i)}var h=t[e],c=n,f=r;for(De(t,n,e),i(t[r],h)>0&&De(t,n,r);c0;)f--}0===i(t[n],h)?De(t,n,f):De(t,++f,r),f<=e&&(n=f+1),e<=f&&(r=f-1)}}function De(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function Fe(t,e){return te?1:0}var qe=function(){return s((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:9;i(this,t),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}),[{key:"all",value:function(){return this._all(this.data,[])}},{key:"search",value:function(t){var e=this.data,n=[];if(!He(t,e))return n;for(var r=this.toBBox,i=[];e;){for(var o=0;o=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(r,i,e)}},{key:"_split",value:function(t,e){var n=t[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=We(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,Ge(n,this.toBBox),Ge(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)}},{key:"_splitRoot",value:function(t,e){this.data=We([t,e]),this.data.height=t.height+1,this.data.leaf=!1,Ge(this.data,this.toBBox)}},{key:"_chooseSplitIndex",value:function(t,e,n){for(var r,i,o,s,a,u,l,h=1/0,c=1/0,f=e;f<=n-e;f++){var g=Be(t,0,f,this.toBBox),p=Be(t,f,n,this.toBBox),v=(i=g,o=p,s=void 0,a=void 0,u=void 0,l=void 0,s=Math.max(i.minX,o.minX),a=Math.max(i.minY,o.minY),u=Math.min(i.maxX,o.maxX),l=Math.min(i.maxY,o.maxY),Math.max(0,u-s)*Math.max(0,l-a)),d=Xe(g)+Xe(p);v=e;h--){var c=t.children[h];Ye(s,t.leaf?i(c):c),a+=Ue(s)}return a}},{key:"_adjustParentBBoxes",value:function(t,e,n){for(var r=n;r>=0;r--)Ye(e[r],t)}},{key:"_condense",value:function(t){for(var e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children).splice(e.indexOf(t[n]),1):this.clear():Ge(t[n],this.toBBox)}}])}();function Ve(t,e,n){if(!n)return e.indexOf(t);for(var r=0;r=t.minX&&e.maxY>=t.minY}function We(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Je(t,e,n,r,i){for(var o=[e,n];o.length;)if(!((n=o.pop())-(e=o.pop())<=r)){var s=e+Math.ceil((n-e)/r/2)*r;Re(t,s,e,n,i),o.push(e,s,s,n)}}var Ke=Object.freeze({__proto__:null,default:qe});function Qe(t){var e=new qe(t);return e.insert=function(t){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:Rt(t),qe.prototype.insert.call(this,t)},e.load=function(t){var e=[];return Array.isArray(t)?t.forEach((function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:Rt(t),e.push(t)})):vt(t,(function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:Rt(t),e.push(t)})),qe.prototype.load.call(this,e)},e.remove=function(t,e){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:Rt(t),qe.prototype.remove.call(this,t,e)},e.clear=function(){return qe.prototype.clear.call(this)},e.search=function(t){return C(qe.prototype.search.call(this,this.toBBox(t)))},e.collides=function(t){return qe.prototype.collides.call(this,this.toBBox(t))},e.all=function(){return C(qe.prototype.all.call(this))},e.toJSON=function(){return qe.prototype.toJSON.call(this)},e.fromJSON=function(t){return qe.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var e;if(t.bbox)e=t.bbox;else if(Array.isArray(t)&&4===t.length)e=t;else if(Array.isArray(t)&&6===t.length)e=[t[0],t[1],t[3],t[4]];else if("Feature"===t.type)e=Rt(t);else{if("FeatureCollection"!==t.type)throw new Error("invalid geojson");e=Rt(t)}return{minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}},e}function $e(t){if(!t)throw new Error("geojson is required");var e=[];return xt(t,(function(t){!function(t,e){var n=[],r=t.geometry;if(null!==r){switch(r.type){case"Polygon":n=Q(r);break;case"LineString":n=[Q(r)]}n.forEach((function(n){var r=function(t,e){var n=[];return t.reduce((function(t,r){var i=L([t,r],e);return i.bbox=function(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],s=ni?n:i,l=r>o?r:o;return[s,a,u,l]}(t,r),n.push(i),r})),n}(n,t.properties);r.forEach((function(t){t.id=e.length,e.push(t)}))}))}}(t,e)})),C(e)}var tn,en,nn=Object.defineProperty,rn=Object.defineProperties,on=Object.getOwnPropertyDescriptors,sn=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,ln=function(t,e,n){return e in t?nn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},hn=function(t,e){for(var n in e||(e={}))an.call(e,n)&&ln(t,n,e[n]);if(sn){var r,i=a(sn(e));try{for(i.s();!(r=i.n()).done;){n=r.value;un.call(e,n)&&ln(t,n,e[n])}}catch(t){i.e(t)}finally{i.f()}}return t},cn=function(t,e){return rn(t,on(e))};function fn(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t||!e)throw new Error("lines and pt are required arguments");var r=K(e),i=I([1/0,1/0],{dist:1/0,index:-1,multiFeatureIndex:-1,location:-1}),o=0;return xt(t,(function(t,s,a){for(var u=Q(t),l=0;lR||pn(p,f)>R?ut(dn(f),dn(g))<=ut(dn(f),dn(p))?[dn(g),!0,!1]:[dn(p),!1,!0]:[dn(f),!1,!1]}function mn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _n(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var n=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})})),n}var xn=(en||(en=1,tn=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==m(e)&&"object"==m(n)){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(i=r;0!=i--;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var s=o[i];if(!t(e[s],n[s]))return!1}return!0}return e!=e&&n!=n}),tn),En=mn(xn);function kn(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Z(n=n||{}))throw new Error("options is invalid");var r,i=n.tolerance||0,o=[],s=Qe(),a=$e(t);s.load(a);var u=[];return kt(e,(function(t){var e=!1;t&&(vt(s.search(t),(function(n){if(!1===e){var o=Q(t).sort(),s=Q(n).sort();if(En(o,s))e=!0,r=r?bn(r,t)||r:t;else if(0===i?jt(o[0],n)&&jt(o[1],n):fn(n,o[0]).properties.dist<=i&&fn(n,o[1]).properties.dist<=i)e=!0,r=r?bn(r,t)||r:t;else if(0===i?jt(s[0],t)&&jt(s[1],t):fn(t,s[0]).properties.dist<=i&&fn(t,s[1]).properties.dist<=i)if(r){var a=bn(r,n);a?r=a:u.push(n)}else r=n}})),!1===e&&r&&(o.push(r),u.length&&(o=o.concat(u),u=[]),r=void 0))})),r&&o.push(r),C(o)}function bn(t,e){var n=Q(e),r=Q(t),i=r[0],o=r[r.length-1],s=t.geometry.coordinates;if(En(n[0],i))s.unshift(n[1]);else if(En(n[0],o))s.push(n[1]);else if(En(n[1],i))s.unshift(n[0]);else{if(!En(n[1],o))return;s.push(n[0])}return t}function wn(t,e){var n=G(lt(t[0],t[1])),r=G(lt(e[0],e[1]));return n===r||(r-n)%180==0}function In(t,e){if(t.geometry&&t.geometry.type)return t.geometry.type;if(t.type)return t.type;throw new Error("Invalid GeoJSON object for "+e)}function Nn(t,e){return!!Sn(e.coordinates[0],t.coordinates)||!!Sn(e.coordinates[e.coordinates.length-1],t.coordinates)}function Sn(t,e){return t[0]===e[0]&&t[1]===e[1]}function Mn(t){return t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]}function Ln(t){for(var e=0;ee[0])&&(!(t[2]e[1])&&!(t[3]1&&void 0!==arguments[1]?arguments[1]:{},n=Rt(t);return I([(n[0]+n[2])/2,(n[1]+n[3])/2],e.properties,e)}var Dn,Fn={exports:{}};var qn=(Dn||(Dn=1,function(t,e){t.exports=function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}var y=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"getEndCapStyle",value:function(){return this._endCapStyle}},{key:"isSingleSided",value:function(){return this._isSingleSided}},{key:"setQuadrantSegments",value:function(t){this._quadrantSegments=t,0===this._quadrantSegments&&(this._joinStyle=e.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=e.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),t<=0&&(this._quadrantSegments=1),this._joinStyle!==e.JOIN_ROUND&&(this._quadrantSegments=e.DEFAULT_QUADRANT_SEGMENTS)}},{key:"getJoinStyle",value:function(){return this._joinStyle}},{key:"setJoinStyle",value:function(t){this._joinStyle=t}},{key:"setSimplifyFactor",value:function(t){this._simplifyFactor=t<0?0:t}},{key:"getSimplifyFactor",value:function(){return this._simplifyFactor}},{key:"getQuadrantSegments",value:function(){return this._quadrantSegments}},{key:"setEndCapStyle",value:function(t){this._endCapStyle=t}},{key:"getMitreLimit",value:function(){return this._mitreLimit}},{key:"setMitreLimit",value:function(t){this._mitreLimit=t}},{key:"setSingleSided",value:function(t){this._isSingleSided=t}}],[{key:"constructor_",value:function(){if(this._quadrantSegments=e.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=e.CAP_ROUND,this._joinStyle=e.JOIN_ROUND,this._mitreLimit=e.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=e.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setQuadrantSegments(t)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.setQuadrantSegments(n),this.setEndCapStyle(r)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];this.setQuadrantSegments(i),this.setEndCapStyle(o),this.setJoinStyle(s),this.setMitreLimit(a)}}},{key:"bufferDistanceError",value:function(t){var e=Math.PI/2/t;return 1-Math.cos(e/2)}}]),e}();y.CAP_ROUND=1,y.CAP_FLAT=2,y.CAP_SQUARE=3,y.JOIN_ROUND=1,y.JOIN_MITRE=2,y.JOIN_BEVEL=3,y.DEFAULT_QUADRANT_SEGMENTS=8,y.DEFAULT_MITRE_LIMIT=5,y.DEFAULT_SIMPLIFY_FACTOR=.01;var _=function(e){r(o,e);var i=c(o);function o(e){var n;return t(this,o),(n=i.call(this,e)).name=Object.keys({Exception:o})[0],n}return n(o,[{key:"toString",value:function(){return this.message}}]),o}(u(Error)),x=function(e){r(i,e);var n=c(i);function i(e){var r;return t(this,i),(r=n.call(this,e)).name=Object.keys({IllegalArgumentException:i})[0],r}return i}(_),E=function(){function e(){t(this,e)}return n(e,[{key:"filter",value:function(t){}}]),e}();function k(){}function b(){}function w(){}var I,N,S,M,L,P,C,T,O=function(){function e(){t(this,e)}return n(e,null,[{key:"equalsWithTolerance",value:function(t,e,n){return Math.abs(t-e)<=n}}]),e}(),R=function(){function e(n,r){t(this,e),this.low=r||0,this.high=n||0}return n(e,null,[{key:"toBinaryString",value:function(t){var e,n="";for(e=2147483648;e>0;e>>>=1)n+=(t.high&e)===e?"1":"0";for(e=2147483648;e>0;e>>>=1)n+=(t.low&e)===e?"1":"0";return n}}]),e}();function A(){}function D(){}A.NaN=NaN,A.isNaN=function(t){return Number.isNaN(t)},A.isInfinite=function(t){return!Number.isFinite(t)},A.MAX_VALUE=Number.MAX_VALUE,A.POSITIVE_INFINITY=Number.POSITIVE_INFINITY,A.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,"function"==typeof Float64Array&&"function"==typeof Int32Array?(P=2146435072,C=new Float64Array(1),T=new Int32Array(C.buffer),A.doubleToLongBits=function(t){C[0]=t;var e=0|T[0],n=0|T[1];return(n&P)===P&&0!=(1048575&n)&&0!==e&&(e=0,n=2146959360),new R(n,e)},A.longBitsToDouble=function(t){return T[0]=t.low,T[1]=t.high,C[0]}):(I=1023,N=Math.log2,S=Math.floor,M=Math.pow,L=function(){for(var t=53;t>0;t--){var e=M(2,t)-1;if(S(N(e))+1===t)return e}return 0}(),A.doubleToLongBits=function(t){var e,n,r,i,o,s,a,u,l;if(t<0||1/t===Number.NEGATIVE_INFINITY?(s=1<<31,t=-t):s=0,0===t)return new R(u=s,l=0);if(t===1/0)return new R(u=2146435072|s,l=0);if(t!=t)return new R(u=2146959360,l=0);if(i=0,l=0,(e=S(t))>1)if(e<=L)(i=S(N(e)))<=20?(l=0,u=e<<20-i&1048575):(l=e%(n=M(2,r=i-20))<<32-r,u=e/n&1048575);else for(r=e,l=0;0!==(r=S(n=r/2));)i++,l>>>=1,l|=(1&u)<<31,u>>>=1,n!==r&&(u|=524288);if(a=i+I,o=0===e,e=t-e,i<52&&0!==e)for(r=0;;){if((n=2*e)>=1?(e=n-1,o?(a--,o=!1):(r<<=1,r|=1,i++)):(e=n,o?0==--a&&(i++,o=!1):(r<<=1,i++)),20===i)u|=r,r=0;else if(52===i){l|=r;break}if(1===n){i<20?u|=r<<20-i:i<52&&(l|=r<<52-i);break}}return u|=a<<20,new R(u|=s,l)},A.longBitsToDouble=function(t){var e,n,r,i,o=t.high,s=t.low,a=o&1<<31?-1:1;for(r=((2146435072&o)>>20)-I,i=0,n=1<<19,e=1;e<=20;e++)o&n&&(i+=M(2,-e)),n>>>=1;for(n=1<<31,e=21;e<=52;e++)s&n&&(i+=M(2,-e)),n>>>=1;if(-1023===r){if(0===i)return 0*a;r=-1022}else{if(1024===r)return 0===i?a/0:NaN;i+=1}return a*i*M(2,r)});var F=function(e){r(i,e);var n=c(i);function i(e){var r;return t(this,i),(r=n.call(this,e)).name=Object.keys({RuntimeException:i})[0],r}return i}(_),q=function(e){r(o,e);var i=c(o);function o(){var e;return t(this,o),e=i.call(this),o.constructor_.apply(l(e),arguments),e}return n(o,null,[{key:"constructor_",value:function(){if(0===arguments.length)F.constructor_.call(this);else if(1===arguments.length){var t=arguments[0];F.constructor_.call(this,t)}}}]),o}(F),V=function(){function e(){t(this,e)}return n(e,null,[{key:"shouldNeverReachHere",value:function(){if(0===arguments.length)e.shouldNeverReachHere(null);else if(1===arguments.length){var t=arguments[0];throw new q("Should never reach here"+(null!==t?": "+t:""))}}},{key:"isTrue",value:function(){if(1===arguments.length){var t=arguments[0];e.isTrue(t,null)}else if(2===arguments.length){var n=arguments[1];if(!arguments[0])throw null===n?new q:new q(n)}}},{key:"equals",value:function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];e.equals(t,n,null)}else if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];if(!i.equals(r))throw new q("Expected "+r+" but encountered "+i+(null!==o?": "+o:""))}}}]),e}(),G=new ArrayBuffer(8),B=new Float64Array(G),Y=new Int32Array(G),z=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"getM",value:function(){return A.NaN}},{key:"setOrdinate",value:function(t,n){switch(t){case e.X:this.x=n;break;case e.Y:this.y=n;break;case e.Z:this.setZ(n);break;default:throw new x("Invalid ordinate index: "+t)}}},{key:"equals2D",value:function(){if(1===arguments.length){var t=arguments[0];return this.x===t.x&&this.y===t.y}if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!O.equalsWithTolerance(this.x,e.x,n)&&!!O.equalsWithTolerance(this.y,e.y,n)}}},{key:"setM",value:function(t){throw new x("Invalid ordinate index: "+e.M)}},{key:"getZ",value:function(){return this.z}},{key:"getOrdinate",value:function(t){switch(t){case e.X:return this.x;case e.Y:return this.y;case e.Z:return this.getZ()}throw new x("Invalid ordinate index: "+t)}},{key:"equals3D",value:function(t){return this.x===t.x&&this.y===t.y&&(this.getZ()===t.getZ()||A.isNaN(this.getZ())&&A.isNaN(t.getZ()))}},{key:"equals",value:function(t){return t instanceof e&&this.equals2D(t)}},{key:"equalInZ",value:function(t,e){return O.equalsWithTolerance(this.getZ(),t.getZ(),e)}},{key:"setX",value:function(t){this.x=t}},{key:"compareTo",value:function(t){var e=t;return this.xe.x?1:this.ye.y?1:0}},{key:"getX",value:function(){return this.x}},{key:"setZ",value:function(t){this.z=t}},{key:"clone",value:function(){try{return null}catch(t){if(t instanceof CloneNotSupportedException)return V.shouldNeverReachHere("this shouldn't happen because this class is Cloneable"),null;throw t}}},{key:"copy",value:function(){return new e(this)}},{key:"toString",value:function(){return"("+this.x+", "+this.y+", "+this.getZ()+")"}},{key:"distance3D",value:function(t){var e=this.x-t.x,n=this.y-t.y,r=this.getZ()-t.getZ();return Math.sqrt(e*e+n*n+r*r)}},{key:"getY",value:function(){return this.y}},{key:"setY",value:function(t){this.y=t}},{key:"distance",value:function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)}},{key:"hashCode",value:function(){var t=17;return 37*(t=37*t+e.hashCode(this.x))+e.hashCode(this.y)}},{key:"setCoordinate",value:function(t){this.x=t.x,this.y=t.y,this.z=t.getZ()}},{key:"interfaces_",get:function(){return[k,b,w]}}],[{key:"constructor_",value:function(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)e.constructor_.call(this,0,0);else if(1===arguments.length){var t=arguments[0];e.constructor_.call(this,t.x,t.y,t.getZ())}else if(2===arguments.length){var n=arguments[0],r=arguments[1];e.constructor_.call(this,n,r,e.NULL_ORDINATE)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2];this.x=i,this.y=o,this.z=s}}},{key:"hashCode",value:function(t){return B[0]=t,Y[0]^Y[1]}}]),e}(),j=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"compare",value:function(t,n){var r=e.compare(t.x,n.x);if(0!==r)return r;var i=e.compare(t.y,n.y);return 0!==i?i:this._dimensionsToTest<=2?0:e.compare(t.getZ(),n.getZ())}},{key:"interfaces_",get:function(){return[D]}}],[{key:"constructor_",value:function(){if(this._dimensionsToTest=2,0===arguments.length)e.constructor_.call(this,2);else if(1===arguments.length){var t=arguments[0];if(2!==t&&3!==t)throw new x("only 2 or 3 dimensions may be specified");this._dimensionsToTest=t}}},{key:"compare",value:function(t,e){return te?1:A.isNaN(t)?A.isNaN(e)?0:-1:A.isNaN(e)?1:0}}]),e}();z.DimensionalComparator=j,z.NULL_ORDINATE=A.NaN,z.X=0,z.Y=1,z.Z=2,z.M=3;var X=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"getArea",value:function(){return this.getWidth()*this.getHeight()}},{key:"equals",value:function(t){if(!(t instanceof e))return!1;var n=t;return this.isNull()?n.isNull():this._maxx===n.getMaxX()&&this._maxy===n.getMaxY()&&this._minx===n.getMinX()&&this._miny===n.getMinY()}},{key:"intersection",value:function(t){if(this.isNull()||t.isNull()||!this.intersects(t))return new e;var n=this._minx>t._minx?this._minx:t._minx,r=this._miny>t._miny?this._miny:t._miny;return new e(n,this._maxx=this._minx&&n.getMaxX()<=this._maxx&&n.getMinY()>=this._miny&&n.getMaxY()<=this._maxy}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];return!this.isNull()&&r>=this._minx&&r<=this._maxx&&i>=this._miny&&i<=this._maxy}}},{key:"intersects",value:function(){if(1===arguments.length){if(arguments[0]instanceof e){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t._minx>this._maxx||t._maxxthis._maxy||t._maxythis._maxx||(r.x>i.x?r.x:i.x)this._maxy||(r.y>i.y?r.y:i.y)this._maxx||othis._maxy||sthis._maxx&&(this._maxx=n._maxx),n._minythis._maxy&&(this._maxy=n._maxy))}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.isNull()?(this._minx=r,this._maxx=r,this._miny=i,this._maxy=i):(rthis._maxx&&(this._maxx=r),ithis._maxy&&(this._maxy=i))}}},{key:"minExtent",value:function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return te._minx?1:this._minye._miny?1:this._maxxe._maxx?1:this._maxye._maxy?1:0}},{key:"translate",value:function(t,e){if(this.isNull())return null;this.init(this.getMinX()+t,this.getMaxX()+t,this.getMinY()+e,this.getMaxY()+e)}},{key:"copy",value:function(){return new e(this)}},{key:"toString",value:function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"}},{key:"setToNull",value:function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1}},{key:"disjoint",value:function(t){return!(!this.isNull()&&!t.isNull())||t._minx>this._maxx||t._maxxthis._maxy||t._maxye?t:e}},{key:"expandBy",value:function(){if(1===arguments.length){var t=arguments[0];this.expandBy(t,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this.isNull())return null;this._minx-=e,this._maxx+=e,this._miny-=n,this._maxy+=n,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}}},{key:"contains",value:function(){if(1===arguments.length){if(arguments[0]instanceof e){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof z){var n=arguments[0];return this.covers(n)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];return this.covers(r,i)}}},{key:"centre",value:function(){return this.isNull()?null:new z((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)}},{key:"init",value:function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof z){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof e){var n=arguments[0];this._minx=n._minx,this._maxx=n._maxx,this._miny=n._miny,this._maxy=n._maxy}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r.x,i.x,r.y,i.y)}else if(4===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2],u=arguments[3];ot._maxx&&(e=this._minx-t._maxx);var n=0;return this._maxyt._maxy&&(n=this._miny-t._maxy),0===e?n:0===n?e:Math.sqrt(e*e+n*n)}},{key:"hashCode",value:function(){var t=17;return 37*(t=37*(t=37*(t=37*t+z.hashCode(this._minx))+z.hashCode(this._maxx))+z.hashCode(this._miny))+z.hashCode(this._maxy)}},{key:"interfaces_",get:function(){return[k,w]}}],[{key:"constructor_",value:function(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof z){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof e){var n=arguments[0];this.init(n)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r.x,i.x,r.y,i.y)}else if(4===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2],u=arguments[3];this.init(o,s,a,u)}}},{key:"intersects",value:function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2];return n.x>=(t.xe.x?t.x:e.x)&&n.y>=(t.ye.y?t.y:e.y)}if(4===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],s=arguments[3],a=Math.min(o.x,s.x),u=Math.max(o.x,s.x),l=Math.min(r.x,i.x),h=Math.max(r.x,i.x);return!(l>u||hu||h=this.size())throw new nt;return this.array[t]}},{key:"push",value:function(t){return this.array.push(t),t}},{key:"pop",value:function(){if(0===this.array.length)throw new et;return this.array.pop()}},{key:"peek",value:function(){if(0===this.array.length)throw new et;return this.array[this.array.length-1]}},{key:"empty",value:function(){return 0===this.array.length}},{key:"isEmpty",value:function(){return this.empty()}},{key:"search",value:function(t){return this.array.indexOf(t)}},{key:"size",value:function(){return this.array.length}},{key:"toArray",value:function(){return this.array.slice()}}]),o}(rt);function ot(t,e){return t.interfaces_&&t.interfaces_.indexOf(e)>-1}var st=function(){function e(n){t(this,e),this.str=n}return n(e,[{key:"append",value:function(t){this.str+=t}},{key:"setCharAt",value:function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)}},{key:"toString",value:function(){return this.str}}]),e}(),at=function(){function e(n){t(this,e),this.value=n}return n(e,[{key:"intValue",value:function(){return this.value}},{key:"compareTo",value:function(t){return this.valuet?1:0}}],[{key:"compare",value:function(t,e){return te?1:0}},{key:"isNan",value:function(t){return Number.isNaN(t)}},{key:"valueOf",value:function(t){return new e(t)}}]),e}(),ut=function(){function e(){t(this,e)}return n(e,null,[{key:"isWhitespace",value:function(t){return t<=32&&t>=0||127===t}},{key:"toUpperCase",value:function(t){return t.toUpperCase()}}]),e}(),lt=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"le",value:function(t){return this._hi9?(c=!0,f="9"):f="0"+h,a.append(f),r=r.subtract(e.valueOf(h)).multiply(e.TEN),c&&r.selfAdd(e.TEN);var g=!0,p=e.magnitude(r._hi);if(p<0&&Math.abs(p)>=u-l&&(g=!1),!g)break}return n[0]=i,a.toString()}},{key:"sqr",value:function(){return this.multiply(this)}},{key:"doubleValue",value:function(){return this._hi+this._lo}},{key:"subtract",value:function(){if(arguments[0]instanceof e){var t=arguments[0];return this.add(t.negate())}if("number"==typeof arguments[0]){var n=arguments[0];return this.add(-n)}}},{key:"equals",value:function(){if(1===arguments.length&&arguments[0]instanceof e){var t=arguments[0];return this._hi===t._hi&&this._lo===t._lo}}},{key:"isZero",value:function(){return 0===this._hi&&0===this._lo}},{key:"selfSubtract",value:function(){if(arguments[0]instanceof e){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t._hi,-t._lo)}if("number"==typeof arguments[0]){var n=arguments[0];return this.isNaN()?this:this.selfAdd(-n,0)}}},{key:"getSpecialNumberString",value:function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null}},{key:"min",value:function(t){return this.le(t)?this:t}},{key:"selfDivide",value:function(){if(1===arguments.length){if(arguments[0]instanceof e){var t=arguments[0];return this.selfDivide(t._hi,t._lo)}if("number"==typeof arguments[0]){var n=arguments[0];return this.selfDivide(n,0)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1],o=null,s=null,a=null,u=null,l=null,h=null,c=null,f=null;return l=this._hi/r,f=(o=(h=e.SPLIT*l)-(o=h-l))*(a=(f=e.SPLIT*r)-(a=f-r))-(c=l*r)+o*(u=r-a)+(s=l-o)*a+s*u,f=l+(h=(this._hi-c-f+this._lo-l*i)/r),this._hi=f,this._lo=l-f+h,this}}},{key:"dump",value:function(){return"DD<"+this._hi+", "+this._lo+">"}},{key:"divide",value:function(){if(arguments[0]instanceof e){var t=arguments[0],n=null,r=null,i=null,o=null,s=null,a=null,u=null,l=null;return r=(s=this._hi/t._hi)-(n=(a=e.SPLIT*s)-(n=a-s)),l=n*(i=(l=e.SPLIT*t._hi)-(i=l-t._hi))-(u=s*t._hi)+n*(o=t._hi-i)+r*i+r*o,new e(l=s+(a=(this._hi-u-l+this._lo-s*t._lo)/t._hi),s-l+a)}if("number"==typeof arguments[0]){var h=arguments[0];return A.isNaN(h)?e.createNaN():e.copy(this).selfDivide(h,0)}}},{key:"ge",value:function(t){return this._hi>t._hi||this._hi===t._hi&&this._lo>=t._lo}},{key:"pow",value:function(t){if(0===t)return e.valueOf(1);var n=new e(this),r=e.valueOf(1),i=Math.abs(t);if(i>1)for(;i>0;)i%2==1&&r.selfMultiply(n),(i/=2)>0&&(n=n.sqr());else r=n;return t<0?r.reciprocal():r}},{key:"ceil",value:function(){if(this.isNaN())return e.NaN;var t=Math.ceil(this._hi),n=0;return t===this._hi&&(n=Math.ceil(this._lo)),new e(t,n)}},{key:"compareTo",value:function(t){var e=t;return this._hie._hi?1:this._loe._lo?1:0}},{key:"rint",value:function(){return this.isNaN()?this:this.add(.5).floor()}},{key:"setValue",value:function(){if(arguments[0]instanceof e){var t=arguments[0];return this.init(t),this}if("number"==typeof arguments[0]){var n=arguments[0];return this.init(n),this}}},{key:"max",value:function(t){return this.ge(t)?this:t}},{key:"sqrt",value:function(){if(this.isZero())return e.valueOf(0);if(this.isNegative())return e.NaN;var t=1/Math.sqrt(this._hi),n=this._hi*t,r=e.valueOf(n),i=this.subtract(r.sqr())._hi*(.5*t);return r.add(i)}},{key:"selfAdd",value:function(){if(1===arguments.length){if(arguments[0]instanceof e){var t=arguments[0];return this.selfAdd(t._hi,t._lo)}if("number"==typeof arguments[0]){var n=arguments[0],r=null,i=null,o=null,s=null,a=null,u=null;return s=(o=this._hi+n)-(a=o-this._hi),i=(u=(s=n-a+(this._hi-s))+this._lo)+(o-(r=o+u)),this._hi=r+i,this._lo=i+(r-this._hi),this}}else if(2===arguments.length){var l=arguments[0],h=arguments[1],c=null,f=null,g=null,p=null,v=null,d=null,y=null;p=this._hi+l,f=this._lo+h,v=p-(d=p-this._hi),g=f-(y=f-this._lo);var m=(c=p+(d=(v=l-d+(this._hi-v))+f))+(d=(g=h-y+(this._lo-g))+(d+(p-c))),_=d+(c-m);return this._hi=m,this._lo=_,this}}},{key:"selfMultiply",value:function(){if(1===arguments.length){if(arguments[0]instanceof e){var t=arguments[0];return this.selfMultiply(t._hi,t._lo)}if("number"==typeof arguments[0]){var n=arguments[0];return this.selfMultiply(n,0)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1],o=null,s=null,a=null,u=null,l=null,h=null;o=(l=e.SPLIT*this._hi)-this._hi,h=e.SPLIT*r,o=l-o,s=this._hi-o,a=h-r;var c=(l=this._hi*r)+(h=o*(a=h-a)-l+o*(u=r-a)+s*a+s*u+(this._hi*i+this._lo*r)),f=h+(o=l-c);return this._hi=c,this._lo=f,this}}},{key:"selfSqr",value:function(){return this.selfMultiply(this)}},{key:"floor",value:function(){if(this.isNaN())return e.NaN;var t=Math.floor(this._hi),n=0;return t===this._hi&&(n=Math.floor(this._lo)),new e(t,n)}},{key:"negate",value:function(){return this.isNaN()?this:new e(-this._hi,-this._lo)}},{key:"clone",value:function(){try{return null}catch(t){if(t instanceof CloneNotSupportedException)return null;throw t}}},{key:"multiply",value:function(){if(arguments[0]instanceof e){var t=arguments[0];return t.isNaN()?e.createNaN():e.copy(this).selfMultiply(t)}if("number"==typeof arguments[0]){var n=arguments[0];return A.isNaN(n)?e.createNaN():e.copy(this).selfMultiply(n,0)}}},{key:"isNaN",value:function(){return A.isNaN(this._hi)}},{key:"intValue",value:function(){return Math.trunc(this._hi)}},{key:"toString",value:function(){var t=e.magnitude(this._hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()}},{key:"toStandardNotation",value:function(){var t=this.getSpecialNumberString();if(null!==t)return t;var n=new Array(1).fill(null),r=this.extractSignificantDigits(!0,n),i=n[0]+1,o=r;if("."===r.charAt(0))o="0"+r;else if(i<0)o="0."+e.stringOfChar("0",-i)+r;else if(-1===r.indexOf(".")){var s=i-r.length;o=r+e.stringOfChar("0",s)+".0"}return this.isNegative()?"-"+o:o}},{key:"reciprocal",value:function(){var t,n,r,i,o=null,s=null,a=null,u=null;t=(r=1/this._hi)-(o=(a=e.SPLIT*r)-(o=a-r)),s=(u=e.SPLIT*this._hi)-this._hi;var l=r+(a=(1-(i=r*this._hi)-(u=o*(s=u-s)-i+o*(n=this._hi-s)+t*s+t*n)-r*this._lo)/this._hi);return new e(l,r-l+a)}},{key:"toSciNotation",value:function(){if(this.isZero())return e.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(null!==t)return t;var n=new Array(1).fill(null),r=this.extractSignificantDigits(!1,n),i=e.SCI_NOT_EXPONENT_CHAR+n[0];if("0"===r.charAt(0))throw new IllegalStateException("Found leading zero: "+r);var o="";r.length>1&&(o=r.substring(1));var s=r.charAt(0)+"."+o;return this.isNegative()?"-"+s+i:s+i}},{key:"abs",value:function(){return this.isNaN()?e.NaN:this.isNegative()?this.negate():new e(this)}},{key:"isPositive",value:function(){return this._hi>0||0===this._hi&&this._lo>0}},{key:"lt",value:function(t){return this._hit._hi||this._hi===t._hi&&this._lo>t._lo}},{key:"isNegative",value:function(){return this._hi<0||0===this._hi&&this._lo<0}},{key:"trunc",value:function(){return this.isNaN()?e.NaN:this.isPositive()?this.floor():this.ceil()}},{key:"signum",value:function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0}},{key:"interfaces_",get:function(){return[w,k,b]}}],[{key:"constructor_",value:function(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length){if("number"==typeof arguments[0]){var t=arguments[0];this.init(t)}else if(arguments[0]instanceof e){var n=arguments[0];this.init(n)}else if("string"==typeof arguments[0]){var r=arguments[0];e.constructor_.call(this,e.parse(r))}}else if(2===arguments.length){var i=arguments[0],o=arguments[1];this.init(i,o)}}},{key:"determinant",value:function(){if("number"==typeof arguments[3]&&"number"==typeof arguments[2]&&"number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],n=arguments[1],r=arguments[2],i=arguments[3];return e.determinant(e.valueOf(t),e.valueOf(n),e.valueOf(r),e.valueOf(i))}if(arguments[3]instanceof e&&arguments[2]instanceof e&&arguments[0]instanceof e&&arguments[1]instanceof e){var o=arguments[1],s=arguments[2],a=arguments[3];return arguments[0].multiply(a).selfSubtract(o.multiply(s))}}},{key:"sqr",value:function(t){return e.valueOf(t).selfMultiply(t)}},{key:"valueOf",value:function(){if("string"==typeof arguments[0]){var t=arguments[0];return e.parse(t)}if("number"==typeof arguments[0])return new e(arguments[0])}},{key:"sqrt",value:function(t){return e.valueOf(t).sqrt()}},{key:"parse",value:function(t){for(var n=0,r=t.length;ut.isWhitespace(t.charAt(n));)n++;var i=!1;if(n=r);){var c=t.charAt(n);if(n++,ut.isDigit(c)){var f=c-"0";s.selfMultiply(e.TEN),s.selfAdd(f),a++}else{if("."!==c){if("e"===c||"E"===c){var g=t.substring(n);try{l=at.parseInt(g)}catch(e){throw e instanceof NumberFormatException?new NumberFormatException("Invalid exponent "+g+" in string "+t):e}break}throw new NumberFormatException("Unexpected character '"+c+"' at position "+n+" in string "+t)}u=a,h=!0}}var p=s;h||(u=a);var v=a-u-l;if(0===v)p=s;else if(v>0){var d=e.TEN.pow(v);p=s.divide(d)}else if(v<0){var y=e.TEN.pow(-v);p=s.multiply(y)}return i?p.negate():p}},{key:"createNaN",value:function(){return new e(A.NaN,A.NaN)}},{key:"copy",value:function(t){return new e(t)}},{key:"magnitude",value:function(t){var e=Math.abs(t),n=Math.log(e)/Math.log(10),r=Math.trunc(Math.floor(n));return 10*Math.pow(10,r)<=e&&(r+=1),r}},{key:"stringOfChar",value:function(t,e){for(var n=new st,r=0;r0){if(s<=0)return e.signum(a);i=o+s}else{if(!(o<0))return e.signum(a);if(s>=0)return e.signum(a);i=-o-s}var u=e.DP_SAFE_EPSILON*i;return a>=u||-a>=u?e.signum(a):2}},{key:"signum",value:function(t){return t>0?1:t<0?-1:0}}]),e}();ht.DP_SAFE_EPSILON=1e-15;var ct=function(){function e(){t(this,e)}return n(e,[{key:"getM",value:function(t){if(this.hasM()){var e=this.getDimension()-this.getMeasures();return this.getOrdinate(t,e)}return A.NaN}},{key:"setOrdinate",value:function(t,e,n){}},{key:"getZ",value:function(t){return this.hasZ()?this.getOrdinate(t,2):A.NaN}},{key:"size",value:function(){}},{key:"getOrdinate",value:function(t,e){}},{key:"getCoordinate",value:function(){}},{key:"getCoordinateCopy",value:function(t){}},{key:"createCoordinate",value:function(){}},{key:"getDimension",value:function(){}},{key:"hasM",value:function(){return this.getMeasures()>0}},{key:"getX",value:function(t){}},{key:"hasZ",value:function(){return this.getDimension()-this.getMeasures()>2}},{key:"getMeasures",value:function(){return 0}},{key:"expandEnvelope",value:function(t){}},{key:"copy",value:function(){}},{key:"getY",value:function(t){}},{key:"toCoordinateArray",value:function(){}},{key:"interfaces_",get:function(){return[b]}}]),e}();ct.X=0,ct.Y=1,ct.Z=2,ct.M=3;var ft=function(){function e(){t(this,e)}return n(e,null,[{key:"index",value:function(t,e,n){return ht.orientationIndex(t,e,n)}},{key:"isCCW",value:function(){if(arguments[0]instanceof Array){var t=arguments[0],n=t.length-1;if(n<3)throw new x("Ring has fewer than 4 points, so orientation cannot be determined");for(var r=t[0],i=0,o=1;o<=n;o++){var s=t[o];s.y>r.y&&(r=s,i=o)}var a=i;do{(a-=1)<0&&(a=n)}while(t[a].equals2D(r)&&a!==i);var u=i;do{u=(u+1)%n}while(t[u].equals2D(r)&&u!==i);var l=t[a],h=t[u];if(l.equals2D(r)||h.equals2D(r)||l.equals2D(h))return!1;var c=e.index(l,r,h);return 0===c?l.x>h.x:c>0}if(ot(arguments[0],ct)){var f=arguments[0],g=f.size()-1;if(g<3)throw new x("Ring has fewer than 4 points, so orientation cannot be determined");for(var p=f.getCoordinate(0),v=0,d=1;d<=g;d++){var y=f.getCoordinate(d);y.y>p.y&&(p=y,v=d)}var m=null,_=v;do{(_-=1)<0&&(_=g),m=f.getCoordinate(_)}while(m.equals2D(p)&&_!==v);var E=null,k=v;do{k=(k+1)%g,E=f.getCoordinate(k)}while(E.equals2D(p)&&k!==v);if(m.equals2D(p)||E.equals2D(p)||m.equals2D(E))return!1;var b=e.index(m,p,E);return 0===b?m.x>E.x:b>0}}}]),e}();ft.CLOCKWISE=-1,ft.RIGHT=ft.CLOCKWISE,ft.COUNTERCLOCKWISE=1,ft.LEFT=ft.COUNTERCLOCKWISE,ft.COLLINEAR=0,ft.STRAIGHT=ft.COLLINEAR;var gt=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"getCoordinate",value:function(){return this._minCoord}},{key:"getRightmostSide",value:function(t,e){var n=this.getRightmostSideOfSegment(t,e);return n<0&&(n=this.getRightmostSideOfSegment(t,e-1)),n<0&&(this._minCoord=null,this.checkForRightmostCoordinate(t)),n}},{key:"findRightmostEdgeAtVertex",value:function(){var t=this._minDe.getEdge().getCoordinates();V.isTrue(this._minIndex>0&&this._minIndexthis._minCoord.y&&n.y>this._minCoord.y&&r===ft.CLOCKWISE)&&(i=!0),i&&(this._minIndex=this._minIndex-1)}},{key:"getRightmostSideOfSegment",value:function(t,e){var n=t.getEdge().getCoordinates();if(e<0||e+1>=n.length)return-1;if(n[e].y===n[e+1].y)return-1;var r=tt.LEFT;return n[e].ythis._minCoord.x)&&(this._minDe=t,this._minIndex=n,this._minCoord=e[n])}},{key:"findRightmostEdgeAtNode",value:function(){var t=this._minDe.getNode().getEdges();this._minDe=t.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)}},{key:"findEdge",value:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();n.isForward()&&this.checkForRightmostCoordinate(n)}V.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===tt.LEFT&&(this._orientedDe=this._minDe.getSym())}}],[{key:"constructor_",value:function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null}}]),e}(),pt=function(e){r(o,e);var i=c(o);function o(e,n){var r;return t(this,o),(r=i.call(this,n?e+" [ "+n+" ]":e)).pt=n?new z(n):void 0,r.name=Object.keys({TopologyException:o})[0],r}return n(o,[{key:"getCoordinate",value:function(){return this.pt}}]),o}(F),vt=function(){function e(){t(this,e),this.array=[]}return n(e,[{key:"addLast",value:function(t){this.array.push(t)}},{key:"removeFirst",value:function(){return this.array.shift()}},{key:"isEmpty",value:function(){return 0===this.array.length}}]),e}(),dt=function(e,i){r(s,e);var o=c(s);function s(e){var n;return t(this,s),(n=o.call(this)).array=[],e instanceof H&&n.addAll(e),n}return n(s,[{key:"interfaces_",get:function(){return[rt,H]}},{key:"ensureCapacity",value:function(){}},{key:"add",value:function(t){return 1===arguments.length?this.array.push(t):this.array.splice(arguments[0],0,arguments[1]),!0}},{key:"clear",value:function(){this.array=[]}},{key:"addAll",value:function(t){var e,n=d(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.array.push(r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"set",value:function(t,e){var n=this.array[t];return this.array[t]=e,n}},{key:"iterator",value:function(){return new yt(this)}},{key:"get",value:function(t){if(t<0||t>=this.size())throw new nt;return this.array[t]}},{key:"isEmpty",value:function(){return 0===this.array.length}},{key:"sort",value:function(t){t?this.array.sort((function(e,n){return t.compare(e,n)})):this.array.sort()}},{key:"size",value:function(){return this.array.length}},{key:"toArray",value:function(){return this.array.slice()}},{key:"remove",value:function(t){for(var e=0,n=this.array.length;e=1&&e.getDepth(tt.LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}}},{key:"computeDepths",value:function(t){var e=new Q,n=new vt,r=t.getNode();for(n.addLast(r),e.add(r),t.setVisited(!0);!n.isEmpty();){var i=n.removeFirst();e.add(i),this.computeNodeDepth(i);for(var o=i.getEdges().iterator();o.hasNext();){var s=o.next().getSym();if(!s.isVisited()){var a=s.getNode();e.contains(a)||(n.addLast(a),e.add(a))}}}}},{key:"compareTo",value:function(t){var e=t;return this._rightMostCoord.xe._rightMostCoord.x?1:0}},{key:"getEnvelope",value:function(){if(null===this._env){for(var t=new X,e=this._dirEdgeList.iterator();e.hasNext();)for(var n=e.next().getEdge().getCoordinates(),r=0;re.x?t.x:e.x,a=t.y>e.y?t.y:e.y,u=n.xr.x?n.x:r.x,c=n.y>r.y?n.y:r.y,f=((i>u?i:u)+(sl?o:l)+(an?n:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var r=arguments[0],i=arguments[1],o=arguments[2];return ro?o:r}}},{key:"wrap",value:function(t,e){return t<0?e- -t%e:t%e}},{key:"max",value:function(){if(3===arguments.length){var t=arguments[1],e=arguments[2],n=arguments[0];return t>n&&(n=t),e>n&&(n=e),n}if(4===arguments.length){var r=arguments[1],i=arguments[2],o=arguments[3],s=arguments[0];return r>s&&(s=r),i>s&&(s=i),o>s&&(s=o),s}}},{key:"average",value:function(t,e){return(t+e)/2}}]),e}();Et.LOG_10=Math.log(10);var kt=function(){function e(){t(this,e)}return n(e,null,[{key:"segmentToSegment",value:function(t,n,r,i){if(t.equals(n))return e.pointToSegment(t,r,i);if(r.equals(i))return e.pointToSegment(i,t,n);var o=!1;if(X.intersects(t,n,r,i)){var s=(n.x-t.x)*(i.y-r.y)-(n.y-t.y)*(i.x-r.x);if(0===s)o=!0;else{var a=(t.y-r.y)*(i.x-r.x)-(t.x-r.x)*(i.y-r.y),u=((t.y-r.y)*(n.x-t.x)-(t.x-r.x)*(n.y-t.y))/s,l=a/s;(l<0||l>1||u<0||u>1)&&(o=!0)}}else o=!0;return o?Et.min(e.pointToSegment(t,r,i),e.pointToSegment(n,r,i),e.pointToSegment(r,t,n),e.pointToSegment(i,t,n)):0}},{key:"pointToSegment",value:function(t,e,n){if(e.x===n.x&&e.y===n.y)return t.distance(e);var r=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),i=((t.x-e.x)*(n.x-e.x)+(t.y-e.y)*(n.y-e.y))/r;if(i<=0)return t.distance(e);if(i>=1)return t.distance(n);var o=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/r;return Math.abs(o)*Math.sqrt(r)}},{key:"pointToLinePerpendicular",value:function(t,e,n){var r=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),i=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/r;return Math.abs(i)*Math.sqrt(r)}},{key:"pointToSegmentString",value:function(t,n){if(0===n.length)throw new x("Line array must contain at least one vertex");for(var r=t.distance(n[0]),i=0;i0)&&(o=a,i=s)}return i}}},{key:"extend",value:function(t,n,r){var i=t.create(r,n.getDimension()),o=n.size();if(e.copy(n,0,i,0,o),o>0)for(var s=o;s0)&&(e=r)}return e}}]),e}(),Mt=function(){function e(){t(this,e)}return n(e,null,[{key:"toDimensionSymbol",value:function(t){switch(t){case e.FALSE:return e.SYM_FALSE;case e.TRUE:return e.SYM_TRUE;case e.DONTCARE:return e.SYM_DONTCARE;case e.P:return e.SYM_P;case e.L:return e.SYM_L;case e.A:return e.SYM_A}throw new x("Unknown dimension value: "+t)}},{key:"toDimensionValue",value:function(t){switch(ut.toUpperCase(t)){case e.SYM_FALSE:return e.FALSE;case e.SYM_TRUE:return e.TRUE;case e.SYM_DONTCARE:return e.DONTCARE;case e.SYM_P:return e.P;case e.SYM_L:return e.L;case e.SYM_A:return e.A}throw new x("Unknown dimension symbol: "+t)}}]),e}();Mt.P=0,Mt.L=1,Mt.A=2,Mt.FALSE=-1,Mt.TRUE=-2,Mt.DONTCARE=-3,Mt.SYM_FALSE="F",Mt.SYM_TRUE="T",Mt.SYM_DONTCARE="*",Mt.SYM_P="0",Mt.SYM_L="1",Mt.SYM_A="2";var Lt=function(){function e(){t(this,e)}return n(e,[{key:"filter",value:function(t){}}]),e}(),Pt=function(){function e(){t(this,e)}return n(e,[{key:"filter",value:function(t,e){}},{key:"isDone",value:function(){}},{key:"isGeometryChanged",value:function(){}}]),e}(),Ct=function(e){r(s,e);var o=c(s);function s(){var e;return t(this,s),e=o.call(this),s.constructor_.apply(l(e),arguments),e}return n(s,[{key:"computeEnvelopeInternal",value:function(){return this.isEmpty()?new X:this._points.expandEnvelope(new X)}},{key:"isRing",value:function(){return this.isClosed()&&this.isSimple()}},{key:"getCoordinates",value:function(){return this._points.toCoordinateArray()}},{key:"copyInternal",value:function(){return new s(this._points.copy(),this._factory)}},{key:"equalsExact",value:function(){if(2===arguments.length&&"number"==typeof arguments[1]&&arguments[0]instanceof U){var t=arguments[0],e=arguments[1];if(!this.isEquivalentClass(t))return!1;var n=t;if(this._points.size()!==n._points.size())return!1;for(var r=0;r0){var n=this._points.copy();St.reverse(n),this._points=n}return null}}}},{key:"getCoordinate",value:function(){return this.isEmpty()?null:this._points.getCoordinate(0)}},{key:"getBoundaryDimension",value:function(){return this.isClosed()?Mt.FALSE:0}},{key:"isClosed",value:function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))}},{key:"reverseInternal",value:function(){var t=this._points.copy();return St.reverse(t),this.getFactory().createLineString(t)}},{key:"getEndPoint",value:function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)}},{key:"getTypeCode",value:function(){return U.TYPECODE_LINESTRING}},{key:"getDimension",value:function(){return 1}},{key:"getLength",value:function(){return It.ofLine(this._points)}},{key:"getNumPoints",value:function(){return this._points.size()}},{key:"compareToSameClass",value:function(){if(1===arguments.length){for(var t=arguments[0],e=0,n=0;e= 2)");this._points=t}},{key:"isCoordinate",value:function(t){for(var e=0;e=1&&this.getCoordinateSequence().size()= 4)")}},{key:"getGeometryType",value:function(){return U.TYPENAME_LINEARRING}}],[{key:"constructor_",value:function(){var t=arguments[0],e=arguments[1];Ct.constructor_.call(this,t,e),this.validateConstruction()}}]),s}(Ct);zt.MINIMUM_VALID_SIZE=4;var jt=function(e){r(o,e);var i=c(o);function o(){var e;return t(this,o),e=i.call(this),o.constructor_.apply(l(e),arguments),e}return n(o,[{key:"setOrdinate",value:function(t,e){switch(t){case o.X:this.x=e;break;case o.Y:this.y=e;break;default:throw new x("Invalid ordinate index: "+t)}}},{key:"getZ",value:function(){return z.NULL_ORDINATE}},{key:"getOrdinate",value:function(t){switch(t){case o.X:return this.x;case o.Y:return this.y}throw new x("Invalid ordinate index: "+t)}},{key:"setZ",value:function(t){throw new x("CoordinateXY dimension 2 does not support z-ordinate")}},{key:"copy",value:function(){return new o(this)}},{key:"toString",value:function(){return"("+this.x+", "+this.y+")"}},{key:"setCoordinate",value:function(t){this.x=t.x,this.y=t.y,this.z=t.getZ()}}],[{key:"constructor_",value:function(){if(0===arguments.length)z.constructor_.call(this);else if(1===arguments.length){if(arguments[0]instanceof o){var t=arguments[0];z.constructor_.call(this,t.x,t.y)}else if(arguments[0]instanceof z){var e=arguments[0];z.constructor_.call(this,e.x,e.y)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];z.constructor_.call(this,n,r,z.NULL_ORDINATE)}}}]),o}(z);jt.X=0,jt.Y=1,jt.Z=-1,jt.M=-1;var Xt=function(e){r(o,e);var i=c(o);function o(){var e;return t(this,o),e=i.call(this),o.constructor_.apply(l(e),arguments),e}return n(o,[{key:"getM",value:function(){return this._m}},{key:"setOrdinate",value:function(t,e){switch(t){case o.X:this.x=e;break;case o.Y:this.y=e;break;case o.M:this._m=e;break;default:throw new x("Invalid ordinate index: "+t)}}},{key:"setM",value:function(t){this._m=t}},{key:"getZ",value:function(){return z.NULL_ORDINATE}},{key:"getOrdinate",value:function(t){switch(t){case o.X:return this.x;case o.Y:return this.y;case o.M:return this._m}throw new x("Invalid ordinate index: "+t)}},{key:"setZ",value:function(t){throw new x("CoordinateXY dimension 2 does not support z-ordinate")}},{key:"copy",value:function(){return new o(this)}},{key:"toString",value:function(){return"("+this.x+", "+this.y+" m="+this.getM()+")"}},{key:"setCoordinate",value:function(t){this.x=t.x,this.y=t.y,this.z=t.getZ(),this._m=t.getM()}}],[{key:"constructor_",value:function(){if(this._m=null,0===arguments.length)z.constructor_.call(this),this._m=0;else if(1===arguments.length){if(arguments[0]instanceof o){var t=arguments[0];z.constructor_.call(this,t.x,t.y),this._m=t._m}else if(arguments[0]instanceof z){var e=arguments[0];z.constructor_.call(this,e.x,e.y),this._m=this.getM()}}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];z.constructor_.call(this,n,r,z.NULL_ORDINATE),this._m=i}}}]),o}(z);Xt.X=0,Xt.Y=1,Xt.Z=-1,Xt.M=2;var Ut=function(e){r(o,e);var i=c(o);function o(){var e;return t(this,o),e=i.call(this),o.constructor_.apply(l(e),arguments),e}return n(o,[{key:"getM",value:function(){return this._m}},{key:"setOrdinate",value:function(t,e){switch(t){case z.X:this.x=e;break;case z.Y:this.y=e;break;case z.Z:this.z=e;break;case z.M:this._m=e;break;default:throw new x("Invalid ordinate index: "+t)}}},{key:"setM",value:function(t){this._m=t}},{key:"getOrdinate",value:function(t){switch(t){case z.X:return this.x;case z.Y:return this.y;case z.Z:return this.getZ();case z.M:return this.getM()}throw new x("Invalid ordinate index: "+t)}},{key:"copy",value:function(){return new o(this)}},{key:"toString",value:function(){return"("+this.x+", "+this.y+", "+this.getZ()+" m="+this.getM()+")"}},{key:"setCoordinate",value:function(t){this.x=t.x,this.y=t.y,this.z=t.getZ(),this._m=t.getM()}}],[{key:"constructor_",value:function(){if(this._m=null,0===arguments.length)z.constructor_.call(this),this._m=0;else if(1===arguments.length){if(arguments[0]instanceof o){var t=arguments[0];z.constructor_.call(this,t),this._m=t._m}else if(arguments[0]instanceof z){var e=arguments[0];z.constructor_.call(this,e),this._m=this.getM()}}else if(4===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],s=arguments[3];z.constructor_.call(this,n,r,i),this._m=s}}}]),o}(z),Zt=function(){function e(){t(this,e)}return n(e,null,[{key:"measures",value:function(t){return t instanceof jt?0:t instanceof Xt||t instanceof Ut?1:0}},{key:"dimension",value:function(t){return t instanceof jt?2:t instanceof Xt?3:t instanceof Ut?4:3}},{key:"create",value:function(){if(1===arguments.length){var t=arguments[0];return e.create(t,0)}if(2===arguments.length){var n=arguments[0],r=arguments[1];return 2===n?new jt:3===n&&0===r?new z:3===n&&1===r?new Xt:4===n&&1===r?new Ut:new z}}}]),e}(),Ht=function(e){r(s,e);var o=c(s);function s(){var e;return t(this,s),e=o.call(this),s.constructor_.apply(l(e),arguments),e}return n(s,[{key:"getCoordinate",value:function(t){return this.get(t)}},{key:"addAll",value:function(){if(2===arguments.length&&"boolean"==typeof arguments[1]&&ot(arguments[0],H)){for(var t=arguments[1],e=!1,n=arguments[0].iterator();n.hasNext();)this.add(n.next(),t),e=!0;return e}return f(i(s.prototype),"addAll",this).apply(this,arguments)}},{key:"clone",value:function(){for(var t=f(i(s.prototype),"clone",this).call(this),e=0;e=1&&this.get(this.size()-1).equals2D(r))return null;f(i(s.prototype),"add",this).call(this,r)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var o=arguments[0],a=arguments[1];return this.add(o,a),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var u=arguments[0],l=arguments[1];if(arguments[2])for(var h=0;h=0;c--)this.add(u[c],l);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof z){var g=arguments[0],p=arguments[1];if(!arguments[2]){var v=this.size();if(v>0){if(g>0&&this.get(g-1).equals2D(p))return null;if(g_&&(x=-1);for(var E=m;E!==_;E+=x)this.add(d[E],y);return!0}}},{key:"closeRing",value:function(){if(this.size()>0){var t=this.get(0).copy();this.add(t,!1)}}}],[{key:"constructor_",value:function(){if(0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.ensureCapacity(t.length),this.add(t,!0)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.ensureCapacity(e.length),this.add(e,n)}}}]),s}(dt);Ht.coordArrayType=new Array(0).fill(null);var Wt=function(){function e(){t(this,e)}return n(e,null,[{key:"isRing",value:function(t){return!(t.length<4||!t[0].equals2D(t[t.length-1]))}},{key:"ptNotInList",value:function(t,n){for(var r=0;r=t?e:[]}},{key:"indexOf",value:function(t,e){for(var n=0;n0)&&(e=t[n]);return e}},{key:"extract",value:function(t,e,n){e=Et.clamp(e,0,t.length);var r=(n=Et.clamp(n,-1,t.length))-e+1;n<0&&(r=0),e>=t.length&&(r=0),nr.length)return 1;if(0===n.length)return 0;var i=Wt.compare(n,r);return Wt.isEqualReversed(n,r)?0:i}},{key:"OLDcompare",value:function(t,e){var n=t,r=e;if(n.lengthr.length)return 1;if(0===n.length)return 0;for(var i=Wt.increasingDirection(n),o=Wt.increasingDirection(r),s=i>0?0:n.length-1,a=o>0?0:n.length-1,u=0;u0){var t=new Qt(17*this._coordinates.length);t.append("("),t.append(this._coordinates[0]);for(var e=1;e3&&(t=3),t<2&&(t=2),new $t(arguments[0],t)}if(3===arguments.length){var e=arguments[2],n=arguments[1]-e;return e>1&&(e=1),n>3&&(n=3),n<2&&(n=2),new $t(arguments[0],n+e,e)}}}},{key:"interfaces_",get:function(){return[bt,w]}}],[{key:"instance",value:function(){return e.instanceObject}}]),e}();te.instanceObject=new te;var ee=function(e){r(s,e);var o=c(s);function s(){var e;return t(this,s),e=o.call(this),s.constructor_.apply(l(e),arguments),e}return n(s,[{key:"copyInternal",value:function(){for(var t=new Array(this._geometries.length).fill(null),e=0;e=0?t:e}}]),e}(),oe=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"readResolve",value:function(){return e.nameToTypeMap.get(this._name)}},{key:"toString",value:function(){return this._name}},{key:"interfaces_",get:function(){return[w]}}],[{key:"constructor_",value:function(){this._name=null;var t=arguments[0];this._name=t,e.nameToTypeMap.put(t,this)}}]),e}();oe.nameToTypeMap=new re,ie.Type=oe,ie.FIXED=new oe("FIXED"),ie.FLOATING=new oe("FLOATING"),ie.FLOATING_SINGLE=new oe("FLOATING SINGLE"),ie.maximumPreciseValue=9007199254740992;var se=function(e){r(s,e);var o=c(s);function s(){var e;return t(this,s),e=o.call(this),s.constructor_.apply(l(e),arguments),e}return n(s,[{key:"copyInternal",value:function(){for(var t=new Array(this._geometries.length).fill(null),e=0;e1){if(u instanceof Ft)return this.createMultiPolygon(e.toPolygonArray(t));if(u instanceof Ct)return this.createMultiLineString(e.toLineStringArray(t));if(u instanceof Ot)return this.createMultiPoint(e.toPointArray(t));V.shouldNeverReachHere("Unhandled geometry type: "+u.getGeometryType())}return u}},{key:"createMultiPointFromCoords",value:function(t){return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)}},{key:"createPoint",value:function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof z){var t=arguments[0];return this.createPoint(null!==t?this.getCoordinateSequenceFactory().create([t]):null)}if(ot(arguments[0],ct))return new Ot(arguments[0],this)}}},{key:"getCoordinateSequenceFactory",value:function(){return this._coordinateSequenceFactory}},{key:"createPolygon",value:function(){if(0===arguments.length)return this.createPolygon(null,null);if(1===arguments.length){if(ot(arguments[0],ct)){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof Array){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof zt){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length)return new Ft(arguments[0],arguments[1],this)}},{key:"getSRID",value:function(){return this._SRID}},{key:"createGeometryCollection",value:function(){return 0===arguments.length?new Bt(null,this):1===arguments.length?new Bt(arguments[0],this):void 0}},{key:"getPrecisionModel",value:function(){return this._precisionModel}},{key:"createLinearRing",value:function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLinearRing(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(ot(arguments[0],ct))return new zt(arguments[0],this)}}},{key:"createMultiPolygon",value:function(){return 0===arguments.length?new ee(null,this):1===arguments.length?new ee(arguments[0],this):void 0}},{key:"createMultiPoint",value:function(){if(0===arguments.length)return new Yt(null,this);if(1===arguments.length){if(arguments[0]instanceof Array)return new Yt(arguments[0],this);if(ot(arguments[0],ct)){var t=arguments[0];if(null===t)return this.createMultiPoint(new Array(0).fill(null));for(var e=new Array(t.size()).fill(null),n=0;n="a"&&t<="z"||t>="A"&&t<="Z"}},{key:"isNumeric_",value:function(t,e){return t>="0"&&t<="9"||"."==t&&!(void 0!==e&&e)}},{key:"isWhiteSpace_",value:function(t){return" "==t||"\t"==t||"\r"==t||"\n"==t}},{key:"nextChar_",value:function(){return this.wkt.charAt(++this.index_)}},{key:"nextToken",value:function(){var t,e=this.nextChar_(),n=this.index_,r=e;if("("==e)t=ve;else if(","==e)t=me;else if(")"==e)t=de;else if(this.isNumeric_(e)||"-"==e)t=ye,r=this.readNumber_();else if(this.isAlpha_(e))t=pe,r=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(""!==e)throw new Error("Unexpected character: "+e);t=_e}return{position:n,value:r,type:t}}},{key:"readNumber_",value:function(){var t,e=this.index_,n=!1,r=!1;do{"."==t?n=!0:"e"!=t&&"E"!=t||(r=!0),t=this.nextChar_()}while(this.isNumeric_(t,n)||!r&&("e"==t||"E"==t)||r&&("-"==t||"+"==t));return parseFloat(this.wkt.substring(e,this.index_--))}},{key:"readText_",value:function(){var t,e=this.index_;do{t=this.nextChar_()}while(this.isAlpha_(t));return this.wkt.substring(e,this.index_--).toUpperCase()}}]),e}(),ke=function(){function e(n,r){t(this,e),this.lexer_=n,this.token_,this.layout_=ue,this.factory=r}return n(e,[{key:"consume_",value:function(){this.token_=this.lexer_.nextToken()}},{key:"isTokenType",value:function(t){return this.token_.type==t}},{key:"match",value:function(t){var e=this.isTokenType(t);return e&&this.consume_(),e}},{key:"parse",value:function(){return this.consume_(),this.parseGeometry_()}},{key:"parseGeometryLayout_",value:function(){var t=ue,e=this.token_;if(this.isTokenType(pe)){var n=e.value;"Z"===n?t=le:"M"===n?t=he:"ZM"===n&&(t=ce),t!==ue&&this.consume_()}return t}},{key:"parseGeometryCollectionText_",value:function(){if(this.match(ve)){var t=[];do{t.push(this.parseGeometry_())}while(this.match(me));if(this.match(de))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parsePointText_",value:function(){if(this.match(ve)){var t=this.parsePoint_();if(this.match(de))return t}else if(this.isEmptyGeometry_())return null;throw new Error(this.formatErrorMessage_())}},{key:"parseLineStringText_",value:function(){if(this.match(ve)){var t=this.parsePointList_();if(this.match(de))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parsePolygonText_",value:function(){if(this.match(ve)){var t=this.parseLineStringTextList_();if(this.match(de))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parseMultiPointText_",value:function(){var t;if(this.match(ve)){if(t=this.token_.type==ve?this.parsePointTextList_():this.parsePointList_(),this.match(de))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parseMultiLineStringText_",value:function(){if(this.match(ve)){var t=this.parseLineStringTextList_();if(this.match(de))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parseMultiPolygonText_",value:function(){if(this.match(ve)){var t=this.parsePolygonTextList_();if(this.match(de))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parsePoint_",value:function(){for(var t=[],e=this.layout_.length,n=0;n1?t.createPolygon(r[0],r.slice(1)):t.createPolygon(r[0])},r=this.token_;if(this.match(pe)){var i=r.value;if(this.layout_=this.parseGeometryLayout_(),"GEOMETRYCOLLECTION"==i){var o=this.parseGeometryCollectionText_();return t.createGeometryCollection(o)}switch(i){case"POINT":var s=this.parsePointText_();return s?t.createPoint(a(z,g(s))):t.createPoint();case"LINESTRING":var u=this.parseLineStringText_().map(e);return t.createLineString(u);case"LINEARRING":var l=this.parseLineStringText_().map(e);return t.createLinearRing(l);case"POLYGON":var h=this.parsePolygonText_();return h&&0!==h.length?n(h):t.createPolygon();case"MULTIPOINT":var c=this.parseMultiPointText_();if(!c||0===c.length)return t.createMultiPoint();var f=c.map(e).map((function(e){return t.createPoint(e)}));return t.createMultiPoint(f);case"MULTILINESTRING":var p=this.parseMultiLineStringText_().map((function(n){return t.createLineString(n.map(e))}));return t.createMultiLineString(p);case"MULTIPOLYGON":var v=this.parseMultiPolygonText_();if(!v||0===v.length)return t.createMultiPolygon();var d=v.map(n);return t.createMultiPolygon(d);default:throw new Error("Invalid geometry type: "+i)}}throw new Error(this.formatErrorMessage_())}}]),e}();function be(t){if(t.isEmpty())return"";var e=t.getCoordinate(),n=[e.x,e.y];return void 0===e.z||Number.isNaN(e.z)||n.push(e.z),void 0===e.m||Number.isNaN(e.m)||n.push(e.m),n.join(" ")}function we(t){for(var e=t.getCoordinates().map((function(t){var e=[t.x,t.y];return void 0===t.z||Number.isNaN(t.z)||e.push(t.z),void 0===t.m||Number.isNaN(t.m)||e.push(t.m),e})),n=[],r=0,i=e.length;r0&&(e+=" "+r),t.isEmpty()?e+" "+ge:e+" ("+n(t)+")"}var Me=function(){function e(n){t(this,e),this.geometryFactory=n||new ae,this.precisionModel=this.geometryFactory.getPrecisionModel()}return n(e,[{key:"read",value:function(t){var e=new Ee(t);return new ke(e,this.geometryFactory).parse()}},{key:"write",value:function(t){return Se(t)}}]),e}(),Le=function(){function e(n){t(this,e),this.parser=new Me(n)}return n(e,[{key:"write",value:function(t){return this.parser.write(t)}}],[{key:"toLineString",value:function(t,e){if(2!==arguments.length)throw new Error("Not implemented");return"LINESTRING ( "+t.x+" "+t.y+", "+e.x+" "+e.y+" )"}}]),e}(),Pe=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"getIndexAlongSegment",value:function(t,e){return this.computeIntLineIndex(),this._intLineIndex[t][e]}},{key:"getTopologySummary",value:function(){var t=new Qt;return this.isEndPoint()&&t.append(" endpoint"),this._isProper&&t.append(" proper"),this.isCollinear()&&t.append(" collinear"),t.toString()}},{key:"computeIntersection",value:function(t,e,n,r){this._inputLines[0][0]=t,this._inputLines[0][1]=e,this._inputLines[1][0]=n,this._inputLines[1][1]=r,this._result=this.computeIntersect(t,e,n,r)}},{key:"getIntersectionNum",value:function(){return this._result}},{key:"computeIntLineIndex",value:function(){if(0===arguments.length)null===this._intLineIndex&&(this._intLineIndex=Array(2).fill().map((function(){return Array(2)})),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(1===arguments.length){var t=arguments[0];this.getEdgeDistance(t,0)>this.getEdgeDistance(t,1)?(this._intLineIndex[t][0]=0,this._intLineIndex[t][1]=1):(this._intLineIndex[t][0]=1,this._intLineIndex[t][1]=0)}}},{key:"isProper",value:function(){return this.hasIntersection()&&this._isProper}},{key:"setPrecisionModel",value:function(t){this._precisionModel=t}},{key:"isInteriorIntersection",value:function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var t=arguments[0],e=0;ei?r:i;else{var s=Math.abs(t.x-e.x),a=Math.abs(t.y-e.y);0!==(o=r>i?s:a)||t.equals(e)||(o=Math.max(s,a))}return V.isTrue(!(0===o&&!t.equals(e)),"Bad distance calculation"),o}},{key:"nonRobustComputeEdgeDistance",value:function(t,e,n){var r=t.x-e.x,i=t.y-e.y,o=Math.sqrt(r*r+i*i);return V.isTrue(!(0===o&&!t.equals(e)),"Invalid distance calculation"),o}}]),e}();Pe.DONT_INTERSECT=0,Pe.DO_INTERSECT=1,Pe.COLLINEAR=2,Pe.NO_INTERSECTION=0,Pe.POINT_INTERSECTION=1,Pe.COLLINEAR_INTERSECTION=2;var Ce=function(e){r(s,e);var o=c(s);function s(){return t(this,s),o.call(this)}return n(s,[{key:"isInSegmentEnvelopes",value:function(t){var e=new X(this._inputLines[0][0],this._inputLines[0][1]),n=new X(this._inputLines[1][0],this._inputLines[1][1]);return e.contains(t)&&n.contains(t)}},{key:"computeIntersection",value:function(){if(3!==arguments.length)return f(i(s.prototype),"computeIntersection",this).apply(this,arguments);var t=arguments[0],e=arguments[1],n=arguments[2];if(this._isProper=!1,X.intersects(e,n,t)&&0===ft.index(e,n,t)&&0===ft.index(n,e,t))return this._isProper=!0,(t.equals(e)||t.equals(n))&&(this._isProper=!1),this._result=Pe.POINT_INTERSECTION,null;this._result=Pe.NO_INTERSECTION}},{key:"intersection",value:function(t,e,n,r){var i=this.intersectionSafe(t,e,n,r);return this.isInSegmentEnvelopes(i)||(i=new z(s.nearestEndpoint(t,e,n,r))),null!==this._precisionModel&&this._precisionModel.makePrecise(i),i}},{key:"checkDD",value:function(t,e,n,r,i){var o=ht.intersection(t,e,n,r),s=this.isInSegmentEnvelopes(o);xt.out.println("DD in env = "+s+" --------------------- "+o),i.distance(o)>1e-4&&xt.out.println("Distance = "+i.distance(o))}},{key:"intersectionSafe",value:function(t,e,n,r){var i=_t.intersection(t,e,n,r);return null===i&&(i=s.nearestEndpoint(t,e,n,r)),i}},{key:"computeCollinearIntersection",value:function(t,e,n,r){var i=X.intersects(t,e,n),o=X.intersects(t,e,r),s=X.intersects(n,r,t),a=X.intersects(n,r,e);return i&&o?(this._intPt[0]=n,this._intPt[1]=r,Pe.COLLINEAR_INTERSECTION):s&&a?(this._intPt[0]=t,this._intPt[1]=e,Pe.COLLINEAR_INTERSECTION):i&&s?(this._intPt[0]=n,this._intPt[1]=t,!n.equals(t)||o||a?Pe.COLLINEAR_INTERSECTION:Pe.POINT_INTERSECTION):i&&a?(this._intPt[0]=n,this._intPt[1]=e,!n.equals(e)||o||s?Pe.COLLINEAR_INTERSECTION:Pe.POINT_INTERSECTION):o&&s?(this._intPt[0]=r,this._intPt[1]=t,!r.equals(t)||i||a?Pe.COLLINEAR_INTERSECTION:Pe.POINT_INTERSECTION):o&&a?(this._intPt[0]=r,this._intPt[1]=e,!r.equals(e)||i||s?Pe.COLLINEAR_INTERSECTION:Pe.POINT_INTERSECTION):Pe.NO_INTERSECTION}},{key:"computeIntersect",value:function(t,e,n,r){if(this._isProper=!1,!X.intersects(t,e,n,r))return Pe.NO_INTERSECTION;var i=ft.index(t,e,n),o=ft.index(t,e,r);if(i>0&&o>0||i<0&&o<0)return Pe.NO_INTERSECTION;var s=ft.index(n,r,t),a=ft.index(n,r,e);return s>0&&a>0||s<0&&a<0?Pe.NO_INTERSECTION:0===i&&0===o&&0===s&&0===a?this.computeCollinearIntersection(t,e,n,r):(0===i||0===o||0===s||0===a?(this._isProper=!1,t.equals2D(n)||t.equals2D(r)?this._intPt[0]=t:e.equals2D(n)||e.equals2D(r)?this._intPt[0]=e:0===i?this._intPt[0]=new z(n):0===o?this._intPt[0]=new z(r):0===s?this._intPt[0]=new z(t):0===a&&(this._intPt[0]=new z(e))):(this._isProper=!0,this._intPt[0]=this.intersection(t,e,n,r)),Pe.POINT_INTERSECTION)}}],[{key:"nearestEndpoint",value:function(t,e,n,r){var i=t,o=kt.pointToSegment(t,n,r),s=kt.pointToSegment(e,n,r);return sr&&(n=e.x,r=t.x),this._p.x>=n&&this._p.x<=r&&(this._isPointOnSegment=!0),null}if(t.y>this._p.y&&e.y<=this._p.y||e.y>this._p.y&&t.y<=this._p.y){var i=ft.index(t,e,this._p);if(i===ft.COLLINEAR)return this._isPointOnSegment=!0,null;e.ythis.location.length){var e=new Array(3).fill(null);e[tt.ON]=this.location[tt.ON],e[tt.LEFT]=Z.NONE,e[tt.RIGHT]=Z.NONE,this.location=e}for(var n=0;n1&&t.append(Z.toLocationSymbol(this.location[tt.LEFT])),t.append(Z.toLocationSymbol(this.location[tt.ON])),this.location.length>1&&t.append(Z.toLocationSymbol(this.location[tt.RIGHT])),t.toString()}},{key:"setLocations",value:function(t,e,n){this.location[tt.ON]=t,this.location[tt.LEFT]=e,this.location[tt.RIGHT]=n}},{key:"get",value:function(t){return t1}},{key:"isAnyNull",value:function(){for(var t=0;tthis._maxNodeDegree&&(this._maxNodeDegree=e),t=this.getNext(t)}while(t!==this._startDe);this._maxNodeDegree*=2}},{key:"addPoints",value:function(t,e,n){var r=t.getCoordinates();if(e){var i=1;n&&(i=0);for(var o=i;o=0;a--)this._pts.add(r[a])}}},{key:"isHole",value:function(){return this._isHole}},{key:"setInResult",value:function(){var t=this._startDe;do{t.getEdge().setInResult(!0),t=t.getNext()}while(t!==this._startDe)}},{key:"containsPoint",value:function(t){var e=this.getLinearRing();if(!e.getEnvelopeInternal().contains(t))return!1;if(!Oe.isInRing(t,e.getCoordinates()))return!1;for(var n=this._holes.iterator();n.hasNext();)if(n.next().containsPoint(t))return!1;return!0}},{key:"addHole",value:function(t){this._holes.add(t)}},{key:"isShell",value:function(){return null===this._shell}},{key:"getLabel",value:function(){return this._label}},{key:"getEdges",value:function(){return this._edges}},{key:"getMaxNodeDegree",value:function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree}},{key:"getShell",value:function(){return this._shell}},{key:"mergeLabel",value:function(){if(1===arguments.length){var t=arguments[0];this.mergeLabel(t,0),this.mergeLabel(t,1)}else if(2===arguments.length){var e=arguments[1],n=arguments[0].getLocation(e,tt.RIGHT);if(n===Z.NONE)return null;if(this._label.getLocation(e)===Z.NONE)return this._label.setLocation(e,n),null}}},{key:"setShell",value:function(t){this._shell=t,null!==t&&t.addHole(this)}},{key:"toPolygon",value:function(t){for(var e=new Array(this._holes.size()).fill(null),n=0;n=2,"found partial label"),this.computeIM(t)}},{key:"isInResult",value:function(){return this._isInResult}},{key:"isVisited",value:function(){return this._isVisited}}],[{key:"constructor_",value:function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._label=t}}}]),e}(),Ge=function(e){r(s,e);var o=c(s);function s(){var e;return t(this,s),e=o.call(this),s.constructor_.apply(l(e),arguments),e}return n(s,[{key:"isIncidentEdgeInResult",value:function(){for(var t=this.getEdges().getEdges().iterator();t.hasNext();)if(t.next().getEdge().isInResult())return!0;return!1}},{key:"isIsolated",value:function(){return 1===this._label.getGeometryCount()}},{key:"getCoordinate",value:function(){return this._coord}},{key:"print",value:function(t){t.println("node "+this._coord+" lbl: "+this._label)}},{key:"computeIM",value:function(t){}},{key:"computeMergedLocation",value:function(t,e){var n=Z.NONE;if(n=this._label.getLocation(e),!t.isNull(e)){var r=t.getLocation(e);n!==Z.BOUNDARY&&(n=r)}return n}},{key:"setLabel",value:function(){if(2!==arguments.length||!Number.isInteger(arguments[1])||!Number.isInteger(arguments[0]))return f(i(s.prototype),"setLabel",this).apply(this,arguments);var t=arguments[0],e=arguments[1];null===this._label?this._label=new Ae(t,e):this._label.setLocation(t,e)}},{key:"getEdges",value:function(){return this._edges}},{key:"mergeLabel",value:function(){if(arguments[0]instanceof s){var t=arguments[0];this.mergeLabel(t._label)}else if(arguments[0]instanceof Ae)for(var e=arguments[0],n=0;n<2;n++){var r=this.computeMergedLocation(e,n);this._label.getLocation(n)===Z.NONE&&this._label.setLocation(n,r)}}},{key:"add",value:function(t){this._edges.insert(t),t.setNode(this)}},{key:"setLabelBoundary",value:function(t){if(null===this._label)return null;var e=Z.NONE;null!==this._label&&(e=this._label.getLocation(t));var n=null;switch(e){case Z.BOUNDARY:n=Z.INTERIOR;break;case Z.INTERIOR:default:n=Z.BOUNDARY}this._label.setLocation(t,n)}}],[{key:"constructor_",value:function(){this._coord=null,this._edges=null;var t=arguments[0],e=arguments[1];this._coord=t,this._edges=e,this._label=new Ae(0,Z.NONE)}}]),s}(Ve),Be=function(e){r(i,e);var n=c(i);function i(){return t(this,i),n.apply(this,arguments)}return i}(ne);function Ye(t){return null==t?0:t.color}function ze(t){return null==t?null:t.parent}function je(t,e){null!==t&&(t.color=e)}function Xe(t){return null==t?null:t.left}function Ue(t){return null==t?null:t.right}var Ze=function(e){r(o,e);var i=c(o);function o(){var e;return t(this,o),(e=i.call(this)).root_=null,e.size_=0,e}return n(o,[{key:"get",value:function(t){for(var e=this.root_;null!==e;){var n=t.compareTo(e.key);if(n<0)e=e.left;else{if(!(n>0))return e.value;e=e.right}}return null}},{key:"put",value:function(t,e){if(null===this.root_)return this.root_={key:t,value:e,left:null,right:null,parent:null,color:0,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,r,i=this.root_;do{if(n=i,(r=t.compareTo(i.key))<0)i=i.left;else{if(!(r>0)){var o=i.value;return i.value=e,o}i=i.right}}while(null!==i);var s={key:t,left:null,right:null,value:e,parent:n,color:0,getValue:function(){return this.value},getKey:function(){return this.key}};return r<0?n.left=s:n.right=s,this.fixAfterInsertion(s),this.size_++,null}},{key:"fixAfterInsertion",value:function(t){var e;for(t.color=1;null!=t&&t!==this.root_&&1===t.parent.color;)ze(t)===Xe(ze(ze(t)))?1===Ye(e=Ue(ze(ze(t))))?(je(ze(t),0),je(e,0),je(ze(ze(t)),1),t=ze(ze(t))):(t===Ue(ze(t))&&(t=ze(t),this.rotateLeft(t)),je(ze(t),0),je(ze(ze(t)),1),this.rotateRight(ze(ze(t)))):1===Ye(e=Xe(ze(ze(t))))?(je(ze(t),0),je(e,0),je(ze(ze(t)),1),t=ze(ze(t))):(t===Xe(ze(t))&&(t=ze(t),this.rotateRight(t)),je(ze(t),0),je(ze(ze(t)),1),this.rotateLeft(ze(ze(t))));this.root_.color=0}},{key:"values",value:function(){var t=new dt,e=this.getFirstEntry();if(null!==e)for(t.add(e.value);null!==(e=o.successor(e));)t.add(e.value);return t}},{key:"entrySet",value:function(){var t=new Q,e=this.getFirstEntry();if(null!==e)for(t.add(e);null!==(e=o.successor(e));)t.add(e);return t}},{key:"rotateLeft",value:function(t){if(null!=t){var e=t.right;t.right=e.left,null!=e.left&&(e.left.parent=t),e.parent=t.parent,null==t.parent?this.root_=e:t.parent.left===t?t.parent.left=e:t.parent.right=e,e.left=t,t.parent=e}}},{key:"rotateRight",value:function(t){if(null!=t){var e=t.left;t.left=e.right,null!=e.right&&(e.right.parent=t),e.parent=t.parent,null==t.parent?this.root_=e:t.parent.right===t?t.parent.right=e:t.parent.left=e,e.right=t,t.parent=e}}},{key:"getFirstEntry",value:function(){var t=this.root_;if(null!=t)for(;null!=t.left;)t=t.left;return t}},{key:"size",value:function(){return this.size_}},{key:"containsKey",value:function(t){for(var e=this.root_;null!==e;){var n=t.compareTo(e.key);if(n<0)e=e.left;else{if(!(n>0))return!0;e=e.right}}return!1}}],[{key:"successor",value:function(t){var e;if(null===t)return null;if(null!==t.right){for(e=t.right;null!==e.left;)e=e.left;return e}e=t.parent;for(var n=t;null!==e&&n===e.right;)n=e,e=e.parent;return e}}]),o}(Be),He=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"find",value:function(t){return this.nodeMap.get(t)}},{key:"addNode",value:function(){if(arguments[0]instanceof z){var t=arguments[0],e=this.nodeMap.get(t);return null===e&&(e=this.nodeFact.createNode(t),this.nodeMap.put(t,e)),e}if(arguments[0]instanceof Ge){var n=arguments[0],r=this.nodeMap.get(n.getCoordinate());return null===r?(this.nodeMap.put(n.getCoordinate(),n),n):(r.mergeLabel(n),r)}}},{key:"print",value:function(t){for(var e=this.iterator();e.hasNext();)e.next().print(t)}},{key:"iterator",value:function(){return this.nodeMap.values().iterator()}},{key:"values",value:function(){return this.nodeMap.values()}},{key:"getBoundaryNodes",value:function(t){for(var e=new dt,n=this.iterator();n.hasNext();){var r=n.next();r.getLabel().getLocation(t)===Z.BOUNDARY&&e.add(r)}return e}},{key:"add",value:function(t){var e=t.getCoordinate();this.addNode(e).add(t)}}],[{key:"constructor_",value:function(){this.nodeMap=new Ze,this.nodeFact=null;var t=arguments[0];this.nodeFact=t}}]),e}(),We=function(){function e(){t(this,e)}return n(e,null,[{key:"isNorthern",value:function(t){return t===e.NE||t===e.NW}},{key:"isOpposite",value:function(t,e){return t!==e&&2==(t-e+4)%4}},{key:"commonHalfPlane",value:function(t,e){if(t===e)return t;if(2==(t-e+4)%4)return-1;var n=te?t:e)?3:n}},{key:"isInHalfPlane",value:function(t,n){return n===e.SE?t===e.SE||t===e.SW:t===n||t===n+1}},{key:"quadrant",value:function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],n=arguments[1];if(0===t&&0===n)throw new x("Cannot compute the quadrant for point ( "+t+", "+n+" )");return t>=0?n>=0?e.NE:e.SE:n>=0?e.NW:e.SW}if(arguments[0]instanceof z&&arguments[1]instanceof z){var r=arguments[0],i=arguments[1];if(i.x===r.x&&i.y===r.y)throw new x("Cannot compute the quadrant for two identical points "+r);return i.x>=r.x?i.y>=r.y?e.NE:e.SE:i.y>=r.y?e.NW:e.SW}}}]),e}();We.NE=0,We.NW=1,We.SW=2,We.SE=3;var Je=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"compareDirection",value:function(t){return this._dx===t._dx&&this._dy===t._dy?0:this._quadrant>t._quadrant?1:this._quadrant2){o.linkDirectedEdgesForMinimalEdgeRings();var s=o.buildMinimalRings(),a=this.findShell(s);null!==a?(this.placePolygonHoles(a,s),e.add(a)):n.addAll(s)}else r.add(o)}return r}},{key:"buildMaximalEdgeRings",value:function(t){for(var e=new dt,n=t.iterator();n.hasNext();){var r=n.next();if(r.isInResult()&&r.getLabel().isArea()&&null===r.getEdgeRing()){var i=new qe(r,this._geometryFactory);e.add(i),i.setInResult()}}return e}},{key:"placePolygonHoles",value:function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next();r.isHole()&&r.setShell(t)}}},{key:"getPolygons",value:function(){return this.computePolygons(this._shellList)}},{key:"findShell",value:function(t){for(var e=0,n=null,r=t.iterator();r.hasNext();){var i=r.next();i.isHole()||(n=i,e++)}return V.isTrue(e<=1,"found two shells in MinimalEdgeRing list"),n}},{key:"add",value:function(){if(1===arguments.length){var t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(2===arguments.length){var e=arguments[0],n=arguments[1];$e.linkResultDirectedEdges(n);var r=this.buildMaximalEdgeRings(e),i=new dt,o=this.buildMinimalEdgeRings(r,this._shellList,i);this.sortShellsAndHoles(o,this._shellList,i),this.placeFreeHoles(this._shellList,i)}}}],[{key:"constructor_",value:function(){this._geometryFactory=null,this._shellList=new dt;var t=arguments[0];this._geometryFactory=t}},{key:"findEdgeRingContaining",value:function(t,e){for(var n=t.getLinearRing(),r=n.getEnvelopeInternal(),i=n.getCoordinateN(0),o=null,s=null,a=e.iterator();a.hasNext();){var u=a.next(),l=u.getLinearRing(),h=l.getEnvelopeInternal();if(!h.equals(r)&&h.contains(r)){i=Wt.ptNotInList(n.getCoordinates(),l.getCoordinates());var c=!1;Oe.isInRing(i,l.getCoordinates())&&(c=!0),c&&(null===o||s.contains(h))&&(s=(o=u).getLinearRing().getEnvelopeInternal())}}return o}}]),e}(),en=function(){function e(){t(this,e)}return n(e,[{key:"getBounds",value:function(){}}]),e}(),nn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"getItem",value:function(){return this._item}},{key:"getBounds",value:function(){return this._bounds}},{key:"interfaces_",get:function(){return[en,w]}}],[{key:"constructor_",value:function(){this._bounds=null,this._item=null;var t=arguments[0],e=arguments[1];this._bounds=t,this._item=e}}]),e}(),rn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"poll",value:function(){if(this.isEmpty())return null;var t=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),t}},{key:"size",value:function(){return this._size}},{key:"reorder",value:function(t){for(var e=null,n=this._items.get(t);2*t<=this._size&&((e=2*t)!==this._size&&this._items.get(e+1).compareTo(this._items.get(e))<0&&e++,this._items.get(e).compareTo(n)<0);t=e)this._items.set(t,this._items.get(e));this._items.set(t,n)}},{key:"clear",value:function(){this._size=0,this._items.clear()}},{key:"peek",value:function(){return this.isEmpty()?null:this._items.get(1)}},{key:"isEmpty",value:function(){return 0===this._size}},{key:"add",value:function(t){this._items.add(null),this._size+=1;var e=this._size;for(this._items.set(0,t);t.compareTo(this._items.get(Math.trunc(e/2)))<0;e/=2)this._items.set(e,this._items.get(Math.trunc(e/2)));this._items.set(e,t)}}],[{key:"constructor_",value:function(){this._size=null,this._items=null,this._size=0,this._items=new dt,this._items.add(null)}}]),e}(),on=function(){function e(){t(this,e)}return n(e,[{key:"insert",value:function(t,e){}},{key:"remove",value:function(t,e){}},{key:"query",value:function(){}}]),e}(),sn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"getLevel",value:function(){return this._level}},{key:"size",value:function(){return this._childBoundables.size()}},{key:"getChildBoundables",value:function(){return this._childBoundables}},{key:"addChildBoundable",value:function(t){V.isTrue(null===this._bounds),this._childBoundables.add(t)}},{key:"isEmpty",value:function(){return this._childBoundables.isEmpty()}},{key:"getBounds",value:function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds}},{key:"interfaces_",get:function(){return[en,w]}}],[{key:"constructor_",value:function(){if(this._childBoundables=new dt,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._level=t}}}]),e}(),an={reverseOrder:function(){return{compare:function(t,e){return e.compareTo(t)}}},min:function(t){return an.sort(t),t.get(0)},sort:function(t,e){var n=t.toArray();e?At.sort(n,e):At.sort(n);for(var r=t.iterator(),i=0,o=n.length;ie.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,!1,t,n),null):(this.expand(this._boundable2,this._boundable1,!0,t,n),null);if(r)return this.expand(this._boundable1,this._boundable2,!1,t,n),null;if(i)return this.expand(this._boundable2,this._boundable1,!0,t,n),null;throw new x("neither boundable is composite")}},{key:"isLeaves",value:function(){return!(e.isComposite(this._boundable1)||e.isComposite(this._boundable2))}},{key:"compareTo",value:function(t){var e=t;return this._distancee._distance?1:0}},{key:"expand",value:function(t,n,r,i,o){for(var s=t.getChildBoundables().iterator();s.hasNext();){var a=s.next(),u=null;(u=r?new e(n,a,this._itemDistance):new e(a,n,this._itemDistance)).getDistance()-2),r.getLevel()===n)return i.add(r),null;for(var o=r.getChildBoundables().iterator();o.hasNext();){var s=o.next();s instanceof sn?this.boundablesAtLevel(n,s,i):(V.isTrue(s instanceof nn),-1===n&&i.add(s))}return null}}},{key:"query",value:function(){if(1===arguments.length){var t=arguments[0];this.build();var e=new dt;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.queryInternal(t,this._root,e),e}if(2===arguments.length){var n=arguments[0],r=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),n)&&this.queryInternal(n,this._root,r)}}},{key:"build",value:function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0}},{key:"getRoot",value:function(){return this.build(),this._root}},{key:"remove",value:function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.remove(t,this._root,e)}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=this.removeItem(r,i);if(o)return!0;for(var s=null,a=r.getChildBoundables().iterator();a.hasNext();){var u=a.next();if(this.getIntersectsOp().intersects(u.getBounds(),n)&&u instanceof sn&&(o=this.remove(n,u,i))){s=u;break}}return null!==s&&s.getChildBoundables().isEmpty()&&r.getChildBoundables().remove(s),o}}},{key:"createHigherLevels",value:function(t,e){V.isTrue(!t.isEmpty());var n=this.createParentBoundables(t,e+1);return 1===n.size()?n.get(0):this.createHigherLevels(n,e+1)}},{key:"depth",value:function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var n=e.next();if(n instanceof sn){var r=this.depth(n);r>t&&(t=r)}}return t+1}}},{key:"createParentBoundables",value:function(t,e){V.isTrue(!t.isEmpty());var n=new dt;n.add(this.createNode(e));var r=new dt(t);an.sort(r,this.getComparator());for(var i=r.iterator();i.hasNext();){var o=i.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(e)),this.lastNode(n).addChildBoundable(o)}return n}},{key:"isEmpty",value:function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()}},{key:"interfaces_",get:function(){return[w]}}],[{key:"constructor_",value:function(){if(this._root=null,this._built=!1,this._itemBoundables=new dt,this._nodeCapacity=null,0===arguments.length)e.constructor_.call(this,e.DEFAULT_NODE_CAPACITY);else if(1===arguments.length){var t=arguments[0];V.isTrue(t>1,"Node capacity must be greater than 1"),this._nodeCapacity=t}}},{key:"compareDoubles",value:function(t,e){return t>e?1:t0);for(var n=new dt,r=0;r=0;){var u=o.poll(),l=u.getDistance();if(l>=i)break;u.isLeaves()?a.size()l&&(a.poll(),a.add(u)),i=a.peek().getDistance()):u.expandToQueue(o,i)}return s.getItems(a)}}},{key:"createNode",value:function(t){return new pn(t)}},{key:"size",value:function(){return 0===arguments.length?f(i(s.prototype),"size",this).call(this):f(i(s.prototype),"size",this).apply(this,arguments)}},{key:"insert",value:function(){if(!(2===arguments.length&&arguments[1]instanceof Object&&arguments[0]instanceof X))return f(i(s.prototype),"insert",this).apply(this,arguments);var t=arguments[0],e=arguments[1];if(t.isNull())return null;f(i(s.prototype),"insert",this).call(this,t,e)}},{key:"getIntersectsOp",value:function(){return s.intersectsOp}},{key:"verticalSlices",value:function(t,e){for(var n=Math.trunc(Math.ceil(t.size()/e)),r=new Array(e).fill(null),i=t.iterator(),o=0;o0;){var s=o.poll(),a=s.getDistance();if(a>=r)break;s.isLeaves()?(r=a,i=s):s.expandToQueue(o,r)}return null===i?null:[i.getBoundable(0).getItem(),i.getBoundable(1).getItem()]}}else{if(2===arguments.length){var u=arguments[0],l=arguments[1];if(this.isEmpty()||u.isEmpty())return null;var h=new ln(this.getRoot(),u.getRoot(),l);return this.nearestNeighbour(h)}if(3===arguments.length){var c=arguments[2],f=new nn(arguments[0],arguments[1]),g=new ln(this.getRoot(),f,c);return this.nearestNeighbour(g)[0]}if(4===arguments.length){var p=arguments[2],v=arguments[3],d=new nn(arguments[0],arguments[1]),y=new ln(this.getRoot(),d,p);return this.nearestNeighbourK(y,v)}}}},{key:"isWithinDistance",value:function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=A.POSITIVE_INFINITY,r=new rn;for(r.add(t);!r.isEmpty();){var i=r.poll(),o=i.getDistance();if(o>e)return!1;if(i.maximumDistance()<=e)return!0;if(i.isLeaves()){if((n=o)<=e)return!0}else i.expandToQueue(r,n)}return!1}if(3===arguments.length){var s=arguments[0],a=arguments[1],u=arguments[2],l=new ln(this.getRoot(),s.getRoot(),a);return this.isWithinDistance(l,u)}}},{key:"interfaces_",get:function(){return[on,w]}}],[{key:"constructor_",value:function(){if(0===arguments.length)s.constructor_.call(this,s.DEFAULT_NODE_CAPACITY);else if(1===arguments.length){var t=arguments[0];cn.constructor_.call(this,t)}}},{key:"centreX",value:function(t){return s.avg(t.getMinX(),t.getMaxX())}},{key:"avg",value:function(t,e){return(t+e)/2}},{key:"getItems",value:function(t){for(var e=new Array(t.size()).fill(null),n=0;!t.isEmpty();){var r=t.poll();e[n]=r.getBoundable(0).getItem(),n++}return e}},{key:"centreY",value:function(t){return s.avg(t.getMinY(),t.getMaxY())}}]),s}(cn),pn=function(e){r(o,e);var i=c(o);function o(){var e;return t(this,o),e=i.call(this),o.constructor_.apply(l(e),arguments),e}return n(o,[{key:"computeBounds",value:function(){for(var t=null,e=this.getChildBoundables().iterator();e.hasNext();){var n=e.next();null===t?t=new X(n.getBounds()):t.expandToInclude(n.getBounds())}return t}}],[{key:"constructor_",value:function(){var t=arguments[0];sn.constructor_.call(this,t)}}]),o}(sn);gn.STRtreeNode=pn,gn.xComparator=new(function(){function e(){t(this,e)}return n(e,[{key:"interfaces_",get:function(){return[D]}},{key:"compare",value:function(t,e){return cn.compareDoubles(gn.centreX(t.getBounds()),gn.centreX(e.getBounds()))}}]),e}()),gn.yComparator=new(function(){function e(){t(this,e)}return n(e,[{key:"interfaces_",get:function(){return[D]}},{key:"compare",value:function(t,e){return cn.compareDoubles(gn.centreY(t.getBounds()),gn.centreY(e.getBounds()))}}]),e}()),gn.intersectsOp=new(function(){function e(){t(this,e)}return n(e,[{key:"interfaces_",get:function(){return[IntersectsOp]}},{key:"intersects",value:function(t,e){return t.intersects(e)}}]),e}()),gn.DEFAULT_NODE_CAPACITY=10;var vn=function(){function e(){t(this,e)}return n(e,null,[{key:"relativeSign",value:function(t,e){return te?1:0}},{key:"compare",value:function(t,n,r){if(n.equals2D(r))return 0;var i=e.relativeSign(n.x,r.x),o=e.relativeSign(n.y,r.y);switch(t){case 0:return e.compareValue(i,o);case 1:return e.compareValue(o,i);case 2:return e.compareValue(o,-i);case 3:return e.compareValue(-i,o);case 4:return e.compareValue(-i,-o);case 5:return e.compareValue(-o,-i);case 6:return e.compareValue(-o,i);case 7:return e.compareValue(i,-o)}return V.shouldNeverReachHere("invalid octant value"),0}},{key:"compareValue",value:function(t,e){return t<0?-1:t>0?1:e<0?-1:e>0?1:0}}]),e}(),dn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"getCoordinate",value:function(){return this.coord}},{key:"print",value:function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex)}},{key:"compareTo",value:function(t){var e=t;return this.segmentIndexe.segmentIndex?1:this.coord.equals2D(e.coord)?0:this._isInterior?e._isInterior?vn.compare(this._segmentOctant,this.coord,e.coord):1:-1}},{key:"isEndPoint",value:function(t){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===t}},{key:"toString",value:function(){return this.segmentIndex+":"+this.coord.toString()}},{key:"isInterior",value:function(){return this._isInterior}},{key:"interfaces_",get:function(){return[k]}}],[{key:"constructor_",value:function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];this._segString=t,this.coord=new z(e),this.segmentIndex=n,this._segmentOctant=r,this._isInterior=!e.equals2D(t.getCoordinate(n))}}]),e}(),yn=function(){function e(){t(this,e)}return n(e,[{key:"hasNext",value:function(){}},{key:"next",value:function(){}},{key:"remove",value:function(){}}]),e}(),mn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"getSplitCoordinates",value:function(){var t=new Ht;this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var r=e.next();this.addEdgeCoordinates(n,r,t),n=r}return t.toCoordinateArray()}},{key:"addCollapsedNodes",value:function(){var t=new dt;this.findCollapsesFromInsertedNodes(t),this.findCollapsesFromExistingVertices(t);for(var e=t.iterator();e.hasNext();){var n=e.next().intValue();this.add(this._edge.getCoordinate(n),n)}}},{key:"createSplitEdgePts",value:function(t,e){var n=e.segmentIndex-t.segmentIndex+2;if(2===n)return[new z(t.coord),new z(e.coord)];var r=this._edge.getCoordinate(e.segmentIndex),i=e.isInterior()||!e.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),s=0;o[s++]=new z(t.coord);for(var a=t.segmentIndex+1;a<=e.segmentIndex;a++)o[s++]=this._edge.getCoordinate(a);return i&&(o[s]=new z(e.coord)),o}},{key:"print",value:function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)}},{key:"findCollapsesFromExistingVertices",value:function(t){for(var e=0;e=0?n>=0?r>=i?0:1:r>=i?7:6:n>=0?r>=i?3:2:r>=i?4:5}if(arguments[0]instanceof z&&arguments[1]instanceof z){var o=arguments[0],s=arguments[1],a=s.x-o.x,u=s.y-o.y;if(0===a&&0===u)throw new x("Cannot compute the octant for two identical points "+o);return e.octant(a,u)}}}]),e}(),xn=function(){function e(){t(this,e)}return n(e,[{key:"getCoordinates",value:function(){}},{key:"size",value:function(){}},{key:"getCoordinate",value:function(t){}},{key:"isClosed",value:function(){}},{key:"setData",value:function(t){}},{key:"getData",value:function(){}}]),e}(),En=function(){function e(){t(this,e)}return n(e,[{key:"addIntersection",value:function(t,e){}},{key:"interfaces_",get:function(){return[xn]}}]),e}(),kn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"getCoordinates",value:function(){return this._pts}},{key:"size",value:function(){return this._pts.length}},{key:"getCoordinate",value:function(t){return this._pts[t]}},{key:"isClosed",value:function(){return this._pts[0].equals(this._pts[this._pts.length-1])}},{key:"getSegmentOctant",value:function(t){return t===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))}},{key:"setData",value:function(t){this._data=t}},{key:"safeOctant",value:function(t,e){return t.equals2D(e)?0:_n.octant(t,e)}},{key:"getData",value:function(){return this._data}},{key:"addIntersection",value:function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.addIntersectionNode(t,e)}else if(4===arguments.length){var n=arguments[1],r=arguments[3],i=new z(arguments[0].getIntersection(r));this.addIntersection(i,n)}}},{key:"toString",value:function(){return Le.toLineString(new $t(this._pts))}},{key:"getNodeList",value:function(){return this._nodeList}},{key:"addIntersectionNode",value:function(t,e){var n=e,r=n+1;if(r=0&&r>=0||n<=0&&r<=0?Math.max(n,r):0}if(arguments[0]instanceof z){var i=arguments[0];return ft.index(this.p0,this.p1,i)}}},{key:"toGeometry",value:function(t){return t.createLineString([this.p0,this.p1])}},{key:"isVertical",value:function(){return this.p0.x===this.p1.x}},{key:"equals",value:function(t){if(!(t instanceof e))return!1;var n=t;return this.p0.equals(n.p0)&&this.p1.equals(n.p1)}},{key:"intersection",value:function(t){var e=new Ce;return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null}},{key:"project",value:function(){if(arguments[0]instanceof z){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new z(t);var n=this.projectionFactor(t),r=new z;return r.x=this.p0.x+n*(this.p1.x-this.p0.x),r.y=this.p0.y+n*(this.p1.y-this.p0.y),r}if(arguments[0]instanceof e){var i=arguments[0],o=this.projectionFactor(i.p0),s=this.projectionFactor(i.p1);if(o>=1&&s>=1)return null;if(o<=0&&s<=0)return null;var a=this.project(i.p0);o<0&&(a=this.p0),o>1&&(a=this.p1);var u=this.project(i.p1);return s<0&&(u=this.p0),s>1&&(u=this.p1),new e(a,u)}}},{key:"normalize",value:function(){this.p1.compareTo(this.p0)<0&&this.reverse()}},{key:"angle",value:function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)}},{key:"getCoordinate",value:function(t){return 0===t?this.p0:this.p1}},{key:"distancePerpendicular",value:function(t){return kt.pointToLinePerpendicular(t,this.p0,this.p1)}},{key:"minY",value:function(){return Math.min(this.p0.y,this.p1.y)}},{key:"midPoint",value:function(){return e.midPoint(this.p0,this.p1)}},{key:"projectionFactor",value:function(t){if(t.equals(this.p0))return 0;if(t.equals(this.p1))return 1;var e=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,r=e*e+n*n;return r<=0?A.NaN:((t.x-this.p0.x)*e+(t.y-this.p0.y)*n)/r}},{key:"closestPoints",value:function(t){var e=this.intersection(t);if(null!==e)return[e,e];var n=new Array(2).fill(null),r=A.MAX_VALUE,i=null,o=this.closestPoint(t.p0);r=o.distance(t.p0),n[0]=o,n[1]=t.p0;var s=this.closestPoint(t.p1);(i=s.distance(t.p1))0&&e<1?this.project(t):this.p0.distance(t)1||A.isNaN(e))&&(e=1),e}},{key:"toString",value:function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"}},{key:"isHorizontal",value:function(){return this.p0.y===this.p1.y}},{key:"reflect",value:function(t){var e=this.p1.getY()-this.p0.getY(),n=this.p0.getX()-this.p1.getX(),r=this.p0.getY()*(this.p1.getX()-this.p0.getX())-this.p0.getX()*(this.p1.getY()-this.p0.getY()),i=e*e+n*n,o=e*e-n*n,s=t.getX(),a=t.getY();return new z((-o*s-2*e*n*a-2*e*r)/i,(o*a-2*e*n*s-2*n*r)/i)}},{key:"distance",value:function(){if(arguments[0]instanceof e){var t=arguments[0];return kt.segmentToSegment(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof z){var n=arguments[0];return kt.pointToSegment(n,this.p0,this.p1)}}},{key:"pointAlong",value:function(t){var e=new z;return e.x=this.p0.x+t*(this.p1.x-this.p0.x),e.y=this.p0.y+t*(this.p1.y-this.p0.y),e}},{key:"hashCode",value:function(){var t=A.doubleToLongBits(this.p0.x);t^=31*A.doubleToLongBits(this.p0.y);var e=Math.trunc(t)^Math.trunc(t>>32),n=A.doubleToLongBits(this.p1.x);return n^=31*A.doubleToLongBits(this.p1.y),e^Math.trunc(n)^Math.trunc(n>>32)}},{key:"interfaces_",get:function(){return[k,w]}}],[{key:"constructor_",value:function(){if(this.p0=null,this.p1=null,0===arguments.length)e.constructor_.call(this,new z,new z);else if(1===arguments.length){var t=arguments[0];e.constructor_.call(this,t.p0,t.p1)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.p0=n,this.p1=r}else if(4===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];e.constructor_.call(this,new z(i,o),new z(s,a))}}},{key:"midPoint",value:function(t,e){return new z((t.x+e.x)/2,(t.y+e.y)/2)}}]),e}(),wn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"overlap",value:function(){if(2===arguments.length);else if(4===arguments.length){var t=arguments[1],e=arguments[2],n=arguments[3];arguments[0].getLineSegment(t,this._overlapSeg1),e.getLineSegment(n,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}}}],[{key:"constructor_",value:function(){this._overlapSeg1=new bn,this._overlapSeg2=new bn}}]),e}(),In=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"getLineSegment",value:function(t,e){e.p0=this._pts[t],e.p1=this._pts[t+1]}},{key:"computeSelect",value:function(t,e,n,r){var i=this._pts[e],o=this._pts[n];if(n-e==1)return r.select(this,e),null;if(!t.intersects(i,o))return null;var s=Math.trunc((e+n)/2);e=t.length-1)return t.length-1;for(var r=We.quadrant(t[n],t[n+1]),i=e+1;in.getId()&&(n.computeOverlaps(i,t),this._nOverlaps++),this._segInt.isDone())return null}}}],[{key:"constructor_",value:function(){if(this._monoChains=new dt,this._index=new gn,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0,0===arguments.length);else if(1===arguments.length){var t=arguments[0];Mn.constructor_.call(this,t)}}}]),o}(Mn),Pn=function(e){r(s,e);var o=c(s);function s(){var e;return t(this,s),e=o.call(this),s.constructor_.apply(l(e),arguments),e}return n(s,[{key:"overlap",value:function(){if(4!==arguments.length)return f(i(s.prototype),"overlap",this).apply(this,arguments);var t=arguments[1],e=arguments[2],n=arguments[3],r=arguments[0].getContext(),o=e.getContext();this._si.processIntersections(r,t,o,n)}}],[{key:"constructor_",value:function(){this._si=null;var t=arguments[0];this._si=t}}]),s}(wn);Ln.SegmentOverlapAction=Pn;var Cn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"isDeletable",value:function(t,e,n,r){var i=this._inputLine[t],o=this._inputLine[e],s=this._inputLine[n];return!!this.isConcave(i,o,s)&&!!this.isShallow(i,o,s,r)&&this.isShallowSampled(i,o,t,n,r)}},{key:"deleteShallowConcavities",value:function(){for(var t=1,n=this.findNextNonDeletedIndex(t),r=this.findNextNonDeletedIndex(n),i=!1;r=0;r--)this.addPt(t[r])}},{key:"isRedundant",value:function(t){if(this._ptList.size()<1)return!1;var e=this._ptList.get(this._ptList.size()-1);return t.distance(e)Math.PI;)t-=e.PI_TIMES_2;for(;t<=-Math.PI;)t+=e.PI_TIMES_2;return t}},{key:"angle",value:function(){if(1===arguments.length){var t=arguments[0];return Math.atan2(t.y,t.x)}if(2===arguments.length){var e=arguments[0],n=arguments[1],r=n.x-e.x,i=n.y-e.y;return Math.atan2(i,r)}}},{key:"isAcute",value:function(t,e,n){var r=t.x-e.x,i=t.y-e.y;return r*(n.x-e.x)+i*(n.y-e.y)>0}},{key:"isObtuse",value:function(t,e,n){var r=t.x-e.x,i=t.y-e.y;return r*(n.x-e.x)+i*(n.y-e.y)<0}},{key:"interiorAngle",value:function(t,n,r){var i=e.angle(n,t),o=e.angle(n,r);return Math.abs(o-i)}},{key:"normalizePositive",value:function(t){if(t<0){for(;t<0;)t+=e.PI_TIMES_2;t>=e.PI_TIMES_2&&(t=0)}else{for(;t>=e.PI_TIMES_2;)t-=e.PI_TIMES_2;t<0&&(t=0)}return t}},{key:"angleBetween",value:function(t,n,r){var i=e.angle(n,t),o=e.angle(n,r);return e.diff(i,o)}},{key:"diff",value:function(t,e){var n=null;return(n=tMath.PI&&(n=2*Math.PI-n),n}},{key:"toRadians",value:function(t){return t*Math.PI/180}},{key:"getTurn",value:function(t,n){var r=Math.sin(n-t);return r>0?e.COUNTERCLOCKWISE:r<0?e.CLOCKWISE:e.NONE}},{key:"angleBetweenOriented",value:function(t,n,r){var i=e.angle(n,t),o=e.angle(n,r)-i;return o<=-Math.PI?o+e.PI_TIMES_2:o>Math.PI?o-e.PI_TIMES_2:o}}]),e}();On.PI_TIMES_2=2*Math.PI,On.PI_OVER_2=Math.PI/2,On.PI_OVER_4=Math.PI/4,On.COUNTERCLOCKWISE=ft.COUNTERCLOCKWISE,On.CLOCKWISE=ft.CLOCKWISE,On.NONE=ft.COLLINEAR;var Rn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"addNextSegment",value:function(t,e){if(this._s0=this._s1,this._s1=this._s2,this._s2=t,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var n=ft.index(this._s0,this._s1,this._s2),r=n===ft.CLOCKWISE&&this._side===tt.LEFT||n===ft.COUNTERCLOCKWISE&&this._side===tt.RIGHT;0===n?this.addCollinear(e):r?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)}},{key:"addLineEndCap",value:function(t,e){var n=new bn(t,e),r=new bn;this.computeOffsetSegment(n,tt.LEFT,this._distance,r);var i=new bn;this.computeOffsetSegment(n,tt.RIGHT,this._distance,i);var o=e.x-t.x,s=e.y-t.y,a=Math.atan2(s,o);switch(this._bufParams.getEndCapStyle()){case y.CAP_ROUND:this._segList.addPt(r.p1),this.addDirectedFillet(e,a+Math.PI/2,a-Math.PI/2,ft.CLOCKWISE,this._distance),this._segList.addPt(i.p1);break;case y.CAP_FLAT:this._segList.addPt(r.p1),this._segList.addPt(i.p1);break;case y.CAP_SQUARE:var u=new z;u.x=Math.abs(this._distance)*Math.cos(a),u.y=Math.abs(this._distance)*Math.sin(a);var l=new z(r.p1.x+u.x,r.p1.y+u.y),h=new z(i.p1.x+u.x,i.p1.y+u.y);this._segList.addPt(l),this._segList.addPt(h)}}},{key:"getCoordinates",value:function(){return this._segList.getCoordinates()}},{key:"addMitreJoin",value:function(t,e,n,r){var i=_t.intersection(e.p0,e.p1,n.p0,n.p1);if(null!==i&&(r<=0?1:i.distance(t)/Math.abs(r))<=this._bufParams.getMitreLimit())return this._segList.addPt(i),null;this.addLimitedMitreJoin(e,n,r,this._bufParams.getMitreLimit())}},{key:"addOutsideTurn",value:function(t,n){if(this._offset0.p1.distance(this._offset1.p0)=h&&(a-=2*Math.PI),this._segList.addPt(e),this.addDirectedFillet(t,a,h,r,i),this._segList.addPt(n)}},{key:"addLastSegment",value:function(){this._segList.addPt(this._offset1.p1)}},{key:"initSideSegments",value:function(t,e,n){this._s1=t,this._s2=e,this._side=n,this._seg1.setCoordinates(t,e),this.computeOffsetSegment(this._seg1,n,this._distance,this._offset1)}},{key:"addLimitedMitreJoin",value:function(t,e,n,r){var i=this._seg0.p1,o=On.angle(i,this._seg0.p0),s=On.angleBetweenOriented(this._seg0.p0,i,this._seg1.p1)/2,a=On.normalize(o+s),u=On.normalize(a+Math.PI),l=r*n,h=n-l*Math.abs(Math.sin(s)),c=i.x+l*Math.cos(u),f=i.y+l*Math.sin(u),g=new z(c,f),p=new bn(i,g),v=p.pointAlongOffset(1,h),d=p.pointAlongOffset(1,-h);this._side===tt.LEFT?(this._segList.addPt(v),this._segList.addPt(d)):(this._segList.addPt(d),this._segList.addPt(v))}},{key:"addDirectedFillet",value:function(t,e,n,r,i){var o=r===ft.CLOCKWISE?-1:1,s=Math.abs(e-n),a=Math.trunc(s/this._filletAngleQuantum+.5);if(a<1)return null;for(var u=s/a,l=new z,h=0;h0){var r=new z((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(r);var i=new z((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(i)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}}},{key:"createCircle",value:function(t){var e=new z(t.x+this._distance,t.y);this._segList.addPt(e),this.addDirectedFillet(t,0,2*Math.PI,-1,this._distance),this._segList.closeRing()}},{key:"addBevelJoin",value:function(t,e){this._segList.addPt(t.p1),this._segList.addPt(e.p0)}},{key:"init",value:function(t){this._distance=t,this._maxCurveSegmentError=t*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new Tn,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(t*e.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)}},{key:"addCollinear",value:function(t){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===y.JOIN_BEVEL||this._bufParams.getJoinStyle()===y.JOIN_MITRE?(t&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addCornerFillet(this._s1,this._offset0.p1,this._offset1.p0,ft.CLOCKWISE,this._distance))}},{key:"closeRing",value:function(){this._segList.closeRing()}},{key:"hasNarrowConcaveAngle",value:function(){return this._hasNarrowConcaveAngle}}],[{key:"constructor_",value:function(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new bn,this._seg1=new bn,this._offset0=new bn,this._offset1=new bn,this._side=0,this._hasNarrowConcaveAngle=!1;var t=arguments[0],n=arguments[1],r=arguments[2];this._precisionModel=t,this._bufParams=n,this._li=new Ce,this._filletAngleQuantum=Math.PI/2/n.getQuadrantSegments(),n.getQuadrantSegments()>=8&&n.getJoinStyle()===y.JOIN_ROUND&&(this._closingSegLengthFactor=e.MAX_CLOSING_SEG_LEN_FACTOR),this.init(r)}}]),e}();Rn.OFFSET_SEGMENT_SEPARATION_FACTOR=.001,Rn.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR=.001,Rn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR=1e-6,Rn.MAX_CLOSING_SEG_LEN_FACTOR=80;var An=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"getOffsetCurve",value:function(t,e){if(this._distance=e,0===e)return null;var n=e<0,r=Math.abs(e),i=this.getSegGen(r);t.length<=1?this.computePointCurve(t[0],i):this.computeOffsetCurve(t,n,i);var o=i.getCoordinates();return n&&Wt.reverse(o),o}},{key:"computeSingleSidedBufferCurve",value:function(t,e,n){var r=this.simplifyTolerance(this._distance);if(e){n.addSegments(t,!0);var i=Cn.simplify(t,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],tt.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(i[s],!0)}else{n.addSegments(t,!1);var a=Cn.simplify(t,r),u=a.length-1;n.initSideSegments(a[0],a[1],tt.LEFT),n.addFirstSegment();for(var l=2;l<=u;l++)n.addNextSegment(a[l],!0)}n.addLastSegment(),n.closeRing()}},{key:"computeRingBufferCurve",value:function(t,e,n){var r=this.simplifyTolerance(this._distance);e===tt.RIGHT&&(r=-r);var i=Cn.simplify(t,r),o=i.length-1;n.initSideSegments(i[o-1],i[0],e);for(var s=1;s<=o;s++){var a=1!==s;n.addNextSegment(i[s],a)}n.closeRing()}},{key:"computeLineBufferCurve",value:function(t,e){var n=this.simplifyTolerance(this._distance),r=Cn.simplify(t,n),i=r.length-1;e.initSideSegments(r[0],r[1],tt.LEFT);for(var o=2;o<=i;o++)e.addNextSegment(r[o],!0);e.addLastSegment(),e.addLineEndCap(r[i-1],r[i]);var s=Cn.simplify(t,-n),a=s.length-1;e.initSideSegments(s[a],s[a-1],tt.LEFT);for(var u=a-2;u>=0;u--)e.addNextSegment(s[u],!0);e.addLastSegment(),e.addLineEndCap(s[1],s[0]),e.closeRing()}},{key:"computePointCurve",value:function(t,e){switch(this._bufParams.getEndCapStyle()){case y.CAP_ROUND:e.createCircle(t);break;case y.CAP_SQUARE:e.createSquare(t)}}},{key:"getLineCurve",value:function(t,e){if(this._distance=e,this.isLineOffsetEmpty(e))return null;var n=Math.abs(e),r=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],r);else if(this._bufParams.isSingleSided()){var i=e<0;this.computeSingleSidedBufferCurve(t,i,r)}else this.computeLineBufferCurve(t,r);return r.getCoordinates()}},{key:"getBufferParameters",value:function(){return this._bufParams}},{key:"simplifyTolerance",value:function(t){return t*this._bufParams.getSimplifyFactor()}},{key:"getRingCurve",value:function(t,n,r){if(this._distance=r,t.length<=2)return this.getLineCurve(t,r);if(0===r)return e.copyCoordinates(t);var i=this.getSegGen(r);return this.computeRingBufferCurve(t,n,i),i.getCoordinates()}},{key:"computeOffsetCurve",value:function(t,e,n){var r=this.simplifyTolerance(this._distance);if(e){var i=Cn.simplify(t,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],tt.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(i[s],!0)}else{var a=Cn.simplify(t,r),u=a.length-1;n.initSideSegments(a[0],a[1],tt.LEFT),n.addFirstSegment();for(var l=2;l<=u;l++)n.addNextSegment(a[l],!0)}n.addLastSegment()}},{key:"isLineOffsetEmpty",value:function(t){return 0===t||t<0&&!this._bufParams.isSingleSided()}},{key:"getSegGen",value:function(t){return new Rn(this._precisionModel,this._bufParams,t)}}],[{key:"constructor_",value:function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var t=arguments[0],e=arguments[1];this._precisionModel=t,this._bufParams=e}},{key:"copyCoordinates",value:function(t){for(var e=new Array(t.length).fill(null),n=0;ni.getMaxY()||this.findStabbedSegments(t,r.getDirectedEdges(),e)}return e}if(3===arguments.length)if(ot(arguments[2],rt)&&arguments[0]instanceof z&&arguments[1]instanceof Ke){for(var o=arguments[0],s=arguments[1],a=arguments[2],u=s.getEdge().getCoordinates(),l=0;lthis._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)this._seg.p1.y||ft.index(this._seg.p0,this._seg.p1,o)===ft.RIGHT)){var h=s.getDepth(tt.LEFT);this._seg.p0.equals(u[l])||(h=s.getDepth(tt.RIGHT));var c=new Fn(this._seg,h);a.add(c)}}else if(ot(arguments[2],rt)&&arguments[0]instanceof z&&ot(arguments[1],rt))for(var f=arguments[0],g=arguments[2],p=arguments[1].iterator();p.hasNext();){var v=p.next();v.isForward()&&this.findStabbedSegments(f,v,g)}}},{key:"getDepth",value:function(t){var e=this.findStabbedSegments(t);return 0===e.size()?0:an.min(e)._leftDepth}}],[{key:"constructor_",value:function(){this._subgraphs=null,this._seg=new bn;var t=arguments[0];this._subgraphs=t}}]),e}(),Fn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"compareTo",value:function(t){var e=t;if(this._upwardSeg.minX()>=e._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=e._upwardSeg.minX())return-1;var n=this._upwardSeg.orientationIndex(e._upwardSeg);return 0!==n||0!=(n=-1*e._upwardSeg.orientationIndex(this._upwardSeg))?n:this._upwardSeg.compareTo(e._upwardSeg)}},{key:"compareX",value:function(t,e){var n=t.p0.compareTo(e.p0);return 0!==n?n:t.p1.compareTo(e.p1)}},{key:"toString",value:function(){return this._upwardSeg.toString()}},{key:"interfaces_",get:function(){return[k]}}],[{key:"constructor_",value:function(){this._upwardSeg=null,this._leftDepth=null;var t=arguments[0],e=arguments[1];this._upwardSeg=new bn(t),this._leftDepth=e}}]),e}();Dn.DepthSegment=Fn;var qn=function(e){r(o,e);var i=c(o);function o(){var e;return t(this,o),e=i.call(this),o.constructor_.apply(l(e),arguments),e}return n(o,null,[{key:"constructor_",value:function(){_.constructor_.call(this,"Projective point not representable on the Cartesian plane.")}}]),o}(_),Vn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"getY",value:function(){var t=this.y/this.w;if(A.isNaN(t)||A.isInfinite(t))throw new qn;return t}},{key:"getX",value:function(){var t=this.x/this.w;if(A.isNaN(t)||A.isInfinite(t))throw new qn;return t}},{key:"getCoordinate",value:function(){var t=new z;return t.x=this.getX(),t.y=this.getY(),t}}],[{key:"constructor_",value:function(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var t=arguments[0];this.x=t.x,this.y=t.y,this.w=1}else if(2===arguments.length){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1];this.x=n,this.y=r,this.w=1}else if(arguments[0]instanceof e&&arguments[1]instanceof e){var i=arguments[0],o=arguments[1];this.x=i.y*o.w-o.y*i.w,this.y=o.x*i.w-i.x*o.w,this.w=i.x*o.y-o.x*i.y}else if(arguments[0]instanceof z&&arguments[1]instanceof z){var s=arguments[0],a=arguments[1];this.x=s.y-a.y,this.y=a.x-s.x,this.w=s.x*a.y-a.x*s.y}}else if(3===arguments.length){var u=arguments[0],l=arguments[1],h=arguments[2];this.x=u,this.y=l,this.w=h}else if(4===arguments.length){var c=arguments[0],f=arguments[1],g=arguments[2],p=arguments[3],v=c.y-f.y,d=f.x-c.x,y=c.x*f.y-f.x*c.y,m=g.y-p.y,_=p.x-g.x,x=g.x*p.y-p.x*g.y;this.x=d*x-_*y,this.y=m*y-v*x,this.w=v*_-m*d}}}]),e}(),Gn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"area",value:function(){return e.area(this.p0,this.p1,this.p2)}},{key:"signedArea",value:function(){return e.signedArea(this.p0,this.p1,this.p2)}},{key:"interpolateZ",value:function(t){if(null===t)throw new x("Supplied point is null.");return e.interpolateZ(t,this.p0,this.p1,this.p2)}},{key:"longestSideLength",value:function(){return e.longestSideLength(this.p0,this.p1,this.p2)}},{key:"isAcute",value:function(){return e.isAcute(this.p0,this.p1,this.p2)}},{key:"circumcentre",value:function(){return e.circumcentre(this.p0,this.p1,this.p2)}},{key:"area3D",value:function(){return e.area3D(this.p0,this.p1,this.p2)}},{key:"centroid",value:function(){return e.centroid(this.p0,this.p1,this.p2)}},{key:"inCentre",value:function(){return e.inCentre(this.p0,this.p1,this.p2)}}],[{key:"constructor_",value:function(){this.p0=null,this.p1=null,this.p2=null;var t=arguments[0],e=arguments[1],n=arguments[2];this.p0=t,this.p1=e,this.p2=n}},{key:"area",value:function(t,e,n){return Math.abs(((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2)}},{key:"signedArea",value:function(t,e,n){return((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2}},{key:"det",value:function(t,e,n,r){return t*r-e*n}},{key:"interpolateZ",value:function(t,e,n,r){var i=e.x,o=e.y,s=n.x-i,a=r.x-i,u=n.y-o,l=r.y-o,h=s*l-a*u,c=t.x-i,f=t.y-o,g=(l*c-a*f)/h,p=(-u*c+s*f)/h;return e.getZ()+g*(n.getZ()-e.getZ())+p*(r.getZ()-e.getZ())}},{key:"longestSideLength",value:function(t,e,n){var r=t.distance(e),i=e.distance(n),o=n.distance(t),s=r;return i>s&&(s=i),o>s&&(s=o),s}},{key:"circumcentreDD",value:function(t,e,n){var r=lt.valueOf(t.x).subtract(n.x),i=lt.valueOf(t.y).subtract(n.y),o=lt.valueOf(e.x).subtract(n.x),s=lt.valueOf(e.y).subtract(n.y),a=lt.determinant(r,i,o,s).multiply(2),u=r.sqr().add(i.sqr()),l=o.sqr().add(s.sqr()),h=lt.determinant(i,u,s,l),c=lt.determinant(r,u,o,l),f=lt.valueOf(n.x).subtract(h.divide(a)).doubleValue(),g=lt.valueOf(n.y).add(c.divide(a)).doubleValue();return new z(f,g)}},{key:"isAcute",value:function(t,e,n){return!!On.isAcute(t,e,n)&&!!On.isAcute(e,n,t)&&!!On.isAcute(n,t,e)}},{key:"circumcentre",value:function(t,n,r){var i=r.x,o=r.y,s=t.x-i,a=t.y-o,u=n.x-i,l=n.y-o,h=2*e.det(s,a,u,l),c=e.det(a,s*s+a*a,l,u*u+l*l),f=e.det(s,s*s+a*a,u,u*u+l*l);return new z(i-c/h,o+f/h)}},{key:"perpendicularBisector",value:function(t,e){var n=e.x-t.x,r=e.y-t.y,i=new Vn(t.x+n/2,t.y+r/2,1),o=new Vn(t.x-r+n/2,t.y+n+r/2,1);return new Vn(i,o)}},{key:"angleBisector",value:function(t,e,n){var r=e.distance(t),i=r/(r+e.distance(n)),o=n.x-t.x,s=n.y-t.y;return new z(t.x+i*o,t.y+i*s)}},{key:"area3D",value:function(t,e,n){var r=e.x-t.x,i=e.y-t.y,o=e.getZ()-t.getZ(),s=n.x-t.x,a=n.y-t.y,u=n.getZ()-t.getZ(),l=i*u-o*a,h=o*s-r*u,c=r*a-i*s,f=l*l+h*h+c*c;return Math.sqrt(f)/2}},{key:"centroid",value:function(t,e,n){var r=(t.x+e.x+n.x)/3,i=(t.y+e.y+n.y)/3;return new z(r,i)}},{key:"inCentre",value:function(t,e,n){var r=e.distance(n),i=t.distance(n),o=t.distance(e),s=r+i+o,a=(r*t.x+i*e.x+o*n.x)/s,u=(r*t.y+i*e.y+o*n.y)/s;return new z(a,u)}}]),e}(),Bn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"addRingSide",value:function(t,e,n,r,i){if(0===e&&t.length=zt.MINIMUM_VALID_SIZE&&ft.isCCW(t)&&(o=i,s=r,n=tt.opposite(n));var a=this._curveBuilder.getRingCurve(t,n,e);this.addCurve(a,o,s)}},{key:"addRingBothSides",value:function(t,e){this.addRingSide(t,e,tt.LEFT,Z.EXTERIOR,Z.INTERIOR),this.addRingSide(t,e,tt.RIGHT,Z.INTERIOR,Z.EXTERIOR)}},{key:"addPoint",value:function(t){if(this._distance<=0)return null;var e=t.getCoordinates(),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,Z.EXTERIOR,Z.INTERIOR)}},{key:"addPolygon",value:function(t){var e=this._distance,n=tt.LEFT;this._distance<0&&(e=-this._distance,n=tt.RIGHT);var r=t.getExteriorRing(),i=Wt.removeRepeatedPoints(r.getCoordinates());if(this._distance<0&&this.isErodedCompletely(r,this._distance))return null;if(this._distance<=0&&i.length<3)return null;this.addRingSide(i,e,n,Z.EXTERIOR,Z.INTERIOR);for(var o=0;o0&&this.isErodedCompletely(s,-this._distance)||this.addRingSide(a,e,tt.opposite(n),Z.INTERIOR,Z.EXTERIOR)}}},{key:"isTriangleErodedCompletely",value:function(t,e){var n=new Gn(t[0],t[1],t[2]),r=n.inCentre();return kt.pointToSegment(r,n.p0,n.p1)i}},{key:"addCollection",value:function(t){for(var e=0;e=this._max)throw new W;var t=this._parent.getGeometryN(this._index++);return t instanceof Bt?(this._subcollectionIterator=new e(t),this._subcollectionIterator.next()):t}},{key:"remove",value:function(){throw new J(this.getClass().getName())}},{key:"hasNext",value:function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)}},{key:"interfaces_",get:function(){return[yn]}}],[{key:"constructor_",value:function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var t=arguments[0];this._parent=t,this._atStart=!0,this._index=0,this._max=t.getNumGeometries()}},{key:"isAtomic",value:function(t){return!(t instanceof Bt)}}]),e}(),jn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"locate",value:function(t){return e.locate(t,this._geom)}},{key:"interfaces_",get:function(){return[Yn]}}],[{key:"constructor_",value:function(){this._geom=null;var t=arguments[0];this._geom=t}},{key:"locatePointInPolygon",value:function(t,n){if(n.isEmpty())return Z.EXTERIOR;var r=n.getExteriorRing(),i=e.locatePointInRing(t,r);if(i!==Z.INTERIOR)return i;for(var o=0;o=0;n--){var r=this._edgeList.get(n),i=r.getSym();null===e&&(e=i),null!==t&&i.setNext(t),t=r}e.setNext(t)}},{key:"computeDepths",value:function(){if(1===arguments.length){var t=arguments[0],e=this.findIndex(t),n=t.getDepth(tt.LEFT),r=t.getDepth(tt.RIGHT),i=this.computeDepths(e+1,this._edgeList.size(),n);if(this.computeDepths(0,e,i)!==r)throw new pt("depth mismatch at "+t.getCoordinate())}else if(3===arguments.length){for(var o=arguments[1],s=arguments[2],a=arguments[0];a=0;i--){var o=this._resultAreaEdgeList.get(i),s=o.getSym();switch(null===e&&o.getEdgeRing()===t&&(e=o),r){case this._SCANNING_FOR_INCOMING:if(s.getEdgeRing()!==t)continue;n=s,r=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(o.getEdgeRing()!==t)continue;n.setNextMin(o),r=this._SCANNING_FOR_INCOMING}}r===this._LINKING_TO_OUTGOING&&(V.isTrue(null!==e,"found null for first outgoing dirEdge"),V.isTrue(e.getEdgeRing()===t,"unable to link last incoming dirEdge"),n.setNextMin(e))}},{key:"getOutgoingDegree",value:function(){if(0===arguments.length){for(var t=0,e=this.iterator();e.hasNext();)e.next().isInResult()&&t++;return t}if(1===arguments.length){for(var n=arguments[0],r=0,i=this.iterator();i.hasNext();)i.next().getEdgeRing()===n&&r++;return r}}},{key:"getLabel",value:function(){return this._label}},{key:"findCoveredLineEdges",value:function(){for(var t=Z.NONE,e=this.iterator();e.hasNext();){var n=e.next(),r=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){t=Z.INTERIOR;break}if(r.isInResult()){t=Z.EXTERIOR;break}}}if(t===Z.NONE)return null;for(var i=t,o=this.iterator();o.hasNext();){var s=o.next(),a=s.getSym();s.isLineEdge()?s.getEdge().setCovered(i===Z.INTERIOR):(s.isInResult()&&(i=Z.EXTERIOR),a.isInResult()&&(i=Z.INTERIOR))}}},{key:"computeLabelling",value:function(t){f(i(s.prototype),"computeLabelling",this).call(this,t),this._label=new Ae(Z.NONE);for(var e=this.iterator();e.hasNext();)for(var n=e.next().getEdge().getLabel(),r=0;r<2;r++){var o=n.getLocation(r);o!==Z.INTERIOR&&o!==Z.BOUNDARY||this._label.setLocation(r,Z.INTERIOR)}}}],[{key:"constructor_",value:function(){this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}}]),s}(Xn),Zn=function(e){r(o,e);var i=c(o);function o(){return t(this,o),i.call(this)}return n(o,[{key:"createNode",value:function(t){return new Ge(t,new Un)}}]),o}(Qe),Hn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"compareTo",value:function(t){var n=t;return e.compareOriented(this._pts,this._orientation,n._pts,n._orientation)}},{key:"interfaces_",get:function(){return[k]}}],[{key:"constructor_",value:function(){this._pts=null,this._orientation=null;var t=arguments[0];this._pts=t,this._orientation=e.orientation(t)}},{key:"orientation",value:function(t){return 1===Wt.increasingDirection(t)}},{key:"compareOriented",value:function(t,e,n,r){for(var i=e?1:-1,o=r?1:-1,s=e?t.length:-1,a=r?n.length:-1,u=e?0:t.length-1,l=r?0:n.length-1;;){var h=t[u].compareTo(n[l]);if(0!==h)return h;var c=(u+=i)===s,f=(l+=o)===a;if(c&&!f)return-1;if(!c&&f)return 1;if(c&&f)return 0}}}]),e}(),Wn=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"print",value:function(t){t.print("MULTILINESTRING ( ");for(var e=0;e0&&t.print(","),t.print("(");for(var r=n.getCoordinates(),i=0;i0&&t.print(","),t.print(r[i].x+" "+r[i].y);t.println(")")}t.print(") ")}},{key:"addAll",value:function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next())}},{key:"findEdgeIndex",value:function(t){for(var e=0;et?1:this.diste?1:0}},{key:"interfaces_",get:function(){return[k]}}],[{key:"constructor_",value:function(){this.coord=null,this.segmentIndex=null,this.dist=null;var t=arguments[0],e=arguments[1],n=arguments[2];this.coord=new z(t),this.segmentIndex=e,this.dist=n}}]),e}(),$n=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"print",value:function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)}},{key:"iterator",value:function(){return this._nodeMap.values().iterator()}},{key:"addSplitEdges",value:function(t){this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var r=e.next(),i=this.createSplitEdge(n,r);t.add(i),n=r}}},{key:"addEndpoints",value:function(){var t=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[t],t,0)}},{key:"createSplitEdge",value:function(t,e){var n=e.segmentIndex-t.segmentIndex+2,r=this.edge.pts[e.segmentIndex],i=e.dist>0||!e.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),s=0;o[s++]=new z(t.coord);for(var a=t.segmentIndex+1;a<=e.segmentIndex;a++)o[s++]=this.edge.pts[a];return i&&(o[s]=e.coord),new or(o,new Ae(this.edge._label))}},{key:"add",value:function(t,e,n){var r=new Qn(t,e,n),i=this._nodeMap.get(r);return null!==i?i:(this._nodeMap.put(r,r),r)}},{key:"isIntersection",value:function(t){for(var e=this.iterator();e.hasNext();)if(e.next().coord.equals(t))return!0;return!1}}],[{key:"constructor_",value:function(){this._nodeMap=new Ze,this.edge=null;var t=arguments[0];this.edge=t}}]),e}(),tr=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"isIntersects",value:function(){return!this.isDisjoint()}},{key:"isCovers",value:function(){return(e.isTrue(this._matrix[Z.INTERIOR][Z.INTERIOR])||e.isTrue(this._matrix[Z.INTERIOR][Z.BOUNDARY])||e.isTrue(this._matrix[Z.BOUNDARY][Z.INTERIOR])||e.isTrue(this._matrix[Z.BOUNDARY][Z.BOUNDARY]))&&this._matrix[Z.EXTERIOR][Z.INTERIOR]===Mt.FALSE&&this._matrix[Z.EXTERIOR][Z.BOUNDARY]===Mt.FALSE}},{key:"isCoveredBy",value:function(){return(e.isTrue(this._matrix[Z.INTERIOR][Z.INTERIOR])||e.isTrue(this._matrix[Z.INTERIOR][Z.BOUNDARY])||e.isTrue(this._matrix[Z.BOUNDARY][Z.INTERIOR])||e.isTrue(this._matrix[Z.BOUNDARY][Z.BOUNDARY]))&&this._matrix[Z.INTERIOR][Z.EXTERIOR]===Mt.FALSE&&this._matrix[Z.BOUNDARY][Z.EXTERIOR]===Mt.FALSE}},{key:"set",value:function(){if(1===arguments.length)for(var t=arguments[0],e=0;e=0&&e>=0&&this.setAtLeast(t,e,n)}},{key:"isWithin",value:function(){return e.isTrue(this._matrix[Z.INTERIOR][Z.INTERIOR])&&this._matrix[Z.INTERIOR][Z.EXTERIOR]===Mt.FALSE&&this._matrix[Z.BOUNDARY][Z.EXTERIOR]===Mt.FALSE}},{key:"isTouches",value:function(t,n){return t>n?this.isTouches(n,t):(t===Mt.A&&n===Mt.A||t===Mt.L&&n===Mt.L||t===Mt.L&&n===Mt.A||t===Mt.P&&n===Mt.A||t===Mt.P&&n===Mt.L)&&this._matrix[Z.INTERIOR][Z.INTERIOR]===Mt.FALSE&&(e.isTrue(this._matrix[Z.INTERIOR][Z.BOUNDARY])||e.isTrue(this._matrix[Z.BOUNDARY][Z.INTERIOR])||e.isTrue(this._matrix[Z.BOUNDARY][Z.BOUNDARY]))}},{key:"isOverlaps",value:function(t,n){return t===Mt.P&&n===Mt.P||t===Mt.A&&n===Mt.A?e.isTrue(this._matrix[Z.INTERIOR][Z.INTERIOR])&&e.isTrue(this._matrix[Z.INTERIOR][Z.EXTERIOR])&&e.isTrue(this._matrix[Z.EXTERIOR][Z.INTERIOR]):t===Mt.L&&n===Mt.L&&1===this._matrix[Z.INTERIOR][Z.INTERIOR]&&e.isTrue(this._matrix[Z.INTERIOR][Z.EXTERIOR])&&e.isTrue(this._matrix[Z.EXTERIOR][Z.INTERIOR])}},{key:"isEquals",value:function(t,n){return t===n&&e.isTrue(this._matrix[Z.INTERIOR][Z.INTERIOR])&&this._matrix[Z.INTERIOR][Z.EXTERIOR]===Mt.FALSE&&this._matrix[Z.BOUNDARY][Z.EXTERIOR]===Mt.FALSE&&this._matrix[Z.EXTERIOR][Z.INTERIOR]===Mt.FALSE&&this._matrix[Z.EXTERIOR][Z.BOUNDARY]===Mt.FALSE}},{key:"toString",value:function(){for(var t=new Qt("123456789"),e=0;e<3;e++)for(var n=0;n<3;n++)t.setCharAt(3*e+n,Mt.toDimensionSymbol(this._matrix[e][n]));return t.toString()}},{key:"setAll",value:function(t){for(var e=0;e<3;e++)for(var n=0;n<3;n++)this._matrix[e][n]=t}},{key:"get",value:function(t,e){return this._matrix[t][e]}},{key:"transpose",value:function(){var t=this._matrix[1][0];return this._matrix[1][0]=this._matrix[0][1],this._matrix[0][1]=t,t=this._matrix[2][0],this._matrix[2][0]=this._matrix[0][2],this._matrix[0][2]=t,t=this._matrix[2][1],this._matrix[2][1]=this._matrix[1][2],this._matrix[1][2]=t,this}},{key:"matches",value:function(t){if(9!==t.length)throw new x("Should be length 9: "+t);for(var n=0;n<3;n++)for(var r=0;r<3;r++)if(!e.matches(this._matrix[n][r],t.charAt(3*n+r)))return!1;return!0}},{key:"add",value:function(t){for(var e=0;e<3;e++)for(var n=0;n<3;n++)this.setAtLeast(e,n,t.get(e,n))}},{key:"isDisjoint",value:function(){return this._matrix[Z.INTERIOR][Z.INTERIOR]===Mt.FALSE&&this._matrix[Z.INTERIOR][Z.BOUNDARY]===Mt.FALSE&&this._matrix[Z.BOUNDARY][Z.INTERIOR]===Mt.FALSE&&this._matrix[Z.BOUNDARY][Z.BOUNDARY]===Mt.FALSE}},{key:"isCrosses",value:function(t,n){return t===Mt.P&&n===Mt.L||t===Mt.P&&n===Mt.A||t===Mt.L&&n===Mt.A?e.isTrue(this._matrix[Z.INTERIOR][Z.INTERIOR])&&e.isTrue(this._matrix[Z.INTERIOR][Z.EXTERIOR]):t===Mt.L&&n===Mt.P||t===Mt.A&&n===Mt.P||t===Mt.A&&n===Mt.L?e.isTrue(this._matrix[Z.INTERIOR][Z.INTERIOR])&&e.isTrue(this._matrix[Z.EXTERIOR][Z.INTERIOR]):t===Mt.L&&n===Mt.L&&0===this._matrix[Z.INTERIOR][Z.INTERIOR]}},{key:"interfaces_",get:function(){return[b]}}],[{key:"constructor_",value:function(){if(this._matrix=null,0===arguments.length)this._matrix=Array(3).fill().map((function(){return Array(3)})),this.setAll(Mt.FALSE);else if(1===arguments.length)if("string"==typeof arguments[0]){var t=arguments[0];e.constructor_.call(this),this.set(t)}else if(arguments[0]instanceof e){var n=arguments[0];e.constructor_.call(this),this._matrix[Z.INTERIOR][Z.INTERIOR]=n._matrix[Z.INTERIOR][Z.INTERIOR],this._matrix[Z.INTERIOR][Z.BOUNDARY]=n._matrix[Z.INTERIOR][Z.BOUNDARY],this._matrix[Z.INTERIOR][Z.EXTERIOR]=n._matrix[Z.INTERIOR][Z.EXTERIOR],this._matrix[Z.BOUNDARY][Z.INTERIOR]=n._matrix[Z.BOUNDARY][Z.INTERIOR],this._matrix[Z.BOUNDARY][Z.BOUNDARY]=n._matrix[Z.BOUNDARY][Z.BOUNDARY],this._matrix[Z.BOUNDARY][Z.EXTERIOR]=n._matrix[Z.BOUNDARY][Z.EXTERIOR],this._matrix[Z.EXTERIOR][Z.INTERIOR]=n._matrix[Z.EXTERIOR][Z.INTERIOR],this._matrix[Z.EXTERIOR][Z.BOUNDARY]=n._matrix[Z.EXTERIOR][Z.BOUNDARY],this._matrix[Z.EXTERIOR][Z.EXTERIOR]=n._matrix[Z.EXTERIOR][Z.EXTERIOR]}}},{key:"matches",value:function(){if(Number.isInteger(arguments[0])&&"string"==typeof arguments[1]){var t=arguments[0],n=arguments[1];return n===Mt.SYM_DONTCARE||n===Mt.SYM_TRUE&&(t>=0||t===Mt.TRUE)||n===Mt.SYM_FALSE&&t===Mt.FALSE||n===Mt.SYM_P&&t===Mt.P||n===Mt.SYM_L&&t===Mt.L||n===Mt.SYM_A&&t===Mt.A}if("string"==typeof arguments[0]&&"string"==typeof arguments[1]){var r=arguments[1];return new e(arguments[0]).matches(r)}}},{key:"isTrue",value:function(t){return t>=0||t===Mt.TRUE}}]),e}(),er=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"size",value:function(){return this._size}},{key:"addAll",value:function(t){return null===t||0===t.length?null:(this.ensureCapacity(this._size+t.length),xt.arraycopy(t,0,this._data,this._size,t.length),void(this._size+=t.length))}},{key:"ensureCapacity",value:function(t){if(t<=this._data.length)return null;var e=Math.max(t,2*this._data.length);this._data=At.copyOf(this._data,e)}},{key:"toArray",value:function(){var t=new Array(this._size).fill(null);return xt.arraycopy(this._data,0,t,0,this._size),t}},{key:"add",value:function(t){this.ensureCapacity(this._size+1),this._data[this._size]=t,++this._size}}],[{key:"constructor_",value:function(){if(this._data=null,this._size=0,0===arguments.length)e.constructor_.call(this,10);else if(1===arguments.length){var t=arguments[0];this._data=new Array(t).fill(null)}}}]),e}(),nr=function(){function e(){t(this,e)}return n(e,[{key:"getChainStartIndices",value:function(t){var e=0,n=new er(Math.trunc(t.length/2));n.add(e);do{var r=this.findChainEnd(t,e);n.add(r),e=r}while(en?e:n}},{key:"getMinX",value:function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return ee&&(r=1),this._depth[t][n]=r}}}},{key:"getDelta",value:function(t){return this._depth[t][tt.RIGHT]-this._depth[t][tt.LEFT]}},{key:"getLocation",value:function(t,e){return this._depth[t][e]<=0?Z.EXTERIOR:Z.INTERIOR}},{key:"toString",value:function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]}},{key:"add",value:function(){if(1===arguments.length)for(var t=arguments[0],n=0;n<2;n++)for(var r=1;r<3;r++){var i=t.getLocation(n,r);i!==Z.EXTERIOR&&i!==Z.INTERIOR||(this.isNull(n,r)?this._depth[n][r]=e.depthAtLocation(i):this._depth[n][r]+=e.depthAtLocation(i))}else if(3===arguments.length){var o=arguments[0],s=arguments[1];arguments[2]===Z.INTERIOR&&this._depth[o][s]++}}}],[{key:"constructor_",value:function(){this._depth=Array(2).fill().map((function(){return Array(3)}));for(var t=0;t<2;t++)for(var n=0;n<3;n++)this._depth[t][n]=e.NULL_VALUE}},{key:"depthAtLocation",value:function(t){return t===Z.EXTERIOR?0:t===Z.INTERIOR?1:e.NULL_VALUE}}]),e}();ir.NULL_VALUE=-1;var or=function(e){r(s,e);var o=c(s);function s(){var e;return t(this,s),e=o.call(this),s.constructor_.apply(l(e),arguments),e}return n(s,[{key:"getDepth",value:function(){return this._depth}},{key:"getCollapsedEdge",value:function(){var t=new Array(2).fill(null);return t[0]=this.pts[0],t[1]=this.pts[1],new s(t,Ae.toLineLabel(this._label))}},{key:"isIsolated",value:function(){return this._isIsolated}},{key:"getCoordinates",value:function(){return this.pts}},{key:"setIsolated",value:function(t){this._isIsolated=t}},{key:"setName",value:function(t){this._name=t}},{key:"equals",value:function(t){if(!(t instanceof s))return!1;var e=t;if(this.pts.length!==e.pts.length)return!1;for(var n=!0,r=!0,i=this.pts.length,o=0;o0?this.pts[0]:null;if(1===arguments.length){var t=arguments[0];return this.pts[t]}}},{key:"print",value:function(t){t.print("edge "+this._name+": "),t.print("LINESTRING (");for(var e=0;e0&&t.print(","),t.print(this.pts[e].x+" "+this.pts[e].y);t.print(") "+this._label+" "+this._depthDelta)}},{key:"computeIM",value:function(t){s.updateIM(this._label,t)}},{key:"isCollapsed",value:function(){return!!this._label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])}},{key:"isClosed",value:function(){return this.pts[0].equals(this.pts[this.pts.length-1])}},{key:"getMaximumSegmentIndex",value:function(){return this.pts.length-1}},{key:"getDepthDelta",value:function(){return this._depthDelta}},{key:"getNumPoints",value:function(){return this.pts.length}},{key:"printReverse",value:function(t){t.print("edge "+this._name+": ");for(var e=this.pts.length-1;e>=0;e--)t.print(this.pts[e]+" ");t.println("")}},{key:"getMonotoneChainEdge",value:function(){return null===this._mce&&(this._mce=new rr(this)),this._mce}},{key:"getEnvelope",value:function(){if(null===this._env){this._env=new X;for(var t=0;t0&&t.append(","),t.append(this.pts[e].x+" "+this.pts[e].y);return t.append(") "+this._label+" "+this._depthDelta),t.toString()}},{key:"isPointwiseEqual",value:function(t){if(this.pts.length!==t.pts.length)return!1;for(var e=0;er||this._maxyo;if(s)return!1;var a=this.intersectsToleranceSquare(t,e);return V.isTrue(!(s&&a),"Found bad envelope test"),a}},{key:"initCorners",value:function(t){var e=.5;this._minx=t.x-e,this._maxx=t.x+e,this._miny=t.y-e,this._maxy=t.y+e,this._corner[0]=new z(this._maxx,this._maxy),this._corner[1]=new z(this._minx,this._maxy),this._corner[2]=new z(this._minx,this._miny),this._corner[3]=new z(this._maxx,this._miny)}},{key:"intersects",value:function(t,e){return 1===this._scaleFactor?this.intersectsScaled(t,e):(this.copyScaled(t,this._p0Scaled),this.copyScaled(e,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))}},{key:"scale",value:function(t){return Math.round(t*this._scaleFactor)}},{key:"getCoordinate",value:function(){return this._originalPt}},{key:"copyScaled",value:function(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)}},{key:"getSafeEnvelope",value:function(){if(null===this._safeEnv){var t=e.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new X(this._originalPt.x-t,this._originalPt.x+t,this._originalPt.y-t,this._originalPt.y+t)}return this._safeEnv}},{key:"intersectsPixelClosure",value:function(t,e){return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!(this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),this._li.hasIntersection()))))}},{key:"intersectsToleranceSquare",value:function(t,e){var n=!1,r=!1;return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!(this._li.isProper()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),this._li.isProper()||(this._li.hasIntersection()&&(r=!0),this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),this._li.isProper()||n&&r||t.equals(this._pt)||e.equals(this._pt)))))}},{key:"addSnappedNode",value:function(t,e){var n=t.getCoordinate(e),r=t.getCoordinate(e+1);return!!this.intersects(n,r)&&(t.addIntersection(this.getCoordinate(),e),!0)}}],[{key:"constructor_",value:function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var t=arguments[0],e=arguments[1],n=arguments[2];if(this._originalPt=t,this._pt=t,this._scaleFactor=e,this._li=n,e<=0)throw new x("Scale factor must be non-zero");1!==e&&(this._pt=new z(this.scale(t.x),this.scale(t.y)),this._p0Scaled=new z,this._p1Scaled=new z),this.initCorners(this._pt)}}]),e}();lr.SAFE_ENV_EXPANSION_FACTOR=.75;var hr=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"select",value:function(){if(1===arguments.length);else if(2===arguments.length){var t=arguments[1];arguments[0].getLineSegment(t,this.selectedSegment),this.select(this.selectedSegment)}}}],[{key:"constructor_",value:function(){this.selectedSegment=new bn}}]),e}(),cr=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"snap",value:function(){if(1===arguments.length){var e=arguments[0];return this.snap(e,null,-1)}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],s=r.getSafeEnvelope(),a=new fr(r,i,o);return this._index.query(s,new(function(){function e(){t(this,e)}return n(e,[{key:"interfaces_",get:function(){return[hn]}},{key:"visitItem",value:function(t){t.select(s,a)}}]),e}())),a.isNodeAdded()}}}],[{key:"constructor_",value:function(){this._index=null;var t=arguments[0];this._index=t}}]),e}(),fr=function(e){r(s,e);var o=c(s);function s(){var e;return t(this,s),e=o.call(this),s.constructor_.apply(l(e),arguments),e}return n(s,[{key:"isNodeAdded",value:function(){return this._isNodeAdded}},{key:"select",value:function(){if(!(2===arguments.length&&Number.isInteger(arguments[1])&&arguments[0]instanceof In))return f(i(s.prototype),"select",this).apply(this,arguments);var t=arguments[1],e=arguments[0].getContext();if(this._parentEdge===e&&(t===this._hotPixelVertexIndex||t+1===this._hotPixelVertexIndex))return null;this._isNodeAdded|=this._hotPixel.addSnappedNode(e,t)}}],[{key:"constructor_",value:function(){this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this._hotPixel=t,this._parentEdge=e,this._hotPixelVertexIndex=n}}]),s}(hr);cr.HotPixelSnapAction=fr;var gr=function(){function e(){t(this,e),e.constructor_.apply(this,arguments)}return n(e,[{key:"processIntersections",value:function(t,e,n,r){if(t===n&&e===r)return null;var i=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[r],a=n.getCoordinates()[r+1];if(this._li.computeIntersection(i,o,s,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var u=0;u=0;t--){try{this.bufferReducedPrecision(t)}catch(t){if(!(t instanceof pt))throw t;this._saveException=t}if(null!==this._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var n=arguments[0],r=e.precisionScaleFactor(this._argGeom,this._distance,n),i=new ie(r);this.bufferFixedPrecision(i)}}},{key:"computeGeometry",value:function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var t=this._argGeom.getFactory().getPrecisionModel();t.getType()===ie.FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()}},{key:"setQuadrantSegments",value:function(t){this._bufParams.setQuadrantSegments(t)}},{key:"bufferOriginalPrecision",value:function(){try{var t=new sr(this._bufParams);this._resultGeometry=t.buffer(this._argGeom,this._distance)}catch(t){if(!(t instanceof F))throw t;this._saveException=t}}},{key:"getResultGeometry",value:function(t){return this._distance=t,this.computeGeometry(),this._resultGeometry}},{key:"setEndCapStyle",value:function(t){this._bufParams.setEndCapStyle(t)}}],[{key:"constructor_",value:function(){if(this._argGeom=null,this._distance=null,this._bufParams=new y,this._resultGeometry=null,this._saveException=null,1===arguments.length){var t=arguments[0];this._argGeom=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._argGeom=e,this._bufParams=n}}},{key:"bufferOp",value:function(){if(2===arguments.length){var t=arguments[1];return new e(arguments[0]).getResultGeometry(t)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof U&&"number"==typeof arguments[1]){var n=arguments[1],r=arguments[2],i=new e(arguments[0]);return i.setQuadrantSegments(r),i.getResultGeometry(n)}if(arguments[2]instanceof y&&arguments[0]instanceof U&&"number"==typeof arguments[1]){var o=arguments[1];return new e(arguments[0],arguments[2]).getResultGeometry(o)}}else if(4===arguments.length){var s=arguments[1],a=arguments[2],u=arguments[3],l=new e(arguments[0]);return l.setQuadrantSegments(a),l.setEndCapStyle(u),l.getResultGeometry(s)}}},{key:"precisionScaleFactor",value:function(t,e,n){var r=t.getEnvelopeInternal(),i=Et.max(Math.abs(r.getMaxX()),Math.abs(r.getMaxY()),Math.abs(r.getMinX()),Math.abs(r.getMinY()))+2*(e>0?e:0),o=n-Math.trunc(Math.log(i)/Math.log(10)+1);return Math.pow(10,o)}}]),e}();vr.CAP_ROUND=y.CAP_ROUND,vr.CAP_BUTT=y.CAP_FLAT,vr.CAP_FLAT=y.CAP_FLAT,vr.CAP_SQUARE=y.CAP_SQUARE,vr.MAX_PRECISION_DIGITS=12;var dr=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],yr=function(){function e(n){t(this,e),this.geometryFactory=n||new ae}return n(e,[{key:"read",value:function(t){var e,n=(e="string"==typeof t?JSON.parse(t):t).type;if(!mr[n])throw new Error("Unknown GeoJSON type: "+e.type);return-1!==dr.indexOf(n)?mr[n].call(this,e.coordinates):"GeometryCollection"===n?mr[n].call(this,e.geometries):mr[n].call(this,e)}},{key:"write",value:function(t){var e=t.getGeometryType();if(!_r[e])throw new Error("Geometry is not supported");return _r[e].call(this,t)}}]),e}(),mr={Feature:function(t){var e={};for(var n in t)e[n]=t[n];if(t.geometry){var r=t.geometry.type;if(!mr[r])throw new Error("Unknown GeoJSON type: "+t.type);e.geometry=this.read(t.geometry)}return t.bbox&&(e.bbox=mr.bbox.call(this,t.bbox)),e},FeatureCollection:function(t){var e={};if(t.features){e.features=[];for(var n=0;n1?0:t<-1?Xn:Math.acos(t)}function ir(t){return t>1?Un:t<-1?-Un:Math.asin(t)}function or(){}function sr(t,e){t&&ur.hasOwnProperty(t.type)&&ur[t.type](t,e)}var ar={Feature:function(t,e){sr(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++rXn?t-Hn:t<-Xn?t+Hn:t,e]}function xr(t){return function(e,n){return[(e+=t)>Xn?e-Hn:e<-Xn?e+Hn:e,n]}}function Er(t){var e=xr(t);return e.invert=xr(-t),e}function kr(t,e){var n=tr(t),r=er(t),i=tr(e),o=er(e);function s(t,e){var s=tr(e),a=tr(t)*s,u=er(t)*s,l=er(e),h=l*n+a*r;return[$n(u*i-h*o,a*n-l*r),ir(h*i+u*o)]}return s.invert=function(t,e){var s=tr(e),a=tr(t)*s,u=er(t)*s,l=er(e),h=l*i-u*o;return[$n(u*i+l*o,a*n+h*r),ir(h*n-a*r)]},s}function br(t,e){(e=fr(e))[0]-=t,yr(e);var n=rr(-e[1]);return((-e[2]<0?-n:n)+Hn-jn)%Hn}function wr(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:or,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Ir(t,e){return Kn(t[0]-e[0])=0;--o)i.point((h=l[o])[0],h[1]);else r(f.x,f.p.x,-1,i);f=f.p}l=(f=f.o).z,g=!g}while(!f.v);i.lineEnd()}}}function Mr(t){if(e=t.length){for(var e,n,r=0,i=t[0];++re?1:t>=e?0:NaN}function Pr(t){for(var e,n,r,i=t.length,o=-1,s=0;++o=0;)for(e=(r=t[i]).length;--e>=0;)n[--s]=r[e];return n}Gn(),Gn(),Gn(),_r.invert=_r,function(t){var e;1===t.length&&(e=t,t=function(t,n){return Lr(e(t),n)})}(Lr);var Cr=1e9,Tr=-Cr;function Or(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,a,l){var h=0,c=0;if(null==i||(h=s(i,a))!==(c=s(o,a))||u(i,o)<0^a>0)do{l.point(0===h||3===h?t:n,h>1?r:e)}while((h=(h+a+4)%4)!==c);else l.point(o[0],o[1])}function s(r,i){return Kn(r[0]-t)0?0:3:Kn(r[0]-n)0?2:1:Kn(r[1]-e)0?1:0:i>0?3:2}function a(t,e){return u(t.x,e.x)}function u(t,e){var n=s(t,1),r=s(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(s){var u,l,h,c,f,g,p,v,d,y,m,_=s,x=wr(),E={point:k,lineStart:function(){E.point=b,l&&l.push(h=[]);y=!0,d=!1,p=v=NaN},lineEnd:function(){u&&(b(c,f),g&&d&&x.rejoin(),u.push(x.result()));E.point=k,d&&_.lineEnd()},polygonStart:function(){_=x,u=[],l=[],m=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=l.length;nr&&(f-o)*(r-s)>(g-s)*(t-o)&&++e:g<=r&&(f-o)*(r-s)<(g-s)*(t-o)&&--e;return e}(),n=m&&e,i=(u=Pr(u)).length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),o(null,null,1,s),s.lineEnd()),i&&Sr(u,a,e,o,s),s.polygonEnd());_=s,u=l=h=null}};function k(t,e){i(t,e)&&_.point(t,e)}function b(o,s){var a=i(o,s);if(l&&h.push([o,s]),y)c=o,f=s,g=a,y=!1,a&&(_.lineStart(),_.point(o,s));else if(a&&d)_.point(o,s);else{var u=[p=Math.max(Tr,Math.min(Cr,p)),v=Math.max(Tr,Math.min(Cr,v))],x=[o=Math.max(Tr,Math.min(Cr,o)),s=Math.max(Tr,Math.min(Cr,s))];!function(t,e,n,r,i,o){var s,a=t[0],u=t[1],l=0,h=1,c=e[0]-a,f=e[1]-u;if(s=n-a,c||!(s>0)){if(s/=c,c<0){if(s0){if(s>h)return;s>l&&(l=s)}if(s=i-a,c||!(s<0)){if(s/=c,c<0){if(s>h)return;s>l&&(l=s)}else if(c>0){if(s0)){if(s/=f,f<0){if(s0){if(s>h)return;s>l&&(l=s)}if(s=o-u,f||!(s<0)){if(s/=f,f<0){if(s>h)return;s>l&&(l=s)}else if(f>0){if(s0&&(t[0]=a+l*c,t[1]=u+l*f),h<1&&(e[0]=a+h*c,e[1]=u+h*f),!0}}}}}(u,x,t,e,n,r)?a&&(_.lineStart(),_.point(o,s),m=!1):(d||(_.lineStart(),_.point(u[0],u[1])),_.point(x[0],x[1]),a||_.lineEnd(),m=!1)}p=o,v=s,d=a}return E}}var Rr=Gn();function Ar(t){return t}Gn(),Gn(),Gn();var Dr=1/0,Fr=Dr,qr=-Dr,Vr=qr,Gr={point:function(t,e){tqr&&(qr=t);eVr&&(Vr=e)},lineStart:or,lineEnd:or,polygonStart:or,polygonEnd:or,result:function(){var t=[[Dr,Fr],[qr,Vr]];return qr=Vr=-(Fr=Dr=1/0),t}};function Br(t,e,n,r){return function(i,o){var s,a,u,l=e(o),h=i.invert(r[0],r[1]),c=wr(),f=e(c),g=!1,p={point:v,lineStart:y,lineEnd:m,polygonStart:function(){p.point=_,p.lineStart=x,p.lineEnd=E,a=[],s=[]},polygonEnd:function(){p.point=v,p.lineStart=y,p.lineEnd=m,a=Pr(a);var t=function(t,e){var n=e[0],r=e[1],i=[er(n),-tr(n),0],o=0,s=0;Rr.reset();for(var a=0,u=t.length;a=0?1:-1,w=b*k,I=w>Xn,N=p*x;if(Rr.add($n(N*b*er(w),v*E+N*tr(w))),o+=I?k+b*Hn:k,I^f>=n^m>=n){var S=pr(fr(c),fr(y));yr(S);var M=pr(i,S);yr(M);var L=(I^k>=0?-1:1)*ir(M[2]);(r>L||r===L&&(S[0]||S[1]))&&(s+=I^k>=0?1:-1)}}return(o<-jn||o0){for(g||(o.polygonStart(),g=!0),o.lineStart(),t=0;t1&&2&i&&l.push(l.pop().concat(l.shift())),a.push(l.filter(Yr))}return p}}function Yr(t){return t.length>1}function zr(t,e){return((t=t.x)[0]<0?t[1]-Un-jn:Un-t[1])-((e=e.x)[0]<0?e[1]-Un-jn:Un-e[1])}Gn();var jr=Br((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var a=o>0?Xn:-Xn,u=Kn(o-n);Kn(u-Xn)0?Un:-Un),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),e=0):i!==a&&u>=Xn&&(Kn(n-i)jn?Qn((er(e)*(o=tr(r))*er(n)-er(r)*(i=tr(e))*er(t))/(i*o*s)):(e+r)/2}(n,r,o,s),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),e=0),t.point(n=o,r=s),i=a},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Un,r.point(-Xn,i),r.point(0,i),r.point(Xn,i),r.point(Xn,0),r.point(Xn,-i),r.point(0,-i),r.point(-Xn,-i),r.point(-Xn,0),r.point(-Xn,i);else if(Kn(t[0]-e[0])>jn){var o=t[0]0,i=Kn(n)>jn;function o(t,e){return tr(t)*tr(e)>n}function s(t,e,r){var i=[1,0,0],o=pr(fr(t),fr(e)),s=gr(o,o),a=o[0],u=s-a*a;if(!u)return!r&&t;var l=n*s/u,h=-n*a/u,c=pr(i,o),f=dr(i,l);vr(f,dr(o,h));var g=c,p=gr(f,g),v=gr(g,g),d=p*p-v*(gr(f,f)-1);if(!(d<0)){var y=nr(d),m=dr(g,(-p-y)/v);if(vr(m,f),m=cr(m),!r)return m;var _,x=t[0],E=e[0],k=t[1],b=e[1];E0^m[1]<(Kn(m[0]-x)Xn^(x<=m[0]&&m[0]<=E)){var N=dr(g,(-p+y)/v);return vr(N,f),[m,cr(N)]}}}function a(e,n){var i=r?t:Xn-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return Br(o,(function(t){var e,n,u,l,h;return{lineStart:function(){l=u=!1,h=1},point:function(c,f){var g,p=[c,f],v=o(c,f),d=r?v?0:a(c,f):v?a(c+(c<0?Xn:-Xn),f):0;if(!e&&(l=u=v)&&t.lineStart(),v!==u&&(!(g=s(e,p))||Ir(e,g)||Ir(p,g))&&(p[0]+=jn,p[1]+=jn,v=o(p[0],p[1])),v!==u)h=0,v?(t.lineStart(),g=s(p,e),t.point(g[0],g[1])):(g=s(e,p),t.point(g[0],g[1]),t.lineEnd()),e=g;else if(i&&e&&r^v){var y;d&n||!(y=s(p,e,!0))||(h=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!v||e&&Ir(e,p)||t.point(p[0],p[1]),e=p,u=v,n=d},lineEnd:function(){u&&t.lineEnd(),e=null},clean:function(){return h|(l&&u)<<1}}}),(function(n,r,i,o){!function(t,e,n,r,i,o){if(n){var s=tr(e),a=er(e),u=r*n;null==i?(i=e+r*Hn,o=e-u/2):(i=br(s,i),o=br(s,o),(r>0?io)&&(i+=r*Hn));for(var l,h=i;r>0?h>o:h4*e&&v--){var x=s+f,E=a+g,k=u+p,b=nr(x*x+E*E+k*k),w=ir(k/=b),I=Kn(Kn(k)-1)e||Kn((y*L+m*P)/_-.5)>.3||s*f+a*g+u*p2?t[2]%360*Jn:0,M()):[d*Wn,y*Wn,m*Wn]},I.precision=function(t){return arguments.length?(w=Kr(S,b=t*t),L()):nr(b)},I.fitExtent=function(t,e){return Hr(I,t,e)},I.fitSize=function(t,e){return function(t,e,n){return Hr(t,[[0,0],e],n)}(I,t,e)},function(){return e=t.apply(this,arguments),I.invert=e.invert&&N,M()}}((function(){return t}))()}function ti(t){return function(e,n){var r=tr(e),i=tr(n),o=t(r*i);return[o*i*er(e),o*er(n)]}}function ei(t){return function(e,n){var r=nr(e*e+n*n),i=t(r),o=er(i),s=tr(i);return[$n(e*o,r*s),ir(r&&n*o/r)]}}ti((function(t){return nr(2/(1+t))})).invert=ei((function(t){return 2*ir(t/2)}));var ni=ti((function(t){return(t=rr(t))&&t/er(t)}));function ri(){return $r(ni).scale(79.4188).clipAngle(179.999)}function ii(t,e){return[t,e]}ni.invert=ei((function(t){return t})),ii.invert=ii;var oi=Vn.BufferOp,si=Vn.GeoJSONReader,ai=Vn.GeoJSONWriter;function ui(t,e,n,r){var i=t.properties||{},o="Feature"===t.type?t.geometry:t;if("GeometryCollection"===o.type){var s=[];return mt(t,(function(t){var i=ui(t,e,n,r);i&&s.push(i)})),C(s)}var a=function(t){var e=An(t).geometry.coordinates,n=[-e[0],-e[1]];return ri().rotate(n).scale(x)}(o),u={type:o.type,coordinates:hi(o.coordinates,a)},l=(new si).read(u),h=F(q(e,n),"meters"),c=oi.bufferOp(l,h,r);if(!li((c=(new ai).write(c)).coordinates))return b({type:c.type,coordinates:ci(c.coordinates,a)},i)}function li(t){return Array.isArray(t[0])?li(t[0]):isNaN(t[0])}function hi(t,e){return"object"!==m(t[0])?e(t):t.map((function(t){return hi(t,e)}))}function ci(t,e){return"object"!==m(t[0])?e.invert(t):t.map((function(t){return ci(t,e)}))}function fi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=0,r=0,i=0;return mt(t,(function(t,o,s){var a=e.weight?null==s?void 0:s[e.weight]:void 0;if(!U(a=null==a?1:a))throw new Error("weight value must be a number for feature index "+o);(a=Number(a))>0&&ct(t,(function(t){n+=t[0]*a,r+=t[1]*a,i+=a}))})),I([n/i,r/i],e.properties,e)}function gi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=0,r=0,i=0;return ct(t,(function(t){n+=t[0],r+=t[1],i++}),!0),I([n/i,r/i],e.properties)}function pi(t,e,n,r,i){var o=r.tolerance||.001,s=0,a=0,u=0,l=0;if(vt(n,(function(e){var n,r=null==(n=e.properties)?void 0:n.weight,i=null==r?1:r;if(!U(i=Number(i)))throw new Error("weight value must be a number");if(i>0){l+=1;var o=i*ut(e,t);0===o&&(o=1);var h=i/o;s+=e.geometry.coordinates[0]*h,a+=e.geometry.coordinates[1]*h,u+=h}})),l<1)throw new Error("no features to measure");var h=s/u,c=a/u;return 1===l||0===i||Math.abs(h-e[0])0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mi;if(i(this,t),this.data=e,this.length=this.data.length,this.compare=n,this.length>0)for(var r=(this.length>>1)-1;r>=0;r--)this._down(r)}),[{key:"push",value:function(t){this.data.push(t),this.length++,this._up(this.length-1)}},{key:"pop",value:function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}}},{key:"peek",value:function(){return this.data[0]}},{key:"_up",value:function(t){for(var e=this.data,n=this.compare,r=e[t];t>0;){var i=t-1>>1,o=e[i];if(n(r,o)>=0)break;e[t]=o,t=i}e[t]=r}},{key:"_down",value:function(t){for(var e=this.data,n=this.compare,r=this.length>>1,i=e[t];t=0)break;e[t]=s,t=o}e[t]=i}}])}();function mi(t,e){return te?1:0}var _i,xi,Ei,ki,bi,wi=_n(Object.freeze({__proto__:null,default:yi})),Ii={exports:{}};function Ni(){if(bi)return Ii.exports;bi=1;var t=(xi||(xi=1,_i=function(t,e,n,r){var i=t[0],o=t[1],s=!1;void 0===n&&(n=0),void 0===r&&(r=e.length);for(var a=(r-n)/2,u=0,l=a-1;uo!=g>o&&i<(f-h)*(o-c)/(g-c)+h&&(s=!s)}return s}),_i),e=(ki||(ki=1,Ei=function(t,e,n,r){var i=t[0],o=t[1],s=!1;void 0===n&&(n=0),void 0===r&&(r=e.length);for(var a=r-n,u=0,l=a-1;uo!=g>o&&i<(f-h)*(o-c)/(g-c)+h&&(s=!s)}return s}),Ei);return Ii.exports=function(n,r,i,o){return r.length>0&&Array.isArray(r[0])?e(n,r,i,o):t(n,r,i,o)},Ii.exports.nested=e,Ii.exports.flat=t,Ii.exports}var Si,Mi,Li={exports:{}};Li.exports;function Pi(){return Si||(Si=1,function(t,e){!function(t){var e=134217729,n=33306690738754706e-32;function r(t,e,n,r,i){var o,s,a,u,l=e[0],h=r[0],c=0,f=0;h>l==h>-l?(o=l,l=e[++c]):(o=h,h=r[++f]);var g=0;if(cl==h>-l?(a=o-((s=l+o)-l),l=e[++c]):(a=o-((s=h+o)-h),h=r[++f]),o=s,0!==a&&(i[g++]=a);cl==h>-l?(a=o-((s=o+l)-(u=s-o))+(l-u),l=e[++c]):(a=o-((s=o+h)-(u=s-o))+(h-u),h=r[++f]),o=s,0!==a&&(i[g++]=a);for(;c0!=m>0)return _;var x=Math.abs(y+m);return Math.abs(_)>=o*x?_:-function(t,i,o,g,p,v,d){var y,m,_,x,E,k,b,w,I,N,S,M,L,P,C,T,O,R,A=t-p,D=o-p,F=i-v,q=g-v;E=(C=(w=A-(b=(k=e*A)-(k-A)))*(N=q-(I=(k=e*q)-(k-q)))-((P=A*q)-b*I-w*I-b*N))-(S=C-(O=(w=F-(b=(k=e*F)-(k-F)))*(N=D-(I=(k=e*D)-(k-D)))-((T=F*D)-b*I-w*I-b*N))),u[0]=C-(S+E)+(E-O),E=(L=P-((M=P+S)-(E=M-P))+(S-E))-(S=L-T),u[1]=L-(S+E)+(E-T),E=(R=M+S)-M,u[2]=M-(R-E)+(S-E),u[3]=R;var V=function(t,e){for(var n=e[0],r=1;r=G||-V>=G)return V;if(y=t-(A+(E=t-A))+(E-p),_=o-(D+(E=o-D))+(E-p),m=i-(F+(E=i-F))+(E-v),x=g-(q+(E=g-q))+(E-v),0===y&&0===m&&0===_&&0===x)return V;if(G=a*d+n*Math.abs(V),(V+=A*x+q*y-(F*_+D*m))>=G||-V>=G)return V;E=(C=(w=y-(b=(k=e*y)-(k-y)))*(N=q-(I=(k=e*q)-(k-q)))-((P=y*q)-b*I-w*I-b*N))-(S=C-(O=(w=m-(b=(k=e*m)-(k-m)))*(N=D-(I=(k=e*D)-(k-D)))-((T=m*D)-b*I-w*I-b*N))),f[0]=C-(S+E)+(E-O),E=(L=P-((M=P+S)-(E=M-P))+(S-E))-(S=L-T),f[1]=L-(S+E)+(E-T),E=(R=M+S)-M,f[2]=M-(R-E)+(S-E),f[3]=R;var B=r(4,u,4,f,l);E=(C=(w=A-(b=(k=e*A)-(k-A)))*(N=x-(I=(k=e*x)-(k-x)))-((P=A*x)-b*I-w*I-b*N))-(S=C-(O=(w=F-(b=(k=e*F)-(k-F)))*(N=_-(I=(k=e*_)-(k-_)))-((T=F*_)-b*I-w*I-b*N))),f[0]=C-(S+E)+(E-O),E=(L=P-((M=P+S)-(E=M-P))+(S-E))-(S=L-T),f[1]=L-(S+E)+(E-T),E=(R=M+S)-M,f[2]=M-(R-E)+(S-E),f[3]=R;var Y=r(B,l,4,f,h);E=(C=(w=y-(b=(k=e*y)-(k-y)))*(N=x-(I=(k=e*x)-(k-x)))-((P=y*x)-b*I-w*I-b*N))-(S=C-(O=(w=m-(b=(k=e*m)-(k-m)))*(N=_-(I=(k=e*_)-(k-_)))-((T=m*_)-b*I-w*I-b*N))),f[0]=C-(S+E)+(E-O),E=(L=P-((M=P+S)-(E=M-P))+(S-E))-(S=L-T),f[1]=L-(S+E)+(E-T),E=(R=M+S)-M,f[2]=M-(R-E)+(S-E),f[3]=R;var z=r(Y,h,4,f,c);return c[z-1]}(t,i,g,p,v,d,x)},t.orient2dfast=function(t,e,n,r,i,o){return(e-o)*(n-i)-(t-i)*(r-o)},Object.defineProperty(t,"__esModule",{value:!0})}(e)}(0,Li.exports)),Li.exports}var Ci=function(){if(Mi)return vi.exports;Mi=1;var t=di,e=wi,n=Ni(),r=Pi().orient2d;function i(e,r,i){r=Math.max(0,void 0===r?2:r),i=i||0;var s=function(t){for(var e=t[0],r=t[0],i=t[0],o=t[0],s=0;si[0]&&(i=a),a[1]o[1]&&(o=a)}var u=[e,r,i,o],l=u.slice();for(s=0;s=2&&h(e[e.length-2],e[e.length-1],t[n])<=0;)e.pop();e.push(t[n])}for(var r=[],i=t.length-1;i>=0;i--){for(;r.length>=2&&h(r[r.length-2],r[r.length-1],t[i])<=0;)r.pop();r.push(t[i])}return r.pop(),e.pop(),e.concat(r)}(l)}(e),a=new t(16);a.toBBox=function(t){return{minX:t[0],minY:t[1],maxX:t[0],maxY:t[1]}},a.compareMinX=function(t,e){return t[0]-e[0]},a.compareMinY=function(t,e){return t[1]-e[1]},a.load(e);for(var u,l=[],p=0;pu||c.push({node:v,dist:d})}for(;c.length&&!c.peek().node.children;){var y=c.pop(),m=y.node,_=p(m,n,r),x=p(m,i,o);if(y.dist<_&&y.dist=e.minX&&t[0]<=e.maxX&&t[1]>=e.minY&&t[1]<=e.maxY}function l(t,e,n){for(var r,i,o,s,a=Math.min(t[0],e[0]),u=Math.min(t[1],e[1]),l=Math.max(t[0],e[0]),c=Math.max(t[1],e[1]),f=n.search({minX:a,minY:u,maxX:l,maxY:c}),g=0;g0!=h(r,i,s)>0&&h(o,s,r)>0!=h(o,s,i)>0)return!1;return!0}function h(t,e,n){return r(t[0],t[1],e[0],e[1],n[0],n[1])}function c(t){var e=t.p,n=t.next.p;return t.minX=Math.min(e[0],n[0]),t.minY=Math.min(e[1],n[1]),t.maxX=Math.max(e[0],n[0]),t.maxY=Math.max(e[1],n[1]),t}function f(t,e){var n={p:t,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return e?(n.next=e.next,n.prev=e,e.next.prev=n,e.next=n):(n.prev=n,n.next=n),n}function g(t,e){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function p(t,e,n){var r=e[0],i=e[1],o=n[0]-r,s=n[1]-i;if(0!==o||0!==s){var a=((t[0]-r)*o+(t[1]-i)*s)/(o*o+s*s);a>1?(r=n[0],i=n[1]):a>0&&(r+=o*a,i+=s*a)}return(o=t[0]-r)*o+(s=t[1]-i)*s}function v(t,e,n,r,i,o,s,a){var u,l,h,c,f=n-t,g=r-e,p=s-i,v=a-o,d=t-i,y=e-o,m=f*f+g*g,_=f*p+g*v,x=p*p+v*v,E=f*d+g*y,k=p*d+v*y,b=m*x-_*_,w=b,I=b;0===b?(l=0,w=1,c=k,I=x):(c=m*k-_*E,(l=_*k-x*E)<0?(l=0,c=k,I=x):l>w&&(l=w,c=k+_,I=x)),c<0?(c=0,-E<0?l=0:-E>m?l=w:(l=-E,w=m)):c>I&&(c=I,-E+_<0?l=0:-E+_>m?l=w:(l=-E+_,w=m));var N=(1-(h=0===c?0:c/I))*i+h*s-((1-(u=0===l?0:l/w))*t+u*n),S=(1-h)*o+h*a-((1-u)*e+u*r);return N*N+S*S}function d(t,e){return t[0]===e[0]?t[1]-e[1]:t[0]-e[0]}return e.default&&(e=e.default),vi.exports=i,vi.exports.default=i,vi.exports}(),Ti=mn(Ci);function Oi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.concavity=e.concavity||1/0;var n=[];if(ct(t,(function(t){n.push([t[0],t[1]])})),!n.length)return null;var r=Ti(n,e.concavity);return r.length>3?S([r]):null}function Ri(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.steps||64,i=n.properties?n.properties:!Array.isArray(t)&&"Feature"===t.type&&t.properties?t.properties:{},o=[],s=0;s0;r.length0;){var a=t[Math.floor(Math.random()*o)],u=s?a.join("_"):""+a;n[u]||(n[u]=!0,r.push(a))}if(r.length0,u=t[Math.floor(Math.random()*s)];for(a&&u.join("_"),o.push(u);o.length0,y=[];if(s)u="kmrand"==s?r(t,e):"kmpp"==s?i(t,e):s;else for(var m={};u.lengthc&&(c=t[a].y);var g,p=l-u,v=c-h,d=p>v?p:v,y=.5*(l+u),m=.5*(c+h),_=[new so({__sentinel:!0,x:y-20*d,y:m-d},{__sentinel:!0,x:y,y:m+20*d},{__sentinel:!0,x:y+20*d,y:m-d})],x=[],E=[];a=t.length;for(;a--;){for(E.length=0,g=_.length;g--;)(p=t[a].x-_[g].x)>0&&p*p>_[g].r?(x.push(_[g]),_.splice(g,1)):p*p+(v=t[a].y-_[g].y)*v>_[g].r||(E.push(_[g].a,_[g].b,_[g].b,_[g].c,_[g].c,_[g].a),_.splice(g,1));for(uo(E),g=E.length;g;)n=E[--g],e=E[--g],r=t[a],i=n.x-e.x,o=n.y-e.y,s=2*(i*(r.y-n.y)-o*(r.x-n.x)),Math.abs(s)>f&&_.push(new so(e,n,r))}Array.prototype.push.apply(x,_),a=x.length;for(;a--;)(x[a].a.__sentinel||x[a].b.__sentinel||x[a].c.__sentinel)&&x.splice(a,1);return x}(t.features.map((function(t){var r={x:t.geometry.coordinates[0],y:t.geometry.coordinates[1]};return e?r.z=t.properties[e]:3===t.geometry.coordinates.length&&(n=!0,r.z=t.geometry.coordinates[2]),r}))).map((function(t){var e=[t.a.x,t.a.y],r=[t.b.x,t.b.y],i=[t.c.x,t.c.y],o={};return n?(e.push(t.a.z),r.push(t.b.z),i.push(t.c.z)):o={a:t.a.z,b:t.b.z,c:t.c.z},S([[e,r,i,e]],o)})))}var so=s((function t(e,n,r){i(this,t),this.a=e,this.b=n,this.c=r;var o,s,a=n.x-e.x,u=n.y-e.y,l=r.x-e.x,h=r.y-e.y,c=a*(e.x+n.x)+u*(e.y+n.y),f=l*(e.x+r.x)+h*(e.y+r.y),g=2*(a*(r.y-n.y)-u*(r.x-n.x));this.x=(h*c-u*f)/g,this.y=(a*f-l*c)/g,o=this.x-e.x,s=this.y-e.y,this.r=o*o+s*s}));function ao(t,e){return e.x-t.x}function uo(t){var e,n,r,i,o,s=t.length;t:for(;s;)for(n=t[--s],e=t[--s],r=s;r;)if(o=t[--r],e===(i=t[--r])&&n===o||e===o&&n===i){t.splice(s,2),t.splice(r,2),s-=2;continue t}}function lo(t){return t}function ho(t,e){var n=function(t){if(null==t)return lo;var e,n,r=t.scale[0],i=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,a){a||(e=n=0);var u=2,l=t.length,h=new Array(l);for(h[0]=(e+=t[0])*r+o,h[1]=(n+=t[1])*i+s;u1)for(var o,a,u=1,l=s(i[0]);ul&&(a=i[0],i[0]=i[u],i[u]=a,l=o);return i})).filter((function(t){return t.length>0}))}}var po=Object.prototype.hasOwnProperty;function vo(t,e,n,r,i,o){3===arguments.length&&(r=o=Array,i=null);for(var s=new r(t=1<=t)throw new Error("full hashmap");h=s[l=l+1&u]}return s[l]=r,a[l]=o,o},maybeSet:function(r,o){for(var l=e(r)&u,h=s[l],c=0;h!=i;){if(n(h,r))return a[l];if(++c>=t)throw new Error("full hashmap");h=s[l=l+1&u]}return s[l]=r,a[l]=o,o},get:function(r,o){for(var l=e(r)&u,h=s[l],c=0;h!=i;){if(n(h,r))return a[l];if(++c>=t)break;h=s[l=l+1&u]}return o},keys:function(){for(var t=[],e=0,n=s.length;e>7^xo[2]^xo[3])}function ko(t){var e,n,r,i,o=t.coordinates,s=t.lines,a=t.rings,u=function(){for(var t=vo(1.4*o.length,E,k,Int32Array,-1,Int32Array),e=new Int32Array(o.length),n=0,r=o.length;n=0){var o=c[n];i===e&&o===r||i===r&&o===e||(++g,f[n]=1)}else h[n]=e,c[n]=r}}function E(t){return Eo(o[t])}function k(t,e){return yo(o[t],o[e])}l=h=c=null;var b,w=function(t,e,n,r,i){3===arguments.length&&(r=Array,i=null);for(var o=new r(t=1<=t)throw new Error("full hashset");u=o[a=a+1&s]}return o[a]=r,!0},has:function(r){for(var a=e(r)&s,u=o[a],l=0;u!=i;){if(n(u,r))return!0;if(++l>=t)break;u=o[a=a+1&s]}return!1},values:function(){for(var t=[],e=0,n=o.length;e>1);er&&(r=o),si&&(i=s)}function u(t){t.forEach(a)}function l(t){t.forEach(u)}for(var h in t)o(t[h]);return r>=e&&i>=n?[e,n,r,i]:void 0}(t=Io(t)),r=function(t){var e,n,r,i,o=t.coordinates,s=t.lines,a=t.rings,u=s.length+a.length;for(delete t.lines,delete t.rings,r=0,i=s.length;r1&&void 0!==arguments[1]?arguments[1]:{};if(!Z(e=e||{}))throw new Error("options is invalid");var n=e.mutate;if("FeatureCollection"!==it(t))throw new Error("geojson must be a FeatureCollection");if(!t.features.length)throw new Error("geojson is empty");!1!==n&&void 0!==n||(t=Ai(t));var r=[],i=It(t,(function(t,e){var n=function(t,e){var n,r=t.geometry.coordinates,i=e.geometry.coordinates,o=Oo(r[0]),s=Oo(r[r.length-1]),a=Oo(i[0]),u=Oo(i[i.length-1]);if(o===u)n=i.concat(r.slice(1));else if(a===s)n=r.concat(i.slice(1));else if(o===a)n=r.slice(1).reverse().concat(i);else{if(s!==u)return null;n=r.concat(i.reverse().slice(1))}return L(n)}(t,e);return n||(r.push(t),e)}));return i&&r.push(i),r.length?1===r.length?r[0]:T(r.map((function(t){return t.coordinates}))):null}function Oo(t){return t[0].toString()+","+t[1].toString()}function Ro(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Z(e=e||{}))throw new Error("options is invalid");var n=e.mutate;if("FeatureCollection"!==it(t))throw new Error("geojson must be a FeatureCollection");if(!t.features.length)throw new Error("geojson is empty");!1!==n&&void 0!==n||(t=Ai(t));var r=function(t){var e={};xt(t,(function(t){e[t.geometry.type]=!0}));var n=Object.keys(e);if(1===n.length)return n[0];return null}(t);if(!r)throw new Error("geojson must be homogenous");var i=t;switch(r){case"LineString":return To(i,e);case"Polygon":return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("FeatureCollection"!==it(t))throw new Error("geojson must be a FeatureCollection");if(!t.features.length)throw new Error("geojson is empty");!1!==e.mutate&&void 0!==e.mutate||(t=Ai(t));var n=[];xt(t,(function(t){n.push(t.geometry)}));var r=Lo({geoms:A(n).geometry});return fo(r,r.objects.geoms.geometries)}(i,e);default:throw new Error(r+" is not supported")}}var Ao=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Do=Math.ceil,Fo=Math.floor,qo="[BigNumber Error] ",Vo=qo+"Number primitive has more than 15 significant digits: ",Go=1e14,Bo=14,Yo=9007199254740991,zo=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],jo=1e7,Xo=1e9;function Uo(t){var e=0|t;return t>0||t===e?e:e-1}function Zo(t){for(var e,n,r=1,i=t.length,o=t[0]+"";rl^n?1:-1;for(a=(u=i.length)<(l=o.length)?u:l,s=0;so[s]^n?1:-1;return u==l?0:u>l^n?1:-1}function Wo(t,e,n,r){if(tn||t!==Fo(t))throw Error(qo+(r||"Argument")+("number"==typeof t?tn?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function Jo(t){var e=t.c.length-1;return Uo(t.e/Bo)==e&&t.c[e]%2!=0}function Ko(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function Qo(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(++e>(r=t.length)){for(i=n,e-=r;--e;i+=n);t+=i}else ex?f.c=f.e=null:t.e<_?f.c=[f.e=0]:(f.e=t.e,f.c=t.c.slice()));if((l="number"==typeof t)&&0*t==0){if(f.s=1/t<0?(t=-t,-1):1,t===~~t){for(a=0,u=t;u>=10;u/=10,a++);return void(a>x?f.c=f.e=null:(f.e=a,f.c=[t]))}c=String(t)}else{if(!Ao.test(c=String(t)))return i(f,c,l);f.s=45==c.charCodeAt(0)?(c=c.slice(1),-1):1}(a=c.indexOf("."))>-1&&(c=c.replace(".","")),(u=c.search(/e/i))>0?(a<0&&(a=u),a+=+c.slice(u+1),c=c.substring(0,u)):a<0&&(a=c.length)}else{if(Wo(e,2,I.length,"Base"),10==e&&N)return C(f=new S(t),p+f.e+1,v);if(c=String(t),l="number"==typeof t){if(0*t!=0)return i(f,c,l,e);if(f.s=1/t<0?(c=c.slice(1),-1):1,S.DEBUG&&c.replace(/^0\.0*|\./,"").length>15)throw Error(Vo+t)}else f.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1;for(n=I.slice(0,e),a=u=0,h=c.length;ua){a=h;continue}}else if(!s&&(c==c.toUpperCase()&&(c=c.toLowerCase())||c==c.toLowerCase()&&(c=c.toUpperCase()))){s=!0,u=-1,a=0;continue}return i(f,String(t),l,e)}l=!1,(a=(c=r(c,e,10,f.s)).indexOf("."))>-1?c=c.replace(".",""):a=c.length}for(u=0;48===c.charCodeAt(u);u++);for(h=c.length;48===c.charCodeAt(--h););if(c=c.slice(u,++h)){if(h-=u,l&&S.DEBUG&&h>15&&(t>Yo||t!==Fo(t)))throw Error(Vo+f.s*t);if((a=a-u-1)>x)f.c=f.e=null;else if(a<_)f.c=[f.e=0];else{if(f.e=a,f.c=[],u=(a+1)%Bo,a<0&&(u+=Bo),u=y)?Ko(u,s):Qo(u,s,"0");else if(o=(t=C(new S(t),e,n)).e,a=(u=Zo(t.c)).length,1==r||2==r&&(e<=o||o<=d)){for(;aa){if(--e>0)for(u+=".";e--;u+="0");}else if((e+=o-a)>0)for(o+1==a&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function L(t,e){for(var n,r,i=1,o=new S(t[0]);i=10;i/=10,r++);return(n=r+n*Bo-1)>x?t.c=t.e=null:n<_?t.c=[t.e=0]:(t.e=n,t.c=e),t}function C(t,e,n,r){var i,o,s,a,u,l,h,c=t.c,f=zo;if(c){t:{for(i=1,a=c[0];a>=10;a/=10,i++);if((o=e-i)<0)o+=Bo,s=e,u=c[l=0],h=Fo(u/f[i-s-1]%10);else if((l=Do((o+1)/Bo))>=c.length){if(!r)break t;for(;c.length<=l;c.push(0));u=h=0,i=1,s=(o%=Bo)-Bo+1}else{for(u=a=c[l],i=1;a>=10;a/=10,i++);h=(s=(o%=Bo)-Bo+i)<0?0:Fo(u/f[i-s-1]%10)}if(r=r||e<0||null!=c[l+1]||(s<0?u:u%f[i-s-1]),r=n<4?(h||r)&&(0==n||n==(t.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?s>0?u/f[i-s]:0:c[l-1])%10&1||n==(t.s<0?8:7)),e<1||!c[0])return c.length=0,r?(e-=t.e+1,c[0]=f[(Bo-e%Bo)%Bo],t.e=-e||0):c[0]=t.e=0,t;if(0==o?(c.length=l,a=1,l--):(c.length=l+1,a=f[Bo-o],c[l]=s>0?Fo(u/f[i-s]%f[s])*a:0),r)for(;;){if(0==l){for(o=1,s=c[0];s>=10;s/=10,o++);for(s=c[0]+=a,a=1;s>=10;s/=10,a++);o!=a&&(t.e++,c[0]==Go&&(c[0]=1));break}if(c[l]+=a,c[l]!=Go)break;c[l--]=0,a=1}for(o=c.length;0===c[--o];c.pop());}t.e>x?t.c=t.e=null:t.e<_&&(t.c=[t.e=0])}return t}function T(t){var e,n=t.e;return null===n?t.toString():(e=Zo(t.c),e=n<=d||n>=y?Ko(e,n):Qo(e,n,"0"),t.s<0?"-"+e:e)}return S.clone=t,S.ROUND_UP=0,S.ROUND_DOWN=1,S.ROUND_CEIL=2,S.ROUND_FLOOR=3,S.ROUND_HALF_UP=4,S.ROUND_HALF_DOWN=5,S.ROUND_HALF_EVEN=6,S.ROUND_HALF_CEIL=7,S.ROUND_HALF_FLOOR=8,S.EUCLID=9,S.config=S.set=function(t){var e,n;if(null!=t){if("object"!=m(t))throw Error(qo+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(Wo(n=t[e],0,Xo,e),p=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(Wo(n=t[e],0,8,e),v=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((n=t[e])&&n.pop?(Wo(n[0],-Xo,0,e),Wo(n[1],0,Xo,e),d=n[0],y=n[1]):(Wo(n,-Xo,Xo,e),d=-(y=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if((n=t[e])&&n.pop)Wo(n[0],-Xo,-1,e),Wo(n[1],1,Xo,e),_=n[0],x=n[1];else{if(Wo(n,-Xo,Xo,e),!n)throw Error(qo+e+" cannot be zero: "+n);_=-(x=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if((n=t[e])!==!!n)throw Error(qo+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw E=!n,Error(qo+"crypto unavailable");E=n}else E=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(Wo(n=t[e],0,9,e),k=n),t.hasOwnProperty(e="POW_PRECISION")&&(Wo(n=t[e],0,Xo,e),b=n),t.hasOwnProperty(e="FORMAT")){if("object"!=m(n=t[e]))throw Error(qo+e+" not an object: "+n);w=n}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(n=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(qo+e+" invalid: "+n);N="0123456789"==n.slice(0,10),I=n}}return{DECIMAL_PLACES:p,ROUNDING_MODE:v,EXPONENTIAL_AT:[d,y],RANGE:[_,x],CRYPTO:E,MODULO_MODE:k,POW_PRECISION:b,FORMAT:w,ALPHABET:I}},S.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!S.DEBUG)return!0;var e,n,r=t.c,i=t.e,o=t.s;t:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-Xo&&i<=Xo&&i===Fo(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break t}if((e=(i+1)%Bo)<1&&(e+=Bo),String(r[0]).length==e){for(e=0;e=Go||n!==Fo(n))break t;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(qo+"Invalid BigNumber: "+t)},S.maximum=S.max=function(){return L(arguments,-1)},S.minimum=S.min=function(){return L(arguments,1)},S.random=(o=9007199254740992,s=Math.random()*o&2097151?function(){return Fo(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,n,r,i,o,a=0,u=[],l=new S(g);if(null==t?t=p:Wo(t,0,Xo),i=Do(t/Bo),E)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));a>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),e[a]=n[0],e[a+1]=n[1]):(u.push(o%1e14),a+=2);a=i/2}else{if(!crypto.randomBytes)throw E=!1,Error(qo+"crypto unavailable");for(e=crypto.randomBytes(i*=7);a=9e15?crypto.randomBytes(7).copy(e,a):(u.push(o%1e14),a+=7);a=i/7}if(!E)for(;a=10;o/=10,a++);an-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(r,i,o,s,a){var u,l,h,c,f,g,d,y,m=r.indexOf("."),_=p,x=v;for(m>=0&&(c=b,b=0,r=r.replace(".",""),g=(y=new S(i)).pow(r.length-m),b=c,y.c=e(Qo(Zo(g.c),g.e,"0"),10,o,t),y.e=y.c.length),h=c=(d=e(r,i,o,a?(u=I,t):(u=t,I))).length;0==d[--c];d.pop());if(!d[0])return u.charAt(0);if(m<0?--h:(g.c=d,g.e=h,g.s=s,d=(g=n(g,y,_,x,o)).c,f=g.r,h=g.e),m=d[l=h+_+1],c=o/2,f=f||l<0||null!=d[l+1],f=x<4?(null!=m||f)&&(0==x||x==(g.s<0?3:2)):m>c||m==c&&(4==x||f||6==x&&1&d[l-1]||x==(g.s<0?8:7)),l<1||!d[0])r=f?Qo(u.charAt(1),-_,u.charAt(0)):u.charAt(0);else{if(d.length=l,f)for(--o;++d[--l]>o;)d[l]=0,l||(++h,d=[1].concat(d));for(c=d.length;!d[--c];);for(m=0,r="";m<=c;r+=u.charAt(d[m++]));r=Qo(r,h,u.charAt(0))}return r}}(),n=function(){function t(t,e,n){var r,i,o,s,a=0,u=t.length,l=e%jo,h=e/jo|0;for(t=t.slice();u--;)a=((i=l*(o=t[u]%jo)+(r=h*o+(s=t[u]/jo|0)*l)%jo*jo+a)/n|0)+(r/jo|0)+h*s,t[u]=i%n;return a&&(t=[a].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;t.splice(0,1));}return function(r,i,o,s,a){var u,l,h,c,f,g,p,v,d,y,m,_,x,E,k,b,w,I=r.s==i.s?1:-1,N=r.c,M=i.c;if(!(N&&N[0]&&M&&M[0]))return new S(r.s&&i.s&&(N?!M||N[0]!=M[0]:M)?N&&0==N[0]||!M?0*I:I/0:NaN);for(d=(v=new S(I)).c=[],I=o+(l=r.e-i.e)+1,a||(a=Go,l=Uo(r.e/Bo)-Uo(i.e/Bo),I=I/Bo|0),h=0;M[h]==(N[h]||0);h++);if(M[h]>(N[h]||0)&&l--,I<0)d.push(1),c=!0;else{for(E=N.length,b=M.length,h=0,I+=2,(f=Fo(a/(M[0]+1)))>1&&(M=t(M,f,a),N=t(N,f,a),b=M.length,E=N.length),x=b,m=(y=N.slice(0,b)).length;m=a/2&&k++;do{if(f=0,(u=e(M,y,b,m))<0){if(_=y[0],b!=m&&(_=_*a+(y[1]||0)),(f=Fo(_/k))>1)for(f>=a&&(f=a-1),p=(g=t(M,f,a)).length,m=y.length;1==e(g,y,p,m);)f--,n(g,b=10;I/=10,h++);C(v,o+(v.e=h+l*Bo-1)+1,s,c)}else v.e=l,v.r=+c;return v}}(),a=/^(-?)0([xbo])(?=\w[\w.]*$)/i,u=/^([^.]+)\.$/,l=/^\.([^.]+)$/,h=/^-?(Infinity|NaN)$/,c=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,n,r){var i,o=n?e:e.replace(c,"");if(h.test(o))t.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(a,(function(t,e,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?t:e})),r&&(i=r,o=o.replace(u,"$1").replace(l,"0.$1")),e!=o))return new S(o,i);if(S.DEBUG)throw Error(qo+"Not a"+(r?" base "+r:"")+" number: "+e);t.s=null}t.c=t.e=null},f.absoluteValue=f.abs=function(){var t=new S(this);return t.s<0&&(t.s=1),t},f.comparedTo=function(t,e){return Ho(this,new S(t,e))},f.decimalPlaces=f.dp=function(t,e){var n,r,i,o=this;if(null!=t)return Wo(t,0,Xo),null==e?e=v:Wo(e,0,8),C(new S(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-Uo(this.e/Bo))*Bo,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},f.dividedBy=f.div=function(t,e){return n(this,new S(t,e),p,v)},f.dividedToIntegerBy=f.idiv=function(t,e){return n(this,new S(t,e),0,1)},f.exponentiatedBy=f.pow=function(t,e){var n,r,i,o,s,a,u,l,h=this;if((t=new S(t)).c&&!t.isInteger())throw Error(qo+"Exponent not an integer: "+T(t));if(null!=e&&(e=new S(e)),s=t.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!t.c||!t.c[0])return l=new S(Math.pow(+T(h),s?t.s*(2-Jo(t)):+T(t))),e?l.mod(e):l;if(a=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new S(NaN);(r=!a&&h.isInteger()&&e.isInteger())&&(h=h.mod(e))}else{if(t.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||s&&h.c[1]>=24e7:h.c[0]<8e13||s&&h.c[0]<=9999975e7)))return o=h.s<0&&Jo(t)?-0:0,h.e>-1&&(o=1/o),new S(a?1/o:o);b&&(o=Do(b/Bo+2))}for(s?(n=new S(.5),a&&(t.s=1),u=Jo(t)):u=(i=Math.abs(+T(t)))%2,l=new S(g);;){if(u){if(!(l=l.times(h)).c)break;o?l.c.length>o&&(l.c.length=o):r&&(l=l.mod(e))}if(i){if(0===(i=Fo(i/2)))break;u=i%2}else if(C(t=t.times(n),t.e+1,1),t.e>14)u=Jo(t);else{if(0===(i=+T(t)))break;u=i%2}h=h.times(h),o?h.c&&h.c.length>o&&(h.c.length=o):r&&(h=h.mod(e))}return r?l:(a&&(l=g.div(l)),e?l.mod(e):o?C(l,b,v,undefined):l)},f.integerValue=function(t){var e=new S(this);return null==t?t=v:Wo(t,0,8),C(e,e.e+1,t)},f.isEqualTo=f.eq=function(t,e){return 0===Ho(this,new S(t,e))},f.isFinite=function(){return!!this.c},f.isGreaterThan=f.gt=function(t,e){return Ho(this,new S(t,e))>0},f.isGreaterThanOrEqualTo=f.gte=function(t,e){return 1===(e=Ho(this,new S(t,e)))||0===e},f.isInteger=function(){return!!this.c&&Uo(this.e/Bo)>this.c.length-2},f.isLessThan=f.lt=function(t,e){return Ho(this,new S(t,e))<0},f.isLessThanOrEqualTo=f.lte=function(t,e){return-1===(e=Ho(this,new S(t,e)))||0===e},f.isNaN=function(){return!this.s},f.isNegative=function(){return this.s<0},f.isPositive=function(){return this.s>0},f.isZero=function(){return!!this.c&&0==this.c[0]},f.minus=function(t,e){var n,r,i,o,s=this,a=s.s;if(e=(t=new S(t,e)).s,!a||!e)return new S(NaN);if(a!=e)return t.s=-e,s.plus(t);var u=s.e/Bo,l=t.e/Bo,h=s.c,c=t.c;if(!u||!l){if(!h||!c)return h?(t.s=-e,t):new S(c?s:NaN);if(!h[0]||!c[0])return c[0]?(t.s=-e,t):new S(h[0]?s:3==v?-0:0)}if(u=Uo(u),l=Uo(l),h=h.slice(),a=u-l){for((o=a<0)?(a=-a,i=h):(l=u,i=c),i.reverse(),e=a;e--;i.push(0));i.reverse()}else for(r=(o=(a=h.length)<(e=c.length))?a:e,a=e=0;e0)for(;e--;h[n++]=0);for(e=Go-1;r>a;){if(h[--r]=0;){for(n=0,f=_[i]%d,g=_[i]/d|0,o=i+(s=u);o>i;)n=((l=f*(l=m[--s]%d)+(a=g*l+(h=m[s]/d|0)*f)%d*d+p[o]+n)/v|0)+(a/d|0)+g*h,p[o--]=l%v;p[o]=n}return n?++r:p.splice(0,1),P(t,p,r)},f.negated=function(){var t=new S(this);return t.s=-t.s||null,t},f.plus=function(t,e){var n,r=this,i=r.s;if(e=(t=new S(t,e)).s,!i||!e)return new S(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/Bo,s=t.e/Bo,a=r.c,u=t.c;if(!o||!s){if(!a||!u)return new S(i/0);if(!a[0]||!u[0])return u[0]?t:new S(a[0]?r:0*i)}if(o=Uo(o),s=Uo(s),a=a.slice(),i=o-s){for(i>0?(s=o,n=u):(i=-i,n=a),n.reverse();i--;n.push(0));n.reverse()}for((i=a.length)-(e=u.length)<0&&(n=u,u=a,a=n,e=i),i=0;e;)i=(a[--e]=a[e]+u[e]+i)/Go|0,a[e]=Go===a[e]?0:a[e]%Go;return i&&(a=[i].concat(a),++s),P(t,a,s)},f.precision=f.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return Wo(t,1,Xo),null==e?e=v:Wo(e,0,8),C(new S(o),t,e);if(!(n=o.c))return null;if(r=(i=n.length-1)*Bo+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},f.shiftedBy=function(t){return Wo(t,-9007199254740991,Yo),this.times("1e"+t)},f.squareRoot=f.sqrt=function(){var t,e,r,i,o,s=this,a=s.c,u=s.s,l=s.e,h=p+4,c=new S("0.5");if(1!==u||!a||!a[0])return new S(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(u=Math.sqrt(+T(s)))||u==1/0?(((e=Zo(a)).length+l)%2==0&&(e+="0"),u=Math.sqrt(+e),l=Uo((l+1)/2)-(l<0||l%2),r=new S(e=u==1/0?"5e"+l:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+l)):r=new S(u+""),r.c[0])for((u=(l=r.e)+h)<3&&(u=0);;)if(o=r,r=c.times(o.plus(n(s,o,h,1))),Zo(o.c).slice(0,u)===(e=Zo(r.c)).slice(0,u)){if(r.e0&&p>0){for(o=p%a||a,h=g.substr(0,o);o0&&(h+=l+g.slice(o)),f&&(h="-"+h)}r=c?h+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?c.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):c):h}return(n.prefix||"")+r+(n.suffix||"")},f.toFraction=function(t){var e,r,i,o,s,a,u,l,h,c,f,p,d=this,y=d.c;if(null!=t&&(!(u=new S(t)).isInteger()&&(u.c||1!==u.s)||u.lt(g)))throw Error(qo+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+T(u));if(!y)return new S(d);for(e=new S(g),h=r=new S(g),i=l=new S(g),p=Zo(y),s=e.e=p.length-d.e-1,e.c[0]=zo[(a=s%Bo)<0?Bo+a:a],t=!t||u.comparedTo(e)>0?s>0?e:h:u,a=x,x=1/0,u=new S(p),l.c[0]=0;c=n(u,e,0,1),1!=(o=r.plus(c.times(i))).comparedTo(t);)r=i,i=o,h=l.plus(c.times(o=h)),l=o,e=u.minus(c.times(o=e)),u=o;return o=n(t.minus(r),i,0,1),l=l.plus(o.times(h)),r=r.plus(o.times(i)),l.s=h.s=d.s,f=n(h,i,s*=2,v).minus(d).abs().comparedTo(n(l,r,s,v).minus(d).abs())<1?[h,i]:[l,r],x=a,f},f.toNumber=function(){return+T(this)},f.toPrecision=function(t,e){return null!=t&&Wo(t,1,Xo),M(this,t,e,2)},f.toString=function(t){var e,n=this,i=n.s,o=n.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=o<=d||o>=y?Ko(Zo(n.c),o):Qo(Zo(n.c),o,"0"):10===t&&N?e=Qo(Zo((n=C(new S(n),p+o+1,v)).c),n.e,"0"):(Wo(t,2,I.length,"Base"),e=r(Qo(Zo(n.c),o,"0"),10,t,i,!0)),i<0&&n.c[0]&&(e="-"+e)),e},f.valueOf=f.toJSON=function(){return T(this)},f._isBigNumber=!0,f[Symbol.toStringTag]="BigNumber",f[Symbol.for("nodejs.util.inspect.custom")]=f.valueOf,null!=e&&S.set(e),S}(),ts=function(t){function e(t){return i(this,e),r(this,e,[t])}return h(e,t),s(e)}(s((function t(e){i(this,t),u(this,"key",void 0),u(this,"left",null),u(this,"right",null),this.key=e}))),es=function(){return s((function t(){i(this,t),u(this,"size",0),u(this,"modificationCount",0),u(this,"splayCount",0)}),[{key:"splay",value:function(t){var e=this.root;if(null==e)return this.compare(t,t),-1;for(var n,r=null,i=null,o=null,s=null,a=e,u=this.compare;;)if((n=u(a.key,t))>0){var l=a.left;if(null==l)break;if((n=u(l.key,t))>0&&(a.left=l.right,l.right=a,null==(l=(a=l).left)))break;null==r?i=a:r.left=a,r=a,a=l}else{if(!(n<0))break;var h=a.right;if(null==h)break;if((n=u(h.key,t))<0&&(a.right=h.left,h.left=a,null==(h=(a=h).right)))break;null==o?s=a:o.right=a,o=a,a=h}return null!=o&&(o.right=a.left,a.left=s),null!=r&&(r.left=a.right,a.right=i),this.root!==a&&(this.root=a,this.splayCount++),n}},{key:"splayMin",value:function(t){for(var e=t,n=e.left;null!=n;){var r=n;e.left=r.right,r.right=e,n=(e=r).left}return e}},{key:"splayMax",value:function(t){for(var e=t,n=e.right;null!=n;){var r=n;e.right=r.left,r.left=e,n=(e=r).right}return e}},{key:"_delete",value:function(t){if(null==this.root)return null;if(0!=this.splay(t))return null;var e=this.root,n=e,r=e.left;if(this.size--,null==r)this.root=e.right;else{var i=e.right;(e=this.splayMax(r)).right=i,this.root=e}return this.modificationCount++,n}},{key:"addNewRoot",value:function(t,e){this.size++,this.modificationCount++;var n=this.root;null!=n?(e<0?(t.left=n,t.right=n.right,n.right=null):(t.right=n,t.left=n.left,n.left=null),this.root=t):this.root=t}},{key:"_first",value:function(){var t=this.root;return null==t?null:(this.root=this.splayMin(t),this.root)}},{key:"_last",value:function(){var t=this.root;return null==t?null:(this.root=this.splayMax(t),this.root)}},{key:"clear",value:function(){this.root=null,this.size=0,this.modificationCount++}},{key:"has",value:function(t){return this.validKey(t)&&0==this.splay(t)}},{key:"defaultCompare",value:function(){return function(t,e){return te?1:0}}},{key:"wrap",value:function(){var t=this;return{getRoot:function(){return t.root},setRoot:function(e){t.root=e},getSize:function(){return t.size},getModificationCount:function(){return t.modificationCount},getSplayCount:function(){return t.splayCount},setSplayCount:function(e){t.splayCount=e},splay:function(e){return t.splay(e)},has:function(e){return t.has(e)}}}}])}(),ns=function(t){function e(t,n){var o;return i(this,e),u(o=r(this,e),"root",null),u(o,"compare",void 0),u(o,"validKey",void 0),u(o,Symbol.toStringTag,"[object Set]"),o.compare=null!=t?t:o.defaultCompare(),o.validKey=null!=n?n:function(t){return null!=t&&null!=t},o}return h(e,t),s(e,[{key:"delete",value:function(t){return!!this.validKey(t)&&null!=this._delete(t)}},{key:"deleteAll",value:function(t){var e,n=a(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.delete(r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"forEach",value:function(t){for(var e,n=this[Symbol.iterator]();!(e=n.next()).done;)t(e.value,e.value,this)}},{key:"add",value:function(t){var e=this.splay(t);return 0!=e&&this.addNewRoot(new ts(t),e),this}},{key:"addAndReturn",value:function(t){var e=this.splay(t);return 0!=e&&this.addNewRoot(new ts(t),e),this.root.key}},{key:"addAll",value:function(t){var e,n=a(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.add(r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"isEmpty",value:function(){return null==this.root}},{key:"isNotEmpty",value:function(){return null!=this.root}},{key:"single",value:function(){if(0==this.size)throw"Bad state: No element";if(this.size>1)throw"Bad state: Too many element";return this.root.key}},{key:"first",value:function(){if(0==this.size)throw"Bad state: No element";return this._first().key}},{key:"last",value:function(){if(0==this.size)throw"Bad state: No element";return this._last().key}},{key:"lastBefore",value:function(t){if(null==t)throw"Invalid arguments(s)";if(null==this.root)return null;if(this.splay(t)<0)return this.root.key;var e=this.root.left;if(null==e)return null;for(var n=e.right;null!=n;)n=(e=n).right;return e.key}},{key:"firstAfter",value:function(t){if(null==t)throw"Invalid arguments(s)";if(null==this.root)return null;if(this.splay(t)>0)return this.root.key;var e=this.root.right;if(null==e)return null;for(var n=e.left;null!=n;)n=(e=n).left;return e.key}},{key:"retainAll",value:function(t){var n,r=new e(this.compare,this.validKey),i=this.modificationCount,o=a(t);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(i!=this.modificationCount)throw"Concurrent modification during iteration.";this.validKey(s)&&0==this.splay(s)&&r.add(this.root.key)}}catch(t){o.e(t)}finally{o.f()}r.size!=this.size&&(this.root=r.root,this.size=r.size,this.modificationCount++)}},{key:"lookup",value:function(t){return this.validKey(t)?0!=this.splay(t)?null:this.root.key:null}},{key:"intersection",value:function(t){var n,r=new e(this.compare,this.validKey),i=a(this);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.has(o)&&r.add(o)}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"difference",value:function(t){var n,r=new e(this.compare,this.validKey),i=a(this);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.has(o)||r.add(o)}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"union",value:function(t){var e=this.clone();return e.addAll(t),e}},{key:"clone",value:function(){var t=new e(this.compare,this.validKey);return t.size=this.size,t.root=this.copyNode(this.root),t}},{key:"copyNode",value:function(t){if(null==t)return null;var e=new ts(t.key);return function t(e,n){var r,i;do{if(r=e.left,i=e.right,null!=r){var o=new ts(r.key);n.left=o,t(r,o)}if(null!=i){var s=new ts(i.key);n.right=s,e=i,n=s}}while(null!=i)}(t,e),e}},{key:"toSet",value:function(){return this.clone()}},{key:"entries",value:function(){return new os(this.wrap())}},{key:"keys",value:function(){return this[Symbol.iterator]()}},{key:"values",value:function(){return this[Symbol.iterator]()}},{key:Symbol.iterator,value:function(){return new is(this.wrap())}}])}(es),rs=function(){return s((function t(e){i(this,t),u(this,"tree",void 0),u(this,"path",new Array),u(this,"modificationCount",null),u(this,"splayCount",void 0),this.tree=e,this.splayCount=e.getSplayCount()}),[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(){return this.moveNext()?{done:!1,value:this.current()}:{done:!0,value:null}}},{key:"current",value:function(){if(!this.path.length)return null;var t=this.path[this.path.length-1];return this.getValue(t)}},{key:"rebuildPath",value:function(t){this.path.splice(0,this.path.length),this.tree.splay(t),this.path.push(this.tree.getRoot()),this.splayCount=this.tree.getSplayCount()}},{key:"findLeftMostDescendent",value:function(t){for(;null!=t;)this.path.push(t),t=t.left}},{key:"moveNext",value:function(){if(this.modificationCount!=this.tree.getModificationCount()){if(null==this.modificationCount){this.modificationCount=this.tree.getModificationCount();for(var t=this.tree.getRoot();null!=t;)this.path.push(t),t=t.left;return this.path.length>0}throw"Concurrent modification during iteration."}if(!this.path.length)return!1;this.splayCount!=this.tree.getSplayCount()&&this.rebuildPath(this.path[this.path.length-1].key);var e=this.path[this.path.length-1],n=e.right;if(null!=n){for(;null!=n;)this.path.push(n),n=n.left;return!0}for(this.path.pop();this.path.length&&this.path[this.path.length-1].right===e;)e=this.path.pop();return this.path.length>0}}])}(),is=function(t){function e(){return i(this,e),r(this,e,arguments)}return h(e,t),s(e,[{key:"getValue",value:function(t){return t.key}}])}(rs),os=function(t){function e(){return i(this,e),r(this,e,arguments)}return h(e,t),s(e,[{key:"getValue",value:function(t){return[t.key,t.key]}}])}(rs),ss=function(t){return function(){return t}},as=function(t){var e=t?function(e,n){return n.minus(e).abs().isLessThanOrEqualTo(t)}:ss(!1);return function(t,n){return e(t,n)?0:t.comparedTo(n)}};function us(t){var e=t?function(e,n,r,i,o){return e.exponentiatedBy(2).isLessThanOrEqualTo(i.minus(n).exponentiatedBy(2).plus(o.minus(r).exponentiatedBy(2)).times(t))}:ss(!1);return function(t,n,r){var i=t.x,o=t.y,s=r.x,a=r.y,u=o.minus(a).times(n.x.minus(s)).minus(i.minus(s).times(n.y.minus(a)));return e(u,i,o,s,a)?0:u.comparedTo(0)}}var ls=function(t){return t},hs=function(t){if(t){var e=new ns(as(t)),n=new ns(as(t)),r=function(t,e){return e.addAndReturn(t)},i=function(t){return{x:r(t.x,e),y:r(t.y,n)}};return i({x:new $o(0),y:new $o(0)}),i}return ls},cs=function(t){return{set:function(t){fs=cs(t)},reset:function(){return cs(t)},compare:as(t),snap:hs(t),orient:us(t)}},fs=cs(),gs=function(t,e){return t.ll.x.isLessThanOrEqualTo(e.x)&&e.x.isLessThanOrEqualTo(t.ur.x)&&t.ll.y.isLessThanOrEqualTo(e.y)&&e.y.isLessThanOrEqualTo(t.ur.y)},ps=function(t,e){if(e.ur.x.isLessThan(t.ll.x)||t.ur.x.isLessThan(e.ll.x)||e.ur.y.isLessThan(t.ll.y)||t.ur.y.isLessThan(e.ll.y))return null;var n=t.ll.x.isLessThan(e.ll.x)?e.ll.x:t.ll.x,r=t.ur.x.isLessThan(e.ur.x)?t.ur.x:e.ur.x;return{ll:{x:n,y:t.ll.y.isLessThan(e.ll.y)?e.ll.y:t.ll.y},ur:{x:r,y:t.ur.y.isLessThan(e.ur.y)?t.ur.y:e.ur.y}}},vs=function(t,e){return t.x.times(e.y).minus(t.y.times(e.x))},ds=function(t,e){return t.x.times(e.x).plus(t.y.times(e.y))},ys=function(t){return ds(t,t).sqrt()},ms=function(t,e,n){var r={x:e.x.minus(t.x),y:e.y.minus(t.y)},i={x:n.x.minus(t.x),y:n.y.minus(t.y)};return ds(i,r).div(ys(i)).div(ys(r))},_s=function(t,e,n){return e.y.isZero()?null:{x:t.x.plus(e.x.div(e.y).times(n.minus(t.y))),y:n}},xs=function(t,e,n){return e.x.isZero()?null:{x:n,y:t.y.plus(e.y.div(e.x).times(n.minus(t.x)))}},Es=function(){function t(e,n){i(this,t),u(this,"point",void 0),u(this,"isLeft",void 0),u(this,"segment",void 0),u(this,"otherSE",void 0),u(this,"consumedBy",void 0),void 0===e.events?e.events=[this]:e.events.push(this),this.point=e,this.isLeft=n}return s(t,[{key:"link",value:function(t){if(t.point===this.point)throw new Error("Tried to link already linked events");for(var e=t.point.events,n=0,r=e.length;n0&&(t=r)}for(var i=t.segment.prevInResult(),o=i?i.prevInResult():null;;){if(!i)return null;if(!o)return i.ringOut;var s,a;if(o.ringOut!==i.ringOut)return(null===(s=o.ringOut)||void 0===s?void 0:s.enclosingRing())!==i.ringOut?i.ringOut:null===(a=i.ringOut)||void 0===a?void 0:a.enclosingRing();i=o.prevInResult(),o=i?i.prevInResult():null}}}],[{key:"factory",value:function(e){for(var n=[],r=0,i=e.length;r1&&void 0!==arguments[1]?arguments[1]:Ls.compare;i(this,t),u(this,"queue",void 0),u(this,"tree",void 0),u(this,"segments",void 0),this.queue=e,this.tree=new ns(n),this.segments=[]}),[{key:"process",value:function(t){var e=t.segment,n=[];if(t.consumedBy)return t.isLeft?this.queue.delete(t.otherSE):this.tree.delete(e),n;t.isLeft&&this.tree.add(e);var r=e,i=e;do{r=this.tree.lastBefore(r)}while(null!=r&&null!=r.consumedBy);do{i=this.tree.firstAfter(i)}while(null!=i&&null!=i.consumedBy);if(t.isLeft){var o=null;if(r){var s=r.getIntersection(e);if(null!==s&&(e.isAnEndpoint(s)||(o=s),!r.isAnEndpoint(s)))for(var a=this._splitSafely(r,s),u=0,l=a.length;u0?(this.tree.delete(e),n.push(t)):(this.segments.push(e),e.prev=r)}else{if(r&&i){var _=r.getIntersection(i);if(null!==_){if(!r.isAnEndpoint(_))for(var x=this._splitSafely(r,_),E=0,k=x.length;E0&&a.swapEvents(),Es.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),r&&(i.checkForConsuming(),o.checkForConsuming()),n}},{key:"swapEvents",value:function(){var t=this.rightSE;this.rightSE=this.leftSE,this.leftSE=t,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var e=0,n=this.windings.length;e0){var o=n;n=r,r=o}if(n.prev===r){var s=n;n=r,r=s}for(var a=0,u=r.rings.length;a0)return-1;var c=e.comparePoint(t.rightSE.point);return 0!==c?c:-1}if(n.isGreaterThan(r)){if(s.isLessThan(a)&&s.isLessThan(l))return-1;if(s.isGreaterThan(a)&&s.isGreaterThan(l))return 1;var f=e.comparePoint(t.leftSE.point);if(0!==f)return f;var g=t.comparePoint(e.rightSE.point);return g<0?1:g>0?-1:1}if(s.isLessThan(a))return-1;if(s.isGreaterThan(a))return 1;if(i.isLessThan(o)){var p=e.comparePoint(t.rightSE.point);if(0!==p)return p}if(i.isGreaterThan(o)){var v=t.comparePoint(e.rightSE.point);if(v<0)return 1;if(v>0)return-1}if(!i.eq(o)){var d=u.minus(s),y=i.minus(n),m=l.minus(a),_=o.minus(r);if(d.isGreaterThan(y)&&m.isLessThan(_))return 1;if(d.isLessThan(y)&&m.isGreaterThan(_))return-1}return i.isGreaterThan(o)?1:i.isLessThan(o)||u.isLessThan(l)?-1:u.isGreaterThan(l)?1:t.ide.id?1:0}},{key:"fromRing",value:function(e,n,r){var i,o,s,a=Es.comparePoints(e,n);if(a<0)i=e,o=n,s=1;else{if(!(a>0))throw new Error("Tried to create degenerate segment at [".concat(e.x,", ").concat(e.y,"]"));i=n,o=e,s=-1}return new t(new Es(i,!0),new Es(o,!1),[r],[s])}}])}(),Ps=function(){return s((function t(e,n,r){if(i(this,t),u(this,"poly",void 0),u(this,"isExterior",void 0),u(this,"segments",void 0),u(this,"bbox",void 0),!Array.isArray(e)||0===e.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=n,this.isExterior=r,this.segments=[],"number"!=typeof e[0][0]||"number"!=typeof e[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var o=fs.snap({x:new $o(e[0][0]),y:new $o(e[0][1])});this.bbox={ll:{x:o.x,y:o.y},ur:{x:o.x,y:o.y}};for(var s=o,a=1,l=e.length;a1?e-1:0),r=1;r1?e-1:0),r=1;r1?e-1:0),r=1;r1?e-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:2,r=K(t),i=K(e),o=r[0]-i[0],s=r[1]-i[1];return 1===n?Math.abs(o)+Math.abs(s):Math.pow(Math.pow(o,n)+Math.pow(s,n),1/n)}function Gs(t,e){var n,r,i=(e=e||{}).threshold||1e4,o=e.p||2,s=null!=(n=e.binary)&&n,a=e.alpha||-1,u=null!=(r=e.standardization)&&r,l=[];vt(t,(function(t){l.push(gi(t))}));for(var h=[],c=0;c3&&void 0!==arguments[3]?arguments[3]:{},i=e<0,o=j(Math.abs(e),r.units,"meters");i&&(o=-Math.abs(o));var s=K(t),a=function(t,e,n,r){r=void 0===r?x:Number(r);var i=e/r,o=t[0]*Math.PI/180,s=z(t[1]),a=z(n),u=i*Math.cos(a),l=s+u;Math.abs(l)>Math.PI/2&&(l=l>0?Math.PI-l:-Math.PI-l);var h=Math.log(Math.tan(l/2+Math.PI/4)/Math.tan(s/2+Math.PI/4)),c=Math.abs(h)>1e-11?u/h:Math.cos(s),f=i*Math.sin(a)/c;return[(180*(o+f)/Math.PI+540)%360-180,180*l/Math.PI]}(s,o,n);return a[0]+=a[0]-s[0]>180?-360:s[0]-a[0]>180?360:0,I(a,r.properties)}function Ys(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=K(t),i=K(e);i[0]+=i[0]-r[0]>180?-360:r[0]-i[0]>180?360:0;var o=function(t,e,n){var r=n=void 0===n?x:Number(n),i=t[1]*Math.PI/180,o=e[1]*Math.PI/180,s=o-i,a=Math.abs(e[0]-t[0])*Math.PI/180;a>Math.PI&&(a-=2*Math.PI);var u=Math.log(Math.tan(o/2+Math.PI/4)/Math.tan(i/2+Math.PI/4)),l=Math.abs(u)>1e-11?s/u:Math.cos(i);return Math.sqrt(s*s+l*l*a*a)*r}(r,i);return j(o,"meters",n.units)}function zs(t,e,n){if(!Z(n=n||{}))throw new Error("options is invalid");var r=n.pivot,i=n.mutate;if(!t)throw new Error("geojson is required");if(null==e||isNaN(e))throw new Error("angle is required");if(0===e)return t;var o=null!=r?r:gi(t);return!1!==i&&void 0!==i||(t=Ai(t)),ct(t,(function(t){var n=lt(o,t)+e,r=Ys(o,t),i=Q(Bs(o,r,n));t[0]=i[0],t[1]=i[1]})),t}function js(t,e,n,r){var i=(r=r||{}).steps||64,o=r.units||"kilometers",s=r.angle||0,a=r.pivot||t,u=r.properties||{};if(!t)throw new Error("center is required");if(!e)throw new Error("xSemiAxis is required");if(!n)throw new Error("ySemiAxis is required");if(!Z(r))throw new Error("options must be an object");if(!U(i))throw new Error("steps must be a number");if(!U(s))throw new Error("angle must be a number");var l=K(t);if("degrees"!==o){var h=Bs(t,e,90,{units:o}),c=Bs(t,n,0,{units:o});e=K(h)[0]-l[0],n=K(c)[1]-l[1]}for(var f=[],g=0;g=-270&&(v=-v),p<-180&&p>=-360&&(d=-d),"degrees"===o){var y=z(s),m=v*Math.cos(y)+d*Math.sin(y),_=d*Math.cos(y)-v*Math.sin(y);v=m,d=_}f.push([v+l[0],d+l[1]])}return f.push(f[0]),"degrees"===o?S([f],u):zs(S([f],u),s,{pivot:a})}function Xs(t){var e=t*Math.PI/180;return Math.tan(e)}function Us(t){return Vt(Rt(t))}function Zs(t){var e=[];return"FeatureCollection"===t.type?vt(t,(function(t){ct(t,(function(n){e.push(I(n,t.properties))}))})):"Feature"===t.type?ct(t,(function(n){e.push(I(n,t.properties))})):ct(t,(function(t){e.push(I(t))})),C(e)}var Hs=Math.PI/180,Ws=180/Math.PI,Js=function(t,e){this.lon=t,this.lat=e,this.x=Hs*t,this.y=Hs*e};Js.prototype.view=function(){return String(this.lon).slice(0,4)+","+String(this.lat).slice(0,4)},Js.prototype.antipode=function(){var t=-1*this.lat,e=this.lon<0?180+this.lon:-1*(180-this.lon);return new Js(e,t)};var Ks=function(){this.coords=[],this.length=0};Ks.prototype.move_to=function(t){this.length++,this.coords.push(t)};var Qs=function(t){this.properties=t||{},this.geometries=[]};Qs.prototype.json=function(){if(this.geometries.length<=0)return{geometry:{type:"LineString",coordinates:null},type:"Feature",properties:this.properties};if(1===this.geometries.length)return{geometry:{type:"LineString",coordinates:this.geometries[0].coords},type:"Feature",properties:this.properties};for(var t=[],e=0;e1&&void 0!==arguments[1]?arguments[1]:{},n=[];if(mt(t,(function(t){n.push(t.coordinates)})),n.length<2)throw new Error("Must specify at least 2 geometries");var r=Rs.apply(Fs,[n[0]].concat(d(n.slice(1))));return 0===r.length?null:1===r.length?S(r[0],e.properties):R(r,e.properties)}function ea(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=JSON.stringify(n.properties||{}),i=v(t,4),o=i[0],s=i[1],a=i[2],u=i[3],l=(s+u)/2,h=(o+a)/2,c=2*e/ut([o,l],[a,l],n)*(a-o),f=2*e/ut([h,s],[h,u],n)*(u-s),g=c/2,p=2*g,d=Math.sqrt(3)/2*f,y=a-o,m=u-s,_=3/4*p,x=d,E=(y-p)/(p-g/2),k=Math.floor(E),b=(k*_-g/2-y)/2-g/2+_/2,w=Math.floor((m-d)/d),I=(m-w*d)/2,N=w*d-m>d/2;N&&(I-=d/4);for(var S=[],M=[],L=0;L<6;L++){var P=2*Math.PI/6*L;S.push(Math.cos(P)),M.push(Math.sin(P))}for(var T=[],O=0;O<=k;O++)for(var R=0;R<=w;R++){var A=O%2==1;if((0!==R||!A)&&(0!==R||!N)){var D=O*_+o-b,F=R*x+s+I;if(A&&(F-=d/2),!0===n.triangles)ra([D,F],c/2,f/2,JSON.parse(r),S,M).forEach((function(t){n.mask?ta(C([n.mask,t]))&&T.push(t):T.push(t)}));else{var q=na([D,F],c/2,f/2,JSON.parse(r),S,M);n.mask?ta(C([n.mask,q]))&&T.push(q):T.push(q)}}}return C(T)}function na(t,e,n,r,i,o){for(var s=[],a=0;a<6;a++){var u=t[0]+e*i[a],l=t[1]+n*o[a];s.push([u,l])}return s.push(s[0].slice()),S([s],r)}function ra(t,e,n,r,i,o){for(var s=[],a=0;a<6;a++){var u=[];u.push(t),u.push([t[0]+e*i[a],t[1]+n*o[a]]),u.push([t[0]+e*i[(a+1)%6],t[1]+n*o[(a+1)%6]]),u.push(t),s.push(S([u],r))}return s}function ia(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.mask&&!n.units&&(n.units="kilometers");for(var r=[],i=t[0],o=t[1],s=t[2],a=t[3],u=e/ut([i,o],[s,o],n)*(s-i),l=e/ut([i,o],[i,a],n)*(a-o),h=s-i,c=a-o,f=Math.floor(h/u),g=(c-Math.floor(c/l)*l)/2,p=i+(h-f*u)/2;p<=s;){for(var v=o+g;v<=a;){var d=I([p,v],n.properties);n.mask?Cn(d,n.mask)&&r.push(d):r.push(d),v+=l}p+=u}return C(r)}function oa(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=[],o=t[0],s=t[1],a=t[2],u=t[3],l=a-o,h=j(e,r.units,"degrees"),c=u-s,f=j(n,r.units,"degrees"),g=Math.floor(Math.abs(l)/h),p=Math.floor(Math.abs(c)/f),v=(c-p*f)/2,d=o+(l-g*h)/2,y=0;y2&&void 0!==arguments[2]?arguments[2]:{})}function aa(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],i=e/ut([t[0],t[1]],[t[2],t[1]],n)*(t[2]-t[0]),o=e/ut([t[0],t[1]],[t[0],t[3]],n)*(t[3]-t[1]),s=0,a=t[0];a<=t[2];){for(var u=0,l=t[1];l<=t[3];){var h=null,c=null;s%2==0&&u%2==0?(h=S([[[a,l],[a,l+o],[a+i,l],[a,l]]],n.properties),c=S([[[a,l+o],[a+i,l+o],[a+i,l],[a,l+o]]],n.properties)):s%2==0&&u%2==1?(h=S([[[a,l],[a+i,l+o],[a+i,l],[a,l]]],n.properties),c=S([[[a,l],[a,l+o],[a+i,l+o],[a,l]]],n.properties)):u%2==0&&s%2==1?(h=S([[[a,l],[a,l+o],[a+i,l+o],[a,l]]],n.properties),c=S([[[a,l],[a+i,l+o],[a+i,l],[a,l]]],n.properties)):u%2==1&&s%2==1&&(h=S([[[a,l],[a,l+o],[a+i,l],[a,l]]],n.properties),c=S([[[a,l+o],[a+i,l+o],[a+i,l],[a,l+o]]],n.properties)),n.mask?(ta(C([n.mask,h]))&&r.push(h),ta(C([n.mask,c]))&&r.push(c)):(r.push(h),r.push(c)),l+=o,u++}s++,a+=i}return C(r)} /*! * MarchingSquaresJS * version 1.3.3 * https://github.com/RaumZeit/MarchingSquares.js * * @license GNU Affero General Public License. * Copyright (c) 2015-2019 Ronny Lorenz */ function ua(t,e,n){return tr&&(i=n,n=r,r=i),tr?(t-r)/(t-e):(t-n)/(t-e)}function ha(t,e,n,r){return t1){for(;0!==o;)o>>=1,a++;r===1<1){for(;0!==s;)s>>=1,u++;i===1<0&&(this.childB=new da(t,e+o,n,r-o,s),this.lowerBound=Math.min(this.lowerBound,this.childB.lowerBound),this.upperBound=Math.max(this.upperBound,this.childB.upperBound),i-s>0&&(this.childC=new da(t,e+o,n+s,r-o,i-s),this.lowerBound=Math.min(this.lowerBound,this.childC.lowerBound),this.upperBound=Math.max(this.upperBound,this.childC.upperBound))),i-s>0&&(this.childD=new da(t,e,n+s,o,i-s),this.lowerBound=Math.min(this.lowerBound,this.childD.lowerBound),this.upperBound=Math.max(this.upperBound,this.childD.upperBound))}}function ya(t){var e,n;if(!t)throw new Error("data is required");if(!Array.isArray(t)||!Array.isArray(t[0]))throw new Error("data must be scalar field, i.e. array of arrays");if(t.length<2)throw new Error("data must contain at least two rows");if((n=t[0].length)<2)throw new Error("data must contain at least two columns");for(e=1;e=e||t[s][r-1]>=e){n=!1;break}if(n&&(t[i-1][0]>=e||t[i-1][r-1]>=e)&&(n=!1),n)for(o=0;o=e||t[i-1][o]>e){n=!1;break}return n}(t,n.threshold)&&(n.linearRing?_.push([[0,0],[0,x],[E,x],[E,0],[0,0]]):_.push([[0,0],[0,x],[E,x],[E,0]])),e.forEach((function(t,N){t.forEach((function(t,S){for(r=null,i=0;i<4;i++)if(r=k[i],"object"===m(t.edges[r])){for(a=[],o=t.edges[r],u=r,l=N,h=S,c=!1,f=[N+o.path[0][0],S+o.path[0][1]],a.push(f);!c&&"object"===m((s=e[l][h]).edges[u]);)if(o=s.edges[u],delete s.edges[u],(g=o.path[1])[0]+=l,g[1]+=h,a.push(g),u=o.move.enter,l+=o.move.x,h+=o.move.y,void 0===e[l]||void 0===e[l][h]){if(!n.linearRing)break;if(p=0,v=0,l===E?(l--,p=0):l<0?(l++,p=2):h===x?(h--,p=3):h<0&&(h++,p=1),l===N&&h===S&&p===I[r]){c=!0,u=r;break}for(;;){if(d=!1,v>4)throw new Error("Direction change counter overflow! This should never happen!");if(void 0!==e[l]&&void 0!==e[l][h]&&(s=e[l][h],y=k[p],"object"===m(s.edges[y]))){o=s.edges[y],a.push(pa(l,h,p,o.path)),u=y,d=!0;break}if(d)break;if(a.push(va(l,h,p)),h+=w[p],void 0!==e[l+=b[p]]&&void 0!==e[l][h]||(0===p&&h<0||1===p&&l<0||2===p&&h===x||3===p&&l===E)&&(l-=b[p],h-=w[p],p=(p+1)%4,v++),l===N&&h===S&&p===I[r]){c=!0,u=r;break}}}!n.linearRing||a[a.length-1][0]===f[0]&&a[a.length-1][1]===f[1]||a.push(f),_.push(a)}}))})),_}(h,c,r)}a?g.push(f):g=f,"function"==typeof r.successCallback&&r.successCallback(g,t)})),g}function _a(t,e,n,r){var i,o,s,a,u,l,h=0,c=t[n+1][e],f=t[n+1][e+1],g=t[n][e+1],p=t[n][e],v=r.threshold;if(!(isNaN(p)||isNaN(g)||isNaN(f)||isNaN(c))){switch(h|=c>=v?8:0,h|=f>=v?4:0,h|=g>=v?2:0,l={cval:h=+(h|=p>=v?1:0),polygons:[],edges:{},x0:p,x1:g,x2:f,x3:c},h){case 0:r.polygons&&l.polygons.push([[0,0],[0,1],[1,1],[1,0]]);break;case 15:break;case 14:i=r.interpolate(p,c,v),a=r.interpolate(p,g,v),r.polygons_full&&(l.edges.left={path:[[0,i],[a,0]],move:{x:0,y:-1,enter:"top"}}),r.polygons&&l.polygons.push([[0,0],[0,i],[a,0]]);break;case 13:a=r.interpolate(p,g,v),o=r.interpolate(g,f,v),r.polygons_full&&(l.edges.bottom={path:[[a,0],[1,o]],move:{x:1,y:0,enter:"left"}}),r.polygons&&l.polygons.push([[a,0],[1,o],[1,0]]);break;case 11:o=r.interpolate(g,f,v),s=r.interpolate(c,f,v),r.polygons_full&&(l.edges.right={path:[[1,o],[s,1]],move:{x:0,y:1,enter:"bottom"}}),r.polygons&&l.polygons.push([[1,o],[s,1],[1,1]]);break;case 7:i=r.interpolate(p,c,v),s=r.interpolate(c,f,v),r.polygons_full&&(l.edges.top={path:[[s,1],[0,i]],move:{x:-1,y:0,enter:"right"}}),r.polygons&&l.polygons.push([[s,1],[0,i],[0,1]]);break;case 1:i=r.interpolate(p,c,v),a=r.interpolate(p,g,v),r.polygons_full&&(l.edges.bottom={path:[[a,0],[0,i]],move:{x:-1,y:0,enter:"right"}}),r.polygons&&l.polygons.push([[a,0],[0,i],[0,1],[1,1],[1,0]]);break;case 2:a=r.interpolate(p,g,v),o=r.interpolate(g,f,v),r.polygons_full&&(l.edges.right={path:[[1,o],[a,0]],move:{x:0,y:-1,enter:"top"}}),r.polygons&&l.polygons.push([[0,0],[0,1],[1,1],[1,o],[a,0]]);break;case 4:o=r.interpolate(g,f,v),s=r.interpolate(c,f,v),r.polygons_full&&(l.edges.top={path:[[s,1],[1,o]],move:{x:1,y:0,enter:"left"}}),r.polygons&&l.polygons.push([[0,0],[0,1],[s,1],[1,o],[1,0]]);break;case 8:i=r.interpolate(p,c,v),s=r.interpolate(c,f,v),r.polygons_full&&(l.edges.left={path:[[0,i],[s,1]],move:{x:0,y:1,enter:"bottom"}}),r.polygons&&l.polygons.push([[0,0],[0,i],[s,1],[1,1],[1,0]]);break;case 12:i=r.interpolate(p,c,v),o=r.interpolate(g,f,v),r.polygons_full&&(l.edges.left={path:[[0,i],[1,o]],move:{x:1,y:0,enter:"left"}}),r.polygons&&l.polygons.push([[0,0],[0,i],[1,o],[1,0]]);break;case 9:a=r.interpolate(p,g,v),s=r.interpolate(c,f,v),r.polygons_full&&(l.edges.bottom={path:[[a,0],[s,1]],move:{x:0,y:1,enter:"bottom"}}),r.polygons&&l.polygons.push([[a,0],[s,1],[1,1],[1,0]]);break;case 3:i=r.interpolate(p,c,v),o=r.interpolate(g,f,v),r.polygons_full&&(l.edges.right={path:[[1,o],[0,i]],move:{x:-1,y:0,enter:"right"}}),r.polygons&&l.polygons.push([[0,i],[0,1],[1,1],[1,o]]);break;case 6:a=r.interpolate(p,g,v),s=r.interpolate(c,f,v),r.polygons_full&&(l.edges.top={path:[[s,1],[a,0]],move:{x:0,y:-1,enter:"top"}}),r.polygons&&l.polygons.push([[0,0],[0,1],[s,1],[a,0]]);break;case 10:i=r.interpolate(p,c,v),o=r.interpolate(g,f,v),a=r.interpolate(p,g,v),s=r.interpolate(c,f,v),u=(p+g+f+c)/4,r.polygons_full&&(uf&&(v>h&&ph&&vu&&(u=d)}var y=[];if(a&&u0&&Math.abs(x-n[_-1][0])>f){var E=parseFloat(n[_-1][0]),k=parseFloat(n[_-1][1]),b=parseFloat(n[_][0]),w=parseFloat(n[_][1]);if(E>-180&&E-180&&n[_-1][0]h&&E<180&&-180===b&&_+1h&&n[_-1][0]<180){m.push([180,n[_][1]]),_++,m.push([n[_][0],n[_][1]]);continue}if(Eh){var I=E;E=b,b=I;var N=k;k=w,w=N}if(E>h&&b=180&&Eh?180:-180,M]),(m=[]).push([n[_-1][0]>h?-180:180,M]),y.push(m)}else m=[],y.push(m);m.push([x,n[_][1]])}else m.push([n[_][0],n[_][1]])}}else{var L=[];y.push(L);for(var P=0;Pe||this.upperBound=e)&&r.push({x:this.x,y:this.y})),r},da.prototype.cellsBelowThreshold=function(t,e){var n=[];return e=void 0===e||e,this.lowerBound>t||(this.childA||this.childB||this.childC||this.childD?(this.childA&&(n=n.concat(this.childA.cellsBelowThreshold(t,e))),this.childB&&(n=n.concat(this.childB.cellsBelowThreshold(t,e))),this.childD&&(n=n.concat(this.childD.cellsBelowThreshold(t,e))),this.childC&&(n=n.concat(this.childC.cellsBelowThreshold(t,e)))):(e||this.upperBound>=t)&&n.push({x:this.x,y:this.y})),n};var xa={square:function(t,e,n,r,i,o){o.polygons&&t.polygons.push([[0,0],[0,1],[1,1],[1,0]])},triangle_bl:function(t,e,n,r,i,o){var s=o.interpolate(e,n,o.minV,o.maxV),a=o.interpolate(e,i,o.minV,o.maxV);o.polygons_full&&(t.edges.lb={path:[[0,a],[s,0]],move:{x:0,y:-1,enter:"tl"}}),o.polygons&&t.polygons.push([[0,a],[s,0],[0,0]])},triangle_br:function(t,e,n,r,i,o){var s=o.interpolate(e,n,o.minV,o.maxV),a=o.interpolate(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.br={path:[[s,0],[1,a]],move:{x:1,y:0,enter:"lb"}}),o.polygons&&t.polygons.push([[s,0],[1,a],[1,0]])},triangle_tr:function(t,e,n,r,i,o){var s=o.interpolate(n,r,o.minV,o.maxV),a=o.interpolate(i,r,o.minV,o.maxV);o.polygons_full&&(t.edges.rt={path:[[1,s],[a,1]],move:{x:0,y:1,enter:"br"}}),o.polygons&&t.polygons.push([[1,s],[a,1],[1,1]])},triangle_tl:function(t,e,n,r,i,o){var s=o.interpolate(i,r,o.minV,o.maxV),a=o.interpolate(e,i,o.minV,o.maxV);o.polygons_full&&(t.edges.tl={path:[[s,1],[0,a]],move:{x:-1,y:0,enter:"rt"}}),o.polygons&&t.polygons.push([[0,a],[0,1],[s,1]])},tetragon_t:function(t,e,n,r,i,o){var s=o.interpolate(n,r,o.minV,o.maxV),a=o.interpolate(e,i,o.minV,o.maxV);o.polygons_full&&(t.edges.rt={path:[[1,s],[0,a]],move:{x:-1,y:0,enter:"rt"}}),o.polygons&&t.polygons.push([[0,a],[0,1],[1,1],[1,s]])},tetragon_r:function(t,e,n,r,i,o){var s=o.interpolate(e,n,o.minV,o.maxV),a=o.interpolate(i,r,o.minV,o.maxV);o.polygons_full&&(t.edges.br={path:[[s,0],[a,1]],move:{x:0,y:1,enter:"br"}}),o.polygons&&t.polygons.push([[s,0],[a,1],[1,1],[1,0]])},tetragon_b:function(t,e,n,r,i,o){var s=o.interpolate(e,i,o.minV,o.maxV),a=o.interpolate(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.lb={path:[[0,s],[1,a]],move:{x:1,y:0,enter:"lb"}}),o.polygons&&t.polygons.push([[0,0],[0,s],[1,a],[1,0]])},tetragon_l:function(t,e,n,r,i,o){var s=o.interpolate(i,r,o.minV,o.maxV),a=o.interpolate(e,n,o.minV,o.maxV);o.polygons_full&&(t.edges.tl={path:[[s,1],[a,0]],move:{x:0,y:-1,enter:"tl"}}),o.polygons&&t.polygons.push([[0,0],[0,1],[s,1],[a,0]])},tetragon_bl:function(t,e,n,r,i,o){var s=o.interpolate_a(e,n,o.minV,o.maxV),a=o.interpolate_b(e,n,o.minV,o.maxV),u=o.interpolate_a(e,i,o.minV,o.maxV),l=o.interpolate_b(e,i,o.minV,o.maxV);o.polygons_full&&(t.edges.bl={path:[[s,0],[0,u]],move:{x:-1,y:0,enter:"rb"}},t.edges.lt={path:[[0,l],[a,0]],move:{x:0,y:-1,enter:"tr"}}),o.polygons&&t.polygons.push([[s,0],[0,u],[0,l],[a,0]])},tetragon_br:function(t,e,n,r,i,o){var s=o.interpolate_a(e,n,o.minV,o.maxV),a=o.interpolate_b(e,n,o.minV,o.maxV),u=o.interpolate_a(n,r,o.minV,o.maxV),l=o.interpolate_b(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.bl={path:[[s,0],[1,l]],move:{x:1,y:0,enter:"lt"}},t.edges.rb={path:[[1,u],[a,0]],move:{x:0,y:-1,enter:"tr"}}),o.polygons&&t.polygons.push([[s,0],[1,l],[1,u],[a,0]])},tetragon_tr:function(t,e,n,r,i,o){var s=o.interpolate_a(i,r,o.minV,o.maxV),a=o.interpolate_b(i,r,o.minV,o.maxV),u=o.interpolate_b(n,r,o.minV,o.maxV),l=o.interpolate_a(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.rb={path:[[1,l],[s,1]],move:{x:0,y:1,enter:"bl"}},t.edges.tr={path:[[a,1],[1,u]],move:{x:1,y:0,enter:"lt"}}),o.polygons&&t.polygons.push([[1,l],[s,1],[a,1],[1,u]])},tetragon_tl:function(t,e,n,r,i,o){var s=o.interpolate_a(i,r,o.minV,o.maxV),a=o.interpolate_b(i,r,o.minV,o.maxV),u=o.interpolate_b(e,i,o.minV,o.maxV),l=o.interpolate_a(e,i,o.minV,o.maxV);o.polygons_full&&(t.edges.tr={path:[[a,1],[0,l]],move:{x:-1,y:0,enter:"rb"}},t.edges.lt={path:[[0,u],[s,1]],move:{x:0,y:1,enter:"bl"}}),o.polygons&&t.polygons.push([[a,1],[0,l],[0,u],[s,1]])},tetragon_lr:function(t,e,n,r,i,o){var s=o.interpolate_a(e,i,o.minV,o.maxV),a=o.interpolate_b(e,i,o.minV,o.maxV),u=o.interpolate_b(n,r,o.minV,o.maxV),l=o.interpolate_a(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.lt={path:[[0,a],[1,u]],move:{x:1,y:0,enter:"lt"}},t.edges.rb={path:[[1,l],[0,s]],move:{x:-1,y:0,enter:"rb"}}),o.polygons&&t.polygons.push([[0,s],[0,a],[1,u],[1,l]])},tetragon_tb:function(t,e,n,r,i,o){var s=o.interpolate_a(i,r,o.minV,o.maxV),a=o.interpolate_b(i,r,o.minV,o.maxV),u=o.interpolate_b(e,n,o.minV,o.maxV),l=o.interpolate_a(e,n,o.minV,o.maxV);o.polygons_full&&(t.edges.tr={path:[[a,1],[u,0]],move:{x:0,y:-1,enter:"tr"}},t.edges.bl={path:[[l,0],[s,1]],move:{x:0,y:1,enter:"bl"}}),o.polygons&&t.polygons.push([[l,0],[s,1],[a,1],[u,0]])},pentagon_tr:function(t,e,n,r,i,o){var s=o.interpolate(i,r,o.minV,o.maxV),a=o.interpolate(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.tl={path:[[s,1],[1,a]],move:{x:1,y:0,enter:"lb"}}),o.polygons&&t.polygons.push([[0,0],[0,1],[s,1],[1,a],[1,0]])},pentagon_tl:function(t,e,n,r,i,o){var s=o.interpolate(e,i,o.minV,o.maxV),a=o.interpolate(i,r,o.minV,o.maxV);o.polygons_full&&(t.edges.lb={path:[[0,s],[a,1]],move:{x:0,y:1,enter:"br"}}),o.polygons&&t.polygons.push([[0,0],[0,s],[a,1],[1,1],[1,0]])},pentagon_br:function(t,e,n,r,i,o){var s=o.interpolate(e,n,o.minV,o.maxV),a=o.interpolate(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.rt={path:[[1,a],[s,0]],move:{x:0,y:-1,enter:"tl"}}),o.polygons&&t.polygons.push([[0,0],[0,1],[1,1],[1,a],[s,0]])},pentagon_bl:function(t,e,n,r,i,o){var s=o.interpolate(e,i,o.minV,o.maxV),a=o.interpolate(e,n,o.minV,o.maxV);o.polygons_full&&(t.edges.br={path:[[a,0],[0,s]],move:{x:-1,y:0,enter:"rt"}}),o.polygons&&t.polygons.push([[0,s],[0,1],[1,1],[1,0],[a,0]])},pentagon_tr_rl:function(t,e,n,r,i,o){var s=o.interpolate(e,i,o.minV,o.maxV),a=o.interpolate(i,r,o.minV,o.maxV),u=o.interpolate_b(n,r,o.minV,o.maxV),l=o.interpolate_a(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.tl={path:[[a,1],[1,u]],move:{x:1,y:0,enter:"lt"}},t.edges.rb={path:[[1,l],[0,s]],move:{x:-1,y:0,enter:"rt"}}),o.polygons&&t.polygons.push([[0,s],[0,1],[a,1],[1,u],[1,l]])},pentagon_rb_bt:function(t,e,n,r,i,o){var s=o.interpolate(n,r,o.minV,o.maxV),a=o.interpolate_b(e,n,o.minV,o.maxV),u=o.interpolate_a(e,n,o.minV,o.maxV),l=o.interpolate(i,r,o.minV,o.maxV);o.polygons_full&&(t.edges.rt={path:[[1,s],[a,0]],move:{x:0,y:-1,enter:"tr"}},t.edges.bl={path:[[u,0],[l,1]],move:{x:0,y:1,enter:"br"}}),o.polygons&&t.polygons.push([[l,1],[1,1],[1,s],[a,0],[u,0]])},pentagon_bl_lr:function(t,e,n,r,i,o){var s=o.interpolate(e,n,o.minV,o.maxV),a=o.interpolate_a(e,i,o.minV,o.maxV),u=o.interpolate_b(e,i,o.minV,o.maxV),l=o.interpolate(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.br={path:[[s,0],[0,a]],move:{x:-1,y:0,enter:"rb"}},t.edges.lt={path:[[0,u],[1,l]],move:{x:1,y:0,enter:"lb"}}),o.polygons&&t.polygons.push([[s,0],[0,a],[0,u],[1,l],[1,0]])},pentagon_lt_tb:function(t,e,n,r,i,o){var s=o.interpolate(e,i,o.minV,o.maxV),a=o.interpolate_a(i,r,o.minV,o.maxV),u=o.interpolate_b(i,r,o.minV,o.maxV),l=o.interpolate(e,n,o.minV,o.maxV);o.polygons_full&&(t.edges.lb={path:[[0,s],[a,1]],move:{x:0,y:1,enter:"bl"}},t.edges.tr={path:[[u,1],[l,0]],move:{x:0,y:-1,enter:"tl"}}),o.polygons&&t.polygons.push([[0,0],[0,s],[a,1],[u,1],[l,0]])},pentagon_bl_tb:function(t,e,n,r,i,o){var s=o.interpolate(e,i,o.minV,o.maxV),a=o.interpolate(i,r,o.minV,o.maxV),u=o.interpolate_b(e,n,o.minV,o.maxV),l=o.interpolate_a(e,n,o.minV,o.maxV);o.polygons_full&&(t.edges.bl={path:[[l,0],[0,s]],move:{x:-1,y:0,enter:"rt"}},t.edges.tl={path:[[a,1],[u,0]],move:{x:0,y:-1,enter:"tr"}}),o.polygons&&t.polygons.push([[0,s],[0,1],[a,1],[u,0],[l,0]])},pentagon_lt_rl:function(t,e,n,r,i,o){var s=o.interpolate_a(e,i,o.minV,o.maxV),a=o.interpolate_b(e,i,o.minV,o.maxV),u=o.interpolate(i,r,o.minV,o.maxV),l=o.interpolate(n,i,o.minV,o.maxV);o.polygons_full&&(t.edges.lt={path:[[0,a],[u,1]],move:{x:0,y:1,enter:"br"}},t.edges.rt={path:[[1,l],[0,s]],move:{x:-1,y:0,enter:"rb"}}),o.polygons&&t.polygons.push([[0,s],[0,a],[u,1],[1,1],[1,l]])},pentagon_tr_bt:function(t,e,n,r,i,o){var s=o.interpolate_a(i,r,o.minV,o.maxV),a=o.interpolate_b(i,r,o.minV,o.maxV),u=o.interpolate(n,r,o.minV,o.maxV),l=o.interpolate(e,n,o.minV,o.maxV);o.polygons_full&&(t.edges.br={path:[[l,0],[s,1]],move:{x:0,y:1,enter:"bl"}},t.edges.tr={path:[[a,1],[1,u]],move:{x:1,y:0,enter:"lb"}}),o.polygons&&t.polygons.push([[s,1],[a,1],[1,u],[1,0],[l,0]])},pentagon_rb_lr:function(t,e,n,r,i,o){var s=o.interpolate(e,i,o.minV,o.maxV),a=o.interpolate_b(n,r,o.minV,o.maxV),u=o.interpolate_a(n,r,o.minV,o.maxV),l=o.interpolate(e,n,o.minV,o.maxV);o.polygons_full&&(t.edges.lb={path:[[0,s],[1,a]],move:{x:1,y:0,enter:"lt"}},t.edges.rb={path:[[1,u],[l,0]],move:{x:0,y:-1,enter:"tl"}}),o.polygons&&t.polygons.push([[0,0],[0,s],[1,a],[1,u],[l,0]])},hexagon_lt_tr:function(t,e,n,r,i,o){var s=o.interpolate(e,i,o.minV,o.maxV),a=o.interpolate_a(i,r,o.minV,o.maxV),u=o.interpolate_b(i,r,o.minV,o.maxV),l=o.interpolate(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.lb={path:[[0,s],[a,1]],move:{x:0,y:1,enter:"bl"}},t.edges.tr={path:[[u,1],[1,l]],move:{x:1,y:0,enter:"lb"}}),o.polygons&&t.polygons.push([[0,0],[0,s],[a,1],[u,1],[1,l],[1,0]])},hexagon_bl_lt:function(t,e,n,r,i,o){var s=o.interpolate(e,n,o.minV,o.maxV),a=o.interpolate_a(e,i,o.minV,o.maxV),u=o.interpolate_b(e,i,o.minV,o.maxV),l=o.interpolate(i,r,o.minV,o.maxV);o.polygons_full&&(t.edges.br={path:[[s,0],[0,a]],move:{x:-1,y:0,enter:"rb"}},t.edges.lt={path:[[0,u],[l,1]],move:{x:0,y:1,enter:"br"}}),o.polygons&&t.polygons.push([[s,0],[0,a],[0,u],[l,1],[1,1],[1,0]])},hexagon_bl_rb:function(t,e,n,r,i,o){var s=o.interpolate_a(e,n,o.minV,o.maxV),a=o.interpolate_b(e,n,o.minV,o.maxV),u=o.interpolate(e,i,o.minV,o.maxV),l=o.interpolate(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.bl={path:[[s,0],[0,u]],move:{x:-1,y:0,enter:"rt"}},t.edges.rt={path:[[1,l],[a,0]],move:{x:0,y:-1,enter:"tr"}}),o.polygons&&t.polygons.push([[s,0],[0,u],[0,1],[1,1],[1,l],[a,0]])},hexagon_tr_rb:function(t,e,n,r,i,o){var s=o.interpolate(e,n,o.minV,o.maxV),a=o.interpolate(i,r,o.minV,o.maxV),u=o.interpolate_b(n,r,o.minV,o.maxV),l=o.interpolate_a(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.tl={path:[[a,1],[1,u]],move:{x:1,y:0,enter:"lt"}},t.edges.rb={path:[[1,l],[s,0]],move:{x:0,y:-1,enter:"tl"}}),o.polygons&&t.polygons.push([[0,0],[0,1],[a,1],[1,u],[1,l],[s,0]])},hexagon_lt_rb:function(t,e,n,r,i,o){var s=o.interpolate(e,i,o.minV,o.maxV),a=o.interpolate(i,r,o.minV,o.maxV),u=o.interpolate(n,r,o.minV,o.maxV),l=o.interpolate(e,n,o.minV,o.maxV);o.polygons_full&&(t.edges.lb={path:[[0,s],[a,1]],move:{x:0,y:1,enter:"br"}},t.edges.rt={path:[[1,u],[l,0]],move:{x:0,y:-1,enter:"tl"}}),o.polygons&&t.polygons.push([[0,0],[0,s],[a,1],[1,1],[1,u],[l,0]])},hexagon_bl_tr:function(t,e,n,r,i,o){var s=o.interpolate(e,n,o.minV,o.maxV),a=o.interpolate(e,i,o.minV,o.maxV),u=o.interpolate(i,r,o.minV,o.maxV),l=o.interpolate(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.br={path:[[s,0],[0,a]],move:{x:-1,y:0,enter:"rt"}},t.edges.tl={path:[[u,1],[1,l]],move:{x:1,y:0,enter:"lb"}}),o.polygons&&t.polygons.push([[s,0],[0,a],[0,1],[u,1],[1,l],[1,0]])},heptagon_tr:function(t,e,n,r,i,o){var s=o.interpolate_a(e,n,o.minV,o.maxV),a=o.interpolate_b(e,n,o.minV,o.maxV),u=o.interpolate_a(e,i,o.minV,o.maxV),l=o.interpolate_b(e,i,o.minV,o.maxV),h=o.interpolate(i,r,o.minV,o.maxV),c=o.interpolate(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.bl={path:[[s,0],[0,u]],move:{x:-1,y:0,enter:"rb"}},t.edges.lt={path:[[0,l],[h,1]],move:{x:0,y:1,enter:"br"}},t.edges.rt={path:[[1,c],[a,0]],move:{x:0,y:-1,enter:"tr"}}),o.polygons&&t.polygons.push([[s,0],[0,u],[0,l],[h,1],[1,1],[1,c],[a,0]])},heptagon_bl:function(t,e,n,r,i,o){var s=o.interpolate(e,n,o.minV,o.maxV),a=o.interpolate(e,i,o.minV,o.maxV),u=o.interpolate_a(i,r,o.minV,o.maxV),l=o.interpolate_b(i,r,o.minV,o.maxV),h=o.interpolate_b(n,r,o.minV,o.maxV),c=o.interpolate_a(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.lb={path:[[0,a],[u,1]],move:{x:0,y:1,enter:"bl"}},t.edges.tr={path:[[l,1],[1,h]],move:{x:1,y:0,enter:"lt"}},t.edges.rb={path:[[1,c],[s,0]],move:{x:0,y:-1,enter:"tl"}}),o.polygons&&t.polygons.push([[0,0],[0,a],[u,1],[l,1],[1,h],[1,c],[s,0]])},heptagon_tl:function(t,e,n,r,i,o){var s=o.interpolate_a(e,n,o.minV,o.maxV),a=o.interpolate_b(e,n,o.minV,o.maxV),u=o.interpolate(e,i,o.minV,o.maxV),l=o.interpolate(i,r,o.minV,o.maxV),h=o.interpolate_b(n,r,o.minV,o.maxV),c=o.interpolate_a(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.bl={path:[[s,0],[0,u]],move:{x:-1,y:0,enter:"rt"}},t.edges.tl={path:[[l,1],[1,h]],move:{x:1,y:0,enter:"lt"}},t.edges.rb={path:[[1,c],[a,0]],move:{x:0,y:-1,enter:"tr"}}),o.polygons&&t.polygons.push([[s,0],[0,u],[0,1],[l,1],[1,h],[1,c],[a,0]])},heptagon_br:function(t,e,n,r,i,o){var s=o.interpolate(e,n,o.minV,o.maxV),a=o.interpolate_a(e,i,o.minV,o.maxV),u=o.interpolate_b(e,i,o.minV,o.maxV),l=o.interpolate_a(i,r,o.minV,o.maxV),h=o.interpolate_b(i,r,o.minV,o.maxV),c=o.interpolate(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.br={path:[[s,0],[0,a]],move:{x:-1,y:0,enter:"rb"}},t.edges.lt={path:[[0,u],[l,1]],move:{x:0,y:1,enter:"bl"}},t.edges.tr={path:[[h,1],[1,c]],move:{x:1,y:0,enter:"lb"}}),o.polygons&&t.polygons.push([[s,0],[0,a],[0,u],[l,1],[h,1],[1,c],[1,0]])},octagon:function(t,e,n,r,i,o){var s=o.interpolate_a(e,n,o.minV,o.maxV),a=o.interpolate_b(e,n,o.minV,o.maxV),u=o.interpolate_a(e,i,o.minV,o.maxV),l=o.interpolate_b(e,i,o.minV,o.maxV),h=o.interpolate_a(i,r,o.minV,o.maxV),c=o.interpolate_b(i,r,o.minV,o.maxV),f=o.interpolate_b(n,r,o.minV,o.maxV),g=o.interpolate_a(n,r,o.minV,o.maxV);o.polygons_full&&(t.edges.bl={path:[[s,0],[0,u]],move:{x:-1,y:0,enter:"rb"}},t.edges.lt={path:[[0,l],[h,1]],move:{x:0,y:1,enter:"bl"}},t.edges.tr={path:[[c,1],[1,f]],move:{x:1,y:0,enter:"lt"}},t.edges.rb={path:[[1,g],[a,0]],move:{x:0,y:-1,enter:"tr"}}),o.polygons&&t.polygons.push([[s,0],[0,u],[0,l],[h,1],[c,1],[1,f],[1,g],[a,0]])}};function Ea(t,e,n,r){var i,o,s,a=!1,u=null,l=null,h=null,c=null,f=!1,g=[],p=[],v=[];if(!t)throw new Error("data is required");if(null==e)throw new Error("lowerBound is required");if(null==n)throw new Error("bandWidth is required");if(s=function(t){var e,n,r,i,o;for(i=new fa,t=t||{},o=Object.keys(i),e=0;en||t[a][i-1]n){r=!1;break}if(r&&(t[o-1][0]n||t[o-1][i-1]n)&&(r=!1),r)for(s=0;sn||t[o-1][s]n){r=!1;break}return r}(t,n.minV,n.maxV)&&(n.linearRing?x.push([[0,0],[0,E],[k,E],[k,0],[0,0]]):x.push([[0,0],[0,E],[k,E],[k,0]])),e.forEach((function(t,M){t.forEach((function(t,L){for(r=null,o=0;o<8;o++)if(r=N[o],"object"===m(t.edges[r])){for(i=[],s=t.edges[r],l=r,h=M,c=L,f=!1,g=[M+s.path[0][0],L+s.path[0][1]],i.push(g);!f&&"object"===m((p=e[h][c]).edges[l]);)if(s=p.edges[l],delete p.edges[l],(y=s.path[1])[0]+=h,y[1]+=c,i.push(y),l=s.move.enter,h+=s.move.x,c+=s.move.y,void 0===e[h]||void 0===e[h][c]){if(v=0,d=0,h===k)h--,v=0;else if(h<0)h++,v=2;else if(c===E)c--,v=3;else{if(!(c<0))throw new Error("Left the grid somewhere in the interior!");c++,v=1}if(h===M&&c===L&&v===S[r]){f=!0,l=r;break}for(;;){if(_=!1,d>4)throw new Error("Direction change counter overflow! This should never happen!");if(void 0!==e[h]&&void 0!==e[h][c])for(p=e[h][c],a=0;ao?2:sf?128:64,s|=uf?32:16,s|=lf?8:4,o=0,i={cval:s=+(s|=hf?2:1),polygons:[],edges:{},x0:h,x1:l,x2:u,x3:a,x:e,y:n},s){case 85:xa.square(i,h,l,u,a,r);case 0:case 170:break;case 169:xa.triangle_bl(i,h,l,u,a,r);break;case 166:xa.triangle_br(i,h,l,u,a,r);break;case 154:xa.triangle_tr(i,h,l,u,a,r);break;case 106:xa.triangle_tl(i,h,l,u,a,r);break;case 1:xa.triangle_bl(i,h,l,u,a,r);break;case 4:xa.triangle_br(i,h,l,u,a,r);break;case 16:xa.triangle_tr(i,h,l,u,a,r);break;case 64:xa.triangle_tl(i,h,l,u,a,r);break;case 168:xa.tetragon_bl(i,h,l,u,a,r);break;case 162:xa.tetragon_br(i,h,l,u,a,r);break;case 138:xa.tetragon_tr(i,h,l,u,a,r);break;case 42:xa.tetragon_tl(i,h,l,u,a,r);break;case 2:xa.tetragon_bl(i,h,l,u,a,r);break;case 8:xa.tetragon_br(i,h,l,u,a,r);break;case 32:xa.tetragon_tr(i,h,l,u,a,r);break;case 128:xa.tetragon_tl(i,h,l,u,a,r);break;case 5:xa.tetragon_b(i,h,l,u,a,r);break;case 20:xa.tetragon_r(i,h,l,u,a,r);break;case 80:xa.tetragon_t(i,h,l,u,a,r);break;case 65:xa.tetragon_l(i,h,l,u,a,r);break;case 165:xa.tetragon_b(i,h,l,u,a,r);break;case 150:xa.tetragon_r(i,h,l,u,a,r);break;case 90:xa.tetragon_t(i,h,l,u,a,r);break;case 105:xa.tetragon_l(i,h,l,u,a,r);break;case 160:xa.tetragon_lr(i,h,l,u,a,r);break;case 130:xa.tetragon_tb(i,h,l,u,a,r);break;case 10:xa.tetragon_lr(i,h,l,u,a,r);break;case 40:xa.tetragon_tb(i,h,l,u,a,r);break;case 101:xa.pentagon_tr(i,h,l,u,a,r);break;case 149:xa.pentagon_tl(i,h,l,u,a,r);break;case 86:xa.pentagon_bl(i,h,l,u,a,r);break;case 89:xa.pentagon_br(i,h,l,u,a,r);break;case 69:xa.pentagon_tr(i,h,l,u,a,r);break;case 21:xa.pentagon_tl(i,h,l,u,a,r);break;case 84:xa.pentagon_bl(i,h,l,u,a,r);break;case 81:xa.pentagon_br(i,h,l,u,a,r);break;case 96:xa.pentagon_tr_rl(i,h,l,u,a,r);break;case 24:xa.pentagon_rb_bt(i,h,l,u,a,r);break;case 6:xa.pentagon_bl_lr(i,h,l,u,a,r);break;case 129:xa.pentagon_lt_tb(i,h,l,u,a,r);break;case 74:xa.pentagon_tr_rl(i,h,l,u,a,r);break;case 146:xa.pentagon_rb_bt(i,h,l,u,a,r);break;case 164:xa.pentagon_bl_lr(i,h,l,u,a,r);break;case 41:xa.pentagon_lt_tb(i,h,l,u,a,r);break;case 66:xa.pentagon_bl_tb(i,h,l,u,a,r);break;case 144:xa.pentagon_lt_rl(i,h,l,u,a,r);break;case 36:xa.pentagon_tr_bt(i,h,l,u,a,r);break;case 9:xa.pentagon_rb_lr(i,h,l,u,a,r);break;case 104:xa.pentagon_bl_tb(i,h,l,u,a,r);break;case 26:xa.pentagon_lt_rl(i,h,l,u,a,r);break;case 134:xa.pentagon_tr_bt(i,h,l,u,a,r);break;case 161:xa.pentagon_rb_lr(i,h,l,u,a,r);break;case 37:xa.hexagon_lt_tr(i,h,l,u,a,r);break;case 148:xa.hexagon_bl_lt(i,h,l,u,a,r);break;case 82:xa.hexagon_bl_rb(i,h,l,u,a,r);break;case 73:xa.hexagon_tr_rb(i,h,l,u,a,r);break;case 133:xa.hexagon_lt_tr(i,h,l,u,a,r);break;case 22:xa.hexagon_bl_lt(i,h,l,u,a,r);break;case 88:xa.hexagon_bl_rb(i,h,l,u,a,r);break;case 97:xa.hexagon_tr_rb(i,h,l,u,a,r);break;case 145:case 25:xa.hexagon_lt_rb(i,h,l,u,a,r);break;case 70:case 100:xa.hexagon_bl_tr(i,h,l,u,a,r);break;case 17:0===(o=ka(h,l,u,a,c,f))?(xa.triangle_bl(i,h,l,u,a,r),xa.triangle_tr(i,h,l,u,a,r)):xa.hexagon_lt_rb(i,h,l,u,a,r);break;case 68:0===(o=ka(h,l,u,a,c,f))?(xa.triangle_tl(i,h,l,u,a,r),xa.triangle_br(i,h,l,u,a,r)):xa.hexagon_bl_tr(i,h,l,u,a,r);break;case 153:2===(o=ka(h,l,u,a,c,f))?(xa.triangle_bl(i,h,l,u,a,r),xa.triangle_tr(i,h,l,u,a,r)):xa.hexagon_lt_rb(i,h,l,u,a,r);break;case 102:2===(o=ka(h,l,u,a,c,f))?(xa.triangle_tl(i,h,l,u,a,r),xa.triangle_br(i,h,l,u,a,r)):xa.hexagon_bl_tr(i,h,l,u,a,r);break;case 152:2===(o=ka(h,l,u,a,c,f))?(xa.triangle_tr(i,h,l,u,a,r),xa.tetragon_bl(i,h,l,u,a,r)):xa.heptagon_tr(i,h,l,u,a,r);break;case 137:2===(o=ka(h,l,u,a,c,f))?(xa.triangle_bl(i,h,l,u,a,r),xa.tetragon_tr(i,h,l,u,a,r)):xa.heptagon_bl(i,h,l,u,a,r);break;case 98:2===(o=ka(h,l,u,a,c,f))?(xa.triangle_tl(i,h,l,u,a,r),xa.tetragon_br(i,h,l,u,a,r)):xa.heptagon_tl(i,h,l,u,a,r);break;case 38:2===(o=ka(h,l,u,a,c,f))?(xa.triangle_br(i,h,l,u,a,r),xa.tetragon_tl(i,h,l,u,a,r)):xa.heptagon_br(i,h,l,u,a,r);break;case 18:0===(o=ka(h,l,u,a,c,f))?(xa.triangle_tr(i,h,l,u,a,r),xa.tetragon_bl(i,h,l,u,a,r)):xa.heptagon_tr(i,h,l,u,a,r);break;case 33:0===(o=ka(h,l,u,a,c,f))?(xa.triangle_bl(i,h,l,u,a,r),xa.tetragon_tr(i,h,l,u,a,r)):xa.heptagon_bl(i,h,l,u,a,r);break;case 72:0===(o=ka(h,l,u,a,c,f))?(xa.triangle_tl(i,h,l,u,a,r),xa.tetragon_br(i,h,l,u,a,r)):xa.heptagon_tl(i,h,l,u,a,r);break;case 132:0===(o=ka(h,l,u,a,c,f))?(xa.triangle_br(i,h,l,u,a,r),xa.tetragon_tl(i,h,l,u,a,r)):xa.heptagon_br(i,h,l,u,a,r);break;case 136:0===(o=ka(h,l,u,a,c,f))?(xa.tetragon_tl(i,h,l,u,a,r),xa.tetragon_br(i,h,l,u,a,r)):1===o?xa.octagon(i,h,l,u,a,r):(xa.tetragon_bl(i,h,l,u,a,r),xa.tetragon_tr(i,h,l,u,a,r));break;case 34:0===(o=ka(h,l,u,a,c,f))?(xa.tetragon_bl(i,h,l,u,a,r),xa.tetragon_tr(i,h,l,u,a,r)):1===o?xa.octagon(i,h,l,u,a,r):(xa.tetragon_tl(i,h,l,u,a,r),xa.tetragon_br(i,h,l,u,a,r))}return i}}var wa=Object.defineProperty,Ia=Object.getOwnPropertySymbols,Na=Object.prototype.hasOwnProperty,Sa=Object.prototype.propertyIsEnumerable,Ma=function(t,e,n){return e in t?wa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},La=function(t,e){for(var n in e||(e={}))Na.call(e,n)&&Ma(t,n,e[n]);if(Ia){var r,i=a(Ia(e));try{for(i.s();!(r=i.n()).done;){n=r.value;Sa.call(e,n)&&Ma(t,n,e[n])}}catch(t){i.e(t)}finally{i.f()}}return t};function Pa(t,e){if(!Z(e=e||{}))throw new Error("options is invalid");var n=e.zProperty||"elevation",r=e.flip,i=e.flags;nt(t,"Point","input must contain Points");for(var o=function(t,e){var n={};vt(t,(function(t){var e=Q(t)[1];n[e]||(n[e]=[]),n[e].push(t)}));var r=Object.keys(n).map((function(t){return n[t].sort((function(t,e){return Q(t)[0]-Q(e)[0]}))})),i=r.sort((function(t,n){return e?Q(t[0])[1]-Q(n[0])[1]:Q(n[0])[1]-Q(t[0])[1]}));return i}(t,r),s=[],a=0;a=0&&l<=1&&(f.onLine1=!0),h>=0&&h<=1&&(f.onLine2=!0),!(!f.onLine1||!f.onLine2)&&[f.x,f.y])}function za(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return bt(t,(function(t,n){var r=n.geometry.coordinates;return t+ut(r[0],r[1],e)}),0)}function ja(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=i.steps||64,s=Xa(n),a=Xa(r),u=Array.isArray(t)||"Feature"!==t.type?{}:t.properties;if(s===a)return L(Ri(t,e,i).geometry.coordinates[0],u);for(var l=s,h=s=h&&c===i.length-1);c++){if(h>e&&0===o.length){if(!(s=e-h))return o.push(i[c]),L(o);a=st(i[c],i[c-1])-180,u=at(i[c],s,a,r),o.push(u.geometry.coordinates)}if(h>=n)return(s=n-h)?(a=st(i[c],i[c-1])-180,u=at(i[c],s,a,r),o.push(u.geometry.coordinates),L(o)):(o.push(i[c]),L(o));if(h>=e&&o.push(i[c]),c===i.length-1)return L(o);h+=ut(i[c],i[c+1],r)}if(h0){var a=r[e-1],u=Wa(n,a);!1!==u&&(a[1]=u,n[0]=u),s.push(a[0]),e===o.length-2&&(s.push(n[0]),s.push(n[1]))}2===o.length&&(s.push(n[0]),s.push(n[1]))}var l,h,c,f,g,p,v,d})),L(s,t.properties)}function Ka(t){var e=t[0],n=t[1],r=t[2],i=t[3];if(ut(t.slice(0,2),[r,n])>=ut(t.slice(0,2),[e,i])){var o=(n+i)/2;return[e,o-(r-e)/2,r,o+(r-e)/2]}var s=(e+r)/2;return[s-(i-n)/2,n,s+(i-n)/2,i]}function Qa(t,e){if(!Z(e=null!=e?e:{}))throw new Error("options is invalid");var n=e.precision,r=e.coordinates,i=e.mutate;if(n=null==n||isNaN(n)?6:n,r=null==r||isNaN(r)?3:r,!t)throw new Error(" is required");if("number"!=typeof n)throw new Error(" must be a number");if("number"!=typeof r)throw new Error(" must be a number");!1!==i&&void 0!==i||(t=JSON.parse(JSON.stringify(t)));var o=Math.pow(10,n);return ct(t,(function(t){!function(t,e,n){t.length>n&&t.splice(n,t.length);for(var r=0;r1&&n.push(L(l)),C(n)}function eu(t,e){if(!e.features.length)throw new Error("lines must contain features");if(1===e.features.length)return e.features[0];var n,r=1/0;return vt(e,(function(e){var i=fn(e,t).properties.dist;iu?(a.unshift(t),u=e):a.push(t)}else a.push(t)})),S(a,e);default:throw new Error("geometry type "+s+" is not supported")}}function iu(t){var e=t[0],n=e[0],r=e[1],i=t[t.length-1],o=i[0],s=i[1];return n===o&&r===s||t.push(e),t}function ou(t){return R(t)}function su(t){var e=[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]];return t&&(e="Feature"===t.type?t.geometry.coordinates:t.coordinates),S(e)}function au(t){var e,n=0,r=a(t);try{for(r.s();!(e=r.n()).done;){n+=e.value}}catch(t){r.e(t)}finally{r.f()}return n/t.length}var uu=Object.defineProperty,lu=Object.defineProperties,hu=Object.getOwnPropertyDescriptors,cu=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,gu=Object.prototype.propertyIsEnumerable,pu=function(t,e,n){return e in t?uu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},vu=function(t,e){for(var n in e||(e={}))fu.call(e,n)&&pu(t,n,e[n]);if(cu){var r,i=a(cu(e));try{for(i.s();!(r=i.n()).done;){n=r.value;gu.call(e,n)&&pu(t,n,e[n])}}catch(t){i.e(t)}finally{i.f()}}return t},du=function(t,e){return lu(t,hu(e))};function yu(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var r=1/0,i=0;vt(e,(function(e,o){var s=ut(t,e,n);s2&&void 0!==arguments[2]?arguments[2]:{},o=null!=(n=i.method)?n:"geodesic",s=null!=(r=i.units)?r:"kilometers";if(!t)throw new Error("pt is required");if(Array.isArray(t)?t=I(t):"Point"===t.type?t=b(t):et(t,"Point","point"),!e)throw new Error("line is required");Array.isArray(e)?e=L(e):"LineString"===e.type?e=b(e):et(e,"LineString","line");var a=1/0,u=t.geometry.coordinates;return kt(e,(function(t){if(t){var e=t.geometry.coordinates[0],n=t.geometry.coordinates[1],r=function(t,e,n,r){if("geodesic"===r.method){return fn(L([e,n]).geometry,t,{units:"degrees"}).properties.dist}var i=[n[0]-e[0],n[1]-e[1]],o=[t[0]-e[0],t[1]-e[1]],s=_u(o,i);if(s<=0)return Ys(t,e,{units:"degrees"});var a=_u(i,i);if(a<=s)return Ys(t,n,{units:"degrees"});var u=s/a,l=[e[0]+u*i[0],e[1]+u*i[1]];return Ys(t,l,{units:"degrees"})}(u,e,n,{method:o});r0)-(t<0)||+t}(r*(n[1]-e[1])-o*i)}function Lu(t,e){return e.geometry.coordinates[0].every((function(e){return zt(I(e),t)}))}var Pu=function(){return s((function t(e){i(this,t),this.id=t.buildId(e),this.coordinates=e,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1}),[{key:"removeInnerEdge",value:function(t){this.innerEdges=this.innerEdges.filter((function(e){return e.from.id!==t.from.id}))}},{key:"removeOuterEdge",value:function(t){this.outerEdges=this.outerEdges.filter((function(e){return e.to.id!==t.to.id}))}},{key:"addOuterEdge",value:function(t){this.outerEdges.push(t),this.outerEdgesSorted=!1}},{key:"sortOuterEdges",value:function(){var t=this;this.outerEdgesSorted||(this.outerEdges.sort((function(e,n){var r=e.to,i=n.to;if(r.coordinates[0]-t.coordinates[0]>=0&&i.coordinates[0]-t.coordinates[0]<0)return 1;if(r.coordinates[0]-t.coordinates[0]<0&&i.coordinates[0]-t.coordinates[0]>=0)return-1;if(r.coordinates[0]-t.coordinates[0]==0&&i.coordinates[0]-t.coordinates[0]==0)return r.coordinates[1]-t.coordinates[1]>=0||i.coordinates[1]-t.coordinates[1]>=0?r.coordinates[1]-i.coordinates[1]:i.coordinates[1]-r.coordinates[1];var o=Mu(t.coordinates,r.coordinates,i.coordinates);return o<0?1:o>0?-1:Math.pow(r.coordinates[0]-t.coordinates[0],2)+Math.pow(r.coordinates[1]-t.coordinates[1],2)-(Math.pow(i.coordinates[0]-t.coordinates[0],2)+Math.pow(i.coordinates[1]-t.coordinates[1],2))})),this.outerEdgesSorted=!0)}},{key:"getOuterEdges",value:function(){return this.sortOuterEdges(),this.outerEdges}},{key:"getOuterEdge",value:function(t){return this.sortOuterEdges(),this.outerEdges[t]}},{key:"addInnerEdge",value:function(t){this.innerEdges.push(t)}}],[{key:"buildId",value:function(t){return t.join(",")}}])}(),Cu=function(){function t(e,n){i(this,t),this.from=e,this.to=n,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)}return s(t,[{key:"getSymetric",value:function(){return this.symetric||(this.symetric=new t(this.to,this.from),this.symetric.symetric=this),this.symetric}},{key:"deleteEdge",value:function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)}},{key:"isEqual",value:function(t){return this.from.id===t.from.id&&this.to.id===t.to.id}},{key:"toString",value:function(){return"Edge { ".concat(this.from.id," -> ").concat(this.to.id," }")}},{key:"toLineString",value:function(){return L([this.from.coordinates,this.to.coordinates])}},{key:"compareTo",value:function(t){return Mu(t.from.coordinates,t.to.coordinates,this.to.coordinates)}}])}(),Tu=function(){return s((function t(){i(this,t),this.edges=[],this.polygon=void 0,this.envelope=void 0}),[{key:"push",value:function(t){this.edges.push(t),this.polygon=this.envelope=void 0}},{key:"get",value:function(t){return this.edges[t]}},{key:"length",get:function(){return this.edges.length}},{key:"forEach",value:function(t){this.edges.forEach(t)}},{key:"map",value:function(t){return this.edges.map(t)}},{key:"some",value:function(t){return this.edges.some(t)}},{key:"isValid",value:function(){return!0}},{key:"isHole",value:function(){var t=this,e=this.edges.reduce((function(e,n,r){return n.from.coordinates[1]>t.edges[e].from.coordinates[1]&&(e=r),e}),0),n=(0===e?this.length:e)-1,r=(e+1)%this.length,i=Mu(this.edges[n].from.coordinates,this.edges[e].from.coordinates,this.edges[r].from.coordinates);return 0===i?this.edges[n].from.coordinates[0]>this.edges[r].from.coordinates[0]:i>0}},{key:"toMultiPoint",value:function(){return O(this.edges.map((function(t){return t.from.coordinates})))}},{key:"toPolygon",value:function(){if(this.polygon)return this.polygon;var t=this.edges.map((function(t){return t.from.coordinates}));return t.push(this.edges[0].from.coordinates),this.polygon=S([t])}},{key:"getEnvelope",value:function(){return this.envelope?this.envelope:this.envelope=Us(this.toPolygon())}},{key:"inside",value:function(t){return zt(t,this.toPolygon())}}],[{key:"findEdgeRingContaining",value:function(t,e){var n,r,i=t.getEnvelope();return e.forEach((function(e){var o,s,u,l,h,c,f=e.getEnvelope();if((r&&(n=r.getEnvelope()),s=i,u=(o=f).geometry.coordinates[0].map((function(t){return t[0]})),l=o.geometry.coordinates[0].map((function(t){return t[1]})),h=s.geometry.coordinates[0].map((function(t){return t[0]})),c=s.geometry.coordinates[0].map((function(t){return t[1]})),Math.max.apply(null,u)!==Math.max.apply(null,h)||Math.max.apply(null,l)!==Math.max.apply(null,c)||Math.min.apply(null,u)!==Math.min.apply(null,h)||Math.min.apply(null,l)!==Math.min.apply(null,c))&&Lu(f,i)){var g,p,v=a(t.map((function(t){return t.from.coordinates})));try{var d=function(){var t=p.value;e.some((function(e){return n=t,r=e.from.coordinates,n[0]===r[0]&&n[1]===r[1];var n,r}))||(g=t)};for(v.s();!(p=v.n()).done;)d()}catch(t){v.e(t)}finally{v.f()}g&&e.inside(I(g))&&(r&&!Lu(n,f)||(r=e))}})),r}}])}();var Ou=function(){function t(){i(this,t),this.edges=[],this.nodes={}}return s(t,[{key:"getNode",value:function(t){var e=Pu.buildId(t),n=this.nodes[e];return n||(n=this.nodes[e]=new Pu(t)),n}},{key:"addEdge",value:function(t,e){var n=new Cu(t,e),r=n.getSymetric();this.edges.push(n),this.edges.push(r)}},{key:"deleteDangles",value:function(){var t=this;Object.keys(this.nodes).map((function(e){return t.nodes[e]})).forEach((function(e){return t._removeIfDangle(e)}))}},{key:"_removeIfDangle",value:function(t){var e=this;if(t.innerEdges.length<=1){var n=t.getOuterEdges().map((function(t){return t.to}));this.removeNode(t),n.forEach((function(t){return e._removeIfDangle(t)}))}}},{key:"deleteCutEdges",value:function(){var t=this;this._computeNextCWEdges(),this._findLabeledEdgeRings(),this.edges.forEach((function(e){e.label===e.symetric.label&&(t.removeEdge(e.symetric),t.removeEdge(e))}))}},{key:"_computeNextCWEdges",value:function(t){var e=this;void 0===t?Object.keys(this.nodes).forEach((function(t){return e._computeNextCWEdges(e.nodes[t])})):t.getOuterEdges().forEach((function(e,n){t.getOuterEdge((0===n?t.getOuterEdges().length:n)-1).symetric.next=e}))}},{key:"_computeNextCCWEdges",value:function(t,e){for(var n,r,i=t.getOuterEdges(),o=i.length-1;o>=0;--o){var s=i[o],a=s.symetric,u=void 0,l=void 0;s.label===e&&(u=s),a.label===e&&(l=a),u&&l&&(l&&(r=l),u&&(r&&(r.next=u,r=void 0),n||(n=u)))}r&&(r.next=n)}},{key:"_findLabeledEdgeRings",value:function(){var t=[],e=0;return this.edges.forEach((function(n){if(!(n.label>=0)){t.push(n);var r=n;do{r.label=e,r=r.next}while(!n.isEqual(r));e++}})),t}},{key:"getEdgeRings",value:function(){var t=this;this._computeNextCWEdges(),this.edges.forEach((function(t){t.label=void 0})),this._findLabeledEdgeRings().forEach((function(e){t._findIntersectionNodes(e).forEach((function(n){t._computeNextCCWEdges(n,e.label)}))}));var e=[];return this.edges.forEach((function(n){n.ring||e.push(t._findEdgeRing(n))})),e}},{key:"_findIntersectionNodes",value:function(t){var e=[],n=t,r=function(){var r=0;n.from.getOuterEdges().forEach((function(e){e.label===t.label&&++r})),r>1&&e.push(n.from),n=n.next};do{r()}while(!t.isEqual(n));return e}},{key:"_findEdgeRing",value:function(t){var e=t,n=new Tu;do{n.push(e),e.ring=n,e=e.next}while(!t.isEqual(e));return n}},{key:"removeNode",value:function(t){var e=this;t.getOuterEdges().forEach((function(t){return e.removeEdge(t)})),t.innerEdges.forEach((function(t){return e.removeEdge(t)})),delete this.nodes[t.id]}},{key:"removeEdge",value:function(t){this.edges=this.edges.filter((function(e){return!e.isEqual(t)})),t.deleteEdge()}}],[{key:"fromGeoJson",value:function(e){!function(t){if(!t)throw new Error("No geojson passed");if("FeatureCollection"!==t.type&&"GeometryCollection"!==t.type&&"MultiLineString"!==t.type&&"LineString"!==t.type&&"Feature"!==t.type)throw new Error("Invalid input type '".concat(t.type,"'. Geojson must be FeatureCollection, GeometryCollection, LineString, MultiLineString or Feature"))}(e);var n=new t;return xt(e,(function(t){et(t,"LineString","Graph::fromGeoJson"),ft(t,(function(t,e){if(t){var r=n.getNode(t),i=n.getNode(e);n.addEdge(r,i)}return e}))})),n}}])}();function Ru(t,e){var n,r;ct(t,(function(t,i,o,s,a){if(r!==a)e.push([]);else{var u=n[0],l=n[1],h=t[0],c=t[1];e[a].push([.75*u+.25*h,.75*l+.25*c]),e[a].push([.25*u+.75*h,.25*l+.75*c])}n=t,r=a}),!1),e.forEach((function(t){t.push(t[0])}))}function Au(t,e){var n,r,i;ct(t,(function(t,o,s,a,u){if(r!==a)e.push([[]]);else if(i!==u)e[a].push([]);else{var l=n[0],h=n[1],c=t[0],f=t[1];e[a][u].push([.75*l+.25*c,.75*h+.25*f]),e[a][u].push([.25*l+.75*c,.25*h+.75*f])}n=t,r=a,i=u}),!1),e.forEach((function(t){t.forEach((function(t){t.push(t[0])}))}))}function Du(t,e,n,r,i){for(var o=0;o0?qu(e,s,r)<0||(r=s):n>0&&u<=0&&(Fu(e,s,i)||(i=s)),n=u}return[r,i]}function Fu(t,e,n){return qu(t,e,n)>0}function qu(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(n[0]-t[0])*(e[1]-t[1])}function Vu(t){return Bu(t,"mercator",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function Gu(t){return Bu(t,"wgs84",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function Bu(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(n=n||{}).mutate;if(!t)throw new Error("geojson is required");return Array.isArray(t)&&U(t[0])?t="mercator"===e?Yu(t):zu(t):(!0!==r&&(t=Ai(t)),ct(t,(function(t){var n="mercator"===e?Yu(t):zu(t);t[0]=n[0],t[1]=n[1]}))),t}function Yu(t){var e=Math.PI/180,n=6378137,r=20037508.342789244,i=Math.abs(t[0])<=180?t[0]:t[0]-360*function(t){return t<0?-1:t>0?1:0}(t[0]),o=[n*i*e,n*Math.log(Math.tan(.25*Math.PI+.5*t[1]*e))];return o[0]>r&&(o[0]=r),o[0]<-r&&(o[0]=-r),o[1]>r&&(o[1]=r),o[1]<-r&&(o[1]=-r),o}function zu(t){var e=180/Math.PI,n=6378137;return[t[0]*e/n,(.5*Math.PI-2*Math.atan(Math.exp(-t[1]/n)))*e]}var ju=Object.freeze({__proto__:null,toMercator:Vu,toWgs84:Gu});var Xu={20:1.07275,15:1.13795,10:1.22385,5:1.3581,2:1.51743,1:1.62762};function Uu(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}function Zu(t){var e=[];return function t(n){return 0===n||1===n?1:e[n]>0?e[n]:e[n]=t(n-1)*n}(t)}function Hu(t){return Ju(t),Wu(t)}function Wu(t){return Array.isArray(t)?el(t):t&&t.bbox?el(t.bbox):[360*tl(),180*tl()]}function Ju(t){null!=t&&(Array.isArray(t)?H(t):null!=t.bbox&&H(t.bbox))}function Ku(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ju(e.bbox),null==t&&(t=1);for(var n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:{};Ju(e.bbox),null==t&&(t=1),void 0!==e.bbox&&null!==e.bbox||(e.bbox=[-180,-90,180,90]),U(e.num_vertices)&&void 0!==e.num_vertices||(e.num_vertices=10),U(e.max_radial_length)&&void 0!==e.max_radial_length||(e.max_radial_length=10);var n=Math.abs(e.bbox[0]-e.bbox[2]),r=Math.abs(e.bbox[1]-e.bbox[3]),i=Math.min(n/2,r/2);if(e.max_radial_length>i)throw new Error("max_radial_length is greater than the radius of the bbox");for(var o=[e.bbox[0]+e.max_radial_length,e.bbox[1]+e.max_radial_length,e.bbox[2]-e.max_radial_length,e.bbox[3]-e.max_radial_length],s=[],a=function(){var t,n=[],r=d(Array(e.num_vertices+1)).map(Math.random);r.forEach((function(t,e,n){n[e]=e>0?t+n[e-1]:t})),r.forEach((function(t){t=2*t*Math.PI/r[r.length-1];var i=Math.random();n.push([i*(e.max_radial_length||10)*Math.sin(t),i*(e.max_radial_length||10)*Math.cos(t)])})),n[n.length-1]=n[0],n=n.reverse().map((t=Wu(o),function(e){return[e[0]+t[0],e[1]+t[1]]})),s.push(S([n]))},u=0;u1&&void 0!==arguments[1]?arguments[1]:{};if(!Z(e=e||{}))throw new Error("options is invalid");var n=e.bbox;Ju(n);var r=e.num_vertices,i=e.max_length,o=e.max_rotation;null==t&&(t=1),(!U(r)||void 0===r||r<2)&&(r=10),U(i)&&void 0!==i||(i=1e-4),U(o)&&void 0!==o||(o=Math.PI/8);for(var s=[],a=0;a0;){var l=a.pop();if(l===n)return ll(l);l.closed=!0;for(var h=t.neighbors(l),c=0,f=h.length;c1?(r=n[0],i=n[1]):a>0&&(r+=o*a,i+=s*a)}return(o=t[0]-r)*o+(s=t[1]-i)*s}function dl(t,e,n,r,i){for(var o,s=r,a=e+1;as&&(o=a,s=u)}s>r&&(o-e>1&&dl(t,e,o,r,i),i.push(t[o]),n-o>1&&dl(t,o,n,r,i))}function yl(t,e){var n=t.length-1,r=[t[0]];return dl(t,0,n,e,r),r.push(t[n]),r}function ml(t,e,n){if(t.length<=2)return t;var r=void 0!==e?e*e:1;return t=n?t:function(t,e){for(var n,r,i,o,s,a=t[0],u=[a],l=1,h=t.length;le&&(u.push(n),a=n);return a!==n&&u.push(n),u}(t,r),t=yl(t,r)}function _l(t,e,n){return t.map((function(t){if(t.length<4)throw new Error("invalid polygon");for(var r=e,i=ml(t,r,n);!xl(i);)i=ml(t,r-=.01*r,n);return i[i.length-1][0]===i[0][0]&&i[i.length-1][1]===i[0][1]||i.push(i[0]),i}))}function xl(t){return!(t.length<3)&&!(3===t.length&&t[2][0]===t[0][0]&&t[2][1]===t[0][1])}function El(t,e){return{x:t[0]-e[0],y:t[1]-e[1]}}cl.prototype.init=function(){this.dirtyNodes=[];for(var t=0;t0&&(this.content[0]=e,this.bubbleUp(0)),t},remove:function(t){var e=this.content.indexOf(t),n=this.content.pop();e!==this.content.length-1&&(this.content[e]=n,this.scoreFunction(n)0;){var n=(t+1>>1)-1,r=this.content[n];if(!(this.scoreFunction(e)80*i){o=a=t[0],s=h=t[1];for(var _=i;_a&&(a=c),g>h&&(h=g);p=0!==(p=Math.max(a-o,h-s))?32767/p:0}return r(y,m,i,o,s,p,0),m}function e(t,e,n,r,i){var o,s;if(i===I(t,e,n,r)>0)for(o=e;o=e;o-=r)s=k(o,t[o],t[o+1],s);return s&&d(s,s.next)&&(b(s),s=s.next),s}function n(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!d(r,r.next)&&0!==v(r.prev,r,r.next))r=r.next;else{if(b(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function r(t,e,u,l,h,f,g){if(t){!g&&f&&function(t,e,n,r){var i=t;do{0===i.z&&(i.z=c(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,s,a,u,l=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,a=0,e=0;e0||u>0&&r;)0!==a&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(s>1)}(i)}(t,l,h,f);for(var p,v,d=t;t.prev!==t.next;)if(p=t.prev,v=t.next,f?o(t,l,h,f):i(t))e.push(p.i/u|0),e.push(t.i/u|0),e.push(v.i/u|0),b(t),t=v.next,d=v.next;else if((t=v)===d){g?1===g?r(t=s(n(t),e,u),e,u,l,h,f,2):2===g&&a(t,e,u,l,h,f):r(n(t),e,u,l,h,f,1);break}}}function i(t){var e=t.prev,n=t,r=t.next;if(v(e,n,r)>=0)return!1;for(var i=e.x,o=n.x,s=r.x,a=e.y,u=n.y,l=r.y,h=io?i>s?i:s:o>s?o:s,p=a>u?a>l?a:l:u>l?u:l,d=r.next;d!==e;){if(d.x>=h&&d.x<=f&&d.y>=c&&d.y<=p&&g(i,a,o,u,s,l,d.x,d.y)&&v(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function o(t,e,n,r){var i=t.prev,o=t,s=t.next;if(v(i,o,s)>=0)return!1;for(var a=i.x,u=o.x,l=s.x,h=i.y,f=o.y,p=s.y,d=au?a>l?a:l:u>l?u:l,_=h>f?h>p?h:p:f>p?f:p,x=c(d,y,e,n,r),E=c(m,_,e,n,r),k=t.prevZ,b=t.nextZ;k&&k.z>=x&&b&&b.z<=E;){if(k.x>=d&&k.x<=m&&k.y>=y&&k.y<=_&&k!==i&&k!==s&&g(a,h,u,f,l,p,k.x,k.y)&&v(k.prev,k,k.next)>=0)return!1;if(k=k.prevZ,b.x>=d&&b.x<=m&&b.y>=y&&b.y<=_&&b!==i&&b!==s&&g(a,h,u,f,l,p,b.x,b.y)&&v(b.prev,b,b.next)>=0)return!1;b=b.nextZ}for(;k&&k.z>=x;){if(k.x>=d&&k.x<=m&&k.y>=y&&k.y<=_&&k!==i&&k!==s&&g(a,h,u,f,l,p,k.x,k.y)&&v(k.prev,k,k.next)>=0)return!1;k=k.prevZ}for(;b&&b.z<=E;){if(b.x>=d&&b.x<=m&&b.y>=y&&b.y<=_&&b!==i&&b!==s&&g(a,h,u,f,l,p,b.x,b.y)&&v(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function s(t,e,r){var i=t;do{var o=i.prev,s=i.next.next;!d(o,s)&&y(o,i,i.next,s)&&x(o,s)&&x(s,o)&&(e.push(o.i/r|0),e.push(i.i/r|0),e.push(s.i/r|0),b(i),b(i.next),i=t=s),i=i.next}while(i!==t);return n(i)}function a(t,e,i,o,s,a){var u=t;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&p(u,l)){var h=E(u,l);return u=n(u,u.next),h=n(h,h.next),r(u,e,i,o,s,a,0),void r(h,e,i,o,s,a,0)}l=l.next}u=u.next}while(u!==t)}function u(t,e){return t.x-e.x}function l(t,e){var r=function(t,e){var n,r=e,i=t.x,o=t.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&a>s&&(s=a,n=r.x=r.x&&r.x>=c&&i!==r.x&&g(on.x||r.x===n.x&&h(n,r)))&&(n=r,p=u)),r=r.next}while(r!==l);return n}(t,e);if(!r)return e;var i=E(r,t);return n(i,i.next),n(r,r.next)}function h(t,e){return v(t.prev,t,e.prev)<0&&v(e.next,t,t.next)<0}function c(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function f(t){var e=t,n=t;do{(e.x=(t-s)*(o-a)&&(t-s)*(r-a)>=(n-s)*(e-a)&&(n-s)*(o-a)>=(i-s)*(r-a)}function p(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&y(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(x(t,e)&&x(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(v(t.prev,t,e.prev)||v(t,e.prev,e))||d(t,e)&&v(t.prev,t,t.next)>0&&v(e.prev,e,e.next)>0)}function v(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function d(t,e){return t.x===e.x&&t.y===e.y}function y(t,e,n,r){var i=_(v(t,e,n)),o=_(v(t,e,r)),s=_(v(n,r,t)),a=_(v(n,r,e));return i!==o&&s!==a||(!(0!==i||!m(t,n,e))||(!(0!==o||!m(t,r,e))||(!(0!==s||!m(n,t,r))||!(0!==a||!m(n,e,r)))))}function m(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function _(t){return t>0?1:t<0?-1:0}function x(t,e){return v(t.prev,t,t.next)<0?v(t,e,t.next)>=0&&v(t,t.prev,e)>=0:v(t,e,t.prev)<0||v(t,t.next,e)<0}function E(t,e){var n=new w(t.i,t.x,t.y),r=new w(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function k(t,e,n,r){var i=new w(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function b(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function w(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e,n,r){for(var i=0,o=e,s=n-r;o0&&(r+=t[i-1].length,n.holes.push(r))}return n},bl.exports}(),Il=mn(wl);function Nl(t){var e=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i0&&(r+=t[i-1].length,n.holes.push(r))}return n}(t),n=Il(e.vertices,e.holes,2),r=[],i=[];n.forEach((function(t,r){var o=n[r];i.push([e.vertices[2*o],e.vertices[2*o+1]])}));for(var o=0;o=1||u<=0||l>=1||l<=0))){var v=p,d=!o[v];d&&(o[v]=!0),e?i.push(e(p,t,n,h,c,u,s,a,f,g,l,d)):i.push(p)}}function v(t,e){var n,i,o,s,a=r[t][e],u=r[t][e+1];return a[0]f[e.isect].coord?-1:1}));for(l=[];x.length>0;){var I=x.pop(),N=I.isect,M=I.parent,L=I.winding,P=l.length,T=[f[N].coord],O=N;if(f[N].ringAndEdge1Walkable)var R=f[N].ringAndEdge1,A=f[N].nxtIsectAlongRingAndEdge1;else R=f[N].ringAndEdge2,A=f[N].nxtIsectAlongRingAndEdge2;for(;!Rl(f[N].coord,f[A].coord);){T.push(f[A].coord);var D=void 0;for(r=0;r1)for(e=0;e=0==e}function Ol(t){for(var e=0,n=0;n0)){if(o/=f,f<0){if(o0){if(o>c)return;o>h&&(h=o)}if(o=r-u,f||!(o<0)){if(o/=f,f<0){if(o>c)return;o>h&&(h=o)}else if(f>0){if(o0)){if(o/=g,g<0){if(o0){if(o>c)return;o>h&&(h=o)}if(o=i-l,g||!(o<0)){if(o/=g,g<0){if(o>c)return;o>h&&(h=o)}else if(g>0){if(o0||c<1)||(h>0&&(t[0]=[u+h*f,l+h*g]),c<1&&(t[1]=[u+c*f,l+c*g]),!0)}}}}}function Hl(t,e,n,r,i){var o=t[1];if(o)return!0;var s,a,u=t[0],l=t.left,h=t.right,c=l[0],f=l[1],g=h[0],p=h[1],v=(c+g)/2,d=(f+p)/2;if(p===f){if(v=r)return;if(c>g){if(u){if(u[1]>=i)return}else u=[v,n];o=[v,i]}else{if(u){if(u[1]1)if(c>g){if(u){if(u[1]>=i)return}else u=[(n-a)/s,n];o=[(i-a)/s,i]}else{if(u){if(u[1]=r)return}else u=[e,s*e+a];o=[r,s*r+a]}else{if(u){if(u[0]=-dh)){var g=u*u+l*l,p=h*h+c*c,v=(c*g-l*p)/f,d=(u*p-h*g)/f,y=$l.pop()||new th;y.arc=t,y.site=i,y.x=v+s,y.y=(y.cy=d+a)+Math.sqrt(v*v+d*d),t.circle=y;for(var m=null,_=gh._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}gh.insert(m,y),m||(Ql=y)}}}}function nh(t){var e=t.circle;e&&(e.P||(Ql=e.N),gh.remove(e),$l.push(e),Gl(e),t.circle=null)}var rh=[];function ih(){Gl(this),this.edge=this.site=this.circle=null}function oh(t){var e=rh.pop()||new ih;return e.site=t,e}function sh(t){nh(t),ch.remove(t),rh.push(t),Gl(t)}function ah(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],o=t.P,s=t.N,a=[t];sh(t);for(var u=o;u.circle&&Math.abs(n-u.circle.x)vh)a=a.L;else{if(!((i=o-hh(a,s))>vh)){r>-vh?(e=a.P,n=a):i>-vh?(e=a,n=a.N):e=n=a;break}if(!a.R){e=a;break}a=a.R}!function(t){fh[t.index]={site:t,halfedges:[]}}(t);var u=oh(t);if(ch.insert(e,u),e||n){if(e===n)return nh(e),n=oh(e.site),ch.insert(u,n),u.edge=n.edge=jl(e.site,u.site),eh(e),void eh(n);if(n){nh(e),nh(n);var l=e.site,h=l[0],c=l[1],f=t[0]-h,g=t[1]-c,p=n.site,v=p[0]-h,d=p[1]-c,y=2*(f*d-g*v),m=f*f+g*g,_=v*v+d*d,x=[(d*m-g*_)/y+h,(f*_-v*m)/y+c];Ul(n.edge,l,p,x),u.edge=jl(l,t,null,x),n.edge=jl(t,p,null,x),eh(e),eh(n)}else u.edge=jl(e.site,u.site)}}function lh(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var s=t.P;if(!s)return-1/0;var a=(n=s.site)[0],u=n[1],l=u-e;if(!l)return a;var h=a-r,c=1/o-1/l,f=h/l;return c?(-f+Math.sqrt(f*f-2*c*(h*h/(-2*l)-u+l/2+i-o/2)))/c+r:(r+a)/2}function hh(t,e){var n=t.N;if(n)return lh(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var ch,fh,gh,ph,vh=1e-6,dh=1e-12;function yh(t,e){return e[1]-t[1]||e[0]-t[0]}function mh(t,e){var n,r,i,o=t.sort(yh).pop();for(ph=[],fh=new Array(t.length),ch=new Vl,gh=new Vl;;)if(i=Ql,o&&(!i||o[1]vh||Math.abs(i[0][1]-i[1][1])>vh)||delete ph[o]}(s,a,u,l),function(t,e,n,r){var i,o,s,a,u,l,h,c,f,g,p,v,d=fh.length,y=!0;for(i=0;ivh||Math.abs(v-f)>vh)&&(u.splice(a,0,ph.push(Xl(s,g,Math.abs(p-t)vh?[t,Math.abs(c-t)vh?[Math.abs(f-r)vh?[n,Math.abs(c-n)vh?[Math.abs(f-e)=a)return null;var u=t-i.site[0],l=e-i.site[1],h=u*u+l*l;do{i=o.cells[r=s],s=null,i.halfedges.forEach((function(n){var r=o.edges[n],a=r.left;if(a!==i.site&&a||(a=r.right)){var u=t-a[0],l=e-a[1],c=u*u+l*l;c2&&void 0!==arguments[2]?arguments[2]:{},r=rt(t).coordinates,i=0,o=0;o=i&&o===r.length-1);o++){if(i>=e){var s=e-i;if(s){var a=st(r[o],r[o-1])-180;return at(r[o],s,a,n)}return I(r[o])}i+=ut(r[o],r[o+1],n)}return I(r[r.length-1])},t.angle=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!Z(r))throw new Error("options is invalid");if(!t)throw new Error("startPoint is required");if(!e)throw new Error("midPoint is required");if(!n)throw new Error("endPoint is required");var i=t,o=e,s=n,a=G(!0!==r.mercator?st(o,i):lt(o,i)),u=G(!0!==r.mercator?st(o,s):lt(o,s));u1&&void 0!==arguments[1]?arguments[1]:{},n=e.resolution||1e4,r=e.sharpness||.85,i=[],o=rt(t).coordinates.map((function(t){return{x:t[0],y:t[1]}})),s=new Gt({duration:n,points:o,sharpness:r}),a=function(t){var e=s.pos(t);Math.floor(t/100)%2==0&&i.push([e.x,e.y])},u=0;u0;else if(n!==u>0)return!0}return!1},t.booleanContains=function(t,e){var n=rt(t),r=rt(e),i=n.type,o=r.type,s=n.coordinates,u=r.coordinates;switch(i){case"Point":if("Point"===o)return Ht(s,u);throw new Error("feature2 "+o+" geometry not supported");case"MultiPoint":switch(o){case"Point":return function(t,e){var n,r=!1;for(n=0;n2&&void 0!==arguments[2]?arguments[2]:{}).precision;if("number"!=typeof(n=null==n||isNaN(n)?6:n)||!(n>=0))throw new Error("precision must be a positive number");return rt(t).type===rt(e).type&&Ne(Le(t),Le(e),{precision:n})},t.booleanIntersects=Oe,t.booleanOverlap=function(t,e){var n=rt(t),r=rt(e),i=n.type,o=r.type;if("MultiPoint"===i&&"MultiPoint"!==o||("LineString"===i||"MultiLineString"===i)&&"LineString"!==o&&"MultiLineString"!==o||("Polygon"===i||"MultiPolygon"===i)&&"Polygon"!==o&&"MultiPolygon"!==o)throw new Error("features must be of the same type");if("Point"===i)throw new Error("Point geometry not supported");if(Ne(t,e,{precision:6}))return!1;var s=0;switch(i){case"MultiPoint":for(var a=0;a0},t.booleanParallel=function(t,e){if(!t)throw new Error("line1 is required");if(!e)throw new Error("line2 is required");if("LineString"!==In(t,"line1"))throw new Error("line1 must be a LineString");if("LineString"!==In(e,"line2"))throw new Error("line2 must be a LineString");for(var n=$e(Le(t)).features,r=$e(Le(e)).features,i=0;i1;case"MultiPoint":for(var i=0;i0&&ue(S([r[0]]),S([r[i]])).features.length>1)return!1}return!0;case"MultiPolygon":for(i=0;i0&&ue(S([o[0]]),S([o[s]])).features.length>1)return!1}return!0;default:return!1}},t.booleanWithin=Cn,t.buffer=function(t,e,n){var r=(n=n||{}).units||"kilometers",i=n.steps||8;if(!t)throw new Error("geojson is required");if("object"!==m(n))throw new Error("options must be an object");if("number"!=typeof i)throw new Error("steps must be an number");if(void 0===e)throw new Error("radius is required");if(i<=0)throw new Error("steps must be greater than 0");var o=[];switch(t.type){case"GeometryCollection":return mt(t,(function(t){var n=ui(t,e,r,i);n&&o.push(n)})),C(o);case"FeatureCollection":return vt(t,(function(t){var n=ui(t,e,r,i);n&&vt(n,(function(t){t&&o.push(t)}))})),C(o)}return ui(t,e,r,i)},t.center=An,t.centerMean=fi,t.centerMedian=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Z(e=e||{}))throw new Error("options is invalid");var n=e.counter||10;if(!U(n))throw new Error("counter must be a number");var r=e.weight,i=fi(t,{weight:e.weight}),o=C([]);vt(t,(function(t){var e;o.features.push(gi(t,{properties:{weight:null==(e=t.properties)?void 0:e[r]}}))}));var s={tolerance:e.tolerance,medianCandidates:[]};return pi(i.geometry.coordinates,[0,0],o,s,n)},t.centerOfMass=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(it(e)){case"Point":return I(K(e),n.properties);case"Polygon":var r=[];ct(e,(function(t){r.push(t)}));var i,o,s,a,u,l,h,c,f=gi(e,{properties:n.properties}),g=f.geometry.coordinates,p=0,v=0,d=0,y=r.map((function(t){return[t[0]-g[0],t[1]-g[1]]}));for(i=0;i2&&void 0!==arguments[2]?arguments[2]:{};!0!==n.mutate&&(t=Ai(t));var r=n.minPoints||3,i=V(e,n.units),o=new to(t.features.length),s=t.features.map((function(t){return!1})),a=t.features.map((function(t){return!1})),u=t.features.map((function(t){return!1})),l=t.features.map((function(t){return-1}));o.load(t.features.map((function(t,e){var n=v(t.geometry.coordinates,2),r=n[0],i=n[1];return{minX:r,minY:i,maxX:r,maxY:i,index:e}})));var h=function(n){var r=t.features[n],s=v(r.geometry.coordinates,2),a=s[0],u=s[1],l=Math.max(u-i,-90),h=Math.min(u+i,90),c=l<0&&h>0?i:Math.abs(l)=r){var i=c;c++,s[e]=!0,function(t,e){for(var n=0;n=r&&e.push.apply(e,d(o))}a[i]||(a[i]=!0,l[i]=t)}}(i,n)}else u[e]=!0}})),t.features.forEach((function(e,n){var r=t.features[n];r.properties||(r.properties={}),l[n]>=0?(r.properties.dbscan=u[n]?"edge":"core",r.properties.cluster=l[n]):r.properties.dbscan="noise"})),t},t.clustersKmeans=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.features.length;e.numberOfClusters=e.numberOfClusters||Math.round(Math.sqrt(n/2)),e.numberOfClusters>n&&(e.numberOfClusters=n),!0!==e.mutate&&(t=Ai(t));var r=yt(t),i=r.slice(0,e.numberOfClusters),o=ro(r,e.numberOfClusters,i),s={};return o.centroids.forEach((function(t,e){s[e]=t})),vt(t,(function(t,e){var n=o.idxs[e];t.properties.cluster=n,t.properties.centroid=s[n]})),t},t.collect=function(t,e,n,r){var i=new io(6),o=e.features.map((function(t){var e;return{minX:t.geometry.coordinates[0],minY:t.geometry.coordinates[1],maxX:t.geometry.coordinates[0],maxY:t.geometry.coordinates[1],property:null==(e=t.properties)?void 0:e[n]}}));return i.load(o),t.features.forEach((function(t){t.properties||(t.properties={});var e=Rt(t),n=i.search({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}),o=[];n.forEach((function(e){zt([e.minX,e.minY],t)&&o.push(e.property)})),t.properties[r]=o})),t},t.collectionOf=nt,t.combine=function(t){var e={MultiPoint:{coordinates:[],properties:[]},MultiLineString:{coordinates:[],properties:[]},MultiPolygon:{coordinates:[],properties:[]}};return vt(t,(function(t){var n,r,i,o;switch(null==(o=t.geometry)?void 0:o.type){case"Point":e.MultiPoint.coordinates.push(t.geometry.coordinates),e.MultiPoint.properties.push(t.properties);break;case"MultiPoint":(n=e.MultiPoint.coordinates).push.apply(n,d(t.geometry.coordinates)),e.MultiPoint.properties.push(t.properties);break;case"LineString":e.MultiLineString.coordinates.push(t.geometry.coordinates),e.MultiLineString.properties.push(t.properties);break;case"MultiLineString":(r=e.MultiLineString.coordinates).push.apply(r,d(t.geometry.coordinates)),e.MultiLineString.properties.push(t.properties);break;case"Polygon":e.MultiPolygon.coordinates.push(t.geometry.coordinates),e.MultiPolygon.properties.push(t.properties);break;case"MultiPolygon":(i=e.MultiPolygon.coordinates).push.apply(i,d(t.geometry.coordinates)),e.MultiPolygon.properties.push(t.properties)}})),C(Object.keys(e).filter((function(t){return e[t].coordinates.length})).sort().map((function(t){return b({type:t,coordinates:e[t].coordinates},{collectedProperties:e[t].properties})})))},t.concave=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.maxEdge||1/0,r=function(t){var e=[],n={};return vt(t,(function(t){if(t.geometry){var r=t.geometry.coordinates.join("-");Object.prototype.hasOwnProperty.call(n,r)||(e.push(t),n[r]=!0)}})),C(e)}(t),i=oo(r);if(i.features=i.features.filter((function(t){var r=t.geometry.coordinates[0][0],i=t.geometry.coordinates[0][1],o=t.geometry.coordinates[0][2],s=ut(r,i,e),a=ut(i,o,e),u=ut(r,o,e);return s<=n&&a<=n&&u<=n})),i.features.length<1)return null;var o=Ro(i);return 1===o.coordinates.length&&(o.coordinates=o.coordinates[0],o.type="Polygon"),b(o)},t.containsNumber=$,t.convertArea=X,t.convertLength=j,t.convex=Oi,t.coordAll=yt,t.coordEach=ct,t.coordReduce=ft,t.createBins=zi,t.degreesToRadians=z,t.destination=at,t.difference=function(t){var e=[];if(mt(t,(function(t){e.push(t.coordinates)})),e.length<2)throw new Error("Must have at least two features");var n=t.features[0].properties||{},r=As.apply(Fs,[e[0]].concat(d(e.slice(1))));return 0===r.length?null:1===r.length?S(r[0],n):R(r,n)},t.dissolve=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Z(e=e||{}))throw new Error("options is invalid");var n=e.propertyName;nt(t,"Polygon","dissolve");var r=[];if(!n)return qs(R(Os.apply(null,t.features.map((function(t){return t.geometry.coordinates})))));var i={};vt(t,(function(t){t.properties&&(Object.prototype.hasOwnProperty.call(i,t.properties[n])||(i[t.properties[n]]=[]),i[t.properties[n]].push(t))}));for(var o=Object.keys(i),s=0;s1&&void 0!==arguments[1]?arguments[1]:{},o=i.properties,s=null==(e=i.autoComplete)||e,a=null==(n=i.orderCoords)||n;if(null!=(r=i.mutate)&&r||(t=Ai(t)),"FeatureCollection"===t.type){var u=[];return t.features.forEach((function(t){u.push(Q(ru(t,{},s,a)))})),R(u,o)}return ru(t,o,s,a)},t.mask=function(t,e,n){var r,i=null!=(r=null==n?void 0:n.mutate)&&r,o=e;e&&!1===i&&(o=Ai(e));var s,a=su(o);return("FeatureCollection"===t.type?ou(2===(s=t).features.length?Os(s.features[0].geometry.coordinates,s.features[1].geometry.coordinates):Os.apply(Fs,s.features.map((function(t){return t.geometry.coordinates})))):"Feature"===t.type?ou(Os(t.geometry.coordinates)):ou(Os(t.coordinates))).geometry.coordinates.forEach((function(t){a.geometry.coordinates.push(t[0])})),a},t.meta=Mt,t.midpoint=function(t,e){return at(t,ut(t,e)/2,st(t,e))},t.moranIndex=function(t,e){var n,r,i=e.inputField,o=e.threshold||1e5,s=e.p||2,u=null!=(n=e.binary)&&n,l=Gs(t,{alpha:e.alpha||-1,binary:u,p:s,standardization:null==(r=e.standardization)||r,threshold:o}),h=[];vt(t,(function(t){var e=t.properties||{};h.push(e[i])}));for(var c=au(h),f=function(t){var e,n=au(t),r=0,i=a(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;r+=Math.pow(o-n,2)}}catch(t){i.e(t)}finally{i.f()}return r/t.length}(h),g=0,p=0,v=0,d=0,y=l.length,m=0;m2&&void 0!==arguments[2]?arguments[2]:{},r=n.units,i=n.properties||{},o=function(t){var e=[];switch(t.geometry?t.geometry.type:t.type){case"GeometryCollection":return mt(t,(function(t){"Point"===t.type&&e.push({type:"Feature",properties:{},geometry:t})})),{type:"FeatureCollection",features:e};case"FeatureCollection":return t.features=t.features.filter((function(t){return"Point"===t.geometry.type})),t;default:throw new Error("points must be a Point Collection")}}(t);if(!o.features.length)throw new Error("points must contain features");if(!e)throw new Error("line is required");if("LineString"!==it(e))throw new Error("line must be a LineString");var s=1/0,a=null;return vt(o,(function(t){var n=mu(t,e,{units:r});n2&&void 0!==arguments[2]?arguments[2]:{},a=null!=(i=s.method)?i:"geodesic",u=null!=(o=s.units)?o:"kilometers";if(!e)throw new Error("point is required");if(!r)throw new Error("polygon or multi-polygon is required");var l,h=rt(r);if("MultiPolygon"===h.type){var c=h.coordinates.map((function(n){return t(e,S(n),{method:a,units:u})}));return Math.min.apply(Math,d(c.map(Math.abs)))*(zt(e,r)?-1:1)}if(h.coordinates.length>1){var p=h.coordinates.map((function(n){return t(e,S([n]),{method:a,units:u})})),v=n(l=p)||f(l)||_(l)||g(),y=v[0],m=v.slice(1);if(y>=0)return y;var x=Math.min.apply(Math,d(m));return x<0?Math.abs(x):Math.min(x,Math.abs(y))}var E=le(h),k=1/0;return xt(E,(function(t){k=Math.min(k,mu(e,t,{method:a,units:u}))})),zt(e,h)?-k:k},t.points=N,t.pointsWithinPolygon=Su,t.polygon=S,t.polygonSmooth=function(t,e){(e=e||{}).iterations=e.iterations||1;var n=e.iterations,r=[];if(!t)throw new Error("inputPolys is required");return mt(t,(function(t,e,i){if("Polygon"===t.type){for(var o=[[]],s=0;s0&&(u=S(o).geometry),Ru(u,a),o=a.slice(0)}r.push(S(o,i))}else{if("MultiPolygon"!==t.type)throw new Error("geometry is invalid, must be Polygon or MultiPolygon");for(var l=[[[]]],h=0;h0&&(f=R(l).geometry),Au(f,c),l=c.slice(0)}r.push(R(l,i))}})),C(r)},t.polygonTangents=function(t,e){var n,r=Q(t),i=Q(e),o=[],s=[],a=Rt(e),u=0,l=null;switch(r[0]>a[0]&&r[0]a[1]&&r[1]_&&(_=k)}for(var b=[],w=Object.keys(l).length,I=f/w,N=0,S=0;S<_+1;S++)N+=Math.exp(-I)*Math.pow(I,S)/Zu(S),b.push(N);for(var M=[],L=0,P=0;P<_+1;P++){for(var C=0,T=Object.keys(l);CR&&(R=D)}var F=Xu[r]/Math.sqrt(w),q={criticalValue:F,isRandom:!0,maxAbsoluteDifference:R,observedDistribution:M};return R>F&&(q.isRandom=!1),q},t.radiansToDegrees=Y,t.radiansToLength=F,t.random=nl,t.randomLineString=$u,t.randomPoint=Ku,t.randomPolygon=Qu,t.randomPosition=Hu,t.rectangleGrid=oa,t.rewind=function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Z(r=r||{}))throw new Error("options is invalid");var i=null!=(e=r.mutate)&&e,o=null!=(n=r.reverse)&&n;if(!t)throw new Error(" is required");if("boolean"!=typeof o)throw new Error(" must be a boolean");if("boolean"!=typeof i)throw new Error(" must be a boolean");i||"Point"===t.type||"MultiPoint"===t.type||(t=Ai(t));var s=[];switch(t.type){case"GeometryCollection":return mt(t,(function(t){rl(t,o)})),t;case"FeatureCollection":return vt(t,(function(t){vt(rl(t,o),(function(t){s.push(t)}))})),C(s)}return rl(t,o)},t.rhumbBearing=lt,t.rhumbDestination=Bs,t.rhumbDistance=Ys,t.round=D,t.sample=function(t,e){if(!t)throw new Error("fc is required");if(null==e)throw new Error("num is required");if("number"!=typeof e)throw new Error("num must be a number");var n=C(function(t,e){var n,r,i=t.slice(0),o=t.length,s=o-e;for(;o-- >s;)n=i[r=Math.floor((o+1)*Math.random())],i[r]=i[o],i[o]=n;return i.slice(s)}(t.features,e));return n},t.sector=function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!Z(i=i||{}))throw new Error("options is invalid");var o=i.properties;if(!t)throw new Error("center is required");if(null==n)throw new Error("bearing1 is required");if(null==r)throw new Error("bearing2 is required");if(!e)throw new Error("radius is required");if("object"!==m(i))throw new Error("options must be an object");if(sl(n)===sl(r))return Ri(t,e,i);var s=Q(t),a=ja(t,e,n,r,i),u=[[s]];return ct(a,(function(t){u[0].push(t)})),u[0].push(s),S(u,o)},t.segmentEach=kt,t.segmentReduce=bt,t.shortestPath=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Z(n=n||{}))throw new Error("options is invalid");var r=n.obstacles||C([]),i=n.resolution||100;if(!t)throw new Error("start is required");if(!e)throw new Error("end is required");if(i&&(!U(i)||i<=0))throw new Error("options.resolution must be a number, greater than 0");var o=K(t),s=K(e);if(t=I(o),e=I(s),"FeatureCollection"===r.type){if(0===r.features.length)return L([o,s])}else{if("Polygon"!==r.type)throw new Error("invalid obstacles");r=C([b(rt(r))])}var a=r;a.features.push(t),a.features.push(e);var u=v(Rt(al(Vt(Rt(a)),1.15)),4),l=u[0],h=u[1],c=u[2],f=u[3],g=ut([l,h],[c,h],n)/i;a.features.pop(),a.features.pop();for(var p,d,y=g/ut([l,h],[c,h],n)*(c-l),m=g/ut([l,h],[l,f],n)*(f-h),_=c-l,x=f-h,E=Math.floor(_/y),k=Math.floor(x/m),w=(_-E*y)/2,N=[],S=[],M=1/0,P=1/0,T=f-(x-k*m)/2,O=0;T>=h;){for(var R=[],A=[],D=l+w,F=0;D<=c;){var q=I([D,T]),V=pl(q,r);R.push(V?0:1),A.push(D+"|"+T);var G=ut(q,t);!V&&G1&&void 0!==arguments[1]?arguments[1]:{};if(!Z(i=null!=i?i:{}))throw new Error("options is invalid");var o=null!=(e=i.tolerance)?e:1,s=null!=(n=i.highQuality)&&n,a=null!=(r=i.mutate)&&r;if(!t)throw new Error("geojson is required");if(o&&o<0)throw new Error("invalid tolerance");return!0!==a&&(t=Ai(t)),mt(t,(function(t){!function(t,e,n){var r=t.type;if("Point"===r||"MultiPoint"===r)return t;if(Le(t,{mutate:!0}),"GeometryCollection"!==r)switch(r){case"LineString":t.coordinates=ml(t.coordinates,e,n);break;case"MultiLineString":t.coordinates=t.coordinates.map((function(t){return ml(t,e,n)}));break;case"Polygon":t.coordinates=_l(t.coordinates,e,n);break;case"MultiPolygon":t.coordinates=t.coordinates.map((function(t){return _l(t,e,n)}))}}(t,o,s)})),t},t.square=Ka,t.squareGrid=sa,t.standardDeviationalEllipse=function(t,e){var n;if(!Z(e=e||{}))throw new Error("options is invalid");var r=e.steps||64,i=e.weight,o=e.properties||{};if(!U(r))throw new Error("steps must be a number");if(!Z(o))throw new Error("properties must be a number");var s=yt(t).length,a=fi(t,{weight:i}),u=0,l=0,h=0;vt(t,(function(t){var e,n=i&&(null==(e=t.properties)?void 0:e[i])||1,r=El(Q(t),Q(a));u+=Math.pow(r.x,2)*n,l+=Math.pow(r.y,2)*n,h+=r.x*r.y*n}));var c=u-l,f=Math.sqrt(Math.pow(c,2)+4*Math.pow(h,2)),g=2*h,p=Math.atan((c+f)/g),v=180*p/Math.PI,d=0,y=0,m=0;vt(t,(function(t){var e,n=i&&(null==(e=t.properties)?void 0:e[i])||1,r=El(Q(t),Q(a));d+=Math.pow(r.x*Math.cos(p)-r.y*Math.sin(p),2)*n,y+=Math.pow(r.x*Math.sin(p)+r.y*Math.cos(p),2)*n,m+=n}));var _=Math.sqrt(2*d/m),x=Math.sqrt(2*y/m),E=js(a,_,x,{units:"degrees",angle:v,steps:r,properties:o}),k=Su(t,C([E])),b={meanCenterCoordinates:Q(a),semiMajorAxis:_,semiMinorAxis:x,numberOfFeatures:s,angle:v,percentageWithinEllipse:100*yt(k).length/s};return E.properties=null!=(n=E.properties)?n:{},E.properties.standardDeviationalEllipse=b,E},t.tag=function(t,e,n,r){return t=Ai(t),e=Ai(e),vt(t,(function(t){t.properties||(t.properties={}),vt(e,(function(e){t.properties&&e.properties&&void 0===t.properties[r]&&zt(t,e)&&(t.properties[r]=e.properties[n])}))})),t},t.tesselate=function(t){if(!t.geometry||"Polygon"!==t.geometry.type&&"MultiPolygon"!==t.geometry.type)throw new Error("input must be a Polygon or MultiPolygon");var e={type:"FeatureCollection",features:[]};return"Polygon"===t.geometry.type?e.features=Nl(t.geometry.coordinates):t.geometry.coordinates.forEach((function(t){e.features=e.features.concat(Nl(t))})),e},t.tin=oo,t.toMercator=Vu,t.toWgs84=Gu,t.transformRotate=zs,t.transformScale=al,t.transformTranslate=function(t,e,n,r){if(!Z(r=r||{}))throw new Error("options is invalid");var i=r.units,o=r.zTranslation,s=r.mutate;if(!t)throw new Error("geojson is required");if(null==e||isNaN(e))throw new Error("distance is required");if(o&&"number"!=typeof o&&isNaN(o))throw new Error("zTranslation is not a number");if(o=void 0!==o?o:0,0===e&&0===o)return t;if(null==n||isNaN(n))throw new Error("direction is required");return e<0&&(e=-e,n+=180),!1!==s&&void 0!==s||(t=Ai(t)),ct(t,(function(t){var r=Q(Bs(t,e,n,{units:i}));t[0]=r[0],t[1]=r[1],o&&3===t.length&&(t[2]+=o)})),t},t.triangleGrid=aa,t.truncate=Qa,t.union=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];if(mt(t,(function(t){n.push(t.coordinates)})),n.length<2)throw new Error("Must have at least 2 geometries");var r=Os.apply(Fs,[n[0]].concat(d(n.slice(1))));return 0===r.length?null:1===r.length?S(r[0],e.properties):R(r,e.properties)},t.unkinkPolygon=function(t){var e=[];return xt(t,(function(t){"Polygon"===t.geometry.type&&vt(Ll(t),(function(n){e.push(S(n.geometry.coordinates,t.properties))}))})),C(e)},t.validateBBox=H,t.validateId=W,t.voronoi=function(t,e){if(!Z(e=e||{}))throw new Error("options is invalid");var n=e.bbox||[-180,-85,180,85];if(!t)throw new Error("points is required");if(!Array.isArray(n))throw new Error("bbox is invalid");return nt(t,"Point","points"),C(function(){var t=Fl,e=ql,n=null;function r(r){return new mh(r.map((function(n,i){var o=[Math.round(t(n,i,r)/vh)*vh,Math.round(e(n,i,r)/vh)*vh];return o.index=i,o.data=n,o})),n)}return r.polygons=function(t){return r(t).polygons()},r.links=function(t){return r(t).links()},r.triangles=function(t){return r(t).triangles()},r.x=function(e){return arguments.length?(t="function"==typeof e?e:Dl(+e),r):t},r.y=function(t){return arguments.length?(e="function"==typeof t?t:Dl(+t),r):e},r.extent=function(t){return arguments.length?(n=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(t){return arguments.length?(n=null==t?null:[[0,0],[+t[0],+t[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r}().x((function(t){return t.geometry.coordinates[0]})).y((function(t){return t.geometry.coordinates[1]})).extent([[n[0],n[1]],[n[2],n[3]]]).polygons(t.features).map((function(e,n){return Object.assign(function(t){return(t=t.slice()).push(t[0]),S([t])}(e),{properties:Fi(t.features[n].properties)})})))}})); /***/ }), /***/ "./node_modules/address/lib/address.js": /*!*********************************************!*\ !*** ./node_modules/address/lib/address.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var os = __webpack_require__(/*! os */ "./node_modules/os-browserify/browser.js"); var fs = __webpack_require__(/*! fs */ "./node_modules/node-libs-browser/mock/empty.js"); var child = __webpack_require__(/*! child_process */ "./node_modules/node-libs-browser/mock/empty.js"); var DEFAULT_RESOLV_FILE = '/etc/resolv.conf'; function getInterfaceName() { var val = 'eth'; var platform = os.platform(); if (platform === 'darwin') { val = 'en'; } else if (platform === 'win32') { val = null; } return val; } function getIfconfigCMD() { if (os.platform() === 'win32') { return 'ipconfig/all'; } return '/sbin/ifconfig'; } // typeof os.networkInterfaces family is a number (v18.0.0) // types: 'IPv4' | 'IPv6' => 4 | 6 // @see https://github.com/nodejs/node/issues/42861 function matchName(actualFamily, expectedFamily) { if (expectedFamily === 'IPv4') { return actualFamily === 'IPv4' || actualFamily === 4; } if (expectedFamily === 'IPv6') { return actualFamily === 'IPv6' || actualFamily === 6; } return actualFamily === expectedFamily; } /** * Get all addresses. * * @param {String} [interfaceName] interface name, default is 'eth' on linux, 'en' on mac os. * @param {Function(err, addr)} callback * - {Object} addr { * - {String} ip * - {String} ipv6 * - {String} mac * } */ function address(interfaceName, callback) { if (typeof interfaceName === 'function') { callback = interfaceName; interfaceName = null; } var addr = { ip: address.ip(interfaceName), ipv6: address.ipv6(interfaceName), mac: null }; address.mac(interfaceName, function (err, mac) { if (mac) { addr.mac = mac; } callback(err, addr); }); } address.interface = function (family, name) { var interfaces = os.networkInterfaces(); var noName = !name; name = name || getInterfaceName(); family = family || 'IPv4'; for (var i = -1; i < 8; i++) { var interfaceName = name + (i >= 0 ? i : ''); // support 'lo' and 'lo0' var items = interfaces[interfaceName]; if (items) { for (var j = 0; j < items.length; j++) { var item = items[j]; if (matchName(item.family, family)) { return item; } } } } if (noName) { // filter all loopback or local addresses for (var k in interfaces) { var items = interfaces[k]; for (var i = 0; i < items.length; i++) { var item = items[i]; // all 127 addresses are local and should be ignored if (matchName(item.family, family) && !item.address.startsWith('127.')) { return item; } } } } return; }; /** * Get current machine IPv4 * * @param {String} [interfaceName] interface name, default is 'eth' on linux, 'en' on mac os. * @return {String} IP address */ address.ip = function (interfaceName) { var item = address.interface('IPv4', interfaceName); return item && item.address; }; /** * Get current machine IPv6 * * @param {String} [interfaceName] interface name, default is 'eth' on linux, 'en' on mac os. * @return {String} IP address */ address.ipv6 = function (interfaceName) { var item = address.interface('IPv6', interfaceName); return item && item.address; }; // osx start line 'en0: flags=8863 mtu 1500' // linux start line 'eth0 Link encap:Ethernet HWaddr 00:16:3E:00:0A:29 ' var MAC_OSX_START_LINE = /^(\w+)\:\s+flags=/; var MAC_LINUX_START_LINE = /^(\w+)\s{2,}link encap:\w+/i; // ether 78:ca:39:b0:e6:7d // HWaddr 00:16:3E:00:0A:29 var MAC_RE = address.MAC_RE = /(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i; // osx: inet 192.168.2.104 netmask 0xffffff00 broadcast 192.168.2.255 // linux: inet addr:10.125.5.202 Bcast:10.125.15.255 Mask:255.255.240.0 var MAC_IP_RE = address.MAC_IP_RE = /inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/; function getMAC(content, interfaceName, matchIP) { var lines = content.split('\n'); for (var i = 0; i < lines.length; i++) { var line = lines[i].trimRight(); var m = MAC_OSX_START_LINE.exec(line) || MAC_LINUX_START_LINE.exec(line); if (!m) { continue; } // check interface name var name = m[1]; if (name.indexOf(interfaceName) !== 0) { continue; } var ip = null; var mac = null; var match = MAC_RE.exec(line); if (match) { mac = match[1]; } i++; while (true) { line = lines[i]; if (!line || MAC_OSX_START_LINE.exec(line) || MAC_LINUX_START_LINE.exec(line)) { i--; break; // hit next interface, handle next interface } if (!mac) { match = MAC_RE.exec(line); if (match) { mac = match[1]; } } if (!ip) { match = MAC_IP_RE.exec(line); if (match) { ip = match[1]; } } i++; } if (ip === matchIP) { return mac; } } } /** * Get current machine MAC address * * @param {String} [interfaceName] interface name, default is 'eth' on linux, 'en' on mac os. * @param {Function(err, address)} callback */ address.mac = function (interfaceName, callback) { if (typeof interfaceName === 'function') { callback = interfaceName; interfaceName = null; } interfaceName = interfaceName || getInterfaceName(); var item = address.interface('IPv4', interfaceName); if (!item) { return callback(); } // https://github.com/nodejs/node/issues/13581 // bug in node 7.x and <= 8.4.0 if (!Object({"NODE_ENV":"staging","VUE_APP_ENV":"staging","VUE_APP_API_ROOT":"/dispatch","VUE_APP_API_WS":"wss://v5qy.te.baibaodun.com.cn/dispatch","VUE_APP_BCX_API_URL":"https://identify.test.bcxin.com.cn","VUE_APP_SDK_IM_ID":"1400522511","VUE_APP_SDK_TRTC_ID":"1400522511","VUE_APP_SECRETE_KEY":"5d0e73298984029fab13f00137a666b924a8d51d88287cbc4a1b78b7c3e98210","VUE_APP_IM_AUDIO_API":"/IMAudio","VUE_APP_PTT_SERVER":"wss://ssl.baibaodun.cn:9007","VUE_APP_GWSD_WS_SERVER":"wss://ssl.baibaodun.cn:8989","VUE_APP_GWSD_CMD_SERVER":"wss://ssl.baibaodun.cn:8084","VUE_APP_GWSD_API_ROOT":"/pttApi","VUE_APP_PTT_ADMIN_NAME":"ttadmin3","VUE_APP_UPLOAD_FILE_API":"https://v5qy.te.baibaodun.com.cn/v3/shared/common/resources","VUE_APP_MAP_TYPE":"tianditu","VUE_APP_API":"https://v5qy.te.baibaodun.com.cn","VUE_APP_ENABLE_SCREEN":"true","VUE_APP_DISPALY_RISK_CIRCLE":"true","VUE_APP_SYSTEM_REGION":"1405","BASE_URL":"","PACKAGE_VERSION":"1.0.0-202566151.20250606150112"}).CI && (item.mac === 'ff:00:00:00:00:00' || item.mac === '00:00:00:00:00:00')) { // wrong address, ignore it item.mac = ''; } if (item.mac) { return callback(null, item.mac); } child.exec(getIfconfigCMD(), {timeout: 5000}, function (err, stdout, stderr) { if (err || !stdout) { return callback(err); } var mac = getMAC(stdout || '', interfaceName, item.address); callback(null, mac); }); }; // nameserver 172.24.102.254 var DNS_SERVER_RE = /^nameserver\s+(\d+\.\d+\.\d+\.\d+)$/i; /** * Get DNS servers. * * @param {String} [filepath] resolv config file path. default is '/etc/resolv.conf'. * @param {Function(err, servers)} callback */ address.dns = function (filepath, callback) { if (typeof filepath === 'function') { callback = filepath; filepath = null; } filepath = filepath || DEFAULT_RESOLV_FILE; fs.readFile(filepath, 'utf8', function (err, content) { if (err) { return callback(err); } var servers = []; content = content || ''; var lines = content.split('\n'); for (var i = 0; i < lines.length; i++) { var line = lines[i].trim(); var m = DNS_SERVER_RE.exec(line); if (m) { servers.push(m[1]); } } callback(null, servers); }); }; module.exports = address; /***/ }), /***/ "./node_modules/bl/BufferList.js": /*!***************************************!*\ !*** ./node_modules/bl/BufferList.js ***! \***************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const { Buffer } = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js") const symbol = Symbol.for('BufferList') function BufferList (buf) { if (!(this instanceof BufferList)) { return new BufferList(buf) } BufferList._init.call(this, buf) } BufferList._init = function _init (buf) { Object.defineProperty(this, symbol, { value: true }) this._bufs = [] this.length = 0 if (buf) { this.append(buf) } } BufferList.prototype._new = function _new (buf) { return new BufferList(buf) } BufferList.prototype._offset = function _offset (offset) { if (offset === 0) { return [0, 0] } let tot = 0 for (let i = 0; i < this._bufs.length; i++) { const _t = tot + this._bufs[i].length if (offset < _t || i === this._bufs.length - 1) { return [i, offset - tot] } tot = _t } } BufferList.prototype._reverseOffset = function (blOffset) { const bufferId = blOffset[0] let offset = blOffset[1] for (let i = 0; i < bufferId; i++) { offset += this._bufs[i].length } return offset } BufferList.prototype.get = function get (index) { if (index > this.length || index < 0) { return undefined } const offset = this._offset(index) return this._bufs[offset[0]][offset[1]] } BufferList.prototype.slice = function slice (start, end) { if (typeof start === 'number' && start < 0) { start += this.length } if (typeof end === 'number' && end < 0) { end += this.length } return this.copy(null, 0, start, end) } BufferList.prototype.copy = function copy (dst, dstStart, srcStart, srcEnd) { if (typeof srcStart !== 'number' || srcStart < 0) { srcStart = 0 } if (typeof srcEnd !== 'number' || srcEnd > this.length) { srcEnd = this.length } if (srcStart >= this.length) { return dst || Buffer.alloc(0) } if (srcEnd <= 0) { return dst || Buffer.alloc(0) } const copy = !!dst const off = this._offset(srcStart) const len = srcEnd - srcStart let bytes = len let bufoff = (copy && dstStart) || 0 let start = off[1] // copy/slice everything if (srcStart === 0 && srcEnd === this.length) { if (!copy) { // slice, but full concat if multiple buffers return this._bufs.length === 1 ? this._bufs[0] : Buffer.concat(this._bufs, this.length) } // copy, need to copy individual buffers for (let i = 0; i < this._bufs.length; i++) { this._bufs[i].copy(dst, bufoff) bufoff += this._bufs[i].length } return dst } // easy, cheap case where it's a subset of one of the buffers if (bytes <= this._bufs[off[0]].length - start) { return copy ? this._bufs[off[0]].copy(dst, dstStart, start, start + bytes) : this._bufs[off[0]].slice(start, start + bytes) } if (!copy) { // a slice, we need something to copy in to dst = Buffer.allocUnsafe(len) } for (let i = off[0]; i < this._bufs.length; i++) { const l = this._bufs[i].length - start if (bytes > l) { this._bufs[i].copy(dst, bufoff, start) bufoff += l } else { this._bufs[i].copy(dst, bufoff, start, start + bytes) bufoff += l break } bytes -= l if (start) { start = 0 } } // safeguard so that we don't return uninitialized memory if (dst.length > bufoff) return dst.slice(0, bufoff) return dst } BufferList.prototype.shallowSlice = function shallowSlice (start, end) { start = start || 0 end = typeof end !== 'number' ? this.length : end if (start < 0) { start += this.length } if (end < 0) { end += this.length } if (start === end) { return this._new() } const startOffset = this._offset(start) const endOffset = this._offset(end) const buffers = this._bufs.slice(startOffset[0], endOffset[0] + 1) if (endOffset[1] === 0) { buffers.pop() } else { buffers[buffers.length - 1] = buffers[buffers.length - 1].slice(0, endOffset[1]) } if (startOffset[1] !== 0) { buffers[0] = buffers[0].slice(startOffset[1]) } return this._new(buffers) } BufferList.prototype.toString = function toString (encoding, start, end) { return this.slice(start, end).toString(encoding) } BufferList.prototype.consume = function consume (bytes) { // first, normalize the argument, in accordance with how Buffer does it bytes = Math.trunc(bytes) // do nothing if not a positive number if (Number.isNaN(bytes) || bytes <= 0) return this while (this._bufs.length) { if (bytes >= this._bufs[0].length) { bytes -= this._bufs[0].length this.length -= this._bufs[0].length this._bufs.shift() } else { this._bufs[0] = this._bufs[0].slice(bytes) this.length -= bytes break } } return this } BufferList.prototype.duplicate = function duplicate () { const copy = this._new() for (let i = 0; i < this._bufs.length; i++) { copy.append(this._bufs[i]) } return copy } BufferList.prototype.append = function append (buf) { if (buf == null) { return this } if (buf.buffer) { // append a view of the underlying ArrayBuffer this._appendBuffer(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)) } else if (Array.isArray(buf)) { for (let i = 0; i < buf.length; i++) { this.append(buf[i]) } } else if (this._isBufferList(buf)) { // unwrap argument into individual BufferLists for (let i = 0; i < buf._bufs.length; i++) { this.append(buf._bufs[i]) } } else { // coerce number arguments to strings, since Buffer(number) does // uninitialized memory allocation if (typeof buf === 'number') { buf = buf.toString() } this._appendBuffer(Buffer.from(buf)) } return this } BufferList.prototype._appendBuffer = function appendBuffer (buf) { this._bufs.push(buf) this.length += buf.length } BufferList.prototype.indexOf = function (search, offset, encoding) { if (encoding === undefined && typeof offset === 'string') { encoding = offset offset = undefined } if (typeof search === 'function' || Array.isArray(search)) { throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.') } else if (typeof search === 'number') { search = Buffer.from([search]) } else if (typeof search === 'string') { search = Buffer.from(search, encoding) } else if (this._isBufferList(search)) { search = search.slice() } else if (Array.isArray(search.buffer)) { search = Buffer.from(search.buffer, search.byteOffset, search.byteLength) } else if (!Buffer.isBuffer(search)) { search = Buffer.from(search) } offset = Number(offset || 0) if (isNaN(offset)) { offset = 0 } if (offset < 0) { offset = this.length + offset } if (offset < 0) { offset = 0 } if (search.length === 0) { return offset > this.length ? this.length : offset } const blOffset = this._offset(offset) let blIndex = blOffset[0] // index of which internal buffer we're working on let buffOffset = blOffset[1] // offset of the internal buffer we're working on // scan over each buffer for (; blIndex < this._bufs.length; blIndex++) { const buff = this._bufs[blIndex] while (buffOffset < buff.length) { const availableWindow = buff.length - buffOffset if (availableWindow >= search.length) { const nativeSearchResult = buff.indexOf(search, buffOffset) if (nativeSearchResult !== -1) { return this._reverseOffset([blIndex, nativeSearchResult]) } buffOffset = buff.length - search.length + 1 // end of native search window } else { const revOffset = this._reverseOffset([blIndex, buffOffset]) if (this._match(revOffset, search)) { return revOffset } buffOffset++ } } buffOffset = 0 } return -1 } BufferList.prototype._match = function (offset, search) { if (this.length - offset < search.length) { return false } for (let searchOffset = 0; searchOffset < search.length; searchOffset++) { if (this.get(offset + searchOffset) !== search[searchOffset]) { return false } } return true } ;(function () { const methods = { readDoubleBE: 8, readDoubleLE: 8, readFloatBE: 4, readFloatLE: 4, readInt32BE: 4, readInt32LE: 4, readUInt32BE: 4, readUInt32LE: 4, readInt16BE: 2, readInt16LE: 2, readUInt16BE: 2, readUInt16LE: 2, readInt8: 1, readUInt8: 1, readIntBE: null, readIntLE: null, readUIntBE: null, readUIntLE: null } for (const m in methods) { (function (m) { if (methods[m] === null) { BufferList.prototype[m] = function (offset, byteLength) { return this.slice(offset, offset + byteLength)[m](0, byteLength) } } else { BufferList.prototype[m] = function (offset = 0) { return this.slice(offset, offset + methods[m])[m](0) } } }(m)) } }()) // Used internally by the class and also as an indicator of this object being // a `BufferList`. It's not possible to use `instanceof BufferList` in a browser // environment because there could be multiple different copies of the // BufferList class and some `BufferList`s might be `BufferList`s. BufferList.prototype._isBufferList = function _isBufferList (b) { return b instanceof BufferList || BufferList.isBufferList(b) } BufferList.isBufferList = function isBufferList (b) { return b != null && b[symbol] } module.exports = BufferList /***/ }), /***/ "./node_modules/bl/bl.js": /*!*******************************!*\ !*** ./node_modules/bl/bl.js ***! \*******************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const DuplexStream = __webpack_require__(/*! readable-stream */ "./node_modules/bl/node_modules/readable-stream/readable-browser.js").Duplex const inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js") const BufferList = __webpack_require__(/*! ./BufferList */ "./node_modules/bl/BufferList.js") function BufferListStream (callback) { if (!(this instanceof BufferListStream)) { return new BufferListStream(callback) } if (typeof callback === 'function') { this._callback = callback const piper = function piper (err) { if (this._callback) { this._callback(err) this._callback = null } }.bind(this) this.on('pipe', function onPipe (src) { src.on('error', piper) }) this.on('unpipe', function onUnpipe (src) { src.removeListener('error', piper) }) callback = null } BufferList._init.call(this, callback) DuplexStream.call(this) } inherits(BufferListStream, DuplexStream) Object.assign(BufferListStream.prototype, BufferList.prototype) BufferListStream.prototype._new = function _new (callback) { return new BufferListStream(callback) } BufferListStream.prototype._write = function _write (buf, encoding, callback) { this._appendBuffer(buf) if (typeof callback === 'function') { callback() } } BufferListStream.prototype._read = function _read (size) { if (!this.length) { return this.push(null) } size = Math.min(size, this.length) this.push(this.slice(0, size)) this.consume(size) } BufferListStream.prototype.end = function end (chunk) { DuplexStream.prototype.end.call(this, chunk) if (this._callback) { this._callback(null, this.slice()) this._callback = null } } BufferListStream.prototype._destroy = function _destroy (err, cb) { this._bufs.length = 0 this.length = 0 cb(err) } BufferListStream.prototype._isBufferList = function _isBufferList (b) { return b instanceof BufferListStream || b instanceof BufferList || BufferListStream.isBufferList(b) } BufferListStream.isBufferList = BufferList.isBufferList module.exports = BufferListStream module.exports.BufferListStream = BufferListStream module.exports.BufferList = BufferList /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/errors-browser.js": /*!************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/errors-browser.js ***! \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } var codes = {}; function createErrorType(code, message, Base) { if (!Base) { Base = Error; } function getMessage(arg1, arg2, arg3) { if (typeof message === 'string') { return message; } else { return message(arg1, arg2, arg3); } } var NodeError = /*#__PURE__*/ function (_Base) { _inheritsLoose(NodeError, _Base); function NodeError(arg1, arg2, arg3) { return _Base.call(this, getMessage(arg1, arg2, arg3)) || this; } return NodeError; }(Base); NodeError.prototype.name = Base.name; NodeError.prototype.code = code; codes[code] = NodeError; } // https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js function oneOf(expected, thing) { if (Array.isArray(expected)) { var len = expected.length; expected = expected.map(function (i) { return String(i); }); if (len > 2) { return "one of ".concat(thing, " ").concat(expected.slice(0, len - 1).join(', '), ", or ") + expected[len - 1]; } else if (len === 2) { return "one of ".concat(thing, " ").concat(expected[0], " or ").concat(expected[1]); } else { return "of ".concat(thing, " ").concat(expected[0]); } } else { return "of ".concat(thing, " ").concat(String(expected)); } } // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith function startsWith(str, search, pos) { return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search; } // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith function endsWith(str, search, this_len) { if (this_len === undefined || this_len > str.length) { this_len = str.length; } return str.substring(this_len - search.length, this_len) === search; } // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes function includes(str, search, start) { if (typeof start !== 'number') { start = 0; } if (start + search.length > str.length) { return false; } else { return str.indexOf(search, start) !== -1; } } createErrorType('ERR_INVALID_OPT_VALUE', function (name, value) { return 'The value "' + value + '" is invalid for option "' + name + '"'; }, TypeError); createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) { // determiner: 'must be' or 'must not be' var determiner; if (typeof expected === 'string' && startsWith(expected, 'not ')) { determiner = 'must not be'; expected = expected.replace(/^not /, ''); } else { determiner = 'must be'; } var msg; if (endsWith(name, ' argument')) { // For cases like 'first argument' msg = "The ".concat(name, " ").concat(determiner, " ").concat(oneOf(expected, 'type')); } else { var type = includes(name, '.') ? 'property' : 'argument'; msg = "The \"".concat(name, "\" ").concat(type, " ").concat(determiner, " ").concat(oneOf(expected, 'type')); } msg += ". Received type ".concat(typeof actual); return msg; }, TypeError); createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF'); createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) { return 'The ' + name + ' method is not implemented'; }); createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close'); createErrorType('ERR_STREAM_DESTROYED', function (name) { return 'Cannot call ' + name + ' after a stream was destroyed'; }); createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times'); createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable'); createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end'); createErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError); createErrorType('ERR_UNKNOWN_ENCODING', function (arg) { return 'Unknown encoding: ' + arg; }, TypeError); createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event'); module.exports.codes = codes; /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js": /*!****************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // a duplex stream is just a stream that is both readable and writable. // Since JS doesn't have multiple prototypal inheritance, this class // prototypally inherits from Readable, and then parasitically from // Writable. /**/ var objectKeys = Object.keys || function (obj) { var keys = []; for (var key in obj) keys.push(key); return keys; }; /**/ module.exports = Duplex; var Readable = __webpack_require__(/*! ./_stream_readable */ "./node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js"); var Writable = __webpack_require__(/*! ./_stream_writable */ "./node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js"); __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js")(Duplex, Readable); { // Allow the keys array to be GC'ed. var keys = objectKeys(Writable.prototype); for (var v = 0; v < keys.length; v++) { var method = keys[v]; if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; } } function Duplex(options) { if (!(this instanceof Duplex)) return new Duplex(options); Readable.call(this, options); Writable.call(this, options); this.allowHalfOpen = true; if (options) { if (options.readable === false) this.readable = false; if (options.writable === false) this.writable = false; if (options.allowHalfOpen === false) { this.allowHalfOpen = false; this.once('end', onend); } } } Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._writableState.highWaterMark; } }); Object.defineProperty(Duplex.prototype, 'writableBuffer', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._writableState && this._writableState.getBuffer(); } }); Object.defineProperty(Duplex.prototype, 'writableLength', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._writableState.length; } }); // the no-half-open enforcer function onend() { // If the writable side ended, then we're ok. if (this._writableState.ended) return; // no more data can be written. // But allow more writes to happen in this tick. process.nextTick(onEndNT, this); } function onEndNT(self) { self.end(); } Object.defineProperty(Duplex.prototype, 'destroyed', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { if (this._readableState === undefined || this._writableState === undefined) { return false; } return this._readableState.destroyed && this._writableState.destroyed; }, set: function set(value) { // we ignore the value if the stream // has not been initialized yet if (this._readableState === undefined || this._writableState === undefined) { return; } // backward compatibility, the user is explicitly // managing destroyed this._readableState.destroyed = value; this._writableState.destroyed = value; } }); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js": /*!*********************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // a passthrough stream. // basically just the most minimal sort of Transform stream. // Every written chunk gets output as-is. module.exports = PassThrough; var Transform = __webpack_require__(/*! ./_stream_transform */ "./node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js"); __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js")(PassThrough, Transform); function PassThrough(options) { if (!(this instanceof PassThrough)) return new PassThrough(options); Transform.call(this, options); } PassThrough.prototype._transform = function (chunk, encoding, cb) { cb(null, chunk); }; /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js": /*!******************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. module.exports = Readable; /**/ var Duplex; /**/ Readable.ReadableState = ReadableState; /**/ var EE = __webpack_require__(/*! events */ "./node_modules/events/events.js").EventEmitter; var EElistenerCount = function EElistenerCount(emitter, type) { return emitter.listeners(type).length; }; /**/ /**/ var Stream = __webpack_require__(/*! ./internal/streams/stream */ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream-browser.js"); /**/ var Buffer = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js").Buffer; var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); } function _isUint8Array(obj) { return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; } /**/ var debugUtil = __webpack_require__(/*! util */ 6); var debug; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog('stream'); } else { debug = function debug() {}; } /**/ var BufferList = __webpack_require__(/*! ./internal/streams/buffer_list */ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/buffer_list.js"); var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js"); var _require = __webpack_require__(/*! ./internal/streams/state */ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/state.js"), getHighWaterMark = _require.getHighWaterMark; var _require$codes = __webpack_require__(/*! ../errors */ "./node_modules/bl/node_modules/readable-stream/errors-browser.js").codes, ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF, ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; // Lazy loaded to improve the startup performance. var StringDecoder; var createReadableStreamAsyncIterator; var from; __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js")(Readable, Stream); var errorOrDestroy = destroyImpl.errorOrDestroy; var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume']; function prependListener(emitter, event, fn) { // Sadly this is not cacheable as some libraries bundle their own // event emitter implementation with them. if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any // userland ones. NEVER DO THIS. This is here only because this code needs // to continue to work with older versions of Node.js that do not include // the prependListener() method. The goal is to eventually remove this hack. if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; } function ReadableState(options, stream, isDuplex) { Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "./node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js"); options = options || {}; // Duplex streams are both readable and writable, but share // the same options object. // However, some cases require setting options to different // values for the readable and the writable sides of the duplex stream. // These options can be provided separately as readableXXX and writableXXX. if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to // make all the buffer merging and length checks go away this.objectMode = !!options.objectMode; if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer // Note: 0 is a valid value, means "don't call _read preemptively ever" this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); // A linked list is used to store data chunks instead of an array because the // linked list can remove elements from the beginning faster than // array.shift() this.buffer = new BufferList(); this.length = 0; this.pipes = null; this.pipesCount = 0; this.flowing = null; this.ended = false; this.endEmitted = false; this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted // immediately, or on a later tick. We set this to true at first, because // any actions that shouldn't happen until "later" should generally also // not happen before the first read call. this.sync = true; // whenever we return null, then we set a flag to say // that we're awaiting a 'readable' event emission. this.needReadable = false; this.emittedReadable = false; this.readableListening = false; this.resumeScheduled = false; this.paused = true; // Should close be emitted on destroy. Defaults to true. this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'end' (and potentially 'finish') this.autoDestroy = !!options.autoDestroy; // has it been destroyed this.destroyed = false; // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled this.readingMore = false; this.decoder = null; this.encoding = null; if (options.encoding) { if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ "./node_modules/string_decoder/lib/string_decoder.js").StringDecoder; this.decoder = new StringDecoder(options.encoding); this.encoding = options.encoding; } } function Readable(options) { Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "./node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js"); if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside // the ReadableState constructor, at least with V8 6.5 var isDuplex = this instanceof Duplex; this._readableState = new ReadableState(options, this, isDuplex); // legacy this.readable = true; if (options) { if (typeof options.read === 'function') this._read = options.read; if (typeof options.destroy === 'function') this._destroy = options.destroy; } Stream.call(this); } Object.defineProperty(Readable.prototype, 'destroyed', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { if (this._readableState === undefined) { return false; } return this._readableState.destroyed; }, set: function set(value) { // we ignore the value if the stream // has not been initialized yet if (!this._readableState) { return; } // backward compatibility, the user is explicitly // managing destroyed this._readableState.destroyed = value; } }); Readable.prototype.destroy = destroyImpl.destroy; Readable.prototype._undestroy = destroyImpl.undestroy; Readable.prototype._destroy = function (err, cb) { cb(err); }; // Manually shove something into the read() buffer. // This returns true if the highWaterMark has not been hit yet, // similar to how Writable.write() returns true if you should // write() some more. Readable.prototype.push = function (chunk, encoding) { var state = this._readableState; var skipChunkCheck; if (!state.objectMode) { if (typeof chunk === 'string') { encoding = encoding || state.defaultEncoding; if (encoding !== state.encoding) { chunk = Buffer.from(chunk, encoding); encoding = ''; } skipChunkCheck = true; } } else { skipChunkCheck = true; } return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); }; // Unshift should *always* be something directly out of read() Readable.prototype.unshift = function (chunk) { return readableAddChunk(this, chunk, null, true, false); }; function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { debug('readableAddChunk', chunk); var state = stream._readableState; if (chunk === null) { state.reading = false; onEofChunk(stream, state); } else { var er; if (!skipChunkCheck) er = chunkInvalid(state, chunk); if (er) { errorOrDestroy(stream, er); } else if (state.objectMode || chunk && chunk.length > 0) { if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) { chunk = _uint8ArrayToBuffer(chunk); } if (addToFront) { if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true); } else if (state.ended) { errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF()); } else if (state.destroyed) { return false; } else { state.reading = false; if (state.decoder && !encoding) { chunk = state.decoder.write(chunk); if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state); } else { addChunk(stream, state, chunk, false); } } } else if (!addToFront) { state.reading = false; maybeReadMore(stream, state); } } // We can push more data if we are below the highWaterMark. // Also, if we have no data yet, we can stand some more bytes. // This is to work around cases where hwm=0, such as the repl. return !state.ended && (state.length < state.highWaterMark || state.length === 0); } function addChunk(stream, state, chunk, addToFront) { if (state.flowing && state.length === 0 && !state.sync) { state.awaitDrain = 0; stream.emit('data', chunk); } else { // update the buffer info. state.length += state.objectMode ? 1 : chunk.length; if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); if (state.needReadable) emitReadable(stream); } maybeReadMore(stream, state); } function chunkInvalid(state, chunk) { var er; if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk); } return er; } Readable.prototype.isPaused = function () { return this._readableState.flowing === false; }; // backwards compatibility. Readable.prototype.setEncoding = function (enc) { if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ "./node_modules/string_decoder/lib/string_decoder.js").StringDecoder; var decoder = new StringDecoder(enc); this._readableState.decoder = decoder; // If setEncoding(null), decoder.encoding equals utf8 this._readableState.encoding = this._readableState.decoder.encoding; // Iterate over current buffer to convert already stored Buffers: var p = this._readableState.buffer.head; var content = ''; while (p !== null) { content += decoder.write(p.data); p = p.next; } this._readableState.buffer.clear(); if (content !== '') this._readableState.buffer.push(content); this._readableState.length = content.length; return this; }; // Don't raise the hwm > 1GB var MAX_HWM = 0x40000000; function computeNewHighWaterMark(n) { if (n >= MAX_HWM) { // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE. n = MAX_HWM; } else { // Get the next highest power of 2 to prevent increasing hwm excessively in // tiny amounts n--; n |= n >>> 1; n |= n >>> 2; n |= n >>> 4; n |= n >>> 8; n |= n >>> 16; n++; } return n; } // This function is designed to be inlinable, so please take care when making // changes to the function body. function howMuchToRead(n, state) { if (n <= 0 || state.length === 0 && state.ended) return 0; if (state.objectMode) return 1; if (n !== n) { // Only flow one buffer at a time if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; } // If we're asking for more than the current hwm, then raise the hwm. if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); if (n <= state.length) return n; // Don't have enough if (!state.ended) { state.needReadable = true; return 0; } return state.length; } // you can override either this method, or the async _read(n) below. Readable.prototype.read = function (n) { debug('read', n); n = parseInt(n, 10); var state = this._readableState; var nOrig = n; if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we // already have a bunch of data in the buffer, then just trigger // the 'readable' event and move on. if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) { debug('read: emitReadable', state.length, state.ended); if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); return null; } n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up. if (n === 0 && state.ended) { if (state.length === 0) endReadable(this); return null; } // All the actual chunk generation logic needs to be // *below* the call to _read. The reason is that in certain // synthetic stream cases, such as passthrough streams, _read // may be a completely synchronous operation which may change // the state of the read buffer, providing enough data when // before there was *not* enough. // // So, the steps are: // 1. Figure out what the state of things will be after we do // a read from the buffer. // // 2. If that resulting state will trigger a _read, then call _read. // Note that this may be asynchronous, or synchronous. Yes, it is // deeply ugly to write APIs this way, but that still doesn't mean // that the Readable class should behave improperly, as streams are // designed to be sync/async agnostic. // Take note if the _read call is sync or async (ie, if the read call // has returned yet), so that we know whether or not it's safe to emit // 'readable' etc. // // 3. Actually pull the requested chunks out of the buffer and return. // if we need a readable event, then we need to do some reading. var doRead = state.needReadable; debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some if (state.length === 0 || state.length - n < state.highWaterMark) { doRead = true; debug('length less than watermark', doRead); } // however, if we've ended, then there's no point, and if we're already // reading, then it's unnecessary. if (state.ended || state.reading) { doRead = false; debug('reading or ended', doRead); } else if (doRead) { debug('do read'); state.reading = true; state.sync = true; // if the length is currently zero, then we *need* a readable event. if (state.length === 0) state.needReadable = true; // call internal read method this._read(state.highWaterMark); state.sync = false; // If _read pushed data synchronously, then `reading` will be false, // and we need to re-evaluate how much data we can return to the user. if (!state.reading) n = howMuchToRead(nOrig, state); } var ret; if (n > 0) ret = fromList(n, state);else ret = null; if (ret === null) { state.needReadable = state.length <= state.highWaterMark; n = 0; } else { state.length -= n; state.awaitDrain = 0; } if (state.length === 0) { // If we have nothing in the buffer, then we want to know // as soon as we *do* get something into the buffer. if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick. if (nOrig !== n && state.ended) endReadable(this); } if (ret !== null) this.emit('data', ret); return ret; }; function onEofChunk(stream, state) { debug('onEofChunk'); if (state.ended) return; if (state.decoder) { var chunk = state.decoder.end(); if (chunk && chunk.length) { state.buffer.push(chunk); state.length += state.objectMode ? 1 : chunk.length; } } state.ended = true; if (state.sync) { // if we are sync, wait until next tick to emit the data. // Otherwise we risk emitting data in the flow() // the readable code triggers during a read() call emitReadable(stream); } else { // emit 'readable' now to make sure it gets picked up. state.needReadable = false; if (!state.emittedReadable) { state.emittedReadable = true; emitReadable_(stream); } } } // Don't emit readable right away in sync mode, because this can trigger // another read() call => stack overflow. This way, it might trigger // a nextTick recursion warning, but that's not so bad. function emitReadable(stream) { var state = stream._readableState; debug('emitReadable', state.needReadable, state.emittedReadable); state.needReadable = false; if (!state.emittedReadable) { debug('emitReadable', state.flowing); state.emittedReadable = true; process.nextTick(emitReadable_, stream); } } function emitReadable_(stream) { var state = stream._readableState; debug('emitReadable_', state.destroyed, state.length, state.ended); if (!state.destroyed && (state.length || state.ended)) { stream.emit('readable'); state.emittedReadable = false; } // The stream needs another readable event if // 1. It is not flowing, as the flow mechanism will take // care of it. // 2. It is not ended. // 3. It is below the highWaterMark, so we can schedule // another readable later. state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark; flow(stream); } // at this point, the user has presumably seen the 'readable' event, // and called read() to consume some data. that may have triggered // in turn another _read(n) call, in which case reading = true if // it's in progress. // However, if we're not ended, or reading, and the length < hwm, // then go ahead and try to read some more preemptively. function maybeReadMore(stream, state) { if (!state.readingMore) { state.readingMore = true; process.nextTick(maybeReadMore_, stream, state); } } function maybeReadMore_(stream, state) { // Attempt to read more data if we should. // // The conditions for reading more data are (one of): // - Not enough data buffered (state.length < state.highWaterMark). The loop // is responsible for filling the buffer with enough data if such data // is available. If highWaterMark is 0 and we are not in the flowing mode // we should _not_ attempt to buffer any extra data. We'll get more data // when the stream consumer calls read() instead. // - No data in the buffer, and the stream is in flowing mode. In this mode // the loop below is responsible for ensuring read() is called. Failing to // call read here would abort the flow and there's no other mechanism for // continuing the flow if the stream consumer has just subscribed to the // 'data' event. // // In addition to the above conditions to keep reading data, the following // conditions prevent the data from being read: // - The stream has ended (state.ended). // - There is already a pending 'read' operation (state.reading). This is a // case where the the stream has called the implementation defined _read() // method, but they are processing the call asynchronously and have _not_ // called push() with new data. In this case we skip performing more // read()s. The execution ends in this method again after the _read() ends // up calling push() with more data. while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) { var len = state.length; debug('maybeReadMore read 0'); stream.read(0); if (len === state.length) // didn't get any data, stop spinning. break; } state.readingMore = false; } // abstract method. to be overridden in specific implementation classes. // call cb(er, data) where data is <= n in length. // for virtual (non-string, non-buffer) streams, "length" is somewhat // arbitrary, and perhaps not very meaningful. Readable.prototype._read = function (n) { errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()')); }; Readable.prototype.pipe = function (dest, pipeOpts) { var src = this; var state = this._readableState; switch (state.pipesCount) { case 0: state.pipes = dest; break; case 1: state.pipes = [state.pipes, dest]; break; default: state.pipes.push(dest); break; } state.pipesCount += 1; debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; var endFn = doEnd ? onend : unpipe; if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn); dest.on('unpipe', onunpipe); function onunpipe(readable, unpipeInfo) { debug('onunpipe'); if (readable === src) { if (unpipeInfo && unpipeInfo.hasUnpiped === false) { unpipeInfo.hasUnpiped = true; cleanup(); } } } function onend() { debug('onend'); dest.end(); } // when the dest drains, it reduces the awaitDrain counter // on the source. This would be more elegant with a .once() // handler in flow(), but adding and removing repeatedly is // too slow. var ondrain = pipeOnDrain(src); dest.on('drain', ondrain); var cleanedUp = false; function cleanup() { debug('cleanup'); // cleanup event handlers once the pipe is broken dest.removeListener('close', onclose); dest.removeListener('finish', onfinish); dest.removeListener('drain', ondrain); dest.removeListener('error', onerror); dest.removeListener('unpipe', onunpipe); src.removeListener('end', onend); src.removeListener('end', unpipe); src.removeListener('data', ondata); cleanedUp = true; // if the reader is waiting for a drain event from this // specific writer, then it would cause it to never start // flowing again. // So, if this is awaiting a drain, then we just call it now. // If we don't know, then assume that we are waiting for one. if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); } src.on('data', ondata); function ondata(chunk) { debug('ondata'); var ret = dest.write(chunk); debug('dest.write', ret); if (ret === false) { // If the user unpiped during `dest.write()`, it is possible // to get stuck in a permanently paused state if that write // also returned false. // => Check whether `dest` is still a piping destination. if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { debug('false write response, pause', state.awaitDrain); state.awaitDrain++; } src.pause(); } } // if the dest has an error, then stop piping into it. // however, don't suppress the throwing behavior for this. function onerror(er) { debug('onerror', er); unpipe(); dest.removeListener('error', onerror); if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er); } // Make sure our error handler is attached before userland ones. prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once. function onclose() { dest.removeListener('finish', onfinish); unpipe(); } dest.once('close', onclose); function onfinish() { debug('onfinish'); dest.removeListener('close', onclose); unpipe(); } dest.once('finish', onfinish); function unpipe() { debug('unpipe'); src.unpipe(dest); } // tell the dest that it's being piped to dest.emit('pipe', src); // start the flow if it hasn't been started already. if (!state.flowing) { debug('pipe resume'); src.resume(); } return dest; }; function pipeOnDrain(src) { return function pipeOnDrainFunctionResult() { var state = src._readableState; debug('pipeOnDrain', state.awaitDrain); if (state.awaitDrain) state.awaitDrain--; if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { state.flowing = true; flow(src); } }; } Readable.prototype.unpipe = function (dest) { var state = this._readableState; var unpipeInfo = { hasUnpiped: false }; // if we're not piping anywhere, then do nothing. if (state.pipesCount === 0) return this; // just one destination. most common case. if (state.pipesCount === 1) { // passed in one, but it's not the right one. if (dest && dest !== state.pipes) return this; if (!dest) dest = state.pipes; // got a match. state.pipes = null; state.pipesCount = 0; state.flowing = false; if (dest) dest.emit('unpipe', this, unpipeInfo); return this; } // slow case. multiple pipe destinations. if (!dest) { // remove all. var dests = state.pipes; var len = state.pipesCount; state.pipes = null; state.pipesCount = 0; state.flowing = false; for (var i = 0; i < len; i++) dests[i].emit('unpipe', this, { hasUnpiped: false }); return this; } // try to find the right one. var index = indexOf(state.pipes, dest); if (index === -1) return this; state.pipes.splice(index, 1); state.pipesCount -= 1; if (state.pipesCount === 1) state.pipes = state.pipes[0]; dest.emit('unpipe', this, unpipeInfo); return this; }; // set up data events if they are asked for // Ensure readable listeners eventually get something Readable.prototype.on = function (ev, fn) { var res = Stream.prototype.on.call(this, ev, fn); var state = this._readableState; if (ev === 'data') { // update readableListening so that resume() may be a no-op // a few lines down. This is needed to support once('readable'). state.readableListening = this.listenerCount('readable') > 0; // Try start flowing on next tick if stream isn't explicitly paused if (state.flowing !== false) this.resume(); } else if (ev === 'readable') { if (!state.endEmitted && !state.readableListening) { state.readableListening = state.needReadable = true; state.flowing = false; state.emittedReadable = false; debug('on readable', state.length, state.reading); if (state.length) { emitReadable(this); } else if (!state.reading) { process.nextTick(nReadingNextTick, this); } } } return res; }; Readable.prototype.addListener = Readable.prototype.on; Readable.prototype.removeListener = function (ev, fn) { var res = Stream.prototype.removeListener.call(this, ev, fn); if (ev === 'readable') { // We need to check if there is someone still listening to // readable and reset the state. However this needs to happen // after readable has been emitted but before I/O (nextTick) to // support once('readable', fn) cycles. This means that calling // resume within the same tick will have no // effect. process.nextTick(updateReadableListening, this); } return res; }; Readable.prototype.removeAllListeners = function (ev) { var res = Stream.prototype.removeAllListeners.apply(this, arguments); if (ev === 'readable' || ev === undefined) { // We need to check if there is someone still listening to // readable and reset the state. However this needs to happen // after readable has been emitted but before I/O (nextTick) to // support once('readable', fn) cycles. This means that calling // resume within the same tick will have no // effect. process.nextTick(updateReadableListening, this); } return res; }; function updateReadableListening(self) { var state = self._readableState; state.readableListening = self.listenerCount('readable') > 0; if (state.resumeScheduled && !state.paused) { // flowing needs to be set to true now, otherwise // the upcoming resume will not flow. state.flowing = true; // crude way to check if we should resume } else if (self.listenerCount('data') > 0) { self.resume(); } } function nReadingNextTick(self) { debug('readable nexttick read 0'); self.read(0); } // pause() and resume() are remnants of the legacy readable stream API // If the user uses them, then switch into old mode. Readable.prototype.resume = function () { var state = this._readableState; if (!state.flowing) { debug('resume'); // we flow only if there is no one listening // for readable, but we still have to call // resume() state.flowing = !state.readableListening; resume(this, state); } state.paused = false; return this; }; function resume(stream, state) { if (!state.resumeScheduled) { state.resumeScheduled = true; process.nextTick(resume_, stream, state); } } function resume_(stream, state) { debug('resume', state.reading); if (!state.reading) { stream.read(0); } state.resumeScheduled = false; stream.emit('resume'); flow(stream); if (state.flowing && !state.reading) stream.read(0); } Readable.prototype.pause = function () { debug('call pause flowing=%j', this._readableState.flowing); if (this._readableState.flowing !== false) { debug('pause'); this._readableState.flowing = false; this.emit('pause'); } this._readableState.paused = true; return this; }; function flow(stream) { var state = stream._readableState; debug('flow', state.flowing); while (state.flowing && stream.read() !== null); } // wrap an old-style stream as the async data source. // This is *not* part of the readable stream interface. // It is an ugly unfortunate mess of history. Readable.prototype.wrap = function (stream) { var _this = this; var state = this._readableState; var paused = false; stream.on('end', function () { debug('wrapped end'); if (state.decoder && !state.ended) { var chunk = state.decoder.end(); if (chunk && chunk.length) _this.push(chunk); } _this.push(null); }); stream.on('data', function (chunk) { debug('wrapped data'); if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; var ret = _this.push(chunk); if (!ret) { paused = true; stream.pause(); } }); // proxy all the other methods. // important when wrapping filters and duplexes. for (var i in stream) { if (this[i] === undefined && typeof stream[i] === 'function') { this[i] = function methodWrap(method) { return function methodWrapReturnFunction() { return stream[method].apply(stream, arguments); }; }(i); } } // proxy certain important events. for (var n = 0; n < kProxyEvents.length; n++) { stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); } // when we try to consume some more bytes, simply unpause the // underlying stream. this._read = function (n) { debug('wrapped _read', n); if (paused) { paused = false; stream.resume(); } }; return this; }; if (typeof Symbol === 'function') { Readable.prototype[Symbol.asyncIterator] = function () { if (createReadableStreamAsyncIterator === undefined) { createReadableStreamAsyncIterator = __webpack_require__(/*! ./internal/streams/async_iterator */ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/async_iterator.js"); } return createReadableStreamAsyncIterator(this); }; } Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._readableState.highWaterMark; } }); Object.defineProperty(Readable.prototype, 'readableBuffer', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._readableState && this._readableState.buffer; } }); Object.defineProperty(Readable.prototype, 'readableFlowing', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._readableState.flowing; }, set: function set(state) { if (this._readableState) { this._readableState.flowing = state; } } }); // exposed for testing purposes only. Readable._fromList = fromList; Object.defineProperty(Readable.prototype, 'readableLength', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._readableState.length; } }); // Pluck off n bytes from an array of buffers. // Length is the combined lengths of all the buffers in the list. // This function is designed to be inlinable, so please take care when making // changes to the function body. function fromList(n, state) { // nothing buffered if (state.length === 0) return null; var ret; if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { // read it all, truncate the list if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length); state.buffer.clear(); } else { // read part of list ret = state.buffer.consume(n, state.decoder); } return ret; } function endReadable(stream) { var state = stream._readableState; debug('endReadable', state.endEmitted); if (!state.endEmitted) { state.ended = true; process.nextTick(endReadableNT, state, stream); } } function endReadableNT(state, stream) { debug('endReadableNT', state.endEmitted, state.length); // Check that we didn't get one last unshift. if (!state.endEmitted && state.length === 0) { state.endEmitted = true; stream.readable = false; stream.emit('end'); if (state.autoDestroy) { // In case of duplex streams we need a way to detect // if the writable side is ready for autoDestroy as well var wState = stream._writableState; if (!wState || wState.autoDestroy && wState.finished) { stream.destroy(); } } } } if (typeof Symbol === 'function') { Readable.from = function (iterable, opts) { if (from === undefined) { from = __webpack_require__(/*! ./internal/streams/from */ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/from-browser.js"); } return from(Readable, iterable, opts); }; } function indexOf(xs, x) { for (var i = 0, l = xs.length; i < l; i++) { if (xs[i] === x) return i; } return -1; } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js": /*!*******************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // a transform stream is a readable/writable stream where you do // something with the data. Sometimes it's called a "filter", // but that's not a great name for it, since that implies a thing where // some bits pass through, and others are simply ignored. (That would // be a valid example of a transform, of course.) // // While the output is causally related to the input, it's not a // necessarily symmetric or synchronous transformation. For example, // a zlib stream might take multiple plain-text writes(), and then // emit a single compressed chunk some time in the future. // // Here's how this works: // // The Transform stream has all the aspects of the readable and writable // stream classes. When you write(chunk), that calls _write(chunk,cb) // internally, and returns false if there's a lot of pending writes // buffered up. When you call read(), that calls _read(n) until // there's enough pending readable data buffered up. // // In a transform stream, the written data is placed in a buffer. When // _read(n) is called, it transforms the queued up data, calling the // buffered _write cb's as it consumes chunks. If consuming a single // written chunk would result in multiple output chunks, then the first // outputted bit calls the readcb, and subsequent chunks just go into // the read buffer, and will cause it to emit 'readable' if necessary. // // This way, back-pressure is actually determined by the reading side, // since _read has to be called to start processing a new chunk. However, // a pathological inflate type of transform can cause excessive buffering // here. For example, imagine a stream where every byte of input is // interpreted as an integer from 0-255, and then results in that many // bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in // 1kb of data being output. In this case, you could write a very small // amount of input, and end up with a very large amount of output. In // such a pathological inflating mechanism, there'd be no way to tell // the system to stop doing the transform. A single 4MB write could // cause the system to run out of memory. // // However, even in such a pathological case, only a single written chunk // would be consumed, and then the rest would wait (un-transformed) until // the results of the previous transformed chunk were consumed. module.exports = Transform; var _require$codes = __webpack_require__(/*! ../errors */ "./node_modules/bl/node_modules/readable-stream/errors-browser.js").codes, ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING, ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0; var Duplex = __webpack_require__(/*! ./_stream_duplex */ "./node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js"); __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js")(Transform, Duplex); function afterTransform(er, data) { var ts = this._transformState; ts.transforming = false; var cb = ts.writecb; if (cb === null) { return this.emit('error', new ERR_MULTIPLE_CALLBACK()); } ts.writechunk = null; ts.writecb = null; if (data != null) // single equals check for both `null` and `undefined` this.push(data); cb(er); var rs = this._readableState; rs.reading = false; if (rs.needReadable || rs.length < rs.highWaterMark) { this._read(rs.highWaterMark); } } function Transform(options) { if (!(this instanceof Transform)) return new Transform(options); Duplex.call(this, options); this._transformState = { afterTransform: afterTransform.bind(this), needTransform: false, transforming: false, writecb: null, writechunk: null, writeencoding: null }; // start out asking for a readable event once data is transformed. this._readableState.needReadable = true; // we have implemented the _read method, and done the other things // that Readable wants before the first _read call, so unset the // sync guard flag. this._readableState.sync = false; if (options) { if (typeof options.transform === 'function') this._transform = options.transform; if (typeof options.flush === 'function') this._flush = options.flush; } // When the writable side finishes, then flush out anything remaining. this.on('prefinish', prefinish); } function prefinish() { var _this = this; if (typeof this._flush === 'function' && !this._readableState.destroyed) { this._flush(function (er, data) { done(_this, er, data); }); } else { done(this, null, null); } } Transform.prototype.push = function (chunk, encoding) { this._transformState.needTransform = false; return Duplex.prototype.push.call(this, chunk, encoding); }; // This is the part where you do stuff! // override this function in implementation classes. // 'chunk' is an input chunk. // // Call `push(newChunk)` to pass along transformed output // to the readable side. You may call 'push' zero or more times. // // Call `cb(err)` when you are done with this chunk. If you pass // an error, then that'll put the hurt on the whole operation. If you // never call cb(), then you'll never get another chunk. Transform.prototype._transform = function (chunk, encoding, cb) { cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()')); }; Transform.prototype._write = function (chunk, encoding, cb) { var ts = this._transformState; ts.writecb = cb; ts.writechunk = chunk; ts.writeencoding = encoding; if (!ts.transforming) { var rs = this._readableState; if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); } }; // Doesn't matter what the args are here. // _transform does all the work. // That we got here means that the readable side wants more data. Transform.prototype._read = function (n) { var ts = this._transformState; if (ts.writechunk !== null && !ts.transforming) { ts.transforming = true; this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); } else { // mark that we need a transform, so that any data that comes in // will get processed, now that we've asked for it. ts.needTransform = true; } }; Transform.prototype._destroy = function (err, cb) { Duplex.prototype._destroy.call(this, err, function (err2) { cb(err2); }); }; function done(stream, er, data) { if (er) return stream.emit('error', er); if (data != null) // single equals check for both `null` and `undefined` stream.push(data); // TODO(BridgeAR): Write a test for these two error cases // if there's nothing in the write buffer, then that means // that nothing more will ever be provided if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0(); if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING(); return stream.push(null); } /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js": /*!******************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // A bit simpler than readable streams. // Implement an async ._write(chunk, encoding, cb), and it'll handle all // the drain event emission and buffering. module.exports = Writable; /* */ function WriteReq(chunk, encoding, cb) { this.chunk = chunk; this.encoding = encoding; this.callback = cb; this.next = null; } // It seems a linked list but it is not // there will be only 2 of these for each stream function CorkedRequest(state) { var _this = this; this.next = null; this.entry = null; this.finish = function () { onCorkedFinish(_this, state); }; } /* */ /**/ var Duplex; /**/ Writable.WritableState = WritableState; /**/ var internalUtil = { deprecate: __webpack_require__(/*! util-deprecate */ "./node_modules/util-deprecate/browser.js") }; /**/ /**/ var Stream = __webpack_require__(/*! ./internal/streams/stream */ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream-browser.js"); /**/ var Buffer = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js").Buffer; var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); } function _isUint8Array(obj) { return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; } var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js"); var _require = __webpack_require__(/*! ./internal/streams/state */ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/state.js"), getHighWaterMark = _require.getHighWaterMark; var _require$codes = __webpack_require__(/*! ../errors */ "./node_modules/bl/node_modules/readable-stream/errors-browser.js").codes, ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE, ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED, ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES, ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END, ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING; var errorOrDestroy = destroyImpl.errorOrDestroy; __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js")(Writable, Stream); function nop() {} function WritableState(options, stream, isDuplex) { Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "./node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js"); options = options || {}; // Duplex streams are both readable and writable, but share // the same options object. // However, some cases require setting options to different // values for the readable and the writable sides of the duplex stream, // e.g. options.readableObjectMode vs. options.writableObjectMode, etc. if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream // contains buffers or objects. this.objectMode = !!options.objectMode; if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false // Note: 0 is a valid value, means that we always return false if // the entire buffer is not flushed immediately on write() this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); // if _final has been called this.finalCalled = false; // drain event flag. this.needDrain = false; // at the start of calling end() this.ending = false; // when end() has been called, and returned this.ended = false; // when 'finish' is emitted this.finished = false; // has it been destroyed this.destroyed = false; // should we decode strings into buffers before passing to _write? // this is here so that some node-core streams can optimize string // handling at a lower level. var noDecode = options.decodeStrings === false; this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement // of how much we're waiting to get pushed to some underlying // socket or file. this.length = 0; // a flag to see when we're in the middle of a write. this.writing = false; // when true all writes will be buffered until .uncork() call this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately, // or on a later tick. We set this to true at first, because any // actions that shouldn't happen until "later" should generally also // not happen before the first write call. this.sync = true; // a flag to know if we're processing previously buffered items, which // may call the _write() callback in the same tick, so that we don't // end up in an overlapped onwrite situation. this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb) this.onwrite = function (er) { onwrite(stream, er); }; // the callback that the user supplies to write(chunk,encoding,cb) this.writecb = null; // the amount that is being written when _write is called. this.writelen = 0; this.bufferedRequest = null; this.lastBufferedRequest = null; // number of pending user-supplied write callbacks // this must be 0 before 'finish' can be emitted this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs // This is relevant for synchronous Transform streams this.prefinished = false; // True if the error was already emitted and should not be thrown again this.errorEmitted = false; // Should close be emitted on destroy. Defaults to true. this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'finish' (and potentially 'end') this.autoDestroy = !!options.autoDestroy; // count buffered requests this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always // one allocated and free to use, and we maintain at most two this.corkedRequestsFree = new CorkedRequest(this); } WritableState.prototype.getBuffer = function getBuffer() { var current = this.bufferedRequest; var out = []; while (current) { out.push(current); current = current.next; } return out; }; (function () { try { Object.defineProperty(WritableState.prototype, 'buffer', { get: internalUtil.deprecate(function writableStateBufferGetter() { return this.getBuffer(); }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003') }); } catch (_) {} })(); // Test _writableState for inheritance to account for Duplex streams, // whose prototype chain only points to Readable. var realHasInstance; if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { realHasInstance = Function.prototype[Symbol.hasInstance]; Object.defineProperty(Writable, Symbol.hasInstance, { value: function value(object) { if (realHasInstance.call(this, object)) return true; if (this !== Writable) return false; return object && object._writableState instanceof WritableState; } }); } else { realHasInstance = function realHasInstance(object) { return object instanceof this; }; } function Writable(options) { Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "./node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js"); // Writable ctor is applied to Duplexes, too. // `realHasInstance` is necessary because using plain `instanceof` // would return false, as no `_writableState` property is attached. // Trying to use the custom `instanceof` for Writable here will also break the // Node.js LazyTransform implementation, which has a non-trivial getter for // `_writableState` that would lead to infinite recursion. // Checking for a Stream.Duplex instance is faster here instead of inside // the WritableState constructor, at least with V8 6.5 var isDuplex = this instanceof Duplex; if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options); this._writableState = new WritableState(options, this, isDuplex); // legacy. this.writable = true; if (options) { if (typeof options.write === 'function') this._write = options.write; if (typeof options.writev === 'function') this._writev = options.writev; if (typeof options.destroy === 'function') this._destroy = options.destroy; if (typeof options.final === 'function') this._final = options.final; } Stream.call(this); } // Otherwise people can pipe Writable streams, which is just wrong. Writable.prototype.pipe = function () { errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE()); }; function writeAfterEnd(stream, cb) { var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb errorOrDestroy(stream, er); process.nextTick(cb, er); } // Checks that a user-supplied chunk is valid, especially for the particular // mode the stream is in. Currently this means that `null` is never accepted // and undefined/non-string values are only allowed in object mode. function validChunk(stream, state, chunk, cb) { var er; if (chunk === null) { er = new ERR_STREAM_NULL_VALUES(); } else if (typeof chunk !== 'string' && !state.objectMode) { er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk); } if (er) { errorOrDestroy(stream, er); process.nextTick(cb, er); return false; } return true; } Writable.prototype.write = function (chunk, encoding, cb) { var state = this._writableState; var ret = false; var isBuf = !state.objectMode && _isUint8Array(chunk); if (isBuf && !Buffer.isBuffer(chunk)) { chunk = _uint8ArrayToBuffer(chunk); } if (typeof encoding === 'function') { cb = encoding; encoding = null; } if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; if (typeof cb !== 'function') cb = nop; if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) { state.pendingcb++; ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb); } return ret; }; Writable.prototype.cork = function () { this._writableState.corked++; }; Writable.prototype.uncork = function () { var state = this._writableState; if (state.corked) { state.corked--; if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); } }; Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { // node::ParseEncoding() requires lower case. if (typeof encoding === 'string') encoding = encoding.toLowerCase(); if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding); this._writableState.defaultEncoding = encoding; return this; }; Object.defineProperty(Writable.prototype, 'writableBuffer', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._writableState && this._writableState.getBuffer(); } }); function decodeChunk(state, chunk, encoding) { if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { chunk = Buffer.from(chunk, encoding); } return chunk; } Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._writableState.highWaterMark; } }); // if we're already writing something, then just put this // in the queue, and wait our turn. Otherwise, call _write // If we return false, then we need a drain event, so set that flag. function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { if (!isBuf) { var newChunk = decodeChunk(state, chunk, encoding); if (chunk !== newChunk) { isBuf = true; encoding = 'buffer'; chunk = newChunk; } } var len = state.objectMode ? 1 : chunk.length; state.length += len; var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false. if (!ret) state.needDrain = true; if (state.writing || state.corked) { var last = state.lastBufferedRequest; state.lastBufferedRequest = { chunk: chunk, encoding: encoding, isBuf: isBuf, callback: cb, next: null }; if (last) { last.next = state.lastBufferedRequest; } else { state.bufferedRequest = state.lastBufferedRequest; } state.bufferedRequestCount += 1; } else { doWrite(stream, state, false, len, chunk, encoding, cb); } return ret; } function doWrite(stream, state, writev, len, chunk, encoding, cb) { state.writelen = len; state.writecb = cb; state.writing = true; state.sync = true; if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); state.sync = false; } function onwriteError(stream, state, sync, er, cb) { --state.pendingcb; if (sync) { // defer the callback if we are being called synchronously // to avoid piling up things on the stack process.nextTick(cb, er); // this can emit finish, and it will always happen // after error process.nextTick(finishMaybe, stream, state); stream._writableState.errorEmitted = true; errorOrDestroy(stream, er); } else { // the caller expect this to happen before if // it is async cb(er); stream._writableState.errorEmitted = true; errorOrDestroy(stream, er); // this can emit finish, but finish must // always follow error finishMaybe(stream, state); } } function onwriteStateUpdate(state) { state.writing = false; state.writecb = null; state.length -= state.writelen; state.writelen = 0; } function onwrite(stream, er) { var state = stream._writableState; var sync = state.sync; var cb = state.writecb; if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK(); onwriteStateUpdate(state); if (er) onwriteError(stream, state, sync, er, cb);else { // Check if we're actually ready to finish, but don't emit yet var finished = needFinish(state) || stream.destroyed; if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { clearBuffer(stream, state); } if (sync) { process.nextTick(afterWrite, stream, state, finished, cb); } else { afterWrite(stream, state, finished, cb); } } } function afterWrite(stream, state, finished, cb) { if (!finished) onwriteDrain(stream, state); state.pendingcb--; cb(); finishMaybe(stream, state); } // Must force callback to be called on nextTick, so that we don't // emit 'drain' before the write() consumer gets the 'false' return // value, and has a chance to attach a 'drain' listener. function onwriteDrain(stream, state) { if (state.length === 0 && state.needDrain) { state.needDrain = false; stream.emit('drain'); } } // if there's something in the buffer waiting, then process it function clearBuffer(stream, state) { state.bufferProcessing = true; var entry = state.bufferedRequest; if (stream._writev && entry && entry.next) { // Fast case, write everything using _writev() var l = state.bufferedRequestCount; var buffer = new Array(l); var holder = state.corkedRequestsFree; holder.entry = entry; var count = 0; var allBuffers = true; while (entry) { buffer[count] = entry; if (!entry.isBuf) allBuffers = false; entry = entry.next; count += 1; } buffer.allBuffers = allBuffers; doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time // as the hot path ends with doWrite state.pendingcb++; state.lastBufferedRequest = null; if (holder.next) { state.corkedRequestsFree = holder.next; holder.next = null; } else { state.corkedRequestsFree = new CorkedRequest(state); } state.bufferedRequestCount = 0; } else { // Slow case, write chunks one-by-one while (entry) { var chunk = entry.chunk; var encoding = entry.encoding; var cb = entry.callback; var len = state.objectMode ? 1 : chunk.length; doWrite(stream, state, false, len, chunk, encoding, cb); entry = entry.next; state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then // it means that we need to wait until it does. // also, that means that the chunk and cb are currently // being processed, so move the buffer counter past them. if (state.writing) { break; } } if (entry === null) state.lastBufferedRequest = null; } state.bufferedRequest = entry; state.bufferProcessing = false; } Writable.prototype._write = function (chunk, encoding, cb) { cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()')); }; Writable.prototype._writev = null; Writable.prototype.end = function (chunk, encoding, cb) { var state = this._writableState; if (typeof chunk === 'function') { cb = chunk; chunk = null; encoding = null; } else if (typeof encoding === 'function') { cb = encoding; encoding = null; } if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks if (state.corked) { state.corked = 1; this.uncork(); } // ignore unnecessary end() calls. if (!state.ending) endWritable(this, state, cb); return this; }; Object.defineProperty(Writable.prototype, 'writableLength', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._writableState.length; } }); function needFinish(state) { return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; } function callFinal(stream, state) { stream._final(function (err) { state.pendingcb--; if (err) { errorOrDestroy(stream, err); } state.prefinished = true; stream.emit('prefinish'); finishMaybe(stream, state); }); } function prefinish(stream, state) { if (!state.prefinished && !state.finalCalled) { if (typeof stream._final === 'function' && !state.destroyed) { state.pendingcb++; state.finalCalled = true; process.nextTick(callFinal, stream, state); } else { state.prefinished = true; stream.emit('prefinish'); } } } function finishMaybe(stream, state) { var need = needFinish(state); if (need) { prefinish(stream, state); if (state.pendingcb === 0) { state.finished = true; stream.emit('finish'); if (state.autoDestroy) { // In case of duplex streams we need a way to detect // if the readable side is ready for autoDestroy as well var rState = stream._readableState; if (!rState || rState.autoDestroy && rState.endEmitted) { stream.destroy(); } } } } return need; } function endWritable(stream, state, cb) { state.ending = true; finishMaybe(stream, state); if (cb) { if (state.finished) process.nextTick(cb);else stream.once('finish', cb); } state.ended = true; stream.writable = false; } function onCorkedFinish(corkReq, state, err) { var entry = corkReq.entry; corkReq.entry = null; while (entry) { var cb = entry.callback; state.pendingcb--; cb(err); entry = entry.next; } // reuse the free corkReq. state.corkedRequestsFree.next = corkReq; } Object.defineProperty(Writable.prototype, 'destroyed', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { if (this._writableState === undefined) { return false; } return this._writableState.destroyed; }, set: function set(value) { // we ignore the value if the stream // has not been initialized yet if (!this._writableState) { return; } // backward compatibility, the user is explicitly // managing destroyed this._writableState.destroyed = value; } }); Writable.prototype.destroy = destroyImpl.destroy; Writable.prototype._undestroy = destroyImpl.undestroy; Writable.prototype._destroy = function (err, cb) { cb(err); }; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/async_iterator.js": /*!*********************************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/lib/internal/streams/async_iterator.js ***! \*********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { var _Object$setPrototypeO; function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } var finished = __webpack_require__(/*! ./end-of-stream */ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"); var kLastResolve = Symbol('lastResolve'); var kLastReject = Symbol('lastReject'); var kError = Symbol('error'); var kEnded = Symbol('ended'); var kLastPromise = Symbol('lastPromise'); var kHandlePromise = Symbol('handlePromise'); var kStream = Symbol('stream'); function createIterResult(value, done) { return { value: value, done: done }; } function readAndResolve(iter) { var resolve = iter[kLastResolve]; if (resolve !== null) { var data = iter[kStream].read(); // we defer if data is null // we can be expecting either 'end' or // 'error' if (data !== null) { iter[kLastPromise] = null; iter[kLastResolve] = null; iter[kLastReject] = null; resolve(createIterResult(data, false)); } } } function onReadable(iter) { // we wait for the next tick, because it might // emit an error with process.nextTick process.nextTick(readAndResolve, iter); } function wrapForNext(lastPromise, iter) { return function (resolve, reject) { lastPromise.then(function () { if (iter[kEnded]) { resolve(createIterResult(undefined, true)); return; } iter[kHandlePromise](resolve, reject); }, reject); }; } var AsyncIteratorPrototype = Object.getPrototypeOf(function () {}); var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = { get stream() { return this[kStream]; }, next: function next() { var _this = this; // if we have detected an error in the meanwhile // reject straight away var error = this[kError]; if (error !== null) { return Promise.reject(error); } if (this[kEnded]) { return Promise.resolve(createIterResult(undefined, true)); } if (this[kStream].destroyed) { // We need to defer via nextTick because if .destroy(err) is // called, the error will be emitted via nextTick, and // we cannot guarantee that there is no error lingering around // waiting to be emitted. return new Promise(function (resolve, reject) { process.nextTick(function () { if (_this[kError]) { reject(_this[kError]); } else { resolve(createIterResult(undefined, true)); } }); }); } // if we have multiple next() calls // we will wait for the previous Promise to finish // this logic is optimized to support for await loops, // where next() is only called once at a time var lastPromise = this[kLastPromise]; var promise; if (lastPromise) { promise = new Promise(wrapForNext(lastPromise, this)); } else { // fast path needed to support multiple this.push() // without triggering the next() queue var data = this[kStream].read(); if (data !== null) { return Promise.resolve(createIterResult(data, false)); } promise = new Promise(this[kHandlePromise]); } this[kLastPromise] = promise; return promise; } }, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () { return this; }), _defineProperty(_Object$setPrototypeO, "return", function _return() { var _this2 = this; // destroy(err, cb) is a private API // we can guarantee we have that here, because we control the // Readable class this is attached to return new Promise(function (resolve, reject) { _this2[kStream].destroy(null, function (err) { if (err) { reject(err); return; } resolve(createIterResult(undefined, true)); }); }); }), _Object$setPrototypeO), AsyncIteratorPrototype); var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) { var _Object$create; var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, { value: stream, writable: true }), _defineProperty(_Object$create, kLastResolve, { value: null, writable: true }), _defineProperty(_Object$create, kLastReject, { value: null, writable: true }), _defineProperty(_Object$create, kError, { value: null, writable: true }), _defineProperty(_Object$create, kEnded, { value: stream._readableState.endEmitted, writable: true }), _defineProperty(_Object$create, kHandlePromise, { value: function value(resolve, reject) { var data = iterator[kStream].read(); if (data) { iterator[kLastPromise] = null; iterator[kLastResolve] = null; iterator[kLastReject] = null; resolve(createIterResult(data, false)); } else { iterator[kLastResolve] = resolve; iterator[kLastReject] = reject; } }, writable: true }), _Object$create)); iterator[kLastPromise] = null; finished(stream, function (err) { if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') { var reject = iterator[kLastReject]; // reject if we are waiting for data in the Promise // returned by next() and store the error if (reject !== null) { iterator[kLastPromise] = null; iterator[kLastResolve] = null; iterator[kLastReject] = null; reject(err); } iterator[kError] = err; return; } var resolve = iterator[kLastResolve]; if (resolve !== null) { iterator[kLastPromise] = null; iterator[kLastResolve] = null; iterator[kLastReject] = null; resolve(createIterResult(undefined, true)); } iterator[kEnded] = true; }); stream.on('readable', onReadable.bind(null, iterator)); return iterator; }; module.exports = createReadableStreamAsyncIterator; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/buffer_list.js": /*!******************************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/lib/internal/streams/buffer_list.js ***! \******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } var _require = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js"), Buffer = _require.Buffer; var _require2 = __webpack_require__(/*! util */ 7), inspect = _require2.inspect; var custom = inspect && inspect.custom || 'inspect'; function copyBuffer(src, target, offset) { Buffer.prototype.copy.call(src, target, offset); } module.exports = /*#__PURE__*/function () { function BufferList() { _classCallCheck(this, BufferList); this.head = null; this.tail = null; this.length = 0; } _createClass(BufferList, [{ key: "push", value: function push(v) { var entry = { data: v, next: null }; if (this.length > 0) this.tail.next = entry;else this.head = entry; this.tail = entry; ++this.length; } }, { key: "unshift", value: function unshift(v) { var entry = { data: v, next: this.head }; if (this.length === 0) this.tail = entry; this.head = entry; ++this.length; } }, { key: "shift", value: function shift() { if (this.length === 0) return; var ret = this.head.data; if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; --this.length; return ret; } }, { key: "clear", value: function clear() { this.head = this.tail = null; this.length = 0; } }, { key: "join", value: function join(s) { if (this.length === 0) return ''; var p = this.head; var ret = '' + p.data; while (p = p.next) ret += s + p.data; return ret; } }, { key: "concat", value: function concat(n) { if (this.length === 0) return Buffer.alloc(0); var ret = Buffer.allocUnsafe(n >>> 0); var p = this.head; var i = 0; while (p) { copyBuffer(p.data, ret, i); i += p.data.length; p = p.next; } return ret; } // Consumes a specified amount of bytes or characters from the buffered data. }, { key: "consume", value: function consume(n, hasStrings) { var ret; if (n < this.head.data.length) { // `slice` is the same for buffers and strings. ret = this.head.data.slice(0, n); this.head.data = this.head.data.slice(n); } else if (n === this.head.data.length) { // First chunk is a perfect match. ret = this.shift(); } else { // Result spans more than one buffer. ret = hasStrings ? this._getString(n) : this._getBuffer(n); } return ret; } }, { key: "first", value: function first() { return this.head.data; } // Consumes a specified amount of characters from the buffered data. }, { key: "_getString", value: function _getString(n) { var p = this.head; var c = 1; var ret = p.data; n -= ret.length; while (p = p.next) { var str = p.data; var nb = n > str.length ? str.length : n; if (nb === str.length) ret += str;else ret += str.slice(0, n); n -= nb; if (n === 0) { if (nb === str.length) { ++c; if (p.next) this.head = p.next;else this.head = this.tail = null; } else { this.head = p; p.data = str.slice(nb); } break; } ++c; } this.length -= c; return ret; } // Consumes a specified amount of bytes from the buffered data. }, { key: "_getBuffer", value: function _getBuffer(n) { var ret = Buffer.allocUnsafe(n); var p = this.head; var c = 1; p.data.copy(ret); n -= p.data.length; while (p = p.next) { var buf = p.data; var nb = n > buf.length ? buf.length : n; buf.copy(ret, ret.length - n, 0, nb); n -= nb; if (n === 0) { if (nb === buf.length) { ++c; if (p.next) this.head = p.next;else this.head = this.tail = null; } else { this.head = p; p.data = buf.slice(nb); } break; } ++c; } this.length -= c; return ret; } // Make sure the linked list only shows the minimal necessary information. }, { key: custom, value: function value(_, options) { return inspect(this, _objectSpread(_objectSpread({}, options), {}, { // Only inspect one level. depth: 0, // It should not recurse. customInspect: false })); } }]); return BufferList; }(); /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js": /*!**************************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js ***! \**************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { // undocumented cb() API, needed for core, not for public API function destroy(err, cb) { var _this = this; var readableDestroyed = this._readableState && this._readableState.destroyed; var writableDestroyed = this._writableState && this._writableState.destroyed; if (readableDestroyed || writableDestroyed) { if (cb) { cb(err); } else if (err) { if (!this._writableState) { process.nextTick(emitErrorNT, this, err); } else if (!this._writableState.errorEmitted) { this._writableState.errorEmitted = true; process.nextTick(emitErrorNT, this, err); } } return this; } // we set destroyed to true before firing error callbacks in order // to make it re-entrance safe in case destroy() is called within callbacks if (this._readableState) { this._readableState.destroyed = true; } // if this is a duplex stream mark the writable part as destroyed as well if (this._writableState) { this._writableState.destroyed = true; } this._destroy(err || null, function (err) { if (!cb && err) { if (!_this._writableState) { process.nextTick(emitErrorAndCloseNT, _this, err); } else if (!_this._writableState.errorEmitted) { _this._writableState.errorEmitted = true; process.nextTick(emitErrorAndCloseNT, _this, err); } else { process.nextTick(emitCloseNT, _this); } } else if (cb) { process.nextTick(emitCloseNT, _this); cb(err); } else { process.nextTick(emitCloseNT, _this); } }); return this; } function emitErrorAndCloseNT(self, err) { emitErrorNT(self, err); emitCloseNT(self); } function emitCloseNT(self) { if (self._writableState && !self._writableState.emitClose) return; if (self._readableState && !self._readableState.emitClose) return; self.emit('close'); } function undestroy() { if (this._readableState) { this._readableState.destroyed = false; this._readableState.reading = false; this._readableState.ended = false; this._readableState.endEmitted = false; } if (this._writableState) { this._writableState.destroyed = false; this._writableState.ended = false; this._writableState.ending = false; this._writableState.finalCalled = false; this._writableState.prefinished = false; this._writableState.finished = false; this._writableState.errorEmitted = false; } } function emitErrorNT(self, err) { self.emit('error', err); } function errorOrDestroy(stream, err) { // We have tests that rely on errors being emitted // in the same tick, so changing this is semver major. // For now when you opt-in to autoDestroy we allow // the error to be emitted nextTick. In a future // semver major update we should change the default to this. var rState = stream._readableState; var wState = stream._writableState; if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err); } module.exports = { destroy: destroy, undestroy: undestroy, errorOrDestroy: errorOrDestroy }; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/end-of-stream.js": /*!********************************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/lib/internal/streams/end-of-stream.js ***! \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Ported from https://github.com/mafintosh/end-of-stream with // permission from the author, Mathias Buus (@mafintosh). var ERR_STREAM_PREMATURE_CLOSE = __webpack_require__(/*! ../../../errors */ "./node_modules/bl/node_modules/readable-stream/errors-browser.js").codes.ERR_STREAM_PREMATURE_CLOSE; function once(callback) { var called = false; return function () { if (called) return; called = true; for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } callback.apply(this, args); }; } function noop() {} function isRequest(stream) { return stream.setHeader && typeof stream.abort === 'function'; } function eos(stream, opts, callback) { if (typeof opts === 'function') return eos(stream, null, opts); if (!opts) opts = {}; callback = once(callback || noop); var readable = opts.readable || opts.readable !== false && stream.readable; var writable = opts.writable || opts.writable !== false && stream.writable; var onlegacyfinish = function onlegacyfinish() { if (!stream.writable) onfinish(); }; var writableEnded = stream._writableState && stream._writableState.finished; var onfinish = function onfinish() { writable = false; writableEnded = true; if (!readable) callback.call(stream); }; var readableEnded = stream._readableState && stream._readableState.endEmitted; var onend = function onend() { readable = false; readableEnded = true; if (!writable) callback.call(stream); }; var onerror = function onerror(err) { callback.call(stream, err); }; var onclose = function onclose() { var err; if (readable && !readableEnded) { if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); return callback.call(stream, err); } if (writable && !writableEnded) { if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); return callback.call(stream, err); } }; var onrequest = function onrequest() { stream.req.on('finish', onfinish); }; if (isRequest(stream)) { stream.on('complete', onfinish); stream.on('abort', onclose); if (stream.req) onrequest();else stream.on('request', onrequest); } else if (writable && !stream._writableState) { // legacy streams stream.on('end', onlegacyfinish); stream.on('close', onlegacyfinish); } stream.on('end', onend); stream.on('finish', onfinish); if (opts.error !== false) stream.on('error', onerror); stream.on('close', onclose); return function () { stream.removeListener('complete', onfinish); stream.removeListener('abort', onclose); stream.removeListener('request', onrequest); if (stream.req) stream.req.removeListener('finish', onfinish); stream.removeListener('end', onlegacyfinish); stream.removeListener('close', onlegacyfinish); stream.removeListener('finish', onfinish); stream.removeListener('end', onend); stream.removeListener('error', onerror); stream.removeListener('close', onclose); }; } module.exports = eos; /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/from-browser.js": /*!*******************************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/lib/internal/streams/from-browser.js ***! \*******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = function () { throw new Error('Readable.from is not available in the browser') }; /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/pipeline.js": /*!***************************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/lib/internal/streams/pipeline.js ***! \***************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Ported from https://github.com/mafintosh/pump with // permission from the author, Mathias Buus (@mafintosh). var eos; function once(callback) { var called = false; return function () { if (called) return; called = true; callback.apply(void 0, arguments); }; } var _require$codes = __webpack_require__(/*! ../../../errors */ "./node_modules/bl/node_modules/readable-stream/errors-browser.js").codes, ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS, ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED; function noop(err) { // Rethrow the error if it exists to avoid swallowing it if (err) throw err; } function isRequest(stream) { return stream.setHeader && typeof stream.abort === 'function'; } function destroyer(stream, reading, writing, callback) { callback = once(callback); var closed = false; stream.on('close', function () { closed = true; }); if (eos === undefined) eos = __webpack_require__(/*! ./end-of-stream */ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"); eos(stream, { readable: reading, writable: writing }, function (err) { if (err) return callback(err); closed = true; callback(); }); var destroyed = false; return function (err) { if (closed) return; if (destroyed) return; destroyed = true; // request.destroy just do .end - .abort is what we want if (isRequest(stream)) return stream.abort(); if (typeof stream.destroy === 'function') return stream.destroy(); callback(err || new ERR_STREAM_DESTROYED('pipe')); }; } function call(fn) { fn(); } function pipe(from, to) { return from.pipe(to); } function popCallback(streams) { if (!streams.length) return noop; if (typeof streams[streams.length - 1] !== 'function') return noop; return streams.pop(); } function pipeline() { for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) { streams[_key] = arguments[_key]; } var callback = popCallback(streams); if (Array.isArray(streams[0])) streams = streams[0]; if (streams.length < 2) { throw new ERR_MISSING_ARGS('streams'); } var error; var destroys = streams.map(function (stream, i) { var reading = i < streams.length - 1; var writing = i > 0; return destroyer(stream, reading, writing, function (err) { if (!error) error = err; if (err) destroys.forEach(call); if (reading) return; destroys.forEach(call); callback(error); }); }); return streams.reduce(pipe); } module.exports = pipeline; /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/state.js": /*!************************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/lib/internal/streams/state.js ***! \************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var ERR_INVALID_OPT_VALUE = __webpack_require__(/*! ../../../errors */ "./node_modules/bl/node_modules/readable-stream/errors-browser.js").codes.ERR_INVALID_OPT_VALUE; function highWaterMarkFrom(options, isDuplex, duplexKey) { return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null; } function getHighWaterMark(state, options, duplexKey, isDuplex) { var hwm = highWaterMarkFrom(options, isDuplex, duplexKey); if (hwm != null) { if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) { var name = isDuplex ? duplexKey : 'highWaterMark'; throw new ERR_INVALID_OPT_VALUE(name, hwm); } return Math.floor(hwm); } // Default value return state.objectMode ? 16 : 16 * 1024; } module.exports = { getHighWaterMark: getHighWaterMark }; /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream-browser.js": /*!*********************************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream-browser.js ***! \*********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! events */ "./node_modules/events/events.js").EventEmitter; /***/ }), /***/ "./node_modules/bl/node_modules/readable-stream/readable-browser.js": /*!**************************************************************************!*\ !*** ./node_modules/bl/node_modules/readable-stream/readable-browser.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(/*! ./lib/_stream_readable.js */ "./node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js"); exports.Stream = exports; exports.Readable = exports; exports.Writable = __webpack_require__(/*! ./lib/_stream_writable.js */ "./node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js"); exports.Duplex = __webpack_require__(/*! ./lib/_stream_duplex.js */ "./node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js"); exports.Transform = __webpack_require__(/*! ./lib/_stream_transform.js */ "./node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js"); exports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ "./node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js"); exports.finished = __webpack_require__(/*! ./lib/internal/streams/end-of-stream.js */ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"); exports.pipeline = __webpack_require__(/*! ./lib/internal/streams/pipeline.js */ "./node_modules/bl/node_modules/readable-stream/lib/internal/streams/pipeline.js"); /***/ }), /***/ "./node_modules/call-bind-apply-helpers/actualApply.js": /*!*************************************************************!*\ !*** ./node_modules/call-bind-apply-helpers/actualApply.js ***! \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js"); var $apply = __webpack_require__(/*! ./functionApply */ "./node_modules/call-bind-apply-helpers/functionApply.js"); var $call = __webpack_require__(/*! ./functionCall */ "./node_modules/call-bind-apply-helpers/functionCall.js"); var $reflectApply = __webpack_require__(/*! ./reflectApply */ "./node_modules/call-bind-apply-helpers/reflectApply.js"); /** @type {import('./actualApply')} */ module.exports = $reflectApply || bind.call($call, $apply); /***/ }), /***/ "./node_modules/call-bind-apply-helpers/functionApply.js": /*!***************************************************************!*\ !*** ./node_modules/call-bind-apply-helpers/functionApply.js ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./functionApply')} */ module.exports = Function.prototype.apply; /***/ }), /***/ "./node_modules/call-bind-apply-helpers/functionCall.js": /*!**************************************************************!*\ !*** ./node_modules/call-bind-apply-helpers/functionCall.js ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./functionCall')} */ module.exports = Function.prototype.call; /***/ }), /***/ "./node_modules/call-bind-apply-helpers/index.js": /*!*******************************************************!*\ !*** ./node_modules/call-bind-apply-helpers/index.js ***! \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js"); var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js"); var $call = __webpack_require__(/*! ./functionCall */ "./node_modules/call-bind-apply-helpers/functionCall.js"); var $actualApply = __webpack_require__(/*! ./actualApply */ "./node_modules/call-bind-apply-helpers/actualApply.js"); /** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */ module.exports = function callBindBasic(args) { if (args.length < 1 || typeof args[0] !== 'function') { throw new $TypeError('a function is required'); } return $actualApply(bind, $call, args); }; /***/ }), /***/ "./node_modules/call-bind-apply-helpers/reflectApply.js": /*!**************************************************************!*\ !*** ./node_modules/call-bind-apply-helpers/reflectApply.js ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./reflectApply')} */ module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply; /***/ }), /***/ "./node_modules/call-bound/index.js": /*!******************************************!*\ !*** ./node_modules/call-bound/index.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/call-bound/node_modules/get-intrinsic/index.js"); var callBindBasic = __webpack_require__(/*! call-bind-apply-helpers */ "./node_modules/call-bind-apply-helpers/index.js"); /** @type {(thisArg: string, searchString: string, position?: number) => number} */ var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]); /** @type {import('.')} */ module.exports = function callBoundIntrinsic(name, allowMissing) { /* eslint no-extra-parens: 0 */ var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing)); if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { return callBindBasic(/** @type {const} */ ([intrinsic])); } return intrinsic; }; /***/ }), /***/ "./node_modules/call-bound/node_modules/es-define-property/index.js": /*!**************************************************************************!*\ !*** ./node_modules/call-bound/node_modules/es-define-property/index.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('.')} */ var $defineProperty = Object.defineProperty || false; if ($defineProperty) { try { $defineProperty({}, 'a', { value: 1 }); } catch (e) { // IE 8 has a broken defineProperty $defineProperty = false; } } module.exports = $defineProperty; /***/ }), /***/ "./node_modules/call-bound/node_modules/es-object-atoms/index.js": /*!***********************************************************************!*\ !*** ./node_modules/call-bound/node_modules/es-object-atoms/index.js ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('.')} */ module.exports = Object; /***/ }), /***/ "./node_modules/call-bound/node_modules/get-intrinsic/index.js": /*!*********************************************************************!*\ !*** ./node_modules/call-bound/node_modules/get-intrinsic/index.js ***! \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var undefined; var $Object = __webpack_require__(/*! es-object-atoms */ "./node_modules/call-bound/node_modules/es-object-atoms/index.js"); var $Error = __webpack_require__(/*! es-errors */ "./node_modules/es-errors/index.js"); var $EvalError = __webpack_require__(/*! es-errors/eval */ "./node_modules/es-errors/eval.js"); var $RangeError = __webpack_require__(/*! es-errors/range */ "./node_modules/es-errors/range.js"); var $ReferenceError = __webpack_require__(/*! es-errors/ref */ "./node_modules/es-errors/ref.js"); var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "./node_modules/es-errors/syntax.js"); var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js"); var $URIError = __webpack_require__(/*! es-errors/uri */ "./node_modules/es-errors/uri.js"); var abs = __webpack_require__(/*! math-intrinsics/abs */ "./node_modules/math-intrinsics/abs.js"); var floor = __webpack_require__(/*! math-intrinsics/floor */ "./node_modules/math-intrinsics/floor.js"); var max = __webpack_require__(/*! math-intrinsics/max */ "./node_modules/math-intrinsics/max.js"); var min = __webpack_require__(/*! math-intrinsics/min */ "./node_modules/math-intrinsics/min.js"); var pow = __webpack_require__(/*! math-intrinsics/pow */ "./node_modules/math-intrinsics/pow.js"); var round = __webpack_require__(/*! math-intrinsics/round */ "./node_modules/math-intrinsics/round.js"); var sign = __webpack_require__(/*! math-intrinsics/sign */ "./node_modules/math-intrinsics/sign.js"); var $Function = Function; // eslint-disable-next-line consistent-return var getEvalledConstructor = function (expressionSyntax) { try { return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); } catch (e) {} }; var $gOPD = __webpack_require__(/*! gopd */ "./node_modules/call-bound/node_modules/gopd/index.js"); var $defineProperty = __webpack_require__(/*! es-define-property */ "./node_modules/call-bound/node_modules/es-define-property/index.js"); var throwTypeError = function () { throw new $TypeError(); }; var ThrowTypeError = $gOPD ? (function () { try { // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties arguments.callee; // IE 8 does not throw here return throwTypeError; } catch (calleeThrows) { try { // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') return $gOPD(arguments, 'callee').get; } catch (gOPDthrows) { return throwTypeError; } } }()) : throwTypeError; var hasSymbols = __webpack_require__(/*! has-symbols */ "./node_modules/call-bound/node_modules/has-symbols/index.js")(); var getProto = __webpack_require__(/*! get-proto */ "./node_modules/get-proto/index.js"); var $ObjectGPO = __webpack_require__(/*! get-proto/Object.getPrototypeOf */ "./node_modules/get-proto/Object.getPrototypeOf.js"); var $ReflectGPO = __webpack_require__(/*! get-proto/Reflect.getPrototypeOf */ "./node_modules/get-proto/Reflect.getPrototypeOf.js"); var $apply = __webpack_require__(/*! call-bind-apply-helpers/functionApply */ "./node_modules/call-bind-apply-helpers/functionApply.js"); var $call = __webpack_require__(/*! call-bind-apply-helpers/functionCall */ "./node_modules/call-bind-apply-helpers/functionCall.js"); var needsEval = {}; var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); var INTRINSICS = { __proto__: null, '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, '%Array%': Array, '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, '%AsyncFromSyncIteratorPrototype%': undefined, '%AsyncFunction%': needsEval, '%AsyncGenerator%': needsEval, '%AsyncGeneratorFunction%': needsEval, '%AsyncIteratorPrototype%': needsEval, '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, '%Boolean%': Boolean, '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, '%Date%': Date, '%decodeURI%': decodeURI, '%decodeURIComponent%': decodeURIComponent, '%encodeURI%': encodeURI, '%encodeURIComponent%': encodeURIComponent, '%Error%': $Error, '%eval%': eval, // eslint-disable-line no-eval '%EvalError%': $EvalError, '%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array, '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, '%Function%': $Function, '%GeneratorFunction%': needsEval, '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, '%isFinite%': isFinite, '%isNaN%': isNaN, '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, '%JSON%': typeof JSON === 'object' ? JSON : undefined, '%Map%': typeof Map === 'undefined' ? undefined : Map, '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), '%Math%': Math, '%Number%': Number, '%Object%': $Object, '%Object.getOwnPropertyDescriptor%': $gOPD, '%parseFloat%': parseFloat, '%parseInt%': parseInt, '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, '%RangeError%': $RangeError, '%ReferenceError%': $ReferenceError, '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, '%RegExp%': RegExp, '%Set%': typeof Set === 'undefined' ? undefined : Set, '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, '%String%': String, '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, '%Symbol%': hasSymbols ? Symbol : undefined, '%SyntaxError%': $SyntaxError, '%ThrowTypeError%': ThrowTypeError, '%TypedArray%': TypedArray, '%TypeError%': $TypeError, '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, '%URIError%': $URIError, '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet, '%Function.prototype.call%': $call, '%Function.prototype.apply%': $apply, '%Object.defineProperty%': $defineProperty, '%Object.getPrototypeOf%': $ObjectGPO, '%Math.abs%': abs, '%Math.floor%': floor, '%Math.max%': max, '%Math.min%': min, '%Math.pow%': pow, '%Math.round%': round, '%Math.sign%': sign, '%Reflect.getPrototypeOf%': $ReflectGPO }; if (getProto) { try { null.error; // eslint-disable-line no-unused-expressions } catch (e) { // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 var errorProto = getProto(getProto(e)); INTRINSICS['%Error.prototype%'] = errorProto; } } var doEval = function doEval(name) { var value; if (name === '%AsyncFunction%') { value = getEvalledConstructor('async function () {}'); } else if (name === '%GeneratorFunction%') { value = getEvalledConstructor('function* () {}'); } else if (name === '%AsyncGeneratorFunction%') { value = getEvalledConstructor('async function* () {}'); } else if (name === '%AsyncGenerator%') { var fn = doEval('%AsyncGeneratorFunction%'); if (fn) { value = fn.prototype; } } else if (name === '%AsyncIteratorPrototype%') { var gen = doEval('%AsyncGenerator%'); if (gen && getProto) { value = getProto(gen.prototype); } } INTRINSICS[name] = value; return value; }; var LEGACY_ALIASES = { __proto__: null, '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], '%ArrayPrototype%': ['Array', 'prototype'], '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], '%ArrayProto_values%': ['Array', 'prototype', 'values'], '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], '%BooleanPrototype%': ['Boolean', 'prototype'], '%DataViewPrototype%': ['DataView', 'prototype'], '%DatePrototype%': ['Date', 'prototype'], '%ErrorPrototype%': ['Error', 'prototype'], '%EvalErrorPrototype%': ['EvalError', 'prototype'], '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], '%FunctionPrototype%': ['Function', 'prototype'], '%Generator%': ['GeneratorFunction', 'prototype'], '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], '%JSONParse%': ['JSON', 'parse'], '%JSONStringify%': ['JSON', 'stringify'], '%MapPrototype%': ['Map', 'prototype'], '%NumberPrototype%': ['Number', 'prototype'], '%ObjectPrototype%': ['Object', 'prototype'], '%ObjProto_toString%': ['Object', 'prototype', 'toString'], '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], '%PromisePrototype%': ['Promise', 'prototype'], '%PromiseProto_then%': ['Promise', 'prototype', 'then'], '%Promise_all%': ['Promise', 'all'], '%Promise_reject%': ['Promise', 'reject'], '%Promise_resolve%': ['Promise', 'resolve'], '%RangeErrorPrototype%': ['RangeError', 'prototype'], '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], '%RegExpPrototype%': ['RegExp', 'prototype'], '%SetPrototype%': ['Set', 'prototype'], '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], '%StringPrototype%': ['String', 'prototype'], '%SymbolPrototype%': ['Symbol', 'prototype'], '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], '%TypedArrayPrototype%': ['TypedArray', 'prototype'], '%TypeErrorPrototype%': ['TypeError', 'prototype'], '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], '%URIErrorPrototype%': ['URIError', 'prototype'], '%WeakMapPrototype%': ['WeakMap', 'prototype'], '%WeakSetPrototype%': ['WeakSet', 'prototype'] }; var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js"); var hasOwn = __webpack_require__(/*! hasown */ "./node_modules/hasown/index.js"); var $concat = bind.call($call, Array.prototype.concat); var $spliceApply = bind.call($apply, Array.prototype.splice); var $replace = bind.call($call, String.prototype.replace); var $strSlice = bind.call($call, String.prototype.slice); var $exec = bind.call($call, RegExp.prototype.exec); /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ var stringToPath = function stringToPath(string) { var first = $strSlice(string, 0, 1); var last = $strSlice(string, -1); if (first === '%' && last !== '%') { throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); } else if (last === '%' && first !== '%') { throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); } var result = []; $replace(string, rePropName, function (match, number, quote, subString) { result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; }); return result; }; /* end adaptation */ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { var intrinsicName = name; var alias; if (hasOwn(LEGACY_ALIASES, intrinsicName)) { alias = LEGACY_ALIASES[intrinsicName]; intrinsicName = '%' + alias[0] + '%'; } if (hasOwn(INTRINSICS, intrinsicName)) { var value = INTRINSICS[intrinsicName]; if (value === needsEval) { value = doEval(intrinsicName); } if (typeof value === 'undefined' && !allowMissing) { throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); } return { alias: alias, name: intrinsicName, value: value }; } throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); }; module.exports = function GetIntrinsic(name, allowMissing) { if (typeof name !== 'string' || name.length === 0) { throw new $TypeError('intrinsic name must be a non-empty string'); } if (arguments.length > 1 && typeof allowMissing !== 'boolean') { throw new $TypeError('"allowMissing" argument must be a boolean'); } if ($exec(/^%?[^%]*%?$/, name) === null) { throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name'); } var parts = stringToPath(name); var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); var intrinsicRealName = intrinsic.name; var value = intrinsic.value; var skipFurtherCaching = false; var alias = intrinsic.alias; if (alias) { intrinsicBaseName = alias[0]; $spliceApply(parts, $concat([0, 1], alias)); } for (var i = 1, isOwn = true; i < parts.length; i += 1) { var part = parts[i]; var first = $strSlice(part, 0, 1); var last = $strSlice(part, -1); if ( ( (first === '"' || first === "'" || first === '`') || (last === '"' || last === "'" || last === '`') ) && first !== last ) { throw new $SyntaxError('property names with quotes must have matching quotes'); } if (part === 'constructor' || !isOwn) { skipFurtherCaching = true; } intrinsicBaseName += '.' + part; intrinsicRealName = '%' + intrinsicBaseName + '%'; if (hasOwn(INTRINSICS, intrinsicRealName)) { value = INTRINSICS[intrinsicRealName]; } else if (value != null) { if (!(part in value)) { if (!allowMissing) { throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); } return void undefined; } if ($gOPD && (i + 1) >= parts.length) { var desc = $gOPD(value, part); isOwn = !!desc; // By convention, when a data property is converted to an accessor // property to emulate a data property that does not suffer from // the override mistake, that accessor's getter is marked with // an `originalValue` property. Here, when we detect this, we // uphold the illusion by pretending to see that original data // property, i.e., returning the value rather than the getter // itself. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { value = desc.get; } else { value = value[part]; } } else { isOwn = hasOwn(value, part); value = value[part]; } if (isOwn && !skipFurtherCaching) { INTRINSICS[intrinsicRealName] = value; } } } return value; }; /***/ }), /***/ "./node_modules/call-bound/node_modules/gopd/gOPD.js": /*!***********************************************************!*\ !*** ./node_modules/call-bound/node_modules/gopd/gOPD.js ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./gOPD')} */ module.exports = Object.getOwnPropertyDescriptor; /***/ }), /***/ "./node_modules/call-bound/node_modules/gopd/index.js": /*!************************************************************!*\ !*** ./node_modules/call-bound/node_modules/gopd/index.js ***! \************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('.')} */ var $gOPD = __webpack_require__(/*! ./gOPD */ "./node_modules/call-bound/node_modules/gopd/gOPD.js"); if ($gOPD) { try { $gOPD([], 'length'); } catch (e) { // IE 8 has a broken gOPD $gOPD = null; } } module.exports = $gOPD; /***/ }), /***/ "./node_modules/call-bound/node_modules/has-symbols/index.js": /*!*******************************************************************!*\ !*** ./node_modules/call-bound/node_modules/has-symbols/index.js ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var origSymbol = typeof Symbol !== 'undefined' && Symbol; var hasSymbolSham = __webpack_require__(/*! ./shams */ "./node_modules/call-bound/node_modules/has-symbols/shams.js"); /** @type {import('.')} */ module.exports = function hasNativeSymbols() { if (typeof origSymbol !== 'function') { return false; } if (typeof Symbol !== 'function') { return false; } if (typeof origSymbol('foo') !== 'symbol') { return false; } if (typeof Symbol('bar') !== 'symbol') { return false; } return hasSymbolSham(); }; /***/ }), /***/ "./node_modules/call-bound/node_modules/has-symbols/shams.js": /*!*******************************************************************!*\ !*** ./node_modules/call-bound/node_modules/has-symbols/shams.js ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./shams')} */ /* eslint complexity: [2, 18], max-statements: [2, 33] */ module.exports = function hasSymbols() { if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } if (typeof Symbol.iterator === 'symbol') { return true; } /** @type {{ [k in symbol]?: unknown }} */ var obj = {}; var sym = Symbol('test'); var symObj = Object(sym); if (typeof sym === 'string') { return false; } if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } // temp disabled per https://github.com/ljharb/object.assign/issues/17 // if (sym instanceof Symbol) { return false; } // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 // if (!(symObj instanceof Symbol)) { return false; } // if (typeof Symbol.prototype.toString !== 'function') { return false; } // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } var symVal = 42; obj[sym] = symVal; for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } var syms = Object.getOwnPropertySymbols(obj); if (syms.length !== 1 || syms[0] !== sym) { return false; } if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } if (typeof Object.getOwnPropertyDescriptor === 'function') { // eslint-disable-next-line no-extra-parens var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym)); if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } } return true; }; /***/ }), /***/ "./node_modules/core-js/internals/get-iterator-flattenable.js": /*!********************************************************************!*\ !*** ./node_modules/core-js/internals/get-iterator-flattenable.js ***! \********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var call = __webpack_require__(/*! ../internals/function-call */ "./node_modules/core-js/internals/function-call.js"); var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js"); var getIteratorDirect = __webpack_require__(/*! ../internals/get-iterator-direct */ "./node_modules/core-js/internals/get-iterator-direct.js"); var getIteratorMethod = __webpack_require__(/*! ../internals/get-iterator-method */ "./node_modules/core-js/internals/get-iterator-method.js"); module.exports = function (obj, stringHandling) { if (!stringHandling || typeof obj !== 'string') anObject(obj); var method = getIteratorMethod(obj); return getIteratorDirect(anObject(method !== undefined ? call(method, obj) : obj)); }; /***/ }), /***/ "./node_modules/core-js/modules/esnext.iterator.flat-map.js": /*!******************************************************************!*\ !*** ./node_modules/core-js/modules/esnext.iterator.flat-map.js ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js"); var call = __webpack_require__(/*! ../internals/function-call */ "./node_modules/core-js/internals/function-call.js"); var aCallable = __webpack_require__(/*! ../internals/a-callable */ "./node_modules/core-js/internals/a-callable.js"); var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js"); var getIteratorDirect = __webpack_require__(/*! ../internals/get-iterator-direct */ "./node_modules/core-js/internals/get-iterator-direct.js"); var getIteratorFlattenable = __webpack_require__(/*! ../internals/get-iterator-flattenable */ "./node_modules/core-js/internals/get-iterator-flattenable.js"); var createIteratorProxy = __webpack_require__(/*! ../internals/iterator-create-proxy */ "./node_modules/core-js/internals/iterator-create-proxy.js"); var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "./node_modules/core-js/internals/iterator-close.js"); var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "./node_modules/core-js/internals/is-pure.js"); var IteratorProxy = createIteratorProxy(function () { var iterator = this.iterator; var mapper = this.mapper; var result, inner; while (true) { if (inner = this.inner) try { result = anObject(call(inner.next, inner.iterator)); if (!result.done) return result.value; this.inner = null; } catch (error) { iteratorClose(iterator, 'throw', error); } result = anObject(call(this.next, iterator)); if (this.done = !!result.done) return; try { this.inner = getIteratorFlattenable(mapper(result.value, this.counter++), false); } catch (error) { iteratorClose(iterator, 'throw', error); } } }); // `Iterator.prototype.flatMap` method // https://github.com/tc39/proposal-iterator-helpers $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { flatMap: function flatMap(mapper) { anObject(this); aCallable(mapper); return new IteratorProxy(getIteratorDirect(this), { mapper: mapper, inner: null }); } }); /***/ }), /***/ "./node_modules/core-js/modules/esnext.iterator.to-array.js": /*!******************************************************************!*\ !*** ./node_modules/core-js/modules/esnext.iterator.to-array.js ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js"); var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js"); var iterate = __webpack_require__(/*! ../internals/iterate */ "./node_modules/core-js/internals/iterate.js"); var getIteratorDirect = __webpack_require__(/*! ../internals/get-iterator-direct */ "./node_modules/core-js/internals/get-iterator-direct.js"); var push = [].push; // `Iterator.prototype.toArray` method // https://github.com/tc39/proposal-iterator-helpers $({ target: 'Iterator', proto: true, real: true }, { toArray: function toArray() { var result = []; iterate(getIteratorDirect(anObject(this)), push, { that: result, IS_RECORD: true }); return result; } }); /***/ }), /***/ "./node_modules/core-util-is/lib/util.js": /*!***********************************************!*\ !*** ./node_modules/core-util-is/lib/util.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // NOTE: These type checking functions intentionally don't use `instanceof` // because it is fragile and can be easily faked with `Object.create()`. function isArray(arg) { if (Array.isArray) { return Array.isArray(arg); } return objectToString(arg) === '[object Array]'; } exports.isArray = isArray; function isBoolean(arg) { return typeof arg === 'boolean'; } exports.isBoolean = isBoolean; function isNull(arg) { return arg === null; } exports.isNull = isNull; function isNullOrUndefined(arg) { return arg == null; } exports.isNullOrUndefined = isNullOrUndefined; function isNumber(arg) { return typeof arg === 'number'; } exports.isNumber = isNumber; function isString(arg) { return typeof arg === 'string'; } exports.isString = isString; function isSymbol(arg) { return typeof arg === 'symbol'; } exports.isSymbol = isSymbol; function isUndefined(arg) { return arg === void 0; } exports.isUndefined = isUndefined; function isRegExp(re) { return objectToString(re) === '[object RegExp]'; } exports.isRegExp = isRegExp; function isObject(arg) { return typeof arg === 'object' && arg !== null; } exports.isObject = isObject; function isDate(d) { return objectToString(d) === '[object Date]'; } exports.isDate = isDate; function isError(e) { return (objectToString(e) === '[object Error]' || e instanceof Error); } exports.isError = isError; function isFunction(arg) { return typeof arg === 'function'; } exports.isFunction = isFunction; function isPrimitive(arg) { return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || // ES6 symbol typeof arg === 'undefined'; } exports.isPrimitive = isPrimitive; exports.isBuffer = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js").Buffer.isBuffer; function objectToString(o) { return Object.prototype.toString.call(o); } /***/ }), /***/ "./node_modules/dayjs/plugin/duration.js": /*!***********************************************!*\ !*** ./node_modules/dayjs/plugin/duration.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { !function(t,s){ true?module.exports=s():undefined}(this,(function(){"use strict";var t,s,n=1e3,i=6e4,e=36e5,r=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,d=2628e6,a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:u,months:d,days:r,hours:e,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},c=function(t){return t instanceof g},f=function(t,s,n){return new g(t,n,s.$l)},m=function(t){return s.p(t)+"s"},l=function(t){return t<0},$=function(t){return l(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},v=function(t,s){return t?l(t)?{negative:!0,format:""+y(t)+s}:{negative:!1,format:""+t+s}:{negative:!1,format:""}},g=function(){function l(t,s,n){var i=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),s)return f(t*h[m(s)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(s){i.$d[m(s)]=t[s]})),this.calMilliseconds(),this;if("string"==typeof t){var e=t.match(a);if(e){var r=e.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=r[0],this.$d.months=r[1],this.$d.weeks=r[2],this.$d.days=r[3],this.$d.hours=r[4],this.$d.minutes=r[5],this.$d.seconds=r[6],this.calMilliseconds(),this}}return this}var y=l.prototype;return y.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(s,n){return s+(t.$d[n]||0)*h[n]}),0)},y.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=$(t/u),t%=u,this.$d.months=$(t/d),t%=d,this.$d.days=$(t/r),t%=r,this.$d.hours=$(t/e),t%=e,this.$d.minutes=$(t/i),t%=i,this.$d.seconds=$(t/n),t%=n,this.$d.milliseconds=t},y.toISOString=function(){var t=v(this.$d.years,"Y"),s=v(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=v(n,"D"),e=v(this.$d.hours,"H"),r=v(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var u=v(o,"S"),d=t.negative||s.negative||i.negative||e.negative||r.negative||u.negative,a=e.format||r.format||u.format?"T":"",h=(d?"-":"")+"P"+t.format+s.format+i.format+a+e.format+r.format+u.format;return"P"===h||"-P"===h?"P0D":h},y.toJSON=function(){return this.toISOString()},y.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",i={Y:this.$d.years,YY:s.s(this.$d.years,2,"0"),YYYY:s.s(this.$d.years,4,"0"),M:this.$d.months,MM:s.s(this.$d.months,2,"0"),D:this.$d.days,DD:s.s(this.$d.days,2,"0"),H:this.$d.hours,HH:s.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,"0"),SSS:s.s(this.$d.milliseconds,3,"0")};return n.replace(o,(function(t,s){return s||String(i[t])}))},y.as=function(t){return this.$ms/h[m(t)]},y.get=function(t){var s=this.$ms,n=m(t);return"milliseconds"===n?s%=1e3:s="weeks"===n?$(s/h[n]):this.$d[n],s||0},y.add=function(t,s,n){var i;return i=s?t*h[m(s)]:c(t)?t.$ms:f(t,this).$ms,f(this.$ms+i*(n?-1:1),this)},y.subtract=function(t,s){return this.add(t,s,!0)},y.locale=function(t){var s=this.clone();return s.$l=t,s},y.clone=function(){return f(this.$ms,this)},y.humanize=function(s){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!s)},y.valueOf=function(){return this.asMilliseconds()},y.milliseconds=function(){return this.get("milliseconds")},y.asMilliseconds=function(){return this.as("milliseconds")},y.seconds=function(){return this.get("seconds")},y.asSeconds=function(){return this.as("seconds")},y.minutes=function(){return this.get("minutes")},y.asMinutes=function(){return this.as("minutes")},y.hours=function(){return this.get("hours")},y.asHours=function(){return this.as("hours")},y.days=function(){return this.get("days")},y.asDays=function(){return this.as("days")},y.weeks=function(){return this.get("weeks")},y.asWeeks=function(){return this.as("weeks")},y.months=function(){return this.get("months")},y.asMonths=function(){return this.as("months")},y.years=function(){return this.get("years")},y.asYears=function(){return this.as("years")},l}(),p=function(t,s,n){return t.add(s.years()*n,"y").add(s.months()*n,"M").add(s.days()*n,"d").add(s.hours()*n,"h").add(s.minutes()*n,"m").add(s.seconds()*n,"s").add(s.milliseconds()*n,"ms")};return function(n,i,e){t=e,s=e().$utils(),e.duration=function(t,s){var n=e.locale();return f(t,{$l:n},s)},e.isDuration=c;var r=i.prototype.add,o=i.prototype.subtract;i.prototype.add=function(t,s){return c(t)?p(this,t,1):r.bind(this)(t,s)},i.prototype.subtract=function(t,s){return c(t)?p(this,t,-1):o.bind(this)(t,s)}}})); /***/ }), /***/ "./node_modules/debug/src/browser.js": /*!*******************************************!*\ !*** ./node_modules/debug/src/browser.js ***! \*******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/* eslint-env browser */ /** * This is the web browser implementation of `debug()`. */ exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = localstorage(); exports.destroy = (() => { let warned = false; return () => { if (!warned) { warned = true; console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); } }; })(); /** * Colors. */ exports.colors = [ '#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33' ]; /** * Currently only WebKit-based Web Inspectors, Firefox >= v31, * and the Firebug extension (any Firefox version) are known * to support "%c" CSS customizations. * * TODO: add a `localStorage` variable to explicitly enable/disable colors */ // eslint-disable-next-line complexity function useColors() { // NB: In an Electron preload script, document will be defined but not fully // initialized. Since we know we're in Chrome, we'll just detect this case // explicitly if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { return true; } // Internet Explorer and Edge do not support colors. if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { return false; } // Is webkit? http://stackoverflow.com/a/16459606/376773 // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || // Is firebug? http://stackoverflow.com/a/398120/376773 (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || // Is firefox >= v31? // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || // Double check webkit in userAgent just in case we are in a worker (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); } /** * Colorize log arguments if enabled. * * @api public */ function formatArgs(args) { args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff); if (!this.useColors) { return; } const c = 'color: ' + this.color; args.splice(1, 0, c, 'color: inherit'); // The final "%c" is somewhat tricky, because there could be other // arguments passed either before or after the %c, so we need to // figure out the correct index to insert the CSS into let index = 0; let lastC = 0; args[0].replace(/%[a-zA-Z%]/g, match => { if (match === '%%') { return; } index++; if (match === '%c') { // We only are interested in the *last* %c // (the user may have provided their own) lastC = index; } }); args.splice(lastC, 0, c); } /** * Invokes `console.debug()` when available. * No-op when `console.debug` is not a "function". * If `console.debug` is not available, falls back * to `console.log`. * * @api public */ exports.log = console.debug || console.log || (() => {}); /** * Save `namespaces`. * * @param {String} namespaces * @api private */ function save(namespaces) { try { if (namespaces) { exports.storage.setItem('debug', namespaces); } else { exports.storage.removeItem('debug'); } } catch (error) { // Swallow // XXX (@Qix-) should we be logging these? } } /** * Load `namespaces`. * * @return {String} returns the previously persisted debug modes * @api private */ function load() { let r; try { r = exports.storage.getItem('debug'); } catch (error) { // Swallow // XXX (@Qix-) should we be logging these? } // If debug isn't set in LS, and we're in Electron, try to load $DEBUG if (!r && typeof process !== 'undefined' && 'env' in process) { r = Object({"NODE_ENV":"staging","VUE_APP_ENV":"staging","VUE_APP_API_ROOT":"/dispatch","VUE_APP_API_WS":"wss://v5qy.te.baibaodun.com.cn/dispatch","VUE_APP_BCX_API_URL":"https://identify.test.bcxin.com.cn","VUE_APP_SDK_IM_ID":"1400522511","VUE_APP_SDK_TRTC_ID":"1400522511","VUE_APP_SECRETE_KEY":"5d0e73298984029fab13f00137a666b924a8d51d88287cbc4a1b78b7c3e98210","VUE_APP_IM_AUDIO_API":"/IMAudio","VUE_APP_PTT_SERVER":"wss://ssl.baibaodun.cn:9007","VUE_APP_GWSD_WS_SERVER":"wss://ssl.baibaodun.cn:8989","VUE_APP_GWSD_CMD_SERVER":"wss://ssl.baibaodun.cn:8084","VUE_APP_GWSD_API_ROOT":"/pttApi","VUE_APP_PTT_ADMIN_NAME":"ttadmin3","VUE_APP_UPLOAD_FILE_API":"https://v5qy.te.baibaodun.com.cn/v3/shared/common/resources","VUE_APP_MAP_TYPE":"tianditu","VUE_APP_API":"https://v5qy.te.baibaodun.com.cn","VUE_APP_ENABLE_SCREEN":"true","VUE_APP_DISPALY_RISK_CIRCLE":"true","VUE_APP_SYSTEM_REGION":"1405","BASE_URL":"","PACKAGE_VERSION":"1.0.0-202566151.20250606150112"}).DEBUG; } return r; } /** * Localstorage attempts to return the localstorage. * * This is necessary because safari throws * when a user disables cookies/localstorage * and you attempt to access it. * * @return {LocalStorage} * @api private */ function localstorage() { try { // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context // The Browser also has localStorage in the global context. return localStorage; } catch (error) { // Swallow // XXX (@Qix-) should we be logging these? } } module.exports = __webpack_require__(/*! ./common */ "./node_modules/debug/src/common.js")(exports); const {formatters} = module.exports; /** * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. */ formatters.j = function (v) { try { return JSON.stringify(v); } catch (error) { return '[UnexpectedJSONParseError]: ' + error.message; } }; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/debug/src/common.js": /*!******************************************!*\ !*** ./node_modules/debug/src/common.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /** * This is the common logic for both the Node.js and web browser * implementations of `debug()`. */ function setup(env) { createDebug.debug = createDebug; createDebug.default = createDebug; createDebug.coerce = coerce; createDebug.disable = disable; createDebug.enable = enable; createDebug.enabled = enabled; createDebug.humanize = __webpack_require__(/*! ms */ "./node_modules/ms/index.js"); createDebug.destroy = destroy; Object.keys(env).forEach(key => { createDebug[key] = env[key]; }); /** * The currently active debug mode names, and names to skip. */ createDebug.names = []; createDebug.skips = []; /** * Map of special "%n" handling functions, for the debug "format" argument. * * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". */ createDebug.formatters = {}; /** * Selects a color for a debug namespace * @param {String} namespace The namespace string for the debug instance to be colored * @return {Number|String} An ANSI color code for the given namespace * @api private */ function selectColor(namespace) { let hash = 0; for (let i = 0; i < namespace.length; i++) { hash = ((hash << 5) - hash) + namespace.charCodeAt(i); hash |= 0; // Convert to 32bit integer } return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; } createDebug.selectColor = selectColor; /** * Create a debugger with the given `namespace`. * * @param {String} namespace * @return {Function} * @api public */ function createDebug(namespace) { let prevTime; let enableOverride = null; let namespacesCache; let enabledCache; function debug(...args) { // Disabled? if (!debug.enabled) { return; } const self = debug; // Set `diff` timestamp const curr = Number(new Date()); const ms = curr - (prevTime || curr); self.diff = ms; self.prev = prevTime; self.curr = curr; prevTime = curr; args[0] = createDebug.coerce(args[0]); if (typeof args[0] !== 'string') { // Anything else let's inspect with %O args.unshift('%O'); } // Apply any `formatters` transformations let index = 0; args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { // If we encounter an escaped % then don't increase the array index if (match === '%%') { return '%'; } index++; const formatter = createDebug.formatters[format]; if (typeof formatter === 'function') { const val = args[index]; match = formatter.call(self, val); // Now we need to remove `args[index]` since it's inlined in the `format` args.splice(index, 1); index--; } return match; }); // Apply env-specific formatting (colors, etc.) createDebug.formatArgs.call(self, args); const logFn = self.log || createDebug.log; logFn.apply(self, args); } debug.namespace = namespace; debug.useColors = createDebug.useColors(); debug.color = createDebug.selectColor(namespace); debug.extend = extend; debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release. Object.defineProperty(debug, 'enabled', { enumerable: true, configurable: false, get: () => { if (enableOverride !== null) { return enableOverride; } if (namespacesCache !== createDebug.namespaces) { namespacesCache = createDebug.namespaces; enabledCache = createDebug.enabled(namespace); } return enabledCache; }, set: v => { enableOverride = v; } }); // Env-specific initialization logic for debug instances if (typeof createDebug.init === 'function') { createDebug.init(debug); } return debug; } function extend(namespace, delimiter) { const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); newDebug.log = this.log; return newDebug; } /** * Enables a debug mode by namespaces. This can include modes * separated by a colon and wildcards. * * @param {String} namespaces * @api public */ function enable(namespaces) { createDebug.save(namespaces); createDebug.namespaces = namespaces; createDebug.names = []; createDebug.skips = []; let i; const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); const len = split.length; for (i = 0; i < len; i++) { if (!split[i]) { // ignore empty strings continue; } namespaces = split[i].replace(/\*/g, '.*?'); if (namespaces[0] === '-') { createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$')); } else { createDebug.names.push(new RegExp('^' + namespaces + '$')); } } } /** * Disable debug output. * * @return {String} namespaces * @api public */ function disable() { const namespaces = [ ...createDebug.names.map(toNamespace), ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) ].join(','); createDebug.enable(''); return namespaces; } /** * Returns true if the given mode name is enabled, false otherwise. * * @param {String} name * @return {Boolean} * @api public */ function enabled(name) { if (name[name.length - 1] === '*') { return true; } let i; let len; for (i = 0, len = createDebug.skips.length; i < len; i++) { if (createDebug.skips[i].test(name)) { return false; } } for (i = 0, len = createDebug.names.length; i < len; i++) { if (createDebug.names[i].test(name)) { return true; } } return false; } /** * Convert regexp to namespace * * @param {RegExp} regxep * @return {String} namespace * @api private */ function toNamespace(regexp) { return regexp.toString() .substring(2, regexp.toString().length - 2) .replace(/\.\*\?$/, '*'); } /** * Coerce `val`. * * @param {Mixed} val * @return {Mixed} * @api private */ function coerce(val) { if (val instanceof Error) { return val.stack || val.message; } return val; } /** * XXX DO NOT USE. This is a temporary stub function. * XXX It WILL be removed in the next major release. */ function destroy() { console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); } createDebug.enable(createDebug.load()); return createDebug; } module.exports = setup; /***/ }), /***/ "./node_modules/draggable-vue-directive/dist/draggable.js": /*!****************************************************************!*\ !*** ./node_modules/draggable-vue-directive/dist/draggable.js ***! \****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); var ChangePositionType; (function (ChangePositionType) { ChangePositionType[ChangePositionType["Start"] = 1] = "Start"; ChangePositionType[ChangePositionType["End"] = 2] = "End"; ChangePositionType[ChangePositionType["Move"] = 3] = "Move"; })(ChangePositionType || (ChangePositionType = {})); function extractHandle(handle) { return handle && handle.$el || handle; } function getPosWithBoundaries(elementRect, boundingRect, left, top, boundingRectMargin) { if (boundingRectMargin === void 0) { boundingRectMargin = {}; } var adjustedPos = { left: left, top: top }; var height = elementRect.height, width = elementRect.width; var topRect = top, bottomRect = top + height, leftRect = left, rightRect = left + width; var marginTop = boundingRectMargin.top || 0, marginBottom = boundingRectMargin.bottom || 0, marginLeft = boundingRectMargin.left || 0, marginRight = boundingRectMargin.right || 0; var topBoundary = boundingRect.top + marginTop, bottomBoundary = boundingRect.bottom - marginBottom, leftBoundary = boundingRect.left + marginLeft, rightBoundary = boundingRect.right - marginRight; if (topRect < topBoundary) { adjustedPos.top = topBoundary; } else if (bottomRect > bottomBoundary) { adjustedPos.top = bottomBoundary - height; } if (leftRect < leftBoundary) { adjustedPos.left = leftBoundary; } else if (rightRect > rightBoundary) { adjustedPos.left = rightBoundary - width; } return adjustedPos; } exports.Draggable = { bind: function (el, binding, vnode, oldVnode) { exports.Draggable.update(el, binding, vnode, oldVnode); }, update: function (el, binding, vnode, oldVnode) { if (binding.value && binding.value.stopDragging) { return; } var handler = (binding.value && binding.value.handle && extractHandle(binding.value.handle)) || el; if (binding && binding.value && binding.value.resetInitialPos) { initializeState(); handlePositionChanged(); } if (!handler.getAttribute("draggable")) { el.removeEventListener("mousedown", el["listener"]); handler.addEventListener("mousedown", moveStart); el.removeEventListener("touchstart", el["listener"]); handler.addEventListener("touchstart", moveStart, { passive: false }); handler.setAttribute("draggable", "true"); el["listener"] = moveStart; initializeState(); handlePositionChanged(); } function move(event) { event.preventDefault(); var stopDragging = binding.value && binding.value.stopDragging; if (stopDragging) { return; } var state = getState(); if (!state.startDragPosition || !state.initialMousePos) { initializeState(event); state = getState(); } var pos = getInitialMousePosition(event); var dx = pos.left - state.initialMousePos.left; var dy = pos.top - state.initialMousePos.top; var currentDragPosition = { left: state.startDragPosition.left + dx, top: state.startDragPosition.top + dy }; var boundingRect = getBoundingRect(); var elementRect = el.getBoundingClientRect(); if (boundingRect && elementRect) { currentDragPosition = getPosWithBoundaries(elementRect, boundingRect, currentDragPosition.left, currentDragPosition.top, binding.value.boundingRectMargin); } setState({ currentDragPosition: currentDragPosition }); updateElementStyle(); handlePositionChanged(event); } function getBoundingRect() { if (!binding.value) { return; } return binding.value.boundingRect || binding.value.boundingElement && binding.value.boundingElement.getBoundingClientRect(); } function updateElementStyle() { var state = getState(); if (!state.currentDragPosition) { return; } el.style.touchAction = "none"; el.style.position = "fixed"; el.style.left = state.currentDragPosition.left + "px"; el.style.top = state.currentDragPosition.top + "px"; } function moveEnd(event) { event.preventDefault(); document.removeEventListener("mousemove", move); document.removeEventListener("mouseup", moveEnd); document.removeEventListener("touchmove", move); document.removeEventListener("touchend", moveEnd); var currentRectPosition = getRectPosition(); setState({ initialMousePos: undefined, startDragPosition: currentRectPosition, currentDragPosition: currentRectPosition }); handlePositionChanged(event, ChangePositionType.End); } function moveStart(event) { setState({ initialMousePos: getInitialMousePosition(event) }); handlePositionChanged(event, ChangePositionType.Start); document.addEventListener("mousemove", move); document.addEventListener("mouseup", moveEnd); document.addEventListener("touchmove", move); document.addEventListener("touchend", moveEnd); } function getInitialMousePosition(event) { if (event instanceof MouseEvent) { return { left: event.clientX, top: event.clientY }; } if (event instanceof TouchEvent) { var touch = event.changedTouches[event.changedTouches.length - 1]; return { left: touch.clientX, top: touch.clientY }; } } function getRectPosition() { var clientRect = el.getBoundingClientRect(); if (!clientRect.height || !clientRect.width) { return; } return { left: clientRect.left, top: clientRect.top }; } function initializeState(event) { var state = getState(); var initialRectPositionFromBinding = binding && binding.value && binding.value.initialPosition; var initialRectPositionFromState = state.initialPosition; var startingDragPosition = getRectPosition(); var initialPosition = initialRectPositionFromBinding || initialRectPositionFromState || startingDragPosition; setState({ initialPosition: initialPosition, startDragPosition: initialPosition, currentDragPosition: initialPosition, initialMousePos: getInitialMousePosition(event) }); updateElementStyle(); } function setState(partialState) { var prevState = getState(); var state = __assign(__assign({}, prevState), partialState); handler.setAttribute("draggable-state", JSON.stringify(state)); } function handlePositionChanged(event, changePositionType) { var state = getState(); var posDiff = { x: 0, y: 0 }; if (state.currentDragPosition && state.startDragPosition) { posDiff.x = state.currentDragPosition.left - state.startDragPosition.left; posDiff.y = state.currentDragPosition.top - state.startDragPosition.top; } var currentPosition = state.currentDragPosition && __assign({}, state.currentDragPosition); if (changePositionType === ChangePositionType.End) { binding.value && binding.value.onDragEnd && state && binding.value.onDragEnd(posDiff, currentPosition, event); } else if (changePositionType === ChangePositionType.Start) { binding.value && binding.value.onDragStart && state && binding.value.onDragStart(posDiff, currentPosition, event); } else { binding.value && binding.value.onPositionChange && state && binding.value.onPositionChange(posDiff, currentPosition, event); } } function getState() { return JSON.parse(handler.getAttribute("draggable-state")) || {}; } } }; //# sourceMappingURL=draggable.js.map /***/ }), /***/ "./node_modules/draggable-vue-directive/dist/index.js": /*!************************************************************!*\ !*** ./node_modules/draggable-vue-directive/dist/index.js ***! \************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var draggable_1 = __webpack_require__(/*! ./draggable */ "./node_modules/draggable-vue-directive/dist/draggable.js"); exports.Draggable = draggable_1.Draggable; //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/dunder-proto/get.js": /*!******************************************!*\ !*** ./node_modules/dunder-proto/get.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var callBind = __webpack_require__(/*! call-bind-apply-helpers */ "./node_modules/call-bind-apply-helpers/index.js"); var gOPD = __webpack_require__(/*! gopd */ "./node_modules/dunder-proto/node_modules/gopd/index.js"); var hasProtoAccessor; try { // eslint-disable-next-line no-extra-parens, no-proto hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype; } catch (e) { if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') { throw e; } } // eslint-disable-next-line no-extra-parens var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__')); var $Object = Object; var $getPrototypeOf = $Object.getPrototypeOf; /** @type {import('./get')} */ module.exports = desc && typeof desc.get === 'function' ? callBind([desc.get]) : typeof $getPrototypeOf === 'function' ? /** @type {import('./get')} */ function getDunder(value) { // eslint-disable-next-line eqeqeq return $getPrototypeOf(value == null ? value : $Object(value)); } : false; /***/ }), /***/ "./node_modules/dunder-proto/node_modules/gopd/gOPD.js": /*!*************************************************************!*\ !*** ./node_modules/dunder-proto/node_modules/gopd/gOPD.js ***! \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./gOPD')} */ module.exports = Object.getOwnPropertyDescriptor; /***/ }), /***/ "./node_modules/dunder-proto/node_modules/gopd/index.js": /*!**************************************************************!*\ !*** ./node_modules/dunder-proto/node_modules/gopd/index.js ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('.')} */ var $gOPD = __webpack_require__(/*! ./gOPD */ "./node_modules/dunder-proto/node_modules/gopd/gOPD.js"); if ($gOPD) { try { $gOPD([], 'length'); } catch (e) { // IE 8 has a broken gOPD $gOPD = null; } } module.exports = $gOPD; /***/ }), /***/ "./node_modules/echarts/index.js": /*!***************************************!*\ !*** ./node_modules/echarts/index.js ***! \***************************************/ /*! exports provided: version, dependencies, PRIORITY, init, connect, disconnect, disConnect, dispose, getInstanceByDom, getInstanceById, registerTheme, registerPreprocessor, registerProcessor, registerPostInit, registerPostUpdate, registerUpdateLifecycle, registerAction, registerCoordinateSystem, getCoordinateSystemDimensions, registerLocale, registerLayout, registerVisual, registerLoading, setCanvasCreator, registerMap, getMap, registerTransform, dataTool, zrender, matrix, vector, zrUtil, color, throttle, helper, use, setPlatformAPI, parseGeoJSON, parseGeoJson, number, time, graphic, format, util, env, List, Model, Axis, ComponentModel, ComponentView, SeriesModel, ChartView, innerDrawElementOnCanvas, extendComponentModel, extendComponentView, extendSeriesModel, extendChartView */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _lib_extension_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lib/extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lib/export/core.js */ "./node_modules/echarts/lib/export/core.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["version"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dependencies", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["dependencies"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PRIORITY", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["PRIORITY"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "init", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["init"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "connect", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["connect"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "disconnect", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["disconnect"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "disConnect", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["disConnect"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dispose", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["dispose"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getInstanceByDom", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["getInstanceByDom"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getInstanceById", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["getInstanceById"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerTheme", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerTheme"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerPreprocessor", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerPreprocessor"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerProcessor", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerProcessor"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerPostInit", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerPostInit"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerPostUpdate", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerPostUpdate"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerUpdateLifecycle", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerUpdateLifecycle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerAction", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerAction"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerCoordinateSystem", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerCoordinateSystem"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getCoordinateSystemDimensions", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["getCoordinateSystemDimensions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerLocale", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerLocale"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerLayout", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerLayout"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerVisual", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerVisual"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerLoading", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerLoading"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setCanvasCreator", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["setCanvasCreator"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerMap", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerMap"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getMap", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["getMap"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerTransform", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["registerTransform"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dataTool", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["dataTool"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zrender", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["zrender"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "matrix", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["matrix"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "vector", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["vector"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zrUtil", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["zrUtil"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "color", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["color"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "throttle", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["throttle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "helper", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["helper"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "use", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["use"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setPlatformAPI", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["setPlatformAPI"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseGeoJSON", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["parseGeoJSON"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseGeoJson", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["parseGeoJson"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "number", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["number"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "time", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["time"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "graphic", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["graphic"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "format", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["format"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "util", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["util"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "env", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["env"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["List"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Model", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["Model"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Axis", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["Axis"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentModel", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["ComponentModel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentView", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["ComponentView"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SeriesModel", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["SeriesModel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChartView", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["ChartView"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "innerDrawElementOnCanvas", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["innerDrawElementOnCanvas"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendComponentModel", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["extendComponentModel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendComponentView", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["extendComponentView"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendSeriesModel", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["extendSeriesModel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendChartView", function() { return _lib_export_core_js__WEBPACK_IMPORTED_MODULE_1__["extendChartView"]; }); /* harmony import */ var _lib_export_renderers_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/export/renderers.js */ "./node_modules/echarts/lib/export/renderers.js"); /* harmony import */ var _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/export/charts.js */ "./node_modules/echarts/lib/export/charts.js"); /* harmony import */ var _lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/export/components.js */ "./node_modules/echarts/lib/export/components.js"); /* harmony import */ var _lib_export_features_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/export/features.js */ "./node_modules/echarts/lib/export/features.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // ---------------------------------------------- // All of the modules that are allowed to be // imported are listed below. // // Users MUST NOT import other modules that are // not included in this list. // ---------------------------------------------- // ----------------- // Render engines // ----------------- // Render via Canvas. // echarts.init(dom, null, { renderer: 'canvas' }) Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])([_lib_export_renderers_js__WEBPACK_IMPORTED_MODULE_2__["CanvasRenderer"]]); // Render via SVG. // echarts.init(dom, null, { renderer: 'svg' }) Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])([_lib_export_renderers_js__WEBPACK_IMPORTED_MODULE_2__["SVGRenderer"]]); // ---------------- // Charts (series) // ---------------- // All of the series types, for example: // chart.setOption({ // series: [{ // type: 'line' // or 'bar', 'pie', ... // }] // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])([_lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["LineChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["BarChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["PieChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["ScatterChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["RadarChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["MapChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["TreeChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["TreemapChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["GraphChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["GaugeChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["FunnelChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["ParallelChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["SankeyChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["BoxplotChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["CandlestickChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["EffectScatterChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["LinesChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["HeatmapChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["PictorialBarChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["ThemeRiverChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["SunburstChart"], _lib_export_charts_js__WEBPACK_IMPORTED_MODULE_3__["CustomChart"]]); // ------------------- // Coordinate systems // ------------------- // All of the axis modules have been included in the // coordinate system module below, do not need to // make extra import. // `cartesian` coordinate system. For some historical // reasons, it is named as grid, for example: // chart.setOption({ // grid: {...}, // xAxis: {...}, // yAxis: {...}, // series: [{...}] // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["GridComponent"]); // `polar` coordinate system, for example: // chart.setOption({ // polar: {...}, // radiusAxis: {...}, // angleAxis: {...}, // series: [{ // coordinateSystem: 'polar' // }] // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["PolarComponent"]); // `geo` coordinate system, for example: // chart.setOption({ // geo: {...}, // series: [{ // coordinateSystem: 'geo' // }] // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["GeoComponent"]); // `singleAxis` coordinate system (notice, it is a coordinate system // with only one axis, work for chart like theme river), for example: // chart.setOption({ // singleAxis: {...} // series: [{type: 'themeRiver', ...}] // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["SingleAxisComponent"]); // `parallel` coordinate system, only work for parallel series, for example: // chart.setOption({ // parallel: {...}, // parallelAxis: [{...}, ...], // series: [{ // type: 'parallel' // }] // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["ParallelComponent"]); // `calendar` coordinate system. for example, // chart.setOption({ // calendar: {...}, // series: [{ // coordinateSystem: 'calendar' // }] // ); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["CalendarComponent"]); // ------------------ // Other components // ------------------ // `graphic` component, for example: // chart.setOption({ // graphic: {...} // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["GraphicComponent"]); // `toolbox` component, for example: // chart.setOption({ // toolbox: {...} // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["ToolboxComponent"]); // `tooltip` component, for example: // chart.setOption({ // tooltip: {...} // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["TooltipComponent"]); // `axisPointer` component, for example: // chart.setOption({ // tooltip: {axisPointer: {...}, ...} // }); // Or // chart.setOption({ // axisPointer: {...} // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["AxisPointerComponent"]); // `brush` component, for example: // chart.setOption({ // brush: {...} // }); // Or // chart.setOption({ // tooltip: {feature: {brush: {...}} // }) Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["BrushComponent"]); // `title` component, for example: // chart.setOption({ // title: {...} // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["TitleComponent"]); // `timeline` component, for example: // chart.setOption({ // timeline: {...} // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["TimelineComponent"]); // `markPoint` component, for example: // chart.setOption({ // series: [{markPoint: {...}}] // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["MarkPointComponent"]); // `markLine` component, for example: // chart.setOption({ // series: [{markLine: {...}}] // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["MarkLineComponent"]); // `markArea` component, for example: // chart.setOption({ // series: [{markArea: {...}}] // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["MarkAreaComponent"]); // `legend` component not scrollable. for example: // chart.setOption({ // legend: {...} // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["LegendComponent"]); // `dataZoom` component including both `dataZoomInside` and `dataZoomSlider`. Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["DataZoomComponent"]); // `dataZoom` component providing drag, pinch, wheel behaviors // inside coordinate system, for example: // chart.setOption({ // dataZoom: {type: 'inside'} // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["DataZoomInsideComponent"]); // `dataZoom` component providing a slider bar, for example: // chart.setOption({ // dataZoom: {type: 'slider'} // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["DataZoomSliderComponent"]); // `visualMap` component including both `visualMapContinuous` and `visualMapPiecewise`. Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["VisualMapComponent"]); // `visualMap` component providing continuous bar, for example: // chart.setOption({ // visualMap: {type: 'continuous'} // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["VisualMapContinuousComponent"]); // `visualMap` component providing pieces bar, for example: // chart.setOption({ // visualMap: {type: 'piecewise'} // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["VisualMapPiecewiseComponent"]); // `aria` component providing aria, for example: // chart.setOption({ // aria: {...} // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["AriaComponent"]); // dataset transform // chart.setOption({ // dataset: { // transform: [] // } // }); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["TransformComponent"]); Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_components_js__WEBPACK_IMPORTED_MODULE_4__["DatasetComponent"]); // universal transition // chart.setOption({ // series: { // universalTransition: { enabled: true } // } // }) Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_features_js__WEBPACK_IMPORTED_MODULE_5__["UniversalTransition"]); // label layout // chart.setOption({ // series: { // labelLayout: { hideOverlap: true } // } // }) Object(_lib_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_lib_export_features_js__WEBPACK_IMPORTED_MODULE_5__["LabelLayout"]); /***/ }), /***/ "./node_modules/echarts/lib/action/roamHelper.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/action/roamHelper.js ***! \*******************************************************/ /*! exports provided: updateCenterAndZoom */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateCenterAndZoom", function() { return updateCenterAndZoom; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getCenterCoord(view, point) { // Use projected coord as center because it's linear. return view.pointToProjected ? view.pointToProjected(point) : view.pointToData(point); } function updateCenterAndZoom(view, payload, zoomLimit, api) { var previousZoom = view.getZoom(); var center = view.getCenter(); var zoom = payload.zoom; var point = view.projectedToPoint ? view.projectedToPoint(center) : view.dataToPoint(center); if (payload.dx != null && payload.dy != null) { point[0] -= payload.dx; point[1] -= payload.dy; view.setCenter(getCenterCoord(view, point), api); } if (zoom != null) { if (zoomLimit) { var zoomMin = zoomLimit.min || 0; var zoomMax = zoomLimit.max || Infinity; zoom = Math.max(Math.min(previousZoom * zoom, zoomMax), zoomMin) / previousZoom; } // Zoom on given point(originX, originY) view.scaleX *= zoom; view.scaleY *= zoom; var fixX = (payload.originX - view.x) * (zoom - 1); var fixY = (payload.originY - view.y) * (zoom - 1); view.x -= fixX; view.y -= fixY; view.updateTransform(); // Get the new center view.setCenter(getCenterCoord(view, point), api); view.setZoom(zoom * previousZoom); } return { center: view.getCenter(), zoom: view.getZoom() }; } /***/ }), /***/ "./node_modules/echarts/lib/animation/basicTransition.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/animation/basicTransition.js ***! \***************************************************************/ /*! exports provided: transitionStore, getAnimationConfig, updateProps, initProps, isElementRemoved, removeElement, removeElementWithFadeOut, saveOldStyle, getOldStyle */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transitionStore", function() { return transitionStore; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAnimationConfig", function() { return getAnimationConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateProps", function() { return updateProps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initProps", function() { return initProps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isElementRemoved", function() { return isElementRemoved; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeElement", function() { return removeElement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeElementWithFadeOut", function() { return removeElementWithFadeOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveOldStyle", function() { return saveOldStyle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOldStyle", function() { return getOldStyle; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Stored properties for further transition. var transitionStore = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_1__["makeInner"])(); /** * Return null if animation is disabled. */ function getAnimationConfig(animationType, animatableModel, dataIndex, // Extra opts can override the option in animatable model. extraOpts, // TODO It's only for pictorial bar now. extraDelayParams) { var animationPayload; // Check if there is global animation configuration from dataZoom/resize can override the config in option. // If animation is enabled. Will use this animation config in payload. // If animation is disabled. Just ignore it. if (animatableModel && animatableModel.ecModel) { var updatePayload = animatableModel.ecModel.getUpdatePayload(); animationPayload = updatePayload && updatePayload.animation; } var animationEnabled = animatableModel && animatableModel.isAnimationEnabled(); var isUpdate = animationType === 'update'; if (animationEnabled) { var duration = void 0; var easing = void 0; var delay = void 0; if (extraOpts) { duration = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(extraOpts.duration, 200); easing = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(extraOpts.easing, 'cubicOut'); delay = 0; } else { duration = animatableModel.getShallow(isUpdate ? 'animationDurationUpdate' : 'animationDuration'); easing = animatableModel.getShallow(isUpdate ? 'animationEasingUpdate' : 'animationEasing'); delay = animatableModel.getShallow(isUpdate ? 'animationDelayUpdate' : 'animationDelay'); } // animation from payload has highest priority. if (animationPayload) { animationPayload.duration != null && (duration = animationPayload.duration); animationPayload.easing != null && (easing = animationPayload.easing); animationPayload.delay != null && (delay = animationPayload.delay); } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(delay)) { delay = delay(dataIndex, extraDelayParams); } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(duration)) { duration = duration(dataIndex); } var config = { duration: duration || 0, delay: delay, easing: easing }; return config; } else { return null; } } function animateOrSetProps(animationType, el, props, animatableModel, dataIndex, cb, during) { var isFrom = false; var removeOpt; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(dataIndex)) { during = cb; cb = dataIndex; dataIndex = null; } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(dataIndex)) { cb = dataIndex.cb; during = dataIndex.during; isFrom = dataIndex.isFrom; removeOpt = dataIndex.removeOpt; dataIndex = dataIndex.dataIndex; } var isRemove = animationType === 'leave'; if (!isRemove) { // Must stop the remove animation. el.stopAnimation('leave'); } var animationConfig = getAnimationConfig(animationType, animatableModel, dataIndex, isRemove ? removeOpt || {} : null, animatableModel && animatableModel.getAnimationDelayParams ? animatableModel.getAnimationDelayParams(el, dataIndex) : null); if (animationConfig && animationConfig.duration > 0) { var duration = animationConfig.duration; var animationDelay = animationConfig.delay; var animationEasing = animationConfig.easing; var animateConfig = { duration: duration, delay: animationDelay || 0, easing: animationEasing, done: cb, force: !!cb || !!during, // Set to final state in update/init animation. // So the post processing based on the path shape can be done correctly. setToFinal: !isRemove, scope: animationType, during: during }; isFrom ? el.animateFrom(props, animateConfig) : el.animateTo(props, animateConfig); } else { el.stopAnimation(); // If `isFrom`, the props is the "from" props. !isFrom && el.attr(props); // Call during at least once. during && during(1); cb && cb(); } } /** * Update graphic element properties with or without animation according to the * configuration in series. * * Caution: this method will stop previous animation. * So do not use this method to one element twice before * animation starts, unless you know what you are doing. * @example * graphic.updateProps(el, { * position: [100, 100] * }, seriesModel, dataIndex, function () { console.log('Animation done!'); }); * // Or * graphic.updateProps(el, { * position: [100, 100] * }, seriesModel, function () { console.log('Animation done!'); }); */ function updateProps(el, props, // TODO: TYPE AnimatableModel animatableModel, dataIndex, cb, during) { animateOrSetProps('update', el, props, animatableModel, dataIndex, cb, during); } /** * Init graphic element properties with or without animation according to the * configuration in series. * * Caution: this method will stop previous animation. * So do not use this method to one element twice before * animation starts, unless you know what you are doing. */ function initProps(el, props, animatableModel, dataIndex, cb, during) { animateOrSetProps('enter', el, props, animatableModel, dataIndex, cb, during); } /** * If element is removed. * It can determine if element is having remove animation. */ function isElementRemoved(el) { if (!el.__zr) { return true; } for (var i = 0; i < el.animators.length; i++) { var animator = el.animators[i]; if (animator.scope === 'leave') { return true; } } return false; } /** * Remove graphic element */ function removeElement(el, props, animatableModel, dataIndex, cb, during) { // Don't do remove animation twice. if (isElementRemoved(el)) { return; } animateOrSetProps('leave', el, props, animatableModel, dataIndex, cb, during); } function fadeOutDisplayable(el, animatableModel, dataIndex, done) { el.removeTextContent(); el.removeTextGuideLine(); removeElement(el, { style: { opacity: 0 } }, animatableModel, dataIndex, done); } function removeElementWithFadeOut(el, animatableModel, dataIndex) { function doRemove() { el.parent && el.parent.remove(el); } // Hide label and labelLine first // TODO Also use fade out animation? if (!el.isGroup) { fadeOutDisplayable(el, animatableModel, dataIndex, doRemove); } else { el.traverse(function (disp) { if (!disp.isGroup) { // Can invoke doRemove multiple times. fadeOutDisplayable(disp, animatableModel, dataIndex, doRemove); } }); } } /** * Save old style for style transition in universalTransition module. * It's used when element will be reused in each render. * For chart like map, heatmap, which will always create new element. * We don't need to save this because universalTransition can get old style from the old element */ function saveOldStyle(el) { transitionStore(el).oldStyle = el.style; } function getOldStyle(el) { return transitionStore(el).oldStyle; } /***/ }), /***/ "./node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js": /*!******************************************************************************!*\ !*** ./node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js ***! \******************************************************************************/ /*! exports provided: stopPreviousKeyframeAnimationAndRestore, applyKeyframeAnimation */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stopPreviousKeyframeAnimationAndRestore", function() { return stopPreviousKeyframeAnimationAndRestore; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyKeyframeAnimation", function() { return applyKeyframeAnimation; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./customGraphicTransition.js */ "./node_modules/echarts/lib/animation/customGraphicTransition.js"); /* harmony import */ var _basicTransition_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var getStateToRestore = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_4__["makeInner"])(); var KEYFRAME_EXCLUDE_KEYS = ['percent', 'easing', 'shape', 'style', 'extra']; /** * Stop previous keyframe animation and restore the attributes. * Avoid new keyframe animation starts with wrong internal state when the percent: 0 is not set. */ function stopPreviousKeyframeAnimationAndRestore(el) { // Stop previous keyframe animation. el.stopAnimation('keyframe'); // Restore el.attr(getStateToRestore(el)); } function applyKeyframeAnimation(el, animationOpts, animatableModel) { if (!animatableModel.isAnimationEnabled() || !animationOpts) { return; } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(animationOpts)) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(animationOpts, function (singleAnimationOpts) { applyKeyframeAnimation(el, singleAnimationOpts, animatableModel); }); return; } var keyframes = animationOpts.keyframes; var duration = animationOpts.duration; if (animatableModel && duration == null) { // Default to use duration of config. // NOTE: animation config from payload will be ignored because they are mainly for transitions. var config = Object(_basicTransition_js__WEBPACK_IMPORTED_MODULE_2__["getAnimationConfig"])('enter', animatableModel, 0); duration = config && config.duration; } if (!keyframes || !duration) { return; } var stateToRestore = getStateToRestore(el); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(_customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_1__["ELEMENT_ANIMATABLE_PROPS"], function (targetPropName) { if (targetPropName && !el[targetPropName]) { return; } var animator; var endFrameIsSet = false; // Sort keyframes by percent. keyframes.sort(function (a, b) { return a.percent - b.percent; }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(keyframes, function (kf) { // Stop current animation. var animators = el.animators; var kfValues = targetPropName ? kf[targetPropName] : kf; if (true) { if (kf.percent >= 1) { endFrameIsSet = true; } } if (!kfValues) { return; } var propKeys = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["keys"])(kfValues); if (!targetPropName) { // PENDING performance? propKeys = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["filter"])(propKeys, function (key) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"])(KEYFRAME_EXCLUDE_KEYS, key) < 0; }); } if (!propKeys.length) { return; } if (!animator) { animator = el.animate(targetPropName, animationOpts.loop, true); animator.scope = 'keyframe'; } for (var i = 0; i < animators.length; i++) { // Stop all other animation that is not keyframe. if (animators[i] !== animator && animators[i].targetName === animator.targetName) { animators[i].stopTracks(propKeys); } } targetPropName && (stateToRestore[targetPropName] = stateToRestore[targetPropName] || {}); var savedTarget = targetPropName ? stateToRestore[targetPropName] : stateToRestore; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(propKeys, function (key) { // Save original value. savedTarget[key] = ((targetPropName ? el[targetPropName] : el) || {})[key]; }); animator.whenWithKeys(duration * kf.percent, kfValues, propKeys, kf.easing); }); if (!animator) { return; } if (true) { if (!endFrameIsSet) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["warn"])('End frame with percent: 1 is missing in the keyframeAnimation.', true); } } animator.delay(animationOpts.delay || 0).duration(duration).start(animationOpts.easing); }); } /***/ }), /***/ "./node_modules/echarts/lib/animation/customGraphicTransition.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/animation/customGraphicTransition.js ***! \***********************************************************************/ /*! exports provided: ELEMENT_ANIMATABLE_PROPS, applyUpdateTransition, updateLeaveTo, applyLeaveTransition, isTransitionAll */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ELEMENT_ANIMATABLE_PROPS", function() { return ELEMENT_ANIMATABLE_PROPS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyUpdateTransition", function() { return applyUpdateTransition; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateLeaveTo", function() { return updateLeaveTo; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyLeaveTransition", function() { return applyLeaveTransition; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTransitionAll", function() { return isTransitionAll; }); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_animation_Animator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/animation/Animator.js */ "./node_modules/zrender/lib/animation/Animator.js"); /* harmony import */ var zrender_lib_graphic_Displayable_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/graphic/Displayable.js */ "./node_modules/zrender/lib/graphic/Displayable.js"); /* harmony import */ var _basicTransition_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! zrender/lib/core/Transformable.js */ "./node_modules/zrender/lib/core/Transformable.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var LEGACY_TRANSFORM_PROPS_MAP = { position: ['x', 'y'], scale: ['scaleX', 'scaleY'], origin: ['originX', 'originY'] }; var LEGACY_TRANSFORM_PROPS = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["keys"])(LEGACY_TRANSFORM_PROPS_MAP); var TRANSFORM_PROPS_MAP = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["reduce"])(zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_7__["TRANSFORMABLE_PROPS"], function (obj, key) { obj[key] = 1; return obj; }, {}); var transformPropNamesStr = zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_7__["TRANSFORMABLE_PROPS"].join(', '); // '' means root var ELEMENT_ANIMATABLE_PROPS = ['', 'style', 'shape', 'extra']; ; var transitionInnerStore = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["makeInner"])(); ; function getElementAnimationConfig(animationType, el, elOption, parentModel, dataIndex) { var animationProp = animationType + "Animation"; var config = Object(_basicTransition_js__WEBPACK_IMPORTED_MODULE_4__["getAnimationConfig"])(animationType, parentModel, dataIndex) || {}; var userDuring = transitionInnerStore(el).userDuring; // Only set when duration is > 0 and it's need to be animated. if (config.duration > 0) { // For simplicity, if during not specified, the previous during will not work any more. config.during = userDuring ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(duringCall, { el: el, userDuring: userDuring }) : null; config.setToFinal = true; config.scope = animationType; } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(config, elOption[animationProp]); return config; } function applyUpdateTransition(el, elOption, animatableModel, opts) { opts = opts || {}; var dataIndex = opts.dataIndex, isInit = opts.isInit, clearStyle = opts.clearStyle; var hasAnimation = animatableModel.isAnimationEnabled(); // Save the meta info for further morphing. Like apply on the sub morphing elements. var store = transitionInnerStore(el); var styleOpt = elOption.style; store.userDuring = elOption.during; var transFromProps = {}; var propsToSet = {}; prepareTransformAllPropsFinal(el, elOption, propsToSet); prepareShapeOrExtraAllPropsFinal('shape', elOption, propsToSet); prepareShapeOrExtraAllPropsFinal('extra', elOption, propsToSet); if (!isInit && hasAnimation) { prepareTransformTransitionFrom(el, elOption, transFromProps); prepareShapeOrExtraTransitionFrom('shape', el, elOption, transFromProps); prepareShapeOrExtraTransitionFrom('extra', el, elOption, transFromProps); prepareStyleTransitionFrom(el, elOption, styleOpt, transFromProps); } propsToSet.style = styleOpt; applyPropsDirectly(el, propsToSet, clearStyle); applyMiscProps(el, elOption); if (hasAnimation) { if (isInit) { var enterFromProps_1 = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(ELEMENT_ANIMATABLE_PROPS, function (propName) { var prop = propName ? elOption[propName] : elOption; if (prop && prop.enterFrom) { if (propName) { enterFromProps_1[propName] = enterFromProps_1[propName] || {}; } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(propName ? enterFromProps_1[propName] : enterFromProps_1, prop.enterFrom); } }); var config = getElementAnimationConfig('enter', el, elOption, animatableModel, dataIndex); if (config.duration > 0) { el.animateFrom(enterFromProps_1, config); } } else { applyPropsTransition(el, elOption, dataIndex || 0, animatableModel, transFromProps); } } // Store leave to be used in leave transition. updateLeaveTo(el, elOption); styleOpt ? el.dirty() : el.markRedraw(); } function updateLeaveTo(el, elOption) { // Try merge to previous set leaveTo var leaveToProps = transitionInnerStore(el).leaveToProps; for (var i = 0; i < ELEMENT_ANIMATABLE_PROPS.length; i++) { var propName = ELEMENT_ANIMATABLE_PROPS[i]; var prop = propName ? elOption[propName] : elOption; if (prop && prop.leaveTo) { if (!leaveToProps) { leaveToProps = transitionInnerStore(el).leaveToProps = {}; } if (propName) { leaveToProps[propName] = leaveToProps[propName] || {}; } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(propName ? leaveToProps[propName] : leaveToProps, prop.leaveTo); } } } function applyLeaveTransition(el, elOption, animatableModel, onRemove) { if (el) { var parent_1 = el.parent; var leaveToProps = transitionInnerStore(el).leaveToProps; if (leaveToProps) { // TODO TODO use leave after leaveAnimation in series is introduced // TODO Data index? var config = getElementAnimationConfig('update', el, elOption, animatableModel, 0); config.done = function () { parent_1.remove(el); onRemove && onRemove(); }; el.animateTo(leaveToProps, config); } else { parent_1.remove(el); onRemove && onRemove(); } } } function isTransitionAll(transition) { return transition === 'all'; } function applyPropsDirectly(el, // Can be null/undefined allPropsFinal, clearStyle) { var styleOpt = allPropsFinal.style; if (!el.isGroup && styleOpt) { if (clearStyle) { el.useStyle({}); // When style object changed, how to trade the existing animation? // It is probably complicated and not needed to cover all the cases. // But still need consider the case: // (1) When using init animation on `style.opacity`, and before the animation // ended users triggers an update by mousewhel. At that time the init // animation should better be continued rather than terminated. // So after `useStyle` called, we should change the animation target manually // to continue the effect of the init animation. // (2) PENDING: If the previous animation targeted at a `val1`, and currently we need // to update the value to `val2` and no animation declared, should be terminate // the previous animation or just modify the target of the animation? // Therotically That will happen not only on `style` but also on `shape` and // `transfrom` props. But we haven't handle this case at present yet. // (3) PENDING: Is it proper to visit `animators` and `targetName`? var animators = el.animators; for (var i = 0; i < animators.length; i++) { var animator = animators[i]; // targetName is the "topKey". if (animator.targetName === 'style') { animator.changeTarget(el.style); } } } el.setStyle(styleOpt); } if (allPropsFinal) { // Not set style here. allPropsFinal.style = null; // Set el to the final state firstly. allPropsFinal && el.attr(allPropsFinal); allPropsFinal.style = styleOpt; } } function applyPropsTransition(el, elOption, dataIndex, model, // Can be null/undefined transFromProps) { if (transFromProps) { var config = getElementAnimationConfig('update', el, elOption, model, dataIndex); if (config.duration > 0) { el.animateFrom(transFromProps, config); } } } function applyMiscProps(el, elOption) { // Merge by default. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(elOption, 'silent') && (el.silent = elOption.silent); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(elOption, 'ignore') && (el.ignore = elOption.ignore); if (el instanceof zrender_lib_graphic_Displayable_js__WEBPACK_IMPORTED_MODULE_3__["default"]) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(elOption, 'invisible') && (el.invisible = elOption.invisible); } if (el instanceof _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["Path"]) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(elOption, 'autoBatch') && (el.autoBatch = elOption.autoBatch); } } // Use it to avoid it be exposed to user. var tmpDuringScope = {}; var transitionDuringAPI = { // Usually other props do not need to be changed in animation during. setTransform: function (key, val) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(TRANSFORM_PROPS_MAP, key), 'Only ' + transformPropNamesStr + ' available in `setTransform`.'); } tmpDuringScope.el[key] = val; return this; }, getTransform: function (key) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(TRANSFORM_PROPS_MAP, key), 'Only ' + transformPropNamesStr + ' available in `getTransform`.'); } return tmpDuringScope.el[key]; }, setShape: function (key, val) { if (true) { assertNotReserved(key); } var el = tmpDuringScope.el; var shape = el.shape || (el.shape = {}); shape[key] = val; el.dirtyShape && el.dirtyShape(); return this; }, getShape: function (key) { if (true) { assertNotReserved(key); } var shape = tmpDuringScope.el.shape; if (shape) { return shape[key]; } }, setStyle: function (key, val) { if (true) { assertNotReserved(key); } var el = tmpDuringScope.el; var style = el.style; if (style) { if (true) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["eqNaN"])(val)) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_6__["warn"])('style.' + key + ' must not be assigned with NaN.'); } } style[key] = val; el.dirtyStyle && el.dirtyStyle(); } return this; }, getStyle: function (key) { if (true) { assertNotReserved(key); } var style = tmpDuringScope.el.style; if (style) { return style[key]; } }, setExtra: function (key, val) { if (true) { assertNotReserved(key); } var extra = tmpDuringScope.el.extra || (tmpDuringScope.el.extra = {}); extra[key] = val; return this; }, getExtra: function (key) { if (true) { assertNotReserved(key); } var extra = tmpDuringScope.el.extra; if (extra) { return extra[key]; } } }; function assertNotReserved(key) { if (true) { if (key === 'transition' || key === 'enterFrom' || key === 'leaveTo') { throw new Error('key must not be "' + key + '"'); } } } function duringCall() { // Do not provide "percent" until some requirements come. // Because consider thies case: // enterFrom: {x: 100, y: 30}, transition: 'x'. // And enter duration is different from update duration. // Thus it might be confused about the meaning of "percent" in during callback. var scope = this; var el = scope.el; if (!el) { return; } // If el is remove from zr by reason like legend, during still need to called, // because el will be added back to zr and the prop value should not be incorrect. var latestUserDuring = transitionInnerStore(el).userDuring; var scopeUserDuring = scope.userDuring; // Ensured a during is only called once in each animation frame. // If a during is called multiple times in one frame, maybe some users' calculation logic // might be wrong (not sure whether this usage exists). // The case of a during might be called twice can be: by default there is a animator for // 'x', 'y' when init. Before the init animation finished, call `setOption` to start // another animators for 'style'/'shape'/'extra'. if (latestUserDuring !== scopeUserDuring) { // release scope.el = scope.userDuring = null; return; } tmpDuringScope.el = el; // Give no `this` to user in "during" calling. scopeUserDuring(transitionDuringAPI); // FIXME: if in future meet the case that some prop will be both modified in `during` and `state`, // consider the issue that the prop might be incorrect when return to "normal" state. } function prepareShapeOrExtraTransitionFrom(mainAttr, fromEl, elOption, transFromProps) { var attrOpt = elOption[mainAttr]; if (!attrOpt) { return; } var elPropsInAttr = fromEl[mainAttr]; var transFromPropsInAttr; if (elPropsInAttr) { var transition = elOption.transition; var attrTransition = attrOpt.transition; if (attrTransition) { !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {}); if (isTransitionAll(attrTransition)) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(transFromPropsInAttr, elPropsInAttr); } else { var transitionKeys = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["normalizeToArray"])(attrTransition); for (var i = 0; i < transitionKeys.length; i++) { var key = transitionKeys[i]; var elVal = elPropsInAttr[key]; transFromPropsInAttr[key] = elVal; } } } else if (isTransitionAll(transition) || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["indexOf"])(transition, mainAttr) >= 0) { !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {}); var elPropsInAttrKeys = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["keys"])(elPropsInAttr); for (var i = 0; i < elPropsInAttrKeys.length; i++) { var key = elPropsInAttrKeys[i]; var elVal = elPropsInAttr[key]; if (isNonStyleTransitionEnabled(attrOpt[key], elVal)) { transFromPropsInAttr[key] = elVal; } } } } } function prepareShapeOrExtraAllPropsFinal(mainAttr, elOption, allProps) { var attrOpt = elOption[mainAttr]; if (!attrOpt) { return; } var allPropsInAttr = allProps[mainAttr] = {}; var keysInAttr = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["keys"])(attrOpt); for (var i = 0; i < keysInAttr.length; i++) { var key = keysInAttr[i]; // To avoid share one object with different element, and // to avoid user modify the object inexpectedly, have to clone. allPropsInAttr[key] = Object(zrender_lib_animation_Animator_js__WEBPACK_IMPORTED_MODULE_2__["cloneValue"])(attrOpt[key]); } } function prepareTransformTransitionFrom(el, elOption, transFromProps) { var transition = elOption.transition; var transitionKeys = isTransitionAll(transition) ? zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_7__["TRANSFORMABLE_PROPS"] : Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["normalizeToArray"])(transition || []); for (var i = 0; i < transitionKeys.length; i++) { var key = transitionKeys[i]; if (key === 'style' || key === 'shape' || key === 'extra') { continue; } var elVal = el[key]; if (true) { checkTransformPropRefer(key, 'el.transition'); } // Do not clone, animator will perform that clone. transFromProps[key] = elVal; } } function prepareTransformAllPropsFinal(el, elOption, allProps) { for (var i = 0; i < LEGACY_TRANSFORM_PROPS.length; i++) { var legacyName = LEGACY_TRANSFORM_PROPS[i]; var xyName = LEGACY_TRANSFORM_PROPS_MAP[legacyName]; var legacyArr = elOption[legacyName]; if (legacyArr) { allProps[xyName[0]] = legacyArr[0]; allProps[xyName[1]] = legacyArr[1]; } } for (var i = 0; i < zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_7__["TRANSFORMABLE_PROPS"].length; i++) { var key = zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_7__["TRANSFORMABLE_PROPS"][i]; if (elOption[key] != null) { allProps[key] = elOption[key]; } } } function prepareStyleTransitionFrom(fromEl, elOption, styleOpt, transFromProps) { if (!styleOpt) { return; } var fromElStyle = fromEl.style; var transFromStyleProps; if (fromElStyle) { var styleTransition = styleOpt.transition; var elTransition = elOption.transition; if (styleTransition && !isTransitionAll(styleTransition)) { var transitionKeys = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["normalizeToArray"])(styleTransition); !transFromStyleProps && (transFromStyleProps = transFromProps.style = {}); for (var i = 0; i < transitionKeys.length; i++) { var key = transitionKeys[i]; var elVal = fromElStyle[key]; // Do not clone, see `checkNonStyleTansitionRefer`. transFromStyleProps[key] = elVal; } } else if (fromEl.getAnimationStyleProps && (isTransitionAll(elTransition) || isTransitionAll(styleTransition) || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["indexOf"])(elTransition, 'style') >= 0)) { var animationProps = fromEl.getAnimationStyleProps(); var animationStyleProps = animationProps ? animationProps.style : null; if (animationStyleProps) { !transFromStyleProps && (transFromStyleProps = transFromProps.style = {}); var styleKeys = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["keys"])(styleOpt); for (var i = 0; i < styleKeys.length; i++) { var key = styleKeys[i]; if (animationStyleProps[key]) { var elVal = fromElStyle[key]; transFromStyleProps[key] = elVal; } } } } } } function isNonStyleTransitionEnabled(optVal, elVal) { // The same as `checkNonStyleTansitionRefer`. return !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArrayLike"])(optVal) ? optVal != null && isFinite(optVal) : optVal !== elVal; } var checkTransformPropRefer; if (true) { checkTransformPropRefer = function (key, usedIn) { if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(TRANSFORM_PROPS_MAP, key)) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_6__["warn"])('Prop `' + key + '` is not a permitted in `' + usedIn + '`. ' + 'Only `' + Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["keys"])(TRANSFORM_PROPS_MAP).join('`, `') + '` are permitted.'); } }; } /***/ }), /***/ "./node_modules/echarts/lib/animation/morphTransitionHelper.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/animation/morphTransitionHelper.js ***! \*********************************************************************/ /*! exports provided: applyMorphAnimation, getPathList */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyMorphAnimation", function() { return applyMorphAnimation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPathList", function() { return getPathList; }); /* harmony import */ var zrender_lib_tool_morphPath_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/tool/morphPath.js */ "./node_modules/zrender/lib/tool/morphPath.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _basicTransition_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* harmony import */ var zrender_lib_tool_path_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/tool/path.js */ "./node_modules/zrender/lib/tool/path.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function isMultiple(elements) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isArray"])(elements[0]); } function prepareMorphBatches(one, many) { var batches = []; var batchCount = one.length; for (var i = 0; i < batchCount; i++) { batches.push({ one: one[i], many: [] }); } for (var i = 0; i < many.length; i++) { var len = many[i].length; var k = void 0; for (k = 0; k < len; k++) { batches[k % batchCount].many.push(many[i][k]); } } var off = 0; // If one has more paths than each one of many. average them. for (var i = batchCount - 1; i >= 0; i--) { if (!batches[i].many.length) { var moveFrom = batches[off].many; if (moveFrom.length <= 1) { // Not enough // Start from the first one. if (off) { off = 0; } else { return batches; } } var len = moveFrom.length; var mid = Math.ceil(len / 2); batches[i].many = moveFrom.slice(mid, len); batches[off].many = moveFrom.slice(0, mid); off++; } } return batches; } var pathDividers = { clone: function (params) { var ret = []; // Fitting the alpha var approxOpacity = 1 - Math.pow(1 - params.path.style.opacity, 1 / params.count); for (var i = 0; i < params.count; i++) { var cloned = Object(zrender_lib_tool_path_js__WEBPACK_IMPORTED_MODULE_4__["clonePath"])(params.path); cloned.setStyle('opacity', approxOpacity); ret.push(cloned); } return ret; }, // Use the default divider split: null }; function applyMorphAnimation(from, to, divideShape, seriesModel, dataIndex, animateOtherProps) { if (!from.length || !to.length) { return; } var updateAnimationCfg = Object(_basicTransition_js__WEBPACK_IMPORTED_MODULE_3__["getAnimationConfig"])('update', seriesModel, dataIndex); if (!(updateAnimationCfg && updateAnimationCfg.duration > 0)) { return; } var animationDelay = seriesModel.getModel('universalTransition').get('delay'); var animationCfg = Object.assign({ // Need to setToFinal so the further calculation based on the style can be correct. // Like emphasis color. setToFinal: true }, updateAnimationCfg); var many; var one; if (isMultiple(from)) { // manyToOne many = from; one = to; } if (isMultiple(to)) { // oneToMany many = to; one = from; } function morphOneBatch(batch, fromIsMany, animateIndex, animateCount, forceManyOne) { var batchMany = batch.many; var batchOne = batch.one; if (batchMany.length === 1 && !forceManyOne) { // Is one to one var batchFrom = fromIsMany ? batchMany[0] : batchOne; var batchTo = fromIsMany ? batchOne : batchMany[0]; if (Object(zrender_lib_tool_morphPath_js__WEBPACK_IMPORTED_MODULE_0__["isCombineMorphing"])(batchFrom)) { // Keep doing combine animation. morphOneBatch({ many: [batchFrom], one: batchTo }, true, animateIndex, animateCount, true); } else { var individualAnimationCfg = animationDelay ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["defaults"])({ delay: animationDelay(animateIndex, animateCount) }, animationCfg) : animationCfg; Object(zrender_lib_tool_morphPath_js__WEBPACK_IMPORTED_MODULE_0__["morphPath"])(batchFrom, batchTo, individualAnimationCfg); animateOtherProps(batchFrom, batchTo, batchFrom, batchTo, individualAnimationCfg); } } else { var separateAnimationCfg = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["defaults"])({ dividePath: pathDividers[divideShape], individualDelay: animationDelay && function (idx, count, fromPath, toPath) { return animationDelay(idx + animateIndex, animateCount); } }, animationCfg); var _a = fromIsMany ? Object(zrender_lib_tool_morphPath_js__WEBPACK_IMPORTED_MODULE_0__["combineMorph"])(batchMany, batchOne, separateAnimationCfg) : Object(zrender_lib_tool_morphPath_js__WEBPACK_IMPORTED_MODULE_0__["separateMorph"])(batchOne, batchMany, separateAnimationCfg), fromIndividuals = _a.fromIndividuals, toIndividuals = _a.toIndividuals; var count = fromIndividuals.length; for (var k = 0; k < count; k++) { var individualAnimationCfg = animationDelay ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["defaults"])({ delay: animationDelay(k, count) }, animationCfg) : animationCfg; animateOtherProps(fromIndividuals[k], toIndividuals[k], fromIsMany ? batchMany[k] : batch.one, fromIsMany ? batch.one : batchMany[k], individualAnimationCfg); } } } var fromIsMany = many ? many === from // Is one to one. If the path number not match. also needs do merge and separate morphing. : from.length > to.length; var morphBatches = many ? prepareMorphBatches(one, many) : prepareMorphBatches(fromIsMany ? to : from, [fromIsMany ? from : to]); var animateCount = 0; for (var i = 0; i < morphBatches.length; i++) { animateCount += morphBatches[i].many.length; } var animateIndex = 0; for (var i = 0; i < morphBatches.length; i++) { morphOneBatch(morphBatches[i], fromIsMany, animateIndex, animateCount); animateIndex += morphBatches[i].many.length; } } function getPathList(elements) { if (!elements) { return []; } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isArray"])(elements)) { var pathList_1 = []; for (var i = 0; i < elements.length; i++) { pathList_1.push(getPathList(elements[i])); } return pathList_1; } var pathList = []; elements.traverse(function (el) { if (el instanceof _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Path"] && !el.disableMorphing && !el.invisible && !el.ignore) { pathList.push(el); } }); return pathList; } /***/ }), /***/ "./node_modules/echarts/lib/animation/universalTransition.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/animation/universalTransition.js ***! \*******************************************************************/ /*! exports provided: installUniversalTransition */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "installUniversalTransition", function() { return installUniversalTransition; }); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _morphTransitionHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./morphTransitionHelper.js */ "./node_modules/echarts/lib/animation/morphTransitionHelper.js"); /* harmony import */ var zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/graphic/Path.js */ "./node_modules/zrender/lib/graphic/Path.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../data/DataDiffer.js */ "./node_modules/echarts/lib/data/DataDiffer.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var _basicTransition_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* harmony import */ var zrender_lib_graphic_Displayable_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! zrender/lib/graphic/Displayable.js */ "./node_modules/zrender/lib/graphic/Displayable.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Universal transitions that can animate between any shapes(series) and any properties in any amounts. var DATA_COUNT_THRESHOLD = 1e4; var TRANSITION_NONE = 0; var TRANSITION_P2C = 1; var TRANSITION_C2P = 2; ; var getUniversalTransitionGlobalStore = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_6__["makeInner"])(); function getDimension(data, visualDimension) { var dimensions = data.dimensions; for (var i = 0; i < dimensions.length; i++) { var dimInfo = data.getDimensionInfo(dimensions[i]); if (dimInfo && dimInfo.otherDims[visualDimension] === 0) { return dimensions[i]; } } } // get value by dimension. (only get value of itemGroupId or childGroupId, so convert it to string) function getValueByDimension(data, dataIndex, dimension) { var dimInfo = data.getDimensionInfo(dimension); var dimOrdinalMeta = dimInfo && dimInfo.ordinalMeta; if (dimInfo) { var value = data.get(dimInfo.name, dataIndex); if (dimOrdinalMeta) { return dimOrdinalMeta.categories[value] || value + ''; } return value + ''; } } function getGroupId(data, dataIndex, dataGroupId, isChild) { // try to get groupId from encode var visualDimension = isChild ? 'itemChildGroupId' : 'itemGroupId'; var groupIdDim = getDimension(data, visualDimension); if (groupIdDim) { var groupId = getValueByDimension(data, dataIndex, groupIdDim); return groupId; } // try to get groupId from raw data item var rawDataItem = data.getRawDataItem(dataIndex); var property = isChild ? 'childGroupId' : 'groupId'; if (rawDataItem && rawDataItem[property]) { return rawDataItem[property] + ''; } // fallback if (isChild) { return; } // try to use series.dataGroupId as groupId, otherwise use dataItem's id as groupId return dataGroupId || data.getId(dataIndex); } // flatten all data items from different serieses into one arrary function flattenDataDiffItems(list) { var items = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(list, function (seriesInfo) { var data = seriesInfo.data; var dataGroupId = seriesInfo.dataGroupId; if (data.count() > DATA_COUNT_THRESHOLD) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_7__["warn"])('Universal transition is disabled on large data > 10k.'); } return; } var indices = data.getIndices(); for (var dataIndex = 0; dataIndex < indices.length; dataIndex++) { items.push({ data: data, groupId: getGroupId(data, dataIndex, dataGroupId, false), childGroupId: getGroupId(data, dataIndex, dataGroupId, true), divide: seriesInfo.divide, dataIndex: dataIndex }); } }); return items; } function fadeInElement(newEl, newSeries, newIndex) { newEl.traverse(function (el) { if (el instanceof zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_3__["default"]) { // TODO use fade in animation for target element. Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["initProps"])(el, { style: { opacity: 0 } }, newSeries, { dataIndex: newIndex, isFrom: true }); } }); } function removeEl(el) { if (el.parent) { // Bake parent transform to element. // So it can still have proper transform to transition after it's removed. var computedTransform = el.getComputedTransform(); el.setLocalTransform(computedTransform); el.parent.remove(el); } } function stopAnimation(el) { el.stopAnimation(); if (el.isGroup) { el.traverse(function (child) { child.stopAnimation(); }); } } function animateElementStyles(el, dataIndex, seriesModel) { var animationConfig = Object(_basicTransition_js__WEBPACK_IMPORTED_MODULE_8__["getAnimationConfig"])('update', seriesModel, dataIndex); animationConfig && el.traverse(function (child) { if (child instanceof zrender_lib_graphic_Displayable_js__WEBPACK_IMPORTED_MODULE_9__["default"]) { var oldStyle = Object(_basicTransition_js__WEBPACK_IMPORTED_MODULE_8__["getOldStyle"])(child); if (oldStyle) { child.animateFrom({ style: oldStyle }, animationConfig); } } }); } function isAllIdSame(oldDiffItems, newDiffItems) { var len = oldDiffItems.length; if (len !== newDiffItems.length) { return false; } for (var i = 0; i < len; i++) { var oldItem = oldDiffItems[i]; var newItem = newDiffItems[i]; if (oldItem.data.getId(oldItem.dataIndex) !== newItem.data.getId(newItem.dataIndex)) { return false; } } return true; } function transitionBetween(oldList, newList, api) { var oldDiffItems = flattenDataDiffItems(oldList); var newDiffItems = flattenDataDiffItems(newList); function updateMorphingPathProps(from, to, rawFrom, rawTo, animationCfg) { if (rawFrom || from) { to.animateFrom({ style: rawFrom && rawFrom !== from // dividingMethod like clone may override the style(opacity) // So extend it to raw style. ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])({}, rawFrom.style), from.style) : from.style }, animationCfg); } } var hasMorphAnimation = false; /** * With groupId and childGroupId, we can build parent-child relationships between dataItems. * However, we should mind the parent-child "direction" between old and new options. * * For example, suppose we have two dataItems from two series.data: * * dataA: [ dataB: [ * { { * value: 5, value: 3, * groupId: 'creatures', groupId: 'animals', * childGroupId: 'animals' childGroupId: 'dogs' * }, }, * ... ... * ] ] * * where dataA is belong to optionA and dataB is belong to optionB. * * When we `setOption(optionB)` from optionA, we choose childGroupId of dataItemA and groupId of * dataItemB as keys so the two keys are matched (both are 'animals'), then universalTransition * will work. This derection is "parent -> child". * * If we `setOption(optionA)` from optionB, we also choose groupId of dataItemB and childGroupId * of dataItemA as keys and universalTransition will work. This derection is "child -> parent". * * If there is no childGroupId specified, which means no multiLevelDrillDown/Up is needed and no * parent-child relationship exists. This direction is "none". * * So we need to know whether to use groupId or childGroupId as the key when we call the keyGetter * functions. Thus, we need to decide the direction first. * * The rule is: * * if (all childGroupIds in oldDiffItems and all groupIds in newDiffItems have common value) { * direction = 'parent -> child'; * } else if (all groupIds in oldDiffItems and all childGroupIds in newDiffItems have common value) { * direction = 'child -> parent'; * } else { * direction = 'none'; * } */ var direction = TRANSITION_NONE; // find all groupIds and childGroupIds from oldDiffItems var oldGroupIds = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])(); var oldChildGroupIds = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])(); oldDiffItems.forEach(function (item) { item.groupId && oldGroupIds.set(item.groupId, true); item.childGroupId && oldChildGroupIds.set(item.childGroupId, true); }); // traverse newDiffItems and decide the direction according to the rule for (var i = 0; i < newDiffItems.length; i++) { var newGroupId = newDiffItems[i].groupId; if (oldChildGroupIds.get(newGroupId)) { direction = TRANSITION_P2C; break; } var newChildGroupId = newDiffItems[i].childGroupId; if (newChildGroupId && oldGroupIds.get(newChildGroupId)) { direction = TRANSITION_C2P; break; } } function createKeyGetter(isOld, onlyGetId) { return function (diffItem) { var data = diffItem.data; var dataIndex = diffItem.dataIndex; // TODO if specified dim if (onlyGetId) { return data.getId(dataIndex); } if (isOld) { return direction === TRANSITION_P2C ? diffItem.childGroupId : diffItem.groupId; } else { return direction === TRANSITION_C2P ? diffItem.childGroupId : diffItem.groupId; } }; } // Use id if it's very likely to be an one to one animation // It's more robust than groupId // TODO Check if key dimension is specified. var useId = isAllIdSame(oldDiffItems, newDiffItems); var isElementStillInChart = {}; if (!useId) { // We may have different diff strategy with basicTransition if we use other dimension as key. // If so, we can't simply check if oldEl is same with newEl. We need a map to check if oldEl is still being used in the new chart. // We can't use the elements that already being morphed. Let it keep it's original basic transition. for (var i = 0; i < newDiffItems.length; i++) { var newItem = newDiffItems[i]; var el = newItem.data.getItemGraphicEl(newItem.dataIndex); if (el) { isElementStillInChart[el.id] = true; } } } function updateOneToOne(newIndex, oldIndex) { var oldItem = oldDiffItems[oldIndex]; var newItem = newDiffItems[newIndex]; var newSeries = newItem.data.hostModel; // TODO Mark this elements is morphed and don't morph them anymore var oldEl = oldItem.data.getItemGraphicEl(oldItem.dataIndex); var newEl = newItem.data.getItemGraphicEl(newItem.dataIndex); // Can't handle same elements. if (oldEl === newEl) { newEl && animateElementStyles(newEl, newItem.dataIndex, newSeries); return; } if ( // We can't use the elements that already being morphed oldEl && isElementStillInChart[oldEl.id]) { return; } if (newEl) { // TODO: If keep animating the group in case // some of the elements don't want to be morphed. // TODO Label? stopAnimation(newEl); if (oldEl) { stopAnimation(oldEl); // If old element is doing leaving animation. stop it and remove it immediately. removeEl(oldEl); hasMorphAnimation = true; Object(_morphTransitionHelper_js__WEBPACK_IMPORTED_MODULE_2__["applyMorphAnimation"])(Object(_morphTransitionHelper_js__WEBPACK_IMPORTED_MODULE_2__["getPathList"])(oldEl), Object(_morphTransitionHelper_js__WEBPACK_IMPORTED_MODULE_2__["getPathList"])(newEl), newItem.divide, newSeries, newIndex, updateMorphingPathProps); } else { fadeInElement(newEl, newSeries, newIndex); } } // else keep oldEl leaving animation. } new _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_5__["default"](oldDiffItems, newDiffItems, createKeyGetter(true, useId), createKeyGetter(false, useId), null, 'multiple').update(updateOneToOne).updateManyToOne(function (newIndex, oldIndices) { var newItem = newDiffItems[newIndex]; var newData = newItem.data; var newSeries = newData.hostModel; var newEl = newData.getItemGraphicEl(newItem.dataIndex); var oldElsList = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"])(oldIndices, function (idx) { return oldDiffItems[idx].data.getItemGraphicEl(oldDiffItems[idx].dataIndex); }), function (oldEl) { return oldEl && oldEl !== newEl && !isElementStillInChart[oldEl.id]; }); if (newEl) { stopAnimation(newEl); if (oldElsList.length) { // If old element is doing leaving animation. stop it and remove it immediately. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(oldElsList, function (oldEl) { stopAnimation(oldEl); removeEl(oldEl); }); hasMorphAnimation = true; Object(_morphTransitionHelper_js__WEBPACK_IMPORTED_MODULE_2__["applyMorphAnimation"])(Object(_morphTransitionHelper_js__WEBPACK_IMPORTED_MODULE_2__["getPathList"])(oldElsList), Object(_morphTransitionHelper_js__WEBPACK_IMPORTED_MODULE_2__["getPathList"])(newEl), newItem.divide, newSeries, newIndex, updateMorphingPathProps); } else { fadeInElement(newEl, newSeries, newItem.dataIndex); } } // else keep oldEl leaving animation. }).updateOneToMany(function (newIndices, oldIndex) { var oldItem = oldDiffItems[oldIndex]; var oldEl = oldItem.data.getItemGraphicEl(oldItem.dataIndex); // We can't use the elements that already being morphed if (oldEl && isElementStillInChart[oldEl.id]) { return; } var newElsList = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"])(newIndices, function (idx) { return newDiffItems[idx].data.getItemGraphicEl(newDiffItems[idx].dataIndex); }), function (el) { return el && el !== oldEl; }); var newSeris = newDiffItems[newIndices[0]].data.hostModel; if (newElsList.length) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(newElsList, function (newEl) { return stopAnimation(newEl); }); if (oldEl) { stopAnimation(oldEl); // If old element is doing leaving animation. stop it and remove it immediately. removeEl(oldEl); hasMorphAnimation = true; Object(_morphTransitionHelper_js__WEBPACK_IMPORTED_MODULE_2__["applyMorphAnimation"])(Object(_morphTransitionHelper_js__WEBPACK_IMPORTED_MODULE_2__["getPathList"])(oldEl), Object(_morphTransitionHelper_js__WEBPACK_IMPORTED_MODULE_2__["getPathList"])(newElsList), oldItem.divide, // Use divide on old. newSeris, newIndices[0], updateMorphingPathProps); } else { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(newElsList, function (newEl) { return fadeInElement(newEl, newSeris, newIndices[0]); }); } } // else keep oldEl leaving animation. }).updateManyToMany(function (newIndices, oldIndices) { // If two data are same and both have groupId. // Normally they should be diff by id. new _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_5__["default"](oldIndices, newIndices, function (rawIdx) { return oldDiffItems[rawIdx].data.getId(oldDiffItems[rawIdx].dataIndex); }, function (rawIdx) { return newDiffItems[rawIdx].data.getId(newDiffItems[rawIdx].dataIndex); }).update(function (newIndex, oldIndex) { // Use the original index updateOneToOne(newIndices[newIndex], oldIndices[oldIndex]); }).execute(); }).execute(); if (hasMorphAnimation) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(newList, function (_a) { var data = _a.data; var seriesModel = data.hostModel; var view = seriesModel && api.getViewOfSeriesModel(seriesModel); var animationCfg = Object(_basicTransition_js__WEBPACK_IMPORTED_MODULE_8__["getAnimationConfig"])('update', seriesModel, 0); // use 0 index. if (view && seriesModel.isAnimationEnabled() && animationCfg && animationCfg.duration > 0) { view.group.traverse(function (el) { if (el instanceof zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_3__["default"] && !el.animators.length) { // We can't accept there still exists element that has no animation // if universalTransition is enabled el.animateFrom({ style: { opacity: 0 } }, animationCfg); } }); } }); } } function getSeriesTransitionKey(series) { var seriesKey = series.getModel('universalTransition').get('seriesKey'); if (!seriesKey) { // Use series id by default. return series.id; } return seriesKey; } function convertArraySeriesKeyToString(seriesKey) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(seriesKey)) { // Order independent. return seriesKey.sort().join(','); } return seriesKey; } function getDivideShapeFromData(data) { if (data.hostModel) { return data.hostModel.getModel('universalTransition').get('divideShape'); } } function findTransitionSeriesBatches(globalStore, params) { var updateBatches = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])(); var oldDataMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])(); // Map that only store key in array seriesKey. // Which is used to query the old data when transition from one to multiple series. var oldDataMapForSplit = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(globalStore.oldSeries, function (series, idx) { var oldDataGroupId = globalStore.oldDataGroupIds[idx]; var oldData = globalStore.oldData[idx]; var transitionKey = getSeriesTransitionKey(series); var transitionKeyStr = convertArraySeriesKeyToString(transitionKey); oldDataMap.set(transitionKeyStr, { dataGroupId: oldDataGroupId, data: oldData }); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(transitionKey)) { // Same key can't in different array seriesKey. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(transitionKey, function (key) { oldDataMapForSplit.set(key, { key: transitionKeyStr, dataGroupId: oldDataGroupId, data: oldData }); }); } }); function checkTransitionSeriesKeyDuplicated(transitionKeyStr) { if (updateBatches.get(transitionKeyStr)) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_7__["warn"])("Duplicated seriesKey in universalTransition " + transitionKeyStr); } } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(params.updatedSeries, function (series) { if (series.isUniversalTransitionEnabled() && series.isAnimationEnabled()) { var newDataGroupId = series.get('dataGroupId'); var newData = series.getData(); var transitionKey = getSeriesTransitionKey(series); var transitionKeyStr = convertArraySeriesKeyToString(transitionKey); // Only transition between series with same id. var oldData = oldDataMap.get(transitionKeyStr); // string transition key is the best match. if (oldData) { if (true) { checkTransitionSeriesKeyDuplicated(transitionKeyStr); } // TODO check if data is same? updateBatches.set(transitionKeyStr, { oldSeries: [{ dataGroupId: oldData.dataGroupId, divide: getDivideShapeFromData(oldData.data), data: oldData.data }], newSeries: [{ dataGroupId: newDataGroupId, divide: getDivideShapeFromData(newData), data: newData }] }); } else { // Transition from multiple series. // e.g. 'female', 'male' -> ['female', 'male'] if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(transitionKey)) { if (true) { checkTransitionSeriesKeyDuplicated(transitionKeyStr); } var oldSeries_1 = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(transitionKey, function (key) { var oldData = oldDataMap.get(key); if (oldData.data) { oldSeries_1.push({ dataGroupId: oldData.dataGroupId, divide: getDivideShapeFromData(oldData.data), data: oldData.data }); } }); if (oldSeries_1.length) { updateBatches.set(transitionKeyStr, { oldSeries: oldSeries_1, newSeries: [{ dataGroupId: newDataGroupId, data: newData, divide: getDivideShapeFromData(newData) }] }); } } else { // Try transition to multiple series. // e.g. ['female', 'male'] -> 'female', 'male' var oldData_1 = oldDataMapForSplit.get(transitionKey); if (oldData_1) { var batch = updateBatches.get(oldData_1.key); if (!batch) { batch = { oldSeries: [{ dataGroupId: oldData_1.dataGroupId, data: oldData_1.data, divide: getDivideShapeFromData(oldData_1.data) }], newSeries: [] }; updateBatches.set(oldData_1.key, batch); } batch.newSeries.push({ dataGroupId: newDataGroupId, data: newData, divide: getDivideShapeFromData(newData) }); } } } } }); return updateBatches; } function querySeries(series, finder) { for (var i = 0; i < series.length; i++) { var found = finder.seriesIndex != null && finder.seriesIndex === series[i].seriesIndex || finder.seriesId != null && finder.seriesId === series[i].id; if (found) { return i; } } } function transitionSeriesFromOpt(transitionOpt, globalStore, params, api) { var from = []; var to = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(Object(_util_model_js__WEBPACK_IMPORTED_MODULE_6__["normalizeToArray"])(transitionOpt.from), function (finder) { var idx = querySeries(globalStore.oldSeries, finder); if (idx >= 0) { from.push({ dataGroupId: globalStore.oldDataGroupIds[idx], data: globalStore.oldData[idx], // TODO can specify divideShape in transition. divide: getDivideShapeFromData(globalStore.oldData[idx]), groupIdDim: finder.dimension }); } }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(Object(_util_model_js__WEBPACK_IMPORTED_MODULE_6__["normalizeToArray"])(transitionOpt.to), function (finder) { var idx = querySeries(params.updatedSeries, finder); if (idx >= 0) { var data = params.updatedSeries[idx].getData(); to.push({ dataGroupId: globalStore.oldDataGroupIds[idx], data: data, divide: getDivideShapeFromData(data), groupIdDim: finder.dimension }); } }); if (from.length > 0 && to.length > 0) { transitionBetween(from, to, api); } } function installUniversalTransition(registers) { registers.registerUpdateLifecycle('series:beforeupdate', function (ecMOdel, api, params) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(Object(_util_model_js__WEBPACK_IMPORTED_MODULE_6__["normalizeToArray"])(params.seriesTransition), function (transOpt) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(Object(_util_model_js__WEBPACK_IMPORTED_MODULE_6__["normalizeToArray"])(transOpt.to), function (finder) { var series = params.updatedSeries; for (var i = 0; i < series.length; i++) { if (finder.seriesIndex != null && finder.seriesIndex === series[i].seriesIndex || finder.seriesId != null && finder.seriesId === series[i].id) { series[i][_model_Series_js__WEBPACK_IMPORTED_MODULE_0__["SERIES_UNIVERSAL_TRANSITION_PROP"]] = true; } } }); }); }); registers.registerUpdateLifecycle('series:transition', function (ecModel, api, params) { // TODO api provide an namespace that can save stuff per instance var globalStore = getUniversalTransitionGlobalStore(api); // TODO multiple to multiple series. if (globalStore.oldSeries && params.updatedSeries && params.optionChanged) { // TODO transitionOpt was used in an old implementation and can be removed now // Use give transition config if its' give; var transitionOpt = params.seriesTransition; if (transitionOpt) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(Object(_util_model_js__WEBPACK_IMPORTED_MODULE_6__["normalizeToArray"])(transitionOpt), function (opt) { transitionSeriesFromOpt(opt, globalStore, params, api); }); } else { // Else guess from series based on transition series key. var updateBatches_1 = findTransitionSeriesBatches(globalStore, params); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(updateBatches_1.keys(), function (key) { var batch = updateBatches_1.get(key); transitionBetween(batch.oldSeries, batch.newSeries, api); }); } // Reset Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(params.updatedSeries, function (series) { // Reset; if (series[_model_Series_js__WEBPACK_IMPORTED_MODULE_0__["SERIES_UNIVERSAL_TRANSITION_PROP"]]) { series[_model_Series_js__WEBPACK_IMPORTED_MODULE_0__["SERIES_UNIVERSAL_TRANSITION_PROP"]] = false; } }); } // Save all series of current update. Not only the updated one. var allSeries = ecModel.getSeries(); var savedSeries = globalStore.oldSeries = []; var savedDataGroupIds = globalStore.oldDataGroupIds = []; var savedData = globalStore.oldData = []; for (var i = 0; i < allSeries.length; i++) { var data = allSeries[i].getData(); // Only save the data that can have transition. // Avoid large data costing too much extra memory if (data.count() < DATA_COUNT_THRESHOLD) { savedSeries.push(allSeries[i]); savedDataGroupIds.push(allSeries[i].get('dataGroupId')); savedData.push(data); } } }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/bar/BarSeries.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/chart/bar/BarSeries.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _BaseBarSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseBarSeries.js */ "./node_modules/echarts/lib/chart/bar/BaseBarSeries.js"); /* harmony import */ var _helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/createSeriesData.js */ "./node_modules/echarts/lib/chart/helper/createSeriesData.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var BarSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BarSeriesModel, _super); function BarSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = BarSeriesModel.type; return _this; } BarSeriesModel.prototype.getInitialData = function () { return Object(_helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_2__["default"])(null, this, { useEncodeDefaulter: true, createInvertedIndices: !!this.get('realtimeSort', true) || null }); }; /** * @override */ BarSeriesModel.prototype.getProgressive = function () { // Do not support progressive in normal mode. return this.get('large') ? this.get('progressive') : false; }; /** * @override */ BarSeriesModel.prototype.getProgressiveThreshold = function () { // Do not support progressive in normal mode. var progressiveThreshold = this.get('progressiveThreshold'); var largeThreshold = this.get('largeThreshold'); if (largeThreshold > progressiveThreshold) { progressiveThreshold = largeThreshold; } return progressiveThreshold; }; BarSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) { return selectors.rect(data.getItemLayout(dataIndex)); }; BarSeriesModel.type = 'series.bar'; BarSeriesModel.dependencies = ['grid', 'polar']; BarSeriesModel.defaultOption = Object(_util_component_js__WEBPACK_IMPORTED_MODULE_3__["inheritDefaultOption"])(_BaseBarSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"].defaultOption, { // If clipped // Only available on cartesian2d clip: true, roundCap: false, showBackground: false, backgroundStyle: { color: 'rgba(180, 180, 180, 0.2)', borderColor: null, borderWidth: 0, borderType: 'solid', borderRadius: 0, shadowBlur: 0, shadowColor: null, shadowOffsetX: 0, shadowOffsetY: 0, opacity: 1 }, select: { itemStyle: { borderColor: '#212121' } }, realtimeSort: false }); return BarSeriesModel; }(_BaseBarSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (BarSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/bar/BarView.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/chart/bar/BarView.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/graphic/Path.js */ "./node_modules/zrender/lib/graphic/Path.js"); /* harmony import */ var zrender_lib_graphic_Group_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/graphic/Group.js */ "./node_modules/zrender/lib/graphic/Group.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _util_throttle_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/throttle.js */ "./node_modules/echarts/lib/util/throttle.js"); /* harmony import */ var _helper_createClipPathFromCoordSys_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helper/createClipPathFromCoordSys.js */ "./node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js"); /* harmony import */ var _util_shape_sausage_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/shape/sausage.js */ "./node_modules/echarts/lib/util/shape/sausage.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _coord_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../coord/CoordinateSystem.js */ "./node_modules/echarts/lib/coord/CoordinateSystem.js"); /* harmony import */ var _helper_labelHelper_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../helper/labelHelper.js */ "./node_modules/echarts/lib/chart/helper/labelHelper.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var _label_sectorLabel_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../label/sectorLabel.js */ "./node_modules/echarts/lib/label/sectorLabel.js"); /* harmony import */ var _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../animation/basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* harmony import */ var _helper_sectorHelper_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../helper/sectorHelper.js */ "./node_modules/echarts/lib/chart/helper/sectorHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var mathMax = Math.max; var mathMin = Math.min; function getClipArea(coord, data) { var coordSysClipArea = coord.getArea && coord.getArea(); if (Object(_coord_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_12__["isCoordinateSystemType"])(coord, 'cartesian2d')) { var baseAxis = coord.getBaseAxis(); // When boundaryGap is false or using time axis. bar may exceed the grid. // We should not clip this part. // See test/bar2.html if (baseAxis.type !== 'category' || !baseAxis.onBand) { var expandWidth = data.getLayout('bandWidth'); if (baseAxis.isHorizontal()) { coordSysClipArea.x -= expandWidth; coordSysClipArea.width += expandWidth * 2; } else { coordSysClipArea.y -= expandWidth; coordSysClipArea.height += expandWidth * 2; } } } return coordSysClipArea; } var BarView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BarView, _super); function BarView() { var _this = _super.call(this) || this; _this.type = BarView.type; _this._isFirstFrame = true; return _this; } BarView.prototype.render = function (seriesModel, ecModel, api, payload) { this._model = seriesModel; this._removeOnRenderedListener(api); this._updateDrawMode(seriesModel); var coordinateSystemType = seriesModel.get('coordinateSystem'); if (coordinateSystemType === 'cartesian2d' || coordinateSystemType === 'polar') { // Clear previously rendered progressive elements. this._progressiveEls = null; this._isLargeDraw ? this._renderLarge(seriesModel, ecModel, api) : this._renderNormal(seriesModel, ecModel, api, payload); } else if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_14__["warn"])('Only cartesian2d and polar supported for bar.'); } }; BarView.prototype.incrementalPrepareRender = function (seriesModel) { this._clear(); this._updateDrawMode(seriesModel); // incremental also need to clip, otherwise might be overlow. // But must not set clip in each frame, otherwise all of the children will be marked redraw. this._updateLargeClip(seriesModel); }; BarView.prototype.incrementalRender = function (params, seriesModel) { // Reset this._progressiveEls = []; // Do not support progressive in normal mode. this._incrementalRenderLarge(params, seriesModel); }; BarView.prototype.eachRendered = function (cb) { Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["traverseElements"])(this._progressiveEls || this.group, cb); }; BarView.prototype._updateDrawMode = function (seriesModel) { var isLargeDraw = seriesModel.pipelineContext.large; if (this._isLargeDraw == null || isLargeDraw !== this._isLargeDraw) { this._isLargeDraw = isLargeDraw; this._clear(); } }; BarView.prototype._renderNormal = function (seriesModel, ecModel, api, payload) { var group = this.group; var data = seriesModel.getData(); var oldData = this._data; var coord = seriesModel.coordinateSystem; var baseAxis = coord.getBaseAxis(); var isHorizontalOrRadial; if (coord.type === 'cartesian2d') { isHorizontalOrRadial = baseAxis.isHorizontal(); } else if (coord.type === 'polar') { isHorizontalOrRadial = baseAxis.dim === 'angle'; } var animationModel = seriesModel.isAnimationEnabled() ? seriesModel : null; var realtimeSortCfg = shouldRealtimeSort(seriesModel, coord); if (realtimeSortCfg) { this._enableRealtimeSort(realtimeSortCfg, data, api); } var needsClip = seriesModel.get('clip', true) || realtimeSortCfg; var coordSysClipArea = getClipArea(coord, data); // If there is clipPath created in large mode. Remove it. group.removeClipPath(); // We don't use clipPath in normal mode because we needs a perfect animation // And don't want the label are clipped. var roundCap = seriesModel.get('roundCap', true); var drawBackground = seriesModel.get('showBackground', true); var backgroundModel = seriesModel.getModel('backgroundStyle'); var barBorderRadius = backgroundModel.get('borderRadius') || 0; var bgEls = []; var oldBgEls = this._backgroundEls; var isInitSort = payload && payload.isInitSort; var isChangeOrder = payload && payload.type === 'changeAxisOrder'; function createBackground(dataIndex) { var bgLayout = getLayout[coord.type](data, dataIndex); var bgEl = createBackgroundEl(coord, isHorizontalOrRadial, bgLayout); bgEl.useStyle(backgroundModel.getItemStyle()); // Only cartesian2d support borderRadius. if (coord.type === 'cartesian2d') { bgEl.setShape('r', barBorderRadius); } else { bgEl.setShape('cornerRadius', barBorderRadius); } bgEls[dataIndex] = bgEl; return bgEl; } ; data.diff(oldData).add(function (dataIndex) { var itemModel = data.getItemModel(dataIndex); var layout = getLayout[coord.type](data, dataIndex, itemModel); if (drawBackground) { createBackground(dataIndex); } // If dataZoom in filteMode: 'empty', the baseValue can be set as NaN in "axisProxy". if (!data.hasValue(dataIndex) || !isValidLayout[coord.type](layout)) { return; } var isClipped = false; if (needsClip) { // Clip will modify the layout params. // And return a boolean to determine if the shape are fully clipped. isClipped = clip[coord.type](coordSysClipArea, layout); } var el = elementCreator[coord.type](seriesModel, data, dataIndex, layout, isHorizontalOrRadial, animationModel, baseAxis.model, false, roundCap); if (realtimeSortCfg) { /** * Force label animation because even if the element is * ignored because it's clipped, it may not be clipped after * changing order. Then, if not using forceLabelAnimation, * the label animation was never started, in which case, * the label will be the final value and doesn't have label * animation. */ el.forceLabelAnimation = true; } updateStyle(el, data, dataIndex, itemModel, layout, seriesModel, isHorizontalOrRadial, coord.type === 'polar'); if (isInitSort) { el.attr({ shape: layout }); } else if (realtimeSortCfg) { updateRealtimeAnimation(realtimeSortCfg, animationModel, el, layout, dataIndex, isHorizontalOrRadial, false, false); } else { Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["initProps"])(el, { shape: layout }, seriesModel, dataIndex); } data.setItemGraphicEl(dataIndex, el); group.add(el); el.ignore = isClipped; }).update(function (newIndex, oldIndex) { var itemModel = data.getItemModel(newIndex); var layout = getLayout[coord.type](data, newIndex, itemModel); if (drawBackground) { var bgEl = void 0; if (oldBgEls.length === 0) { bgEl = createBackground(oldIndex); } else { bgEl = oldBgEls[oldIndex]; bgEl.useStyle(backgroundModel.getItemStyle()); // Only cartesian2d support borderRadius. if (coord.type === 'cartesian2d') { bgEl.setShape('r', barBorderRadius); } else { bgEl.setShape('cornerRadius', barBorderRadius); } bgEls[newIndex] = bgEl; } var bgLayout = getLayout[coord.type](data, newIndex); var shape = createBackgroundShape(isHorizontalOrRadial, bgLayout, coord); Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["updateProps"])(bgEl, { shape: shape }, animationModel, newIndex); } var el = oldData.getItemGraphicEl(oldIndex); if (!data.hasValue(newIndex) || !isValidLayout[coord.type](layout)) { group.remove(el); return; } var isClipped = false; if (needsClip) { isClipped = clip[coord.type](coordSysClipArea, layout); if (isClipped) { group.remove(el); } } if (!el) { el = elementCreator[coord.type](seriesModel, data, newIndex, layout, isHorizontalOrRadial, animationModel, baseAxis.model, !!el, roundCap); } else { Object(_animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_16__["saveOldStyle"])(el); } if (realtimeSortCfg) { el.forceLabelAnimation = true; } if (isChangeOrder) { var textEl = el.getTextContent(); if (textEl) { var labelInnerStore = Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["labelInner"])(textEl); if (labelInnerStore.prevValue != null) { /** * Set preValue to be value so that no new label * should be started, otherwise, it will take a full * `animationDurationUpdate` time to finish the * animation, which is not expected. */ labelInnerStore.prevValue = labelInnerStore.value; } } } // Not change anything if only order changed. // Especially not change label. else { updateStyle(el, data, newIndex, itemModel, layout, seriesModel, isHorizontalOrRadial, coord.type === 'polar'); } if (isInitSort) { el.attr({ shape: layout }); } else if (realtimeSortCfg) { updateRealtimeAnimation(realtimeSortCfg, animationModel, el, layout, newIndex, isHorizontalOrRadial, true, isChangeOrder); } else { Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["updateProps"])(el, { shape: layout }, seriesModel, newIndex, null); } data.setItemGraphicEl(newIndex, el); el.ignore = isClipped; group.add(el); }).remove(function (dataIndex) { var el = oldData.getItemGraphicEl(dataIndex); el && Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["removeElementWithFadeOut"])(el, seriesModel, dataIndex); }).execute(); var bgGroup = this._backgroundGroup || (this._backgroundGroup = new zrender_lib_graphic_Group_js__WEBPACK_IMPORTED_MODULE_2__["default"]()); bgGroup.removeAll(); for (var i = 0; i < bgEls.length; ++i) { bgGroup.add(bgEls[i]); } group.add(bgGroup); this._backgroundEls = bgEls; this._data = data; }; BarView.prototype._renderLarge = function (seriesModel, ecModel, api) { this._clear(); createLarge(seriesModel, this.group); this._updateLargeClip(seriesModel); }; BarView.prototype._incrementalRenderLarge = function (params, seriesModel) { this._removeBackground(); createLarge(seriesModel, this.group, this._progressiveEls, true); }; BarView.prototype._updateLargeClip = function (seriesModel) { // Use clipPath in large mode. var clipPath = seriesModel.get('clip', true) && Object(_helper_createClipPathFromCoordSys_js__WEBPACK_IMPORTED_MODULE_9__["createClipPath"])(seriesModel.coordinateSystem, false, seriesModel); var group = this.group; if (clipPath) { group.setClipPath(clipPath); } else { group.removeClipPath(); } }; BarView.prototype._enableRealtimeSort = function (realtimeSortCfg, data, api) { var _this = this; // If no data in the first frame, wait for data to initSort if (!data.count()) { return; } var baseAxis = realtimeSortCfg.baseAxis; if (this._isFirstFrame) { this._dispatchInitSort(data, realtimeSortCfg, api); this._isFirstFrame = false; } else { var orderMapping_1 = function (idx) { var el = data.getItemGraphicEl(idx); var shape = el && el.shape; return shape && // The result should be consistent with the initial sort by data value. // Do not support the case that both positive and negative exist. Math.abs(baseAxis.isHorizontal() ? shape.height : shape.width) // If data is NaN, shape.xxx may be NaN, so use || 0 here in case || 0; }; this._onRendered = function () { _this._updateSortWithinSameData(data, orderMapping_1, baseAxis, api); }; api.getZr().on('rendered', this._onRendered); } }; BarView.prototype._dataSort = function (data, baseAxis, orderMapping) { var info = []; data.each(data.mapDimension(baseAxis.dim), function (ordinalNumber, dataIdx) { var mappedValue = orderMapping(dataIdx); mappedValue = mappedValue == null ? NaN : mappedValue; info.push({ dataIndex: dataIdx, mappedValue: mappedValue, ordinalNumber: ordinalNumber }); }); info.sort(function (a, b) { // If NaN, it will be treated as min val. return b.mappedValue - a.mappedValue; }); return { ordinalNumbers: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["map"])(info, function (item) { return item.ordinalNumber; }) }; }; BarView.prototype._isOrderChangedWithinSameData = function (data, orderMapping, baseAxis) { var scale = baseAxis.scale; var ordinalDataDim = data.mapDimension(baseAxis.dim); var lastValue = Number.MAX_VALUE; for (var tickNum = 0, len = scale.getOrdinalMeta().categories.length; tickNum < len; ++tickNum) { var rawIdx = data.rawIndexOf(ordinalDataDim, scale.getRawOrdinalNumber(tickNum)); var value = rawIdx < 0 // If some tick have no bar, the tick will be treated as min. ? Number.MIN_VALUE // PENDING: if dataZoom on baseAxis exits, is it a performance issue? : orderMapping(data.indexOfRawIndex(rawIdx)); if (value > lastValue) { return true; } lastValue = value; } return false; }; /* * Consider the case when A and B changed order, whose representing * bars are both out of sight, we don't wish to trigger reorder action * as long as the order in the view doesn't change. */ BarView.prototype._isOrderDifferentInView = function (orderInfo, baseAxis) { var scale = baseAxis.scale; var extent = scale.getExtent(); var tickNum = Math.max(0, extent[0]); var tickMax = Math.min(extent[1], scale.getOrdinalMeta().categories.length - 1); for (; tickNum <= tickMax; ++tickNum) { if (orderInfo.ordinalNumbers[tickNum] !== scale.getRawOrdinalNumber(tickNum)) { return true; } } }; BarView.prototype._updateSortWithinSameData = function (data, orderMapping, baseAxis, api) { if (!this._isOrderChangedWithinSameData(data, orderMapping, baseAxis)) { return; } var sortInfo = this._dataSort(data, baseAxis, orderMapping); if (this._isOrderDifferentInView(sortInfo, baseAxis)) { this._removeOnRenderedListener(api); api.dispatchAction({ type: 'changeAxisOrder', componentType: baseAxis.dim + 'Axis', axisId: baseAxis.index, sortInfo: sortInfo }); } }; BarView.prototype._dispatchInitSort = function (data, realtimeSortCfg, api) { var baseAxis = realtimeSortCfg.baseAxis; var sortResult = this._dataSort(data, baseAxis, function (dataIdx) { return data.get(data.mapDimension(realtimeSortCfg.otherAxis.dim), dataIdx); }); api.dispatchAction({ type: 'changeAxisOrder', componentType: baseAxis.dim + 'Axis', isInitSort: true, axisId: baseAxis.index, sortInfo: sortResult }); }; BarView.prototype.remove = function (ecModel, api) { this._clear(this._model); this._removeOnRenderedListener(api); }; BarView.prototype.dispose = function (ecModel, api) { this._removeOnRenderedListener(api); }; BarView.prototype._removeOnRenderedListener = function (api) { if (this._onRendered) { api.getZr().off('rendered', this._onRendered); this._onRendered = null; } }; BarView.prototype._clear = function (model) { var group = this.group; var data = this._data; if (model && model.isAnimationEnabled() && data && !this._isLargeDraw) { this._removeBackground(); this._backgroundEls = []; data.eachItemGraphicEl(function (el) { Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["removeElementWithFadeOut"])(el, model, Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_5__["getECData"])(el).dataIndex); }); } else { group.removeAll(); } this._data = null; this._isFirstFrame = true; }; BarView.prototype._removeBackground = function () { this.group.remove(this._backgroundGroup); this._backgroundGroup = null; }; BarView.type = 'bar'; return BarView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_11__["default"]); var clip = { cartesian2d: function (coordSysBoundingRect, layout) { var signWidth = layout.width < 0 ? -1 : 1; var signHeight = layout.height < 0 ? -1 : 1; // Needs positive width and height if (signWidth < 0) { layout.x += layout.width; layout.width = -layout.width; } if (signHeight < 0) { layout.y += layout.height; layout.height = -layout.height; } var coordSysX2 = coordSysBoundingRect.x + coordSysBoundingRect.width; var coordSysY2 = coordSysBoundingRect.y + coordSysBoundingRect.height; var x = mathMax(layout.x, coordSysBoundingRect.x); var x2 = mathMin(layout.x + layout.width, coordSysX2); var y = mathMax(layout.y, coordSysBoundingRect.y); var y2 = mathMin(layout.y + layout.height, coordSysY2); var xClipped = x2 < x; var yClipped = y2 < y; // When xClipped or yClipped, the element will be marked as `ignore`. // But we should also place the element at the edge of the coord sys bounding rect. // Because if data changed and the bar shows again, its transition animation // will begin at this place. layout.x = xClipped && x > coordSysX2 ? x2 : x; layout.y = yClipped && y > coordSysY2 ? y2 : y; layout.width = xClipped ? 0 : x2 - x; layout.height = yClipped ? 0 : y2 - y; // Reverse back if (signWidth < 0) { layout.x += layout.width; layout.width = -layout.width; } if (signHeight < 0) { layout.y += layout.height; layout.height = -layout.height; } return xClipped || yClipped; }, polar: function (coordSysClipArea, layout) { var signR = layout.r0 <= layout.r ? 1 : -1; // Make sure r is larger than r0 if (signR < 0) { var tmp = layout.r; layout.r = layout.r0; layout.r0 = tmp; } var r = mathMin(layout.r, coordSysClipArea.r); var r0 = mathMax(layout.r0, coordSysClipArea.r0); layout.r = r; layout.r0 = r0; var clipped = r - r0 < 0; // Reverse back if (signR < 0) { var tmp = layout.r; layout.r = layout.r0; layout.r0 = tmp; } return clipped; } }; var elementCreator = { cartesian2d: function (seriesModel, data, newIndex, layout, isHorizontal, animationModel, axisModel, isUpdate, roundCap) { var rect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Rect"]({ shape: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["extend"])({}, layout), z2: 1 }); rect.__dataIndex = newIndex; rect.name = 'item'; if (animationModel) { var rectShape = rect.shape; var animateProperty = isHorizontal ? 'height' : 'width'; rectShape[animateProperty] = 0; } return rect; }, polar: function (seriesModel, data, newIndex, layout, isRadial, animationModel, axisModel, isUpdate, roundCap) { var ShapeClass = !isRadial && roundCap ? _util_shape_sausage_js__WEBPACK_IMPORTED_MODULE_10__["default"] : _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Sector"]; var sector = new ShapeClass({ shape: layout, z2: 1 }); sector.name = 'item'; var positionMap = createPolarPositionMapping(isRadial); sector.calculateTextPosition = Object(_label_sectorLabel_js__WEBPACK_IMPORTED_MODULE_15__["createSectorCalculateTextPosition"])(positionMap, { isRoundCap: ShapeClass === _util_shape_sausage_js__WEBPACK_IMPORTED_MODULE_10__["default"] }); // Animation if (animationModel) { var sectorShape = sector.shape; var animateProperty = isRadial ? 'r' : 'endAngle'; var animateTarget = {}; sectorShape[animateProperty] = isRadial ? layout.r0 : layout.startAngle; animateTarget[animateProperty] = layout[animateProperty]; (isUpdate ? _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["updateProps"] : _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["initProps"])(sector, { shape: animateTarget // __value: typeof dataValue === 'string' ? parseInt(dataValue, 10) : dataValue }, animationModel); } return sector; } }; function shouldRealtimeSort(seriesModel, coordSys) { var realtimeSortOption = seriesModel.get('realtimeSort', true); var baseAxis = coordSys.getBaseAxis(); if (true) { if (realtimeSortOption) { if (baseAxis.type !== 'category') { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_14__["warn"])('`realtimeSort` will not work because this bar series is not based on a category axis.'); } if (coordSys.type !== 'cartesian2d') { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_14__["warn"])('`realtimeSort` will not work because this bar series is not on cartesian2d.'); } } } if (realtimeSortOption && baseAxis.type === 'category' && coordSys.type === 'cartesian2d') { return { baseAxis: baseAxis, otherAxis: coordSys.getOtherAxis(baseAxis) }; } } function updateRealtimeAnimation(realtimeSortCfg, seriesAnimationModel, el, layout, newIndex, isHorizontal, isUpdate, isChangeOrder) { var seriesTarget; var axisTarget; if (isHorizontal) { axisTarget = { x: layout.x, width: layout.width }; seriesTarget = { y: layout.y, height: layout.height }; } else { axisTarget = { y: layout.y, height: layout.height }; seriesTarget = { x: layout.x, width: layout.width }; } if (!isChangeOrder) { // Keep the original growth animation if only axis order changed. // Not start a new animation. (isUpdate ? _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["updateProps"] : _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["initProps"])(el, { shape: seriesTarget }, seriesAnimationModel, newIndex, null); } var axisAnimationModel = seriesAnimationModel ? realtimeSortCfg.baseAxis.model : null; (isUpdate ? _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["updateProps"] : _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["initProps"])(el, { shape: axisTarget }, axisAnimationModel, newIndex); } function checkPropertiesNotValid(obj, props) { for (var i = 0; i < props.length; i++) { if (!isFinite(obj[props[i]])) { return true; } } return false; } var rectPropties = ['x', 'y', 'width', 'height']; var polarPropties = ['cx', 'cy', 'r', 'startAngle', 'endAngle']; var isValidLayout = { cartesian2d: function (layout) { return !checkPropertiesNotValid(layout, rectPropties); }, polar: function (layout) { return !checkPropertiesNotValid(layout, polarPropties); } }; var getLayout = { // itemModel is only used to get borderWidth, which is not needed // when calculating bar background layout. cartesian2d: function (data, dataIndex, itemModel) { var layout = data.getItemLayout(dataIndex); var fixedLineWidth = itemModel ? getLineWidth(itemModel, layout) : 0; // fix layout with lineWidth var signX = layout.width > 0 ? 1 : -1; var signY = layout.height > 0 ? 1 : -1; return { x: layout.x + signX * fixedLineWidth / 2, y: layout.y + signY * fixedLineWidth / 2, width: layout.width - signX * fixedLineWidth, height: layout.height - signY * fixedLineWidth }; }, polar: function (data, dataIndex, itemModel) { var layout = data.getItemLayout(dataIndex); return { cx: layout.cx, cy: layout.cy, r0: layout.r0, r: layout.r, startAngle: layout.startAngle, endAngle: layout.endAngle, clockwise: layout.clockwise }; } }; function isZeroOnPolar(layout) { return layout.startAngle != null && layout.endAngle != null && layout.startAngle === layout.endAngle; } function createPolarPositionMapping(isRadial) { return function (isRadial) { var arcOrAngle = isRadial ? 'Arc' : 'Angle'; return function (position) { switch (position) { case 'start': case 'insideStart': case 'end': case 'insideEnd': return position + arcOrAngle; default: return position; } }; }(isRadial); } function updateStyle(el, data, dataIndex, itemModel, layout, seriesModel, isHorizontalOrRadial, isPolar) { var style = data.getItemVisual(dataIndex, 'style'); if (!isPolar) { var borderRadius = itemModel.get(['itemStyle', 'borderRadius']) || 0; el.setShape('r', borderRadius); } else if (!seriesModel.get('roundCap')) { var sectorShape = el.shape; var cornerRadius = Object(_helper_sectorHelper_js__WEBPACK_IMPORTED_MODULE_17__["getSectorCornerRadius"])(itemModel.getModel('itemStyle'), sectorShape, true); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["extend"])(sectorShape, cornerRadius); el.setShape(sectorShape); } el.useStyle(style); var cursorStyle = itemModel.getShallow('cursor'); cursorStyle && el.attr('cursor', cursorStyle); var labelPositionOutside = isPolar ? isHorizontalOrRadial ? layout.r >= layout.r0 ? 'endArc' : 'startArc' : layout.endAngle >= layout.startAngle ? 'endAngle' : 'startAngle' : isHorizontalOrRadial ? layout.height >= 0 ? 'bottom' : 'top' : layout.width >= 0 ? 'right' : 'left'; var labelStatesModels = Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["getLabelStatesModels"])(itemModel); Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["setLabelStyle"])(el, labelStatesModels, { labelFetcher: seriesModel, labelDataIndex: dataIndex, defaultText: Object(_helper_labelHelper_js__WEBPACK_IMPORTED_MODULE_13__["getDefaultLabel"])(seriesModel.getData(), dataIndex), inheritColor: style.fill, defaultOpacity: style.opacity, defaultOutsidePosition: labelPositionOutside }); var label = el.getTextContent(); if (isPolar && label) { var position = itemModel.get(['label', 'position']); el.textConfig.inside = position === 'middle' ? true : null; Object(_label_sectorLabel_js__WEBPACK_IMPORTED_MODULE_15__["setSectorTextRotation"])(el, position === 'outside' ? labelPositionOutside : position, createPolarPositionMapping(isHorizontalOrRadial), itemModel.get(['label', 'rotate'])); } Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["setLabelValueAnimation"])(label, labelStatesModels, seriesModel.getRawValue(dataIndex), function (value) { return Object(_helper_labelHelper_js__WEBPACK_IMPORTED_MODULE_13__["getDefaultInterpolatedLabel"])(data, value); }); var emphasisModel = itemModel.getModel(['emphasis']); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_6__["toggleHoverEmphasis"])(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled')); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_6__["setStatesStylesFromModel"])(el, itemModel); if (isZeroOnPolar(layout)) { el.style.fill = 'none'; el.style.stroke = 'none'; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(el.states, function (state) { if (state.style) { state.style.fill = state.style.stroke = 'none'; } }); } } // In case width or height are too small. function getLineWidth(itemModel, rawLayout) { // Has no border. var borderColor = itemModel.get(['itemStyle', 'borderColor']); if (!borderColor || borderColor === 'none') { return 0; } var lineWidth = itemModel.get(['itemStyle', 'borderWidth']) || 0; // width or height may be NaN for empty data var width = isNaN(rawLayout.width) ? Number.MAX_VALUE : Math.abs(rawLayout.width); var height = isNaN(rawLayout.height) ? Number.MAX_VALUE : Math.abs(rawLayout.height); return Math.min(lineWidth, width, height); } var LagePathShape = /** @class */function () { function LagePathShape() {} return LagePathShape; }(); var LargePath = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LargePath, _super); function LargePath(opts) { var _this = _super.call(this, opts) || this; _this.type = 'largeBar'; return _this; } LargePath.prototype.getDefaultShape = function () { return new LagePathShape(); }; LargePath.prototype.buildPath = function (ctx, shape) { // Drawing lines is more efficient than drawing // a whole line or drawing rects. var points = shape.points; var baseDimIdx = this.baseDimIdx; var valueDimIdx = 1 - this.baseDimIdx; var startPoint = []; var size = []; var barWidth = this.barWidth; for (var i = 0; i < points.length; i += 3) { size[baseDimIdx] = barWidth; size[valueDimIdx] = points[i + 2]; startPoint[baseDimIdx] = points[i + baseDimIdx]; startPoint[valueDimIdx] = points[i + valueDimIdx]; ctx.rect(startPoint[0], startPoint[1], size[0], size[1]); } }; return LargePath; }(zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_1__["default"]); function createLarge(seriesModel, group, progressiveEls, incremental) { // TODO support polar var data = seriesModel.getData(); var baseDimIdx = data.getLayout('valueAxisHorizontal') ? 1 : 0; var largeDataIndices = data.getLayout('largeDataIndices'); var barWidth = data.getLayout('size'); var backgroundModel = seriesModel.getModel('backgroundStyle'); var bgPoints = data.getLayout('largeBackgroundPoints'); if (bgPoints) { var bgEl = new LargePath({ shape: { points: bgPoints }, incremental: !!incremental, silent: true, z2: 0 }); bgEl.baseDimIdx = baseDimIdx; bgEl.largeDataIndices = largeDataIndices; bgEl.barWidth = barWidth; bgEl.useStyle(backgroundModel.getItemStyle()); group.add(bgEl); progressiveEls && progressiveEls.push(bgEl); } var el = new LargePath({ shape: { points: data.getLayout('largePoints') }, incremental: !!incremental, ignoreCoarsePointer: true, z2: 1 }); el.baseDimIdx = baseDimIdx; el.largeDataIndices = largeDataIndices; el.barWidth = barWidth; group.add(el); el.useStyle(data.getVisual('style')); // Stroke is rendered first to avoid overlapping with fill el.style.stroke = null; // Enable tooltip and user mouse/touch event handlers. Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_5__["getECData"])(el).seriesIndex = seriesModel.seriesIndex; if (!seriesModel.get('silent')) { el.on('mousedown', largePathUpdateDataIndex); el.on('mousemove', largePathUpdateDataIndex); } progressiveEls && progressiveEls.push(el); } // Use throttle to avoid frequently traverse to find dataIndex. var largePathUpdateDataIndex = Object(_util_throttle_js__WEBPACK_IMPORTED_MODULE_8__["throttle"])(function (event) { var largePath = this; var dataIndex = largePathFindDataIndex(largePath, event.offsetX, event.offsetY); Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_5__["getECData"])(largePath).dataIndex = dataIndex >= 0 ? dataIndex : null; }, 30, false); function largePathFindDataIndex(largePath, x, y) { var baseDimIdx = largePath.baseDimIdx; var valueDimIdx = 1 - baseDimIdx; var points = largePath.shape.points; var largeDataIndices = largePath.largeDataIndices; var startPoint = []; var size = []; var barWidth = largePath.barWidth; for (var i = 0, len = points.length / 3; i < len; i++) { var ii = i * 3; size[baseDimIdx] = barWidth; size[valueDimIdx] = points[ii + 2]; startPoint[baseDimIdx] = points[ii + baseDimIdx]; startPoint[valueDimIdx] = points[ii + valueDimIdx]; if (size[valueDimIdx] < 0) { startPoint[valueDimIdx] += size[valueDimIdx]; size[valueDimIdx] = -size[valueDimIdx]; } if (x >= startPoint[0] && x <= startPoint[0] + size[0] && y >= startPoint[1] && y <= startPoint[1] + size[1]) { return largeDataIndices[i]; } } return -1; } function createBackgroundShape(isHorizontalOrRadial, layout, coord) { if (Object(_coord_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_12__["isCoordinateSystemType"])(coord, 'cartesian2d')) { var rectShape = layout; var coordLayout = coord.getArea(); return { x: isHorizontalOrRadial ? rectShape.x : coordLayout.x, y: isHorizontalOrRadial ? coordLayout.y : rectShape.y, width: isHorizontalOrRadial ? rectShape.width : coordLayout.width, height: isHorizontalOrRadial ? coordLayout.height : rectShape.height }; } else { var coordLayout = coord.getArea(); var sectorShape = layout; return { cx: coordLayout.cx, cy: coordLayout.cy, r0: isHorizontalOrRadial ? coordLayout.r0 : sectorShape.r0, r: isHorizontalOrRadial ? coordLayout.r : sectorShape.r, startAngle: isHorizontalOrRadial ? sectorShape.startAngle : 0, endAngle: isHorizontalOrRadial ? sectorShape.endAngle : Math.PI * 2 }; } } function createBackgroundEl(coord, isHorizontalOrRadial, layout) { var ElementClz = coord.type === 'polar' ? _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Sector"] : _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Rect"]; return new ElementClz({ shape: createBackgroundShape(isHorizontalOrRadial, layout, coord), silent: true, z2: 0 }); } /* harmony default export */ __webpack_exports__["default"] = (BarView); /***/ }), /***/ "./node_modules/echarts/lib/chart/bar/BaseBarSeries.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/bar/BaseBarSeries.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/createSeriesData.js */ "./node_modules/echarts/lib/chart/helper/createSeriesData.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var BaseBarSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BaseBarSeriesModel, _super); function BaseBarSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = BaseBarSeriesModel.type; return _this; } BaseBarSeriesModel.prototype.getInitialData = function (option, ecModel) { return Object(_helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_2__["default"])(null, this, { useEncodeDefaulter: true }); }; BaseBarSeriesModel.prototype.getMarkerPosition = function (value, dims, startingAtTick) { var coordSys = this.coordinateSystem; if (coordSys && coordSys.clampData) { // PENDING if clamp ? var clampData_1 = coordSys.clampData(value); var pt_1 = coordSys.dataToPoint(clampData_1); if (startingAtTick) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(coordSys.getAxes(), function (axis, idx) { // If axis type is category, use tick coords instead if (axis.type === 'category' && dims != null) { var tickCoords = axis.getTicksCoords(); var alignTicksWithLabel = axis.getTickModel().get('alignWithLabel'); var targetTickId = clampData_1[idx]; // The index of rightmost tick of markArea is 1 larger than x1/y1 index var isEnd = dims[idx] === 'x1' || dims[idx] === 'y1'; if (isEnd && !alignTicksWithLabel) { targetTickId += 1; } // The only contains one tick, tickCoords is // like [{coord: 0, tickValue: 0}, {coord: 0}] // to the length should always be larger than 1 if (tickCoords.length < 2) { return; } else if (tickCoords.length === 2) { // The left value and right value of the axis are // the same. coord is 0 in both items. Use the max // value of the axis as the coord pt_1[idx] = axis.toGlobalCoord(axis.getExtent()[isEnd ? 1 : 0]); return; } var leftCoord = void 0; var coord = void 0; var stepTickValue = 1; for (var i = 0; i < tickCoords.length; i++) { var tickCoord = tickCoords[i].coord; // The last item of tickCoords doesn't contain // tickValue var tickValue = i === tickCoords.length - 1 ? tickCoords[i - 1].tickValue + stepTickValue : tickCoords[i].tickValue; if (tickValue === targetTickId) { coord = tickCoord; break; } else if (tickValue < targetTickId) { leftCoord = tickCoord; } else if (leftCoord != null && tickValue > targetTickId) { coord = (tickCoord + leftCoord) / 2; break; } if (i === 1) { // Here we assume the step of category axes is // the same stepTickValue = tickValue - tickCoords[0].tickValue; } } if (coord == null) { if (!leftCoord) { // targetTickId is smaller than all tick ids in the // visible area, use the leftmost tick coord coord = tickCoords[0].coord; } else if (leftCoord) { // targetTickId is larger than all tick ids in the // visible area, use the rightmost tick coord coord = tickCoords[tickCoords.length - 1].coord; } } pt_1[idx] = axis.toGlobalCoord(coord); } }); } else { var data = this.getData(); var offset = data.getLayout('offset'); var size = data.getLayout('size'); var offsetIndex = coordSys.getBaseAxis().isHorizontal() ? 0 : 1; pt_1[offsetIndex] += offset + size / 2; } return pt_1; } return [NaN, NaN]; }; BaseBarSeriesModel.type = 'series.__base_bar__'; BaseBarSeriesModel.defaultOption = { // zlevel: 0, z: 2, coordinateSystem: 'cartesian2d', legendHoverLink: true, // stack: null // Cartesian coordinate system // xAxisIndex: 0, // yAxisIndex: 0, barMinHeight: 0, barMinAngle: 0, // cursor: null, large: false, largeThreshold: 400, progressive: 3e3, progressiveChunkMode: 'mod' }; return BaseBarSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_1__["default"]); _model_Series_js__WEBPACK_IMPORTED_MODULE_1__["default"].registerClass(BaseBarSeriesModel); /* harmony default export */ __webpack_exports__["default"] = (BaseBarSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/bar/PictorialBarSeries.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/chart/bar/PictorialBarSeries.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _BaseBarSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseBarSeries.js */ "./node_modules/echarts/lib/chart/bar/BaseBarSeries.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PictorialBarSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PictorialBarSeriesModel, _super); function PictorialBarSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = PictorialBarSeriesModel.type; _this.hasSymbolVisual = true; _this.defaultSymbol = 'roundRect'; return _this; } PictorialBarSeriesModel.prototype.getInitialData = function (option) { // Disable stack. option.stack = null; return _super.prototype.getInitialData.apply(this, arguments); }; PictorialBarSeriesModel.type = 'series.pictorialBar'; PictorialBarSeriesModel.dependencies = ['grid']; PictorialBarSeriesModel.defaultOption = Object(_util_component_js__WEBPACK_IMPORTED_MODULE_2__["inheritDefaultOption"])(_BaseBarSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"].defaultOption, { symbol: 'circle', symbolSize: null, symbolRotate: null, symbolPosition: null, symbolOffset: null, symbolMargin: null, symbolRepeat: false, symbolRepeatDirection: 'end', symbolClip: false, symbolBoundingData: null, symbolPatternSize: 400, barGap: '-100%', // Pictorial bar do not clip by default because in many cases // xAxis and yAxis are not displayed and it's expected not to clip clip: false, // z can be set in data item, which is z2 actually. // Disable progressive progressive: 0, emphasis: { // By default pictorialBar do not hover scale. Hover scale is not suitable // for the case that both has foreground and background. scale: false }, select: { itemStyle: { borderColor: '#212121' } } }); return PictorialBarSeriesModel; }(_BaseBarSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (PictorialBarSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/bar/PictorialBarView.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/bar/PictorialBarView.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _helper_labelHelper_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helper/labelHelper.js */ "./node_modules/echarts/lib/chart/helper/labelHelper.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! zrender/lib/graphic/Image.js */ "./node_modules/zrender/lib/graphic/Image.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _helper_createClipPathFromCoordSys_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../helper/createClipPathFromCoordSys.js */ "./node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var BAR_BORDER_WIDTH_QUERY = ['itemStyle', 'borderWidth']; // index: +isHorizontal var LAYOUT_ATTRS = [{ xy: 'x', wh: 'width', index: 0, posDesc: ['left', 'right'] }, { xy: 'y', wh: 'height', index: 1, posDesc: ['top', 'bottom'] }]; var pathForLineWidth = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Circle"](); var PictorialBarView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PictorialBarView, _super); function PictorialBarView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = PictorialBarView.type; return _this; } PictorialBarView.prototype.render = function (seriesModel, ecModel, api) { var group = this.group; var data = seriesModel.getData(); var oldData = this._data; var cartesian = seriesModel.coordinateSystem; var baseAxis = cartesian.getBaseAxis(); var isHorizontal = baseAxis.isHorizontal(); var coordSysRect = cartesian.master.getRect(); var opt = { ecSize: { width: api.getWidth(), height: api.getHeight() }, seriesModel: seriesModel, coordSys: cartesian, coordSysExtent: [[coordSysRect.x, coordSysRect.x + coordSysRect.width], [coordSysRect.y, coordSysRect.y + coordSysRect.height]], isHorizontal: isHorizontal, valueDim: LAYOUT_ATTRS[+isHorizontal], categoryDim: LAYOUT_ATTRS[1 - +isHorizontal] }; data.diff(oldData).add(function (dataIndex) { if (!data.hasValue(dataIndex)) { return; } var itemModel = getItemModel(data, dataIndex); var symbolMeta = getSymbolMeta(data, dataIndex, itemModel, opt); var bar = createBar(data, opt, symbolMeta); data.setItemGraphicEl(dataIndex, bar); group.add(bar); updateCommon(bar, opt, symbolMeta); }).update(function (newIndex, oldIndex) { var bar = oldData.getItemGraphicEl(oldIndex); if (!data.hasValue(newIndex)) { group.remove(bar); return; } var itemModel = getItemModel(data, newIndex); var symbolMeta = getSymbolMeta(data, newIndex, itemModel, opt); var pictorialShapeStr = getShapeStr(data, symbolMeta); if (bar && pictorialShapeStr !== bar.__pictorialShapeStr) { group.remove(bar); data.setItemGraphicEl(newIndex, null); bar = null; } if (bar) { updateBar(bar, opt, symbolMeta); } else { bar = createBar(data, opt, symbolMeta, true); } data.setItemGraphicEl(newIndex, bar); bar.__pictorialSymbolMeta = symbolMeta; // Add back group.add(bar); updateCommon(bar, opt, symbolMeta); }).remove(function (dataIndex) { var bar = oldData.getItemGraphicEl(dataIndex); bar && removeBar(oldData, dataIndex, bar.__pictorialSymbolMeta.animationModel, bar); }).execute(); // Do clipping var clipPath = seriesModel.get('clip', true) ? Object(_helper_createClipPathFromCoordSys_js__WEBPACK_IMPORTED_MODULE_11__["createClipPath"])(seriesModel.coordinateSystem, false, seriesModel) : null; if (clipPath) { group.setClipPath(clipPath); } else { group.removeClipPath(); } this._data = data; return this.group; }; PictorialBarView.prototype.remove = function (ecModel, api) { var group = this.group; var data = this._data; if (ecModel.get('animation')) { if (data) { data.eachItemGraphicEl(function (bar) { removeBar(data, Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_10__["getECData"])(bar).dataIndex, ecModel, bar); }); } } else { group.removeAll(); } }; PictorialBarView.type = 'pictorialBar'; return PictorialBarView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_6__["default"]); // Set or calculate default value about symbol, and calculate layout info. function getSymbolMeta(data, dataIndex, itemModel, opt) { var layout = data.getItemLayout(dataIndex); var symbolRepeat = itemModel.get('symbolRepeat'); var symbolClip = itemModel.get('symbolClip'); var symbolPosition = itemModel.get('symbolPosition') || 'start'; var symbolRotate = itemModel.get('symbolRotate'); var rotation = (symbolRotate || 0) * Math.PI / 180 || 0; var symbolPatternSize = itemModel.get('symbolPatternSize') || 2; var isAnimationEnabled = itemModel.isAnimationEnabled(); var symbolMeta = { dataIndex: dataIndex, layout: layout, itemModel: itemModel, symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle', style: data.getItemVisual(dataIndex, 'style'), symbolClip: symbolClip, symbolRepeat: symbolRepeat, symbolRepeatDirection: itemModel.get('symbolRepeatDirection'), symbolPatternSize: symbolPatternSize, rotation: rotation, animationModel: isAnimationEnabled ? itemModel : null, hoverScale: isAnimationEnabled && itemModel.get(['emphasis', 'scale']), z2: itemModel.getShallow('z', true) || 0 }; prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta); prepareSymbolSize(data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength, symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta); prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta); var symbolSize = symbolMeta.symbolSize; var symbolOffset = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_4__["normalizeSymbolOffset"])(itemModel.get('symbolOffset'), symbolSize); prepareLayoutInfo(itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength, opt, symbolMeta); return symbolMeta; } // bar length can be negative. function prepareBarLength(itemModel, symbolRepeat, layout, opt, outputSymbolMeta) { var valueDim = opt.valueDim; var symbolBoundingData = itemModel.get('symbolBoundingData'); var valueAxis = opt.coordSys.getOtherAxis(opt.coordSys.getBaseAxis()); var zeroPx = valueAxis.toGlobalCoord(valueAxis.dataToCoord(0)); var pxSignIdx = 1 - +(layout[valueDim.wh] <= 0); var boundingLength; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](symbolBoundingData)) { var symbolBoundingExtent = [convertToCoordOnAxis(valueAxis, symbolBoundingData[0]) - zeroPx, convertToCoordOnAxis(valueAxis, symbolBoundingData[1]) - zeroPx]; symbolBoundingExtent[1] < symbolBoundingExtent[0] && symbolBoundingExtent.reverse(); boundingLength = symbolBoundingExtent[pxSignIdx]; } else if (symbolBoundingData != null) { boundingLength = convertToCoordOnAxis(valueAxis, symbolBoundingData) - zeroPx; } else if (symbolRepeat) { boundingLength = opt.coordSysExtent[valueDim.index][pxSignIdx] - zeroPx; } else { boundingLength = layout[valueDim.wh]; } outputSymbolMeta.boundingLength = boundingLength; if (symbolRepeat) { outputSymbolMeta.repeatCutLength = layout[valueDim.wh]; } // if 'pxSign' means sign of pixel, it can't be zero, or symbolScale will be zero // and when borderWidth be settled, the actual linewidth will be NaN var isXAxis = valueDim.xy === 'x'; var isInverse = valueAxis.inverse; outputSymbolMeta.pxSign = isXAxis && !isInverse || !isXAxis && isInverse ? boundingLength >= 0 ? 1 : -1 : boundingLength > 0 ? 1 : -1; } function convertToCoordOnAxis(axis, value) { return axis.toGlobalCoord(axis.dataToCoord(axis.scale.parse(value))); } // Support ['100%', '100%'] function prepareSymbolSize(data, dataIndex, layout, symbolRepeat, symbolClip, boundingLength, pxSign, symbolPatternSize, opt, outputSymbolMeta) { var valueDim = opt.valueDim; var categoryDim = opt.categoryDim; var categorySize = Math.abs(layout[categoryDim.wh]); var symbolSize = data.getItemVisual(dataIndex, 'symbolSize'); var parsedSymbolSize; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](symbolSize)) { parsedSymbolSize = symbolSize.slice(); } else { if (symbolSize == null) { // will parse to number below parsedSymbolSize = ['100%', '100%']; } else { parsedSymbolSize = [symbolSize, symbolSize]; } } // Note: percentage symbolSize (like '100%') do not consider lineWidth, because it is // to complicated to calculate real percent value if considering scaled lineWidth. // So the actual size will bigger than layout size if lineWidth is bigger than zero, // which can be tolerated in pictorial chart. parsedSymbolSize[categoryDim.index] = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["parsePercent"])(parsedSymbolSize[categoryDim.index], categorySize); parsedSymbolSize[valueDim.index] = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["parsePercent"])(parsedSymbolSize[valueDim.index], symbolRepeat ? categorySize : Math.abs(boundingLength)); outputSymbolMeta.symbolSize = parsedSymbolSize; // If x or y is less than zero, show reversed shape. var symbolScale = outputSymbolMeta.symbolScale = [parsedSymbolSize[0] / symbolPatternSize, parsedSymbolSize[1] / symbolPatternSize]; // Follow convention, 'right' and 'top' is the normal scale. symbolScale[valueDim.index] *= (opt.isHorizontal ? -1 : 1) * pxSign; } function prepareLineWidth(itemModel, symbolScale, rotation, opt, outputSymbolMeta) { // In symbols are drawn with scale, so do not need to care about the case that width // or height are too small. But symbol use strokeNoScale, where acture lineWidth should // be calculated. var valueLineWidth = itemModel.get(BAR_BORDER_WIDTH_QUERY) || 0; if (valueLineWidth) { pathForLineWidth.attr({ scaleX: symbolScale[0], scaleY: symbolScale[1], rotation: rotation }); pathForLineWidth.updateTransform(); valueLineWidth /= pathForLineWidth.getLineScale(); valueLineWidth *= symbolScale[opt.valueDim.index]; } outputSymbolMeta.valueLineWidth = valueLineWidth || 0; } function prepareLayoutInfo(itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, valueLineWidth, boundingLength, repeatCutLength, opt, outputSymbolMeta) { var categoryDim = opt.categoryDim; var valueDim = opt.valueDim; var pxSign = outputSymbolMeta.pxSign; var unitLength = Math.max(symbolSize[valueDim.index] + valueLineWidth, 0); var pathLen = unitLength; // Note: rotation will not effect the layout of symbols, because user may // want symbols to rotate on its center, which should not be translated // when rotating. if (symbolRepeat) { var absBoundingLength = Math.abs(boundingLength); var symbolMargin = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve"](itemModel.get('symbolMargin'), '15%') + ''; var hasEndGap = false; if (symbolMargin.lastIndexOf('!') === symbolMargin.length - 1) { hasEndGap = true; symbolMargin = symbolMargin.slice(0, symbolMargin.length - 1); } var symbolMarginNumeric = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["parsePercent"])(symbolMargin, symbolSize[valueDim.index]); var uLenWithMargin = Math.max(unitLength + symbolMarginNumeric * 2, 0); // When symbol margin is less than 0, margin at both ends will be subtracted // to ensure that all of the symbols will not be overflow the given area. var endFix = hasEndGap ? 0 : symbolMarginNumeric * 2; // Both final repeatTimes and final symbolMarginNumeric area calculated based on // boundingLength. var repeatSpecified = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["isNumeric"])(symbolRepeat); var repeatTimes = repeatSpecified ? symbolRepeat : toIntTimes((absBoundingLength + endFix) / uLenWithMargin); // Adjust calculate margin, to ensure each symbol is displayed // entirely in the given layout area. var mDiff = absBoundingLength - repeatTimes * unitLength; symbolMarginNumeric = mDiff / 2 / (hasEndGap ? repeatTimes : Math.max(repeatTimes - 1, 1)); uLenWithMargin = unitLength + symbolMarginNumeric * 2; endFix = hasEndGap ? 0 : symbolMarginNumeric * 2; // Update repeatTimes when not all symbol will be shown. if (!repeatSpecified && symbolRepeat !== 'fixed') { repeatTimes = repeatCutLength ? toIntTimes((Math.abs(repeatCutLength) + endFix) / uLenWithMargin) : 0; } pathLen = repeatTimes * uLenWithMargin - endFix; outputSymbolMeta.repeatTimes = repeatTimes; outputSymbolMeta.symbolMargin = symbolMarginNumeric; } var sizeFix = pxSign * (pathLen / 2); var pathPosition = outputSymbolMeta.pathPosition = []; pathPosition[categoryDim.index] = layout[categoryDim.wh] / 2; pathPosition[valueDim.index] = symbolPosition === 'start' ? sizeFix : symbolPosition === 'end' ? boundingLength - sizeFix : boundingLength / 2; // 'center' if (symbolOffset) { pathPosition[0] += symbolOffset[0]; pathPosition[1] += symbolOffset[1]; } var bundlePosition = outputSymbolMeta.bundlePosition = []; bundlePosition[categoryDim.index] = layout[categoryDim.xy]; bundlePosition[valueDim.index] = layout[valueDim.xy]; var barRectShape = outputSymbolMeta.barRectShape = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"]({}, layout); barRectShape[valueDim.wh] = pxSign * Math.max(Math.abs(layout[valueDim.wh]), Math.abs(pathPosition[valueDim.index] + sizeFix)); barRectShape[categoryDim.wh] = layout[categoryDim.wh]; var clipShape = outputSymbolMeta.clipShape = {}; // Consider that symbol may be overflow layout rect. clipShape[categoryDim.xy] = -layout[categoryDim.xy]; clipShape[categoryDim.wh] = opt.ecSize[categoryDim.wh]; clipShape[valueDim.xy] = 0; clipShape[valueDim.wh] = layout[valueDim.wh]; } function createPath(symbolMeta) { var symbolPatternSize = symbolMeta.symbolPatternSize; var path = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_4__["createSymbol"])( // Consider texture img, make a big size. symbolMeta.symbolType, -symbolPatternSize / 2, -symbolPatternSize / 2, symbolPatternSize, symbolPatternSize); path.attr({ culling: true }); path.type !== 'image' && path.setStyle({ strokeNoScale: true }); return path; } function createOrUpdateRepeatSymbols(bar, opt, symbolMeta, isUpdate) { var bundle = bar.__pictorialBundle; var symbolSize = symbolMeta.symbolSize; var valueLineWidth = symbolMeta.valueLineWidth; var pathPosition = symbolMeta.pathPosition; var valueDim = opt.valueDim; var repeatTimes = symbolMeta.repeatTimes || 0; var index = 0; var unit = symbolSize[opt.valueDim.index] + valueLineWidth + symbolMeta.symbolMargin * 2; eachPath(bar, function (path) { path.__pictorialAnimationIndex = index; path.__pictorialRepeatTimes = repeatTimes; if (index < repeatTimes) { updateAttr(path, null, makeTarget(index), symbolMeta, isUpdate); } else { updateAttr(path, null, { scaleX: 0, scaleY: 0 }, symbolMeta, isUpdate, function () { bundle.remove(path); }); } // updateHoverAnimation(path, symbolMeta); index++; }); for (; index < repeatTimes; index++) { var path = createPath(symbolMeta); path.__pictorialAnimationIndex = index; path.__pictorialRepeatTimes = repeatTimes; bundle.add(path); var target = makeTarget(index); updateAttr(path, { x: target.x, y: target.y, scaleX: 0, scaleY: 0 }, { scaleX: target.scaleX, scaleY: target.scaleY, rotation: target.rotation }, symbolMeta, isUpdate); } function makeTarget(index) { var position = pathPosition.slice(); // (start && pxSign > 0) || (end && pxSign < 0): i = repeatTimes - index // Otherwise: i = index; var pxSign = symbolMeta.pxSign; var i = index; if (symbolMeta.symbolRepeatDirection === 'start' ? pxSign > 0 : pxSign < 0) { i = repeatTimes - 1 - index; } position[valueDim.index] = unit * (i - repeatTimes / 2 + 0.5) + pathPosition[valueDim.index]; return { x: position[0], y: position[1], scaleX: symbolMeta.symbolScale[0], scaleY: symbolMeta.symbolScale[1], rotation: symbolMeta.rotation }; } } function createOrUpdateSingleSymbol(bar, opt, symbolMeta, isUpdate) { var bundle = bar.__pictorialBundle; var mainPath = bar.__pictorialMainPath; if (!mainPath) { mainPath = bar.__pictorialMainPath = createPath(symbolMeta); bundle.add(mainPath); updateAttr(mainPath, { x: symbolMeta.pathPosition[0], y: symbolMeta.pathPosition[1], scaleX: 0, scaleY: 0, rotation: symbolMeta.rotation }, { scaleX: symbolMeta.symbolScale[0], scaleY: symbolMeta.symbolScale[1] }, symbolMeta, isUpdate); } else { updateAttr(mainPath, null, { x: symbolMeta.pathPosition[0], y: symbolMeta.pathPosition[1], scaleX: symbolMeta.symbolScale[0], scaleY: symbolMeta.symbolScale[1], rotation: symbolMeta.rotation }, symbolMeta, isUpdate); } } // bar rect is used for label. function createOrUpdateBarRect(bar, symbolMeta, isUpdate) { var rectShape = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"]({}, symbolMeta.barRectShape); var barRect = bar.__pictorialBarRect; if (!barRect) { barRect = bar.__pictorialBarRect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Rect"]({ z2: 2, shape: rectShape, silent: true, style: { stroke: 'transparent', fill: 'transparent', lineWidth: 0 } }); barRect.disableMorphing = true; bar.add(barRect); } else { updateAttr(barRect, null, { shape: rectShape }, symbolMeta, isUpdate); } } function createOrUpdateClip(bar, opt, symbolMeta, isUpdate) { // If not clip, symbol will be remove and rebuilt. if (symbolMeta.symbolClip) { var clipPath = bar.__pictorialClipPath; var clipShape = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"]({}, symbolMeta.clipShape); var valueDim = opt.valueDim; var animationModel = symbolMeta.animationModel; var dataIndex = symbolMeta.dataIndex; if (clipPath) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["updateProps"](clipPath, { shape: clipShape }, animationModel, dataIndex); } else { clipShape[valueDim.wh] = 0; clipPath = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Rect"]({ shape: clipShape }); bar.__pictorialBundle.setClipPath(clipPath); bar.__pictorialClipPath = clipPath; var target = {}; target[valueDim.wh] = symbolMeta.clipShape[valueDim.wh]; _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__[isUpdate ? 'updateProps' : 'initProps'](clipPath, { shape: target }, animationModel, dataIndex); } } } function getItemModel(data, dataIndex) { var itemModel = data.getItemModel(dataIndex); itemModel.getAnimationDelayParams = getAnimationDelayParams; itemModel.isAnimationEnabled = isAnimationEnabled; return itemModel; } function getAnimationDelayParams(path) { // The order is the same as the z-order, see `symbolRepeatDiretion`. return { index: path.__pictorialAnimationIndex, count: path.__pictorialRepeatTimes }; } function isAnimationEnabled() { // `animation` prop can be set on itemModel in pictorial bar chart. return this.parentModel.isAnimationEnabled() && !!this.getShallow('animation'); } function createBar(data, opt, symbolMeta, isUpdate) { // bar is the main element for each data. var bar = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"](); // bundle is used for location and clip. var bundle = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"](); bar.add(bundle); bar.__pictorialBundle = bundle; bundle.x = symbolMeta.bundlePosition[0]; bundle.y = symbolMeta.bundlePosition[1]; if (symbolMeta.symbolRepeat) { createOrUpdateRepeatSymbols(bar, opt, symbolMeta); } else { createOrUpdateSingleSymbol(bar, opt, symbolMeta); } createOrUpdateBarRect(bar, symbolMeta, isUpdate); createOrUpdateClip(bar, opt, symbolMeta, isUpdate); bar.__pictorialShapeStr = getShapeStr(data, symbolMeta); bar.__pictorialSymbolMeta = symbolMeta; return bar; } function updateBar(bar, opt, symbolMeta) { var animationModel = symbolMeta.animationModel; var dataIndex = symbolMeta.dataIndex; var bundle = bar.__pictorialBundle; _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["updateProps"](bundle, { x: symbolMeta.bundlePosition[0], y: symbolMeta.bundlePosition[1] }, animationModel, dataIndex); if (symbolMeta.symbolRepeat) { createOrUpdateRepeatSymbols(bar, opt, symbolMeta, true); } else { createOrUpdateSingleSymbol(bar, opt, symbolMeta, true); } createOrUpdateBarRect(bar, symbolMeta, true); createOrUpdateClip(bar, opt, symbolMeta, true); } function removeBar(data, dataIndex, animationModel, bar) { // Not show text when animating var labelRect = bar.__pictorialBarRect; labelRect && labelRect.removeTextContent(); var paths = []; eachPath(bar, function (path) { paths.push(path); }); bar.__pictorialMainPath && paths.push(bar.__pictorialMainPath); // I do not find proper remove animation for clip yet. bar.__pictorialClipPath && (animationModel = null); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](paths, function (path) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["removeElement"](path, { scaleX: 0, scaleY: 0 }, animationModel, dataIndex, function () { bar.parent && bar.parent.remove(bar); }); }); data.setItemGraphicEl(dataIndex, null); } function getShapeStr(data, symbolMeta) { return [data.getItemVisual(symbolMeta.dataIndex, 'symbol') || 'none', !!symbolMeta.symbolRepeat, !!symbolMeta.symbolClip].join(':'); } function eachPath(bar, cb, context) { // Do not use Group#eachChild, because it do not support remove. zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](bar.__pictorialBundle.children(), function (el) { el !== bar.__pictorialBarRect && cb.call(context, el); }); } function updateAttr(el, immediateAttrs, animationAttrs, symbolMeta, isUpdate, cb) { immediateAttrs && el.attr(immediateAttrs); // when symbolCip used, only clip path has init animation, otherwise it would be weird effect. if (symbolMeta.symbolClip && !isUpdate) { animationAttrs && el.attr(animationAttrs); } else { animationAttrs && _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__[isUpdate ? 'updateProps' : 'initProps'](el, animationAttrs, symbolMeta.animationModel, symbolMeta.dataIndex, cb); } } function updateCommon(bar, opt, symbolMeta) { var dataIndex = symbolMeta.dataIndex; var itemModel = symbolMeta.itemModel; // Color must be excluded. // Because symbol provide setColor individually to set fill and stroke var emphasisModel = itemModel.getModel('emphasis'); var emphasisStyle = emphasisModel.getModel('itemStyle').getItemStyle(); var blurStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle(); var selectStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle(); var cursorStyle = itemModel.getShallow('cursor'); var focus = emphasisModel.get('focus'); var blurScope = emphasisModel.get('blurScope'); var hoverScale = emphasisModel.get('scale'); eachPath(bar, function (path) { if (path instanceof zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_9__["default"]) { var pathStyle = path.style; path.useStyle(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"]({ // TODO other properties like dx, dy ? image: pathStyle.image, x: pathStyle.x, y: pathStyle.y, width: pathStyle.width, height: pathStyle.height }, symbolMeta.style)); } else { path.useStyle(symbolMeta.style); } var emphasisState = path.ensureState('emphasis'); emphasisState.style = emphasisStyle; if (hoverScale) { // NOTE: Must after scale is set after updateAttr emphasisState.scaleX = path.scaleX * 1.1; emphasisState.scaleY = path.scaleY * 1.1; } path.ensureState('blur').style = blurStyle; path.ensureState('select').style = selectStyle; cursorStyle && (path.cursor = cursorStyle); path.z2 = symbolMeta.z2; }); var barPositionOutside = opt.valueDim.posDesc[+(symbolMeta.boundingLength > 0)]; var barRect = bar.__pictorialBarRect; barRect.ignoreClip = true; Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_8__["setLabelStyle"])(barRect, Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_8__["getLabelStatesModels"])(itemModel), { labelFetcher: opt.seriesModel, labelDataIndex: dataIndex, defaultText: Object(_helper_labelHelper_js__WEBPACK_IMPORTED_MODULE_7__["getDefaultLabel"])(opt.seriesModel.getData(), dataIndex), inheritColor: symbolMeta.style.fill, defaultOpacity: symbolMeta.style.opacity, defaultOutsidePosition: barPositionOutside }); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["toggleHoverEmphasis"])(bar, focus, blurScope, emphasisModel.get('disabled')); } function toIntTimes(times) { var roundedTimes = Math.round(times); // Escapse accurate error return Math.abs(times - roundedTimes) < 1e-4 ? roundedTimes : Math.ceil(times); } /* harmony default export */ __webpack_exports__["default"] = (PictorialBarView); /***/ }), /***/ "./node_modules/echarts/lib/chart/bar/install.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/chart/bar/install.js ***! \*******************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _layout_barGrid_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../layout/barGrid.js */ "./node_modules/echarts/lib/layout/barGrid.js"); /* harmony import */ var _processor_dataSample_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../processor/dataSample.js */ "./node_modules/echarts/lib/processor/dataSample.js"); /* harmony import */ var _BarSeries_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./BarSeries.js */ "./node_modules/echarts/lib/chart/bar/BarSeries.js"); /* harmony import */ var _BarView_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BarView.js */ "./node_modules/echarts/lib/chart/bar/BarView.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerChartView(_BarView_js__WEBPACK_IMPORTED_MODULE_4__["default"]); registers.registerSeriesModel(_BarSeries_js__WEBPACK_IMPORTED_MODULE_3__["default"]); registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"](_layout_barGrid_js__WEBPACK_IMPORTED_MODULE_1__["layout"], 'bar')); // Do layout after other overall layout, which can prepare some information. registers.registerLayout(registers.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, Object(_layout_barGrid_js__WEBPACK_IMPORTED_MODULE_1__["createProgressiveLayout"])('bar')); // Down sample after filter registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, Object(_processor_dataSample_js__WEBPACK_IMPORTED_MODULE_2__["default"])('bar')); /** * @payload * @property {string} [componentType=series] * @property {number} [dx] * @property {number} [dy] * @property {number} [zoom] * @property {number} [originX] * @property {number} [originY] */ registers.registerAction({ type: 'changeAxisOrder', event: 'changeAxisOrder', update: 'update' }, function (payload, ecModel) { var componentType = payload.componentType || 'series'; ecModel.eachComponent({ mainType: componentType, query: payload }, function (componentModel) { if (payload.sortInfo) { componentModel.axis.setCategorySortInfo(payload.sortInfo); } }); }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/bar/installPictorialBar.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/chart/bar/installPictorialBar.js ***! \*******************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _PictorialBarView_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PictorialBarView.js */ "./node_modules/echarts/lib/chart/bar/PictorialBarView.js"); /* harmony import */ var _PictorialBarSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PictorialBarSeries.js */ "./node_modules/echarts/lib/chart/bar/PictorialBarSeries.js"); /* harmony import */ var _layout_barGrid_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../layout/barGrid.js */ "./node_modules/echarts/lib/layout/barGrid.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerChartView(_PictorialBarView_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerSeriesModel(_PictorialBarSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["curry"])(_layout_barGrid_js__WEBPACK_IMPORTED_MODULE_2__["layout"], 'pictorialBar')); // Do layout after other overall layout, which can prepare some information. registers.registerLayout(registers.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, Object(_layout_barGrid_js__WEBPACK_IMPORTED_MODULE_2__["createProgressiveLayout"])('pictorialBar')); } /***/ }), /***/ "./node_modules/echarts/lib/chart/boxplot/BoxplotSeries.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/boxplot/BoxplotSeries.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _helper_whiskerBoxCommon_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/whiskerBoxCommon.js */ "./node_modules/echarts/lib/chart/helper/whiskerBoxCommon.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var BoxplotSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BoxplotSeriesModel, _super); function BoxplotSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = BoxplotSeriesModel.type; // TODO // box width represents group size, so dimension should have 'size'. /** * @see * The meanings of 'min' and 'max' depend on user, * and echarts do not need to know it. * @readOnly */ _this.defaultValueDimensions = [{ name: 'min', defaultTooltip: true }, { name: 'Q1', defaultTooltip: true }, { name: 'median', defaultTooltip: true }, { name: 'Q3', defaultTooltip: true }, { name: 'max', defaultTooltip: true }]; _this.visualDrawType = 'stroke'; return _this; } BoxplotSeriesModel.type = 'series.boxplot'; BoxplotSeriesModel.dependencies = ['xAxis', 'yAxis', 'grid']; BoxplotSeriesModel.defaultOption = { // zlevel: 0, z: 2, coordinateSystem: 'cartesian2d', legendHoverLink: true, layout: null, boxWidth: [7, 50], itemStyle: { color: '#fff', borderWidth: 1 }, emphasis: { scale: true, itemStyle: { borderWidth: 2, shadowBlur: 5, shadowOffsetX: 1, shadowOffsetY: 1, shadowColor: 'rgba(0,0,0,0.2)' } }, animationDuration: 800 }; return BoxplotSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_1__["default"]); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["mixin"])(BoxplotSeriesModel, _helper_whiskerBoxCommon_js__WEBPACK_IMPORTED_MODULE_2__["WhiskerBoxCommonMixin"], true); /* harmony default export */ __webpack_exports__["default"] = (BoxplotSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/boxplot/BoxplotView.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/boxplot/BoxplotView.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/graphic/Path.js */ "./node_modules/zrender/lib/graphic/Path.js"); /* harmony import */ var _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../animation/basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var BoxplotView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BoxplotView, _super); function BoxplotView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = BoxplotView.type; return _this; } BoxplotView.prototype.render = function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var group = this.group; var oldData = this._data; // There is no old data only when first rendering or switching from // stream mode to normal mode, where previous elements should be removed. if (!this._data) { group.removeAll(); } var constDim = seriesModel.get('layout') === 'horizontal' ? 1 : 0; data.diff(oldData).add(function (newIdx) { if (data.hasValue(newIdx)) { var itemLayout = data.getItemLayout(newIdx); var symbolEl = createNormalBox(itemLayout, data, newIdx, constDim, true); data.setItemGraphicEl(newIdx, symbolEl); group.add(symbolEl); } }).update(function (newIdx, oldIdx) { var symbolEl = oldData.getItemGraphicEl(oldIdx); // Empty data if (!data.hasValue(newIdx)) { group.remove(symbolEl); return; } var itemLayout = data.getItemLayout(newIdx); if (!symbolEl) { symbolEl = createNormalBox(itemLayout, data, newIdx, constDim); } else { Object(_animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_6__["saveOldStyle"])(symbolEl); updateNormalBoxData(itemLayout, symbolEl, data, newIdx); } group.add(symbolEl); data.setItemGraphicEl(newIdx, symbolEl); }).remove(function (oldIdx) { var el = oldData.getItemGraphicEl(oldIdx); el && group.remove(el); }).execute(); this._data = data; }; BoxplotView.prototype.remove = function (ecModel) { var group = this.group; var data = this._data; this._data = null; data && data.eachItemGraphicEl(function (el) { el && group.remove(el); }); }; BoxplotView.type = 'boxplot'; return BoxplotView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_2__["default"]); var BoxPathShape = /** @class */function () { function BoxPathShape() {} return BoxPathShape; }(); var BoxPath = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BoxPath, _super); function BoxPath(opts) { var _this = _super.call(this, opts) || this; _this.type = 'boxplotBoxPath'; return _this; } BoxPath.prototype.getDefaultShape = function () { return new BoxPathShape(); }; BoxPath.prototype.buildPath = function (ctx, shape) { var ends = shape.points; var i = 0; ctx.moveTo(ends[i][0], ends[i][1]); i++; for (; i < 4; i++) { ctx.lineTo(ends[i][0], ends[i][1]); } ctx.closePath(); for (; i < ends.length; i++) { ctx.moveTo(ends[i][0], ends[i][1]); i++; ctx.lineTo(ends[i][0], ends[i][1]); } }; return BoxPath; }(zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_5__["default"]); function createNormalBox(itemLayout, data, dataIndex, constDim, isInit) { var ends = itemLayout.ends; var el = new BoxPath({ shape: { points: isInit ? transInit(ends, constDim, itemLayout) : ends } }); updateNormalBoxData(itemLayout, el, data, dataIndex, isInit); return el; } function updateNormalBoxData(itemLayout, el, data, dataIndex, isInit) { var seriesModel = data.hostModel; var updateMethod = _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__[isInit ? 'initProps' : 'updateProps']; updateMethod(el, { shape: { points: itemLayout.ends } }, seriesModel, dataIndex); el.useStyle(data.getItemVisual(dataIndex, 'style')); el.style.strokeNoScale = true; el.z2 = 100; var itemModel = data.getItemModel(dataIndex); var emphasisModel = itemModel.getModel('emphasis'); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["setStatesStylesFromModel"])(el, itemModel); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["toggleHoverEmphasis"])(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled')); } function transInit(points, dim, itemLayout) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](points, function (point) { point = point.slice(); point[dim] = itemLayout.initBaseline; return point; }); } /* harmony default export */ __webpack_exports__["default"] = (BoxplotView); /***/ }), /***/ "./node_modules/echarts/lib/chart/boxplot/boxplotLayout.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/boxplot/boxplotLayout.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return boxplotLayout; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]; function boxplotLayout(ecModel) { var groupResult = groupSeriesByAxis(ecModel); each(groupResult, function (groupItem) { var seriesModels = groupItem.seriesModels; if (!seriesModels.length) { return; } calculateBase(groupItem); each(seriesModels, function (seriesModel, idx) { layoutSingleSeries(seriesModel, groupItem.boxOffsetList[idx], groupItem.boxWidthList[idx]); }); }); } /** * Group series by axis. */ function groupSeriesByAxis(ecModel) { var result = []; var axisList = []; ecModel.eachSeriesByType('boxplot', function (seriesModel) { var baseAxis = seriesModel.getBaseAxis(); var idx = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"](axisList, baseAxis); if (idx < 0) { idx = axisList.length; axisList[idx] = baseAxis; result[idx] = { axis: baseAxis, seriesModels: [] }; } result[idx].seriesModels.push(seriesModel); }); return result; } /** * Calculate offset and box width for each series. */ function calculateBase(groupItem) { var baseAxis = groupItem.axis; var seriesModels = groupItem.seriesModels; var seriesCount = seriesModels.length; var boxWidthList = groupItem.boxWidthList = []; var boxOffsetList = groupItem.boxOffsetList = []; var boundList = []; var bandWidth; if (baseAxis.type === 'category') { bandWidth = baseAxis.getBandWidth(); } else { var maxDataCount_1 = 0; each(seriesModels, function (seriesModel) { maxDataCount_1 = Math.max(maxDataCount_1, seriesModel.getData().count()); }); var extent = baseAxis.getExtent(); bandWidth = Math.abs(extent[1] - extent[0]) / maxDataCount_1; } each(seriesModels, function (seriesModel) { var boxWidthBound = seriesModel.get('boxWidth'); if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](boxWidthBound)) { boxWidthBound = [boxWidthBound, boxWidthBound]; } boundList.push([Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(boxWidthBound[0], bandWidth) || 0, Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(boxWidthBound[1], bandWidth) || 0]); }); var availableWidth = bandWidth * 0.8 - 2; var boxGap = availableWidth / seriesCount * 0.3; var boxWidth = (availableWidth - boxGap * (seriesCount - 1)) / seriesCount; var base = boxWidth / 2 - availableWidth / 2; each(seriesModels, function (seriesModel, idx) { boxOffsetList.push(base); base += boxGap + boxWidth; boxWidthList.push(Math.min(Math.max(boxWidth, boundList[idx][0]), boundList[idx][1])); }); } /** * Calculate points location for each series. */ function layoutSingleSeries(seriesModel, offset, boxWidth) { var coordSys = seriesModel.coordinateSystem; var data = seriesModel.getData(); var halfWidth = boxWidth / 2; var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1; var vDimIdx = 1 - cDimIdx; var coordDims = ['x', 'y']; var cDim = data.mapDimension(coordDims[cDimIdx]); var vDims = data.mapDimensionsAll(coordDims[vDimIdx]); if (cDim == null || vDims.length < 5) { return; } for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) { var axisDimVal = data.get(cDim, dataIndex); var median = getPoint(axisDimVal, vDims[2], dataIndex); var end1 = getPoint(axisDimVal, vDims[0], dataIndex); var end2 = getPoint(axisDimVal, vDims[1], dataIndex); var end4 = getPoint(axisDimVal, vDims[3], dataIndex); var end5 = getPoint(axisDimVal, vDims[4], dataIndex); var ends = []; addBodyEnd(ends, end2, false); addBodyEnd(ends, end4, true); ends.push(end1, end2, end5, end4); layEndLine(ends, end1); layEndLine(ends, end5); layEndLine(ends, median); data.setItemLayout(dataIndex, { initBaseline: median[vDimIdx], ends: ends }); } function getPoint(axisDimVal, dim, dataIndex) { var val = data.get(dim, dataIndex); var p = []; p[cDimIdx] = axisDimVal; p[vDimIdx] = val; var point; if (isNaN(axisDimVal) || isNaN(val)) { point = [NaN, NaN]; } else { point = coordSys.dataToPoint(p); point[cDimIdx] += offset; } return point; } function addBodyEnd(ends, point, start) { var point1 = point.slice(); var point2 = point.slice(); point1[cDimIdx] += halfWidth; point2[cDimIdx] -= halfWidth; start ? ends.push(point1, point2) : ends.push(point2, point1); } function layEndLine(ends, endCenter) { var from = endCenter.slice(); var to = endCenter.slice(); from[cDimIdx] -= halfWidth; to[cDimIdx] += halfWidth; ends.push(from, to); } } /***/ }), /***/ "./node_modules/echarts/lib/chart/boxplot/boxplotTransform.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/chart/boxplot/boxplotTransform.js ***! \********************************************************************/ /*! exports provided: boxplotTransform */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "boxplotTransform", function() { return boxplotTransform; }); /* harmony import */ var _prepareBoxplotData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./prepareBoxplotData.js */ "./node_modules/echarts/lib/chart/boxplot/prepareBoxplotData.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var _util_types_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/types.js */ "./node_modules/echarts/lib/util/types.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var boxplotTransform = { type: 'echarts:boxplot', transform: function transform(params) { var upstream = params.upstream; if (upstream.sourceFormat !== _util_types_js__WEBPACK_IMPORTED_MODULE_2__["SOURCE_FORMAT_ARRAY_ROWS"]) { var errMsg = ''; if (true) { errMsg = Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["makePrintable"])('source data is not applicable for this boxplot transform. Expect number[][].'); } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } var result = Object(_prepareBoxplotData_js__WEBPACK_IMPORTED_MODULE_0__["default"])(upstream.getRawData(), params.config); return [{ dimensions: ['ItemName', 'Low', 'Q1', 'Q2', 'Q3', 'High'], data: result.boxData }, { data: result.outliers }]; } }; /***/ }), /***/ "./node_modules/echarts/lib/chart/boxplot/install.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/boxplot/install.js ***! \***********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _BoxplotSeries_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BoxplotSeries.js */ "./node_modules/echarts/lib/chart/boxplot/BoxplotSeries.js"); /* harmony import */ var _BoxplotView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BoxplotView.js */ "./node_modules/echarts/lib/chart/boxplot/BoxplotView.js"); /* harmony import */ var _boxplotLayout_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./boxplotLayout.js */ "./node_modules/echarts/lib/chart/boxplot/boxplotLayout.js"); /* harmony import */ var _boxplotTransform_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./boxplotTransform.js */ "./node_modules/echarts/lib/chart/boxplot/boxplotTransform.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerSeriesModel(_BoxplotSeries_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerChartView(_BoxplotView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerLayout(_boxplotLayout_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerTransform(_boxplotTransform_js__WEBPACK_IMPORTED_MODULE_3__["boxplotTransform"]); } /***/ }), /***/ "./node_modules/echarts/lib/chart/boxplot/prepareBoxplotData.js": /*!**********************************************************************!*\ !*** ./node_modules/echarts/lib/chart/boxplot/prepareBoxplotData.js ***! \**********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return prepareBoxplotData; }); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * See: * * * * Helper method for preparing data. * * @param rawData like * [ * [12,232,443], (raw data set for the first box) * [3843,5545,1232], (raw data set for the second box) * ... * ] * @param opt.boundIQR=1.5 Data less than min bound is outlier. * default 1.5, means Q1 - 1.5 * (Q3 - Q1). * If 'none'/0 passed, min bound will not be used. */ function prepareBoxplotData(rawData, opt) { opt = opt || {}; var boxData = []; var outliers = []; var boundIQR = opt.boundIQR; var useExtreme = boundIQR === 'none' || boundIQR === 0; for (var i = 0; i < rawData.length; i++) { var ascList = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["asc"])(rawData[i].slice()); var Q1 = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["quantile"])(ascList, 0.25); var Q2 = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["quantile"])(ascList, 0.5); var Q3 = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["quantile"])(ascList, 0.75); var min = ascList[0]; var max = ascList[ascList.length - 1]; var bound = (boundIQR == null ? 1.5 : boundIQR) * (Q3 - Q1); var low = useExtreme ? min : Math.max(min, Q1 - bound); var high = useExtreme ? max : Math.min(max, Q3 + bound); var itemNameFormatter = opt.itemNameFormatter; var itemName = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"])(itemNameFormatter) ? itemNameFormatter({ value: i }) : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(itemNameFormatter) ? itemNameFormatter.replace('{value}', i + '') : i + ''; boxData.push([itemName, low, Q1, Q2, Q3, high]); for (var j = 0; j < ascList.length; j++) { var dataItem = ascList[j]; if (dataItem < low || dataItem > high) { var outlier = [itemName, dataItem]; outliers.push(outlier); } } } return { boxData: boxData, outliers: outliers }; } /***/ }), /***/ "./node_modules/echarts/lib/chart/candlestick/CandlestickSeries.js": /*!*************************************************************************!*\ !*** ./node_modules/echarts/lib/chart/candlestick/CandlestickSeries.js ***! \*************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _helper_whiskerBoxCommon_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/whiskerBoxCommon.js */ "./node_modules/echarts/lib/chart/helper/whiskerBoxCommon.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var CandlestickSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CandlestickSeriesModel, _super); function CandlestickSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = CandlestickSeriesModel.type; _this.defaultValueDimensions = [{ name: 'open', defaultTooltip: true }, { name: 'close', defaultTooltip: true }, { name: 'lowest', defaultTooltip: true }, { name: 'highest', defaultTooltip: true }]; return _this; } /** * Get dimension for shadow in dataZoom * @return dimension name */ CandlestickSeriesModel.prototype.getShadowDim = function () { return 'open'; }; CandlestickSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) { var itemLayout = data.getItemLayout(dataIndex); return itemLayout && selectors.rect(itemLayout.brushRect); }; CandlestickSeriesModel.type = 'series.candlestick'; CandlestickSeriesModel.dependencies = ['xAxis', 'yAxis', 'grid']; CandlestickSeriesModel.defaultOption = { // zlevel: 0, z: 2, coordinateSystem: 'cartesian2d', legendHoverLink: true, // xAxisIndex: 0, // yAxisIndex: 0, layout: null, clip: true, itemStyle: { color: '#eb5454', color0: '#47b262', borderColor: '#eb5454', borderColor0: '#47b262', borderColorDoji: null, // borderColor: '#d24040', // borderColor0: '#398f4f', borderWidth: 1 }, emphasis: { itemStyle: { borderWidth: 2 } }, barMaxWidth: null, barMinWidth: null, barWidth: null, large: true, largeThreshold: 600, progressive: 3e3, progressiveThreshold: 1e4, progressiveChunkMode: 'mod', animationEasing: 'linear', animationDuration: 300 }; return CandlestickSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_1__["default"]); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["mixin"])(CandlestickSeriesModel, _helper_whiskerBoxCommon_js__WEBPACK_IMPORTED_MODULE_2__["WhiskerBoxCommonMixin"], true); /* harmony default export */ __webpack_exports__["default"] = (CandlestickSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/candlestick/CandlestickView.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/chart/candlestick/CandlestickView.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/graphic/Path.js */ "./node_modules/zrender/lib/graphic/Path.js"); /* harmony import */ var _helper_createClipPathFromCoordSys_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helper/createClipPathFromCoordSys.js */ "./node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js"); /* harmony import */ var _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../animation/basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* harmony import */ var _candlestickVisual_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./candlestickVisual.js */ "./node_modules/echarts/lib/chart/candlestick/candlestickVisual.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SKIP_PROPS = ['color', 'borderColor']; var CandlestickView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CandlestickView, _super); function CandlestickView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = CandlestickView.type; return _this; } CandlestickView.prototype.render = function (seriesModel, ecModel, api) { // If there is clipPath created in large mode. Remove it. this.group.removeClipPath(); // Clear previously rendered progressive elements. this._progressiveEls = null; this._updateDrawMode(seriesModel); this._isLargeDraw ? this._renderLarge(seriesModel) : this._renderNormal(seriesModel); }; CandlestickView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) { this._clear(); this._updateDrawMode(seriesModel); }; CandlestickView.prototype.incrementalRender = function (params, seriesModel, ecModel, api) { this._progressiveEls = []; this._isLargeDraw ? this._incrementalRenderLarge(params, seriesModel) : this._incrementalRenderNormal(params, seriesModel); }; CandlestickView.prototype.eachRendered = function (cb) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["traverseElements"](this._progressiveEls || this.group, cb); }; CandlestickView.prototype._updateDrawMode = function (seriesModel) { var isLargeDraw = seriesModel.pipelineContext.large; if (this._isLargeDraw == null || isLargeDraw !== this._isLargeDraw) { this._isLargeDraw = isLargeDraw; this._clear(); } }; CandlestickView.prototype._renderNormal = function (seriesModel) { var data = seriesModel.getData(); var oldData = this._data; var group = this.group; var isSimpleBox = data.getLayout('isSimpleBox'); var needsClip = seriesModel.get('clip', true); var coord = seriesModel.coordinateSystem; var clipArea = coord.getArea && coord.getArea(); // There is no old data only when first rendering or switching from // stream mode to normal mode, where previous elements should be removed. if (!this._data) { group.removeAll(); } data.diff(oldData).add(function (newIdx) { if (data.hasValue(newIdx)) { var itemLayout = data.getItemLayout(newIdx); if (needsClip && isNormalBoxClipped(clipArea, itemLayout)) { return; } var el = createNormalBox(itemLayout, newIdx, true); _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["initProps"](el, { shape: { points: itemLayout.ends } }, seriesModel, newIdx); setBoxCommon(el, data, newIdx, isSimpleBox); group.add(el); data.setItemGraphicEl(newIdx, el); } }).update(function (newIdx, oldIdx) { var el = oldData.getItemGraphicEl(oldIdx); // Empty data if (!data.hasValue(newIdx)) { group.remove(el); return; } var itemLayout = data.getItemLayout(newIdx); if (needsClip && isNormalBoxClipped(clipArea, itemLayout)) { group.remove(el); return; } if (!el) { el = createNormalBox(itemLayout, newIdx); } else { _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["updateProps"](el, { shape: { points: itemLayout.ends } }, seriesModel, newIdx); Object(_animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_7__["saveOldStyle"])(el); } setBoxCommon(el, data, newIdx, isSimpleBox); group.add(el); data.setItemGraphicEl(newIdx, el); }).remove(function (oldIdx) { var el = oldData.getItemGraphicEl(oldIdx); el && group.remove(el); }).execute(); this._data = data; }; CandlestickView.prototype._renderLarge = function (seriesModel) { this._clear(); createLarge(seriesModel, this.group); var clipPath = seriesModel.get('clip', true) ? Object(_helper_createClipPathFromCoordSys_js__WEBPACK_IMPORTED_MODULE_6__["createClipPath"])(seriesModel.coordinateSystem, false, seriesModel) : null; if (clipPath) { this.group.setClipPath(clipPath); } else { this.group.removeClipPath(); } }; CandlestickView.prototype._incrementalRenderNormal = function (params, seriesModel) { var data = seriesModel.getData(); var isSimpleBox = data.getLayout('isSimpleBox'); var dataIndex; while ((dataIndex = params.next()) != null) { var itemLayout = data.getItemLayout(dataIndex); var el = createNormalBox(itemLayout, dataIndex); setBoxCommon(el, data, dataIndex, isSimpleBox); el.incremental = true; this.group.add(el); this._progressiveEls.push(el); } }; CandlestickView.prototype._incrementalRenderLarge = function (params, seriesModel) { createLarge(seriesModel, this.group, this._progressiveEls, true); }; CandlestickView.prototype.remove = function (ecModel) { this._clear(); }; CandlestickView.prototype._clear = function () { this.group.removeAll(); this._data = null; }; CandlestickView.type = 'candlestick'; return CandlestickView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_2__["default"]); var NormalBoxPathShape = /** @class */function () { function NormalBoxPathShape() {} return NormalBoxPathShape; }(); var NormalBoxPath = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NormalBoxPath, _super); function NormalBoxPath(opts) { var _this = _super.call(this, opts) || this; _this.type = 'normalCandlestickBox'; return _this; } NormalBoxPath.prototype.getDefaultShape = function () { return new NormalBoxPathShape(); }; NormalBoxPath.prototype.buildPath = function (ctx, shape) { var ends = shape.points; if (this.__simpleBox) { ctx.moveTo(ends[4][0], ends[4][1]); ctx.lineTo(ends[6][0], ends[6][1]); } else { ctx.moveTo(ends[0][0], ends[0][1]); ctx.lineTo(ends[1][0], ends[1][1]); ctx.lineTo(ends[2][0], ends[2][1]); ctx.lineTo(ends[3][0], ends[3][1]); ctx.closePath(); ctx.moveTo(ends[4][0], ends[4][1]); ctx.lineTo(ends[5][0], ends[5][1]); ctx.moveTo(ends[6][0], ends[6][1]); ctx.lineTo(ends[7][0], ends[7][1]); } }; return NormalBoxPath; }(zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_5__["default"]); function createNormalBox(itemLayout, dataIndex, isInit) { var ends = itemLayout.ends; return new NormalBoxPath({ shape: { points: isInit ? transInit(ends, itemLayout) : ends }, z2: 100 }); } function isNormalBoxClipped(clipArea, itemLayout) { var clipped = true; for (var i = 0; i < itemLayout.ends.length; i++) { // If any point are in the region. if (clipArea.contain(itemLayout.ends[i][0], itemLayout.ends[i][1])) { clipped = false; break; } } return clipped; } function setBoxCommon(el, data, dataIndex, isSimpleBox) { var itemModel = data.getItemModel(dataIndex); el.useStyle(data.getItemVisual(dataIndex, 'style')); el.style.strokeNoScale = true; el.__simpleBox = isSimpleBox; Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["setStatesStylesFromModel"])(el, itemModel); var sign = data.getItemLayout(dataIndex).sign; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](el.states, function (state, stateName) { var stateModel = itemModel.getModel(stateName); var color = Object(_candlestickVisual_js__WEBPACK_IMPORTED_MODULE_8__["getColor"])(sign, stateModel); var borderColor = Object(_candlestickVisual_js__WEBPACK_IMPORTED_MODULE_8__["getBorderColor"])(sign, stateModel) || color; var stateStyle = state.style || (state.style = {}); color && (stateStyle.fill = color); borderColor && (stateStyle.stroke = borderColor); }); var emphasisModel = itemModel.getModel('emphasis'); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["toggleHoverEmphasis"])(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled')); } function transInit(points, itemLayout) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](points, function (point) { point = point.slice(); point[1] = itemLayout.initBaseline; return point; }); } var LargeBoxPathShape = /** @class */function () { function LargeBoxPathShape() {} return LargeBoxPathShape; }(); var LargeBoxPath = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LargeBoxPath, _super); function LargeBoxPath(opts) { var _this = _super.call(this, opts) || this; _this.type = 'largeCandlestickBox'; return _this; } LargeBoxPath.prototype.getDefaultShape = function () { return new LargeBoxPathShape(); }; LargeBoxPath.prototype.buildPath = function (ctx, shape) { // Drawing lines is more efficient than drawing // a whole line or drawing rects. var points = shape.points; for (var i = 0; i < points.length;) { if (this.__sign === points[i++]) { var x = points[i++]; ctx.moveTo(x, points[i++]); ctx.lineTo(x, points[i++]); } else { i += 3; } } }; return LargeBoxPath; }(zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_5__["default"]); function createLarge(seriesModel, group, progressiveEls, incremental) { var data = seriesModel.getData(); var largePoints = data.getLayout('largePoints'); var elP = new LargeBoxPath({ shape: { points: largePoints }, __sign: 1, ignoreCoarsePointer: true }); group.add(elP); var elN = new LargeBoxPath({ shape: { points: largePoints }, __sign: -1, ignoreCoarsePointer: true }); group.add(elN); var elDoji = new LargeBoxPath({ shape: { points: largePoints }, __sign: 0, ignoreCoarsePointer: true }); group.add(elDoji); setLargeStyle(1, elP, seriesModel, data); setLargeStyle(-1, elN, seriesModel, data); setLargeStyle(0, elDoji, seriesModel, data); if (incremental) { elP.incremental = true; elN.incremental = true; } if (progressiveEls) { progressiveEls.push(elP, elN); } } function setLargeStyle(sign, el, seriesModel, data) { // TODO put in visual? var borderColor = Object(_candlestickVisual_js__WEBPACK_IMPORTED_MODULE_8__["getBorderColor"])(sign, seriesModel) // Use color for border color by default. || Object(_candlestickVisual_js__WEBPACK_IMPORTED_MODULE_8__["getColor"])(sign, seriesModel); // Color must be excluded. // Because symbol provide setColor individually to set fill and stroke var itemStyle = seriesModel.getModel('itemStyle').getItemStyle(SKIP_PROPS); el.useStyle(itemStyle); el.style.fill = null; el.style.stroke = borderColor; } /* harmony default export */ __webpack_exports__["default"] = (CandlestickView); /***/ }), /***/ "./node_modules/echarts/lib/chart/candlestick/candlestickLayout.js": /*!*************************************************************************!*\ !*** ./node_modules/echarts/lib/chart/candlestick/candlestickLayout.js ***! \*************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _helper_createRenderPlanner_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helper/createRenderPlanner.js */ "./node_modules/echarts/lib/chart/helper/createRenderPlanner.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_vendor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/vendor.js */ "./node_modules/echarts/lib/util/vendor.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var candlestickLayout = { seriesType: 'candlestick', plan: Object(_helper_createRenderPlanner_js__WEBPACK_IMPORTED_MODULE_1__["default"])(), reset: function (seriesModel) { var coordSys = seriesModel.coordinateSystem; var data = seriesModel.getData(); var candleWidth = calculateCandleWidth(seriesModel, data); var cDimIdx = 0; var vDimIdx = 1; var coordDims = ['x', 'y']; var cDimI = data.getDimensionIndex(data.mapDimension(coordDims[cDimIdx])); var vDimsI = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["map"])(data.mapDimensionsAll(coordDims[vDimIdx]), data.getDimensionIndex, data); var openDimI = vDimsI[0]; var closeDimI = vDimsI[1]; var lowestDimI = vDimsI[2]; var highestDimI = vDimsI[3]; data.setLayout({ candleWidth: candleWidth, // The value is experimented visually. isSimpleBox: candleWidth <= 1.3 }); if (cDimI < 0 || vDimsI.length < 4) { return; } return { progress: seriesModel.pipelineContext.large ? largeProgress : normalProgress }; function normalProgress(params, data) { var dataIndex; var store = data.getStore(); while ((dataIndex = params.next()) != null) { var axisDimVal = store.get(cDimI, dataIndex); var openVal = store.get(openDimI, dataIndex); var closeVal = store.get(closeDimI, dataIndex); var lowestVal = store.get(lowestDimI, dataIndex); var highestVal = store.get(highestDimI, dataIndex); var ocLow = Math.min(openVal, closeVal); var ocHigh = Math.max(openVal, closeVal); var ocLowPoint = getPoint(ocLow, axisDimVal); var ocHighPoint = getPoint(ocHigh, axisDimVal); var lowestPoint = getPoint(lowestVal, axisDimVal); var highestPoint = getPoint(highestVal, axisDimVal); var ends = []; addBodyEnd(ends, ocHighPoint, 0); addBodyEnd(ends, ocLowPoint, 1); ends.push(subPixelOptimizePoint(highestPoint), subPixelOptimizePoint(ocHighPoint), subPixelOptimizePoint(lowestPoint), subPixelOptimizePoint(ocLowPoint)); var itemModel = data.getItemModel(dataIndex); var hasDojiColor = !!itemModel.get(['itemStyle', 'borderColorDoji']); data.setItemLayout(dataIndex, { sign: getSign(store, dataIndex, openVal, closeVal, closeDimI, hasDojiColor), initBaseline: openVal > closeVal ? ocHighPoint[vDimIdx] : ocLowPoint[vDimIdx], ends: ends, brushRect: makeBrushRect(lowestVal, highestVal, axisDimVal) }); } function getPoint(val, axisDimVal) { var p = []; p[cDimIdx] = axisDimVal; p[vDimIdx] = val; return isNaN(axisDimVal) || isNaN(val) ? [NaN, NaN] : coordSys.dataToPoint(p); } function addBodyEnd(ends, point, start) { var point1 = point.slice(); var point2 = point.slice(); point1[cDimIdx] = Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["subPixelOptimize"])(point1[cDimIdx] + candleWidth / 2, 1, false); point2[cDimIdx] = Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["subPixelOptimize"])(point2[cDimIdx] - candleWidth / 2, 1, true); start ? ends.push(point1, point2) : ends.push(point2, point1); } function makeBrushRect(lowestVal, highestVal, axisDimVal) { var pmin = getPoint(lowestVal, axisDimVal); var pmax = getPoint(highestVal, axisDimVal); pmin[cDimIdx] -= candleWidth / 2; pmax[cDimIdx] -= candleWidth / 2; return { x: pmin[0], y: pmin[1], width: vDimIdx ? candleWidth : pmax[0] - pmin[0], height: vDimIdx ? pmax[1] - pmin[1] : candleWidth }; } function subPixelOptimizePoint(point) { point[cDimIdx] = Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["subPixelOptimize"])(point[cDimIdx], 1); return point; } } function largeProgress(params, data) { // Structure: [sign, x, yhigh, ylow, sign, x, yhigh, ylow, ...] var points = Object(_util_vendor_js__WEBPACK_IMPORTED_MODULE_4__["createFloat32Array"])(params.count * 4); var offset = 0; var point; var tmpIn = []; var tmpOut = []; var dataIndex; var store = data.getStore(); var hasDojiColor = !!seriesModel.get(['itemStyle', 'borderColorDoji']); while ((dataIndex = params.next()) != null) { var axisDimVal = store.get(cDimI, dataIndex); var openVal = store.get(openDimI, dataIndex); var closeVal = store.get(closeDimI, dataIndex); var lowestVal = store.get(lowestDimI, dataIndex); var highestVal = store.get(highestDimI, dataIndex); if (isNaN(axisDimVal) || isNaN(lowestVal) || isNaN(highestVal)) { points[offset++] = NaN; offset += 3; continue; } points[offset++] = getSign(store, dataIndex, openVal, closeVal, closeDimI, hasDojiColor); tmpIn[cDimIdx] = axisDimVal; tmpIn[vDimIdx] = lowestVal; point = coordSys.dataToPoint(tmpIn, null, tmpOut); points[offset++] = point ? point[0] : NaN; points[offset++] = point ? point[1] : NaN; tmpIn[vDimIdx] = highestVal; point = coordSys.dataToPoint(tmpIn, null, tmpOut); points[offset++] = point ? point[1] : NaN; } data.setLayout('largePoints', points); } } }; /** * Get the sign of a single data. * * @returns 0 for doji with hasDojiColor: true, * 1 for positive, * -1 for negative. */ function getSign(store, dataIndex, openVal, closeVal, closeDimI, hasDojiColor) { var sign; if (openVal > closeVal) { sign = -1; } else if (openVal < closeVal) { sign = 1; } else { sign = hasDojiColor // When doji color is set, use it instead of color/color0. ? 0 : dataIndex > 0 // If close === open, compare with close of last record ? store.get(closeDimI, dataIndex - 1) <= closeVal ? 1 : -1 // No record of previous, set to be positive : 1; } return sign; } function calculateCandleWidth(seriesModel, data) { var baseAxis = seriesModel.getBaseAxis(); var extent; var bandWidth = baseAxis.type === 'category' ? baseAxis.getBandWidth() : (extent = baseAxis.getExtent(), Math.abs(extent[1] - extent[0]) / data.count()); var barMaxWidth = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["retrieve2"])(seriesModel.get('barMaxWidth'), bandWidth), bandWidth); var barMinWidth = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["retrieve2"])(seriesModel.get('barMinWidth'), 1), bandWidth); var barWidth = seriesModel.get('barWidth'); return barWidth != null ? Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(barWidth, bandWidth) // Put max outer to ensure bar visible in spite of overlap. : Math.max(Math.min(bandWidth / 2, barMaxWidth), barMinWidth); } /* harmony default export */ __webpack_exports__["default"] = (candlestickLayout); /***/ }), /***/ "./node_modules/echarts/lib/chart/candlestick/candlestickVisual.js": /*!*************************************************************************!*\ !*** ./node_modules/echarts/lib/chart/candlestick/candlestickVisual.js ***! \*************************************************************************/ /*! exports provided: getColor, getBorderColor, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getColor", function() { return getColor; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBorderColor", function() { return getBorderColor; }); /* harmony import */ var _helper_createRenderPlanner_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helper/createRenderPlanner.js */ "./node_modules/echarts/lib/chart/helper/createRenderPlanner.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var positiveBorderColorQuery = ['itemStyle', 'borderColor']; var negativeBorderColorQuery = ['itemStyle', 'borderColor0']; var dojiBorderColorQuery = ['itemStyle', 'borderColorDoji']; var positiveColorQuery = ['itemStyle', 'color']; var negativeColorQuery = ['itemStyle', 'color0']; function getColor(sign, model) { return model.get(sign > 0 ? positiveColorQuery : negativeColorQuery); } function getBorderColor(sign, model) { return model.get(sign === 0 ? dojiBorderColorQuery : sign > 0 ? positiveBorderColorQuery : negativeBorderColorQuery); } var candlestickVisual = { seriesType: 'candlestick', plan: Object(_helper_createRenderPlanner_js__WEBPACK_IMPORTED_MODULE_0__["default"])(), // For legend. performRawSeries: true, reset: function (seriesModel, ecModel) { // Only visible series has each data be visual encoded if (ecModel.isSeriesFiltered(seriesModel)) { return; } var isLargeRender = seriesModel.pipelineContext.large; return !isLargeRender && { progress: function (params, data) { var dataIndex; while ((dataIndex = params.next()) != null) { var itemModel = data.getItemModel(dataIndex); var sign = data.getItemLayout(dataIndex).sign; var style = itemModel.getItemStyle(); style.fill = getColor(sign, itemModel); style.stroke = getBorderColor(sign, itemModel) || style.fill; var existsStyle = data.ensureUniqueItemVisual(dataIndex, 'style'); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(existsStyle, style); } } }; } }; /* harmony default export */ __webpack_exports__["default"] = (candlestickVisual); /***/ }), /***/ "./node_modules/echarts/lib/chart/candlestick/install.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/candlestick/install.js ***! \***************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _CandlestickView_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CandlestickView.js */ "./node_modules/echarts/lib/chart/candlestick/CandlestickView.js"); /* harmony import */ var _CandlestickSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CandlestickSeries.js */ "./node_modules/echarts/lib/chart/candlestick/CandlestickSeries.js"); /* harmony import */ var _preprocessor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./preprocessor.js */ "./node_modules/echarts/lib/chart/candlestick/preprocessor.js"); /* harmony import */ var _candlestickVisual_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./candlestickVisual.js */ "./node_modules/echarts/lib/chart/candlestick/candlestickVisual.js"); /* harmony import */ var _candlestickLayout_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./candlestickLayout.js */ "./node_modules/echarts/lib/chart/candlestick/candlestickLayout.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerChartView(_CandlestickView_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerSeriesModel(_CandlestickSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerPreprocessor(_preprocessor_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerVisual(_candlestickVisual_js__WEBPACK_IMPORTED_MODULE_3__["default"]); registers.registerLayout(_candlestickLayout_js__WEBPACK_IMPORTED_MODULE_4__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/chart/candlestick/preprocessor.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/chart/candlestick/preprocessor.js ***! \********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return candlestickPreprocessor; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function candlestickPreprocessor(option) { if (!option || !zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](option.series)) { return; } // Translate 'k' to 'candlestick'. zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](option.series, function (seriesItem) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](seriesItem) && seriesItem.type === 'k') { seriesItem.type = 'candlestick'; } }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/custom/CustomSeries.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/custom/CustomSeries.js ***! \***************************************************************/ /*! exports provided: STYLE_VISUAL_TYPE, NON_STYLE_VISUAL_PROPS, customInnerStore, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STYLE_VISUAL_TYPE", function() { return STYLE_VISUAL_TYPE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NON_STYLE_VISUAL_PROPS", function() { return NON_STYLE_VISUAL_PROPS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "customInnerStore", function() { return customInnerStore; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helper/createSeriesData.js */ "./node_modules/echarts/lib/chart/helper/createSeriesData.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Also compat with ec4, where // `visual('color') visual('borderColor')` is supported. var STYLE_VISUAL_TYPE = { color: 'fill', borderColor: 'stroke' }; var NON_STYLE_VISUAL_PROPS = { symbol: 1, symbolSize: 1, symbolKeepAspect: 1, legendIcon: 1, visualMeta: 1, liftZ: 1, decal: 1 }; ; var customInnerStore = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_2__["makeInner"])(); var CustomSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CustomSeriesModel, _super); function CustomSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = CustomSeriesModel.type; return _this; } CustomSeriesModel.prototype.optionUpdated = function () { this.currentZLevel = this.get('zlevel', true); this.currentZ = this.get('z', true); }; CustomSeriesModel.prototype.getInitialData = function (option, ecModel) { return Object(_helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"])(null, this); }; CustomSeriesModel.prototype.getDataParams = function (dataIndex, dataType, el) { var params = _super.prototype.getDataParams.call(this, dataIndex, dataType); el && (params.info = customInnerStore(el).info); return params; }; CustomSeriesModel.type = 'series.custom'; CustomSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar']; CustomSeriesModel.defaultOption = { coordinateSystem: 'cartesian2d', // zlevel: 0, z: 2, legendHoverLink: true, // Custom series will not clip by default. // Some case will use custom series to draw label // For example https://echarts.apache.org/examples/en/editor.html?c=custom-gantt-flight clip: false // Cartesian coordinate system // xAxisIndex: 0, // yAxisIndex: 0, // Polar coordinate system // polarIndex: 0, // Geo coordinate system // geoIndex: 0, }; return CustomSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_3__["default"]); /* harmony default export */ __webpack_exports__["default"] = (CustomSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/custom/CustomView.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/custom/CustomView.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _helper_labelHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helper/labelHelper.js */ "./node_modules/echarts/lib/chart/helper/labelHelper.js"); /* harmony import */ var _layout_barGrid_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../layout/barGrid.js */ "./node_modules/echarts/lib/layout/barGrid.js"); /* harmony import */ var _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../data/DataDiffer.js */ "./node_modules/echarts/lib/data/DataDiffer.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _helper_createClipPathFromCoordSys_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helper/createClipPathFromCoordSys.js */ "./node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js"); /* harmony import */ var _coord_cartesian_prepareCustom_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../coord/cartesian/prepareCustom.js */ "./node_modules/echarts/lib/coord/cartesian/prepareCustom.js"); /* harmony import */ var _coord_geo_prepareCustom_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../coord/geo/prepareCustom.js */ "./node_modules/echarts/lib/coord/geo/prepareCustom.js"); /* harmony import */ var _coord_single_prepareCustom_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../coord/single/prepareCustom.js */ "./node_modules/echarts/lib/coord/single/prepareCustom.js"); /* harmony import */ var _coord_polar_prepareCustom_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../coord/polar/prepareCustom.js */ "./node_modules/echarts/lib/coord/polar/prepareCustom.js"); /* harmony import */ var _coord_calendar_prepareCustom_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../coord/calendar/prepareCustom.js */ "./node_modules/echarts/lib/coord/calendar/prepareCustom.js"); /* harmony import */ var zrender_lib_graphic_Displayable_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! zrender/lib/graphic/Displayable.js */ "./node_modules/zrender/lib/graphic/Displayable.js"); /* harmony import */ var _util_styleCompat_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../util/styleCompat.js */ "./node_modules/echarts/lib/util/styleCompat.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var _util_decal_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../util/decal.js */ "./node_modules/echarts/lib/util/decal.js"); /* harmony import */ var _CustomSeries_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./CustomSeries.js */ "./node_modules/echarts/lib/chart/custom/CustomSeries.js"); /* harmony import */ var _animation_customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../animation/customGraphicTransition.js */ "./node_modules/echarts/lib/animation/customGraphicTransition.js"); /* harmony import */ var _animation_customGraphicKeyframeAnimation_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../animation/customGraphicKeyframeAnimation.js */ "./node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var EMPHASIS = 'emphasis'; var NORMAL = 'normal'; var BLUR = 'blur'; var SELECT = 'select'; var STATES = [NORMAL, EMPHASIS, BLUR, SELECT]; var PATH_ITEM_STYLE = { normal: ['itemStyle'], emphasis: [EMPHASIS, 'itemStyle'], blur: [BLUR, 'itemStyle'], select: [SELECT, 'itemStyle'] }; var PATH_LABEL = { normal: ['label'], emphasis: [EMPHASIS, 'label'], blur: [BLUR, 'label'], select: [SELECT, 'label'] }; var DEFAULT_TRANSITION = ['x', 'y']; // Use prefix to avoid index to be the same as el.name, // which will cause weird update animation. var GROUP_DIFF_PREFIX = 'e\0\0'; var attachedTxInfoTmp = { normal: {}, emphasis: {}, blur: {}, select: {} }; /** * To reduce total package size of each coordinate systems, the modules `prepareCustom` * of each coordinate systems are not required by each coordinate systems directly, but * required by the module `custom`. * * prepareInfoForCustomSeries {Function}: optional * @return {Object} {coordSys: {...}, api: { * coord: function (data, clamp) {}, // return point in global. * size: function (dataSize, dataItem) {} // return size of each axis in coordSys. * }} */ var prepareCustoms = { cartesian2d: _coord_cartesian_prepareCustom_js__WEBPACK_IMPORTED_MODULE_10__["default"], geo: _coord_geo_prepareCustom_js__WEBPACK_IMPORTED_MODULE_11__["default"], single: _coord_single_prepareCustom_js__WEBPACK_IMPORTED_MODULE_12__["default"], polar: _coord_polar_prepareCustom_js__WEBPACK_IMPORTED_MODULE_13__["default"], calendar: _coord_calendar_prepareCustom_js__WEBPACK_IMPORTED_MODULE_14__["default"] }; function isPath(el) { return el instanceof _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Path"]; } function isDisplayable(el) { return el instanceof zrender_lib_graphic_Displayable_js__WEBPACK_IMPORTED_MODULE_15__["default"]; } function copyElement(sourceEl, targetEl) { targetEl.copyTransform(sourceEl); if (isDisplayable(targetEl) && isDisplayable(sourceEl)) { targetEl.setStyle(sourceEl.style); targetEl.z = sourceEl.z; targetEl.z2 = sourceEl.z2; targetEl.zlevel = sourceEl.zlevel; targetEl.invisible = sourceEl.invisible; targetEl.ignore = sourceEl.ignore; if (isPath(targetEl) && isPath(sourceEl)) { targetEl.setShape(sourceEl.shape); } } } var CustomChartView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CustomChartView, _super); function CustomChartView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = CustomChartView.type; return _this; } CustomChartView.prototype.render = function (customSeries, ecModel, api, payload) { // Clear previously rendered progressive elements. this._progressiveEls = null; var oldData = this._data; var data = customSeries.getData(); var group = this.group; var renderItem = makeRenderItem(customSeries, data, ecModel, api); if (!oldData) { // Previous render is incremental render or first render. // Needs remove the incremental rendered elements. group.removeAll(); } data.diff(oldData).add(function (newIdx) { createOrUpdateItem(api, null, newIdx, renderItem(newIdx, payload), customSeries, group, data); }).remove(function (oldIdx) { var el = oldData.getItemGraphicEl(oldIdx); el && Object(_animation_customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_20__["applyLeaveTransition"])(el, Object(_CustomSeries_js__WEBPACK_IMPORTED_MODULE_19__["customInnerStore"])(el).option, customSeries); }).update(function (newIdx, oldIdx) { var oldEl = oldData.getItemGraphicEl(oldIdx); createOrUpdateItem(api, oldEl, newIdx, renderItem(newIdx, payload), customSeries, group, data); }).execute(); // Do clipping var clipPath = customSeries.get('clip', true) ? Object(_helper_createClipPathFromCoordSys_js__WEBPACK_IMPORTED_MODULE_9__["createClipPath"])(customSeries.coordinateSystem, false, customSeries) : null; if (clipPath) { group.setClipPath(clipPath); } else { group.removeClipPath(); } this._data = data; }; CustomChartView.prototype.incrementalPrepareRender = function (customSeries, ecModel, api) { this.group.removeAll(); this._data = null; }; CustomChartView.prototype.incrementalRender = function (params, customSeries, ecModel, api, payload) { var data = customSeries.getData(); var renderItem = makeRenderItem(customSeries, data, ecModel, api); var progressiveEls = this._progressiveEls = []; function setIncrementalAndHoverLayer(el) { if (!el.isGroup) { el.incremental = true; el.ensureState('emphasis').hoverLayer = true; } } for (var idx = params.start; idx < params.end; idx++) { var el = createOrUpdateItem(null, null, idx, renderItem(idx, payload), customSeries, this.group, data); if (el) { el.traverse(setIncrementalAndHoverLayer); progressiveEls.push(el); } } }; CustomChartView.prototype.eachRendered = function (cb) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["traverseElements"](this._progressiveEls || this.group, cb); }; CustomChartView.prototype.filterForExposedEvent = function (eventType, query, targetEl, packedEvent) { var elementName = query.element; if (elementName == null || targetEl.name === elementName) { return true; } // Enable to give a name on a group made by `renderItem`, and listen // events that are triggered by its descendents. while ((targetEl = targetEl.__hostTarget || targetEl.parent) && targetEl !== this.group) { if (targetEl.name === elementName) { return true; } } return false; }; CustomChartView.type = 'custom'; return CustomChartView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_8__["default"]); /* harmony default export */ __webpack_exports__["default"] = (CustomChartView); function createEl(elOption) { var graphicType = elOption.type; var el; // Those graphic elements are not shapes. They should not be // overwritten by users, so do them first. if (graphicType === 'path') { var shape = elOption.shape; // Using pathRect brings convenience to users sacle svg path. var pathRect = shape.width != null && shape.height != null ? { x: shape.x || 0, y: shape.y || 0, width: shape.width, height: shape.height } : null; var pathData = getPathData(shape); // Path is also used for icon, so layout 'center' by default. el = _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["makePath"](pathData, null, pathRect, shape.layout || 'center'); Object(_CustomSeries_js__WEBPACK_IMPORTED_MODULE_19__["customInnerStore"])(el).customPathData = pathData; } else if (graphicType === 'image') { el = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Image"]({}); Object(_CustomSeries_js__WEBPACK_IMPORTED_MODULE_19__["customInnerStore"])(el).customImagePath = elOption.style.image; } else if (graphicType === 'text') { el = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"]({}); // customInnerStore(el).customText = (elOption.style as TextStyleProps).text; } else if (graphicType === 'group') { el = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"](); } else if (graphicType === 'compoundPath') { throw new Error('"compoundPath" is not supported yet.'); } else { var Clz = _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["getShapeClass"](graphicType); if (!Clz) { var errMsg = ''; if (true) { errMsg = 'graphic type "' + graphicType + '" can not be found.'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_17__["throwError"])(errMsg); } el = new Clz(); } Object(_CustomSeries_js__WEBPACK_IMPORTED_MODULE_19__["customInnerStore"])(el).customGraphicType = graphicType; el.name = elOption.name; // Compat ec4: the default z2 lift is 1. If changing the number, // some cases probably be broken: hierarchy layout along z, like circle packing, // where emphasis only intending to modify color/border rather than lift z2. el.z2EmphasisLift = 1; el.z2SelectLift = 1; return el; } function updateElNormal( // Can be null/undefined api, el, dataIndex, elOption, attachedTxInfo, seriesModel, isInit) { // Stop and restore before update any other attributes. Object(_animation_customGraphicKeyframeAnimation_js__WEBPACK_IMPORTED_MODULE_21__["stopPreviousKeyframeAnimationAndRestore"])(el); var txCfgOpt = attachedTxInfo && attachedTxInfo.normal.cfg; if (txCfgOpt) { // PENDING: whether use user object directly rather than clone? // TODO:5.0 textConfig transition animation? el.setTextConfig(txCfgOpt); } // Default transition ['x', 'y'] if (elOption && elOption.transition == null) { elOption.transition = DEFAULT_TRANSITION; } // Do some normalization on style. var styleOpt = elOption && elOption.style; if (styleOpt) { if (el.type === 'text') { var textOptionStyle = styleOpt; // Compatible with ec4: if `textFill` or `textStroke` exists use them. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(textOptionStyle, 'textFill') && (textOptionStyle.fill = textOptionStyle.textFill); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(textOptionStyle, 'textStroke') && (textOptionStyle.stroke = textOptionStyle.textStroke); } var decalPattern = void 0; var decalObj = isPath(el) ? styleOpt.decal : null; if (api && decalObj) { decalObj.dirty = true; decalPattern = Object(_util_decal_js__WEBPACK_IMPORTED_MODULE_18__["createOrUpdatePatternFromDecal"])(decalObj, api); } // Always overwrite in case user specify this prop. styleOpt.__decalPattern = decalPattern; } if (isDisplayable(el)) { if (styleOpt) { var decalPattern = styleOpt.__decalPattern; if (decalPattern) { styleOpt.decal = decalPattern; } } } Object(_animation_customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_20__["applyUpdateTransition"])(el, elOption, seriesModel, { dataIndex: dataIndex, isInit: isInit, clearStyle: true }); Object(_animation_customGraphicKeyframeAnimation_js__WEBPACK_IMPORTED_MODULE_21__["applyKeyframeAnimation"])(el, elOption.keyframeAnimation, seriesModel); } function updateElOnState(state, el, elStateOpt, styleOpt, attachedTxInfo) { var elDisplayable = el.isGroup ? null : el; var txCfgOpt = attachedTxInfo && attachedTxInfo[state].cfg; // PENDING:5.0 support customize scale change and transition animation? if (elDisplayable) { // By default support auto lift color when hover whether `emphasis` specified. var stateObj = elDisplayable.ensureState(state); if (styleOpt === false) { var existingEmphasisState = elDisplayable.getState(state); if (existingEmphasisState) { existingEmphasisState.style = null; } } else { // style is needed to enable default emphasis. stateObj.style = styleOpt || null; } // If `elOption.styleEmphasis` or `elOption.emphasis.style` is `false`, // remove hover style. // If `elOption.textConfig` or `elOption.emphasis.textConfig` is null/undefined, it does not // make sense. So for simplicity, we do not ditinguish `hasOwnProperty` and null/undefined. if (txCfgOpt) { stateObj.textConfig = txCfgOpt; } Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["setDefaultStateProxy"])(elDisplayable); } } function updateZ(el, elOption, seriesModel) { // Group not support textContent and not support z yet. if (el.isGroup) { return; } var elDisplayable = el; var currentZ = seriesModel.currentZ; var currentZLevel = seriesModel.currentZLevel; // Always erase. elDisplayable.z = currentZ; elDisplayable.zlevel = currentZLevel; // z2 must not be null/undefined, otherwise sort error may occur. var optZ2 = elOption.z2; optZ2 != null && (elDisplayable.z2 = optZ2 || 0); for (var i = 0; i < STATES.length; i++) { updateZForEachState(elDisplayable, elOption, STATES[i]); } } function updateZForEachState(elDisplayable, elOption, state) { var isNormal = state === NORMAL; var elStateOpt = isNormal ? elOption : retrieveStateOption(elOption, state); var optZ2 = elStateOpt ? elStateOpt.z2 : null; var stateObj; if (optZ2 != null) { // Do not `ensureState` until required. stateObj = isNormal ? elDisplayable : elDisplayable.ensureState(state); stateObj.z2 = optZ2 || 0; } } function makeRenderItem(customSeries, data, ecModel, api) { var renderItem = customSeries.get('renderItem'); var coordSys = customSeries.coordinateSystem; var prepareResult = {}; if (coordSys) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(renderItem, 'series.render is required.'); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(coordSys.prepareCustoms || prepareCustoms[coordSys.type], 'This coordSys does not support custom series.'); } // `coordSys.prepareCustoms` is used for external coord sys like bmap. prepareResult = coordSys.prepareCustoms ? coordSys.prepareCustoms(coordSys) : prepareCustoms[coordSys.type](coordSys); } var userAPI = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"])({ getWidth: api.getWidth, getHeight: api.getHeight, getZr: api.getZr, getDevicePixelRatio: api.getDevicePixelRatio, value: value, style: style, ordinalRawValue: ordinalRawValue, styleEmphasis: styleEmphasis, visual: visual, barLayout: barLayout, currentSeriesIndices: currentSeriesIndices, font: font }, prepareResult.api || {}); var userParams = { // The life cycle of context: current round of rendering. // The global life cycle is probably not necessary, because // user can store global status by themselves. context: {}, seriesId: customSeries.id, seriesName: customSeries.name, seriesIndex: customSeries.seriesIndex, coordSys: prepareResult.coordSys, dataInsideLength: data.count(), encode: wrapEncodeDef(customSeries.getData()) }; // If someday intending to refactor them to a class, should consider do not // break change: currently these attribute member are encapsulated in a closure // so that do not need to force user to call these method with a scope. // Do not support call `api` asynchronously without dataIndexInside input. var currDataIndexInside; var currItemModel; var currItemStyleModels = {}; var currLabelModels = {}; var seriesItemStyleModels = {}; var seriesLabelModels = {}; for (var i = 0; i < STATES.length; i++) { var stateName = STATES[i]; seriesItemStyleModels[stateName] = customSeries.getModel(PATH_ITEM_STYLE[stateName]); seriesLabelModels[stateName] = customSeries.getModel(PATH_LABEL[stateName]); } function getItemModel(dataIndexInside) { return dataIndexInside === currDataIndexInside ? currItemModel || (currItemModel = data.getItemModel(dataIndexInside)) : data.getItemModel(dataIndexInside); } function getItemStyleModel(dataIndexInside, state) { return !data.hasItemOption ? seriesItemStyleModels[state] : dataIndexInside === currDataIndexInside ? currItemStyleModels[state] || (currItemStyleModels[state] = getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state])) : getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state]); } function getLabelModel(dataIndexInside, state) { return !data.hasItemOption ? seriesLabelModels[state] : dataIndexInside === currDataIndexInside ? currLabelModels[state] || (currLabelModels[state] = getItemModel(dataIndexInside).getModel(PATH_LABEL[state])) : getItemModel(dataIndexInside).getModel(PATH_LABEL[state]); } return function (dataIndexInside, payload) { currDataIndexInside = dataIndexInside; currItemModel = null; currItemStyleModels = {}; currLabelModels = {}; return renderItem && renderItem(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"])({ dataIndexInside: dataIndexInside, dataIndex: data.getRawIndex(dataIndexInside), // Can be used for optimization when zoom or roam. actionType: payload ? payload.type : null }, userParams), userAPI); }; /** * @public * @param dim by default 0. * @param dataIndexInside by default `currDataIndexInside`. */ function value(dim, dataIndexInside) { dataIndexInside == null && (dataIndexInside = currDataIndexInside); return data.getStore().get(data.getDimensionIndex(dim || 0), dataIndexInside); } /** * @public * @param dim by default 0. * @param dataIndexInside by default `currDataIndexInside`. */ function ordinalRawValue(dim, dataIndexInside) { dataIndexInside == null && (dataIndexInside = currDataIndexInside); dim = dim || 0; var dimInfo = data.getDimensionInfo(dim); if (!dimInfo) { var dimIndex = data.getDimensionIndex(dim); return dimIndex >= 0 ? data.getStore().get(dimIndex, dataIndexInside) : undefined; } var val = data.get(dimInfo.name, dataIndexInside); var ordinalMeta = dimInfo && dimInfo.ordinalMeta; return ordinalMeta ? ordinalMeta.categories[val] : val; } /** * @deprecated The original intention of `api.style` is enable to set itemStyle * like other series. But it is not necessary and not easy to give a strict definition * of what it returns. And since echarts5 it needs to be make compat work. So * deprecates it since echarts5. * * By default, `visual` is applied to style (to support visualMap). * `visual.color` is applied at `fill`. If user want apply visual.color on `stroke`, * it can be implemented as: * `api.style({stroke: api.visual('color'), fill: null})`; * * [Compat]: since ec5, RectText has been separated from its hosts el. * so `api.style()` will only return the style from `itemStyle` but not handle `label` * any more. But `series.label` config is never published in doc. * We still compat it in `api.style()`. But not encourage to use it and will still not * to pulish it to doc. * @public * @param dataIndexInside by default `currDataIndexInside`. */ function style(userProps, dataIndexInside) { if (true) { Object(_util_styleCompat_js__WEBPACK_IMPORTED_MODULE_16__["warnDeprecated"])('api.style', 'Please write literal style directly instead.'); } dataIndexInside == null && (dataIndexInside = currDataIndexInside); var style = data.getItemVisual(dataIndexInside, 'style'); var visualColor = style && style.fill; var opacity = style && style.opacity; var itemStyle = getItemStyleModel(dataIndexInside, NORMAL).getItemStyle(); visualColor != null && (itemStyle.fill = visualColor); opacity != null && (itemStyle.opacity = opacity); var opt = { inheritColor: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(visualColor) ? visualColor : '#000' }; var labelModel = getLabelModel(dataIndexInside, NORMAL); // Now that the feature of "auto adjust text fill/stroke" has been migrated to zrender // since ec5, we should set `isAttached` as `false` here and make compat in // `convertToEC4StyleForCustomSerise`. var textStyle = _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextStyle"](labelModel, null, opt, false, true); textStyle.text = labelModel.getShallow('show') ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"])(customSeries.getFormattedLabel(dataIndexInside, NORMAL), Object(_helper_labelHelper_js__WEBPACK_IMPORTED_MODULE_5__["getDefaultLabel"])(data, dataIndexInside)) : null; var textConfig = _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextConfig"](labelModel, opt, false); preFetchFromExtra(userProps, itemStyle); itemStyle = Object(_util_styleCompat_js__WEBPACK_IMPORTED_MODULE_16__["convertToEC4StyleForCustomSerise"])(itemStyle, textStyle, textConfig); userProps && applyUserPropsAfter(itemStyle, userProps); itemStyle.legacy = true; return itemStyle; } /** * @deprecated The reason see `api.style()` * @public * @param dataIndexInside by default `currDataIndexInside`. */ function styleEmphasis(userProps, dataIndexInside) { if (true) { Object(_util_styleCompat_js__WEBPACK_IMPORTED_MODULE_16__["warnDeprecated"])('api.styleEmphasis', 'Please write literal style directly instead.'); } dataIndexInside == null && (dataIndexInside = currDataIndexInside); var itemStyle = getItemStyleModel(dataIndexInside, EMPHASIS).getItemStyle(); var labelModel = getLabelModel(dataIndexInside, EMPHASIS); var textStyle = _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextStyle"](labelModel, null, null, true, true); textStyle.text = labelModel.getShallow('show') ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve3"])(customSeries.getFormattedLabel(dataIndexInside, EMPHASIS), customSeries.getFormattedLabel(dataIndexInside, NORMAL), Object(_helper_labelHelper_js__WEBPACK_IMPORTED_MODULE_5__["getDefaultLabel"])(data, dataIndexInside)) : null; var textConfig = _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextConfig"](labelModel, null, true); preFetchFromExtra(userProps, itemStyle); itemStyle = Object(_util_styleCompat_js__WEBPACK_IMPORTED_MODULE_16__["convertToEC4StyleForCustomSerise"])(itemStyle, textStyle, textConfig); userProps && applyUserPropsAfter(itemStyle, userProps); itemStyle.legacy = true; return itemStyle; } function applyUserPropsAfter(itemStyle, extra) { for (var key in extra) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(extra, key)) { itemStyle[key] = extra[key]; } } } function preFetchFromExtra(extra, itemStyle) { // A trick to retrieve those props firstly, which are used to // apply auto inside fill/stroke in `convertToEC4StyleForCustomSerise`. // (It's not reasonable but only for a degree of compat) if (extra) { extra.textFill && (itemStyle.textFill = extra.textFill); extra.textPosition && (itemStyle.textPosition = extra.textPosition); } } /** * @public * @param dataIndexInside by default `currDataIndexInside`. */ function visual(visualType, dataIndexInside) { dataIndexInside == null && (dataIndexInside = currDataIndexInside); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(_CustomSeries_js__WEBPACK_IMPORTED_MODULE_19__["STYLE_VISUAL_TYPE"], visualType)) { var style_1 = data.getItemVisual(dataIndexInside, 'style'); return style_1 ? style_1[_CustomSeries_js__WEBPACK_IMPORTED_MODULE_19__["STYLE_VISUAL_TYPE"][visualType]] : null; } // Only support these visuals. Other visual might be inner tricky // for performance (like `style`), do not expose to users. if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(_CustomSeries_js__WEBPACK_IMPORTED_MODULE_19__["NON_STYLE_VISUAL_PROPS"], visualType)) { return data.getItemVisual(dataIndexInside, visualType); } } /** * @public * @return If not support, return undefined. */ function barLayout(opt) { if (coordSys.type === 'cartesian2d') { var baseAxis = coordSys.getBaseAxis(); return Object(_layout_barGrid_js__WEBPACK_IMPORTED_MODULE_6__["getLayoutOnAxis"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"])({ axis: baseAxis }, opt)); } } /** * @public */ function currentSeriesIndices() { return ecModel.getCurrentSeriesIndices(); } /** * @public * @return font string */ function font(opt) { return _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["getFont"](opt, ecModel); } } function wrapEncodeDef(data) { var encodeDef = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(data.dimensions, function (dimName) { var dimInfo = data.getDimensionInfo(dimName); if (!dimInfo.isExtraCoord) { var coordDim = dimInfo.coordDim; var dataDims = encodeDef[coordDim] = encodeDef[coordDim] || []; dataDims[dimInfo.coordDimIndex] = data.getDimensionIndex(dimName); } }); return encodeDef; } function createOrUpdateItem(api, existsEl, dataIndex, elOption, seriesModel, group, data) { // [Rule] // If `renderItem` returns `null`/`undefined`/`false`, remove the previous el if existing. // (It seems that violate the "merge" principle, but most of users probably intuitively // regard "return;" as "show nothing element whatever", so make a exception to meet the // most cases.) // The rule or "merge" see [STRATEGY_MERGE]. // If `elOption` is `null`/`undefined`/`false` (when `renderItem` returns nothing). if (!elOption) { group.remove(existsEl); return; } var el = doCreateOrUpdateEl(api, existsEl, dataIndex, elOption, seriesModel, group); el && data.setItemGraphicEl(dataIndex, el); el && Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["toggleHoverEmphasis"])(el, elOption.focus, elOption.blurScope, elOption.emphasisDisabled); return el; } function doCreateOrUpdateEl(api, existsEl, dataIndex, elOption, seriesModel, group) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(elOption, 'should not have an null/undefined element setting'); } var toBeReplacedIdx = -1; var oldEl = existsEl; if (existsEl && doesElNeedRecreate(existsEl, elOption, seriesModel) // || ( // // PENDING: even in one-to-one mapping case, if el is marked as morph, // // do not sure whether the el will be mapped to another el with different // // hierarchy in Group tree. So always recreate el rather than reuse the el. // morphHelper && morphHelper.isOneToOneFrom(el) // ) ) { // Should keep at the original index, otherwise "merge by index" will be incorrect. toBeReplacedIdx = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["indexOf"])(group.childrenRef(), existsEl); existsEl = null; } var isInit = !existsEl; var el = existsEl; if (!el) { el = createEl(elOption); if (oldEl) { copyElement(oldEl, el); } } else { // FIMXE:NEXT unified clearState? // If in some case the performance issue arised, consider // do not clearState but update cached normal state directly. el.clearStates(); } // Need to set morph: false explictly to disable automatically morphing. if (elOption.morph === false) { el.disableMorphing = true; } else if (el.disableMorphing) { el.disableMorphing = false; } attachedTxInfoTmp.normal.cfg = attachedTxInfoTmp.normal.conOpt = attachedTxInfoTmp.emphasis.cfg = attachedTxInfoTmp.emphasis.conOpt = attachedTxInfoTmp.blur.cfg = attachedTxInfoTmp.blur.conOpt = attachedTxInfoTmp.select.cfg = attachedTxInfoTmp.select.conOpt = null; attachedTxInfoTmp.isLegacy = false; doCreateOrUpdateAttachedTx(el, dataIndex, elOption, seriesModel, isInit, attachedTxInfoTmp); doCreateOrUpdateClipPath(el, dataIndex, elOption, seriesModel, isInit); updateElNormal(api, el, dataIndex, elOption, attachedTxInfoTmp, seriesModel, isInit); // `elOption.info` enables user to mount some info on // elements and use them in event handlers. // Update them only when user specified, otherwise, remain. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(elOption, 'info') && (Object(_CustomSeries_js__WEBPACK_IMPORTED_MODULE_19__["customInnerStore"])(el).info = elOption.info); for (var i = 0; i < STATES.length; i++) { var stateName = STATES[i]; if (stateName !== NORMAL) { var otherStateOpt = retrieveStateOption(elOption, stateName); var otherStyleOpt = retrieveStyleOptionOnState(elOption, otherStateOpt, stateName); updateElOnState(stateName, el, otherStateOpt, otherStyleOpt, attachedTxInfoTmp); } } updateZ(el, elOption, seriesModel); if (elOption.type === 'group') { mergeChildren(api, el, dataIndex, elOption, seriesModel); } if (toBeReplacedIdx >= 0) { group.replaceAt(el, toBeReplacedIdx); } else { group.add(el); } return el; } // `el` must not be null/undefined. function doesElNeedRecreate(el, elOption, seriesModel) { var elInner = Object(_CustomSeries_js__WEBPACK_IMPORTED_MODULE_19__["customInnerStore"])(el); var elOptionType = elOption.type; var elOptionShape = elOption.shape; var elOptionStyle = elOption.style; return ( // Always create new if universal transition is enabled. // Because we do transition after render. It needs to know what old element is. Replacement will loose it. seriesModel.isUniversalTransitionEnabled() // If `elOptionType` is `null`, follow the merge principle. || elOptionType != null && elOptionType !== elInner.customGraphicType || elOptionType === 'path' && hasOwnPathData(elOptionShape) && getPathData(elOptionShape) !== elInner.customPathData || elOptionType === 'image' && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(elOptionStyle, 'image') && elOptionStyle.image !== elInner.customImagePath // // FIXME test and remove this restriction? // || (elOptionType === 'text' // && hasOwn(elOptionStyle, 'text') // && (elOptionStyle as TextStyleProps).text !== elInner.customText // ) ); } function doCreateOrUpdateClipPath(el, dataIndex, elOption, seriesModel, isInit) { // Based on the "merge" principle, if no clipPath provided, // do nothing. The exists clip will be totally removed only if // `el.clipPath` is `false`. Otherwise it will be merged/replaced. var clipPathOpt = elOption.clipPath; if (clipPathOpt === false) { if (el && el.getClipPath()) { el.removeClipPath(); } } else if (clipPathOpt) { var clipPath = el.getClipPath(); if (clipPath && doesElNeedRecreate(clipPath, clipPathOpt, seriesModel)) { clipPath = null; } if (!clipPath) { clipPath = createEl(clipPathOpt); if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(isPath(clipPath), 'Only any type of `path` can be used in `clipPath`, rather than ' + clipPath.type + '.'); } el.setClipPath(clipPath); } updateElNormal(null, clipPath, dataIndex, clipPathOpt, null, seriesModel, isInit); } // If not define `clipPath` in option, do nothing unnecessary. } function doCreateOrUpdateAttachedTx(el, dataIndex, elOption, seriesModel, isInit, attachedTxInfo) { // Group does not support textContent temporarily until necessary. if (el.isGroup) { return; } // Normal must be called before emphasis, for `isLegacy` detection. processTxInfo(elOption, null, attachedTxInfo); processTxInfo(elOption, EMPHASIS, attachedTxInfo); // If `elOption.textConfig` or `elOption.textContent` is null/undefined, it does not make sense. // So for simplicity, if "elOption hasOwnProperty of them but be null/undefined", we do not // trade them as set to null to el. // Especially: // `elOption.textContent: false` means remove textContent. // `elOption.textContent.emphasis.style: false` means remove the style from emphasis state. var txConOptNormal = attachedTxInfo.normal.conOpt; var txConOptEmphasis = attachedTxInfo.emphasis.conOpt; var txConOptBlur = attachedTxInfo.blur.conOpt; var txConOptSelect = attachedTxInfo.select.conOpt; if (txConOptNormal != null || txConOptEmphasis != null || txConOptSelect != null || txConOptBlur != null) { var textContent = el.getTextContent(); if (txConOptNormal === false) { textContent && el.removeTextContent(); } else { txConOptNormal = attachedTxInfo.normal.conOpt = txConOptNormal || { type: 'text' }; if (!textContent) { textContent = createEl(txConOptNormal); el.setTextContent(textContent); } else { // If in some case the performance issue arised, consider // do not clearState but update cached normal state directly. textContent.clearStates(); } updateElNormal(null, textContent, dataIndex, txConOptNormal, null, seriesModel, isInit); var txConStlOptNormal = txConOptNormal && txConOptNormal.style; for (var i = 0; i < STATES.length; i++) { var stateName = STATES[i]; if (stateName !== NORMAL) { var txConOptOtherState = attachedTxInfo[stateName].conOpt; updateElOnState(stateName, textContent, txConOptOtherState, retrieveStyleOptionOnState(txConOptNormal, txConOptOtherState, stateName), null); } } txConStlOptNormal ? textContent.dirty() : textContent.markRedraw(); } } } function processTxInfo(elOption, state, attachedTxInfo) { var stateOpt = !state ? elOption : retrieveStateOption(elOption, state); var styleOpt = !state ? elOption.style : retrieveStyleOptionOnState(elOption, stateOpt, EMPHASIS); var elType = elOption.type; var txCfg = stateOpt ? stateOpt.textConfig : null; var txConOptNormal = elOption.textContent; var txConOpt = !txConOptNormal ? null : !state ? txConOptNormal : retrieveStateOption(txConOptNormal, state); if (styleOpt && ( // Because emphasis style has little info to detect legacy, // if normal is legacy, emphasis is trade as legacy. attachedTxInfo.isLegacy || Object(_util_styleCompat_js__WEBPACK_IMPORTED_MODULE_16__["isEC4CompatibleStyle"])(styleOpt, elType, !!txCfg, !!txConOpt))) { attachedTxInfo.isLegacy = true; var convertResult = Object(_util_styleCompat_js__WEBPACK_IMPORTED_MODULE_16__["convertFromEC4CompatibleStyle"])(styleOpt, elType, !state); // Explicitly specified `textConfig` and `textContent` has higher priority than // the ones generated by legacy style. Otherwise if users use them and `api.style` // at the same time, they not both work and hardly to known why. if (!txCfg && convertResult.textConfig) { txCfg = convertResult.textConfig; } if (!txConOpt && convertResult.textContent) { txConOpt = convertResult.textContent; } } if (!state && txConOpt) { var txConOptNormal_1 = txConOpt; // `textContent: {type: 'text'}`, the "type" is easy to be missing. So we tolerate it. !txConOptNormal_1.type && (txConOptNormal_1.type = 'text'); if (true) { // Do not tolerate incorrcet type for forward compat. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(txConOptNormal_1.type === 'text', 'textContent.type must be "text"'); } } var info = !state ? attachedTxInfo.normal : attachedTxInfo[state]; info.cfg = txCfg; info.conOpt = txConOpt; } function retrieveStateOption(elOption, state) { return !state ? elOption : elOption ? elOption[state] : null; } function retrieveStyleOptionOnState(stateOptionNormal, stateOption, state) { var style = stateOption && stateOption.style; if (style == null && state === EMPHASIS && stateOptionNormal) { style = stateOptionNormal.styleEmphasis; } return style; } // Usage: // (1) By default, `elOption.$mergeChildren` is `'byIndex'`, which indicates // that the existing children will not be removed, and enables the feature // that update some of the props of some of the children simply by construct // the returned children of `renderItem` like: // `var children = group.children = []; children[3] = {opacity: 0.5};` // (2) If `elOption.$mergeChildren` is `'byName'`, add/update/remove children // by child.name. But that might be lower performance. // (3) If `elOption.$mergeChildren` is `false`, the existing children will be // replaced totally. // (4) If `!elOption.children`, following the "merge" principle, nothing will // happen. // (5) If `elOption.$mergeChildren` is not `false` neither `'byName'` and the // `el` is a group, and if any of the new child is null, it means to remove // the element at the same index, if exists. On the other hand, if the new // child is and empty object `{}`, it means to keep the element not changed. // // For implementation simpleness, do not provide a direct way to remove single // child (otherwise the total indices of the children array have to be modified). // User can remove a single child by setting its `ignore` to `true`. function mergeChildren(api, el, dataIndex, elOption, seriesModel) { var newChildren = elOption.children; var newLen = newChildren ? newChildren.length : 0; var mergeChildren = elOption.$mergeChildren; // `diffChildrenByName` has been deprecated. var byName = mergeChildren === 'byName' || elOption.diffChildrenByName; var notMerge = mergeChildren === false; // For better performance on roam update, only enter if necessary. if (!newLen && !byName && !notMerge) { return; } if (byName) { diffGroupChildren({ api: api, oldChildren: el.children() || [], newChildren: newChildren || [], dataIndex: dataIndex, seriesModel: seriesModel, group: el }); return; } notMerge && el.removeAll(); // Mapping children of a group simply by index, which // might be better performance. var index = 0; for (; index < newLen; index++) { var newChild = newChildren[index]; var oldChild = el.childAt(index); if (newChild) { if (newChild.ignore == null) { // The old child is set to be ignored if null (see comments // below). So we need to set ignore to be false back. newChild.ignore = false; } doCreateOrUpdateEl(api, oldChild, dataIndex, newChild, seriesModel, el); } else { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(oldChild, 'renderItem should not return a group containing elements' + ' as null/undefined/{} if they do not exist before.'); } // If the new element option is null, it means to remove the old // element. But we cannot really remove the element from the group // directly, because the element order may not be stable when this // element is added back. So we set the element to be ignored. oldChild.ignore = true; } } for (var i = el.childCount() - 1; i >= index; i--) { var child = el.childAt(i); removeChildFromGroup(el, child, seriesModel); } } function removeChildFromGroup(group, child, seriesModel) { // Do not support leave elements that are not mentioned in the latest // `renderItem` return. Otherwise users may not have a clear and simple // concept that how to control all of the elements. child && Object(_animation_customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_20__["applyLeaveTransition"])(child, Object(_CustomSeries_js__WEBPACK_IMPORTED_MODULE_19__["customInnerStore"])(group).option, seriesModel); } function diffGroupChildren(context) { new _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_7__["default"](context.oldChildren, context.newChildren, getKey, getKey, context).add(processAddUpdate).update(processAddUpdate).remove(processRemove).execute(); } function getKey(item, idx) { var name = item && item.name; return name != null ? name : GROUP_DIFF_PREFIX + idx; } function processAddUpdate(newIndex, oldIndex) { var context = this.context; var childOption = newIndex != null ? context.newChildren[newIndex] : null; var child = oldIndex != null ? context.oldChildren[oldIndex] : null; doCreateOrUpdateEl(context.api, child, context.dataIndex, childOption, context.seriesModel, context.group); } function processRemove(oldIndex) { var context = this.context; var child = context.oldChildren[oldIndex]; child && Object(_animation_customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_20__["applyLeaveTransition"])(child, Object(_CustomSeries_js__WEBPACK_IMPORTED_MODULE_19__["customInnerStore"])(child).option, context.seriesModel); } /** * @return SVG Path data. */ function getPathData(shape) { // "d" follows the SVG convention. return shape && (shape.pathData || shape.d); } function hasOwnPathData(shape) { return shape && (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(shape, 'pathData') || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(shape, 'd')); } /***/ }), /***/ "./node_modules/echarts/lib/chart/custom/install.js": /*!**********************************************************!*\ !*** ./node_modules/echarts/lib/chart/custom/install.js ***! \**********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _CustomSeries_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CustomSeries.js */ "./node_modules/echarts/lib/chart/custom/CustomSeries.js"); /* harmony import */ var _CustomView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CustomView.js */ "./node_modules/echarts/lib/chart/custom/CustomView.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerChartView(_CustomView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerSeriesModel(_CustomSeries_js__WEBPACK_IMPORTED_MODULE_0__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/chart/effectScatter/EffectScatterSeries.js": /*!*****************************************************************************!*\ !*** ./node_modules/echarts/lib/chart/effectScatter/EffectScatterSeries.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helper/createSeriesData.js */ "./node_modules/echarts/lib/chart/helper/createSeriesData.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var EffectScatterSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(EffectScatterSeriesModel, _super); function EffectScatterSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = EffectScatterSeriesModel.type; _this.hasSymbolVisual = true; return _this; } EffectScatterSeriesModel.prototype.getInitialData = function (option, ecModel) { return Object(_helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"])(null, this, { useEncodeDefaulter: true }); }; EffectScatterSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) { return selectors.point(data.getItemLayout(dataIndex)); }; EffectScatterSeriesModel.type = 'series.effectScatter'; EffectScatterSeriesModel.dependencies = ['grid', 'polar']; EffectScatterSeriesModel.defaultOption = { coordinateSystem: 'cartesian2d', // zlevel: 0, z: 2, legendHoverLink: true, effectType: 'ripple', progressive: 0, // When to show the effect, option: 'render'|'emphasis' showEffectOn: 'render', clip: true, // Ripple effect config rippleEffect: { period: 4, // Scale of ripple scale: 2.5, // Brush type can be fill or stroke brushType: 'fill', // Ripple number number: 3 }, universalTransition: { divideShape: 'clone' }, // Cartesian coordinate system // xAxisIndex: 0, // yAxisIndex: 0, // Polar coordinate system // polarIndex: 0, // Geo coordinate system // geoIndex: 0, // symbol: null, // 图形类型 symbolSize: 10 // 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2 // symbolRotate: null, // 图形旋转控制 // itemStyle: { // opacity: 1 // } }; return EffectScatterSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /* harmony default export */ __webpack_exports__["default"] = (EffectScatterSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/effectScatter/EffectScatterView.js": /*!***************************************************************************!*\ !*** ./node_modules/echarts/lib/chart/effectScatter/EffectScatterView.js ***! \***************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _helper_SymbolDraw_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helper/SymbolDraw.js */ "./node_modules/echarts/lib/chart/helper/SymbolDraw.js"); /* harmony import */ var _helper_EffectSymbol_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/EffectSymbol.js */ "./node_modules/echarts/lib/chart/helper/EffectSymbol.js"); /* harmony import */ var zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/matrix.js */ "./node_modules/zrender/lib/core/matrix.js"); /* harmony import */ var _layout_points_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../layout/points.js */ "./node_modules/echarts/lib/layout/points.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var EffectScatterView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(EffectScatterView, _super); function EffectScatterView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = EffectScatterView.type; return _this; } EffectScatterView.prototype.init = function () { this._symbolDraw = new _helper_SymbolDraw_js__WEBPACK_IMPORTED_MODULE_1__["default"](_helper_EffectSymbol_js__WEBPACK_IMPORTED_MODULE_2__["default"]); }; EffectScatterView.prototype.render = function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var effectSymbolDraw = this._symbolDraw; effectSymbolDraw.updateData(data, { clipShape: this._getClipShape(seriesModel) }); this.group.add(effectSymbolDraw.group); }; EffectScatterView.prototype._getClipShape = function (seriesModel) { var coordSys = seriesModel.coordinateSystem; var clipArea = coordSys && coordSys.getArea && coordSys.getArea(); return seriesModel.get('clip', true) ? clipArea : null; }; EffectScatterView.prototype.updateTransform = function (seriesModel, ecModel, api) { var data = seriesModel.getData(); this.group.dirty(); var res = Object(_layout_points_js__WEBPACK_IMPORTED_MODULE_4__["default"])('').reset(seriesModel, ecModel, api); if (res.progress) { res.progress({ start: 0, end: data.count(), count: data.count() }, data); } this._symbolDraw.updateLayout(); }; EffectScatterView.prototype._updateGroupTransform = function (seriesModel) { var coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.getRoamTransform) { this.group.transform = zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_3__["clone"](coordSys.getRoamTransform()); this.group.decomposeTransform(); } }; EffectScatterView.prototype.remove = function (ecModel, api) { this._symbolDraw && this._symbolDraw.remove(true); }; EffectScatterView.type = 'effectScatter'; return EffectScatterView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_5__["default"]); /* harmony default export */ __webpack_exports__["default"] = (EffectScatterView); /***/ }), /***/ "./node_modules/echarts/lib/chart/effectScatter/install.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/effectScatter/install.js ***! \*****************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _EffectScatterView_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EffectScatterView.js */ "./node_modules/echarts/lib/chart/effectScatter/EffectScatterView.js"); /* harmony import */ var _EffectScatterSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EffectScatterSeries.js */ "./node_modules/echarts/lib/chart/effectScatter/EffectScatterSeries.js"); /* harmony import */ var _layout_points_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../layout/points.js */ "./node_modules/echarts/lib/layout/points.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerChartView(_EffectScatterView_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerSeriesModel(_EffectScatterSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerLayout(Object(_layout_points_js__WEBPACK_IMPORTED_MODULE_2__["default"])('effectScatter')); } /***/ }), /***/ "./node_modules/echarts/lib/chart/funnel/FunnelSeries.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/funnel/FunnelSeries.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _helper_createSeriesDataSimply_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/createSeriesDataSimply.js */ "./node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _data_helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../data/helper/sourceHelper.js */ "./node_modules/echarts/lib/data/helper/sourceHelper.js"); /* harmony import */ var _visual_LegendVisualProvider_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../visual/LegendVisualProvider.js */ "./node_modules/echarts/lib/visual/LegendVisualProvider.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var FunnelSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FunnelSeriesModel, _super); function FunnelSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = FunnelSeriesModel.type; return _this; } FunnelSeriesModel.prototype.init = function (option) { _super.prototype.init.apply(this, arguments); // Enable legend selection for each data item // Use a function instead of direct access because data reference may changed this.legendVisualProvider = new _visual_LegendVisualProvider_js__WEBPACK_IMPORTED_MODULE_5__["default"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](this.getData, this), zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](this.getRawData, this)); // Extend labelLine emphasis this._defaultLabelLine(option); }; FunnelSeriesModel.prototype.getInitialData = function (option, ecModel) { return Object(_helper_createSeriesDataSimply_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this, { coordDimensions: ['value'], encodeDefaulter: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"](_data_helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_4__["makeSeriesEncodeForNameBased"], this) }); }; FunnelSeriesModel.prototype._defaultLabelLine = function (option) { // Extend labelLine emphasis Object(_util_model_js__WEBPACK_IMPORTED_MODULE_3__["defaultEmphasis"])(option, 'labelLine', ['show']); var labelLineNormalOpt = option.labelLine; var labelLineEmphasisOpt = option.emphasis.labelLine; // Not show label line if `label.normal.show = false` labelLineNormalOpt.show = labelLineNormalOpt.show && option.label.show; labelLineEmphasisOpt.show = labelLineEmphasisOpt.show && option.emphasis.label.show; }; // Overwrite FunnelSeriesModel.prototype.getDataParams = function (dataIndex) { var data = this.getData(); var params = _super.prototype.getDataParams.call(this, dataIndex); var valueDim = data.mapDimension('value'); var sum = data.getSum(valueDim); // Percent is 0 if sum is 0 params.percent = !sum ? 0 : +(data.get(valueDim, dataIndex) / sum * 100).toFixed(2); params.$vars.push('percent'); return params; }; FunnelSeriesModel.type = 'series.funnel'; FunnelSeriesModel.defaultOption = { // zlevel: 0, // 一级层叠 z: 2, legendHoverLink: true, colorBy: 'data', left: 80, top: 60, right: 80, bottom: 60, // width: {totalWidth} - left - right, // height: {totalHeight} - top - bottom, // 默认取数据最小最大值 // min: 0, // max: 100, minSize: '0%', maxSize: '100%', sort: 'descending', orient: 'vertical', gap: 0, funnelAlign: 'center', label: { show: true, position: 'outer' // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调 }, labelLine: { show: true, length: 20, lineStyle: { // color: 各异, width: 1 } }, itemStyle: { // color: 各异, borderColor: '#fff', borderWidth: 1 }, emphasis: { label: { show: true } }, select: { itemStyle: { borderColor: '#212121' } } }; return FunnelSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_6__["default"]); /* harmony default export */ __webpack_exports__["default"] = (FunnelSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/funnel/FunnelView.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/funnel/FunnelView.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _label_labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../label/labelGuideHelper.js */ "./node_modules/echarts/lib/label/labelGuideHelper.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../animation/basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var opacityAccessPath = ['itemStyle', 'opacity']; /** * Piece of pie including Sector, Label, LabelLine */ var FunnelPiece = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FunnelPiece, _super); function FunnelPiece(data, idx) { var _this = _super.call(this) || this; var polygon = _this; var labelLine = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Polyline"](); var text = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Text"](); polygon.setTextContent(text); _this.setTextGuideLine(labelLine); _this.updateData(data, idx, true); return _this; } FunnelPiece.prototype.updateData = function (data, idx, firstCreate) { var polygon = this; var seriesModel = data.hostModel; var itemModel = data.getItemModel(idx); var layout = data.getItemLayout(idx); var emphasisModel = itemModel.getModel('emphasis'); var opacity = itemModel.get(opacityAccessPath); opacity = opacity == null ? 1 : opacity; if (!firstCreate) { Object(_animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_6__["saveOldStyle"])(polygon); } // Update common style polygon.useStyle(data.getItemVisual(idx, 'style')); polygon.style.lineJoin = 'round'; if (firstCreate) { polygon.setShape({ points: layout.points }); polygon.style.opacity = 0; _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["initProps"](polygon, { style: { opacity: opacity } }, seriesModel, idx); } else { _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["updateProps"](polygon, { style: { opacity: opacity }, shape: { points: layout.points } }, seriesModel, idx); } Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["setStatesStylesFromModel"])(polygon, itemModel); this._updateLabel(data, idx); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["toggleHoverEmphasis"])(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled')); }; FunnelPiece.prototype._updateLabel = function (data, idx) { var polygon = this; var labelLine = this.getTextGuideLine(); var labelText = polygon.getTextContent(); var seriesModel = data.hostModel; var itemModel = data.getItemModel(idx); var layout = data.getItemLayout(idx); var labelLayout = layout.label; var style = data.getItemVisual(idx, 'style'); var visualColor = style.fill; Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_5__["setLabelStyle"])( // position will not be used in setLabelStyle labelText, Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_5__["getLabelStatesModels"])(itemModel), { labelFetcher: data.hostModel, labelDataIndex: idx, defaultOpacity: style.opacity, defaultText: data.getName(idx) }, { normal: { align: labelLayout.textAlign, verticalAlign: labelLayout.verticalAlign } }); polygon.setTextConfig({ local: true, inside: !!labelLayout.inside, insideStroke: visualColor, // insideFill: 'auto', outsideFill: visualColor }); var linePoints = labelLayout.linePoints; labelLine.setShape({ points: linePoints }); polygon.textGuideLineConfig = { anchor: linePoints ? new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Point"](linePoints[0][0], linePoints[0][1]) : null }; // Make sure update style on labelText after setLabelStyle. // Because setLabelStyle will replace a new style on it. _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["updateProps"](labelText, { style: { x: labelLayout.x, y: labelLayout.y } }, seriesModel, idx); labelText.attr({ rotation: labelLayout.rotation, originX: labelLayout.x, originY: labelLayout.y, z2: 10 }); Object(_label_labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_4__["setLabelLineStyle"])(polygon, Object(_label_labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_4__["getLabelLineStatesModels"])(itemModel), { // Default use item visual color stroke: visualColor }); }; return FunnelPiece; }(_util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Polygon"]); var FunnelView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FunnelView, _super); function FunnelView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = FunnelView.type; _this.ignoreLabelLineUpdate = true; return _this; } FunnelView.prototype.render = function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var oldData = this._data; var group = this.group; data.diff(oldData).add(function (idx) { var funnelPiece = new FunnelPiece(data, idx); data.setItemGraphicEl(idx, funnelPiece); group.add(funnelPiece); }).update(function (newIdx, oldIdx) { var piece = oldData.getItemGraphicEl(oldIdx); piece.updateData(data, newIdx); group.add(piece); data.setItemGraphicEl(newIdx, piece); }).remove(function (idx) { var piece = oldData.getItemGraphicEl(idx); _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["removeElementWithFadeOut"](piece, seriesModel, idx); }).execute(); this._data = data; }; FunnelView.prototype.remove = function () { this.group.removeAll(); this._data = null; }; FunnelView.prototype.dispose = function () {}; FunnelView.type = 'funnel'; return FunnelView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_3__["default"]); /* harmony default export */ __webpack_exports__["default"] = (FunnelView); /***/ }), /***/ "./node_modules/echarts/lib/chart/funnel/funnelLayout.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/funnel/funnelLayout.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return funnelLayout; }); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getViewRect(seriesModel, api) { return _util_layout_js__WEBPACK_IMPORTED_MODULE_0__["getLayoutRect"](seriesModel.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() }); } function getSortedIndices(data, sort) { var valueDim = data.mapDimension('value'); var valueArr = data.mapArray(valueDim, function (val) { return val; }); var indices = []; var isAscending = sort === 'ascending'; for (var i = 0, len = data.count(); i < len; i++) { indices[i] = i; } // Add custom sortable function & none sortable opetion by "options.sort" if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(sort)) { indices.sort(sort); } else if (sort !== 'none') { indices.sort(function (a, b) { return isAscending ? valueArr[a] - valueArr[b] : valueArr[b] - valueArr[a]; }); } return indices; } function labelLayout(data) { var seriesModel = data.hostModel; var orient = seriesModel.get('orient'); data.each(function (idx) { var itemModel = data.getItemModel(idx); var labelModel = itemModel.getModel('label'); var labelPosition = labelModel.get('position'); var labelLineModel = itemModel.getModel('labelLine'); var layout = data.getItemLayout(idx); var points = layout.points; var isLabelInside = labelPosition === 'inner' || labelPosition === 'inside' || labelPosition === 'center' || labelPosition === 'insideLeft' || labelPosition === 'insideRight'; var textAlign; var textX; var textY; var linePoints; if (isLabelInside) { if (labelPosition === 'insideLeft') { textX = (points[0][0] + points[3][0]) / 2 + 5; textY = (points[0][1] + points[3][1]) / 2; textAlign = 'left'; } else if (labelPosition === 'insideRight') { textX = (points[1][0] + points[2][0]) / 2 - 5; textY = (points[1][1] + points[2][1]) / 2; textAlign = 'right'; } else { textX = (points[0][0] + points[1][0] + points[2][0] + points[3][0]) / 4; textY = (points[0][1] + points[1][1] + points[2][1] + points[3][1]) / 4; textAlign = 'center'; } linePoints = [[textX, textY], [textX, textY]]; } else { var x1 = void 0; var y1 = void 0; var x2 = void 0; var y2 = void 0; var labelLineLen = labelLineModel.get('length'); if (true) { if (orient === 'vertical' && ['top', 'bottom'].indexOf(labelPosition) > -1) { labelPosition = 'left'; console.warn('Position error: Funnel chart on vertical orient dose not support top and bottom.'); } if (orient === 'horizontal' && ['left', 'right'].indexOf(labelPosition) > -1) { labelPosition = 'bottom'; console.warn('Position error: Funnel chart on horizontal orient dose not support left and right.'); } } if (labelPosition === 'left') { // Left side x1 = (points[3][0] + points[0][0]) / 2; y1 = (points[3][1] + points[0][1]) / 2; x2 = x1 - labelLineLen; textX = x2 - 5; textAlign = 'right'; } else if (labelPosition === 'right') { // Right side x1 = (points[1][0] + points[2][0]) / 2; y1 = (points[1][1] + points[2][1]) / 2; x2 = x1 + labelLineLen; textX = x2 + 5; textAlign = 'left'; } else if (labelPosition === 'top') { // Top side x1 = (points[3][0] + points[0][0]) / 2; y1 = (points[3][1] + points[0][1]) / 2; y2 = y1 - labelLineLen; textY = y2 - 5; textAlign = 'center'; } else if (labelPosition === 'bottom') { // Bottom side x1 = (points[1][0] + points[2][0]) / 2; y1 = (points[1][1] + points[2][1]) / 2; y2 = y1 + labelLineLen; textY = y2 + 5; textAlign = 'center'; } else if (labelPosition === 'rightTop') { // RightTop side x1 = orient === 'horizontal' ? points[3][0] : points[1][0]; y1 = orient === 'horizontal' ? points[3][1] : points[1][1]; if (orient === 'horizontal') { y2 = y1 - labelLineLen; textY = y2 - 5; textAlign = 'center'; } else { x2 = x1 + labelLineLen; textX = x2 + 5; textAlign = 'top'; } } else if (labelPosition === 'rightBottom') { // RightBottom side x1 = points[2][0]; y1 = points[2][1]; if (orient === 'horizontal') { y2 = y1 + labelLineLen; textY = y2 + 5; textAlign = 'center'; } else { x2 = x1 + labelLineLen; textX = x2 + 5; textAlign = 'bottom'; } } else if (labelPosition === 'leftTop') { // LeftTop side x1 = points[0][0]; y1 = orient === 'horizontal' ? points[0][1] : points[1][1]; if (orient === 'horizontal') { y2 = y1 - labelLineLen; textY = y2 - 5; textAlign = 'center'; } else { x2 = x1 - labelLineLen; textX = x2 - 5; textAlign = 'right'; } } else if (labelPosition === 'leftBottom') { // LeftBottom side x1 = orient === 'horizontal' ? points[1][0] : points[3][0]; y1 = orient === 'horizontal' ? points[1][1] : points[2][1]; if (orient === 'horizontal') { y2 = y1 + labelLineLen; textY = y2 + 5; textAlign = 'center'; } else { x2 = x1 - labelLineLen; textX = x2 - 5; textAlign = 'right'; } } else { // Right side or Bottom side x1 = (points[1][0] + points[2][0]) / 2; y1 = (points[1][1] + points[2][1]) / 2; if (orient === 'horizontal') { y2 = y1 + labelLineLen; textY = y2 + 5; textAlign = 'center'; } else { x2 = x1 + labelLineLen; textX = x2 + 5; textAlign = 'left'; } } if (orient === 'horizontal') { x2 = x1; textX = x2; } else { y2 = y1; textY = y2; } linePoints = [[x1, y1], [x2, y2]]; } layout.label = { linePoints: linePoints, x: textX, y: textY, verticalAlign: 'middle', textAlign: textAlign, inside: isLabelInside }; }); } function funnelLayout(ecModel, api) { ecModel.eachSeriesByType('funnel', function (seriesModel) { var data = seriesModel.getData(); var valueDim = data.mapDimension('value'); var sort = seriesModel.get('sort'); var viewRect = getViewRect(seriesModel, api); var orient = seriesModel.get('orient'); var viewWidth = viewRect.width; var viewHeight = viewRect.height; var indices = getSortedIndices(data, sort); var x = viewRect.x; var y = viewRect.y; var sizeExtent = orient === 'horizontal' ? [Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(seriesModel.get('minSize'), viewHeight), Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(seriesModel.get('maxSize'), viewHeight)] : [Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(seriesModel.get('minSize'), viewWidth), Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(seriesModel.get('maxSize'), viewWidth)]; var dataExtent = data.getDataExtent(valueDim); var min = seriesModel.get('min'); var max = seriesModel.get('max'); if (min == null) { min = Math.min(dataExtent[0], 0); } if (max == null) { max = dataExtent[1]; } var funnelAlign = seriesModel.get('funnelAlign'); var gap = seriesModel.get('gap'); var viewSize = orient === 'horizontal' ? viewWidth : viewHeight; var itemSize = (viewSize - gap * (data.count() - 1)) / data.count(); var getLinePoints = function (idx, offset) { // End point index is data.count() and we assign it 0 if (orient === 'horizontal') { var val_1 = data.get(valueDim, idx) || 0; var itemHeight = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["linearMap"])(val_1, [min, max], sizeExtent, true); var y0 = void 0; switch (funnelAlign) { case 'top': y0 = y; break; case 'center': y0 = y + (viewHeight - itemHeight) / 2; break; case 'bottom': y0 = y + (viewHeight - itemHeight); break; } return [[offset, y0], [offset, y0 + itemHeight]]; } var val = data.get(valueDim, idx) || 0; var itemWidth = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["linearMap"])(val, [min, max], sizeExtent, true); var x0; switch (funnelAlign) { case 'left': x0 = x; break; case 'center': x0 = x + (viewWidth - itemWidth) / 2; break; case 'right': x0 = x + viewWidth - itemWidth; break; } return [[x0, offset], [x0 + itemWidth, offset]]; }; if (sort === 'ascending') { // From bottom to top itemSize = -itemSize; gap = -gap; if (orient === 'horizontal') { x += viewWidth; } else { y += viewHeight; } indices = indices.reverse(); } for (var i = 0; i < indices.length; i++) { var idx = indices[i]; var nextIdx = indices[i + 1]; var itemModel = data.getItemModel(idx); if (orient === 'horizontal') { var width = itemModel.get(['itemStyle', 'width']); if (width == null) { width = itemSize; } else { width = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(width, viewWidth); if (sort === 'ascending') { width = -width; } } var start = getLinePoints(idx, x); var end = getLinePoints(nextIdx, x + width); x += width + gap; data.setItemLayout(idx, { points: start.concat(end.slice().reverse()) }); } else { var height = itemModel.get(['itemStyle', 'height']); if (height == null) { height = itemSize; } else { height = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(height, viewHeight); if (sort === 'ascending') { height = -height; } } var start = getLinePoints(idx, y); var end = getLinePoints(nextIdx, y + height); y += height + gap; data.setItemLayout(idx, { points: start.concat(end.slice().reverse()) }); } } labelLayout(data); }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/funnel/install.js": /*!**********************************************************!*\ !*** ./node_modules/echarts/lib/chart/funnel/install.js ***! \**********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _FunnelView_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FunnelView.js */ "./node_modules/echarts/lib/chart/funnel/FunnelView.js"); /* harmony import */ var _FunnelSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FunnelSeries.js */ "./node_modules/echarts/lib/chart/funnel/FunnelSeries.js"); /* harmony import */ var _funnelLayout_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./funnelLayout.js */ "./node_modules/echarts/lib/chart/funnel/funnelLayout.js"); /* harmony import */ var _processor_dataFilter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../processor/dataFilter.js */ "./node_modules/echarts/lib/processor/dataFilter.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerChartView(_FunnelView_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerSeriesModel(_FunnelSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerLayout(_funnelLayout_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerProcessor(Object(_processor_dataFilter_js__WEBPACK_IMPORTED_MODULE_3__["default"])('funnel')); } /***/ }), /***/ "./node_modules/echarts/lib/chart/gauge/GaugeSeries.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/gauge/GaugeSeries.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _helper_createSeriesDataSimply_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helper/createSeriesDataSimply.js */ "./node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var GaugeSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GaugeSeriesModel, _super); function GaugeSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = GaugeSeriesModel.type; _this.visualStyleAccessPath = 'itemStyle'; return _this; } GaugeSeriesModel.prototype.getInitialData = function (option, ecModel) { return Object(_helper_createSeriesDataSimply_js__WEBPACK_IMPORTED_MODULE_1__["default"])(this, ['value']); }; GaugeSeriesModel.type = 'series.gauge'; GaugeSeriesModel.defaultOption = { // zlevel: 0, z: 2, colorBy: 'data', // 默认全局居中 center: ['50%', '50%'], legendHoverLink: true, radius: '75%', startAngle: 225, endAngle: -45, clockwise: true, // 最小值 min: 0, // 最大值 max: 100, // 分割段数,默认为10 splitNumber: 10, // 坐标轴线 axisLine: { // 默认显示,属性show控制显示与否 show: true, roundCap: false, lineStyle: { color: [[1, '#E6EBF8']], width: 10 } }, // 坐标轴线 progress: { // 默认显示,属性show控制显示与否 show: false, overlap: true, width: 10, roundCap: false, clip: true }, // 分隔线 splitLine: { // 默认显示,属性show控制显示与否 show: true, // 属性length控制线长 length: 10, distance: 10, // 属性lineStyle(详见lineStyle)控制线条样式 lineStyle: { color: '#63677A', width: 3, type: 'solid' } }, // 坐标轴小标记 axisTick: { // 属性show控制显示与否,默认不显示 show: true, // 每份split细分多少段 splitNumber: 5, // 属性length控制线长 length: 6, distance: 10, // 属性lineStyle控制线条样式 lineStyle: { color: '#63677A', width: 1, type: 'solid' } }, axisLabel: { show: true, distance: 15, // formatter: null, color: '#464646', fontSize: 12, rotate: 0 }, pointer: { icon: null, offsetCenter: [0, 0], show: true, showAbove: true, length: '60%', width: 6, keepAspect: false }, anchor: { show: false, showAbove: false, size: 6, icon: 'circle', offsetCenter: [0, 0], keepAspect: false, itemStyle: { color: '#fff', borderWidth: 0, borderColor: '#5470c6' } }, title: { show: true, // x, y,单位px offsetCenter: [0, '20%'], // 其余属性默认使用全局文本样式,详见TEXTSTYLE color: '#464646', fontSize: 16, valueAnimation: false }, detail: { show: true, backgroundColor: 'rgba(0,0,0,0)', borderWidth: 0, borderColor: '#ccc', width: 100, height: null, padding: [5, 10], // x, y,单位px offsetCenter: [0, '40%'], // formatter: null, // 其余属性默认使用全局文本样式,详见TEXTSTYLE color: '#464646', fontSize: 30, fontWeight: 'bold', lineHeight: 30, valueAnimation: false } }; return GaugeSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /* harmony default export */ __webpack_exports__["default"] = (GaugeSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/gauge/GaugeView.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/gauge/GaugeView.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _PointerPath_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PointerPath.js */ "./node_modules/echarts/lib/chart/gauge/PointerPath.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _util_shape_sausage_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/shape/sausage.js */ "./node_modules/echarts/lib/util/shape/sausage.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! zrender/lib/graphic/Image.js */ "./node_modules/zrender/lib/graphic/Image.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var zrender_lib_core_PathProxy_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! zrender/lib/core/PathProxy.js */ "./node_modules/zrender/lib/core/PathProxy.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function parsePosition(seriesModel, api) { var center = seriesModel.get('center'); var width = api.getWidth(); var height = api.getHeight(); var size = Math.min(width, height); var cx = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(center[0], api.getWidth()); var cy = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(center[1], api.getHeight()); var r = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(seriesModel.get('radius'), size / 2); return { cx: cx, cy: cy, r: r }; } function formatLabel(value, labelFormatter) { var label = value == null ? '' : value + ''; if (labelFormatter) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["isString"])(labelFormatter)) { label = labelFormatter.replace('{value}', label); } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["isFunction"])(labelFormatter)) { label = labelFormatter(value); } } return label; } var GaugeView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GaugeView, _super); function GaugeView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = GaugeView.type; return _this; } GaugeView.prototype.render = function (seriesModel, ecModel, api) { this.group.removeAll(); var colorList = seriesModel.get(['axisLine', 'lineStyle', 'color']); var posInfo = parsePosition(seriesModel, api); this._renderMain(seriesModel, ecModel, api, colorList, posInfo); this._data = seriesModel.getData(); }; GaugeView.prototype.dispose = function () {}; GaugeView.prototype._renderMain = function (seriesModel, ecModel, api, colorList, posInfo) { var group = this.group; var clockwise = seriesModel.get('clockwise'); var startAngle = -seriesModel.get('startAngle') / 180 * Math.PI; var endAngle = -seriesModel.get('endAngle') / 180 * Math.PI; var axisLineModel = seriesModel.getModel('axisLine'); var roundCap = axisLineModel.get('roundCap'); var MainPath = roundCap ? _util_shape_sausage_js__WEBPACK_IMPORTED_MODULE_7__["default"] : _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Sector"]; var showAxis = axisLineModel.get('show'); var lineStyleModel = axisLineModel.getModel('lineStyle'); var axisLineWidth = lineStyleModel.get('width'); var angles = [startAngle, endAngle]; Object(zrender_lib_core_PathProxy_js__WEBPACK_IMPORTED_MODULE_12__["normalizeArcAngles"])(angles, !clockwise); startAngle = angles[0]; endAngle = angles[1]; var angleRangeSpan = endAngle - startAngle; var prevEndAngle = startAngle; var sectors = []; for (var i = 0; showAxis && i < colorList.length; i++) { // Clamp var percent = Math.min(Math.max(colorList[i][0], 0), 1); endAngle = startAngle + angleRangeSpan * percent; var sector = new MainPath({ shape: { startAngle: prevEndAngle, endAngle: endAngle, cx: posInfo.cx, cy: posInfo.cy, clockwise: clockwise, r0: posInfo.r - axisLineWidth, r: posInfo.r }, silent: true }); sector.setStyle({ fill: colorList[i][1] }); sector.setStyle(lineStyleModel.getLineStyle( // Because we use sector to simulate arc // so the properties for stroking are useless ['color', 'width'])); sectors.push(sector); prevEndAngle = endAngle; } sectors.reverse(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["each"])(sectors, function (sector) { return group.add(sector); }); var getColor = function (percent) { // Less than 0 if (percent <= 0) { return colorList[0][1]; } var i; for (i = 0; i < colorList.length; i++) { if (colorList[i][0] >= percent && (i === 0 ? 0 : colorList[i - 1][0]) < percent) { return colorList[i][1]; } } // More than 1 return colorList[i - 1][1]; }; this._renderTicks(seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth); this._renderTitleAndDetail(seriesModel, ecModel, api, getColor, posInfo); this._renderAnchor(seriesModel, posInfo); this._renderPointer(seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth); }; GaugeView.prototype._renderTicks = function (seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth) { var group = this.group; var cx = posInfo.cx; var cy = posInfo.cy; var r = posInfo.r; var minVal = +seriesModel.get('min'); var maxVal = +seriesModel.get('max'); var splitLineModel = seriesModel.getModel('splitLine'); var tickModel = seriesModel.getModel('axisTick'); var labelModel = seriesModel.getModel('axisLabel'); var splitNumber = seriesModel.get('splitNumber'); var subSplitNumber = tickModel.get('splitNumber'); var splitLineLen = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(splitLineModel.get('length'), r); var tickLen = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(tickModel.get('length'), r); var angle = startAngle; var step = (endAngle - startAngle) / splitNumber; var subStep = step / subSplitNumber; var splitLineStyle = splitLineModel.getModel('lineStyle').getLineStyle(); var tickLineStyle = tickModel.getModel('lineStyle').getLineStyle(); var splitLineDistance = splitLineModel.get('distance'); var unitX; var unitY; for (var i = 0; i <= splitNumber; i++) { unitX = Math.cos(angle); unitY = Math.sin(angle); // Split line if (splitLineModel.get('show')) { var distance = splitLineDistance ? splitLineDistance + axisLineWidth : axisLineWidth; var splitLine = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Line"]({ shape: { x1: unitX * (r - distance) + cx, y1: unitY * (r - distance) + cy, x2: unitX * (r - splitLineLen - distance) + cx, y2: unitY * (r - splitLineLen - distance) + cy }, style: splitLineStyle, silent: true }); if (splitLineStyle.stroke === 'auto') { splitLine.setStyle({ stroke: getColor(i / splitNumber) }); } group.add(splitLine); } // Label if (labelModel.get('show')) { var distance = labelModel.get('distance') + splitLineDistance; var label = formatLabel(Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["round"])(i / splitNumber * (maxVal - minVal) + minVal), labelModel.get('formatter')); var autoColor = getColor(i / splitNumber); var textStyleX = unitX * (r - splitLineLen - distance) + cx; var textStyleY = unitY * (r - splitLineLen - distance) + cy; var rotateType = labelModel.get('rotate'); var rotate = 0; if (rotateType === 'radial') { rotate = -angle + 2 * Math.PI; if (rotate > Math.PI / 2) { rotate += Math.PI; } } else if (rotateType === 'tangential') { rotate = -angle - Math.PI / 2; } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["isNumber"])(rotateType)) { rotate = rotateType * Math.PI / 180; } if (rotate === 0) { group.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"]({ style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextStyle"])(labelModel, { text: label, x: textStyleX, y: textStyleY, verticalAlign: unitY < -0.8 ? 'top' : unitY > 0.8 ? 'bottom' : 'middle', align: unitX < -0.4 ? 'left' : unitX > 0.4 ? 'right' : 'center' }, { inheritColor: autoColor }), silent: true })); } else { group.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"]({ style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextStyle"])(labelModel, { text: label, x: textStyleX, y: textStyleY, verticalAlign: 'middle', align: 'center' }, { inheritColor: autoColor }), silent: true, originX: textStyleX, originY: textStyleY, rotation: rotate })); } } // Axis tick if (tickModel.get('show') && i !== splitNumber) { var distance = tickModel.get('distance'); distance = distance ? distance + axisLineWidth : axisLineWidth; for (var j = 0; j <= subSplitNumber; j++) { unitX = Math.cos(angle); unitY = Math.sin(angle); var tickLine = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Line"]({ shape: { x1: unitX * (r - distance) + cx, y1: unitY * (r - distance) + cy, x2: unitX * (r - tickLen - distance) + cx, y2: unitY * (r - tickLen - distance) + cy }, silent: true, style: tickLineStyle }); if (tickLineStyle.stroke === 'auto') { tickLine.setStyle({ stroke: getColor((i + j / subSplitNumber) / splitNumber) }); } group.add(tickLine); angle += subStep; } angle -= subStep; } else { angle += step; } } }; GaugeView.prototype._renderPointer = function (seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth) { var group = this.group; var oldData = this._data; var oldProgressData = this._progressEls; var progressList = []; var showPointer = seriesModel.get(['pointer', 'show']); var progressModel = seriesModel.getModel('progress'); var showProgress = progressModel.get('show'); var data = seriesModel.getData(); var valueDim = data.mapDimension('value'); var minVal = +seriesModel.get('min'); var maxVal = +seriesModel.get('max'); var valueExtent = [minVal, maxVal]; var angleExtent = [startAngle, endAngle]; function createPointer(idx, angle) { var itemModel = data.getItemModel(idx); var pointerModel = itemModel.getModel('pointer'); var pointerWidth = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(pointerModel.get('width'), posInfo.r); var pointerLength = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(pointerModel.get('length'), posInfo.r); var pointerStr = seriesModel.get(['pointer', 'icon']); var pointerOffset = pointerModel.get('offsetCenter'); var pointerOffsetX = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(pointerOffset[0], posInfo.r); var pointerOffsetY = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(pointerOffset[1], posInfo.r); var pointerKeepAspect = pointerModel.get('keepAspect'); var pointer; // not exist icon type will be set 'rect' if (pointerStr) { pointer = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_8__["createSymbol"])(pointerStr, pointerOffsetX - pointerWidth / 2, pointerOffsetY - pointerLength, pointerWidth, pointerLength, null, pointerKeepAspect); } else { pointer = new _PointerPath_js__WEBPACK_IMPORTED_MODULE_1__["default"]({ shape: { angle: -Math.PI / 2, width: pointerWidth, r: pointerLength, x: pointerOffsetX, y: pointerOffsetY } }); } pointer.rotation = -(angle + Math.PI / 2); pointer.x = posInfo.cx; pointer.y = posInfo.cy; return pointer; } function createProgress(idx, endAngle) { var roundCap = progressModel.get('roundCap'); var ProgressPath = roundCap ? _util_shape_sausage_js__WEBPACK_IMPORTED_MODULE_7__["default"] : _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Sector"]; var isOverlap = progressModel.get('overlap'); var progressWidth = isOverlap ? progressModel.get('width') : axisLineWidth / data.count(); var r0 = isOverlap ? posInfo.r - progressWidth : posInfo.r - (idx + 1) * progressWidth; var r = isOverlap ? posInfo.r : posInfo.r - idx * progressWidth; var progress = new ProgressPath({ shape: { startAngle: startAngle, endAngle: endAngle, cx: posInfo.cx, cy: posInfo.cy, clockwise: clockwise, r0: r0, r: r } }); isOverlap && (progress.z2 = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(data.get(valueDim, idx), [minVal, maxVal], [100, 0], true)); return progress; } if (showProgress || showPointer) { data.diff(oldData).add(function (idx) { var val = data.get(valueDim, idx); if (showPointer) { var pointer = createPointer(idx, startAngle); // TODO hide pointer on NaN value? _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["initProps"](pointer, { rotation: -((isNaN(+val) ? angleExtent[0] : Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(val, valueExtent, angleExtent, true)) + Math.PI / 2) }, seriesModel); group.add(pointer); data.setItemGraphicEl(idx, pointer); } if (showProgress) { var progress = createProgress(idx, startAngle); var isClip = progressModel.get('clip'); _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["initProps"](progress, { shape: { endAngle: Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(val, valueExtent, angleExtent, isClip) } }, seriesModel); group.add(progress); // Add data index and series index for indexing the data by element // Useful in tooltip Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_11__["setCommonECData"])(seriesModel.seriesIndex, data.dataType, idx, progress); progressList[idx] = progress; } }).update(function (newIdx, oldIdx) { var val = data.get(valueDim, newIdx); if (showPointer) { var previousPointer = oldData.getItemGraphicEl(oldIdx); var previousRotate = previousPointer ? previousPointer.rotation : startAngle; var pointer = createPointer(newIdx, previousRotate); pointer.rotation = previousRotate; _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["updateProps"](pointer, { rotation: -((isNaN(+val) ? angleExtent[0] : Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(val, valueExtent, angleExtent, true)) + Math.PI / 2) }, seriesModel); group.add(pointer); data.setItemGraphicEl(newIdx, pointer); } if (showProgress) { var previousProgress = oldProgressData[oldIdx]; var previousEndAngle = previousProgress ? previousProgress.shape.endAngle : startAngle; var progress = createProgress(newIdx, previousEndAngle); var isClip = progressModel.get('clip'); _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["updateProps"](progress, { shape: { endAngle: Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(val, valueExtent, angleExtent, isClip) } }, seriesModel); group.add(progress); // Add data index and series index for indexing the data by element // Useful in tooltip Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_11__["setCommonECData"])(seriesModel.seriesIndex, data.dataType, newIdx, progress); progressList[newIdx] = progress; } }).execute(); data.each(function (idx) { var itemModel = data.getItemModel(idx); var emphasisModel = itemModel.getModel('emphasis'); var focus = emphasisModel.get('focus'); var blurScope = emphasisModel.get('blurScope'); var emphasisDisabled = emphasisModel.get('disabled'); if (showPointer) { var pointer = data.getItemGraphicEl(idx); var symbolStyle = data.getItemVisual(idx, 'style'); var visualColor = symbolStyle.fill; if (pointer instanceof zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_9__["default"]) { var pathStyle = pointer.style; pointer.useStyle(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["extend"])({ image: pathStyle.image, x: pathStyle.x, y: pathStyle.y, width: pathStyle.width, height: pathStyle.height }, symbolStyle)); } else { pointer.useStyle(symbolStyle); pointer.type !== 'pointer' && pointer.setColor(visualColor); } pointer.setStyle(itemModel.getModel(['pointer', 'itemStyle']).getItemStyle()); if (pointer.style.fill === 'auto') { pointer.setStyle('fill', getColor(Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(data.get(valueDim, idx), valueExtent, [0, 1], true))); } pointer.z2EmphasisLift = 0; Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["setStatesStylesFromModel"])(pointer, itemModel); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["toggleHoverEmphasis"])(pointer, focus, blurScope, emphasisDisabled); } if (showProgress) { var progress = progressList[idx]; progress.useStyle(data.getItemVisual(idx, 'style')); progress.setStyle(itemModel.getModel(['progress', 'itemStyle']).getItemStyle()); progress.z2EmphasisLift = 0; Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["setStatesStylesFromModel"])(progress, itemModel); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["toggleHoverEmphasis"])(progress, focus, blurScope, emphasisDisabled); } }); this._progressEls = progressList; } }; GaugeView.prototype._renderAnchor = function (seriesModel, posInfo) { var anchorModel = seriesModel.getModel('anchor'); var showAnchor = anchorModel.get('show'); if (showAnchor) { var anchorSize = anchorModel.get('size'); var anchorType = anchorModel.get('icon'); var offsetCenter = anchorModel.get('offsetCenter'); var anchorKeepAspect = anchorModel.get('keepAspect'); var anchor = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_8__["createSymbol"])(anchorType, posInfo.cx - anchorSize / 2 + Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(offsetCenter[0], posInfo.r), posInfo.cy - anchorSize / 2 + Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(offsetCenter[1], posInfo.r), anchorSize, anchorSize, null, anchorKeepAspect); anchor.z2 = anchorModel.get('showAbove') ? 1 : 0; anchor.setStyle(anchorModel.getModel('itemStyle').getItemStyle()); this.group.add(anchor); } }; GaugeView.prototype._renderTitleAndDetail = function (seriesModel, ecModel, api, getColor, posInfo) { var _this = this; var data = seriesModel.getData(); var valueDim = data.mapDimension('value'); var minVal = +seriesModel.get('min'); var maxVal = +seriesModel.get('max'); var contentGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"](); var newTitleEls = []; var newDetailEls = []; var hasAnimation = seriesModel.isAnimationEnabled(); var showPointerAbove = seriesModel.get(['pointer', 'showAbove']); data.diff(this._data).add(function (idx) { newTitleEls[idx] = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"]({ silent: true }); newDetailEls[idx] = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"]({ silent: true }); }).update(function (idx, oldIdx) { newTitleEls[idx] = _this._titleEls[oldIdx]; newDetailEls[idx] = _this._detailEls[oldIdx]; }).execute(); data.each(function (idx) { var itemModel = data.getItemModel(idx); var value = data.get(valueDim, idx); var itemGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"](); var autoColor = getColor(Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(value, [minVal, maxVal], [0, 1], true)); var itemTitleModel = itemModel.getModel('title'); if (itemTitleModel.get('show')) { var titleOffsetCenter = itemTitleModel.get('offsetCenter'); var titleX = posInfo.cx + Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(titleOffsetCenter[0], posInfo.r); var titleY = posInfo.cy + Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(titleOffsetCenter[1], posInfo.r); var labelEl = newTitleEls[idx]; labelEl.attr({ z2: showPointerAbove ? 0 : 2, style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextStyle"])(itemTitleModel, { x: titleX, y: titleY, text: data.getName(idx), align: 'center', verticalAlign: 'middle' }, { inheritColor: autoColor }) }); itemGroup.add(labelEl); } var itemDetailModel = itemModel.getModel('detail'); if (itemDetailModel.get('show')) { var detailOffsetCenter = itemDetailModel.get('offsetCenter'); var detailX = posInfo.cx + Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(detailOffsetCenter[0], posInfo.r); var detailY = posInfo.cy + Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(detailOffsetCenter[1], posInfo.r); var width = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(itemDetailModel.get('width'), posInfo.r); var height = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(itemDetailModel.get('height'), posInfo.r); var detailColor = seriesModel.get(['progress', 'show']) ? data.getItemVisual(idx, 'style').fill : autoColor; var labelEl = newDetailEls[idx]; var formatter_1 = itemDetailModel.get('formatter'); labelEl.attr({ z2: showPointerAbove ? 0 : 2, style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextStyle"])(itemDetailModel, { x: detailX, y: detailY, text: formatLabel(value, formatter_1), width: isNaN(width) ? null : width, height: isNaN(height) ? null : height, align: 'center', verticalAlign: 'middle' }, { inheritColor: detailColor }) }); Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["setLabelValueAnimation"])(labelEl, { normal: itemDetailModel }, value, function (value) { return formatLabel(value, formatter_1); }); hasAnimation && Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["animateLabelValue"])(labelEl, idx, data, seriesModel, { getFormattedLabel: function (labelDataIndex, status, dataType, labelDimIndex, fmt, extendParams) { return formatLabel(extendParams ? extendParams.interpolatedValue : value, formatter_1); } }); itemGroup.add(labelEl); } contentGroup.add(itemGroup); }); this.group.add(contentGroup); this._titleEls = newTitleEls; this._detailEls = newDetailEls; }; GaugeView.type = 'gauge'; return GaugeView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_5__["default"]); /* harmony default export */ __webpack_exports__["default"] = (GaugeView); /***/ }), /***/ "./node_modules/echarts/lib/chart/gauge/PointerPath.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/gauge/PointerPath.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/graphic/Path.js */ "./node_modules/zrender/lib/graphic/Path.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PointerShape = /** @class */function () { function PointerShape() { this.angle = 0; this.width = 10; this.r = 10; this.x = 0; this.y = 0; } return PointerShape; }(); var PointerPath = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PointerPath, _super); function PointerPath(opts) { var _this = _super.call(this, opts) || this; _this.type = 'pointer'; return _this; } PointerPath.prototype.getDefaultShape = function () { return new PointerShape(); }; PointerPath.prototype.buildPath = function (ctx, shape) { var mathCos = Math.cos; var mathSin = Math.sin; var r = shape.r; var width = shape.width; var angle = shape.angle; var x = shape.x - mathCos(angle) * width * (width >= r / 3 ? 1 : 2); var y = shape.y - mathSin(angle) * width * (width >= r / 3 ? 1 : 2); angle = shape.angle - Math.PI / 2; ctx.moveTo(x, y); ctx.lineTo(shape.x + mathCos(angle) * width, shape.y + mathSin(angle) * width); ctx.lineTo(shape.x + mathCos(shape.angle) * r, shape.y + mathSin(shape.angle) * r); ctx.lineTo(shape.x - mathCos(angle) * width, shape.y - mathSin(angle) * width); ctx.lineTo(x, y); }; return PointerPath; }(zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (PointerPath); /***/ }), /***/ "./node_modules/echarts/lib/chart/gauge/install.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/chart/gauge/install.js ***! \*********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _GaugeView_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GaugeView.js */ "./node_modules/echarts/lib/chart/gauge/GaugeView.js"); /* harmony import */ var _GaugeSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GaugeSeries.js */ "./node_modules/echarts/lib/chart/gauge/GaugeSeries.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerChartView(_GaugeView_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerSeriesModel(_GaugeSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/GraphSeries.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/GraphSeries.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../data/SeriesData.js */ "./node_modules/echarts/lib/data/SeriesData.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _helper_createGraphFromNodeEdge_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helper/createGraphFromNodeEdge.js */ "./node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge.js"); /* harmony import */ var _visual_LegendVisualProvider_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../visual/LegendVisualProvider.js */ "./node_modules/echarts/lib/visual/LegendVisualProvider.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../component/tooltip/tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* harmony import */ var _component_tooltip_seriesFormatTooltip_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../component/tooltip/seriesFormatTooltip.js */ "./node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js"); /* harmony import */ var _helper_multipleGraphEdgeHelper_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../helper/multipleGraphEdgeHelper.js */ "./node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var GraphSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GraphSeriesModel, _super); function GraphSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = GraphSeriesModel.type; _this.hasSymbolVisual = true; return _this; } GraphSeriesModel.prototype.init = function (option) { _super.prototype.init.apply(this, arguments); var self = this; function getCategoriesData() { return self._categoriesData; } // Provide data for legend select this.legendVisualProvider = new _visual_LegendVisualProvider_js__WEBPACK_IMPORTED_MODULE_6__["default"](getCategoriesData, getCategoriesData); this.fillDataTextStyle(option.edges || option.links); this._updateCategoriesData(); }; GraphSeriesModel.prototype.mergeOption = function (option) { _super.prototype.mergeOption.apply(this, arguments); this.fillDataTextStyle(option.edges || option.links); this._updateCategoriesData(); }; GraphSeriesModel.prototype.mergeDefaultAndTheme = function (option) { _super.prototype.mergeDefaultAndTheme.apply(this, arguments); Object(_util_model_js__WEBPACK_IMPORTED_MODULE_3__["defaultEmphasis"])(option, 'edgeLabel', ['show']); }; GraphSeriesModel.prototype.getInitialData = function (option, ecModel) { var edges = option.edges || option.links || []; var nodes = option.data || option.nodes || []; var self = this; if (nodes && edges) { // auto curveness Object(_helper_multipleGraphEdgeHelper_js__WEBPACK_IMPORTED_MODULE_10__["initCurvenessList"])(this); var graph = Object(_helper_createGraphFromNodeEdge_js__WEBPACK_IMPORTED_MODULE_5__["default"])(nodes, edges, this, true, beforeLink); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"](graph.edges, function (edge) { Object(_helper_multipleGraphEdgeHelper_js__WEBPACK_IMPORTED_MODULE_10__["createEdgeMapForCurveness"])(edge.node1, edge.node2, this, edge.dataIndex); }, this); return graph.data; } function beforeLink(nodeData, edgeData) { // Overwrite nodeData.getItemModel to nodeData.wrapMethod('getItemModel', function (model) { var categoriesModels = self._categoriesModels; var categoryIdx = model.getShallow('category'); var categoryModel = categoriesModels[categoryIdx]; if (categoryModel) { categoryModel.parentModel = model.parentModel; model.parentModel = categoryModel; } return model; }); // TODO Inherit resolveParentPath by default in Model#getModel? var oldGetModel = _model_Model_js__WEBPACK_IMPORTED_MODULE_4__["default"].prototype.getModel; function newGetModel(path, parentModel) { var model = oldGetModel.call(this, path, parentModel); model.resolveParentPath = resolveParentPath; return model; } edgeData.wrapMethod('getItemModel', function (model) { model.resolveParentPath = resolveParentPath; model.getModel = newGetModel; return model; }); function resolveParentPath(pathArr) { if (pathArr && (pathArr[0] === 'label' || pathArr[1] === 'label')) { var newPathArr = pathArr.slice(); if (pathArr[0] === 'label') { newPathArr[0] = 'edgeLabel'; } else if (pathArr[1] === 'label') { newPathArr[1] = 'edgeLabel'; } return newPathArr; } return pathArr; } } }; GraphSeriesModel.prototype.getGraph = function () { return this.getData().graph; }; GraphSeriesModel.prototype.getEdgeData = function () { return this.getGraph().edgeData; }; GraphSeriesModel.prototype.getCategoriesData = function () { return this._categoriesData; }; GraphSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) { if (dataType === 'edge') { var nodeData = this.getData(); var params = this.getDataParams(dataIndex, dataType); var edge = nodeData.graph.getEdgeByIndex(dataIndex); var sourceName = nodeData.getName(edge.node1.dataIndex); var targetName = nodeData.getName(edge.node2.dataIndex); var nameArr = []; sourceName != null && nameArr.push(sourceName); targetName != null && nameArr.push(targetName); return Object(_component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_8__["createTooltipMarkup"])('nameValue', { name: nameArr.join(' > '), value: params.value, noValue: params.value == null }); } // dataType === 'node' or empty var nodeMarkup = Object(_component_tooltip_seriesFormatTooltip_js__WEBPACK_IMPORTED_MODULE_9__["defaultSeriesFormatTooltip"])({ series: this, dataIndex: dataIndex, multipleSeries: multipleSeries }); return nodeMarkup; }; GraphSeriesModel.prototype._updateCategoriesData = function () { var categories = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["map"](this.option.categories || [], function (category) { // Data must has value return category.value != null ? category : zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["extend"]({ value: 0 }, category); }); var categoriesData = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"](['value'], this); categoriesData.initData(categories); this._categoriesData = categoriesData; this._categoriesModels = categoriesData.mapArray(function (idx) { return categoriesData.getItemModel(idx); }); }; GraphSeriesModel.prototype.setZoom = function (zoom) { this.option.zoom = zoom; }; GraphSeriesModel.prototype.setCenter = function (center) { this.option.center = center; }; GraphSeriesModel.prototype.isAnimationEnabled = function () { return _super.prototype.isAnimationEnabled.call(this) // Not enable animation when do force layout && !(this.get('layout') === 'force' && this.get(['force', 'layoutAnimation'])); }; GraphSeriesModel.type = 'series.graph'; GraphSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar']; GraphSeriesModel.defaultOption = { // zlevel: 0, z: 2, coordinateSystem: 'view', // Default option for all coordinate systems // xAxisIndex: 0, // yAxisIndex: 0, // polarIndex: 0, // geoIndex: 0, legendHoverLink: true, layout: null, // Configuration of circular layout circular: { rotateLabel: false }, // Configuration of force directed layout force: { initLayout: null, // Node repulsion. Can be an array to represent range. repulsion: [0, 50], gravity: 0.1, // Initial friction friction: 0.6, // Edge length. Can be an array to represent range. edgeLength: 30, layoutAnimation: true }, left: 'center', top: 'center', // right: null, // bottom: null, // width: '80%', // height: '80%', symbol: 'circle', symbolSize: 10, edgeSymbol: ['none', 'none'], edgeSymbolSize: 10, edgeLabel: { position: 'middle', distance: 5 }, draggable: false, roam: false, // Default on center of graph center: null, zoom: 1, // Symbol size scale ratio in roam nodeScaleRatio: 0.6, // cursor: null, // categories: [], // data: [] // Or // nodes: [] // // links: [] // Or // edges: [] label: { show: false, formatter: '{b}' }, itemStyle: {}, lineStyle: { color: '#aaa', width: 1, opacity: 0.5 }, emphasis: { scale: true, label: { show: true } }, select: { itemStyle: { borderColor: '#212121' } } }; return GraphSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_7__["default"]); /* harmony default export */ __webpack_exports__["default"] = (GraphSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/GraphView.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/GraphView.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _helper_SymbolDraw_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helper/SymbolDraw.js */ "./node_modules/echarts/lib/chart/helper/SymbolDraw.js"); /* harmony import */ var _helper_LineDraw_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/LineDraw.js */ "./node_modules/echarts/lib/chart/helper/LineDraw.js"); /* harmony import */ var _component_helper_RoamController_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../component/helper/RoamController.js */ "./node_modules/echarts/lib/component/helper/RoamController.js"); /* harmony import */ var _component_helper_roamHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../component/helper/roamHelper.js */ "./node_modules/echarts/lib/component/helper/roamHelper.js"); /* harmony import */ var _component_helper_cursorHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../component/helper/cursorHelper.js */ "./node_modules/echarts/lib/component/helper/cursorHelper.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _adjustEdge_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./adjustEdge.js */ "./node_modules/echarts/lib/chart/graph/adjustEdge.js"); /* harmony import */ var _graphHelper_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./graphHelper.js */ "./node_modules/echarts/lib/chart/graph/graphHelper.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _simpleLayoutHelper_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./simpleLayoutHelper.js */ "./node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js"); /* harmony import */ var _circularLayoutHelper_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./circularLayoutHelper.js */ "./node_modules/echarts/lib/chart/graph/circularLayoutHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function isViewCoordSys(coordSys) { return coordSys.type === 'view'; } var GraphView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GraphView, _super); function GraphView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = GraphView.type; return _this; } GraphView.prototype.init = function (ecModel, api) { var symbolDraw = new _helper_SymbolDraw_js__WEBPACK_IMPORTED_MODULE_1__["default"](); var lineDraw = new _helper_LineDraw_js__WEBPACK_IMPORTED_MODULE_2__["default"](); var group = this.group; this._controller = new _component_helper_RoamController_js__WEBPACK_IMPORTED_MODULE_3__["default"](api.getZr()); this._controllerHost = { target: group }; group.add(symbolDraw.group); group.add(lineDraw.group); this._symbolDraw = symbolDraw; this._lineDraw = lineDraw; this._firstRender = true; }; GraphView.prototype.render = function (seriesModel, ecModel, api) { var _this = this; var coordSys = seriesModel.coordinateSystem; this._model = seriesModel; var symbolDraw = this._symbolDraw; var lineDraw = this._lineDraw; var group = this.group; if (isViewCoordSys(coordSys)) { var groupNewProp = { x: coordSys.x, y: coordSys.y, scaleX: coordSys.scaleX, scaleY: coordSys.scaleY }; if (this._firstRender) { group.attr(groupNewProp); } else { _util_graphic_js__WEBPACK_IMPORTED_MODULE_6__["updateProps"](group, groupNewProp, seriesModel); } } // Fix edge contact point with node Object(_adjustEdge_js__WEBPACK_IMPORTED_MODULE_7__["default"])(seriesModel.getGraph(), Object(_graphHelper_js__WEBPACK_IMPORTED_MODULE_8__["getNodeGlobalScale"])(seriesModel)); var data = seriesModel.getData(); symbolDraw.updateData(data); var edgeData = seriesModel.getEdgeData(); // TODO: TYPE lineDraw.updateData(edgeData); this._updateNodeAndLinkScale(); this._updateController(seriesModel, ecModel, api); clearTimeout(this._layoutTimeout); var forceLayout = seriesModel.forceLayout; var layoutAnimation = seriesModel.get(['force', 'layoutAnimation']); if (forceLayout) { this._startForceLayoutIteration(forceLayout, layoutAnimation); } var layout = seriesModel.get('layout'); data.graph.eachNode(function (node) { var idx = node.dataIndex; var el = node.getGraphicEl(); var itemModel = node.getModel(); if (!el) { return; } // Update draggable el.off('drag').off('dragend'); var draggable = itemModel.get('draggable'); if (draggable) { el.on('drag', function (e) { switch (layout) { case 'force': forceLayout.warmUp(); !_this._layouting && _this._startForceLayoutIteration(forceLayout, layoutAnimation); forceLayout.setFixed(idx); // Write position back to layout data.setItemLayout(idx, [el.x, el.y]); break; case 'circular': data.setItemLayout(idx, [el.x, el.y]); // mark node fixed node.setLayout({ fixed: true }, true); // recalculate circular layout Object(_circularLayoutHelper_js__WEBPACK_IMPORTED_MODULE_12__["circularLayout"])(seriesModel, 'symbolSize', node, [e.offsetX, e.offsetY]); _this.updateLayout(seriesModel); break; case 'none': default: data.setItemLayout(idx, [el.x, el.y]); // update edge Object(_simpleLayoutHelper_js__WEBPACK_IMPORTED_MODULE_11__["simpleLayoutEdge"])(seriesModel.getGraph(), seriesModel); _this.updateLayout(seriesModel); break; } }).on('dragend', function () { if (forceLayout) { forceLayout.setUnfixed(idx); } }); } el.setDraggable(draggable, !!itemModel.get('cursor')); var focus = itemModel.get(['emphasis', 'focus']); if (focus === 'adjacency') { Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_10__["getECData"])(el).focus = node.getAdjacentDataIndices(); } }); data.graph.eachEdge(function (edge) { var el = edge.getGraphicEl(); var focus = edge.getModel().get(['emphasis', 'focus']); if (!el) { return; } if (focus === 'adjacency') { Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_10__["getECData"])(el).focus = { edge: [edge.dataIndex], node: [edge.node1.dataIndex, edge.node2.dataIndex] }; } }); var circularRotateLabel = seriesModel.get('layout') === 'circular' && seriesModel.get(['circular', 'rotateLabel']); var cx = data.getLayout('cx'); var cy = data.getLayout('cy'); data.graph.eachNode(function (node) { Object(_circularLayoutHelper_js__WEBPACK_IMPORTED_MODULE_12__["rotateNodeLabel"])(node, circularRotateLabel, cx, cy); }); this._firstRender = false; }; GraphView.prototype.dispose = function () { this.remove(); this._controller && this._controller.dispose(); this._controllerHost = null; }; GraphView.prototype._startForceLayoutIteration = function (forceLayout, layoutAnimation) { var self = this; (function step() { forceLayout.step(function (stopped) { self.updateLayout(self._model); (self._layouting = !stopped) && (layoutAnimation ? self._layoutTimeout = setTimeout(step, 16) : step()); }); })(); }; GraphView.prototype._updateController = function (seriesModel, ecModel, api) { var _this = this; var controller = this._controller; var controllerHost = this._controllerHost; var group = this.group; controller.setPointerChecker(function (e, x, y) { var rect = group.getBoundingRect(); rect.applyTransform(group.transform); return rect.contain(x, y) && !Object(_component_helper_cursorHelper_js__WEBPACK_IMPORTED_MODULE_5__["onIrrelevantElement"])(e, api, seriesModel); }); if (!isViewCoordSys(seriesModel.coordinateSystem)) { controller.disable(); return; } controller.enable(seriesModel.get('roam')); controllerHost.zoomLimit = seriesModel.get('scaleLimit'); controllerHost.zoom = seriesModel.coordinateSystem.getZoom(); controller.off('pan').off('zoom').on('pan', function (e) { _component_helper_roamHelper_js__WEBPACK_IMPORTED_MODULE_4__["updateViewOnPan"](controllerHost, e.dx, e.dy); api.dispatchAction({ seriesId: seriesModel.id, type: 'graphRoam', dx: e.dx, dy: e.dy }); }).on('zoom', function (e) { _component_helper_roamHelper_js__WEBPACK_IMPORTED_MODULE_4__["updateViewOnZoom"](controllerHost, e.scale, e.originX, e.originY); api.dispatchAction({ seriesId: seriesModel.id, type: 'graphRoam', zoom: e.scale, originX: e.originX, originY: e.originY }); _this._updateNodeAndLinkScale(); Object(_adjustEdge_js__WEBPACK_IMPORTED_MODULE_7__["default"])(seriesModel.getGraph(), Object(_graphHelper_js__WEBPACK_IMPORTED_MODULE_8__["getNodeGlobalScale"])(seriesModel)); _this._lineDraw.updateLayout(); // Only update label layout on zoom api.updateLabelLayout(); }); }; GraphView.prototype._updateNodeAndLinkScale = function () { var seriesModel = this._model; var data = seriesModel.getData(); var nodeScale = Object(_graphHelper_js__WEBPACK_IMPORTED_MODULE_8__["getNodeGlobalScale"])(seriesModel); data.eachItemGraphicEl(function (el, idx) { el && el.setSymbolScale(nodeScale); }); }; GraphView.prototype.updateLayout = function (seriesModel) { Object(_adjustEdge_js__WEBPACK_IMPORTED_MODULE_7__["default"])(seriesModel.getGraph(), Object(_graphHelper_js__WEBPACK_IMPORTED_MODULE_8__["getNodeGlobalScale"])(seriesModel)); this._symbolDraw.updateLayout(); this._lineDraw.updateLayout(); }; GraphView.prototype.remove = function () { clearTimeout(this._layoutTimeout); this._layouting = false; this._layoutTimeout = null; this._symbolDraw && this._symbolDraw.remove(); this._lineDraw && this._lineDraw.remove(); }; GraphView.type = 'graph'; return GraphView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_9__["default"]); /* harmony default export */ __webpack_exports__["default"] = (GraphView); /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/adjustEdge.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/adjustEdge.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return adjustEdge; }); /* harmony import */ var zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/curve.js */ "./node_modules/zrender/lib/core/curve.js"); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* harmony import */ var _graphHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./graphHelper.js */ "./node_modules/echarts/lib/chart/graph/graphHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var v1 = []; var v2 = []; var v3 = []; var quadraticAt = zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_0__["quadraticAt"]; var v2DistSquare = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["distSquare"]; var mathAbs = Math.abs; function intersectCurveCircle(curvePoints, center, radius) { var p0 = curvePoints[0]; var p1 = curvePoints[1]; var p2 = curvePoints[2]; var d = Infinity; var t; var radiusSquare = radius * radius; var interval = 0.1; for (var _t = 0.1; _t <= 0.9; _t += 0.1) { v1[0] = quadraticAt(p0[0], p1[0], p2[0], _t); v1[1] = quadraticAt(p0[1], p1[1], p2[1], _t); var diff = mathAbs(v2DistSquare(v1, center) - radiusSquare); if (diff < d) { d = diff; t = _t; } } // Assume the segment is monotone,Find root through Bisection method // At most 32 iteration for (var i = 0; i < 32; i++) { // let prev = t - interval; var next = t + interval; // v1[0] = quadraticAt(p0[0], p1[0], p2[0], prev); // v1[1] = quadraticAt(p0[1], p1[1], p2[1], prev); v2[0] = quadraticAt(p0[0], p1[0], p2[0], t); v2[1] = quadraticAt(p0[1], p1[1], p2[1], t); v3[0] = quadraticAt(p0[0], p1[0], p2[0], next); v3[1] = quadraticAt(p0[1], p1[1], p2[1], next); var diff = v2DistSquare(v2, center) - radiusSquare; if (mathAbs(diff) < 1e-2) { break; } // let prevDiff = v2DistSquare(v1, center) - radiusSquare; var nextDiff = v2DistSquare(v3, center) - radiusSquare; interval /= 2; if (diff < 0) { if (nextDiff >= 0) { t = t + interval; } else { t = t - interval; } } else { if (nextDiff >= 0) { t = t - interval; } else { t = t + interval; } } } return t; } // Adjust edge to avoid function adjustEdge(graph, scale) { var tmp0 = []; var quadraticSubdivide = zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_0__["quadraticSubdivide"]; var pts = [[], [], []]; var pts2 = [[], []]; var v = []; scale /= 2; graph.eachEdge(function (edge, idx) { var linePoints = edge.getLayout(); var fromSymbol = edge.getVisual('fromSymbol'); var toSymbol = edge.getVisual('toSymbol'); if (!linePoints.__original) { linePoints.__original = [zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["clone"](linePoints[0]), zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["clone"](linePoints[1])]; if (linePoints[2]) { linePoints.__original.push(zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["clone"](linePoints[2])); } } var originalPoints = linePoints.__original; // Quadratic curve if (linePoints[2] != null) { zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["copy"](pts[0], originalPoints[0]); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["copy"](pts[1], originalPoints[2]); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["copy"](pts[2], originalPoints[1]); if (fromSymbol && fromSymbol !== 'none') { var symbolSize = Object(_graphHelper_js__WEBPACK_IMPORTED_MODULE_2__["getSymbolSize"])(edge.node1); var t = intersectCurveCircle(pts, originalPoints[0], symbolSize * scale); // Subdivide and get the second quadraticSubdivide(pts[0][0], pts[1][0], pts[2][0], t, tmp0); pts[0][0] = tmp0[3]; pts[1][0] = tmp0[4]; quadraticSubdivide(pts[0][1], pts[1][1], pts[2][1], t, tmp0); pts[0][1] = tmp0[3]; pts[1][1] = tmp0[4]; } if (toSymbol && toSymbol !== 'none') { var symbolSize = Object(_graphHelper_js__WEBPACK_IMPORTED_MODULE_2__["getSymbolSize"])(edge.node2); var t = intersectCurveCircle(pts, originalPoints[1], symbolSize * scale); // Subdivide and get the first quadraticSubdivide(pts[0][0], pts[1][0], pts[2][0], t, tmp0); pts[1][0] = tmp0[1]; pts[2][0] = tmp0[2]; quadraticSubdivide(pts[0][1], pts[1][1], pts[2][1], t, tmp0); pts[1][1] = tmp0[1]; pts[2][1] = tmp0[2]; } // Copy back to layout zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["copy"](linePoints[0], pts[0]); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["copy"](linePoints[1], pts[2]); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["copy"](linePoints[2], pts[1]); } // Line else { zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["copy"](pts2[0], originalPoints[0]); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["copy"](pts2[1], originalPoints[1]); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["sub"](v, pts2[1], pts2[0]); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["normalize"](v, v); if (fromSymbol && fromSymbol !== 'none') { var symbolSize = Object(_graphHelper_js__WEBPACK_IMPORTED_MODULE_2__["getSymbolSize"])(edge.node1); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["scaleAndAdd"](pts2[0], pts2[0], v, symbolSize * scale); } if (toSymbol && toSymbol !== 'none') { var symbolSize = Object(_graphHelper_js__WEBPACK_IMPORTED_MODULE_2__["getSymbolSize"])(edge.node2); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["scaleAndAdd"](pts2[1], pts2[1], v, -symbolSize * scale); } zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["copy"](linePoints[0], pts2[0]); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["copy"](linePoints[1], pts2[1]); } }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/categoryFilter.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/categoryFilter.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return categoryFilter; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function categoryFilter(ecModel) { var legendModels = ecModel.findComponents({ mainType: 'legend' }); if (!legendModels || !legendModels.length) { return; } ecModel.eachSeriesByType('graph', function (graphSeries) { var categoriesData = graphSeries.getCategoriesData(); var graph = graphSeries.getGraph(); var data = graph.data; var categoryNames = categoriesData.mapArray(categoriesData.getName); data.filterSelf(function (idx) { var model = data.getItemModel(idx); var category = model.getShallow('category'); if (category != null) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isNumber"])(category)) { category = categoryNames[category]; } // If in any legend component the status is not selected. for (var i = 0; i < legendModels.length; i++) { if (!legendModels[i].isSelected(category)) { return false; } } } return true; }); }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/categoryVisual.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/categoryVisual.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return categoryVisual; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function categoryVisual(ecModel) { var paletteScope = {}; ecModel.eachSeriesByType('graph', function (seriesModel) { var categoriesData = seriesModel.getCategoriesData(); var data = seriesModel.getData(); var categoryNameIdxMap = {}; categoriesData.each(function (idx) { var name = categoriesData.getName(idx); // Add prefix to avoid conflict with Object.prototype. categoryNameIdxMap['ec-' + name] = idx; var itemModel = categoriesData.getItemModel(idx); var style = itemModel.getModel('itemStyle').getItemStyle(); if (!style.fill) { // Get color from palette. style.fill = seriesModel.getColorFromPalette(name, paletteScope); } categoriesData.setItemVisual(idx, 'style', style); var symbolVisualList = ['symbol', 'symbolSize', 'symbolKeepAspect']; for (var i = 0; i < symbolVisualList.length; i++) { var symbolVisual = itemModel.getShallow(symbolVisualList[i], true); if (symbolVisual != null) { categoriesData.setItemVisual(idx, symbolVisualList[i], symbolVisual); } } }); // Assign category color to visual if (categoriesData.count()) { data.each(function (idx) { var model = data.getItemModel(idx); var categoryIdx = model.getShallow('category'); if (categoryIdx != null) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(categoryIdx)) { categoryIdx = categoryNameIdxMap['ec-' + categoryIdx]; } var categoryStyle = categoriesData.getItemVisual(categoryIdx, 'style'); var style = data.ensureUniqueItemVisual(idx, 'style'); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(style, categoryStyle); var visualList = ['symbol', 'symbolSize', 'symbolKeepAspect']; for (var i = 0; i < visualList.length; i++) { data.setItemVisual(idx, visualList[i], categoriesData.getItemVisual(categoryIdx, visualList[i])); } } }); } }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/circularLayout.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/circularLayout.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return graphCircularLayout; }); /* harmony import */ var _circularLayoutHelper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./circularLayoutHelper.js */ "./node_modules/echarts/lib/chart/graph/circularLayoutHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function graphCircularLayout(ecModel) { ecModel.eachSeriesByType('graph', function (seriesModel) { if (seriesModel.get('layout') === 'circular') { Object(_circularLayoutHelper_js__WEBPACK_IMPORTED_MODULE_0__["circularLayout"])(seriesModel, 'symbolSize'); } }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/circularLayoutHelper.js": /*!**********************************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/circularLayoutHelper.js ***! \**********************************************************************/ /*! exports provided: circularLayout, rotateNodeLabel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circularLayout", function() { return circularLayout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rotateNodeLabel", function() { return rotateNodeLabel; }); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* harmony import */ var _graphHelper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./graphHelper.js */ "./node_modules/echarts/lib/chart/graph/graphHelper.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _helper_multipleGraphEdgeHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helper/multipleGraphEdgeHelper.js */ "./node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PI = Math.PI; var _symbolRadiansHalf = []; /** * `basedOn` can be: * 'value': * This layout is not accurate and have same bad case. For example, * if the min value is very smaller than the max value, the nodes * with the min value probably overlap even though there is enough * space to layout them. So we only use this approach in the as the * init layout of the force layout. * FIXME * Probably we do not need this method any more but use * `basedOn: 'symbolSize'` in force layout if * delay its init operations to GraphView. * 'symbolSize': * This approach work only if all of the symbol size calculated. * That is, the progressive rendering is not applied to graph. * FIXME * If progressive rendering is applied to graph some day, * probably we have to use `basedOn: 'value'`. */ function circularLayout(seriesModel, basedOn, draggingNode, pointer) { var coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.type !== 'view') { return; } var rect = coordSys.getBoundingRect(); var nodeData = seriesModel.getData(); var graph = nodeData.graph; var cx = rect.width / 2 + rect.x; var cy = rect.height / 2 + rect.y; var r = Math.min(rect.width, rect.height) / 2; var count = nodeData.count(); nodeData.setLayout({ cx: cx, cy: cy }); if (!count) { return; } if (draggingNode) { var _a = coordSys.pointToData(pointer), tempX = _a[0], tempY = _a[1]; var v = [tempX - cx, tempY - cy]; zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["normalize"](v, v); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["scale"](v, v, r); draggingNode.setLayout([cx + v[0], cy + v[1]], true); var circularRotateLabel = seriesModel.get(['circular', 'rotateLabel']); rotateNodeLabel(draggingNode, circularRotateLabel, cx, cy); } _layoutNodesBasedOn[basedOn](seriesModel, graph, nodeData, r, cx, cy, count); graph.eachEdge(function (edge, index) { var curveness = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["retrieve3"](edge.getModel().get(['lineStyle', 'curveness']), Object(_helper_multipleGraphEdgeHelper_js__WEBPACK_IMPORTED_MODULE_3__["getCurvenessForEdge"])(edge, seriesModel, index), 0); var p1 = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["clone"](edge.node1.getLayout()); var p2 = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["clone"](edge.node2.getLayout()); var cp1; var x12 = (p1[0] + p2[0]) / 2; var y12 = (p1[1] + p2[1]) / 2; if (+curveness) { curveness *= 3; cp1 = [cx * curveness + x12 * (1 - curveness), cy * curveness + y12 * (1 - curveness)]; } edge.setLayout([p1, p2, cp1]); }); } var _layoutNodesBasedOn = { value: function (seriesModel, graph, nodeData, r, cx, cy, count) { var angle = 0; var sum = nodeData.getSum('value'); var unitAngle = Math.PI * 2 / (sum || count); graph.eachNode(function (node) { var value = node.getValue('value'); var radianHalf = unitAngle * (sum ? value : 1) / 2; angle += radianHalf; node.setLayout([r * Math.cos(angle) + cx, r * Math.sin(angle) + cy]); angle += radianHalf; }); }, symbolSize: function (seriesModel, graph, nodeData, r, cx, cy, count) { var sumRadian = 0; _symbolRadiansHalf.length = count; var nodeScale = Object(_graphHelper_js__WEBPACK_IMPORTED_MODULE_1__["getNodeGlobalScale"])(seriesModel); graph.eachNode(function (node) { var symbolSize = Object(_graphHelper_js__WEBPACK_IMPORTED_MODULE_1__["getSymbolSize"])(node); // Normally this case will not happen, but we still add // some the defensive code (2px is an arbitrary value). isNaN(symbolSize) && (symbolSize = 2); symbolSize < 0 && (symbolSize = 0); symbolSize *= nodeScale; var symbolRadianHalf = Math.asin(symbolSize / 2 / r); // when `symbolSize / 2` is bigger than `r`. isNaN(symbolRadianHalf) && (symbolRadianHalf = PI / 2); _symbolRadiansHalf[node.dataIndex] = symbolRadianHalf; sumRadian += symbolRadianHalf * 2; }); var halfRemainRadian = (2 * PI - sumRadian) / count / 2; var angle = 0; graph.eachNode(function (node) { var radianHalf = halfRemainRadian + _symbolRadiansHalf[node.dataIndex]; angle += radianHalf; // init circular layout for // 1. layout undefined node // 2. not fixed node (!node.getLayout() || !node.getLayout().fixed) && node.setLayout([r * Math.cos(angle) + cx, r * Math.sin(angle) + cy]); angle += radianHalf; }); } }; function rotateNodeLabel(node, circularRotateLabel, cx, cy) { var el = node.getGraphicEl(); // need to check if el exists. '-' value may not create node element. if (!el) { return; } var nodeModel = node.getModel(); var labelRotate = nodeModel.get(['label', 'rotate']) || 0; var symbolPath = el.getSymbolPath(); if (circularRotateLabel) { var pos = node.getLayout(); var rad = Math.atan2(pos[1] - cy, pos[0] - cx); if (rad < 0) { rad = Math.PI * 2 + rad; } var isLeft = pos[0] < cx; if (isLeft) { rad = rad - Math.PI; } var textPosition = isLeft ? 'left' : 'right'; symbolPath.setTextConfig({ rotation: -rad, position: textPosition, origin: 'center' }); var emphasisState = symbolPath.ensureState('emphasis'); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["extend"](emphasisState.textConfig || (emphasisState.textConfig = {}), { position: textPosition }); } else { symbolPath.setTextConfig({ rotation: labelRotate *= Math.PI / 180 }); } } /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/createView.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/createView.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createViewCoordSys; }); /* harmony import */ var _coord_View_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../coord/View.js */ "./node_modules/echarts/lib/coord/View.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var zrender_lib_core_bbox_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/bbox.js */ "./node_modules/zrender/lib/core/bbox.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // FIXME Where to create the simple view coordinate system function getViewRect(seriesModel, api, aspect) { var option = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["extend"])(seriesModel.getBoxLayoutParams(), { aspect: aspect }); return Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_1__["getLayoutRect"])(option, { width: api.getWidth(), height: api.getHeight() }); } function createViewCoordSys(ecModel, api) { var viewList = []; ecModel.eachSeriesByType('graph', function (seriesModel) { var coordSysType = seriesModel.get('coordinateSystem'); if (!coordSysType || coordSysType === 'view') { var data_1 = seriesModel.getData(); var positions = data_1.mapArray(function (idx) { var itemModel = data_1.getItemModel(idx); return [+itemModel.get('x'), +itemModel.get('y')]; }); var min = []; var max = []; zrender_lib_core_bbox_js__WEBPACK_IMPORTED_MODULE_2__["fromPoints"](positions, min, max); // If width or height is 0 if (max[0] - min[0] === 0) { max[0] += 1; min[0] -= 1; } if (max[1] - min[1] === 0) { max[1] += 1; min[1] -= 1; } var aspect = (max[0] - min[0]) / (max[1] - min[1]); // FIXME If get view rect after data processed? var viewRect = getViewRect(seriesModel, api, aspect); // Position may be NaN, use view rect instead if (isNaN(aspect)) { min = [viewRect.x, viewRect.y]; max = [viewRect.x + viewRect.width, viewRect.y + viewRect.height]; } var bbWidth = max[0] - min[0]; var bbHeight = max[1] - min[1]; var viewWidth = viewRect.width; var viewHeight = viewRect.height; var viewCoordSys = seriesModel.coordinateSystem = new _coord_View_js__WEBPACK_IMPORTED_MODULE_0__["default"](); viewCoordSys.zoomLimit = seriesModel.get('scaleLimit'); viewCoordSys.setBoundingRect(min[0], min[1], bbWidth, bbHeight); viewCoordSys.setViewRect(viewRect.x, viewRect.y, viewWidth, viewHeight); // Update roam info viewCoordSys.setCenter(seriesModel.get('center'), api); viewCoordSys.setZoom(seriesModel.get('zoom')); viewList.push(viewCoordSys); } }); return viewList; } /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/edgeVisual.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/edgeVisual.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return graphEdgeVisual; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function normalize(a) { if (!(a instanceof Array)) { a = [a, a]; } return a; } function graphEdgeVisual(ecModel) { ecModel.eachSeriesByType('graph', function (seriesModel) { var graph = seriesModel.getGraph(); var edgeData = seriesModel.getEdgeData(); var symbolType = normalize(seriesModel.get('edgeSymbol')); var symbolSize = normalize(seriesModel.get('edgeSymbolSize')); // const colorQuery = ['lineStyle', 'color'] as const; // const opacityQuery = ['lineStyle', 'opacity'] as const; edgeData.setVisual('fromSymbol', symbolType && symbolType[0]); edgeData.setVisual('toSymbol', symbolType && symbolType[1]); edgeData.setVisual('fromSymbolSize', symbolSize && symbolSize[0]); edgeData.setVisual('toSymbolSize', symbolSize && symbolSize[1]); edgeData.setVisual('style', seriesModel.getModel('lineStyle').getLineStyle()); edgeData.each(function (idx) { var itemModel = edgeData.getItemModel(idx); var edge = graph.getEdgeByIndex(idx); var symbolType = normalize(itemModel.getShallow('symbol', true)); var symbolSize = normalize(itemModel.getShallow('symbolSize', true)); // Edge visual must after node visual var style = itemModel.getModel('lineStyle').getLineStyle(); var existsStyle = edgeData.ensureUniqueItemVisual(idx, 'style'); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(existsStyle, style); switch (existsStyle.stroke) { case 'source': { var nodeStyle = edge.node1.getVisual('style'); existsStyle.stroke = nodeStyle && nodeStyle.fill; break; } case 'target': { var nodeStyle = edge.node2.getVisual('style'); existsStyle.stroke = nodeStyle && nodeStyle.fill; break; } } symbolType[0] && edge.setVisual('fromSymbol', symbolType[0]); symbolType[1] && edge.setVisual('toSymbol', symbolType[1]); symbolSize[0] && edge.setVisual('fromSymbolSize', symbolSize[0]); symbolSize[1] && edge.setVisual('toSymbolSize', symbolSize[1]); }); }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/forceHelper.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/forceHelper.js ***! \*************************************************************/ /*! exports provided: forceLayout */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "forceLayout", function() { return forceLayout; }); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * A third-party license is embedded for some of the code in this file: * Some formulas were originally copied from "d3.js" with some * modifications made for this project. * (See more details in the comment of the method "step" below.) * The use of the source code of this file is also subject to the terms * and consitions of the license of "d3.js" (BSD-3Clause, see * ). */ var scaleAndAdd = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["scaleAndAdd"]; // function adjacentNode(n, e) { // return e.n1 === n ? e.n2 : e.n1; // } function forceLayout(inNodes, inEdges, opts) { var nodes = inNodes; var edges = inEdges; var rect = opts.rect; var width = rect.width; var height = rect.height; var center = [rect.x + width / 2, rect.y + height / 2]; // let scale = opts.scale || 1; var gravity = opts.gravity == null ? 0.1 : opts.gravity; // for (let i = 0; i < edges.length; i++) { // let e = edges[i]; // let n1 = e.n1; // let n2 = e.n2; // n1.edges = n1.edges || []; // n2.edges = n2.edges || []; // n1.edges.push(e); // n2.edges.push(e); // } // Init position for (var i = 0; i < nodes.length; i++) { var n = nodes[i]; if (!n.p) { n.p = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["create"](width * (Math.random() - 0.5) + center[0], height * (Math.random() - 0.5) + center[1]); } n.pp = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["clone"](n.p); n.edges = null; } // Formula in 'Graph Drawing by Force-directed Placement' // let k = scale * Math.sqrt(width * height / nodes.length); // let k2 = k * k; var initialFriction = opts.friction == null ? 0.6 : opts.friction; var friction = initialFriction; var beforeStepCallback; var afterStepCallback; return { warmUp: function () { friction = initialFriction * 0.8; }, setFixed: function (idx) { nodes[idx].fixed = true; }, setUnfixed: function (idx) { nodes[idx].fixed = false; }, /** * Before step hook */ beforeStep: function (cb) { beforeStepCallback = cb; }, /** * After step hook */ afterStep: function (cb) { afterStepCallback = cb; }, /** * Some formulas were originally copied from "d3.js" * https://github.com/d3/d3/blob/b516d77fb8566b576088e73410437494717ada26/src/layout/force.js * with some modifications made for this project. * See the license statement at the head of this file. */ step: function (cb) { beforeStepCallback && beforeStepCallback(nodes, edges); var v12 = []; var nLen = nodes.length; for (var i = 0; i < edges.length; i++) { var e = edges[i]; if (e.ignoreForceLayout) { continue; } var n1 = e.n1; var n2 = e.n2; zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["sub"](v12, n2.p, n1.p); var d = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["len"](v12) - e.d; var w = n2.w / (n1.w + n2.w); if (isNaN(w)) { w = 0; } zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["normalize"](v12, v12); !n1.fixed && scaleAndAdd(n1.p, n1.p, v12, w * d * friction); !n2.fixed && scaleAndAdd(n2.p, n2.p, v12, -(1 - w) * d * friction); } // Gravity for (var i = 0; i < nLen; i++) { var n = nodes[i]; if (!n.fixed) { zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["sub"](v12, center, n.p); // let d = vec2.len(v12); // vec2.scale(v12, v12, 1 / d); // let gravityFactor = gravity; scaleAndAdd(n.p, n.p, v12, gravity * friction); } } // Repulsive // PENDING for (var i = 0; i < nLen; i++) { var n1 = nodes[i]; for (var j = i + 1; j < nLen; j++) { var n2 = nodes[j]; zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["sub"](v12, n2.p, n1.p); var d = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["len"](v12); if (d === 0) { // Random repulse zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["set"](v12, Math.random() - 0.5, Math.random() - 0.5); d = 1; } var repFact = (n1.rep + n2.rep) / d / d; !n1.fixed && scaleAndAdd(n1.pp, n1.pp, v12, repFact); !n2.fixed && scaleAndAdd(n2.pp, n2.pp, v12, -repFact); } } var v = []; for (var i = 0; i < nLen; i++) { var n = nodes[i]; if (!n.fixed) { zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["sub"](v, n.p, n.pp); scaleAndAdd(n.p, n.p, v, friction); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["copy"](n.pp, n.p); } } friction = friction * 0.992; var finished = friction < 0.01; afterStepCallback && afterStepCallback(nodes, edges, finished); cb && cb(finished); } }; } /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/forceLayout.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/forceLayout.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return graphForceLayout; }); /* harmony import */ var _forceHelper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./forceHelper.js */ "./node_modules/echarts/lib/chart/graph/forceHelper.js"); /* harmony import */ var _simpleLayoutHelper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./simpleLayoutHelper.js */ "./node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js"); /* harmony import */ var _circularLayoutHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./circularLayoutHelper.js */ "./node_modules/echarts/lib/chart/graph/circularLayoutHelper.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _helper_multipleGraphEdgeHelper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helper/multipleGraphEdgeHelper.js */ "./node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function graphForceLayout(ecModel) { ecModel.eachSeriesByType('graph', function (graphSeries) { var coordSys = graphSeries.coordinateSystem; if (coordSys && coordSys.type !== 'view') { return; } if (graphSeries.get('layout') === 'force') { var preservedPoints_1 = graphSeries.preservedPoints || {}; var graph_1 = graphSeries.getGraph(); var nodeData_1 = graph_1.data; var edgeData = graph_1.edgeData; var forceModel = graphSeries.getModel('force'); var initLayout = forceModel.get('initLayout'); if (graphSeries.preservedPoints) { nodeData_1.each(function (idx) { var id = nodeData_1.getId(idx); nodeData_1.setItemLayout(idx, preservedPoints_1[id] || [NaN, NaN]); }); } else if (!initLayout || initLayout === 'none') { Object(_simpleLayoutHelper_js__WEBPACK_IMPORTED_MODULE_1__["simpleLayout"])(graphSeries); } else if (initLayout === 'circular') { Object(_circularLayoutHelper_js__WEBPACK_IMPORTED_MODULE_2__["circularLayout"])(graphSeries, 'value'); } var nodeDataExtent_1 = nodeData_1.getDataExtent('value'); var edgeDataExtent_1 = edgeData.getDataExtent('value'); // let edgeDataExtent = edgeData.getDataExtent('value'); var repulsion = forceModel.get('repulsion'); var edgeLength = forceModel.get('edgeLength'); var repulsionArr_1 = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["isArray"](repulsion) ? repulsion : [repulsion, repulsion]; var edgeLengthArr_1 = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["isArray"](edgeLength) ? edgeLength : [edgeLength, edgeLength]; // Larger value has smaller length edgeLengthArr_1 = [edgeLengthArr_1[1], edgeLengthArr_1[0]]; var nodes_1 = nodeData_1.mapArray('value', function (value, idx) { var point = nodeData_1.getItemLayout(idx); var rep = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_3__["linearMap"])(value, nodeDataExtent_1, repulsionArr_1); if (isNaN(rep)) { rep = (repulsionArr_1[0] + repulsionArr_1[1]) / 2; } return { w: rep, rep: rep, fixed: nodeData_1.getItemModel(idx).get('fixed'), p: !point || isNaN(point[0]) || isNaN(point[1]) ? null : point }; }); var edges = edgeData.mapArray('value', function (value, idx) { var edge = graph_1.getEdgeByIndex(idx); var d = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_3__["linearMap"])(value, edgeDataExtent_1, edgeLengthArr_1); if (isNaN(d)) { d = (edgeLengthArr_1[0] + edgeLengthArr_1[1]) / 2; } var edgeModel = edge.getModel(); var curveness = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["retrieve3"](edge.getModel().get(['lineStyle', 'curveness']), -Object(_helper_multipleGraphEdgeHelper_js__WEBPACK_IMPORTED_MODULE_6__["getCurvenessForEdge"])(edge, graphSeries, idx, true), 0); return { n1: nodes_1[edge.node1.dataIndex], n2: nodes_1[edge.node2.dataIndex], d: d, curveness: curveness, ignoreForceLayout: edgeModel.get('ignoreForceLayout') }; }); // let coordSys = graphSeries.coordinateSystem; var rect = coordSys.getBoundingRect(); var forceInstance = Object(_forceHelper_js__WEBPACK_IMPORTED_MODULE_0__["forceLayout"])(nodes_1, edges, { rect: rect, gravity: forceModel.get('gravity'), friction: forceModel.get('friction') }); forceInstance.beforeStep(function (nodes, edges) { for (var i = 0, l = nodes.length; i < l; i++) { if (nodes[i].fixed) { // Write back to layout instance zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_4__["copy"](nodes[i].p, graph_1.getNodeByIndex(i).getLayout()); } } }); forceInstance.afterStep(function (nodes, edges, stopped) { for (var i = 0, l = nodes.length; i < l; i++) { if (!nodes[i].fixed) { graph_1.getNodeByIndex(i).setLayout(nodes[i].p); } preservedPoints_1[nodeData_1.getId(i)] = nodes[i].p; } for (var i = 0, l = edges.length; i < l; i++) { var e = edges[i]; var edge = graph_1.getEdgeByIndex(i); var p1 = e.n1.p; var p2 = e.n2.p; var points = edge.getLayout(); points = points ? points.slice() : []; points[0] = points[0] || []; points[1] = points[1] || []; zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_4__["copy"](points[0], p1); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_4__["copy"](points[1], p2); if (+e.curveness) { points[2] = [(p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * e.curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * e.curveness]; } edge.setLayout(points); } }); graphSeries.forceLayout = forceInstance; graphSeries.preservedPoints = preservedPoints_1; // Step to get the layout forceInstance.step(); } else { // Remove prev injected forceLayout instance graphSeries.forceLayout = null; } }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/graphHelper.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/graphHelper.js ***! \*************************************************************/ /*! exports provided: getNodeGlobalScale, getSymbolSize */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNodeGlobalScale", function() { return getNodeGlobalScale; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSymbolSize", function() { return getSymbolSize; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getNodeGlobalScale(seriesModel) { var coordSys = seriesModel.coordinateSystem; if (coordSys.type !== 'view') { return 1; } var nodeScaleRatio = seriesModel.option.nodeScaleRatio; var groupZoom = coordSys.scaleX; // Scale node when zoom changes var roamZoom = coordSys.getZoom(); var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1; return nodeScale / groupZoom; } function getSymbolSize(node) { var symbolSize = node.getVisual('symbolSize'); if (symbolSize instanceof Array) { symbolSize = (symbolSize[0] + symbolSize[1]) / 2; } return +symbolSize; } /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/install.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/install.js ***! \*********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _categoryFilter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./categoryFilter.js */ "./node_modules/echarts/lib/chart/graph/categoryFilter.js"); /* harmony import */ var _categoryVisual_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./categoryVisual.js */ "./node_modules/echarts/lib/chart/graph/categoryVisual.js"); /* harmony import */ var _edgeVisual_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edgeVisual.js */ "./node_modules/echarts/lib/chart/graph/edgeVisual.js"); /* harmony import */ var _simpleLayout_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./simpleLayout.js */ "./node_modules/echarts/lib/chart/graph/simpleLayout.js"); /* harmony import */ var _circularLayout_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./circularLayout.js */ "./node_modules/echarts/lib/chart/graph/circularLayout.js"); /* harmony import */ var _forceLayout_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./forceLayout.js */ "./node_modules/echarts/lib/chart/graph/forceLayout.js"); /* harmony import */ var _createView_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./createView.js */ "./node_modules/echarts/lib/chart/graph/createView.js"); /* harmony import */ var _coord_View_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../coord/View.js */ "./node_modules/echarts/lib/coord/View.js"); /* harmony import */ var _GraphView_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./GraphView.js */ "./node_modules/echarts/lib/chart/graph/GraphView.js"); /* harmony import */ var _GraphSeries_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./GraphSeries.js */ "./node_modules/echarts/lib/chart/graph/GraphSeries.js"); /* harmony import */ var _action_roamHelper_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../action/roamHelper.js */ "./node_modules/echarts/lib/action/roamHelper.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var actionInfo = { type: 'graphRoam', event: 'graphRoam', update: 'none' }; function install(registers) { registers.registerChartView(_GraphView_js__WEBPACK_IMPORTED_MODULE_8__["default"]); registers.registerSeriesModel(_GraphSeries_js__WEBPACK_IMPORTED_MODULE_9__["default"]); registers.registerProcessor(_categoryFilter_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerVisual(_categoryVisual_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerVisual(_edgeVisual_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerLayout(_simpleLayout_js__WEBPACK_IMPORTED_MODULE_3__["default"]); registers.registerLayout(registers.PRIORITY.VISUAL.POST_CHART_LAYOUT, _circularLayout_js__WEBPACK_IMPORTED_MODULE_4__["default"]); registers.registerLayout(_forceLayout_js__WEBPACK_IMPORTED_MODULE_5__["default"]); registers.registerCoordinateSystem('graphView', { dimensions: _coord_View_js__WEBPACK_IMPORTED_MODULE_7__["default"].dimensions, create: _createView_js__WEBPACK_IMPORTED_MODULE_6__["default"] }); // Register legacy focus actions registers.registerAction({ type: 'focusNodeAdjacency', event: 'focusNodeAdjacency', update: 'series:focusNodeAdjacency' }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_11__["noop"]); registers.registerAction({ type: 'unfocusNodeAdjacency', event: 'unfocusNodeAdjacency', update: 'series:unfocusNodeAdjacency' }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_11__["noop"]); // Register roam action. registers.registerAction(actionInfo, function (payload, ecModel, api) { ecModel.eachComponent({ mainType: 'series', query: payload }, function (seriesModel) { var coordSys = seriesModel.coordinateSystem; var res = Object(_action_roamHelper_js__WEBPACK_IMPORTED_MODULE_10__["updateCenterAndZoom"])(coordSys, payload, undefined, api); seriesModel.setCenter && seriesModel.setCenter(res.center); seriesModel.setZoom && seriesModel.setZoom(res.zoom); }); }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/simpleLayout.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/simpleLayout.js ***! \**************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return graphSimpleLayout; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _simpleLayoutHelper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./simpleLayoutHelper.js */ "./node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function graphSimpleLayout(ecModel, api) { ecModel.eachSeriesByType('graph', function (seriesModel) { var layout = seriesModel.get('layout'); var coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.type !== 'view') { var data_1 = seriesModel.getData(); var dimensions_1 = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(coordSys.dimensions, function (coordDim) { dimensions_1 = dimensions_1.concat(data_1.mapDimensionsAll(coordDim)); }); for (var dataIndex = 0; dataIndex < data_1.count(); dataIndex++) { var value = []; var hasValue = false; for (var i = 0; i < dimensions_1.length; i++) { var val = data_1.get(dimensions_1[i], dataIndex); if (!isNaN(val)) { hasValue = true; } value.push(val); } if (hasValue) { data_1.setItemLayout(dataIndex, coordSys.dataToPoint(value)); } else { // Also {Array.}, not undefined to avoid if...else... statement data_1.setItemLayout(dataIndex, [NaN, NaN]); } } Object(_simpleLayoutHelper_js__WEBPACK_IMPORTED_MODULE_1__["simpleLayoutEdge"])(data_1.graph, seriesModel); } else if (!layout || layout === 'none') { Object(_simpleLayoutHelper_js__WEBPACK_IMPORTED_MODULE_1__["simpleLayout"])(seriesModel); } }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js ***! \********************************************************************/ /*! exports provided: simpleLayout, simpleLayoutEdge */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "simpleLayout", function() { return simpleLayout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "simpleLayoutEdge", function() { return simpleLayoutEdge; }); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _helper_multipleGraphEdgeHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/multipleGraphEdgeHelper.js */ "./node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function simpleLayout(seriesModel) { var coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.type !== 'view') { return; } var graph = seriesModel.getGraph(); graph.eachNode(function (node) { var model = node.getModel(); node.setLayout([+model.get('x'), +model.get('y')]); }); simpleLayoutEdge(graph, seriesModel); } function simpleLayoutEdge(graph, seriesModel) { graph.eachEdge(function (edge, index) { var curveness = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve3"](edge.getModel().get(['lineStyle', 'curveness']), -Object(_helper_multipleGraphEdgeHelper_js__WEBPACK_IMPORTED_MODULE_2__["getCurvenessForEdge"])(edge, seriesModel, index, true), 0); var p1 = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["clone"](edge.node1.getLayout()); var p2 = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_0__["clone"](edge.node2.getLayout()); var points = [p1, p2]; if (+curveness) { points.push([(p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * curveness]); } edge.setLayout(points); }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/heatmap/HeatmapLayer.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/heatmap/HeatmapLayer.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_platform_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/platform.js */ "./node_modules/zrender/lib/core/platform.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Uint8ClampedArray */ var GRADIENT_LEVELS = 256; var HeatmapLayer = /** @class */function () { function HeatmapLayer() { this.blurSize = 30; this.pointSize = 20; this.maxOpacity = 1; this.minOpacity = 0; this._gradientPixels = { inRange: null, outOfRange: null }; var canvas = zrender_lib_core_platform_js__WEBPACK_IMPORTED_MODULE_0__["platformApi"].createCanvas(); this.canvas = canvas; } /** * Renders Heatmap and returns the rendered canvas * @param data array of data, each has x, y, value * @param width canvas width * @param height canvas height */ HeatmapLayer.prototype.update = function (data, width, height, normalize, colorFunc, isInRange) { var brush = this._getBrush(); var gradientInRange = this._getGradient(colorFunc, 'inRange'); var gradientOutOfRange = this._getGradient(colorFunc, 'outOfRange'); var r = this.pointSize + this.blurSize; var canvas = this.canvas; var ctx = canvas.getContext('2d'); var len = data.length; canvas.width = width; canvas.height = height; for (var i = 0; i < len; ++i) { var p = data[i]; var x = p[0]; var y = p[1]; var value = p[2]; // calculate alpha using value var alpha = normalize(value); // draw with the circle brush with alpha ctx.globalAlpha = alpha; ctx.drawImage(brush, x - r, y - r); } if (!canvas.width || !canvas.height) { // Avoid "Uncaught DOMException: Failed to execute 'getImageData' on // 'CanvasRenderingContext2D': The source height is 0." return canvas; } // colorize the canvas using alpha value and set with gradient var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height); var pixels = imageData.data; var offset = 0; var pixelLen = pixels.length; var minOpacity = this.minOpacity; var maxOpacity = this.maxOpacity; var diffOpacity = maxOpacity - minOpacity; while (offset < pixelLen) { var alpha = pixels[offset + 3] / 256; var gradientOffset = Math.floor(alpha * (GRADIENT_LEVELS - 1)) * 4; // Simple optimize to ignore the empty data if (alpha > 0) { var gradient = isInRange(alpha) ? gradientInRange : gradientOutOfRange; // Any alpha > 0 will be mapped to [minOpacity, maxOpacity] alpha > 0 && (alpha = alpha * diffOpacity + minOpacity); pixels[offset++] = gradient[gradientOffset]; pixels[offset++] = gradient[gradientOffset + 1]; pixels[offset++] = gradient[gradientOffset + 2]; pixels[offset++] = gradient[gradientOffset + 3] * alpha * 256; } else { offset += 4; } } ctx.putImageData(imageData, 0, 0); return canvas; }; /** * get canvas of a black circle brush used for canvas to draw later */ HeatmapLayer.prototype._getBrush = function () { var brushCanvas = this._brushCanvas || (this._brushCanvas = zrender_lib_core_platform_js__WEBPACK_IMPORTED_MODULE_0__["platformApi"].createCanvas()); // set brush size var r = this.pointSize + this.blurSize; var d = r * 2; brushCanvas.width = d; brushCanvas.height = d; var ctx = brushCanvas.getContext('2d'); ctx.clearRect(0, 0, d, d); // in order to render shadow without the distinct circle, // draw the distinct circle in an invisible place, // and use shadowOffset to draw shadow in the center of the canvas ctx.shadowOffsetX = d; ctx.shadowBlur = this.blurSize; // draw the shadow in black, and use alpha and shadow blur to generate // color in color map ctx.shadowColor = '#000'; // draw circle in the left to the canvas ctx.beginPath(); ctx.arc(-r, r, this.pointSize, 0, Math.PI * 2, true); ctx.closePath(); ctx.fill(); return brushCanvas; }; /** * get gradient color map * @private */ HeatmapLayer.prototype._getGradient = function (colorFunc, state) { var gradientPixels = this._gradientPixels; var pixelsSingleState = gradientPixels[state] || (gradientPixels[state] = new Uint8ClampedArray(256 * 4)); var color = [0, 0, 0, 0]; var off = 0; for (var i = 0; i < 256; i++) { colorFunc[state](i / 255, true, color); pixelsSingleState[off++] = color[0]; pixelsSingleState[off++] = color[1]; pixelsSingleState[off++] = color[2]; pixelsSingleState[off++] = color[3]; } return pixelsSingleState; }; return HeatmapLayer; }(); /* harmony default export */ __webpack_exports__["default"] = (HeatmapLayer); /***/ }), /***/ "./node_modules/echarts/lib/chart/heatmap/HeatmapSeries.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/heatmap/HeatmapSeries.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/createSeriesData.js */ "./node_modules/echarts/lib/chart/helper/createSeriesData.js"); /* harmony import */ var _core_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/CoordinateSystem.js */ "./node_modules/echarts/lib/core/CoordinateSystem.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var HeatmapSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(HeatmapSeriesModel, _super); function HeatmapSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = HeatmapSeriesModel.type; return _this; } HeatmapSeriesModel.prototype.getInitialData = function (option, ecModel) { return Object(_helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_2__["default"])(null, this, { generateCoord: 'value' }); }; HeatmapSeriesModel.prototype.preventIncremental = function () { var coordSysCreator = _core_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_3__["default"].get(this.get('coordinateSystem')); if (coordSysCreator && coordSysCreator.dimensions) { return coordSysCreator.dimensions[0] === 'lng' && coordSysCreator.dimensions[1] === 'lat'; } }; HeatmapSeriesModel.type = 'series.heatmap'; HeatmapSeriesModel.dependencies = ['grid', 'geo', 'calendar']; HeatmapSeriesModel.defaultOption = { coordinateSystem: 'cartesian2d', // zlevel: 0, z: 2, // Cartesian coordinate system // xAxisIndex: 0, // yAxisIndex: 0, // Geo coordinate system geoIndex: 0, blurSize: 30, pointSize: 20, maxOpacity: 1, minOpacity: 0, select: { itemStyle: { borderColor: '#212121' } } }; return HeatmapSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (HeatmapSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/heatmap/HeatmapView.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/heatmap/HeatmapView.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _HeatmapLayer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./HeatmapLayer.js */ "./node_modules/echarts/lib/chart/heatmap/HeatmapLayer.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _coord_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../coord/CoordinateSystem.js */ "./node_modules/echarts/lib/coord/CoordinateSystem.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getIsInPiecewiseRange(dataExtent, pieceList, selected) { var dataSpan = dataExtent[1] - dataExtent[0]; pieceList = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["map"](pieceList, function (piece) { return { interval: [(piece.interval[0] - dataExtent[0]) / dataSpan, (piece.interval[1] - dataExtent[0]) / dataSpan] }; }); var len = pieceList.length; var lastIndex = 0; return function (val) { var i; // Try to find in the location of the last found for (i = lastIndex; i < len; i++) { var interval = pieceList[i].interval; if (interval[0] <= val && val <= interval[1]) { lastIndex = i; break; } } if (i === len) { // Not found, back interation for (i = lastIndex - 1; i >= 0; i--) { var interval = pieceList[i].interval; if (interval[0] <= val && val <= interval[1]) { lastIndex = i; break; } } } return i >= 0 && i < len && selected[i]; }; } function getIsInContinuousRange(dataExtent, range) { var dataSpan = dataExtent[1] - dataExtent[0]; range = [(range[0] - dataExtent[0]) / dataSpan, (range[1] - dataExtent[0]) / dataSpan]; return function (val) { return val >= range[0] && val <= range[1]; }; } function isGeoCoordSys(coordSys) { var dimensions = coordSys.dimensions; // Not use coordSys.type === 'geo' because coordSys maybe extended return dimensions[0] === 'lng' && dimensions[1] === 'lat'; } var HeatmapView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(HeatmapView, _super); function HeatmapView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = HeatmapView.type; return _this; } HeatmapView.prototype.render = function (seriesModel, ecModel, api) { var visualMapOfThisSeries; ecModel.eachComponent('visualMap', function (visualMap) { visualMap.eachTargetSeries(function (targetSeries) { if (targetSeries === seriesModel) { visualMapOfThisSeries = visualMap; } }); }); if (true) { if (!visualMapOfThisSeries) { throw new Error('Heatmap must use with visualMap'); } } // Clear previously rendered progressive elements. this._progressiveEls = null; this.group.removeAll(); var coordSys = seriesModel.coordinateSystem; if (coordSys.type === 'cartesian2d' || coordSys.type === 'calendar') { this._renderOnCartesianAndCalendar(seriesModel, api, 0, seriesModel.getData().count()); } else if (isGeoCoordSys(coordSys)) { this._renderOnGeo(coordSys, seriesModel, visualMapOfThisSeries, api); } }; HeatmapView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) { this.group.removeAll(); }; HeatmapView.prototype.incrementalRender = function (params, seriesModel, ecModel, api) { var coordSys = seriesModel.coordinateSystem; if (coordSys) { // geo does not support incremental rendering? if (isGeoCoordSys(coordSys)) { this.render(seriesModel, ecModel, api); } else { this._progressiveEls = []; this._renderOnCartesianAndCalendar(seriesModel, api, params.start, params.end, true); } } }; HeatmapView.prototype.eachRendered = function (cb) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["traverseElements"](this._progressiveEls || this.group, cb); }; HeatmapView.prototype._renderOnCartesianAndCalendar = function (seriesModel, api, start, end, incremental) { var coordSys = seriesModel.coordinateSystem; var isCartesian2d = Object(_coord_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_6__["isCoordinateSystemType"])(coordSys, 'cartesian2d'); var width; var height; var xAxisExtent; var yAxisExtent; if (isCartesian2d) { var xAxis = coordSys.getAxis('x'); var yAxis = coordSys.getAxis('y'); if (true) { if (!(xAxis.type === 'category' && yAxis.type === 'category')) { throw new Error('Heatmap on cartesian must have two category axes'); } if (!(xAxis.onBand && yAxis.onBand)) { throw new Error('Heatmap on cartesian must have two axes with boundaryGap true'); } } // add 0.5px to avoid the gaps width = xAxis.getBandWidth() + .5; height = yAxis.getBandWidth() + .5; xAxisExtent = xAxis.scale.getExtent(); yAxisExtent = yAxis.scale.getExtent(); } var group = this.group; var data = seriesModel.getData(); var emphasisStyle = seriesModel.getModel(['emphasis', 'itemStyle']).getItemStyle(); var blurStyle = seriesModel.getModel(['blur', 'itemStyle']).getItemStyle(); var selectStyle = seriesModel.getModel(['select', 'itemStyle']).getItemStyle(); var borderRadius = seriesModel.get(['itemStyle', 'borderRadius']); var labelStatesModels = Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["getLabelStatesModels"])(seriesModel); var emphasisModel = seriesModel.getModel('emphasis'); var focus = emphasisModel.get('focus'); var blurScope = emphasisModel.get('blurScope'); var emphasisDisabled = emphasisModel.get('disabled'); var dataDims = isCartesian2d ? [data.mapDimension('x'), data.mapDimension('y'), data.mapDimension('value')] : [data.mapDimension('time'), data.mapDimension('value')]; for (var idx = start; idx < end; idx++) { var rect = void 0; var style = data.getItemVisual(idx, 'style'); if (isCartesian2d) { var dataDimX = data.get(dataDims[0], idx); var dataDimY = data.get(dataDims[1], idx); // Ignore empty data and out of extent data if (isNaN(data.get(dataDims[2], idx)) || isNaN(dataDimX) || isNaN(dataDimY) || dataDimX < xAxisExtent[0] || dataDimX > xAxisExtent[1] || dataDimY < yAxisExtent[0] || dataDimY > yAxisExtent[1]) { continue; } var point = coordSys.dataToPoint([dataDimX, dataDimY]); rect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Rect"]({ shape: { x: point[0] - width / 2, y: point[1] - height / 2, width: width, height: height }, style: style }); } else { // Ignore empty data if (isNaN(data.get(dataDims[1], idx))) { continue; } rect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Rect"]({ z2: 1, shape: coordSys.dataToRect([data.get(dataDims[0], idx)]).contentShape, style: style }); } // Optimization for large dataset if (data.hasItemOption) { var itemModel = data.getItemModel(idx); var emphasisModel_1 = itemModel.getModel('emphasis'); emphasisStyle = emphasisModel_1.getModel('itemStyle').getItemStyle(); blurStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle(); selectStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle(); // Each item value struct in the data would be firstly // { // itemStyle: { borderRadius: [30, 30] }, // value: [2022, 02, 22] // } borderRadius = itemModel.get(['itemStyle', 'borderRadius']); focus = emphasisModel_1.get('focus'); blurScope = emphasisModel_1.get('blurScope'); emphasisDisabled = emphasisModel_1.get('disabled'); labelStatesModels = Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["getLabelStatesModels"])(itemModel); } rect.shape.r = borderRadius; var rawValue = seriesModel.getRawValue(idx); var defaultText = '-'; if (rawValue && rawValue[2] != null) { defaultText = rawValue[2] + ''; } Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["setLabelStyle"])(rect, labelStatesModels, { labelFetcher: seriesModel, labelDataIndex: idx, defaultOpacity: style.opacity, defaultText: defaultText }); rect.ensureState('emphasis').style = emphasisStyle; rect.ensureState('blur').style = blurStyle; rect.ensureState('select').style = selectStyle; Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["toggleHoverEmphasis"])(rect, focus, blurScope, emphasisDisabled); rect.incremental = incremental; // PENDING if (incremental) { // Rect must use hover layer if it's incremental. rect.states.emphasis.hoverLayer = true; } group.add(rect); data.setItemGraphicEl(idx, rect); if (this._progressiveEls) { this._progressiveEls.push(rect); } } }; HeatmapView.prototype._renderOnGeo = function (geo, seriesModel, visualMapModel, api) { var inRangeVisuals = visualMapModel.targetVisuals.inRange; var outOfRangeVisuals = visualMapModel.targetVisuals.outOfRange; // if (!visualMapping) { // throw new Error('Data range must have color visuals'); // } var data = seriesModel.getData(); var hmLayer = this._hmLayer || this._hmLayer || new _HeatmapLayer_js__WEBPACK_IMPORTED_MODULE_3__["default"](); hmLayer.blurSize = seriesModel.get('blurSize'); hmLayer.pointSize = seriesModel.get('pointSize'); hmLayer.minOpacity = seriesModel.get('minOpacity'); hmLayer.maxOpacity = seriesModel.get('maxOpacity'); var rect = geo.getViewRect().clone(); var roamTransform = geo.getRoamTransform(); rect.applyTransform(roamTransform); // Clamp on viewport var x = Math.max(rect.x, 0); var y = Math.max(rect.y, 0); var x2 = Math.min(rect.width + rect.x, api.getWidth()); var y2 = Math.min(rect.height + rect.y, api.getHeight()); var width = x2 - x; var height = y2 - y; var dims = [data.mapDimension('lng'), data.mapDimension('lat'), data.mapDimension('value')]; var points = data.mapArray(dims, function (lng, lat, value) { var pt = geo.dataToPoint([lng, lat]); pt[0] -= x; pt[1] -= y; pt.push(value); return pt; }); var dataExtent = visualMapModel.getExtent(); var isInRange = visualMapModel.type === 'visualMap.continuous' ? getIsInContinuousRange(dataExtent, visualMapModel.option.range) : getIsInPiecewiseRange(dataExtent, visualMapModel.getPieceList(), visualMapModel.option.selected); hmLayer.update(points, width, height, inRangeVisuals.color.getNormalizer(), { inRange: inRangeVisuals.color.getColorMapper(), outOfRange: outOfRangeVisuals.color.getColorMapper() }, isInRange); var img = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Image"]({ style: { width: width, height: height, x: x, y: y, image: hmLayer.canvas }, silent: true }); this.group.add(img); }; HeatmapView.type = 'heatmap'; return HeatmapView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_5__["default"]); /* harmony default export */ __webpack_exports__["default"] = (HeatmapView); /***/ }), /***/ "./node_modules/echarts/lib/chart/heatmap/install.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/heatmap/install.js ***! \***********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _HeatmapView_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HeatmapView.js */ "./node_modules/echarts/lib/chart/heatmap/HeatmapView.js"); /* harmony import */ var _HeatmapSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./HeatmapSeries.js */ "./node_modules/echarts/lib/chart/heatmap/HeatmapSeries.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerChartView(_HeatmapView_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerSeriesModel(_HeatmapSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/EffectLine.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/EffectLine.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _Line_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Line.js */ "./node_modules/echarts/lib/chart/helper/Line.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* harmony import */ var zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! zrender/lib/core/curve.js */ "./node_modules/zrender/lib/core/curve.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Provide effect for line */ var EffectLine = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(EffectLine, _super); function EffectLine(lineData, idx, seriesScope) { var _this = _super.call(this) || this; _this.add(_this.createLine(lineData, idx, seriesScope)); _this._updateEffectSymbol(lineData, idx); return _this; } EffectLine.prototype.createLine = function (lineData, idx, seriesScope) { return new _Line_js__WEBPACK_IMPORTED_MODULE_2__["default"](lineData, idx, seriesScope); }; EffectLine.prototype._updateEffectSymbol = function (lineData, idx) { var itemModel = lineData.getItemModel(idx); var effectModel = itemModel.getModel('effect'); var size = effectModel.get('symbolSize'); var symbolType = effectModel.get('symbol'); if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["isArray"](size)) { size = [size, size]; } var lineStyle = lineData.getItemVisual(idx, 'style'); var color = effectModel.get('color') || lineStyle && lineStyle.stroke; var symbol = this.childAt(1); if (this._symbolType !== symbolType) { // Remove previous this.remove(symbol); symbol = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_4__["createSymbol"])(symbolType, -0.5, -0.5, 1, 1, color); symbol.z2 = 100; symbol.culling = true; this.add(symbol); } // Symbol may be removed if loop is false if (!symbol) { return; } // Shadow color is same with color in default symbol.setStyle('shadowColor', color); symbol.setStyle(effectModel.getItemStyle(['color'])); symbol.scaleX = size[0]; symbol.scaleY = size[1]; symbol.setColor(color); this._symbolType = symbolType; this._symbolScale = size; this._updateEffectAnimation(lineData, effectModel, idx); }; EffectLine.prototype._updateEffectAnimation = function (lineData, effectModel, idx) { var symbol = this.childAt(1); if (!symbol) { return; } var points = lineData.getItemLayout(idx); var period = effectModel.get('period') * 1000; var loop = effectModel.get('loop'); var roundTrip = effectModel.get('roundTrip'); var constantSpeed = effectModel.get('constantSpeed'); var delayExpr = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["retrieve"](effectModel.get('delay'), function (idx) { return idx / lineData.count() * period / 3; }); // Ignore when updating symbol.ignore = true; this._updateAnimationPoints(symbol, points); if (constantSpeed > 0) { period = this._getLineLength(symbol) / constantSpeed * 1000; } if (period !== this._period || loop !== this._loop || roundTrip !== this._roundTrip) { symbol.stopAnimation(); var delayNum = void 0; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["isFunction"](delayExpr)) { delayNum = delayExpr(idx); } else { delayNum = delayExpr; } if (symbol.__t > 0) { delayNum = -period * symbol.__t; } this._animateSymbol(symbol, period, delayNum, loop, roundTrip); } this._period = period; this._loop = loop; this._roundTrip = roundTrip; }; EffectLine.prototype._animateSymbol = function (symbol, period, delayNum, loop, roundTrip) { if (period > 0) { symbol.__t = 0; var self_1 = this; var animator = symbol.animate('', loop).when(roundTrip ? period * 2 : period, { __t: roundTrip ? 2 : 1 }).delay(delayNum).during(function () { self_1._updateSymbolPosition(symbol); }); if (!loop) { animator.done(function () { self_1.remove(symbol); }); } animator.start(); } }; EffectLine.prototype._getLineLength = function (symbol) { // Not so accurate return zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_5__["dist"](symbol.__p1, symbol.__cp1) + zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_5__["dist"](symbol.__cp1, symbol.__p2); }; EffectLine.prototype._updateAnimationPoints = function (symbol, points) { symbol.__p1 = points[0]; symbol.__p2 = points[1]; symbol.__cp1 = points[2] || [(points[0][0] + points[1][0]) / 2, (points[0][1] + points[1][1]) / 2]; }; EffectLine.prototype.updateData = function (lineData, idx, seriesScope) { this.childAt(0).updateData(lineData, idx, seriesScope); this._updateEffectSymbol(lineData, idx); }; EffectLine.prototype._updateSymbolPosition = function (symbol) { var p1 = symbol.__p1; var p2 = symbol.__p2; var cp1 = symbol.__cp1; var t = symbol.__t < 1 ? symbol.__t : 2 - symbol.__t; var pos = [symbol.x, symbol.y]; var lastPos = pos.slice(); var quadraticAt = zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_6__["quadraticAt"]; var quadraticDerivativeAt = zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_6__["quadraticDerivativeAt"]; pos[0] = quadraticAt(p1[0], cp1[0], p2[0], t); pos[1] = quadraticAt(p1[1], cp1[1], p2[1], t); // Tangent var tx = symbol.__t < 1 ? quadraticDerivativeAt(p1[0], cp1[0], p2[0], t) : quadraticDerivativeAt(p2[0], cp1[0], p1[0], 1 - t); var ty = symbol.__t < 1 ? quadraticDerivativeAt(p1[1], cp1[1], p2[1], t) : quadraticDerivativeAt(p2[1], cp1[1], p1[1], 1 - t); symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2; // enable continuity trail for 'line', 'rect', 'roundRect' symbolType if (this._symbolType === 'line' || this._symbolType === 'rect' || this._symbolType === 'roundRect') { if (symbol.__lastT !== undefined && symbol.__lastT < symbol.__t) { symbol.scaleY = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_5__["dist"](lastPos, pos) * 1.05; // make sure the last segment render within endPoint if (t === 1) { pos[0] = lastPos[0] + (pos[0] - lastPos[0]) / 2; pos[1] = lastPos[1] + (pos[1] - lastPos[1]) / 2; } } else if (symbol.__lastT === 1) { // After first loop, symbol.__t does NOT start with 0, so connect p1 to pos directly. symbol.scaleY = 2 * zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_5__["dist"](p1, pos); } else { symbol.scaleY = this._symbolScale[1]; } } symbol.__lastT = symbol.__t; symbol.ignore = false; symbol.x = pos[0]; symbol.y = pos[1]; }; EffectLine.prototype.updateLayout = function (lineData, idx) { this.childAt(0).updateLayout(lineData, idx); var effectModel = lineData.getItemModel(idx).getModel('effect'); this._updateEffectAnimation(lineData, effectModel, idx); }; return EffectLine; }(_util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Group"]); /* harmony default export */ __webpack_exports__["default"] = (EffectLine); /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/EffectPolyline.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/EffectPolyline.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Polyline_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Polyline.js */ "./node_modules/echarts/lib/chart/helper/Polyline.js"); /* harmony import */ var _EffectLine_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EffectLine.js */ "./node_modules/echarts/lib/chart/helper/EffectLine.js"); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var EffectPolyline = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(EffectPolyline, _super); function EffectPolyline() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._lastFrame = 0; _this._lastFramePercent = 0; return _this; } // Override EffectPolyline.prototype.createLine = function (lineData, idx, seriesScope) { return new _Polyline_js__WEBPACK_IMPORTED_MODULE_1__["default"](lineData, idx, seriesScope); }; ; // Override EffectPolyline.prototype._updateAnimationPoints = function (symbol, points) { this._points = points; var accLenArr = [0]; var len = 0; for (var i = 1; i < points.length; i++) { var p1 = points[i - 1]; var p2 = points[i]; len += zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_3__["dist"](p1, p2); accLenArr.push(len); } if (len === 0) { this._length = 0; return; } for (var i = 0; i < accLenArr.length; i++) { accLenArr[i] /= len; } this._offsets = accLenArr; this._length = len; }; ; // Override EffectPolyline.prototype._getLineLength = function () { return this._length; }; ; // Override EffectPolyline.prototype._updateSymbolPosition = function (symbol) { var t = symbol.__t < 1 ? symbol.__t : 2 - symbol.__t; var points = this._points; var offsets = this._offsets; var len = points.length; if (!offsets) { // Has length 0 return; } var lastFrame = this._lastFrame; var frame; if (t < this._lastFramePercent) { // Start from the next frame // PENDING start from lastFrame ? var start = Math.min(lastFrame + 1, len - 1); for (frame = start; frame >= 0; frame--) { if (offsets[frame] <= t) { break; } } // PENDING really need to do this ? frame = Math.min(frame, len - 2); } else { for (frame = lastFrame; frame < len; frame++) { if (offsets[frame] > t) { break; } } frame = Math.min(frame - 1, len - 2); } var p = (t - offsets[frame]) / (offsets[frame + 1] - offsets[frame]); var p0 = points[frame]; var p1 = points[frame + 1]; symbol.x = p0[0] * (1 - p) + p * p1[0]; symbol.y = p0[1] * (1 - p) + p * p1[1]; var tx = symbol.__t < 1 ? p1[0] - p0[0] : p0[0] - p1[0]; var ty = symbol.__t < 1 ? p1[1] - p0[1] : p0[1] - p1[1]; symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2; this._lastFrame = frame; this._lastFramePercent = t; symbol.ignore = false; }; ; return EffectPolyline; }(_EffectLine_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /* harmony default export */ __webpack_exports__["default"] = (EffectPolyline); /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/EffectSymbol.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/EffectSymbol.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _Symbol_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Symbol.js */ "./node_modules/echarts/lib/chart/helper/Symbol.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function updateRipplePath(rippleGroup, effectCfg) { var color = effectCfg.rippleEffectColor || effectCfg.color; rippleGroup.eachChild(function (ripplePath) { ripplePath.attr({ z: effectCfg.z, zlevel: effectCfg.zlevel, style: { stroke: effectCfg.brushType === 'stroke' ? color : null, fill: effectCfg.brushType === 'fill' ? color : null } }); }); } var EffectSymbol = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(EffectSymbol, _super); function EffectSymbol(data, idx) { var _this = _super.call(this) || this; var symbol = new _Symbol_js__WEBPACK_IMPORTED_MODULE_4__["default"](data, idx); var rippleGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"](); _this.add(symbol); _this.add(rippleGroup); _this.updateData(data, idx); return _this; } EffectSymbol.prototype.stopEffectAnimation = function () { this.childAt(1).removeAll(); }; EffectSymbol.prototype.startEffectAnimation = function (effectCfg) { var symbolType = effectCfg.symbolType; var color = effectCfg.color; var rippleNumber = effectCfg.rippleNumber; var rippleGroup = this.childAt(1); for (var i = 0; i < rippleNumber; i++) { // If width/height are set too small (e.g., set to 1) on ios10 // and macOS Sierra, a circle stroke become a rect, no matter what // the scale is set. So we set width/height as 2. See #4136. var ripplePath = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_1__["createSymbol"])(symbolType, -1, -1, 2, 2, color); ripplePath.attr({ style: { strokeNoScale: true }, z2: 99, silent: true, scaleX: 0.5, scaleY: 0.5 }); var delay = -i / rippleNumber * effectCfg.period + effectCfg.effectOffset; ripplePath.animate('', true).when(effectCfg.period, { scaleX: effectCfg.rippleScale / 2, scaleY: effectCfg.rippleScale / 2 }).delay(delay).start(); ripplePath.animateStyle(true).when(effectCfg.period, { opacity: 0 }).delay(delay).start(); rippleGroup.add(ripplePath); } updateRipplePath(rippleGroup, effectCfg); }; /** * Update effect symbol */ EffectSymbol.prototype.updateEffectAnimation = function (effectCfg) { var oldEffectCfg = this._effectCfg; var rippleGroup = this.childAt(1); // Must reinitialize effect if following configuration changed var DIFFICULT_PROPS = ['symbolType', 'period', 'rippleScale', 'rippleNumber']; for (var i = 0; i < DIFFICULT_PROPS.length; i++) { var propName = DIFFICULT_PROPS[i]; if (oldEffectCfg[propName] !== effectCfg[propName]) { this.stopEffectAnimation(); this.startEffectAnimation(effectCfg); return; } } updateRipplePath(rippleGroup, effectCfg); }; /** * Highlight symbol */ EffectSymbol.prototype.highlight = function () { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["enterEmphasis"])(this); }; /** * Downplay symbol */ EffectSymbol.prototype.downplay = function () { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["leaveEmphasis"])(this); }; EffectSymbol.prototype.getSymbolType = function () { var symbol = this.childAt(0); return symbol && symbol.getSymbolType(); }; /** * Update symbol properties */ EffectSymbol.prototype.updateData = function (data, idx) { var _this = this; var seriesModel = data.hostModel; this.childAt(0).updateData(data, idx); var rippleGroup = this.childAt(1); var itemModel = data.getItemModel(idx); var symbolType = data.getItemVisual(idx, 'symbol'); var symbolSize = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_1__["normalizeSymbolSize"])(data.getItemVisual(idx, 'symbolSize')); var symbolStyle = data.getItemVisual(idx, 'style'); var color = symbolStyle && symbolStyle.fill; var emphasisModel = itemModel.getModel('emphasis'); rippleGroup.setScale(symbolSize); rippleGroup.traverse(function (ripplePath) { ripplePath.setStyle('fill', color); }); var symbolOffset = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_1__["normalizeSymbolOffset"])(data.getItemVisual(idx, 'symbolOffset'), symbolSize); if (symbolOffset) { rippleGroup.x = symbolOffset[0]; rippleGroup.y = symbolOffset[1]; } var symbolRotate = data.getItemVisual(idx, 'symbolRotate'); rippleGroup.rotation = (symbolRotate || 0) * Math.PI / 180 || 0; var effectCfg = {}; effectCfg.showEffectOn = seriesModel.get('showEffectOn'); effectCfg.rippleScale = itemModel.get(['rippleEffect', 'scale']); effectCfg.brushType = itemModel.get(['rippleEffect', 'brushType']); effectCfg.period = itemModel.get(['rippleEffect', 'period']) * 1000; effectCfg.effectOffset = idx / data.count(); effectCfg.z = seriesModel.getShallow('z') || 0; effectCfg.zlevel = seriesModel.getShallow('zlevel') || 0; effectCfg.symbolType = symbolType; effectCfg.color = color; effectCfg.rippleEffectColor = itemModel.get(['rippleEffect', 'color']); effectCfg.rippleNumber = itemModel.get(['rippleEffect', 'number']); if (effectCfg.showEffectOn === 'render') { this._effectCfg ? this.updateEffectAnimation(effectCfg) : this.startEffectAnimation(effectCfg); this._effectCfg = effectCfg; } else { // Not keep old effect config this._effectCfg = null; this.stopEffectAnimation(); this.onHoverStateChange = function (toState) { if (toState === 'emphasis') { if (effectCfg.showEffectOn !== 'render') { _this.startEffectAnimation(effectCfg); } } else if (toState === 'normal') { if (effectCfg.showEffectOn !== 'render') { _this.stopEffectAnimation(); } } }; } this._effectCfg = effectCfg; Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["toggleHoverEmphasis"])(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled')); }; ; EffectSymbol.prototype.fadeOut = function (cb) { cb && cb(); }; ; return EffectSymbol; }(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"]); /* harmony default export */ __webpack_exports__["default"] = (EffectSymbol); /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/LargeLineDraw.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/LargeLineDraw.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var zrender_lib_contain_line_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/contain/line.js */ "./node_modules/zrender/lib/contain/line.js"); /* harmony import */ var zrender_lib_contain_quadratic_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/contain/quadratic.js */ "./node_modules/zrender/lib/contain/quadratic.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO Batch by color var LargeLinesPathShape = /** @class */function () { function LargeLinesPathShape() { this.polyline = false; this.curveness = 0; this.segs = []; } return LargeLinesPathShape; }(); var LargeLinesPath = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LargeLinesPath, _super); function LargeLinesPath(opts) { var _this = _super.call(this, opts) || this; _this._off = 0; _this.hoverDataIdx = -1; return _this; } LargeLinesPath.prototype.reset = function () { this.notClear = false; this._off = 0; }; LargeLinesPath.prototype.getDefaultStyle = function () { return { stroke: '#000', fill: null }; }; LargeLinesPath.prototype.getDefaultShape = function () { return new LargeLinesPathShape(); }; LargeLinesPath.prototype.buildPath = function (ctx, shape) { var segs = shape.segs; var curveness = shape.curveness; var i; if (shape.polyline) { for (i = this._off; i < segs.length;) { var count = segs[i++]; if (count > 0) { ctx.moveTo(segs[i++], segs[i++]); for (var k = 1; k < count; k++) { ctx.lineTo(segs[i++], segs[i++]); } } } } else { for (i = this._off; i < segs.length;) { var x0 = segs[i++]; var y0 = segs[i++]; var x1 = segs[i++]; var y1 = segs[i++]; ctx.moveTo(x0, y0); if (curveness > 0) { var x2 = (x0 + x1) / 2 - (y0 - y1) * curveness; var y2 = (y0 + y1) / 2 - (x1 - x0) * curveness; ctx.quadraticCurveTo(x2, y2, x1, y1); } else { ctx.lineTo(x1, y1); } } } if (this.incremental) { this._off = i; this.notClear = true; } }; LargeLinesPath.prototype.findDataIndex = function (x, y) { var shape = this.shape; var segs = shape.segs; var curveness = shape.curveness; var lineWidth = this.style.lineWidth; if (shape.polyline) { var dataIndex = 0; for (var i = 0; i < segs.length;) { var count = segs[i++]; if (count > 0) { var x0 = segs[i++]; var y0 = segs[i++]; for (var k = 1; k < count; k++) { var x1 = segs[i++]; var y1 = segs[i++]; if (zrender_lib_contain_line_js__WEBPACK_IMPORTED_MODULE_2__["containStroke"](x0, y0, x1, y1, lineWidth, x, y)) { return dataIndex; } } } dataIndex++; } } else { var dataIndex = 0; for (var i = 0; i < segs.length;) { var x0 = segs[i++]; var y0 = segs[i++]; var x1 = segs[i++]; var y1 = segs[i++]; if (curveness > 0) { var x2 = (x0 + x1) / 2 - (y0 - y1) * curveness; var y2 = (y0 + y1) / 2 - (x1 - x0) * curveness; if (zrender_lib_contain_quadratic_js__WEBPACK_IMPORTED_MODULE_3__["containStroke"](x0, y0, x2, y2, x1, y1, lineWidth, x, y)) { return dataIndex; } } else { if (zrender_lib_contain_line_js__WEBPACK_IMPORTED_MODULE_2__["containStroke"](x0, y0, x1, y1, lineWidth, x, y)) { return dataIndex; } } dataIndex++; } } return -1; }; LargeLinesPath.prototype.contain = function (x, y) { var localPos = this.transformCoordToLocal(x, y); var rect = this.getBoundingRect(); x = localPos[0]; y = localPos[1]; if (rect.contain(x, y)) { // Cache found data index. var dataIdx = this.hoverDataIdx = this.findDataIndex(x, y); return dataIdx >= 0; } this.hoverDataIdx = -1; return false; }; LargeLinesPath.prototype.getBoundingRect = function () { // Ignore stroke for large symbol draw. var rect = this._rect; if (!rect) { var shape = this.shape; var points = shape.segs; var minX = Infinity; var minY = Infinity; var maxX = -Infinity; var maxY = -Infinity; for (var i = 0; i < points.length;) { var x = points[i++]; var y = points[i++]; minX = Math.min(x, minX); maxX = Math.max(x, maxX); minY = Math.min(y, minY); maxY = Math.max(y, maxY); } rect = this._rect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["BoundingRect"](minX, minY, maxX, maxY); } return rect; }; return LargeLinesPath; }(_util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Path"]); var LargeLineDraw = /** @class */function () { function LargeLineDraw() { this.group = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Group"](); } /** * Update symbols draw by new data */ LargeLineDraw.prototype.updateData = function (data) { this._clear(); var lineEl = this._create(); lineEl.setShape({ segs: data.getLayout('linesPoints') }); this._setCommon(lineEl, data); }; ; /** * @override */ LargeLineDraw.prototype.incrementalPrepareUpdate = function (data) { this.group.removeAll(); this._clear(); }; ; /** * @override */ LargeLineDraw.prototype.incrementalUpdate = function (taskParams, data) { var lastAdded = this._newAdded[0]; var linePoints = data.getLayout('linesPoints'); var oldSegs = lastAdded && lastAdded.shape.segs; // Merging the exists. Each element has 1e4 points. // Consider the performance balance between too much elements and too much points in one shape(may affect hover optimization) if (oldSegs && oldSegs.length < 2e4) { var oldLen = oldSegs.length; var newSegs = new Float32Array(oldLen + linePoints.length); // Concat two array newSegs.set(oldSegs); newSegs.set(linePoints, oldLen); lastAdded.setShape({ segs: newSegs }); } else { // Clear this._newAdded = []; var lineEl = this._create(); lineEl.incremental = true; lineEl.setShape({ segs: linePoints }); this._setCommon(lineEl, data); lineEl.__startIndex = taskParams.start; } }; /** * @override */ LargeLineDraw.prototype.remove = function () { this._clear(); }; LargeLineDraw.prototype.eachRendered = function (cb) { this._newAdded[0] && cb(this._newAdded[0]); }; LargeLineDraw.prototype._create = function () { var lineEl = new LargeLinesPath({ cursor: 'default', ignoreCoarsePointer: true }); this._newAdded.push(lineEl); this.group.add(lineEl); return lineEl; }; LargeLineDraw.prototype._setCommon = function (lineEl, data, isIncremental) { var hostModel = data.hostModel; lineEl.setShape({ polyline: hostModel.get('polyline'), curveness: hostModel.get(['lineStyle', 'curveness']) }); lineEl.useStyle(hostModel.getModel('lineStyle').getLineStyle()); lineEl.style.strokeNoScale = true; var style = data.getVisual('style'); if (style && style.stroke) { lineEl.setStyle('stroke', style.stroke); } lineEl.setStyle('fill', null); var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_4__["getECData"])(lineEl); // Enable tooltip // PENDING May have performance issue when path is extremely large ecData.seriesIndex = hostModel.seriesIndex; lineEl.on('mousemove', function (e) { ecData.dataIndex = null; var dataIndex = lineEl.hoverDataIdx; if (dataIndex > 0) { // Provide dataIndex for tooltip ecData.dataIndex = dataIndex + lineEl.__startIndex; } }); }; ; LargeLineDraw.prototype._clear = function () { this._newAdded = []; this.group.removeAll(); }; ; return LargeLineDraw; }(); /* harmony default export */ __webpack_exports__["default"] = (LargeLineDraw); /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Float32Array */ // TODO Batch by color var BOOST_SIZE_THRESHOLD = 4; var LargeSymbolPathShape = /** @class */function () { function LargeSymbolPathShape() {} return LargeSymbolPathShape; }(); var LargeSymbolPath = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LargeSymbolPath, _super); function LargeSymbolPath(opts) { var _this = _super.call(this, opts) || this; _this._off = 0; _this.hoverDataIdx = -1; return _this; } LargeSymbolPath.prototype.getDefaultShape = function () { return new LargeSymbolPathShape(); }; LargeSymbolPath.prototype.reset = function () { this.notClear = false; this._off = 0; }; LargeSymbolPath.prototype.buildPath = function (path, shape) { var points = shape.points; var size = shape.size; var symbolProxy = this.symbolProxy; var symbolProxyShape = symbolProxy.shape; var ctx = path.getContext ? path.getContext() : path; var canBoost = ctx && size[0] < BOOST_SIZE_THRESHOLD; var softClipShape = this.softClipShape; var i; // Do draw in afterBrush. if (canBoost) { this._ctx = ctx; return; } this._ctx = null; for (i = this._off; i < points.length;) { var x = points[i++]; var y = points[i++]; if (isNaN(x) || isNaN(y)) { continue; } if (softClipShape && !softClipShape.contain(x, y)) { continue; } symbolProxyShape.x = x - size[0] / 2; symbolProxyShape.y = y - size[1] / 2; symbolProxyShape.width = size[0]; symbolProxyShape.height = size[1]; symbolProxy.buildPath(path, symbolProxyShape, true); } if (this.incremental) { this._off = i; this.notClear = true; } }; LargeSymbolPath.prototype.afterBrush = function () { var shape = this.shape; var points = shape.points; var size = shape.size; var ctx = this._ctx; var softClipShape = this.softClipShape; var i; if (!ctx) { return; } // PENDING If style or other canvas status changed? for (i = this._off; i < points.length;) { var x = points[i++]; var y = points[i++]; if (isNaN(x) || isNaN(y)) { continue; } if (softClipShape && !softClipShape.contain(x, y)) { continue; } // fillRect is faster than building a rect path and draw. // And it support light globalCompositeOperation. ctx.fillRect(x - size[0] / 2, y - size[1] / 2, size[0], size[1]); } if (this.incremental) { this._off = i; this.notClear = true; } }; LargeSymbolPath.prototype.findDataIndex = function (x, y) { // TODO ??? // Consider transform var shape = this.shape; var points = shape.points; var size = shape.size; var w = Math.max(size[0], 4); var h = Math.max(size[1], 4); // Not consider transform // Treat each element as a rect // top down traverse for (var idx = points.length / 2 - 1; idx >= 0; idx--) { var i = idx * 2; var x0 = points[i] - w / 2; var y0 = points[i + 1] - h / 2; if (x >= x0 && y >= y0 && x <= x0 + w && y <= y0 + h) { return idx; } } return -1; }; LargeSymbolPath.prototype.contain = function (x, y) { var localPos = this.transformCoordToLocal(x, y); var rect = this.getBoundingRect(); x = localPos[0]; y = localPos[1]; if (rect.contain(x, y)) { // Cache found data index. var dataIdx = this.hoverDataIdx = this.findDataIndex(x, y); return dataIdx >= 0; } this.hoverDataIdx = -1; return false; }; LargeSymbolPath.prototype.getBoundingRect = function () { // Ignore stroke for large symbol draw. var rect = this._rect; if (!rect) { var shape = this.shape; var points = shape.points; var size = shape.size; var w = size[0]; var h = size[1]; var minX = Infinity; var minY = Infinity; var maxX = -Infinity; var maxY = -Infinity; for (var i = 0; i < points.length;) { var x = points[i++]; var y = points[i++]; minX = Math.min(x, minX); maxX = Math.max(x, maxX); minY = Math.min(y, minY); maxY = Math.max(y, maxY); } rect = this._rect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["BoundingRect"](minX - w / 2, minY - h / 2, maxX - minX + w, maxY - minY + h); } return rect; }; return LargeSymbolPath; }(_util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Path"]); var LargeSymbolDraw = /** @class */function () { function LargeSymbolDraw() { this.group = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Group"](); } /** * Update symbols draw by new data */ LargeSymbolDraw.prototype.updateData = function (data, opt) { this._clear(); var symbolEl = this._create(); symbolEl.setShape({ points: data.getLayout('points') }); this._setCommon(symbolEl, data, opt); }; LargeSymbolDraw.prototype.updateLayout = function (data) { var points = data.getLayout('points'); this.group.eachChild(function (child) { if (child.startIndex != null) { var len = (child.endIndex - child.startIndex) * 2; var byteOffset = child.startIndex * 4 * 2; points = new Float32Array(points.buffer, byteOffset, len); } child.setShape('points', points); // Reset draw cursor. child.reset(); }); }; LargeSymbolDraw.prototype.incrementalPrepareUpdate = function (data) { this._clear(); }; LargeSymbolDraw.prototype.incrementalUpdate = function (taskParams, data, opt) { var lastAdded = this._newAdded[0]; var points = data.getLayout('points'); var oldPoints = lastAdded && lastAdded.shape.points; // Merging the exists. Each element has 1e4 points. // Consider the performance balance between too much elements and too much points in one shape(may affect hover optimization) if (oldPoints && oldPoints.length < 2e4) { var oldLen = oldPoints.length; var newPoints = new Float32Array(oldLen + points.length); // Concat two array newPoints.set(oldPoints); newPoints.set(points, oldLen); // Update endIndex lastAdded.endIndex = taskParams.end; lastAdded.setShape({ points: newPoints }); } else { // Clear this._newAdded = []; var symbolEl = this._create(); symbolEl.startIndex = taskParams.start; symbolEl.endIndex = taskParams.end; symbolEl.incremental = true; symbolEl.setShape({ points: points }); this._setCommon(symbolEl, data, opt); } }; LargeSymbolDraw.prototype.eachRendered = function (cb) { this._newAdded[0] && cb(this._newAdded[0]); }; LargeSymbolDraw.prototype._create = function () { var symbolEl = new LargeSymbolPath({ cursor: 'default' }); symbolEl.ignoreCoarsePointer = true; this.group.add(symbolEl); this._newAdded.push(symbolEl); return symbolEl; }; LargeSymbolDraw.prototype._setCommon = function (symbolEl, data, opt) { var hostModel = data.hostModel; opt = opt || {}; var size = data.getVisual('symbolSize'); symbolEl.setShape('size', size instanceof Array ? size : [size, size]); symbolEl.softClipShape = opt.clipShape || null; // Create symbolProxy to build path for each data symbolEl.symbolProxy = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_2__["createSymbol"])(data.getVisual('symbol'), 0, 0, 0, 0); // Use symbolProxy setColor method symbolEl.setColor = symbolEl.symbolProxy.setColor; var extrudeShadow = symbolEl.shape.size[0] < BOOST_SIZE_THRESHOLD; symbolEl.useStyle( // Draw shadow when doing fillRect is extremely slow. hostModel.getModel('itemStyle').getItemStyle(extrudeShadow ? ['color', 'shadowBlur', 'shadowColor'] : ['color'])); var globalStyle = data.getVisual('style'); var visualColor = globalStyle && globalStyle.fill; if (visualColor) { symbolEl.setColor(visualColor); } var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__["getECData"])(symbolEl); // Enable tooltip // PENDING May have performance issue when path is extremely large ecData.seriesIndex = hostModel.seriesIndex; symbolEl.on('mousemove', function (e) { ecData.dataIndex = null; var dataIndex = symbolEl.hoverDataIdx; if (dataIndex >= 0) { // Provide dataIndex for tooltip ecData.dataIndex = dataIndex + (symbolEl.startIndex || 0); } }); }; LargeSymbolDraw.prototype.remove = function () { this._clear(); }; LargeSymbolDraw.prototype._clear = function () { this._newAdded = []; this.group.removeAll(); }; return LargeSymbolDraw; }(); /* harmony default export */ __webpack_exports__["default"] = (LargeSymbolDraw); /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/Line.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/Line.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var _LinePath_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LinePath.js */ "./node_modules/echarts/lib/chart/helper/LinePath.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SYMBOL_CATEGORIES = ['fromSymbol', 'toSymbol']; function makeSymbolTypeKey(symbolCategory) { return '_' + symbolCategory + 'Type'; } function makeSymbolTypeValue(name, lineData, idx) { var symbolType = lineData.getItemVisual(idx, name); if (!symbolType || symbolType === 'none') { return symbolType; } var symbolSize = lineData.getItemVisual(idx, name + 'Size'); var symbolRotate = lineData.getItemVisual(idx, name + 'Rotate'); var symbolOffset = lineData.getItemVisual(idx, name + 'Offset'); var symbolKeepAspect = lineData.getItemVisual(idx, name + 'KeepAspect'); var symbolSizeArr = _util_symbol_js__WEBPACK_IMPORTED_MODULE_3__["normalizeSymbolSize"](symbolSize); var symbolOffsetArr = _util_symbol_js__WEBPACK_IMPORTED_MODULE_3__["normalizeSymbolOffset"](symbolOffset || 0, symbolSizeArr); return symbolType + symbolSizeArr + symbolOffsetArr + (symbolRotate || '') + (symbolKeepAspect || ''); } /** * @inner */ function createSymbol(name, lineData, idx) { var symbolType = lineData.getItemVisual(idx, name); if (!symbolType || symbolType === 'none') { return; } var symbolSize = lineData.getItemVisual(idx, name + 'Size'); var symbolRotate = lineData.getItemVisual(idx, name + 'Rotate'); var symbolOffset = lineData.getItemVisual(idx, name + 'Offset'); var symbolKeepAspect = lineData.getItemVisual(idx, name + 'KeepAspect'); var symbolSizeArr = _util_symbol_js__WEBPACK_IMPORTED_MODULE_3__["normalizeSymbolSize"](symbolSize); var symbolOffsetArr = _util_symbol_js__WEBPACK_IMPORTED_MODULE_3__["normalizeSymbolOffset"](symbolOffset || 0, symbolSizeArr); var symbolPath = _util_symbol_js__WEBPACK_IMPORTED_MODULE_3__["createSymbol"](symbolType, -symbolSizeArr[0] / 2 + symbolOffsetArr[0], -symbolSizeArr[1] / 2 + symbolOffsetArr[1], symbolSizeArr[0], symbolSizeArr[1], null, symbolKeepAspect); symbolPath.__specifiedRotation = symbolRotate == null || isNaN(symbolRotate) ? void 0 : +symbolRotate * Math.PI / 180 || 0; symbolPath.name = name; return symbolPath; } function createLine(points) { var line = new _LinePath_js__WEBPACK_IMPORTED_MODULE_4__["default"]({ name: 'line', subPixelOptimize: true }); setLinePoints(line.shape, points); return line; } function setLinePoints(targetShape, points) { targetShape.x1 = points[0][0]; targetShape.y1 = points[0][1]; targetShape.x2 = points[1][0]; targetShape.y2 = points[1][1]; targetShape.percent = 1; var cp1 = points[2]; if (cp1) { targetShape.cpx1 = cp1[0]; targetShape.cpy1 = cp1[1]; } else { targetShape.cpx1 = NaN; targetShape.cpy1 = NaN; } } var Line = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Line, _super); function Line(lineData, idx, seriesScope) { var _this = _super.call(this) || this; _this._createLine(lineData, idx, seriesScope); return _this; } Line.prototype._createLine = function (lineData, idx, seriesScope) { var seriesModel = lineData.hostModel; var linePoints = lineData.getItemLayout(idx); var line = createLine(linePoints); line.shape.percent = 0; _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["initProps"](line, { shape: { percent: 1 } }, seriesModel, idx); this.add(line); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(SYMBOL_CATEGORIES, function (symbolCategory) { var symbol = createSymbol(symbolCategory, lineData, idx); // symbols must added after line to make sure // it will be updated after line#update. // Or symbol position and rotation update in line#beforeUpdate will be one frame slow this.add(symbol); this[makeSymbolTypeKey(symbolCategory)] = makeSymbolTypeValue(symbolCategory, lineData, idx); }, this); this._updateCommonStl(lineData, idx, seriesScope); }; // TODO More strict on the List type in parameters? Line.prototype.updateData = function (lineData, idx, seriesScope) { var seriesModel = lineData.hostModel; var line = this.childOfName('line'); var linePoints = lineData.getItemLayout(idx); var target = { shape: {} }; setLinePoints(target.shape, linePoints); _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["updateProps"](line, target, seriesModel, idx); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(SYMBOL_CATEGORIES, function (symbolCategory) { var symbolType = makeSymbolTypeValue(symbolCategory, lineData, idx); var key = makeSymbolTypeKey(symbolCategory); // Symbol changed if (this[key] !== symbolType) { this.remove(this.childOfName(symbolCategory)); var symbol = createSymbol(symbolCategory, lineData, idx); this.add(symbol); } this[key] = symbolType; }, this); this._updateCommonStl(lineData, idx, seriesScope); }; ; Line.prototype.getLinePath = function () { return this.childAt(0); }; Line.prototype._updateCommonStl = function (lineData, idx, seriesScope) { var seriesModel = lineData.hostModel; var line = this.childOfName('line'); var emphasisLineStyle = seriesScope && seriesScope.emphasisLineStyle; var blurLineStyle = seriesScope && seriesScope.blurLineStyle; var selectLineStyle = seriesScope && seriesScope.selectLineStyle; var labelStatesModels = seriesScope && seriesScope.labelStatesModels; var emphasisDisabled = seriesScope && seriesScope.emphasisDisabled; var focus = seriesScope && seriesScope.focus; var blurScope = seriesScope && seriesScope.blurScope; // Optimization for large dataset if (!seriesScope || lineData.hasItemOption) { var itemModel = lineData.getItemModel(idx); var emphasisModel = itemModel.getModel('emphasis'); emphasisLineStyle = emphasisModel.getModel('lineStyle').getLineStyle(); blurLineStyle = itemModel.getModel(['blur', 'lineStyle']).getLineStyle(); selectLineStyle = itemModel.getModel(['select', 'lineStyle']).getLineStyle(); emphasisDisabled = emphasisModel.get('disabled'); focus = emphasisModel.get('focus'); blurScope = emphasisModel.get('blurScope'); labelStatesModels = Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["getLabelStatesModels"])(itemModel); } var lineStyle = lineData.getItemVisual(idx, 'style'); var visualColor = lineStyle.stroke; line.useStyle(lineStyle); line.style.fill = null; line.style.strokeNoScale = true; line.ensureState('emphasis').style = emphasisLineStyle; line.ensureState('blur').style = blurLineStyle; line.ensureState('select').style = selectLineStyle; // Update symbol Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(SYMBOL_CATEGORIES, function (symbolCategory) { var symbol = this.childOfName(symbolCategory); if (symbol) { // Share opacity and color with line. symbol.setColor(visualColor); symbol.style.opacity = lineStyle.opacity; for (var i = 0; i < _util_states_js__WEBPACK_IMPORTED_MODULE_6__["SPECIAL_STATES"].length; i++) { var stateName = _util_states_js__WEBPACK_IMPORTED_MODULE_6__["SPECIAL_STATES"][i]; var lineState = line.getState(stateName); if (lineState) { var lineStateStyle = lineState.style || {}; var state = symbol.ensureState(stateName); var stateStyle = state.style || (state.style = {}); if (lineStateStyle.stroke != null) { stateStyle[symbol.__isEmptyBrush ? 'stroke' : 'fill'] = lineStateStyle.stroke; } if (lineStateStyle.opacity != null) { stateStyle.opacity = lineStateStyle.opacity; } } } symbol.markRedraw(); } }, this); var rawVal = seriesModel.getRawValue(idx); Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["setLabelStyle"])(this, labelStatesModels, { labelDataIndex: idx, labelFetcher: { getFormattedLabel: function (dataIndex, stateName) { return seriesModel.getFormattedLabel(dataIndex, stateName, lineData.dataType); } }, inheritColor: visualColor || '#000', defaultOpacity: lineStyle.opacity, defaultText: (rawVal == null ? lineData.getName(idx) : isFinite(rawVal) ? Object(_util_number_js__WEBPACK_IMPORTED_MODULE_8__["round"])(rawVal) : rawVal) + '' }); var label = this.getTextContent(); // Always set `textStyle` even if `normalStyle.text` is null, because default // values have to be set on `normalStyle`. if (label) { var labelNormalModel = labelStatesModels.normal; label.__align = label.style.align; label.__verticalAlign = label.style.verticalAlign; // 'start', 'middle', 'end' label.__position = labelNormalModel.get('position') || 'middle'; var distance = labelNormalModel.get('distance'); if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(distance)) { distance = [distance, distance]; } label.__labelDistance = distance; } this.setTextConfig({ position: null, local: true, inside: false // Can't be inside for stroke element. }); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_6__["toggleHoverEmphasis"])(this, focus, blurScope, emphasisDisabled); }; Line.prototype.highlight = function () { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_6__["enterEmphasis"])(this); }; Line.prototype.downplay = function () { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_6__["leaveEmphasis"])(this); }; Line.prototype.updateLayout = function (lineData, idx) { this.setLinePoints(lineData.getItemLayout(idx)); }; Line.prototype.setLinePoints = function (points) { var linePath = this.childOfName('line'); setLinePoints(linePath.shape, points); linePath.dirty(); }; Line.prototype.beforeUpdate = function () { var lineGroup = this; var symbolFrom = lineGroup.childOfName('fromSymbol'); var symbolTo = lineGroup.childOfName('toSymbol'); var label = lineGroup.getTextContent(); // Quick reject if (!symbolFrom && !symbolTo && (!label || label.ignore)) { return; } var invScale = 1; var parentNode = this.parent; while (parentNode) { if (parentNode.scaleX) { invScale /= parentNode.scaleX; } parentNode = parentNode.parent; } var line = lineGroup.childOfName('line'); // If line not changed // FIXME Parent scale changed if (!this.__dirty && !line.__dirty) { return; } var percent = line.shape.percent; var fromPos = line.pointAt(0); var toPos = line.pointAt(percent); var d = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_2__["sub"]([], toPos, fromPos); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_2__["normalize"](d, d); function setSymbolRotation(symbol, percent) { // Fix #12388 // when symbol is set to be 'arrow' in markLine, // symbolRotate value will be ignored, and compulsively use tangent angle. // rotate by default if symbol rotation is not specified var specifiedRotation = symbol.__specifiedRotation; if (specifiedRotation == null) { var tangent = line.tangentAt(percent); symbol.attr('rotation', (percent === 1 ? -1 : 1) * Math.PI / 2 - Math.atan2(tangent[1], tangent[0])); } else { symbol.attr('rotation', specifiedRotation); } } if (symbolFrom) { symbolFrom.setPosition(fromPos); setSymbolRotation(symbolFrom, 0); symbolFrom.scaleX = symbolFrom.scaleY = invScale * percent; symbolFrom.markRedraw(); } if (symbolTo) { symbolTo.setPosition(toPos); setSymbolRotation(symbolTo, 1); symbolTo.scaleX = symbolTo.scaleY = invScale * percent; symbolTo.markRedraw(); } if (label && !label.ignore) { label.x = label.y = 0; label.originX = label.originY = 0; var textAlign = void 0; var textVerticalAlign = void 0; var distance = label.__labelDistance; var distanceX = distance[0] * invScale; var distanceY = distance[1] * invScale; var halfPercent = percent / 2; var tangent = line.tangentAt(halfPercent); var n = [tangent[1], -tangent[0]]; var cp = line.pointAt(halfPercent); if (n[1] > 0) { n[0] = -n[0]; n[1] = -n[1]; } var dir = tangent[0] < 0 ? -1 : 1; if (label.__position !== 'start' && label.__position !== 'end') { var rotation = -Math.atan2(tangent[1], tangent[0]); if (toPos[0] < fromPos[0]) { rotation = Math.PI + rotation; } label.rotation = rotation; } var dy = void 0; switch (label.__position) { case 'insideStartTop': case 'insideMiddleTop': case 'insideEndTop': case 'middle': dy = -distanceY; textVerticalAlign = 'bottom'; break; case 'insideStartBottom': case 'insideMiddleBottom': case 'insideEndBottom': dy = distanceY; textVerticalAlign = 'top'; break; default: dy = 0; textVerticalAlign = 'middle'; } switch (label.__position) { case 'end': label.x = d[0] * distanceX + toPos[0]; label.y = d[1] * distanceY + toPos[1]; textAlign = d[0] > 0.8 ? 'left' : d[0] < -0.8 ? 'right' : 'center'; textVerticalAlign = d[1] > 0.8 ? 'top' : d[1] < -0.8 ? 'bottom' : 'middle'; break; case 'start': label.x = -d[0] * distanceX + fromPos[0]; label.y = -d[1] * distanceY + fromPos[1]; textAlign = d[0] > 0.8 ? 'right' : d[0] < -0.8 ? 'left' : 'center'; textVerticalAlign = d[1] > 0.8 ? 'bottom' : d[1] < -0.8 ? 'top' : 'middle'; break; case 'insideStartTop': case 'insideStart': case 'insideStartBottom': label.x = distanceX * dir + fromPos[0]; label.y = fromPos[1] + dy; textAlign = tangent[0] < 0 ? 'right' : 'left'; label.originX = -distanceX * dir; label.originY = -dy; break; case 'insideMiddleTop': case 'insideMiddle': case 'insideMiddleBottom': case 'middle': label.x = cp[0]; label.y = cp[1] + dy; textAlign = 'center'; label.originY = -dy; break; case 'insideEndTop': case 'insideEnd': case 'insideEndBottom': label.x = -distanceX * dir + toPos[0]; label.y = toPos[1] + dy; textAlign = tangent[0] >= 0 ? 'right' : 'left'; label.originX = distanceX * dir; label.originY = -dy; break; } label.scaleX = label.scaleY = invScale; label.setStyle({ // Use the user specified text align and baseline first verticalAlign: label.__verticalAlign || textVerticalAlign, align: label.__align || textAlign }); } }; return Line; }(_util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["Group"]); /* harmony default export */ __webpack_exports__["default"] = (Line); /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/LineDraw.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/LineDraw.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _Line_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Line.js */ "./node_modules/echarts/lib/chart/helper/Line.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var LineDraw = /** @class */function () { function LineDraw(LineCtor) { this.group = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Group"](); this._LineCtor = LineCtor || _Line_js__WEBPACK_IMPORTED_MODULE_1__["default"]; } LineDraw.prototype.updateData = function (lineData) { var _this = this; // Remove progressive els. this._progressiveEls = null; var lineDraw = this; var group = lineDraw.group; var oldLineData = lineDraw._lineData; lineDraw._lineData = lineData; // There is no oldLineData only when first rendering or switching from // stream mode to normal mode, where previous elements should be removed. if (!oldLineData) { group.removeAll(); } var seriesScope = makeSeriesScope(lineData); lineData.diff(oldLineData).add(function (idx) { _this._doAdd(lineData, idx, seriesScope); }).update(function (newIdx, oldIdx) { _this._doUpdate(oldLineData, lineData, oldIdx, newIdx, seriesScope); }).remove(function (idx) { group.remove(oldLineData.getItemGraphicEl(idx)); }).execute(); }; ; LineDraw.prototype.updateLayout = function () { var lineData = this._lineData; // Do not support update layout in incremental mode. if (!lineData) { return; } lineData.eachItemGraphicEl(function (el, idx) { el.updateLayout(lineData, idx); }, this); }; ; LineDraw.prototype.incrementalPrepareUpdate = function (lineData) { this._seriesScope = makeSeriesScope(lineData); this._lineData = null; this.group.removeAll(); }; ; LineDraw.prototype.incrementalUpdate = function (taskParams, lineData) { this._progressiveEls = []; function updateIncrementalAndHover(el) { if (!el.isGroup && !isEffectObject(el)) { el.incremental = true; el.ensureState('emphasis').hoverLayer = true; } } for (var idx = taskParams.start; idx < taskParams.end; idx++) { var itemLayout = lineData.getItemLayout(idx); if (lineNeedsDraw(itemLayout)) { var el = new this._LineCtor(lineData, idx, this._seriesScope); el.traverse(updateIncrementalAndHover); this.group.add(el); lineData.setItemGraphicEl(idx, el); this._progressiveEls.push(el); } } }; ; LineDraw.prototype.remove = function () { this.group.removeAll(); }; ; LineDraw.prototype.eachRendered = function (cb) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["traverseElements"](this._progressiveEls || this.group, cb); }; LineDraw.prototype._doAdd = function (lineData, idx, seriesScope) { var itemLayout = lineData.getItemLayout(idx); if (!lineNeedsDraw(itemLayout)) { return; } var el = new this._LineCtor(lineData, idx, seriesScope); lineData.setItemGraphicEl(idx, el); this.group.add(el); }; LineDraw.prototype._doUpdate = function (oldLineData, newLineData, oldIdx, newIdx, seriesScope) { var itemEl = oldLineData.getItemGraphicEl(oldIdx); if (!lineNeedsDraw(newLineData.getItemLayout(newIdx))) { this.group.remove(itemEl); return; } if (!itemEl) { itemEl = new this._LineCtor(newLineData, newIdx, seriesScope); } else { itemEl.updateData(newLineData, newIdx, seriesScope); } newLineData.setItemGraphicEl(newIdx, itemEl); this.group.add(itemEl); }; return LineDraw; }(); function isEffectObject(el) { return el.animators && el.animators.length > 0; } function makeSeriesScope(lineData) { var hostModel = lineData.hostModel; var emphasisModel = hostModel.getModel('emphasis'); return { lineStyle: hostModel.getModel('lineStyle').getLineStyle(), emphasisLineStyle: emphasisModel.getModel(['lineStyle']).getLineStyle(), blurLineStyle: hostModel.getModel(['blur', 'lineStyle']).getLineStyle(), selectLineStyle: hostModel.getModel(['select', 'lineStyle']).getLineStyle(), emphasisDisabled: emphasisModel.get('disabled'), blurScope: emphasisModel.get('blurScope'), focus: emphasisModel.get('focus'), labelStatesModels: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_2__["getLabelStatesModels"])(hostModel) }; } function isPointNaN(pt) { return isNaN(pt[0]) || isNaN(pt[1]); } function lineNeedsDraw(pts) { return pts && !isPointNaN(pts[0]) && !isPointNaN(pts[1]); } /* harmony default export */ __webpack_exports__["default"] = (LineDraw); /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/LinePath.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/LinePath.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Line path for bezier and straight line draw */ var straightLineProto = _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Line"].prototype; var bezierCurveProto = _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["BezierCurve"].prototype; var StraightLineShape = /** @class */function () { function StraightLineShape() { // Start point this.x1 = 0; this.y1 = 0; // End point this.x2 = 0; this.y2 = 0; this.percent = 1; } return StraightLineShape; }(); var CurveShape = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CurveShape, _super); function CurveShape() { return _super !== null && _super.apply(this, arguments) || this; } return CurveShape; }(StraightLineShape); function isStraightLine(shape) { return isNaN(+shape.cpx1) || isNaN(+shape.cpy1); } var ECLinePath = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ECLinePath, _super); function ECLinePath(opts) { var _this = _super.call(this, opts) || this; _this.type = 'ec-line'; return _this; } ECLinePath.prototype.getDefaultStyle = function () { return { stroke: '#000', fill: null }; }; ECLinePath.prototype.getDefaultShape = function () { return new StraightLineShape(); }; ECLinePath.prototype.buildPath = function (ctx, shape) { if (isStraightLine(shape)) { straightLineProto.buildPath.call(this, ctx, shape); } else { bezierCurveProto.buildPath.call(this, ctx, shape); } }; ECLinePath.prototype.pointAt = function (t) { if (isStraightLine(this.shape)) { return straightLineProto.pointAt.call(this, t); } else { return bezierCurveProto.pointAt.call(this, t); } }; ECLinePath.prototype.tangentAt = function (t) { var shape = this.shape; var p = isStraightLine(shape) ? [shape.x2 - shape.x1, shape.y2 - shape.y1] : bezierCurveProto.tangentAt.call(this, t); return zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_2__["normalize"](p, p); }; return ECLinePath; }(_util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Path"]); /* harmony default export */ __webpack_exports__["default"] = (ECLinePath); /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/Polyline.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/Polyline.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var Polyline = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Polyline, _super); function Polyline(lineData, idx, seriesScope) { var _this = _super.call(this) || this; _this._createPolyline(lineData, idx, seriesScope); return _this; } Polyline.prototype._createPolyline = function (lineData, idx, seriesScope) { // let seriesModel = lineData.hostModel; var points = lineData.getItemLayout(idx); var line = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Polyline"]({ shape: { points: points } }); this.add(line); this._updateCommonStl(lineData, idx, seriesScope); }; ; Polyline.prototype.updateData = function (lineData, idx, seriesScope) { var seriesModel = lineData.hostModel; var line = this.childAt(0); var target = { shape: { points: lineData.getItemLayout(idx) } }; _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["updateProps"](line, target, seriesModel, idx); this._updateCommonStl(lineData, idx, seriesScope); }; ; Polyline.prototype._updateCommonStl = function (lineData, idx, seriesScope) { var line = this.childAt(0); var itemModel = lineData.getItemModel(idx); var emphasisLineStyle = seriesScope && seriesScope.emphasisLineStyle; var focus = seriesScope && seriesScope.focus; var blurScope = seriesScope && seriesScope.blurScope; var emphasisDisabled = seriesScope && seriesScope.emphasisDisabled; if (!seriesScope || lineData.hasItemOption) { var emphasisModel = itemModel.getModel('emphasis'); emphasisLineStyle = emphasisModel.getModel('lineStyle').getLineStyle(); emphasisDisabled = emphasisModel.get('disabled'); focus = emphasisModel.get('focus'); blurScope = emphasisModel.get('blurScope'); } line.useStyle(lineData.getItemVisual(idx, 'style')); line.style.fill = null; line.style.strokeNoScale = true; var lineEmphasisState = line.ensureState('emphasis'); lineEmphasisState.style = emphasisLineStyle; Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["toggleHoverEmphasis"])(this, focus, blurScope, emphasisDisabled); }; ; Polyline.prototype.updateLayout = function (lineData, idx) { var polyline = this.childAt(0); polyline.setShape('points', lineData.getItemLayout(idx)); }; ; return Polyline; }(_util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Group"]); /* harmony default export */ __webpack_exports__["default"] = (Polyline); /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/Symbol.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/Symbol.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _labelHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./labelHelper.js */ "./node_modules/echarts/lib/chart/helper/labelHelper.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! zrender/lib/graphic/Image.js */ "./node_modules/zrender/lib/graphic/Image.js"); /* harmony import */ var _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../animation/basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var Symbol = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Symbol, _super); function Symbol(data, idx, seriesScope, opts) { var _this = _super.call(this) || this; _this.updateData(data, idx, seriesScope, opts); return _this; } Symbol.prototype._createSymbol = function (symbolType, data, idx, symbolSize, keepAspect) { // Remove paths created before this.removeAll(); // let symbolPath = createSymbol( // symbolType, -0.5, -0.5, 1, 1, color // ); // If width/height are set too small (e.g., set to 1) on ios10 // and macOS Sierra, a circle stroke become a rect, no matter what // the scale is set. So we set width/height as 2. See #4150. var symbolPath = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_1__["createSymbol"])(symbolType, -1, -1, 2, 2, null, keepAspect); symbolPath.attr({ z2: 100, culling: true, scaleX: symbolSize[0] / 2, scaleY: symbolSize[1] / 2 }); // Rewrite drift method symbolPath.drift = driftSymbol; this._symbolType = symbolType; this.add(symbolPath); }; /** * Stop animation * @param {boolean} toLastFrame */ Symbol.prototype.stopSymbolAnimation = function (toLastFrame) { this.childAt(0).stopAnimation(null, toLastFrame); }; Symbol.prototype.getSymbolType = function () { return this._symbolType; }; /** * FIXME: * Caution: This method breaks the encapsulation of this module, * but it indeed brings convenience. So do not use the method * unless you detailedly know all the implements of `Symbol`, * especially animation. * * Get symbol path element. */ Symbol.prototype.getSymbolPath = function () { return this.childAt(0); }; /** * Highlight symbol */ Symbol.prototype.highlight = function () { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["enterEmphasis"])(this.childAt(0)); }; /** * Downplay symbol */ Symbol.prototype.downplay = function () { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["leaveEmphasis"])(this.childAt(0)); }; /** * @param {number} zlevel * @param {number} z */ Symbol.prototype.setZ = function (zlevel, z) { var symbolPath = this.childAt(0); symbolPath.zlevel = zlevel; symbolPath.z = z; }; Symbol.prototype.setDraggable = function (draggable, hasCursorOption) { var symbolPath = this.childAt(0); symbolPath.draggable = draggable; symbolPath.cursor = !hasCursorOption && draggable ? 'move' : symbolPath.cursor; }; /** * Update symbol properties */ Symbol.prototype.updateData = function (data, idx, seriesScope, opts) { this.silent = false; var symbolType = data.getItemVisual(idx, 'symbol') || 'circle'; var seriesModel = data.hostModel; var symbolSize = Symbol.getSymbolSize(data, idx); var isInit = symbolType !== this._symbolType; var disableAnimation = opts && opts.disableAnimation; if (isInit) { var keepAspect = data.getItemVisual(idx, 'symbolKeepAspect'); this._createSymbol(symbolType, data, idx, symbolSize, keepAspect); } else { var symbolPath = this.childAt(0); symbolPath.silent = false; var target = { scaleX: symbolSize[0] / 2, scaleY: symbolSize[1] / 2 }; disableAnimation ? symbolPath.attr(target) : _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["updateProps"](symbolPath, target, seriesModel, idx); Object(_animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_9__["saveOldStyle"])(symbolPath); } this._updateCommon(data, idx, symbolSize, seriesScope, opts); if (isInit) { var symbolPath = this.childAt(0); if (!disableAnimation) { var target = { scaleX: this._sizeX, scaleY: this._sizeY, style: { // Always fadeIn. Because it has fadeOut animation when symbol is removed.. opacity: symbolPath.style.opacity } }; symbolPath.scaleX = symbolPath.scaleY = 0; symbolPath.style.opacity = 0; _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["initProps"](symbolPath, target, seriesModel, idx); } } if (disableAnimation) { // Must stop leave transition manually if don't call initProps or updateProps. this.childAt(0).stopAnimation('leave'); } }; Symbol.prototype._updateCommon = function (data, idx, symbolSize, seriesScope, opts) { var symbolPath = this.childAt(0); var seriesModel = data.hostModel; var emphasisItemStyle; var blurItemStyle; var selectItemStyle; var focus; var blurScope; var emphasisDisabled; var labelStatesModels; var hoverScale; var cursorStyle; if (seriesScope) { emphasisItemStyle = seriesScope.emphasisItemStyle; blurItemStyle = seriesScope.blurItemStyle; selectItemStyle = seriesScope.selectItemStyle; focus = seriesScope.focus; blurScope = seriesScope.blurScope; labelStatesModels = seriesScope.labelStatesModels; hoverScale = seriesScope.hoverScale; cursorStyle = seriesScope.cursorStyle; emphasisDisabled = seriesScope.emphasisDisabled; } if (!seriesScope || data.hasItemOption) { var itemModel = seriesScope && seriesScope.itemModel ? seriesScope.itemModel : data.getItemModel(idx); var emphasisModel = itemModel.getModel('emphasis'); emphasisItemStyle = emphasisModel.getModel('itemStyle').getItemStyle(); selectItemStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle(); blurItemStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle(); focus = emphasisModel.get('focus'); blurScope = emphasisModel.get('blurScope'); emphasisDisabled = emphasisModel.get('disabled'); labelStatesModels = Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["getLabelStatesModels"])(itemModel); hoverScale = emphasisModel.getShallow('scale'); cursorStyle = itemModel.getShallow('cursor'); } var symbolRotate = data.getItemVisual(idx, 'symbolRotate'); symbolPath.attr('rotation', (symbolRotate || 0) * Math.PI / 180 || 0); var symbolOffset = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_1__["normalizeSymbolOffset"])(data.getItemVisual(idx, 'symbolOffset'), symbolSize); if (symbolOffset) { symbolPath.x = symbolOffset[0]; symbolPath.y = symbolOffset[1]; } cursorStyle && symbolPath.attr('cursor', cursorStyle); var symbolStyle = data.getItemVisual(idx, 'style'); var visualColor = symbolStyle.fill; if (symbolPath instanceof zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_8__["default"]) { var pathStyle = symbolPath.style; symbolPath.useStyle(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["extend"])({ // TODO other properties like x, y ? image: pathStyle.image, x: pathStyle.x, y: pathStyle.y, width: pathStyle.width, height: pathStyle.height }, symbolStyle)); } else { if (symbolPath.__isEmptyBrush) { // fill and stroke will be swapped if it's empty. // So we cloned a new style to avoid it affecting the original style in visual storage. // TODO Better implementation. No empty logic! symbolPath.useStyle(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["extend"])({}, symbolStyle)); } else { symbolPath.useStyle(symbolStyle); } // Disable decal because symbol scale will been applied on the decal. symbolPath.style.decal = null; symbolPath.setColor(visualColor, opts && opts.symbolInnerColor); symbolPath.style.strokeNoScale = true; } var liftZ = data.getItemVisual(idx, 'liftZ'); var z2Origin = this._z2; if (liftZ != null) { if (z2Origin == null) { this._z2 = symbolPath.z2; symbolPath.z2 += liftZ; } } else if (z2Origin != null) { symbolPath.z2 = z2Origin; this._z2 = null; } var useNameLabel = opts && opts.useNameLabel; Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["setLabelStyle"])(symbolPath, labelStatesModels, { labelFetcher: seriesModel, labelDataIndex: idx, defaultText: getLabelDefaultText, inheritColor: visualColor, defaultOpacity: symbolStyle.opacity }); // Do not execute util needed. function getLabelDefaultText(idx) { return useNameLabel ? data.getName(idx) : Object(_labelHelper_js__WEBPACK_IMPORTED_MODULE_5__["getDefaultLabel"])(data, idx); } this._sizeX = symbolSize[0] / 2; this._sizeY = symbolSize[1] / 2; var emphasisState = symbolPath.ensureState('emphasis'); emphasisState.style = emphasisItemStyle; symbolPath.ensureState('select').style = selectItemStyle; symbolPath.ensureState('blur').style = blurItemStyle; // null / undefined / true means to use default strategy. // 0 / false / negative number / NaN / Infinity means no scale. var scaleRatio = hoverScale == null || hoverScale === true ? Math.max(1.1, 3 / this._sizeY) // PENDING: restrict hoverScale > 1? It seems unreasonable to scale down : isFinite(hoverScale) && hoverScale > 0 ? +hoverScale : 1; // always set scale to allow resetting emphasisState.scaleX = this._sizeX * scaleRatio; emphasisState.scaleY = this._sizeY * scaleRatio; this.setSymbolScale(1); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["toggleHoverEmphasis"])(this, focus, blurScope, emphasisDisabled); }; Symbol.prototype.setSymbolScale = function (scale) { this.scaleX = this.scaleY = scale; }; Symbol.prototype.fadeOut = function (cb, seriesModel, opt) { var symbolPath = this.childAt(0); var dataIndex = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__["getECData"])(this).dataIndex; var animationOpt = opt && opt.animation; // Avoid mistaken hover when fading out this.silent = symbolPath.silent = true; // Not show text when animating if (opt && opt.fadeLabel) { var textContent = symbolPath.getTextContent(); if (textContent) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["removeElement"](textContent, { style: { opacity: 0 } }, seriesModel, { dataIndex: dataIndex, removeOpt: animationOpt, cb: function () { symbolPath.removeTextContent(); } }); } } else { symbolPath.removeTextContent(); } _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["removeElement"](symbolPath, { style: { opacity: 0 }, scaleX: 0, scaleY: 0 }, seriesModel, { dataIndex: dataIndex, cb: cb, removeOpt: animationOpt }); }; Symbol.getSymbolSize = function (data, idx) { return Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_1__["normalizeSymbolSize"])(data.getItemVisual(idx, 'symbolSize')); }; return Symbol; }(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"]); function driftSymbol(dx, dy) { this.parent.drift(dx, dy); } /* harmony default export */ __webpack_exports__["default"] = (Symbol); /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/SymbolDraw.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/SymbolDraw.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _Symbol_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Symbol.js */ "./node_modules/echarts/lib/chart/helper/Symbol.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function symbolNeedsDraw(data, point, idx, opt) { return point && !isNaN(point[0]) && !isNaN(point[1]) && !(opt.isIgnore && opt.isIgnore(idx)) // We do not set clipShape on group, because it will cut part of // the symbol element shape. We use the same clip shape here as // the line clip. && !(opt.clipShape && !opt.clipShape.contain(point[0], point[1])) && data.getItemVisual(idx, 'symbol') !== 'none'; } function normalizeUpdateOpt(opt) { if (opt != null && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isObject"])(opt)) { opt = { isIgnore: opt }; } return opt || {}; } function makeSeriesScope(data) { var seriesModel = data.hostModel; var emphasisModel = seriesModel.getModel('emphasis'); return { emphasisItemStyle: emphasisModel.getModel('itemStyle').getItemStyle(), blurItemStyle: seriesModel.getModel(['blur', 'itemStyle']).getItemStyle(), selectItemStyle: seriesModel.getModel(['select', 'itemStyle']).getItemStyle(), focus: emphasisModel.get('focus'), blurScope: emphasisModel.get('blurScope'), emphasisDisabled: emphasisModel.get('disabled'), hoverScale: emphasisModel.get('scale'), labelStatesModels: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_3__["getLabelStatesModels"])(seriesModel), cursorStyle: seriesModel.get('cursor') }; } var SymbolDraw = /** @class */function () { function SymbolDraw(SymbolCtor) { this.group = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Group"](); this._SymbolCtor = SymbolCtor || _Symbol_js__WEBPACK_IMPORTED_MODULE_1__["default"]; } /** * Update symbols draw by new data */ SymbolDraw.prototype.updateData = function (data, opt) { // Remove progressive els. this._progressiveEls = null; opt = normalizeUpdateOpt(opt); var group = this.group; var seriesModel = data.hostModel; var oldData = this._data; var SymbolCtor = this._SymbolCtor; var disableAnimation = opt.disableAnimation; var seriesScope = makeSeriesScope(data); var symbolUpdateOpt = { disableAnimation: disableAnimation }; var getSymbolPoint = opt.getSymbolPoint || function (idx) { return data.getItemLayout(idx); }; // There is no oldLineData only when first rendering or switching from // stream mode to normal mode, where previous elements should be removed. if (!oldData) { group.removeAll(); } data.diff(oldData).add(function (newIdx) { var point = getSymbolPoint(newIdx); if (symbolNeedsDraw(data, point, newIdx, opt)) { var symbolEl = new SymbolCtor(data, newIdx, seriesScope, symbolUpdateOpt); symbolEl.setPosition(point); data.setItemGraphicEl(newIdx, symbolEl); group.add(symbolEl); } }).update(function (newIdx, oldIdx) { var symbolEl = oldData.getItemGraphicEl(oldIdx); var point = getSymbolPoint(newIdx); if (!symbolNeedsDraw(data, point, newIdx, opt)) { group.remove(symbolEl); return; } var newSymbolType = data.getItemVisual(newIdx, 'symbol') || 'circle'; var oldSymbolType = symbolEl && symbolEl.getSymbolType && symbolEl.getSymbolType(); if (!symbolEl // Create a new if symbol type changed. || oldSymbolType && oldSymbolType !== newSymbolType) { group.remove(symbolEl); symbolEl = new SymbolCtor(data, newIdx, seriesScope, symbolUpdateOpt); symbolEl.setPosition(point); } else { symbolEl.updateData(data, newIdx, seriesScope, symbolUpdateOpt); var target = { x: point[0], y: point[1] }; disableAnimation ? symbolEl.attr(target) : _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["updateProps"](symbolEl, target, seriesModel); } // Add back group.add(symbolEl); data.setItemGraphicEl(newIdx, symbolEl); }).remove(function (oldIdx) { var el = oldData.getItemGraphicEl(oldIdx); el && el.fadeOut(function () { group.remove(el); }, seriesModel); }).execute(); this._getSymbolPoint = getSymbolPoint; this._data = data; }; ; SymbolDraw.prototype.updateLayout = function () { var _this = this; var data = this._data; if (data) { // Not use animation data.eachItemGraphicEl(function (el, idx) { var point = _this._getSymbolPoint(idx); el.setPosition(point); el.markRedraw(); }); } }; ; SymbolDraw.prototype.incrementalPrepareUpdate = function (data) { this._seriesScope = makeSeriesScope(data); this._data = null; this.group.removeAll(); }; ; /** * Update symbols draw by new data */ SymbolDraw.prototype.incrementalUpdate = function (taskParams, data, opt) { // Clear this._progressiveEls = []; opt = normalizeUpdateOpt(opt); function updateIncrementalAndHover(el) { if (!el.isGroup) { el.incremental = true; el.ensureState('emphasis').hoverLayer = true; } } for (var idx = taskParams.start; idx < taskParams.end; idx++) { var point = data.getItemLayout(idx); if (symbolNeedsDraw(data, point, idx, opt)) { var el = new this._SymbolCtor(data, idx, this._seriesScope); el.traverse(updateIncrementalAndHover); el.setPosition(point); this.group.add(el); data.setItemGraphicEl(idx, el); this._progressiveEls.push(el); } } }; ; SymbolDraw.prototype.eachRendered = function (cb) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["traverseElements"](this._progressiveEls || this.group, cb); }; SymbolDraw.prototype.remove = function (enableAnimation) { var group = this.group; var data = this._data; // Incremental model do not have this._data. if (data && enableAnimation) { data.eachItemGraphicEl(function (el) { el.fadeOut(function () { group.remove(el); }, data.hostModel); }); } else { group.removeAll(); } }; ; return SymbolDraw; }(); /* harmony default export */ __webpack_exports__["default"] = (SymbolDraw); /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js": /*!*****************************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js ***! \*****************************************************************************/ /*! exports provided: createGridClipPath, createPolarClipPath, createClipPath */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createGridClipPath", function() { return createGridClipPath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPolarClipPath", function() { return createPolarClipPath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createClipPath", function() { return createClipPath; }); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function createGridClipPath(cartesian, hasAnimation, seriesModel, done, during) { var rect = cartesian.getArea(); var x = rect.x; var y = rect.y; var width = rect.width; var height = rect.height; var lineWidth = seriesModel.get(['lineStyle', 'width']) || 0; // Expand the clip path a bit to avoid the border is clipped and looks thinner x -= lineWidth / 2; y -= lineWidth / 2; width += lineWidth; height += lineWidth; // fix: https://github.com/apache/incubator-echarts/issues/11369 width = Math.ceil(width); if (x !== Math.floor(x)) { x = Math.floor(x); // if no extra 1px on `width`, it will still be clipped since `x` is floored width++; } var clipPath = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Rect"]({ shape: { x: x, y: y, width: width, height: height } }); if (hasAnimation) { var baseAxis = cartesian.getBaseAxis(); var isHorizontal = baseAxis.isHorizontal(); var isAxisInversed = baseAxis.inverse; if (isHorizontal) { if (isAxisInversed) { clipPath.shape.x += width; } clipPath.shape.width = 0; } else { if (!isAxisInversed) { clipPath.shape.y += height; } clipPath.shape.height = 0; } var duringCb = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(during) ? function (percent) { during(percent, clipPath); } : null; _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["initProps"](clipPath, { shape: { width: width, height: height, x: x, y: y } }, seriesModel, null, done, duringCb); } return clipPath; } function createPolarClipPath(polar, hasAnimation, seriesModel) { var sectorArea = polar.getArea(); // Avoid float number rounding error for symbol on the edge of axis extent. var r0 = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["round"])(sectorArea.r0, 1); var r = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["round"])(sectorArea.r, 1); var clipPath = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Sector"]({ shape: { cx: Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["round"])(polar.cx, 1), cy: Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["round"])(polar.cy, 1), r0: r0, r: r, startAngle: sectorArea.startAngle, endAngle: sectorArea.endAngle, clockwise: sectorArea.clockwise } }); if (hasAnimation) { var isRadial = polar.getBaseAxis().dim === 'angle'; if (isRadial) { clipPath.shape.endAngle = sectorArea.startAngle; } else { clipPath.shape.r = r0; } _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["initProps"](clipPath, { shape: { endAngle: sectorArea.endAngle, r: r } }, seriesModel); } return clipPath; } function createClipPath(coordSys, hasAnimation, seriesModel, done, during) { if (!coordSys) { return null; } else if (coordSys.type === 'polar') { return createPolarClipPath(coordSys, hasAnimation, seriesModel); } else if (coordSys.type === 'cartesian2d') { return createGridClipPath(coordSys, hasAnimation, seriesModel, done, during); } return null; } /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge.js": /*!**************************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge.js ***! \**************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createGraphFromNodeEdge; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../data/SeriesData.js */ "./node_modules/echarts/lib/data/SeriesData.js"); /* harmony import */ var _data_Graph_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../data/Graph.js */ "./node_modules/echarts/lib/data/Graph.js"); /* harmony import */ var _data_helper_linkSeriesData_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../data/helper/linkSeriesData.js */ "./node_modules/echarts/lib/data/helper/linkSeriesData.js"); /* harmony import */ var _data_helper_createDimensions_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../data/helper/createDimensions.js */ "./node_modules/echarts/lib/data/helper/createDimensions.js"); /* harmony import */ var _core_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../core/CoordinateSystem.js */ "./node_modules/echarts/lib/core/CoordinateSystem.js"); /* harmony import */ var _createSeriesData_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./createSeriesData.js */ "./node_modules/echarts/lib/chart/helper/createSeriesData.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function createGraphFromNodeEdge(nodes, edges, seriesModel, directed, beforeLink) { // ??? TODO // support dataset? var graph = new _data_Graph_js__WEBPACK_IMPORTED_MODULE_2__["default"](directed); for (var i = 0; i < nodes.length; i++) { graph.addNode(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve"]( // Id, name, dataIndex nodes[i].id, nodes[i].name, i), i); } var linkNameList = []; var validEdges = []; var linkCount = 0; for (var i = 0; i < edges.length; i++) { var link = edges[i]; var source = link.source; var target = link.target; // addEdge may fail when source or target not exists if (graph.addEdge(source, target, linkCount)) { validEdges.push(link); linkNameList.push(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve"](Object(_util_model_js__WEBPACK_IMPORTED_MODULE_7__["convertOptionIdName"])(link.id, null), source + ' > ' + target)); linkCount++; } } var coordSys = seriesModel.get('coordinateSystem'); var nodeData; if (coordSys === 'cartesian2d' || coordSys === 'polar') { nodeData = Object(_createSeriesData_js__WEBPACK_IMPORTED_MODULE_6__["default"])(nodes, seriesModel); } else { var coordSysCtor = _core_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_5__["default"].get(coordSys); var coordDimensions = coordSysCtor ? coordSysCtor.dimensions || [] : []; // FIXME: Some geo do not need `value` dimenson, whereas `calendar` needs // `value` dimension, but graph need `value` dimension. It's better to // uniform this behavior. if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"](coordDimensions, 'value') < 0) { coordDimensions.concat(['value']); } var dimensions = Object(_data_helper_createDimensions_js__WEBPACK_IMPORTED_MODULE_4__["default"])(nodes, { coordDimensions: coordDimensions, encodeDefine: seriesModel.getEncode() }).dimensions; nodeData = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"](dimensions, seriesModel); nodeData.initData(nodes); } var edgeData = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"](['value'], seriesModel); edgeData.initData(validEdges, linkNameList); beforeLink && beforeLink(nodeData, edgeData); Object(_data_helper_linkSeriesData_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ mainData: nodeData, struct: graph, structAttr: 'graph', datas: { node: nodeData, edge: edgeData }, datasAttr: { node: 'data', edge: 'edgeData' } }); // Update dataIndex of nodes and edges because invalid edge may be removed graph.update(); return graph; } /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/createRenderPlanner.js": /*!**********************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/createRenderPlanner.js ***! \**********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createRenderPlanner; }); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @return {string} If large mode changed, return string 'reset'; */ function createRenderPlanner() { var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["makeInner"])(); return function (seriesModel) { var fields = inner(seriesModel); var pipelineContext = seriesModel.pipelineContext; var originalLarge = !!fields.large; var originalProgressive = !!fields.progressiveRender; // FIXME: if the planner works on a filtered series, `pipelineContext` does not // exists. See #11611 . Probably we need to modify this structure, see the comment // on `performRawSeries` in `Schedular.js`. var large = fields.large = !!(pipelineContext && pipelineContext.large); var progressive = fields.progressiveRender = !!(pipelineContext && pipelineContext.progressiveRender); return !!(originalLarge !== large || originalProgressive !== progressive) && 'reset'; }; } /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/createSeriesData.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/createSeriesData.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../data/SeriesData.js */ "./node_modules/echarts/lib/data/SeriesData.js"); /* harmony import */ var _data_helper_createDimensions_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../data/helper/createDimensions.js */ "./node_modules/echarts/lib/data/helper/createDimensions.js"); /* harmony import */ var _data_helper_dimensionHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../data/helper/dimensionHelper.js */ "./node_modules/echarts/lib/data/helper/dimensionHelper.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _core_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../core/CoordinateSystem.js */ "./node_modules/echarts/lib/core/CoordinateSystem.js"); /* harmony import */ var _model_referHelper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../model/referHelper.js */ "./node_modules/echarts/lib/model/referHelper.js"); /* harmony import */ var _data_Source_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../data/Source.js */ "./node_modules/echarts/lib/data/Source.js"); /* harmony import */ var _data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../data/helper/dataStackHelper.js */ "./node_modules/echarts/lib/data/helper/dataStackHelper.js"); /* harmony import */ var _data_helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../data/helper/sourceHelper.js */ "./node_modules/echarts/lib/data/helper/sourceHelper.js"); /* harmony import */ var _util_types_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/types.js */ "./node_modules/echarts/lib/util/types.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getCoordSysDimDefs(seriesModel, coordSysInfo) { var coordSysName = seriesModel.get('coordinateSystem'); var registeredCoordSys = _core_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_5__["default"].get(coordSysName); var coordSysDimDefs; if (coordSysInfo && coordSysInfo.coordSysDims) { coordSysDimDefs = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](coordSysInfo.coordSysDims, function (dim) { var dimInfo = { name: dim }; var axisModel = coordSysInfo.axisMap.get(dim); if (axisModel) { var axisType = axisModel.get('type'); dimInfo.type = Object(_data_helper_dimensionHelper_js__WEBPACK_IMPORTED_MODULE_3__["getDimensionTypeByAxis"])(axisType); } return dimInfo; }); } if (!coordSysDimDefs) { // Get dimensions from registered coordinate system coordSysDimDefs = registeredCoordSys && (registeredCoordSys.getDimensionsInfo ? registeredCoordSys.getDimensionsInfo() : registeredCoordSys.dimensions.slice()) || ['x', 'y']; } return coordSysDimDefs; } function injectOrdinalMeta(dimInfoList, createInvertedIndices, coordSysInfo) { var firstCategoryDimIndex; var hasNameEncode; coordSysInfo && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](dimInfoList, function (dimInfo, dimIndex) { var coordDim = dimInfo.coordDim; var categoryAxisModel = coordSysInfo.categoryAxisMap.get(coordDim); if (categoryAxisModel) { if (firstCategoryDimIndex == null) { firstCategoryDimIndex = dimIndex; } dimInfo.ordinalMeta = categoryAxisModel.getOrdinalMeta(); if (createInvertedIndices) { dimInfo.createInvertedIndices = true; } } if (dimInfo.otherDims.itemName != null) { hasNameEncode = true; } }); if (!hasNameEncode && firstCategoryDimIndex != null) { dimInfoList[firstCategoryDimIndex].otherDims.itemName = 0; } return firstCategoryDimIndex; } /** * Caution: there are side effects to `sourceManager` in this method. * Should better only be called in `Series['getInitialData']`. */ function createSeriesData(sourceRaw, seriesModel, opt) { opt = opt || {}; var sourceManager = seriesModel.getSourceManager(); var source; var isOriginalSource = false; if (sourceRaw) { isOriginalSource = true; source = Object(_data_Source_js__WEBPACK_IMPORTED_MODULE_7__["createSourceFromSeriesDataOption"])(sourceRaw); } else { source = sourceManager.getSource(); // Is series.data. not dataset. isOriginalSource = source.sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_10__["SOURCE_FORMAT_ORIGINAL"]; } var coordSysInfo = Object(_model_referHelper_js__WEBPACK_IMPORTED_MODULE_6__["getCoordSysInfoBySeries"])(seriesModel); var coordSysDimDefs = getCoordSysDimDefs(seriesModel, coordSysInfo); var useEncodeDefaulter = opt.useEncodeDefaulter; var encodeDefaulter = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"](useEncodeDefaulter) ? useEncodeDefaulter : useEncodeDefaulter ? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"](_data_helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_9__["makeSeriesEncodeForAxisCoordSys"], coordSysDimDefs, seriesModel) : null; var createDimensionOptions = { coordDimensions: coordSysDimDefs, generateCoord: opt.generateCoord, encodeDefine: seriesModel.getEncode(), encodeDefaulter: encodeDefaulter, canOmitUnusedDimensions: !isOriginalSource }; var schema = Object(_data_helper_createDimensions_js__WEBPACK_IMPORTED_MODULE_2__["default"])(source, createDimensionOptions); var firstCategoryDimIndex = injectOrdinalMeta(schema.dimensions, opt.createInvertedIndices, coordSysInfo); var store = !isOriginalSource ? sourceManager.getSharedDataStore(schema) : null; var stackCalculationInfo = Object(_data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_8__["enableDataStack"])(seriesModel, { schema: schema, store: store }); var data = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"](schema, seriesModel); data.setCalculationInfo(stackCalculationInfo); var dimValueGetter = firstCategoryDimIndex != null && isNeedCompleteOrdinalData(source) ? function (itemOpt, dimName, dataIndex, dimIndex) { // Use dataIndex as ordinal value in categoryAxis return dimIndex === firstCategoryDimIndex ? dataIndex : this.defaultDimValueGetter(itemOpt, dimName, dataIndex, dimIndex); } : null; data.hasItemOption = false; data.initData( // Try to reuse the data store in sourceManager if using dataset. isOriginalSource ? source : store, null, dimValueGetter); return data; } function isNeedCompleteOrdinalData(source) { if (source.sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_10__["SOURCE_FORMAT_ORIGINAL"]) { var sampleItem = firstDataNotNull(source.data || []); return !zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](Object(_util_model_js__WEBPACK_IMPORTED_MODULE_4__["getDataItemValue"])(sampleItem)); } } function firstDataNotNull(arr) { var i = 0; while (i < arr.length && arr[i] == null) { i++; } return arr[i]; } /* harmony default export */ __webpack_exports__["default"] = (createSeriesData); /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js": /*!*************************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js ***! \*************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createSeriesDataSimply; }); /* harmony import */ var _data_helper_createDimensions_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../data/helper/createDimensions.js */ "./node_modules/echarts/lib/data/helper/createDimensions.js"); /* harmony import */ var _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../data/SeriesData.js */ "./node_modules/echarts/lib/data/SeriesData.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * [Usage]: * (1) * createListSimply(seriesModel, ['value']); * (2) * createListSimply(seriesModel, { * coordDimensions: ['value'], * dimensionsCount: 5 * }); */ function createSeriesDataSimply(seriesModel, opt, nameList) { opt = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isArray"])(opt) && { coordDimensions: opt } || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["extend"])({ encodeDefine: seriesModel.getEncode() }, opt); var source = seriesModel.getSource(); var dimensions = Object(_data_helper_createDimensions_js__WEBPACK_IMPORTED_MODULE_0__["default"])(source, opt).dimensions; var list = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"](dimensions, seriesModel); list.initData(source, nameList); return list; } /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/enableAriaDecalForTree.js": /*!*************************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/enableAriaDecalForTree.js ***! \*************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return enableAriaDecalForTree; }); /* harmony import */ var _model_mixin_palette_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../model/mixin/palette.js */ "./node_modules/echarts/lib/model/mixin/palette.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function enableAriaDecalForTree(seriesModel) { var data = seriesModel.getData(); var tree = data.tree; var decalPaletteScope = {}; tree.eachNode(function (node) { // Use decal of level 1 node var current = node; while (current && current.depth > 1) { current = current.parentNode; } var decal = Object(_model_mixin_palette_js__WEBPACK_IMPORTED_MODULE_0__["getDecalFromPalette"])(seriesModel.ecModel, current.name || current.dataIndex + '', decalPaletteScope); node.setVisual('decal', decal); }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/labelHelper.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/labelHelper.js ***! \**************************************************************/ /*! exports provided: getDefaultLabel, getDefaultInterpolatedLabel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDefaultLabel", function() { return getDefaultLabel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDefaultInterpolatedLabel", function() { return getDefaultInterpolatedLabel; }); /* harmony import */ var _data_helper_dataProvider_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../data/helper/dataProvider.js */ "./node_modules/echarts/lib/data/helper/dataProvider.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @return label string. Not null/undefined */ function getDefaultLabel(data, dataIndex) { var labelDims = data.mapDimensionsAll('defaultedLabel'); var len = labelDims.length; // Simple optimization (in lots of cases, label dims length is 1) if (len === 1) { var rawVal = Object(_data_helper_dataProvider_js__WEBPACK_IMPORTED_MODULE_0__["retrieveRawValue"])(data, dataIndex, labelDims[0]); return rawVal != null ? rawVal + '' : null; } else if (len) { var vals = []; for (var i = 0; i < labelDims.length; i++) { vals.push(Object(_data_helper_dataProvider_js__WEBPACK_IMPORTED_MODULE_0__["retrieveRawValue"])(data, dataIndex, labelDims[i])); } return vals.join(' '); } } function getDefaultInterpolatedLabel(data, interpolatedValue) { var labelDims = data.mapDimensionsAll('defaultedLabel'); if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(interpolatedValue)) { return interpolatedValue + ''; } var vals = []; for (var i = 0; i < labelDims.length; i++) { var dimIndex = data.getDimensionIndex(labelDims[i]); if (dimIndex >= 0) { vals.push(interpolatedValue[dimIndex]); } } return vals.join(' '); } /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js": /*!**************************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js ***! \**************************************************************************/ /*! exports provided: initCurvenessList, createEdgeMapForCurveness, getCurvenessForEdge */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initCurvenessList", function() { return initCurvenessList; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEdgeMapForCurveness", function() { return createEdgeMapForCurveness; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCurvenessForEdge", function() { return getCurvenessForEdge; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // @ts-nocheck var KEY_DELIMITER = '-->'; /** * params handler * @param {module:echarts/model/SeriesModel} seriesModel * @returns {*} */ var getAutoCurvenessParams = function (seriesModel) { return seriesModel.get('autoCurveness') || null; }; /** * Generate a list of edge curvatures, 20 is the default * @param {module:echarts/model/SeriesModel} seriesModel * @param {number} appendLength * @return 20 => [0, -0.2, 0.2, -0.4, 0.4, -0.6, 0.6, -0.8, 0.8, -1, 1, -1.2, 1.2, -1.4, 1.4, -1.6, 1.6, -1.8, 1.8, -2] */ var createCurveness = function (seriesModel, appendLength) { var autoCurvenessParmas = getAutoCurvenessParams(seriesModel); var length = 20; var curvenessList = []; // handler the function set if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isNumber"](autoCurvenessParmas)) { length = autoCurvenessParmas; } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](autoCurvenessParmas)) { seriesModel.__curvenessList = autoCurvenessParmas; return; } // append length if (appendLength > length) { length = appendLength; } // make sure the length is even var len = length % 2 ? length + 2 : length + 3; curvenessList = []; for (var i = 0; i < len; i++) { curvenessList.push((i % 2 ? i + 1 : i) / 10 * (i % 2 ? -1 : 1)); } seriesModel.__curvenessList = curvenessList; }; /** * Create different cache key data in the positive and negative directions, in order to set the curvature later * @param {number|string|module:echarts/data/Graph.Node} n1 * @param {number|string|module:echarts/data/Graph.Node} n2 * @param {module:echarts/model/SeriesModel} seriesModel * @returns {string} key */ var getKeyOfEdges = function (n1, n2, seriesModel) { var source = [n1.id, n1.dataIndex].join('.'); var target = [n2.id, n2.dataIndex].join('.'); return [seriesModel.uid, source, target].join(KEY_DELIMITER); }; /** * get opposite key * @param {string} key * @returns {string} */ var getOppositeKey = function (key) { var keys = key.split(KEY_DELIMITER); return [keys[0], keys[2], keys[1]].join(KEY_DELIMITER); }; /** * get edgeMap with key * @param edge * @param {module:echarts/model/SeriesModel} seriesModel */ var getEdgeFromMap = function (edge, seriesModel) { var key = getKeyOfEdges(edge.node1, edge.node2, seriesModel); return seriesModel.__edgeMap[key]; }; /** * calculate all cases total length * @param edge * @param seriesModel * @returns {number} */ var getTotalLengthBetweenNodes = function (edge, seriesModel) { var len = getEdgeMapLengthWithKey(getKeyOfEdges(edge.node1, edge.node2, seriesModel), seriesModel); var lenV = getEdgeMapLengthWithKey(getKeyOfEdges(edge.node2, edge.node1, seriesModel), seriesModel); return len + lenV; }; /** * * @param key */ var getEdgeMapLengthWithKey = function (key, seriesModel) { var edgeMap = seriesModel.__edgeMap; return edgeMap[key] ? edgeMap[key].length : 0; }; /** * Count the number of edges between the same two points, used to obtain the curvature table and the parity of the edge * @see /graph/GraphSeries.js@getInitialData * @param {module:echarts/model/SeriesModel} seriesModel */ function initCurvenessList(seriesModel) { if (!getAutoCurvenessParams(seriesModel)) { return; } seriesModel.__curvenessList = []; seriesModel.__edgeMap = {}; // calc the array of curveness List createCurveness(seriesModel); } /** * set edgeMap with key * @param {number|string|module:echarts/data/Graph.Node} n1 * @param {number|string|module:echarts/data/Graph.Node} n2 * @param {module:echarts/model/SeriesModel} seriesModel * @param {number} index */ function createEdgeMapForCurveness(n1, n2, seriesModel, index) { if (!getAutoCurvenessParams(seriesModel)) { return; } var key = getKeyOfEdges(n1, n2, seriesModel); var edgeMap = seriesModel.__edgeMap; var oppositeEdges = edgeMap[getOppositeKey(key)]; // set direction if (edgeMap[key] && !oppositeEdges) { edgeMap[key].isForward = true; } else if (oppositeEdges && edgeMap[key]) { oppositeEdges.isForward = true; edgeMap[key].isForward = false; } edgeMap[key] = edgeMap[key] || []; edgeMap[key].push(index); } /** * get curvature for edge * @param edge * @param {module:echarts/model/SeriesModel} seriesModel * @param index */ function getCurvenessForEdge(edge, seriesModel, index, needReverse) { var autoCurvenessParams = getAutoCurvenessParams(seriesModel); var isArrayParam = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](autoCurvenessParams); if (!autoCurvenessParams) { return null; } var edgeArray = getEdgeFromMap(edge, seriesModel); if (!edgeArray) { return null; } var edgeIndex = -1; for (var i = 0; i < edgeArray.length; i++) { if (edgeArray[i] === index) { edgeIndex = i; break; } } // if totalLen is Longer createCurveness var totalLen = getTotalLengthBetweenNodes(edge, seriesModel); createCurveness(seriesModel, totalLen); edge.lineStyle = edge.lineStyle || {}; // if is opposite edge, must set curvenss to opposite number var curKey = getKeyOfEdges(edge.node1, edge.node2, seriesModel); var curvenessList = seriesModel.__curvenessList; // if pass array no need parity var parityCorrection = isArrayParam ? 0 : totalLen % 2 ? 0 : 1; if (!edgeArray.isForward) { // the opposite edge show outside var oppositeKey = getOppositeKey(curKey); var len = getEdgeMapLengthWithKey(oppositeKey, seriesModel); var resValue = curvenessList[edgeIndex + len + parityCorrection]; // isNeedReverse, simple, force type need reverse the curveness in the junction of the forword and the opposite if (needReverse) { // set as array may make the parity handle with the len of opposite if (isArrayParam) { if (autoCurvenessParams && autoCurvenessParams[0] === 0) { return (len + parityCorrection) % 2 ? resValue : -resValue; } else { return ((len % 2 ? 0 : 1) + parityCorrection) % 2 ? resValue : -resValue; } } else { return (len + parityCorrection) % 2 ? resValue : -resValue; } } else { return curvenessList[edgeIndex + len + parityCorrection]; } } else { return curvenessList[parityCorrection + edgeIndex]; } } /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/sectorHelper.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/sectorHelper.js ***! \***************************************************************/ /*! exports provided: getSectorCornerRadius */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSectorCornerRadius", function() { return getSectorCornerRadius; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/contain/text.js */ "./node_modules/zrender/lib/contain/text.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getSectorCornerRadius(model, shape, zeroIfNull) { var cornerRadius = model.get('borderRadius'); if (cornerRadius == null) { return zeroIfNull ? { cornerRadius: 0 } : null; } if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(cornerRadius)) { cornerRadius = [cornerRadius, cornerRadius, cornerRadius, cornerRadius]; } var dr = Math.abs(shape.r || 0 - shape.r0 || 0); return { cornerRadius: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(cornerRadius, function (cr) { return Object(zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(cr, dr); }) }; } /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/treeHelper.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/treeHelper.js ***! \*************************************************************/ /*! exports provided: retrieveTargetInfo, getPathToRoot, aboveViewRoot, wrapTreePathInfo */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retrieveTargetInfo", function() { return retrieveTargetInfo; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPathToRoot", function() { return getPathToRoot; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "aboveViewRoot", function() { return aboveViewRoot; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapTreePathInfo", function() { return wrapTreePathInfo; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function retrieveTargetInfo(payload, validPayloadTypes, seriesModel) { if (payload && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"](validPayloadTypes, payload.type) >= 0) { var root = seriesModel.getData().tree.root; var targetNode = payload.targetNode; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](targetNode)) { targetNode = root.getNodeById(targetNode); } if (targetNode && root.contains(targetNode)) { return { node: targetNode }; } var targetNodeId = payload.targetNodeId; if (targetNodeId != null && (targetNode = root.getNodeById(targetNodeId))) { return { node: targetNode }; } } } // Not includes the given node at the last item. function getPathToRoot(node) { var path = []; while (node) { node = node.parentNode; node && path.push(node); } return path.reverse(); } function aboveViewRoot(viewRoot, node) { var viewPath = getPathToRoot(viewRoot); return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"](viewPath, node) >= 0; } // From root to the input node (the input node will be included). function wrapTreePathInfo(node, seriesModel) { var treePathInfo = []; while (node) { var nodeDataIndex = node.dataIndex; treePathInfo.push({ name: node.name, dataIndex: nodeDataIndex, value: seriesModel.getRawValue(nodeDataIndex) }); node = node.parentNode; } treePathInfo.reverse(); return treePathInfo; } /***/ }), /***/ "./node_modules/echarts/lib/chart/helper/whiskerBoxCommon.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/chart/helper/whiskerBoxCommon.js ***! \*******************************************************************/ /*! exports provided: WhiskerBoxCommonMixin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WhiskerBoxCommonMixin", function() { return WhiskerBoxCommonMixin; }); /* harmony import */ var _createSeriesDataSimply_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createSeriesDataSimply.js */ "./node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _data_helper_dimensionHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../data/helper/dimensionHelper.js */ "./node_modules/echarts/lib/data/helper/dimensionHelper.js"); /* harmony import */ var _data_helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../data/helper/sourceHelper.js */ "./node_modules/echarts/lib/data/helper/sourceHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var WhiskerBoxCommonMixin = /** @class */function () { function WhiskerBoxCommonMixin() {} /** * @private */ WhiskerBoxCommonMixin.prototype._hasEncodeRule = function (key) { var encodeRules = this.getEncode(); return encodeRules && encodeRules.get(key) != null; }; /** * @override */ WhiskerBoxCommonMixin.prototype.getInitialData = function (option, ecModel) { // When both types of xAxis and yAxis are 'value', layout is // needed to be specified by user. Otherwise, layout can be // judged by which axis is category. var ordinalMeta; var xAxisModel = ecModel.getComponent('xAxis', this.get('xAxisIndex')); var yAxisModel = ecModel.getComponent('yAxis', this.get('yAxisIndex')); var xAxisType = xAxisModel.get('type'); var yAxisType = yAxisModel.get('type'); var addOrdinal; // FIXME // Consider time axis. if (xAxisType === 'category') { option.layout = 'horizontal'; ordinalMeta = xAxisModel.getOrdinalMeta(); addOrdinal = !this._hasEncodeRule('x'); } else if (yAxisType === 'category') { option.layout = 'vertical'; ordinalMeta = yAxisModel.getOrdinalMeta(); addOrdinal = !this._hasEncodeRule('y'); } else { option.layout = option.layout || 'horizontal'; } var coordDims = ['x', 'y']; var baseAxisDimIndex = option.layout === 'horizontal' ? 0 : 1; var baseAxisDim = this._baseAxisDim = coordDims[baseAxisDimIndex]; var otherAxisDim = coordDims[1 - baseAxisDimIndex]; var axisModels = [xAxisModel, yAxisModel]; var baseAxisType = axisModels[baseAxisDimIndex].get('type'); var otherAxisType = axisModels[1 - baseAxisDimIndex].get('type'); var data = option.data; // Clone a new data for next setOption({}) usage. // Avoid modifying current data will affect further update. if (data && addOrdinal) { var newOptionData_1 = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](data, function (item, index) { var newItem; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](item)) { newItem = item.slice(); // Modify current using data. item.unshift(index); } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](item.value)) { newItem = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"]({}, item); newItem.value = newItem.value.slice(); // Modify current using data. item.value.unshift(index); } else { newItem = item; } newOptionData_1.push(newItem); }); option.data = newOptionData_1; } var defaultValueDimensions = this.defaultValueDimensions; var coordDimensions = [{ name: baseAxisDim, type: Object(_data_helper_dimensionHelper_js__WEBPACK_IMPORTED_MODULE_2__["getDimensionTypeByAxis"])(baseAxisType), ordinalMeta: ordinalMeta, otherDims: { tooltip: false, itemName: 0 }, dimsDef: ['base'] }, { name: otherAxisDim, type: Object(_data_helper_dimensionHelper_js__WEBPACK_IMPORTED_MODULE_2__["getDimensionTypeByAxis"])(otherAxisType), dimsDef: defaultValueDimensions.slice() }]; return Object(_createSeriesDataSimply_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, { coordDimensions: coordDimensions, dimensionsCount: defaultValueDimensions.length + 1, encodeDefaulter: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"](_data_helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_3__["makeSeriesEncodeForAxisCoordSys"], coordDimensions, this) }); }; /** * If horizontal, base axis is x, otherwise y. * @override */ WhiskerBoxCommonMixin.prototype.getBaseAxis = function () { var dim = this._baseAxisDim; return this.ecModel.getComponent(dim + 'Axis', this.get(dim + 'AxisIndex')).axis; }; return WhiskerBoxCommonMixin; }(); ; /***/ }), /***/ "./node_modules/echarts/lib/chart/line/LineSeries.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/line/LineSeries.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helper/createSeriesData.js */ "./node_modules/echarts/lib/chart/helper/createSeriesData.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var LineSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LineSeriesModel, _super); function LineSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = LineSeriesModel.type; _this.hasSymbolVisual = true; return _this; } LineSeriesModel.prototype.getInitialData = function (option) { if (true) { var coordSys = option.coordinateSystem; if (coordSys !== 'polar' && coordSys !== 'cartesian2d') { throw new Error('Line not support coordinateSystem besides cartesian and polar'); } } return Object(_helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"])(null, this, { useEncodeDefaulter: true }); }; LineSeriesModel.prototype.getLegendIcon = function (opt) { var group = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Group"](); var line = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_3__["createSymbol"])('line', 0, opt.itemHeight / 2, opt.itemWidth, 0, opt.lineStyle.stroke, false); group.add(line); line.setStyle(opt.lineStyle); var visualType = this.getData().getVisual('symbol'); var visualRotate = this.getData().getVisual('symbolRotate'); var symbolType = visualType === 'none' ? 'circle' : visualType; // Symbol size is 80% when there is a line var size = opt.itemHeight * 0.8; var symbol = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_3__["createSymbol"])(symbolType, (opt.itemWidth - size) / 2, (opt.itemHeight - size) / 2, size, size, opt.itemStyle.fill); group.add(symbol); symbol.setStyle(opt.itemStyle); var symbolRotate = opt.iconRotate === 'inherit' ? visualRotate : opt.iconRotate || 0; symbol.rotation = symbolRotate * Math.PI / 180; symbol.setOrigin([opt.itemWidth / 2, opt.itemHeight / 2]); if (symbolType.indexOf('empty') > -1) { symbol.style.stroke = symbol.style.fill; symbol.style.fill = '#fff'; symbol.style.lineWidth = 2; } return group; }; LineSeriesModel.type = 'series.line'; LineSeriesModel.dependencies = ['grid', 'polar']; LineSeriesModel.defaultOption = { // zlevel: 0, z: 3, coordinateSystem: 'cartesian2d', legendHoverLink: true, clip: true, label: { position: 'top' }, // itemStyle: { // }, endLabel: { show: false, valueAnimation: true, distance: 8 }, lineStyle: { width: 2, type: 'solid' }, emphasis: { scale: true }, // areaStyle: { // origin of areaStyle. Valid values: // `'auto'/null/undefined`: from axisLine to data // `'start'`: from min to data // `'end'`: from data to max // origin: 'auto' // }, // false, 'start', 'end', 'middle' step: false, // Disabled if step is true smooth: false, smoothMonotone: null, symbol: 'emptyCircle', symbolSize: 4, symbolRotate: null, showSymbol: true, // `false`: follow the label interval strategy. // `true`: show all symbols. // `'auto'`: If possible, show all symbols, otherwise // follow the label interval strategy. showAllSymbol: 'auto', // Whether to connect break point. connectNulls: false, // Sampling for large data. Can be: 'average', 'max', 'min', 'sum', 'lttb'. sampling: 'none', animationEasing: 'linear', // Disable progressive progressive: 0, hoverLayerThreshold: Infinity, universalTransition: { divideShape: 'clone' }, triggerLineEvent: false }; return LineSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /* harmony default export */ __webpack_exports__["default"] = (LineSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/line/LineView.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/chart/line/LineView.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _helper_SymbolDraw_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/SymbolDraw.js */ "./node_modules/echarts/lib/chart/helper/SymbolDraw.js"); /* harmony import */ var _helper_Symbol_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helper/Symbol.js */ "./node_modules/echarts/lib/chart/helper/Symbol.js"); /* harmony import */ var _lineAnimationDiff_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lineAnimationDiff.js */ "./node_modules/echarts/lib/chart/line/lineAnimationDiff.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _poly_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./poly.js */ "./node_modules/echarts/lib/chart/line/poly.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/chart/line/helper.js"); /* harmony import */ var _helper_createClipPathFromCoordSys_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../helper/createClipPathFromCoordSys.js */ "./node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js"); /* harmony import */ var _coord_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../coord/CoordinateSystem.js */ "./node_modules/echarts/lib/coord/CoordinateSystem.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _helper_labelHelper_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../helper/labelHelper.js */ "./node_modules/echarts/lib/chart/helper/labelHelper.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _util_vendor_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../util/vendor.js */ "./node_modules/echarts/lib/util/vendor.js"); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* harmony import */ var zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! zrender/lib/tool/color.js */ "./node_modules/zrender/lib/tool/color.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // FIXME step not support polar function isPointsSame(points1, points2) { if (points1.length !== points2.length) { return; } for (var i = 0; i < points1.length; i++) { if (points1[i] !== points2[i]) { return; } } return true; } function bboxFromPoints(points) { var minX = Infinity; var minY = Infinity; var maxX = -Infinity; var maxY = -Infinity; for (var i = 0; i < points.length;) { var x = points[i++]; var y = points[i++]; if (!isNaN(x)) { minX = Math.min(x, minX); maxX = Math.max(x, maxX); } if (!isNaN(y)) { minY = Math.min(y, minY); maxY = Math.max(y, maxY); } } return [[minX, minY], [maxX, maxY]]; } function getBoundingDiff(points1, points2) { var _a = bboxFromPoints(points1), min1 = _a[0], max1 = _a[1]; var _b = bboxFromPoints(points2), min2 = _b[0], max2 = _b[1]; // Get a max value from each corner of two boundings. return Math.max(Math.abs(min1[0] - min2[0]), Math.abs(min1[1] - min2[1]), Math.abs(max1[0] - max2[0]), Math.abs(max1[1] - max2[1])); } function getSmooth(smooth) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isNumber"](smooth) ? smooth : smooth ? 0.5 : 0; } function getStackedOnPoints(coordSys, data, dataCoordInfo) { if (!dataCoordInfo.valueDim) { return []; } var len = data.count(); var points = Object(_util_vendor_js__WEBPACK_IMPORTED_MODULE_16__["createFloat32Array"])(len * 2); for (var idx = 0; idx < len; idx++) { var pt = Object(_helper_js__WEBPACK_IMPORTED_MODULE_9__["getStackedOnPoint"])(dataCoordInfo, coordSys, data, idx); points[idx * 2] = pt[0]; points[idx * 2 + 1] = pt[1]; } return points; } /** * Filter the null data and extend data for step considering `stepTurnAt` * * @param points data to convert, that may containing null * @param basePoints base data to reference, used only for areaStyle points * @param coordSys coordinate system * @param stepTurnAt 'start' | 'end' | 'middle' | true * @param connectNulls whether to connect nulls * @returns converted point positions */ function turnPointsIntoStep(points, basePoints, coordSys, stepTurnAt, connectNulls) { var baseAxis = coordSys.getBaseAxis(); var baseIndex = baseAxis.dim === 'x' || baseAxis.dim === 'radius' ? 0 : 1; var stepPoints = []; var i = 0; var stepPt = []; var pt = []; var nextPt = []; var filteredPoints = []; if (connectNulls) { for (i = 0; i < points.length; i += 2) { /** * For areaStyle of stepped lines, `stackedOnPoints` should be * filtered the same as `points` so that the base axis values * should stay the same as the lines above. See #20021 */ var reference = basePoints || points; if (!isNaN(reference[i]) && !isNaN(reference[i + 1])) { filteredPoints.push(points[i], points[i + 1]); } } points = filteredPoints; } for (i = 0; i < points.length - 2; i += 2) { nextPt[0] = points[i + 2]; nextPt[1] = points[i + 3]; pt[0] = points[i]; pt[1] = points[i + 1]; stepPoints.push(pt[0], pt[1]); switch (stepTurnAt) { case 'end': stepPt[baseIndex] = nextPt[baseIndex]; stepPt[1 - baseIndex] = pt[1 - baseIndex]; stepPoints.push(stepPt[0], stepPt[1]); break; case 'middle': var middle = (pt[baseIndex] + nextPt[baseIndex]) / 2; var stepPt2 = []; stepPt[baseIndex] = stepPt2[baseIndex] = middle; stepPt[1 - baseIndex] = pt[1 - baseIndex]; stepPt2[1 - baseIndex] = nextPt[1 - baseIndex]; stepPoints.push(stepPt[0], stepPt[1]); stepPoints.push(stepPt2[0], stepPt2[1]); break; default: // default is start stepPt[baseIndex] = pt[baseIndex]; stepPt[1 - baseIndex] = nextPt[1 - baseIndex]; stepPoints.push(stepPt[0], stepPt[1]); } } // Last points stepPoints.push(points[i++], points[i++]); return stepPoints; } /** * Clip color stops to edge. Avoid creating too large gradients. * Which may lead to blurry when GPU acceleration is enabled. See #15680 * * The stops has been sorted from small to large. */ function clipColorStops(colorStops, maxSize) { var newColorStops = []; var len = colorStops.length; // coord will always < 0 in prevOutOfRangeColorStop. var prevOutOfRangeColorStop; var prevInRangeColorStop; function lerpStop(stop0, stop1, clippedCoord) { var coord0 = stop0.coord; var p = (clippedCoord - coord0) / (stop1.coord - coord0); var color = Object(zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_18__["lerp"])(p, [stop0.color, stop1.color]); return { coord: clippedCoord, color: color }; } for (var i = 0; i < len; i++) { var stop_1 = colorStops[i]; var coord = stop_1.coord; if (coord < 0) { prevOutOfRangeColorStop = stop_1; } else if (coord > maxSize) { if (prevInRangeColorStop) { newColorStops.push(lerpStop(prevInRangeColorStop, stop_1, maxSize)); } else if (prevOutOfRangeColorStop) { // If there are two stops and coord range is between these two stops newColorStops.push(lerpStop(prevOutOfRangeColorStop, stop_1, 0), lerpStop(prevOutOfRangeColorStop, stop_1, maxSize)); } // All following stop will be out of range. So just ignore them. break; } else { if (prevOutOfRangeColorStop) { newColorStops.push(lerpStop(prevOutOfRangeColorStop, stop_1, 0)); // Reset prevOutOfRangeColorStop = null; } newColorStops.push(stop_1); prevInRangeColorStop = stop_1; } } return newColorStops; } function getVisualGradient(data, coordSys, api) { var visualMetaList = data.getVisual('visualMeta'); if (!visualMetaList || !visualMetaList.length || !data.count()) { // When data.count() is 0, gradient range can not be calculated. return; } if (coordSys.type !== 'cartesian2d') { if (true) { console.warn('Visual map on line style is only supported on cartesian2d.'); } return; } var coordDim; var visualMeta; for (var i = visualMetaList.length - 1; i >= 0; i--) { var dimInfo = data.getDimensionInfo(visualMetaList[i].dimension); coordDim = dimInfo && dimInfo.coordDim; // Can only be x or y if (coordDim === 'x' || coordDim === 'y') { visualMeta = visualMetaList[i]; break; } } if (!visualMeta) { if (true) { console.warn('Visual map on line style only support x or y dimension.'); } return; } // If the area to be rendered is bigger than area defined by LinearGradient, // the canvas spec prescribes that the color of the first stop and the last // stop should be used. But if two stops are added at offset 0, in effect // browsers use the color of the second stop to render area outside // LinearGradient. So we can only infinitesimally extend area defined in // LinearGradient to render `outerColors`. var axis = coordSys.getAxis(coordDim); // dataToCoord mapping may not be linear, but must be monotonic. var colorStops = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](visualMeta.stops, function (stop) { // offset will be calculated later. return { coord: axis.toGlobalCoord(axis.dataToCoord(stop.value)), color: stop.color }; }); var stopLen = colorStops.length; var outerColors = visualMeta.outerColors.slice(); if (stopLen && colorStops[0].coord > colorStops[stopLen - 1].coord) { colorStops.reverse(); outerColors.reverse(); } var colorStopsInRange = clipColorStops(colorStops, coordDim === 'x' ? api.getWidth() : api.getHeight()); var inRangeStopLen = colorStopsInRange.length; if (!inRangeStopLen && stopLen) { // All stops are out of range. All will be the same color. return colorStops[0].coord < 0 ? outerColors[1] ? outerColors[1] : colorStops[stopLen - 1].color : outerColors[0] ? outerColors[0] : colorStops[0].color; } var tinyExtent = 10; // Arbitrary value: 10px var minCoord = colorStopsInRange[0].coord - tinyExtent; var maxCoord = colorStopsInRange[inRangeStopLen - 1].coord + tinyExtent; var coordSpan = maxCoord - minCoord; if (coordSpan < 1e-3) { return 'transparent'; } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](colorStopsInRange, function (stop) { stop.offset = (stop.coord - minCoord) / coordSpan; }); colorStopsInRange.push({ // NOTE: inRangeStopLen may still be 0 if stoplen is zero. offset: inRangeStopLen ? colorStopsInRange[inRangeStopLen - 1].offset : 0.5, color: outerColors[1] || 'transparent' }); colorStopsInRange.unshift({ offset: inRangeStopLen ? colorStopsInRange[0].offset : 0.5, color: outerColors[0] || 'transparent' }); var gradient = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["LinearGradient"](0, 0, 0, 0, colorStopsInRange, true); gradient[coordDim] = minCoord; gradient[coordDim + '2'] = maxCoord; return gradient; } function getIsIgnoreFunc(seriesModel, data, coordSys) { var showAllSymbol = seriesModel.get('showAllSymbol'); var isAuto = showAllSymbol === 'auto'; if (showAllSymbol && !isAuto) { return; } var categoryAxis = coordSys.getAxesByScale('ordinal')[0]; if (!categoryAxis) { return; } // Note that category label interval strategy might bring some weird effect // in some scenario: users may wonder why some of the symbols are not // displayed. So we show all symbols as possible as we can. if (isAuto // Simplify the logic, do not determine label overlap here. && canShowAllSymbolForCategory(categoryAxis, data)) { return; } // Otherwise follow the label interval strategy on category axis. var categoryDataDim = data.mapDimension(categoryAxis.dim); var labelMap = {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](categoryAxis.getViewLabels(), function (labelItem) { var ordinalNumber = categoryAxis.scale.getRawOrdinalNumber(labelItem.tickValue); labelMap[ordinalNumber] = 1; }); return function (dataIndex) { return !labelMap.hasOwnProperty(data.get(categoryDataDim, dataIndex)); }; } function canShowAllSymbolForCategory(categoryAxis, data) { // In most cases, line is monotonous on category axis, and the label size // is close with each other. So we check the symbol size and some of the // label size alone with the category axis to estimate whether all symbol // can be shown without overlap. var axisExtent = categoryAxis.getExtent(); var availSize = Math.abs(axisExtent[1] - axisExtent[0]) / categoryAxis.scale.count(); isNaN(availSize) && (availSize = 0); // 0/0 is NaN. // Sampling some points, max 5. var dataLen = data.count(); var step = Math.max(1, Math.round(dataLen / 5)); for (var dataIndex = 0; dataIndex < dataLen; dataIndex += step) { if (_helper_Symbol_js__WEBPACK_IMPORTED_MODULE_3__["default"].getSymbolSize(data, dataIndex // Only for cartesian, where `isHorizontal` exists. )[categoryAxis.isHorizontal() ? 1 : 0] // Empirical number * 1.5 > availSize) { return false; } } return true; } function isPointNull(x, y) { return isNaN(x) || isNaN(y); } function getLastIndexNotNull(points) { var len = points.length / 2; for (; len > 0; len--) { if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) { break; } } return len - 1; } function getPointAtIndex(points, idx) { return [points[idx * 2], points[idx * 2 + 1]]; } function getIndexRange(points, xOrY, dim) { var len = points.length / 2; var dimIdx = dim === 'x' ? 0 : 1; var a; var b; var prevIndex = 0; var nextIndex = -1; for (var i = 0; i < len; i++) { b = points[i * 2 + dimIdx]; if (isNaN(b) || isNaN(points[i * 2 + 1 - dimIdx])) { continue; } if (i === 0) { a = b; continue; } if (a <= xOrY && b >= xOrY || a >= xOrY && b <= xOrY) { nextIndex = i; break; } prevIndex = i; a = b; } return { range: [prevIndex, nextIndex], t: (xOrY - a) / (b - a) }; } function anyStateShowEndLabel(seriesModel) { if (seriesModel.get(['endLabel', 'show'])) { return true; } for (var i = 0; i < _util_states_js__WEBPACK_IMPORTED_MODULE_12__["SPECIAL_STATES"].length; i++) { if (seriesModel.get([_util_states_js__WEBPACK_IMPORTED_MODULE_12__["SPECIAL_STATES"][i], 'endLabel', 'show'])) { return true; } } return false; } function createLineClipPath(lineView, coordSys, hasAnimation, seriesModel) { if (Object(_coord_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_11__["isCoordinateSystemType"])(coordSys, 'cartesian2d')) { var endLabelModel_1 = seriesModel.getModel('endLabel'); var valueAnimation_1 = endLabelModel_1.get('valueAnimation'); var data_1 = seriesModel.getData(); var labelAnimationRecord_1 = { lastFrameIndex: 0 }; var during = anyStateShowEndLabel(seriesModel) ? function (percent, clipRect) { lineView._endLabelOnDuring(percent, clipRect, data_1, labelAnimationRecord_1, valueAnimation_1, endLabelModel_1, coordSys); } : null; var isHorizontal = coordSys.getBaseAxis().isHorizontal(); var clipPath = Object(_helper_createClipPathFromCoordSys_js__WEBPACK_IMPORTED_MODULE_10__["createGridClipPath"])(coordSys, hasAnimation, seriesModel, function () { var endLabel = lineView._endLabel; if (endLabel && hasAnimation) { if (labelAnimationRecord_1.originalX != null) { endLabel.attr({ x: labelAnimationRecord_1.originalX, y: labelAnimationRecord_1.originalY }); } } }, during); // Expand clip shape to avoid clipping when line value exceeds axis if (!seriesModel.get('clip', true)) { var rectShape = clipPath.shape; var expandSize = Math.max(rectShape.width, rectShape.height); if (isHorizontal) { rectShape.y -= expandSize; rectShape.height += expandSize * 2; } else { rectShape.x -= expandSize; rectShape.width += expandSize * 2; } } // Set to the final frame. To make sure label layout is right. if (during) { during(1, clipPath); } return clipPath; } else { if (true) { if (seriesModel.get(['endLabel', 'show'])) { console.warn('endLabel is not supported for lines in polar systems.'); } } return Object(_helper_createClipPathFromCoordSys_js__WEBPACK_IMPORTED_MODULE_10__["createPolarClipPath"])(coordSys, hasAnimation, seriesModel); } } function getEndLabelStateSpecified(endLabelModel, coordSys) { var baseAxis = coordSys.getBaseAxis(); var isHorizontal = baseAxis.isHorizontal(); var isBaseInversed = baseAxis.inverse; var align = isHorizontal ? isBaseInversed ? 'right' : 'left' : 'center'; var verticalAlign = isHorizontal ? 'middle' : isBaseInversed ? 'top' : 'bottom'; return { normal: { align: endLabelModel.get('align') || align, verticalAlign: endLabelModel.get('verticalAlign') || verticalAlign } }; } var LineView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LineView, _super); function LineView() { return _super !== null && _super.apply(this, arguments) || this; } LineView.prototype.init = function () { var lineGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["Group"](); var symbolDraw = new _helper_SymbolDraw_js__WEBPACK_IMPORTED_MODULE_2__["default"](); this.group.add(symbolDraw.group); this._symbolDraw = symbolDraw; this._lineGroup = lineGroup; this._changePolyState = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](this._changePolyState, this); }; LineView.prototype.render = function (seriesModel, ecModel, api) { var coordSys = seriesModel.coordinateSystem; var group = this.group; var data = seriesModel.getData(); var lineStyleModel = seriesModel.getModel('lineStyle'); var areaStyleModel = seriesModel.getModel('areaStyle'); var points = data.getLayout('points') || []; var isCoordSysPolar = coordSys.type === 'polar'; var prevCoordSys = this._coordSys; var symbolDraw = this._symbolDraw; var polyline = this._polyline; var polygon = this._polygon; var lineGroup = this._lineGroup; var hasAnimation = !ecModel.ssr && seriesModel.get('animation'); var isAreaChart = !areaStyleModel.isEmpty(); var valueOrigin = areaStyleModel.get('origin'); var dataCoordInfo = Object(_helper_js__WEBPACK_IMPORTED_MODULE_9__["prepareDataCoordInfo"])(coordSys, data, valueOrigin); var stackedOnPoints = isAreaChart && getStackedOnPoints(coordSys, data, dataCoordInfo); var showSymbol = seriesModel.get('showSymbol'); var connectNulls = seriesModel.get('connectNulls'); var isIgnoreFunc = showSymbol && !isCoordSysPolar && getIsIgnoreFunc(seriesModel, data, coordSys); // Remove temporary symbols var oldData = this._data; oldData && oldData.eachItemGraphicEl(function (el, idx) { if (el.__temp) { group.remove(el); oldData.setItemGraphicEl(idx, null); } }); // Remove previous created symbols if showSymbol changed to false if (!showSymbol) { symbolDraw.remove(); } group.add(lineGroup); // FIXME step not support polar var step = !isCoordSysPolar ? seriesModel.get('step') : false; var clipShapeForSymbol; if (coordSys && coordSys.getArea && seriesModel.get('clip', true)) { clipShapeForSymbol = coordSys.getArea(); // Avoid float number rounding error for symbol on the edge of axis extent. // See #7913 and `test/dataZoom-clip.html`. if (clipShapeForSymbol.width != null) { clipShapeForSymbol.x -= 0.1; clipShapeForSymbol.y -= 0.1; clipShapeForSymbol.width += 0.2; clipShapeForSymbol.height += 0.2; } else if (clipShapeForSymbol.r0) { clipShapeForSymbol.r0 -= 0.5; clipShapeForSymbol.r += 0.5; } } this._clipShapeForSymbol = clipShapeForSymbol; var visualColor = getVisualGradient(data, coordSys, api) || data.getVisual('style')[data.getVisual('drawType')]; // Initialization animation or coordinate system changed if (!(polyline && prevCoordSys.type === coordSys.type && step === this._step)) { showSymbol && symbolDraw.updateData(data, { isIgnore: isIgnoreFunc, clipShape: clipShapeForSymbol, disableAnimation: true, getSymbolPoint: function (idx) { return [points[idx * 2], points[idx * 2 + 1]]; } }); hasAnimation && this._initSymbolLabelAnimation(data, coordSys, clipShapeForSymbol); if (step) { if (stackedOnPoints) { stackedOnPoints = turnPointsIntoStep(stackedOnPoints, points, coordSys, step, connectNulls); } // TODO If stacked series is not step points = turnPointsIntoStep(points, null, coordSys, step, connectNulls); } polyline = this._newPolyline(points); if (isAreaChart) { polygon = this._newPolygon(points, stackedOnPoints); } // If areaStyle is removed else if (polygon) { lineGroup.remove(polygon); polygon = this._polygon = null; } // NOTE: Must update _endLabel before setClipPath. if (!isCoordSysPolar) { this._initOrUpdateEndLabel(seriesModel, coordSys, Object(_util_format_js__WEBPACK_IMPORTED_MODULE_17__["convertToColorString"])(visualColor)); } lineGroup.setClipPath(createLineClipPath(this, coordSys, true, seriesModel)); } else { if (isAreaChart && !polygon) { // If areaStyle is added polygon = this._newPolygon(points, stackedOnPoints); } else if (polygon && !isAreaChart) { // If areaStyle is removed lineGroup.remove(polygon); polygon = this._polygon = null; } // NOTE: Must update _endLabel before setClipPath. if (!isCoordSysPolar) { this._initOrUpdateEndLabel(seriesModel, coordSys, Object(_util_format_js__WEBPACK_IMPORTED_MODULE_17__["convertToColorString"])(visualColor)); } // Update clipPath var oldClipPath = lineGroup.getClipPath(); if (oldClipPath) { var newClipPath = createLineClipPath(this, coordSys, false, seriesModel); _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["initProps"](oldClipPath, { shape: newClipPath.shape }, seriesModel); } else { lineGroup.setClipPath(createLineClipPath(this, coordSys, true, seriesModel)); } // Always update, or it is wrong in the case turning on legend // because points are not changed. showSymbol && symbolDraw.updateData(data, { isIgnore: isIgnoreFunc, clipShape: clipShapeForSymbol, disableAnimation: true, getSymbolPoint: function (idx) { return [points[idx * 2], points[idx * 2 + 1]]; } }); // In the case data zoom triggered refreshing frequently // Data may not change if line has a category axis. So it should animate nothing. if (!isPointsSame(this._stackedOnPoints, stackedOnPoints) || !isPointsSame(this._points, points)) { if (hasAnimation) { this._doUpdateAnimation(data, stackedOnPoints, coordSys, api, step, valueOrigin, connectNulls); } else { // Not do it in update with animation if (step) { if (stackedOnPoints) { stackedOnPoints = turnPointsIntoStep(stackedOnPoints, points, coordSys, step, connectNulls); } // TODO If stacked series is not step points = turnPointsIntoStep(points, null, coordSys, step, connectNulls); } polyline.setShape({ points: points }); polygon && polygon.setShape({ points: points, stackedOnPoints: stackedOnPoints }); } } } var emphasisModel = seriesModel.getModel('emphasis'); var focus = emphasisModel.get('focus'); var blurScope = emphasisModel.get('blurScope'); var emphasisDisabled = emphasisModel.get('disabled'); polyline.useStyle(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]( // Use color in lineStyle first lineStyleModel.getLineStyle(), { fill: 'none', stroke: visualColor, lineJoin: 'bevel' })); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_12__["setStatesStylesFromModel"])(polyline, seriesModel, 'lineStyle'); if (polyline.style.lineWidth > 0 && seriesModel.get(['emphasis', 'lineStyle', 'width']) === 'bolder') { var emphasisLineStyle = polyline.getState('emphasis').style; emphasisLineStyle.lineWidth = +polyline.style.lineWidth + 1; } // Needs seriesIndex for focus Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_15__["getECData"])(polyline).seriesIndex = seriesModel.seriesIndex; Object(_util_states_js__WEBPACK_IMPORTED_MODULE_12__["toggleHoverEmphasis"])(polyline, focus, blurScope, emphasisDisabled); var smooth = getSmooth(seriesModel.get('smooth')); var smoothMonotone = seriesModel.get('smoothMonotone'); polyline.setShape({ smooth: smooth, smoothMonotone: smoothMonotone, connectNulls: connectNulls }); if (polygon) { var stackedOnSeries = data.getCalculationInfo('stackedOnSeries'); var stackedOnSmooth = 0; polygon.useStyle(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"](areaStyleModel.getAreaStyle(), { fill: visualColor, opacity: 0.7, lineJoin: 'bevel', decal: data.getVisual('style').decal })); if (stackedOnSeries) { stackedOnSmooth = getSmooth(stackedOnSeries.get('smooth')); } polygon.setShape({ smooth: smooth, stackedOnSmooth: stackedOnSmooth, smoothMonotone: smoothMonotone, connectNulls: connectNulls }); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_12__["setStatesStylesFromModel"])(polygon, seriesModel, 'areaStyle'); // Needs seriesIndex for focus Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_15__["getECData"])(polygon).seriesIndex = seriesModel.seriesIndex; Object(_util_states_js__WEBPACK_IMPORTED_MODULE_12__["toggleHoverEmphasis"])(polygon, focus, blurScope, emphasisDisabled); } var changePolyState = this._changePolyState; data.eachItemGraphicEl(function (el) { // Switch polyline / polygon state if element changed its state. el && (el.onHoverStateChange = changePolyState); }); this._polyline.onHoverStateChange = changePolyState; this._data = data; // Save the coordinate system for transition animation when data changed this._coordSys = coordSys; this._stackedOnPoints = stackedOnPoints; this._points = points; this._step = step; this._valueOrigin = valueOrigin; if (seriesModel.get('triggerLineEvent')) { this.packEventData(seriesModel, polyline); polygon && this.packEventData(seriesModel, polygon); } }; LineView.prototype.packEventData = function (seriesModel, el) { Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_15__["getECData"])(el).eventData = { componentType: 'series', componentSubType: 'line', componentIndex: seriesModel.componentIndex, seriesIndex: seriesModel.seriesIndex, seriesName: seriesModel.name, seriesType: 'line' }; }; LineView.prototype.highlight = function (seriesModel, ecModel, api, payload) { var data = seriesModel.getData(); var dataIndex = _util_model_js__WEBPACK_IMPORTED_MODULE_6__["queryDataIndex"](data, payload); this._changePolyState('emphasis'); if (!(dataIndex instanceof Array) && dataIndex != null && dataIndex >= 0) { var points = data.getLayout('points'); var symbol = data.getItemGraphicEl(dataIndex); if (!symbol) { // Create a temporary symbol if it is not exists var x = points[dataIndex * 2]; var y = points[dataIndex * 2 + 1]; if (isNaN(x) || isNaN(y)) { // Null data return; } // fix #11360: shouldn't draw symbol outside clipShapeForSymbol if (this._clipShapeForSymbol && !this._clipShapeForSymbol.contain(x, y)) { return; } var zlevel = seriesModel.get('zlevel') || 0; var z = seriesModel.get('z') || 0; symbol = new _helper_Symbol_js__WEBPACK_IMPORTED_MODULE_3__["default"](data, dataIndex); symbol.x = x; symbol.y = y; symbol.setZ(zlevel, z); // ensure label text of the temporary symbol is in front of line and area polygon var symbolLabel = symbol.getSymbolPath().getTextContent(); if (symbolLabel) { symbolLabel.zlevel = zlevel; symbolLabel.z = z; symbolLabel.z2 = this._polyline.z2 + 1; } symbol.__temp = true; data.setItemGraphicEl(dataIndex, symbol); // Stop scale animation symbol.stopSymbolAnimation(true); this.group.add(symbol); } symbol.highlight(); } else { // Highlight whole series _view_Chart_js__WEBPACK_IMPORTED_MODULE_8__["default"].prototype.highlight.call(this, seriesModel, ecModel, api, payload); } }; LineView.prototype.downplay = function (seriesModel, ecModel, api, payload) { var data = seriesModel.getData(); var dataIndex = _util_model_js__WEBPACK_IMPORTED_MODULE_6__["queryDataIndex"](data, payload); this._changePolyState('normal'); if (dataIndex != null && dataIndex >= 0) { var symbol = data.getItemGraphicEl(dataIndex); if (symbol) { if (symbol.__temp) { data.setItemGraphicEl(dataIndex, null); this.group.remove(symbol); } else { symbol.downplay(); } } } else { // FIXME // can not downplay completely. // Downplay whole series _view_Chart_js__WEBPACK_IMPORTED_MODULE_8__["default"].prototype.downplay.call(this, seriesModel, ecModel, api, payload); } }; LineView.prototype._changePolyState = function (toState) { var polygon = this._polygon; Object(_util_states_js__WEBPACK_IMPORTED_MODULE_12__["setStatesFlag"])(this._polyline, toState); polygon && Object(_util_states_js__WEBPACK_IMPORTED_MODULE_12__["setStatesFlag"])(polygon, toState); }; LineView.prototype._newPolyline = function (points) { var polyline = this._polyline; // Remove previous created polyline if (polyline) { this._lineGroup.remove(polyline); } polyline = new _poly_js__WEBPACK_IMPORTED_MODULE_7__["ECPolyline"]({ shape: { points: points }, segmentIgnoreThreshold: 2, z2: 10 }); this._lineGroup.add(polyline); this._polyline = polyline; return polyline; }; LineView.prototype._newPolygon = function (points, stackedOnPoints) { var polygon = this._polygon; // Remove previous created polygon if (polygon) { this._lineGroup.remove(polygon); } polygon = new _poly_js__WEBPACK_IMPORTED_MODULE_7__["ECPolygon"]({ shape: { points: points, stackedOnPoints: stackedOnPoints }, segmentIgnoreThreshold: 2 }); this._lineGroup.add(polygon); this._polygon = polygon; return polygon; }; LineView.prototype._initSymbolLabelAnimation = function (data, coordSys, clipShape) { var isHorizontalOrRadial; var isCoordSysPolar; var baseAxis = coordSys.getBaseAxis(); var isAxisInverse = baseAxis.inverse; if (coordSys.type === 'cartesian2d') { isHorizontalOrRadial = baseAxis.isHorizontal(); isCoordSysPolar = false; } else if (coordSys.type === 'polar') { isHorizontalOrRadial = baseAxis.dim === 'angle'; isCoordSysPolar = true; } var seriesModel = data.hostModel; var seriesDuration = seriesModel.get('animationDuration'); if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"](seriesDuration)) { seriesDuration = seriesDuration(null); } var seriesDelay = seriesModel.get('animationDelay') || 0; var seriesDelayValue = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"](seriesDelay) ? seriesDelay(null) : seriesDelay; data.eachItemGraphicEl(function (symbol, idx) { var el = symbol; if (el) { var point = [symbol.x, symbol.y]; var start = void 0; var end = void 0; var current = void 0; if (clipShape) { if (isCoordSysPolar) { var polarClip = clipShape; var coord = coordSys.pointToCoord(point); if (isHorizontalOrRadial) { start = polarClip.startAngle; end = polarClip.endAngle; current = -coord[1] / 180 * Math.PI; } else { start = polarClip.r0; end = polarClip.r; current = coord[0]; } } else { var gridClip = clipShape; if (isHorizontalOrRadial) { start = gridClip.x; end = gridClip.x + gridClip.width; current = symbol.x; } else { start = gridClip.y + gridClip.height; end = gridClip.y; current = symbol.y; } } } var ratio = end === start ? 0 : (current - start) / (end - start); if (isAxisInverse) { ratio = 1 - ratio; } var delay = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"](seriesDelay) ? seriesDelay(idx) : seriesDuration * ratio + seriesDelayValue; var symbolPath = el.getSymbolPath(); var text = symbolPath.getTextContent(); el.attr({ scaleX: 0, scaleY: 0 }); el.animateTo({ scaleX: 1, scaleY: 1 }, { duration: 200, setToFinal: true, delay: delay }); if (text) { text.animateFrom({ style: { opacity: 0 } }, { duration: 300, delay: delay }); } symbolPath.disableLabelAnimation = true; } }); }; LineView.prototype._initOrUpdateEndLabel = function (seriesModel, coordSys, inheritColor) { var endLabelModel = seriesModel.getModel('endLabel'); if (anyStateShowEndLabel(seriesModel)) { var data_2 = seriesModel.getData(); var polyline = this._polyline; // series may be filtered. var points = data_2.getLayout('points'); if (!points) { polyline.removeTextContent(); this._endLabel = null; return; } var endLabel = this._endLabel; if (!endLabel) { endLabel = this._endLabel = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["Text"]({ z2: 200 // should be higher than item symbol }); endLabel.ignoreClip = true; polyline.setTextContent(this._endLabel); polyline.disableLabelAnimation = true; } // Find last non-NaN data to display data var dataIndex = getLastIndexNotNull(points); if (dataIndex >= 0) { Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_13__["setLabelStyle"])(polyline, Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_13__["getLabelStatesModels"])(seriesModel, 'endLabel'), { inheritColor: inheritColor, labelFetcher: seriesModel, labelDataIndex: dataIndex, defaultText: function (dataIndex, opt, interpolatedValue) { return interpolatedValue != null ? Object(_helper_labelHelper_js__WEBPACK_IMPORTED_MODULE_14__["getDefaultInterpolatedLabel"])(data_2, interpolatedValue) : Object(_helper_labelHelper_js__WEBPACK_IMPORTED_MODULE_14__["getDefaultLabel"])(data_2, dataIndex); }, enableTextSetter: true }, getEndLabelStateSpecified(endLabelModel, coordSys)); polyline.textConfig.position = null; } } else if (this._endLabel) { this._polyline.removeTextContent(); this._endLabel = null; } }; LineView.prototype._endLabelOnDuring = function (percent, clipRect, data, animationRecord, valueAnimation, endLabelModel, coordSys) { var endLabel = this._endLabel; var polyline = this._polyline; if (endLabel) { // NOTE: Don't remove percent < 1. percent === 1 means the first frame during render. // The label is not prepared at this time. if (percent < 1 && animationRecord.originalX == null) { animationRecord.originalX = endLabel.x; animationRecord.originalY = endLabel.y; } var points = data.getLayout('points'); var seriesModel = data.hostModel; var connectNulls = seriesModel.get('connectNulls'); var precision = endLabelModel.get('precision'); var distance = endLabelModel.get('distance') || 0; var baseAxis = coordSys.getBaseAxis(); var isHorizontal = baseAxis.isHorizontal(); var isBaseInversed = baseAxis.inverse; var clipShape = clipRect.shape; var xOrY = isBaseInversed ? isHorizontal ? clipShape.x : clipShape.y + clipShape.height : isHorizontal ? clipShape.x + clipShape.width : clipShape.y; var distanceX = (isHorizontal ? distance : 0) * (isBaseInversed ? -1 : 1); var distanceY = (isHorizontal ? 0 : -distance) * (isBaseInversed ? -1 : 1); var dim = isHorizontal ? 'x' : 'y'; var dataIndexRange = getIndexRange(points, xOrY, dim); var indices = dataIndexRange.range; var diff = indices[1] - indices[0]; var value = void 0; if (diff >= 1) { // diff > 1 && connectNulls, which is on the null data. if (diff > 1 && !connectNulls) { var pt = getPointAtIndex(points, indices[0]); endLabel.attr({ x: pt[0] + distanceX, y: pt[1] + distanceY }); valueAnimation && (value = seriesModel.getRawValue(indices[0])); } else { var pt = polyline.getPointOn(xOrY, dim); pt && endLabel.attr({ x: pt[0] + distanceX, y: pt[1] + distanceY }); var startValue = seriesModel.getRawValue(indices[0]); var endValue = seriesModel.getRawValue(indices[1]); valueAnimation && (value = _util_model_js__WEBPACK_IMPORTED_MODULE_6__["interpolateRawValues"](data, precision, startValue, endValue, dataIndexRange.t)); } animationRecord.lastFrameIndex = indices[0]; } else { // If diff <= 0, which is the range is not found(Include NaN) // Choose the first point or last point. var idx = percent === 1 || animationRecord.lastFrameIndex > 0 ? indices[0] : 0; var pt = getPointAtIndex(points, idx); valueAnimation && (value = seriesModel.getRawValue(idx)); endLabel.attr({ x: pt[0] + distanceX, y: pt[1] + distanceY }); } if (valueAnimation) { var inner = Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_13__["labelInner"])(endLabel); if (typeof inner.setLabelText === 'function') { inner.setLabelText(value); } } } }; /** * @private */ // FIXME Two value axis LineView.prototype._doUpdateAnimation = function (data, stackedOnPoints, coordSys, api, step, valueOrigin, connectNulls) { var polyline = this._polyline; var polygon = this._polygon; var seriesModel = data.hostModel; var diff = Object(_lineAnimationDiff_js__WEBPACK_IMPORTED_MODULE_4__["default"])(this._data, data, this._stackedOnPoints, stackedOnPoints, this._coordSys, coordSys, this._valueOrigin, valueOrigin); var current = diff.current; var stackedOnCurrent = diff.stackedOnCurrent; var next = diff.next; var stackedOnNext = diff.stackedOnNext; if (step) { // TODO If stacked series is not step stackedOnCurrent = turnPointsIntoStep(diff.stackedOnCurrent, diff.current, coordSys, step, connectNulls); current = turnPointsIntoStep(diff.current, null, coordSys, step, connectNulls); stackedOnNext = turnPointsIntoStep(diff.stackedOnNext, diff.next, coordSys, step, connectNulls); next = turnPointsIntoStep(diff.next, null, coordSys, step, connectNulls); } // Don't apply animation if diff is large. // For better result and avoid memory explosion problems like // https://github.com/apache/incubator-echarts/issues/12229 if (getBoundingDiff(current, next) > 3000 || polygon && getBoundingDiff(stackedOnCurrent, stackedOnNext) > 3000) { polyline.stopAnimation(); polyline.setShape({ points: next }); if (polygon) { polygon.stopAnimation(); polygon.setShape({ points: next, stackedOnPoints: stackedOnNext }); } return; } polyline.shape.__points = diff.current; polyline.shape.points = current; var target = { shape: { points: next } }; // Also animate the original points. // If points reference is changed when turning into step line. if (diff.current !== current) { target.shape.__points = diff.next; } // Stop previous animation. polyline.stopAnimation(); _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["updateProps"](polyline, target, seriesModel); if (polygon) { polygon.setShape({ // Reuse the points with polyline. points: current, stackedOnPoints: stackedOnCurrent }); polygon.stopAnimation(); _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["updateProps"](polygon, { shape: { stackedOnPoints: stackedOnNext } }, seriesModel); // If use attr directly in updateProps. if (polyline.shape.points !== polygon.shape.points) { polygon.shape.points = polyline.shape.points; } } var updatedDataInfo = []; var diffStatus = diff.status; for (var i = 0; i < diffStatus.length; i++) { var cmd = diffStatus[i].cmd; if (cmd === '=') { var el = data.getItemGraphicEl(diffStatus[i].idx1); if (el) { updatedDataInfo.push({ el: el, ptIdx: i // Index of points }); } } } if (polyline.animators && polyline.animators.length) { polyline.animators[0].during(function () { polygon && polygon.dirtyShape(); var points = polyline.shape.__points; for (var i = 0; i < updatedDataInfo.length; i++) { var el = updatedDataInfo[i].el; var offset = updatedDataInfo[i].ptIdx * 2; el.x = points[offset]; el.y = points[offset + 1]; el.markRedraw(); } }); } }; LineView.prototype.remove = function (ecModel) { var group = this.group; var oldData = this._data; this._lineGroup.removeAll(); this._symbolDraw.remove(true); // Remove temporary created elements when highlighting oldData && oldData.eachItemGraphicEl(function (el, idx) { if (el.__temp) { group.remove(el); oldData.setItemGraphicEl(idx, null); } }); this._polyline = this._polygon = this._coordSys = this._points = this._stackedOnPoints = this._endLabel = this._data = null; }; LineView.type = 'line'; return LineView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_8__["default"]); /* harmony default export */ __webpack_exports__["default"] = (LineView); /***/ }), /***/ "./node_modules/echarts/lib/chart/line/helper.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/chart/line/helper.js ***! \*******************************************************/ /*! exports provided: prepareDataCoordInfo, getStackedOnPoint */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prepareDataCoordInfo", function() { return prepareDataCoordInfo; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStackedOnPoint", function() { return getStackedOnPoint; }); /* harmony import */ var _data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../data/helper/dataStackHelper.js */ "./node_modules/echarts/lib/data/helper/dataStackHelper.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function prepareDataCoordInfo(coordSys, data, valueOrigin) { var baseAxis = coordSys.getBaseAxis(); var valueAxis = coordSys.getOtherAxis(baseAxis); var valueStart = getValueStart(valueAxis, valueOrigin); var baseAxisDim = baseAxis.dim; var valueAxisDim = valueAxis.dim; var valueDim = data.mapDimension(valueAxisDim); var baseDim = data.mapDimension(baseAxisDim); var baseDataOffset = valueAxisDim === 'x' || valueAxisDim === 'radius' ? 1 : 0; var dims = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"])(coordSys.dimensions, function (coordDim) { return data.mapDimension(coordDim); }); var stacked = false; var stackResultDim = data.getCalculationInfo('stackResultDimension'); if (Object(_data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_0__["isDimensionStacked"])(data, dims[0] /* , dims[1] */)) { // jshint ignore:line stacked = true; dims[0] = stackResultDim; } if (Object(_data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_0__["isDimensionStacked"])(data, dims[1] /* , dims[0] */)) { // jshint ignore:line stacked = true; dims[1] = stackResultDim; } return { dataDimsForPoint: dims, valueStart: valueStart, valueAxisDim: valueAxisDim, baseAxisDim: baseAxisDim, stacked: !!stacked, valueDim: valueDim, baseDim: baseDim, baseDataOffset: baseDataOffset, stackedOverDimension: data.getCalculationInfo('stackedOverDimension') }; } function getValueStart(valueAxis, valueOrigin) { var valueStart = 0; var extent = valueAxis.scale.getExtent(); if (valueOrigin === 'start') { valueStart = extent[0]; } else if (valueOrigin === 'end') { valueStart = extent[1]; } // If origin is specified as a number, use it as // valueStart directly else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isNumber"])(valueOrigin) && !isNaN(valueOrigin)) { valueStart = valueOrigin; } // auto else { // Both positive if (extent[0] > 0) { valueStart = extent[0]; } // Both negative else if (extent[1] < 0) { valueStart = extent[1]; } // If is one positive, and one negative, onZero shall be true } return valueStart; } function getStackedOnPoint(dataCoordInfo, coordSys, data, idx) { var value = NaN; if (dataCoordInfo.stacked) { value = data.get(data.getCalculationInfo('stackedOverDimension'), idx); } if (isNaN(value)) { value = dataCoordInfo.valueStart; } var baseDataOffset = dataCoordInfo.baseDataOffset; var stackedData = []; stackedData[baseDataOffset] = data.get(dataCoordInfo.baseDim, idx); stackedData[1 - baseDataOffset] = value; return coordSys.dataToPoint(stackedData); } /***/ }), /***/ "./node_modules/echarts/lib/chart/line/install.js": /*!********************************************************!*\ !*** ./node_modules/echarts/lib/chart/line/install.js ***! \********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _LineSeries_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LineSeries.js */ "./node_modules/echarts/lib/chart/line/LineSeries.js"); /* harmony import */ var _LineView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LineView.js */ "./node_modules/echarts/lib/chart/line/LineView.js"); /* harmony import */ var _layout_points_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../layout/points.js */ "./node_modules/echarts/lib/layout/points.js"); /* harmony import */ var _processor_dataSample_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../processor/dataSample.js */ "./node_modules/echarts/lib/processor/dataSample.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // In case developer forget to include grid component function install(registers) { registers.registerChartView(_LineView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerSeriesModel(_LineSeries_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerLayout(Object(_layout_points_js__WEBPACK_IMPORTED_MODULE_2__["default"])('line', true)); registers.registerVisual({ seriesType: 'line', reset: function (seriesModel) { var data = seriesModel.getData(); // Visual coding for legend var lineStyle = seriesModel.getModel('lineStyle').getLineStyle(); if (lineStyle && !lineStyle.stroke) { // Fill in visual should be palette color if // has color callback lineStyle.stroke = data.getVisual('style').fill; } data.setVisual('legendLineStyle', lineStyle); } }); // Down sample after filter registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, Object(_processor_dataSample_js__WEBPACK_IMPORTED_MODULE_3__["default"])('line')); } /***/ }), /***/ "./node_modules/echarts/lib/chart/line/lineAnimationDiff.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/chart/line/lineAnimationDiff.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return lineAnimationDiff; }); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/chart/line/helper.js"); /* harmony import */ var _util_vendor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/vendor.js */ "./node_modules/echarts/lib/util/vendor.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function diffData(oldData, newData) { var diffResult = []; newData.diff(oldData).add(function (idx) { diffResult.push({ cmd: '+', idx: idx }); }).update(function (newIdx, oldIdx) { diffResult.push({ cmd: '=', idx: oldIdx, idx1: newIdx }); }).remove(function (idx) { diffResult.push({ cmd: '-', idx: idx }); }).execute(); return diffResult; } function lineAnimationDiff(oldData, newData, oldStackedOnPoints, newStackedOnPoints, oldCoordSys, newCoordSys, oldValueOrigin, newValueOrigin) { var diff = diffData(oldData, newData); // let newIdList = newData.mapArray(newData.getId); // let oldIdList = oldData.mapArray(oldData.getId); // convertToIntId(newIdList, oldIdList); // // FIXME One data ? // diff = arrayDiff(oldIdList, newIdList); var currPoints = []; var nextPoints = []; // Points for stacking base line var currStackedPoints = []; var nextStackedPoints = []; var status = []; var sortedIndices = []; var rawIndices = []; var newDataOldCoordInfo = Object(_helper_js__WEBPACK_IMPORTED_MODULE_0__["prepareDataCoordInfo"])(oldCoordSys, newData, oldValueOrigin); // const oldDataNewCoordInfo = prepareDataCoordInfo(newCoordSys, oldData, newValueOrigin); var oldPoints = oldData.getLayout('points') || []; var newPoints = newData.getLayout('points') || []; for (var i = 0; i < diff.length; i++) { var diffItem = diff[i]; var pointAdded = true; var oldIdx2 = void 0; var newIdx2 = void 0; // FIXME, animation is not so perfect when dataZoom window moves fast // Which is in case remvoing or add more than one data in the tail or head switch (diffItem.cmd) { case '=': oldIdx2 = diffItem.idx * 2; newIdx2 = diffItem.idx1 * 2; var currentX = oldPoints[oldIdx2]; var currentY = oldPoints[oldIdx2 + 1]; var nextX = newPoints[newIdx2]; var nextY = newPoints[newIdx2 + 1]; // If previous data is NaN, use next point directly if (isNaN(currentX) || isNaN(currentY)) { currentX = nextX; currentY = nextY; } currPoints.push(currentX, currentY); nextPoints.push(nextX, nextY); currStackedPoints.push(oldStackedOnPoints[oldIdx2], oldStackedOnPoints[oldIdx2 + 1]); nextStackedPoints.push(newStackedOnPoints[newIdx2], newStackedOnPoints[newIdx2 + 1]); rawIndices.push(newData.getRawIndex(diffItem.idx1)); break; case '+': var newIdx = diffItem.idx; var newDataDimsForPoint = newDataOldCoordInfo.dataDimsForPoint; var oldPt = oldCoordSys.dataToPoint([newData.get(newDataDimsForPoint[0], newIdx), newData.get(newDataDimsForPoint[1], newIdx)]); newIdx2 = newIdx * 2; currPoints.push(oldPt[0], oldPt[1]); nextPoints.push(newPoints[newIdx2], newPoints[newIdx2 + 1]); var stackedOnPoint = Object(_helper_js__WEBPACK_IMPORTED_MODULE_0__["getStackedOnPoint"])(newDataOldCoordInfo, oldCoordSys, newData, newIdx); currStackedPoints.push(stackedOnPoint[0], stackedOnPoint[1]); nextStackedPoints.push(newStackedOnPoints[newIdx2], newStackedOnPoints[newIdx2 + 1]); rawIndices.push(newData.getRawIndex(newIdx)); break; case '-': pointAdded = false; } // Original indices if (pointAdded) { status.push(diffItem); sortedIndices.push(sortedIndices.length); } } // Diff result may be crossed if all items are changed // Sort by data index sortedIndices.sort(function (a, b) { return rawIndices[a] - rawIndices[b]; }); var len = currPoints.length; var sortedCurrPoints = Object(_util_vendor_js__WEBPACK_IMPORTED_MODULE_1__["createFloat32Array"])(len); var sortedNextPoints = Object(_util_vendor_js__WEBPACK_IMPORTED_MODULE_1__["createFloat32Array"])(len); var sortedCurrStackedPoints = Object(_util_vendor_js__WEBPACK_IMPORTED_MODULE_1__["createFloat32Array"])(len); var sortedNextStackedPoints = Object(_util_vendor_js__WEBPACK_IMPORTED_MODULE_1__["createFloat32Array"])(len); var sortedStatus = []; for (var i = 0; i < sortedIndices.length; i++) { var idx = sortedIndices[i]; var i2 = i * 2; var idx2 = idx * 2; sortedCurrPoints[i2] = currPoints[idx2]; sortedCurrPoints[i2 + 1] = currPoints[idx2 + 1]; sortedNextPoints[i2] = nextPoints[idx2]; sortedNextPoints[i2 + 1] = nextPoints[idx2 + 1]; sortedCurrStackedPoints[i2] = currStackedPoints[idx2]; sortedCurrStackedPoints[i2 + 1] = currStackedPoints[idx2 + 1]; sortedNextStackedPoints[i2] = nextStackedPoints[idx2]; sortedNextStackedPoints[i2 + 1] = nextStackedPoints[idx2 + 1]; sortedStatus[i] = status[idx]; } return { current: sortedCurrPoints, next: sortedNextPoints, stackedOnCurrent: sortedCurrStackedPoints, stackedOnNext: sortedNextStackedPoints, status: sortedStatus }; } /***/ }), /***/ "./node_modules/echarts/lib/chart/line/poly.js": /*!*****************************************************!*\ !*** ./node_modules/echarts/lib/chart/line/poly.js ***! \*****************************************************/ /*! exports provided: ECPolyline, ECPolygon */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ECPolyline", function() { return ECPolyline; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ECPolygon", function() { return ECPolygon; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/graphic/Path.js */ "./node_modules/zrender/lib/graphic/Path.js"); /* harmony import */ var zrender_lib_core_PathProxy_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/PathProxy.js */ "./node_modules/zrender/lib/core/PathProxy.js"); /* harmony import */ var zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/curve.js */ "./node_modules/zrender/lib/core/curve.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Poly path support NaN point var mathMin = Math.min; var mathMax = Math.max; function isPointNull(x, y) { return isNaN(x) || isNaN(y); } /** * Draw smoothed line in non-monotone, in may cause undesired curve in extreme * situations. This should be used when points are non-monotone neither in x or * y dimension. */ function drawSegment(ctx, points, start, segLen, allLen, dir, smooth, smoothMonotone, connectNulls) { var prevX; var prevY; var cpx0; var cpy0; var cpx1; var cpy1; var idx = start; var k = 0; for (; k < segLen; k++) { var x = points[idx * 2]; var y = points[idx * 2 + 1]; if (idx >= allLen || idx < 0) { break; } if (isPointNull(x, y)) { if (connectNulls) { idx += dir; continue; } break; } if (idx === start) { ctx[dir > 0 ? 'moveTo' : 'lineTo'](x, y); cpx0 = x; cpy0 = y; } else { var dx = x - prevX; var dy = y - prevY; // Ignore tiny segment. if (dx * dx + dy * dy < 0.5) { idx += dir; continue; } if (smooth > 0) { var nextIdx = idx + dir; var nextX = points[nextIdx * 2]; var nextY = points[nextIdx * 2 + 1]; // Ignore duplicate point while (nextX === x && nextY === y && k < segLen) { k++; nextIdx += dir; idx += dir; nextX = points[nextIdx * 2]; nextY = points[nextIdx * 2 + 1]; x = points[idx * 2]; y = points[idx * 2 + 1]; dx = x - prevX; dy = y - prevY; } var tmpK = k + 1; if (connectNulls) { // Find next point not null while (isPointNull(nextX, nextY) && tmpK < segLen) { tmpK++; nextIdx += dir; nextX = points[nextIdx * 2]; nextY = points[nextIdx * 2 + 1]; } } var ratioNextSeg = 0.5; var vx = 0; var vy = 0; var nextCpx0 = void 0; var nextCpy0 = void 0; // Is last point if (tmpK >= segLen || isPointNull(nextX, nextY)) { cpx1 = x; cpy1 = y; } else { vx = nextX - prevX; vy = nextY - prevY; var dx0 = x - prevX; var dx1 = nextX - x; var dy0 = y - prevY; var dy1 = nextY - y; var lenPrevSeg = void 0; var lenNextSeg = void 0; if (smoothMonotone === 'x') { lenPrevSeg = Math.abs(dx0); lenNextSeg = Math.abs(dx1); var dir_1 = vx > 0 ? 1 : -1; cpx1 = x - dir_1 * lenPrevSeg * smooth; cpy1 = y; nextCpx0 = x + dir_1 * lenNextSeg * smooth; nextCpy0 = y; } else if (smoothMonotone === 'y') { lenPrevSeg = Math.abs(dy0); lenNextSeg = Math.abs(dy1); var dir_2 = vy > 0 ? 1 : -1; cpx1 = x; cpy1 = y - dir_2 * lenPrevSeg * smooth; nextCpx0 = x; nextCpy0 = y + dir_2 * lenNextSeg * smooth; } else { lenPrevSeg = Math.sqrt(dx0 * dx0 + dy0 * dy0); lenNextSeg = Math.sqrt(dx1 * dx1 + dy1 * dy1); // Use ratio of seg length ratioNextSeg = lenNextSeg / (lenNextSeg + lenPrevSeg); cpx1 = x - vx * smooth * (1 - ratioNextSeg); cpy1 = y - vy * smooth * (1 - ratioNextSeg); // cp0 of next segment nextCpx0 = x + vx * smooth * ratioNextSeg; nextCpy0 = y + vy * smooth * ratioNextSeg; // Smooth constraint between point and next point. // Avoid exceeding extreme after smoothing. nextCpx0 = mathMin(nextCpx0, mathMax(nextX, x)); nextCpy0 = mathMin(nextCpy0, mathMax(nextY, y)); nextCpx0 = mathMax(nextCpx0, mathMin(nextX, x)); nextCpy0 = mathMax(nextCpy0, mathMin(nextY, y)); // Reclaculate cp1 based on the adjusted cp0 of next seg. vx = nextCpx0 - x; vy = nextCpy0 - y; cpx1 = x - vx * lenPrevSeg / lenNextSeg; cpy1 = y - vy * lenPrevSeg / lenNextSeg; // Smooth constraint between point and prev point. // Avoid exceeding extreme after smoothing. cpx1 = mathMin(cpx1, mathMax(prevX, x)); cpy1 = mathMin(cpy1, mathMax(prevY, y)); cpx1 = mathMax(cpx1, mathMin(prevX, x)); cpy1 = mathMax(cpy1, mathMin(prevY, y)); // Adjust next cp0 again. vx = x - cpx1; vy = y - cpy1; nextCpx0 = x + vx * lenNextSeg / lenPrevSeg; nextCpy0 = y + vy * lenNextSeg / lenPrevSeg; } } ctx.bezierCurveTo(cpx0, cpy0, cpx1, cpy1, x, y); cpx0 = nextCpx0; cpy0 = nextCpy0; } else { ctx.lineTo(x, y); } } prevX = x; prevY = y; idx += dir; } return k; } var ECPolylineShape = /** @class */function () { function ECPolylineShape() { this.smooth = 0; this.smoothConstraint = true; } return ECPolylineShape; }(); var ECPolyline = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ECPolyline, _super); function ECPolyline(opts) { var _this = _super.call(this, opts) || this; _this.type = 'ec-polyline'; return _this; } ECPolyline.prototype.getDefaultStyle = function () { return { stroke: '#000', fill: null }; }; ECPolyline.prototype.getDefaultShape = function () { return new ECPolylineShape(); }; ECPolyline.prototype.buildPath = function (ctx, shape) { var points = shape.points; var i = 0; var len = points.length / 2; // const result = getBoundingBox(points, shape.smoothConstraint); if (shape.connectNulls) { // Must remove first and last null values avoid draw error in polygon for (; len > 0; len--) { if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) { break; } } for (; i < len; i++) { if (!isPointNull(points[i * 2], points[i * 2 + 1])) { break; } } } while (i < len) { i += drawSegment(ctx, points, i, len, len, 1, shape.smooth, shape.smoothMonotone, shape.connectNulls) + 1; } }; ECPolyline.prototype.getPointOn = function (xOrY, dim) { if (!this.path) { this.createPathProxy(); this.buildPath(this.path, this.shape); } var path = this.path; var data = path.data; var CMD = zrender_lib_core_PathProxy_js__WEBPACK_IMPORTED_MODULE_2__["default"].CMD; var x0; var y0; var isDimX = dim === 'x'; var roots = []; for (var i = 0; i < data.length;) { var cmd = data[i++]; var x = void 0; var y = void 0; var x2 = void 0; var y2 = void 0; var x3 = void 0; var y3 = void 0; var t = void 0; switch (cmd) { case CMD.M: x0 = data[i++]; y0 = data[i++]; break; case CMD.L: x = data[i++]; y = data[i++]; t = isDimX ? (xOrY - x0) / (x - x0) : (xOrY - y0) / (y - y0); if (t <= 1 && t >= 0) { var val = isDimX ? (y - y0) * t + y0 : (x - x0) * t + x0; return isDimX ? [xOrY, val] : [val, xOrY]; } x0 = x; y0 = y; break; case CMD.C: x = data[i++]; y = data[i++]; x2 = data[i++]; y2 = data[i++]; x3 = data[i++]; y3 = data[i++]; var nRoot = isDimX ? Object(zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_3__["cubicRootAt"])(x0, x, x2, x3, xOrY, roots) : Object(zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_3__["cubicRootAt"])(y0, y, y2, y3, xOrY, roots); if (nRoot > 0) { for (var i_1 = 0; i_1 < nRoot; i_1++) { var t_1 = roots[i_1]; if (t_1 <= 1 && t_1 >= 0) { var val = isDimX ? Object(zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_3__["cubicAt"])(y0, y, y2, y3, t_1) : Object(zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_3__["cubicAt"])(x0, x, x2, x3, t_1); return isDimX ? [xOrY, val] : [val, xOrY]; } } } x0 = x3; y0 = y3; break; } } }; return ECPolyline; }(zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_1__["default"]); var ECPolygonShape = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ECPolygonShape, _super); function ECPolygonShape() { return _super !== null && _super.apply(this, arguments) || this; } return ECPolygonShape; }(ECPolylineShape); var ECPolygon = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ECPolygon, _super); function ECPolygon(opts) { var _this = _super.call(this, opts) || this; _this.type = 'ec-polygon'; return _this; } ECPolygon.prototype.getDefaultShape = function () { return new ECPolygonShape(); }; ECPolygon.prototype.buildPath = function (ctx, shape) { var points = shape.points; var stackedOnPoints = shape.stackedOnPoints; var i = 0; var len = points.length / 2; var smoothMonotone = shape.smoothMonotone; if (shape.connectNulls) { // Must remove first and last null values avoid draw error in polygon for (; len > 0; len--) { if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) { break; } } for (; i < len; i++) { if (!isPointNull(points[i * 2], points[i * 2 + 1])) { break; } } } while (i < len) { var k = drawSegment(ctx, points, i, len, len, 1, shape.smooth, smoothMonotone, shape.connectNulls); drawSegment(ctx, stackedOnPoints, i + k - 1, k, len, -1, shape.stackedOnSmooth, smoothMonotone, shape.connectNulls); i += k + 1; ctx.closePath(); } }; return ECPolygon; }(zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /***/ }), /***/ "./node_modules/echarts/lib/chart/lines/LinesSeries.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/lines/LinesSeries.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../data/SeriesData.js */ "./node_modules/echarts/lib/data/SeriesData.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _core_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../core/CoordinateSystem.js */ "./node_modules/echarts/lib/core/CoordinateSystem.js"); /* harmony import */ var _component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../component/tooltip/tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Uint32Array, Float64Array, Float32Array */ var Uint32Arr = typeof Uint32Array === 'undefined' ? Array : Uint32Array; var Float64Arr = typeof Float64Array === 'undefined' ? Array : Float64Array; function compatEc2(seriesOpt) { var data = seriesOpt.data; if (data && data[0] && data[0][0] && data[0][0].coord) { if (true) { console.warn('Lines data configuration has been changed to' + ' { coords:[[1,2],[2,3]] }'); } seriesOpt.data = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["map"])(data, function (itemOpt) { var coords = [itemOpt[0].coord, itemOpt[1].coord]; var target = { coords: coords }; if (itemOpt[0].name) { target.fromName = itemOpt[0].name; } if (itemOpt[1].name) { target.toName = itemOpt[1].name; } return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["mergeAll"])([target, itemOpt[0], itemOpt[1]]); }); } } var LinesSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LinesSeriesModel, _super); function LinesSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = LinesSeriesModel.type; _this.visualStyleAccessPath = 'lineStyle'; _this.visualDrawType = 'stroke'; return _this; } LinesSeriesModel.prototype.init = function (option) { // The input data may be null/undefined. option.data = option.data || []; // Not using preprocessor because mergeOption may not have series.type compatEc2(option); var result = this._processFlatCoordsArray(option.data); this._flatCoords = result.flatCoords; this._flatCoordsOffset = result.flatCoordsOffset; if (result.flatCoords) { option.data = new Float32Array(result.count); } _super.prototype.init.apply(this, arguments); }; LinesSeriesModel.prototype.mergeOption = function (option) { compatEc2(option); if (option.data) { // Only update when have option data to merge. var result = this._processFlatCoordsArray(option.data); this._flatCoords = result.flatCoords; this._flatCoordsOffset = result.flatCoordsOffset; if (result.flatCoords) { option.data = new Float32Array(result.count); } } _super.prototype.mergeOption.apply(this, arguments); }; LinesSeriesModel.prototype.appendData = function (params) { var result = this._processFlatCoordsArray(params.data); if (result.flatCoords) { if (!this._flatCoords) { this._flatCoords = result.flatCoords; this._flatCoordsOffset = result.flatCoordsOffset; } else { this._flatCoords = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["concatArray"])(this._flatCoords, result.flatCoords); this._flatCoordsOffset = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["concatArray"])(this._flatCoordsOffset, result.flatCoordsOffset); } params.data = new Float32Array(result.count); } this.getRawData().appendData(params.data); }; LinesSeriesModel.prototype._getCoordsFromItemModel = function (idx) { var itemModel = this.getData().getItemModel(idx); var coords = itemModel.option instanceof Array ? itemModel.option : itemModel.getShallow('coords'); if (true) { if (!(coords instanceof Array && coords.length > 0 && coords[0] instanceof Array)) { throw new Error('Invalid coords ' + JSON.stringify(coords) + '. Lines must have 2d coords array in data item.'); } } return coords; }; LinesSeriesModel.prototype.getLineCoordsCount = function (idx) { if (this._flatCoordsOffset) { return this._flatCoordsOffset[idx * 2 + 1]; } else { return this._getCoordsFromItemModel(idx).length; } }; LinesSeriesModel.prototype.getLineCoords = function (idx, out) { if (this._flatCoordsOffset) { var offset = this._flatCoordsOffset[idx * 2]; var len = this._flatCoordsOffset[idx * 2 + 1]; for (var i = 0; i < len; i++) { out[i] = out[i] || []; out[i][0] = this._flatCoords[offset + i * 2]; out[i][1] = this._flatCoords[offset + i * 2 + 1]; } return len; } else { var coords = this._getCoordsFromItemModel(idx); for (var i = 0; i < coords.length; i++) { out[i] = out[i] || []; out[i][0] = coords[i][0]; out[i][1] = coords[i][1]; } return coords.length; } }; LinesSeriesModel.prototype._processFlatCoordsArray = function (data) { var startOffset = 0; if (this._flatCoords) { startOffset = this._flatCoords.length; } // Stored as a typed array. In format // Points Count(2) | x | y | x | y | Points Count(3) | x | y | x | y | x | y | if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["isNumber"])(data[0])) { var len = data.length; // Store offset and len of each segment var coordsOffsetAndLenStorage = new Uint32Arr(len); var coordsStorage = new Float64Arr(len); var coordsCursor = 0; var offsetCursor = 0; var dataCount = 0; for (var i = 0; i < len;) { dataCount++; var count = data[i++]; // Offset coordsOffsetAndLenStorage[offsetCursor++] = coordsCursor + startOffset; // Len coordsOffsetAndLenStorage[offsetCursor++] = count; for (var k = 0; k < count; k++) { var x = data[i++]; var y = data[i++]; coordsStorage[coordsCursor++] = x; coordsStorage[coordsCursor++] = y; if (i > len) { if (true) { throw new Error('Invalid data format.'); } } } } return { flatCoordsOffset: new Uint32Array(coordsOffsetAndLenStorage.buffer, 0, offsetCursor), flatCoords: coordsStorage, count: dataCount }; } return { flatCoordsOffset: null, flatCoords: null, count: data.length }; }; LinesSeriesModel.prototype.getInitialData = function (option, ecModel) { if (true) { var CoordSys = _core_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_4__["default"].get(option.coordinateSystem); if (!CoordSys) { throw new Error('Unknown coordinate system ' + option.coordinateSystem); } } var lineData = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_2__["default"](['value'], this); lineData.hasItemOption = false; lineData.initData(option.data, [], function (dataItem, dimName, dataIndex, dimIndex) { // dataItem is simply coords if (dataItem instanceof Array) { return NaN; } else { lineData.hasItemOption = true; var value = dataItem.value; if (value != null) { return value instanceof Array ? value[dimIndex] : value; } } }); return lineData; }; LinesSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) { var data = this.getData(); var itemModel = data.getItemModel(dataIndex); var name = itemModel.get('name'); if (name) { return name; } var fromName = itemModel.get('fromName'); var toName = itemModel.get('toName'); var nameArr = []; fromName != null && nameArr.push(fromName); toName != null && nameArr.push(toName); return Object(_component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_5__["createTooltipMarkup"])('nameValue', { name: nameArr.join(' > ') }); }; LinesSeriesModel.prototype.preventIncremental = function () { return !!this.get(['effect', 'show']); }; LinesSeriesModel.prototype.getProgressive = function () { var progressive = this.option.progressive; if (progressive == null) { return this.option.large ? 1e4 : this.get('progressive'); } return progressive; }; LinesSeriesModel.prototype.getProgressiveThreshold = function () { var progressiveThreshold = this.option.progressiveThreshold; if (progressiveThreshold == null) { return this.option.large ? 2e4 : this.get('progressiveThreshold'); } return progressiveThreshold; }; LinesSeriesModel.prototype.getZLevelKey = function () { var effectModel = this.getModel('effect'); var trailLength = effectModel.get('trailLength'); return this.getData().count() > this.getProgressiveThreshold() // Each progressive series has individual key. ? this.id : effectModel.get('show') && trailLength > 0 ? trailLength + '' : ''; }; LinesSeriesModel.type = 'series.lines'; LinesSeriesModel.dependencies = ['grid', 'polar', 'geo', 'calendar']; LinesSeriesModel.defaultOption = { coordinateSystem: 'geo', // zlevel: 0, z: 2, legendHoverLink: true, // Cartesian coordinate system xAxisIndex: 0, yAxisIndex: 0, symbol: ['none', 'none'], symbolSize: [10, 10], // Geo coordinate system geoIndex: 0, effect: { show: false, period: 4, constantSpeed: 0, symbol: 'circle', symbolSize: 3, loop: true, trailLength: 0.2 }, large: false, // Available when large is true largeThreshold: 2000, polyline: false, clip: true, label: { show: false, position: 'end' // distance: 5, // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调 }, lineStyle: { opacity: 0.5 } }; return LinesSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (LinesSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/lines/LinesView.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/lines/LinesView.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _helper_LineDraw_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helper/LineDraw.js */ "./node_modules/echarts/lib/chart/helper/LineDraw.js"); /* harmony import */ var _helper_EffectLine_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/EffectLine.js */ "./node_modules/echarts/lib/chart/helper/EffectLine.js"); /* harmony import */ var _helper_Line_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helper/Line.js */ "./node_modules/echarts/lib/chart/helper/Line.js"); /* harmony import */ var _helper_Polyline_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helper/Polyline.js */ "./node_modules/echarts/lib/chart/helper/Polyline.js"); /* harmony import */ var _helper_EffectPolyline_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helper/EffectPolyline.js */ "./node_modules/echarts/lib/chart/helper/EffectPolyline.js"); /* harmony import */ var _helper_LargeLineDraw_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helper/LargeLineDraw.js */ "./node_modules/echarts/lib/chart/helper/LargeLineDraw.js"); /* harmony import */ var _linesLayout_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./linesLayout.js */ "./node_modules/echarts/lib/chart/lines/linesLayout.js"); /* harmony import */ var _helper_createClipPathFromCoordSys_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helper/createClipPathFromCoordSys.js */ "./node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var LinesView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LinesView, _super); function LinesView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = LinesView.type; return _this; } LinesView.prototype.render = function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var lineDraw = this._updateLineDraw(data, seriesModel); var zlevel = seriesModel.get('zlevel'); var trailLength = seriesModel.get(['effect', 'trailLength']); var zr = api.getZr(); // Avoid the drag cause ghost shadow // FIXME Better way ? // SVG doesn't support var isSvg = zr.painter.getType() === 'svg'; if (!isSvg) { zr.painter.getLayer(zlevel).clear(true); } // Config layer with motion blur if (this._lastZlevel != null && !isSvg) { zr.configLayer(this._lastZlevel, { motionBlur: false }); } if (this._showEffect(seriesModel) && trailLength > 0) { if (!isSvg) { zr.configLayer(zlevel, { motionBlur: true, lastFrameAlpha: Math.max(Math.min(trailLength / 10 + 0.9, 1), 0) }); } else if (true) { console.warn('SVG render mode doesn\'t support lines with trail effect'); } } lineDraw.updateData(data); var clipPath = seriesModel.get('clip', true) && Object(_helper_createClipPathFromCoordSys_js__WEBPACK_IMPORTED_MODULE_8__["createClipPath"])(seriesModel.coordinateSystem, false, seriesModel); if (clipPath) { this.group.setClipPath(clipPath); } else { this.group.removeClipPath(); } this._lastZlevel = zlevel; this._finished = true; }; LinesView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var lineDraw = this._updateLineDraw(data, seriesModel); lineDraw.incrementalPrepareUpdate(data); this._clearLayer(api); this._finished = false; }; LinesView.prototype.incrementalRender = function (taskParams, seriesModel, ecModel) { this._lineDraw.incrementalUpdate(taskParams, seriesModel.getData()); this._finished = taskParams.end === seriesModel.getData().count(); }; LinesView.prototype.eachRendered = function (cb) { this._lineDraw && this._lineDraw.eachRendered(cb); }; LinesView.prototype.updateTransform = function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var pipelineContext = seriesModel.pipelineContext; if (!this._finished || pipelineContext.large || pipelineContext.progressiveRender) { // TODO Don't have to do update in large mode. Only do it when there are millions of data. return { update: true }; } else { // TODO Use same logic with ScatterView. // Manually update layout var res = _linesLayout_js__WEBPACK_IMPORTED_MODULE_7__["default"].reset(seriesModel, ecModel, api); if (res.progress) { res.progress({ start: 0, end: data.count(), count: data.count() }, data); } // Not in large mode this._lineDraw.updateLayout(); this._clearLayer(api); } }; LinesView.prototype._updateLineDraw = function (data, seriesModel) { var lineDraw = this._lineDraw; var hasEffect = this._showEffect(seriesModel); var isPolyline = !!seriesModel.get('polyline'); var pipelineContext = seriesModel.pipelineContext; var isLargeDraw = pipelineContext.large; if (true) { if (hasEffect && isLargeDraw) { console.warn('Large lines not support effect'); } } if (!lineDraw || hasEffect !== this._hasEffet || isPolyline !== this._isPolyline || isLargeDraw !== this._isLargeDraw) { if (lineDraw) { lineDraw.remove(); } lineDraw = this._lineDraw = isLargeDraw ? new _helper_LargeLineDraw_js__WEBPACK_IMPORTED_MODULE_6__["default"]() : new _helper_LineDraw_js__WEBPACK_IMPORTED_MODULE_1__["default"](isPolyline ? hasEffect ? _helper_EffectPolyline_js__WEBPACK_IMPORTED_MODULE_5__["default"] : _helper_Polyline_js__WEBPACK_IMPORTED_MODULE_4__["default"] : hasEffect ? _helper_EffectLine_js__WEBPACK_IMPORTED_MODULE_2__["default"] : _helper_Line_js__WEBPACK_IMPORTED_MODULE_3__["default"]); this._hasEffet = hasEffect; this._isPolyline = isPolyline; this._isLargeDraw = isLargeDraw; } this.group.add(lineDraw.group); return lineDraw; }; LinesView.prototype._showEffect = function (seriesModel) { return !!seriesModel.get(['effect', 'show']); }; LinesView.prototype._clearLayer = function (api) { // Not use motion when dragging or zooming var zr = api.getZr(); var isSvg = zr.painter.getType() === 'svg'; if (!isSvg && this._lastZlevel != null) { zr.painter.getLayer(this._lastZlevel).clear(true); } }; LinesView.prototype.remove = function (ecModel, api) { this._lineDraw && this._lineDraw.remove(); this._lineDraw = null; // Clear motion when lineDraw is removed this._clearLayer(api); }; LinesView.prototype.dispose = function (ecModel, api) { this.remove(ecModel, api); }; LinesView.type = 'lines'; return LinesView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_9__["default"]); /* harmony default export */ __webpack_exports__["default"] = (LinesView); /***/ }), /***/ "./node_modules/echarts/lib/chart/lines/install.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/chart/lines/install.js ***! \*********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _LinesView_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LinesView.js */ "./node_modules/echarts/lib/chart/lines/LinesView.js"); /* harmony import */ var _LinesSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LinesSeries.js */ "./node_modules/echarts/lib/chart/lines/LinesSeries.js"); /* harmony import */ var _linesLayout_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./linesLayout.js */ "./node_modules/echarts/lib/chart/lines/linesLayout.js"); /* harmony import */ var _linesVisual_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./linesVisual.js */ "./node_modules/echarts/lib/chart/lines/linesVisual.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerChartView(_LinesView_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerSeriesModel(_LinesSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerLayout(_linesLayout_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerVisual(_linesVisual_js__WEBPACK_IMPORTED_MODULE_3__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/chart/lines/linesLayout.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/lines/linesLayout.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _helper_createRenderPlanner_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helper/createRenderPlanner.js */ "./node_modules/echarts/lib/chart/helper/createRenderPlanner.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Float32Array */ var linesLayout = { seriesType: 'lines', plan: Object(_helper_createRenderPlanner_js__WEBPACK_IMPORTED_MODULE_0__["default"])(), reset: function (seriesModel) { var coordSys = seriesModel.coordinateSystem; if (!coordSys) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["error"])('The lines series must have a coordinate system.'); } return; } var isPolyline = seriesModel.get('polyline'); var isLarge = seriesModel.pipelineContext.large; return { progress: function (params, lineData) { var lineCoords = []; if (isLarge) { var points = void 0; var segCount = params.end - params.start; if (isPolyline) { var totalCoordsCount = 0; for (var i = params.start; i < params.end; i++) { totalCoordsCount += seriesModel.getLineCoordsCount(i); } points = new Float32Array(segCount + totalCoordsCount * 2); } else { points = new Float32Array(segCount * 4); } var offset = 0; var pt = []; for (var i = params.start; i < params.end; i++) { var len = seriesModel.getLineCoords(i, lineCoords); if (isPolyline) { points[offset++] = len; } for (var k = 0; k < len; k++) { pt = coordSys.dataToPoint(lineCoords[k], false, pt); points[offset++] = pt[0]; points[offset++] = pt[1]; } } lineData.setLayout('linesPoints', points); } else { for (var i = params.start; i < params.end; i++) { var itemModel = lineData.getItemModel(i); var len = seriesModel.getLineCoords(i, lineCoords); var pts = []; if (isPolyline) { for (var j = 0; j < len; j++) { pts.push(coordSys.dataToPoint(lineCoords[j])); } } else { pts[0] = coordSys.dataToPoint(lineCoords[0]); pts[1] = coordSys.dataToPoint(lineCoords[1]); var curveness = itemModel.get(['lineStyle', 'curveness']); if (+curveness) { pts[2] = [(pts[0][0] + pts[1][0]) / 2 - (pts[0][1] - pts[1][1]) * curveness, (pts[0][1] + pts[1][1]) / 2 - (pts[1][0] - pts[0][0]) * curveness]; } } lineData.setItemLayout(i, pts); } } } }; } }; /* harmony default export */ __webpack_exports__["default"] = (linesLayout); /***/ }), /***/ "./node_modules/echarts/lib/chart/lines/linesVisual.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/lines/linesVisual.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function normalize(a) { if (!(a instanceof Array)) { a = [a, a]; } return a; } var linesVisual = { seriesType: 'lines', reset: function (seriesModel) { var symbolType = normalize(seriesModel.get('symbol')); var symbolSize = normalize(seriesModel.get('symbolSize')); var data = seriesModel.getData(); data.setVisual('fromSymbol', symbolType && symbolType[0]); data.setVisual('toSymbol', symbolType && symbolType[1]); data.setVisual('fromSymbolSize', symbolSize && symbolSize[0]); data.setVisual('toSymbolSize', symbolSize && symbolSize[1]); function dataEach(data, idx) { var itemModel = data.getItemModel(idx); var symbolType = normalize(itemModel.getShallow('symbol', true)); var symbolSize = normalize(itemModel.getShallow('symbolSize', true)); symbolType[0] && data.setItemVisual(idx, 'fromSymbol', symbolType[0]); symbolType[1] && data.setItemVisual(idx, 'toSymbol', symbolType[1]); symbolSize[0] && data.setItemVisual(idx, 'fromSymbolSize', symbolSize[0]); symbolSize[1] && data.setItemVisual(idx, 'toSymbolSize', symbolSize[1]); } return { dataEach: data.hasItemOption ? dataEach : null }; } }; /* harmony default export */ __webpack_exports__["default"] = (linesVisual); /***/ }), /***/ "./node_modules/echarts/lib/chart/map/MapSeries.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/chart/map/MapSeries.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _helper_createSeriesDataSimply_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/createSeriesDataSimply.js */ "./node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _coord_geo_geoSourceManager_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../coord/geo/geoSourceManager.js */ "./node_modules/echarts/lib/coord/geo/geoSourceManager.js"); /* harmony import */ var _data_helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../data/helper/sourceHelper.js */ "./node_modules/echarts/lib/data/helper/sourceHelper.js"); /* harmony import */ var _component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../component/tooltip/tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var MapSeries = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MapSeries, _super); function MapSeries() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = MapSeries.type; // Only first map series of same mapType will drawMap. _this.needsDrawMap = false; // Group of all map series with same mapType _this.seriesGroup = []; _this.getTooltipPosition = function (dataIndex) { if (dataIndex != null) { var name_1 = this.getData().getName(dataIndex); var geo = this.coordinateSystem; var region = geo.getRegion(name_1); return region && geo.dataToPoint(region.getCenter()); } }; return _this; } MapSeries.prototype.getInitialData = function (option) { var data = Object(_helper_createSeriesDataSimply_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this, { coordDimensions: ['value'], encodeDefaulter: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"](_data_helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_5__["makeSeriesEncodeForNameBased"], this) }); var dataNameIndexMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"](); var toAppendItems = []; for (var i = 0, len = data.count(); i < len; i++) { var name_2 = data.getName(i); dataNameIndexMap.set(name_2, i); } var geoSource = _coord_geo_geoSourceManager_js__WEBPACK_IMPORTED_MODULE_4__["default"].load(this.getMapType(), this.option.nameMap, this.option.nameProperty); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](geoSource.regions, function (region) { var name = region.name; var dataNameIdx = dataNameIndexMap.get(name); // apply specified echarts style in GeoJSON data var specifiedGeoJSONRegionStyle = region.properties && region.properties.echartsStyle; var dataItem; if (dataNameIdx == null) { dataItem = { name: name }; toAppendItems.push(dataItem); } else { dataItem = data.getRawDataItem(dataNameIdx); } specifiedGeoJSONRegionStyle && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](dataItem, specifiedGeoJSONRegionStyle); }); // Complete data with missing regions. The consequent processes (like visual // map and render) can not be performed without a "full data". For example, // find `dataIndex` by name. data.appendData(toAppendItems); return data; }; /** * If no host geo model, return null, which means using a * inner exclusive geo model. */ MapSeries.prototype.getHostGeoModel = function () { var geoIndex = this.option.geoIndex; return geoIndex != null ? this.ecModel.getComponent('geo', geoIndex) : null; }; MapSeries.prototype.getMapType = function () { return (this.getHostGeoModel() || this).option.map; }; // _fillOption(option, mapName) { // Shallow clone // option = zrUtil.extend({}, option); // option.data = geoCreator.getFilledRegions(option.data, mapName, option.nameMap); // return option; // } MapSeries.prototype.getRawValue = function (dataIndex) { // Use value stored in data instead because it is calculated from multiple series // FIXME Provide all value of multiple series ? var data = this.getData(); return data.get(data.mapDimension('value'), dataIndex); }; /** * Get model of region */ MapSeries.prototype.getRegionModel = function (regionName) { var data = this.getData(); return data.getItemModel(data.indexOfName(regionName)); }; /** * Map tooltip formatter */ MapSeries.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) { // FIXME orignalData and data is a bit confusing var data = this.getData(); var value = this.getRawValue(dataIndex); var name = data.getName(dataIndex); var seriesGroup = this.seriesGroup; var seriesNames = []; for (var i = 0; i < seriesGroup.length; i++) { var otherIndex = seriesGroup[i].originalData.indexOfName(name); var valueDim = data.mapDimension('value'); if (!isNaN(seriesGroup[i].originalData.get(valueDim, otherIndex))) { seriesNames.push(seriesGroup[i].name); } } return Object(_component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_6__["createTooltipMarkup"])('section', { header: seriesNames.join(', '), noHeader: !seriesNames.length, blocks: [Object(_component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_6__["createTooltipMarkup"])('nameValue', { name: name, value: value })] }); }; MapSeries.prototype.setZoom = function (zoom) { this.option.zoom = zoom; }; MapSeries.prototype.setCenter = function (center) { this.option.center = center; }; MapSeries.prototype.getLegendIcon = function (opt) { var iconType = opt.icon || 'roundRect'; var icon = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_7__["createSymbol"])(iconType, 0, 0, opt.itemWidth, opt.itemHeight, opt.itemStyle.fill); icon.setStyle(opt.itemStyle); // Map do not use itemStyle.borderWidth as border width icon.style.stroke = 'none'; // No rotation because no series visual symbol for map if (iconType.indexOf('empty') > -1) { icon.style.stroke = icon.style.fill; icon.style.fill = '#fff'; icon.style.lineWidth = 2; } return icon; }; MapSeries.type = 'series.map'; MapSeries.dependencies = ['geo']; MapSeries.layoutMode = 'box'; MapSeries.defaultOption = { // 一级层叠 // zlevel: 0, // 二级层叠 z: 2, coordinateSystem: 'geo', // map should be explicitly specified since ec3. map: '', // If `geoIndex` is not specified, a exclusive geo will be // created. Otherwise use the specified geo component, and // `map` and `mapType` are ignored. // geoIndex: 0, // 'center' | 'left' | 'right' | 'x%' | {number} left: 'center', // 'center' | 'top' | 'bottom' | 'x%' | {number} top: 'center', // right // bottom // width: // height // Aspect is width / height. Inited to be geoJson bbox aspect // This parameter is used for scale this aspect // Default value: // for geoSVG source: 1, // for geoJSON source: 0.75. aspectScale: null, // Layout with center and size // If you want to put map in a fixed size box with right aspect ratio // This two properties may be more convenient. // layoutCenter: [50%, 50%] // layoutSize: 100 showLegendSymbol: true, // Define left-top, right-bottom coords to control view // For example, [ [180, 90], [-180, -90] ], // higher priority than center and zoom boundingCoords: null, // Default on center of map center: null, zoom: 1, scaleLimit: null, selectedMode: true, label: { show: false, color: '#000' }, // scaleLimit: null, itemStyle: { borderWidth: 0.5, borderColor: '#444', areaColor: '#eee' }, emphasis: { label: { show: true, color: 'rgb(100,0,0)' }, itemStyle: { areaColor: 'rgba(255,215,0,0.8)' } }, select: { label: { show: true, color: 'rgb(100,0,0)' }, itemStyle: { color: 'rgba(255,215,0,0.8)' } }, nameProperty: 'name' }; return MapSeries; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_3__["default"]); /* harmony default export */ __webpack_exports__["default"] = (MapSeries); /***/ }), /***/ "./node_modules/echarts/lib/chart/map/MapView.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/chart/map/MapView.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _component_helper_MapDraw_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../component/helper/MapDraw.js */ "./node_modules/echarts/lib/component/helper/MapDraw.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var MapView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MapView, _super); function MapView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = MapView.type; return _this; } MapView.prototype.render = function (mapModel, ecModel, api, payload) { // Not render if it is an toggleSelect action from self if (payload && payload.type === 'mapToggleSelect' && payload.from === this.uid) { return; } var group = this.group; group.removeAll(); if (mapModel.getHostGeoModel()) { return; } if (this._mapDraw && payload && payload.type === 'geoRoam') { this._mapDraw.resetForLabelLayout(); } // Not update map if it is an roam action from self if (!(payload && payload.type === 'geoRoam' && payload.componentType === 'series' && payload.seriesId === mapModel.id)) { if (mapModel.needsDrawMap) { var mapDraw = this._mapDraw || new _component_helper_MapDraw_js__WEBPACK_IMPORTED_MODULE_2__["default"](api); group.add(mapDraw.group); mapDraw.draw(mapModel, ecModel, api, this, payload); this._mapDraw = mapDraw; } else { // Remove drawn map this._mapDraw && this._mapDraw.remove(); this._mapDraw = null; } } else { var mapDraw = this._mapDraw; mapDraw && group.add(mapDraw.group); } mapModel.get('showLegendSymbol') && ecModel.getComponent('legend') && this._renderSymbols(mapModel, ecModel, api); }; MapView.prototype.remove = function () { this._mapDraw && this._mapDraw.remove(); this._mapDraw = null; this.group.removeAll(); }; MapView.prototype.dispose = function () { this._mapDraw && this._mapDraw.remove(); this._mapDraw = null; }; MapView.prototype._renderSymbols = function (mapModel, ecModel, api) { var originalData = mapModel.originalData; var group = this.group; originalData.each(originalData.mapDimension('value'), function (value, originalDataIndex) { if (isNaN(value)) { return; } var layout = originalData.getItemLayout(originalDataIndex); if (!layout || !layout.point) { // Not exists in map return; } var point = layout.point; var offset = layout.offset; var circle = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Circle"]({ style: { // Because the special of map draw. // Which needs statistic of multiple series and draw on one map. // And each series also need a symbol with legend color // // Layout and visual are put one the different data // TODO fill: mapModel.getData().getVisual('style').fill }, shape: { cx: point[0] + offset * 9, cy: point[1], r: 3 }, silent: true, // Do not overlap the first series, on which labels are displayed. z2: 8 + (!offset ? _util_states_js__WEBPACK_IMPORTED_MODULE_5__["Z2_EMPHASIS_LIFT"] + 1 : 0) }); // Only the series that has the first value on the same region is in charge of rendering the label. // But consider the case: // series: [ // {id: 'X', type: 'map', map: 'm', {data: [{name: 'A', value: 11}, {name: 'B', {value: 22}]}, // {id: 'Y', type: 'map', map: 'm', {data: [{name: 'A', value: 21}, {name: 'C', {value: 33}]} // ] // The offset `0` of item `A` is at series `X`, but of item `C` is at series `Y`. // For backward compatibility, we follow the rule that render label `A` by the // settings on series `X` but render label `C` by the settings on series `Y`. if (!offset) { var fullData = mapModel.mainSeries.getData(); var name_1 = originalData.getName(originalDataIndex); var fullIndex_1 = fullData.indexOfName(name_1); var itemModel = originalData.getItemModel(originalDataIndex); var labelModel = itemModel.getModel('label'); var regionGroup = fullData.getItemGraphicEl(fullIndex_1); // `getFormattedLabel` needs to use `getData` inside. Here // `mapModel.getData()` is shallow cloned from `mainSeries.getData()`. // FIXME // If this is not the `mainSeries`, the item model (like label formatter) // set on original data item will never get. But it has been working // like that from the beginning, and this scenario is rarely encountered. // So it won't be fixed until we have to. Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["setLabelStyle"])(circle, Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["getLabelStatesModels"])(itemModel), { labelFetcher: { getFormattedLabel: function (idx, state) { return mapModel.getFormattedLabel(fullIndex_1, state); } }, defaultText: name_1 }); circle.disableLabelAnimation = true; if (!labelModel.get('position')) { circle.setTextConfig({ position: 'bottom' }); } regionGroup.onHoverStateChange = function (toState) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_5__["setStatesFlag"])(circle, toState); }; } group.add(circle); }); }; MapView.type = 'map'; return MapView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_3__["default"]); /* harmony default export */ __webpack_exports__["default"] = (MapView); /***/ }), /***/ "./node_modules/echarts/lib/chart/map/install.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/chart/map/install.js ***! \*******************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _MapView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MapView.js */ "./node_modules/echarts/lib/chart/map/MapView.js"); /* harmony import */ var _MapSeries_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MapSeries.js */ "./node_modules/echarts/lib/chart/map/MapSeries.js"); /* harmony import */ var _mapDataStatistic_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./mapDataStatistic.js */ "./node_modules/echarts/lib/chart/map/mapDataStatistic.js"); /* harmony import */ var _mapSymbolLayout_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mapSymbolLayout.js */ "./node_modules/echarts/lib/chart/map/mapSymbolLayout.js"); /* harmony import */ var _legacy_dataSelectAction_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../legacy/dataSelectAction.js */ "./node_modules/echarts/lib/legacy/dataSelectAction.js"); /* harmony import */ var _component_geo_install_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../component/geo/install.js */ "./node_modules/echarts/lib/component/geo/install.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { Object(_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_component_geo_install_js__WEBPACK_IMPORTED_MODULE_6__["install"]); registers.registerChartView(_MapView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerSeriesModel(_MapSeries_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerLayout(_mapSymbolLayout_js__WEBPACK_IMPORTED_MODULE_4__["default"]); registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, _mapDataStatistic_js__WEBPACK_IMPORTED_MODULE_3__["default"]); Object(_legacy_dataSelectAction_js__WEBPACK_IMPORTED_MODULE_5__["createLegacyDataSelectAction"])('map', registers.registerAction); } /***/ }), /***/ "./node_modules/echarts/lib/chart/map/mapDataStatistic.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/map/mapDataStatistic.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return mapDataStatistic; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // FIXME 公用? function dataStatistics(datas, statisticType) { var dataNameMap = {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](datas, function (data) { data.each(data.mapDimension('value'), function (value, idx) { // Add prefix to avoid conflict with Object.prototype. var mapKey = 'ec-' + data.getName(idx); dataNameMap[mapKey] = dataNameMap[mapKey] || []; if (!isNaN(value)) { dataNameMap[mapKey].push(value); } }); }); return datas[0].map(datas[0].mapDimension('value'), function (value, idx) { var mapKey = 'ec-' + datas[0].getName(idx); var sum = 0; var min = Infinity; var max = -Infinity; var len = dataNameMap[mapKey].length; for (var i = 0; i < len; i++) { min = Math.min(min, dataNameMap[mapKey][i]); max = Math.max(max, dataNameMap[mapKey][i]); sum += dataNameMap[mapKey][i]; } var result; if (statisticType === 'min') { result = min; } else if (statisticType === 'max') { result = max; } else if (statisticType === 'average') { result = sum / len; } else { result = sum; } return len === 0 ? NaN : result; }); } function mapDataStatistic(ecModel) { var seriesGroups = {}; ecModel.eachSeriesByType('map', function (seriesModel) { var hostGeoModel = seriesModel.getHostGeoModel(); var key = hostGeoModel ? 'o' + hostGeoModel.id : 'i' + seriesModel.getMapType(); (seriesGroups[key] = seriesGroups[key] || []).push(seriesModel); }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](seriesGroups, function (seriesList, key) { var data = dataStatistics(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](seriesList, function (seriesModel) { return seriesModel.getData(); }), seriesList[0].get('mapValueCalculation')); for (var i = 0; i < seriesList.length; i++) { seriesList[i].originalData = seriesList[i].getData(); } // FIXME Put where? for (var i = 0; i < seriesList.length; i++) { seriesList[i].seriesGroup = seriesList; seriesList[i].needsDrawMap = i === 0 && !seriesList[i].getHostGeoModel(); seriesList[i].setData(data.cloneShallow()); seriesList[i].mainSeries = seriesList[0]; } }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/map/mapSymbolLayout.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/map/mapSymbolLayout.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return mapSymbolLayout; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function mapSymbolLayout(ecModel) { var processedMapType = {}; ecModel.eachSeriesByType('map', function (mapSeries) { var mapType = mapSeries.getMapType(); if (mapSeries.getHostGeoModel() || processedMapType[mapType]) { return; } var mapSymbolOffsets = {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](mapSeries.seriesGroup, function (subMapSeries) { var geo = subMapSeries.coordinateSystem; var data = subMapSeries.originalData; if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) { data.each(data.mapDimension('value'), function (value, idx) { var name = data.getName(idx); var region = geo.getRegion(name); // If input series.data is [11, 22, '-'/null/undefined, 44], // it will be filled with NaN: [11, 22, NaN, 44] and NaN will // not be drawn. So here must validate if value is NaN. if (!region || isNaN(value)) { return; } var offset = mapSymbolOffsets[name] || 0; var point = geo.dataToPoint(region.getCenter()); mapSymbolOffsets[name] = offset + 1; data.setItemLayout(idx, { point: point, offset: offset }); }); } }); // Show label of those region not has legendIcon (which is offset 0) var data = mapSeries.getData(); data.each(function (idx) { var name = data.getName(idx); var layout = data.getItemLayout(idx) || {}; layout.showLabel = !mapSymbolOffsets[name]; data.setItemLayout(idx, layout); }); processedMapType[mapType] = true; }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/parallel/ParallelSeries.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/chart/parallel/ParallelSeries.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helper/createSeriesData.js */ "./node_modules/echarts/lib/chart/helper/createSeriesData.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ParallelSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ParallelSeriesModel, _super); function ParallelSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ParallelSeriesModel.type; _this.visualStyleAccessPath = 'lineStyle'; _this.visualDrawType = 'stroke'; return _this; } ParallelSeriesModel.prototype.getInitialData = function (option, ecModel) { return Object(_helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_3__["default"])(null, this, { useEncodeDefaulter: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(makeDefaultEncode, null, this) }); }; /** * User can get data raw indices on 'axisAreaSelected' event received. * * @return Raw indices */ ParallelSeriesModel.prototype.getRawIndicesByActiveState = function (activeState) { var coordSys = this.coordinateSystem; var data = this.getData(); var indices = []; coordSys.eachActiveState(data, function (theActiveState, dataIndex) { if (activeState === theActiveState) { indices.push(data.getRawIndex(dataIndex)); } }); return indices; }; ParallelSeriesModel.type = 'series.parallel'; ParallelSeriesModel.dependencies = ['parallel']; ParallelSeriesModel.defaultOption = { // zlevel: 0, z: 2, coordinateSystem: 'parallel', parallelIndex: 0, label: { show: false }, inactiveOpacity: 0.05, activeOpacity: 1, lineStyle: { width: 1, opacity: 0.45, type: 'solid' }, emphasis: { label: { show: false } }, progressive: 500, smooth: false, animationEasing: 'linear' }; return ParallelSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_2__["default"]); function makeDefaultEncode(seriesModel) { // The mapping of parallelAxis dimension to data dimension can // be specified in parallelAxis.option.dim. For example, if // parallelAxis.option.dim is 'dim3', it mapping to the third // dimension of data. But `data.encode` has higher priority. // Moreover, parallelModel.dimension should not be regarded as data // dimensions. Consider dimensions = ['dim4', 'dim2', 'dim6']; var parallelModel = seriesModel.ecModel.getComponent('parallel', seriesModel.get('parallelIndex')); if (!parallelModel) { return; } var encodeDefine = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(parallelModel.dimensions, function (axisDim) { var dataDimIndex = convertDimNameToNumber(axisDim); encodeDefine[axisDim] = dataDimIndex; }); return encodeDefine; } function convertDimNameToNumber(dimName) { return +dimName.replace('dim', ''); } /* harmony default export */ __webpack_exports__["default"] = (ParallelSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/parallel/ParallelView.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/parallel/ParallelView.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../animation/basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DEFAULT_SMOOTH = 0.3; var ParallelView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ParallelView, _super); function ParallelView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ParallelView.type; _this._dataGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Group"](); _this._initialized = false; return _this; } ParallelView.prototype.init = function () { this.group.add(this._dataGroup); }; /** * @override */ ParallelView.prototype.render = function (seriesModel, ecModel, api, payload) { // Clear previously rendered progressive elements. this._progressiveEls = null; var dataGroup = this._dataGroup; var data = seriesModel.getData(); var oldData = this._data; var coordSys = seriesModel.coordinateSystem; var dimensions = coordSys.dimensions; var seriesScope = makeSeriesScope(seriesModel); data.diff(oldData).add(add).update(update).remove(remove).execute(); function add(newDataIndex) { var line = addEl(data, dataGroup, newDataIndex, dimensions, coordSys); updateElCommon(line, data, newDataIndex, seriesScope); } function update(newDataIndex, oldDataIndex) { var line = oldData.getItemGraphicEl(oldDataIndex); var points = createLinePoints(data, newDataIndex, dimensions, coordSys); data.setItemGraphicEl(newDataIndex, line); _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["updateProps"](line, { shape: { points: points } }, seriesModel, newDataIndex); Object(_animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_6__["saveOldStyle"])(line); updateElCommon(line, data, newDataIndex, seriesScope); } function remove(oldDataIndex) { var line = oldData.getItemGraphicEl(oldDataIndex); dataGroup.remove(line); } // First create if (!this._initialized) { this._initialized = true; var clipPath = createGridClipShape(coordSys, seriesModel, function () { // Callback will be invoked immediately if there is no animation setTimeout(function () { dataGroup.removeClipPath(); }); }); dataGroup.setClipPath(clipPath); } this._data = data; }; ParallelView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) { this._initialized = true; this._data = null; this._dataGroup.removeAll(); }; ParallelView.prototype.incrementalRender = function (taskParams, seriesModel, ecModel) { var data = seriesModel.getData(); var coordSys = seriesModel.coordinateSystem; var dimensions = coordSys.dimensions; var seriesScope = makeSeriesScope(seriesModel); var progressiveEls = this._progressiveEls = []; for (var dataIndex = taskParams.start; dataIndex < taskParams.end; dataIndex++) { var line = addEl(data, this._dataGroup, dataIndex, dimensions, coordSys); line.incremental = true; updateElCommon(line, data, dataIndex, seriesScope); progressiveEls.push(line); } }; ParallelView.prototype.remove = function () { this._dataGroup && this._dataGroup.removeAll(); this._data = null; }; ParallelView.type = 'parallel'; return ParallelView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_3__["default"]); function createGridClipShape(coordSys, seriesModel, cb) { var parallelModel = coordSys.model; var rect = coordSys.getRect(); var rectEl = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Rect"]({ shape: { x: rect.x, y: rect.y, width: rect.width, height: rect.height } }); var dim = parallelModel.get('layout') === 'horizontal' ? 'width' : 'height'; rectEl.setShape(dim, 0); _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["initProps"](rectEl, { shape: { width: rect.width, height: rect.height } }, seriesModel, cb); return rectEl; } function createLinePoints(data, dataIndex, dimensions, coordSys) { var points = []; for (var i = 0; i < dimensions.length; i++) { var dimName = dimensions[i]; var value = data.get(data.mapDimension(dimName), dataIndex); if (!isEmptyValue(value, coordSys.getAxis(dimName).type)) { points.push(coordSys.dataToPoint(value, dimName)); } } return points; } function addEl(data, dataGroup, dataIndex, dimensions, coordSys) { var points = createLinePoints(data, dataIndex, dimensions, coordSys); var line = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Polyline"]({ shape: { points: points }, // silent: true, z2: 10 }); dataGroup.add(line); data.setItemGraphicEl(dataIndex, line); return line; } function makeSeriesScope(seriesModel) { var smooth = seriesModel.get('smooth', true); smooth === true && (smooth = DEFAULT_SMOOTH); smooth = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_4__["numericToNumber"])(smooth); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["eqNaN"])(smooth) && (smooth = 0); return { smooth: smooth }; } function updateElCommon(el, data, dataIndex, seriesScope) { el.useStyle(data.getItemVisual(dataIndex, 'style')); el.style.fill = null; el.setShape('smooth', seriesScope.smooth); var itemModel = data.getItemModel(dataIndex); var emphasisModel = itemModel.getModel('emphasis'); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["setStatesStylesFromModel"])(el, itemModel, 'lineStyle'); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["toggleHoverEmphasis"])(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled')); } // function simpleDiff(oldData, newData, dimensions) { // let oldLen; // if (!oldData // || !oldData.__plProgressive // || (oldLen = oldData.count()) !== newData.count() // ) { // return true; // } // let dimLen = dimensions.length; // for (let i = 0; i < oldLen; i++) { // for (let j = 0; j < dimLen; j++) { // if (oldData.get(dimensions[j], i) !== newData.get(dimensions[j], i)) { // return true; // } // } // } // return false; // } // FIXME put in common util? function isEmptyValue(val, axisType) { return axisType === 'category' ? val == null : val == null || isNaN(val); // axisType === 'value' } /* harmony default export */ __webpack_exports__["default"] = (ParallelView); /***/ }), /***/ "./node_modules/echarts/lib/chart/parallel/install.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/chart/parallel/install.js ***! \************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _ParallelView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ParallelView.js */ "./node_modules/echarts/lib/chart/parallel/ParallelView.js"); /* harmony import */ var _ParallelSeries_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ParallelSeries.js */ "./node_modules/echarts/lib/chart/parallel/ParallelSeries.js"); /* harmony import */ var _parallelVisual_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parallelVisual.js */ "./node_modules/echarts/lib/chart/parallel/parallelVisual.js"); /* harmony import */ var _component_parallel_install_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../component/parallel/install.js */ "./node_modules/echarts/lib/component/parallel/install.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { Object(_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_component_parallel_install_js__WEBPACK_IMPORTED_MODULE_4__["install"]); registers.registerChartView(_ParallelView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerSeriesModel(_ParallelSeries_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerVisual(registers.PRIORITY.VISUAL.BRUSH, _parallelVisual_js__WEBPACK_IMPORTED_MODULE_3__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/chart/parallel/parallelVisual.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/chart/parallel/parallelVisual.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var opacityAccessPath = ['lineStyle', 'opacity']; var parallelVisual = { seriesType: 'parallel', reset: function (seriesModel, ecModel) { var coordSys = seriesModel.coordinateSystem; var opacityMap = { normal: seriesModel.get(['lineStyle', 'opacity']), active: seriesModel.get('activeOpacity'), inactive: seriesModel.get('inactiveOpacity') }; return { progress: function (params, data) { coordSys.eachActiveState(data, function (activeState, dataIndex) { var opacity = opacityMap[activeState]; if (activeState === 'normal' && data.hasItemOption) { var itemOpacity = data.getItemModel(dataIndex).get(opacityAccessPath, true); itemOpacity != null && (opacity = itemOpacity); } var existsStyle = data.ensureUniqueItemVisual(dataIndex, 'style'); existsStyle.opacity = opacity; }, params.start, params.end); } }; } }; /* harmony default export */ __webpack_exports__["default"] = (parallelVisual); /***/ }), /***/ "./node_modules/echarts/lib/chart/pie/PieSeries.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/chart/pie/PieSeries.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _helper_createSeriesDataSimply_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helper/createSeriesDataSimply.js */ "./node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _data_helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../data/helper/sourceHelper.js */ "./node_modules/echarts/lib/data/helper/sourceHelper.js"); /* harmony import */ var _visual_LegendVisualProvider_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../visual/LegendVisualProvider.js */ "./node_modules/echarts/lib/visual/LegendVisualProvider.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var innerData = _util_model_js__WEBPACK_IMPORTED_MODULE_3__["makeInner"](); var PieSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PieSeriesModel, _super); function PieSeriesModel() { return _super !== null && _super.apply(this, arguments) || this; } /** * @overwrite */ PieSeriesModel.prototype.init = function (option) { _super.prototype.init.apply(this, arguments); // Enable legend selection for each data item // Use a function instead of direct access because data reference may changed this.legendVisualProvider = new _visual_LegendVisualProvider_js__WEBPACK_IMPORTED_MODULE_6__["default"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["bind"](this.getData, this), zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["bind"](this.getRawData, this)); this._defaultLabelLine(option); }; /** * @overwrite */ PieSeriesModel.prototype.mergeOption = function () { _super.prototype.mergeOption.apply(this, arguments); }; /** * @overwrite */ PieSeriesModel.prototype.getInitialData = function () { return Object(_helper_createSeriesDataSimply_js__WEBPACK_IMPORTED_MODULE_1__["default"])(this, { coordDimensions: ['value'], encodeDefaulter: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["curry"](_data_helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_5__["makeSeriesEncodeForNameBased"], this) }); }; /** * @overwrite */ PieSeriesModel.prototype.getDataParams = function (dataIndex) { var data = this.getData(); // update seats when data is changed var dataInner = innerData(data); var seats = dataInner.seats; if (!seats) { var valueList_1 = []; data.each(data.mapDimension('value'), function (value) { valueList_1.push(value); }); seats = dataInner.seats = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_4__["getPercentSeats"])(valueList_1, data.hostModel.get('percentPrecision')); } var params = _super.prototype.getDataParams.call(this, dataIndex); // seats may be empty when sum is 0 params.percent = seats[dataIndex] || 0; params.$vars.push('percent'); return params; }; PieSeriesModel.prototype._defaultLabelLine = function (option) { // Extend labelLine emphasis _util_model_js__WEBPACK_IMPORTED_MODULE_3__["defaultEmphasis"](option, 'labelLine', ['show']); var labelLineNormalOpt = option.labelLine; var labelLineEmphasisOpt = option.emphasis.labelLine; // Not show label line if `label.normal.show = false` labelLineNormalOpt.show = labelLineNormalOpt.show && option.label.show; labelLineEmphasisOpt.show = labelLineEmphasisOpt.show && option.emphasis.label.show; }; PieSeriesModel.type = 'series.pie'; PieSeriesModel.defaultOption = { // zlevel: 0, z: 2, legendHoverLink: true, colorBy: 'data', // 默认全局居中 center: ['50%', '50%'], radius: [0, '75%'], // 默认顺时针 clockwise: true, startAngle: 90, endAngle: 'auto', padAngle: 0, // 最小角度改为0 minAngle: 0, // If the angle of a sector less than `minShowLabelAngle`, // the label will not be displayed. minShowLabelAngle: 0, // 选中时扇区偏移量 selectedOffset: 10, // 选择模式,默认关闭,可选single,multiple // selectedMode: false, // 南丁格尔玫瑰图模式,'radius'(半径) | 'area'(面积) // roseType: null, percentPrecision: 2, // If still show when all data zero. stillShowZeroSum: true, // cursor: null, left: 0, top: 0, right: 0, bottom: 0, width: null, height: null, label: { // color: 'inherit', // If rotate around circle rotate: 0, show: true, overflow: 'truncate', // 'outer', 'inside', 'center' position: 'outer', // 'none', 'labelLine', 'edge'. Works only when position is 'outer' alignTo: 'none', // Closest distance between label and chart edge. // Works only position is 'outer' and alignTo is 'edge'. edgeDistance: '25%', // Works only position is 'outer' and alignTo is not 'edge'. bleedMargin: 10, // Distance between text and label line. distanceToLabelLine: 5 // formatter: 标签文本格式器,同 tooltip.formatter,不支持异步回调 // 默认使用全局文本样式,详见 textStyle // distance: 当position为inner时有效,为label位置到圆心的距离与圆半径(环状图为内外半径和)的比例系数 }, // Enabled when label.normal.position is 'outer' labelLine: { show: true, // 引导线两段中的第一段长度 length: 15, // 引导线两段中的第二段长度 length2: 15, smooth: false, minTurnAngle: 90, maxSurfaceAngle: 90, lineStyle: { // color: 各异, width: 1, type: 'solid' } }, itemStyle: { borderWidth: 1, borderJoin: 'round' }, showEmptyCircle: true, emptyCircleStyle: { color: 'lightgray', opacity: 1 }, labelLayout: { // Hide the overlapped label. hideOverlap: true }, emphasis: { scale: true, scaleSize: 5 }, // If use strategy to avoid label overlapping avoidLabelOverlap: true, // Animation type. Valid values: expansion, scale animationType: 'expansion', animationDuration: 1000, // Animation type when update. Valid values: transition, expansion animationTypeUpdate: 'transition', animationEasingUpdate: 'cubicInOut', animationDurationUpdate: 500, animationEasing: 'cubicInOut' }; return PieSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_7__["default"]); /* harmony default export */ __webpack_exports__["default"] = (PieSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/pie/PieView.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/chart/pie/PieView.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _labelLayout_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./labelLayout.js */ "./node_modules/echarts/lib/chart/pie/labelLayout.js"); /* harmony import */ var _label_labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../label/labelGuideHelper.js */ "./node_modules/echarts/lib/label/labelGuideHelper.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _helper_sectorHelper_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helper/sectorHelper.js */ "./node_modules/echarts/lib/chart/helper/sectorHelper.js"); /* harmony import */ var _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../animation/basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* harmony import */ var _pieLayout_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./pieLayout.js */ "./node_modules/echarts/lib/chart/pie/pieLayout.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Piece of pie including Sector, Label, LabelLine */ var PiePiece = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PiePiece, _super); function PiePiece(data, idx, startAngle) { var _this = _super.call(this) || this; _this.z2 = 2; var text = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"](); _this.setTextContent(text); _this.updateData(data, idx, startAngle, true); return _this; } PiePiece.prototype.updateData = function (data, idx, startAngle, firstCreate) { var sector = this; var seriesModel = data.hostModel; var itemModel = data.getItemModel(idx); var emphasisModel = itemModel.getModel('emphasis'); var layout = data.getItemLayout(idx); // cornerRadius & innerCornerRadius doesn't exist in the item layout. Use `0` if null value is specified. // see `setItemLayout` in `pieLayout.ts`. var sectorShape = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(Object(_helper_sectorHelper_js__WEBPACK_IMPORTED_MODULE_8__["getSectorCornerRadius"])(itemModel.getModel('itemStyle'), layout, true), layout); // Ignore NaN data. if (isNaN(sectorShape.startAngle)) { // Use NaN shape to avoid drawing shape. sector.setShape(sectorShape); return; } if (firstCreate) { sector.setShape(sectorShape); var animationType = seriesModel.getShallow('animationType'); if (seriesModel.ecModel.ssr) { // Use scale animation in SSR mode(opacity?) // Because CSS SVG animation doesn't support very customized shape animation. _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["initProps"](sector, { scaleX: 0, scaleY: 0 }, seriesModel, { dataIndex: idx, isFrom: true }); sector.originX = sectorShape.cx; sector.originY = sectorShape.cy; } else if (animationType === 'scale') { sector.shape.r = layout.r0; _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["initProps"](sector, { shape: { r: layout.r } }, seriesModel, idx); } // Expansion else { if (startAngle != null) { sector.setShape({ startAngle: startAngle, endAngle: startAngle }); _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["initProps"](sector, { shape: { startAngle: layout.startAngle, endAngle: layout.endAngle } }, seriesModel, idx); } else { sector.shape.endAngle = layout.startAngle; _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["updateProps"](sector, { shape: { endAngle: layout.endAngle } }, seriesModel, idx); } } } else { Object(_animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_9__["saveOldStyle"])(sector); // Transition animation from the old shape _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["updateProps"](sector, { shape: sectorShape }, seriesModel, idx); } sector.useStyle(data.getItemVisual(idx, 'style')); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["setStatesStylesFromModel"])(sector, itemModel); var midAngle = (layout.startAngle + layout.endAngle) / 2; var offset = seriesModel.get('selectedOffset'); var dx = Math.cos(midAngle) * offset; var dy = Math.sin(midAngle) * offset; var cursorStyle = itemModel.getShallow('cursor'); cursorStyle && sector.attr('cursor', cursorStyle); this._updateLabel(seriesModel, data, idx); sector.ensureState('emphasis').shape = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])({ r: layout.r + (emphasisModel.get('scale') ? emphasisModel.get('scaleSize') || 0 : 0) }, Object(_helper_sectorHelper_js__WEBPACK_IMPORTED_MODULE_8__["getSectorCornerRadius"])(emphasisModel.getModel('itemStyle'), layout)); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(sector.ensureState('select'), { x: dx, y: dy, shape: Object(_helper_sectorHelper_js__WEBPACK_IMPORTED_MODULE_8__["getSectorCornerRadius"])(itemModel.getModel(['select', 'itemStyle']), layout) }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(sector.ensureState('blur'), { shape: Object(_helper_sectorHelper_js__WEBPACK_IMPORTED_MODULE_8__["getSectorCornerRadius"])(itemModel.getModel(['blur', 'itemStyle']), layout) }); var labelLine = sector.getTextGuideLine(); var labelText = sector.getTextContent(); labelLine && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(labelLine.ensureState('select'), { x: dx, y: dy }); // TODO: needs dx, dy in zrender? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(labelText.ensureState('select'), { x: dx, y: dy }); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["toggleHoverEmphasis"])(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled')); }; PiePiece.prototype._updateLabel = function (seriesModel, data, idx) { var sector = this; var itemModel = data.getItemModel(idx); var labelLineModel = itemModel.getModel('labelLine'); var style = data.getItemVisual(idx, 'style'); var visualColor = style && style.fill; var visualOpacity = style && style.opacity; Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["setLabelStyle"])(sector, Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["getLabelStatesModels"])(itemModel), { labelFetcher: data.hostModel, labelDataIndex: idx, inheritColor: visualColor, defaultOpacity: visualOpacity, defaultText: seriesModel.getFormattedLabel(idx, 'normal') || data.getName(idx) }); var labelText = sector.getTextContent(); // Set textConfig on sector. sector.setTextConfig({ // reset position, rotation position: null, rotation: null }); // Make sure update style on labelText after setLabelStyle. // Because setLabelStyle will replace a new style on it. labelText.attr({ z2: 10 }); var labelPosition = seriesModel.get(['label', 'position']); if (labelPosition !== 'outside' && labelPosition !== 'outer') { sector.removeTextGuideLine(); } else { var polyline = this.getTextGuideLine(); if (!polyline) { polyline = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Polyline"](); this.setTextGuideLine(polyline); } // Default use item visual color Object(_label_labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_6__["setLabelLineStyle"])(this, Object(_label_labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_6__["getLabelLineStatesModels"])(itemModel), { stroke: visualColor, opacity: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve3"])(labelLineModel.get(['lineStyle', 'opacity']), visualOpacity, 1) }); } }; return PiePiece; }(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Sector"]); // Pie view var PieView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PieView, _super); function PieView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.ignoreLabelLineUpdate = true; return _this; } PieView.prototype.render = function (seriesModel, ecModel, api, payload) { var data = seriesModel.getData(); var oldData = this._data; var group = this.group; var startAngle; // First render if (!oldData && data.count() > 0) { var shape = data.getItemLayout(0); for (var s = 1; isNaN(shape && shape.startAngle) && s < data.count(); ++s) { shape = data.getItemLayout(s); } if (shape) { startAngle = shape.startAngle; } } // remove empty-circle if it exists if (this._emptyCircleSector) { group.remove(this._emptyCircleSector); } // when all data are filtered, show lightgray empty circle if (data.count() === 0 && seriesModel.get('showEmptyCircle')) { var layoutData = Object(_pieLayout_js__WEBPACK_IMPORTED_MODULE_10__["getSeriesLayoutData"])(seriesModel); var sector = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Sector"]({ shape: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(Object(_pieLayout_js__WEBPACK_IMPORTED_MODULE_10__["getBasicPieLayout"])(seriesModel, api), layoutData) }); sector.useStyle(seriesModel.getModel('emptyCircleStyle').getItemStyle()); this._emptyCircleSector = sector; group.add(sector); } data.diff(oldData).add(function (idx) { var piePiece = new PiePiece(data, idx, startAngle); data.setItemGraphicEl(idx, piePiece); group.add(piePiece); }).update(function (newIdx, oldIdx) { var piePiece = oldData.getItemGraphicEl(oldIdx); piePiece.updateData(data, newIdx, startAngle); piePiece.off('click'); group.add(piePiece); data.setItemGraphicEl(newIdx, piePiece); }).remove(function (idx) { var piePiece = oldData.getItemGraphicEl(idx); _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["removeElementWithFadeOut"](piePiece, seriesModel, idx); }).execute(); Object(_labelLayout_js__WEBPACK_IMPORTED_MODULE_5__["default"])(seriesModel); // Always use initial animation. if (seriesModel.get('animationTypeUpdate') !== 'expansion') { this._data = data; } }; PieView.prototype.dispose = function () {}; PieView.prototype.containPoint = function (point, seriesModel) { var data = seriesModel.getData(); var itemLayout = data.getItemLayout(0); if (itemLayout) { var dx = point[0] - itemLayout.cx; var dy = point[1] - itemLayout.cy; var radius = Math.sqrt(dx * dx + dy * dy); return radius <= itemLayout.r && radius >= itemLayout.r0; } }; PieView.type = 'pie'; return PieView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_4__["default"]); /* harmony default export */ __webpack_exports__["default"] = (PieView); /***/ }), /***/ "./node_modules/echarts/lib/chart/pie/install.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/chart/pie/install.js ***! \*******************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _legacy_dataSelectAction_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../legacy/dataSelectAction.js */ "./node_modules/echarts/lib/legacy/dataSelectAction.js"); /* harmony import */ var _pie_pieLayout_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../pie/pieLayout.js */ "./node_modules/echarts/lib/chart/pie/pieLayout.js"); /* harmony import */ var _processor_dataFilter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../processor/dataFilter.js */ "./node_modules/echarts/lib/processor/dataFilter.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _PieView_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PieView.js */ "./node_modules/echarts/lib/chart/pie/PieView.js"); /* harmony import */ var _PieSeries_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PieSeries.js */ "./node_modules/echarts/lib/chart/pie/PieSeries.js"); /* harmony import */ var _processor_negativeDataFilter_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../processor/negativeDataFilter.js */ "./node_modules/echarts/lib/processor/negativeDataFilter.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerChartView(_PieView_js__WEBPACK_IMPORTED_MODULE_4__["default"]); registers.registerSeriesModel(_PieSeries_js__WEBPACK_IMPORTED_MODULE_5__["default"]); Object(_legacy_dataSelectAction_js__WEBPACK_IMPORTED_MODULE_0__["createLegacyDataSelectAction"])('pie', registers.registerAction); registers.registerLayout(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["curry"])(_pie_pieLayout_js__WEBPACK_IMPORTED_MODULE_1__["default"], 'pie')); registers.registerProcessor(Object(_processor_dataFilter_js__WEBPACK_IMPORTED_MODULE_2__["default"])('pie')); registers.registerProcessor(Object(_processor_negativeDataFilter_js__WEBPACK_IMPORTED_MODULE_6__["default"])('pie')); } /***/ }), /***/ "./node_modules/echarts/lib/chart/pie/labelLayout.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/pie/labelLayout.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return pieLabelLayout; }); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _label_labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../label/labelGuideHelper.js */ "./node_modules/echarts/lib/label/labelGuideHelper.js"); /* harmony import */ var _label_labelLayoutHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../label/labelLayoutHelper.js */ "./node_modules/echarts/lib/label/labelLayoutHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // FIXME emphasis label position is not same with normal label position var RADIAN = Math.PI / 180; function adjustSingleSide(list, cx, cy, r, dir, viewWidth, viewHeight, viewLeft, viewTop, farthestX) { if (list.length < 2) { return; } ; function recalculateXOnSemiToAlignOnEllipseCurve(semi) { var rB = semi.rB; var rB2 = rB * rB; for (var i = 0; i < semi.list.length; i++) { var item = semi.list[i]; var dy = Math.abs(item.label.y - cy); // horizontal r is always same with original r because x is not changed. var rA = r + item.len; var rA2 = rA * rA; // Use ellipse implicit function to calculate x var dx = Math.sqrt(Math.abs((1 - dy * dy / rB2) * rA2)); var newX = cx + (dx + item.len2) * dir; var deltaX = newX - item.label.x; var newTargetWidth = item.targetTextWidth - deltaX * dir; // text x is changed, so need to recalculate width. constrainTextWidth(item, newTargetWidth, true); item.label.x = newX; } } // Adjust X based on the shifted y. Make tight labels aligned on an ellipse curve. function recalculateX(items) { // Extremes of var topSemi = { list: [], maxY: 0 }; var bottomSemi = { list: [], maxY: 0 }; for (var i = 0; i < items.length; i++) { if (items[i].labelAlignTo !== 'none') { continue; } var item = items[i]; var semi = item.label.y > cy ? bottomSemi : topSemi; var dy = Math.abs(item.label.y - cy); if (dy >= semi.maxY) { var dx = item.label.x - cx - item.len2 * dir; // horizontal r is always same with original r because x is not changed. var rA = r + item.len; // Canculate rB based on the topest / bottemest label. var rB = Math.abs(dx) < rA ? Math.sqrt(dy * dy / (1 - dx * dx / rA / rA)) : rA; semi.rB = rB; semi.maxY = dy; } semi.list.push(item); } recalculateXOnSemiToAlignOnEllipseCurve(topSemi); recalculateXOnSemiToAlignOnEllipseCurve(bottomSemi); } var len = list.length; for (var i = 0; i < len; i++) { if (list[i].position === 'outer' && list[i].labelAlignTo === 'labelLine') { var dx = list[i].label.x - farthestX; list[i].linePoints[1][0] += dx; list[i].label.x = farthestX; } } if (Object(_label_labelLayoutHelper_js__WEBPACK_IMPORTED_MODULE_4__["shiftLayoutOnY"])(list, viewTop, viewTop + viewHeight)) { recalculateX(list); } } function avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight, viewLeft, viewTop) { var leftList = []; var rightList = []; var leftmostX = Number.MAX_VALUE; var rightmostX = -Number.MAX_VALUE; for (var i = 0; i < labelLayoutList.length; i++) { var label = labelLayoutList[i].label; if (isPositionCenter(labelLayoutList[i])) { continue; } if (label.x < cx) { leftmostX = Math.min(leftmostX, label.x); leftList.push(labelLayoutList[i]); } else { rightmostX = Math.max(rightmostX, label.x); rightList.push(labelLayoutList[i]); } } for (var i = 0; i < labelLayoutList.length; i++) { var layout = labelLayoutList[i]; if (!isPositionCenter(layout) && layout.linePoints) { if (layout.labelStyleWidth != null) { continue; } var label = layout.label; var linePoints = layout.linePoints; var targetTextWidth = void 0; if (layout.labelAlignTo === 'edge') { if (label.x < cx) { targetTextWidth = linePoints[2][0] - layout.labelDistance - viewLeft - layout.edgeDistance; } else { targetTextWidth = viewLeft + viewWidth - layout.edgeDistance - linePoints[2][0] - layout.labelDistance; } } else if (layout.labelAlignTo === 'labelLine') { if (label.x < cx) { targetTextWidth = leftmostX - viewLeft - layout.bleedMargin; } else { targetTextWidth = viewLeft + viewWidth - rightmostX - layout.bleedMargin; } } else { if (label.x < cx) { targetTextWidth = label.x - viewLeft - layout.bleedMargin; } else { targetTextWidth = viewLeft + viewWidth - label.x - layout.bleedMargin; } } layout.targetTextWidth = targetTextWidth; constrainTextWidth(layout, targetTextWidth); } } adjustSingleSide(rightList, cx, cy, r, 1, viewWidth, viewHeight, viewLeft, viewTop, rightmostX); adjustSingleSide(leftList, cx, cy, r, -1, viewWidth, viewHeight, viewLeft, viewTop, leftmostX); for (var i = 0; i < labelLayoutList.length; i++) { var layout = labelLayoutList[i]; if (!isPositionCenter(layout) && layout.linePoints) { var label = layout.label; var linePoints = layout.linePoints; var isAlignToEdge = layout.labelAlignTo === 'edge'; var padding = label.style.padding; var paddingH = padding ? padding[1] + padding[3] : 0; // textRect.width already contains paddingH if bgColor is set var extraPaddingH = label.style.backgroundColor ? 0 : paddingH; var realTextWidth = layout.rect.width + extraPaddingH; var dist = linePoints[1][0] - linePoints[2][0]; if (isAlignToEdge) { if (label.x < cx) { linePoints[2][0] = viewLeft + layout.edgeDistance + realTextWidth + layout.labelDistance; } else { linePoints[2][0] = viewLeft + viewWidth - layout.edgeDistance - realTextWidth - layout.labelDistance; } } else { if (label.x < cx) { linePoints[2][0] = label.x + layout.labelDistance; } else { linePoints[2][0] = label.x - layout.labelDistance; } linePoints[1][0] = linePoints[2][0] + dist; } linePoints[1][1] = linePoints[2][1] = label.y; } } } /** * Set max width of each label, and then wrap each label to the max width. * * @param layout label layout * @param availableWidth max width for the label to display * @param forceRecalculate recaculate the text layout even if the current width * is smaller than `availableWidth`. This is useful when the text was previously * wrapped by calling `constrainTextWidth` but now `availableWidth` changed, in * which case, previous wrapping should be redo. */ function constrainTextWidth(layout, availableWidth, forceRecalculate) { if (forceRecalculate === void 0) { forceRecalculate = false; } if (layout.labelStyleWidth != null) { // User-defined style.width has the highest priority. return; } var label = layout.label; var style = label.style; var textRect = layout.rect; var bgColor = style.backgroundColor; var padding = style.padding; var paddingH = padding ? padding[1] + padding[3] : 0; var overflow = style.overflow; // textRect.width already contains paddingH if bgColor is set var oldOuterWidth = textRect.width + (bgColor ? 0 : paddingH); if (availableWidth < oldOuterWidth || forceRecalculate) { var oldHeight = textRect.height; if (overflow && overflow.match('break')) { // Temporarily set background to be null to calculate // the bounding box without background. label.setStyle('backgroundColor', null); // Set constraining width label.setStyle('width', availableWidth - paddingH); // This is the real bounding box of the text without padding. var innerRect = label.getBoundingRect(); label.setStyle('width', Math.ceil(innerRect.width)); label.setStyle('backgroundColor', bgColor); } else { var availableInnerWidth = availableWidth - paddingH; var newWidth = availableWidth < oldOuterWidth // Current text is too wide, use `availableWidth` as max width. ? availableInnerWidth : // Current available width is enough, but the text may have // already been wrapped with a smaller available width. forceRecalculate ? availableInnerWidth > layout.unconstrainedWidth // Current available is larger than text width, // so don't constrain width (otherwise it may have // empty space in the background). ? null // Current available is smaller than text width, so // use the current available width as constraining // width. : availableInnerWidth // Current available width is enough, so no need to // constrain. : null; label.setStyle('width', newWidth); } var newRect = label.getBoundingRect(); textRect.width = newRect.width; var margin = (label.style.margin || 0) + 2.1; textRect.height = newRect.height + margin; textRect.y -= (textRect.height - oldHeight) / 2; } } function isPositionCenter(sectorShape) { // Not change x for center label return sectorShape.position === 'center'; } function pieLabelLayout(seriesModel) { var data = seriesModel.getData(); var labelLayoutList = []; var cx; var cy; var hasLabelRotate = false; var minShowLabelRadian = (seriesModel.get('minShowLabelAngle') || 0) * RADIAN; var viewRect = data.getLayout('viewRect'); var r = data.getLayout('r'); var viewWidth = viewRect.width; var viewLeft = viewRect.x; var viewTop = viewRect.y; var viewHeight = viewRect.height; function setNotShow(el) { el.ignore = true; } function isLabelShown(label) { if (!label.ignore) { return true; } for (var key in label.states) { if (label.states[key].ignore === false) { return true; } } return false; } data.each(function (idx) { var sector = data.getItemGraphicEl(idx); var sectorShape = sector.shape; var label = sector.getTextContent(); var labelLine = sector.getTextGuideLine(); var itemModel = data.getItemModel(idx); var labelModel = itemModel.getModel('label'); // Use position in normal or emphasis var labelPosition = labelModel.get('position') || itemModel.get(['emphasis', 'label', 'position']); var labelDistance = labelModel.get('distanceToLabelLine'); var labelAlignTo = labelModel.get('alignTo'); var edgeDistance = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(labelModel.get('edgeDistance'), viewWidth); var bleedMargin = labelModel.get('bleedMargin'); var labelLineModel = itemModel.getModel('labelLine'); var labelLineLen = labelLineModel.get('length'); labelLineLen = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(labelLineLen, viewWidth); var labelLineLen2 = labelLineModel.get('length2'); labelLineLen2 = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(labelLineLen2, viewWidth); if (Math.abs(sectorShape.endAngle - sectorShape.startAngle) < minShowLabelRadian) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(label.states, setNotShow); label.ignore = true; if (labelLine) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(labelLine.states, setNotShow); labelLine.ignore = true; } return; } if (!isLabelShown(label)) { return; } var midAngle = (sectorShape.startAngle + sectorShape.endAngle) / 2; var nx = Math.cos(midAngle); var ny = Math.sin(midAngle); var textX; var textY; var linePoints; var textAlign; cx = sectorShape.cx; cy = sectorShape.cy; var isLabelInside = labelPosition === 'inside' || labelPosition === 'inner'; if (labelPosition === 'center') { textX = sectorShape.cx; textY = sectorShape.cy; textAlign = 'center'; } else { var x1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * nx : sectorShape.r * nx) + cx; var y1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * ny : sectorShape.r * ny) + cy; textX = x1 + nx * 3; textY = y1 + ny * 3; if (!isLabelInside) { // For roseType var x2 = x1 + nx * (labelLineLen + r - sectorShape.r); var y2 = y1 + ny * (labelLineLen + r - sectorShape.r); var x3 = x2 + (nx < 0 ? -1 : 1) * labelLineLen2; var y3 = y2; if (labelAlignTo === 'edge') { // Adjust textX because text align of edge is opposite textX = nx < 0 ? viewLeft + edgeDistance : viewLeft + viewWidth - edgeDistance; } else { textX = x3 + (nx < 0 ? -labelDistance : labelDistance); } textY = y3; linePoints = [[x1, y1], [x2, y2], [x3, y3]]; } textAlign = isLabelInside ? 'center' : labelAlignTo === 'edge' ? nx > 0 ? 'right' : 'left' : nx > 0 ? 'left' : 'right'; } var PI = Math.PI; var labelRotate = 0; var rotate = labelModel.get('rotate'); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isNumber"])(rotate)) { labelRotate = rotate * (PI / 180); } else if (labelPosition === 'center') { labelRotate = 0; } else if (rotate === 'radial' || rotate === true) { var radialAngle = nx < 0 ? -midAngle + PI : -midAngle; labelRotate = radialAngle; } else if (rotate === 'tangential' && labelPosition !== 'outside' && labelPosition !== 'outer') { var rad = Math.atan2(nx, ny); if (rad < 0) { rad = PI * 2 + rad; } var isDown = ny > 0; if (isDown) { rad = PI + rad; } labelRotate = rad - PI; } hasLabelRotate = !!labelRotate; label.x = textX; label.y = textY; label.rotation = labelRotate; label.setStyle({ verticalAlign: 'middle' }); // Not sectorShape the inside label if (!isLabelInside) { var textRect = label.getBoundingRect().clone(); textRect.applyTransform(label.getComputedTransform()); // Text has a default 1px stroke. Exclude this. var margin = (label.style.margin || 0) + 2.1; textRect.y -= margin / 2; textRect.height += margin; labelLayoutList.push({ label: label, labelLine: labelLine, position: labelPosition, len: labelLineLen, len2: labelLineLen2, minTurnAngle: labelLineModel.get('minTurnAngle'), maxSurfaceAngle: labelLineModel.get('maxSurfaceAngle'), surfaceNormal: new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Point"](nx, ny), linePoints: linePoints, textAlign: textAlign, labelDistance: labelDistance, labelAlignTo: labelAlignTo, edgeDistance: edgeDistance, bleedMargin: bleedMargin, rect: textRect, unconstrainedWidth: textRect.width, labelStyleWidth: label.style.width }); } else { label.setStyle({ align: textAlign }); var selectState = label.states.select; if (selectState) { selectState.x += label.x; selectState.y += label.y; } } sector.setTextConfig({ inside: isLabelInside }); }); if (!hasLabelRotate && seriesModel.get('avoidLabelOverlap')) { avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight, viewLeft, viewTop); } for (var i = 0; i < labelLayoutList.length; i++) { var layout = labelLayoutList[i]; var label = layout.label; var labelLine = layout.labelLine; var notShowLabel = isNaN(label.x) || isNaN(label.y); if (label) { label.setStyle({ align: layout.textAlign }); if (notShowLabel) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(label.states, setNotShow); label.ignore = true; } var selectState = label.states.select; if (selectState) { selectState.x += label.x; selectState.y += label.y; } } if (labelLine) { var linePoints = layout.linePoints; if (notShowLabel || !linePoints) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(labelLine.states, setNotShow); labelLine.ignore = true; } else { Object(_label_labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_3__["limitTurnAngle"])(linePoints, layout.minTurnAngle); Object(_label_labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_3__["limitSurfaceAngle"])(linePoints, layout.surfaceNormal, layout.maxSurfaceAngle); labelLine.setShape({ points: linePoints }); // Set the anchor to the midpoint of sector label.__hostTarget.textGuideLineConfig = { anchor: new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Point"](linePoints[0][0], linePoints[0][1]) }; } } } } /***/ }), /***/ "./node_modules/echarts/lib/chart/pie/pieLayout.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/chart/pie/pieLayout.js ***! \*********************************************************/ /*! exports provided: getBasicPieLayout, default, getSeriesLayoutData */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBasicPieLayout", function() { return getBasicPieLayout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return pieLayout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSeriesLayoutData", function() { return getSeriesLayoutData; }); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_PathProxy_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/PathProxy.js */ "./node_modules/zrender/lib/core/PathProxy.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PI2 = Math.PI * 2; var RADIAN = Math.PI / 180; function getViewRect(seriesModel, api) { return _util_layout_js__WEBPACK_IMPORTED_MODULE_1__["getLayoutRect"](seriesModel.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() }); } function getBasicPieLayout(seriesModel, api) { var viewRect = getViewRect(seriesModel, api); // center can be string or number when coordinateSystem is specified var center = seriesModel.get('center'); var radius = seriesModel.get('radius'); if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isArray"](radius)) { radius = [0, radius]; } var width = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(viewRect.width, api.getWidth()); var height = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(viewRect.height, api.getHeight()); var size = Math.min(width, height); var r0 = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(radius[0], size / 2); var r = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(radius[1], size / 2); var cx; var cy; var coordSys = seriesModel.coordinateSystem; if (coordSys) { // percentage is not allowed when coordinate system is specified var point = coordSys.dataToPoint(center); cx = point[0] || 0; cy = point[1] || 0; } else { if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isArray"](center)) { center = [center, center]; } cx = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(center[0], width) + viewRect.x; cy = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(center[1], height) + viewRect.y; } return { cx: cx, cy: cy, r0: r0, r: r }; } function pieLayout(seriesType, ecModel, api) { ecModel.eachSeriesByType(seriesType, function (seriesModel) { var data = seriesModel.getData(); var valueDim = data.mapDimension('value'); var viewRect = getViewRect(seriesModel, api); var _a = getBasicPieLayout(seriesModel, api), cx = _a.cx, cy = _a.cy, r = _a.r, r0 = _a.r0; var startAngle = -seriesModel.get('startAngle') * RADIAN; var endAngle = seriesModel.get('endAngle'); var padAngle = seriesModel.get('padAngle') * RADIAN; endAngle = endAngle === 'auto' ? startAngle - PI2 : -endAngle * RADIAN; var minAngle = seriesModel.get('minAngle') * RADIAN; var minAndPadAngle = minAngle + padAngle; var validDataCount = 0; data.each(valueDim, function (value) { !isNaN(value) && validDataCount++; }); var sum = data.getSum(valueDim); // Sum may be 0 var unitRadian = Math.PI / (sum || validDataCount) * 2; var clockwise = seriesModel.get('clockwise'); var roseType = seriesModel.get('roseType'); var stillShowZeroSum = seriesModel.get('stillShowZeroSum'); // [0...max] var extent = data.getDataExtent(valueDim); extent[0] = 0; var dir = clockwise ? 1 : -1; var angles = [startAngle, endAngle]; var halfPadAngle = dir * padAngle / 2; Object(zrender_lib_core_PathProxy_js__WEBPACK_IMPORTED_MODULE_3__["normalizeArcAngles"])(angles, !clockwise); startAngle = angles[0], endAngle = angles[1]; var layoutData = getSeriesLayoutData(seriesModel); layoutData.startAngle = startAngle; layoutData.endAngle = endAngle; layoutData.clockwise = clockwise; var angleRange = Math.abs(endAngle - startAngle); // In the case some sector angle is smaller than minAngle var restAngle = angleRange; var valueSumLargerThanMinAngle = 0; var currentAngle = startAngle; data.setLayout({ viewRect: viewRect, r: r }); data.each(valueDim, function (value, idx) { var angle; if (isNaN(value)) { data.setItemLayout(idx, { angle: NaN, startAngle: NaN, endAngle: NaN, clockwise: clockwise, cx: cx, cy: cy, r0: r0, r: roseType ? NaN : r }); return; } // FIXME 兼容 2.0 但是 roseType 是 area 的时候才是这样? if (roseType !== 'area') { angle = sum === 0 && stillShowZeroSum ? unitRadian : value * unitRadian; } else { angle = angleRange / validDataCount; } if (angle < minAndPadAngle) { angle = minAndPadAngle; restAngle -= minAndPadAngle; } else { valueSumLargerThanMinAngle += value; } var endAngle = currentAngle + dir * angle; // calculate display angle var actualStartAngle = 0; var actualEndAngle = 0; if (padAngle > angle) { actualStartAngle = currentAngle + dir * angle / 2; actualEndAngle = actualStartAngle; } else { actualStartAngle = currentAngle + halfPadAngle; actualEndAngle = endAngle - halfPadAngle; } data.setItemLayout(idx, { angle: angle, startAngle: actualStartAngle, endAngle: actualEndAngle, clockwise: clockwise, cx: cx, cy: cy, r0: r0, r: roseType ? Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["linearMap"])(value, extent, [r0, r]) : r }); currentAngle = endAngle; }); // Some sector is constrained by minAngle and padAngle // Rest sectors needs recalculate angle if (restAngle < PI2 && validDataCount) { // Average the angle if rest angle is not enough after all angles is // Constrained by minAngle and padAngle if (restAngle <= 1e-3) { var angle_1 = angleRange / validDataCount; data.each(valueDim, function (value, idx) { if (!isNaN(value)) { var layout_1 = data.getItemLayout(idx); layout_1.angle = angle_1; var actualStartAngle = 0; var actualEndAngle = 0; if (angle_1 < padAngle) { actualStartAngle = startAngle + dir * (idx + 1 / 2) * angle_1; actualEndAngle = actualStartAngle; } else { actualStartAngle = startAngle + dir * idx * angle_1 + halfPadAngle; actualEndAngle = startAngle + dir * (idx + 1) * angle_1 - halfPadAngle; } layout_1.startAngle = actualStartAngle; layout_1.endAngle = actualEndAngle; } }); } else { unitRadian = restAngle / valueSumLargerThanMinAngle; currentAngle = startAngle; data.each(valueDim, function (value, idx) { if (!isNaN(value)) { var layout_2 = data.getItemLayout(idx); var angle = layout_2.angle === minAndPadAngle ? minAndPadAngle : value * unitRadian; var actualStartAngle = 0; var actualEndAngle = 0; if (angle < padAngle) { actualStartAngle = currentAngle + dir * angle / 2; actualEndAngle = actualStartAngle; } else { actualStartAngle = currentAngle + halfPadAngle; actualEndAngle = currentAngle + dir * angle - halfPadAngle; } layout_2.startAngle = actualStartAngle; layout_2.endAngle = actualEndAngle; currentAngle += dir * angle; } }); } } }); } var getSeriesLayoutData = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_4__["makeInner"])(); /***/ }), /***/ "./node_modules/echarts/lib/chart/radar/RadarSeries.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/radar/RadarSeries.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _helper_createSeriesDataSimply_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/createSeriesDataSimply.js */ "./node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _visual_LegendVisualProvider_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../visual/LegendVisualProvider.js */ "./node_modules/echarts/lib/visual/LegendVisualProvider.js"); /* harmony import */ var _component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../component/tooltip/tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var RadarSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RadarSeriesModel, _super); function RadarSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = RadarSeriesModel.type; _this.hasSymbolVisual = true; return _this; } // Overwrite RadarSeriesModel.prototype.init = function (option) { _super.prototype.init.apply(this, arguments); // Enable legend selection for each data item // Use a function instead of direct access because data reference may changed this.legendVisualProvider = new _visual_LegendVisualProvider_js__WEBPACK_IMPORTED_MODULE_4__["default"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["bind"](this.getData, this), zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["bind"](this.getRawData, this)); }; RadarSeriesModel.prototype.getInitialData = function (option, ecModel) { return Object(_helper_createSeriesDataSimply_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this, { generateCoord: 'indicator_', generateCoordCount: Infinity }); }; RadarSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) { var data = this.getData(); var coordSys = this.coordinateSystem; var indicatorAxes = coordSys.getIndicatorAxes(); var name = this.getData().getName(dataIndex); var nameToDisplay = name === '' ? this.name : name; var markerColor = Object(_component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_5__["retrieveVisualColorForTooltipMarker"])(this, dataIndex); return Object(_component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_5__["createTooltipMarkup"])('section', { header: nameToDisplay, sortBlocks: true, blocks: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["map"](indicatorAxes, function (axis) { var val = data.get(data.mapDimension(axis.dim), dataIndex); return Object(_component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_5__["createTooltipMarkup"])('nameValue', { markerType: 'subItem', markerColor: markerColor, name: axis.name, value: val, sortParam: val }); }) }); }; RadarSeriesModel.prototype.getTooltipPosition = function (dataIndex) { if (dataIndex != null) { var data_1 = this.getData(); var coordSys = this.coordinateSystem; var values = data_1.getValues(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["map"](coordSys.dimensions, function (dim) { return data_1.mapDimension(dim); }), dataIndex); for (var i = 0, len = values.length; i < len; i++) { if (!isNaN(values[i])) { var indicatorAxes = coordSys.getIndicatorAxes(); return coordSys.coordToPoint(indicatorAxes[i].dataToCoord(values[i]), i); } } } }; RadarSeriesModel.type = 'series.radar'; RadarSeriesModel.dependencies = ['radar']; RadarSeriesModel.defaultOption = { // zlevel: 0, z: 2, colorBy: 'data', coordinateSystem: 'radar', legendHoverLink: true, radarIndex: 0, lineStyle: { width: 2, type: 'solid', join: 'round' }, label: { position: 'top' }, // areaStyle: { // }, // itemStyle: {} symbolSize: 8 // symbolRotate: null }; return RadarSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (RadarSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/radar/RadarView.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/radar/RadarView.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! zrender/lib/graphic/Image.js */ "./node_modules/zrender/lib/graphic/Image.js"); /* harmony import */ var _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../animation/basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var RadarView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RadarView, _super); function RadarView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = RadarView.type; return _this; } RadarView.prototype.render = function (seriesModel, ecModel, api) { var polar = seriesModel.coordinateSystem; var group = this.group; var data = seriesModel.getData(); var oldData = this._data; function createSymbol(data, idx) { var symbolType = data.getItemVisual(idx, 'symbol') || 'circle'; if (symbolType === 'none') { return; } var symbolSize = _util_symbol_js__WEBPACK_IMPORTED_MODULE_4__["normalizeSymbolSize"](data.getItemVisual(idx, 'symbolSize')); var symbolPath = _util_symbol_js__WEBPACK_IMPORTED_MODULE_4__["createSymbol"](symbolType, -1, -1, 2, 2); var symbolRotate = data.getItemVisual(idx, 'symbolRotate') || 0; symbolPath.attr({ style: { strokeNoScale: true }, z2: 100, scaleX: symbolSize[0] / 2, scaleY: symbolSize[1] / 2, rotation: symbolRotate * Math.PI / 180 || 0 }); return symbolPath; } function updateSymbols(oldPoints, newPoints, symbolGroup, data, idx, isInit) { // Simply rerender all symbolGroup.removeAll(); for (var i = 0; i < newPoints.length - 1; i++) { var symbolPath = createSymbol(data, idx); if (symbolPath) { symbolPath.__dimIdx = i; if (oldPoints[i]) { symbolPath.setPosition(oldPoints[i]); _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__[isInit ? 'initProps' : 'updateProps'](symbolPath, { x: newPoints[i][0], y: newPoints[i][1] }, seriesModel, idx); } else { symbolPath.setPosition(newPoints[i]); } symbolGroup.add(symbolPath); } } } function getInitialPoints(points) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["map"](points, function (pt) { return [polar.cx, polar.cy]; }); } data.diff(oldData).add(function (idx) { var points = data.getItemLayout(idx); if (!points) { return; } var polygon = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Polygon"](); var polyline = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Polyline"](); var target = { shape: { points: points } }; polygon.shape.points = getInitialPoints(points); polyline.shape.points = getInitialPoints(points); _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["initProps"](polygon, target, seriesModel, idx); _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["initProps"](polyline, target, seriesModel, idx); var itemGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Group"](); var symbolGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Group"](); itemGroup.add(polyline); itemGroup.add(polygon); itemGroup.add(symbolGroup); updateSymbols(polyline.shape.points, points, symbolGroup, data, idx, true); data.setItemGraphicEl(idx, itemGroup); }).update(function (newIdx, oldIdx) { var itemGroup = oldData.getItemGraphicEl(oldIdx); var polyline = itemGroup.childAt(0); var polygon = itemGroup.childAt(1); var symbolGroup = itemGroup.childAt(2); var target = { shape: { points: data.getItemLayout(newIdx) } }; if (!target.shape.points) { return; } updateSymbols(polyline.shape.points, target.shape.points, symbolGroup, data, newIdx, false); Object(_animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_8__["saveOldStyle"])(polygon); Object(_animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_8__["saveOldStyle"])(polyline); _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["updateProps"](polyline, target, seriesModel); _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["updateProps"](polygon, target, seriesModel); data.setItemGraphicEl(newIdx, itemGroup); }).remove(function (idx) { group.remove(oldData.getItemGraphicEl(idx)); }).execute(); data.eachItemGraphicEl(function (itemGroup, idx) { var itemModel = data.getItemModel(idx); var polyline = itemGroup.childAt(0); var polygon = itemGroup.childAt(1); var symbolGroup = itemGroup.childAt(2); // Radar uses the visual encoded from itemStyle. var itemStyle = data.getItemVisual(idx, 'style'); var color = itemStyle.fill; group.add(itemGroup); polyline.useStyle(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["defaults"](itemModel.getModel('lineStyle').getLineStyle(), { fill: 'none', stroke: color })); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["setStatesStylesFromModel"])(polyline, itemModel, 'lineStyle'); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["setStatesStylesFromModel"])(polygon, itemModel, 'areaStyle'); var areaStyleModel = itemModel.getModel('areaStyle'); var polygonIgnore = areaStyleModel.isEmpty() && areaStyleModel.parentModel.isEmpty(); polygon.ignore = polygonIgnore; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"](['emphasis', 'select', 'blur'], function (stateName) { var stateModel = itemModel.getModel([stateName, 'areaStyle']); var stateIgnore = stateModel.isEmpty() && stateModel.parentModel.isEmpty(); // Won't be ignore if normal state is not ignore. polygon.ensureState(stateName).ignore = stateIgnore && polygonIgnore; }); polygon.useStyle(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["defaults"](areaStyleModel.getAreaStyle(), { fill: color, opacity: 0.7, decal: itemStyle.decal })); var emphasisModel = itemModel.getModel('emphasis'); var itemHoverStyle = emphasisModel.getModel('itemStyle').getItemStyle(); symbolGroup.eachChild(function (symbolPath) { if (symbolPath instanceof zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_7__["default"]) { var pathStyle = symbolPath.style; symbolPath.useStyle(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["extend"]({ // TODO other properties like x, y ? image: pathStyle.image, x: pathStyle.x, y: pathStyle.y, width: pathStyle.width, height: pathStyle.height }, itemStyle)); } else { symbolPath.useStyle(itemStyle); symbolPath.setColor(color); symbolPath.style.strokeNoScale = true; } var pathEmphasisState = symbolPath.ensureState('emphasis'); pathEmphasisState.style = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["clone"](itemHoverStyle); var defaultText = data.getStore().get(data.getDimensionIndex(symbolPath.__dimIdx), idx); (defaultText == null || isNaN(defaultText)) && (defaultText = ''); Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_6__["setLabelStyle"])(symbolPath, Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_6__["getLabelStatesModels"])(itemModel), { labelFetcher: data.hostModel, labelDataIndex: idx, labelDimIndex: symbolPath.__dimIdx, defaultText: defaultText, inheritColor: color, defaultOpacity: itemStyle.opacity }); }); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["toggleHoverEmphasis"])(itemGroup, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled')); }); this._data = data; }; RadarView.prototype.remove = function () { this.group.removeAll(); this._data = null; }; RadarView.type = 'radar'; return RadarView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_5__["default"]); /* harmony default export */ __webpack_exports__["default"] = (RadarView); /***/ }), /***/ "./node_modules/echarts/lib/chart/radar/backwardCompat.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/radar/backwardCompat.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return radarBackwardCompat; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // @ts-nocheck // Backward compat for radar chart in 2 function radarBackwardCompat(option) { var polarOptArr = option.polar; if (polarOptArr) { if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](polarOptArr)) { polarOptArr = [polarOptArr]; } var polarNotRadar_1 = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](polarOptArr, function (polarOpt, idx) { if (polarOpt.indicator) { if (polarOpt.type && !polarOpt.shape) { polarOpt.shape = polarOpt.type; } option.radar = option.radar || []; if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](option.radar)) { option.radar = [option.radar]; } option.radar.push(polarOpt); } else { polarNotRadar_1.push(polarOpt); } }); option.polar = polarNotRadar_1; } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](option.series, function (seriesOpt) { if (seriesOpt && seriesOpt.type === 'radar' && seriesOpt.polarIndex) { seriesOpt.radarIndex = seriesOpt.polarIndex; } }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/radar/install.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/chart/radar/install.js ***! \*********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _radar_radarLayout_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../radar/radarLayout.js */ "./node_modules/echarts/lib/chart/radar/radarLayout.js"); /* harmony import */ var _processor_dataFilter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../processor/dataFilter.js */ "./node_modules/echarts/lib/processor/dataFilter.js"); /* harmony import */ var _radar_backwardCompat_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../radar/backwardCompat.js */ "./node_modules/echarts/lib/chart/radar/backwardCompat.js"); /* harmony import */ var _RadarView_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./RadarView.js */ "./node_modules/echarts/lib/chart/radar/RadarView.js"); /* harmony import */ var _RadarSeries_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./RadarSeries.js */ "./node_modules/echarts/lib/chart/radar/RadarSeries.js"); /* harmony import */ var _component_radar_install_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../component/radar/install.js */ "./node_modules/echarts/lib/component/radar/install.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { Object(_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_component_radar_install_js__WEBPACK_IMPORTED_MODULE_6__["install"]); registers.registerChartView(_RadarView_js__WEBPACK_IMPORTED_MODULE_4__["default"]); registers.registerSeriesModel(_RadarSeries_js__WEBPACK_IMPORTED_MODULE_5__["default"]); registers.registerLayout(_radar_radarLayout_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerProcessor(Object(_processor_dataFilter_js__WEBPACK_IMPORTED_MODULE_2__["default"])('radar')); registers.registerPreprocessor(_radar_backwardCompat_js__WEBPACK_IMPORTED_MODULE_3__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/chart/radar/radarLayout.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/radar/radarLayout.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return radarLayout; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function radarLayout(ecModel) { ecModel.eachSeriesByType('radar', function (seriesModel) { var data = seriesModel.getData(); var points = []; var coordSys = seriesModel.coordinateSystem; if (!coordSys) { return; } var axes = coordSys.getIndicatorAxes(); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](axes, function (axis, axisIndex) { data.each(data.mapDimension(axes[axisIndex].dim), function (val, dataIndex) { points[dataIndex] = points[dataIndex] || []; var point = coordSys.dataToPoint(val, axisIndex); points[dataIndex][axisIndex] = isValidPoint(point) ? point : getValueMissingPoint(coordSys); }); }); // Close polygon data.each(function (idx) { // TODO // Is it appropriate to connect to the next data when some data is missing? // Or, should trade it like `connectNull` in line chart? var firstPoint = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["find"](points[idx], function (point) { return isValidPoint(point); }) || getValueMissingPoint(coordSys); // Copy the first actual point to the end of the array points[idx].push(firstPoint.slice()); data.setItemLayout(idx, points[idx]); }); }); } function isValidPoint(point) { return !isNaN(point[0]) && !isNaN(point[1]); } function getValueMissingPoint(coordSys) { // It is error-prone to input [NaN, NaN] into polygon, polygon. // (probably cause problem when refreshing or animating) return [coordSys.cx, coordSys.cy]; } /***/ }), /***/ "./node_modules/echarts/lib/chart/sankey/SankeySeries.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/sankey/SankeySeries.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _helper_createGraphFromNodeEdge_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/createGraphFromNodeEdge.js */ "./node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../component/tooltip/tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SankeySeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SankeySeriesModel, _super); function SankeySeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = SankeySeriesModel.type; return _this; } /** * Init a graph data structure from data in option series */ SankeySeriesModel.prototype.getInitialData = function (option, ecModel) { var links = option.edges || option.links || []; var nodes = option.data || option.nodes || []; var levels = option.levels || []; this.levelModels = []; var levelModels = this.levelModels; for (var i = 0; i < levels.length; i++) { if (levels[i].depth != null && levels[i].depth >= 0) { levelModels[levels[i].depth] = new _model_Model_js__WEBPACK_IMPORTED_MODULE_3__["default"](levels[i], this, ecModel); } else { if (true) { throw new Error('levels[i].depth is mandatory and should be natural number'); } } } var graph = Object(_helper_createGraphFromNodeEdge_js__WEBPACK_IMPORTED_MODULE_2__["default"])(nodes, links, this, true, beforeLink); return graph.data; function beforeLink(nodeData, edgeData) { nodeData.wrapMethod('getItemModel', function (model, idx) { var seriesModel = model.parentModel; var layout = seriesModel.getData().getItemLayout(idx); if (layout) { var nodeDepth = layout.depth; var levelModel = seriesModel.levelModels[nodeDepth]; if (levelModel) { model.parentModel = levelModel; } } return model; }); edgeData.wrapMethod('getItemModel', function (model, idx) { var seriesModel = model.parentModel; var edge = seriesModel.getGraph().getEdgeByIndex(idx); var layout = edge.node1.getLayout(); if (layout) { var depth = layout.depth; var levelModel = seriesModel.levelModels[depth]; if (levelModel) { model.parentModel = levelModel; } } return model; }); } }; SankeySeriesModel.prototype.setNodePosition = function (dataIndex, localPosition) { var nodes = this.option.data || this.option.nodes; var dataItem = nodes[dataIndex]; dataItem.localX = localPosition[0]; dataItem.localY = localPosition[1]; }; /** * Return the graphic data structure * * @return graphic data structure */ SankeySeriesModel.prototype.getGraph = function () { return this.getData().graph; }; /** * Get edge data of graphic data structure * * @return data structure of list */ SankeySeriesModel.prototype.getEdgeData = function () { return this.getGraph().edgeData; }; SankeySeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) { function noValue(val) { return isNaN(val) || val == null; } // dataType === 'node' or empty do not show tooltip by default if (dataType === 'edge') { var params = this.getDataParams(dataIndex, dataType); var rawDataOpt = params.data; var edgeValue = params.value; var edgeName = rawDataOpt.source + ' -- ' + rawDataOpt.target; return Object(_component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_4__["createTooltipMarkup"])('nameValue', { name: edgeName, value: edgeValue, noValue: noValue(edgeValue) }); } // dataType === 'node' else { var node = this.getGraph().getNodeByIndex(dataIndex); var value = node.getLayout().value; var name_1 = this.getDataParams(dataIndex, dataType).data.name; return Object(_component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_4__["createTooltipMarkup"])('nameValue', { name: name_1 != null ? name_1 + '' : null, value: value, noValue: noValue(value) }); } }; SankeySeriesModel.prototype.optionUpdated = function () {}; // Override Series.getDataParams() SankeySeriesModel.prototype.getDataParams = function (dataIndex, dataType) { var params = _super.prototype.getDataParams.call(this, dataIndex, dataType); if (params.value == null && dataType === 'node') { var node = this.getGraph().getNodeByIndex(dataIndex); var nodeValue = node.getLayout().value; params.value = nodeValue; } return params; }; SankeySeriesModel.type = 'series.sankey'; SankeySeriesModel.defaultOption = { // zlevel: 0, z: 2, coordinateSystem: 'view', left: '5%', top: '5%', right: '20%', bottom: '5%', orient: 'horizontal', nodeWidth: 20, nodeGap: 8, draggable: true, layoutIterations: 32, label: { show: true, position: 'right', fontSize: 12 }, edgeLabel: { show: false, fontSize: 12 }, levels: [], nodeAlign: 'justify', lineStyle: { color: '#314656', opacity: 0.2, curveness: 0.5 }, emphasis: { label: { show: true }, lineStyle: { opacity: 0.5 } }, select: { itemStyle: { borderColor: '#212121' } }, animationEasing: 'linear', animationDuration: 1000 }; return SankeySeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (SankeySeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/sankey/SankeyView.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/sankey/SankeyView.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SankeyPathShape = /** @class */function () { function SankeyPathShape() { this.x1 = 0; this.y1 = 0; this.x2 = 0; this.y2 = 0; this.cpx1 = 0; this.cpy1 = 0; this.cpx2 = 0; this.cpy2 = 0; this.extent = 0; } return SankeyPathShape; }(); var SankeyPath = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SankeyPath, _super); function SankeyPath(opts) { return _super.call(this, opts) || this; } SankeyPath.prototype.getDefaultShape = function () { return new SankeyPathShape(); }; SankeyPath.prototype.buildPath = function (ctx, shape) { var extent = shape.extent; ctx.moveTo(shape.x1, shape.y1); ctx.bezierCurveTo(shape.cpx1, shape.cpy1, shape.cpx2, shape.cpy2, shape.x2, shape.y2); if (shape.orient === 'vertical') { ctx.lineTo(shape.x2 + extent, shape.y2); ctx.bezierCurveTo(shape.cpx2 + extent, shape.cpy2, shape.cpx1 + extent, shape.cpy1, shape.x1 + extent, shape.y1); } else { ctx.lineTo(shape.x2, shape.y2 + extent); ctx.bezierCurveTo(shape.cpx2, shape.cpy2 + extent, shape.cpx1, shape.cpy1 + extent, shape.x1, shape.y1 + extent); } ctx.closePath(); }; SankeyPath.prototype.highlight = function () { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["enterEmphasis"])(this); }; SankeyPath.prototype.downplay = function () { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["leaveEmphasis"])(this); }; return SankeyPath; }(_util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Path"]); var SankeyView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SankeyView, _super); function SankeyView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = SankeyView.type; _this._focusAdjacencyDisabled = false; return _this; } SankeyView.prototype.render = function (seriesModel, ecModel, api) { var sankeyView = this; var graph = seriesModel.getGraph(); var group = this.group; var layoutInfo = seriesModel.layoutInfo; // view width var width = layoutInfo.width; // view height var height = layoutInfo.height; var nodeData = seriesModel.getData(); var edgeData = seriesModel.getData('edge'); var orient = seriesModel.get('orient'); this._model = seriesModel; group.removeAll(); group.x = layoutInfo.x; group.y = layoutInfo.y; // generate a bezire Curve for each edge graph.eachEdge(function (edge) { var curve = new SankeyPath(); var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_5__["getECData"])(curve); ecData.dataIndex = edge.dataIndex; ecData.seriesIndex = seriesModel.seriesIndex; ecData.dataType = 'edge'; var edgeModel = edge.getModel(); var lineStyleModel = edgeModel.getModel('lineStyle'); var curvature = lineStyleModel.get('curveness'); var n1Layout = edge.node1.getLayout(); var node1Model = edge.node1.getModel(); var dragX1 = node1Model.get('localX'); var dragY1 = node1Model.get('localY'); var n2Layout = edge.node2.getLayout(); var node2Model = edge.node2.getModel(); var dragX2 = node2Model.get('localX'); var dragY2 = node2Model.get('localY'); var edgeLayout = edge.getLayout(); var x1; var y1; var x2; var y2; var cpx1; var cpy1; var cpx2; var cpy2; curve.shape.extent = Math.max(1, edgeLayout.dy); curve.shape.orient = orient; if (orient === 'vertical') { x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + edgeLayout.sy; y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + n1Layout.dy; x2 = (dragX2 != null ? dragX2 * width : n2Layout.x) + edgeLayout.ty; y2 = dragY2 != null ? dragY2 * height : n2Layout.y; cpx1 = x1; cpy1 = y1 * (1 - curvature) + y2 * curvature; cpx2 = x2; cpy2 = y1 * curvature + y2 * (1 - curvature); } else { x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + n1Layout.dx; y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + edgeLayout.sy; x2 = dragX2 != null ? dragX2 * width : n2Layout.x; y2 = (dragY2 != null ? dragY2 * height : n2Layout.y) + edgeLayout.ty; cpx1 = x1 * (1 - curvature) + x2 * curvature; cpy1 = y1; cpx2 = x1 * curvature + x2 * (1 - curvature); cpy2 = y2; } curve.setShape({ x1: x1, y1: y1, x2: x2, y2: y2, cpx1: cpx1, cpy1: cpy1, cpx2: cpx2, cpy2: cpy2 }); curve.useStyle(lineStyleModel.getItemStyle()); // Special color, use source node color or target node color applyCurveStyle(curve.style, orient, edge); var defaultEdgeLabelText = "" + edgeModel.get('value'); var edgeLabelStateModels = Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["getLabelStatesModels"])(edgeModel, 'edgeLabel'); Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["setLabelStyle"])(curve, edgeLabelStateModels, { labelFetcher: { getFormattedLabel: function (dataIndex, stateName, dataType, labelDimIndex, formatter, extendParams) { return seriesModel.getFormattedLabel(dataIndex, stateName, 'edge', labelDimIndex, // ensure edgeLabel formatter is provided // to prevent the inheritance from `label.formatter` of the series Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["retrieve3"])(formatter, edgeLabelStateModels.normal && edgeLabelStateModels.normal.get('formatter'), defaultEdgeLabelText), extendParams); } }, labelDataIndex: edge.dataIndex, defaultText: defaultEdgeLabelText }); curve.setTextConfig({ position: 'inside' }); var emphasisModel = edgeModel.getModel('emphasis'); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["setStatesStylesFromModel"])(curve, edgeModel, 'lineStyle', function (model) { var style = model.getItemStyle(); applyCurveStyle(style, orient, edge); return style; }); group.add(curve); edgeData.setItemGraphicEl(edge.dataIndex, curve); var focus = emphasisModel.get('focus'); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["toggleHoverEmphasis"])(curve, focus === 'adjacency' ? edge.getAdjacentDataIndices() : focus === 'trajectory' ? edge.getTrajectoryDataIndices() : focus, emphasisModel.get('blurScope'), emphasisModel.get('disabled')); }); // Generate a rect for each node graph.eachNode(function (node) { var layout = node.getLayout(); var itemModel = node.getModel(); var dragX = itemModel.get('localX'); var dragY = itemModel.get('localY'); var emphasisModel = itemModel.getModel('emphasis'); var borderRadius = itemModel.get(['itemStyle', 'borderRadius']) || 0; var rect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Rect"]({ shape: { x: dragX != null ? dragX * width : layout.x, y: dragY != null ? dragY * height : layout.y, width: layout.dx, height: layout.dy, r: borderRadius }, style: itemModel.getModel('itemStyle').getItemStyle(), z2: 10 }); Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["setLabelStyle"])(rect, Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["getLabelStatesModels"])(itemModel), { labelFetcher: { getFormattedLabel: function (dataIndex, stateName) { return seriesModel.getFormattedLabel(dataIndex, stateName, 'node'); } }, labelDataIndex: node.dataIndex, defaultText: node.id }); rect.disableLabelAnimation = true; rect.setStyle('fill', node.getVisual('color')); rect.setStyle('decal', node.getVisual('style').decal); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["setStatesStylesFromModel"])(rect, itemModel); group.add(rect); nodeData.setItemGraphicEl(node.dataIndex, rect); Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_5__["getECData"])(rect).dataType = 'node'; var focus = emphasisModel.get('focus'); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_2__["toggleHoverEmphasis"])(rect, focus === 'adjacency' ? node.getAdjacentDataIndices() : focus === 'trajectory' ? node.getTrajectoryDataIndices() : focus, emphasisModel.get('blurScope'), emphasisModel.get('disabled')); }); nodeData.eachItemGraphicEl(function (el, dataIndex) { var itemModel = nodeData.getItemModel(dataIndex); if (itemModel.get('draggable')) { el.drift = function (dx, dy) { sankeyView._focusAdjacencyDisabled = true; this.shape.x += dx; this.shape.y += dy; this.dirty(); api.dispatchAction({ type: 'dragNode', seriesId: seriesModel.id, dataIndex: nodeData.getRawIndex(dataIndex), localX: this.shape.x / width, localY: this.shape.y / height }); }; el.ondragend = function () { sankeyView._focusAdjacencyDisabled = false; }; el.draggable = true; el.cursor = 'move'; } }); if (!this._data && seriesModel.isAnimationEnabled()) { group.setClipPath(createGridClipShape(group.getBoundingRect(), seriesModel, function () { group.removeClipPath(); })); } this._data = seriesModel.getData(); }; SankeyView.prototype.dispose = function () {}; SankeyView.type = 'sankey'; return SankeyView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_3__["default"]); /** * Special color, use source node color or target node color * @param curveProps curve's style to parse * @param orient direction * @param edge current curve data */ function applyCurveStyle(curveProps, orient, edge) { switch (curveProps.fill) { case 'source': curveProps.fill = edge.node1.getVisual('color'); curveProps.decal = edge.node1.getVisual('style').decal; break; case 'target': curveProps.fill = edge.node2.getVisual('color'); curveProps.decal = edge.node2.getVisual('style').decal; break; case 'gradient': var sourceColor = edge.node1.getVisual('color'); var targetColor = edge.node2.getVisual('color'); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["isString"])(sourceColor) && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["isString"])(targetColor)) { curveProps.fill = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["LinearGradient"](0, 0, +(orient === 'horizontal'), +(orient === 'vertical'), [{ color: sourceColor, offset: 0 }, { color: targetColor, offset: 1 }]); } } } // Add animation to the view function createGridClipShape(rect, seriesModel, cb) { var rectEl = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Rect"]({ shape: { x: rect.x - 10, y: rect.y - 10, width: 0, height: rect.height + 20 } }); _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["initProps"](rectEl, { shape: { width: rect.width + 20 } }, seriesModel, cb); return rectEl; } /* harmony default export */ __webpack_exports__["default"] = (SankeyView); /***/ }), /***/ "./node_modules/echarts/lib/chart/sankey/install.js": /*!**********************************************************!*\ !*** ./node_modules/echarts/lib/chart/sankey/install.js ***! \**********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _SankeyView_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SankeyView.js */ "./node_modules/echarts/lib/chart/sankey/SankeyView.js"); /* harmony import */ var _SankeySeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SankeySeries.js */ "./node_modules/echarts/lib/chart/sankey/SankeySeries.js"); /* harmony import */ var _sankeyLayout_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sankeyLayout.js */ "./node_modules/echarts/lib/chart/sankey/sankeyLayout.js"); /* harmony import */ var _sankeyVisual_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sankeyVisual.js */ "./node_modules/echarts/lib/chart/sankey/sankeyVisual.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerChartView(_SankeyView_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerSeriesModel(_SankeySeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerLayout(_sankeyLayout_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerVisual(_sankeyVisual_js__WEBPACK_IMPORTED_MODULE_3__["default"]); registers.registerAction({ type: 'dragNode', event: 'dragnode', // here can only use 'update' now, other value is not support in echarts. update: 'update' }, function (payload, ecModel) { ecModel.eachComponent({ mainType: 'series', subType: 'sankey', query: payload }, function (seriesModel) { seriesModel.setNodePosition(payload.dataIndex, [payload.localX, payload.localY]); }); }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/sankey/sankeyLayout.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/sankey/sankeyLayout.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return sankeyLayout; }); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function sankeyLayout(ecModel, api) { ecModel.eachSeriesByType('sankey', function (seriesModel) { var nodeWidth = seriesModel.get('nodeWidth'); var nodeGap = seriesModel.get('nodeGap'); var layoutInfo = getViewRect(seriesModel, api); seriesModel.layoutInfo = layoutInfo; var width = layoutInfo.width; var height = layoutInfo.height; var graph = seriesModel.getGraph(); var nodes = graph.nodes; var edges = graph.edges; computeNodeValues(nodes); var filteredNodes = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"](nodes, function (node) { return node.getLayout().value === 0; }); var iterations = filteredNodes.length !== 0 ? 0 : seriesModel.get('layoutIterations'); var orient = seriesModel.get('orient'); var nodeAlign = seriesModel.get('nodeAlign'); layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign); }); } /** * Get the layout position of the whole view */ function getViewRect(seriesModel, api) { return _util_layout_js__WEBPACK_IMPORTED_MODULE_0__["getLayoutRect"](seriesModel.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() }); } function layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign) { computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign); computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient); computeEdgeDepths(nodes, orient); } /** * Compute the value of each node by summing the associated edge's value */ function computeNodeValues(nodes) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodes, function (node) { var value1 = sum(node.outEdges, getEdgeValue); var value2 = sum(node.inEdges, getEdgeValue); var nodeRawValue = node.getValue() || 0; var value = Math.max(value1, value2, nodeRawValue); node.setLayout({ value: value }, true); }); } /** * Compute the x-position for each node. * * Here we use Kahn algorithm to detect cycle when we traverse * the node to computer the initial x position. */ function computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign) { // Used to mark whether the edge is deleted. if it is deleted, // the value is 0, otherwise it is 1. var remainEdges = []; // Storage each node's indegree. var indegreeArr = []; // Used to storage the node with indegree is equal to 0. var zeroIndegrees = []; var nextTargetNode = []; var x = 0; // let kx = 0; for (var i = 0; i < edges.length; i++) { remainEdges[i] = 1; } for (var i = 0; i < nodes.length; i++) { indegreeArr[i] = nodes[i].inEdges.length; if (indegreeArr[i] === 0) { zeroIndegrees.push(nodes[i]); } } var maxNodeDepth = -1; // Traversing nodes using topological sorting to calculate the // horizontal(if orient === 'horizontal') or vertical(if orient === 'vertical') // position of the nodes. while (zeroIndegrees.length) { for (var idx = 0; idx < zeroIndegrees.length; idx++) { var node = zeroIndegrees[idx]; var item = node.hostGraph.data.getRawDataItem(node.dataIndex); var isItemDepth = item.depth != null && item.depth >= 0; if (isItemDepth && item.depth > maxNodeDepth) { maxNodeDepth = item.depth; } node.setLayout({ depth: isItemDepth ? item.depth : x }, true); orient === 'vertical' ? node.setLayout({ dy: nodeWidth }, true) : node.setLayout({ dx: nodeWidth }, true); for (var edgeIdx = 0; edgeIdx < node.outEdges.length; edgeIdx++) { var edge = node.outEdges[edgeIdx]; var indexEdge = edges.indexOf(edge); remainEdges[indexEdge] = 0; var targetNode = edge.node2; var nodeIndex = nodes.indexOf(targetNode); if (--indegreeArr[nodeIndex] === 0 && nextTargetNode.indexOf(targetNode) < 0) { nextTargetNode.push(targetNode); } } } ++x; zeroIndegrees = nextTargetNode; nextTargetNode = []; } for (var i = 0; i < remainEdges.length; i++) { if (remainEdges[i] === 1) { throw new Error('Sankey is a DAG, the original data has cycle!'); } } var maxDepth = maxNodeDepth > x - 1 ? maxNodeDepth : x - 1; if (nodeAlign && nodeAlign !== 'left') { adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth); } var kx = orient === 'vertical' ? (height - nodeWidth) / maxDepth : (width - nodeWidth) / maxDepth; scaleNodeBreadths(nodes, kx, orient); } function isNodeDepth(node) { var item = node.hostGraph.data.getRawDataItem(node.dataIndex); return item.depth != null && item.depth >= 0; } function adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth) { if (nodeAlign === 'right') { var nextSourceNode = []; var remainNodes = nodes; var nodeHeight = 0; while (remainNodes.length) { for (var i = 0; i < remainNodes.length; i++) { var node = remainNodes[i]; node.setLayout({ skNodeHeight: nodeHeight }, true); for (var j = 0; j < node.inEdges.length; j++) { var edge = node.inEdges[j]; if (nextSourceNode.indexOf(edge.node1) < 0) { nextSourceNode.push(edge.node1); } } } remainNodes = nextSourceNode; nextSourceNode = []; ++nodeHeight; } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodes, function (node) { if (!isNodeDepth(node)) { node.setLayout({ depth: Math.max(0, maxDepth - node.getLayout().skNodeHeight) }, true); } }); } else if (nodeAlign === 'justify') { moveSinksRight(nodes, maxDepth); } } /** * All the node without outEgdes are assigned maximum x-position and * be aligned in the last column. * * @param nodes. node of sankey view. * @param maxDepth. use to assign to node without outEdges as x-position. */ function moveSinksRight(nodes, maxDepth) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodes, function (node) { if (!isNodeDepth(node) && !node.outEdges.length) { node.setLayout({ depth: maxDepth }, true); } }); } /** * Scale node x-position to the width * * @param nodes node of sankey view * @param kx multiple used to scale nodes */ function scaleNodeBreadths(nodes, kx, orient) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodes, function (node) { var nodeDepth = node.getLayout().depth * kx; orient === 'vertical' ? node.setLayout({ y: nodeDepth }, true) : node.setLayout({ x: nodeDepth }, true); }); } /** * Using Gauss-Seidel iterations method to compute the node depth(y-position) * * @param nodes node of sankey view * @param edges edge of sankey view * @param height the whole height of the area to draw the view * @param nodeGap the vertical distance between two nodes * in the same column. * @param iterations the number of iterations for the algorithm */ function computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient) { var nodesByBreadth = prepareNodesByBreadth(nodes, orient); initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient); resolveCollisions(nodesByBreadth, nodeGap, height, width, orient); for (var alpha = 1; iterations > 0; iterations--) { // 0.99 is a experience parameter, ensure that each iterations of // changes as small as possible. alpha *= 0.99; relaxRightToLeft(nodesByBreadth, alpha, orient); resolveCollisions(nodesByBreadth, nodeGap, height, width, orient); relaxLeftToRight(nodesByBreadth, alpha, orient); resolveCollisions(nodesByBreadth, nodeGap, height, width, orient); } } function prepareNodesByBreadth(nodes, orient) { var nodesByBreadth = []; var keyAttr = orient === 'vertical' ? 'y' : 'x'; var groupResult = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_2__["groupData"])(nodes, function (node) { return node.getLayout()[keyAttr]; }); groupResult.keys.sort(function (a, b) { return a - b; }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](groupResult.keys, function (key) { nodesByBreadth.push(groupResult.buckets.get(key)); }); return nodesByBreadth; } /** * Compute the original y-position for each node */ function initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient) { var minKy = Infinity; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodesByBreadth, function (nodes) { var n = nodes.length; var sum = 0; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodes, function (node) { sum += node.getLayout().value; }); var ky = orient === 'vertical' ? (width - (n - 1) * nodeGap) / sum : (height - (n - 1) * nodeGap) / sum; if (ky < minKy) { minKy = ky; } }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodesByBreadth, function (nodes) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodes, function (node, i) { var nodeDy = node.getLayout().value * minKy; if (orient === 'vertical') { node.setLayout({ x: i }, true); node.setLayout({ dx: nodeDy }, true); } else { node.setLayout({ y: i }, true); node.setLayout({ dy: nodeDy }, true); } }); }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](edges, function (edge) { var edgeDy = +edge.getValue() * minKy; edge.setLayout({ dy: edgeDy }, true); }); } /** * Resolve the collision of initialized depth (y-position) */ function resolveCollisions(nodesByBreadth, nodeGap, height, width, orient) { var keyAttr = orient === 'vertical' ? 'x' : 'y'; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodesByBreadth, function (nodes) { nodes.sort(function (a, b) { return a.getLayout()[keyAttr] - b.getLayout()[keyAttr]; }); var nodeX; var node; var dy; var y0 = 0; var n = nodes.length; var nodeDyAttr = orient === 'vertical' ? 'dx' : 'dy'; for (var i = 0; i < n; i++) { node = nodes[i]; dy = y0 - node.getLayout()[keyAttr]; if (dy > 0) { nodeX = node.getLayout()[keyAttr] + dy; orient === 'vertical' ? node.setLayout({ x: nodeX }, true) : node.setLayout({ y: nodeX }, true); } y0 = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap; } var viewWidth = orient === 'vertical' ? width : height; // If the bottommost node goes outside the bounds, push it back up dy = y0 - nodeGap - viewWidth; if (dy > 0) { nodeX = node.getLayout()[keyAttr] - dy; orient === 'vertical' ? node.setLayout({ x: nodeX }, true) : node.setLayout({ y: nodeX }, true); y0 = nodeX; for (var i = n - 2; i >= 0; --i) { node = nodes[i]; dy = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap - y0; if (dy > 0) { nodeX = node.getLayout()[keyAttr] - dy; orient === 'vertical' ? node.setLayout({ x: nodeX }, true) : node.setLayout({ y: nodeX }, true); } y0 = node.getLayout()[keyAttr]; } } }); } /** * Change the y-position of the nodes, except most the right side nodes * @param nodesByBreadth * @param alpha parameter used to adjust the nodes y-position */ function relaxRightToLeft(nodesByBreadth, alpha, orient) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodesByBreadth.slice().reverse(), function (nodes) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodes, function (node) { if (node.outEdges.length) { var y = sum(node.outEdges, weightedTarget, orient) / sum(node.outEdges, getEdgeValue); if (isNaN(y)) { var len = node.outEdges.length; y = len ? sum(node.outEdges, centerTarget, orient) / len : 0; } if (orient === 'vertical') { var nodeX = node.getLayout().x + (y - center(node, orient)) * alpha; node.setLayout({ x: nodeX }, true); } else { var nodeY = node.getLayout().y + (y - center(node, orient)) * alpha; node.setLayout({ y: nodeY }, true); } } }); }); } function weightedTarget(edge, orient) { return center(edge.node2, orient) * edge.getValue(); } function centerTarget(edge, orient) { return center(edge.node2, orient); } function weightedSource(edge, orient) { return center(edge.node1, orient) * edge.getValue(); } function centerSource(edge, orient) { return center(edge.node1, orient); } function center(node, orient) { return orient === 'vertical' ? node.getLayout().x + node.getLayout().dx / 2 : node.getLayout().y + node.getLayout().dy / 2; } function getEdgeValue(edge) { return edge.getValue(); } function sum(array, cb, orient) { var sum = 0; var len = array.length; var i = -1; while (++i < len) { var value = +cb(array[i], orient); if (!isNaN(value)) { sum += value; } } return sum; } /** * Change the y-position of the nodes, except most the left side nodes */ function relaxLeftToRight(nodesByBreadth, alpha, orient) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodesByBreadth, function (nodes) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodes, function (node) { if (node.inEdges.length) { var y = sum(node.inEdges, weightedSource, orient) / sum(node.inEdges, getEdgeValue); if (isNaN(y)) { var len = node.inEdges.length; y = len ? sum(node.inEdges, centerSource, orient) / len : 0; } if (orient === 'vertical') { var nodeX = node.getLayout().x + (y - center(node, orient)) * alpha; node.setLayout({ x: nodeX }, true); } else { var nodeY = node.getLayout().y + (y - center(node, orient)) * alpha; node.setLayout({ y: nodeY }, true); } } }); }); } /** * Compute the depth(y-position) of each edge */ function computeEdgeDepths(nodes, orient) { var keyAttr = orient === 'vertical' ? 'x' : 'y'; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodes, function (node) { node.outEdges.sort(function (a, b) { return a.node2.getLayout()[keyAttr] - b.node2.getLayout()[keyAttr]; }); node.inEdges.sort(function (a, b) { return a.node1.getLayout()[keyAttr] - b.node1.getLayout()[keyAttr]; }); }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](nodes, function (node) { var sy = 0; var ty = 0; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](node.outEdges, function (edge) { edge.setLayout({ sy: sy }, true); sy += edge.getLayout().dy; }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](node.inEdges, function (edge) { edge.setLayout({ ty: ty }, true); ty += edge.getLayout().dy; }); }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/sankey/sankeyVisual.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/sankey/sankeyVisual.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return sankeyVisual; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../visual/VisualMapping.js */ "./node_modules/echarts/lib/visual/VisualMapping.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function sankeyVisual(ecModel) { ecModel.eachSeriesByType('sankey', function (seriesModel) { var graph = seriesModel.getGraph(); var nodes = graph.nodes; var edges = graph.edges; if (nodes.length) { var minValue_1 = Infinity; var maxValue_1 = -Infinity; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](nodes, function (node) { var nodeValue = node.getLayout().value; if (nodeValue < minValue_1) { minValue_1 = nodeValue; } if (nodeValue > maxValue_1) { maxValue_1 = nodeValue; } }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](nodes, function (node) { var mapping = new _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_1__["default"]({ type: 'color', mappingMethod: 'linear', dataExtent: [minValue_1, maxValue_1], visual: seriesModel.get('color') }); var mapValueToColor = mapping.mapValueToVisual(node.getLayout().value); var customColor = node.getModel().get(['itemStyle', 'color']); if (customColor != null) { node.setVisual('color', customColor); node.setVisual('style', { fill: customColor }); } else { node.setVisual('color', mapValueToColor); node.setVisual('style', { fill: mapValueToColor }); } }); } if (edges.length) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](edges, function (edge) { var edgeStyle = edge.getModel().get('lineStyle'); edge.setVisual('style', edgeStyle); }); } }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/scatter/ScatterSeries.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/scatter/ScatterSeries.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helper/createSeriesData.js */ "./node_modules/echarts/lib/chart/helper/createSeriesData.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ScatterSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ScatterSeriesModel, _super); function ScatterSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ScatterSeriesModel.type; _this.hasSymbolVisual = true; return _this; } ScatterSeriesModel.prototype.getInitialData = function (option, ecModel) { return Object(_helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"])(null, this, { useEncodeDefaulter: true }); }; ScatterSeriesModel.prototype.getProgressive = function () { var progressive = this.option.progressive; if (progressive == null) { // PENDING return this.option.large ? 5e3 : this.get('progressive'); } return progressive; }; ScatterSeriesModel.prototype.getProgressiveThreshold = function () { var progressiveThreshold = this.option.progressiveThreshold; if (progressiveThreshold == null) { // PENDING return this.option.large ? 1e4 : this.get('progressiveThreshold'); } return progressiveThreshold; }; ScatterSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) { return selectors.point(data.getItemLayout(dataIndex)); }; ScatterSeriesModel.prototype.getZLevelKey = function () { // Each progressive series has individual key. return this.getData().count() > this.getProgressiveThreshold() ? this.id : ''; }; ScatterSeriesModel.type = 'series.scatter'; ScatterSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar']; ScatterSeriesModel.defaultOption = { coordinateSystem: 'cartesian2d', // zlevel: 0, z: 2, legendHoverLink: true, symbolSize: 10, // symbolRotate: null, // 图形旋转控制 large: false, // Available when large is true largeThreshold: 2000, // cursor: null, itemStyle: { opacity: 0.8 // color: 各异 }, emphasis: { scale: true }, // If clip the overflow graphics // Works on cartesian / polar series clip: true, select: { itemStyle: { borderColor: '#212121' } }, universalTransition: { divideShape: 'clone' } // progressive: null }; return ScatterSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /* harmony default export */ __webpack_exports__["default"] = (ScatterSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/scatter/ScatterView.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/scatter/ScatterView.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _helper_SymbolDraw_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helper/SymbolDraw.js */ "./node_modules/echarts/lib/chart/helper/SymbolDraw.js"); /* harmony import */ var _helper_LargeSymbolDraw_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/LargeSymbolDraw.js */ "./node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js"); /* harmony import */ var _layout_points_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../layout/points.js */ "./node_modules/echarts/lib/layout/points.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ScatterView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ScatterView, _super); function ScatterView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ScatterView.type; return _this; } ScatterView.prototype.render = function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var symbolDraw = this._updateSymbolDraw(data, seriesModel); symbolDraw.updateData(data, { // TODO // If this parameter should be a shape or a bounding volume // shape will be more general. // But bounding volume like bounding rect will be much faster in the contain calculation clipShape: this._getClipShape(seriesModel) }); this._finished = true; }; ScatterView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var symbolDraw = this._updateSymbolDraw(data, seriesModel); symbolDraw.incrementalPrepareUpdate(data); this._finished = false; }; ScatterView.prototype.incrementalRender = function (taskParams, seriesModel, ecModel) { this._symbolDraw.incrementalUpdate(taskParams, seriesModel.getData(), { clipShape: this._getClipShape(seriesModel) }); this._finished = taskParams.end === seriesModel.getData().count(); }; ScatterView.prototype.updateTransform = function (seriesModel, ecModel, api) { var data = seriesModel.getData(); // Must mark group dirty and make sure the incremental layer will be cleared // PENDING this.group.dirty(); if (!this._finished || data.count() > 1e4) { return { update: true }; } else { var res = Object(_layout_points_js__WEBPACK_IMPORTED_MODULE_3__["default"])('').reset(seriesModel, ecModel, api); if (res.progress) { res.progress({ start: 0, end: data.count(), count: data.count() }, data); } this._symbolDraw.updateLayout(data); } }; ScatterView.prototype.eachRendered = function (cb) { this._symbolDraw && this._symbolDraw.eachRendered(cb); }; ScatterView.prototype._getClipShape = function (seriesModel) { if (!seriesModel.get('clip', true)) { return; } var coordSys = seriesModel.coordinateSystem; // PENDING make `0.1` configurable, for example, `clipTolerance`? return coordSys && coordSys.getArea && coordSys.getArea(.1); }; ScatterView.prototype._updateSymbolDraw = function (data, seriesModel) { var symbolDraw = this._symbolDraw; var pipelineContext = seriesModel.pipelineContext; var isLargeDraw = pipelineContext.large; if (!symbolDraw || isLargeDraw !== this._isLargeDraw) { symbolDraw && symbolDraw.remove(); symbolDraw = this._symbolDraw = isLargeDraw ? new _helper_LargeSymbolDraw_js__WEBPACK_IMPORTED_MODULE_2__["default"]() : new _helper_SymbolDraw_js__WEBPACK_IMPORTED_MODULE_1__["default"](); this._isLargeDraw = isLargeDraw; this.group.removeAll(); } this.group.add(symbolDraw.group); return symbolDraw; }; ScatterView.prototype.remove = function (ecModel, api) { this._symbolDraw && this._symbolDraw.remove(true); this._symbolDraw = null; }; ScatterView.prototype.dispose = function () {}; ScatterView.type = 'scatter'; return ScatterView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_4__["default"]); /* harmony default export */ __webpack_exports__["default"] = (ScatterView); /***/ }), /***/ "./node_modules/echarts/lib/chart/scatter/install.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/scatter/install.js ***! \***********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _ScatterSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ScatterSeries.js */ "./node_modules/echarts/lib/chart/scatter/ScatterSeries.js"); /* harmony import */ var _ScatterView_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ScatterView.js */ "./node_modules/echarts/lib/chart/scatter/ScatterView.js"); /* harmony import */ var _component_grid_installSimple_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../component/grid/installSimple.js */ "./node_modules/echarts/lib/component/grid/installSimple.js"); /* harmony import */ var _layout_points_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../layout/points.js */ "./node_modules/echarts/lib/layout/points.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { // In case developer forget to include grid component Object(_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_component_grid_installSimple_js__WEBPACK_IMPORTED_MODULE_3__["install"]); registers.registerSeriesModel(_ScatterSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerChartView(_ScatterView_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerLayout(Object(_layout_points_js__WEBPACK_IMPORTED_MODULE_4__["default"])('scatter')); } /***/ }), /***/ "./node_modules/echarts/lib/chart/sunburst/SunburstPiece.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/chart/sunburst/SunburstPiece.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _helper_sectorHelper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helper/sectorHelper.js */ "./node_modules/echarts/lib/chart/helper/sectorHelper.js"); /* harmony import */ var _util_decal_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/decal.js */ "./node_modules/echarts/lib/util/decal.js"); /* harmony import */ var _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../animation/basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* harmony import */ var zrender_lib_contain_util_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! zrender/lib/contain/util.js */ "./node_modules/zrender/lib/contain/util.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DEFAULT_SECTOR_Z = 2; var DEFAULT_TEXT_Z = 4; /** * Sunburstce of Sunburst including Sector, Label, LabelLine */ var SunburstPiece = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SunburstPiece, _super); function SunburstPiece(node, seriesModel, ecModel, api) { var _this = _super.call(this) || this; _this.z2 = DEFAULT_SECTOR_Z; _this.textConfig = { inside: true }; Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_5__["getECData"])(_this).seriesIndex = seriesModel.seriesIndex; var text = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"]({ z2: DEFAULT_TEXT_Z, silent: node.getModel().get(['label', 'silent']) }); _this.setTextContent(text); _this.updateData(true, node, seriesModel, ecModel, api); return _this; } SunburstPiece.prototype.updateData = function (firstCreate, node, // state: 'emphasis' | 'normal' | 'highlight' | 'downplay', seriesModel, ecModel, api) { this.node = node; node.piece = this; seriesModel = seriesModel || this._seriesModel; ecModel = ecModel || this._ecModel; var sector = this; Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_5__["getECData"])(sector).dataIndex = node.dataIndex; var itemModel = node.getModel(); var emphasisModel = itemModel.getModel('emphasis'); var layout = node.getLayout(); var sectorShape = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"]({}, layout); sectorShape.label = null; var normalStyle = node.getVisual('style'); normalStyle.lineJoin = 'bevel'; var decal = node.getVisual('decal'); if (decal) { normalStyle.decal = Object(_util_decal_js__WEBPACK_IMPORTED_MODULE_7__["createOrUpdatePatternFromDecal"])(decal, api); } var cornerRadius = Object(_helper_sectorHelper_js__WEBPACK_IMPORTED_MODULE_6__["getSectorCornerRadius"])(itemModel.getModel('itemStyle'), sectorShape, true); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"](sectorShape, cornerRadius); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](_util_states_js__WEBPACK_IMPORTED_MODULE_3__["SPECIAL_STATES"], function (stateName) { var state = sector.ensureState(stateName); var itemStyleModel = itemModel.getModel([stateName, 'itemStyle']); state.style = itemStyleModel.getItemStyle(); // border radius var cornerRadius = Object(_helper_sectorHelper_js__WEBPACK_IMPORTED_MODULE_6__["getSectorCornerRadius"])(itemStyleModel, sectorShape); if (cornerRadius) { state.shape = cornerRadius; } }); if (firstCreate) { sector.setShape(sectorShape); sector.shape.r = layout.r0; _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["initProps"](sector, { shape: { r: layout.r } }, seriesModel, node.dataIndex); } else { // Disable animation for gradient since no interpolation method // is supported for gradient _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["updateProps"](sector, { shape: sectorShape }, seriesModel); Object(_animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_8__["saveOldStyle"])(sector); } sector.useStyle(normalStyle); this._updateLabel(seriesModel); var cursorStyle = itemModel.getShallow('cursor'); cursorStyle && sector.attr('cursor', cursorStyle); this._seriesModel = seriesModel || this._seriesModel; this._ecModel = ecModel || this._ecModel; var focus = emphasisModel.get('focus'); var focusOrIndices = focus === 'relative' ? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["concatArray"](node.getAncestorsIndices(), node.getDescendantIndices()) : focus === 'ancestor' ? node.getAncestorsIndices() : focus === 'descendant' ? node.getDescendantIndices() : focus; Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["toggleHoverEmphasis"])(this, focusOrIndices, emphasisModel.get('blurScope'), emphasisModel.get('disabled')); }; SunburstPiece.prototype._updateLabel = function (seriesModel) { var _this = this; var itemModel = this.node.getModel(); var normalLabelModel = itemModel.getModel('label'); var layout = this.node.getLayout(); var angle = layout.endAngle - layout.startAngle; var midAngle = (layout.startAngle + layout.endAngle) / 2; var dx = Math.cos(midAngle); var dy = Math.sin(midAngle); var sector = this; var label = sector.getTextContent(); var dataIndex = this.node.dataIndex; var labelMinAngle = normalLabelModel.get('minAngle') / 180 * Math.PI; var isNormalShown = normalLabelModel.get('show') && !(labelMinAngle != null && Math.abs(angle) < labelMinAngle); label.ignore = !isNormalShown; // TODO use setLabelStyle zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](_util_states_js__WEBPACK_IMPORTED_MODULE_3__["DISPLAY_STATES"], function (stateName) { var labelStateModel = stateName === 'normal' ? itemModel.getModel('label') : itemModel.getModel([stateName, 'label']); var isNormal = stateName === 'normal'; var state = isNormal ? label : label.ensureState(stateName); var text = seriesModel.getFormattedLabel(dataIndex, stateName); if (isNormal) { text = text || _this.node.name; } state.style = Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextStyle"])(labelStateModel, {}, null, stateName !== 'normal', true); if (text) { state.style.text = text; } // Not displaying text when angle is too small var isShown = labelStateModel.get('show'); if (isShown != null && !isNormal) { state.ignore = !isShown; } var labelPosition = getLabelAttr(labelStateModel, 'position'); var sectorState = isNormal ? sector : sector.states[stateName]; var labelColor = sectorState.style.fill; sectorState.textConfig = { outsideFill: labelStateModel.get('color') === 'inherit' ? labelColor : null, inside: labelPosition !== 'outside' }; var r; var labelPadding = getLabelAttr(labelStateModel, 'distance') || 0; var textAlign = getLabelAttr(labelStateModel, 'align'); var rotateType = getLabelAttr(labelStateModel, 'rotate'); var flipStartAngle = Math.PI * 0.5; var flipEndAngle = Math.PI * 1.5; var midAngleNormal = Object(zrender_lib_contain_util_js__WEBPACK_IMPORTED_MODULE_9__["normalizeRadian"])(rotateType === 'tangential' ? Math.PI / 2 - midAngle : midAngle); // For text that is up-side down, rotate 180 degrees to make sure // it's readable var needsFlip = midAngleNormal > flipStartAngle && !Object(_util_number_js__WEBPACK_IMPORTED_MODULE_10__["isRadianAroundZero"])(midAngleNormal - flipStartAngle) && midAngleNormal < flipEndAngle; if (labelPosition === 'outside') { r = layout.r + labelPadding; textAlign = needsFlip ? 'right' : 'left'; } else { if (!textAlign || textAlign === 'center') { // Put label in the center if it's a circle if (angle === 2 * Math.PI && layout.r0 === 0) { r = 0; } else { r = (layout.r + layout.r0) / 2; } textAlign = 'center'; } else if (textAlign === 'left') { r = layout.r0 + labelPadding; textAlign = needsFlip ? 'right' : 'left'; } else if (textAlign === 'right') { r = layout.r - labelPadding; textAlign = needsFlip ? 'left' : 'right'; } } state.style.align = textAlign; state.style.verticalAlign = getLabelAttr(labelStateModel, 'verticalAlign') || 'middle'; state.x = r * dx + layout.cx; state.y = r * dy + layout.cy; var rotate = 0; if (rotateType === 'radial') { rotate = Object(zrender_lib_contain_util_js__WEBPACK_IMPORTED_MODULE_9__["normalizeRadian"])(-midAngle) + (needsFlip ? Math.PI : 0); } else if (rotateType === 'tangential') { rotate = Object(zrender_lib_contain_util_js__WEBPACK_IMPORTED_MODULE_9__["normalizeRadian"])(Math.PI / 2 - midAngle) + (needsFlip ? Math.PI : 0); } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isNumber"](rotateType)) { rotate = rotateType * Math.PI / 180; } state.rotation = Object(zrender_lib_contain_util_js__WEBPACK_IMPORTED_MODULE_9__["normalizeRadian"])(rotate); }); function getLabelAttr(model, name) { var stateAttr = model.get(name); if (stateAttr == null) { return normalLabelModel.get(name); } return stateAttr; } label.dirtyStyle(); }; return SunburstPiece; }(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Sector"]); /* harmony default export */ __webpack_exports__["default"] = (SunburstPiece); /***/ }), /***/ "./node_modules/echarts/lib/chart/sunburst/SunburstSeries.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/chart/sunburst/SunburstSeries.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _data_Tree_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../data/Tree.js */ "./node_modules/echarts/lib/data/Tree.js"); /* harmony import */ var _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helper/treeHelper.js */ "./node_modules/echarts/lib/chart/helper/treeHelper.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _helper_enableAriaDecalForTree_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helper/enableAriaDecalForTree.js */ "./node_modules/echarts/lib/chart/helper/enableAriaDecalForTree.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SunburstSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SunburstSeriesModel, _super); function SunburstSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = SunburstSeriesModel.type; _this.ignoreStyleOnData = true; return _this; } SunburstSeriesModel.prototype.getInitialData = function (option, ecModel) { // Create a virtual root. var root = { name: option.name, children: option.data }; completeTreeValue(root); var levelModels = this._levelModels = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](option.levels || [], function (levelDefine) { return new _model_Model_js__WEBPACK_IMPORTED_MODULE_5__["default"](levelDefine, this, ecModel); }, this); // Make sure always a new tree is created when setOption, // in TreemapView, we check whether oldTree === newTree // to choose mappings approach among old shapes and new shapes. var tree = _data_Tree_js__WEBPACK_IMPORTED_MODULE_3__["default"].createTree(root, this, beforeLink); function beforeLink(nodeData) { nodeData.wrapMethod('getItemModel', function (model, idx) { var node = tree.getNodeByDataIndex(idx); var levelModel = levelModels[node.depth]; levelModel && (model.parentModel = levelModel); return model; }); } return tree.data; }; SunburstSeriesModel.prototype.optionUpdated = function () { this.resetViewRoot(); }; /* * @override */ SunburstSeriesModel.prototype.getDataParams = function (dataIndex) { var params = _super.prototype.getDataParams.apply(this, arguments); var node = this.getData().tree.getNodeByDataIndex(dataIndex); params.treePathInfo = Object(_helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_4__["wrapTreePathInfo"])(node, this); return params; }; SunburstSeriesModel.prototype.getLevelModel = function (node) { return this._levelModels && this._levelModels[node.depth]; }; SunburstSeriesModel.prototype.getViewRoot = function () { return this._viewRoot; }; SunburstSeriesModel.prototype.resetViewRoot = function (viewRoot) { viewRoot ? this._viewRoot = viewRoot : viewRoot = this._viewRoot; var root = this.getRawData().tree.root; if (!viewRoot || viewRoot !== root && !root.contains(viewRoot)) { this._viewRoot = root; } }; SunburstSeriesModel.prototype.enableAriaDecal = function () { Object(_helper_enableAriaDecalForTree_js__WEBPACK_IMPORTED_MODULE_6__["default"])(this); }; SunburstSeriesModel.type = 'series.sunburst'; SunburstSeriesModel.defaultOption = { // zlevel: 0, z: 2, // 默认全局居中 center: ['50%', '50%'], radius: [0, '75%'], // 默认顺时针 clockwise: true, startAngle: 90, // 最小角度改为0 minAngle: 0, // If still show when all data zero. stillShowZeroSum: true, // 'rootToNode', 'link', or false nodeClick: 'rootToNode', renderLabelForZeroData: false, label: { // could be: 'radial', 'tangential', or 'none' rotate: 'radial', show: true, opacity: 1, // 'left' is for inner side of inside, and 'right' is for outer // side for inside align: 'center', position: 'inside', distance: 5, silent: true }, itemStyle: { borderWidth: 1, borderColor: 'white', borderType: 'solid', shadowBlur: 0, shadowColor: 'rgba(0, 0, 0, 0.2)', shadowOffsetX: 0, shadowOffsetY: 0, opacity: 1 }, emphasis: { focus: 'descendant' }, blur: { itemStyle: { opacity: 0.2 }, label: { opacity: 0.1 } }, // Animation type can be expansion, scale. animationType: 'expansion', animationDuration: 1000, animationDurationUpdate: 500, data: [], /** * Sort order. * * Valid values: 'desc', 'asc', null, or callback function. * 'desc' and 'asc' for descend and ascendant order; * null for not sorting; * example of callback function: * function(nodeA, nodeB) { * return nodeA.getValue() - nodeB.getValue(); * } */ sort: 'desc' }; return SunburstSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_2__["default"]); function completeTreeValue(dataNode) { // Postorder travel tree. // If value of none-leaf node is not set, // calculate it by suming up the value of all children. var sum = 0; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](dataNode.children, function (child) { completeTreeValue(child); var childValue = child.value; // TODO First value of array must be a number zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](childValue) && (childValue = childValue[0]); sum += childValue; }); var thisValue = dataNode.value; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](thisValue)) { thisValue = thisValue[0]; } if (thisValue == null || isNaN(thisValue)) { thisValue = sum; } // Value should not less than 0. if (thisValue < 0) { thisValue = 0; } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](dataNode.value) ? dataNode.value[0] = thisValue : dataNode.value = thisValue; } /* harmony default export */ __webpack_exports__["default"] = (SunburstSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/sunburst/SunburstView.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/sunburst/SunburstView.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _SunburstPiece_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SunburstPiece.js */ "./node_modules/echarts/lib/chart/sunburst/SunburstPiece.js"); /* harmony import */ var _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../data/DataDiffer.js */ "./node_modules/echarts/lib/data/DataDiffer.js"); /* harmony import */ var _sunburstAction_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sunburstAction.js */ "./node_modules/echarts/lib/chart/sunburst/sunburstAction.js"); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SunburstView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SunburstView, _super); function SunburstView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = SunburstView.type; return _this; } SunburstView.prototype.render = function (seriesModel, ecModel, api, // @ts-ignore payload) { var self = this; this.seriesModel = seriesModel; this.api = api; this.ecModel = ecModel; var data = seriesModel.getData(); var virtualRoot = data.tree.root; var newRoot = seriesModel.getViewRoot(); var group = this.group; var renderLabelForZeroData = seriesModel.get('renderLabelForZeroData'); var newChildren = []; newRoot.eachNode(function (node) { newChildren.push(node); }); var oldChildren = this._oldChildren || []; dualTravel(newChildren, oldChildren); renderRollUp(virtualRoot, newRoot); this._initEvents(); this._oldChildren = newChildren; function dualTravel(newChildren, oldChildren) { if (newChildren.length === 0 && oldChildren.length === 0) { return; } new _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_4__["default"](oldChildren, newChildren, getKey, getKey).add(processNode).update(processNode).remove(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"](processNode, null)).execute(); function getKey(node) { return node.getId(); } function processNode(newIdx, oldIdx) { var newNode = newIdx == null ? null : newChildren[newIdx]; var oldNode = oldIdx == null ? null : oldChildren[oldIdx]; doRenderNode(newNode, oldNode); } } function doRenderNode(newNode, oldNode) { if (!renderLabelForZeroData && newNode && !newNode.getValue()) { // Not render data with value 0 newNode = null; } if (newNode !== virtualRoot && oldNode !== virtualRoot) { if (oldNode && oldNode.piece) { if (newNode) { // Update oldNode.piece.updateData(false, newNode, seriesModel, ecModel, api); // For tooltip data.setItemGraphicEl(newNode.dataIndex, oldNode.piece); } else { // Remove removeNode(oldNode); } } else if (newNode) { // Add var piece = new _SunburstPiece_js__WEBPACK_IMPORTED_MODULE_3__["default"](newNode, seriesModel, ecModel, api); group.add(piece); // For tooltip data.setItemGraphicEl(newNode.dataIndex, piece); } } } function removeNode(node) { if (!node) { return; } if (node.piece) { group.remove(node.piece); node.piece = null; } } function renderRollUp(virtualRoot, viewRoot) { if (viewRoot.depth > 0) { // Render if (self.virtualPiece) { // Update self.virtualPiece.updateData(false, virtualRoot, seriesModel, ecModel, api); } else { // Add self.virtualPiece = new _SunburstPiece_js__WEBPACK_IMPORTED_MODULE_3__["default"](virtualRoot, seriesModel, ecModel, api); group.add(self.virtualPiece); } // TODO event scope viewRoot.piece.off('click'); self.virtualPiece.on('click', function (e) { self._rootToNode(viewRoot.parentNode); }); } else if (self.virtualPiece) { // Remove group.remove(self.virtualPiece); self.virtualPiece = null; } } }; /** * @private */ SunburstView.prototype._initEvents = function () { var _this = this; this.group.off('click'); this.group.on('click', function (e) { var targetFound = false; var viewRoot = _this.seriesModel.getViewRoot(); viewRoot.eachNode(function (node) { if (!targetFound && node.piece && node.piece === e.target) { var nodeClick = node.getModel().get('nodeClick'); if (nodeClick === 'rootToNode') { _this._rootToNode(node); } else if (nodeClick === 'link') { var itemModel = node.getModel(); var link = itemModel.get('link'); if (link) { var linkTarget = itemModel.get('target', true) || '_blank'; Object(_util_format_js__WEBPACK_IMPORTED_MODULE_6__["windowOpen"])(link, linkTarget); } } targetFound = true; } }); }); }; /** * @private */ SunburstView.prototype._rootToNode = function (node) { if (node !== this.seriesModel.getViewRoot()) { this.api.dispatchAction({ type: _sunburstAction_js__WEBPACK_IMPORTED_MODULE_5__["ROOT_TO_NODE_ACTION"], from: this.uid, seriesId: this.seriesModel.id, targetNode: node }); } }; /** * @implement */ SunburstView.prototype.containPoint = function (point, seriesModel) { var treeRoot = seriesModel.getData(); var itemLayout = treeRoot.getItemLayout(0); if (itemLayout) { var dx = point[0] - itemLayout.cx; var dy = point[1] - itemLayout.cy; var radius = Math.sqrt(dx * dx + dy * dy); return radius <= itemLayout.r && radius >= itemLayout.r0; } }; SunburstView.type = 'sunburst'; return SunburstView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /* harmony default export */ __webpack_exports__["default"] = (SunburstView); /***/ }), /***/ "./node_modules/echarts/lib/chart/sunburst/install.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/chart/sunburst/install.js ***! \************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _SunburstView_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SunburstView.js */ "./node_modules/echarts/lib/chart/sunburst/SunburstView.js"); /* harmony import */ var _SunburstSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SunburstSeries.js */ "./node_modules/echarts/lib/chart/sunburst/SunburstSeries.js"); /* harmony import */ var _sunburstLayout_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sunburstLayout.js */ "./node_modules/echarts/lib/chart/sunburst/sunburstLayout.js"); /* harmony import */ var _sunburstVisual_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sunburstVisual.js */ "./node_modules/echarts/lib/chart/sunburst/sunburstVisual.js"); /* harmony import */ var _processor_dataFilter_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../processor/dataFilter.js */ "./node_modules/echarts/lib/processor/dataFilter.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _sunburstAction_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./sunburstAction.js */ "./node_modules/echarts/lib/chart/sunburst/sunburstAction.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerChartView(_SunburstView_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerSeriesModel(_SunburstSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerLayout(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["curry"])(_sunburstLayout_js__WEBPACK_IMPORTED_MODULE_2__["default"], 'sunburst')); registers.registerProcessor(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["curry"])(_processor_dataFilter_js__WEBPACK_IMPORTED_MODULE_4__["default"], 'sunburst')); registers.registerVisual(_sunburstVisual_js__WEBPACK_IMPORTED_MODULE_3__["default"]); Object(_sunburstAction_js__WEBPACK_IMPORTED_MODULE_6__["installSunburstAction"])(registers); } /***/ }), /***/ "./node_modules/echarts/lib/chart/sunburst/sunburstAction.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/chart/sunburst/sunburstAction.js ***! \*******************************************************************/ /*! exports provided: ROOT_TO_NODE_ACTION, installSunburstAction */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ROOT_TO_NODE_ACTION", function() { return ROOT_TO_NODE_ACTION; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "installSunburstAction", function() { return installSunburstAction; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/treeHelper.js */ "./node_modules/echarts/lib/chart/helper/treeHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ROOT_TO_NODE_ACTION = 'sunburstRootToNode'; var HIGHLIGHT_ACTION = 'sunburstHighlight'; var UNHIGHLIGHT_ACTION = 'sunburstUnhighlight'; function installSunburstAction(registers) { registers.registerAction({ type: ROOT_TO_NODE_ACTION, update: 'updateView' }, function (payload, ecModel) { ecModel.eachComponent({ mainType: 'series', subType: 'sunburst', query: payload }, handleRootToNode); function handleRootToNode(model, index) { var targetInfo = Object(_helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_2__["retrieveTargetInfo"])(payload, [ROOT_TO_NODE_ACTION], model); if (targetInfo) { var originViewRoot = model.getViewRoot(); if (originViewRoot) { payload.direction = Object(_helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_2__["aboveViewRoot"])(originViewRoot, targetInfo.node) ? 'rollUp' : 'drillDown'; } model.resetViewRoot(targetInfo.node); } } }); registers.registerAction({ type: HIGHLIGHT_ACTION, update: 'none' }, function (payload, ecModel, api) { // Clone payload = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, payload); ecModel.eachComponent({ mainType: 'series', subType: 'sunburst', query: payload }, handleHighlight); function handleHighlight(model) { var targetInfo = Object(_helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_2__["retrieveTargetInfo"])(payload, [HIGHLIGHT_ACTION], model); if (targetInfo) { payload.dataIndex = targetInfo.node.dataIndex; } } if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["deprecateReplaceLog"])('sunburstHighlight', 'highlight'); } // Fast forward action api.dispatchAction(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(payload, { type: 'highlight' })); }); registers.registerAction({ type: UNHIGHLIGHT_ACTION, update: 'updateView' }, function (payload, ecModel, api) { payload = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, payload); if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["deprecateReplaceLog"])('sunburstUnhighlight', 'downplay'); } api.dispatchAction(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(payload, { type: 'downplay' })); }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/sunburst/sunburstLayout.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/chart/sunburst/sunburstLayout.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return sunburstLayout; }); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // let PI2 = Math.PI * 2; var RADIAN = Math.PI / 180; function sunburstLayout(seriesType, ecModel, api) { ecModel.eachSeriesByType(seriesType, function (seriesModel) { var center = seriesModel.get('center'); var radius = seriesModel.get('radius'); if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](radius)) { radius = [0, radius]; } if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](center)) { center = [center, center]; } var width = api.getWidth(); var height = api.getHeight(); var size = Math.min(width, height); var cx = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(center[0], width); var cy = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(center[1], height); var r0 = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(radius[0], size / 2); var r = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(radius[1], size / 2); var startAngle = -seriesModel.get('startAngle') * RADIAN; var minAngle = seriesModel.get('minAngle') * RADIAN; var virtualRoot = seriesModel.getData().tree.root; var treeRoot = seriesModel.getViewRoot(); var rootDepth = treeRoot.depth; var sort = seriesModel.get('sort'); if (sort != null) { initChildren(treeRoot, sort); } var validDataCount = 0; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](treeRoot.children, function (child) { !isNaN(child.getValue()) && validDataCount++; }); var sum = treeRoot.getValue(); // Sum may be 0 var unitRadian = Math.PI / (sum || validDataCount) * 2; var renderRollupNode = treeRoot.depth > 0; var levels = treeRoot.height - (renderRollupNode ? -1 : 1); var rPerLevel = (r - r0) / (levels || 1); var clockwise = seriesModel.get('clockwise'); var stillShowZeroSum = seriesModel.get('stillShowZeroSum'); // In the case some sector angle is smaller than minAngle // let restAngle = PI2; // let valueSumLargerThanMinAngle = 0; var dir = clockwise ? 1 : -1; /** * Render a tree * @return increased angle */ var renderNode = function (node, startAngle) { if (!node) { return; } var endAngle = startAngle; // Render self if (node !== virtualRoot) { // Tree node is virtual, so it doesn't need to be drawn var value = node.getValue(); var angle = sum === 0 && stillShowZeroSum ? unitRadian : value * unitRadian; if (angle < minAngle) { angle = minAngle; // restAngle -= minAngle; } // else { // valueSumLargerThanMinAngle += value; // } endAngle = startAngle + dir * angle; var depth = node.depth - rootDepth - (renderRollupNode ? -1 : 1); var rStart = r0 + rPerLevel * depth; var rEnd = r0 + rPerLevel * (depth + 1); var levelModel = seriesModel.getLevelModel(node); if (levelModel) { var r0_1 = levelModel.get('r0', true); var r_1 = levelModel.get('r', true); var radius_1 = levelModel.get('radius', true); if (radius_1 != null) { r0_1 = radius_1[0]; r_1 = radius_1[1]; } r0_1 != null && (rStart = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(r0_1, size / 2)); r_1 != null && (rEnd = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parsePercent"])(r_1, size / 2)); } node.setLayout({ angle: angle, startAngle: startAngle, endAngle: endAngle, clockwise: clockwise, cx: cx, cy: cy, r0: rStart, r: rEnd }); } // Render children if (node.children && node.children.length) { // currentAngle = startAngle; var siblingAngle_1 = 0; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](node.children, function (node) { siblingAngle_1 += renderNode(node, startAngle + siblingAngle_1); }); } return endAngle - startAngle; }; // Virtual root node for roll up if (renderRollupNode) { var rStart = r0; var rEnd = r0 + rPerLevel; var angle = Math.PI * 2; virtualRoot.setLayout({ angle: angle, startAngle: startAngle, endAngle: startAngle + angle, clockwise: clockwise, cx: cx, cy: cy, r0: rStart, r: rEnd }); } renderNode(treeRoot, startAngle); }); } /** * Init node children by order and update visual */ function initChildren(node, sortOrder) { var children = node.children || []; node.children = sort(children, sortOrder); // Init children recursively if (children.length) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](node.children, function (child) { initChildren(child, sortOrder); }); } } /** * Sort children nodes * * @param {TreeNode[]} children children of node to be sorted * @param {string | function | null} sort sort method * See SunburstSeries.js for details. */ function sort(children, sortOrder) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"](sortOrder)) { var sortTargets = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](children, function (child, idx) { var value = child.getValue(); return { params: { depth: child.depth, height: child.height, dataIndex: child.dataIndex, getValue: function () { return value; } }, index: idx }; }); sortTargets.sort(function (a, b) { return sortOrder(a.params, b.params); }); return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](sortTargets, function (target) { return children[target.index]; }); } else { var isAsc_1 = sortOrder === 'asc'; return children.sort(function (a, b) { var diff = (a.getValue() - b.getValue()) * (isAsc_1 ? 1 : -1); return diff === 0 ? (a.dataIndex - b.dataIndex) * (isAsc_1 ? -1 : 1) : diff; }); } } /***/ }), /***/ "./node_modules/echarts/lib/chart/sunburst/sunburstVisual.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/chart/sunburst/sunburstVisual.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return sunburstVisual; }); /* harmony import */ var zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/tool/color.js */ "./node_modules/zrender/lib/tool/color.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function sunburstVisual(ecModel) { var paletteScope = {}; // Default color strategy function pickColor(node, seriesModel, treeHeight) { // Choose color from palette based on the first level. var current = node; while (current && current.depth > 1) { current = current.parentNode; } var color = seriesModel.getColorFromPalette(current.name || current.dataIndex + '', paletteScope); if (node.depth > 1 && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(color)) { // Lighter on the deeper level. color = Object(zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_0__["lift"])(color, (node.depth - 1) / (treeHeight - 1) * 0.5); } return color; } ecModel.eachSeriesByType('sunburst', function (seriesModel) { var data = seriesModel.getData(); var tree = data.tree; tree.eachNode(function (node) { var model = node.getModel(); var style = model.getModel('itemStyle').getItemStyle(); if (!style.fill) { style.fill = pickColor(node, seriesModel, tree.root.height); } var existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style'); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(existsStyle, style); }); }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/themeRiver/ThemeRiverSeries.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/chart/themeRiver/ThemeRiverSeries.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _data_helper_createDimensions_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../data/helper/createDimensions.js */ "./node_modules/echarts/lib/data/helper/createDimensions.js"); /* harmony import */ var _data_helper_dimensionHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../data/helper/dimensionHelper.js */ "./node_modules/echarts/lib/data/helper/dimensionHelper.js"); /* harmony import */ var _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../data/SeriesData.js */ "./node_modules/echarts/lib/data/SeriesData.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _visual_LegendVisualProvider_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../visual/LegendVisualProvider.js */ "./node_modules/echarts/lib/visual/LegendVisualProvider.js"); /* harmony import */ var _component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../component/tooltip/tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DATA_NAME_INDEX = 2; var ThemeRiverSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ThemeRiverSeriesModel, _super); function ThemeRiverSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ThemeRiverSeriesModel.type; return _this; } /** * @override */ ThemeRiverSeriesModel.prototype.init = function (option) { // eslint-disable-next-line _super.prototype.init.apply(this, arguments); // Put this function here is for the sake of consistency of code style. // Enable legend selection for each data item // Use a function instead of direct access because data reference may changed this.legendVisualProvider = new _visual_LegendVisualProvider_js__WEBPACK_IMPORTED_MODULE_7__["default"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["bind"](this.getData, this), zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["bind"](this.getRawData, this)); }; /** * If there is no value of a certain point in the time for some event,set it value to 0. * * @param {Array} data initial data in the option * @return {Array} */ ThemeRiverSeriesModel.prototype.fixData = function (data) { var rawDataLength = data.length; /** * Make sure every layer data get the same keys. * The value index tells which layer has visited. * { * 2014/01/01: -1 * } */ var timeValueKeys = {}; // grouped data by name var groupResult = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_6__["groupData"])(data, function (item) { if (!timeValueKeys.hasOwnProperty(item[0] + '')) { timeValueKeys[item[0] + ''] = -1; } return item[2]; }); var layerData = []; groupResult.buckets.each(function (items, key) { layerData.push({ name: key, dataList: items }); }); var layerNum = layerData.length; for (var k = 0; k < layerNum; ++k) { var name_1 = layerData[k].name; for (var j = 0; j < layerData[k].dataList.length; ++j) { var timeValue = layerData[k].dataList[j][0] + ''; timeValueKeys[timeValue] = k; } for (var timeValue in timeValueKeys) { if (timeValueKeys.hasOwnProperty(timeValue) && timeValueKeys[timeValue] !== k) { timeValueKeys[timeValue] = k; data[rawDataLength] = [timeValue, 0, name_1]; rawDataLength++; } } } return data; }; /** * @override * @param option the initial option that user gave * @param ecModel the model object for themeRiver option */ ThemeRiverSeriesModel.prototype.getInitialData = function (option, ecModel) { var singleAxisModel = this.getReferringComponents('singleAxis', _util_model_js__WEBPACK_IMPORTED_MODULE_6__["SINGLE_REFERRING"]).models[0]; var axisType = singleAxisModel.get('type'); // filter the data item with the value of label is undefined var filterData = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["filter"](option.data, function (dataItem) { return dataItem[2] !== undefined; }); // ??? TODO design a stage to transfer data for themeRiver and lines? var data = this.fixData(filterData || []); var nameList = []; var nameMap = this.nameMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["createHashMap"](); var count = 0; for (var i = 0; i < data.length; ++i) { nameList.push(data[i][DATA_NAME_INDEX]); if (!nameMap.get(data[i][DATA_NAME_INDEX])) { nameMap.set(data[i][DATA_NAME_INDEX], count); count++; } } var dimensions = Object(_data_helper_createDimensions_js__WEBPACK_IMPORTED_MODULE_2__["default"])(data, { coordDimensions: ['single'], dimensionsDefine: [{ name: 'time', type: Object(_data_helper_dimensionHelper_js__WEBPACK_IMPORTED_MODULE_3__["getDimensionTypeByAxis"])(axisType) }, { name: 'value', type: 'float' }, { name: 'name', type: 'ordinal' }], encodeDefine: { single: 0, value: 1, itemName: 2 } }).dimensions; var list = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_4__["default"](dimensions, this); list.initData(data); return list; }; /** * The raw data is divided into multiple layers and each layer * has same name. */ ThemeRiverSeriesModel.prototype.getLayerSeries = function () { var data = this.getData(); var lenCount = data.count(); var indexArr = []; for (var i = 0; i < lenCount; ++i) { indexArr[i] = i; } var timeDim = data.mapDimension('single'); // data group by name var groupResult = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_6__["groupData"])(indexArr, function (index) { return data.get('name', index); }); var layerSeries = []; groupResult.buckets.each(function (items, key) { items.sort(function (index1, index2) { return data.get(timeDim, index1) - data.get(timeDim, index2); }); layerSeries.push({ name: key, indices: items }); }); return layerSeries; }; /** * Get data indices for show tooltip content */ ThemeRiverSeriesModel.prototype.getAxisTooltipData = function (dim, value, baseAxis) { if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["isArray"](dim)) { dim = dim ? [dim] : []; } var data = this.getData(); var layerSeries = this.getLayerSeries(); var indices = []; var layerNum = layerSeries.length; var nestestValue; for (var i = 0; i < layerNum; ++i) { var minDist = Number.MAX_VALUE; var nearestIdx = -1; var pointNum = layerSeries[i].indices.length; for (var j = 0; j < pointNum; ++j) { var theValue = data.get(dim[0], layerSeries[i].indices[j]); var dist = Math.abs(theValue - value); if (dist <= minDist) { nestestValue = theValue; minDist = dist; nearestIdx = layerSeries[i].indices[j]; } } indices.push(nearestIdx); } return { dataIndices: indices, nestestValue: nestestValue }; }; ThemeRiverSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) { var data = this.getData(); var name = data.getName(dataIndex); var value = data.get(data.mapDimension('value'), dataIndex); return Object(_component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_8__["createTooltipMarkup"])('nameValue', { name: name, value: value }); }; ThemeRiverSeriesModel.type = 'series.themeRiver'; ThemeRiverSeriesModel.dependencies = ['singleAxis']; ThemeRiverSeriesModel.defaultOption = { // zlevel: 0, z: 2, colorBy: 'data', coordinateSystem: 'singleAxis', // gap in axis's orthogonal orientation boundaryGap: ['10%', '10%'], // legendHoverLink: true, singleAxisIndex: 0, animationEasing: 'linear', label: { margin: 4, show: true, position: 'left', fontSize: 11 }, emphasis: { label: { show: true } } }; return ThemeRiverSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (ThemeRiverSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/themeRiver/ThemeRiverView.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/chart/themeRiver/ThemeRiverView.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _line_poly_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../line/poly.js */ "./node_modules/echarts/lib/chart/line/poly.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../data/DataDiffer.js */ "./node_modules/echarts/lib/data/DataDiffer.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../animation/basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ThemeRiverView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ThemeRiverView, _super); function ThemeRiverView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ThemeRiverView.type; _this._layers = []; return _this; } ThemeRiverView.prototype.render = function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var self = this; var group = this.group; var layersSeries = seriesModel.getLayerSeries(); var layoutInfo = data.getLayout('layoutInfo'); var rect = layoutInfo.rect; var boundaryGap = layoutInfo.boundaryGap; group.x = 0; group.y = rect.y + boundaryGap[0]; function keyGetter(item) { return item.name; } var dataDiffer = new _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_6__["default"](this._layersSeries || [], layersSeries, keyGetter, keyGetter); var newLayersGroups = []; dataDiffer.add(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["bind"])(process, this, 'add')).update(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["bind"])(process, this, 'update')).remove(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["bind"])(process, this, 'remove')).execute(); function process(status, idx, oldIdx) { var oldLayersGroups = self._layers; if (status === 'remove') { group.remove(oldLayersGroups[idx]); return; } var points0 = []; var points1 = []; var style; var indices = layersSeries[idx].indices; var j = 0; for (; j < indices.length; j++) { var layout = data.getItemLayout(indices[j]); var x = layout.x; var y0 = layout.y0; var y = layout.y; points0.push(x, y0); points1.push(x, y0 + y); style = data.getItemVisual(indices[j], 'style'); } var polygon; var textLayout = data.getItemLayout(indices[0]); var labelModel = seriesModel.getModel('label'); var margin = labelModel.get('margin'); var emphasisModel = seriesModel.getModel('emphasis'); if (status === 'add') { var layerGroup = newLayersGroups[idx] = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"](); polygon = new _line_poly_js__WEBPACK_IMPORTED_MODULE_1__["ECPolygon"]({ shape: { points: points0, stackedOnPoints: points1, smooth: 0.4, stackedOnSmooth: 0.4, smoothConstraint: false }, z2: 0 }); layerGroup.add(polygon); group.add(layerGroup); if (seriesModel.isAnimationEnabled()) { polygon.setClipPath(createGridClipShape(polygon.getBoundingRect(), seriesModel, function () { polygon.removeClipPath(); })); } } else { var layerGroup = oldLayersGroups[oldIdx]; polygon = layerGroup.childAt(0); group.add(layerGroup); newLayersGroups[idx] = layerGroup; _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["updateProps"](polygon, { shape: { points: points0, stackedOnPoints: points1 } }, seriesModel); Object(_animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_8__["saveOldStyle"])(polygon); } Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["setLabelStyle"])(polygon, Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["getLabelStatesModels"])(seriesModel), { labelDataIndex: indices[j - 1], defaultText: data.getName(indices[j - 1]), inheritColor: style.fill }, { normal: { verticalAlign: 'middle' // align: 'right' } }); polygon.setTextConfig({ position: null, local: true }); var labelEl = polygon.getTextContent(); // TODO More label position options. if (labelEl) { labelEl.x = textLayout.x - margin; labelEl.y = textLayout.y0 + textLayout.y / 2; } polygon.useStyle(style); data.setItemGraphicEl(idx, polygon); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["setStatesStylesFromModel"])(polygon, seriesModel); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_3__["toggleHoverEmphasis"])(polygon, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled')); } this._layersSeries = layersSeries; this._layers = newLayersGroups; }; ThemeRiverView.type = 'themeRiver'; return ThemeRiverView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_7__["default"]); ; // add animation to the view function createGridClipShape(rect, seriesModel, cb) { var rectEl = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Rect"]({ shape: { x: rect.x - 10, y: rect.y - 10, width: 0, height: rect.height + 20 } }); _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["initProps"](rectEl, { shape: { x: rect.x - 50, width: rect.width + 100, height: rect.height + 20 } }, seriesModel, cb); return rectEl; } /* harmony default export */ __webpack_exports__["default"] = (ThemeRiverView); /***/ }), /***/ "./node_modules/echarts/lib/chart/themeRiver/install.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/chart/themeRiver/install.js ***! \**************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _ThemeRiverView_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeRiverView.js */ "./node_modules/echarts/lib/chart/themeRiver/ThemeRiverView.js"); /* harmony import */ var _ThemeRiverSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ThemeRiverSeries.js */ "./node_modules/echarts/lib/chart/themeRiver/ThemeRiverSeries.js"); /* harmony import */ var _themeRiverLayout_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./themeRiverLayout.js */ "./node_modules/echarts/lib/chart/themeRiver/themeRiverLayout.js"); /* harmony import */ var _processor_dataFilter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../processor/dataFilter.js */ "./node_modules/echarts/lib/processor/dataFilter.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ function install(registers) { registers.registerChartView(_ThemeRiverView_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerSeriesModel(_ThemeRiverSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerLayout(_themeRiverLayout_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerProcessor(Object(_processor_dataFilter_js__WEBPACK_IMPORTED_MODULE_3__["default"])('themeRiver')); } /***/ }), /***/ "./node_modules/echarts/lib/chart/themeRiver/themeRiverLayout.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/chart/themeRiver/themeRiverLayout.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return themeRiverLayout; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function themeRiverLayout(ecModel, api) { ecModel.eachSeriesByType('themeRiver', function (seriesModel) { var data = seriesModel.getData(); var single = seriesModel.coordinateSystem; var layoutInfo = {}; // use the axis boundingRect for view var rect = single.getRect(); layoutInfo.rect = rect; var boundaryGap = seriesModel.get('boundaryGap'); var axis = single.getAxis(); layoutInfo.boundaryGap = boundaryGap; if (axis.orient === 'horizontal') { boundaryGap[0] = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"](boundaryGap[0], rect.height); boundaryGap[1] = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"](boundaryGap[1], rect.height); var height = rect.height - boundaryGap[0] - boundaryGap[1]; doThemeRiverLayout(data, seriesModel, height); } else { boundaryGap[0] = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"](boundaryGap[0], rect.width); boundaryGap[1] = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"](boundaryGap[1], rect.width); var width = rect.width - boundaryGap[0] - boundaryGap[1]; doThemeRiverLayout(data, seriesModel, width); } data.setLayout('layoutInfo', layoutInfo); }); } /** * The layout information about themeriver * * @param data data in the series * @param seriesModel the model object of themeRiver series * @param height value used to compute every series height */ function doThemeRiverLayout(data, seriesModel, height) { if (!data.count()) { return; } var coordSys = seriesModel.coordinateSystem; // the data in each layer are organized into a series. var layerSeries = seriesModel.getLayerSeries(); // the points in each layer. var timeDim = data.mapDimension('single'); var valueDim = data.mapDimension('value'); var layerPoints = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](layerSeries, function (singleLayer) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](singleLayer.indices, function (idx) { var pt = coordSys.dataToPoint(data.get(timeDim, idx)); pt[1] = data.get(valueDim, idx); return pt; }); }); var base = computeBaseline(layerPoints); var baseLine = base.y0; var ky = height / base.max; // set layout information for each item. var n = layerSeries.length; var m = layerSeries[0].indices.length; var baseY0; for (var j = 0; j < m; ++j) { baseY0 = baseLine[j] * ky; data.setItemLayout(layerSeries[0].indices[j], { layerIndex: 0, x: layerPoints[0][j][0], y0: baseY0, y: layerPoints[0][j][1] * ky }); for (var i = 1; i < n; ++i) { baseY0 += layerPoints[i - 1][j][1] * ky; data.setItemLayout(layerSeries[i].indices[j], { layerIndex: i, x: layerPoints[i][j][0], y0: baseY0, y: layerPoints[i][j][1] * ky }); } } } /** * Compute the baseLine of the rawdata * Inspired by Lee Byron's paper Stacked Graphs - Geometry & Aesthetics * * @param data the points in each layer */ function computeBaseline(data) { var layerNum = data.length; var pointNum = data[0].length; var sums = []; var y0 = []; var max = 0; for (var i = 0; i < pointNum; ++i) { var temp = 0; for (var j = 0; j < layerNum; ++j) { temp += data[j][i][1]; } if (temp > max) { max = temp; } sums.push(temp); } for (var k = 0; k < pointNum; ++k) { y0[k] = (max - sums[k]) / 2; } max = 0; for (var l = 0; l < pointNum; ++l) { var sum = sums[l] + y0[l]; if (sum > max) { max = sum; } } return { y0: y0, max: max }; } /***/ }), /***/ "./node_modules/echarts/lib/chart/tree/TreeSeries.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/tree/TreeSeries.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _data_Tree_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../data/Tree.js */ "./node_modules/echarts/lib/data/Tree.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../component/tooltip/tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* harmony import */ var _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helper/treeHelper.js */ "./node_modules/echarts/lib/chart/helper/treeHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TreeSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeSeriesModel, _super); function TreeSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.hasSymbolVisual = true; // Do it self. _this.ignoreStyleOnData = true; return _this; } /** * Init a tree data structure from data in option series */ TreeSeriesModel.prototype.getInitialData = function (option) { // create a virtual root var root = { name: option.name, children: option.data }; var leaves = option.leaves || {}; var leavesModel = new _model_Model_js__WEBPACK_IMPORTED_MODULE_3__["default"](leaves, this, this.ecModel); var tree = _data_Tree_js__WEBPACK_IMPORTED_MODULE_2__["default"].createTree(root, this, beforeLink); function beforeLink(nodeData) { nodeData.wrapMethod('getItemModel', function (model, idx) { var node = tree.getNodeByDataIndex(idx); if (!(node && node.children.length && node.isExpand)) { model.parentModel = leavesModel; } return model; }); } var treeDepth = 0; tree.eachNode('preorder', function (node) { if (node.depth > treeDepth) { treeDepth = node.depth; } }); var expandAndCollapse = option.expandAndCollapse; var expandTreeDepth = expandAndCollapse && option.initialTreeDepth >= 0 ? option.initialTreeDepth : treeDepth; tree.root.eachNode('preorder', function (node) { var item = node.hostTree.data.getRawDataItem(node.dataIndex); // Add item.collapsed != null, because users can collapse node original in the series.data. node.isExpand = item && item.collapsed != null ? !item.collapsed : node.depth <= expandTreeDepth; }); return tree.data; }; /** * Make the configuration 'orient' backward compatibly, with 'horizontal = LR', 'vertical = TB'. * @returns {string} orient */ TreeSeriesModel.prototype.getOrient = function () { var orient = this.get('orient'); if (orient === 'horizontal') { orient = 'LR'; } else if (orient === 'vertical') { orient = 'TB'; } return orient; }; TreeSeriesModel.prototype.setZoom = function (zoom) { this.option.zoom = zoom; }; TreeSeriesModel.prototype.setCenter = function (center) { this.option.center = center; }; TreeSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) { var tree = this.getData().tree; var realRoot = tree.root.children[0]; var node = tree.getNodeByDataIndex(dataIndex); var value = node.getValue(); var name = node.name; while (node && node !== realRoot) { name = node.parentNode.name + '.' + name; node = node.parentNode; } return Object(_component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_4__["createTooltipMarkup"])('nameValue', { name: name, value: value, noValue: isNaN(value) || value == null }); }; // Add tree path to tooltip param TreeSeriesModel.prototype.getDataParams = function (dataIndex) { var params = _super.prototype.getDataParams.apply(this, arguments); var node = this.getData().tree.getNodeByDataIndex(dataIndex); params.treeAncestors = Object(_helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_5__["wrapTreePathInfo"])(node, this); params.collapsed = !node.isExpand; return params; }; TreeSeriesModel.type = 'series.tree'; // can support the position parameters 'left', 'top','right','bottom', 'width', // 'height' in the setOption() with 'merge' mode normal. TreeSeriesModel.layoutMode = 'box'; TreeSeriesModel.defaultOption = { // zlevel: 0, z: 2, coordinateSystem: 'view', // the position of the whole view left: '12%', top: '12%', right: '12%', bottom: '12%', // the layout of the tree, two value can be selected, 'orthogonal' or 'radial' layout: 'orthogonal', // value can be 'polyline' edgeShape: 'curve', edgeForkPosition: '50%', // true | false | 'move' | 'scale', see module:component/helper/RoamController. roam: false, // Symbol size scale ratio in roam nodeScaleRatio: 0.4, // Default on center of graph center: null, zoom: 1, orient: 'LR', symbol: 'emptyCircle', symbolSize: 7, expandAndCollapse: true, initialTreeDepth: 2, lineStyle: { color: '#ccc', width: 1.5, curveness: 0.5 }, itemStyle: { color: 'lightsteelblue', // borderColor: '#c23531', borderWidth: 1.5 }, label: { show: true }, animationEasing: 'linear', animationDuration: 700, animationDurationUpdate: 500 }; return TreeSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (TreeSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/tree/TreeView.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/chart/tree/TreeView.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _helper_Symbol_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helper/Symbol.js */ "./node_modules/echarts/lib/chart/helper/Symbol.js"); /* harmony import */ var _layoutHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./layoutHelper.js */ "./node_modules/echarts/lib/chart/tree/layoutHelper.js"); /* harmony import */ var zrender_lib_core_bbox_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! zrender/lib/core/bbox.js */ "./node_modules/zrender/lib/core/bbox.js"); /* harmony import */ var _coord_View_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../coord/View.js */ "./node_modules/echarts/lib/coord/View.js"); /* harmony import */ var _component_helper_roamHelper_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../component/helper/roamHelper.js */ "./node_modules/echarts/lib/component/helper/roamHelper.js"); /* harmony import */ var _component_helper_RoamController_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../component/helper/RoamController.js */ "./node_modules/echarts/lib/component/helper/RoamController.js"); /* harmony import */ var _component_helper_cursorHelper_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../component/helper/cursorHelper.js */ "./node_modules/echarts/lib/component/helper/cursorHelper.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! zrender/lib/graphic/Path.js */ "./node_modules/zrender/lib/graphic/Path.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TreeEdgeShape = /** @class */function () { function TreeEdgeShape() { this.parentPoint = []; this.childPoints = []; } return TreeEdgeShape; }(); var TreePath = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreePath, _super); function TreePath(opts) { return _super.call(this, opts) || this; } TreePath.prototype.getDefaultStyle = function () { return { stroke: '#000', fill: null }; }; TreePath.prototype.getDefaultShape = function () { return new TreeEdgeShape(); }; TreePath.prototype.buildPath = function (ctx, shape) { var childPoints = shape.childPoints; var childLen = childPoints.length; var parentPoint = shape.parentPoint; var firstChildPos = childPoints[0]; var lastChildPos = childPoints[childLen - 1]; if (childLen === 1) { ctx.moveTo(parentPoint[0], parentPoint[1]); ctx.lineTo(firstChildPos[0], firstChildPos[1]); return; } var orient = shape.orient; var forkDim = orient === 'TB' || orient === 'BT' ? 0 : 1; var otherDim = 1 - forkDim; var forkPosition = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_11__["parsePercent"])(shape.forkPosition, 1); var tmpPoint = []; tmpPoint[forkDim] = parentPoint[forkDim]; tmpPoint[otherDim] = parentPoint[otherDim] + (lastChildPos[otherDim] - parentPoint[otherDim]) * forkPosition; ctx.moveTo(parentPoint[0], parentPoint[1]); ctx.lineTo(tmpPoint[0], tmpPoint[1]); ctx.moveTo(firstChildPos[0], firstChildPos[1]); tmpPoint[forkDim] = firstChildPos[forkDim]; ctx.lineTo(tmpPoint[0], tmpPoint[1]); tmpPoint[forkDim] = lastChildPos[forkDim]; ctx.lineTo(tmpPoint[0], tmpPoint[1]); ctx.lineTo(lastChildPos[0], lastChildPos[1]); for (var i = 1; i < childLen - 1; i++) { var point = childPoints[i]; ctx.moveTo(point[0], point[1]); tmpPoint[forkDim] = point[forkDim]; ctx.lineTo(tmpPoint[0], tmpPoint[1]); } }; return TreePath; }(zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_13__["default"]); var TreeView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreeView, _super); function TreeView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = TreeView.type; _this._mainGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"](); return _this; } TreeView.prototype.init = function (ecModel, api) { this._controller = new _component_helper_RoamController_js__WEBPACK_IMPORTED_MODULE_9__["default"](api.getZr()); this._controllerHost = { target: this.group }; this.group.add(this._mainGroup); }; TreeView.prototype.render = function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var layoutInfo = seriesModel.layoutInfo; var group = this._mainGroup; var layout = seriesModel.get('layout'); if (layout === 'radial') { group.x = layoutInfo.x + layoutInfo.width / 2; group.y = layoutInfo.y + layoutInfo.height / 2; } else { group.x = layoutInfo.x; group.y = layoutInfo.y; } this._updateViewCoordSys(seriesModel, api); this._updateController(seriesModel, ecModel, api); var oldData = this._data; data.diff(oldData).add(function (newIdx) { if (symbolNeedsDraw(data, newIdx)) { // Create node and edge updateNode(data, newIdx, null, group, seriesModel); } }).update(function (newIdx, oldIdx) { var symbolEl = oldData.getItemGraphicEl(oldIdx); if (!symbolNeedsDraw(data, newIdx)) { symbolEl && removeNode(oldData, oldIdx, symbolEl, group, seriesModel); return; } // Update node and edge updateNode(data, newIdx, symbolEl, group, seriesModel); }).remove(function (oldIdx) { var symbolEl = oldData.getItemGraphicEl(oldIdx); // When remove a collapsed node of subtree, since the collapsed // node haven't been initialized with a symbol element, // you can't found it's symbol element through index. // so if we want to remove the symbol element we should insure // that the symbol element is not null. if (symbolEl) { removeNode(oldData, oldIdx, symbolEl, group, seriesModel); } }).execute(); this._nodeScaleRatio = seriesModel.get('nodeScaleRatio'); this._updateNodeAndLinkScale(seriesModel); if (seriesModel.get('expandAndCollapse') === true) { data.eachItemGraphicEl(function (el, dataIndex) { el.off('click').on('click', function () { api.dispatchAction({ type: 'treeExpandAndCollapse', seriesId: seriesModel.id, dataIndex: dataIndex }); }); }); } this._data = data; }; TreeView.prototype._updateViewCoordSys = function (seriesModel, api) { var data = seriesModel.getData(); var points = []; data.each(function (idx) { var layout = data.getItemLayout(idx); if (layout && !isNaN(layout.x) && !isNaN(layout.y)) { points.push([+layout.x, +layout.y]); } }); var min = []; var max = []; zrender_lib_core_bbox_js__WEBPACK_IMPORTED_MODULE_6__["fromPoints"](points, min, max); // If don't Store min max when collapse the root node after roam, // the root node will disappear. var oldMin = this._min; var oldMax = this._max; // If width or height is 0 if (max[0] - min[0] === 0) { min[0] = oldMin ? oldMin[0] : min[0] - 1; max[0] = oldMax ? oldMax[0] : max[0] + 1; } if (max[1] - min[1] === 0) { min[1] = oldMin ? oldMin[1] : min[1] - 1; max[1] = oldMax ? oldMax[1] : max[1] + 1; } var viewCoordSys = seriesModel.coordinateSystem = new _coord_View_js__WEBPACK_IMPORTED_MODULE_7__["default"](); viewCoordSys.zoomLimit = seriesModel.get('scaleLimit'); viewCoordSys.setBoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]); viewCoordSys.setCenter(seriesModel.get('center'), api); viewCoordSys.setZoom(seriesModel.get('zoom')); // Here we use viewCoordSys just for computing the 'position' and 'scale' of the group this.group.attr({ x: viewCoordSys.x, y: viewCoordSys.y, scaleX: viewCoordSys.scaleX, scaleY: viewCoordSys.scaleY }); this._min = min; this._max = max; }; TreeView.prototype._updateController = function (seriesModel, ecModel, api) { var _this = this; var controller = this._controller; var controllerHost = this._controllerHost; var group = this.group; controller.setPointerChecker(function (e, x, y) { var rect = group.getBoundingRect(); rect.applyTransform(group.transform); return rect.contain(x, y) && !Object(_component_helper_cursorHelper_js__WEBPACK_IMPORTED_MODULE_10__["onIrrelevantElement"])(e, api, seriesModel); }); controller.enable(seriesModel.get('roam')); controllerHost.zoomLimit = seriesModel.get('scaleLimit'); controllerHost.zoom = seriesModel.coordinateSystem.getZoom(); controller.off('pan').off('zoom').on('pan', function (e) { _component_helper_roamHelper_js__WEBPACK_IMPORTED_MODULE_8__["updateViewOnPan"](controllerHost, e.dx, e.dy); api.dispatchAction({ seriesId: seriesModel.id, type: 'treeRoam', dx: e.dx, dy: e.dy }); }).on('zoom', function (e) { _component_helper_roamHelper_js__WEBPACK_IMPORTED_MODULE_8__["updateViewOnZoom"](controllerHost, e.scale, e.originX, e.originY); api.dispatchAction({ seriesId: seriesModel.id, type: 'treeRoam', zoom: e.scale, originX: e.originX, originY: e.originY }); _this._updateNodeAndLinkScale(seriesModel); // Only update label layout on zoom api.updateLabelLayout(); }); }; TreeView.prototype._updateNodeAndLinkScale = function (seriesModel) { var data = seriesModel.getData(); var nodeScale = this._getNodeGlobalScale(seriesModel); data.eachItemGraphicEl(function (el, idx) { el.setSymbolScale(nodeScale); }); }; TreeView.prototype._getNodeGlobalScale = function (seriesModel) { var coordSys = seriesModel.coordinateSystem; if (coordSys.type !== 'view') { return 1; } var nodeScaleRatio = this._nodeScaleRatio; var groupZoom = coordSys.scaleX || 1; // Scale node when zoom changes var roamZoom = coordSys.getZoom(); var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1; return nodeScale / groupZoom; }; TreeView.prototype.dispose = function () { this._controller && this._controller.dispose(); this._controllerHost = null; }; TreeView.prototype.remove = function () { this._mainGroup.removeAll(); this._data = null; }; TreeView.type = 'tree'; return TreeView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_12__["default"]); function symbolNeedsDraw(data, dataIndex) { var layout = data.getItemLayout(dataIndex); return layout && !isNaN(layout.x) && !isNaN(layout.y); } function updateNode(data, dataIndex, symbolEl, group, seriesModel) { var isInit = !symbolEl; var node = data.tree.getNodeByDataIndex(dataIndex); var itemModel = node.getModel(); var visualColor = node.getVisual('style').fill; var symbolInnerColor = node.isExpand === false && node.children.length !== 0 ? visualColor : '#fff'; var virtualRoot = data.tree.root; var source = node.parentNode === virtualRoot ? node : node.parentNode || node; var sourceSymbolEl = data.getItemGraphicEl(source.dataIndex); var sourceLayout = source.getLayout(); var sourceOldLayout = sourceSymbolEl ? { x: sourceSymbolEl.__oldX, y: sourceSymbolEl.__oldY, rawX: sourceSymbolEl.__radialOldRawX, rawY: sourceSymbolEl.__radialOldRawY } : sourceLayout; var targetLayout = node.getLayout(); if (isInit) { symbolEl = new _helper_Symbol_js__WEBPACK_IMPORTED_MODULE_4__["default"](data, dataIndex, null, { symbolInnerColor: symbolInnerColor, useNameLabel: true }); symbolEl.x = sourceOldLayout.x; symbolEl.y = sourceOldLayout.y; } else { symbolEl.updateData(data, dataIndex, null, { symbolInnerColor: symbolInnerColor, useNameLabel: true }); } symbolEl.__radialOldRawX = symbolEl.__radialRawX; symbolEl.__radialOldRawY = symbolEl.__radialRawY; symbolEl.__radialRawX = targetLayout.rawX; symbolEl.__radialRawY = targetLayout.rawY; group.add(symbolEl); data.setItemGraphicEl(dataIndex, symbolEl); symbolEl.__oldX = symbolEl.x; symbolEl.__oldY = symbolEl.y; _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["updateProps"](symbolEl, { x: targetLayout.x, y: targetLayout.y }, seriesModel); var symbolPath = symbolEl.getSymbolPath(); if (seriesModel.get('layout') === 'radial') { var realRoot = virtualRoot.children[0]; var rootLayout = realRoot.getLayout(); var length_1 = realRoot.children.length; var rad = void 0; var isLeft = void 0; if (targetLayout.x === rootLayout.x && node.isExpand === true && realRoot.children.length) { var center = { x: (realRoot.children[0].getLayout().x + realRoot.children[length_1 - 1].getLayout().x) / 2, y: (realRoot.children[0].getLayout().y + realRoot.children[length_1 - 1].getLayout().y) / 2 }; rad = Math.atan2(center.y - rootLayout.y, center.x - rootLayout.x); if (rad < 0) { rad = Math.PI * 2 + rad; } isLeft = center.x < rootLayout.x; if (isLeft) { rad = rad - Math.PI; } } else { rad = Math.atan2(targetLayout.y - rootLayout.y, targetLayout.x - rootLayout.x); if (rad < 0) { rad = Math.PI * 2 + rad; } if (node.children.length === 0 || node.children.length !== 0 && node.isExpand === false) { isLeft = targetLayout.x < rootLayout.x; if (isLeft) { rad = rad - Math.PI; } } else { isLeft = targetLayout.x > rootLayout.x; if (!isLeft) { rad = rad - Math.PI; } } } var textPosition = isLeft ? 'left' : 'right'; var normalLabelModel = itemModel.getModel('label'); var rotate = normalLabelModel.get('rotate'); var labelRotateRadian = rotate * (Math.PI / 180); var textContent = symbolPath.getTextContent(); if (textContent) { symbolPath.setTextConfig({ position: normalLabelModel.get('position') || textPosition, rotation: rotate == null ? -rad : labelRotateRadian, origin: 'center' }); textContent.setStyle('verticalAlign', 'middle'); } } // Handle status var focus = itemModel.get(['emphasis', 'focus']); var focusDataIndices = focus === 'relative' ? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["concatArray"](node.getAncestorsIndices(), node.getDescendantIndices()) : focus === 'ancestor' ? node.getAncestorsIndices() : focus === 'descendant' ? node.getDescendantIndices() : null; if (focusDataIndices) { // Modify the focus to data indices. Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__["getECData"])(symbolEl).focus = focusDataIndices; } drawEdge(seriesModel, node, virtualRoot, symbolEl, sourceOldLayout, sourceLayout, targetLayout, group); if (symbolEl.__edge) { symbolEl.onHoverStateChange = function (toState) { if (toState !== 'blur') { // NOTE: Ensure the parent elements will been blurred firstly. // According to the return of getAncestorsIndices and getDescendantIndices // TODO: A bit tricky. var parentEl = node.parentNode && data.getItemGraphicEl(node.parentNode.dataIndex); if (!(parentEl && parentEl.hoverState === _util_states_js__WEBPACK_IMPORTED_MODULE_14__["HOVER_STATE_BLUR"])) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_14__["setStatesFlag"])(symbolEl.__edge, toState); } } }; } } function drawEdge(seriesModel, node, virtualRoot, symbolEl, sourceOldLayout, sourceLayout, targetLayout, group) { var itemModel = node.getModel(); var edgeShape = seriesModel.get('edgeShape'); var layout = seriesModel.get('layout'); var orient = seriesModel.getOrient(); var curvature = seriesModel.get(['lineStyle', 'curveness']); var edgeForkPosition = seriesModel.get('edgeForkPosition'); var lineStyle = itemModel.getModel('lineStyle').getLineStyle(); var edge = symbolEl.__edge; // curve edge from node -> parent // polyline edge from node -> children if (edgeShape === 'curve') { if (node.parentNode && node.parentNode !== virtualRoot) { if (!edge) { edge = symbolEl.__edge = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["BezierCurve"]({ shape: getEdgeShape(layout, orient, curvature, sourceOldLayout, sourceOldLayout) }); } _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["updateProps"](edge, { shape: getEdgeShape(layout, orient, curvature, sourceLayout, targetLayout) }, seriesModel); } } else if (edgeShape === 'polyline') { if (layout === 'orthogonal') { if (node !== virtualRoot && node.children && node.children.length !== 0 && node.isExpand === true) { var children = node.children; var childPoints = []; for (var i = 0; i < children.length; i++) { var childLayout = children[i].getLayout(); childPoints.push([childLayout.x, childLayout.y]); } if (!edge) { edge = symbolEl.__edge = new TreePath({ shape: { parentPoint: [targetLayout.x, targetLayout.y], childPoints: [[targetLayout.x, targetLayout.y]], orient: orient, forkPosition: edgeForkPosition } }); } _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["updateProps"](edge, { shape: { parentPoint: [targetLayout.x, targetLayout.y], childPoints: childPoints } }, seriesModel); } } else { if (true) { throw new Error('The polyline edgeShape can only be used in orthogonal layout'); } } } // show all edge when edgeShape is 'curve', filter node `isExpand` is false when edgeShape is 'polyline' if (edge && !(edgeShape === 'polyline' && !node.isExpand)) { edge.useStyle(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]({ strokeNoScale: true, fill: null }, lineStyle)); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_14__["setStatesStylesFromModel"])(edge, itemModel, 'lineStyle'); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_14__["setDefaultStateProxy"])(edge); group.add(edge); } } function removeNodeEdge(node, data, group, seriesModel, removeAnimationOpt) { var virtualRoot = data.tree.root; var _a = getSourceNode(virtualRoot, node), source = _a.source, sourceLayout = _a.sourceLayout; var symbolEl = data.getItemGraphicEl(node.dataIndex); if (!symbolEl) { return; } var sourceSymbolEl = data.getItemGraphicEl(source.dataIndex); var sourceEdge = sourceSymbolEl.__edge; // 1. when expand the sub tree, delete the children node should delete the edge of // the source at the same time. because the polyline edge shape is only owned by the source. // 2.when the node is the only children of the source, delete the node should delete the edge of // the source at the same time. the same reason as above. var edge = symbolEl.__edge || (source.isExpand === false || source.children.length === 1 ? sourceEdge : undefined); var edgeShape = seriesModel.get('edgeShape'); var layoutOpt = seriesModel.get('layout'); var orient = seriesModel.get('orient'); var curvature = seriesModel.get(['lineStyle', 'curveness']); if (edge) { if (edgeShape === 'curve') { _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["removeElement"](edge, { shape: getEdgeShape(layoutOpt, orient, curvature, sourceLayout, sourceLayout), style: { opacity: 0 } }, seriesModel, { cb: function () { group.remove(edge); }, removeOpt: removeAnimationOpt }); } else if (edgeShape === 'polyline' && seriesModel.get('layout') === 'orthogonal') { _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["removeElement"](edge, { shape: { parentPoint: [sourceLayout.x, sourceLayout.y], childPoints: [[sourceLayout.x, sourceLayout.y]] }, style: { opacity: 0 } }, seriesModel, { cb: function () { group.remove(edge); }, removeOpt: removeAnimationOpt }); } } } function getSourceNode(virtualRoot, node) { var source = node.parentNode === virtualRoot ? node : node.parentNode || node; var sourceLayout; while (sourceLayout = source.getLayout(), sourceLayout == null) { source = source.parentNode === virtualRoot ? source : source.parentNode || source; } return { source: source, sourceLayout: sourceLayout }; } function removeNode(data, dataIndex, symbolEl, group, seriesModel) { var node = data.tree.getNodeByDataIndex(dataIndex); var virtualRoot = data.tree.root; var sourceLayout = getSourceNode(virtualRoot, node).sourceLayout; // Use same duration and easing with update to have more consistent animation. var removeAnimationOpt = { duration: seriesModel.get('animationDurationUpdate'), easing: seriesModel.get('animationEasingUpdate') }; _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["removeElement"](symbolEl, { x: sourceLayout.x + 1, y: sourceLayout.y + 1 }, seriesModel, { cb: function () { group.remove(symbolEl); data.setItemGraphicEl(dataIndex, null); }, removeOpt: removeAnimationOpt }); symbolEl.fadeOut(null, data.hostModel, { fadeLabel: true, animation: removeAnimationOpt }); // remove edge as parent node node.children.forEach(function (childNode) { removeNodeEdge(childNode, data, group, seriesModel, removeAnimationOpt); }); // remove edge as child node removeNodeEdge(node, data, group, seriesModel, removeAnimationOpt); } function getEdgeShape(layoutOpt, orient, curvature, sourceLayout, targetLayout) { var cpx1; var cpy1; var cpx2; var cpy2; var x1; var x2; var y1; var y2; if (layoutOpt === 'radial') { x1 = sourceLayout.rawX; y1 = sourceLayout.rawY; x2 = targetLayout.rawX; y2 = targetLayout.rawY; var radialCoor1 = Object(_layoutHelper_js__WEBPACK_IMPORTED_MODULE_5__["radialCoordinate"])(x1, y1); var radialCoor2 = Object(_layoutHelper_js__WEBPACK_IMPORTED_MODULE_5__["radialCoordinate"])(x1, y1 + (y2 - y1) * curvature); var radialCoor3 = Object(_layoutHelper_js__WEBPACK_IMPORTED_MODULE_5__["radialCoordinate"])(x2, y2 + (y1 - y2) * curvature); var radialCoor4 = Object(_layoutHelper_js__WEBPACK_IMPORTED_MODULE_5__["radialCoordinate"])(x2, y2); return { x1: radialCoor1.x || 0, y1: radialCoor1.y || 0, x2: radialCoor4.x || 0, y2: radialCoor4.y || 0, cpx1: radialCoor2.x || 0, cpy1: radialCoor2.y || 0, cpx2: radialCoor3.x || 0, cpy2: radialCoor3.y || 0 }; } else { x1 = sourceLayout.x; y1 = sourceLayout.y; x2 = targetLayout.x; y2 = targetLayout.y; if (orient === 'LR' || orient === 'RL') { cpx1 = x1 + (x2 - x1) * curvature; cpy1 = y1; cpx2 = x2 + (x1 - x2) * curvature; cpy2 = y2; } if (orient === 'TB' || orient === 'BT') { cpx1 = x1; cpy1 = y1 + (y2 - y1) * curvature; cpx2 = x2; cpy2 = y2 + (y1 - y2) * curvature; } } return { x1: x1, y1: y1, x2: x2, y2: y2, cpx1: cpx1, cpy1: cpy1, cpx2: cpx2, cpy2: cpy2 }; } /* harmony default export */ __webpack_exports__["default"] = (TreeView); /***/ }), /***/ "./node_modules/echarts/lib/chart/tree/install.js": /*!********************************************************!*\ !*** ./node_modules/echarts/lib/chart/tree/install.js ***! \********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _TreeView_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TreeView.js */ "./node_modules/echarts/lib/chart/tree/TreeView.js"); /* harmony import */ var _TreeSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TreeSeries.js */ "./node_modules/echarts/lib/chart/tree/TreeSeries.js"); /* harmony import */ var _treeLayout_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./treeLayout.js */ "./node_modules/echarts/lib/chart/tree/treeLayout.js"); /* harmony import */ var _treeVisual_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./treeVisual.js */ "./node_modules/echarts/lib/chart/tree/treeVisual.js"); /* harmony import */ var _treeAction_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./treeAction.js */ "./node_modules/echarts/lib/chart/tree/treeAction.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerChartView(_TreeView_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerSeriesModel(_TreeSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerLayout(_treeLayout_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerVisual(_treeVisual_js__WEBPACK_IMPORTED_MODULE_3__["default"]); Object(_treeAction_js__WEBPACK_IMPORTED_MODULE_4__["installTreeAction"])(registers); } /***/ }), /***/ "./node_modules/echarts/lib/chart/tree/layoutHelper.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/chart/tree/layoutHelper.js ***! \*************************************************************/ /*! exports provided: init, firstWalk, secondWalk, separation, radialCoordinate, getViewRect */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "init", function() { return init; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "firstWalk", function() { return firstWalk; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "secondWalk", function() { return secondWalk; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "separation", function() { return separation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "radialCoordinate", function() { return radialCoordinate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getViewRect", function() { return getViewRect; }); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * A third-party license is embedded for some of the code in this file: * The tree layoutHelper implementation was originally copied from * "d3.js"(https://github.com/d3/d3-hierarchy) with * some modifications made for this project. * (see more details in the comment of the specific method below.) * The use of the source code of this file is also subject to the terms * and consitions of the licence of "d3.js" (BSD-3Clause, see * ). */ /** * @file The layout algorithm of node-link tree diagrams. Here we using Reingold-Tilford algorithm to drawing * the tree. */ /** * Initialize all computational message for following algorithm. */ function init(inRoot) { var root = inRoot; root.hierNode = { defaultAncestor: null, ancestor: root, prelim: 0, modifier: 0, change: 0, shift: 0, i: 0, thread: null }; var nodes = [root]; var node; var children; while (node = nodes.pop()) { // jshint ignore:line children = node.children; if (node.isExpand && children.length) { var n = children.length; for (var i = n - 1; i >= 0; i--) { var child = children[i]; child.hierNode = { defaultAncestor: null, ancestor: child, prelim: 0, modifier: 0, change: 0, shift: 0, i: i, thread: null }; nodes.push(child); } } } } /** * The implementation of this function was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. * * Computes a preliminary x coordinate for node. Before that, this function is * applied recursively to the children of node, as well as the function * apportion(). After spacing out the children by calling executeShifts(), the * node is placed to the midpoint of its outermost children. */ function firstWalk(node, separation) { var children = node.isExpand ? node.children : []; var siblings = node.parentNode.children; var subtreeW = node.hierNode.i ? siblings[node.hierNode.i - 1] : null; if (children.length) { executeShifts(node); var midPoint = (children[0].hierNode.prelim + children[children.length - 1].hierNode.prelim) / 2; if (subtreeW) { node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW); node.hierNode.modifier = node.hierNode.prelim - midPoint; } else { node.hierNode.prelim = midPoint; } } else if (subtreeW) { node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW); } node.parentNode.hierNode.defaultAncestor = apportion(node, subtreeW, node.parentNode.hierNode.defaultAncestor || siblings[0], separation); } /** * The implementation of this function was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. * * Computes all real x-coordinates by summing up the modifiers recursively. */ function secondWalk(node) { var nodeX = node.hierNode.prelim + node.parentNode.hierNode.modifier; node.setLayout({ x: nodeX }, true); node.hierNode.modifier += node.parentNode.hierNode.modifier; } function separation(cb) { return arguments.length ? cb : defaultSeparation; } /** * Transform the common coordinate to radial coordinate. */ function radialCoordinate(rad, r) { rad -= Math.PI / 2; return { x: r * Math.cos(rad), y: r * Math.sin(rad) }; } /** * Get the layout position of the whole view. */ function getViewRect(seriesModel, api) { return _util_layout_js__WEBPACK_IMPORTED_MODULE_0__["getLayoutRect"](seriesModel.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() }); } /** * All other shifts, applied to the smaller subtrees between w- and w+, are * performed by this function. * * The implementation of this function was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. */ function executeShifts(node) { var children = node.children; var n = children.length; var shift = 0; var change = 0; while (--n >= 0) { var child = children[n]; child.hierNode.prelim += shift; child.hierNode.modifier += shift; change += child.hierNode.change; shift += child.hierNode.shift + change; } } /** * The implementation of this function was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. * * The core of the algorithm. Here, a new subtree is combined with the * previous subtrees. Threads are used to traverse the inside and outside * contours of the left and right subtree up to the highest common level. * Whenever two nodes of the inside contours conflict, we compute the left * one of the greatest uncommon ancestors using the function nextAncestor() * and call moveSubtree() to shift the subtree and prepare the shifts of * smaller subtrees. Finally, we add a new thread (if necessary). */ function apportion(subtreeV, subtreeW, ancestor, separation) { if (subtreeW) { var nodeOutRight = subtreeV; var nodeInRight = subtreeV; var nodeOutLeft = nodeInRight.parentNode.children[0]; var nodeInLeft = subtreeW; var sumOutRight = nodeOutRight.hierNode.modifier; var sumInRight = nodeInRight.hierNode.modifier; var sumOutLeft = nodeOutLeft.hierNode.modifier; var sumInLeft = nodeInLeft.hierNode.modifier; while (nodeInLeft = nextRight(nodeInLeft), nodeInRight = nextLeft(nodeInRight), nodeInLeft && nodeInRight) { nodeOutRight = nextRight(nodeOutRight); nodeOutLeft = nextLeft(nodeOutLeft); nodeOutRight.hierNode.ancestor = subtreeV; var shift = nodeInLeft.hierNode.prelim + sumInLeft - nodeInRight.hierNode.prelim - sumInRight + separation(nodeInLeft, nodeInRight); if (shift > 0) { moveSubtree(nextAncestor(nodeInLeft, subtreeV, ancestor), subtreeV, shift); sumInRight += shift; sumOutRight += shift; } sumInLeft += nodeInLeft.hierNode.modifier; sumInRight += nodeInRight.hierNode.modifier; sumOutRight += nodeOutRight.hierNode.modifier; sumOutLeft += nodeOutLeft.hierNode.modifier; } if (nodeInLeft && !nextRight(nodeOutRight)) { nodeOutRight.hierNode.thread = nodeInLeft; nodeOutRight.hierNode.modifier += sumInLeft - sumOutRight; } if (nodeInRight && !nextLeft(nodeOutLeft)) { nodeOutLeft.hierNode.thread = nodeInRight; nodeOutLeft.hierNode.modifier += sumInRight - sumOutLeft; ancestor = subtreeV; } } return ancestor; } /** * This function is used to traverse the right contour of a subtree. * It returns the rightmost child of node or the thread of node. The function * returns null if and only if node is on the highest depth of its subtree. */ function nextRight(node) { var children = node.children; return children.length && node.isExpand ? children[children.length - 1] : node.hierNode.thread; } /** * This function is used to traverse the left contour of a subtree (or a subforest). * It returns the leftmost child of node or the thread of node. The function * returns null if and only if node is on the highest depth of its subtree. */ function nextLeft(node) { var children = node.children; return children.length && node.isExpand ? children[0] : node.hierNode.thread; } /** * If nodeInLeft’s ancestor is a sibling of node, returns nodeInLeft’s ancestor. * Otherwise, returns the specified ancestor. */ function nextAncestor(nodeInLeft, node, ancestor) { return nodeInLeft.hierNode.ancestor.parentNode === node.parentNode ? nodeInLeft.hierNode.ancestor : ancestor; } /** * The implementation of this function was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. * * Shifts the current subtree rooted at wr. * This is done by increasing prelim(w+) and modifier(w+) by shift. */ function moveSubtree(wl, wr, shift) { var change = shift / (wr.hierNode.i - wl.hierNode.i); wr.hierNode.change -= change; wr.hierNode.shift += shift; wr.hierNode.modifier += shift; wr.hierNode.prelim += shift; wl.hierNode.change += change; } /** * The implementation of this function was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. */ function defaultSeparation(node1, node2) { return node1.parentNode === node2.parentNode ? 1 : 2; } /***/ }), /***/ "./node_modules/echarts/lib/chart/tree/traversalHelper.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/tree/traversalHelper.js ***! \****************************************************************/ /*! exports provided: eachAfter, eachBefore */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eachAfter", function() { return eachAfter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eachBefore", function() { return eachBefore; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Traverse the tree from bottom to top and do something */ function eachAfter(root, callback, separation) { var nodes = [root]; var next = []; var node; while (node = nodes.pop()) { // jshint ignore:line next.push(node); if (node.isExpand) { var children = node.children; if (children.length) { for (var i = 0; i < children.length; i++) { nodes.push(children[i]); } } } } while (node = next.pop()) { // jshint ignore:line callback(node, separation); } } /** * Traverse the tree from top to bottom and do something */ function eachBefore(root, callback) { var nodes = [root]; var node; while (node = nodes.pop()) { // jshint ignore:line callback(node); if (node.isExpand) { var children = node.children; if (children.length) { for (var i = children.length - 1; i >= 0; i--) { nodes.push(children[i]); } } } } } /***/ }), /***/ "./node_modules/echarts/lib/chart/tree/treeAction.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/tree/treeAction.js ***! \***********************************************************/ /*! exports provided: installTreeAction */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "installTreeAction", function() { return installTreeAction; }); /* harmony import */ var _action_roamHelper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../action/roamHelper.js */ "./node_modules/echarts/lib/action/roamHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function installTreeAction(registers) { registers.registerAction({ type: 'treeExpandAndCollapse', event: 'treeExpandAndCollapse', update: 'update' }, function (payload, ecModel) { ecModel.eachComponent({ mainType: 'series', subType: 'tree', query: payload }, function (seriesModel) { var dataIndex = payload.dataIndex; var tree = seriesModel.getData().tree; var node = tree.getNodeByDataIndex(dataIndex); node.isExpand = !node.isExpand; }); }); registers.registerAction({ type: 'treeRoam', event: 'treeRoam', // Here we set 'none' instead of 'update', because roam action // just need to update the transform matrix without having to recalculate // the layout. So don't need to go through the whole update process, such // as 'dataPrcocess', 'coordSystemUpdate', 'layout' and so on. update: 'none' }, function (payload, ecModel, api) { ecModel.eachComponent({ mainType: 'series', subType: 'tree', query: payload }, function (seriesModel) { var coordSys = seriesModel.coordinateSystem; var res = Object(_action_roamHelper_js__WEBPACK_IMPORTED_MODULE_0__["updateCenterAndZoom"])(coordSys, payload, undefined, api); seriesModel.setCenter && seriesModel.setCenter(res.center); seriesModel.setZoom && seriesModel.setZoom(res.zoom); }); }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/tree/treeLayout.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/tree/treeLayout.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return treeLayout; }); /* harmony import */ var _traversalHelper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./traversalHelper.js */ "./node_modules/echarts/lib/chart/tree/traversalHelper.js"); /* harmony import */ var _layoutHelper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./layoutHelper.js */ "./node_modules/echarts/lib/chart/tree/layoutHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function treeLayout(ecModel, api) { ecModel.eachSeriesByType('tree', function (seriesModel) { commonLayout(seriesModel, api); }); } function commonLayout(seriesModel, api) { var layoutInfo = Object(_layoutHelper_js__WEBPACK_IMPORTED_MODULE_1__["getViewRect"])(seriesModel, api); seriesModel.layoutInfo = layoutInfo; var layout = seriesModel.get('layout'); var width = 0; var height = 0; var separation = null; if (layout === 'radial') { width = 2 * Math.PI; height = Math.min(layoutInfo.height, layoutInfo.width) / 2; separation = Object(_layoutHelper_js__WEBPACK_IMPORTED_MODULE_1__["separation"])(function (node1, node2) { return (node1.parentNode === node2.parentNode ? 1 : 2) / node1.depth; }); } else { width = layoutInfo.width; height = layoutInfo.height; separation = Object(_layoutHelper_js__WEBPACK_IMPORTED_MODULE_1__["separation"])(); } var virtualRoot = seriesModel.getData().tree.root; var realRoot = virtualRoot.children[0]; if (realRoot) { Object(_layoutHelper_js__WEBPACK_IMPORTED_MODULE_1__["init"])(virtualRoot); Object(_traversalHelper_js__WEBPACK_IMPORTED_MODULE_0__["eachAfter"])(realRoot, _layoutHelper_js__WEBPACK_IMPORTED_MODULE_1__["firstWalk"], separation); virtualRoot.hierNode.modifier = -realRoot.hierNode.prelim; Object(_traversalHelper_js__WEBPACK_IMPORTED_MODULE_0__["eachBefore"])(realRoot, _layoutHelper_js__WEBPACK_IMPORTED_MODULE_1__["secondWalk"]); var left_1 = realRoot; var right_1 = realRoot; var bottom_1 = realRoot; Object(_traversalHelper_js__WEBPACK_IMPORTED_MODULE_0__["eachBefore"])(realRoot, function (node) { var x = node.getLayout().x; if (x < left_1.getLayout().x) { left_1 = node; } if (x > right_1.getLayout().x) { right_1 = node; } if (node.depth > bottom_1.depth) { bottom_1 = node; } }); var delta = left_1 === right_1 ? 1 : separation(left_1, right_1) / 2; var tx_1 = delta - left_1.getLayout().x; var kx_1 = 0; var ky_1 = 0; var coorX_1 = 0; var coorY_1 = 0; if (layout === 'radial') { kx_1 = width / (right_1.getLayout().x + delta + tx_1); // here we use (node.depth - 1), bucause the real root's depth is 1 ky_1 = height / (bottom_1.depth - 1 || 1); Object(_traversalHelper_js__WEBPACK_IMPORTED_MODULE_0__["eachBefore"])(realRoot, function (node) { coorX_1 = (node.getLayout().x + tx_1) * kx_1; coorY_1 = (node.depth - 1) * ky_1; var finalCoor = Object(_layoutHelper_js__WEBPACK_IMPORTED_MODULE_1__["radialCoordinate"])(coorX_1, coorY_1); node.setLayout({ x: finalCoor.x, y: finalCoor.y, rawX: coorX_1, rawY: coorY_1 }, true); }); } else { var orient_1 = seriesModel.getOrient(); if (orient_1 === 'RL' || orient_1 === 'LR') { ky_1 = height / (right_1.getLayout().x + delta + tx_1); kx_1 = width / (bottom_1.depth - 1 || 1); Object(_traversalHelper_js__WEBPACK_IMPORTED_MODULE_0__["eachBefore"])(realRoot, function (node) { coorY_1 = (node.getLayout().x + tx_1) * ky_1; coorX_1 = orient_1 === 'LR' ? (node.depth - 1) * kx_1 : width - (node.depth - 1) * kx_1; node.setLayout({ x: coorX_1, y: coorY_1 }, true); }); } else if (orient_1 === 'TB' || orient_1 === 'BT') { kx_1 = width / (right_1.getLayout().x + delta + tx_1); ky_1 = height / (bottom_1.depth - 1 || 1); Object(_traversalHelper_js__WEBPACK_IMPORTED_MODULE_0__["eachBefore"])(realRoot, function (node) { coorX_1 = (node.getLayout().x + tx_1) * kx_1; coorY_1 = orient_1 === 'TB' ? (node.depth - 1) * ky_1 : height - (node.depth - 1) * ky_1; node.setLayout({ x: coorX_1, y: coorY_1 }, true); }); } } } } /***/ }), /***/ "./node_modules/echarts/lib/chart/tree/treeVisual.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/tree/treeVisual.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return treeVisual; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function treeVisual(ecModel) { ecModel.eachSeriesByType('tree', function (seriesModel) { var data = seriesModel.getData(); var tree = data.tree; tree.eachNode(function (node) { var model = node.getModel(); // TODO Optimize var style = model.getModel('itemStyle').getItemStyle(); var existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style'); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(existsStyle, style); }); }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/treemap/Breadcrumb.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/chart/treemap/Breadcrumb.js ***! \**************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helper/treeHelper.js */ "./node_modules/echarts/lib/chart/helper/treeHelper.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TEXT_PADDING = 8; var ITEM_GAP = 8; var ARRAY_LENGTH = 5; var Breadcrumb = /** @class */function () { function Breadcrumb(containerGroup) { this.group = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Group"](); containerGroup.add(this.group); } Breadcrumb.prototype.render = function (seriesModel, api, targetNode, onSelect) { var model = seriesModel.getModel('breadcrumb'); var thisGroup = this.group; thisGroup.removeAll(); if (!model.get('show') || !targetNode) { return; } var normalStyleModel = model.getModel('itemStyle'); var emphasisModel = model.getModel('emphasis'); var textStyleModel = normalStyleModel.getModel('textStyle'); var emphasisTextStyleModel = emphasisModel.getModel(['itemStyle', 'textStyle']); var layoutParam = { pos: { left: model.get('left'), right: model.get('right'), top: model.get('top'), bottom: model.get('bottom') }, box: { width: api.getWidth(), height: api.getHeight() }, emptyItemWidth: model.get('emptyItemWidth'), totalWidth: 0, renderList: [] }; this._prepare(targetNode, layoutParam, textStyleModel); this._renderContent(seriesModel, layoutParam, normalStyleModel, emphasisModel, textStyleModel, emphasisTextStyleModel, onSelect); _util_layout_js__WEBPACK_IMPORTED_MODULE_2__["positionElement"](thisGroup, layoutParam.pos, layoutParam.box); }; /** * Prepare render list and total width * @private */ Breadcrumb.prototype._prepare = function (targetNode, layoutParam, textStyleModel) { for (var node = targetNode; node; node = node.parentNode) { var text = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_5__["convertOptionIdName"])(node.getModel().get('name'), ''); var textRect = textStyleModel.getTextRect(text); var itemWidth = Math.max(textRect.width + TEXT_PADDING * 2, layoutParam.emptyItemWidth); layoutParam.totalWidth += itemWidth + ITEM_GAP; layoutParam.renderList.push({ node: node, text: text, width: itemWidth }); } }; /** * @private */ Breadcrumb.prototype._renderContent = function (seriesModel, layoutParam, normalStyleModel, emphasisModel, textStyleModel, emphasisTextStyleModel, onSelect) { // Start rendering. var lastX = 0; var emptyItemWidth = layoutParam.emptyItemWidth; var height = seriesModel.get(['breadcrumb', 'height']); var availableSize = _util_layout_js__WEBPACK_IMPORTED_MODULE_2__["getAvailableSize"](layoutParam.pos, layoutParam.box); var totalWidth = layoutParam.totalWidth; var renderList = layoutParam.renderList; var emphasisItemStyle = emphasisModel.getModel('itemStyle').getItemStyle(); for (var i = renderList.length - 1; i >= 0; i--) { var item = renderList[i]; var itemNode = item.node; var itemWidth = item.width; var text = item.text; // Hdie text and shorten width if necessary. if (totalWidth > availableSize.width) { totalWidth -= itemWidth - emptyItemWidth; itemWidth = emptyItemWidth; text = null; } var el = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Polygon"]({ shape: { points: makeItemPoints(lastX, 0, itemWidth, height, i === renderList.length - 1, i === 0) }, style: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["defaults"])(normalStyleModel.getItemStyle(), { lineJoin: 'bevel' }), textContent: new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Text"]({ style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["createTextStyle"])(textStyleModel, { text: text }) }), textConfig: { position: 'inside' }, z2: _util_states_js__WEBPACK_IMPORTED_MODULE_6__["Z2_EMPHASIS_LIFT"] * 1e4, onclick: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["curry"])(onSelect, itemNode) }); el.disableLabelAnimation = true; el.getTextContent().ensureState('emphasis').style = Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["createTextStyle"])(emphasisTextStyleModel, { text: text }); el.ensureState('emphasis').style = emphasisItemStyle; Object(_util_states_js__WEBPACK_IMPORTED_MODULE_6__["toggleHoverEmphasis"])(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'), emphasisModel.get('disabled')); this.group.add(el); packEventData(el, seriesModel, itemNode); lastX += itemWidth + ITEM_GAP; } }; Breadcrumb.prototype.remove = function () { this.group.removeAll(); }; return Breadcrumb; }(); function makeItemPoints(x, y, itemWidth, itemHeight, head, tail) { var points = [[head ? x : x - ARRAY_LENGTH, y], [x + itemWidth, y], [x + itemWidth, y + itemHeight], [head ? x : x - ARRAY_LENGTH, y + itemHeight]]; !tail && points.splice(2, 0, [x + itemWidth + ARRAY_LENGTH, y + itemHeight / 2]); !head && points.push([x, y + itemHeight / 2]); return points; } // Package custom mouse event. function packEventData(el, seriesModel, itemNode) { Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_1__["getECData"])(el).eventData = { componentType: 'series', componentSubType: 'treemap', componentIndex: seriesModel.componentIndex, seriesIndex: seriesModel.seriesIndex, seriesName: seriesModel.name, seriesType: 'treemap', selfType: 'breadcrumb', nodeData: { dataIndex: itemNode && itemNode.dataIndex, name: itemNode && itemNode.name }, treePathInfo: itemNode && Object(_helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_3__["wrapTreePathInfo"])(itemNode, seriesModel) }; } /* harmony default export */ __webpack_exports__["default"] = (Breadcrumb); /***/ }), /***/ "./node_modules/echarts/lib/chart/treemap/TreemapSeries.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/treemap/TreemapSeries.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _data_Tree_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../data/Tree.js */ "./node_modules/echarts/lib/data/Tree.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helper/treeHelper.js */ "./node_modules/echarts/lib/chart/helper/treeHelper.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../component/tooltip/tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* harmony import */ var _helper_enableAriaDecalForTree_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helper/enableAriaDecalForTree.js */ "./node_modules/echarts/lib/chart/helper/enableAriaDecalForTree.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TreemapSeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreemapSeriesModel, _super); function TreemapSeriesModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = TreemapSeriesModel.type; _this.preventUsingHoverLayer = true; return _this; } /** * @override */ TreemapSeriesModel.prototype.getInitialData = function (option, ecModel) { // Create a virtual root. var root = { name: option.name, children: option.data }; completeTreeValue(root); var levels = option.levels || []; // Used in "visual priority" in `treemapVisual.js`. // This way is a little tricky, must satisfy the precondition: // 1. There is no `treeNode.getModel('itemStyle.xxx')` used. // 2. The `Model.prototype.getModel()` will not use any clone-like way. var designatedVisualItemStyle = this.designatedVisualItemStyle = {}; var designatedVisualModel = new _model_Model_js__WEBPACK_IMPORTED_MODULE_4__["default"]({ itemStyle: designatedVisualItemStyle }, this, ecModel); levels = option.levels = setDefault(levels, ecModel); var levelModels = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](levels || [], function (levelDefine) { return new _model_Model_js__WEBPACK_IMPORTED_MODULE_4__["default"](levelDefine, designatedVisualModel, ecModel); }, this); // Make sure always a new tree is created when setOption, // in TreemapView, we check whether oldTree === newTree // to choose mappings approach among old shapes and new shapes. var tree = _data_Tree_js__WEBPACK_IMPORTED_MODULE_3__["default"].createTree(root, this, beforeLink); function beforeLink(nodeData) { nodeData.wrapMethod('getItemModel', function (model, idx) { var node = tree.getNodeByDataIndex(idx); var levelModel = node ? levelModels[node.depth] : null; // If no levelModel, we also need `designatedVisualModel`. model.parentModel = levelModel || designatedVisualModel; return model; }); } return tree.data; }; TreemapSeriesModel.prototype.optionUpdated = function () { this.resetViewRoot(); }; /** * @override * @param {number} dataIndex * @param {boolean} [mutipleSeries=false] */ TreemapSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) { var data = this.getData(); var value = this.getRawValue(dataIndex); var name = data.getName(dataIndex); return Object(_component_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_7__["createTooltipMarkup"])('nameValue', { name: name, value: value }); }; /** * Add tree path to tooltip param * * @override * @param {number} dataIndex * @return {Object} */ TreemapSeriesModel.prototype.getDataParams = function (dataIndex) { var params = _super.prototype.getDataParams.apply(this, arguments); var node = this.getData().tree.getNodeByDataIndex(dataIndex); params.treeAncestors = Object(_helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_5__["wrapTreePathInfo"])(node, this); // compatitable the previous code. params.treePathInfo = params.treeAncestors; return params; }; /** * @public * @param {Object} layoutInfo { * x: containerGroup x * y: containerGroup y * width: containerGroup width * height: containerGroup height * } */ TreemapSeriesModel.prototype.setLayoutInfo = function (layoutInfo) { /** * @readOnly * @type {Object} */ this.layoutInfo = this.layoutInfo || {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"](this.layoutInfo, layoutInfo); }; /** * @param {string} id * @return {number} index */ TreemapSeriesModel.prototype.mapIdToIndex = function (id) { // A feature is implemented: // index is monotone increasing with the sequence of // input id at the first time. // This feature can make sure that each data item and its // mapped color have the same index between data list and // color list at the beginning, which is useful for user // to adjust data-color mapping. /** * @private * @type {Object} */ var idIndexMap = this._idIndexMap; if (!idIndexMap) { idIndexMap = this._idIndexMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"](); /** * @private * @type {number} */ this._idIndexMapCount = 0; } var index = idIndexMap.get(id); if (index == null) { idIndexMap.set(id, index = this._idIndexMapCount++); } return index; }; TreemapSeriesModel.prototype.getViewRoot = function () { return this._viewRoot; }; TreemapSeriesModel.prototype.resetViewRoot = function (viewRoot) { viewRoot ? this._viewRoot = viewRoot : viewRoot = this._viewRoot; var root = this.getRawData().tree.root; if (!viewRoot || viewRoot !== root && !root.contains(viewRoot)) { this._viewRoot = root; } }; TreemapSeriesModel.prototype.enableAriaDecal = function () { Object(_helper_enableAriaDecalForTree_js__WEBPACK_IMPORTED_MODULE_8__["default"])(this); }; TreemapSeriesModel.type = 'series.treemap'; TreemapSeriesModel.layoutMode = 'box'; TreemapSeriesModel.defaultOption = { // Disable progressive rendering progressive: 0, // size: ['80%', '80%'], // deprecated, compatible with ec2. left: 'center', top: 'middle', width: '80%', height: '80%', sort: true, clipWindow: 'origin', squareRatio: 0.5 * (1 + Math.sqrt(5)), leafDepth: null, drillDownIcon: '▶', // to align specialized icon. ▷▶❒❐▼✚ zoomToNodeRatio: 0.32 * 0.32, scaleLimit: null, roam: true, nodeClick: 'zoomToNode', animation: true, animationDurationUpdate: 900, animationEasing: 'quinticInOut', breadcrumb: { show: true, height: 22, left: 'center', top: 'bottom', // right // bottom emptyItemWidth: 25, itemStyle: { color: 'rgba(0,0,0,0.7)', textStyle: { color: '#fff' } }, emphasis: { itemStyle: { color: 'rgba(0,0,0,0.9)' // '#5793f3', } } }, label: { show: true, // Do not use textDistance, for ellipsis rect just the same as treemap node rect. distance: 0, padding: 5, position: 'inside', // formatter: null, color: '#fff', overflow: 'truncate' // align // verticalAlign }, upperLabel: { show: false, position: [0, '50%'], height: 20, // formatter: null, // color: '#fff', overflow: 'truncate', // align: null, verticalAlign: 'middle' }, itemStyle: { color: null, colorAlpha: null, colorSaturation: null, borderWidth: 0, gapWidth: 0, borderColor: '#fff', borderColorSaturation: null // If specified, borderColor will be ineffective, and the // border color is evaluated by color of current node and // borderColorSaturation. }, emphasis: { upperLabel: { show: true, position: [0, '50%'], overflow: 'truncate', verticalAlign: 'middle' } }, visualDimension: 0, visualMin: null, visualMax: null, color: [], // level[n].color (if necessary). // + Specify color list of each level. level[0].color would be global // color list if not specified. (see method `setDefault`). // + But set as a empty array to forbid fetch color from global palette // when using nodeModel.get('color'), otherwise nodes on deep level // will always has color palette set and are not able to inherit color // from parent node. // + TreemapSeries.color can not be set as 'none', otherwise effect // legend color fetching (see seriesColor.js). colorAlpha: null, colorSaturation: null, colorMappingBy: 'index', visibleMin: 10, // be rendered. Only works when sort is 'asc' or 'desc'. childrenVisibleMin: null, // grandchildren will not show. // Why grandchildren? If not grandchildren but children, // some siblings show children and some not, // the appearance may be mess and not consistent, levels: [] // Each item: { // visibleMin, itemStyle, visualDimension, label // } }; return TreemapSeriesModel; }(_model_Series_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /** * @param {Object} dataNode */ function completeTreeValue(dataNode) { // Postorder travel tree. // If value of none-leaf node is not set, // calculate it by suming up the value of all children. var sum = 0; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](dataNode.children, function (child) { completeTreeValue(child); var childValue = child.value; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](childValue) && (childValue = childValue[0]); sum += childValue; }); var thisValue = dataNode.value; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](thisValue)) { thisValue = thisValue[0]; } if (thisValue == null || isNaN(thisValue)) { thisValue = sum; } // Value should not less than 0. if (thisValue < 0) { thisValue = 0; } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](dataNode.value) ? dataNode.value[0] = thisValue : dataNode.value = thisValue; } /** * set default to level configuration */ function setDefault(levels, ecModel) { var globalColorList = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_6__["normalizeToArray"])(ecModel.get('color')); var globalDecalList = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_6__["normalizeToArray"])(ecModel.get(['aria', 'decal', 'decals'])); if (!globalColorList) { return; } levels = levels || []; var hasColorDefine; var hasDecalDefine; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](levels, function (levelDefine) { var model = new _model_Model_js__WEBPACK_IMPORTED_MODULE_4__["default"](levelDefine); var modelColor = model.get('color'); var modelDecal = model.get('decal'); if (model.get(['itemStyle', 'color']) || modelColor && modelColor !== 'none') { hasColorDefine = true; } if (model.get(['itemStyle', 'decal']) || modelDecal && modelDecal !== 'none') { hasDecalDefine = true; } }); var level0 = levels[0] || (levels[0] = {}); if (!hasColorDefine) { level0.color = globalColorList.slice(); } if (!hasDecalDefine && globalDecalList) { level0.decal = globalDecalList.slice(); } return levels; } /* harmony default export */ __webpack_exports__["default"] = (TreemapSeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/chart/treemap/TreemapView.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/chart/treemap/TreemapView.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../data/DataDiffer.js */ "./node_modules/echarts/lib/data/DataDiffer.js"); /* harmony import */ var _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helper/treeHelper.js */ "./node_modules/echarts/lib/chart/helper/treeHelper.js"); /* harmony import */ var _Breadcrumb_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Breadcrumb.js */ "./node_modules/echarts/lib/chart/treemap/Breadcrumb.js"); /* harmony import */ var _component_helper_RoamController_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../component/helper/RoamController.js */ "./node_modules/echarts/lib/component/helper/RoamController.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! zrender/lib/core/matrix.js */ "./node_modules/zrender/lib/core/matrix.js"); /* harmony import */ var _util_animation_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../util/animation.js */ "./node_modules/echarts/lib/util/animation.js"); /* harmony import */ var _model_mixin_makeStyleMapper_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../model/mixin/makeStyleMapper.js */ "./node_modules/echarts/lib/model/mixin/makeStyleMapper.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var zrender_lib_graphic_Displayable_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! zrender/lib/graphic/Displayable.js */ "./node_modules/zrender/lib/graphic/Displayable.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var Group = _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"]; var Rect = _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Rect"]; var DRAG_THRESHOLD = 3; var PATH_LABEL_NOAMAL = 'label'; var PATH_UPPERLABEL_NORMAL = 'upperLabel'; // Should larger than emphasis states lift z var Z2_BASE = _util_states_js__WEBPACK_IMPORTED_MODULE_4__["Z2_EMPHASIS_LIFT"] * 10; // Should bigger than every z2. var Z2_BG = _util_states_js__WEBPACK_IMPORTED_MODULE_4__["Z2_EMPHASIS_LIFT"] * 2; var Z2_CONTENT = _util_states_js__WEBPACK_IMPORTED_MODULE_4__["Z2_EMPHASIS_LIFT"] * 3; var getStateItemStyle = Object(_model_mixin_makeStyleMapper_js__WEBPACK_IMPORTED_MODULE_12__["default"])([['fill', 'color'], // `borderColor` and `borderWidth` has been occupied, // so use `stroke` to indicate the stroke of the rect. ['stroke', 'strokeColor'], ['lineWidth', 'strokeWidth'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`. // So do not transfer decal directly. ]); var getItemStyleNormal = function (model) { // Normal style props should include emphasis style props. var itemStyle = getStateItemStyle(model); // Clear styles set by emphasis. itemStyle.stroke = itemStyle.fill = itemStyle.lineWidth = null; return itemStyle; }; var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_15__["makeInner"])(); var TreemapView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TreemapView, _super); function TreemapView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = TreemapView.type; _this._state = 'ready'; _this._storage = createStorage(); return _this; } /** * @override */ TreemapView.prototype.render = function (seriesModel, ecModel, api, payload) { var models = ecModel.findComponents({ mainType: 'series', subType: 'treemap', query: payload }); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["indexOf"])(models, seriesModel) < 0) { return; } this.seriesModel = seriesModel; this.api = api; this.ecModel = ecModel; var types = ['treemapZoomToNode', 'treemapRootToNode']; var targetInfo = _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_6__["retrieveTargetInfo"](payload, types, seriesModel); var payloadType = payload && payload.type; var layoutInfo = seriesModel.layoutInfo; var isInit = !this._oldTree; var thisStorage = this._storage; // Mark new root when action is treemapRootToNode. var reRoot = payloadType === 'treemapRootToNode' && targetInfo && thisStorage ? { rootNodeGroup: thisStorage.nodeGroup[targetInfo.node.getRawIndex()], direction: payload.direction } : null; var containerGroup = this._giveContainerGroup(layoutInfo); var hasAnimation = seriesModel.get('animation'); var renderResult = this._doRender(containerGroup, seriesModel, reRoot); hasAnimation && !isInit && (!payloadType || payloadType === 'treemapZoomToNode' || payloadType === 'treemapRootToNode') ? this._doAnimation(containerGroup, renderResult, seriesModel, reRoot) : renderResult.renderFinally(); this._resetController(api); this._renderBreadcrumb(seriesModel, api, targetInfo); }; TreemapView.prototype._giveContainerGroup = function (layoutInfo) { var containerGroup = this._containerGroup; if (!containerGroup) { // FIXME // 加一层containerGroup是为了clip,但是现在clip功能并没有实现。 containerGroup = this._containerGroup = new Group(); this._initEvents(containerGroup); this.group.add(containerGroup); } containerGroup.x = layoutInfo.x; containerGroup.y = layoutInfo.y; return containerGroup; }; TreemapView.prototype._doRender = function (containerGroup, seriesModel, reRoot) { var thisTree = seriesModel.getData().tree; var oldTree = this._oldTree; // Clear last shape records. var lastsForAnimation = createStorage(); var thisStorage = createStorage(); var oldStorage = this._storage; var willInvisibleEls = []; function doRenderNode(thisNode, oldNode, parentGroup, depth) { return renderNode(seriesModel, thisStorage, oldStorage, reRoot, lastsForAnimation, willInvisibleEls, thisNode, oldNode, parentGroup, depth); } // Notice: When thisTree and oldTree are the same tree (see list.cloneShallow), // the oldTree is actually losted, so we cannot find all of the old graphic // elements from tree. So we use this strategy: make element storage, move // from old storage to new storage, clear old storage. dualTravel(thisTree.root ? [thisTree.root] : [], oldTree && oldTree.root ? [oldTree.root] : [], containerGroup, thisTree === oldTree || !oldTree, 0); // Process all removing. var willDeleteEls = clearStorage(oldStorage); this._oldTree = thisTree; this._storage = thisStorage; if (this._controllerHost) { var _oldRootLayout = this.seriesModel.layoutInfo; var rootLayout = thisTree.root.getLayout(); if (rootLayout.width === _oldRootLayout.width && rootLayout.height === _oldRootLayout.height) { this._controllerHost.zoom = 1; } } return { lastsForAnimation: lastsForAnimation, willDeleteEls: willDeleteEls, renderFinally: renderFinally }; function dualTravel(thisViewChildren, oldViewChildren, parentGroup, sameTree, depth) { // When 'render' is triggered by action, // 'this' and 'old' may be the same tree, // we use rawIndex in that case. if (sameTree) { oldViewChildren = thisViewChildren; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(thisViewChildren, function (child, index) { !child.isRemoved() && processNode(index, index); }); } // Diff hierarchically (diff only in each subtree, but not whole). // because, consistency of view is important. else { new _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_5__["default"](oldViewChildren, thisViewChildren, getKey, getKey).add(processNode).update(processNode).remove(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"])(processNode, null)).execute(); } function getKey(node) { // Identify by name or raw index. return node.getId(); } function processNode(newIndex, oldIndex) { var thisNode = newIndex != null ? thisViewChildren[newIndex] : null; var oldNode = oldIndex != null ? oldViewChildren[oldIndex] : null; var group = doRenderNode(thisNode, oldNode, parentGroup, depth); group && dualTravel(thisNode && thisNode.viewChildren || [], oldNode && oldNode.viewChildren || [], group, sameTree, depth + 1); } } function clearStorage(storage) { var willDeleteEls = createStorage(); storage && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(storage, function (store, storageName) { var delEls = willDeleteEls[storageName]; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(store, function (el) { el && (delEls.push(el), inner(el).willDelete = true); }); }); return willDeleteEls; } function renderFinally() { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(willDeleteEls, function (els) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(els, function (el) { el.parent && el.parent.remove(el); }); }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(willInvisibleEls, function (el) { el.invisible = true; // Setting invisible is for optimizing, so no need to set dirty, // just mark as invisible. el.dirty(); }); } }; TreemapView.prototype._doAnimation = function (containerGroup, renderResult, seriesModel, reRoot) { var durationOption = seriesModel.get('animationDurationUpdate'); var easingOption = seriesModel.get('animationEasing'); // TODO: do not support function until necessary. var duration = (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"])(durationOption) ? 0 : durationOption) || 0; var easing = (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"])(easingOption) ? null : easingOption) || 'cubicOut'; var animationWrap = _util_animation_js__WEBPACK_IMPORTED_MODULE_11__["createWrap"](); // Make delete animations. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(renderResult.willDeleteEls, function (store, storageName) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(store, function (el, rawIndex) { if (el.invisible) { return; } var parent = el.parent; // Always has parent, and parent is nodeGroup. var target; var innerStore = inner(parent); if (reRoot && reRoot.direction === 'drillDown') { target = parent === reRoot.rootNodeGroup // This is the content element of view root. // Only `content` will enter this branch, because // `background` and `nodeGroup` will not be deleted. ? { shape: { x: 0, y: 0, width: innerStore.nodeWidth, height: innerStore.nodeHeight }, style: { opacity: 0 } } // Others. : { style: { opacity: 0 } }; } else { var targetX = 0; var targetY = 0; if (!innerStore.willDelete) { // Let node animate to right-bottom corner, cooperating with fadeout, // which is appropriate for user understanding. // Divided by 2 for reRoot rolling up effect. targetX = innerStore.nodeWidth / 2; targetY = innerStore.nodeHeight / 2; } target = storageName === 'nodeGroup' ? { x: targetX, y: targetY, style: { opacity: 0 } } : { shape: { x: targetX, y: targetY, width: 0, height: 0 }, style: { opacity: 0 } }; } // TODO: do not support delay until necessary. target && animationWrap.add(el, target, duration, 0, easing); }); }); // Make other animations Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(this._storage, function (store, storageName) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(store, function (el, rawIndex) { var last = renderResult.lastsForAnimation[storageName][rawIndex]; var target = {}; if (!last) { return; } if (el instanceof _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"]) { if (last.oldX != null) { target.x = el.x; target.y = el.y; el.x = last.oldX; el.y = last.oldY; } } else { if (last.oldShape) { target.shape = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])({}, el.shape); el.setShape(last.oldShape); } if (last.fadein) { el.setStyle('opacity', 0); target.style = { opacity: 1 }; } // When animation is stopped for succedent animation starting, // el.style.opacity might not be 1 else if (el.style.opacity !== 1) { target.style = { opacity: 1 }; } } animationWrap.add(el, target, duration, 0, easing); }); }, this); this._state = 'animating'; animationWrap.finished(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(function () { this._state = 'ready'; renderResult.renderFinally(); }, this)).start(); }; TreemapView.prototype._resetController = function (api) { var controller = this._controller; var controllerHost = this._controllerHost; if (!controllerHost) { this._controllerHost = { target: this.group }; controllerHost = this._controllerHost; } // Init controller. if (!controller) { controller = this._controller = new _component_helper_RoamController_js__WEBPACK_IMPORTED_MODULE_8__["default"](api.getZr()); controller.enable(this.seriesModel.get('roam')); controllerHost.zoomLimit = this.seriesModel.get('scaleLimit'); controllerHost.zoom = this.seriesModel.get('zoom'); controller.on('pan', Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._onPan, this)); controller.on('zoom', Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._onZoom, this)); } var rect = new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_9__["default"](0, 0, api.getWidth(), api.getHeight()); controller.setPointerChecker(function (e, x, y) { return rect.contain(x, y); }); }; TreemapView.prototype._clearController = function () { var controller = this._controller; this._controllerHost = null; if (controller) { controller.dispose(); controller = null; } }; TreemapView.prototype._onPan = function (e) { if (this._state !== 'animating' && (Math.abs(e.dx) > DRAG_THRESHOLD || Math.abs(e.dy) > DRAG_THRESHOLD)) { // These param must not be cached. var root = this.seriesModel.getData().tree.root; if (!root) { return; } var rootLayout = root.getLayout(); if (!rootLayout) { return; } this.api.dispatchAction({ type: 'treemapMove', from: this.uid, seriesId: this.seriesModel.id, rootRect: { x: rootLayout.x + e.dx, y: rootLayout.y + e.dy, width: rootLayout.width, height: rootLayout.height } }); } }; TreemapView.prototype._onZoom = function (e) { var mouseX = e.originX; var mouseY = e.originY; var zoomDelta = e.scale; if (this._state !== 'animating') { // These param must not be cached. var root = this.seriesModel.getData().tree.root; if (!root) { return; } var rootLayout = root.getLayout(); if (!rootLayout) { return; } var rect = new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_9__["default"](rootLayout.x, rootLayout.y, rootLayout.width, rootLayout.height); // scaleLimit var zoomLimit = null; var _controllerHost = this._controllerHost; zoomLimit = _controllerHost.zoomLimit; var newZoom = _controllerHost.zoom = _controllerHost.zoom || 1; newZoom *= zoomDelta; if (zoomLimit) { var zoomMin = zoomLimit.min || 0; var zoomMax = zoomLimit.max || Infinity; newZoom = Math.max(Math.min(zoomMax, newZoom), zoomMin); } var zoomScale = newZoom / _controllerHost.zoom; _controllerHost.zoom = newZoom; var layoutInfo = this.seriesModel.layoutInfo; // Transform mouse coord from global to containerGroup. mouseX -= layoutInfo.x; mouseY -= layoutInfo.y; // Scale root bounding rect. var m = zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_10__["create"](); zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_10__["translate"](m, m, [-mouseX, -mouseY]); zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_10__["scale"](m, m, [zoomScale, zoomScale]); zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_10__["translate"](m, m, [mouseX, mouseY]); rect.applyTransform(m); this.api.dispatchAction({ type: 'treemapRender', from: this.uid, seriesId: this.seriesModel.id, rootRect: { x: rect.x, y: rect.y, width: rect.width, height: rect.height } }); } }; TreemapView.prototype._initEvents = function (containerGroup) { var _this = this; containerGroup.on('click', function (e) { if (_this._state !== 'ready') { return; } var nodeClick = _this.seriesModel.get('nodeClick', true); if (!nodeClick) { return; } var targetInfo = _this.findTarget(e.offsetX, e.offsetY); if (!targetInfo) { return; } var node = targetInfo.node; if (node.getLayout().isLeafRoot) { _this._rootToNode(targetInfo); } else { if (nodeClick === 'zoomToNode') { _this._zoomToNode(targetInfo); } else if (nodeClick === 'link') { var itemModel = node.hostTree.data.getItemModel(node.dataIndex); var link = itemModel.get('link', true); var linkTarget = itemModel.get('target', true) || 'blank'; link && Object(_util_format_js__WEBPACK_IMPORTED_MODULE_16__["windowOpen"])(link, linkTarget); } } }, this); }; TreemapView.prototype._renderBreadcrumb = function (seriesModel, api, targetInfo) { var _this = this; if (!targetInfo) { targetInfo = seriesModel.get('leafDepth', true) != null ? { node: seriesModel.getViewRoot() } // FIXME // better way? // Find breadcrumb tail on center of containerGroup. : this.findTarget(api.getWidth() / 2, api.getHeight() / 2); if (!targetInfo) { targetInfo = { node: seriesModel.getData().tree.root }; } } (this._breadcrumb || (this._breadcrumb = new _Breadcrumb_js__WEBPACK_IMPORTED_MODULE_7__["default"](this.group))).render(seriesModel, api, targetInfo.node, function (node) { if (_this._state !== 'animating') { _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_6__["aboveViewRoot"](seriesModel.getViewRoot(), node) ? _this._rootToNode({ node: node }) : _this._zoomToNode({ node: node }); } }); }; /** * @override */ TreemapView.prototype.remove = function () { this._clearController(); this._containerGroup && this._containerGroup.removeAll(); this._storage = createStorage(); this._state = 'ready'; this._breadcrumb && this._breadcrumb.remove(); }; TreemapView.prototype.dispose = function () { this._clearController(); }; TreemapView.prototype._zoomToNode = function (targetInfo) { this.api.dispatchAction({ type: 'treemapZoomToNode', from: this.uid, seriesId: this.seriesModel.id, targetNode: targetInfo.node }); }; TreemapView.prototype._rootToNode = function (targetInfo) { this.api.dispatchAction({ type: 'treemapRootToNode', from: this.uid, seriesId: this.seriesModel.id, targetNode: targetInfo.node }); }; /** * @public * @param {number} x Global coord x. * @param {number} y Global coord y. * @return {Object} info If not found, return undefined; * @return {number} info.node Target node. * @return {number} info.offsetX x refer to target node. * @return {number} info.offsetY y refer to target node. */ TreemapView.prototype.findTarget = function (x, y) { var targetInfo; var viewRoot = this.seriesModel.getViewRoot(); viewRoot.eachNode({ attr: 'viewChildren', order: 'preorder' }, function (node) { var bgEl = this._storage.background[node.getRawIndex()]; // If invisible, there might be no element. if (bgEl) { var point = bgEl.transformCoordToLocal(x, y); var shape = bgEl.shape; // For performance consideration, don't use 'getBoundingRect'. if (shape.x <= point[0] && point[0] <= shape.x + shape.width && shape.y <= point[1] && point[1] <= shape.y + shape.height) { targetInfo = { node: node, offsetX: point[0], offsetY: point[1] }; } else { return false; // Suppress visit subtree. } } }, this); return targetInfo; }; TreemapView.type = 'treemap'; return TreemapView; }(_view_Chart_js__WEBPACK_IMPORTED_MODULE_13__["default"]); /** * @inner */ function createStorage() { return { nodeGroup: [], background: [], content: [] }; } /** * @inner * @return Return undefined means do not travel further. */ function renderNode(seriesModel, thisStorage, oldStorage, reRoot, lastsForAnimation, willInvisibleEls, thisNode, oldNode, parentGroup, depth) { // Whether under viewRoot. if (!thisNode) { // Deleting nodes will be performed finally. This method just find // element from old storage, or create new element, set them to new // storage, and set styles. return; } // ------------------------------------------------------------------- // Start of closure variables available in "Procedures in renderNode". var thisLayout = thisNode.getLayout(); var data = seriesModel.getData(); var nodeModel = thisNode.getModel(); // Only for enabling highlight/downplay. Clear firstly. // Because some node will not be rendered. data.setItemGraphicEl(thisNode.dataIndex, null); if (!thisLayout || !thisLayout.isInView) { return; } var thisWidth = thisLayout.width; var thisHeight = thisLayout.height; var borderWidth = thisLayout.borderWidth; var thisInvisible = thisLayout.invisible; var thisRawIndex = thisNode.getRawIndex(); var oldRawIndex = oldNode && oldNode.getRawIndex(); var thisViewChildren = thisNode.viewChildren; var upperHeight = thisLayout.upperHeight; var isParent = thisViewChildren && thisViewChildren.length; var itemStyleNormalModel = nodeModel.getModel('itemStyle'); var itemStyleEmphasisModel = nodeModel.getModel(['emphasis', 'itemStyle']); var itemStyleBlurModel = nodeModel.getModel(['blur', 'itemStyle']); var itemStyleSelectModel = nodeModel.getModel(['select', 'itemStyle']); var borderRadius = itemStyleNormalModel.get('borderRadius') || 0; // End of closure ariables available in "Procedures in renderNode". // ----------------------------------------------------------------- // Node group var group = giveGraphic('nodeGroup', Group); if (!group) { return; } parentGroup.add(group); // x,y are not set when el is above view root. group.x = thisLayout.x || 0; group.y = thisLayout.y || 0; group.markRedraw(); inner(group).nodeWidth = thisWidth; inner(group).nodeHeight = thisHeight; if (thisLayout.isAboveViewRoot) { return group; } // Background var bg = giveGraphic('background', Rect, depth, Z2_BG); bg && renderBackground(group, bg, isParent && thisLayout.upperLabelHeight); var emphasisModel = nodeModel.getModel('emphasis'); var focus = emphasisModel.get('focus'); var blurScope = emphasisModel.get('blurScope'); var isDisabled = emphasisModel.get('disabled'); var focusOrIndices = focus === 'ancestor' ? thisNode.getAncestorsIndices() : focus === 'descendant' ? thisNode.getDescendantIndices() : focus; // No children, render content. if (isParent) { // Because of the implementation about "traverse" in graphic hover style, we // can not set hover listener on the "group" of non-leaf node. Otherwise the // hover event from the descendents will be listenered. if (Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["isHighDownDispatcher"])(group)) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["setAsHighDownDispatcher"])(group, false); } if (bg) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["setAsHighDownDispatcher"])(bg, !isDisabled); // Only for enabling highlight/downplay. data.setItemGraphicEl(thisNode.dataIndex, bg); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["enableHoverFocus"])(bg, focusOrIndices, blurScope); } } else { var content = giveGraphic('content', Rect, depth, Z2_CONTENT); content && renderContent(group, content); bg.disableMorphing = true; if (bg && Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["isHighDownDispatcher"])(bg)) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["setAsHighDownDispatcher"])(bg, false); } Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["setAsHighDownDispatcher"])(group, !isDisabled); // Only for enabling highlight/downplay. data.setItemGraphicEl(thisNode.dataIndex, group); var cursorStyle = nodeModel.getShallow('cursor'); cursorStyle && content.attr('cursor', cursorStyle); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["enableHoverFocus"])(group, focusOrIndices, blurScope); } return group; // ---------------------------- // | Procedures in renderNode | // ---------------------------- function renderBackground(group, bg, useUpperLabel) { var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__["getECData"])(bg); // For tooltip. ecData.dataIndex = thisNode.dataIndex; ecData.seriesIndex = seriesModel.seriesIndex; bg.setShape({ x: 0, y: 0, width: thisWidth, height: thisHeight, r: borderRadius }); if (thisInvisible) { // If invisible, do not set visual, otherwise the element will // change immediately before animation. We think it is OK to // remain its origin color when moving out of the view window. processInvisible(bg); } else { bg.invisible = false; var style = thisNode.getVisual('style'); var visualBorderColor = style.stroke; var normalStyle = getItemStyleNormal(itemStyleNormalModel); normalStyle.fill = visualBorderColor; var emphasisStyle = getStateItemStyle(itemStyleEmphasisModel); emphasisStyle.fill = itemStyleEmphasisModel.get('borderColor'); var blurStyle = getStateItemStyle(itemStyleBlurModel); blurStyle.fill = itemStyleBlurModel.get('borderColor'); var selectStyle = getStateItemStyle(itemStyleSelectModel); selectStyle.fill = itemStyleSelectModel.get('borderColor'); if (useUpperLabel) { var upperLabelWidth = thisWidth - 2 * borderWidth; prepareText( // PENDING: convert ZRColor to ColorString for text. bg, visualBorderColor, style.opacity, { x: borderWidth, y: 0, width: upperLabelWidth, height: upperHeight }); } // For old bg. else { bg.removeTextContent(); } bg.setStyle(normalStyle); bg.ensureState('emphasis').style = emphasisStyle; bg.ensureState('blur').style = blurStyle; bg.ensureState('select').style = selectStyle; Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["setDefaultStateProxy"])(bg); } group.add(bg); } function renderContent(group, content) { var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__["getECData"])(content); // For tooltip. ecData.dataIndex = thisNode.dataIndex; ecData.seriesIndex = seriesModel.seriesIndex; var contentWidth = Math.max(thisWidth - 2 * borderWidth, 0); var contentHeight = Math.max(thisHeight - 2 * borderWidth, 0); content.culling = true; content.setShape({ x: borderWidth, y: borderWidth, width: contentWidth, height: contentHeight, r: borderRadius }); if (thisInvisible) { // If invisible, do not set visual, otherwise the element will // change immediately before animation. We think it is OK to // remain its origin color when moving out of the view window. processInvisible(content); } else { content.invisible = false; var nodeStyle = thisNode.getVisual('style'); var visualColor = nodeStyle.fill; var normalStyle = getItemStyleNormal(itemStyleNormalModel); normalStyle.fill = visualColor; normalStyle.decal = nodeStyle.decal; var emphasisStyle = getStateItemStyle(itemStyleEmphasisModel); var blurStyle = getStateItemStyle(itemStyleBlurModel); var selectStyle = getStateItemStyle(itemStyleSelectModel); // PENDING: convert ZRColor to ColorString for text. prepareText(content, visualColor, nodeStyle.opacity, null); content.setStyle(normalStyle); content.ensureState('emphasis').style = emphasisStyle; content.ensureState('blur').style = blurStyle; content.ensureState('select').style = selectStyle; Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["setDefaultStateProxy"])(content); } group.add(content); } function processInvisible(element) { // Delay invisible setting utill animation finished, // avoid element vanish suddenly before animation. !element.invisible && willInvisibleEls.push(element); } function prepareText(rectEl, visualColor, visualOpacity, // Can be null/undefined upperLabelRect) { var normalLabelModel = nodeModel.getModel(upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL); var defaultText = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_15__["convertOptionIdName"])(nodeModel.get('name'), null); var isShow = normalLabelModel.getShallow('show'); Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_17__["setLabelStyle"])(rectEl, Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_17__["getLabelStatesModels"])(nodeModel, upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL), { defaultText: isShow ? defaultText : null, inheritColor: visualColor, defaultOpacity: visualOpacity, labelFetcher: seriesModel, labelDataIndex: thisNode.dataIndex }); var textEl = rectEl.getTextContent(); if (!textEl) { return; } var textStyle = textEl.style; var textPadding = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["normalizeCssArray"])(textStyle.padding || 0); if (upperLabelRect) { rectEl.setTextConfig({ layoutRect: upperLabelRect }); textEl.disableLabelLayout = true; } textEl.beforeUpdate = function () { var width = Math.max((upperLabelRect ? upperLabelRect.width : rectEl.shape.width) - textPadding[1] - textPadding[3], 0); var height = Math.max((upperLabelRect ? upperLabelRect.height : rectEl.shape.height) - textPadding[0] - textPadding[2], 0); if (textStyle.width !== width || textStyle.height !== height) { textEl.setStyle({ width: width, height: height }); } }; textStyle.truncateMinChar = 2; textStyle.lineOverflow = 'truncate'; addDrillDownIcon(textStyle, upperLabelRect, thisLayout); var textEmphasisState = textEl.getState('emphasis'); addDrillDownIcon(textEmphasisState ? textEmphasisState.style : null, upperLabelRect, thisLayout); } function addDrillDownIcon(style, upperLabelRect, thisLayout) { var text = style ? style.text : null; if (!upperLabelRect && thisLayout.isLeafRoot && text != null) { var iconChar = seriesModel.get('drillDownIcon', true); style.text = iconChar ? iconChar + ' ' + text : text; } } function giveGraphic(storageName, Ctor, depth, z) { var element = oldRawIndex != null && oldStorage[storageName][oldRawIndex]; var lasts = lastsForAnimation[storageName]; if (element) { // Remove from oldStorage oldStorage[storageName][oldRawIndex] = null; prepareAnimationWhenHasOld(lasts, element); } // If invisible and no old element, do not create new element (for optimizing). else if (!thisInvisible) { element = new Ctor(); if (element instanceof zrender_lib_graphic_Displayable_js__WEBPACK_IMPORTED_MODULE_14__["default"]) { element.z2 = calculateZ2(depth, z); } prepareAnimationWhenNoOld(lasts, element); } // Set to thisStorage return thisStorage[storageName][thisRawIndex] = element; } function prepareAnimationWhenHasOld(lasts, element) { var lastCfg = lasts[thisRawIndex] = {}; if (element instanceof Group) { lastCfg.oldX = element.x; lastCfg.oldY = element.y; } else { lastCfg.oldShape = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])({}, element.shape); } } // If a element is new, we need to find the animation start point carefully, // otherwise it will looks strange when 'zoomToNode'. function prepareAnimationWhenNoOld(lasts, element) { var lastCfg = lasts[thisRawIndex] = {}; var parentNode = thisNode.parentNode; var isGroup = element instanceof _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"]; if (parentNode && (!reRoot || reRoot.direction === 'drillDown')) { var parentOldX = 0; var parentOldY = 0; // New nodes appear from right-bottom corner in 'zoomToNode' animation. // For convenience, get old bounding rect from background. var parentOldBg = lastsForAnimation.background[parentNode.getRawIndex()]; if (!reRoot && parentOldBg && parentOldBg.oldShape) { parentOldX = parentOldBg.oldShape.width; parentOldY = parentOldBg.oldShape.height; } // When no parent old shape found, its parent is new too, // so we can just use {x:0, y:0}. if (isGroup) { lastCfg.oldX = 0; lastCfg.oldY = parentOldY; } else { lastCfg.oldShape = { x: parentOldX, y: parentOldY, width: 0, height: 0 }; } } // Fade in, user can be aware that these nodes are new. lastCfg.fadein = !isGroup; } } // We cannot set all background with the same z, because the behaviour of // drill down and roll up differ background creation sequence from tree // hierarchy sequence, which cause lower background elements to overlap // upper ones. So we calculate z based on depth. // Moreover, we try to shrink down z interval to [0, 1] to avoid that // treemap with large z overlaps other components. function calculateZ2(depth, z2InLevel) { return depth * Z2_BASE + z2InLevel; } /* harmony default export */ __webpack_exports__["default"] = (TreemapView); /***/ }), /***/ "./node_modules/echarts/lib/chart/treemap/install.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/chart/treemap/install.js ***! \***********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _treemapAction_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./treemapAction.js */ "./node_modules/echarts/lib/chart/treemap/treemapAction.js"); /* harmony import */ var _TreemapSeries_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TreemapSeries.js */ "./node_modules/echarts/lib/chart/treemap/TreemapSeries.js"); /* harmony import */ var _TreemapView_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TreemapView.js */ "./node_modules/echarts/lib/chart/treemap/TreemapView.js"); /* harmony import */ var _treemapVisual_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./treemapVisual.js */ "./node_modules/echarts/lib/chart/treemap/treemapVisual.js"); /* harmony import */ var _treemapLayout_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./treemapLayout.js */ "./node_modules/echarts/lib/chart/treemap/treemapLayout.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerSeriesModel(_TreemapSeries_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerChartView(_TreemapView_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerVisual(_treemapVisual_js__WEBPACK_IMPORTED_MODULE_3__["default"]); registers.registerLayout(_treemapLayout_js__WEBPACK_IMPORTED_MODULE_4__["default"]); Object(_treemapAction_js__WEBPACK_IMPORTED_MODULE_0__["installTreemapAction"])(registers); } /***/ }), /***/ "./node_modules/echarts/lib/chart/treemap/treemapAction.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/treemap/treemapAction.js ***! \*****************************************************************/ /*! exports provided: installTreemapAction */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "installTreemapAction", function() { return installTreemapAction; }); /* harmony import */ var _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helper/treeHelper.js */ "./node_modules/echarts/lib/chart/helper/treeHelper.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var actionTypes = ['treemapZoomToNode', 'treemapRender', 'treemapMove']; function installTreemapAction(registers) { for (var i = 0; i < actionTypes.length; i++) { registers.registerAction({ type: actionTypes[i], update: 'updateView' }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["noop"]); } registers.registerAction({ type: 'treemapRootToNode', update: 'updateView' }, function (payload, ecModel) { ecModel.eachComponent({ mainType: 'series', subType: 'treemap', query: payload }, handleRootToNode); function handleRootToNode(model, index) { var types = ['treemapZoomToNode', 'treemapRootToNode']; var targetInfo = _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_0__["retrieveTargetInfo"](payload, types, model); if (targetInfo) { var originViewRoot = model.getViewRoot(); if (originViewRoot) { payload.direction = _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_0__["aboveViewRoot"](originViewRoot, targetInfo.node) ? 'rollUp' : 'drillDown'; } model.resetViewRoot(targetInfo.node); } } }); } /***/ }), /***/ "./node_modules/echarts/lib/chart/treemap/treemapLayout.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/treemap/treemapLayout.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helper/treeHelper.js */ "./node_modules/echarts/lib/chart/helper/treeHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * A third-party license is embedded for some of the code in this file: * The treemap layout implementation was originally copied from * "d3.js" with some modifications made for this project. * (See more details in the comment of the method "squarify" below.) * The use of the source code of this file is also subject to the terms * and consitions of the license of "d3.js" (BSD-3Clause, see * ). */ var mathMax = Math.max; var mathMin = Math.min; var retrieveValue = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve"]; var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]; var PATH_BORDER_WIDTH = ['itemStyle', 'borderWidth']; var PATH_GAP_WIDTH = ['itemStyle', 'gapWidth']; var PATH_UPPER_LABEL_SHOW = ['upperLabel', 'show']; var PATH_UPPER_LABEL_HEIGHT = ['upperLabel', 'height']; ; /** * @public */ /* harmony default export */ __webpack_exports__["default"] = ({ seriesType: 'treemap', reset: function (seriesModel, ecModel, api, payload) { // Layout result in each node: // {x, y, width, height, area, borderWidth} var ecWidth = api.getWidth(); var ecHeight = api.getHeight(); var seriesOption = seriesModel.option; var layoutInfo = _util_layout_js__WEBPACK_IMPORTED_MODULE_3__["getLayoutRect"](seriesModel.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() }); var size = seriesOption.size || []; // Compatible with ec2. var containerWidth = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(retrieveValue(layoutInfo.width, size[0]), ecWidth); var containerHeight = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(retrieveValue(layoutInfo.height, size[1]), ecHeight); // Fetch payload info. var payloadType = payload && payload.type; var types = ['treemapZoomToNode', 'treemapRootToNode']; var targetInfo = _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_4__["retrieveTargetInfo"](payload, types, seriesModel); var rootRect = payloadType === 'treemapRender' || payloadType === 'treemapMove' ? payload.rootRect : null; var viewRoot = seriesModel.getViewRoot(); var viewAbovePath = _helper_treeHelper_js__WEBPACK_IMPORTED_MODULE_4__["getPathToRoot"](viewRoot); if (payloadType !== 'treemapMove') { var rootSize = payloadType === 'treemapZoomToNode' ? estimateRootSize(seriesModel, targetInfo, viewRoot, containerWidth, containerHeight) : rootRect ? [rootRect.width, rootRect.height] : [containerWidth, containerHeight]; var sort_1 = seriesOption.sort; if (sort_1 && sort_1 !== 'asc' && sort_1 !== 'desc') { // Default to be desc order. sort_1 = 'desc'; } var options = { squareRatio: seriesOption.squareRatio, sort: sort_1, leafDepth: seriesOption.leafDepth }; // layout should be cleared because using updateView but not update. viewRoot.hostTree.clearLayouts(); // TODO // optimize: if out of view clip, do not layout. // But take care that if do not render node out of view clip, // how to calculate start po var viewRootLayout_1 = { x: 0, y: 0, width: rootSize[0], height: rootSize[1], area: rootSize[0] * rootSize[1] }; viewRoot.setLayout(viewRootLayout_1); squarify(viewRoot, options, false, 0); // Supplement layout. viewRootLayout_1 = viewRoot.getLayout(); each(viewAbovePath, function (node, index) { var childValue = (viewAbovePath[index + 1] || viewRoot).getValue(); node.setLayout(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"]({ dataExtent: [childValue, childValue], borderWidth: 0, upperHeight: 0 }, viewRootLayout_1)); }); } var treeRoot = seriesModel.getData().tree.root; treeRoot.setLayout(calculateRootPosition(layoutInfo, rootRect, targetInfo), true); seriesModel.setLayoutInfo(layoutInfo); // FIXME // 现在没有clip功能,暂时取ec高宽。 prunning(treeRoot, // Transform to base element coordinate system. new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__["default"](-layoutInfo.x, -layoutInfo.y, ecWidth, ecHeight), viewAbovePath, viewRoot, 0); } }); /** * Layout treemap with squarify algorithm. * The original presentation of this algorithm * was made by Mark Bruls, Kees Huizing, and Jarke J. van Wijk * . * The implementation of this algorithm was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. * * @protected * @param {module:echarts/data/Tree~TreeNode} node * @param {Object} options * @param {string} options.sort 'asc' or 'desc' * @param {number} options.squareRatio * @param {boolean} hideChildren * @param {number} depth */ function squarify(node, options, hideChildren, depth) { var width; var height; if (node.isRemoved()) { return; } var thisLayout = node.getLayout(); width = thisLayout.width; height = thisLayout.height; // Considering border and gap var nodeModel = node.getModel(); var borderWidth = nodeModel.get(PATH_BORDER_WIDTH); var halfGapWidth = nodeModel.get(PATH_GAP_WIDTH) / 2; var upperLabelHeight = getUpperLabelHeight(nodeModel); var upperHeight = Math.max(borderWidth, upperLabelHeight); var layoutOffset = borderWidth - halfGapWidth; var layoutOffsetUpper = upperHeight - halfGapWidth; node.setLayout({ borderWidth: borderWidth, upperHeight: upperHeight, upperLabelHeight: upperLabelHeight }, true); width = mathMax(width - 2 * layoutOffset, 0); height = mathMax(height - layoutOffset - layoutOffsetUpper, 0); var totalArea = width * height; var viewChildren = initChildren(node, nodeModel, totalArea, options, hideChildren, depth); if (!viewChildren.length) { return; } var rect = { x: layoutOffset, y: layoutOffsetUpper, width: width, height: height }; var rowFixedLength = mathMin(width, height); var best = Infinity; // the best row score so far var row = []; row.area = 0; for (var i = 0, len = viewChildren.length; i < len;) { var child = viewChildren[i]; row.push(child); row.area += child.getLayout().area; var score = worst(row, rowFixedLength, options.squareRatio); // continue with this orientation if (score <= best) { i++; best = score; } // abort, and try a different orientation else { row.area -= row.pop().getLayout().area; position(row, rowFixedLength, rect, halfGapWidth, false); rowFixedLength = mathMin(rect.width, rect.height); row.length = row.area = 0; best = Infinity; } } if (row.length) { position(row, rowFixedLength, rect, halfGapWidth, true); } if (!hideChildren) { var childrenVisibleMin = nodeModel.get('childrenVisibleMin'); if (childrenVisibleMin != null && totalArea < childrenVisibleMin) { hideChildren = true; } } for (var i = 0, len = viewChildren.length; i < len; i++) { squarify(viewChildren[i], options, hideChildren, depth + 1); } } /** * Set area to each child, and calculate data extent for visual coding. */ function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) { var viewChildren = node.children || []; var orderBy = options.sort; orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null); var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority. if (hideChildren && !overLeafDepth) { return node.viewChildren = []; } // Sort children, order by desc. viewChildren = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["filter"](viewChildren, function (child) { return !child.isRemoved(); }); sort(viewChildren, orderBy); var info = statistic(nodeModel, viewChildren, orderBy); if (info.sum === 0) { return node.viewChildren = []; } info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren); if (info.sum === 0) { return node.viewChildren = []; } // Set area to each child. for (var i = 0, len = viewChildren.length; i < len; i++) { var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout. viewChildren[i].setLayout({ area: area }); } if (overLeafDepth) { viewChildren.length && node.setLayout({ isLeafRoot: true }, true); viewChildren.length = 0; } node.viewChildren = viewChildren; node.setLayout({ dataExtent: info.dataExtent }, true); return viewChildren; } /** * Consider 'visibleMin'. Modify viewChildren and get new sum. */ function filterByThreshold(nodeModel, totalArea, sum, orderBy, orderedChildren) { // visibleMin is not supported yet when no option.sort. if (!orderBy) { return sum; } var visibleMin = nodeModel.get('visibleMin'); var len = orderedChildren.length; var deletePoint = len; // Always travel from little value to big value. for (var i = len - 1; i >= 0; i--) { var value = orderedChildren[orderBy === 'asc' ? len - i - 1 : i].getValue(); if (value / sum * totalArea < visibleMin) { deletePoint = i; sum -= value; } } orderBy === 'asc' ? orderedChildren.splice(0, len - deletePoint) : orderedChildren.splice(deletePoint, len - deletePoint); return sum; } /** * Sort */ function sort(viewChildren, orderBy) { if (orderBy) { viewChildren.sort(function (a, b) { var diff = orderBy === 'asc' ? a.getValue() - b.getValue() : b.getValue() - a.getValue(); return diff === 0 ? orderBy === 'asc' ? a.dataIndex - b.dataIndex : b.dataIndex - a.dataIndex : diff; }); } return viewChildren; } /** * Statistic */ function statistic(nodeModel, children, orderBy) { // Calculate sum. var sum = 0; for (var i = 0, len = children.length; i < len; i++) { sum += children[i].getValue(); } // Statistic data extent for latter visual coding. // Notice: data extent should be calculate based on raw children // but not filtered view children, otherwise visual mapping will not // be stable when zoom (where children is filtered by visibleMin). var dimension = nodeModel.get('visualDimension'); var dataExtent; // The same as area dimension. if (!children || !children.length) { dataExtent = [NaN, NaN]; } else if (dimension === 'value' && orderBy) { dataExtent = [children[children.length - 1].getValue(), children[0].getValue()]; orderBy === 'asc' && dataExtent.reverse(); } // Other dimension. else { dataExtent = [Infinity, -Infinity]; each(children, function (child) { var value = child.getValue(dimension); value < dataExtent[0] && (dataExtent[0] = value); value > dataExtent[1] && (dataExtent[1] = value); }); } return { sum: sum, dataExtent: dataExtent }; } /** * Computes the score for the specified row, * as the worst aspect ratio. */ function worst(row, rowFixedLength, ratio) { var areaMax = 0; var areaMin = Infinity; for (var i = 0, area = void 0, len = row.length; i < len; i++) { area = row[i].getLayout().area; if (area) { area < areaMin && (areaMin = area); area > areaMax && (areaMax = area); } } var squareArea = row.area * row.area; var f = rowFixedLength * rowFixedLength * ratio; return squareArea ? mathMax(f * areaMax / squareArea, squareArea / (f * areaMin)) : Infinity; } /** * Positions the specified row of nodes. Modifies `rect`. */ function position(row, rowFixedLength, rect, halfGapWidth, flush) { // When rowFixedLength === rect.width, // it is horizontal subdivision, // rowFixedLength is the width of the subdivision, // rowOtherLength is the height of the subdivision, // and nodes will be positioned from left to right. // wh[idx0WhenH] means: when horizontal, // wh[idx0WhenH] => wh[0] => 'width'. // xy[idx1WhenH] => xy[1] => 'y'. var idx0WhenH = rowFixedLength === rect.width ? 0 : 1; var idx1WhenH = 1 - idx0WhenH; var xy = ['x', 'y']; var wh = ['width', 'height']; var last = rect[xy[idx0WhenH]]; var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0; if (flush || rowOtherLength > rect[wh[idx1WhenH]]) { rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow } for (var i = 0, rowLen = row.length; i < rowLen; i++) { var node = row[i]; var nodeLayout = {}; var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0; var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0); // We use Math.max/min to avoid negative width/height when considering gap width. var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last; var modWH = i === rowLen - 1 || remain < step ? remain : step; var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0); nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2); nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2); last += modWH; node.setLayout(nodeLayout, true); } rect[xy[idx1WhenH]] += rowOtherLength; rect[wh[idx1WhenH]] -= rowOtherLength; } // Return [containerWidth, containerHeight] as default. function estimateRootSize(seriesModel, targetInfo, viewRoot, containerWidth, containerHeight) { // If targetInfo.node exists, we zoom to the node, // so estimate whole width and height by target node. var currNode = (targetInfo || {}).node; var defaultSize = [containerWidth, containerHeight]; if (!currNode || currNode === viewRoot) { return defaultSize; } var parent; var viewArea = containerWidth * containerHeight; var area = viewArea * seriesModel.option.zoomToNodeRatio; while (parent = currNode.parentNode) { // jshint ignore:line var sum = 0; var siblings = parent.children; for (var i = 0, len = siblings.length; i < len; i++) { sum += siblings[i].getValue(); } var currNodeValue = currNode.getValue(); if (currNodeValue === 0) { return defaultSize; } area *= sum / currNodeValue; // Considering border, suppose aspect ratio is 1. var parentModel = parent.getModel(); var borderWidth = parentModel.get(PATH_BORDER_WIDTH); var upperHeight = Math.max(borderWidth, getUpperLabelHeight(parentModel)); area += 4 * borderWidth * borderWidth + (3 * borderWidth + upperHeight) * Math.pow(area, 0.5); area > _util_number_js__WEBPACK_IMPORTED_MODULE_2__["MAX_SAFE_INTEGER"] && (area = _util_number_js__WEBPACK_IMPORTED_MODULE_2__["MAX_SAFE_INTEGER"]); currNode = parent; } area < viewArea && (area = viewArea); var scale = Math.pow(area / viewArea, 0.5); return [containerWidth * scale, containerHeight * scale]; } // Root position based on coord of containerGroup function calculateRootPosition(layoutInfo, rootRect, targetInfo) { if (rootRect) { return { x: rootRect.x, y: rootRect.y }; } var defaultPosition = { x: 0, y: 0 }; if (!targetInfo) { return defaultPosition; } // If targetInfo is fetched by 'retrieveTargetInfo', // old tree and new tree are the same tree, // so the node still exists and we can visit it. var targetNode = targetInfo.node; var layout = targetNode.getLayout(); if (!layout) { return defaultPosition; } // Transform coord from local to container. var targetCenter = [layout.width / 2, layout.height / 2]; var node = targetNode; while (node) { var nodeLayout = node.getLayout(); targetCenter[0] += nodeLayout.x; targetCenter[1] += nodeLayout.y; node = node.parentNode; } return { x: layoutInfo.width / 2 - targetCenter[0], y: layoutInfo.height / 2 - targetCenter[1] }; } // Mark nodes visible for prunning when visual coding and rendering. // Prunning depends on layout and root position, so we have to do it after layout. function prunning(node, clipRect, viewAbovePath, viewRoot, depth) { var nodeLayout = node.getLayout(); var nodeInViewAbovePath = viewAbovePath[depth]; var isAboveViewRoot = nodeInViewAbovePath && nodeInViewAbovePath === node; if (nodeInViewAbovePath && !isAboveViewRoot || depth === viewAbovePath.length && node !== viewRoot) { return; } node.setLayout({ // isInView means: viewRoot sub tree + viewAbovePath isInView: true, // invisible only means: outside view clip so that the node can not // see but still layout for animation preparation but not render. invisible: !isAboveViewRoot && !clipRect.intersect(nodeLayout), isAboveViewRoot: isAboveViewRoot }, true); // Transform to child coordinate. var childClipRect = new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__["default"](clipRect.x - nodeLayout.x, clipRect.y - nodeLayout.y, clipRect.width, clipRect.height); each(node.viewChildren || [], function (child) { prunning(child, childClipRect, viewAbovePath, viewRoot, depth + 1); }); } function getUpperLabelHeight(model) { return model.get(PATH_UPPER_LABEL_SHOW) ? model.get(PATH_UPPER_LABEL_HEIGHT) : 0; } /***/ }), /***/ "./node_modules/echarts/lib/chart/treemap/treemapVisual.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/chart/treemap/treemapVisual.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../visual/VisualMapping.js */ "./node_modules/echarts/lib/visual/VisualMapping.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/tool/color.js */ "./node_modules/zrender/lib/tool/color.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ITEM_STYLE_NORMAL = 'itemStyle'; var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_3__["makeInner"])(); /* harmony default export */ __webpack_exports__["default"] = ({ seriesType: 'treemap', reset: function (seriesModel) { var tree = seriesModel.getData().tree; var root = tree.root; if (root.isRemoved()) { return; } travelTree(root, // Visual should calculate from tree root but not view root. {}, seriesModel.getViewRoot().getAncestors(), seriesModel); } }); function travelTree(node, designatedVisual, viewRootAncestors, seriesModel) { var nodeModel = node.getModel(); var nodeLayout = node.getLayout(); var data = node.hostTree.data; // Optimize if (!nodeLayout || nodeLayout.invisible || !nodeLayout.isInView) { return; } var nodeItemStyleModel = nodeModel.getModel(ITEM_STYLE_NORMAL); var visuals = buildVisuals(nodeItemStyleModel, designatedVisual, seriesModel); var existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style'); // calculate border color var borderColor = nodeItemStyleModel.get('borderColor'); var borderColorSaturation = nodeItemStyleModel.get('borderColorSaturation'); var thisNodeColor; if (borderColorSaturation != null) { // For performance, do not always execute 'calculateColor'. thisNodeColor = calculateColor(visuals); borderColor = calculateBorderColor(borderColorSaturation, thisNodeColor); } existsStyle.stroke = borderColor; var viewChildren = node.viewChildren; if (!viewChildren || !viewChildren.length) { thisNodeColor = calculateColor(visuals); // Apply visual to this node. existsStyle.fill = thisNodeColor; } else { var mapping_1 = buildVisualMapping(node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren); // Designate visual to children. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(viewChildren, function (child, index) { // If higher than viewRoot, only ancestors of viewRoot is needed to visit. if (child.depth >= viewRootAncestors.length || child === viewRootAncestors[child.depth]) { var childVisual = mapVisual(nodeModel, visuals, child, index, mapping_1, seriesModel); travelTree(child, childVisual, viewRootAncestors, seriesModel); } }); } } function buildVisuals(nodeItemStyleModel, designatedVisual, seriesModel) { var visuals = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])({}, designatedVisual); var designatedVisualItemStyle = seriesModel.designatedVisualItemStyle; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(['color', 'colorAlpha', 'colorSaturation'], function (visualName) { // Priority: thisNode > thisLevel > parentNodeDesignated > seriesModel designatedVisualItemStyle[visualName] = designatedVisual[visualName]; var val = nodeItemStyleModel.get(visualName); designatedVisualItemStyle[visualName] = null; val != null && (visuals[visualName] = val); }); return visuals; } function calculateColor(visuals) { var color = getValueVisualDefine(visuals, 'color'); if (color) { var colorAlpha = getValueVisualDefine(visuals, 'colorAlpha'); var colorSaturation = getValueVisualDefine(visuals, 'colorSaturation'); if (colorSaturation) { color = Object(zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_2__["modifyHSL"])(color, null, null, colorSaturation); } if (colorAlpha) { color = Object(zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_2__["modifyAlpha"])(color, colorAlpha); } return color; } } function calculateBorderColor(borderColorSaturation, thisNodeColor) { return thisNodeColor != null // Can only be string ? Object(zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_2__["modifyHSL"])(thisNodeColor, null, null, borderColorSaturation) : null; } function getValueVisualDefine(visuals, name) { var value = visuals[name]; if (value != null && value !== 'none') { return value; } } function buildVisualMapping(node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren) { if (!viewChildren || !viewChildren.length) { return; } var rangeVisual = getRangeVisual(nodeModel, 'color') || visuals.color != null && visuals.color !== 'none' && (getRangeVisual(nodeModel, 'colorAlpha') || getRangeVisual(nodeModel, 'colorSaturation')); if (!rangeVisual) { return; } var visualMin = nodeModel.get('visualMin'); var visualMax = nodeModel.get('visualMax'); var dataExtent = nodeLayout.dataExtent.slice(); visualMin != null && visualMin < dataExtent[0] && (dataExtent[0] = visualMin); visualMax != null && visualMax > dataExtent[1] && (dataExtent[1] = visualMax); var colorMappingBy = nodeModel.get('colorMappingBy'); var opt = { type: rangeVisual.name, dataExtent: dataExtent, visual: rangeVisual.range }; if (opt.type === 'color' && (colorMappingBy === 'index' || colorMappingBy === 'id')) { opt.mappingMethod = 'category'; opt.loop = true; // categories is ordinal, so do not set opt.categories. } else { opt.mappingMethod = 'linear'; } var mapping = new _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_0__["default"](opt); inner(mapping).drColorMappingBy = colorMappingBy; return mapping; } // Notice: If we don't have the attribute 'colorRange', but only use // attribute 'color' to represent both concepts of 'colorRange' and 'color', // (It means 'colorRange' when 'color' is Array, means 'color' when not array), // this problem will be encountered: // If a level-1 node doesn't have children, and its siblings have children, // and colorRange is set on level-1, then the node cannot be colored. // So we separate 'colorRange' and 'color' to different attributes. function getRangeVisual(nodeModel, name) { // 'colorRange', 'colorARange', 'colorSRange'. // If not exists on this node, fetch from levels and series. var range = nodeModel.get(name); return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(range) && range.length ? { name: name, range: range } : null; } function mapVisual(nodeModel, visuals, child, index, mapping, seriesModel) { var childVisuals = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])({}, visuals); if (mapping) { // Only support color, colorAlpha, colorSaturation. var mappingType = mapping.type; var colorMappingBy = mappingType === 'color' && inner(mapping).drColorMappingBy; var value = colorMappingBy === 'index' ? index : colorMappingBy === 'id' ? seriesModel.mapIdToIndex(child.getId()) : child.getValue(nodeModel.get('visualDimension')); childVisuals[mappingType] = mapping.mapValueToVisual(value); } return childVisuals; } /***/ }), /***/ "./node_modules/echarts/lib/component/aria/install.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/component/aria/install.js ***! \************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _visual_aria_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../visual/aria.js */ "./node_modules/echarts/lib/visual/aria.js"); /* harmony import */ var _preprocessor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./preprocessor.js */ "./node_modules/echarts/lib/component/aria/preprocessor.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerPreprocessor(_preprocessor_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerVisual(registers.PRIORITY.VISUAL.ARIA, _visual_aria_js__WEBPACK_IMPORTED_MODULE_0__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/component/aria/preprocessor.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/component/aria/preprocessor.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ariaPreprocessor; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function ariaPreprocessor(option) { if (!option || !option.aria) { return; } var aria = option.aria; // aria.show is deprecated and should use aria.enabled instead if (aria.show != null) { aria.enabled = aria.show; } aria.label = aria.label || {}; // move description, general, series, data to be under aria.label zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](['description', 'general', 'series', 'data'], function (name) { if (aria[name] != null) { aria.label[name] = aria[name]; } }); } /***/ }), /***/ "./node_modules/echarts/lib/component/axis/AngleAxisView.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/component/axis/AngleAxisView.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _AxisView_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./AxisView.js */ "./node_modules/echarts/lib/component/axis/AxisView.js"); /* harmony import */ var _AxisBuilder_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AxisBuilder.js */ "./node_modules/echarts/lib/component/axis/AxisBuilder.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var elementList = ['axisLine', 'axisLabel', 'axisTick', 'minorTick', 'splitLine', 'minorSplitLine', 'splitArea']; function getAxisLineShape(polar, rExtent, angle) { rExtent[1] > rExtent[0] && (rExtent = rExtent.slice().reverse()); var start = polar.coordToPoint([rExtent[0], angle]); var end = polar.coordToPoint([rExtent[1], angle]); return { x1: start[0], y1: start[1], x2: end[0], y2: end[1] }; } function getRadiusIdx(polar) { var radiusAxis = polar.getRadiusAxis(); return radiusAxis.inverse ? 0 : 1; } // Remove the last tick which will overlap the first tick function fixAngleOverlap(list) { var firstItem = list[0]; var lastItem = list[list.length - 1]; if (firstItem && lastItem && Math.abs(Math.abs(firstItem.coord - lastItem.coord) - 360) < 1e-4) { list.pop(); } } var AngleAxisView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AngleAxisView, _super); function AngleAxisView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = AngleAxisView.type; _this.axisPointerClass = 'PolarAxisPointer'; return _this; } AngleAxisView.prototype.render = function (angleAxisModel, ecModel) { this.group.removeAll(); if (!angleAxisModel.get('show')) { return; } var angleAxis = angleAxisModel.axis; var polar = angleAxis.polar; var radiusExtent = polar.getRadiusAxis().getExtent(); var ticksAngles = angleAxis.getTicksCoords(); var minorTickAngles = angleAxis.getMinorTicksCoords(); var labels = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](angleAxis.getViewLabels(), function (labelItem) { labelItem = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"](labelItem); var scale = angleAxis.scale; var tickValue = scale.type === 'ordinal' ? scale.getRawOrdinalNumber(labelItem.tickValue) : labelItem.tickValue; labelItem.coord = angleAxis.dataToCoord(tickValue); return labelItem; }); fixAngleOverlap(labels); fixAngleOverlap(ticksAngles); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](elementList, function (name) { if (angleAxisModel.get([name, 'show']) && (!angleAxis.scale.isBlank() || name === 'axisLine')) { angelAxisElementsBuilders[name](this.group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent, labels); } }, this); }; AngleAxisView.type = 'angleAxis'; return AngleAxisView; }(_AxisView_js__WEBPACK_IMPORTED_MODULE_5__["default"]); var angelAxisElementsBuilders = { axisLine: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) { var lineStyleModel = angleAxisModel.getModel(['axisLine', 'lineStyle']); var angleAxis = polar.getAngleAxis(); var RADIAN = Math.PI / 180; var angleExtent = angleAxis.getExtent(); // extent id of the axis radius (r0 and r) var rId = getRadiusIdx(polar); var r0Id = rId ? 0 : 1; var shape; var shapeType = Math.abs(angleExtent[1] - angleExtent[0]) === 360 ? 'Circle' : 'Arc'; if (radiusExtent[r0Id] === 0) { shape = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__[shapeType]({ shape: { cx: polar.cx, cy: polar.cy, r: radiusExtent[rId], startAngle: -angleExtent[0] * RADIAN, endAngle: -angleExtent[1] * RADIAN, clockwise: angleAxis.inverse }, style: lineStyleModel.getLineStyle(), z2: 1, silent: true }); } else { shape = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Ring"]({ shape: { cx: polar.cx, cy: polar.cy, r: radiusExtent[rId], r0: radiusExtent[r0Id] }, style: lineStyleModel.getLineStyle(), z2: 1, silent: true }); } shape.style.fill = null; group.add(shape); }, axisTick: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) { var tickModel = angleAxisModel.getModel('axisTick'); var tickLen = (tickModel.get('inside') ? -1 : 1) * tickModel.get('length'); var radius = radiusExtent[getRadiusIdx(polar)]; var lines = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](ticksAngles, function (tickAngleItem) { return new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Line"]({ shape: getAxisLineShape(polar, [radius, radius + tickLen], tickAngleItem.coord) }); }); group.add(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["mergePath"](lines, { style: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"](tickModel.getModel('lineStyle').getLineStyle(), { stroke: angleAxisModel.get(['axisLine', 'lineStyle', 'color']) }) })); }, minorTick: function (group, angleAxisModel, polar, tickAngles, minorTickAngles, radiusExtent) { if (!minorTickAngles.length) { return; } var tickModel = angleAxisModel.getModel('axisTick'); var minorTickModel = angleAxisModel.getModel('minorTick'); var tickLen = (tickModel.get('inside') ? -1 : 1) * minorTickModel.get('length'); var radius = radiusExtent[getRadiusIdx(polar)]; var lines = []; for (var i = 0; i < minorTickAngles.length; i++) { for (var k = 0; k < minorTickAngles[i].length; k++) { lines.push(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Line"]({ shape: getAxisLineShape(polar, [radius, radius + tickLen], minorTickAngles[i][k].coord) })); } } group.add(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["mergePath"](lines, { style: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"](minorTickModel.getModel('lineStyle').getLineStyle(), zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"](tickModel.getLineStyle(), { stroke: angleAxisModel.get(['axisLine', 'lineStyle', 'color']) })) })); }, axisLabel: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent, labels) { var rawCategoryData = angleAxisModel.getCategories(true); var commonLabelModel = angleAxisModel.getModel('axisLabel'); var labelMargin = commonLabelModel.get('margin'); var triggerEvent = angleAxisModel.get('triggerEvent'); // Use length of ticksAngles because it may remove the last tick to avoid overlapping zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](labels, function (labelItem, idx) { var labelModel = commonLabelModel; var tickValue = labelItem.tickValue; var r = radiusExtent[getRadiusIdx(polar)]; var p = polar.coordToPoint([r + labelMargin, labelItem.coord]); var cx = polar.cx; var cy = polar.cy; var labelTextAlign = Math.abs(p[0] - cx) / r < 0.3 ? 'center' : p[0] > cx ? 'left' : 'right'; var labelTextVerticalAlign = Math.abs(p[1] - cy) / r < 0.3 ? 'middle' : p[1] > cy ? 'top' : 'bottom'; if (rawCategoryData && rawCategoryData[tickValue]) { var rawCategoryItem = rawCategoryData[tickValue]; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isObject"](rawCategoryItem) && rawCategoryItem.textStyle) { labelModel = new _model_Model_js__WEBPACK_IMPORTED_MODULE_4__["default"](rawCategoryItem.textStyle, commonLabelModel, commonLabelModel.ecModel); } } var textEl = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"]({ silent: _AxisBuilder_js__WEBPACK_IMPORTED_MODULE_6__["default"].isLabelSilent(angleAxisModel), style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_3__["createTextStyle"])(labelModel, { x: p[0], y: p[1], fill: labelModel.getTextColor() || angleAxisModel.get(['axisLine', 'lineStyle', 'color']), text: labelItem.formattedLabel, align: labelTextAlign, verticalAlign: labelTextVerticalAlign }) }); group.add(textEl); // Pack data for mouse event if (triggerEvent) { var eventData = _AxisBuilder_js__WEBPACK_IMPORTED_MODULE_6__["default"].makeAxisEventDataBase(angleAxisModel); eventData.targetType = 'axisLabel'; eventData.value = labelItem.rawLabel; Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_7__["getECData"])(textEl).eventData = eventData; } }, this); }, splitLine: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) { var splitLineModel = angleAxisModel.getModel('splitLine'); var lineStyleModel = splitLineModel.getModel('lineStyle'); var lineColors = lineStyleModel.get('color'); var lineCount = 0; lineColors = lineColors instanceof Array ? lineColors : [lineColors]; var splitLines = []; for (var i = 0; i < ticksAngles.length; i++) { var colorIndex = lineCount++ % lineColors.length; splitLines[colorIndex] = splitLines[colorIndex] || []; splitLines[colorIndex].push(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Line"]({ shape: getAxisLineShape(polar, radiusExtent, ticksAngles[i].coord) })); } // Simple optimization // Batching the lines if color are the same for (var i = 0; i < splitLines.length; i++) { group.add(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["mergePath"](splitLines[i], { style: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]({ stroke: lineColors[i % lineColors.length] }, lineStyleModel.getLineStyle()), silent: true, z: angleAxisModel.get('z') })); } }, minorSplitLine: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) { if (!minorTickAngles.length) { return; } var minorSplitLineModel = angleAxisModel.getModel('minorSplitLine'); var lineStyleModel = minorSplitLineModel.getModel('lineStyle'); var lines = []; for (var i = 0; i < minorTickAngles.length; i++) { for (var k = 0; k < minorTickAngles[i].length; k++) { lines.push(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Line"]({ shape: getAxisLineShape(polar, radiusExtent, minorTickAngles[i][k].coord) })); } } group.add(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["mergePath"](lines, { style: lineStyleModel.getLineStyle(), silent: true, z: angleAxisModel.get('z') })); }, splitArea: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) { if (!ticksAngles.length) { return; } var splitAreaModel = angleAxisModel.getModel('splitArea'); var areaStyleModel = splitAreaModel.getModel('areaStyle'); var areaColors = areaStyleModel.get('color'); var lineCount = 0; areaColors = areaColors instanceof Array ? areaColors : [areaColors]; var splitAreas = []; var RADIAN = Math.PI / 180; var prevAngle = -ticksAngles[0].coord * RADIAN; var r0 = Math.min(radiusExtent[0], radiusExtent[1]); var r1 = Math.max(radiusExtent[0], radiusExtent[1]); var clockwise = angleAxisModel.get('clockwise'); for (var i = 1, len = ticksAngles.length; i <= len; i++) { var coord = i === len ? ticksAngles[0].coord : ticksAngles[i].coord; var colorIndex = lineCount++ % areaColors.length; splitAreas[colorIndex] = splitAreas[colorIndex] || []; splitAreas[colorIndex].push(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Sector"]({ shape: { cx: polar.cx, cy: polar.cy, r0: r0, r: r1, startAngle: prevAngle, endAngle: -coord * RADIAN, clockwise: clockwise }, silent: true })); prevAngle = -coord * RADIAN; } // Simple optimization // Batching the lines if color are the same for (var i = 0; i < splitAreas.length; i++) { group.add(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["mergePath"](splitAreas[i], { style: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]({ fill: areaColors[i % areaColors.length] }, areaStyleModel.getAreaStyle()), silent: true })); } } }; /* harmony default export */ __webpack_exports__["default"] = (AngleAxisView); /***/ }), /***/ "./node_modules/echarts/lib/component/axis/AxisBuilder.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/component/axis/AxisBuilder.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! zrender/lib/core/matrix.js */ "./node_modules/zrender/lib/core/matrix.js"); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* harmony import */ var _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../coord/axisHelper.js */ "./node_modules/echarts/lib/coord/axisHelper.js"); /* harmony import */ var _label_labelLayoutHelper_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../label/labelLayoutHelper.js */ "./node_modules/echarts/lib/label/labelLayoutHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PI = Math.PI; /** * A final axis is translated and rotated from a "standard axis". * So opt.position and opt.rotation is required. * * A standard axis is and axis from [0, 0] to [0, axisExtent[1]], * for example: (0, 0) ------------> (0, 50) * * nameDirection or tickDirection or labelDirection is 1 means tick * or label is below the standard axis, whereas is -1 means above * the standard axis. labelOffset means offset between label and axis, * which is useful when 'onZero', where axisLabel is in the grid and * label in outside grid. * * Tips: like always, * positive rotation represents anticlockwise, and negative rotation * represents clockwise. * The direction of position coordinate is the same as the direction * of screen coordinate. * * Do not need to consider axis 'inverse', which is auto processed by * axis extent. */ var AxisBuilder = /** @class */function () { function AxisBuilder(axisModel, opt) { this.group = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Group"](); this.opt = opt; this.axisModel = axisModel; // Default value Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"])(opt, { labelOffset: 0, nameDirection: 1, tickDirection: 1, labelDirection: 1, silent: true, handleAutoShown: function () { return true; } }); // FIXME Not use a separate text group? var transformGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Group"]({ x: opt.position[0], y: opt.position[1], rotation: opt.rotation }); // this.group.add(transformGroup); // this._transformGroup = transformGroup; transformGroup.updateTransform(); this._transformGroup = transformGroup; } AxisBuilder.prototype.hasBuilder = function (name) { return !!builders[name]; }; AxisBuilder.prototype.add = function (name) { builders[name](this.opt, this.axisModel, this.group, this._transformGroup); }; AxisBuilder.prototype.getGroup = function () { return this.group; }; AxisBuilder.innerTextLayout = function (axisRotation, textRotation, direction) { var rotationDiff = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["remRadian"])(textRotation - axisRotation); var textAlign; var textVerticalAlign; if (Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["isRadianAroundZero"])(rotationDiff)) { // Label is parallel with axis line. textVerticalAlign = direction > 0 ? 'top' : 'bottom'; textAlign = 'center'; } else if (Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["isRadianAroundZero"])(rotationDiff - PI)) { // Label is inverse parallel with axis line. textVerticalAlign = direction > 0 ? 'bottom' : 'top'; textAlign = 'center'; } else { textVerticalAlign = 'middle'; if (rotationDiff > 0 && rotationDiff < PI) { textAlign = direction > 0 ? 'right' : 'left'; } else { textAlign = direction > 0 ? 'left' : 'right'; } } return { rotation: rotationDiff, textAlign: textAlign, textVerticalAlign: textVerticalAlign }; }; AxisBuilder.makeAxisEventDataBase = function (axisModel) { var eventData = { componentType: axisModel.mainType, componentIndex: axisModel.componentIndex }; eventData[axisModel.mainType + 'Index'] = axisModel.componentIndex; return eventData; }; AxisBuilder.isLabelSilent = function (axisModel) { var tooltipOpt = axisModel.get('tooltip'); return axisModel.get('silent') // Consider mouse cursor, add these restrictions. || !(axisModel.get('triggerEvent') || tooltipOpt && tooltipOpt.show); }; return AxisBuilder; }(); ; var builders = { axisLine: function (opt, axisModel, group, transformGroup) { var shown = axisModel.get(['axisLine', 'show']); if (shown === 'auto' && opt.handleAutoShown) { shown = opt.handleAutoShown('axisLine'); } if (!shown) { return; } var extent = axisModel.axis.getExtent(); var matrix = transformGroup.transform; var pt1 = [extent[0], 0]; var pt2 = [extent[1], 0]; var inverse = pt1[0] > pt2[0]; if (matrix) { Object(zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_8__["applyTransform"])(pt1, pt1, matrix); Object(zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_8__["applyTransform"])(pt2, pt2, matrix); } var lineStyle = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({ lineCap: 'round' }, axisModel.getModel(['axisLine', 'lineStyle']).getLineStyle()); var line = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Line"]({ shape: { x1: pt1[0], y1: pt1[1], x2: pt2[0], y2: pt2[1] }, style: lineStyle, strokeContainThreshold: opt.strokeContainThreshold || 5, silent: true, z2: 1 }); _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["subPixelOptimizeLine"](line.shape, line.style.lineWidth); line.anid = 'line'; group.add(line); var arrows = axisModel.get(['axisLine', 'symbol']); if (arrows != null) { var arrowSize = axisModel.get(['axisLine', 'symbolSize']); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(arrows)) { // Use the same arrow for start and end point arrows = [arrows, arrows]; } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(arrowSize) || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isNumber"])(arrowSize)) { // Use the same size for width and height arrowSize = [arrowSize, arrowSize]; } var arrowOffset = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_6__["normalizeSymbolOffset"])(axisModel.get(['axisLine', 'symbolOffset']) || 0, arrowSize); var symbolWidth_1 = arrowSize[0]; var symbolHeight_1 = arrowSize[1]; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])([{ rotate: opt.rotation + Math.PI / 2, offset: arrowOffset[0], r: 0 }, { rotate: opt.rotation - Math.PI / 2, offset: arrowOffset[1], r: Math.sqrt((pt1[0] - pt2[0]) * (pt1[0] - pt2[0]) + (pt1[1] - pt2[1]) * (pt1[1] - pt2[1])) }], function (point, index) { if (arrows[index] !== 'none' && arrows[index] != null) { var symbol = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_6__["createSymbol"])(arrows[index], -symbolWidth_1 / 2, -symbolHeight_1 / 2, symbolWidth_1, symbolHeight_1, lineStyle.stroke, true); // Calculate arrow position with offset var r = point.r + point.offset; var pt = inverse ? pt2 : pt1; symbol.attr({ rotation: point.rotate, x: pt[0] + r * Math.cos(opt.rotation), y: pt[1] - r * Math.sin(opt.rotation), silent: true, z2: 11 }); group.add(symbol); } }); } }, axisTickLabel: function (opt, axisModel, group, transformGroup) { var ticksEls = buildAxisMajorTicks(group, transformGroup, axisModel, opt); var labelEls = buildAxisLabel(group, transformGroup, axisModel, opt); fixMinMaxLabelShow(axisModel, labelEls, ticksEls); buildAxisMinorTicks(group, transformGroup, axisModel, opt.tickDirection); // This bit fixes the label overlap issue for the time chart. // See https://github.com/apache/echarts/issues/14266 for more. if (axisModel.get(['axisLabel', 'hideOverlap'])) { var labelList = Object(_label_labelLayoutHelper_js__WEBPACK_IMPORTED_MODULE_10__["prepareLayoutList"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(labelEls, function (label) { return { label: label, priority: label.z2, defaultAttr: { ignore: label.ignore } }; })); Object(_label_labelLayoutHelper_js__WEBPACK_IMPORTED_MODULE_10__["hideOverlap"])(labelList); } }, axisName: function (opt, axisModel, group, transformGroup) { var name = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve"])(opt.axisName, axisModel.get('name')); if (!name) { return; } var nameLocation = axisModel.get('nameLocation'); var nameDirection = opt.nameDirection; var textStyleModel = axisModel.getModel('nameTextStyle'); var gap = axisModel.get('nameGap') || 0; var extent = axisModel.axis.getExtent(); var gapSignal = extent[0] > extent[1] ? -1 : 1; var pos = [nameLocation === 'start' ? extent[0] - gapSignal * gap : nameLocation === 'end' ? extent[1] + gapSignal * gap : (extent[0] + extent[1]) / 2, // Reuse labelOffset. isNameLocationCenter(nameLocation) ? opt.labelOffset + nameDirection * gap : 0]; var labelLayout; var nameRotation = axisModel.get('nameRotate'); if (nameRotation != null) { nameRotation = nameRotation * PI / 180; // To radian. } var axisNameAvailableWidth; if (isNameLocationCenter(nameLocation)) { labelLayout = AxisBuilder.innerTextLayout(opt.rotation, nameRotation != null ? nameRotation : opt.rotation, // Adapt to axis. nameDirection); } else { labelLayout = endTextLayout(opt.rotation, nameLocation, nameRotation || 0, extent); axisNameAvailableWidth = opt.axisNameAvailableWidth; if (axisNameAvailableWidth != null) { axisNameAvailableWidth = Math.abs(axisNameAvailableWidth / Math.sin(labelLayout.rotation)); !isFinite(axisNameAvailableWidth) && (axisNameAvailableWidth = null); } } var textFont = textStyleModel.getFont(); var truncateOpt = axisModel.get('nameTruncate', true) || {}; var ellipsis = truncateOpt.ellipsis; var maxWidth = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve"])(opt.nameTruncateMaxWidth, truncateOpt.maxWidth, axisNameAvailableWidth); var textEl = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Text"]({ x: pos[0], y: pos[1], rotation: labelLayout.rotation, silent: AxisBuilder.isLabelSilent(axisModel), style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_3__["createTextStyle"])(textStyleModel, { text: name, font: textFont, overflow: 'truncate', width: maxWidth, ellipsis: ellipsis, fill: textStyleModel.getTextColor() || axisModel.get(['axisLine', 'lineStyle', 'color']), align: textStyleModel.get('align') || labelLayout.textAlign, verticalAlign: textStyleModel.get('verticalAlign') || labelLayout.textVerticalAlign }), z2: 1 }); _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["setTooltipConfig"]({ el: textEl, componentModel: axisModel, itemName: name }); textEl.__fullText = name; // Id for animation textEl.anid = 'name'; if (axisModel.get('triggerEvent')) { var eventData = AxisBuilder.makeAxisEventDataBase(axisModel); eventData.targetType = 'axisName'; eventData.name = name; Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_2__["getECData"])(textEl).eventData = eventData; } // FIXME transformGroup.add(textEl); textEl.updateTransform(); group.add(textEl); textEl.decomposeTransform(); } }; function endTextLayout(rotation, textPosition, textRotate, extent) { var rotationDiff = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["remRadian"])(textRotate - rotation); var textAlign; var textVerticalAlign; var inverse = extent[0] > extent[1]; var onLeft = textPosition === 'start' && !inverse || textPosition !== 'start' && inverse; if (Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["isRadianAroundZero"])(rotationDiff - PI / 2)) { textVerticalAlign = onLeft ? 'bottom' : 'top'; textAlign = 'center'; } else if (Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["isRadianAroundZero"])(rotationDiff - PI * 1.5)) { textVerticalAlign = onLeft ? 'top' : 'bottom'; textAlign = 'center'; } else { textVerticalAlign = 'middle'; if (rotationDiff < PI * 1.5 && rotationDiff > PI / 2) { textAlign = onLeft ? 'left' : 'right'; } else { textAlign = onLeft ? 'right' : 'left'; } } return { rotation: rotationDiff, textAlign: textAlign, textVerticalAlign: textVerticalAlign }; } function fixMinMaxLabelShow(axisModel, labelEls, tickEls) { if (Object(_coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_9__["shouldShowAllLabels"])(axisModel.axis)) { return; } // If min or max are user set, we need to check // If the tick on min(max) are overlap on their neighbour tick // If they are overlapped, we need to hide the min(max) tick label var showMinLabel = axisModel.get(['axisLabel', 'showMinLabel']); var showMaxLabel = axisModel.get(['axisLabel', 'showMaxLabel']); // FIXME // Have not consider onBand yet, where tick els is more than label els. labelEls = labelEls || []; tickEls = tickEls || []; var firstLabel = labelEls[0]; var nextLabel = labelEls[1]; var lastLabel = labelEls[labelEls.length - 1]; var prevLabel = labelEls[labelEls.length - 2]; var firstTick = tickEls[0]; var nextTick = tickEls[1]; var lastTick = tickEls[tickEls.length - 1]; var prevTick = tickEls[tickEls.length - 2]; if (showMinLabel === false) { ignoreEl(firstLabel); ignoreEl(firstTick); } else if (isTwoLabelOverlapped(firstLabel, nextLabel)) { if (showMinLabel) { ignoreEl(nextLabel); ignoreEl(nextTick); } else { ignoreEl(firstLabel); ignoreEl(firstTick); } } if (showMaxLabel === false) { ignoreEl(lastLabel); ignoreEl(lastTick); } else if (isTwoLabelOverlapped(prevLabel, lastLabel)) { if (showMaxLabel) { ignoreEl(prevLabel); ignoreEl(prevTick); } else { ignoreEl(lastLabel); ignoreEl(lastTick); } } } function ignoreEl(el) { el && (el.ignore = true); } function isTwoLabelOverlapped(current, next) { // current and next has the same rotation. var firstRect = current && current.getBoundingRect().clone(); var nextRect = next && next.getBoundingRect().clone(); if (!firstRect || !nextRect) { return; } // When checking intersect of two rotated labels, we use mRotationBack // to avoid that boundingRect is enlarge when using `boundingRect.applyTransform`. var mRotationBack = zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_7__["identity"]([]); zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_7__["rotate"](mRotationBack, mRotationBack, -current.rotation); firstRect.applyTransform(zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_7__["mul"]([], mRotationBack, current.getLocalTransform())); nextRect.applyTransform(zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_7__["mul"]([], mRotationBack, next.getLocalTransform())); return firstRect.intersect(nextRect); } function isNameLocationCenter(nameLocation) { return nameLocation === 'middle' || nameLocation === 'center'; } function createTicks(ticksCoords, tickTransform, tickEndCoord, tickLineStyle, anidPrefix) { var tickEls = []; var pt1 = []; var pt2 = []; for (var i = 0; i < ticksCoords.length; i++) { var tickCoord = ticksCoords[i].coord; pt1[0] = tickCoord; pt1[1] = 0; pt2[0] = tickCoord; pt2[1] = tickEndCoord; if (tickTransform) { Object(zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_8__["applyTransform"])(pt1, pt1, tickTransform); Object(zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_8__["applyTransform"])(pt2, pt2, tickTransform); } // Tick line, Not use group transform to have better line draw var tickEl = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Line"]({ shape: { x1: pt1[0], y1: pt1[1], x2: pt2[0], y2: pt2[1] }, style: tickLineStyle, z2: 2, autoBatch: true, silent: true }); _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["subPixelOptimizeLine"](tickEl.shape, tickEl.style.lineWidth); tickEl.anid = anidPrefix + '_' + ticksCoords[i].tickValue; tickEls.push(tickEl); } return tickEls; } function buildAxisMajorTicks(group, transformGroup, axisModel, opt) { var axis = axisModel.axis; var tickModel = axisModel.getModel('axisTick'); var shown = tickModel.get('show'); if (shown === 'auto' && opt.handleAutoShown) { shown = opt.handleAutoShown('axisTick'); } if (!shown || axis.scale.isBlank()) { return; } var lineStyleModel = tickModel.getModel('lineStyle'); var tickEndCoord = opt.tickDirection * tickModel.get('length'); var ticksCoords = axis.getTicksCoords(); var ticksEls = createTicks(ticksCoords, transformGroup.transform, tickEndCoord, Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"])(lineStyleModel.getLineStyle(), { stroke: axisModel.get(['axisLine', 'lineStyle', 'color']) }), 'ticks'); for (var i = 0; i < ticksEls.length; i++) { group.add(ticksEls[i]); } return ticksEls; } function buildAxisMinorTicks(group, transformGroup, axisModel, tickDirection) { var axis = axisModel.axis; var minorTickModel = axisModel.getModel('minorTick'); if (!minorTickModel.get('show') || axis.scale.isBlank()) { return; } var minorTicksCoords = axis.getMinorTicksCoords(); if (!minorTicksCoords.length) { return; } var lineStyleModel = minorTickModel.getModel('lineStyle'); var tickEndCoord = tickDirection * minorTickModel.get('length'); var minorTickLineStyle = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"])(lineStyleModel.getLineStyle(), Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"])(axisModel.getModel('axisTick').getLineStyle(), { stroke: axisModel.get(['axisLine', 'lineStyle', 'color']) })); for (var i = 0; i < minorTicksCoords.length; i++) { var minorTicksEls = createTicks(minorTicksCoords[i], transformGroup.transform, tickEndCoord, minorTickLineStyle, 'minorticks_' + i); for (var k = 0; k < minorTicksEls.length; k++) { group.add(minorTicksEls[k]); } } } function buildAxisLabel(group, transformGroup, axisModel, opt) { var axis = axisModel.axis; var show = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve"])(opt.axisLabelShow, axisModel.get(['axisLabel', 'show'])); if (!show || axis.scale.isBlank()) { return; } var labelModel = axisModel.getModel('axisLabel'); var labelMargin = labelModel.get('margin'); var labels = axis.getViewLabels(); // Special label rotate. var labelRotation = (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve"])(opt.labelRotate, labelModel.get('rotate')) || 0) * PI / 180; var labelLayout = AxisBuilder.innerTextLayout(opt.rotation, labelRotation, opt.labelDirection); var rawCategoryData = axisModel.getCategories && axisModel.getCategories(true); var labelEls = []; var silent = AxisBuilder.isLabelSilent(axisModel); var triggerEvent = axisModel.get('triggerEvent'); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(labels, function (labelItem, index) { var tickValue = axis.scale.type === 'ordinal' ? axis.scale.getRawOrdinalNumber(labelItem.tickValue) : labelItem.tickValue; var formattedLabel = labelItem.formattedLabel; var rawLabel = labelItem.rawLabel; var itemLabelModel = labelModel; if (rawCategoryData && rawCategoryData[tickValue]) { var rawCategoryItem = rawCategoryData[tickValue]; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(rawCategoryItem) && rawCategoryItem.textStyle) { itemLabelModel = new _model_Model_js__WEBPACK_IMPORTED_MODULE_4__["default"](rawCategoryItem.textStyle, labelModel, axisModel.ecModel); } } var textColor = itemLabelModel.getTextColor() || axisModel.get(['axisLine', 'lineStyle', 'color']); var tickCoord = axis.dataToCoord(tickValue); var align = itemLabelModel.getShallow('align', true) || labelLayout.textAlign; var alignMin = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(itemLabelModel.getShallow('alignMinLabel', true), align); var alignMax = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(itemLabelModel.getShallow('alignMaxLabel', true), align); var verticalAlign = itemLabelModel.getShallow('verticalAlign', true) || itemLabelModel.getShallow('baseline', true) || labelLayout.textVerticalAlign; var verticalAlignMin = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(itemLabelModel.getShallow('verticalAlignMinLabel', true), verticalAlign); var verticalAlignMax = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(itemLabelModel.getShallow('verticalAlignMaxLabel', true), verticalAlign); var textEl = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Text"]({ x: tickCoord, y: opt.labelOffset + opt.labelDirection * labelMargin, rotation: labelLayout.rotation, silent: silent, z2: 10 + (labelItem.level || 0), style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_3__["createTextStyle"])(itemLabelModel, { text: formattedLabel, align: index === 0 ? alignMin : index === labels.length - 1 ? alignMax : align, verticalAlign: index === 0 ? verticalAlignMin : index === labels.length - 1 ? verticalAlignMax : verticalAlign, fill: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(textColor) ? textColor( // (1) In category axis with data zoom, tick is not the original // index of axis.data. So tick should not be exposed to user // in category axis. // (2) Compatible with previous version, which always use formatted label as // input. But in interval scale the formatted label is like '223,445', which // maked user replace ','. So we modify it to return original val but remain // it as 'string' to avoid error in replacing. axis.type === 'category' ? rawLabel : axis.type === 'value' ? tickValue + '' : tickValue, index) : textColor }) }); textEl.anid = 'label_' + tickValue; _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["setTooltipConfig"]({ el: textEl, componentModel: axisModel, itemName: formattedLabel, formatterParamsExtra: { isTruncated: function () { return textEl.isTruncated; }, value: rawLabel, tickIndex: index } }); // Pack data for mouse event if (triggerEvent) { var eventData = AxisBuilder.makeAxisEventDataBase(axisModel); eventData.targetType = 'axisLabel'; eventData.value = rawLabel; eventData.tickIndex = index; if (axis.type === 'category') { eventData.dataIndex = tickValue; } Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_2__["getECData"])(textEl).eventData = eventData; } // FIXME transformGroup.add(textEl); textEl.updateTransform(); labelEls.push(textEl); group.add(textEl); textEl.decomposeTransform(); }); return labelEls; } /* harmony default export */ __webpack_exports__["default"] = (AxisBuilder); /***/ }), /***/ "./node_modules/echarts/lib/component/axis/AxisView.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/component/axis/AxisView.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _axisPointer_modelHelper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../axisPointer/modelHelper.js */ "./node_modules/echarts/lib/component/axisPointer/modelHelper.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var axisPointerClazz = {}; /** * Base class of AxisView. */ var AxisView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AxisView, _super); function AxisView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = AxisView.type; return _this; } /** * @override */ AxisView.prototype.render = function (axisModel, ecModel, api, payload) { // FIXME // This process should proformed after coordinate systems updated // (axis scale updated), and should be performed each time update. // So put it here temporarily, although it is not appropriate to // put a model-writing procedure in `view`. this.axisPointerClass && _axisPointer_modelHelper_js__WEBPACK_IMPORTED_MODULE_1__["fixValue"](axisModel); _super.prototype.render.apply(this, arguments); this._doUpdateAxisPointerClass(axisModel, api, true); }; /** * Action handler. */ AxisView.prototype.updateAxisPointer = function (axisModel, ecModel, api, payload) { this._doUpdateAxisPointerClass(axisModel, api, false); }; /** * @override */ AxisView.prototype.remove = function (ecModel, api) { var axisPointer = this._axisPointer; axisPointer && axisPointer.remove(api); }; /** * @override */ AxisView.prototype.dispose = function (ecModel, api) { this._disposeAxisPointer(api); _super.prototype.dispose.apply(this, arguments); }; AxisView.prototype._doUpdateAxisPointerClass = function (axisModel, api, forceRender) { var Clazz = AxisView.getAxisPointerClass(this.axisPointerClass); if (!Clazz) { return; } var axisPointerModel = _axisPointer_modelHelper_js__WEBPACK_IMPORTED_MODULE_1__["getAxisPointerModel"](axisModel); axisPointerModel ? (this._axisPointer || (this._axisPointer = new Clazz())).render(axisModel, axisPointerModel, api, forceRender) : this._disposeAxisPointer(api); }; AxisView.prototype._disposeAxisPointer = function (api) { this._axisPointer && this._axisPointer.dispose(api); this._axisPointer = null; }; AxisView.registerAxisPointerClass = function (type, clazz) { if (true) { if (axisPointerClazz[type]) { throw new Error('axisPointer ' + type + ' exists'); } } axisPointerClazz[type] = clazz; }; ; AxisView.getAxisPointerClass = function (type) { return type && axisPointerClazz[type]; }; ; AxisView.type = 'axis'; return AxisView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /* harmony default export */ __webpack_exports__["default"] = (AxisView); /***/ }), /***/ "./node_modules/echarts/lib/component/axis/CartesianAxisView.js": /*!**********************************************************************!*\ !*** ./node_modules/echarts/lib/component/axis/CartesianAxisView.js ***! \**********************************************************************/ /*! exports provided: CartesianXAxisView, CartesianYAxisView, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CartesianXAxisView", function() { return CartesianXAxisView; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CartesianYAxisView", function() { return CartesianYAxisView; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _AxisBuilder_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AxisBuilder.js */ "./node_modules/echarts/lib/component/axis/AxisBuilder.js"); /* harmony import */ var _AxisView_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AxisView.js */ "./node_modules/echarts/lib/component/axis/AxisView.js"); /* harmony import */ var _coord_cartesian_cartesianAxisHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../coord/cartesian/cartesianAxisHelper.js */ "./node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js"); /* harmony import */ var _axisSplitHelper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./axisSplitHelper.js */ "./node_modules/echarts/lib/component/axis/axisSplitHelper.js"); /* harmony import */ var _scale_helper_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../scale/helper.js */ "./node_modules/echarts/lib/scale/helper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName']; var selfBuilderAttrs = ['splitArea', 'splitLine', 'minorSplitLine']; var CartesianAxisView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CartesianAxisView, _super); function CartesianAxisView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = CartesianAxisView.type; _this.axisPointerClass = 'CartesianAxisPointer'; return _this; } /** * @override */ CartesianAxisView.prototype.render = function (axisModel, ecModel, api, payload) { this.group.removeAll(); var oldAxisGroup = this._axisGroup; this._axisGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"](); this.group.add(this._axisGroup); if (!axisModel.get('show')) { return; } var gridModel = axisModel.getCoordSysModel(); var layout = _coord_cartesian_cartesianAxisHelper_js__WEBPACK_IMPORTED_MODULE_5__["layout"](gridModel, axisModel); var axisBuilder = new _AxisBuilder_js__WEBPACK_IMPORTED_MODULE_3__["default"](axisModel, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"]({ handleAutoShown: function (elementType) { var cartesians = gridModel.coordinateSystem.getCartesians(); for (var i = 0; i < cartesians.length; i++) { if (Object(_scale_helper_js__WEBPACK_IMPORTED_MODULE_7__["isIntervalOrLogScale"])(cartesians[i].getOtherAxis(axisModel.axis).scale)) { // Still show axis tick or axisLine if other axis is value / log return true; } } // Not show axisTick or axisLine if other axis is category / time return false; } }, layout)); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](axisBuilderAttrs, axisBuilder.add, axisBuilder); this._axisGroup.add(axisBuilder.getGroup()); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](selfBuilderAttrs, function (name) { if (axisModel.get([name, 'show'])) { axisElementBuilders[name](this, this._axisGroup, axisModel, gridModel); } }, this); // THIS is a special case for bar racing chart. // Update the axis label from the natural initial layout to // sorted layout should has no animation. var isInitialSortFromBarRacing = payload && payload.type === 'changeAxisOrder' && payload.isInitSort; if (!isInitialSortFromBarRacing) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["groupTransition"](oldAxisGroup, this._axisGroup, axisModel); } _super.prototype.render.call(this, axisModel, ecModel, api, payload); }; CartesianAxisView.prototype.remove = function () { Object(_axisSplitHelper_js__WEBPACK_IMPORTED_MODULE_6__["rectCoordAxisHandleRemove"])(this); }; CartesianAxisView.type = 'cartesianAxis'; return CartesianAxisView; }(_AxisView_js__WEBPACK_IMPORTED_MODULE_4__["default"]); var axisElementBuilders = { splitLine: function (axisView, axisGroup, axisModel, gridModel) { var axis = axisModel.axis; if (axis.scale.isBlank()) { return; } var splitLineModel = axisModel.getModel('splitLine'); var lineStyleModel = splitLineModel.getModel('lineStyle'); var lineColors = lineStyleModel.get('color'); var showMinLine = splitLineModel.get('showMinLine') !== false; var showMaxLine = splitLineModel.get('showMaxLine') !== false; lineColors = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](lineColors) ? lineColors : [lineColors]; var gridRect = gridModel.coordinateSystem.getRect(); var isHorizontal = axis.isHorizontal(); var lineCount = 0; var ticksCoords = axis.getTicksCoords({ tickModel: splitLineModel }); var p1 = []; var p2 = []; var lineStyle = lineStyleModel.getLineStyle(); for (var i = 0; i < ticksCoords.length; i++) { var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord); if (i === 0 && !showMinLine || i === ticksCoords.length - 1 && !showMaxLine) { continue; } var tickValue = ticksCoords[i].tickValue; if (isHorizontal) { p1[0] = tickCoord; p1[1] = gridRect.y; p2[0] = tickCoord; p2[1] = gridRect.y + gridRect.height; } else { p1[0] = gridRect.x; p1[1] = tickCoord; p2[0] = gridRect.x + gridRect.width; p2[1] = tickCoord; } var colorIndex = lineCount++ % lineColors.length; var line = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Line"]({ anid: tickValue != null ? 'line_' + tickValue : null, autoBatch: true, shape: { x1: p1[0], y1: p1[1], x2: p2[0], y2: p2[1] }, style: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]({ stroke: lineColors[colorIndex] }, lineStyle), silent: true }); _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["subPixelOptimizeLine"](line.shape, lineStyle.lineWidth); axisGroup.add(line); } }, minorSplitLine: function (axisView, axisGroup, axisModel, gridModel) { var axis = axisModel.axis; var minorSplitLineModel = axisModel.getModel('minorSplitLine'); var lineStyleModel = minorSplitLineModel.getModel('lineStyle'); var gridRect = gridModel.coordinateSystem.getRect(); var isHorizontal = axis.isHorizontal(); var minorTicksCoords = axis.getMinorTicksCoords(); if (!minorTicksCoords.length) { return; } var p1 = []; var p2 = []; var lineStyle = lineStyleModel.getLineStyle(); for (var i = 0; i < minorTicksCoords.length; i++) { for (var k = 0; k < minorTicksCoords[i].length; k++) { var tickCoord = axis.toGlobalCoord(minorTicksCoords[i][k].coord); if (isHorizontal) { p1[0] = tickCoord; p1[1] = gridRect.y; p2[0] = tickCoord; p2[1] = gridRect.y + gridRect.height; } else { p1[0] = gridRect.x; p1[1] = tickCoord; p2[0] = gridRect.x + gridRect.width; p2[1] = tickCoord; } var line = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Line"]({ anid: 'minor_line_' + minorTicksCoords[i][k].tickValue, autoBatch: true, shape: { x1: p1[0], y1: p1[1], x2: p2[0], y2: p2[1] }, style: lineStyle, silent: true }); _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["subPixelOptimizeLine"](line.shape, lineStyle.lineWidth); axisGroup.add(line); } } }, splitArea: function (axisView, axisGroup, axisModel, gridModel) { Object(_axisSplitHelper_js__WEBPACK_IMPORTED_MODULE_6__["rectCoordAxisBuildSplitArea"])(axisView, axisGroup, axisModel, gridModel); } }; var CartesianXAxisView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CartesianXAxisView, _super); function CartesianXAxisView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = CartesianXAxisView.type; return _this; } CartesianXAxisView.type = 'xAxis'; return CartesianXAxisView; }(CartesianAxisView); var CartesianYAxisView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CartesianYAxisView, _super); function CartesianYAxisView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = CartesianXAxisView.type; return _this; } CartesianYAxisView.type = 'yAxis'; return CartesianYAxisView; }(CartesianAxisView); /* harmony default export */ __webpack_exports__["default"] = (CartesianAxisView); /***/ }), /***/ "./node_modules/echarts/lib/component/axis/ParallelAxisView.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/component/axis/ParallelAxisView.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _AxisBuilder_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AxisBuilder.js */ "./node_modules/echarts/lib/component/axis/AxisBuilder.js"); /* harmony import */ var _helper_BrushController_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helper/BrushController.js */ "./node_modules/echarts/lib/component/helper/BrushController.js"); /* harmony import */ var _helper_brushHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helper/brushHelper.js */ "./node_modules/echarts/lib/component/helper/brushHelper.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var elementList = ['axisLine', 'axisTickLabel', 'axisName']; var ParallelAxisView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ParallelAxisView, _super); function ParallelAxisView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ParallelAxisView.type; return _this; } ParallelAxisView.prototype.init = function (ecModel, api) { _super.prototype.init.apply(this, arguments); (this._brushController = new _helper_BrushController_js__WEBPACK_IMPORTED_MODULE_3__["default"](api.getZr())).on('brush', zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](this._onBrush, this)); }; ParallelAxisView.prototype.render = function (axisModel, ecModel, api, payload) { if (fromAxisAreaSelect(axisModel, ecModel, payload)) { return; } this.axisModel = axisModel; this.api = api; this.group.removeAll(); var oldAxisGroup = this._axisGroup; this._axisGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["Group"](); this.group.add(this._axisGroup); if (!axisModel.get('show')) { return; } var coordSysModel = getCoordSysModel(axisModel, ecModel); var coordSys = coordSysModel.coordinateSystem; var areaSelectStyle = axisModel.getAreaSelectStyle(); var areaWidth = areaSelectStyle.width; var dim = axisModel.axis.dim; var axisLayout = coordSys.getAxisLayout(dim); var builderOpt = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"]({ strokeContainThreshold: areaWidth }, axisLayout); var axisBuilder = new _AxisBuilder_js__WEBPACK_IMPORTED_MODULE_2__["default"](axisModel, builderOpt); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](elementList, axisBuilder.add, axisBuilder); this._axisGroup.add(axisBuilder.getGroup()); this._refreshBrushController(builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api); _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["groupTransition"](oldAxisGroup, this._axisGroup, axisModel); }; // /** // * @override // */ // updateVisual(axisModel, ecModel, api, payload) { // this._brushController && this._brushController // .updateCovers(getCoverInfoList(axisModel)); // } ParallelAxisView.prototype._refreshBrushController = function (builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api) { // After filtering, axis may change, select area needs to be update. var extent = axisModel.axis.getExtent(); var extentLen = extent[1] - extent[0]; var extra = Math.min(30, Math.abs(extentLen) * 0.1); // Arbitrary value. // width/height might be negative, which will be // normalized in BoundingRect. var rect = _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["BoundingRect"].create({ x: extent[0], y: -areaWidth / 2, width: extentLen, height: areaWidth }); rect.x -= extra; rect.width += 2 * extra; this._brushController.mount({ enableGlobalPan: true, rotation: builderOpt.rotation, x: builderOpt.position[0], y: builderOpt.position[1] }).setPanels([{ panelId: 'pl', clipPath: _helper_brushHelper_js__WEBPACK_IMPORTED_MODULE_4__["makeRectPanelClipPath"](rect), isTargetByCursor: _helper_brushHelper_js__WEBPACK_IMPORTED_MODULE_4__["makeRectIsTargetByCursor"](rect, api, coordSysModel), getLinearBrushOtherExtent: _helper_brushHelper_js__WEBPACK_IMPORTED_MODULE_4__["makeLinearBrushOtherExtent"](rect, 0) }]).enableBrush({ brushType: 'lineX', brushStyle: areaSelectStyle, removeOnClick: true }).updateCovers(getCoverInfoList(axisModel)); }; ParallelAxisView.prototype._onBrush = function (eventParam) { var coverInfoList = eventParam.areas; // Do not cache these object, because the mey be changed. var axisModel = this.axisModel; var axis = axisModel.axis; var intervals = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](coverInfoList, function (coverInfo) { return [axis.coordToData(coverInfo.range[0], true), axis.coordToData(coverInfo.range[1], true)]; }); // If realtime is true, action is not dispatched on drag end, because // the drag end emits the same params with the last drag move event, // and may have some delay when using touch pad. if (!axisModel.option.realtime === eventParam.isEnd || eventParam.removeOnClick) { // jshint ignore:line this.api.dispatchAction({ type: 'axisAreaSelect', parallelAxisId: axisModel.id, intervals: intervals }); } }; ParallelAxisView.prototype.dispose = function () { this._brushController.dispose(); }; ParallelAxisView.type = 'parallelAxis'; return ParallelAxisView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_6__["default"]); function fromAxisAreaSelect(axisModel, ecModel, payload) { return payload && payload.type === 'axisAreaSelect' && ecModel.findComponents({ mainType: 'parallelAxis', query: payload })[0] === axisModel; } function getCoverInfoList(axisModel) { var axis = axisModel.axis; return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](axisModel.activeIntervals, function (interval) { return { brushType: 'lineX', panelId: 'pl', range: [axis.dataToCoord(interval[0], true), axis.dataToCoord(interval[1], true)] }; }); } function getCoordSysModel(axisModel, ecModel) { return ecModel.getComponent('parallel', axisModel.get('parallelIndex')); } /* harmony default export */ __webpack_exports__["default"] = (ParallelAxisView); /***/ }), /***/ "./node_modules/echarts/lib/component/axis/RadiusAxisView.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/component/axis/RadiusAxisView.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _AxisBuilder_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AxisBuilder.js */ "./node_modules/echarts/lib/component/axis/AxisBuilder.js"); /* harmony import */ var _AxisView_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AxisView.js */ "./node_modules/echarts/lib/component/axis/AxisView.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName']; var selfBuilderAttrs = ['splitLine', 'splitArea', 'minorSplitLine']; var RadiusAxisView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RadiusAxisView, _super); function RadiusAxisView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = RadiusAxisView.type; _this.axisPointerClass = 'PolarAxisPointer'; return _this; } RadiusAxisView.prototype.render = function (radiusAxisModel, ecModel) { this.group.removeAll(); if (!radiusAxisModel.get('show')) { return; } var oldAxisGroup = this._axisGroup; var newAxisGroup = this._axisGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"](); this.group.add(newAxisGroup); var radiusAxis = radiusAxisModel.axis; var polar = radiusAxis.polar; var angleAxis = polar.getAngleAxis(); var ticksCoords = radiusAxis.getTicksCoords(); var minorTicksCoords = radiusAxis.getMinorTicksCoords(); var axisAngle = angleAxis.getExtent()[0]; var radiusExtent = radiusAxis.getExtent(); var layout = layoutAxis(polar, radiusAxisModel, axisAngle); var axisBuilder = new _AxisBuilder_js__WEBPACK_IMPORTED_MODULE_3__["default"](radiusAxisModel, layout); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](axisBuilderAttrs, axisBuilder.add, axisBuilder); newAxisGroup.add(axisBuilder.getGroup()); _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["groupTransition"](oldAxisGroup, newAxisGroup, radiusAxisModel); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](selfBuilderAttrs, function (name) { if (radiusAxisModel.get([name, 'show']) && !radiusAxis.scale.isBlank()) { axisElementBuilders[name](this.group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords, minorTicksCoords); } }, this); }; RadiusAxisView.type = 'radiusAxis'; return RadiusAxisView; }(_AxisView_js__WEBPACK_IMPORTED_MODULE_4__["default"]); var axisElementBuilders = { splitLine: function (group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) { var splitLineModel = radiusAxisModel.getModel('splitLine'); var lineStyleModel = splitLineModel.getModel('lineStyle'); var lineColors = lineStyleModel.get('color'); var lineCount = 0; var angleAxis = polar.getAngleAxis(); var RADIAN = Math.PI / 180; var angleExtent = angleAxis.getExtent(); var shapeType = Math.abs(angleExtent[1] - angleExtent[0]) === 360 ? 'Circle' : 'Arc'; lineColors = lineColors instanceof Array ? lineColors : [lineColors]; var splitLines = []; for (var i = 0; i < ticksCoords.length; i++) { var colorIndex = lineCount++ % lineColors.length; splitLines[colorIndex] = splitLines[colorIndex] || []; splitLines[colorIndex].push(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__[shapeType]({ shape: { cx: polar.cx, cy: polar.cy, // ensure circle radius >= 0 r: Math.max(ticksCoords[i].coord, 0), startAngle: -angleExtent[0] * RADIAN, endAngle: -angleExtent[1] * RADIAN, clockwise: angleAxis.inverse } })); } // Simple optimization // Batching the lines if color are the same for (var i = 0; i < splitLines.length; i++) { group.add(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["mergePath"](splitLines[i], { style: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]({ stroke: lineColors[i % lineColors.length], fill: null }, lineStyleModel.getLineStyle()), silent: true })); } }, minorSplitLine: function (group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords, minorTicksCoords) { if (!minorTicksCoords.length) { return; } var minorSplitLineModel = radiusAxisModel.getModel('minorSplitLine'); var lineStyleModel = minorSplitLineModel.getModel('lineStyle'); var lines = []; for (var i = 0; i < minorTicksCoords.length; i++) { for (var k = 0; k < minorTicksCoords[i].length; k++) { lines.push(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Circle"]({ shape: { cx: polar.cx, cy: polar.cy, r: minorTicksCoords[i][k].coord } })); } } group.add(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["mergePath"](lines, { style: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]({ fill: null }, lineStyleModel.getLineStyle()), silent: true })); }, splitArea: function (group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) { if (!ticksCoords.length) { return; } var splitAreaModel = radiusAxisModel.getModel('splitArea'); var areaStyleModel = splitAreaModel.getModel('areaStyle'); var areaColors = areaStyleModel.get('color'); var lineCount = 0; areaColors = areaColors instanceof Array ? areaColors : [areaColors]; var splitAreas = []; var prevRadius = ticksCoords[0].coord; for (var i = 1; i < ticksCoords.length; i++) { var colorIndex = lineCount++ % areaColors.length; splitAreas[colorIndex] = splitAreas[colorIndex] || []; splitAreas[colorIndex].push(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Sector"]({ shape: { cx: polar.cx, cy: polar.cy, r0: prevRadius, r: ticksCoords[i].coord, startAngle: 0, endAngle: Math.PI * 2 }, silent: true })); prevRadius = ticksCoords[i].coord; } // Simple optimization // Batching the lines if color are the same for (var i = 0; i < splitAreas.length; i++) { group.add(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["mergePath"](splitAreas[i], { style: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]({ fill: areaColors[i % areaColors.length] }, areaStyleModel.getAreaStyle()), silent: true })); } } }; /** * @inner */ function layoutAxis(polar, radiusAxisModel, axisAngle) { return { position: [polar.cx, polar.cy], rotation: axisAngle / 180 * Math.PI, labelDirection: -1, tickDirection: -1, nameDirection: 1, labelRotate: radiusAxisModel.getModel('axisLabel').get('rotate'), // Over splitLine and splitArea z2: 1 }; } /* harmony default export */ __webpack_exports__["default"] = (RadiusAxisView); /***/ }), /***/ "./node_modules/echarts/lib/component/axis/SingleAxisView.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/component/axis/SingleAxisView.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _AxisBuilder_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AxisBuilder.js */ "./node_modules/echarts/lib/component/axis/AxisBuilder.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _coord_single_singleAxisHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../coord/single/singleAxisHelper.js */ "./node_modules/echarts/lib/coord/single/singleAxisHelper.js"); /* harmony import */ var _AxisView_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./AxisView.js */ "./node_modules/echarts/lib/component/axis/AxisView.js"); /* harmony import */ var _axisSplitHelper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./axisSplitHelper.js */ "./node_modules/echarts/lib/component/axis/axisSplitHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName']; var selfBuilderAttrs = ['splitArea', 'splitLine']; var SingleAxisView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SingleAxisView, _super); function SingleAxisView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = SingleAxisView.type; _this.axisPointerClass = 'SingleAxisPointer'; return _this; } SingleAxisView.prototype.render = function (axisModel, ecModel, api, payload) { var group = this.group; group.removeAll(); var oldAxisGroup = this._axisGroup; this._axisGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Group"](); var layout = _coord_single_singleAxisHelper_js__WEBPACK_IMPORTED_MODULE_4__["layout"](axisModel); var axisBuilder = new _AxisBuilder_js__WEBPACK_IMPORTED_MODULE_2__["default"](axisModel, layout); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](axisBuilderAttrs, axisBuilder.add, axisBuilder); group.add(this._axisGroup); group.add(axisBuilder.getGroup()); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](selfBuilderAttrs, function (name) { if (axisModel.get([name, 'show'])) { axisElementBuilders[name](this, this.group, this._axisGroup, axisModel); } }, this); _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["groupTransition"](oldAxisGroup, this._axisGroup, axisModel); _super.prototype.render.call(this, axisModel, ecModel, api, payload); }; SingleAxisView.prototype.remove = function () { Object(_axisSplitHelper_js__WEBPACK_IMPORTED_MODULE_6__["rectCoordAxisHandleRemove"])(this); }; SingleAxisView.type = 'singleAxis'; return SingleAxisView; }(_AxisView_js__WEBPACK_IMPORTED_MODULE_5__["default"]); var axisElementBuilders = { splitLine: function (axisView, group, axisGroup, axisModel) { var axis = axisModel.axis; if (axis.scale.isBlank()) { return; } var splitLineModel = axisModel.getModel('splitLine'); var lineStyleModel = splitLineModel.getModel('lineStyle'); var lineColors = lineStyleModel.get('color'); lineColors = lineColors instanceof Array ? lineColors : [lineColors]; var lineWidth = lineStyleModel.get('width'); var gridRect = axisModel.coordinateSystem.getRect(); var isHorizontal = axis.isHorizontal(); var splitLines = []; var lineCount = 0; var ticksCoords = axis.getTicksCoords({ tickModel: splitLineModel }); var p1 = []; var p2 = []; for (var i = 0; i < ticksCoords.length; ++i) { var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord); if (isHorizontal) { p1[0] = tickCoord; p1[1] = gridRect.y; p2[0] = tickCoord; p2[1] = gridRect.y + gridRect.height; } else { p1[0] = gridRect.x; p1[1] = tickCoord; p2[0] = gridRect.x + gridRect.width; p2[1] = tickCoord; } var line = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Line"]({ shape: { x1: p1[0], y1: p1[1], x2: p2[0], y2: p2[1] }, silent: true }); _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["subPixelOptimizeLine"](line.shape, lineWidth); var colorIndex = lineCount++ % lineColors.length; splitLines[colorIndex] = splitLines[colorIndex] || []; splitLines[colorIndex].push(line); } var lineStyle = lineStyleModel.getLineStyle(['color']); for (var i = 0; i < splitLines.length; ++i) { group.add(_util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["mergePath"](splitLines[i], { style: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]({ stroke: lineColors[i % lineColors.length] }, lineStyle), silent: true })); } }, splitArea: function (axisView, group, axisGroup, axisModel) { Object(_axisSplitHelper_js__WEBPACK_IMPORTED_MODULE_6__["rectCoordAxisBuildSplitArea"])(axisView, axisGroup, axisModel, axisModel); } }; /* harmony default export */ __webpack_exports__["default"] = (SingleAxisView); /***/ }), /***/ "./node_modules/echarts/lib/component/axis/axisSplitHelper.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/component/axis/axisSplitHelper.js ***! \********************************************************************/ /*! exports provided: rectCoordAxisBuildSplitArea, rectCoordAxisHandleRemove */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rectCoordAxisBuildSplitArea", function() { return rectCoordAxisBuildSplitArea; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rectCoordAxisHandleRemove", function() { return rectCoordAxisHandleRemove; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_2__["makeInner"])(); function rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, gridModel) { var axis = axisModel.axis; if (axis.scale.isBlank()) { return; } // TODO: TYPE var splitAreaModel = axisModel.getModel('splitArea'); var areaStyleModel = splitAreaModel.getModel('areaStyle'); var areaColors = areaStyleModel.get('color'); var gridRect = gridModel.coordinateSystem.getRect(); var ticksCoords = axis.getTicksCoords({ tickModel: splitAreaModel, clamp: true }); if (!ticksCoords.length) { return; } // For Making appropriate splitArea animation, the color and anid // should be corresponding to previous one if possible. var areaColorsLen = areaColors.length; var lastSplitAreaColors = inner(axisView).splitAreaColors; var newSplitAreaColors = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](); var colorIndex = 0; if (lastSplitAreaColors) { for (var i = 0; i < ticksCoords.length; i++) { var cIndex = lastSplitAreaColors.get(ticksCoords[i].tickValue); if (cIndex != null) { colorIndex = (cIndex + (areaColorsLen - 1) * i) % areaColorsLen; break; } } } var prev = axis.toGlobalCoord(ticksCoords[0].coord); var areaStyle = areaStyleModel.getAreaStyle(); areaColors = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](areaColors) ? areaColors : [areaColors]; for (var i = 1; i < ticksCoords.length; i++) { var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord); var x = void 0; var y = void 0; var width = void 0; var height = void 0; if (axis.isHorizontal()) { x = prev; y = gridRect.y; width = tickCoord - x; height = gridRect.height; prev = x + width; } else { x = gridRect.x; y = prev; width = gridRect.width; height = tickCoord - y; prev = y + height; } var tickValue = ticksCoords[i - 1].tickValue; tickValue != null && newSplitAreaColors.set(tickValue, colorIndex); axisGroup.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Rect"]({ anid: tickValue != null ? 'area_' + tickValue : null, shape: { x: x, y: y, width: width, height: height }, style: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"]({ fill: areaColors[colorIndex] }, areaStyle), autoBatch: true, silent: true })); colorIndex = (colorIndex + 1) % areaColorsLen; } inner(axisView).splitAreaColors = newSplitAreaColors; } function rectCoordAxisHandleRemove(axisView) { inner(axisView).splitAreaColors = null; } /***/ }), /***/ "./node_modules/echarts/lib/component/axis/parallelAxisAction.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/axis/parallelAxisAction.js ***! \***********************************************************************/ /*! exports provided: installParallelActions */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "installParallelActions", function() { return installParallelActions; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var actionInfo = { type: 'axisAreaSelect', event: 'axisAreaSelected' // update: 'updateVisual' }; function installParallelActions(registers) { registers.registerAction(actionInfo, function (payload, ecModel) { ecModel.eachComponent({ mainType: 'parallelAxis', query: payload }, function (parallelAxisModel) { parallelAxisModel.axis.model.setActiveIntervals(payload.intervals); }); }); /** * @payload */ registers.registerAction('parallelAxisExpand', function (payload, ecModel) { ecModel.eachComponent({ mainType: 'parallel', query: payload }, function (parallelModel) { parallelModel.setAxisExpand(payload); }); }); } /***/ }), /***/ "./node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js": /*!****************************************************************************!*\ !*** ./node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var AxisPointerModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AxisPointerModel, _super); function AxisPointerModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = AxisPointerModel.type; return _this; } AxisPointerModel.type = 'axisPointer'; AxisPointerModel.defaultOption = { // 'auto' means that show when triggered by tooltip or handle. show: 'auto', // zlevel: 0, z: 50, type: 'line', // axispointer triggered by tootip determine snap automatically, // see `modelHelper`. snap: false, triggerTooltip: true, triggerEmphasis: true, value: null, status: null, link: [], // Do not set 'auto' here, otherwise global animation: false // will not effect at this axispointer. animation: null, animationDurationUpdate: 200, lineStyle: { color: '#B9BEC9', width: 1, type: 'dashed' }, shadowStyle: { color: 'rgba(210,219,238,0.2)' }, label: { show: true, formatter: null, precision: 'auto', margin: 3, color: '#fff', padding: [5, 7, 5, 7], backgroundColor: 'auto', borderColor: null, borderWidth: 0, borderRadius: 3 }, handle: { show: false, // eslint-disable-next-line icon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z', size: 45, // handle margin is from symbol center to axis, which is stable when circular move. margin: 50, // color: '#1b8bbd' // color: '#2f4554' color: '#333', shadowBlur: 3, shadowColor: '#aaa', shadowOffsetX: 0, shadowOffsetY: 2, // For mobile performance throttle: 40 } }; return AxisPointerModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (AxisPointerModel); /***/ }), /***/ "./node_modules/echarts/lib/component/axisPointer/AxisPointerView.js": /*!***************************************************************************!*\ !*** ./node_modules/echarts/lib/component/axisPointer/AxisPointerView.js ***! \***************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _globalListener_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./globalListener.js */ "./node_modules/echarts/lib/component/axisPointer/globalListener.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var AxisPointerView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AxisPointerView, _super); function AxisPointerView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = AxisPointerView.type; return _this; } AxisPointerView.prototype.render = function (globalAxisPointerModel, ecModel, api) { var globalTooltipModel = ecModel.getComponent('tooltip'); var triggerOn = globalAxisPointerModel.get('triggerOn') || globalTooltipModel && globalTooltipModel.get('triggerOn') || 'mousemove|click'; // Register global listener in AxisPointerView to enable // AxisPointerView to be independent to Tooltip. _globalListener_js__WEBPACK_IMPORTED_MODULE_1__["register"]('axisPointer', api, function (currTrigger, e, dispatchAction) { // If 'none', it is not controlled by mouse totally. if (triggerOn !== 'none' && (currTrigger === 'leave' || triggerOn.indexOf(currTrigger) >= 0)) { dispatchAction({ type: 'updateAxisPointer', currTrigger: currTrigger, x: e && e.offsetX, y: e && e.offsetY }); } }); }; AxisPointerView.prototype.remove = function (ecModel, api) { _globalListener_js__WEBPACK_IMPORTED_MODULE_1__["unregister"]('axisPointer', api); }; AxisPointerView.prototype.dispose = function (ecModel, api) { _globalListener_js__WEBPACK_IMPORTED_MODULE_1__["unregister"]('axisPointer', api); }; AxisPointerView.type = 'axisPointer'; return AxisPointerView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /* harmony default export */ __webpack_exports__["default"] = (AxisPointerView); /***/ }), /***/ "./node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js": /*!***************************************************************************!*\ !*** ./node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js ***! \***************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _modelHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modelHelper.js */ "./node_modules/echarts/lib/component/axisPointer/modelHelper.js"); /* harmony import */ var zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/event.js */ "./node_modules/zrender/lib/core/event.js"); /* harmony import */ var _util_throttle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/throttle.js */ "./node_modules/echarts/lib/util/throttle.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_5__["makeInner"])(); var clone = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"]; var bind = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"]; /** * Base axis pointer class in 2D. */ var BaseAxisPointer = /** @class */function () { function BaseAxisPointer() { this._dragging = false; /** * In px, arbitrary value. Do not set too small, * no animation is ok for most cases. */ this.animationThreshold = 15; } /** * @implement */ BaseAxisPointer.prototype.render = function (axisModel, axisPointerModel, api, forceRender) { var value = axisPointerModel.get('value'); var status = axisPointerModel.get('status'); // Bind them to `this`, not in closure, otherwise they will not // be replaced when user calling setOption in not merge mode. this._axisModel = axisModel; this._axisPointerModel = axisPointerModel; this._api = api; // Optimize: `render` will be called repeatedly during mouse move. // So it is power consuming if performing `render` each time, // especially on mobile device. if (!forceRender && this._lastValue === value && this._lastStatus === status) { return; } this._lastValue = value; this._lastStatus = status; var group = this._group; var handle = this._handle; if (!status || status === 'hide') { // Do not clear here, for animation better. group && group.hide(); handle && handle.hide(); return; } group && group.show(); handle && handle.show(); // Otherwise status is 'show' var elOption = {}; this.makeElOption(elOption, value, axisModel, axisPointerModel, api); // Enable change axis pointer type. var graphicKey = elOption.graphicKey; if (graphicKey !== this._lastGraphicKey) { this.clear(api); } this._lastGraphicKey = graphicKey; var moveAnimation = this._moveAnimation = this.determineAnimation(axisModel, axisPointerModel); if (!group) { group = this._group = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Group"](); this.createPointerEl(group, elOption, axisModel, axisPointerModel); this.createLabelEl(group, elOption, axisModel, axisPointerModel); api.getZr().add(group); } else { var doUpdateProps = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"](updateProps, axisPointerModel, moveAnimation); this.updatePointerEl(group, elOption, doUpdateProps); this.updateLabelEl(group, elOption, doUpdateProps, axisPointerModel); } updateMandatoryProps(group, axisPointerModel, true); this._renderHandle(value); }; /** * @implement */ BaseAxisPointer.prototype.remove = function (api) { this.clear(api); }; /** * @implement */ BaseAxisPointer.prototype.dispose = function (api) { this.clear(api); }; /** * @protected */ BaseAxisPointer.prototype.determineAnimation = function (axisModel, axisPointerModel) { var animation = axisPointerModel.get('animation'); var axis = axisModel.axis; var isCategoryAxis = axis.type === 'category'; var useSnap = axisPointerModel.get('snap'); // Value axis without snap always do not snap. if (!useSnap && !isCategoryAxis) { return false; } if (animation === 'auto' || animation == null) { var animationThreshold = this.animationThreshold; if (isCategoryAxis && axis.getBandWidth() > animationThreshold) { return true; } // It is important to auto animation when snap used. Consider if there is // a dataZoom, animation will be disabled when too many points exist, while // it will be enabled for better visual effect when little points exist. if (useSnap) { var seriesDataCount = _modelHelper_js__WEBPACK_IMPORTED_MODULE_2__["getAxisInfo"](axisModel).seriesDataCount; var axisExtent = axis.getExtent(); // Approximate band width return Math.abs(axisExtent[0] - axisExtent[1]) / seriesDataCount > animationThreshold; } return false; } return animation === true; }; /** * add {pointer, label, graphicKey} to elOption * @protected */ BaseAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) { // Should be implemenented by sub-class. }; /** * @protected */ BaseAxisPointer.prototype.createPointerEl = function (group, elOption, axisModel, axisPointerModel) { var pointerOption = elOption.pointer; if (pointerOption) { var pointerEl = inner(group).pointerEl = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__[pointerOption.type](clone(elOption.pointer)); group.add(pointerEl); } }; /** * @protected */ BaseAxisPointer.prototype.createLabelEl = function (group, elOption, axisModel, axisPointerModel) { if (elOption.label) { var labelEl = inner(group).labelEl = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Text"](clone(elOption.label)); group.add(labelEl); updateLabelShowHide(labelEl, axisPointerModel); } }; /** * @protected */ BaseAxisPointer.prototype.updatePointerEl = function (group, elOption, updateProps) { var pointerEl = inner(group).pointerEl; if (pointerEl && elOption.pointer) { pointerEl.setStyle(elOption.pointer.style); updateProps(pointerEl, { shape: elOption.pointer.shape }); } }; /** * @protected */ BaseAxisPointer.prototype.updateLabelEl = function (group, elOption, updateProps, axisPointerModel) { var labelEl = inner(group).labelEl; if (labelEl) { labelEl.setStyle(elOption.label.style); updateProps(labelEl, { // Consider text length change in vertical axis, animation should // be used on shape, otherwise the effect will be weird. // TODOTODO // shape: elOption.label.shape, x: elOption.label.x, y: elOption.label.y }); updateLabelShowHide(labelEl, axisPointerModel); } }; /** * @private */ BaseAxisPointer.prototype._renderHandle = function (value) { if (this._dragging || !this.updateHandleTransform) { return; } var axisPointerModel = this._axisPointerModel; var zr = this._api.getZr(); var handle = this._handle; var handleModel = axisPointerModel.getModel('handle'); var status = axisPointerModel.get('status'); if (!handleModel.get('show') || !status || status === 'hide') { handle && zr.remove(handle); this._handle = null; return; } var isInit; if (!this._handle) { isInit = true; handle = this._handle = _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["createIcon"](handleModel.get('icon'), { cursor: 'move', draggable: true, onmousemove: function (e) { // For mobile device, prevent screen slider on the button. zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_3__["stop"](e.event); }, onmousedown: bind(this._onHandleDragMove, this, 0, 0), drift: bind(this._onHandleDragMove, this), ondragend: bind(this._onHandleDragEnd, this) }); zr.add(handle); } updateMandatoryProps(handle, axisPointerModel, false); // update style handle.setStyle(handleModel.getItemStyle(null, ['color', 'borderColor', 'borderWidth', 'opacity', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'])); // update position var handleSize = handleModel.get('size'); if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](handleSize)) { handleSize = [handleSize, handleSize]; } handle.scaleX = handleSize[0] / 2; handle.scaleY = handleSize[1] / 2; _util_throttle_js__WEBPACK_IMPORTED_MODULE_4__["createOrUpdate"](this, '_doDispatchAxisPointer', handleModel.get('throttle') || 0, 'fixRate'); this._moveHandleToValue(value, isInit); }; BaseAxisPointer.prototype._moveHandleToValue = function (value, isInit) { updateProps(this._axisPointerModel, !isInit && this._moveAnimation, this._handle, getHandleTransProps(this.getHandleTransform(value, this._axisModel, this._axisPointerModel))); }; BaseAxisPointer.prototype._onHandleDragMove = function (dx, dy) { var handle = this._handle; if (!handle) { return; } this._dragging = true; // Persistent for throttle. var trans = this.updateHandleTransform(getHandleTransProps(handle), [dx, dy], this._axisModel, this._axisPointerModel); this._payloadInfo = trans; handle.stopAnimation(); handle.attr(getHandleTransProps(trans)); inner(handle).lastProp = null; this._doDispatchAxisPointer(); }; /** * Throttled method. */ BaseAxisPointer.prototype._doDispatchAxisPointer = function () { var handle = this._handle; if (!handle) { return; } var payloadInfo = this._payloadInfo; var axisModel = this._axisModel; this._api.dispatchAction({ type: 'updateAxisPointer', x: payloadInfo.cursorPoint[0], y: payloadInfo.cursorPoint[1], tooltipOption: payloadInfo.tooltipOption, axesInfo: [{ axisDim: axisModel.axis.dim, axisIndex: axisModel.componentIndex }] }); }; BaseAxisPointer.prototype._onHandleDragEnd = function () { this._dragging = false; var handle = this._handle; if (!handle) { return; } var value = this._axisPointerModel.get('value'); // Consider snap or categroy axis, handle may be not consistent with // axisPointer. So move handle to align the exact value position when // drag ended. this._moveHandleToValue(value); // For the effect: tooltip will be shown when finger holding on handle // button, and will be hidden after finger left handle button. this._api.dispatchAction({ type: 'hideTip' }); }; /** * @private */ BaseAxisPointer.prototype.clear = function (api) { this._lastValue = null; this._lastStatus = null; var zr = api.getZr(); var group = this._group; var handle = this._handle; if (zr && group) { this._lastGraphicKey = null; group && zr.remove(group); handle && zr.remove(handle); this._group = null; this._handle = null; this._payloadInfo = null; } _util_throttle_js__WEBPACK_IMPORTED_MODULE_4__["clear"](this, '_doDispatchAxisPointer'); }; /** * @protected */ BaseAxisPointer.prototype.doClear = function () { // Implemented by sub-class if necessary. }; BaseAxisPointer.prototype.buildLabel = function (xy, wh, xDimIndex) { xDimIndex = xDimIndex || 0; return { x: xy[xDimIndex], y: xy[1 - xDimIndex], width: wh[xDimIndex], height: wh[1 - xDimIndex] }; }; return BaseAxisPointer; }(); function updateProps(animationModel, moveAnimation, el, props) { // Animation optimize. if (!propsEqual(inner(el).lastProp, props)) { inner(el).lastProp = props; moveAnimation ? _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["updateProps"](el, props, animationModel) : (el.stopAnimation(), el.attr(props)); } } function propsEqual(lastProps, newProps) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](lastProps) && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](newProps)) { var equals_1 = true; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](newProps, function (item, key) { equals_1 = equals_1 && propsEqual(lastProps[key], item); }); return !!equals_1; } else { return lastProps === newProps; } } function updateLabelShowHide(labelEl, axisPointerModel) { labelEl[axisPointerModel.get(['label', 'show']) ? 'show' : 'hide'](); } function getHandleTransProps(trans) { return { x: trans.x || 0, y: trans.y || 0, rotation: trans.rotation || 0 }; } function updateMandatoryProps(group, axisPointerModel, silent) { var z = axisPointerModel.get('z'); var zlevel = axisPointerModel.get('zlevel'); group && group.traverse(function (el) { if (el.type !== 'group') { z != null && (el.z = z); zlevel != null && (el.zlevel = zlevel); el.silent = silent; } }); } /* harmony default export */ __webpack_exports__["default"] = (BaseAxisPointer); /***/ }), /***/ "./node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js": /*!********************************************************************************!*\ !*** ./node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js ***! \********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _BaseAxisPointer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseAxisPointer.js */ "./node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js"); /* harmony import */ var _viewHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./viewHelper.js */ "./node_modules/echarts/lib/component/axisPointer/viewHelper.js"); /* harmony import */ var _coord_cartesian_cartesianAxisHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../coord/cartesian/cartesianAxisHelper.js */ "./node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var CartesianAxisPointer = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CartesianAxisPointer, _super); function CartesianAxisPointer() { return _super !== null && _super.apply(this, arguments) || this; } /** * @override */ CartesianAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) { var axis = axisModel.axis; var grid = axis.grid; var axisPointerType = axisPointerModel.get('type'); var otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent(); var pixelValue = axis.toGlobalCoord(axis.dataToCoord(value, true)); if (axisPointerType && axisPointerType !== 'none') { var elStyle = _viewHelper_js__WEBPACK_IMPORTED_MODULE_2__["buildElStyle"](axisPointerModel); var pointerOption = pointerShapeBuilder[axisPointerType](axis, pixelValue, otherExtent); pointerOption.style = elStyle; elOption.graphicKey = pointerOption.type; elOption.pointer = pointerOption; } var layoutInfo = _coord_cartesian_cartesianAxisHelper_js__WEBPACK_IMPORTED_MODULE_3__["layout"](grid.model, axisModel); _viewHelper_js__WEBPACK_IMPORTED_MODULE_2__["buildCartesianSingleLabelElOption"]( // @ts-ignore value, elOption, layoutInfo, axisModel, axisPointerModel, api); }; /** * @override */ CartesianAxisPointer.prototype.getHandleTransform = function (value, axisModel, axisPointerModel) { var layoutInfo = _coord_cartesian_cartesianAxisHelper_js__WEBPACK_IMPORTED_MODULE_3__["layout"](axisModel.axis.grid.model, axisModel, { labelInside: false }); // @ts-ignore layoutInfo.labelMargin = axisPointerModel.get(['handle', 'margin']); var pos = _viewHelper_js__WEBPACK_IMPORTED_MODULE_2__["getTransformedPosition"](axisModel.axis, value, layoutInfo); return { x: pos[0], y: pos[1], rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0) }; }; /** * @override */ CartesianAxisPointer.prototype.updateHandleTransform = function (transform, delta, axisModel, axisPointerModel) { var axis = axisModel.axis; var grid = axis.grid; var axisExtent = axis.getGlobalExtent(true); var otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent(); var dimIndex = axis.dim === 'x' ? 0 : 1; var currPosition = [transform.x, transform.y]; currPosition[dimIndex] += delta[dimIndex]; currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]); currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]); var cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2; var cursorPoint = [cursorOtherValue, cursorOtherValue]; cursorPoint[dimIndex] = currPosition[dimIndex]; // Make tooltip do not overlap axisPointer and in the middle of the grid. var tooltipOptions = [{ verticalAlign: 'middle' }, { align: 'center' }]; return { x: currPosition[0], y: currPosition[1], rotation: transform.rotation, cursorPoint: cursorPoint, tooltipOption: tooltipOptions[dimIndex] }; }; return CartesianAxisPointer; }(_BaseAxisPointer_js__WEBPACK_IMPORTED_MODULE_1__["default"]); function getCartesian(grid, axis) { var opt = {}; opt[axis.dim + 'AxisIndex'] = axis.index; return grid.getCartesian(opt); } var pointerShapeBuilder = { line: function (axis, pixelValue, otherExtent) { var targetShape = _viewHelper_js__WEBPACK_IMPORTED_MODULE_2__["makeLineShape"]([pixelValue, otherExtent[0]], [pixelValue, otherExtent[1]], getAxisDimIndex(axis)); return { type: 'Line', subPixelOptimize: true, shape: targetShape }; }, shadow: function (axis, pixelValue, otherExtent) { var bandWidth = Math.max(1, axis.getBandWidth()); var span = otherExtent[1] - otherExtent[0]; return { type: 'Rect', shape: _viewHelper_js__WEBPACK_IMPORTED_MODULE_2__["makeRectShape"]([pixelValue - bandWidth / 2, otherExtent[0]], [bandWidth, span], getAxisDimIndex(axis)) }; } }; function getAxisDimIndex(axis) { return axis.dim === 'x' ? 0 : 1; } /* harmony default export */ __webpack_exports__["default"] = (CartesianAxisPointer); /***/ }), /***/ "./node_modules/echarts/lib/component/axisPointer/PolarAxisPointer.js": /*!****************************************************************************!*\ !*** ./node_modules/echarts/lib/component/axisPointer/PolarAxisPointer.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _BaseAxisPointer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseAxisPointer.js */ "./node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _viewHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./viewHelper.js */ "./node_modules/echarts/lib/component/axisPointer/viewHelper.js"); /* harmony import */ var zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/matrix.js */ "./node_modules/zrender/lib/core/matrix.js"); /* harmony import */ var _axis_AxisBuilder_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../axis/AxisBuilder.js */ "./node_modules/echarts/lib/component/axis/AxisBuilder.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PolarAxisPointer = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PolarAxisPointer, _super); function PolarAxisPointer() { return _super !== null && _super.apply(this, arguments) || this; } /** * @override */ PolarAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) { var axis = axisModel.axis; if (axis.dim === 'angle') { this.animationThreshold = Math.PI / 18; } var polar = axis.polar; var otherAxis = polar.getOtherAxis(axis); var otherExtent = otherAxis.getExtent(); var coordValue = axis.dataToCoord(value); var axisPointerType = axisPointerModel.get('type'); if (axisPointerType && axisPointerType !== 'none') { var elStyle = _viewHelper_js__WEBPACK_IMPORTED_MODULE_3__["buildElStyle"](axisPointerModel); var pointerOption = pointerShapeBuilder[axisPointerType](axis, polar, coordValue, otherExtent); pointerOption.style = elStyle; elOption.graphicKey = pointerOption.type; elOption.pointer = pointerOption; } var labelMargin = axisPointerModel.get(['label', 'margin']); var labelPos = getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin); _viewHelper_js__WEBPACK_IMPORTED_MODULE_3__["buildLabelElOption"](elOption, axisModel, axisPointerModel, api, labelPos); }; return PolarAxisPointer; }(_BaseAxisPointer_js__WEBPACK_IMPORTED_MODULE_1__["default"]); ; function getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin) { var axis = axisModel.axis; var coord = axis.dataToCoord(value); var axisAngle = polar.getAngleAxis().getExtent()[0]; axisAngle = axisAngle / 180 * Math.PI; var radiusExtent = polar.getRadiusAxis().getExtent(); var position; var align; var verticalAlign; if (axis.dim === 'radius') { var transform = zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_4__["create"](); zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_4__["rotate"](transform, transform, axisAngle); zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_4__["translate"](transform, transform, [polar.cx, polar.cy]); position = _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["applyTransform"]([coord, -labelMargin], transform); var labelRotation = axisModel.getModel('axisLabel').get('rotate') || 0; // @ts-ignore var labelLayout = _axis_AxisBuilder_js__WEBPACK_IMPORTED_MODULE_5__["default"].innerTextLayout(axisAngle, labelRotation * Math.PI / 180, -1); align = labelLayout.textAlign; verticalAlign = labelLayout.textVerticalAlign; } else { // angle axis var r = radiusExtent[1]; position = polar.coordToPoint([r + labelMargin, coord]); var cx = polar.cx; var cy = polar.cy; align = Math.abs(position[0] - cx) / r < 0.3 ? 'center' : position[0] > cx ? 'left' : 'right'; verticalAlign = Math.abs(position[1] - cy) / r < 0.3 ? 'middle' : position[1] > cy ? 'top' : 'bottom'; } return { position: position, align: align, verticalAlign: verticalAlign }; } var pointerShapeBuilder = { line: function (axis, polar, coordValue, otherExtent) { return axis.dim === 'angle' ? { type: 'Line', shape: _viewHelper_js__WEBPACK_IMPORTED_MODULE_3__["makeLineShape"](polar.coordToPoint([otherExtent[0], coordValue]), polar.coordToPoint([otherExtent[1], coordValue])) } : { type: 'Circle', shape: { cx: polar.cx, cy: polar.cy, r: coordValue } }; }, shadow: function (axis, polar, coordValue, otherExtent) { var bandWidth = Math.max(1, axis.getBandWidth()); var radian = Math.PI / 180; return axis.dim === 'angle' ? { type: 'Sector', shape: _viewHelper_js__WEBPACK_IMPORTED_MODULE_3__["makeSectorShape"](polar.cx, polar.cy, otherExtent[0], otherExtent[1], // In ECharts y is negative if angle is positive (-coordValue - bandWidth / 2) * radian, (-coordValue + bandWidth / 2) * radian) } : { type: 'Sector', shape: _viewHelper_js__WEBPACK_IMPORTED_MODULE_3__["makeSectorShape"](polar.cx, polar.cy, coordValue - bandWidth / 2, coordValue + bandWidth / 2, 0, Math.PI * 2) }; } }; /* harmony default export */ __webpack_exports__["default"] = (PolarAxisPointer); /***/ }), /***/ "./node_modules/echarts/lib/component/axisPointer/SingleAxisPointer.js": /*!*****************************************************************************!*\ !*** ./node_modules/echarts/lib/component/axisPointer/SingleAxisPointer.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _BaseAxisPointer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseAxisPointer.js */ "./node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js"); /* harmony import */ var _viewHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./viewHelper.js */ "./node_modules/echarts/lib/component/axisPointer/viewHelper.js"); /* harmony import */ var _coord_single_singleAxisHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../coord/single/singleAxisHelper.js */ "./node_modules/echarts/lib/coord/single/singleAxisHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var XY = ['x', 'y']; var WH = ['width', 'height']; var SingleAxisPointer = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SingleAxisPointer, _super); function SingleAxisPointer() { return _super !== null && _super.apply(this, arguments) || this; } /** * @override */ SingleAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) { var axis = axisModel.axis; var coordSys = axis.coordinateSystem; var otherExtent = getGlobalExtent(coordSys, 1 - getPointDimIndex(axis)); var pixelValue = coordSys.dataToPoint(value)[0]; var axisPointerType = axisPointerModel.get('type'); if (axisPointerType && axisPointerType !== 'none') { var elStyle = _viewHelper_js__WEBPACK_IMPORTED_MODULE_2__["buildElStyle"](axisPointerModel); var pointerOption = pointerShapeBuilder[axisPointerType](axis, pixelValue, otherExtent); pointerOption.style = elStyle; elOption.graphicKey = pointerOption.type; elOption.pointer = pointerOption; } var layoutInfo = _coord_single_singleAxisHelper_js__WEBPACK_IMPORTED_MODULE_3__["layout"](axisModel); _viewHelper_js__WEBPACK_IMPORTED_MODULE_2__["buildCartesianSingleLabelElOption"]( // @ts-ignore value, elOption, layoutInfo, axisModel, axisPointerModel, api); }; /** * @override */ SingleAxisPointer.prototype.getHandleTransform = function (value, axisModel, axisPointerModel) { var layoutInfo = _coord_single_singleAxisHelper_js__WEBPACK_IMPORTED_MODULE_3__["layout"](axisModel, { labelInside: false }); // @ts-ignore layoutInfo.labelMargin = axisPointerModel.get(['handle', 'margin']); var position = _viewHelper_js__WEBPACK_IMPORTED_MODULE_2__["getTransformedPosition"](axisModel.axis, value, layoutInfo); return { x: position[0], y: position[1], rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0) }; }; /** * @override */ SingleAxisPointer.prototype.updateHandleTransform = function (transform, delta, axisModel, axisPointerModel) { var axis = axisModel.axis; var coordSys = axis.coordinateSystem; var dimIndex = getPointDimIndex(axis); var axisExtent = getGlobalExtent(coordSys, dimIndex); var currPosition = [transform.x, transform.y]; currPosition[dimIndex] += delta[dimIndex]; currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]); currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]); var otherExtent = getGlobalExtent(coordSys, 1 - dimIndex); var cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2; var cursorPoint = [cursorOtherValue, cursorOtherValue]; cursorPoint[dimIndex] = currPosition[dimIndex]; return { x: currPosition[0], y: currPosition[1], rotation: transform.rotation, cursorPoint: cursorPoint, tooltipOption: { verticalAlign: 'middle' } }; }; return SingleAxisPointer; }(_BaseAxisPointer_js__WEBPACK_IMPORTED_MODULE_1__["default"]); var pointerShapeBuilder = { line: function (axis, pixelValue, otherExtent) { var targetShape = _viewHelper_js__WEBPACK_IMPORTED_MODULE_2__["makeLineShape"]([pixelValue, otherExtent[0]], [pixelValue, otherExtent[1]], getPointDimIndex(axis)); return { type: 'Line', subPixelOptimize: true, shape: targetShape }; }, shadow: function (axis, pixelValue, otherExtent) { var bandWidth = axis.getBandWidth(); var span = otherExtent[1] - otherExtent[0]; return { type: 'Rect', shape: _viewHelper_js__WEBPACK_IMPORTED_MODULE_2__["makeRectShape"]([pixelValue - bandWidth / 2, otherExtent[0]], [bandWidth, span], getPointDimIndex(axis)) }; } }; function getPointDimIndex(axis) { return axis.isHorizontal() ? 0 : 1; } function getGlobalExtent(coordSys, dimIndex) { var rect = coordSys.getRect(); return [rect[XY[dimIndex]], rect[XY[dimIndex]] + rect[WH[dimIndex]]]; } /* harmony default export */ __webpack_exports__["default"] = (SingleAxisPointer); /***/ }), /***/ "./node_modules/echarts/lib/component/axisPointer/axisTrigger.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/axisPointer/axisTrigger.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return axisTrigger; }); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _modelHelper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modelHelper.js */ "./node_modules/echarts/lib/component/axisPointer/modelHelper.js"); /* harmony import */ var _findPointFromSeries_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./findPointFromSeries.js */ "./node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["makeInner"])(); /** * Basic logic: check all axis, if they do not demand show/highlight, * then hide/downplay them. * * @return content of event obj for echarts.connect. */ function axisTrigger(payload, ecModel, api) { var currTrigger = payload.currTrigger; var point = [payload.x, payload.y]; var finder = payload; var dispatchAction = payload.dispatchAction || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["bind"])(api.dispatchAction, api); var coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo; // Pending // See #6121. But we are not able to reproduce it yet. if (!coordSysAxesInfo) { return; } if (illegalPoint(point)) { // Used in the default behavior of `connection`: use the sample seriesIndex // and dataIndex. And also used in the tooltipView trigger. point = Object(_findPointFromSeries_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ seriesIndex: finder.seriesIndex, // Do not use dataIndexInside from other ec instance. // FIXME: auto detect it? dataIndex: finder.dataIndex }, ecModel).point; } var isIllegalPoint = illegalPoint(point); // Axis and value can be specified when calling dispatchAction({type: 'updateAxisPointer'}). // Notice: In this case, it is difficult to get the `point` (which is necessary to show // tooltip, so if point is not given, we just use the point found by sample seriesIndex // and dataIndex. var inputAxesInfo = finder.axesInfo; var axesInfo = coordSysAxesInfo.axesInfo; var shouldHide = currTrigger === 'leave' || illegalPoint(point); var outputPayload = {}; var showValueMap = {}; var dataByCoordSys = { list: [], map: {} }; var updaters = { showPointer: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["curry"])(showPointer, showValueMap), showTooltip: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["curry"])(showTooltip, dataByCoordSys) }; // Process for triggered axes. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(coordSysAxesInfo.coordSysMap, function (coordSys, coordSysKey) { // If a point given, it must be contained by the coordinate system. var coordSysContainsPoint = isIllegalPoint || coordSys.containPoint(point); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(coordSysAxesInfo.coordSysAxesInfo[coordSysKey], function (axisInfo, key) { var axis = axisInfo.axis; var inputAxisInfo = findInputAxisInfo(inputAxesInfo, axisInfo); // If no inputAxesInfo, no axis is restricted. if (!shouldHide && coordSysContainsPoint && (!inputAxesInfo || inputAxisInfo)) { var val = inputAxisInfo && inputAxisInfo.value; if (val == null && !isIllegalPoint) { val = axis.pointToData(point); } val != null && processOnAxis(axisInfo, val, updaters, false, outputPayload); } }); }); // Process for linked axes. var linkTriggers = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(axesInfo, function (tarAxisInfo, tarKey) { var linkGroup = tarAxisInfo.linkGroup; // If axis has been triggered in the previous stage, it should not be triggered by link. if (linkGroup && !showValueMap[tarKey]) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(linkGroup.axesInfo, function (srcAxisInfo, srcKey) { var srcValItem = showValueMap[srcKey]; // If srcValItem exist, source axis is triggered, so link to target axis. if (srcAxisInfo !== tarAxisInfo && srcValItem) { var val = srcValItem.value; linkGroup.mapper && (val = tarAxisInfo.axis.scale.parse(linkGroup.mapper(val, makeMapperParam(srcAxisInfo), makeMapperParam(tarAxisInfo)))); linkTriggers[tarAxisInfo.key] = val; } }); } }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(linkTriggers, function (val, tarKey) { processOnAxis(axesInfo[tarKey], val, updaters, true, outputPayload); }); updateModelActually(showValueMap, axesInfo, outputPayload); dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction); dispatchHighDownActually(axesInfo, dispatchAction, api); return outputPayload; } function processOnAxis(axisInfo, newValue, updaters, noSnap, outputFinder) { var axis = axisInfo.axis; if (axis.scale.isBlank() || !axis.containData(newValue)) { return; } if (!axisInfo.involveSeries) { updaters.showPointer(axisInfo, newValue); return; } // Heavy calculation. So put it after axis.containData checking. var payloadInfo = buildPayloadsBySeries(newValue, axisInfo); var payloadBatch = payloadInfo.payloadBatch; var snapToValue = payloadInfo.snapToValue; // Fill content of event obj for echarts.connect. // By default use the first involved series data as a sample to connect. if (payloadBatch[0] && outputFinder.seriesIndex == null) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["extend"])(outputFinder, payloadBatch[0]); } // If no linkSource input, this process is for collecting link // target, where snap should not be accepted. if (!noSnap && axisInfo.snap) { if (axis.containData(snapToValue) && snapToValue != null) { newValue = snapToValue; } } updaters.showPointer(axisInfo, newValue, payloadBatch); // Tooltip should always be snapToValue, otherwise there will be // incorrect "axis value ~ series value" mapping displayed in tooltip. updaters.showTooltip(axisInfo, payloadInfo, snapToValue); } function buildPayloadsBySeries(value, axisInfo) { var axis = axisInfo.axis; var dim = axis.dim; var snapToValue = value; var payloadBatch = []; var minDist = Number.MAX_VALUE; var minDiff = -1; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(axisInfo.seriesModels, function (series, idx) { var dataDim = series.getData().mapDimensionsAll(dim); var seriesNestestValue; var dataIndices; if (series.getAxisTooltipData) { var result = series.getAxisTooltipData(dataDim, value, axis); dataIndices = result.dataIndices; seriesNestestValue = result.nestestValue; } else { dataIndices = series.getData().indicesOfNearest(dataDim[0], value, // Add a threshold to avoid find the wrong dataIndex // when data length is not same. // false, axis.type === 'category' ? 0.5 : null); if (!dataIndices.length) { return; } seriesNestestValue = series.getData().get(dataDim[0], dataIndices[0]); } if (seriesNestestValue == null || !isFinite(seriesNestestValue)) { return; } var diff = value - seriesNestestValue; var dist = Math.abs(diff); // Consider category case if (dist <= minDist) { if (dist < minDist || diff >= 0 && minDiff < 0) { minDist = dist; minDiff = diff; snapToValue = seriesNestestValue; payloadBatch.length = 0; } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(dataIndices, function (dataIndex) { payloadBatch.push({ seriesIndex: series.seriesIndex, dataIndexInside: dataIndex, dataIndex: series.getData().getRawIndex(dataIndex) }); }); } }); return { payloadBatch: payloadBatch, snapToValue: snapToValue }; } function showPointer(showValueMap, axisInfo, value, payloadBatch) { showValueMap[axisInfo.key] = { value: value, payloadBatch: payloadBatch }; } function showTooltip(dataByCoordSys, axisInfo, payloadInfo, value) { var payloadBatch = payloadInfo.payloadBatch; var axis = axisInfo.axis; var axisModel = axis.model; var axisPointerModel = axisInfo.axisPointerModel; // If no data, do not create anything in dataByCoordSys, // whose length will be used to judge whether dispatch action. if (!axisInfo.triggerTooltip || !payloadBatch.length) { return; } var coordSysModel = axisInfo.coordSys.model; var coordSysKey = _modelHelper_js__WEBPACK_IMPORTED_MODULE_1__["makeKey"](coordSysModel); var coordSysItem = dataByCoordSys.map[coordSysKey]; if (!coordSysItem) { coordSysItem = dataByCoordSys.map[coordSysKey] = { coordSysId: coordSysModel.id, coordSysIndex: coordSysModel.componentIndex, coordSysType: coordSysModel.type, coordSysMainType: coordSysModel.mainType, dataByAxis: [] }; dataByCoordSys.list.push(coordSysItem); } coordSysItem.dataByAxis.push({ axisDim: axis.dim, axisIndex: axisModel.componentIndex, axisType: axisModel.type, axisId: axisModel.id, value: value, // Caustion: viewHelper.getValueLabel is actually on "view stage", which // depends that all models have been updated. So it should not be performed // here. Considering axisPointerModel used here is volatile, which is hard // to be retrieve in TooltipView, we prepare parameters here. valueLabelOpt: { precision: axisPointerModel.get(['label', 'precision']), formatter: axisPointerModel.get(['label', 'formatter']) }, seriesDataIndices: payloadBatch.slice() }); } function updateModelActually(showValueMap, axesInfo, outputPayload) { var outputAxesInfo = outputPayload.axesInfo = []; // Basic logic: If no 'show' required, 'hide' this axisPointer. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(axesInfo, function (axisInfo, key) { var option = axisInfo.axisPointerModel.option; var valItem = showValueMap[key]; if (valItem) { !axisInfo.useHandle && (option.status = 'show'); option.value = valItem.value; // For label formatter param and highlight. option.seriesDataIndices = (valItem.payloadBatch || []).slice(); } // When always show (e.g., handle used), remain // original value and status. else { // If hide, value still need to be set, consider // click legend to toggle axis blank. !axisInfo.useHandle && (option.status = 'hide'); } // If status is 'hide', should be no info in payload. option.status === 'show' && outputAxesInfo.push({ axisDim: axisInfo.axis.dim, axisIndex: axisInfo.axis.model.componentIndex, value: option.value }); }); } function dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction) { // Basic logic: If no showTip required, hideTip will be dispatched. if (illegalPoint(point) || !dataByCoordSys.list.length) { dispatchAction({ type: 'hideTip' }); return; } // In most case only one axis (or event one series is used). It is // convenient to fetch payload.seriesIndex and payload.dataIndex // directly. So put the first seriesIndex and dataIndex of the first // axis on the payload. var sampleItem = ((dataByCoordSys.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {}; dispatchAction({ type: 'showTip', escapeConnect: true, x: point[0], y: point[1], tooltipOption: payload.tooltipOption, position: payload.position, dataIndexInside: sampleItem.dataIndexInside, dataIndex: sampleItem.dataIndex, seriesIndex: sampleItem.seriesIndex, dataByCoordSys: dataByCoordSys.list }); } function dispatchHighDownActually(axesInfo, dispatchAction, api) { // FIXME // highlight status modification should be a stage of main process? // (Consider confilct (e.g., legend and axisPointer) and setOption) var zr = api.getZr(); var highDownKey = 'axisPointerLastHighlights'; var lastHighlights = inner(zr)[highDownKey] || {}; var newHighlights = inner(zr)[highDownKey] = {}; // Update highlight/downplay status according to axisPointer model. // Build hash map and remove duplicate incidentally. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(axesInfo, function (axisInfo, key) { var option = axisInfo.axisPointerModel.option; option.status === 'show' && axisInfo.triggerEmphasis && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(option.seriesDataIndices, function (batchItem) { var key = batchItem.seriesIndex + ' | ' + batchItem.dataIndex; newHighlights[key] = batchItem; }); }); // Diff. var toHighlight = []; var toDownplay = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(lastHighlights, function (batchItem, key) { !newHighlights[key] && toDownplay.push(batchItem); }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(newHighlights, function (batchItem, key) { !lastHighlights[key] && toHighlight.push(batchItem); }); toDownplay.length && api.dispatchAction({ type: 'downplay', escapeConnect: true, // Not blur others when highlight in axisPointer. notBlur: true, batch: toDownplay }); toHighlight.length && api.dispatchAction({ type: 'highlight', escapeConnect: true, // Not blur others when highlight in axisPointer. notBlur: true, batch: toHighlight }); } function findInputAxisInfo(inputAxesInfo, axisInfo) { for (var i = 0; i < (inputAxesInfo || []).length; i++) { var inputAxisInfo = inputAxesInfo[i]; if (axisInfo.axis.dim === inputAxisInfo.axisDim && axisInfo.axis.model.componentIndex === inputAxisInfo.axisIndex) { return inputAxisInfo; } } } function makeMapperParam(axisInfo) { var axisModel = axisInfo.axis.model; var item = {}; var dim = item.axisDim = axisInfo.axis.dim; item.axisIndex = item[dim + 'AxisIndex'] = axisModel.componentIndex; item.axisName = item[dim + 'AxisName'] = axisModel.name; item.axisId = item[dim + 'AxisId'] = axisModel.id; return item; } function illegalPoint(point) { return !point || point[0] == null || isNaN(point[0]) || point[1] == null || isNaN(point[1]); } /***/ }), /***/ "./node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js": /*!*******************************************************************************!*\ !*** ./node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js ***! \*******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return findPointFromSeries; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @param finder contains {seriesIndex, dataIndex, dataIndexInside} * @param ecModel * @return {point: [x, y], el: ...} point Will not be null. */ function findPointFromSeries(finder, ecModel) { var point = []; var seriesIndex = finder.seriesIndex; var seriesModel; if (seriesIndex == null || !(seriesModel = ecModel.getSeriesByIndex(seriesIndex))) { return { point: [] }; } var data = seriesModel.getData(); var dataIndex = _util_model_js__WEBPACK_IMPORTED_MODULE_1__["queryDataIndex"](data, finder); if (dataIndex == null || dataIndex < 0 || zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](dataIndex)) { return { point: [] }; } var el = data.getItemGraphicEl(dataIndex); var coordSys = seriesModel.coordinateSystem; if (seriesModel.getTooltipPosition) { point = seriesModel.getTooltipPosition(dataIndex) || []; } else if (coordSys && coordSys.dataToPoint) { if (finder.isStacked) { var baseAxis = coordSys.getBaseAxis(); var valueAxis = coordSys.getOtherAxis(baseAxis); var valueAxisDim = valueAxis.dim; var baseAxisDim = baseAxis.dim; var baseDataOffset = valueAxisDim === 'x' || valueAxisDim === 'radius' ? 1 : 0; var baseDim = data.mapDimension(baseAxisDim); var stackedData = []; stackedData[baseDataOffset] = data.get(baseDim, dataIndex); stackedData[1 - baseDataOffset] = data.get(data.getCalculationInfo('stackResultDimension'), dataIndex); point = coordSys.dataToPoint(stackedData) || []; } else { point = coordSys.dataToPoint(data.getValues(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](coordSys.dimensions, function (dim) { return data.mapDimension(dim); }), dataIndex)) || []; } } else if (el) { // Use graphic bounding rect var rect = el.getBoundingRect().clone(); rect.applyTransform(el.transform); point = [rect.x + rect.width / 2, rect.y + rect.height / 2]; } return { point: point, el: el }; } /***/ }), /***/ "./node_modules/echarts/lib/component/axisPointer/globalListener.js": /*!**************************************************************************!*\ !*** ./node_modules/echarts/lib/component/axisPointer/globalListener.js ***! \**************************************************************************/ /*! exports provided: register, unregister */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "register", function() { return register; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unregister", function() { return unregister; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/env.js */ "./node_modules/zrender/lib/core/env.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_2__["makeInner"])(); var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]; /** * @param {string} key * @param {module:echarts/ExtensionAPI} api * @param {Function} handler * param: {string} currTrigger * param: {Array.} point */ function register(key, api, handler) { if (zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_1__["default"].node) { return; } var zr = api.getZr(); inner(zr).records || (inner(zr).records = {}); initGlobalListeners(zr, api); var record = inner(zr).records[key] || (inner(zr).records[key] = {}); record.handler = handler; } function initGlobalListeners(zr, api) { if (inner(zr).initialized) { return; } inner(zr).initialized = true; useHandler('click', zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"](doEnter, 'click')); useHandler('mousemove', zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"](doEnter, 'mousemove')); // useHandler('mouseout', onLeave); useHandler('globalout', onLeave); function useHandler(eventType, cb) { zr.on(eventType, function (e) { var dis = makeDispatchAction(api); each(inner(zr).records, function (record) { record && cb(record, e, dis.dispatchAction); }); dispatchTooltipFinally(dis.pendings, api); }); } } function dispatchTooltipFinally(pendings, api) { var showLen = pendings.showTip.length; var hideLen = pendings.hideTip.length; var actuallyPayload; if (showLen) { actuallyPayload = pendings.showTip[showLen - 1]; } else if (hideLen) { actuallyPayload = pendings.hideTip[hideLen - 1]; } if (actuallyPayload) { actuallyPayload.dispatchAction = null; api.dispatchAction(actuallyPayload); } } function onLeave(record, e, dispatchAction) { record.handler('leave', null, dispatchAction); } function doEnter(currTrigger, record, e, dispatchAction) { record.handler(currTrigger, e, dispatchAction); } function makeDispatchAction(api) { var pendings = { showTip: [], hideTip: [] }; // FIXME // better approach? // 'showTip' and 'hideTip' can be triggered by axisPointer and tooltip, // which may be conflict, (axisPointer call showTip but tooltip call hideTip); // So we have to add "final stage" to merge those dispatched actions. var dispatchAction = function (payload) { var pendingList = pendings[payload.type]; if (pendingList) { pendingList.push(payload); } else { payload.dispatchAction = dispatchAction; api.dispatchAction(payload); } }; return { dispatchAction: dispatchAction, pendings: pendings }; } function unregister(key, api) { if (zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_1__["default"].node) { return; } var zr = api.getZr(); var record = (inner(zr).records || {})[key]; if (record) { inner(zr).records[key] = null; } } /***/ }), /***/ "./node_modules/echarts/lib/component/axisPointer/install.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/component/axisPointer/install.js ***! \*******************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _axis_AxisView_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../axis/AxisView.js */ "./node_modules/echarts/lib/component/axis/AxisView.js"); /* harmony import */ var _CartesianAxisPointer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CartesianAxisPointer.js */ "./node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js"); /* harmony import */ var _AxisPointerModel_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AxisPointerModel.js */ "./node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js"); /* harmony import */ var _AxisPointerView_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AxisPointerView.js */ "./node_modules/echarts/lib/component/axisPointer/AxisPointerView.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _modelHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./modelHelper.js */ "./node_modules/echarts/lib/component/axisPointer/modelHelper.js"); /* harmony import */ var _axisTrigger_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./axisTrigger.js */ "./node_modules/echarts/lib/component/axisPointer/axisTrigger.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { // CartesianAxisPointer is not supposed to be required here. But consider // echarts.simple.js and online build tooltip, which only require gridSimple, // CartesianAxisPointer should be able to required somewhere. _axis_AxisView_js__WEBPACK_IMPORTED_MODULE_0__["default"].registerAxisPointerClass('CartesianAxisPointer', _CartesianAxisPointer_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerComponentModel(_AxisPointerModel_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerComponentView(_AxisPointerView_js__WEBPACK_IMPORTED_MODULE_3__["default"]); registers.registerPreprocessor(function (option) { // Always has a global axisPointerModel for default setting. if (option) { (!option.axisPointer || option.axisPointer.length === 0) && (option.axisPointer = {}); var link = option.axisPointer.link; // Normalize to array to avoid object mergin. But if link // is not set, remain null/undefined, otherwise it will // override existent link setting. if (link && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["isArray"])(link)) { option.axisPointer.link = [link]; } } }); // This process should proformed after coordinate systems created // and series data processed. So put it on statistic processing stage. registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, function (ecModel, api) { // Build axisPointerModel, mergin tooltip.axisPointer model for each axis. // allAxesInfo should be updated when setOption performed. ecModel.getComponent('axisPointer').coordSysAxesInfo = Object(_modelHelper_js__WEBPACK_IMPORTED_MODULE_5__["collect"])(ecModel, api); }); // Broadcast to all views. registers.registerAction({ type: 'updateAxisPointer', event: 'updateAxisPointer', update: ':updateAxisPointer' }, _axisTrigger_js__WEBPACK_IMPORTED_MODULE_6__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/component/axisPointer/modelHelper.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/axisPointer/modelHelper.js ***! \***********************************************************************/ /*! exports provided: collect, fixValue, getAxisInfo, getAxisPointerModel, makeKey */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "collect", function() { return collect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fixValue", function() { return fixValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAxisInfo", function() { return getAxisInfo; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAxisPointerModel", function() { return getAxisPointerModel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeKey", function() { return makeKey; }); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Build axisPointerModel, mergin tooltip.axisPointer model for each axis. // allAxesInfo should be updated when setOption performed. function collect(ecModel, api) { var result = { /** * key: makeKey(axis.model) * value: { * axis, * coordSys, * axisPointerModel, * triggerTooltip, * triggerEmphasis, * involveSeries, * snap, * seriesModels, * seriesDataCount * } */ axesInfo: {}, seriesInvolved: false, /** * key: makeKey(coordSys.model) * value: Object: key makeKey(axis.model), value: axisInfo */ coordSysAxesInfo: {}, coordSysMap: {} }; collectAxesInfo(result, ecModel, api); // Check seriesInvolved for performance, in case too many series in some chart. result.seriesInvolved && collectSeriesInfo(result, ecModel); return result; } function collectAxesInfo(result, ecModel, api) { var globalTooltipModel = ecModel.getComponent('tooltip'); var globalAxisPointerModel = ecModel.getComponent('axisPointer'); // links can only be set on global. var linksOption = globalAxisPointerModel.get('link', true) || []; var linkGroups = []; // Collect axes info. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(api.getCoordinateSystems(), function (coordSys) { // Some coordinate system do not support axes, like geo. if (!coordSys.axisPointerEnabled) { return; } var coordSysKey = makeKey(coordSys.model); var axesInfoInCoordSys = result.coordSysAxesInfo[coordSysKey] = {}; result.coordSysMap[coordSysKey] = coordSys; // Set tooltip (like 'cross') is a convenient way to show axisPointer // for user. So we enable setting tooltip on coordSys model. var coordSysModel = coordSys.model; var baseTooltipModel = coordSysModel.getModel('tooltip', globalTooltipModel); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(coordSys.getAxes(), Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"])(saveTooltipAxisInfo, false, null)); // If axis tooltip used, choose tooltip axis for each coordSys. // Notice this case: coordSys is `grid` but not `cartesian2D` here. if (coordSys.getTooltipAxes && globalTooltipModel // If tooltip.showContent is set as false, tooltip will not // show but axisPointer will show as normal. && baseTooltipModel.get('show')) { // Compatible with previous logic. But series.tooltip.trigger: 'axis' // or series.data[n].tooltip.trigger: 'axis' are not support any more. var triggerAxis = baseTooltipModel.get('trigger') === 'axis'; var cross = baseTooltipModel.get(['axisPointer', 'type']) === 'cross'; var tooltipAxes = coordSys.getTooltipAxes(baseTooltipModel.get(['axisPointer', 'axis'])); if (triggerAxis || cross) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(tooltipAxes.baseAxes, Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"])(saveTooltipAxisInfo, cross ? 'cross' : true, triggerAxis)); } if (cross) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(tooltipAxes.otherAxes, Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"])(saveTooltipAxisInfo, 'cross', false)); } } // fromTooltip: true | false | 'cross' // triggerTooltip: true | false | null function saveTooltipAxisInfo(fromTooltip, triggerTooltip, axis) { var axisPointerModel = axis.model.getModel('axisPointer', globalAxisPointerModel); var axisPointerShow = axisPointerModel.get('show'); if (!axisPointerShow || axisPointerShow === 'auto' && !fromTooltip && !isHandleTrigger(axisPointerModel)) { return; } if (triggerTooltip == null) { triggerTooltip = axisPointerModel.get('triggerTooltip'); } axisPointerModel = fromTooltip ? makeAxisPointerModel(axis, baseTooltipModel, globalAxisPointerModel, ecModel, fromTooltip, triggerTooltip) : axisPointerModel; var snap = axisPointerModel.get('snap'); var triggerEmphasis = axisPointerModel.get('triggerEmphasis'); var axisKey = makeKey(axis.model); var involveSeries = triggerTooltip || snap || axis.type === 'category'; // If result.axesInfo[key] exist, override it (tooltip has higher priority). var axisInfo = result.axesInfo[axisKey] = { key: axisKey, axis: axis, coordSys: coordSys, axisPointerModel: axisPointerModel, triggerTooltip: triggerTooltip, triggerEmphasis: triggerEmphasis, involveSeries: involveSeries, snap: snap, useHandle: isHandleTrigger(axisPointerModel), seriesModels: [], linkGroup: null }; axesInfoInCoordSys[axisKey] = axisInfo; result.seriesInvolved = result.seriesInvolved || involveSeries; var groupIndex = getLinkGroupIndex(linksOption, axis); if (groupIndex != null) { var linkGroup = linkGroups[groupIndex] || (linkGroups[groupIndex] = { axesInfo: {} }); linkGroup.axesInfo[axisKey] = axisInfo; linkGroup.mapper = linksOption[groupIndex].mapper; axisInfo.linkGroup = linkGroup; } } }); } function makeAxisPointerModel(axis, baseTooltipModel, globalAxisPointerModel, ecModel, fromTooltip, triggerTooltip) { var tooltipAxisPointerModel = baseTooltipModel.getModel('axisPointer'); var fields = ['type', 'snap', 'lineStyle', 'shadowStyle', 'label', 'animation', 'animationDurationUpdate', 'animationEasingUpdate', 'z']; var volatileOption = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(fields, function (field) { volatileOption[field] = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(tooltipAxisPointerModel.get(field)); }); // category axis do not auto snap, otherwise some tick that do not // has value can not be hovered. value/time/log axis default snap if // triggered from tooltip and trigger tooltip. volatileOption.snap = axis.type !== 'category' && !!triggerTooltip; // Compatible with previous behavior, tooltip axis does not show label by default. // Only these properties can be overridden from tooltip to axisPointer. if (tooltipAxisPointerModel.get('type') === 'cross') { volatileOption.type = 'line'; } var labelOption = volatileOption.label || (volatileOption.label = {}); // Follow the convention, do not show label when triggered by tooltip by default. labelOption.show == null && (labelOption.show = false); if (fromTooltip === 'cross') { // When 'cross', both axes show labels. var tooltipAxisPointerLabelShow = tooltipAxisPointerModel.get(['label', 'show']); labelOption.show = tooltipAxisPointerLabelShow != null ? tooltipAxisPointerLabelShow : true; // If triggerTooltip, this is a base axis, which should better not use cross style // (cross style is dashed by default) if (!triggerTooltip) { var crossStyle = volatileOption.lineStyle = tooltipAxisPointerModel.get('crossStyle'); crossStyle && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"])(labelOption, crossStyle.textStyle); } } return axis.model.getModel('axisPointer', new _model_Model_js__WEBPACK_IMPORTED_MODULE_0__["default"](volatileOption, globalAxisPointerModel, ecModel)); } function collectSeriesInfo(result, ecModel) { // Prepare data for axis trigger ecModel.eachSeries(function (seriesModel) { // Notice this case: this coordSys is `cartesian2D` but not `grid`. var coordSys = seriesModel.coordinateSystem; var seriesTooltipTrigger = seriesModel.get(['tooltip', 'trigger'], true); var seriesTooltipShow = seriesModel.get(['tooltip', 'show'], true); if (!coordSys || seriesTooltipTrigger === 'none' || seriesTooltipTrigger === false || seriesTooltipTrigger === 'item' || seriesTooltipShow === false || seriesModel.get(['axisPointer', 'show'], true) === false) { return; } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(result.coordSysAxesInfo[makeKey(coordSys.model)], function (axisInfo) { var axis = axisInfo.axis; if (coordSys.getAxis(axis.dim) === axis) { axisInfo.seriesModels.push(seriesModel); axisInfo.seriesDataCount == null && (axisInfo.seriesDataCount = 0); axisInfo.seriesDataCount += seriesModel.getData().count(); } }); }); } /** * For example: * { * axisPointer: { * links: [{ * xAxisIndex: [2, 4], * yAxisIndex: 'all' * }, { * xAxisId: ['a5', 'a7'], * xAxisName: 'xxx' * }] * } * } */ function getLinkGroupIndex(linksOption, axis) { var axisModel = axis.model; var dim = axis.dim; for (var i = 0; i < linksOption.length; i++) { var linkOption = linksOption[i] || {}; if (checkPropInLink(linkOption[dim + 'AxisId'], axisModel.id) || checkPropInLink(linkOption[dim + 'AxisIndex'], axisModel.componentIndex) || checkPropInLink(linkOption[dim + 'AxisName'], axisModel.name)) { return i; } } } function checkPropInLink(linkPropValue, axisPropValue) { return linkPropValue === 'all' || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(linkPropValue) && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["indexOf"])(linkPropValue, axisPropValue) >= 0 || linkPropValue === axisPropValue; } function fixValue(axisModel) { var axisInfo = getAxisInfo(axisModel); if (!axisInfo) { return; } var axisPointerModel = axisInfo.axisPointerModel; var scale = axisInfo.axis.scale; var option = axisPointerModel.option; var status = axisPointerModel.get('status'); var value = axisPointerModel.get('value'); // Parse init value for category and time axis. if (value != null) { value = scale.parse(value); } var useHandle = isHandleTrigger(axisPointerModel); // If `handle` used, `axisPointer` will always be displayed, so value // and status should be initialized. if (status == null) { option.status = useHandle ? 'show' : 'hide'; } var extent = scale.getExtent().slice(); extent[0] > extent[1] && extent.reverse(); if ( // Pick a value on axis when initializing. value == null // If both `handle` and `dataZoom` are used, value may be out of axis extent, // where we should re-pick a value to keep `handle` displaying normally. || value > extent[1]) { // Make handle displayed on the end of the axis when init, which looks better. value = extent[1]; } if (value < extent[0]) { value = extent[0]; } option.value = value; if (useHandle) { option.status = axisInfo.axis.scale.isBlank() ? 'hide' : 'show'; } } function getAxisInfo(axisModel) { var coordSysAxesInfo = (axisModel.ecModel.getComponent('axisPointer') || {}).coordSysAxesInfo; return coordSysAxesInfo && coordSysAxesInfo.axesInfo[makeKey(axisModel)]; } function getAxisPointerModel(axisModel) { var axisInfo = getAxisInfo(axisModel); return axisInfo && axisInfo.axisPointerModel; } function isHandleTrigger(axisPointerModel) { return !!axisPointerModel.get(['handle', 'show']); } /** * @param {module:echarts/model/Model} model * @return {string} unique key */ function makeKey(model) { return model.type + '||' + model.id; } /***/ }), /***/ "./node_modules/echarts/lib/component/axisPointer/viewHelper.js": /*!**********************************************************************!*\ !*** ./node_modules/echarts/lib/component/axisPointer/viewHelper.js ***! \**********************************************************************/ /*! exports provided: buildElStyle, buildLabelElOption, getValueLabel, getTransformedPosition, buildCartesianSingleLabelElOption, makeLineShape, makeRectShape, makeSectorShape */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildElStyle", function() { return buildElStyle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildLabelElOption", function() { return buildLabelElOption; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValueLabel", function() { return getValueLabel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTransformedPosition", function() { return getTransformedPosition; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildCartesianSingleLabelElOption", function() { return buildCartesianSingleLabelElOption; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeLineShape", function() { return makeLineShape; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeRectShape", function() { return makeRectShape; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeSectorShape", function() { return makeSectorShape; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/contain/text.js */ "./node_modules/zrender/lib/contain/text.js"); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* harmony import */ var zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/matrix.js */ "./node_modules/zrender/lib/core/matrix.js"); /* harmony import */ var _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../coord/axisHelper.js */ "./node_modules/echarts/lib/coord/axisHelper.js"); /* harmony import */ var _axis_AxisBuilder_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../axis/AxisBuilder.js */ "./node_modules/echarts/lib/component/axis/AxisBuilder.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function buildElStyle(axisPointerModel) { var axisPointerType = axisPointerModel.get('type'); var styleModel = axisPointerModel.getModel(axisPointerType + 'Style'); var style; if (axisPointerType === 'line') { style = styleModel.getLineStyle(); style.fill = null; } else if (axisPointerType === 'shadow') { style = styleModel.getAreaStyle(); style.stroke = null; } return style; } /** * @param {Function} labelPos {align, verticalAlign, position} */ function buildLabelElOption(elOption, axisModel, axisPointerModel, api, labelPos) { var value = axisPointerModel.get('value'); var text = getValueLabel(value, axisModel.axis, axisModel.ecModel, axisPointerModel.get('seriesDataIndices'), { precision: axisPointerModel.get(['label', 'precision']), formatter: axisPointerModel.get(['label', 'formatter']) }); var labelModel = axisPointerModel.getModel('label'); var paddings = _util_format_js__WEBPACK_IMPORTED_MODULE_3__["normalizeCssArray"](labelModel.get('padding') || 0); var font = labelModel.getFont(); var textRect = zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_2__["getBoundingRect"](text, font); var position = labelPos.position; var width = textRect.width + paddings[1] + paddings[3]; var height = textRect.height + paddings[0] + paddings[2]; // Adjust by align. var align = labelPos.align; align === 'right' && (position[0] -= width); align === 'center' && (position[0] -= width / 2); var verticalAlign = labelPos.verticalAlign; verticalAlign === 'bottom' && (position[1] -= height); verticalAlign === 'middle' && (position[1] -= height / 2); // Not overflow ec container confineInContainer(position, width, height, api); var bgColor = labelModel.get('backgroundColor'); if (!bgColor || bgColor === 'auto') { bgColor = axisModel.get(['axisLine', 'lineStyle', 'color']); } elOption.label = { // shape: {x: 0, y: 0, width: width, height: height, r: labelModel.get('borderRadius')}, x: position[0], y: position[1], style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["createTextStyle"])(labelModel, { text: text, font: font, fill: labelModel.getTextColor(), padding: paddings, backgroundColor: bgColor }), // Label should be over axisPointer. z2: 10 }; } // Do not overflow ec container function confineInContainer(position, width, height, api) { var viewWidth = api.getWidth(); var viewHeight = api.getHeight(); position[0] = Math.min(position[0] + width, viewWidth) - width; position[1] = Math.min(position[1] + height, viewHeight) - height; position[0] = Math.max(position[0], 0); position[1] = Math.max(position[1], 0); } function getValueLabel(value, axis, ecModel, seriesDataIndices, opt) { value = axis.scale.parse(value); var text = axis.scale.getLabel({ value: value }, { // If `precision` is set, width can be fixed (like '12.00500'), which // helps to debounce when when moving label. precision: opt.precision }); var formatter = opt.formatter; if (formatter) { var params_1 = { value: _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_5__["getAxisRawValue"](axis, { value: value }), axisDimension: axis.dim, axisIndex: axis.index, seriesData: [] }; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](seriesDataIndices, function (idxItem) { var series = ecModel.getSeriesByIndex(idxItem.seriesIndex); var dataIndex = idxItem.dataIndexInside; var dataParams = series && series.getDataParams(dataIndex); dataParams && params_1.seriesData.push(dataParams); }); if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](formatter)) { text = formatter.replace('{value}', text); } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"](formatter)) { text = formatter(params_1); } } return text; } function getTransformedPosition(axis, value, layoutInfo) { var transform = zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_4__["create"](); zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_4__["rotate"](transform, transform, layoutInfo.rotation); zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_4__["translate"](transform, transform, layoutInfo.position); return _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["applyTransform"]([axis.dataToCoord(value), (layoutInfo.labelOffset || 0) + (layoutInfo.labelDirection || 1) * (layoutInfo.labelMargin || 0)], transform); } function buildCartesianSingleLabelElOption(value, elOption, layoutInfo, axisModel, axisPointerModel, api) { // @ts-ignore var textLayout = _axis_AxisBuilder_js__WEBPACK_IMPORTED_MODULE_6__["default"].innerTextLayout(layoutInfo.rotation, 0, layoutInfo.labelDirection); layoutInfo.labelMargin = axisPointerModel.get(['label', 'margin']); buildLabelElOption(elOption, axisModel, axisPointerModel, api, { position: getTransformedPosition(axisModel.axis, value, layoutInfo), align: textLayout.textAlign, verticalAlign: textLayout.textVerticalAlign }); } function makeLineShape(p1, p2, xDimIndex) { xDimIndex = xDimIndex || 0; return { x1: p1[xDimIndex], y1: p1[1 - xDimIndex], x2: p2[xDimIndex], y2: p2[1 - xDimIndex] }; } function makeRectShape(xy, wh, xDimIndex) { xDimIndex = xDimIndex || 0; return { x: xy[xDimIndex], y: xy[1 - xDimIndex], width: wh[xDimIndex], height: wh[1 - xDimIndex] }; } function makeSectorShape(cx, cy, r0, r, startAngle, endAngle) { return { cx: cx, cy: cy, r0: r0, r: r, startAngle: startAngle, endAngle: endAngle, clockwise: true }; } /***/ }), /***/ "./node_modules/echarts/lib/component/brush/BrushModel.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/component/brush/BrushModel.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _visual_visualSolution_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../visual/visualSolution.js */ "./node_modules/echarts/lib/visual/visualSolution.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DEFAULT_OUT_OF_BRUSH_COLOR = '#ddd'; var BrushModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BrushModel, _super); function BrushModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = BrushModel.type; /** * @readOnly */ _this.areas = []; /** * Current brush painting area settings. * @readOnly */ _this.brushOption = {}; return _this; } BrushModel.prototype.optionUpdated = function (newOption, isInit) { var thisOption = this.option; !isInit && _visual_visualSolution_js__WEBPACK_IMPORTED_MODULE_2__["replaceVisualOption"](thisOption, newOption, ['inBrush', 'outOfBrush']); var inBrush = thisOption.inBrush = thisOption.inBrush || {}; // Always give default visual, consider setOption at the second time. thisOption.outOfBrush = thisOption.outOfBrush || { color: DEFAULT_OUT_OF_BRUSH_COLOR }; if (!inBrush.hasOwnProperty('liftZ')) { // Bigger than the highlight z lift, otherwise it will // be effected by the highlight z when brush. inBrush.liftZ = 5; } }; /** * If `areas` is null/undefined, range state remain. */ BrushModel.prototype.setAreas = function (areas) { if (true) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](areas)); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](areas, function (area) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"](area.brushType, 'Illegal areas'); }); } // If areas is null/undefined, range state remain. // This helps user to dispatchAction({type: 'brush'}) with no areas // set but just want to get the current brush select info from a `brush` event. if (!areas) { return; } this.areas = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](areas, function (area) { return generateBrushOption(this.option, area); }, this); }; /** * Set the current painting brush option. */ BrushModel.prototype.setBrushOption = function (brushOption) { this.brushOption = generateBrushOption(this.option, brushOption); this.brushType = this.brushOption.brushType; }; BrushModel.type = 'brush'; BrushModel.dependencies = ['geo', 'grid', 'xAxis', 'yAxis', 'parallel', 'series']; BrushModel.defaultOption = { seriesIndex: 'all', brushType: 'rect', brushMode: 'single', transformable: true, brushStyle: { borderWidth: 1, color: 'rgba(210,219,238,0.3)', borderColor: '#D2DBEE' }, throttleType: 'fixRate', throttleDelay: 0, removeOnClick: true, z: 10000 }; return BrushModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"]); function generateBrushOption(option, brushOption) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"]({ brushType: option.brushType, brushMode: option.brushMode, transformable: option.transformable, brushStyle: new _model_Model_js__WEBPACK_IMPORTED_MODULE_3__["default"](option.brushStyle).getItemStyle(), removeOnClick: option.removeOnClick, z: option.z }, brushOption, true); } /* harmony default export */ __webpack_exports__["default"] = (BrushModel); /***/ }), /***/ "./node_modules/echarts/lib/component/brush/BrushView.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/component/brush/BrushView.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _helper_BrushController_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/BrushController.js */ "./node_modules/echarts/lib/component/helper/BrushController.js"); /* harmony import */ var _visualEncoding_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./visualEncoding.js */ "./node_modules/echarts/lib/component/brush/visualEncoding.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var BrushView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BrushView, _super); function BrushView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = BrushView.type; return _this; } BrushView.prototype.init = function (ecModel, api) { this.ecModel = ecModel; this.api = api; this.model; (this._brushController = new _helper_BrushController_js__WEBPACK_IMPORTED_MODULE_2__["default"](api.getZr())).on('brush', zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](this._onBrush, this)).mount(); }; BrushView.prototype.render = function (brushModel, ecModel, api, payload) { this.model = brushModel; this._updateController(brushModel, ecModel, api, payload); }; BrushView.prototype.updateTransform = function (brushModel, ecModel, api, payload) { // PENDING: `updateTransform` is a little tricky, whose layout need // to be calculate mandatorily and other stages will not be performed. // Take care the correctness of the logic. See #11754 . Object(_visualEncoding_js__WEBPACK_IMPORTED_MODULE_3__["layoutCovers"])(ecModel); this._updateController(brushModel, ecModel, api, payload); }; BrushView.prototype.updateVisual = function (brushModel, ecModel, api, payload) { this.updateTransform(brushModel, ecModel, api, payload); }; BrushView.prototype.updateView = function (brushModel, ecModel, api, payload) { this._updateController(brushModel, ecModel, api, payload); }; BrushView.prototype._updateController = function (brushModel, ecModel, api, payload) { // Do not update controller when drawing. (!payload || payload.$from !== brushModel.id) && this._brushController.setPanels(brushModel.brushTargetManager.makePanelOpts(api)).enableBrush(brushModel.brushOption).updateCovers(brushModel.areas.slice()); }; // updateLayout: updateController, // updateVisual: updateController, BrushView.prototype.dispose = function () { this._brushController.dispose(); }; BrushView.prototype._onBrush = function (eventParam) { var modelId = this.model.id; var areas = this.model.brushTargetManager.setOutputRanges(eventParam.areas, this.ecModel); // Action is not dispatched on drag end, because the drag end // emits the same params with the last drag move event, and // may have some delay when using touch pad, which makes // animation not smooth (when using debounce). (!eventParam.isEnd || eventParam.removeOnClick) && this.api.dispatchAction({ type: 'brush', brushId: modelId, areas: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"](areas), $from: modelId }); eventParam.isEnd && this.api.dispatchAction({ type: 'brushEnd', brushId: modelId, areas: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"](areas), $from: modelId }); }; BrushView.type = 'brush'; return BrushView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"]); /* harmony default export */ __webpack_exports__["default"] = (BrushView); /***/ }), /***/ "./node_modules/echarts/lib/component/brush/install.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/component/brush/install.js ***! \*************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _preprocessor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./preprocessor.js */ "./node_modules/echarts/lib/component/brush/preprocessor.js"); /* harmony import */ var _BrushView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BrushView.js */ "./node_modules/echarts/lib/component/brush/BrushView.js"); /* harmony import */ var _BrushModel_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BrushModel.js */ "./node_modules/echarts/lib/component/brush/BrushModel.js"); /* harmony import */ var _visualEncoding_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./visualEncoding.js */ "./node_modules/echarts/lib/component/brush/visualEncoding.js"); /* harmony import */ var _toolbox_feature_Brush_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../toolbox/feature/Brush.js */ "./node_modules/echarts/lib/component/toolbox/feature/Brush.js"); /* harmony import */ var _toolbox_featureManager_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../toolbox/featureManager.js */ "./node_modules/echarts/lib/component/toolbox/featureManager.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO function install(registers) { registers.registerComponentView(_BrushView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerComponentModel(_BrushModel_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerPreprocessor(_preprocessor_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerVisual(registers.PRIORITY.VISUAL.BRUSH, _visualEncoding_js__WEBPACK_IMPORTED_MODULE_3__["default"]); registers.registerAction({ type: 'brush', event: 'brush', update: 'updateVisual' }, function (payload, ecModel) { ecModel.eachComponent({ mainType: 'brush', query: payload }, function (brushModel) { brushModel.setAreas(payload.areas); }); }); /** * payload: { * brushComponents: [ * { * brushId, * brushIndex, * brushName, * series: [ * { * seriesId, * seriesIndex, * seriesName, * rawIndices: [21, 34, ...] * }, * ... * ] * }, * ... * ] * } */ registers.registerAction({ type: 'brushSelect', event: 'brushSelected', update: 'none' }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["noop"]); registers.registerAction({ type: 'brushEnd', event: 'brushEnd', update: 'none' }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["noop"]); Object(_toolbox_featureManager_js__WEBPACK_IMPORTED_MODULE_5__["registerFeature"])('brush', _toolbox_feature_Brush_js__WEBPACK_IMPORTED_MODULE_4__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/component/brush/preprocessor.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/component/brush/preprocessor.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return brushPreprocessor; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DEFAULT_TOOLBOX_BTNS = ['rect', 'polygon', 'keep', 'clear']; function brushPreprocessor(option, isNew) { var brushComponents = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_1__["normalizeToArray"])(option ? option.brush : []); if (!brushComponents.length) { return; } var brushComponentSpecifiedBtns = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](brushComponents, function (brushOpt) { var tbs = brushOpt.hasOwnProperty('toolbox') ? brushOpt.toolbox : []; if (tbs instanceof Array) { brushComponentSpecifiedBtns = brushComponentSpecifiedBtns.concat(tbs); } }); var toolbox = option && option.toolbox; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](toolbox)) { toolbox = toolbox[0]; } if (!toolbox) { toolbox = { feature: {} }; option.toolbox = [toolbox]; } var toolboxFeature = toolbox.feature || (toolbox.feature = {}); var toolboxBrush = toolboxFeature.brush || (toolboxFeature.brush = {}); var brushTypes = toolboxBrush.type || (toolboxBrush.type = []); brushTypes.push.apply(brushTypes, brushComponentSpecifiedBtns); removeDuplicate(brushTypes); if (isNew && !brushTypes.length) { brushTypes.push.apply(brushTypes, DEFAULT_TOOLBOX_BTNS); } } function removeDuplicate(arr) { var map = {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](arr, function (val) { map[val] = 1; }); arr.length = 0; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](map, function (flag, val) { arr.push(val); }); } /***/ }), /***/ "./node_modules/echarts/lib/component/brush/selector.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/component/brush/selector.js ***! \**************************************************************/ /*! exports provided: makeBrushCommonSelectorForSeries, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeBrushCommonSelectorForSeries", function() { return makeBrushCommonSelectorForSeries; }); /* harmony import */ var zrender_lib_contain_polygon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/contain/polygon.js */ "./node_modules/zrender/lib/contain/polygon.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function makeBrushCommonSelectorForSeries(area) { var brushType = area.brushType; // Do not use function binding or curry for performance. var selectors = { point: function (itemLayout) { return selector[brushType].point(itemLayout, selectors, area); }, rect: function (itemLayout) { return selector[brushType].rect(itemLayout, selectors, area); } }; return selectors; } var selector = { lineX: getLineSelectors(0), lineY: getLineSelectors(1), rect: { point: function (itemLayout, selectors, area) { return itemLayout && area.boundingRect.contain(itemLayout[0], itemLayout[1]); }, rect: function (itemLayout, selectors, area) { return itemLayout && area.boundingRect.intersect(itemLayout); } }, polygon: { point: function (itemLayout, selectors, area) { return itemLayout && area.boundingRect.contain(itemLayout[0], itemLayout[1]) && zrender_lib_contain_polygon_js__WEBPACK_IMPORTED_MODULE_0__["contain"](area.range, itemLayout[0], itemLayout[1]); }, rect: function (itemLayout, selectors, area) { var points = area.range; if (!itemLayout || points.length <= 1) { return false; } var x = itemLayout.x; var y = itemLayout.y; var width = itemLayout.width; var height = itemLayout.height; var p = points[0]; if (zrender_lib_contain_polygon_js__WEBPACK_IMPORTED_MODULE_0__["contain"](points, x, y) || zrender_lib_contain_polygon_js__WEBPACK_IMPORTED_MODULE_0__["contain"](points, x + width, y) || zrender_lib_contain_polygon_js__WEBPACK_IMPORTED_MODULE_0__["contain"](points, x, y + height) || zrender_lib_contain_polygon_js__WEBPACK_IMPORTED_MODULE_0__["contain"](points, x + width, y + height) || zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__["default"].create(itemLayout).contain(p[0], p[1]) || Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["linePolygonIntersect"])(x, y, x + width, y, points) || Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["linePolygonIntersect"])(x, y, x, y + height, points) || Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["linePolygonIntersect"])(x + width, y, x + width, y + height, points) || Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["linePolygonIntersect"])(x, y + height, x + width, y + height, points)) { return true; } } } }; function getLineSelectors(xyIndex) { var xy = ['x', 'y']; var wh = ['width', 'height']; return { point: function (itemLayout, selectors, area) { if (itemLayout) { var range = area.range; var p = itemLayout[xyIndex]; return inLineRange(p, range); } }, rect: function (itemLayout, selectors, area) { if (itemLayout) { var range = area.range; var layoutRange = [itemLayout[xy[xyIndex]], itemLayout[xy[xyIndex]] + itemLayout[wh[xyIndex]]]; layoutRange[1] < layoutRange[0] && layoutRange.reverse(); return inLineRange(layoutRange[0], range) || inLineRange(layoutRange[1], range) || inLineRange(range[0], layoutRange) || inLineRange(range[1], layoutRange); } } }; } function inLineRange(p, range) { return range[0] <= p && p <= range[1]; } /* harmony default export */ __webpack_exports__["default"] = (selector); /***/ }), /***/ "./node_modules/echarts/lib/component/brush/visualEncoding.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/component/brush/visualEncoding.js ***! \********************************************************************/ /*! exports provided: layoutCovers, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "layoutCovers", function() { return layoutCovers; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return brushVisual; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var _visual_visualSolution_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../visual/visualSolution.js */ "./node_modules/echarts/lib/visual/visualSolution.js"); /* harmony import */ var _selector_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./selector.js */ "./node_modules/echarts/lib/component/brush/selector.js"); /* harmony import */ var _util_throttle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/throttle.js */ "./node_modules/echarts/lib/util/throttle.js"); /* harmony import */ var _helper_BrushTargetManager_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helper/BrushTargetManager.js */ "./node_modules/echarts/lib/component/helper/BrushTargetManager.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var STATE_LIST = ['inBrush', 'outOfBrush']; var DISPATCH_METHOD = '__ecBrushSelect'; var DISPATCH_FLAG = '__ecInBrushSelectEvent'; ; function layoutCovers(ecModel) { ecModel.eachComponent({ mainType: 'brush' }, function (brushModel) { var brushTargetManager = brushModel.brushTargetManager = new _helper_BrushTargetManager_js__WEBPACK_IMPORTED_MODULE_5__["default"](brushModel.option, ecModel); brushTargetManager.setInputRanges(brushModel.areas, ecModel); }); } /** * Register the visual encoding if this modules required. */ function brushVisual(ecModel, api, payload) { var brushSelected = []; var throttleType; var throttleDelay; ecModel.eachComponent({ mainType: 'brush' }, function (brushModel) { payload && payload.type === 'takeGlobalCursor' && brushModel.setBrushOption(payload.key === 'brush' ? payload.brushOption : { brushType: false }); }); layoutCovers(ecModel); ecModel.eachComponent({ mainType: 'brush' }, function (brushModel, brushIndex) { var thisBrushSelected = { brushId: brushModel.id, brushIndex: brushIndex, brushName: brushModel.name, areas: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"](brushModel.areas), selected: [] }; // Every brush component exists in event params, convenient // for user to find by index. brushSelected.push(thisBrushSelected); var brushOption = brushModel.option; var brushLink = brushOption.brushLink; var linkedSeriesMap = []; var selectedDataIndexForLink = []; var rangeInfoBySeries = []; var hasBrushExists = false; if (!brushIndex) { // Only the first throttle setting works. throttleType = brushOption.throttleType; throttleDelay = brushOption.throttleDelay; } // Add boundingRect and selectors to range. var areas = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](brushModel.areas, function (area) { var builder = boundingRectBuilders[area.brushType]; var selectableArea = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"]({ boundingRect: builder ? builder(area) : void 0 }, area); selectableArea.selectors = Object(_selector_js__WEBPACK_IMPORTED_MODULE_3__["makeBrushCommonSelectorForSeries"])(selectableArea); return selectableArea; }); var visualMappings = _visual_visualSolution_js__WEBPACK_IMPORTED_MODULE_2__["createVisualMappings"](brushModel.option, STATE_LIST, function (mappingOption) { mappingOption.mappingMethod = 'fixed'; }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](brushLink) && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](brushLink, function (seriesIndex) { linkedSeriesMap[seriesIndex] = 1; }); function linkOthers(seriesIndex) { return brushLink === 'all' || !!linkedSeriesMap[seriesIndex]; } // If no supported brush or no brush on the series, // all visuals should be in original state. function brushed(rangeInfoList) { return !!rangeInfoList.length; } /** * Logic for each series: (If the logic has to be modified one day, do it carefully!) * * ( brushed ┬ && ┬hasBrushExist ┬ && linkOthers ) => StepA: ┬record, ┬ StepB: ┬visualByRecord. * !brushed┘ ├hasBrushExist ┤ └nothing,┘ ├visualByRecord. * └!hasBrushExist┘ └nothing. * ( !brushed && ┬hasBrushExist ┬ && linkOthers ) => StepA: nothing, StepB: ┬visualByRecord. * └!hasBrushExist┘ └nothing. * ( brushed ┬ && !linkOthers ) => StepA: nothing, StepB: ┬visualByCheck. * !brushed┘ └nothing. * ( !brushed && !linkOthers ) => StepA: nothing, StepB: nothing. */ // Step A ecModel.eachSeries(function (seriesModel, seriesIndex) { var rangeInfoList = rangeInfoBySeries[seriesIndex] = []; seriesModel.subType === 'parallel' ? stepAParallel(seriesModel, seriesIndex) : stepAOthers(seriesModel, seriesIndex, rangeInfoList); }); function stepAParallel(seriesModel, seriesIndex) { var coordSys = seriesModel.coordinateSystem; hasBrushExists = hasBrushExists || coordSys.hasAxisBrushed(); linkOthers(seriesIndex) && coordSys.eachActiveState(seriesModel.getData(), function (activeState, dataIndex) { activeState === 'active' && (selectedDataIndexForLink[dataIndex] = 1); }); } function stepAOthers(seriesModel, seriesIndex, rangeInfoList) { if (!seriesModel.brushSelector || brushModelNotControll(brushModel, seriesIndex)) { return; } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](areas, function (area) { if (brushModel.brushTargetManager.controlSeries(area, seriesModel, ecModel)) { rangeInfoList.push(area); } hasBrushExists = hasBrushExists || brushed(rangeInfoList); }); if (linkOthers(seriesIndex) && brushed(rangeInfoList)) { var data_1 = seriesModel.getData(); data_1.each(function (dataIndex) { if (checkInRange(seriesModel, rangeInfoList, data_1, dataIndex)) { selectedDataIndexForLink[dataIndex] = 1; } }); } } // Step B ecModel.eachSeries(function (seriesModel, seriesIndex) { var seriesBrushSelected = { seriesId: seriesModel.id, seriesIndex: seriesIndex, seriesName: seriesModel.name, dataIndex: [] }; // Every series exists in event params, convenient // for user to find series by seriesIndex. thisBrushSelected.selected.push(seriesBrushSelected); var rangeInfoList = rangeInfoBySeries[seriesIndex]; var data = seriesModel.getData(); var getValueState = linkOthers(seriesIndex) ? function (dataIndex) { return selectedDataIndexForLink[dataIndex] ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush') : 'outOfBrush'; } : function (dataIndex) { return checkInRange(seriesModel, rangeInfoList, data, dataIndex) ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush') : 'outOfBrush'; }; // If no supported brush or no brush, all visuals are in original state. (linkOthers(seriesIndex) ? hasBrushExists : brushed(rangeInfoList)) && _visual_visualSolution_js__WEBPACK_IMPORTED_MODULE_2__["applyVisual"](STATE_LIST, visualMappings, data, getValueState); }); }); dispatchAction(api, throttleType, throttleDelay, brushSelected, payload); } ; function dispatchAction(api, throttleType, throttleDelay, brushSelected, payload) { // This event will not be triggered when `setOpion`, otherwise dead lock may // triggered when do `setOption` in event listener, which we do not find // satisfactory way to solve yet. Some considered resolutions: // (a) Diff with prevoius selected data ant only trigger event when changed. // But store previous data and diff precisely (i.e., not only by dataIndex, but // also detect value changes in selected data) might bring complexity or fragility. // (b) Use spectial param like `silent` to suppress event triggering. // But such kind of volatile param may be weird in `setOption`. if (!payload) { return; } var zr = api.getZr(); if (zr[DISPATCH_FLAG]) { return; } if (!zr[DISPATCH_METHOD]) { zr[DISPATCH_METHOD] = doDispatch; } var fn = _util_throttle_js__WEBPACK_IMPORTED_MODULE_4__["createOrUpdate"](zr, DISPATCH_METHOD, throttleDelay, throttleType); fn(api, brushSelected); } function doDispatch(api, brushSelected) { if (!api.isDisposed()) { var zr = api.getZr(); zr[DISPATCH_FLAG] = true; api.dispatchAction({ type: 'brushSelect', batch: brushSelected }); zr[DISPATCH_FLAG] = false; } } function checkInRange(seriesModel, rangeInfoList, data, dataIndex) { for (var i = 0, len = rangeInfoList.length; i < len; i++) { var area = rangeInfoList[i]; if (seriesModel.brushSelector(dataIndex, data, area.selectors, area)) { return true; } } } function brushModelNotControll(brushModel, seriesIndex) { var seriesIndices = brushModel.option.seriesIndex; return seriesIndices != null && seriesIndices !== 'all' && (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](seriesIndices) ? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"](seriesIndices, seriesIndex) < 0 : seriesIndex !== seriesIndices); } var boundingRectBuilders = { rect: function (area) { return getBoundingRectFromMinMax(area.range); }, polygon: function (area) { var minMax; var range = area.range; for (var i = 0, len = range.length; i < len; i++) { minMax = minMax || [[Infinity, -Infinity], [Infinity, -Infinity]]; var rg = range[i]; rg[0] < minMax[0][0] && (minMax[0][0] = rg[0]); rg[0] > minMax[0][1] && (minMax[0][1] = rg[0]); rg[1] < minMax[1][0] && (minMax[1][0] = rg[1]); rg[1] > minMax[1][1] && (minMax[1][1] = rg[1]); } return minMax && getBoundingRectFromMinMax(minMax); } }; function getBoundingRectFromMinMax(minMax) { return new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__["default"](minMax[0][0], minMax[1][0], minMax[0][1] - minMax[0][0], minMax[1][1] - minMax[1][0]); } /***/ }), /***/ "./node_modules/echarts/lib/component/calendar/CalendarView.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/component/calendar/CalendarView.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var _core_locale_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../core/locale.js */ "./node_modules/echarts/lib/core/locale.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var CalendarView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CalendarView, _super); function CalendarView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = CalendarView.type; return _this; } CalendarView.prototype.render = function (calendarModel, ecModel, api) { var group = this.group; group.removeAll(); var coordSys = calendarModel.coordinateSystem; // range info var rangeData = coordSys.getRangeInfo(); var orient = coordSys.getOrient(); // locale var localeModel = ecModel.getLocaleModel(); this._renderDayRect(calendarModel, rangeData, group); // _renderLines must be called prior to following function this._renderLines(calendarModel, rangeData, orient, group); this._renderYearText(calendarModel, rangeData, orient, group); this._renderMonthText(calendarModel, localeModel, orient, group); this._renderWeekText(calendarModel, localeModel, rangeData, orient, group); }; // render day rect CalendarView.prototype._renderDayRect = function (calendarModel, rangeData, group) { var coordSys = calendarModel.coordinateSystem; var itemRectStyleModel = calendarModel.getModel('itemStyle').getItemStyle(); var sw = coordSys.getCellWidth(); var sh = coordSys.getCellHeight(); for (var i = rangeData.start.time; i <= rangeData.end.time; i = coordSys.getNextNDay(i, 1).time) { var point = coordSys.dataToRect([i], false).tl; // every rect var rect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Rect"]({ shape: { x: point[0], y: point[1], width: sw, height: sh }, cursor: 'default', style: itemRectStyleModel }); group.add(rect); } }; // render separate line CalendarView.prototype._renderLines = function (calendarModel, rangeData, orient, group) { var self = this; var coordSys = calendarModel.coordinateSystem; var lineStyleModel = calendarModel.getModel(['splitLine', 'lineStyle']).getLineStyle(); var show = calendarModel.get(['splitLine', 'show']); var lineWidth = lineStyleModel.lineWidth; this._tlpoints = []; this._blpoints = []; this._firstDayOfMonth = []; this._firstDayPoints = []; var firstDay = rangeData.start; for (var i = 0; firstDay.time <= rangeData.end.time; i++) { addPoints(firstDay.formatedDate); if (i === 0) { firstDay = coordSys.getDateInfo(rangeData.start.y + '-' + rangeData.start.m); } var date = firstDay.date; date.setMonth(date.getMonth() + 1); firstDay = coordSys.getDateInfo(date); } addPoints(coordSys.getNextNDay(rangeData.end.time, 1).formatedDate); function addPoints(date) { self._firstDayOfMonth.push(coordSys.getDateInfo(date)); self._firstDayPoints.push(coordSys.dataToRect([date], false).tl); var points = self._getLinePointsOfOneWeek(calendarModel, date, orient); self._tlpoints.push(points[0]); self._blpoints.push(points[points.length - 1]); show && self._drawSplitline(points, lineStyleModel, group); } // render top/left line show && this._drawSplitline(self._getEdgesPoints(self._tlpoints, lineWidth, orient), lineStyleModel, group); // render bottom/right line show && this._drawSplitline(self._getEdgesPoints(self._blpoints, lineWidth, orient), lineStyleModel, group); }; // get points at both ends CalendarView.prototype._getEdgesPoints = function (points, lineWidth, orient) { var rs = [points[0].slice(), points[points.length - 1].slice()]; var idx = orient === 'horizontal' ? 0 : 1; // both ends of the line are extend half lineWidth rs[0][idx] = rs[0][idx] - lineWidth / 2; rs[1][idx] = rs[1][idx] + lineWidth / 2; return rs; }; // render split line CalendarView.prototype._drawSplitline = function (points, lineStyle, group) { var poyline = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Polyline"]({ z2: 20, shape: { points: points }, style: lineStyle }); group.add(poyline); }; // render month line of one week points CalendarView.prototype._getLinePointsOfOneWeek = function (calendarModel, date, orient) { var coordSys = calendarModel.coordinateSystem; var parsedDate = coordSys.getDateInfo(date); var points = []; for (var i = 0; i < 7; i++) { var tmpD = coordSys.getNextNDay(parsedDate.time, i); var point = coordSys.dataToRect([tmpD.time], false); points[2 * tmpD.day] = point.tl; points[2 * tmpD.day + 1] = point[orient === 'horizontal' ? 'bl' : 'tr']; } return points; }; CalendarView.prototype._formatterLabel = function (formatter, params) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(formatter) && formatter) { return Object(_util_format_js__WEBPACK_IMPORTED_MODULE_4__["formatTplSimple"])(formatter, params); } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"])(formatter)) { return formatter(params); } return params.nameMap; }; CalendarView.prototype._yearTextPositionControl = function (textEl, point, orient, position, margin) { var x = point[0]; var y = point[1]; var aligns = ['center', 'bottom']; if (position === 'bottom') { y += margin; aligns = ['center', 'top']; } else if (position === 'left') { x -= margin; } else if (position === 'right') { x += margin; aligns = ['center', 'top']; } else { // top y -= margin; } var rotate = 0; if (position === 'left' || position === 'right') { rotate = Math.PI / 2; } return { rotation: rotate, x: x, y: y, style: { align: aligns[0], verticalAlign: aligns[1] } }; }; // render year CalendarView.prototype._renderYearText = function (calendarModel, rangeData, orient, group) { var yearLabel = calendarModel.getModel('yearLabel'); if (!yearLabel.get('show')) { return; } var margin = yearLabel.get('margin'); var pos = yearLabel.get('position'); if (!pos) { pos = orient !== 'horizontal' ? 'top' : 'left'; } var points = [this._tlpoints[this._tlpoints.length - 1], this._blpoints[0]]; var xc = (points[0][0] + points[1][0]) / 2; var yc = (points[0][1] + points[1][1]) / 2; var idx = orient === 'horizontal' ? 0 : 1; var posPoints = { top: [xc, points[idx][1]], bottom: [xc, points[1 - idx][1]], left: [points[1 - idx][0], yc], right: [points[idx][0], yc] }; var name = rangeData.start.y; if (+rangeData.end.y > +rangeData.start.y) { name = name + '-' + rangeData.end.y; } var formatter = yearLabel.get('formatter'); var params = { start: rangeData.start.y, end: rangeData.end.y, nameMap: name }; var content = this._formatterLabel(formatter, params); var yearText = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"]({ z2: 30, style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_3__["createTextStyle"])(yearLabel, { text: content }), silent: yearLabel.get('silent') }); yearText.attr(this._yearTextPositionControl(yearText, posPoints[pos], orient, pos, margin)); group.add(yearText); }; CalendarView.prototype._monthTextPositionControl = function (point, isCenter, orient, position, margin) { var align = 'left'; var vAlign = 'top'; var x = point[0]; var y = point[1]; if (orient === 'horizontal') { y = y + margin; if (isCenter) { align = 'center'; } if (position === 'start') { vAlign = 'bottom'; } } else { x = x + margin; if (isCenter) { vAlign = 'middle'; } if (position === 'start') { align = 'right'; } } return { x: x, y: y, align: align, verticalAlign: vAlign }; }; // render month and year text CalendarView.prototype._renderMonthText = function (calendarModel, localeModel, orient, group) { var monthLabel = calendarModel.getModel('monthLabel'); if (!monthLabel.get('show')) { return; } var nameMap = monthLabel.get('nameMap'); var margin = monthLabel.get('margin'); var pos = monthLabel.get('position'); var align = monthLabel.get('align'); var termPoints = [this._tlpoints, this._blpoints]; if (!nameMap || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(nameMap)) { if (nameMap) { // case-sensitive localeModel = Object(_core_locale_js__WEBPACK_IMPORTED_MODULE_7__["getLocaleModel"])(nameMap) || localeModel; } // PENDING // for ZH locale, original form is `一月` but current form is `1月` nameMap = localeModel.get(['time', 'monthAbbr']) || []; } var idx = pos === 'start' ? 0 : 1; var axis = orient === 'horizontal' ? 0 : 1; margin = pos === 'start' ? -margin : margin; var isCenter = align === 'center'; var labelSilent = monthLabel.get('silent'); for (var i = 0; i < termPoints[idx].length - 1; i++) { var tmp = termPoints[idx][i].slice(); var firstDay = this._firstDayOfMonth[i]; if (isCenter) { var firstDayPoints = this._firstDayPoints[i]; tmp[axis] = (firstDayPoints[axis] + termPoints[0][i + 1][axis]) / 2; } var formatter = monthLabel.get('formatter'); var name_1 = nameMap[+firstDay.m - 1]; var params = { yyyy: firstDay.y, yy: (firstDay.y + '').slice(2), MM: firstDay.m, M: +firstDay.m, nameMap: name_1 }; var content = this._formatterLabel(formatter, params); var monthText = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"]({ z2: 30, style: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_3__["createTextStyle"])(monthLabel, { text: content }), this._monthTextPositionControl(tmp, isCenter, orient, pos, margin)), silent: labelSilent }); group.add(monthText); } }; CalendarView.prototype._weekTextPositionControl = function (point, orient, position, margin, cellSize) { var align = 'center'; var vAlign = 'middle'; var x = point[0]; var y = point[1]; var isStart = position === 'start'; if (orient === 'horizontal') { x = x + margin + (isStart ? 1 : -1) * cellSize[0] / 2; align = isStart ? 'right' : 'left'; } else { y = y + margin + (isStart ? 1 : -1) * cellSize[1] / 2; vAlign = isStart ? 'bottom' : 'top'; } return { x: x, y: y, align: align, verticalAlign: vAlign }; }; // render weeks CalendarView.prototype._renderWeekText = function (calendarModel, localeModel, rangeData, orient, group) { var dayLabel = calendarModel.getModel('dayLabel'); if (!dayLabel.get('show')) { return; } var coordSys = calendarModel.coordinateSystem; var pos = dayLabel.get('position'); var nameMap = dayLabel.get('nameMap'); var margin = dayLabel.get('margin'); var firstDayOfWeek = coordSys.getFirstDayOfWeek(); if (!nameMap || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(nameMap)) { if (nameMap) { // case-sensitive localeModel = Object(_core_locale_js__WEBPACK_IMPORTED_MODULE_7__["getLocaleModel"])(nameMap) || localeModel; } // Use the first letter of `dayOfWeekAbbr` if `dayOfWeekShort` doesn't exist in the locale file var dayOfWeekShort = localeModel.get(['time', 'dayOfWeekShort']); nameMap = dayOfWeekShort || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"])(localeModel.get(['time', 'dayOfWeekAbbr']), function (val) { return val[0]; }); } var start = coordSys.getNextNDay(rangeData.end.time, 7 - rangeData.lweek).time; var cellSize = [coordSys.getCellWidth(), coordSys.getCellHeight()]; margin = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["parsePercent"])(margin, Math.min(cellSize[1], cellSize[0])); if (pos === 'start') { start = coordSys.getNextNDay(rangeData.start.time, -(7 + rangeData.fweek)).time; margin = -margin; } var labelSilent = dayLabel.get('silent'); for (var i = 0; i < 7; i++) { var tmpD = coordSys.getNextNDay(start, i); var point = coordSys.dataToRect([tmpD.time], false).center; var day = i; day = Math.abs((i + firstDayOfWeek) % 7); var weekText = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"]({ z2: 30, style: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_3__["createTextStyle"])(dayLabel, { text: nameMap[day] }), this._weekTextPositionControl(point, orient, pos, margin, cellSize)), silent: labelSilent }); group.add(weekText); } }; CalendarView.type = 'calendar'; return CalendarView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_6__["default"]); /* harmony default export */ __webpack_exports__["default"] = (CalendarView); /***/ }), /***/ "./node_modules/echarts/lib/component/calendar/install.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/component/calendar/install.js ***! \****************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _coord_calendar_CalendarModel_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../coord/calendar/CalendarModel.js */ "./node_modules/echarts/lib/coord/calendar/CalendarModel.js"); /* harmony import */ var _CalendarView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CalendarView.js */ "./node_modules/echarts/lib/component/calendar/CalendarView.js"); /* harmony import */ var _coord_calendar_Calendar_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../coord/calendar/Calendar.js */ "./node_modules/echarts/lib/coord/calendar/Calendar.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerComponentModel(_coord_calendar_CalendarModel_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerComponentView(_CalendarView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerCoordinateSystem('calendar', _coord_calendar_Calendar_js__WEBPACK_IMPORTED_MODULE_2__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/AxisProxy.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/AxisProxy.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _helper_sliderMove_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/sliderMove.js */ "./node_modules/echarts/lib/component/helper/sliderMove.js"); /* harmony import */ var _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../coord/axisHelper.js */ "./node_modules/echarts/lib/coord/axisHelper.js"); /* harmony import */ var _coord_scaleRawExtentInfo_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../coord/scaleRawExtentInfo.js */ "./node_modules/echarts/lib/coord/scaleRawExtentInfo.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/component/dataZoom/helper.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]; var asc = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["asc"]; /** * Operate single axis. * One axis can only operated by one axis operator. * Different dataZoomModels may be defined to operate the same axis. * (i.e. 'inside' data zoom and 'slider' data zoom components) * So dataZoomModels share one axisProxy in that case. */ var AxisProxy = /** @class */function () { function AxisProxy(dimName, axisIndex, dataZoomModel, ecModel) { this._dimName = dimName; this._axisIndex = axisIndex; this.ecModel = ecModel; this._dataZoomModel = dataZoomModel; // /** // * @readOnly // * @private // */ // this.hasSeriesStacked; } /** * Whether the axisProxy is hosted by dataZoomModel. */ AxisProxy.prototype.hostedBy = function (dataZoomModel) { return this._dataZoomModel === dataZoomModel; }; /** * @return Value can only be NaN or finite value. */ AxisProxy.prototype.getDataValueWindow = function () { return this._valueWindow.slice(); }; /** * @return {Array.} */ AxisProxy.prototype.getDataPercentWindow = function () { return this._percentWindow.slice(); }; AxisProxy.prototype.getTargetSeriesModels = function () { var seriesModels = []; this.ecModel.eachSeries(function (seriesModel) { if (Object(_helper_js__WEBPACK_IMPORTED_MODULE_5__["isCoordSupported"])(seriesModel)) { var axisMainType = Object(_helper_js__WEBPACK_IMPORTED_MODULE_5__["getAxisMainType"])(this._dimName); var axisModel = seriesModel.getReferringComponents(axisMainType, _util_model_js__WEBPACK_IMPORTED_MODULE_6__["SINGLE_REFERRING"]).models[0]; if (axisModel && this._axisIndex === axisModel.componentIndex) { seriesModels.push(seriesModel); } } }, this); return seriesModels; }; AxisProxy.prototype.getAxisModel = function () { return this.ecModel.getComponent(this._dimName + 'Axis', this._axisIndex); }; AxisProxy.prototype.getMinMaxSpan = function () { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"](this._minMaxSpan); }; /** * Only calculate by given range and this._dataExtent, do not change anything. */ AxisProxy.prototype.calculateDataWindow = function (opt) { var dataExtent = this._dataExtent; var axisModel = this.getAxisModel(); var scale = axisModel.axis.scale; var rangePropMode = this._dataZoomModel.getRangePropMode(); var percentExtent = [0, 100]; var percentWindow = []; var valueWindow = []; var hasPropModeValue; each(['start', 'end'], function (prop, idx) { var boundPercent = opt[prop]; var boundValue = opt[prop + 'Value']; // Notice: dataZoom is based either on `percentProp` ('start', 'end') or // on `valueProp` ('startValue', 'endValue'). (They are based on the data extent // but not min/max of axis, which will be calculated by data window then). // The former one is suitable for cases that a dataZoom component controls multiple // axes with different unit or extent, and the latter one is suitable for accurate // zoom by pixel (e.g., in dataZoomSelect). // we use `getRangePropMode()` to mark which prop is used. `rangePropMode` is updated // only when setOption or dispatchAction, otherwise it remains its original value. // (Why not only record `percentProp` and always map to `valueProp`? Because // the map `valueProp` -> `percentProp` -> `valueProp` probably not the original // `valueProp`. consider two axes constrolled by one dataZoom. They have different // data extent. All of values that are overflow the `dataExtent` will be calculated // to percent '100%'). if (rangePropMode[idx] === 'percent') { boundPercent == null && (boundPercent = percentExtent[idx]); // Use scale.parse to math round for category or time axis. boundValue = scale.parse(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["linearMap"](boundPercent, percentExtent, dataExtent)); } else { hasPropModeValue = true; boundValue = boundValue == null ? dataExtent[idx] : scale.parse(boundValue); // Calculating `percent` from `value` may be not accurate, because // This calculation can not be inversed, because all of values that // are overflow the `dataExtent` will be calculated to percent '100%' boundPercent = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["linearMap"](boundValue, dataExtent, percentExtent); } // valueWindow[idx] = round(boundValue); // percentWindow[idx] = round(boundPercent); // fallback to extent start/end when parsed value or percent is invalid valueWindow[idx] = boundValue == null || isNaN(boundValue) ? dataExtent[idx] : boundValue; percentWindow[idx] = boundPercent == null || isNaN(boundPercent) ? percentExtent[idx] : boundPercent; }); asc(valueWindow); asc(percentWindow); // The windows from user calling of `dispatchAction` might be out of the extent, // or do not obey the `min/maxSpan`, `min/maxValueSpan`. But we don't restrict window // by `zoomLock` here, because we see `zoomLock` just as a interaction constraint, // where API is able to initialize/modify the window size even though `zoomLock` // specified. var spans = this._minMaxSpan; hasPropModeValue ? restrictSet(valueWindow, percentWindow, dataExtent, percentExtent, false) : restrictSet(percentWindow, valueWindow, percentExtent, dataExtent, true); function restrictSet(fromWindow, toWindow, fromExtent, toExtent, toValue) { var suffix = toValue ? 'Span' : 'ValueSpan'; Object(_helper_sliderMove_js__WEBPACK_IMPORTED_MODULE_2__["default"])(0, fromWindow, fromExtent, 'all', spans['min' + suffix], spans['max' + suffix]); for (var i = 0; i < 2; i++) { toWindow[i] = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["linearMap"](fromWindow[i], fromExtent, toExtent, true); toValue && (toWindow[i] = scale.parse(toWindow[i])); } } return { valueWindow: valueWindow, percentWindow: percentWindow }; }; /** * Notice: reset should not be called before series.restoreData() is called, * so it is recommended to be called in "process stage" but not "model init * stage". */ AxisProxy.prototype.reset = function (dataZoomModel) { if (dataZoomModel !== this._dataZoomModel) { return; } var targetSeries = this.getTargetSeriesModels(); // Culculate data window and data extent, and record them. this._dataExtent = calculateDataExtent(this, this._dimName, targetSeries); // `calculateDataWindow` uses min/maxSpan. this._updateMinMaxSpan(); var dataWindow = this.calculateDataWindow(dataZoomModel.settledOption); this._valueWindow = dataWindow.valueWindow; this._percentWindow = dataWindow.percentWindow; // Update axis setting then. this._setAxisModel(); }; AxisProxy.prototype.filterData = function (dataZoomModel, api) { if (dataZoomModel !== this._dataZoomModel) { return; } var axisDim = this._dimName; var seriesModels = this.getTargetSeriesModels(); var filterMode = dataZoomModel.get('filterMode'); var valueWindow = this._valueWindow; if (filterMode === 'none') { return; } // FIXME // Toolbox may has dataZoom injected. And if there are stacked bar chart // with NaN data, NaN will be filtered and stack will be wrong. // So we need to force the mode to be set empty. // In fect, it is not a big deal that do not support filterMode-'filter' // when using toolbox#dataZoom, utill tooltip#dataZoom support "single axis // selection" some day, which might need "adapt to data extent on the // otherAxis", which is disabled by filterMode-'empty'. // But currently, stack has been fixed to based on value but not index, // so this is not an issue any more. // let otherAxisModel = this.getOtherAxisModel(); // if (dataZoomModel.get('$fromToolbox') // && otherAxisModel // && otherAxisModel.hasSeriesStacked // ) { // filterMode = 'empty'; // } // TODO // filterMode 'weakFilter' and 'empty' is not optimized for huge data yet. each(seriesModels, function (seriesModel) { var seriesData = seriesModel.getData(); var dataDims = seriesData.mapDimensionsAll(axisDim); if (!dataDims.length) { return; } if (filterMode === 'weakFilter') { var store_1 = seriesData.getStore(); var dataDimIndices_1 = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](dataDims, function (dim) { return seriesData.getDimensionIndex(dim); }, seriesData); seriesData.filterSelf(function (dataIndex) { var leftOut; var rightOut; var hasValue; for (var i = 0; i < dataDims.length; i++) { var value = store_1.get(dataDimIndices_1[i], dataIndex); var thisHasValue = !isNaN(value); var thisLeftOut = value < valueWindow[0]; var thisRightOut = value > valueWindow[1]; if (thisHasValue && !thisLeftOut && !thisRightOut) { return true; } thisHasValue && (hasValue = true); thisLeftOut && (leftOut = true); thisRightOut && (rightOut = true); } // If both left out and right out, do not filter. return hasValue && leftOut && rightOut; }); } else { each(dataDims, function (dim) { if (filterMode === 'empty') { seriesModel.setData(seriesData = seriesData.map(dim, function (value) { return !isInWindow(value) ? NaN : value; })); } else { var range = {}; range[dim] = valueWindow; // console.time('select'); seriesData.selectRange(range); // console.timeEnd('select'); } }); } each(dataDims, function (dim) { seriesData.setApproximateExtent(valueWindow, dim); }); }); function isInWindow(value) { return value >= valueWindow[0] && value <= valueWindow[1]; } }; AxisProxy.prototype._updateMinMaxSpan = function () { var minMaxSpan = this._minMaxSpan = {}; var dataZoomModel = this._dataZoomModel; var dataExtent = this._dataExtent; each(['min', 'max'], function (minMax) { var percentSpan = dataZoomModel.get(minMax + 'Span'); var valueSpan = dataZoomModel.get(minMax + 'ValueSpan'); valueSpan != null && (valueSpan = this.getAxisModel().axis.scale.parse(valueSpan)); // minValueSpan and maxValueSpan has higher priority than minSpan and maxSpan if (valueSpan != null) { percentSpan = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["linearMap"](dataExtent[0] + valueSpan, dataExtent, [0, 100], true); } else if (percentSpan != null) { valueSpan = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["linearMap"](percentSpan, [0, 100], dataExtent, true) - dataExtent[0]; } minMaxSpan[minMax + 'Span'] = percentSpan; minMaxSpan[minMax + 'ValueSpan'] = valueSpan; }, this); }; AxisProxy.prototype._setAxisModel = function () { var axisModel = this.getAxisModel(); var percentWindow = this._percentWindow; var valueWindow = this._valueWindow; if (!percentWindow) { return; } // [0, 500]: arbitrary value, guess axis extent. var precision = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["getPixelPrecision"](valueWindow, [0, 500]); precision = Math.min(precision, 20); // For value axis, if min/max/scale are not set, we just use the extent obtained // by series data, which may be a little different from the extent calculated by // `axisHelper.getScaleExtent`. But the different just affects the experience a // little when zooming. So it will not be fixed until some users require it strongly. var rawExtentInfo = axisModel.axis.scale.rawExtentInfo; if (percentWindow[0] !== 0) { rawExtentInfo.setDeterminedMinMax('min', +valueWindow[0].toFixed(precision)); } if (percentWindow[1] !== 100) { rawExtentInfo.setDeterminedMinMax('max', +valueWindow[1].toFixed(precision)); } rawExtentInfo.freeze(); }; return AxisProxy; }(); function calculateDataExtent(axisProxy, axisDim, seriesModels) { var dataExtent = [Infinity, -Infinity]; each(seriesModels, function (seriesModel) { Object(_coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["unionAxisExtentFromData"])(dataExtent, seriesModel.getData(), axisDim); }); // It is important to get "consistent" extent when more then one axes is // controlled by a `dataZoom`, otherwise those axes will not be synchronized // when zooming. But it is difficult to know what is "consistent", considering // axes have different type or even different meanings (For example, two // time axes are used to compare data of the same date in different years). // So basically dataZoom just obtains extent by series.data (in category axis // extent can be obtained from axis.data). // Nevertheless, user can set min/max/scale on axes to make extent of axes // consistent. var axisModel = axisProxy.getAxisModel(); var rawExtentResult = Object(_coord_scaleRawExtentInfo_js__WEBPACK_IMPORTED_MODULE_4__["ensureScaleRawExtentInfo"])(axisModel.axis.scale, axisModel, dataExtent).calculate(); return [rawExtentResult.min, rawExtentResult.max]; } /* harmony default export */ __webpack_exports__["default"] = (AxisProxy); /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/DataZoomModel.js": /*!**********************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/DataZoomModel.js ***! \**********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/component/dataZoom/helper.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DataZoomAxisInfo = /** @class */function () { function DataZoomAxisInfo() { this.indexList = []; this.indexMap = []; } DataZoomAxisInfo.prototype.add = function (axisCmptIdx) { // Remove duplication. if (!this.indexMap[axisCmptIdx]) { this.indexList.push(axisCmptIdx); this.indexMap[axisCmptIdx] = true; } }; return DataZoomAxisInfo; }(); var DataZoomModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DataZoomModel, _super); function DataZoomModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = DataZoomModel.type; _this._autoThrottle = true; _this._noTarget = true; /** * It is `[rangeModeForMin, rangeModeForMax]`. * The optional values for `rangeMode`: * + `'value'` mode: the axis extent will always be determined by * `dataZoom.startValue` and `dataZoom.endValue`, despite * how data like and how `axis.min` and `axis.max` are. * + `'percent'` mode: `100` represents 100% of the `[dMin, dMax]`, * where `dMin` is `axis.min` if `axis.min` specified, otherwise `data.extent[0]`, * and `dMax` is `axis.max` if `axis.max` specified, otherwise `data.extent[1]`. * Axis extent will be determined by the result of the percent of `[dMin, dMax]`. * * For example, when users are using dynamic data (update data periodically via `setOption`), * if in `'value`' mode, the window will be kept in a fixed value range despite how * data are appended, while if in `'percent'` mode, whe window range will be changed alone with * the appended data (suppose `axis.min` and `axis.max` are not specified). */ _this._rangePropMode = ['percent', 'percent']; return _this; } DataZoomModel.prototype.init = function (option, parentModel, ecModel) { var inputRawOption = retrieveRawOption(option); /** * Suppose a "main process" start at the point that model prepared (that is, * model initialized or merged or method called in `action`). * We should keep the `main process` idempotent, that is, given a set of values * on `option`, we get the same result. * * But sometimes, values on `option` will be updated for providing users * a "final calculated value" (`dataZoomProcessor` will do that). Those value * should not be the base/input of the `main process`. * * So in that case we should save and keep the input of the `main process` * separately, called `settledOption`. * * For example, consider the case: * (Step_1) brush zoom the grid by `toolbox.dataZoom`, * where the original input `option.startValue`, `option.endValue` are earsed by * calculated value. * (Step)2) click the legend to hide and show a series, * where the new range is calculated by the earsed `startValue` and `endValue`, * which brings incorrect result. */ this.settledOption = inputRawOption; this.mergeDefaultAndTheme(option, ecModel); this._doInit(inputRawOption); }; DataZoomModel.prototype.mergeOption = function (newOption) { var inputRawOption = retrieveRawOption(newOption); // FIX #2591 Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(this.option, newOption, true); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(this.settledOption, inputRawOption, true); this._doInit(inputRawOption); }; DataZoomModel.prototype._doInit = function (inputRawOption) { var thisOption = this.option; this._setDefaultThrottle(inputRawOption); this._updateRangeUse(inputRawOption); var settledOption = this.settledOption; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])([['start', 'startValue'], ['end', 'endValue']], function (names, index) { // start/end has higher priority over startValue/endValue if they // both set, but we should make chart.setOption({endValue: 1000}) // effective, rather than chart.setOption({endValue: 1000, end: null}). if (this._rangePropMode[index] === 'value') { thisOption[names[0]] = settledOption[names[0]] = null; } // Otherwise do nothing and use the merge result. }, this); this._resetTarget(); }; DataZoomModel.prototype._resetTarget = function () { var optionOrient = this.get('orient', true); var targetAxisIndexMap = this._targetAxisInfoMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])(); var hasAxisSpecified = this._fillSpecifiedTargetAxis(targetAxisIndexMap); if (hasAxisSpecified) { this._orient = optionOrient || this._makeAutoOrientByTargetAxis(); } else { this._orient = optionOrient || 'horizontal'; this._fillAutoTargetAxisByOrient(targetAxisIndexMap, this._orient); } this._noTarget = true; targetAxisIndexMap.each(function (axisInfo) { if (axisInfo.indexList.length) { this._noTarget = false; } }, this); }; DataZoomModel.prototype._fillSpecifiedTargetAxis = function (targetAxisIndexMap) { var hasAxisSpecified = false; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(_helper_js__WEBPACK_IMPORTED_MODULE_3__["DATA_ZOOM_AXIS_DIMENSIONS"], function (axisDim) { var refering = this.getReferringComponents(Object(_helper_js__WEBPACK_IMPORTED_MODULE_3__["getAxisMainType"])(axisDim), _util_model_js__WEBPACK_IMPORTED_MODULE_4__["MULTIPLE_REFERRING"]); // When user set axisIndex as a empty array, we think that user specify axisIndex // but do not want use auto mode. Because empty array may be encountered when // some error occurred. if (!refering.specified) { return; } hasAxisSpecified = true; var axisInfo = new DataZoomAxisInfo(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(refering.models, function (axisModel) { axisInfo.add(axisModel.componentIndex); }); targetAxisIndexMap.set(axisDim, axisInfo); }, this); return hasAxisSpecified; }; DataZoomModel.prototype._fillAutoTargetAxisByOrient = function (targetAxisIndexMap, orient) { var ecModel = this.ecModel; var needAuto = true; // Find axis that parallel to dataZoom as default. if (needAuto) { var axisDim = orient === 'vertical' ? 'y' : 'x'; var axisModels = ecModel.findComponents({ mainType: axisDim + 'Axis' }); setParallelAxis(axisModels, axisDim); } // Find axis that parallel to dataZoom as default. if (needAuto) { var axisModels = ecModel.findComponents({ mainType: 'singleAxis', filter: function (axisModel) { return axisModel.get('orient', true) === orient; } }); setParallelAxis(axisModels, 'single'); } function setParallelAxis(axisModels, axisDim) { // At least use the first parallel axis as the target axis. var axisModel = axisModels[0]; if (!axisModel) { return; } var axisInfo = new DataZoomAxisInfo(); axisInfo.add(axisModel.componentIndex); targetAxisIndexMap.set(axisDim, axisInfo); needAuto = false; // Find parallel axes in the same grid. if (axisDim === 'x' || axisDim === 'y') { var gridModel_1 = axisModel.getReferringComponents('grid', _util_model_js__WEBPACK_IMPORTED_MODULE_4__["SINGLE_REFERRING"]).models[0]; gridModel_1 && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(axisModels, function (axModel) { if (axisModel.componentIndex !== axModel.componentIndex && gridModel_1 === axModel.getReferringComponents('grid', _util_model_js__WEBPACK_IMPORTED_MODULE_4__["SINGLE_REFERRING"]).models[0]) { axisInfo.add(axModel.componentIndex); } }); } } if (needAuto) { // If no parallel axis, find the first category axis as default. (Also consider polar). Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(_helper_js__WEBPACK_IMPORTED_MODULE_3__["DATA_ZOOM_AXIS_DIMENSIONS"], function (axisDim) { if (!needAuto) { return; } var axisModels = ecModel.findComponents({ mainType: Object(_helper_js__WEBPACK_IMPORTED_MODULE_3__["getAxisMainType"])(axisDim), filter: function (axisModel) { return axisModel.get('type', true) === 'category'; } }); if (axisModels[0]) { var axisInfo = new DataZoomAxisInfo(); axisInfo.add(axisModels[0].componentIndex); targetAxisIndexMap.set(axisDim, axisInfo); needAuto = false; } }, this); } }; DataZoomModel.prototype._makeAutoOrientByTargetAxis = function () { var dim; // Find the first axis this.eachTargetAxis(function (axisDim) { !dim && (dim = axisDim); }, this); return dim === 'y' ? 'vertical' : 'horizontal'; }; DataZoomModel.prototype._setDefaultThrottle = function (inputRawOption) { // When first time user set throttle, auto throttle ends. if (inputRawOption.hasOwnProperty('throttle')) { this._autoThrottle = false; } if (this._autoThrottle) { var globalOption = this.ecModel.option; this.option.throttle = globalOption.animation && globalOption.animationDurationUpdate > 0 ? 100 : 20; } }; DataZoomModel.prototype._updateRangeUse = function (inputRawOption) { var rangePropMode = this._rangePropMode; var rangeModeInOption = this.get('rangeMode'); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])([['start', 'startValue'], ['end', 'endValue']], function (names, index) { var percentSpecified = inputRawOption[names[0]] != null; var valueSpecified = inputRawOption[names[1]] != null; if (percentSpecified && !valueSpecified) { rangePropMode[index] = 'percent'; } else if (!percentSpecified && valueSpecified) { rangePropMode[index] = 'value'; } else if (rangeModeInOption) { rangePropMode[index] = rangeModeInOption[index]; } else if (percentSpecified) { // percentSpecified && valueSpecified rangePropMode[index] = 'percent'; } // else remain its original setting. }); }; DataZoomModel.prototype.noTarget = function () { return this._noTarget; }; DataZoomModel.prototype.getFirstTargetAxisModel = function () { var firstAxisModel; this.eachTargetAxis(function (axisDim, axisIndex) { if (firstAxisModel == null) { firstAxisModel = this.ecModel.getComponent(Object(_helper_js__WEBPACK_IMPORTED_MODULE_3__["getAxisMainType"])(axisDim), axisIndex); } }, this); return firstAxisModel; }; /** * @param {Function} callback param: axisModel, dimNames, axisIndex, dataZoomModel, ecModel */ DataZoomModel.prototype.eachTargetAxis = function (callback, context) { this._targetAxisInfoMap.each(function (axisInfo, axisDim) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(axisInfo.indexList, function (axisIndex) { callback.call(context, axisDim, axisIndex); }); }); }; /** * @return If not found, return null/undefined. */ DataZoomModel.prototype.getAxisProxy = function (axisDim, axisIndex) { var axisModel = this.getAxisModel(axisDim, axisIndex); if (axisModel) { return axisModel.__dzAxisProxy; } }; /** * @return If not found, return null/undefined. */ DataZoomModel.prototype.getAxisModel = function (axisDim, axisIndex) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(axisDim && axisIndex != null); } var axisInfo = this._targetAxisInfoMap.get(axisDim); if (axisInfo && axisInfo.indexMap[axisIndex]) { return this.ecModel.getComponent(Object(_helper_js__WEBPACK_IMPORTED_MODULE_3__["getAxisMainType"])(axisDim), axisIndex); } }; /** * If not specified, set to undefined. */ DataZoomModel.prototype.setRawRange = function (opt) { var thisOption = this.option; var settledOption = this.settledOption; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])([['start', 'startValue'], ['end', 'endValue']], function (names) { // Consider the pair : // If one has value and the other one is `null/undefined`, we both set them // to `settledOption`. This strategy enables the feature to clear the original // value in `settledOption` to `null/undefined`. // But if both of them are `null/undefined`, we do not set them to `settledOption` // and keep `settledOption` with the original value. This strategy enables users to // only set but not set when calling // `dispatchAction`. // The pair is treated in the same way. if (opt[names[0]] != null || opt[names[1]] != null) { thisOption[names[0]] = settledOption[names[0]] = opt[names[0]]; thisOption[names[1]] = settledOption[names[1]] = opt[names[1]]; } }, this); this._updateRangeUse(opt); }; DataZoomModel.prototype.setCalculatedRange = function (opt) { var option = this.option; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(['start', 'startValue', 'end', 'endValue'], function (name) { option[name] = opt[name]; }); }; DataZoomModel.prototype.getPercentRange = function () { var axisProxy = this.findRepresentativeAxisProxy(); if (axisProxy) { return axisProxy.getDataPercentWindow(); } }; /** * For example, chart.getModel().getComponent('dataZoom').getValueRange('y', 0); * * @return [startValue, endValue] value can only be '-' or finite number. */ DataZoomModel.prototype.getValueRange = function (axisDim, axisIndex) { if (axisDim == null && axisIndex == null) { var axisProxy = this.findRepresentativeAxisProxy(); if (axisProxy) { return axisProxy.getDataValueWindow(); } } else { return this.getAxisProxy(axisDim, axisIndex).getDataValueWindow(); } }; /** * @param axisModel If axisModel given, find axisProxy * corresponding to the axisModel */ DataZoomModel.prototype.findRepresentativeAxisProxy = function (axisModel) { if (axisModel) { return axisModel.__dzAxisProxy; } // Find the first hosted axisProxy var firstProxy; var axisDimList = this._targetAxisInfoMap.keys(); for (var i = 0; i < axisDimList.length; i++) { var axisDim = axisDimList[i]; var axisInfo = this._targetAxisInfoMap.get(axisDim); for (var j = 0; j < axisInfo.indexList.length; j++) { var proxy = this.getAxisProxy(axisDim, axisInfo.indexList[j]); if (proxy.hostedBy(this)) { return proxy; } if (!firstProxy) { firstProxy = proxy; } } } // If no hosted proxy found, still need to return a proxy. // This case always happens in toolbox dataZoom, where axes are all hosted by // other dataZooms. return firstProxy; }; DataZoomModel.prototype.getRangePropMode = function () { return this._rangePropMode.slice(); }; DataZoomModel.prototype.getOrient = function () { if (true) { // Should not be called before initialized. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(this._orient); } return this._orient; }; DataZoomModel.type = 'dataZoom'; DataZoomModel.dependencies = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'series', 'toolbox']; DataZoomModel.defaultOption = { // zlevel: 0, z: 4, filterMode: 'filter', start: 0, end: 100 }; return DataZoomModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /** * Retrieve those raw params from option, which will be cached separately, * because they will be overwritten by normalized/calculated values in the main * process. */ function retrieveRawOption(option) { var ret = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(['start', 'end', 'startValue', 'endValue', 'throttle'], function (name) { option.hasOwnProperty(name) && (ret[name] = option[name]); }); return ret; } /* harmony default export */ __webpack_exports__["default"] = (DataZoomModel); /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/DataZoomView.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/DataZoomView.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DataZoomView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DataZoomView, _super); function DataZoomView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = DataZoomView.type; return _this; } DataZoomView.prototype.render = function (dataZoomModel, ecModel, api, payload) { this.dataZoomModel = dataZoomModel; this.ecModel = ecModel; this.api = api; }; DataZoomView.type = 'dataZoom'; return DataZoomView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (DataZoomView); /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js": /*!************************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js ***! \************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _DataZoomModel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DataZoomModel.js */ "./node_modules/echarts/lib/component/dataZoom/DataZoomModel.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var InsideZoomModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(InsideZoomModel, _super); function InsideZoomModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = InsideZoomModel.type; return _this; } InsideZoomModel.type = 'dataZoom.inside'; InsideZoomModel.defaultOption = Object(_util_component_js__WEBPACK_IMPORTED_MODULE_2__["inheritDefaultOption"])(_DataZoomModel_js__WEBPACK_IMPORTED_MODULE_1__["default"].defaultOption, { disabled: false, zoomLock: false, zoomOnMouseWheel: true, moveOnMouseMove: true, moveOnMouseWheel: false, preventDefaultMouseMove: true }); return InsideZoomModel; }(_DataZoomModel_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (InsideZoomModel); /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/InsideZoomView.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/InsideZoomView.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _DataZoomView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DataZoomView.js */ "./node_modules/echarts/lib/component/dataZoom/DataZoomView.js"); /* harmony import */ var _helper_sliderMove_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helper/sliderMove.js */ "./node_modules/echarts/lib/component/helper/sliderMove.js"); /* harmony import */ var _roams_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./roams.js */ "./node_modules/echarts/lib/component/dataZoom/roams.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var InsideZoomView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(InsideZoomView, _super); function InsideZoomView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = 'dataZoom.inside'; return _this; } InsideZoomView.prototype.render = function (dataZoomModel, ecModel, api) { _super.prototype.render.apply(this, arguments); if (dataZoomModel.noTarget()) { this._clear(); return; } // Hence the `throttle` util ensures to preserve command order, // here simply updating range all the time will not cause missing // any of the the roam change. this.range = dataZoomModel.getPercentRange(); // Reset controllers. _roams_js__WEBPACK_IMPORTED_MODULE_3__["setViewInfoToCoordSysRecord"](api, dataZoomModel, { pan: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["bind"])(getRangeHandlers.pan, this), zoom: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["bind"])(getRangeHandlers.zoom, this), scrollMove: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["bind"])(getRangeHandlers.scrollMove, this) }); }; InsideZoomView.prototype.dispose = function () { this._clear(); _super.prototype.dispose.apply(this, arguments); }; InsideZoomView.prototype._clear = function () { _roams_js__WEBPACK_IMPORTED_MODULE_3__["disposeCoordSysRecordIfNeeded"](this.api, this.dataZoomModel); this.range = null; }; InsideZoomView.type = 'dataZoom.inside'; return InsideZoomView; }(_DataZoomView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); var getRangeHandlers = { zoom: function (coordSysInfo, coordSysMainType, controller, e) { var lastRange = this.range; var range = lastRange.slice(); // Calculate transform by the first axis. var axisModel = coordSysInfo.axisModels[0]; if (!axisModel) { return; } var directionInfo = getDirectionInfo[coordSysMainType](null, [e.originX, e.originY], axisModel, controller, coordSysInfo); var percentPoint = (directionInfo.signal > 0 ? directionInfo.pixelStart + directionInfo.pixelLength - directionInfo.pixel : directionInfo.pixel - directionInfo.pixelStart) / directionInfo.pixelLength * (range[1] - range[0]) + range[0]; var scale = Math.max(1 / e.scale, 0); range[0] = (range[0] - percentPoint) * scale + percentPoint; range[1] = (range[1] - percentPoint) * scale + percentPoint; // Restrict range. var minMaxSpan = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan(); Object(_helper_sliderMove_js__WEBPACK_IMPORTED_MODULE_2__["default"])(0, range, [0, 100], 0, minMaxSpan.minSpan, minMaxSpan.maxSpan); this.range = range; if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) { return range; } }, pan: makeMover(function (range, axisModel, coordSysInfo, coordSysMainType, controller, e) { var directionInfo = getDirectionInfo[coordSysMainType]([e.oldX, e.oldY], [e.newX, e.newY], axisModel, controller, coordSysInfo); return directionInfo.signal * (range[1] - range[0]) * directionInfo.pixel / directionInfo.pixelLength; }), scrollMove: makeMover(function (range, axisModel, coordSysInfo, coordSysMainType, controller, e) { var directionInfo = getDirectionInfo[coordSysMainType]([0, 0], [e.scrollDelta, e.scrollDelta], axisModel, controller, coordSysInfo); return directionInfo.signal * (range[1] - range[0]) * e.scrollDelta; }) }; function makeMover(getPercentDelta) { return function (coordSysInfo, coordSysMainType, controller, e) { var lastRange = this.range; var range = lastRange.slice(); // Calculate transform by the first axis. var axisModel = coordSysInfo.axisModels[0]; if (!axisModel) { return; } var percentDelta = getPercentDelta(range, axisModel, coordSysInfo, coordSysMainType, controller, e); Object(_helper_sliderMove_js__WEBPACK_IMPORTED_MODULE_2__["default"])(percentDelta, range, [0, 100], 'all'); this.range = range; if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) { return range; } }; } var getDirectionInfo = { grid: function (oldPoint, newPoint, axisModel, controller, coordSysInfo) { var axis = axisModel.axis; var ret = {}; var rect = coordSysInfo.model.coordinateSystem.getRect(); oldPoint = oldPoint || [0, 0]; if (axis.dim === 'x') { ret.pixel = newPoint[0] - oldPoint[0]; ret.pixelLength = rect.width; ret.pixelStart = rect.x; ret.signal = axis.inverse ? 1 : -1; } else { // axis.dim === 'y' ret.pixel = newPoint[1] - oldPoint[1]; ret.pixelLength = rect.height; ret.pixelStart = rect.y; ret.signal = axis.inverse ? -1 : 1; } return ret; }, polar: function (oldPoint, newPoint, axisModel, controller, coordSysInfo) { var axis = axisModel.axis; var ret = {}; var polar = coordSysInfo.model.coordinateSystem; var radiusExtent = polar.getRadiusAxis().getExtent(); var angleExtent = polar.getAngleAxis().getExtent(); oldPoint = oldPoint ? polar.pointToCoord(oldPoint) : [0, 0]; newPoint = polar.pointToCoord(newPoint); if (axisModel.mainType === 'radiusAxis') { ret.pixel = newPoint[0] - oldPoint[0]; // ret.pixelLength = Math.abs(radiusExtent[1] - radiusExtent[0]); // ret.pixelStart = Math.min(radiusExtent[0], radiusExtent[1]); ret.pixelLength = radiusExtent[1] - radiusExtent[0]; ret.pixelStart = radiusExtent[0]; ret.signal = axis.inverse ? 1 : -1; } else { // 'angleAxis' ret.pixel = newPoint[1] - oldPoint[1]; // ret.pixelLength = Math.abs(angleExtent[1] - angleExtent[0]); // ret.pixelStart = Math.min(angleExtent[0], angleExtent[1]); ret.pixelLength = angleExtent[1] - angleExtent[0]; ret.pixelStart = angleExtent[0]; ret.signal = axis.inverse ? -1 : 1; } return ret; }, singleAxis: function (oldPoint, newPoint, axisModel, controller, coordSysInfo) { var axis = axisModel.axis; var rect = coordSysInfo.model.coordinateSystem.getRect(); var ret = {}; oldPoint = oldPoint || [0, 0]; if (axis.orient === 'horizontal') { ret.pixel = newPoint[0] - oldPoint[0]; ret.pixelLength = rect.width; ret.pixelStart = rect.x; ret.signal = axis.inverse ? 1 : -1; } else { // 'vertical' ret.pixel = newPoint[1] - oldPoint[1]; ret.pixelLength = rect.height; ret.pixelStart = rect.y; ret.signal = axis.inverse ? -1 : 1; } return ret; } }; /* harmony default export */ __webpack_exports__["default"] = (InsideZoomView); /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js": /*!************************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js ***! \************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _DataZoomModel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DataZoomModel.js */ "./node_modules/echarts/lib/component/dataZoom/DataZoomModel.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SelectDataZoomModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SelectDataZoomModel, _super); function SelectDataZoomModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = SelectDataZoomModel.type; return _this; } SelectDataZoomModel.type = 'dataZoom.select'; return SelectDataZoomModel; }(_DataZoomModel_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (SelectDataZoomModel); /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/SelectZoomView.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/SelectZoomView.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _DataZoomView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DataZoomView.js */ "./node_modules/echarts/lib/component/dataZoom/DataZoomView.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SelectDataZoomView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SelectDataZoomView, _super); function SelectDataZoomView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = SelectDataZoomView.type; return _this; } SelectDataZoomView.type = 'dataZoom.select'; return SelectDataZoomView; }(_DataZoomView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (SelectDataZoomView); /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js": /*!************************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js ***! \************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _DataZoomModel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DataZoomModel.js */ "./node_modules/echarts/lib/component/dataZoom/DataZoomModel.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SliderZoomModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SliderZoomModel, _super); function SliderZoomModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = SliderZoomModel.type; return _this; } SliderZoomModel.type = 'dataZoom.slider'; SliderZoomModel.layoutMode = 'box'; SliderZoomModel.defaultOption = Object(_util_component_js__WEBPACK_IMPORTED_MODULE_2__["inheritDefaultOption"])(_DataZoomModel_js__WEBPACK_IMPORTED_MODULE_1__["default"].defaultOption, { show: true, // deault value can only be drived in view stage. right: 'ph', top: 'ph', width: 'ph', height: 'ph', left: null, bottom: null, borderColor: '#d2dbee', borderRadius: 3, backgroundColor: 'rgba(47,69,84,0)', // dataBackgroundColor: '#ddd', dataBackground: { lineStyle: { color: '#d2dbee', width: 0.5 }, areaStyle: { color: '#d2dbee', opacity: 0.2 } }, selectedDataBackground: { lineStyle: { color: '#8fb0f7', width: 0.5 }, areaStyle: { color: '#8fb0f7', opacity: 0.2 } }, // Color of selected window. fillerColor: 'rgba(135,175,274,0.2)', handleIcon: 'path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z', // Percent of the slider height handleSize: '100%', handleStyle: { color: '#fff', borderColor: '#ACB8D1' }, moveHandleSize: 7, moveHandleIcon: 'path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z', moveHandleStyle: { color: '#D2DBEE', opacity: 0.7 }, showDetail: true, showDataShadow: 'auto', realtime: true, zoomLock: false, textStyle: { color: '#6E7079' }, brushSelect: true, brushStyle: { color: 'rgba(135,175,274,0.15)' }, emphasis: { handleLabel: { show: true }, handleStyle: { borderColor: '#8FB0F7' }, moveHandleStyle: { color: '#8FB0F7' } } }); return SliderZoomModel; }(_DataZoomModel_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (SliderZoomModel); /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/SliderZoomView.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/SliderZoomView.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/event.js */ "./node_modules/zrender/lib/core/event.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_throttle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/throttle.js */ "./node_modules/echarts/lib/util/throttle.js"); /* harmony import */ var _DataZoomView_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DataZoomView.js */ "./node_modules/echarts/lib/component/dataZoom/DataZoomView.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _helper_sliderMove_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helper/sliderMove.js */ "./node_modules/echarts/lib/component/helper/sliderMove.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/component/dataZoom/helper.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var Rect = _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Rect"]; // Constants var DEFAULT_LOCATION_EDGE_GAP = 7; var DEFAULT_FRAME_BORDER_WIDTH = 1; var DEFAULT_FILLER_SIZE = 30; var DEFAULT_MOVE_HANDLE_SIZE = 7; var HORIZONTAL = 'horizontal'; var VERTICAL = 'vertical'; var LABEL_GAP = 5; var SHOW_DATA_SHADOW_SERIES_TYPE = ['line', 'bar', 'candlestick', 'scatter']; var REALTIME_ANIMATION_CONFIG = { easing: 'cubicOut', duration: 100, delay: 0 }; var SliderZoomView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SliderZoomView, _super); function SliderZoomView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = SliderZoomView.type; _this._displayables = {}; return _this; } SliderZoomView.prototype.init = function (ecModel, api) { this.api = api; // A unique handler for each dataZoom component this._onBrush = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._onBrush, this); this._onBrushEnd = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._onBrushEnd, this); }; SliderZoomView.prototype.render = function (dataZoomModel, ecModel, api, payload) { _super.prototype.render.apply(this, arguments); _util_throttle_js__WEBPACK_IMPORTED_MODULE_4__["createOrUpdate"](this, '_dispatchZoomAction', dataZoomModel.get('throttle'), 'fixRate'); this._orient = dataZoomModel.getOrient(); if (dataZoomModel.get('show') === false) { this.group.removeAll(); return; } if (dataZoomModel.noTarget()) { this._clear(); this.group.removeAll(); return; } // Notice: this._resetInterval() should not be executed when payload.type // is 'dataZoom', origin this._range should be maintained, otherwise 'pan' // or 'zoom' info will be missed because of 'throttle' of this.dispatchAction, if (!payload || payload.type !== 'dataZoom' || payload.from !== this.uid) { this._buildView(); } this._updateView(); }; SliderZoomView.prototype.dispose = function () { this._clear(); _super.prototype.dispose.apply(this, arguments); }; SliderZoomView.prototype._clear = function () { _util_throttle_js__WEBPACK_IMPORTED_MODULE_4__["clear"](this, '_dispatchZoomAction'); var zr = this.api.getZr(); zr.off('mousemove', this._onBrush); zr.off('mouseup', this._onBrushEnd); }; SliderZoomView.prototype._buildView = function () { var thisGroup = this.group; thisGroup.removeAll(); this._brushing = false; this._displayables.brushRect = null; this._resetLocation(); this._resetInterval(); var barGroup = this._displayables.sliderGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Group"](); this._renderBackground(); this._renderHandle(); this._renderDataShadow(); thisGroup.add(barGroup); this._positionGroup(); }; SliderZoomView.prototype._resetLocation = function () { var dataZoomModel = this.dataZoomModel; var api = this.api; var showMoveHandle = dataZoomModel.get('brushSelect'); var moveHandleSize = showMoveHandle ? DEFAULT_MOVE_HANDLE_SIZE : 0; // If some of x/y/width/height are not specified, // auto-adapt according to target grid. var coordRect = this._findCoordRect(); var ecSize = { width: api.getWidth(), height: api.getHeight() }; // Default align by coordinate system rect. var positionInfo = this._orient === HORIZONTAL ? { // Why using 'right', because right should be used in vertical, // and it is better to be consistent for dealing with position param merge. right: ecSize.width - coordRect.x - coordRect.width, top: ecSize.height - DEFAULT_FILLER_SIZE - DEFAULT_LOCATION_EDGE_GAP - moveHandleSize, width: coordRect.width, height: DEFAULT_FILLER_SIZE } : { right: DEFAULT_LOCATION_EDGE_GAP, top: coordRect.y, width: DEFAULT_FILLER_SIZE, height: coordRect.height }; // Do not write back to option and replace value 'ph', because // the 'ph' value should be recalculated when resize. var layoutParams = _util_layout_js__WEBPACK_IMPORTED_MODULE_7__["getLayoutParams"](dataZoomModel.option); // Replace the placeholder value. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(['right', 'top', 'width', 'height'], function (name) { if (layoutParams[name] === 'ph') { layoutParams[name] = positionInfo[name]; } }); var layoutRect = _util_layout_js__WEBPACK_IMPORTED_MODULE_7__["getLayoutRect"](layoutParams, ecSize); this._location = { x: layoutRect.x, y: layoutRect.y }; this._size = [layoutRect.width, layoutRect.height]; this._orient === VERTICAL && this._size.reverse(); }; SliderZoomView.prototype._positionGroup = function () { var thisGroup = this.group; var location = this._location; var orient = this._orient; // Just use the first axis to determine mapping. var targetAxisModel = this.dataZoomModel.getFirstTargetAxisModel(); var inverse = targetAxisModel && targetAxisModel.get('inverse'); var sliderGroup = this._displayables.sliderGroup; var otherAxisInverse = (this._dataShadowInfo || {}).otherAxisInverse; // Transform barGroup. sliderGroup.attr(orient === HORIZONTAL && !inverse ? { scaleY: otherAxisInverse ? 1 : -1, scaleX: 1 } : orient === HORIZONTAL && inverse ? { scaleY: otherAxisInverse ? 1 : -1, scaleX: -1 } : orient === VERTICAL && !inverse ? { scaleY: otherAxisInverse ? -1 : 1, scaleX: 1, rotation: Math.PI / 2 } // Don't use Math.PI, considering shadow direction. : { scaleY: otherAxisInverse ? -1 : 1, scaleX: -1, rotation: Math.PI / 2 }); // Position barGroup var rect = thisGroup.getBoundingRect([sliderGroup]); thisGroup.x = location.x - rect.x; thisGroup.y = location.y - rect.y; thisGroup.markRedraw(); }; SliderZoomView.prototype._getViewExtent = function () { return [0, this._size[0]]; }; SliderZoomView.prototype._renderBackground = function () { var dataZoomModel = this.dataZoomModel; var size = this._size; var barGroup = this._displayables.sliderGroup; var brushSelect = dataZoomModel.get('brushSelect'); barGroup.add(new Rect({ silent: true, shape: { x: 0, y: 0, width: size[0], height: size[1] }, style: { fill: dataZoomModel.get('backgroundColor') }, z2: -40 })); // Click panel, over shadow, below handles. var clickPanel = new Rect({ shape: { x: 0, y: 0, width: size[0], height: size[1] }, style: { fill: 'transparent' }, z2: 0, onclick: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._onClickPanel, this) }); var zr = this.api.getZr(); if (brushSelect) { clickPanel.on('mousedown', this._onBrushStart, this); clickPanel.cursor = 'crosshair'; zr.on('mousemove', this._onBrush); zr.on('mouseup', this._onBrushEnd); } else { zr.off('mousemove', this._onBrush); zr.off('mouseup', this._onBrushEnd); } barGroup.add(clickPanel); }; SliderZoomView.prototype._renderDataShadow = function () { var info = this._dataShadowInfo = this._prepareDataShadowInfo(); this._displayables.dataShadowSegs = []; if (!info) { return; } var size = this._size; var oldSize = this._shadowSize || []; var seriesModel = info.series; var data = seriesModel.getRawData(); var candlestickDim = seriesModel.getShadowDim && seriesModel.getShadowDim(); var otherDim = candlestickDim && data.getDimensionInfo(candlestickDim) ? seriesModel.getShadowDim() // @see candlestick : info.otherDim; if (otherDim == null) { return; } var polygonPts = this._shadowPolygonPts; var polylinePts = this._shadowPolylinePts; // Not re-render if data doesn't change. if (data !== this._shadowData || otherDim !== this._shadowDim || size[0] !== oldSize[0] || size[1] !== oldSize[1]) { var otherDataExtent_1 = data.getDataExtent(otherDim); // Nice extent. var otherOffset = (otherDataExtent_1[1] - otherDataExtent_1[0]) * 0.3; otherDataExtent_1 = [otherDataExtent_1[0] - otherOffset, otherDataExtent_1[1] + otherOffset]; var otherShadowExtent_1 = [0, size[1]]; var thisShadowExtent = [0, size[0]]; var areaPoints_1 = [[size[0], 0], [0, 0]]; var linePoints_1 = []; var step_1 = thisShadowExtent[1] / (data.count() - 1); var thisCoord_1 = 0; // Optimize for large data shadow var stride_1 = Math.round(data.count() / size[0]); var lastIsEmpty_1; data.each([otherDim], function (value, index) { if (stride_1 > 0 && index % stride_1) { thisCoord_1 += step_1; return; } // FIXME // Should consider axis.min/axis.max when drawing dataShadow. // FIXME // 应该使用统一的空判断?还是在list里进行空判断? var isEmpty = value == null || isNaN(value) || value === ''; // See #4235. var otherCoord = isEmpty ? 0 : Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(value, otherDataExtent_1, otherShadowExtent_1, true); // Attempt to draw data shadow precisely when there are empty value. if (isEmpty && !lastIsEmpty_1 && index) { areaPoints_1.push([areaPoints_1[areaPoints_1.length - 1][0], 0]); linePoints_1.push([linePoints_1[linePoints_1.length - 1][0], 0]); } else if (!isEmpty && lastIsEmpty_1) { areaPoints_1.push([thisCoord_1, 0]); linePoints_1.push([thisCoord_1, 0]); } areaPoints_1.push([thisCoord_1, otherCoord]); linePoints_1.push([thisCoord_1, otherCoord]); thisCoord_1 += step_1; lastIsEmpty_1 = isEmpty; }); polygonPts = this._shadowPolygonPts = areaPoints_1; polylinePts = this._shadowPolylinePts = linePoints_1; } this._shadowData = data; this._shadowDim = otherDim; this._shadowSize = [size[0], size[1]]; var dataZoomModel = this.dataZoomModel; function createDataShadowGroup(isSelectedArea) { var model = dataZoomModel.getModel(isSelectedArea ? 'selectedDataBackground' : 'dataBackground'); var group = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Group"](); var polygon = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Polygon"]({ shape: { points: polygonPts }, segmentIgnoreThreshold: 1, style: model.getModel('areaStyle').getAreaStyle(), silent: true, z2: -20 }); var polyline = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Polyline"]({ shape: { points: polylinePts }, segmentIgnoreThreshold: 1, style: model.getModel('lineStyle').getLineStyle(), silent: true, z2: -19 }); group.add(polygon); group.add(polyline); return group; } // let dataBackgroundModel = dataZoomModel.getModel('dataBackground'); for (var i = 0; i < 3; i++) { var group = createDataShadowGroup(i === 1); this._displayables.sliderGroup.add(group); this._displayables.dataShadowSegs.push(group); } }; SliderZoomView.prototype._prepareDataShadowInfo = function () { var dataZoomModel = this.dataZoomModel; var showDataShadow = dataZoomModel.get('showDataShadow'); if (showDataShadow === false) { return; } // Find a representative series. var result; var ecModel = this.ecModel; dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) { var seriesModels = dataZoomModel.getAxisProxy(axisDim, axisIndex).getTargetSeriesModels(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(seriesModels, function (seriesModel) { if (result) { return; } if (showDataShadow !== true && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["indexOf"])(SHOW_DATA_SHADOW_SERIES_TYPE, seriesModel.get('type')) < 0) { return; } var thisAxis = ecModel.getComponent(Object(_helper_js__WEBPACK_IMPORTED_MODULE_9__["getAxisMainType"])(axisDim), axisIndex).axis; var otherDim = getOtherDim(axisDim); var otherAxisInverse; var coordSys = seriesModel.coordinateSystem; if (otherDim != null && coordSys.getOtherAxis) { otherAxisInverse = coordSys.getOtherAxis(thisAxis).inverse; } otherDim = seriesModel.getData().mapDimension(otherDim); result = { thisAxis: thisAxis, series: seriesModel, thisDim: axisDim, otherDim: otherDim, otherAxisInverse: otherAxisInverse }; }, this); }, this); return result; }; SliderZoomView.prototype._renderHandle = function () { var thisGroup = this.group; var displayables = this._displayables; var handles = displayables.handles = [null, null]; var handleLabels = displayables.handleLabels = [null, null]; var sliderGroup = this._displayables.sliderGroup; var size = this._size; var dataZoomModel = this.dataZoomModel; var api = this.api; var borderRadius = dataZoomModel.get('borderRadius') || 0; var brushSelect = dataZoomModel.get('brushSelect'); var filler = displayables.filler = new Rect({ silent: brushSelect, style: { fill: dataZoomModel.get('fillerColor') }, textConfig: { position: 'inside' } }); sliderGroup.add(filler); // Frame border. sliderGroup.add(new Rect({ silent: true, subPixelOptimize: true, shape: { x: 0, y: 0, width: size[0], height: size[1], r: borderRadius }, style: { // deprecated option stroke: dataZoomModel.get('dataBackgroundColor') || dataZoomModel.get('borderColor'), lineWidth: DEFAULT_FRAME_BORDER_WIDTH, fill: 'rgba(0,0,0,0)' } })); // Left and right handle to resize Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])([0, 1], function (handleIndex) { var iconStr = dataZoomModel.get('handleIcon'); if (!_util_symbol_js__WEBPACK_IMPORTED_MODULE_11__["symbolBuildProxies"][iconStr] && iconStr.indexOf('path://') < 0 && iconStr.indexOf('image://') < 0) { // Compatitable with the old icon parsers. Which can use a path string without path:// iconStr = 'path://' + iconStr; if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_12__["deprecateLog"])('handleIcon now needs \'path://\' prefix when using a path string'); } } var path = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_11__["createSymbol"])(iconStr, -1, 0, 2, 2, null, true); path.attr({ cursor: getCursor(this._orient), draggable: true, drift: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._onDragMove, this, handleIndex), ondragend: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._onDragEnd, this), onmouseover: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._showDataInfo, this, true), onmouseout: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._showDataInfo, this, false), z2: 5 }); var bRect = path.getBoundingRect(); var handleSize = dataZoomModel.get('handleSize'); this._handleHeight = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(handleSize, this._size[1]); this._handleWidth = bRect.width / bRect.height * this._handleHeight; path.setStyle(dataZoomModel.getModel('handleStyle').getItemStyle()); path.style.strokeNoScale = true; path.rectHover = true; path.ensureState('emphasis').style = dataZoomModel.getModel(['emphasis', 'handleStyle']).getItemStyle(); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_10__["enableHoverEmphasis"])(path); var handleColor = dataZoomModel.get('handleColor'); // deprecated option // Compatitable with previous version if (handleColor != null) { path.style.fill = handleColor; } sliderGroup.add(handles[handleIndex] = path); var textStyleModel = dataZoomModel.getModel('textStyle'); var handleLabel = dataZoomModel.get('handleLabel') || {}; var handleLabelShow = handleLabel.show || false; thisGroup.add(handleLabels[handleIndex] = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Text"]({ silent: true, invisible: !handleLabelShow, style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_13__["createTextStyle"])(textStyleModel, { x: 0, y: 0, text: '', verticalAlign: 'middle', align: 'center', fill: textStyleModel.getTextColor(), font: textStyleModel.getFont() }), z2: 10 })); }, this); // Handle to move. Only visible when brushSelect is set true. var actualMoveZone = filler; if (brushSelect) { var moveHandleHeight = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(dataZoomModel.get('moveHandleSize'), size[1]); var moveHandle_1 = displayables.moveHandle = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Rect"]({ style: dataZoomModel.getModel('moveHandleStyle').getItemStyle(), silent: true, shape: { r: [0, 0, 2, 2], y: size[1] - 0.5, height: moveHandleHeight } }); var iconSize = moveHandleHeight * 0.8; var moveHandleIcon = displayables.moveHandleIcon = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_11__["createSymbol"])(dataZoomModel.get('moveHandleIcon'), -iconSize / 2, -iconSize / 2, iconSize, iconSize, '#fff', true); moveHandleIcon.silent = true; moveHandleIcon.y = size[1] + moveHandleHeight / 2 - 0.5; moveHandle_1.ensureState('emphasis').style = dataZoomModel.getModel(['emphasis', 'moveHandleStyle']).getItemStyle(); var moveZoneExpandSize = Math.min(size[1] / 2, Math.max(moveHandleHeight, 10)); actualMoveZone = displayables.moveZone = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Rect"]({ invisible: true, shape: { y: size[1] - moveZoneExpandSize, height: moveHandleHeight + moveZoneExpandSize } }); actualMoveZone.on('mouseover', function () { api.enterEmphasis(moveHandle_1); }).on('mouseout', function () { api.leaveEmphasis(moveHandle_1); }); sliderGroup.add(moveHandle_1); sliderGroup.add(moveHandleIcon); sliderGroup.add(actualMoveZone); } actualMoveZone.attr({ draggable: true, cursor: getCursor(this._orient), drift: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._onDragMove, this, 'all'), ondragstart: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._showDataInfo, this, true), ondragend: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._onDragEnd, this), onmouseover: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._showDataInfo, this, true), onmouseout: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(this._showDataInfo, this, false) }); }; SliderZoomView.prototype._resetInterval = function () { var range = this._range = this.dataZoomModel.getPercentRange(); var viewExtent = this._getViewExtent(); this._handleEnds = [Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(range[0], [0, 100], viewExtent, true), Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(range[1], [0, 100], viewExtent, true)]; }; SliderZoomView.prototype._updateInterval = function (handleIndex, delta) { var dataZoomModel = this.dataZoomModel; var handleEnds = this._handleEnds; var viewExtend = this._getViewExtent(); var minMaxSpan = dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan(); var percentExtent = [0, 100]; Object(_helper_sliderMove_js__WEBPACK_IMPORTED_MODULE_8__["default"])(delta, handleEnds, viewExtend, dataZoomModel.get('zoomLock') ? 'all' : handleIndex, minMaxSpan.minSpan != null ? Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(minMaxSpan.minSpan, percentExtent, viewExtend, true) : null, minMaxSpan.maxSpan != null ? Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(minMaxSpan.maxSpan, percentExtent, viewExtend, true) : null); var lastRange = this._range; var range = this._range = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["asc"])([Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(handleEnds[0], viewExtend, percentExtent, true), Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(handleEnds[1], viewExtend, percentExtent, true)]); return !lastRange || lastRange[0] !== range[0] || lastRange[1] !== range[1]; }; SliderZoomView.prototype._updateView = function (nonRealtime) { var displaybles = this._displayables; var handleEnds = this._handleEnds; var handleInterval = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["asc"])(handleEnds.slice()); var size = this._size; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])([0, 1], function (handleIndex) { // Handles var handle = displaybles.handles[handleIndex]; var handleHeight = this._handleHeight; handle.attr({ scaleX: handleHeight / 2, scaleY: handleHeight / 2, // This is a trick, by adding an extra tiny offset to let the default handle's end point align to the drag window. // NOTE: It may affect some custom shapes a bit. But we prefer to have better result by default. x: handleEnds[handleIndex] + (handleIndex ? -1 : 1), y: size[1] / 2 - handleHeight / 2 }); }, this); // Filler displaybles.filler.setShape({ x: handleInterval[0], y: 0, width: handleInterval[1] - handleInterval[0], height: size[1] }); var viewExtent = { x: handleInterval[0], width: handleInterval[1] - handleInterval[0] }; // Move handle if (displaybles.moveHandle) { displaybles.moveHandle.setShape(viewExtent); displaybles.moveZone.setShape(viewExtent); // Force update path on the invisible object displaybles.moveZone.getBoundingRect(); displaybles.moveHandleIcon && displaybles.moveHandleIcon.attr('x', viewExtent.x + viewExtent.width / 2); } // update clip path of shadow. var dataShadowSegs = displaybles.dataShadowSegs; var segIntervals = [0, handleInterval[0], handleInterval[1], size[0]]; for (var i = 0; i < dataShadowSegs.length; i++) { var segGroup = dataShadowSegs[i]; var clipPath = segGroup.getClipPath(); if (!clipPath) { clipPath = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Rect"](); segGroup.setClipPath(clipPath); } clipPath.setShape({ x: segIntervals[i], y: 0, width: segIntervals[i + 1] - segIntervals[i], height: size[1] }); } this._updateDataInfo(nonRealtime); }; SliderZoomView.prototype._updateDataInfo = function (nonRealtime) { var dataZoomModel = this.dataZoomModel; var displaybles = this._displayables; var handleLabels = displaybles.handleLabels; var orient = this._orient; var labelTexts = ['', '']; // FIXME // date型,支持formatter,autoformatter(ec2 date.getAutoFormatter) if (dataZoomModel.get('showDetail')) { var axisProxy = dataZoomModel.findRepresentativeAxisProxy(); if (axisProxy) { var axis = axisProxy.getAxisModel().axis; var range = this._range; var dataInterval = nonRealtime // See #4434, data and axis are not processed and reset yet in non-realtime mode. ? axisProxy.calculateDataWindow({ start: range[0], end: range[1] }).valueWindow : axisProxy.getDataValueWindow(); labelTexts = [this._formatLabel(dataInterval[0], axis), this._formatLabel(dataInterval[1], axis)]; } } var orderedHandleEnds = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["asc"])(this._handleEnds.slice()); setLabel.call(this, 0); setLabel.call(this, 1); function setLabel(handleIndex) { // Label // Text should not transform by barGroup. // Ignore handlers transform var barTransform = _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["getTransform"](displaybles.handles[handleIndex].parent, this.group); var direction = _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["transformDirection"](handleIndex === 0 ? 'right' : 'left', barTransform); var offset = this._handleWidth / 2 + LABEL_GAP; var textPoint = _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["applyTransform"]([orderedHandleEnds[handleIndex] + (handleIndex === 0 ? -offset : offset), this._size[1] / 2], barTransform); handleLabels[handleIndex].setStyle({ x: textPoint[0], y: textPoint[1], verticalAlign: orient === HORIZONTAL ? 'middle' : direction, align: orient === HORIZONTAL ? direction : 'center', text: labelTexts[handleIndex] }); } }; SliderZoomView.prototype._formatLabel = function (value, axis) { var dataZoomModel = this.dataZoomModel; var labelFormatter = dataZoomModel.get('labelFormatter'); var labelPrecision = dataZoomModel.get('labelPrecision'); if (labelPrecision == null || labelPrecision === 'auto') { labelPrecision = axis.getPixelPrecision(); } var valueStr = value == null || isNaN(value) ? '' // FIXME Glue code : axis.type === 'category' || axis.type === 'time' ? axis.scale.getLabel({ value: Math.round(value) }) // param of toFixed should less then 20. : value.toFixed(Math.min(labelPrecision, 20)); return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"])(labelFormatter) ? labelFormatter(value, valueStr) : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(labelFormatter) ? labelFormatter.replace('{value}', valueStr) : valueStr; }; /** * @param isEmphasis true: show, false: hide */ SliderZoomView.prototype._showDataInfo = function (isEmphasis) { var handleLabel = this.dataZoomModel.get('handleLabel') || {}; var normalShow = handleLabel.show || false; var emphasisHandleLabel = this.dataZoomModel.getModel(['emphasis', 'handleLabel']); var emphasisShow = emphasisHandleLabel.get('show') || false; // Dragging is considered as emphasis, unless emphasisShow is false var toShow = isEmphasis || this._dragging ? emphasisShow : normalShow; var displayables = this._displayables; var handleLabels = displayables.handleLabels; handleLabels[0].attr('invisible', !toShow); handleLabels[1].attr('invisible', !toShow); // Highlight move handle displayables.moveHandle && this.api[toShow ? 'enterEmphasis' : 'leaveEmphasis'](displayables.moveHandle, 1); }; SliderZoomView.prototype._onDragMove = function (handleIndex, dx, dy, event) { this._dragging = true; // For mobile device, prevent screen slider on the button. zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_2__["stop"](event.event); // Transform dx, dy to bar coordination. var barTransform = this._displayables.sliderGroup.getLocalTransform(); var vertex = _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["applyTransform"]([dx, dy], barTransform, true); var changed = this._updateInterval(handleIndex, vertex[0]); var realtime = this.dataZoomModel.get('realtime'); this._updateView(!realtime); // Avoid dispatch dataZoom repeatly but range not changed, // which cause bad visual effect when progressive enabled. changed && realtime && this._dispatchZoomAction(true); }; SliderZoomView.prototype._onDragEnd = function () { this._dragging = false; this._showDataInfo(false); // While in realtime mode and stream mode, dispatch action when // drag end will cause the whole view rerender, which is unnecessary. var realtime = this.dataZoomModel.get('realtime'); !realtime && this._dispatchZoomAction(false); }; SliderZoomView.prototype._onClickPanel = function (e) { var size = this._size; var localPoint = this._displayables.sliderGroup.transformCoordToLocal(e.offsetX, e.offsetY); if (localPoint[0] < 0 || localPoint[0] > size[0] || localPoint[1] < 0 || localPoint[1] > size[1]) { return; } var handleEnds = this._handleEnds; var center = (handleEnds[0] + handleEnds[1]) / 2; var changed = this._updateInterval('all', localPoint[0] - center); this._updateView(); changed && this._dispatchZoomAction(false); }; SliderZoomView.prototype._onBrushStart = function (e) { var x = e.offsetX; var y = e.offsetY; this._brushStart = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Point"](x, y); this._brushing = true; this._brushStartTime = +new Date(); // this._updateBrushRect(x, y); }; SliderZoomView.prototype._onBrushEnd = function (e) { if (!this._brushing) { return; } var brushRect = this._displayables.brushRect; this._brushing = false; if (!brushRect) { return; } brushRect.attr('ignore', true); var brushShape = brushRect.shape; var brushEndTime = +new Date(); // console.log(brushEndTime - this._brushStartTime); if (brushEndTime - this._brushStartTime < 200 && Math.abs(brushShape.width) < 5) { // Will treat it as a click return; } var viewExtend = this._getViewExtent(); var percentExtent = [0, 100]; this._range = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["asc"])([Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(brushShape.x, viewExtend, percentExtent, true), Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"])(brushShape.x + brushShape.width, viewExtend, percentExtent, true)]); this._handleEnds = [brushShape.x, brushShape.x + brushShape.width]; this._updateView(); this._dispatchZoomAction(false); }; SliderZoomView.prototype._onBrush = function (e) { if (this._brushing) { // For mobile device, prevent screen slider on the button. zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_2__["stop"](e.event); this._updateBrushRect(e.offsetX, e.offsetY); } }; SliderZoomView.prototype._updateBrushRect = function (mouseX, mouseY) { var displayables = this._displayables; var dataZoomModel = this.dataZoomModel; var brushRect = displayables.brushRect; if (!brushRect) { brushRect = displayables.brushRect = new Rect({ silent: true, style: dataZoomModel.getModel('brushStyle').getItemStyle() }); displayables.sliderGroup.add(brushRect); } brushRect.attr('ignore', false); var brushStart = this._brushStart; var sliderGroup = this._displayables.sliderGroup; var endPoint = sliderGroup.transformCoordToLocal(mouseX, mouseY); var startPoint = sliderGroup.transformCoordToLocal(brushStart.x, brushStart.y); var size = this._size; endPoint[0] = Math.max(Math.min(size[0], endPoint[0]), 0); brushRect.setShape({ x: startPoint[0], y: 0, width: endPoint[0] - startPoint[0], height: size[1] }); }; /** * This action will be throttled. */ SliderZoomView.prototype._dispatchZoomAction = function (realtime) { var range = this._range; this.api.dispatchAction({ type: 'dataZoom', from: this.uid, dataZoomId: this.dataZoomModel.id, animation: realtime ? REALTIME_ANIMATION_CONFIG : null, start: range[0], end: range[1] }); }; SliderZoomView.prototype._findCoordRect = function () { // Find the grid corresponding to the first axis referred by dataZoom. var rect; var coordSysInfoList = Object(_helper_js__WEBPACK_IMPORTED_MODULE_9__["collectReferCoordSysModelInfo"])(this.dataZoomModel).infoList; if (!rect && coordSysInfoList.length) { var coordSys = coordSysInfoList[0].model.coordinateSystem; rect = coordSys.getRect && coordSys.getRect(); } if (!rect) { var width = this.api.getWidth(); var height = this.api.getHeight(); rect = { x: width * 0.2, y: height * 0.2, width: width * 0.6, height: height * 0.6 }; } return rect; }; SliderZoomView.type = 'dataZoom.slider'; return SliderZoomView; }(_DataZoomView_js__WEBPACK_IMPORTED_MODULE_5__["default"]); function getOtherDim(thisDim) { // FIXME // 这个逻辑和getOtherAxis里一致,但是写在这里是否不好 var map = { x: 'y', y: 'x', radius: 'angle', angle: 'radius' }; return map[thisDim]; } function getCursor(orient) { return orient === 'vertical' ? 'ns-resize' : 'ew-resize'; } /* harmony default export */ __webpack_exports__["default"] = (SliderZoomView); /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/dataZoomAction.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/dataZoomAction.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return installDataZoomAction; }); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/component/dataZoom/helper.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function installDataZoomAction(registers) { registers.registerAction('dataZoom', function (payload, ecModel) { var effectedModels = Object(_helper_js__WEBPACK_IMPORTED_MODULE_0__["findEffectedDataZooms"])(ecModel, payload); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(effectedModels, function (dataZoomModel) { dataZoomModel.setRawRange({ start: payload.start, end: payload.end, startValue: payload.startValue, endValue: payload.endValue }); }); }); } /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js": /*!**************************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js ***! \**************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/component/dataZoom/helper.js"); /* harmony import */ var _AxisProxy_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AxisProxy.js */ "./node_modules/echarts/lib/component/dataZoom/AxisProxy.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var dataZoomProcessor = { // `dataZoomProcessor` will only be performed in needed series. Consider if // there is a line series and a pie series, it is better not to update the // line series if only pie series is needed to be updated. getTargetSeries: function (ecModel) { function eachAxisModel(cb) { ecModel.eachComponent('dataZoom', function (dataZoomModel) { dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) { var axisModel = ecModel.getComponent(Object(_helper_js__WEBPACK_IMPORTED_MODULE_1__["getAxisMainType"])(axisDim), axisIndex); cb(axisDim, axisIndex, axisModel, dataZoomModel); }); }); } // FIXME: it brings side-effect to `getTargetSeries`. // Prepare axis proxies. eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) { // dispose all last axis proxy, in case that some axis are deleted. axisModel.__dzAxisProxy = null; }); var proxyList = []; eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) { // Different dataZooms may constrol the same axis. In that case, // an axisProxy serves both of them. if (!axisModel.__dzAxisProxy) { // Use the first dataZoomModel as the main model of axisProxy. axisModel.__dzAxisProxy = new _AxisProxy_js__WEBPACK_IMPORTED_MODULE_2__["default"](axisDim, axisIndex, dataZoomModel, ecModel); proxyList.push(axisModel.__dzAxisProxy); } }); var seriesModelMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(proxyList, function (axisProxy) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(axisProxy.getTargetSeriesModels(), function (seriesModel) { seriesModelMap.set(seriesModel.uid, seriesModel); }); }); return seriesModelMap; }, // Consider appendData, where filter should be performed. Because data process is // in block mode currently, it is not need to worry about that the overallProgress // execute every frame. overallReset: function (ecModel, api) { ecModel.eachComponent('dataZoom', function (dataZoomModel) { // We calculate window and reset axis here but not in model // init stage and not after action dispatch handler, because // reset should be called after seriesData.restoreData. dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) { dataZoomModel.getAxisProxy(axisDim, axisIndex).reset(dataZoomModel); }); // Caution: data zoom filtering is order sensitive when using // percent range and no min/max/scale set on axis. // For example, we have dataZoom definition: // [ // {xAxisIndex: 0, start: 30, end: 70}, // {yAxisIndex: 0, start: 20, end: 80} // ] // In this case, [20, 80] of y-dataZoom should be based on data // that have filtered by x-dataZoom using range of [30, 70], // but should not be based on full raw data. Thus sliding // x-dataZoom will change both ranges of xAxis and yAxis, // while sliding y-dataZoom will only change the range of yAxis. // So we should filter x-axis after reset x-axis immediately, // and then reset y-axis and filter y-axis. dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) { dataZoomModel.getAxisProxy(axisDim, axisIndex).filterData(dataZoomModel, api); }); }); ecModel.eachComponent('dataZoom', function (dataZoomModel) { // Fullfill all of the range props so that user // is able to get them from chart.getOption(). var axisProxy = dataZoomModel.findRepresentativeAxisProxy(); if (axisProxy) { var percentRange = axisProxy.getDataPercentWindow(); var valueRange = axisProxy.getDataValueWindow(); dataZoomModel.setCalculatedRange({ start: percentRange[0], end: percentRange[1], startValue: valueRange[0], endValue: valueRange[1] }); } }); } }; /* harmony default export */ __webpack_exports__["default"] = (dataZoomProcessor); /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/helper.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/helper.js ***! \***************************************************************/ /*! exports provided: DATA_ZOOM_AXIS_DIMENSIONS, isCoordSupported, getAxisMainType, getAxisIndexPropName, getAxisIdPropName, findEffectedDataZooms, collectReferCoordSysModelInfo */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DATA_ZOOM_AXIS_DIMENSIONS", function() { return DATA_ZOOM_AXIS_DIMENSIONS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCoordSupported", function() { return isCoordSupported; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAxisMainType", function() { return getAxisMainType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAxisIndexPropName", function() { return getAxisIndexPropName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAxisIdPropName", function() { return getAxisIdPropName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findEffectedDataZooms", function() { return findEffectedDataZooms; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "collectReferCoordSysModelInfo", function() { return collectReferCoordSysModelInfo; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DATA_ZOOM_AXIS_DIMENSIONS = ['x', 'y', 'radius', 'angle', 'single']; // Supported coords. // FIXME: polar has been broken (but rarely used). var SERIES_COORDS = ['cartesian2d', 'polar', 'singleAxis']; function isCoordSupported(seriesModel) { var coordType = seriesModel.get('coordinateSystem'); return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"])(SERIES_COORDS, coordType) >= 0; } function getAxisMainType(axisDim) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(axisDim); } return axisDim + 'Axis'; } function getAxisIndexPropName(axisDim) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(axisDim); } return axisDim + 'AxisIndex'; } function getAxisIdPropName(axisDim) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(axisDim); } return axisDim + 'AxisId'; } /** * If two dataZoomModels has the same axis controlled, we say that they are 'linked'. * This function finds all linked dataZoomModels start from the given payload. */ function findEffectedDataZooms(ecModel, payload) { // Key: `DataZoomAxisDimension` var axisRecords = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); var effectedModels = []; // Key: uid of dataZoomModel var effectedModelMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); // Find the dataZooms specified by payload. ecModel.eachComponent({ mainType: 'dataZoom', query: payload }, function (dataZoomModel) { if (!effectedModelMap.get(dataZoomModel.uid)) { addToEffected(dataZoomModel); } }); // Start from the given dataZoomModels, travel the graph to find // all of the linked dataZoom models. var foundNewLink; do { foundNewLink = false; ecModel.eachComponent('dataZoom', processSingle); } while (foundNewLink); function processSingle(dataZoomModel) { if (!effectedModelMap.get(dataZoomModel.uid) && isLinked(dataZoomModel)) { addToEffected(dataZoomModel); foundNewLink = true; } } function addToEffected(dataZoom) { effectedModelMap.set(dataZoom.uid, true); effectedModels.push(dataZoom); markAxisControlled(dataZoom); } function isLinked(dataZoomModel) { var isLink = false; dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) { var axisIdxArr = axisRecords.get(axisDim); if (axisIdxArr && axisIdxArr[axisIndex]) { isLink = true; } }); return isLink; } function markAxisControlled(dataZoomModel) { dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) { (axisRecords.get(axisDim) || axisRecords.set(axisDim, []))[axisIndex] = true; }); } return effectedModels; } /** * Find the first target coordinate system. * Available after model built. * * @return Like { * grid: [ * {model: coord0, axisModels: [axis1, axis3], coordIndex: 1}, * {model: coord1, axisModels: [axis0, axis2], coordIndex: 0}, * ... * ], // cartesians must not be null/undefined. * polar: [ * {model: coord0, axisModels: [axis4], coordIndex: 0}, * ... * ], // polars must not be null/undefined. * singleAxis: [ * {model: coord0, axisModels: [], coordIndex: 0} * ] * } */ function collectReferCoordSysModelInfo(dataZoomModel) { var ecModel = dataZoomModel.ecModel; var coordSysInfoWrap = { infoList: [], infoMap: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])() }; dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) { var axisModel = ecModel.getComponent(getAxisMainType(axisDim), axisIndex); if (!axisModel) { return; } var coordSysModel = axisModel.getCoordSysModel(); if (!coordSysModel) { return; } var coordSysUid = coordSysModel.uid; var coordSysInfo = coordSysInfoWrap.infoMap.get(coordSysUid); if (!coordSysInfo) { coordSysInfo = { model: coordSysModel, axisModels: [] }; coordSysInfoWrap.infoList.push(coordSysInfo); coordSysInfoWrap.infoMap.set(coordSysUid, coordSysInfo); } coordSysInfo.axisModels.push(axisModel); }); return coordSysInfoWrap; } /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/history.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/history.js ***! \****************************************************************/ /*! exports provided: push, pop, clear, count */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "push", function() { return push; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pop", function() { return pop; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "count", function() { return count; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]; var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_1__["makeInner"])(); /** * @param ecModel * @param newSnapshot key is dataZoomId */ function push(ecModel, newSnapshot) { var storedSnapshots = getStoreSnapshots(ecModel); // If previous dataZoom can not be found, // complete an range with current range. each(newSnapshot, function (batchItem, dataZoomId) { var i = storedSnapshots.length - 1; for (; i >= 0; i--) { var snapshot = storedSnapshots[i]; if (snapshot[dataZoomId]) { break; } } if (i < 0) { // No origin range set, create one by current range. var dataZoomModel = ecModel.queryComponents({ mainType: 'dataZoom', subType: 'select', id: dataZoomId })[0]; if (dataZoomModel) { var percentRange = dataZoomModel.getPercentRange(); storedSnapshots[0][dataZoomId] = { dataZoomId: dataZoomId, start: percentRange[0], end: percentRange[1] }; } } }); storedSnapshots.push(newSnapshot); } function pop(ecModel) { var storedSnapshots = getStoreSnapshots(ecModel); var head = storedSnapshots[storedSnapshots.length - 1]; storedSnapshots.length > 1 && storedSnapshots.pop(); // Find top for all dataZoom. var snapshot = {}; each(head, function (batchItem, dataZoomId) { for (var i = storedSnapshots.length - 1; i >= 0; i--) { batchItem = storedSnapshots[i][dataZoomId]; if (batchItem) { snapshot[dataZoomId] = batchItem; break; } } }); return snapshot; } function clear(ecModel) { inner(ecModel).snapshots = null; } function count(ecModel) { return getStoreSnapshots(ecModel).length; } /** * History length of each dataZoom may be different. * this._history[0] is used to store origin range. */ function getStoreSnapshots(ecModel) { var store = inner(ecModel); if (!store.snapshots) { store.snapshots = [{}]; } return store.snapshots; } /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/install.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/install.js ***! \****************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _installDataZoomInside_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./installDataZoomInside.js */ "./node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js"); /* harmony import */ var _installDataZoomSlider_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./installDataZoomSlider.js */ "./node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { Object(_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_installDataZoomInside_js__WEBPACK_IMPORTED_MODULE_1__["install"]); Object(_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_installDataZoomSlider_js__WEBPACK_IMPORTED_MODULE_2__["install"]); // Do not install './dataZoomSelect', // since it only work for toolbox dataZoom. } /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/installCommon.js": /*!**********************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/installCommon.js ***! \**********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return installCommon; }); /* harmony import */ var _dataZoomProcessor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dataZoomProcessor.js */ "./node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js"); /* harmony import */ var _dataZoomAction_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dataZoomAction.js */ "./node_modules/echarts/lib/component/dataZoom/dataZoomAction.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var installed = false; function installCommon(registers) { if (installed) { return; } installed = true; registers.registerProcessor(registers.PRIORITY.PROCESSOR.FILTER, _dataZoomProcessor_js__WEBPACK_IMPORTED_MODULE_0__["default"]); Object(_dataZoomAction_js__WEBPACK_IMPORTED_MODULE_1__["default"])(registers); registers.registerSubTypeDefaulter('dataZoom', function () { // Default 'slider' when no type specified. return 'slider'; }); } /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js": /*!******************************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js ***! \******************************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _InsideZoomModel_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./InsideZoomModel.js */ "./node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js"); /* harmony import */ var _InsideZoomView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InsideZoomView.js */ "./node_modules/echarts/lib/component/dataZoom/InsideZoomView.js"); /* harmony import */ var _roams_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./roams.js */ "./node_modules/echarts/lib/component/dataZoom/roams.js"); /* harmony import */ var _installCommon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./installCommon.js */ "./node_modules/echarts/lib/component/dataZoom/installCommon.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { Object(_installCommon_js__WEBPACK_IMPORTED_MODULE_3__["default"])(registers); registers.registerComponentModel(_InsideZoomModel_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerComponentView(_InsideZoomView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); Object(_roams_js__WEBPACK_IMPORTED_MODULE_2__["installDataZoomRoamProcessor"])(registers); } /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js": /*!******************************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js ***! \******************************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _SelectZoomModel_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SelectZoomModel.js */ "./node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js"); /* harmony import */ var _SelectZoomView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectZoomView.js */ "./node_modules/echarts/lib/component/dataZoom/SelectZoomView.js"); /* harmony import */ var _installCommon_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./installCommon.js */ "./node_modules/echarts/lib/component/dataZoom/installCommon.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerComponentModel(_SelectZoomModel_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerComponentView(_SelectZoomView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); Object(_installCommon_js__WEBPACK_IMPORTED_MODULE_2__["default"])(registers); } /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js": /*!******************************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js ***! \******************************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _SliderZoomModel_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SliderZoomModel.js */ "./node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js"); /* harmony import */ var _SliderZoomView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SliderZoomView.js */ "./node_modules/echarts/lib/component/dataZoom/SliderZoomView.js"); /* harmony import */ var _installCommon_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./installCommon.js */ "./node_modules/echarts/lib/component/dataZoom/installCommon.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerComponentModel(_SliderZoomModel_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerComponentView(_SliderZoomView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); Object(_installCommon_js__WEBPACK_IMPORTED_MODULE_2__["default"])(registers); } /***/ }), /***/ "./node_modules/echarts/lib/component/dataZoom/roams.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataZoom/roams.js ***! \**************************************************************/ /*! exports provided: setViewInfoToCoordSysRecord, disposeCoordSysRecordIfNeeded, installDataZoomRoamProcessor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setViewInfoToCoordSysRecord", function() { return setViewInfoToCoordSysRecord; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "disposeCoordSysRecordIfNeeded", function() { return disposeCoordSysRecordIfNeeded; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "installDataZoomRoamProcessor", function() { return installDataZoomRoamProcessor; }); /* harmony import */ var _component_helper_RoamController_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../component/helper/RoamController.js */ "./node_modules/echarts/lib/component/helper/RoamController.js"); /* harmony import */ var _util_throttle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/throttle.js */ "./node_modules/echarts/lib/util/throttle.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/component/dataZoom/helper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Only create one roam controller for each coordinate system. // one roam controller might be refered by two inside data zoom // components (for example, one for x and one for y). When user // pan or zoom, only dispatch one action for those data zoom // components. var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_2__["makeInner"])(); function setViewInfoToCoordSysRecord(api, dataZoomModel, getRange) { inner(api).coordSysRecordMap.each(function (coordSysRecord) { var dzInfo = coordSysRecord.dataZoomInfoMap.get(dataZoomModel.uid); if (dzInfo) { dzInfo.getRange = getRange; } }); } function disposeCoordSysRecordIfNeeded(api, dataZoomModel) { var coordSysRecordMap = inner(api).coordSysRecordMap; var coordSysKeyArr = coordSysRecordMap.keys(); for (var i = 0; i < coordSysKeyArr.length; i++) { var coordSysKey = coordSysKeyArr[i]; var coordSysRecord = coordSysRecordMap.get(coordSysKey); var dataZoomInfoMap = coordSysRecord.dataZoomInfoMap; if (dataZoomInfoMap) { var dzUid = dataZoomModel.uid; var dzInfo = dataZoomInfoMap.get(dzUid); if (dzInfo) { dataZoomInfoMap.removeKey(dzUid); if (!dataZoomInfoMap.keys().length) { disposeCoordSysRecord(coordSysRecordMap, coordSysRecord); } } } } } function disposeCoordSysRecord(coordSysRecordMap, coordSysRecord) { if (coordSysRecord) { coordSysRecordMap.removeKey(coordSysRecord.model.uid); var controller = coordSysRecord.controller; controller && controller.dispose(); } } function createCoordSysRecord(api, coordSysModel) { // These init props will never change after record created. var coordSysRecord = { model: coordSysModel, containsPoint: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["curry"])(containsPoint, coordSysModel), dispatchAction: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["curry"])(dispatchAction, api), dataZoomInfoMap: null, controller: null }; // Must not do anything depends on coordSysRecord outside the event handler here, // because coordSysRecord not completed yet. var controller = coordSysRecord.controller = new _component_helper_RoamController_js__WEBPACK_IMPORTED_MODULE_0__["default"](api.getZr()); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(['pan', 'zoom', 'scrollMove'], function (eventName) { controller.on(eventName, function (event) { var batch = []; coordSysRecord.dataZoomInfoMap.each(function (dzInfo) { // Check whether the behaviors (zoomOnMouseWheel, moveOnMouseMove, // moveOnMouseWheel, ...) enabled. if (!event.isAvailableBehavior(dzInfo.model.option)) { return; } var method = (dzInfo.getRange || {})[eventName]; var range = method && method(dzInfo.dzReferCoordSysInfo, coordSysRecord.model.mainType, coordSysRecord.controller, event); !dzInfo.model.get('disabled', true) && range && batch.push({ dataZoomId: dzInfo.model.id, start: range[0], end: range[1] }); }); batch.length && coordSysRecord.dispatchAction(batch); }); }); return coordSysRecord; } /** * This action will be throttled. */ function dispatchAction(api, batch) { if (!api.isDisposed()) { api.dispatchAction({ type: 'dataZoom', animation: { easing: 'cubicOut', duration: 100 }, batch: batch }); } } function containsPoint(coordSysModel, e, x, y) { return coordSysModel.coordinateSystem.containPoint([x, y]); } /** * Merge roamController settings when multiple dataZooms share one roamController. */ function mergeControllerParams(dataZoomInfoMap) { var controlType; // DO NOT use reserved word (true, false, undefined) as key literally. Even if encapsulated // as string, it is probably revert to reserved word by compress tool. See #7411. var prefix = 'type_'; var typePriority = { 'type_true': 2, 'type_move': 1, 'type_false': 0, 'type_undefined': -1 }; var preventDefaultMouseMove = true; dataZoomInfoMap.each(function (dataZoomInfo) { var dataZoomModel = dataZoomInfo.model; var oneType = dataZoomModel.get('disabled', true) ? false : dataZoomModel.get('zoomLock', true) ? 'move' : true; if (typePriority[prefix + oneType] > typePriority[prefix + controlType]) { controlType = oneType; } // Prevent default move event by default. If one false, do not prevent. Otherwise // users may be confused why it does not work when multiple insideZooms exist. preventDefaultMouseMove = preventDefaultMouseMove && dataZoomModel.get('preventDefaultMouseMove', true); }); return { controlType: controlType, opt: { // RoamController will enable all of these functionalities, // and the final behavior is determined by its event listener // provided by each inside zoom. zoomOnMouseWheel: true, moveOnMouseMove: true, moveOnMouseWheel: true, preventDefaultMouseMove: !!preventDefaultMouseMove } }; } function installDataZoomRoamProcessor(registers) { registers.registerProcessor(registers.PRIORITY.PROCESSOR.FILTER, function (ecModel, api) { var apiInner = inner(api); var coordSysRecordMap = apiInner.coordSysRecordMap || (apiInner.coordSysRecordMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["createHashMap"])()); coordSysRecordMap.each(function (coordSysRecord) { // `coordSysRecordMap` always exists (because it holds the `roam controller`, which should // better not re-create each time), but clear `dataZoomInfoMap` each round of the workflow. coordSysRecord.dataZoomInfoMap = null; }); ecModel.eachComponent({ mainType: 'dataZoom', subType: 'inside' }, function (dataZoomModel) { var dzReferCoordSysWrap = Object(_helper_js__WEBPACK_IMPORTED_MODULE_4__["collectReferCoordSysModelInfo"])(dataZoomModel); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(dzReferCoordSysWrap.infoList, function (dzCoordSysInfo) { var coordSysUid = dzCoordSysInfo.model.uid; var coordSysRecord = coordSysRecordMap.get(coordSysUid) || coordSysRecordMap.set(coordSysUid, createCoordSysRecord(api, dzCoordSysInfo.model)); var dataZoomInfoMap = coordSysRecord.dataZoomInfoMap || (coordSysRecord.dataZoomInfoMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["createHashMap"])()); // Notice these props might be changed each time for a single dataZoomModel. dataZoomInfoMap.set(dataZoomModel.uid, { dzReferCoordSysInfo: dzCoordSysInfo, model: dataZoomModel, getRange: null }); }); }); // (1) Merge dataZoom settings for each coord sys and set to the roam controller. // (2) Clear coord sys if not refered by any dataZoom. coordSysRecordMap.each(function (coordSysRecord) { var controller = coordSysRecord.controller; var firstDzInfo; var dataZoomInfoMap = coordSysRecord.dataZoomInfoMap; if (dataZoomInfoMap) { var firstDzKey = dataZoomInfoMap.keys()[0]; if (firstDzKey != null) { firstDzInfo = dataZoomInfoMap.get(firstDzKey); } } if (!firstDzInfo) { disposeCoordSysRecord(coordSysRecordMap, coordSysRecord); return; } var controllerParams = mergeControllerParams(dataZoomInfoMap); controller.enable(controllerParams.controlType, controllerParams.opt); controller.setPointerChecker(coordSysRecord.containsPoint); _util_throttle_js__WEBPACK_IMPORTED_MODULE_1__["createOrUpdate"](coordSysRecord, 'dispatchAction', firstDzInfo.model.get('throttle', true), 'fixRate'); }); }); } /***/ }), /***/ "./node_modules/echarts/lib/component/dataset/install.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/component/dataset/install.js ***! \***************************************************************/ /*! exports provided: DatasetModel, install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatasetModel", function() { return DatasetModel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var _util_types_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/types.js */ "./node_modules/echarts/lib/util/types.js"); /* harmony import */ var _data_helper_sourceManager_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../data/helper/sourceManager.js */ "./node_modules/echarts/lib/data/helper/sourceManager.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * This module is imported by echarts directly. * * Notice: * Always keep this file exists for backward compatibility. * Because before 4.1.0, dataset is an optional component, * some users may import this module manually. */ var DatasetModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DatasetModel, _super); function DatasetModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = 'dataset'; return _this; } DatasetModel.prototype.init = function (option, parentModel, ecModel) { _super.prototype.init.call(this, option, parentModel, ecModel); this._sourceManager = new _data_helper_sourceManager_js__WEBPACK_IMPORTED_MODULE_4__["SourceManager"](this); Object(_data_helper_sourceManager_js__WEBPACK_IMPORTED_MODULE_4__["disableTransformOptionMerge"])(this); }; DatasetModel.prototype.mergeOption = function (newOption, ecModel) { _super.prototype.mergeOption.call(this, newOption, ecModel); Object(_data_helper_sourceManager_js__WEBPACK_IMPORTED_MODULE_4__["disableTransformOptionMerge"])(this); }; DatasetModel.prototype.optionUpdated = function () { this._sourceManager.dirty(); }; DatasetModel.prototype.getSourceManager = function () { return this._sourceManager; }; DatasetModel.type = 'dataset'; DatasetModel.defaultOption = { seriesLayoutBy: _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SERIES_LAYOUT_BY_COLUMN"] }; return DatasetModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"]); var DatasetView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DatasetView, _super); function DatasetView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = 'dataset'; return _this; } DatasetView.type = 'dataset'; return DatasetView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_2__["default"]); function install(registers) { registers.registerComponentModel(DatasetModel); registers.registerComponentView(DatasetView); } /***/ }), /***/ "./node_modules/echarts/lib/component/geo/GeoView.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/component/geo/GeoView.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _helper_MapDraw_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helper/MapDraw.js */ "./node_modules/echarts/lib/component/helper/MapDraw.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _util_event_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/event.js */ "./node_modules/echarts/lib/util/event.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var GeoView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GeoView, _super); function GeoView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = GeoView.type; _this.focusBlurEnabled = true; return _this; } GeoView.prototype.init = function (ecModel, api) { this._api = api; }; GeoView.prototype.render = function (geoModel, ecModel, api, payload) { this._model = geoModel; if (!geoModel.get('show')) { this._mapDraw && this._mapDraw.remove(); this._mapDraw = null; return; } if (!this._mapDraw) { this._mapDraw = new _helper_MapDraw_js__WEBPACK_IMPORTED_MODULE_1__["default"](api); } var mapDraw = this._mapDraw; mapDraw.draw(geoModel, ecModel, api, this, payload); mapDraw.group.on('click', this._handleRegionClick, this); mapDraw.group.silent = geoModel.get('silent'); this.group.add(mapDraw.group); this.updateSelectStatus(geoModel, ecModel, api); }; GeoView.prototype._handleRegionClick = function (e) { var eventData; Object(_util_event_js__WEBPACK_IMPORTED_MODULE_4__["findEventDispatcher"])(e.target, function (current) { return (eventData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__["getECData"])(current).eventData) != null; }, true); if (eventData) { this._api.dispatchAction({ type: 'geoToggleSelect', geoId: this._model.id, name: eventData.name }); } }; GeoView.prototype.updateSelectStatus = function (model, ecModel, api) { var _this = this; this._mapDraw.group.traverse(function (node) { var eventData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__["getECData"])(node).eventData; if (eventData) { _this._model.isSelected(eventData.name) ? api.enterSelect(node) : api.leaveSelect(node); // No need to traverse children. return true; } }); }; GeoView.prototype.findHighDownDispatchers = function (name) { return this._mapDraw && this._mapDraw.findHighDownDispatchers(name, this._model); }; GeoView.prototype.dispose = function () { this._mapDraw && this._mapDraw.remove(); }; GeoView.type = 'geo'; return GeoView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /* harmony default export */ __webpack_exports__["default"] = (GeoView); /***/ }), /***/ "./node_modules/echarts/lib/component/geo/install.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/component/geo/install.js ***! \***********************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _coord_geo_GeoModel_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../coord/geo/GeoModel.js */ "./node_modules/echarts/lib/coord/geo/GeoModel.js"); /* harmony import */ var _coord_geo_geoCreator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../coord/geo/geoCreator.js */ "./node_modules/echarts/lib/coord/geo/geoCreator.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _action_roamHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../action/roamHelper.js */ "./node_modules/echarts/lib/action/roamHelper.js"); /* harmony import */ var _GeoView_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./GeoView.js */ "./node_modules/echarts/lib/component/geo/GeoView.js"); /* harmony import */ var _coord_geo_geoSourceManager_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../coord/geo/geoSourceManager.js */ "./node_modules/echarts/lib/coord/geo/geoSourceManager.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function registerMap(mapName, geoJson, specialAreas) { _coord_geo_geoSourceManager_js__WEBPACK_IMPORTED_MODULE_5__["default"].registerMap(mapName, geoJson, specialAreas); } function install(registers) { registers.registerCoordinateSystem('geo', _coord_geo_geoCreator_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerComponentModel(_coord_geo_GeoModel_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerComponentView(_GeoView_js__WEBPACK_IMPORTED_MODULE_4__["default"]); registers.registerImpl('registerMap', registerMap); registers.registerImpl('getMap', function (mapName) { return _coord_geo_geoSourceManager_js__WEBPACK_IMPORTED_MODULE_5__["default"].getMapForUser(mapName); }); function makeAction(method, actionInfo) { actionInfo.update = 'geo:updateSelectStatus'; registers.registerAction(actionInfo, function (payload, ecModel) { var selected = {}; var allSelected = []; ecModel.eachComponent({ mainType: 'geo', query: payload }, function (geoModel) { geoModel[method](payload.name); var geo = geoModel.coordinateSystem; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(geo.regions, function (region) { selected[region.name] = geoModel.isSelected(region.name) || false; }); // Notice: there might be duplicated name in different regions. var names = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(selected, function (v, name) { selected[name] && names.push(name); }); allSelected.push({ geoIndex: geoModel.componentIndex, // Use singular, the same naming convention as the event `selectchanged`. name: names }); }); return { selected: selected, allSelected: allSelected, name: payload.name }; }); } makeAction('toggleSelected', { type: 'geoToggleSelect', event: 'geoselectchanged' }); makeAction('select', { type: 'geoSelect', event: 'geoselected' }); makeAction('unSelect', { type: 'geoUnSelect', event: 'geounselected' }); /** * @payload * @property {string} [componentType=series] * @property {number} [dx] * @property {number} [dy] * @property {number} [zoom] * @property {number} [originX] * @property {number} [originY] */ registers.registerAction({ type: 'geoRoam', event: 'geoRoam', update: 'updateTransform' }, function (payload, ecModel, api) { var componentType = payload.componentType || 'series'; ecModel.eachComponent({ mainType: componentType, query: payload }, function (componentModel) { var geo = componentModel.coordinateSystem; if (geo.type !== 'geo') { return; } var res = Object(_action_roamHelper_js__WEBPACK_IMPORTED_MODULE_3__["updateCenterAndZoom"])(geo, payload, componentModel.get('scaleLimit'), api); componentModel.setCenter && componentModel.setCenter(res.center); componentModel.setZoom && componentModel.setZoom(res.zoom); // All map series with same `map` use the same geo coordinate system // So the center and zoom must be in sync. Include the series not selected by legend if (componentType === 'series') { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(componentModel.seriesGroup, function (seriesModel) { seriesModel.setCenter(res.center); seriesModel.setZoom(res.zoom); }); } }); }); } /***/ }), /***/ "./node_modules/echarts/lib/component/graphic/GraphicModel.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/component/graphic/GraphicModel.js ***! \********************************************************************/ /*! exports provided: setKeyInfoToNewElOption, GraphicComponentModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setKeyInfoToNewElOption", function() { return setKeyInfoToNewElOption; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphicComponentModel", function() { return GraphicComponentModel; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ; ; ; function setKeyInfoToNewElOption(resultItem, newElOption) { var existElOption = resultItem.existing; // Set id and type after id assigned. newElOption.id = resultItem.keyInfo.id; !newElOption.type && existElOption && (newElOption.type = existElOption.type); // Set parent id if not specified if (newElOption.parentId == null) { var newElParentOption = newElOption.parentOption; if (newElParentOption) { newElOption.parentId = newElParentOption.id; } else if (existElOption) { newElOption.parentId = existElOption.parentId; } } // Clear newElOption.parentOption = null; } function isSetLoc(obj, props) { var isSet; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](props, function (prop) { obj[prop] != null && obj[prop] !== 'auto' && (isSet = true); }); return isSet; } function mergeNewElOptionToExist(existList, index, newElOption) { // Update existing options, for `getOption` feature. var newElOptCopy = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"]({}, newElOption); var existElOption = existList[index]; var $action = newElOption.$action || 'merge'; if ($action === 'merge') { if (existElOption) { if (true) { var newType = newElOption.type; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"](!newType || existElOption.type === newType, 'Please set $action: "replace" to change `type`'); } // We can ensure that newElOptCopy and existElOption are not // the same object, so `merge` will not change newElOptCopy. zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](existElOption, newElOptCopy, true); // Rigid body, use ignoreSize. Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_4__["mergeLayoutParam"])(existElOption, newElOptCopy, { ignoreSize: true }); // Will be used in render. Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_4__["copyLayoutParams"])(newElOption, existElOption); // Copy transition info to new option so it can be used in the transition. // DO IT AFTER merge copyTransitionInfo(newElOption, existElOption); copyTransitionInfo(newElOption, existElOption, 'shape'); copyTransitionInfo(newElOption, existElOption, 'style'); copyTransitionInfo(newElOption, existElOption, 'extra'); // Copy clipPath newElOption.clipPath = existElOption.clipPath; } else { existList[index] = newElOptCopy; } } else if ($action === 'replace') { existList[index] = newElOptCopy; } else if ($action === 'remove') { // null will be cleaned later. existElOption && (existList[index] = null); } } var TRANSITION_PROPS_TO_COPY = ['transition', 'enterFrom', 'leaveTo']; var ROOT_TRANSITION_PROPS_TO_COPY = TRANSITION_PROPS_TO_COPY.concat(['enterAnimation', 'updateAnimation', 'leaveAnimation']); function copyTransitionInfo(target, source, targetProp) { if (targetProp) { if (!target[targetProp] && source[targetProp]) { // TODO avoid creating this empty object when there is no transition configuration. target[targetProp] = {}; } target = target[targetProp]; source = source[targetProp]; } if (!target || !source) { return; } var props = targetProp ? TRANSITION_PROPS_TO_COPY : ROOT_TRANSITION_PROPS_TO_COPY; for (var i = 0; i < props.length; i++) { var prop = props[i]; if (target[prop] == null && source[prop] != null) { target[prop] = source[prop]; } } } function setLayoutInfoToExist(existItem, newElOption) { if (!existItem) { return; } existItem.hv = newElOption.hv = [ // Rigid body, don't care about `width`. isSetLoc(newElOption, ['left', 'right']), // Rigid body, don't care about `height`. isSetLoc(newElOption, ['top', 'bottom'])]; // Give default group size. Otherwise layout error may occur. if (existItem.type === 'group') { var existingGroupOpt = existItem; var newGroupOpt = newElOption; existingGroupOpt.width == null && (existingGroupOpt.width = newGroupOpt.width = 0); existingGroupOpt.height == null && (existingGroupOpt.height = newGroupOpt.height = 0); } } var GraphicComponentModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GraphicComponentModel, _super); function GraphicComponentModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = GraphicComponentModel.type; _this.preventAutoZ = true; return _this; } GraphicComponentModel.prototype.mergeOption = function (option, ecModel) { // Prevent default merge to elements var elements = this.option.elements; this.option.elements = null; _super.prototype.mergeOption.call(this, option, ecModel); this.option.elements = elements; }; GraphicComponentModel.prototype.optionUpdated = function (newOption, isInit) { var thisOption = this.option; var newList = (isInit ? thisOption : newOption).elements; var existList = thisOption.elements = isInit ? [] : thisOption.elements; var flattenedList = []; this._flatten(newList, flattenedList, null); var mappingResult = _util_model_js__WEBPACK_IMPORTED_MODULE_2__["mappingToExists"](existList, flattenedList, 'normalMerge'); // Clear elOptionsToUpdate var elOptionsToUpdate = this._elOptionsToUpdate = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](mappingResult, function (resultItem, index) { var newElOption = resultItem.newOption; if (true) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isObject"](newElOption) || resultItem.existing, 'Empty graphic option definition'); } if (!newElOption) { return; } elOptionsToUpdate.push(newElOption); setKeyInfoToNewElOption(resultItem, newElOption); mergeNewElOptionToExist(existList, index, newElOption); setLayoutInfoToExist(existList[index], newElOption); }, this); // Clean thisOption.elements = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"](existList, function (item) { // $action should be volatile, otherwise option gotten from // `getOption` will contain unexpected $action. item && delete item.$action; return item != null; }); }; /** * Convert * [{ * type: 'group', * id: 'xx', * children: [{type: 'circle'}, {type: 'polygon'}] * }] * to * [ * {type: 'group', id: 'xx'}, * {type: 'circle', parentId: 'xx'}, * {type: 'polygon', parentId: 'xx'} * ] */ GraphicComponentModel.prototype._flatten = function (optionList, result, parentOption) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](optionList, function (option) { if (!option) { return; } if (parentOption) { option.parentOption = parentOption; } result.push(option); var children = option.children; // here we don't judge if option.type is `group` // when new option doesn't provide `type`, it will cause that the children can't be updated. if (children && children.length) { this._flatten(children, result, option); } // Deleting for JSON output, and for not affecting group creation. delete option.children; }, this); }; // FIXME // Pass to view using payload? setOption has a payload? GraphicComponentModel.prototype.useElOptionsToUpdate = function () { var els = this._elOptionsToUpdate; // Clear to avoid render duplicately when zooming. this._elOptionsToUpdate = null; return els; }; GraphicComponentModel.type = 'graphic'; GraphicComponentModel.defaultOption = { elements: [] // parentId: null }; return GraphicComponentModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_3__["default"]); /***/ }), /***/ "./node_modules/echarts/lib/component/graphic/GraphicView.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/component/graphic/GraphicView.js ***! \*******************************************************************/ /*! exports provided: inner, GraphicComponentView */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inner", function() { return inner; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphicComponentView", function() { return GraphicComponentView; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_graphic_Displayable_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/graphic/Displayable.js */ "./node_modules/zrender/lib/graphic/Displayable.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _util_styleCompat_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/styleCompat.js */ "./node_modules/echarts/lib/util/styleCompat.js"); /* harmony import */ var _animation_customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../animation/customGraphicTransition.js */ "./node_modules/echarts/lib/animation/customGraphicTransition.js"); /* harmony import */ var _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../animation/basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* harmony import */ var _animation_customGraphicKeyframeAnimation_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../animation/customGraphicKeyframeAnimation.js */ "./node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var nonShapeGraphicElements = { // Reserved but not supported in graphic component. path: null, compoundPath: null, // Supported in graphic component. group: _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Group"], image: _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Image"], text: _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Text"] }; var inner = _util_model_js__WEBPACK_IMPORTED_MODULE_3__["makeInner"](); // ------------------------ // View // ------------------------ var GraphicComponentView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GraphicComponentView, _super); function GraphicComponentView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = GraphicComponentView.type; return _this; } GraphicComponentView.prototype.init = function () { this._elMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"](); }; GraphicComponentView.prototype.render = function (graphicModel, ecModel, api) { // Having leveraged between use cases and algorithm complexity, a very // simple layout mechanism is used: // The size(width/height) can be determined by itself or its parent (not // implemented yet), but can not by its children. (Top-down travel) // The location(x/y) can be determined by the bounding rect of itself // (can including its descendants or not) and the size of its parent. // (Bottom-up travel) // When `chart.clear()` or `chart.setOption({...}, true)` with the same id, // view will be reused. if (graphicModel !== this._lastGraphicModel) { this._clear(); } this._lastGraphicModel = graphicModel; this._updateElements(graphicModel); this._relocate(graphicModel, api); }; /** * Update graphic elements. */ GraphicComponentView.prototype._updateElements = function (graphicModel) { var elOptionsToUpdate = graphicModel.useElOptionsToUpdate(); if (!elOptionsToUpdate) { return; } var elMap = this._elMap; var rootGroup = this.group; var globalZ = graphicModel.get('z'); var globalZLevel = graphicModel.get('zlevel'); // Top-down tranverse to assign graphic settings to each elements. zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](elOptionsToUpdate, function (elOption) { var id = _util_model_js__WEBPACK_IMPORTED_MODULE_3__["convertOptionIdName"](elOption.id, null); var elExisting = id != null ? elMap.get(id) : null; var parentId = _util_model_js__WEBPACK_IMPORTED_MODULE_3__["convertOptionIdName"](elOption.parentId, null); var targetElParent = parentId != null ? elMap.get(parentId) : rootGroup; var elType = elOption.type; var elOptionStyle = elOption.style; if (elType === 'text' && elOptionStyle) { // In top/bottom mode, textVerticalAlign should not be used, which cause // inaccurately locating. if (elOption.hv && elOption.hv[1]) { elOptionStyle.textVerticalAlign = elOptionStyle.textBaseline = elOptionStyle.verticalAlign = elOptionStyle.align = null; } } var textContentOption = elOption.textContent; var textConfig = elOption.textConfig; if (elOptionStyle && Object(_util_styleCompat_js__WEBPACK_IMPORTED_MODULE_9__["isEC4CompatibleStyle"])(elOptionStyle, elType, !!textConfig, !!textContentOption)) { var convertResult = Object(_util_styleCompat_js__WEBPACK_IMPORTED_MODULE_9__["convertFromEC4CompatibleStyle"])(elOptionStyle, elType, true); if (!textConfig && convertResult.textConfig) { textConfig = elOption.textConfig = convertResult.textConfig; } if (!textContentOption && convertResult.textContent) { textContentOption = convertResult.textContent; } } // Remove unnecessary props to avoid potential problems. var elOptionCleaned = getCleanedElOption(elOption); // For simple, do not support parent change, otherwise reorder is needed. if (true) { elExisting && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"](targetElParent === elExisting.parent, 'Changing parent is not supported.'); } var $action = elOption.$action || 'merge'; var isMerge = $action === 'merge'; var isReplace = $action === 'replace'; if (isMerge) { var isInit = !elExisting; var el_1 = elExisting; if (isInit) { el_1 = createEl(id, targetElParent, elOption.type, elMap); } else { el_1 && (inner(el_1).isNew = false); // Stop and restore before update any other attributes. Object(_animation_customGraphicKeyframeAnimation_js__WEBPACK_IMPORTED_MODULE_12__["stopPreviousKeyframeAnimationAndRestore"])(el_1); } if (el_1) { Object(_animation_customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_10__["applyUpdateTransition"])(el_1, elOptionCleaned, graphicModel, { isInit: isInit }); updateCommonAttrs(el_1, elOption, globalZ, globalZLevel); } } else if (isReplace) { removeEl(elExisting, elOption, elMap, graphicModel); var el_2 = createEl(id, targetElParent, elOption.type, elMap); if (el_2) { Object(_animation_customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_10__["applyUpdateTransition"])(el_2, elOptionCleaned, graphicModel, { isInit: true }); updateCommonAttrs(el_2, elOption, globalZ, globalZLevel); } } else if ($action === 'remove') { Object(_animation_customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_10__["updateLeaveTo"])(elExisting, elOption); removeEl(elExisting, elOption, elMap, graphicModel); } var el = elMap.get(id); if (el && textContentOption) { if (isMerge) { var textContentExisting = el.getTextContent(); textContentExisting ? textContentExisting.attr(textContentOption) : el.setTextContent(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Text"](textContentOption)); } else if (isReplace) { el.setTextContent(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Text"](textContentOption)); } } if (el) { var clipPathOption = elOption.clipPath; if (clipPathOption) { var clipPathType = clipPathOption.type; var clipPath = void 0; var isInit = false; if (isMerge) { var oldClipPath = el.getClipPath(); isInit = !oldClipPath || inner(oldClipPath).type !== clipPathType; clipPath = isInit ? newEl(clipPathType) : oldClipPath; } else if (isReplace) { isInit = true; clipPath = newEl(clipPathType); } el.setClipPath(clipPath); Object(_animation_customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_10__["applyUpdateTransition"])(clipPath, clipPathOption, graphicModel, { isInit: isInit }); Object(_animation_customGraphicKeyframeAnimation_js__WEBPACK_IMPORTED_MODULE_12__["applyKeyframeAnimation"])(clipPath, clipPathOption.keyframeAnimation, graphicModel); } var elInner = inner(el); el.setTextConfig(textConfig); elInner.option = elOption; setEventData(el, graphicModel, elOption); _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["setTooltipConfig"]({ el: el, componentModel: graphicModel, itemName: el.name, itemTooltipOption: elOption.tooltip }); Object(_animation_customGraphicKeyframeAnimation_js__WEBPACK_IMPORTED_MODULE_12__["applyKeyframeAnimation"])(el, elOption.keyframeAnimation, graphicModel); } }); }; /** * Locate graphic elements. */ GraphicComponentView.prototype._relocate = function (graphicModel, api) { var elOptions = graphicModel.option.elements; var rootGroup = this.group; var elMap = this._elMap; var apiWidth = api.getWidth(); var apiHeight = api.getHeight(); var xy = ['x', 'y']; // Top-down to calculate percentage width/height of group for (var i = 0; i < elOptions.length; i++) { var elOption = elOptions[i]; var id = _util_model_js__WEBPACK_IMPORTED_MODULE_3__["convertOptionIdName"](elOption.id, null); var el = id != null ? elMap.get(id) : null; if (!el || !el.isGroup) { continue; } var parentEl = el.parent; var isParentRoot = parentEl === rootGroup; // Like 'position:absolut' in css, default 0. var elInner = inner(el); var parentElInner = inner(parentEl); elInner.width = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(elInner.option.width, isParentRoot ? apiWidth : parentElInner.width) || 0; elInner.height = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(elInner.option.height, isParentRoot ? apiHeight : parentElInner.height) || 0; } // Bottom-up tranvese all elements (consider ec resize) to locate elements. for (var i = elOptions.length - 1; i >= 0; i--) { var elOption = elOptions[i]; var id = _util_model_js__WEBPACK_IMPORTED_MODULE_3__["convertOptionIdName"](elOption.id, null); var el = id != null ? elMap.get(id) : null; if (!el) { continue; } var parentEl = el.parent; var parentElInner = inner(parentEl); var containerInfo = parentEl === rootGroup ? { width: apiWidth, height: apiHeight } : { width: parentElInner.width, height: parentElInner.height }; // PENDING // Currently, when `bounding: 'all'`, the union bounding rect of the group // does not include the rect of [0, 0, group.width, group.height], which // is probably weird for users. Should we make a break change for it? var layoutPos = {}; var layouted = _util_layout_js__WEBPACK_IMPORTED_MODULE_5__["positionElement"](el, elOption, containerInfo, null, { hv: elOption.hv, boundingMode: elOption.bounding }, layoutPos); if (!inner(el).isNew && layouted) { var transition = elOption.transition; var animatePos = {}; for (var k = 0; k < xy.length; k++) { var key = xy[k]; var val = layoutPos[key]; if (transition && (Object(_animation_customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_10__["isTransitionAll"])(transition) || zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["indexOf"](transition, key) >= 0)) { animatePos[key] = val; } else { el[key] = val; } } Object(_animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_11__["updateProps"])(el, animatePos, graphicModel, 0); } else { el.attr(layoutPos); } } }; /** * Clear all elements. */ GraphicComponentView.prototype._clear = function () { var _this = this; var elMap = this._elMap; elMap.each(function (el) { removeEl(el, inner(el).option, elMap, _this._lastGraphicModel); }); this._elMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"](); }; GraphicComponentView.prototype.dispose = function () { this._clear(); }; GraphicComponentView.type = 'graphic'; return GraphicComponentView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_7__["default"]); function newEl(graphicType) { if (true) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"](graphicType, 'graphic type MUST be set'); } var Clz = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"](nonShapeGraphicElements, graphicType) // Those graphic elements are not shapes. They should not be // overwritten by users, so do them first. ? nonShapeGraphicElements[graphicType] : _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["getShapeClass"](graphicType); if (true) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"](Clz, "graphic type " + graphicType + " can not be found"); } var el = new Clz({}); inner(el).type = graphicType; return el; } function createEl(id, targetElParent, graphicType, elMap) { var el = newEl(graphicType); targetElParent.add(el); elMap.set(id, el); inner(el).id = id; inner(el).isNew = true; return el; } function removeEl(elExisting, elOption, elMap, graphicModel) { var existElParent = elExisting && elExisting.parent; if (existElParent) { elExisting.type === 'group' && elExisting.traverse(function (el) { removeEl(el, elOption, elMap, graphicModel); }); Object(_animation_customGraphicTransition_js__WEBPACK_IMPORTED_MODULE_10__["applyLeaveTransition"])(elExisting, elOption, graphicModel); elMap.removeKey(inner(elExisting).id); } } function updateCommonAttrs(el, elOption, defaultZ, defaultZlevel) { if (!el.isGroup) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"]([['cursor', zrender_lib_graphic_Displayable_js__WEBPACK_IMPORTED_MODULE_2__["default"].prototype.cursor], // We should not support configure z and zlevel in the element level. // But seems we didn't limit it previously. So here still use it to avoid breaking. ['zlevel', defaultZlevel || 0], ['z', defaultZ || 0], // z2 must not be null/undefined, otherwise sort error may occur. ['z2', 0]], function (item) { var prop = item[0]; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"](elOption, prop)) { el[prop] = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"](elOption[prop], item[1]); } else if (el[prop] == null) { el[prop] = item[1]; } }); } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["keys"](elOption), function (key) { // Assign event handlers. // PENDING: should enumerate all event names or use pattern matching? if (key.indexOf('on') === 0) { var val = elOption[key]; el[key] = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"](val) ? val : null; } }); if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"](elOption, 'draggable')) { el.draggable = elOption.draggable; } // Other attributes elOption.name != null && (el.name = elOption.name); elOption.id != null && (el.id = elOption.id); } // Remove unnecessary props to avoid potential problems. function getCleanedElOption(elOption) { elOption = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"]({}, elOption); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](['id', 'parentId', '$action', 'hv', 'bounding', 'textContent', 'clipPath'].concat(_util_layout_js__WEBPACK_IMPORTED_MODULE_5__["LOCATION_PARAMS"]), function (name) { delete elOption[name]; }); return elOption; } function setEventData(el, graphicModel, elOption) { var eventData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_8__["getECData"])(el).eventData; // Simple optimize for large amount of elements that no need event. if (!el.silent && !el.ignore && !eventData) { eventData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_8__["getECData"])(el).eventData = { componentType: 'graphic', componentIndex: graphicModel.componentIndex, name: el.name }; } // `elOption.info` enables user to mount some info on // elements and use them in event handlers. if (eventData) { eventData.info = elOption.info; } } /***/ }), /***/ "./node_modules/echarts/lib/component/graphic/install.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/component/graphic/install.js ***! \***************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _GraphicModel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GraphicModel.js */ "./node_modules/echarts/lib/component/graphic/GraphicModel.js"); /* harmony import */ var _GraphicView_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GraphicView.js */ "./node_modules/echarts/lib/component/graphic/GraphicView.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerComponentModel(_GraphicModel_js__WEBPACK_IMPORTED_MODULE_1__["GraphicComponentModel"]); registers.registerComponentView(_GraphicView_js__WEBPACK_IMPORTED_MODULE_2__["GraphicComponentView"]); registers.registerPreprocessor(function (option) { var graphicOption = option.graphic; // Convert // {graphic: [{left: 10, type: 'circle'}, ...]} // or // {graphic: {left: 10, type: 'circle'}} // to // {graphic: [{elements: [{left: 10, type: 'circle'}, ...]}]} if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(graphicOption)) { if (!graphicOption[0] || !graphicOption[0].elements) { option.graphic = [{ elements: graphicOption }]; } else { // Only one graphic instance can be instantiated. (We don't // want that too many views are created in echarts._viewMap.) option.graphic = [option.graphic[0]]; } } else if (graphicOption && !graphicOption.elements) { option.graphic = [{ elements: [graphicOption] }]; } }); } /***/ }), /***/ "./node_modules/echarts/lib/component/grid/install.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/component/grid/install.js ***! \************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _installSimple_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./installSimple.js */ "./node_modules/echarts/lib/component/grid/installSimple.js"); /* harmony import */ var _axisPointer_install_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../axisPointer/install.js */ "./node_modules/echarts/lib/component/axisPointer/install.js"); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../extension.js */ "./node_modules/echarts/lib/extension.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { Object(_extension_js__WEBPACK_IMPORTED_MODULE_2__["use"])(_installSimple_js__WEBPACK_IMPORTED_MODULE_0__["install"]); Object(_extension_js__WEBPACK_IMPORTED_MODULE_2__["use"])(_axisPointer_install_js__WEBPACK_IMPORTED_MODULE_1__["install"]); } /***/ }), /***/ "./node_modules/echarts/lib/component/grid/installSimple.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/component/grid/installSimple.js ***! \******************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var _coord_cartesian_GridModel_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../coord/cartesian/GridModel.js */ "./node_modules/echarts/lib/coord/cartesian/GridModel.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _coord_cartesian_AxisModel_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../coord/cartesian/AxisModel.js */ "./node_modules/echarts/lib/coord/cartesian/AxisModel.js"); /* harmony import */ var _coord_axisModelCreator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../coord/axisModelCreator.js */ "./node_modules/echarts/lib/coord/axisModelCreator.js"); /* harmony import */ var _coord_cartesian_Grid_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../coord/cartesian/Grid.js */ "./node_modules/echarts/lib/coord/cartesian/Grid.js"); /* harmony import */ var _axis_CartesianAxisView_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../axis/CartesianAxisView.js */ "./node_modules/echarts/lib/component/axis/CartesianAxisView.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Grid view var GridView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GridView, _super); function GridView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = 'grid'; return _this; } GridView.prototype.render = function (gridModel, ecModel) { this.group.removeAll(); if (gridModel.get('show')) { this.group.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Rect"]({ shape: gridModel.coordinateSystem.getRect(), style: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["defaults"])({ fill: gridModel.get('backgroundColor') }, gridModel.getItemStyle()), silent: true, z2: -1 })); } }; GridView.type = 'grid'; return GridView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"]); var extraOption = { // gridIndex: 0, // gridId: '', offset: 0 }; function install(registers) { registers.registerComponentView(GridView); registers.registerComponentModel(_coord_cartesian_GridModel_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerCoordinateSystem('cartesian2d', _coord_cartesian_Grid_js__WEBPACK_IMPORTED_MODULE_7__["default"]); Object(_coord_axisModelCreator_js__WEBPACK_IMPORTED_MODULE_6__["default"])(registers, 'x', _coord_cartesian_AxisModel_js__WEBPACK_IMPORTED_MODULE_5__["CartesianAxisModel"], extraOption); Object(_coord_axisModelCreator_js__WEBPACK_IMPORTED_MODULE_6__["default"])(registers, 'y', _coord_cartesian_AxisModel_js__WEBPACK_IMPORTED_MODULE_5__["CartesianAxisModel"], extraOption); registers.registerComponentView(_axis_CartesianAxisView_js__WEBPACK_IMPORTED_MODULE_8__["CartesianXAxisView"]); registers.registerComponentView(_axis_CartesianAxisView_js__WEBPACK_IMPORTED_MODULE_8__["CartesianYAxisView"]); registers.registerPreprocessor(function (option) { // Only create grid when need if (option.xAxis && option.yAxis && !option.grid) { option.grid = {}; } }); } /***/ }), /***/ "./node_modules/echarts/lib/component/helper/BrushController.js": /*!**********************************************************************!*\ !*** ./node_modules/echarts/lib/component/helper/BrushController.js ***! \**********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_Eventful_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/Eventful.js */ "./node_modules/zrender/lib/core/Eventful.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _interactionMutex_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./interactionMutex.js */ "./node_modules/echarts/lib/component/helper/interactionMutex.js"); /* harmony import */ var _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../data/DataDiffer.js */ "./node_modules/echarts/lib/data/DataDiffer.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var BRUSH_PANEL_GLOBAL = true; var mathMin = Math.min; var mathMax = Math.max; var mathPow = Math.pow; var COVER_Z = 10000; var UNSELECT_THRESHOLD = 6; var MIN_RESIZE_LINE_WIDTH = 6; var MUTEX_RESOURCE_KEY = 'globalPan'; var DIRECTION_MAP = { w: [0, 0], e: [0, 1], n: [1, 0], s: [1, 1] }; var CURSOR_MAP = { w: 'ew', e: 'ew', n: 'ns', s: 'ns', ne: 'nesw', sw: 'nesw', nw: 'nwse', se: 'nwse' }; var DEFAULT_BRUSH_OPT = { brushStyle: { lineWidth: 2, stroke: 'rgba(210,219,238,0.3)', fill: '#D2DBEE' }, transformable: true, brushMode: 'single', removeOnClick: false }; var baseUID = 0; /** * params: * areas: Array., coord relates to container group, * If no container specified, to global. * opt { * isEnd: boolean, * removeOnClick: boolean * } */ var BrushController = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BrushController, _super); function BrushController(zr) { var _this = _super.call(this) || this; /** * @internal */ _this._track = []; /** * @internal */ _this._covers = []; _this._handlers = {}; if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(zr); } _this._zr = zr; _this.group = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Group"](); _this._uid = 'brushController_' + baseUID++; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(pointerHandlers, function (handler, eventName) { this._handlers[eventName] = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(handler, this); }, _this); return _this; } /** * If set to `false`, select disabled. */ BrushController.prototype.enableBrush = function (brushOption) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(this._mounted); } this._brushType && this._doDisableBrush(); brushOption.brushType && this._doEnableBrush(brushOption); return this; }; BrushController.prototype._doEnableBrush = function (brushOption) { var zr = this._zr; // Consider roam, which takes globalPan too. if (!this._enableGlobalPan) { _interactionMutex_js__WEBPACK_IMPORTED_MODULE_4__["take"](zr, MUTEX_RESOURCE_KEY, this._uid); } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(this._handlers, function (handler, eventName) { zr.on(eventName, handler); }); this._brushType = brushOption.brushType; this._brushOption = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(DEFAULT_BRUSH_OPT), brushOption, true); }; BrushController.prototype._doDisableBrush = function () { var zr = this._zr; _interactionMutex_js__WEBPACK_IMPORTED_MODULE_4__["release"](zr, MUTEX_RESOURCE_KEY, this._uid); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(this._handlers, function (handler, eventName) { zr.off(eventName, handler); }); this._brushType = this._brushOption = null; }; /** * @param panelOpts If not pass, it is global brush. */ BrushController.prototype.setPanels = function (panelOpts) { if (panelOpts && panelOpts.length) { var panels_1 = this._panels = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(panelOpts, function (panelOpts) { panels_1[panelOpts.panelId] = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(panelOpts); }); } else { this._panels = null; } return this; }; BrushController.prototype.mount = function (opt) { opt = opt || {}; if (true) { this._mounted = true; // should be at first. } this._enableGlobalPan = opt.enableGlobalPan; var thisGroup = this.group; this._zr.add(thisGroup); thisGroup.attr({ x: opt.x || 0, y: opt.y || 0, rotation: opt.rotation || 0, scaleX: opt.scaleX || 1, scaleY: opt.scaleY || 1 }); this._transform = thisGroup.getLocalTransform(); return this; }; // eachCover(cb, context): void { // each(this._covers, cb, context); // } /** * Update covers. * @param coverConfigList * If coverConfigList is null/undefined, all covers removed. */ BrushController.prototype.updateCovers = function (coverConfigList) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(this._mounted); } coverConfigList = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"])(coverConfigList, function (coverConfig) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(DEFAULT_BRUSH_OPT), coverConfig, true); }); var tmpIdPrefix = '\0-brush-index-'; var oldCovers = this._covers; var newCovers = this._covers = []; var controller = this; var creatingCover = this._creatingCover; new _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_5__["default"](oldCovers, coverConfigList, oldGetKey, getKey).add(addOrUpdate).update(addOrUpdate).remove(remove).execute(); return this; function getKey(brushOption, index) { return (brushOption.id != null ? brushOption.id : tmpIdPrefix + index) + '-' + brushOption.brushType; } function oldGetKey(cover, index) { return getKey(cover.__brushOption, index); } function addOrUpdate(newIndex, oldIndex) { var newBrushInternal = coverConfigList[newIndex]; // Consider setOption in event listener of brushSelect, // where updating cover when creating should be forbidden. if (oldIndex != null && oldCovers[oldIndex] === creatingCover) { newCovers[newIndex] = oldCovers[oldIndex]; } else { var cover = newCovers[newIndex] = oldIndex != null ? (oldCovers[oldIndex].__brushOption = newBrushInternal, oldCovers[oldIndex]) : endCreating(controller, createCover(controller, newBrushInternal)); updateCoverAfterCreation(controller, cover); } } function remove(oldIndex) { if (oldCovers[oldIndex] !== creatingCover) { controller.group.remove(oldCovers[oldIndex]); } } }; BrushController.prototype.unmount = function () { if (true) { if (!this._mounted) { return; } } this.enableBrush(false); // container may 'removeAll' outside. clearCovers(this); this._zr.remove(this.group); if (true) { this._mounted = false; // should be at last. } return this; }; BrushController.prototype.dispose = function () { this.unmount(); this.off(); }; return BrushController; }(zrender_lib_core_Eventful_js__WEBPACK_IMPORTED_MODULE_2__["default"]); function createCover(controller, brushOption) { var cover = coverRenderers[brushOption.brushType].createCover(controller, brushOption); cover.__brushOption = brushOption; updateZ(cover, brushOption); controller.group.add(cover); return cover; } function endCreating(controller, creatingCover) { var coverRenderer = getCoverRenderer(creatingCover); if (coverRenderer.endCreating) { coverRenderer.endCreating(controller, creatingCover); updateZ(creatingCover, creatingCover.__brushOption); } return creatingCover; } function updateCoverShape(controller, cover) { var brushOption = cover.__brushOption; getCoverRenderer(cover).updateCoverShape(controller, cover, brushOption.range, brushOption); } function updateZ(cover, brushOption) { var z = brushOption.z; z == null && (z = COVER_Z); cover.traverse(function (el) { el.z = z; el.z2 = z; // Consider in given container. }); } function updateCoverAfterCreation(controller, cover) { getCoverRenderer(cover).updateCommon(controller, cover); updateCoverShape(controller, cover); } function getCoverRenderer(cover) { return coverRenderers[cover.__brushOption.brushType]; } // return target panel or `true` (means global panel) function getPanelByPoint(controller, e, localCursorPoint) { var panels = controller._panels; if (!panels) { return BRUSH_PANEL_GLOBAL; // Global panel } var panel; var transform = controller._transform; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(panels, function (pn) { pn.isTargetByCursor(e, localCursorPoint, transform) && (panel = pn); }); return panel; } // Return a panel or true function getPanelByCover(controller, cover) { var panels = controller._panels; if (!panels) { return BRUSH_PANEL_GLOBAL; // Global panel } var panelId = cover.__brushOption.panelId; // User may give cover without coord sys info, // which is then treated as global panel. return panelId != null ? panels[panelId] : BRUSH_PANEL_GLOBAL; } function clearCovers(controller) { var covers = controller._covers; var originalLength = covers.length; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(covers, function (cover) { controller.group.remove(cover); }, controller); covers.length = 0; return !!originalLength; } function trigger(controller, opt) { var areas = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"])(controller._covers, function (cover) { var brushOption = cover.__brushOption; var range = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(brushOption.range); return { brushType: brushOption.brushType, panelId: brushOption.panelId, range: range }; }); controller.trigger('brush', { areas: areas, isEnd: !!opt.isEnd, removeOnClick: !!opt.removeOnClick }); } function shouldShowCover(controller) { var track = controller._track; if (!track.length) { return false; } var p2 = track[track.length - 1]; var p1 = track[0]; var dx = p2[0] - p1[0]; var dy = p2[1] - p1[1]; var dist = mathPow(dx * dx + dy * dy, 0.5); return dist > UNSELECT_THRESHOLD; } function getTrackEnds(track) { var tail = track.length - 1; tail < 0 && (tail = 0); return [track[0], track[tail]]; } ; function createBaseRectCover(rectRangeConverter, controller, brushOption, edgeNameSequences) { var cover = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Group"](); cover.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Rect"]({ name: 'main', style: makeStyle(brushOption), silent: true, draggable: true, cursor: 'move', drift: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"])(driftRect, rectRangeConverter, controller, cover, ['n', 's', 'w', 'e']), ondragend: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"])(trigger, controller, { isEnd: true }) })); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(edgeNameSequences, function (nameSequence) { cover.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Rect"]({ name: nameSequence.join(''), style: { opacity: 0 }, draggable: true, silent: true, invisible: true, drift: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"])(driftRect, rectRangeConverter, controller, cover, nameSequence), ondragend: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"])(trigger, controller, { isEnd: true }) })); }); return cover; } function updateBaseRect(controller, cover, localRange, brushOption) { var lineWidth = brushOption.brushStyle.lineWidth || 0; var handleSize = mathMax(lineWidth, MIN_RESIZE_LINE_WIDTH); var x = localRange[0][0]; var y = localRange[1][0]; var xa = x - lineWidth / 2; var ya = y - lineWidth / 2; var x2 = localRange[0][1]; var y2 = localRange[1][1]; var x2a = x2 - handleSize + lineWidth / 2; var y2a = y2 - handleSize + lineWidth / 2; var width = x2 - x; var height = y2 - y; var widtha = width + lineWidth; var heighta = height + lineWidth; updateRectShape(controller, cover, 'main', x, y, width, height); if (brushOption.transformable) { updateRectShape(controller, cover, 'w', xa, ya, handleSize, heighta); updateRectShape(controller, cover, 'e', x2a, ya, handleSize, heighta); updateRectShape(controller, cover, 'n', xa, ya, widtha, handleSize); updateRectShape(controller, cover, 's', xa, y2a, widtha, handleSize); updateRectShape(controller, cover, 'nw', xa, ya, handleSize, handleSize); updateRectShape(controller, cover, 'ne', x2a, ya, handleSize, handleSize); updateRectShape(controller, cover, 'sw', xa, y2a, handleSize, handleSize); updateRectShape(controller, cover, 'se', x2a, y2a, handleSize, handleSize); } } function updateCommon(controller, cover) { var brushOption = cover.__brushOption; var transformable = brushOption.transformable; var mainEl = cover.childAt(0); mainEl.useStyle(makeStyle(brushOption)); mainEl.attr({ silent: !transformable, cursor: transformable ? 'move' : 'default' }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])([['w'], ['e'], ['n'], ['s'], ['s', 'e'], ['s', 'w'], ['n', 'e'], ['n', 'w']], function (nameSequence) { var el = cover.childOfName(nameSequence.join('')); var globalDir = nameSequence.length === 1 ? getGlobalDirection1(controller, nameSequence[0]) : getGlobalDirection2(controller, nameSequence); el && el.attr({ silent: !transformable, invisible: !transformable, cursor: transformable ? CURSOR_MAP[globalDir] + '-resize' : null }); }); } function updateRectShape(controller, cover, name, x, y, w, h) { var el = cover.childOfName(name); el && el.setShape(pointsToRect(clipByPanel(controller, cover, [[x, y], [x + w, y + h]]))); } function makeStyle(brushOption) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"])({ strokeNoScale: true }, brushOption.brushStyle); } function formatRectRange(x, y, x2, y2) { var min = [mathMin(x, x2), mathMin(y, y2)]; var max = [mathMax(x, x2), mathMax(y, y2)]; return [[min[0], max[0]], [min[1], max[1]] // y range ]; } function getTransform(controller) { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["getTransform"](controller.group); } function getGlobalDirection1(controller, localDirName) { var map = { w: 'left', e: 'right', n: 'top', s: 'bottom' }; var inverseMap = { left: 'w', right: 'e', top: 'n', bottom: 's' }; var dir = _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["transformDirection"](map[localDirName], getTransform(controller)); return inverseMap[dir]; } function getGlobalDirection2(controller, localDirNameSeq) { var globalDir = [getGlobalDirection1(controller, localDirNameSeq[0]), getGlobalDirection1(controller, localDirNameSeq[1])]; (globalDir[0] === 'e' || globalDir[0] === 'w') && globalDir.reverse(); return globalDir.join(''); } function driftRect(rectRangeConverter, controller, cover, dirNameSequence, dx, dy) { var brushOption = cover.__brushOption; var rectRange = rectRangeConverter.toRectRange(brushOption.range); var localDelta = toLocalDelta(controller, dx, dy); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(dirNameSequence, function (dirName) { var ind = DIRECTION_MAP[dirName]; rectRange[ind[0]][ind[1]] += localDelta[ind[0]]; }); brushOption.range = rectRangeConverter.fromRectRange(formatRectRange(rectRange[0][0], rectRange[1][0], rectRange[0][1], rectRange[1][1])); updateCoverAfterCreation(controller, cover); trigger(controller, { isEnd: false }); } function driftPolygon(controller, cover, dx, dy) { var range = cover.__brushOption.range; var localDelta = toLocalDelta(controller, dx, dy); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(range, function (point) { point[0] += localDelta[0]; point[1] += localDelta[1]; }); updateCoverAfterCreation(controller, cover); trigger(controller, { isEnd: false }); } function toLocalDelta(controller, dx, dy) { var thisGroup = controller.group; var localD = thisGroup.transformCoordToLocal(dx, dy); var localZero = thisGroup.transformCoordToLocal(0, 0); return [localD[0] - localZero[0], localD[1] - localZero[1]]; } function clipByPanel(controller, cover, data) { var panel = getPanelByCover(controller, cover); return panel && panel !== BRUSH_PANEL_GLOBAL ? panel.clipPath(data, controller._transform) : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(data); } function pointsToRect(points) { var xmin = mathMin(points[0][0], points[1][0]); var ymin = mathMin(points[0][1], points[1][1]); var xmax = mathMax(points[0][0], points[1][0]); var ymax = mathMax(points[0][1], points[1][1]); return { x: xmin, y: ymin, width: xmax - xmin, height: ymax - ymin }; } function resetCursor(controller, e, localCursorPoint) { if ( // Check active !controller._brushType // resetCursor should be always called when mouse is in zr area, // but not called when mouse is out of zr area to avoid bad influence // if `mousemove`, `mouseup` are triggered from `document` event. || isOutsideZrArea(controller, e.offsetX, e.offsetY)) { return; } var zr = controller._zr; var covers = controller._covers; var currPanel = getPanelByPoint(controller, e, localCursorPoint); // Check whether in covers. if (!controller._dragging) { for (var i = 0; i < covers.length; i++) { var brushOption = covers[i].__brushOption; if (currPanel && (currPanel === BRUSH_PANEL_GLOBAL || brushOption.panelId === currPanel.panelId) && coverRenderers[brushOption.brushType].contain(covers[i], localCursorPoint[0], localCursorPoint[1])) { // Use cursor style set on cover. return; } } } currPanel && zr.setCursorStyle('crosshair'); } function preventDefault(e) { var rawE = e.event; rawE.preventDefault && rawE.preventDefault(); } function mainShapeContain(cover, x, y) { return cover.childOfName('main').contain(x, y); } function updateCoverByMouse(controller, e, localCursorPoint, isEnd) { var creatingCover = controller._creatingCover; var panel = controller._creatingPanel; var thisBrushOption = controller._brushOption; var eventParams; controller._track.push(localCursorPoint.slice()); if (shouldShowCover(controller) || creatingCover) { if (panel && !creatingCover) { thisBrushOption.brushMode === 'single' && clearCovers(controller); var brushOption = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(thisBrushOption); brushOption.brushType = determineBrushType(brushOption.brushType, panel); brushOption.panelId = panel === BRUSH_PANEL_GLOBAL ? null : panel.panelId; creatingCover = controller._creatingCover = createCover(controller, brushOption); controller._covers.push(creatingCover); } if (creatingCover) { var coverRenderer = coverRenderers[determineBrushType(controller._brushType, panel)]; var coverBrushOption = creatingCover.__brushOption; coverBrushOption.range = coverRenderer.getCreatingRange(clipByPanel(controller, creatingCover, controller._track)); if (isEnd) { endCreating(controller, creatingCover); coverRenderer.updateCommon(controller, creatingCover); } updateCoverShape(controller, creatingCover); eventParams = { isEnd: isEnd }; } } else if (isEnd && thisBrushOption.brushMode === 'single' && thisBrushOption.removeOnClick) { // Help user to remove covers easily, only by a tiny drag, in 'single' mode. // But a single click do not clear covers, because user may have casual // clicks (for example, click on other component and do not expect covers // disappear). // Only some cover removed, trigger action, but not every click trigger action. if (getPanelByPoint(controller, e, localCursorPoint) && clearCovers(controller)) { eventParams = { isEnd: isEnd, removeOnClick: true }; } } return eventParams; } function determineBrushType(brushType, panel) { if (brushType === 'auto') { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(panel && panel.defaultBrushType, 'MUST have defaultBrushType when brushType is "atuo"'); } return panel.defaultBrushType; } return brushType; } var pointerHandlers = { mousedown: function (e) { if (this._dragging) { // In case some browser do not support globalOut, // and release mouse out side the browser. handleDragEnd(this, e); } else if (!e.target || !e.target.draggable) { preventDefault(e); var localCursorPoint = this.group.transformCoordToLocal(e.offsetX, e.offsetY); this._creatingCover = null; var panel = this._creatingPanel = getPanelByPoint(this, e, localCursorPoint); if (panel) { this._dragging = true; this._track = [localCursorPoint.slice()]; } } }, mousemove: function (e) { var x = e.offsetX; var y = e.offsetY; var localCursorPoint = this.group.transformCoordToLocal(x, y); resetCursor(this, e, localCursorPoint); if (this._dragging) { preventDefault(e); var eventParams = updateCoverByMouse(this, e, localCursorPoint, false); eventParams && trigger(this, eventParams); } }, mouseup: function (e) { handleDragEnd(this, e); } }; function handleDragEnd(controller, e) { if (controller._dragging) { preventDefault(e); var x = e.offsetX; var y = e.offsetY; var localCursorPoint = controller.group.transformCoordToLocal(x, y); var eventParams = updateCoverByMouse(controller, e, localCursorPoint, true); controller._dragging = false; controller._track = []; controller._creatingCover = null; // trigger event should be at final, after procedure will be nested. eventParams && trigger(controller, eventParams); } } function isOutsideZrArea(controller, x, y) { var zr = controller._zr; return x < 0 || x > zr.getWidth() || y < 0 || y > zr.getHeight(); } /** * key: brushType */ var coverRenderers = { lineX: getLineRenderer(0), lineY: getLineRenderer(1), rect: { createCover: function (controller, brushOption) { function returnInput(range) { return range; } return createBaseRectCover({ toRectRange: returnInput, fromRectRange: returnInput }, controller, brushOption, [['w'], ['e'], ['n'], ['s'], ['s', 'e'], ['s', 'w'], ['n', 'e'], ['n', 'w']]); }, getCreatingRange: function (localTrack) { var ends = getTrackEnds(localTrack); return formatRectRange(ends[1][0], ends[1][1], ends[0][0], ends[0][1]); }, updateCoverShape: function (controller, cover, localRange, brushOption) { updateBaseRect(controller, cover, localRange, brushOption); }, updateCommon: updateCommon, contain: mainShapeContain }, polygon: { createCover: function (controller, brushOption) { var cover = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Group"](); // Do not use graphic.Polygon because graphic.Polyline do not close the // border of the shape when drawing, which is a better experience for user. cover.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Polyline"]({ name: 'main', style: makeStyle(brushOption), silent: true })); return cover; }, getCreatingRange: function (localTrack) { return localTrack; }, endCreating: function (controller, cover) { cover.remove(cover.childAt(0)); // Use graphic.Polygon close the shape. cover.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Polygon"]({ name: 'main', draggable: true, drift: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"])(driftPolygon, controller, cover), ondragend: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"])(trigger, controller, { isEnd: true }) })); }, updateCoverShape: function (controller, cover, localRange, brushOption) { cover.childAt(0).setShape({ points: clipByPanel(controller, cover, localRange) }); }, updateCommon: updateCommon, contain: mainShapeContain } }; function getLineRenderer(xyIndex) { return { createCover: function (controller, brushOption) { return createBaseRectCover({ toRectRange: function (range) { var rectRange = [range, [0, 100]]; xyIndex && rectRange.reverse(); return rectRange; }, fromRectRange: function (rectRange) { return rectRange[xyIndex]; } }, controller, brushOption, [[['w'], ['e']], [['n'], ['s']]][xyIndex]); }, getCreatingRange: function (localTrack) { var ends = getTrackEnds(localTrack); var min = mathMin(ends[0][xyIndex], ends[1][xyIndex]); var max = mathMax(ends[0][xyIndex], ends[1][xyIndex]); return [min, max]; }, updateCoverShape: function (controller, cover, localRange, brushOption) { var otherExtent; // If brushWidth not specified, fit the panel. var panel = getPanelByCover(controller, cover); if (panel !== BRUSH_PANEL_GLOBAL && panel.getLinearBrushOtherExtent) { otherExtent = panel.getLinearBrushOtherExtent(xyIndex); } else { var zr = controller._zr; otherExtent = [0, [zr.getWidth(), zr.getHeight()][1 - xyIndex]]; } var rectRange = [localRange, otherExtent]; xyIndex && rectRange.reverse(); updateBaseRect(controller, cover, rectRange, brushOption); }, updateCommon: updateCommon, contain: mainShapeContain }; } /* harmony default export */ __webpack_exports__["default"] = (BrushController); /***/ }), /***/ "./node_modules/echarts/lib/component/helper/BrushTargetManager.js": /*!*************************************************************************!*\ !*** ./node_modules/echarts/lib/component/helper/BrushTargetManager.js ***! \*************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _brushHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./brushHelper.js */ "./node_modules/echarts/lib/component/helper/brushHelper.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // FIXME // how to genarialize to more coordinate systems. var INCLUDE_FINDER_MAIN_TYPES = ['grid', 'xAxis', 'yAxis', 'geo', 'graph', 'polar', 'radiusAxis', 'angleAxis', 'bmap']; var BrushTargetManager = /** @class */function () { /** * @param finder contains Index/Id/Name of xAxis/yAxis/geo/grid * Each can be {number|Array.}. like: {xAxisIndex: [3, 4]} * @param opt.include include coordinate system types. */ function BrushTargetManager(finder, ecModel, opt) { var _this = this; this._targetInfoList = []; var foundCpts = parseFinder(ecModel, finder); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(targetInfoBuilders, function (builder, type) { if (!opt || !opt.include || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"])(opt.include, type) >= 0) { builder(foundCpts, _this._targetInfoList); } }); } BrushTargetManager.prototype.setOutputRanges = function (areas, ecModel) { this.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys) { (area.coordRanges || (area.coordRanges = [])).push(coordRange); // area.coordRange is the first of area.coordRanges if (!area.coordRange) { area.coordRange = coordRange; // In 'category' axis, coord to pixel is not reversible, so we can not // rebuild range by coordRange accrately, which may bring trouble when // brushing only one item. So we use __rangeOffset to rebuilding range // by coordRange. And this it only used in brush component so it is no // need to be adapted to coordRanges. var result = coordConvert[area.brushType](0, coordSys, coordRange); area.__rangeOffset = { offset: diffProcessor[area.brushType](result.values, area.range, [1, 1]), xyMinMax: result.xyMinMax }; } }); return areas; }; BrushTargetManager.prototype.matchOutputRanges = function (areas, ecModel, cb) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(areas, function (area) { var targetInfo = this.findTargetInfo(area, ecModel); if (targetInfo && targetInfo !== true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(targetInfo.coordSyses, function (coordSys) { var result = coordConvert[area.brushType](1, coordSys, area.range, true); cb(area, result.values, coordSys, ecModel); }); } }, this); }; /** * the `areas` is `BrushModel.areas`. * Called in layout stage. * convert `area.coordRange` to global range and set panelId to `area.range`. */ BrushTargetManager.prototype.setInputRanges = function (areas, ecModel) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(areas, function (area) { var targetInfo = this.findTargetInfo(area, ecModel); if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(!targetInfo || targetInfo === true || area.coordRange, 'coordRange must be specified when coord index specified.'); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(!targetInfo || targetInfo !== true || area.range, 'range must be specified in global brush.'); } area.range = area.range || []; // convert coordRange to global range and set panelId. if (targetInfo && targetInfo !== true) { area.panelId = targetInfo.panelId; // (1) area.range should always be calculate from coordRange but does // not keep its original value, for the sake of the dataZoom scenario, // where area.coordRange remains unchanged but area.range may be changed. // (2) Only support converting one coordRange to pixel range in brush // component. So do not consider `coordRanges`. // (3) About __rangeOffset, see comment above. var result = coordConvert[area.brushType](0, targetInfo.coordSys, area.coordRange); var rangeOffset = area.__rangeOffset; area.range = rangeOffset ? diffProcessor[area.brushType](result.values, rangeOffset.offset, getScales(result.xyMinMax, rangeOffset.xyMinMax)) : result.values; } }, this); }; BrushTargetManager.prototype.makePanelOpts = function (api, getDefaultBrushType) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(this._targetInfoList, function (targetInfo) { var rect = targetInfo.getPanelRect(); return { panelId: targetInfo.panelId, defaultBrushType: getDefaultBrushType ? getDefaultBrushType(targetInfo) : null, clipPath: _brushHelper_js__WEBPACK_IMPORTED_MODULE_2__["makeRectPanelClipPath"](rect), isTargetByCursor: _brushHelper_js__WEBPACK_IMPORTED_MODULE_2__["makeRectIsTargetByCursor"](rect, api, targetInfo.coordSysModel), getLinearBrushOtherExtent: _brushHelper_js__WEBPACK_IMPORTED_MODULE_2__["makeLinearBrushOtherExtent"](rect) }; }); }; BrushTargetManager.prototype.controlSeries = function (area, seriesModel, ecModel) { // Check whether area is bound in coord, and series do not belong to that coord. // If do not do this check, some brush (like lineX) will controll all axes. var targetInfo = this.findTargetInfo(area, ecModel); return targetInfo === true || targetInfo && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"])(targetInfo.coordSyses, seriesModel.coordinateSystem) >= 0; }; /** * If return Object, a coord found. * If return true, global found. * Otherwise nothing found. */ BrushTargetManager.prototype.findTargetInfo = function (area, ecModel) { var targetInfoList = this._targetInfoList; var foundCpts = parseFinder(ecModel, area); for (var i = 0; i < targetInfoList.length; i++) { var targetInfo = targetInfoList[i]; var areaPanelId = area.panelId; if (areaPanelId) { if (targetInfo.panelId === areaPanelId) { return targetInfo; } } else { for (var j = 0; j < targetInfoMatchers.length; j++) { if (targetInfoMatchers[j](foundCpts, targetInfo)) { return targetInfo; } } } } return true; }; return BrushTargetManager; }(); function formatMinMax(minMax) { minMax[0] > minMax[1] && minMax.reverse(); return minMax; } function parseFinder(ecModel, finder) { return Object(_util_model_js__WEBPACK_IMPORTED_MODULE_3__["parseFinder"])(ecModel, finder, { includeMainTypes: INCLUDE_FINDER_MAIN_TYPES }); } var targetInfoBuilders = { grid: function (foundCpts, targetInfoList) { var xAxisModels = foundCpts.xAxisModels; var yAxisModels = foundCpts.yAxisModels; var gridModels = foundCpts.gridModels; // Remove duplicated. var gridModelMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); var xAxesHas = {}; var yAxesHas = {}; if (!xAxisModels && !yAxisModels && !gridModels) { return; } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(xAxisModels, function (axisModel) { var gridModel = axisModel.axis.grid.model; gridModelMap.set(gridModel.id, gridModel); xAxesHas[gridModel.id] = true; }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(yAxisModels, function (axisModel) { var gridModel = axisModel.axis.grid.model; gridModelMap.set(gridModel.id, gridModel); yAxesHas[gridModel.id] = true; }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(gridModels, function (gridModel) { gridModelMap.set(gridModel.id, gridModel); xAxesHas[gridModel.id] = true; yAxesHas[gridModel.id] = true; }); gridModelMap.each(function (gridModel) { var grid = gridModel.coordinateSystem; var cartesians = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(grid.getCartesians(), function (cartesian, index) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"])(xAxisModels, cartesian.getAxis('x').model) >= 0 || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"])(yAxisModels, cartesian.getAxis('y').model) >= 0) { cartesians.push(cartesian); } }); targetInfoList.push({ panelId: 'grid--' + gridModel.id, gridModel: gridModel, coordSysModel: gridModel, // Use the first one as the representitive coordSys. coordSys: cartesians[0], coordSyses: cartesians, getPanelRect: panelRectBuilders.grid, xAxisDeclared: xAxesHas[gridModel.id], yAxisDeclared: yAxesHas[gridModel.id] }); }); }, geo: function (foundCpts, targetInfoList) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(foundCpts.geoModels, function (geoModel) { var coordSys = geoModel.coordinateSystem; targetInfoList.push({ panelId: 'geo--' + geoModel.id, geoModel: geoModel, coordSysModel: geoModel, coordSys: coordSys, coordSyses: [coordSys], getPanelRect: panelRectBuilders.geo }); }); } }; var targetInfoMatchers = [ // grid function (foundCpts, targetInfo) { var xAxisModel = foundCpts.xAxisModel; var yAxisModel = foundCpts.yAxisModel; var gridModel = foundCpts.gridModel; !gridModel && xAxisModel && (gridModel = xAxisModel.axis.grid.model); !gridModel && yAxisModel && (gridModel = yAxisModel.axis.grid.model); return gridModel && gridModel === targetInfo.gridModel; }, // geo function (foundCpts, targetInfo) { var geoModel = foundCpts.geoModel; return geoModel && geoModel === targetInfo.geoModel; }]; var panelRectBuilders = { grid: function () { // grid is not Transformable. return this.coordSys.master.getRect().clone(); }, geo: function () { var coordSys = this.coordSys; var rect = coordSys.getBoundingRect().clone(); // geo roam and zoom transform rect.applyTransform(_util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["getTransform"](coordSys)); return rect; } }; var coordConvert = { lineX: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"])(axisConvert, 0), lineY: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"])(axisConvert, 1), rect: function (to, coordSys, rangeOrCoordRange, clamp) { var xminymin = to ? coordSys.pointToData([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]], clamp) : coordSys.dataToPoint([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]], clamp); var xmaxymax = to ? coordSys.pointToData([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]], clamp) : coordSys.dataToPoint([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]], clamp); var values = [formatMinMax([xminymin[0], xmaxymax[0]]), formatMinMax([xminymin[1], xmaxymax[1]])]; return { values: values, xyMinMax: values }; }, polygon: function (to, coordSys, rangeOrCoordRange, clamp) { var xyMinMax = [[Infinity, -Infinity], [Infinity, -Infinity]]; var values = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(rangeOrCoordRange, function (item) { var p = to ? coordSys.pointToData(item, clamp) : coordSys.dataToPoint(item, clamp); xyMinMax[0][0] = Math.min(xyMinMax[0][0], p[0]); xyMinMax[1][0] = Math.min(xyMinMax[1][0], p[1]); xyMinMax[0][1] = Math.max(xyMinMax[0][1], p[0]); xyMinMax[1][1] = Math.max(xyMinMax[1][1], p[1]); return p; }); return { values: values, xyMinMax: xyMinMax }; } }; function axisConvert(axisNameIndex, to, coordSys, rangeOrCoordRange) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(coordSys.type === 'cartesian2d', 'lineX/lineY brush is available only in cartesian2d.'); } var axis = coordSys.getAxis(['x', 'y'][axisNameIndex]); var values = formatMinMax(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])([0, 1], function (i) { return to ? axis.coordToData(axis.toLocalCoord(rangeOrCoordRange[i]), true) : axis.toGlobalCoord(axis.dataToCoord(rangeOrCoordRange[i])); })); var xyMinMax = []; xyMinMax[axisNameIndex] = values; xyMinMax[1 - axisNameIndex] = [NaN, NaN]; return { values: values, xyMinMax: xyMinMax }; } var diffProcessor = { lineX: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"])(axisDiffProcessor, 0), lineY: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"])(axisDiffProcessor, 1), rect: function (values, refer, scales) { return [[values[0][0] - scales[0] * refer[0][0], values[0][1] - scales[0] * refer[0][1]], [values[1][0] - scales[1] * refer[1][0], values[1][1] - scales[1] * refer[1][1]]]; }, polygon: function (values, refer, scales) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(values, function (item, idx) { return [item[0] - scales[0] * refer[idx][0], item[1] - scales[1] * refer[idx][1]]; }); } }; function axisDiffProcessor(axisNameIndex, values, refer, scales) { return [values[0] - scales[axisNameIndex] * refer[0], values[1] - scales[axisNameIndex] * refer[1]]; } // We have to process scale caused by dataZoom manually, // although it might be not accurate. // Return [0~1, 0~1] function getScales(xyMinMaxCurr, xyMinMaxOrigin) { var sizeCurr = getSize(xyMinMaxCurr); var sizeOrigin = getSize(xyMinMaxOrigin); var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]]; isNaN(scales[0]) && (scales[0] = 1); isNaN(scales[1]) && (scales[1] = 1); return scales; } function getSize(xyMinMax) { return xyMinMax ? [xyMinMax[0][1] - xyMinMax[0][0], xyMinMax[1][1] - xyMinMax[1][0]] : [NaN, NaN]; } /* harmony default export */ __webpack_exports__["default"] = (BrushTargetManager); /***/ }), /***/ "./node_modules/echarts/lib/component/helper/MapDraw.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/component/helper/MapDraw.js ***! \**************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _RoamController_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RoamController.js */ "./node_modules/echarts/lib/component/helper/RoamController.js"); /* harmony import */ var _component_helper_roamHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../component/helper/roamHelper.js */ "./node_modules/echarts/lib/component/helper/roamHelper.js"); /* harmony import */ var _component_helper_cursorHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../component/helper/cursorHelper.js */ "./node_modules/echarts/lib/component/helper/cursorHelper.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _coord_geo_geoSourceManager_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../coord/geo/geoSourceManager.js */ "./node_modules/echarts/lib/coord/geo/geoSourceManager.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _util_decal_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/decal.js */ "./node_modules/echarts/lib/util/decal.js"); /* harmony import */ var zrender_lib_graphic_Displayable_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! zrender/lib/graphic/Displayable.js */ "./node_modules/zrender/lib/graphic/Displayable.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Only these tags enable use `itemStyle` if they are named in SVG. * Other tags like might not suitable for `itemStyle`. * They will not be considered to be styled until some requirements come. */ var OPTION_STYLE_ENABLED_TAGS = ['rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path']; var OPTION_STYLE_ENABLED_TAG_MAP = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](OPTION_STYLE_ENABLED_TAGS); var STATE_TRIGGER_TAG_MAP = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](OPTION_STYLE_ENABLED_TAGS.concat(['g'])); var LABEL_HOST_MAP = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](OPTION_STYLE_ENABLED_TAGS.concat(['g'])); var mapLabelRaw = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_12__["makeInner"])(); function getFixedItemStyle(model) { var itemStyle = model.getItemStyle(); var areaColor = model.get('areaColor'); // If user want the color not to be changed when hover, // they should both set areaColor and color to be null. if (areaColor != null) { itemStyle.fill = areaColor; } return itemStyle; } // Only stroke can be used for line. // Using fill in style if stroke not exits. // TODO Not sure yet. Perhaps a separate `lineStyle`? function fixLineStyle(styleHost) { var style = styleHost.style; if (style) { style.stroke = style.stroke || style.fill; style.fill = null; } } var MapDraw = /** @class */function () { function MapDraw(api) { var group = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Group"](); this.uid = Object(_util_component_js__WEBPACK_IMPORTED_MODULE_7__["getUID"])('ec_map_draw'); this._controller = new _RoamController_js__WEBPACK_IMPORTED_MODULE_1__["default"](api.getZr()); this._controllerHost = { target: group }; this.group = group; group.add(this._regionsGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Group"]()); group.add(this._svgGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Group"]()); } MapDraw.prototype.draw = function (mapOrGeoModel, ecModel, api, fromView, payload) { var isGeo = mapOrGeoModel.mainType === 'geo'; // Map series has data. GEO model that controlled by map series // will be assigned with map data. Other GEO model has no data. var data = mapOrGeoModel.getData && mapOrGeoModel.getData(); isGeo && ecModel.eachComponent({ mainType: 'series', subType: 'map' }, function (mapSeries) { if (!data && mapSeries.getHostGeoModel() === mapOrGeoModel) { data = mapSeries.getData(); } }); var geo = mapOrGeoModel.coordinateSystem; var regionsGroup = this._regionsGroup; var group = this.group; var transformInfo = geo.getTransformInfo(); var transformInfoRaw = transformInfo.raw; var transformInfoRoam = transformInfo.roam; // No animation when first draw or in action var isFirstDraw = !regionsGroup.childAt(0) || payload; if (isFirstDraw) { group.x = transformInfoRoam.x; group.y = transformInfoRoam.y; group.scaleX = transformInfoRoam.scaleX; group.scaleY = transformInfoRoam.scaleY; group.dirty(); } else { _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["updateProps"](group, transformInfoRoam, mapOrGeoModel); } var isVisualEncodedByVisualMap = data && data.getVisual('visualMeta') && data.getVisual('visualMeta').length > 0; var viewBuildCtx = { api: api, geo: geo, mapOrGeoModel: mapOrGeoModel, data: data, isVisualEncodedByVisualMap: isVisualEncodedByVisualMap, isGeo: isGeo, transformInfoRaw: transformInfoRaw }; if (geo.resourceType === 'geoJSON') { this._buildGeoJSON(viewBuildCtx); } else if (geo.resourceType === 'geoSVG') { this._buildSVG(viewBuildCtx); } this._updateController(mapOrGeoModel, ecModel, api); this._updateMapSelectHandler(mapOrGeoModel, regionsGroup, api, fromView); }; MapDraw.prototype._buildGeoJSON = function (viewBuildCtx) { var regionsGroupByName = this._regionsGroupByName = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](); var regionsInfoByName = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](); var regionsGroup = this._regionsGroup; var transformInfoRaw = viewBuildCtx.transformInfoRaw; var mapOrGeoModel = viewBuildCtx.mapOrGeoModel; var data = viewBuildCtx.data; var projection = viewBuildCtx.geo.projection; var projectionStream = projection && projection.stream; function transformPoint(point, project) { if (project) { // projection may return null point. point = project(point); } return point && [point[0] * transformInfoRaw.scaleX + transformInfoRaw.x, point[1] * transformInfoRaw.scaleY + transformInfoRaw.y]; } ; function transformPolygonPoints(inPoints) { var outPoints = []; // If projectionStream is provided. Use it instead of single point project. var project = !projectionStream && projection && projection.project; for (var i = 0; i < inPoints.length; ++i) { var newPt = transformPoint(inPoints[i], project); newPt && outPoints.push(newPt); } return outPoints; } function getPolyShape(points) { return { shape: { points: transformPolygonPoints(points) } }; } regionsGroup.removeAll(); // Only when the resource is GeoJSON, there is `geo.regions`. zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](viewBuildCtx.geo.regions, function (region) { var regionName = region.name; // Consider in GeoJson properties.name may be duplicated, for example, // there is multiple region named "United Kindom" or "France" (so many // colonies). And it is not appropriate to merge them in geo, which // will make them share the same label and bring trouble in label // location calculation. var regionGroup = regionsGroupByName.get(regionName); var _a = regionsInfoByName.get(regionName) || {}, dataIdx = _a.dataIdx, regionModel = _a.regionModel; if (!regionGroup) { regionGroup = regionsGroupByName.set(regionName, new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Group"]()); regionsGroup.add(regionGroup); dataIdx = data ? data.indexOfName(regionName) : null; regionModel = viewBuildCtx.isGeo ? mapOrGeoModel.getRegionModel(regionName) : data ? data.getItemModel(dataIdx) : null; var silent = regionModel.get('silent', true); silent != null && (regionGroup.silent = silent); regionsInfoByName.set(regionName, { dataIdx: dataIdx, regionModel: regionModel }); } var polygonSubpaths = []; var polylineSubpaths = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](region.geometries, function (geometry) { // Polygon and MultiPolygon if (geometry.type === 'polygon') { var polys = [geometry.exterior].concat(geometry.interiors || []); if (projectionStream) { polys = projectPolys(polys, projectionStream); } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](polys, function (poly) { polygonSubpaths.push(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Polygon"](getPolyShape(poly))); }); } // LineString and MultiLineString else { var points = geometry.points; if (projectionStream) { points = projectPolys(points, projectionStream, true); } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](points, function (points) { polylineSubpaths.push(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Polyline"](getPolyShape(points))); }); } }); var centerPt = transformPoint(region.getCenter(), projection && projection.project); function createCompoundPath(subpaths, isLine) { if (!subpaths.length) { return; } var compoundPath = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["CompoundPath"]({ culling: true, segmentIgnoreThreshold: 1, shape: { paths: subpaths } }); regionGroup.add(compoundPath); applyOptionStyleForRegion(viewBuildCtx, compoundPath, dataIdx, regionModel); resetLabelForRegion(viewBuildCtx, compoundPath, regionName, regionModel, mapOrGeoModel, dataIdx, centerPt); if (isLine) { fixLineStyle(compoundPath); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](compoundPath.states, fixLineStyle); } } createCompoundPath(polygonSubpaths); createCompoundPath(polylineSubpaths, true); }); // Ensure children have been added to `regionGroup` before calling them. regionsGroupByName.each(function (regionGroup, regionName) { var _a = regionsInfoByName.get(regionName), dataIdx = _a.dataIdx, regionModel = _a.regionModel; resetEventTriggerForRegion(viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel, dataIdx); resetTooltipForRegion(viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel); resetStateTriggerForRegion(viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel); }, this); }; MapDraw.prototype._buildSVG = function (viewBuildCtx) { var mapName = viewBuildCtx.geo.map; var transformInfoRaw = viewBuildCtx.transformInfoRaw; this._svgGroup.x = transformInfoRaw.x; this._svgGroup.y = transformInfoRaw.y; this._svgGroup.scaleX = transformInfoRaw.scaleX; this._svgGroup.scaleY = transformInfoRaw.scaleY; if (this._svgResourceChanged(mapName)) { this._freeSVG(); this._useSVG(mapName); } var svgDispatcherMap = this._svgDispatcherMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](); var focusSelf = false; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](this._svgGraphicRecord.named, function (namedItem) { // Note that we also allow different elements have the same name. // For example, a glyph of a city and the label of the city have // the same name and their tooltip info can be defined in a single // region option. var regionName = namedItem.name; var mapOrGeoModel = viewBuildCtx.mapOrGeoModel; var data = viewBuildCtx.data; var svgNodeTagLower = namedItem.svgNodeTagLower; var el = namedItem.el; var dataIdx = data ? data.indexOfName(regionName) : null; var regionModel = mapOrGeoModel.getRegionModel(regionName); if (OPTION_STYLE_ENABLED_TAG_MAP.get(svgNodeTagLower) != null && el instanceof zrender_lib_graphic_Displayable_js__WEBPACK_IMPORTED_MODULE_11__["default"]) { applyOptionStyleForRegion(viewBuildCtx, el, dataIdx, regionModel); } if (el instanceof zrender_lib_graphic_Displayable_js__WEBPACK_IMPORTED_MODULE_11__["default"]) { el.culling = true; } var silent = regionModel.get('silent', true); silent != null && (el.silent = silent); // We do not know how the SVG like so we'd better not to change z2. // Otherwise it might bring some unexpected result. For example, // an area hovered that make some inner city can not be clicked. el.z2EmphasisLift = 0; // If self named: if (!namedItem.namedFrom) { // label should batter to be displayed based on the center of // if it is named rather than displayed on each child. if (LABEL_HOST_MAP.get(svgNodeTagLower) != null) { resetLabelForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, dataIdx, null); } resetEventTriggerForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, dataIdx); resetTooltipForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel); if (STATE_TRIGGER_TAG_MAP.get(svgNodeTagLower) != null) { var focus_1 = resetStateTriggerForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel); if (focus_1 === 'self') { focusSelf = true; } var els = svgDispatcherMap.get(regionName) || svgDispatcherMap.set(regionName, []); els.push(el); } } }, this); this._enableBlurEntireSVG(focusSelf, viewBuildCtx); }; MapDraw.prototype._enableBlurEntireSVG = function (focusSelf, viewBuildCtx) { // It's a little complicated to support blurring the entire geoSVG in series-map. // So do not support it until some requirements come. // At present, in series-map, only regions can be blurred. if (focusSelf && viewBuildCtx.isGeo) { var blurStyle = viewBuildCtx.mapOrGeoModel.getModel(['blur', 'itemStyle']).getItemStyle(); // Only support `opacity` here. Because not sure that other props are suitable for // all of the elements generated by SVG (especially for Text/TSpan/Image/... ). var opacity_1 = blurStyle.opacity; this._svgGraphicRecord.root.traverse(function (el) { if (!el.isGroup) { // PENDING: clear those settings to SVG elements when `_freeSVG`. // (Currently it happen not to be needed.) Object(_util_states_js__WEBPACK_IMPORTED_MODULE_5__["setDefaultStateProxy"])(el); var style = el.ensureState('blur').style || {}; // Do not overwrite the region style that already set from region option. if (style.opacity == null && opacity_1 != null) { style.opacity = opacity_1; } // If `ensureState('blur').style = {}`, there will be default opacity. // Enable `stateTransition` (animation). el.ensureState('emphasis'); } }); } }; MapDraw.prototype.remove = function () { this._regionsGroup.removeAll(); this._regionsGroupByName = null; this._svgGroup.removeAll(); this._freeSVG(); this._controller.dispose(); this._controllerHost = null; }; MapDraw.prototype.findHighDownDispatchers = function (name, geoModel) { if (name == null) { return []; } var geo = geoModel.coordinateSystem; if (geo.resourceType === 'geoJSON') { var regionsGroupByName = this._regionsGroupByName; if (regionsGroupByName) { var regionGroup = regionsGroupByName.get(name); return regionGroup ? [regionGroup] : []; } } else if (geo.resourceType === 'geoSVG') { return this._svgDispatcherMap && this._svgDispatcherMap.get(name) || []; } }; MapDraw.prototype._svgResourceChanged = function (mapName) { return this._svgMapName !== mapName; }; MapDraw.prototype._useSVG = function (mapName) { var resource = _coord_geo_geoSourceManager_js__WEBPACK_IMPORTED_MODULE_6__["default"].getGeoResource(mapName); if (resource && resource.type === 'geoSVG') { var svgGraphic = resource.useGraphic(this.uid); this._svgGroup.add(svgGraphic.root); this._svgGraphicRecord = svgGraphic; this._svgMapName = mapName; } }; MapDraw.prototype._freeSVG = function () { var mapName = this._svgMapName; if (mapName == null) { return; } var resource = _coord_geo_geoSourceManager_js__WEBPACK_IMPORTED_MODULE_6__["default"].getGeoResource(mapName); if (resource && resource.type === 'geoSVG') { resource.freeGraphic(this.uid); } this._svgGraphicRecord = null; this._svgDispatcherMap = null; this._svgGroup.removeAll(); this._svgMapName = null; }; MapDraw.prototype._updateController = function (mapOrGeoModel, ecModel, api) { var geo = mapOrGeoModel.coordinateSystem; var controller = this._controller; var controllerHost = this._controllerHost; // @ts-ignore FIXME:TS controllerHost.zoomLimit = mapOrGeoModel.get('scaleLimit'); controllerHost.zoom = geo.getZoom(); // roamType is will be set default true if it is null // @ts-ignore FIXME:TS controller.enable(mapOrGeoModel.get('roam') || false); var mainType = mapOrGeoModel.mainType; function makeActionBase() { var action = { type: 'geoRoam', componentType: mainType }; action[mainType + 'Id'] = mapOrGeoModel.id; return action; } controller.off('pan').on('pan', function (e) { this._mouseDownFlag = false; _component_helper_roamHelper_js__WEBPACK_IMPORTED_MODULE_2__["updateViewOnPan"](controllerHost, e.dx, e.dy); api.dispatchAction(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"](makeActionBase(), { dx: e.dx, dy: e.dy, animation: { duration: 0 } })); }, this); controller.off('zoom').on('zoom', function (e) { this._mouseDownFlag = false; _component_helper_roamHelper_js__WEBPACK_IMPORTED_MODULE_2__["updateViewOnZoom"](controllerHost, e.scale, e.originX, e.originY); api.dispatchAction(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"](makeActionBase(), { totalZoom: controllerHost.zoom, zoom: e.scale, originX: e.originX, originY: e.originY, animation: { duration: 0 } })); }, this); controller.setPointerChecker(function (e, x, y) { return geo.containPoint([x, y]) && !Object(_component_helper_cursorHelper_js__WEBPACK_IMPORTED_MODULE_3__["onIrrelevantElement"])(e, api, mapOrGeoModel); }); }; /** * FIXME: this is a temporarily workaround. * When `geoRoam` the elements need to be reset in `MapView['render']`, because the props like * `ignore` might have been modified by `LabelManager`, and `LabelManager#addLabelsOfSeries` * will subsequently cache `defaultAttr` like `ignore`. If do not do this reset, the modified * props will have no chance to be restored. * Note: This reset should be after `clearStates` in `renderSeries` because `useStates` in * `renderSeries` will cache the modified `ignore` to `el._normalState`. * TODO: * Use clone/immutable in `LabelManager`? */ MapDraw.prototype.resetForLabelLayout = function () { this.group.traverse(function (el) { var label = el.getTextContent(); if (label) { label.ignore = mapLabelRaw(label).ignore; } }); }; MapDraw.prototype._updateMapSelectHandler = function (mapOrGeoModel, regionsGroup, api, fromView) { var mapDraw = this; regionsGroup.off('mousedown'); regionsGroup.off('click'); // @ts-ignore FIXME:TS resolve type conflict if (mapOrGeoModel.get('selectedMode')) { regionsGroup.on('mousedown', function () { mapDraw._mouseDownFlag = true; }); regionsGroup.on('click', function (e) { if (!mapDraw._mouseDownFlag) { return; } mapDraw._mouseDownFlag = false; }); } }; return MapDraw; }(); ; function applyOptionStyleForRegion(viewBuildCtx, el, dataIndex, regionModel) { // All of the path are using `itemStyle`, because // (1) Some SVG also use fill on polyline (The different between // polyline and polygon is "open" or "close" but not fill or not). // (2) For the common props like opacity, if some use itemStyle // and some use `lineStyle`, it might confuse users. // (3) Most SVG use , where can not detect whether to draw a "line" // or a filled shape, so use `itemStyle` for . var normalStyleModel = regionModel.getModel('itemStyle'); var emphasisStyleModel = regionModel.getModel(['emphasis', 'itemStyle']); var blurStyleModel = regionModel.getModel(['blur', 'itemStyle']); var selectStyleModel = regionModel.getModel(['select', 'itemStyle']); // NOTE: DON'T use 'style' in visual when drawing map. // This component is used for drawing underlying map for both geo component and map series. var normalStyle = getFixedItemStyle(normalStyleModel); var emphasisStyle = getFixedItemStyle(emphasisStyleModel); var selectStyle = getFixedItemStyle(selectStyleModel); var blurStyle = getFixedItemStyle(blurStyleModel); // Update the itemStyle if has data visual var data = viewBuildCtx.data; if (data) { // Only visual color of each item will be used. It can be encoded by visualMap // But visual color of series is used in symbol drawing // Visual color for each series is for the symbol draw var style = data.getItemVisual(dataIndex, 'style'); var decal = data.getItemVisual(dataIndex, 'decal'); if (viewBuildCtx.isVisualEncodedByVisualMap && style.fill) { normalStyle.fill = style.fill; } if (decal) { normalStyle.decal = Object(_util_decal_js__WEBPACK_IMPORTED_MODULE_10__["createOrUpdatePatternFromDecal"])(decal, viewBuildCtx.api); } } // SVG text, tspan and image can be named but not supporeted // to be styled by region option yet. el.setStyle(normalStyle); el.style.strokeNoScale = true; el.ensureState('emphasis').style = emphasisStyle; el.ensureState('select').style = selectStyle; el.ensureState('blur').style = blurStyle; // Enable blur Object(_util_states_js__WEBPACK_IMPORTED_MODULE_5__["setDefaultStateProxy"])(el); } function resetLabelForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, // Exist only if `viewBuildCtx.data` exists. dataIdx, // If labelXY not provided, use `textConfig.position: 'inside'` labelXY) { var data = viewBuildCtx.data; var isGeo = viewBuildCtx.isGeo; var isDataNaN = data && isNaN(data.get(data.mapDimension('value'), dataIdx)); var itemLayout = data && data.getItemLayout(dataIdx); // In the following cases label will be drawn // 1. In map series and data value is NaN // 2. In geo component // 3. Region has no series legendIcon, which will be add a showLabel flag in mapSymbolLayout if (isGeo || isDataNaN || itemLayout && itemLayout.showLabel) { var query = !isGeo ? dataIdx : regionName; var labelFetcher = void 0; // Consider dataIdx not found. if (!data || dataIdx >= 0) { labelFetcher = mapOrGeoModel; } var specifiedTextOpt = labelXY ? { normal: { align: 'center', verticalAlign: 'middle' } } : null; // Caveat: must be called after `setDefaultStateProxy(el);` called. // because textContent will be assign with `el.stateProxy` inside. Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_8__["setLabelStyle"])(el, Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_8__["getLabelStatesModels"])(regionModel), { labelFetcher: labelFetcher, labelDataIndex: query, defaultText: regionName }, specifiedTextOpt); var textEl = el.getTextContent(); if (textEl) { mapLabelRaw(textEl).ignore = textEl.ignore; if (el.textConfig && labelXY) { // Compute a relative offset based on the el bounding rect. var rect = el.getBoundingRect().clone(); // Need to make sure the percent position base on the same rect in normal and // emphasis state. Otherwise if using boundingRect of el, but the emphasis state // has borderWidth (even 0.5px), the text position will be changed obviously // if the position is very big like ['1234%', '1345%']. el.textConfig.layoutRect = rect; el.textConfig.position = [(labelXY[0] - rect.x) / rect.width * 100 + '%', (labelXY[1] - rect.y) / rect.height * 100 + '%']; } } // PENDING: // If labelLayout is enabled (test/label-layout.html), el.dataIndex should be specified. // But el.dataIndex is also used to determine whether user event should be triggered, // where el.seriesIndex or el.dataModel must be specified. At present for a single el // there is not case that "only label layout enabled but user event disabled", so here // we depends `resetEventTriggerForRegion` to do the job of setting `el.dataIndex`. el.disableLabelAnimation = true; } else { el.removeTextContent(); el.removeTextConfig(); el.disableLabelAnimation = null; } } function resetEventTriggerForRegion(viewBuildCtx, eventTrigger, regionName, regionModel, mapOrGeoModel, // Exist only if `viewBuildCtx.data` exists. dataIdx) { // setItemGraphicEl, setHoverStyle after all polygons and labels // are added to the regionGroup if (viewBuildCtx.data) { // FIXME: when series-map use a SVG map, and there are duplicated name specified // on different SVG elements, after `data.setItemGraphicEl(...)`: // (1) all of them will be mounted with `dataIndex`, `seriesIndex`, so that tooltip // can be triggered only mouse hover. That's correct. // (2) only the last element will be kept in `data`, so that if trigger tooltip // by `dispatchAction`, only the last one can be found and triggered. That might be // not correct. We will fix it in future if anyone demanding that. viewBuildCtx.data.setItemGraphicEl(dataIdx, eventTrigger); } // series-map will not trigger "geoselectchange" no matter it is // based on a declared geo component. Because series-map will // trigger "selectchange". If it trigger both the two events, // If users call `chart.dispatchAction({type: 'toggleSelect'})`, // it not easy to also fire event "geoselectchanged". else { // Package custom mouse event for geo component Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_9__["getECData"])(eventTrigger).eventData = { componentType: 'geo', componentIndex: mapOrGeoModel.componentIndex, geoIndex: mapOrGeoModel.componentIndex, name: regionName, region: regionModel && regionModel.option || {} }; } } function resetTooltipForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel) { if (!viewBuildCtx.data) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["setTooltipConfig"]({ el: el, componentModel: mapOrGeoModel, itemName: regionName, // @ts-ignore FIXME:TS fix the "compatible with each other"? itemTooltipOption: regionModel.get('tooltip') }); } } function resetStateTriggerForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel) { // @ts-ignore FIXME:TS fix the "compatible with each other"? el.highDownSilentOnTouch = !!mapOrGeoModel.get('selectedMode'); // @ts-ignore FIXME:TS fix the "compatible with each other"? var emphasisModel = regionModel.getModel('emphasis'); var focus = emphasisModel.get('focus'); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_5__["toggleHoverEmphasis"])(el, focus, emphasisModel.get('blurScope'), emphasisModel.get('disabled')); if (viewBuildCtx.isGeo) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_5__["enableComponentHighDownFeatures"])(el, mapOrGeoModel, regionName); } return focus; } function projectPolys(rings, // Polygons include exterior and interiors. Or polylines. createStream, isLine) { var polygons = []; var curPoly; function startPolygon() { curPoly = []; } function endPolygon() { if (curPoly.length) { polygons.push(curPoly); curPoly = []; } } var stream = createStream({ polygonStart: startPolygon, polygonEnd: endPolygon, lineStart: startPolygon, lineEnd: endPolygon, point: function (x, y) { // May have NaN values from stream. if (isFinite(x) && isFinite(y)) { curPoly.push([x, y]); } }, sphere: function () {} }); !isLine && stream.polygonStart(); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](rings, function (ring) { stream.lineStart(); for (var i = 0; i < ring.length; i++) { stream.point(ring[i][0], ring[i][1]); } stream.lineEnd(); }); !isLine && stream.polygonEnd(); return polygons; } /* harmony default export */ __webpack_exports__["default"] = (MapDraw); // @ts-ignore FIXME:TS fix the "compatible with each other"? /***/ }), /***/ "./node_modules/echarts/lib/component/helper/RoamController.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/component/helper/RoamController.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_Eventful_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/Eventful.js */ "./node_modules/zrender/lib/core/Eventful.js"); /* harmony import */ var zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/event.js */ "./node_modules/zrender/lib/core/event.js"); /* harmony import */ var _interactionMutex_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interactionMutex.js */ "./node_modules/echarts/lib/component/helper/interactionMutex.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ; var RoamController = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RoamController, _super); function RoamController(zr) { var _this = _super.call(this) || this; _this._zr = zr; // Avoid two roamController bind the same handler var mousedownHandler = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["bind"])(_this._mousedownHandler, _this); var mousemoveHandler = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["bind"])(_this._mousemoveHandler, _this); var mouseupHandler = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["bind"])(_this._mouseupHandler, _this); var mousewheelHandler = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["bind"])(_this._mousewheelHandler, _this); var pinchHandler = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["bind"])(_this._pinchHandler, _this); /** * Notice: only enable needed types. For example, if 'zoom' * is not needed, 'zoom' should not be enabled, otherwise * default mousewheel behaviour (scroll page) will be disabled. */ _this.enable = function (controlType, opt) { // Disable previous first this.disable(); this._opt = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["defaults"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["clone"])(opt) || {}, { zoomOnMouseWheel: true, moveOnMouseMove: true, // By default, wheel do not trigger move. moveOnMouseWheel: false, preventDefaultMouseMove: true }); if (controlType == null) { controlType = true; } if (controlType === true || controlType === 'move' || controlType === 'pan') { zr.on('mousedown', mousedownHandler); zr.on('mousemove', mousemoveHandler); zr.on('mouseup', mouseupHandler); } if (controlType === true || controlType === 'scale' || controlType === 'zoom') { zr.on('mousewheel', mousewheelHandler); zr.on('pinch', pinchHandler); } }; _this.disable = function () { zr.off('mousedown', mousedownHandler); zr.off('mousemove', mousemoveHandler); zr.off('mouseup', mouseupHandler); zr.off('mousewheel', mousewheelHandler); zr.off('pinch', pinchHandler); }; return _this; } RoamController.prototype.isDragging = function () { return this._dragging; }; RoamController.prototype.isPinching = function () { return this._pinching; }; RoamController.prototype.setPointerChecker = function (pointerChecker) { this.pointerChecker = pointerChecker; }; RoamController.prototype.dispose = function () { this.disable(); }; RoamController.prototype._mousedownHandler = function (e) { if (zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_2__["isMiddleOrRightButtonOnMouseUpDown"](e)) { return; } var el = e.target; while (el) { if (el.draggable) { return; } // check if host is draggable el = el.__hostTarget || el.parent; } var x = e.offsetX; var y = e.offsetY; // Only check on mosedown, but not mousemove. // Mouse can be out of target when mouse moving. if (this.pointerChecker && this.pointerChecker(e, x, y)) { this._x = x; this._y = y; this._dragging = true; } }; RoamController.prototype._mousemoveHandler = function (e) { if (!this._dragging || !isAvailableBehavior('moveOnMouseMove', e, this._opt) || e.gestureEvent === 'pinch' || _interactionMutex_js__WEBPACK_IMPORTED_MODULE_3__["isTaken"](this._zr, 'globalPan')) { return; } var x = e.offsetX; var y = e.offsetY; var oldX = this._x; var oldY = this._y; var dx = x - oldX; var dy = y - oldY; this._x = x; this._y = y; this._opt.preventDefaultMouseMove && zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_2__["stop"](e.event); trigger(this, 'pan', 'moveOnMouseMove', e, { dx: dx, dy: dy, oldX: oldX, oldY: oldY, newX: x, newY: y, isAvailableBehavior: null }); }; RoamController.prototype._mouseupHandler = function (e) { if (!zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_2__["isMiddleOrRightButtonOnMouseUpDown"](e)) { this._dragging = false; } }; RoamController.prototype._mousewheelHandler = function (e) { var shouldZoom = isAvailableBehavior('zoomOnMouseWheel', e, this._opt); var shouldMove = isAvailableBehavior('moveOnMouseWheel', e, this._opt); var wheelDelta = e.wheelDelta; var absWheelDeltaDelta = Math.abs(wheelDelta); var originX = e.offsetX; var originY = e.offsetY; // wheelDelta maybe -0 in chrome mac. if (wheelDelta === 0 || !shouldZoom && !shouldMove) { return; } // If both `shouldZoom` and `shouldMove` is true, trigger // their event both, and the final behavior is determined // by event listener themselves. if (shouldZoom) { // Convenience: // Mac and VM Windows on Mac: scroll up: zoom out. // Windows: scroll up: zoom in. // FIXME: Should do more test in different environment. // wheelDelta is too complicated in difference nvironment // (https://developer.mozilla.org/en-US/docs/Web/Events/mousewheel), // although it has been normallized by zrender. // wheelDelta of mouse wheel is bigger than touch pad. var factor = absWheelDeltaDelta > 3 ? 1.4 : absWheelDeltaDelta > 1 ? 1.2 : 1.1; var scale = wheelDelta > 0 ? factor : 1 / factor; checkPointerAndTrigger(this, 'zoom', 'zoomOnMouseWheel', e, { scale: scale, originX: originX, originY: originY, isAvailableBehavior: null }); } if (shouldMove) { // FIXME: Should do more test in different environment. var absDelta = Math.abs(wheelDelta); // wheelDelta of mouse wheel is bigger than touch pad. var scrollDelta = (wheelDelta > 0 ? 1 : -1) * (absDelta > 3 ? 0.4 : absDelta > 1 ? 0.15 : 0.05); checkPointerAndTrigger(this, 'scrollMove', 'moveOnMouseWheel', e, { scrollDelta: scrollDelta, originX: originX, originY: originY, isAvailableBehavior: null }); } }; RoamController.prototype._pinchHandler = function (e) { if (_interactionMutex_js__WEBPACK_IMPORTED_MODULE_3__["isTaken"](this._zr, 'globalPan')) { return; } var scale = e.pinchScale > 1 ? 1.1 : 1 / 1.1; checkPointerAndTrigger(this, 'zoom', null, e, { scale: scale, originX: e.pinchX, originY: e.pinchY, isAvailableBehavior: null }); }; return RoamController; }(zrender_lib_core_Eventful_js__WEBPACK_IMPORTED_MODULE_1__["default"]); function checkPointerAndTrigger(controller, eventName, behaviorToCheck, e, contollerEvent) { if (controller.pointerChecker && controller.pointerChecker(e, contollerEvent.originX, contollerEvent.originY)) { // When mouse is out of roamController rect, // default befavoius should not be be disabled, otherwise // page sliding is disabled, contrary to expectation. zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_2__["stop"](e.event); trigger(controller, eventName, behaviorToCheck, e, contollerEvent); } } function trigger(controller, eventName, behaviorToCheck, e, contollerEvent) { // Also provide behavior checker for event listener, for some case that // multiple components share one listener. contollerEvent.isAvailableBehavior = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["bind"])(isAvailableBehavior, null, behaviorToCheck, e); // TODO should not have type issue. controller.trigger(eventName, contollerEvent); } // settings: { // zoomOnMouseWheel // moveOnMouseMove // moveOnMouseWheel // } // The value can be: true / false / 'shift' / 'ctrl' / 'alt'. function isAvailableBehavior(behaviorToCheck, e, settings) { var setting = settings[behaviorToCheck]; return !behaviorToCheck || setting && (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["isString"])(setting) || e.event[setting + 'Key']); } /* harmony default export */ __webpack_exports__["default"] = (RoamController); /***/ }), /***/ "./node_modules/echarts/lib/component/helper/brushHelper.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/component/helper/brushHelper.js ***! \******************************************************************/ /*! exports provided: makeRectPanelClipPath, makeLinearBrushOtherExtent, makeRectIsTargetByCursor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeRectPanelClipPath", function() { return makeRectPanelClipPath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeLinearBrushOtherExtent", function() { return makeLinearBrushOtherExtent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeRectIsTargetByCursor", function() { return makeRectIsTargetByCursor; }); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var _cursorHelper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cursorHelper.js */ "./node_modules/echarts/lib/component/helper/cursorHelper.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function makeRectPanelClipPath(rect) { rect = normalizeRect(rect); return function (localPoints) { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["clipPointsByRect"](localPoints, rect); }; } function makeLinearBrushOtherExtent(rect, specifiedXYIndex) { rect = normalizeRect(rect); return function (xyIndex) { var idx = specifiedXYIndex != null ? specifiedXYIndex : xyIndex; var brushWidth = idx ? rect.width : rect.height; var base = idx ? rect.x : rect.y; return [base, base + (brushWidth || 0)]; }; } function makeRectIsTargetByCursor(rect, api, targetModel) { var boundingRect = normalizeRect(rect); return function (e, localCursorPoint) { return boundingRect.contain(localCursorPoint[0], localCursorPoint[1]) && !Object(_cursorHelper_js__WEBPACK_IMPORTED_MODULE_1__["onIrrelevantElement"])(e, api, targetModel); }; } // Consider width/height is negative. function normalizeRect(rect) { return zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_0__["default"].create(rect); } /***/ }), /***/ "./node_modules/echarts/lib/component/helper/cursorHelper.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/component/helper/cursorHelper.js ***! \*******************************************************************/ /*! exports provided: onIrrelevantElement */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onIrrelevantElement", function() { return onIrrelevantElement; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var IRRELEVANT_EXCLUDES = { 'axisPointer': 1, 'tooltip': 1, 'brush': 1 }; /** * Avoid that: mouse click on a elements that is over geo or graph, * but roam is triggered. */ function onIrrelevantElement(e, api, targetCoordSysModel) { var model = api.getComponentByElement(e.topTarget); // If model is axisModel, it works only if it is injected with coordinateSystem. var coordSys = model && model.coordinateSystem; return model && model !== targetCoordSysModel && !IRRELEVANT_EXCLUDES.hasOwnProperty(model.mainType) && coordSys && coordSys.model !== targetCoordSysModel; } /***/ }), /***/ "./node_modules/echarts/lib/component/helper/interactionMutex.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/helper/interactionMutex.js ***! \***********************************************************************/ /*! exports provided: take, release, isTaken */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "take", function() { return take; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "release", function() { return release; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTaken", function() { return isTaken; }); /* harmony import */ var _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../core/echarts.js */ "./node_modules/echarts/lib/core/echarts.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // @ts-nocheck var ATTR = '\0_ec_interaction_mutex'; function take(zr, resourceKey, userKey) { var store = getStore(zr); store[resourceKey] = userKey; } function release(zr, resourceKey, userKey) { var store = getStore(zr); var uKey = store[resourceKey]; if (uKey === userKey) { store[resourceKey] = null; } } function isTaken(zr, resourceKey) { return !!getStore(zr)[resourceKey]; } function getStore(zr) { return zr[ATTR] || (zr[ATTR] = {}); } /** * payload: { * type: 'takeGlobalCursor', * key: 'dataZoomSelect', or 'brush', or ..., * If no userKey, release global cursor. * } */ // TODO: SELF REGISTERED. _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerAction"]({ type: 'takeGlobalCursor', event: 'globalCursorTaken', update: 'update' }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["noop"]); /***/ }), /***/ "./node_modules/echarts/lib/component/helper/listComponent.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/component/helper/listComponent.js ***! \********************************************************************/ /*! exports provided: layout, makeBackground */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "layout", function() { return layout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeBackground", function() { return makeBackground; }); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // @ts-nocheck /** * Layout list like component. * It will box layout each items in group of component and then position the whole group in the viewport * @param {module:zrender/group/Group} group * @param {module:echarts/model/Component} componentModel * @param {module:echarts/ExtensionAPI} */ function layout(group, componentModel, api) { var boxLayoutParams = componentModel.getBoxLayoutParams(); var padding = componentModel.get('padding'); var viewportSize = { width: api.getWidth(), height: api.getHeight() }; var rect = Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_0__["getLayoutRect"])(boxLayoutParams, viewportSize, padding); Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_0__["box"])(componentModel.get('orient'), group, componentModel.get('itemGap'), rect.width, rect.height); Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_0__["positionElement"])(group, boxLayoutParams, viewportSize, padding); } function makeBackground(rect, componentModel) { var padding = _util_format_js__WEBPACK_IMPORTED_MODULE_1__["normalizeCssArray"](componentModel.get('padding')); var style = componentModel.getItemStyle(['color', 'opacity']); style.fill = componentModel.get('backgroundColor'); rect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Rect"]({ shape: { x: rect.x - padding[3], y: rect.y - padding[0], width: rect.width + padding[1] + padding[3], height: rect.height + padding[0] + padding[2], r: componentModel.get('borderRadius') }, style: style, silent: true, z2: -1 }); // FIXME // `subPixelOptimizeRect` may bring some gap between edge of viewpart // and background rect when setting like `left: 0`, `top: 0`. // graphic.subPixelOptimizeRect(rect); return rect; } /***/ }), /***/ "./node_modules/echarts/lib/component/helper/roamHelper.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/component/helper/roamHelper.js ***! \*****************************************************************/ /*! exports provided: updateViewOnPan, updateViewOnZoom */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateViewOnPan", function() { return updateViewOnPan; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateViewOnZoom", function() { return updateViewOnZoom; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * For geo and graph. */ function updateViewOnPan(controllerHost, dx, dy) { var target = controllerHost.target; target.x += dx; target.y += dy; target.dirty(); } /** * For geo and graph. */ function updateViewOnZoom(controllerHost, zoomDelta, zoomX, zoomY) { var target = controllerHost.target; var zoomLimit = controllerHost.zoomLimit; var newZoom = controllerHost.zoom = controllerHost.zoom || 1; newZoom *= zoomDelta; if (zoomLimit) { var zoomMin = zoomLimit.min || 0; var zoomMax = zoomLimit.max || Infinity; newZoom = Math.max(Math.min(zoomMax, newZoom), zoomMin); } var zoomScale = newZoom / controllerHost.zoom; controllerHost.zoom = newZoom; // Keep the mouse center when scaling target.x -= (zoomX - target.x) * (zoomScale - 1); target.y -= (zoomY - target.y) * (zoomScale - 1); target.scaleX *= zoomScale; target.scaleY *= zoomScale; target.dirty(); } /***/ }), /***/ "./node_modules/echarts/lib/component/helper/sliderMove.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/component/helper/sliderMove.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return sliderMove; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Calculate slider move result. * Usage: * (1) If both handle0 and handle1 are needed to be moved, set minSpan the same as * maxSpan and the same as `Math.abs(handleEnd[1] - handleEnds[0])`. * (2) If handle0 is forbidden to cross handle1, set minSpan as `0`. * * @param delta Move length. * @param handleEnds handleEnds[0] can be bigger then handleEnds[1]. * handleEnds will be modified in this method. * @param extent handleEnds is restricted by extent. * extent[0] should less or equals than extent[1]. * @param handleIndex Can be 'all', means that both move the two handleEnds. * @param minSpan The range of dataZoom can not be smaller than that. * If not set, handle0 and cross handle1. If set as a non-negative * number (including `0`), handles will push each other when reaching * the minSpan. * @param maxSpan The range of dataZoom can not be larger than that. * @return The input handleEnds. */ function sliderMove(delta, handleEnds, extent, handleIndex, minSpan, maxSpan) { delta = delta || 0; var extentSpan = extent[1] - extent[0]; // Notice maxSpan and minSpan can be null/undefined. if (minSpan != null) { minSpan = restrict(minSpan, [0, extentSpan]); } if (maxSpan != null) { maxSpan = Math.max(maxSpan, minSpan != null ? minSpan : 0); } if (handleIndex === 'all') { var handleSpan = Math.abs(handleEnds[1] - handleEnds[0]); handleSpan = restrict(handleSpan, [0, extentSpan]); minSpan = maxSpan = restrict(handleSpan, [minSpan, maxSpan]); handleIndex = 0; } handleEnds[0] = restrict(handleEnds[0], extent); handleEnds[1] = restrict(handleEnds[1], extent); var originalDistSign = getSpanSign(handleEnds, handleIndex); handleEnds[handleIndex] += delta; // Restrict in extent. var extentMinSpan = minSpan || 0; var realExtent = extent.slice(); originalDistSign.sign < 0 ? realExtent[0] += extentMinSpan : realExtent[1] -= extentMinSpan; handleEnds[handleIndex] = restrict(handleEnds[handleIndex], realExtent); // Expand span. var currDistSign; currDistSign = getSpanSign(handleEnds, handleIndex); if (minSpan != null && (currDistSign.sign !== originalDistSign.sign || currDistSign.span < minSpan)) { // If minSpan exists, 'cross' is forbidden. handleEnds[1 - handleIndex] = handleEnds[handleIndex] + originalDistSign.sign * minSpan; } // Shrink span. currDistSign = getSpanSign(handleEnds, handleIndex); if (maxSpan != null && currDistSign.span > maxSpan) { handleEnds[1 - handleIndex] = handleEnds[handleIndex] + currDistSign.sign * maxSpan; } return handleEnds; } function getSpanSign(handleEnds, handleIndex) { var dist = handleEnds[handleIndex] - handleEnds[1 - handleIndex]; // If `handleEnds[0] === handleEnds[1]`, always believe that handleEnd[0] // is at left of handleEnds[1] for non-cross case. return { span: Math.abs(dist), sign: dist > 0 ? -1 : dist < 0 ? 1 : handleIndex ? -1 : 1 }; } function restrict(value, extend) { return Math.min(extend[1] != null ? extend[1] : Infinity, Math.max(extend[0] != null ? extend[0] : -Infinity, value)); } /***/ }), /***/ "./node_modules/echarts/lib/component/legend/LegendModel.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/component/legend/LegendModel.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var getDefaultSelectorOptions = function (ecModel, type) { if (type === 'all') { return { type: 'all', title: ecModel.getLocaleModel().get(['legend', 'selector', 'all']) }; } else if (type === 'inverse') { return { type: 'inverse', title: ecModel.getLocaleModel().get(['legend', 'selector', 'inverse']) }; } }; var LegendModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LegendModel, _super); function LegendModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = LegendModel.type; _this.layoutMode = { type: 'box', // legend.width/height are maxWidth/maxHeight actually, // whereas real width/height is calculated by its content. // (Setting {left: 10, right: 10} does not make sense). // So consider the case: // `setOption({legend: {left: 10});` // then `setOption({legend: {right: 10});` // The previous `left` should be cleared by setting `ignoreSize`. ignoreSize: true }; return _this; } LegendModel.prototype.init = function (option, parentModel, ecModel) { this.mergeDefaultAndTheme(option, ecModel); option.selected = option.selected || {}; this._updateSelector(option); }; LegendModel.prototype.mergeOption = function (option, ecModel) { _super.prototype.mergeOption.call(this, option, ecModel); this._updateSelector(option); }; LegendModel.prototype._updateSelector = function (option) { var selector = option.selector; var ecModel = this.ecModel; if (selector === true) { selector = option.selector = ['all', 'inverse']; } if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](selector)) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](selector, function (item, index) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"](item) && (item = { type: item }); selector[index] = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](item, getDefaultSelectorOptions(ecModel, item.type)); }); } }; LegendModel.prototype.optionUpdated = function () { this._updateData(this.ecModel); var legendData = this._data; // If selectedMode is single, try to select one if (legendData[0] && this.get('selectedMode') === 'single') { var hasSelected = false; // If has any selected in option.selected for (var i = 0; i < legendData.length; i++) { var name_1 = legendData[i].get('name'); if (this.isSelected(name_1)) { // Force to unselect others this.select(name_1); hasSelected = true; break; } } // Try select the first if selectedMode is single !hasSelected && this.select(legendData[0].get('name')); } }; LegendModel.prototype._updateData = function (ecModel) { var potentialData = []; var availableNames = []; ecModel.eachRawSeries(function (seriesModel) { var seriesName = seriesModel.name; availableNames.push(seriesName); var isPotential; if (seriesModel.legendVisualProvider) { var provider = seriesModel.legendVisualProvider; var names = provider.getAllNames(); if (!ecModel.isSeriesFiltered(seriesModel)) { availableNames = availableNames.concat(names); } if (names.length) { potentialData = potentialData.concat(names); } else { isPotential = true; } } else { isPotential = true; } if (isPotential && Object(_util_model_js__WEBPACK_IMPORTED_MODULE_3__["isNameSpecified"])(seriesModel)) { potentialData.push(seriesModel.name); } }); /** * @type {Array.} * @private */ this._availableNames = availableNames; // If legend.data is not specified in option, use availableNames as data, // which is convenient for user preparing option. var rawData = this.get('data') || potentialData; var legendNameMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"](); var legendData = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](rawData, function (dataItem) { // Can be string or number if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"](dataItem) || zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isNumber"](dataItem)) { dataItem = { name: dataItem }; } if (legendNameMap.get(dataItem.name)) { // remove legend name duplicate return null; } legendNameMap.set(dataItem.name, true); return new _model_Model_js__WEBPACK_IMPORTED_MODULE_2__["default"](dataItem, this, this.ecModel); }, this); /** * @type {Array.} * @private */ this._data = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"](legendData, function (item) { return !!item; }); }; LegendModel.prototype.getData = function () { return this._data; }; LegendModel.prototype.select = function (name) { var selected = this.option.selected; var selectedMode = this.get('selectedMode'); if (selectedMode === 'single') { var data = this._data; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](data, function (dataItem) { selected[dataItem.get('name')] = false; }); } selected[name] = true; }; LegendModel.prototype.unSelect = function (name) { if (this.get('selectedMode') !== 'single') { this.option.selected[name] = false; } }; LegendModel.prototype.toggleSelected = function (name) { var selected = this.option.selected; // Default is true if (!selected.hasOwnProperty(name)) { selected[name] = true; } this[selected[name] ? 'unSelect' : 'select'](name); }; LegendModel.prototype.allSelect = function () { var data = this._data; var selected = this.option.selected; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](data, function (dataItem) { selected[dataItem.get('name', true)] = true; }); }; LegendModel.prototype.inverseSelect = function () { var data = this._data; var selected = this.option.selected; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](data, function (dataItem) { var name = dataItem.get('name', true); // Initially, default value is true if (!selected.hasOwnProperty(name)) { selected[name] = true; } selected[name] = !selected[name]; }); }; LegendModel.prototype.isSelected = function (name) { var selected = this.option.selected; return !(selected.hasOwnProperty(name) && !selected[name]) && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["indexOf"](this._availableNames, name) >= 0; }; LegendModel.prototype.getOrient = function () { return this.get('orient') === 'vertical' ? { index: 1, name: 'vertical' } : { index: 0, name: 'horizontal' }; }; LegendModel.type = 'legend.plain'; LegendModel.dependencies = ['series']; LegendModel.defaultOption = { // zlevel: 0, z: 4, show: true, orient: 'horizontal', left: 'center', // right: 'center', top: 0, // bottom: null, align: 'auto', backgroundColor: 'rgba(0,0,0,0)', borderColor: '#ccc', borderRadius: 0, borderWidth: 0, padding: 5, itemGap: 10, itemWidth: 25, itemHeight: 14, symbolRotate: 'inherit', symbolKeepAspect: true, inactiveColor: '#ccc', inactiveBorderColor: '#ccc', inactiveBorderWidth: 'auto', itemStyle: { color: 'inherit', opacity: 'inherit', borderColor: 'inherit', borderWidth: 'auto', borderCap: 'inherit', borderJoin: 'inherit', borderDashOffset: 'inherit', borderMiterLimit: 'inherit' }, lineStyle: { width: 'auto', color: 'inherit', inactiveColor: '#ccc', inactiveWidth: 2, opacity: 'inherit', type: 'inherit', cap: 'inherit', join: 'inherit', dashOffset: 'inherit', miterLimit: 'inherit' }, textStyle: { color: '#333' }, selectedMode: true, selector: false, selectorLabel: { show: true, borderRadius: 10, padding: [3, 5, 3, 5], fontSize: 12, fontFamily: 'sans-serif', color: '#666', borderWidth: 1, borderColor: '#666' }, emphasis: { selectorLabel: { show: true, color: '#eee', backgroundColor: '#666' } }, selectorPosition: 'auto', selectorItemGap: 7, selectorButtonGap: 10, tooltip: { show: false } }; return LegendModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"]); /* harmony default export */ __webpack_exports__["default"] = (LegendModel); /***/ }), /***/ "./node_modules/echarts/lib/component/legend/LegendView.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/component/legend/LegendView.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/tool/color.js */ "./node_modules/zrender/lib/tool/color.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _helper_listComponent_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helper/listComponent.js */ "./node_modules/echarts/lib/component/helper/listComponent.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var _util_decal_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/decal.js */ "./node_modules/echarts/lib/util/decal.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var curry = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"]; var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"]; var Group = _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Group"]; var LegendView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LegendView, _super); function LegendView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = LegendView.type; _this.newlineDisabled = false; return _this; } LegendView.prototype.init = function () { this.group.add(this._contentGroup = new Group()); this.group.add(this._selectorGroup = new Group()); this._isFirstRender = true; }; /** * @protected */ LegendView.prototype.getContentGroup = function () { return this._contentGroup; }; /** * @protected */ LegendView.prototype.getSelectorGroup = function () { return this._selectorGroup; }; /** * @override */ LegendView.prototype.render = function (legendModel, ecModel, api) { var isFirstRender = this._isFirstRender; this._isFirstRender = false; this.resetInner(); if (!legendModel.get('show', true)) { return; } var itemAlign = legendModel.get('align'); var orient = legendModel.get('orient'); if (!itemAlign || itemAlign === 'auto') { itemAlign = legendModel.get('left') === 'right' && orient === 'vertical' ? 'right' : 'left'; } // selector has been normalized to an array in model var selector = legendModel.get('selector', true); var selectorPosition = legendModel.get('selectorPosition', true); if (selector && (!selectorPosition || selectorPosition === 'auto')) { selectorPosition = orient === 'horizontal' ? 'end' : 'start'; } this.renderInner(itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition); // Perform layout. var positionInfo = legendModel.getBoxLayoutParams(); var viewportSize = { width: api.getWidth(), height: api.getHeight() }; var padding = legendModel.get('padding'); var maxSize = _util_layout_js__WEBPACK_IMPORTED_MODULE_7__["getLayoutRect"](positionInfo, viewportSize, padding); var mainRect = this.layoutInner(legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition); // Place mainGroup, based on the calculated `mainRect`. var layoutRect = _util_layout_js__WEBPACK_IMPORTED_MODULE_7__["getLayoutRect"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]({ width: mainRect.width, height: mainRect.height }, positionInfo), viewportSize, padding); this.group.x = layoutRect.x - mainRect.x; this.group.y = layoutRect.y - mainRect.y; this.group.markRedraw(); // Render background after group is layout. this.group.add(this._backgroundEl = Object(_helper_listComponent_js__WEBPACK_IMPORTED_MODULE_6__["makeBackground"])(mainRect, legendModel)); }; LegendView.prototype.resetInner = function () { this.getContentGroup().removeAll(); this._backgroundEl && this.group.remove(this._backgroundEl); this.getSelectorGroup().removeAll(); }; LegendView.prototype.renderInner = function (itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition) { var contentGroup = this.getContentGroup(); var legendDrawnMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"](); var selectMode = legendModel.get('selectedMode'); var excludeSeriesId = []; ecModel.eachRawSeries(function (seriesModel) { !seriesModel.get('legendHoverLink') && excludeSeriesId.push(seriesModel.id); }); each(legendModel.getData(), function (legendItemModel, dataIndex) { var name = legendItemModel.get('name'); // Use empty string or \n as a newline string if (!this.newlineDisabled && (name === '' || name === '\n')) { var g = new Group(); // @ts-ignore g.newline = true; contentGroup.add(g); return; } // Representitive series. var seriesModel = ecModel.getSeriesByName(name)[0]; if (legendDrawnMap.get(name)) { // Have been drawn return; } // Legend to control series. if (seriesModel) { var data = seriesModel.getData(); var lineVisualStyle = data.getVisual('legendLineStyle') || {}; var legendIcon = data.getVisual('legendIcon'); /** * `data.getVisual('style')` may be the color from the register * in series. For example, for line series, */ var style = data.getVisual('style'); var itemGroup = this._createItem(seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, lineVisualStyle, style, legendIcon, selectMode, api); itemGroup.on('click', curry(dispatchSelectAction, name, null, api, excludeSeriesId)).on('mouseover', curry(dispatchHighlightAction, seriesModel.name, null, api, excludeSeriesId)).on('mouseout', curry(dispatchDownplayAction, seriesModel.name, null, api, excludeSeriesId)); if (ecModel.ssr) { itemGroup.eachChild(function (child) { var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_11__["getECData"])(child); ecData.seriesIndex = seriesModel.seriesIndex; ecData.dataIndex = dataIndex; ecData.ssrType = 'legend'; }); } legendDrawnMap.set(name, true); } else { // Legend to control data. In pie and funnel. ecModel.eachRawSeries(function (seriesModel) { // In case multiple series has same data name if (legendDrawnMap.get(name)) { return; } if (seriesModel.legendVisualProvider) { var provider = seriesModel.legendVisualProvider; if (!provider.containName(name)) { return; } var idx = provider.indexOfName(name); var style = provider.getItemVisual(idx, 'style'); var legendIcon = provider.getItemVisual(idx, 'legendIcon'); var colorArr = Object(zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_2__["parse"])(style.fill); // Color may be set to transparent in visualMap when data is out of range. // Do not show nothing. if (colorArr && colorArr[3] === 0) { colorArr[3] = 0.2; // TODO color is set to 0, 0, 0, 0. Should show correct RGBA style = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"]({}, style), { fill: Object(zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_2__["stringify"])(colorArr, 'rgba') }); } var itemGroup = this._createItem(seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, {}, style, legendIcon, selectMode, api); // FIXME: consider different series has items with the same name. itemGroup.on('click', curry(dispatchSelectAction, null, name, api, excludeSeriesId)) // Should not specify the series name, consider legend controls // more than one pie series. .on('mouseover', curry(dispatchHighlightAction, null, name, api, excludeSeriesId)).on('mouseout', curry(dispatchDownplayAction, null, name, api, excludeSeriesId)); if (ecModel.ssr) { itemGroup.eachChild(function (child) { var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_11__["getECData"])(child); ecData.seriesIndex = seriesModel.seriesIndex; ecData.dataIndex = dataIndex; ecData.ssrType = 'legend'; }); } legendDrawnMap.set(name, true); } }, this); } if (true) { if (!legendDrawnMap.get(name)) { console.warn(name + ' series not exists. Legend data should be same with series name or data name.'); } } }, this); if (selector) { this._createSelector(selector, legendModel, api, orient, selectorPosition); } }; LegendView.prototype._createSelector = function (selector, legendModel, api, orient, selectorPosition) { var selectorGroup = this.getSelectorGroup(); each(selector, function createSelectorButton(selectorItem) { var type = selectorItem.type; var labelText = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Text"]({ style: { x: 0, y: 0, align: 'center', verticalAlign: 'middle' }, onclick: function () { api.dispatchAction({ type: type === 'all' ? 'legendAllSelect' : 'legendInverseSelect', legendId: legendModel.id }); } }); selectorGroup.add(labelText); var labelModel = legendModel.getModel('selectorLabel'); var emphasisLabelModel = legendModel.getModel(['emphasis', 'selectorLabel']); Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_5__["setLabelStyle"])(labelText, { normal: labelModel, emphasis: emphasisLabelModel }, { defaultText: selectorItem.title }); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["enableHoverEmphasis"])(labelText); }); }; LegendView.prototype._createItem = function (seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, lineVisualStyle, itemVisualStyle, legendIcon, selectMode, api) { var drawType = seriesModel.visualDrawType; var itemWidth = legendModel.get('itemWidth'); var itemHeight = legendModel.get('itemHeight'); var isSelected = legendModel.isSelected(name); var iconRotate = legendItemModel.get('symbolRotate'); var symbolKeepAspect = legendItemModel.get('symbolKeepAspect'); var legendIconType = legendItemModel.get('icon'); legendIcon = legendIconType || legendIcon || 'roundRect'; var style = getLegendStyle(legendIcon, legendItemModel, lineVisualStyle, itemVisualStyle, drawType, isSelected, api); var itemGroup = new Group(); var textStyleModel = legendItemModel.getModel('textStyle'); if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"](seriesModel.getLegendIcon) && (!legendIconType || legendIconType === 'inherit')) { // Series has specific way to define legend icon itemGroup.add(seriesModel.getLegendIcon({ itemWidth: itemWidth, itemHeight: itemHeight, icon: legendIcon, iconRotate: iconRotate, itemStyle: style.itemStyle, lineStyle: style.lineStyle, symbolKeepAspect: symbolKeepAspect })); } else { // Use default legend icon policy for most series var rotate = legendIconType === 'inherit' && seriesModel.getData().getVisual('symbol') ? iconRotate === 'inherit' ? seriesModel.getData().getVisual('symbolRotate') : iconRotate : 0; // No rotation for no icon itemGroup.add(getDefaultLegendIcon({ itemWidth: itemWidth, itemHeight: itemHeight, icon: legendIcon, iconRotate: rotate, itemStyle: style.itemStyle, lineStyle: style.lineStyle, symbolKeepAspect: symbolKeepAspect })); } var textX = itemAlign === 'left' ? itemWidth + 5 : -5; var textAlign = itemAlign; var formatter = legendModel.get('formatter'); var content = name; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"](formatter) && formatter) { content = formatter.replace('{name}', name != null ? name : ''); } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"](formatter)) { content = formatter(name); } var textColor = isSelected ? textStyleModel.getTextColor() : legendItemModel.get('inactiveColor'); itemGroup.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Text"]({ style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_5__["createTextStyle"])(textStyleModel, { text: content, x: textX, y: itemHeight / 2, fill: textColor, align: textAlign, verticalAlign: 'middle' }, { inheritColor: textColor }) })); // Add a invisible rect to increase the area of mouse hover var hitRect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Rect"]({ shape: itemGroup.getBoundingRect(), style: { // Cannot use 'invisible' because SVG SSR will miss the node fill: 'transparent' } }); var tooltipModel = legendItemModel.getModel('tooltip'); if (tooltipModel.get('show')) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["setTooltipConfig"]({ el: hitRect, componentModel: legendModel, itemName: name, itemTooltipOption: tooltipModel.option }); } itemGroup.add(hitRect); itemGroup.eachChild(function (child) { child.silent = true; }); hitRect.silent = !selectMode; this.getContentGroup().add(itemGroup); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_4__["enableHoverEmphasis"])(itemGroup); // @ts-ignore itemGroup.__legendDataIndex = dataIndex; return itemGroup; }; LegendView.prototype.layoutInner = function (legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition) { var contentGroup = this.getContentGroup(); var selectorGroup = this.getSelectorGroup(); // Place items in contentGroup. _util_layout_js__WEBPACK_IMPORTED_MODULE_7__["box"](legendModel.get('orient'), contentGroup, legendModel.get('itemGap'), maxSize.width, maxSize.height); var contentRect = contentGroup.getBoundingRect(); var contentPos = [-contentRect.x, -contentRect.y]; selectorGroup.markRedraw(); contentGroup.markRedraw(); if (selector) { // Place buttons in selectorGroup _util_layout_js__WEBPACK_IMPORTED_MODULE_7__["box"]( // Buttons in selectorGroup always layout horizontally 'horizontal', selectorGroup, legendModel.get('selectorItemGap', true)); var selectorRect = selectorGroup.getBoundingRect(); var selectorPos = [-selectorRect.x, -selectorRect.y]; var selectorButtonGap = legendModel.get('selectorButtonGap', true); var orientIdx = legendModel.getOrient().index; var wh = orientIdx === 0 ? 'width' : 'height'; var hw = orientIdx === 0 ? 'height' : 'width'; var yx = orientIdx === 0 ? 'y' : 'x'; if (selectorPosition === 'end') { selectorPos[orientIdx] += contentRect[wh] + selectorButtonGap; } else { contentPos[orientIdx] += selectorRect[wh] + selectorButtonGap; } // Always align selector to content as 'middle' selectorPos[1 - orientIdx] += contentRect[hw] / 2 - selectorRect[hw] / 2; selectorGroup.x = selectorPos[0]; selectorGroup.y = selectorPos[1]; contentGroup.x = contentPos[0]; contentGroup.y = contentPos[1]; var mainRect = { x: 0, y: 0 }; mainRect[wh] = contentRect[wh] + selectorButtonGap + selectorRect[wh]; mainRect[hw] = Math.max(contentRect[hw], selectorRect[hw]); mainRect[yx] = Math.min(0, selectorRect[yx] + selectorPos[1 - orientIdx]); return mainRect; } else { contentGroup.x = contentPos[0]; contentGroup.y = contentPos[1]; return this.group.getBoundingRect(); } }; /** * @protected */ LegendView.prototype.remove = function () { this.getContentGroup().removeAll(); this._isFirstRender = true; }; LegendView.type = 'legend.plain'; return LegendView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_8__["default"]); function getLegendStyle(iconType, legendItemModel, lineVisualStyle, itemVisualStyle, drawType, isSelected, api) { /** * Use series style if is inherit; * elsewise, use legend style */ function handleCommonProps(style, visualStyle) { // If lineStyle.width is 'auto', it is set to be 2 if series has border if (style.lineWidth === 'auto') { style.lineWidth = visualStyle.lineWidth > 0 ? 2 : 0; } each(style, function (propVal, propName) { style[propName] === 'inherit' && (style[propName] = visualStyle[propName]); }); } // itemStyle var itemStyleModel = legendItemModel.getModel('itemStyle'); var itemStyle = itemStyleModel.getItemStyle(); var iconBrushType = iconType.lastIndexOf('empty', 0) === 0 ? 'fill' : 'stroke'; var decalStyle = itemStyleModel.getShallow('decal'); itemStyle.decal = !decalStyle || decalStyle === 'inherit' ? itemVisualStyle.decal : Object(_util_decal_js__WEBPACK_IMPORTED_MODULE_10__["createOrUpdatePatternFromDecal"])(decalStyle, api); if (itemStyle.fill === 'inherit') { /** * Series with visualDrawType as 'stroke' should have * series stroke as legend fill */ itemStyle.fill = itemVisualStyle[drawType]; } if (itemStyle.stroke === 'inherit') { /** * icon type with "emptyXXX" should use fill color * in visual style */ itemStyle.stroke = itemVisualStyle[iconBrushType]; } if (itemStyle.opacity === 'inherit') { /** * Use lineStyle.opacity if drawType is stroke */ itemStyle.opacity = (drawType === 'fill' ? itemVisualStyle : lineVisualStyle).opacity; } handleCommonProps(itemStyle, itemVisualStyle); // lineStyle var legendLineModel = legendItemModel.getModel('lineStyle'); var lineStyle = legendLineModel.getLineStyle(); handleCommonProps(lineStyle, lineVisualStyle); // Fix auto color to real color itemStyle.fill === 'auto' && (itemStyle.fill = itemVisualStyle.fill); itemStyle.stroke === 'auto' && (itemStyle.stroke = itemVisualStyle.fill); lineStyle.stroke === 'auto' && (lineStyle.stroke = itemVisualStyle.fill); if (!isSelected) { var borderWidth = legendItemModel.get('inactiveBorderWidth'); /** * Since stroke is set to be inactiveBorderColor, it may occur that * there is no border in series but border in legend, so we need to * use border only when series has border if is set to be auto */ var visualHasBorder = itemStyle[iconBrushType]; itemStyle.lineWidth = borderWidth === 'auto' ? itemVisualStyle.lineWidth > 0 && visualHasBorder ? 2 : 0 : itemStyle.lineWidth; itemStyle.fill = legendItemModel.get('inactiveColor'); itemStyle.stroke = legendItemModel.get('inactiveBorderColor'); lineStyle.stroke = legendLineModel.get('inactiveColor'); lineStyle.lineWidth = legendLineModel.get('inactiveWidth'); } return { itemStyle: itemStyle, lineStyle: lineStyle }; } function getDefaultLegendIcon(opt) { var symboType = opt.icon || 'roundRect'; var icon = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_9__["createSymbol"])(symboType, 0, 0, opt.itemWidth, opt.itemHeight, opt.itemStyle.fill, opt.symbolKeepAspect); icon.setStyle(opt.itemStyle); icon.rotation = (opt.iconRotate || 0) * Math.PI / 180; icon.setOrigin([opt.itemWidth / 2, opt.itemHeight / 2]); if (symboType.indexOf('empty') > -1) { icon.style.stroke = icon.style.fill; icon.style.fill = '#fff'; icon.style.lineWidth = 2; } return icon; } function dispatchSelectAction(seriesName, dataName, api, excludeSeriesId) { // downplay before unselect dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId); api.dispatchAction({ type: 'legendToggleSelect', name: seriesName != null ? seriesName : dataName }); // highlight after select // TODO highlight immediately may cause animation loss. dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId); } function isUseHoverLayer(api) { var list = api.getZr().storage.getDisplayList(); var emphasisState; var i = 0; var len = list.length; while (i < len && !(emphasisState = list[i].states.emphasis)) { i++; } return emphasisState && emphasisState.hoverLayer; } function dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId) { // If element hover will move to a hoverLayer. if (!isUseHoverLayer(api)) { api.dispatchAction({ type: 'highlight', seriesName: seriesName, name: dataName, excludeSeriesId: excludeSeriesId }); } } function dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId) { // If element hover will move to a hoverLayer. if (!isUseHoverLayer(api)) { api.dispatchAction({ type: 'downplay', seriesName: seriesName, name: dataName, excludeSeriesId: excludeSeriesId }); } } /* harmony default export */ __webpack_exports__["default"] = (LegendView); /***/ }), /***/ "./node_modules/echarts/lib/component/legend/ScrollableLegendModel.js": /*!****************************************************************************!*\ !*** ./node_modules/echarts/lib/component/legend/ScrollableLegendModel.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _LegendModel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LegendModel.js */ "./node_modules/echarts/lib/component/legend/LegendModel.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ScrollableLegendModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ScrollableLegendModel, _super); function ScrollableLegendModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ScrollableLegendModel.type; return _this; } /** * @param {number} scrollDataIndex */ ScrollableLegendModel.prototype.setScrollDataIndex = function (scrollDataIndex) { this.option.scrollDataIndex = scrollDataIndex; }; ScrollableLegendModel.prototype.init = function (option, parentModel, ecModel) { var inputPositionParams = Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_2__["getLayoutParams"])(option); _super.prototype.init.call(this, option, parentModel, ecModel); mergeAndNormalizeLayoutParams(this, option, inputPositionParams); }; /** * @override */ ScrollableLegendModel.prototype.mergeOption = function (option, ecModel) { _super.prototype.mergeOption.call(this, option, ecModel); mergeAndNormalizeLayoutParams(this, this.option, option); }; ScrollableLegendModel.type = 'legend.scroll'; ScrollableLegendModel.defaultOption = Object(_util_component_js__WEBPACK_IMPORTED_MODULE_3__["inheritDefaultOption"])(_LegendModel_js__WEBPACK_IMPORTED_MODULE_1__["default"].defaultOption, { scrollDataIndex: 0, pageButtonItemGap: 5, pageButtonGap: null, pageButtonPosition: 'end', pageFormatter: '{current}/{total}', pageIcons: { horizontal: ['M0,0L12,-10L12,10z', 'M0,0L-12,-10L-12,10z'], vertical: ['M0,0L20,0L10,-20z', 'M0,0L20,0L10,20z'] }, pageIconColor: '#2f4554', pageIconInactiveColor: '#aaa', pageIconSize: 15, pageTextStyle: { color: '#333' }, animationDurationUpdate: 800 }); return ScrollableLegendModel; }(_LegendModel_js__WEBPACK_IMPORTED_MODULE_1__["default"]); ; // Do not `ignoreSize` to enable setting {left: 10, right: 10}. function mergeAndNormalizeLayoutParams(legendModel, target, raw) { var orient = legendModel.getOrient(); var ignoreSize = [1, 1]; ignoreSize[orient.index] = 0; Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_2__["mergeLayoutParam"])(target, raw, { type: 'box', ignoreSize: !!ignoreSize }); } /* harmony default export */ __webpack_exports__["default"] = (ScrollableLegendModel); /***/ }), /***/ "./node_modules/echarts/lib/component/legend/ScrollableLegendView.js": /*!***************************************************************************!*\ !*** ./node_modules/echarts/lib/component/legend/ScrollableLegendView.js ***! \***************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _LegendView_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LegendView.js */ "./node_modules/echarts/lib/component/legend/LegendView.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Separate legend and scrollable legend to reduce package size. */ var Group = _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Group"]; var WH = ['width', 'height']; var XY = ['x', 'y']; var ScrollableLegendView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ScrollableLegendView, _super); function ScrollableLegendView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ScrollableLegendView.type; _this.newlineDisabled = true; _this._currentIndex = 0; return _this; } ScrollableLegendView.prototype.init = function () { _super.prototype.init.call(this); this.group.add(this._containerGroup = new Group()); this._containerGroup.add(this.getContentGroup()); this.group.add(this._controllerGroup = new Group()); }; /** * @override */ ScrollableLegendView.prototype.resetInner = function () { _super.prototype.resetInner.call(this); this._controllerGroup.removeAll(); this._containerGroup.removeClipPath(); this._containerGroup.__rectSize = null; }; /** * @override */ ScrollableLegendView.prototype.renderInner = function (itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition) { var self = this; // Render content items. _super.prototype.renderInner.call(this, itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition); var controllerGroup = this._controllerGroup; // FIXME: support be 'auto' adapt to size number text length, // e.g., '3/12345' should not overlap with the control arrow button. var pageIconSize = legendModel.get('pageIconSize', true); var pageIconSizeArr = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](pageIconSize) ? pageIconSize : [pageIconSize, pageIconSize]; createPageButton('pagePrev', 0); var pageTextStyleModel = legendModel.getModel('pageTextStyle'); controllerGroup.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"]({ name: 'pageText', style: { // Placeholder to calculate a proper layout. text: 'xx/xx', fill: pageTextStyleModel.getTextColor(), font: pageTextStyleModel.getFont(), verticalAlign: 'middle', align: 'center' }, silent: true })); createPageButton('pageNext', 1); function createPageButton(name, iconIdx) { var pageDataIndexName = name + 'DataIndex'; var icon = _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["createIcon"](legendModel.get('pageIcons', true)[legendModel.getOrient().name][iconIdx], { // Buttons will be created in each render, so we do not need // to worry about avoiding using legendModel kept in scope. onclick: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](self._pageGo, self, pageDataIndexName, legendModel, api) }, { x: -pageIconSizeArr[0] / 2, y: -pageIconSizeArr[1] / 2, width: pageIconSizeArr[0], height: pageIconSizeArr[1] }); icon.name = name; controllerGroup.add(icon); } }; /** * @override */ ScrollableLegendView.prototype.layoutInner = function (legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition) { var selectorGroup = this.getSelectorGroup(); var orientIdx = legendModel.getOrient().index; var wh = WH[orientIdx]; var xy = XY[orientIdx]; var hw = WH[1 - orientIdx]; var yx = XY[1 - orientIdx]; selector && _util_layout_js__WEBPACK_IMPORTED_MODULE_3__["box"]( // Buttons in selectorGroup always layout horizontally 'horizontal', selectorGroup, legendModel.get('selectorItemGap', true)); var selectorButtonGap = legendModel.get('selectorButtonGap', true); var selectorRect = selectorGroup.getBoundingRect(); var selectorPos = [-selectorRect.x, -selectorRect.y]; var processMaxSize = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"](maxSize); selector && (processMaxSize[wh] = maxSize[wh] - selectorRect[wh] - selectorButtonGap); var mainRect = this._layoutContentAndController(legendModel, isFirstRender, processMaxSize, orientIdx, wh, hw, yx, xy); if (selector) { if (selectorPosition === 'end') { selectorPos[orientIdx] += mainRect[wh] + selectorButtonGap; } else { var offset = selectorRect[wh] + selectorButtonGap; selectorPos[orientIdx] -= offset; mainRect[xy] -= offset; } mainRect[wh] += selectorRect[wh] + selectorButtonGap; selectorPos[1 - orientIdx] += mainRect[yx] + mainRect[hw] / 2 - selectorRect[hw] / 2; mainRect[hw] = Math.max(mainRect[hw], selectorRect[hw]); mainRect[yx] = Math.min(mainRect[yx], selectorRect[yx] + selectorPos[1 - orientIdx]); selectorGroup.x = selectorPos[0]; selectorGroup.y = selectorPos[1]; selectorGroup.markRedraw(); } return mainRect; }; ScrollableLegendView.prototype._layoutContentAndController = function (legendModel, isFirstRender, maxSize, orientIdx, wh, hw, yx, xy) { var contentGroup = this.getContentGroup(); var containerGroup = this._containerGroup; var controllerGroup = this._controllerGroup; // Place items in contentGroup. _util_layout_js__WEBPACK_IMPORTED_MODULE_3__["box"](legendModel.get('orient'), contentGroup, legendModel.get('itemGap'), !orientIdx ? null : maxSize.width, orientIdx ? null : maxSize.height); _util_layout_js__WEBPACK_IMPORTED_MODULE_3__["box"]( // Buttons in controller are layout always horizontally. 'horizontal', controllerGroup, legendModel.get('pageButtonItemGap', true)); var contentRect = contentGroup.getBoundingRect(); var controllerRect = controllerGroup.getBoundingRect(); var showController = this._showController = contentRect[wh] > maxSize[wh]; // In case that the inner elements of contentGroup layout do not based on [0, 0] var contentPos = [-contentRect.x, -contentRect.y]; // Remain contentPos when scroll animation perfroming. // If first rendering, `contentGroup.position` is [0, 0], which // does not make sense and may cause unexepcted animation if adopted. if (!isFirstRender) { contentPos[orientIdx] = contentGroup[xy]; } // Layout container group based on 0. var containerPos = [0, 0]; var controllerPos = [-controllerRect.x, -controllerRect.y]; var pageButtonGap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"](legendModel.get('pageButtonGap', true), legendModel.get('itemGap', true)); // Place containerGroup and controllerGroup and contentGroup. if (showController) { var pageButtonPosition = legendModel.get('pageButtonPosition', true); // controller is on the right / bottom. if (pageButtonPosition === 'end') { controllerPos[orientIdx] += maxSize[wh] - controllerRect[wh]; } // controller is on the left / top. else { containerPos[orientIdx] += controllerRect[wh] + pageButtonGap; } } // Always align controller to content as 'middle'. controllerPos[1 - orientIdx] += contentRect[hw] / 2 - controllerRect[hw] / 2; contentGroup.setPosition(contentPos); containerGroup.setPosition(containerPos); controllerGroup.setPosition(controllerPos); // Calculate `mainRect` and set `clipPath`. // mainRect should not be calculated by `this.group.getBoundingRect()` // for sake of the overflow. var mainRect = { x: 0, y: 0 }; // Consider content may be overflow (should be clipped). mainRect[wh] = showController ? maxSize[wh] : contentRect[wh]; mainRect[hw] = Math.max(contentRect[hw], controllerRect[hw]); // `containerRect[yx] + containerPos[1 - orientIdx]` is 0. mainRect[yx] = Math.min(0, controllerRect[yx] + controllerPos[1 - orientIdx]); containerGroup.__rectSize = maxSize[wh]; if (showController) { var clipShape = { x: 0, y: 0 }; clipShape[wh] = Math.max(maxSize[wh] - controllerRect[wh] - pageButtonGap, 0); clipShape[hw] = mainRect[hw]; containerGroup.setClipPath(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Rect"]({ shape: clipShape })); // Consider content may be larger than container, container rect // can not be obtained from `containerGroup.getBoundingRect()`. containerGroup.__rectSize = clipShape[wh]; } else { // Do not remove or ignore controller. Keep them set as placeholders. controllerGroup.eachChild(function (child) { child.attr({ invisible: true, silent: true }); }); } // Content translate animation. var pageInfo = this._getPageInfo(legendModel); pageInfo.pageIndex != null && _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["updateProps"](contentGroup, { x: pageInfo.contentPosition[0], y: pageInfo.contentPosition[1] }, // When switch from "show controller" to "not show controller", view should be // updated immediately without animation, otherwise causes weird effect. showController ? legendModel : null); this._updatePageInfoView(legendModel, pageInfo); return mainRect; }; ScrollableLegendView.prototype._pageGo = function (to, legendModel, api) { var scrollDataIndex = this._getPageInfo(legendModel)[to]; scrollDataIndex != null && api.dispatchAction({ type: 'legendScroll', scrollDataIndex: scrollDataIndex, legendId: legendModel.id }); }; ScrollableLegendView.prototype._updatePageInfoView = function (legendModel, pageInfo) { var controllerGroup = this._controllerGroup; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](['pagePrev', 'pageNext'], function (name) { var key = name + 'DataIndex'; var canJump = pageInfo[key] != null; var icon = controllerGroup.childOfName(name); if (icon) { icon.setStyle('fill', canJump ? legendModel.get('pageIconColor', true) : legendModel.get('pageIconInactiveColor', true)); icon.cursor = canJump ? 'pointer' : 'default'; } }); var pageText = controllerGroup.childOfName('pageText'); var pageFormatter = legendModel.get('pageFormatter'); var pageIndex = pageInfo.pageIndex; var current = pageIndex != null ? pageIndex + 1 : 0; var total = pageInfo.pageCount; pageText && pageFormatter && pageText.setStyle('text', zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"](pageFormatter) ? pageFormatter.replace('{current}', current == null ? '' : current + '').replace('{total}', total == null ? '' : total + '') : pageFormatter({ current: current, total: total })); }; /** * contentPosition: Array., null when data item not found. * pageIndex: number, null when data item not found. * pageCount: number, always be a number, can be 0. * pagePrevDataIndex: number, null when no previous page. * pageNextDataIndex: number, null when no next page. * } */ ScrollableLegendView.prototype._getPageInfo = function (legendModel) { var scrollDataIndex = legendModel.get('scrollDataIndex', true); var contentGroup = this.getContentGroup(); var containerRectSize = this._containerGroup.__rectSize; var orientIdx = legendModel.getOrient().index; var wh = WH[orientIdx]; var xy = XY[orientIdx]; var targetItemIndex = this._findTargetItemIndex(scrollDataIndex); var children = contentGroup.children(); var targetItem = children[targetItemIndex]; var itemCount = children.length; var pCount = !itemCount ? 0 : 1; var result = { contentPosition: [contentGroup.x, contentGroup.y], pageCount: pCount, pageIndex: pCount - 1, pagePrevDataIndex: null, pageNextDataIndex: null }; if (!targetItem) { return result; } var targetItemInfo = getItemInfo(targetItem); result.contentPosition[orientIdx] = -targetItemInfo.s; // Strategy: // (1) Always align based on the left/top most item. // (2) It is user-friendly that the last item shown in the // current window is shown at the begining of next window. // Otherwise if half of the last item is cut by the window, // it will have no chance to display entirely. // (3) Consider that item size probably be different, we // have calculate pageIndex by size rather than item index, // and we can not get page index directly by division. // (4) The window is to narrow to contain more than // one item, we should make sure that the page can be fliped. for (var i = targetItemIndex + 1, winStartItemInfo = targetItemInfo, winEndItemInfo = targetItemInfo, currItemInfo = null; i <= itemCount; ++i) { currItemInfo = getItemInfo(children[i]); if ( // Half of the last item is out of the window. !currItemInfo && winEndItemInfo.e > winStartItemInfo.s + containerRectSize // If the current item does not intersect with the window, the new page // can be started at the current item or the last item. || currItemInfo && !intersect(currItemInfo, winStartItemInfo.s)) { if (winEndItemInfo.i > winStartItemInfo.i) { winStartItemInfo = winEndItemInfo; } else { // e.g., when page size is smaller than item size. winStartItemInfo = currItemInfo; } if (winStartItemInfo) { if (result.pageNextDataIndex == null) { result.pageNextDataIndex = winStartItemInfo.i; } ++result.pageCount; } } winEndItemInfo = currItemInfo; } for (var i = targetItemIndex - 1, winStartItemInfo = targetItemInfo, winEndItemInfo = targetItemInfo, currItemInfo = null; i >= -1; --i) { currItemInfo = getItemInfo(children[i]); if ( // If the the end item does not intersect with the window started // from the current item, a page can be settled. (!currItemInfo || !intersect(winEndItemInfo, currItemInfo.s) // e.g., when page size is smaller than item size. ) && winStartItemInfo.i < winEndItemInfo.i) { winEndItemInfo = winStartItemInfo; if (result.pagePrevDataIndex == null) { result.pagePrevDataIndex = winStartItemInfo.i; } ++result.pageCount; ++result.pageIndex; } winStartItemInfo = currItemInfo; } return result; function getItemInfo(el) { if (el) { var itemRect = el.getBoundingRect(); var start = itemRect[xy] + el[xy]; return { s: start, e: start + itemRect[wh], i: el.__legendDataIndex }; } } function intersect(itemInfo, winStart) { return itemInfo.e >= winStart && itemInfo.s <= winStart + containerRectSize; } }; ScrollableLegendView.prototype._findTargetItemIndex = function (targetDataIndex) { if (!this._showController) { return 0; } var index; var contentGroup = this.getContentGroup(); var defaultIndex; contentGroup.eachChild(function (child, idx) { var legendDataIdx = child.__legendDataIndex; // FIXME // If the given targetDataIndex (from model) is illegal, // we use defaultIndex. But the index on the legend model and // action payload is still illegal. That case will not be // changed until some scenario requires. if (defaultIndex == null && legendDataIdx != null) { defaultIndex = idx; } if (legendDataIdx === targetDataIndex) { index = idx; } }); return index != null ? index : defaultIndex; }; ScrollableLegendView.type = 'legend.scroll'; return ScrollableLegendView; }(_LegendView_js__WEBPACK_IMPORTED_MODULE_4__["default"]); /* harmony default export */ __webpack_exports__["default"] = (ScrollableLegendView); /***/ }), /***/ "./node_modules/echarts/lib/component/legend/install.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/component/legend/install.js ***! \**************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _installLegendPlain_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./installLegendPlain.js */ "./node_modules/echarts/lib/component/legend/installLegendPlain.js"); /* harmony import */ var _installLegendScroll_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./installLegendScroll.js */ "./node_modules/echarts/lib/component/legend/installLegendScroll.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { Object(_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_installLegendPlain_js__WEBPACK_IMPORTED_MODULE_1__["install"]); Object(_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_installLegendScroll_js__WEBPACK_IMPORTED_MODULE_2__["install"]); } /***/ }), /***/ "./node_modules/echarts/lib/component/legend/installLegendPlain.js": /*!*************************************************************************!*\ !*** ./node_modules/echarts/lib/component/legend/installLegendPlain.js ***! \*************************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _LegendModel_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LegendModel.js */ "./node_modules/echarts/lib/component/legend/LegendModel.js"); /* harmony import */ var _LegendView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LegendView.js */ "./node_modules/echarts/lib/component/legend/LegendView.js"); /* harmony import */ var _legendFilter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./legendFilter.js */ "./node_modules/echarts/lib/component/legend/legendFilter.js"); /* harmony import */ var _legendAction_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./legendAction.js */ "./node_modules/echarts/lib/component/legend/legendAction.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerComponentModel(_LegendModel_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerComponentView(_LegendView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerProcessor(registers.PRIORITY.PROCESSOR.SERIES_FILTER, _legendFilter_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerSubTypeDefaulter('legend', function () { return 'plain'; }); Object(_legendAction_js__WEBPACK_IMPORTED_MODULE_3__["installLegendAction"])(registers); } /***/ }), /***/ "./node_modules/echarts/lib/component/legend/installLegendScroll.js": /*!**************************************************************************!*\ !*** ./node_modules/echarts/lib/component/legend/installLegendScroll.js ***! \**************************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _installLegendPlain_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./installLegendPlain.js */ "./node_modules/echarts/lib/component/legend/installLegendPlain.js"); /* harmony import */ var _ScrollableLegendModel_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ScrollableLegendModel.js */ "./node_modules/echarts/lib/component/legend/ScrollableLegendModel.js"); /* harmony import */ var _ScrollableLegendView_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ScrollableLegendView.js */ "./node_modules/echarts/lib/component/legend/ScrollableLegendView.js"); /* harmony import */ var _scrollableLegendAction_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scrollableLegendAction.js */ "./node_modules/echarts/lib/component/legend/scrollableLegendAction.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { Object(_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_installLegendPlain_js__WEBPACK_IMPORTED_MODULE_1__["install"]); registers.registerComponentModel(_ScrollableLegendModel_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerComponentView(_ScrollableLegendView_js__WEBPACK_IMPORTED_MODULE_3__["default"]); Object(_scrollableLegendAction_js__WEBPACK_IMPORTED_MODULE_4__["default"])(registers); } /***/ }), /***/ "./node_modules/echarts/lib/component/legend/legendAction.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/component/legend/legendAction.js ***! \*******************************************************************/ /*! exports provided: installLegendAction */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "installLegendAction", function() { return installLegendAction; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function legendSelectActionHandler(methodName, payload, ecModel) { var isAllSelect = methodName === 'allSelect' || methodName === 'inverseSelect'; var selectedMap = {}; var actionLegendIndices = []; ecModel.eachComponent({ mainType: 'legend', query: payload }, function (legendModel) { if (isAllSelect) { legendModel[methodName](); } else { legendModel[methodName](payload.name); } makeSelectedMap(legendModel, selectedMap); actionLegendIndices.push(legendModel.componentIndex); }); var allSelectedMap = {}; // make selectedMap from all legend components ecModel.eachComponent('legend', function (legendModel) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(selectedMap, function (isSelected, name) { // Force other legend has same selected status // Or the first is toggled to true and other are toggled to false // In the case one legend has some item unSelected in option. And if other legend // doesn't has the item, they will assume it is selected. legendModel[isSelected ? 'select' : 'unSelect'](name); }); makeSelectedMap(legendModel, allSelectedMap); }); // Return the event explicitly return isAllSelect ? { selected: allSelectedMap, // return legendIndex array to tell the developers which legends are allSelect / inverseSelect legendIndex: actionLegendIndices } : { name: payload.name, selected: allSelectedMap }; } function makeSelectedMap(legendModel, out) { var selectedMap = out || {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(legendModel.getData(), function (model) { var name = model.get('name'); // Wrap element if (name === '\n' || name === '') { return; } var isItemSelected = legendModel.isSelected(name); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(selectedMap, name)) { // Unselected if any legend is unselected selectedMap[name] = selectedMap[name] && isItemSelected; } else { selectedMap[name] = isItemSelected; } }); return selectedMap; } function installLegendAction(registers) { /** * @event legendToggleSelect * @type {Object} * @property {string} type 'legendToggleSelect' * @property {string} [from] * @property {string} name Series name or data item name */ registers.registerAction('legendToggleSelect', 'legendselectchanged', Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"])(legendSelectActionHandler, 'toggleSelected')); registers.registerAction('legendAllSelect', 'legendselectall', Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"])(legendSelectActionHandler, 'allSelect')); registers.registerAction('legendInverseSelect', 'legendinverseselect', Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"])(legendSelectActionHandler, 'inverseSelect')); /** * @event legendSelect * @type {Object} * @property {string} type 'legendSelect' * @property {string} name Series name or data item name */ registers.registerAction('legendSelect', 'legendselected', Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"])(legendSelectActionHandler, 'select')); /** * @event legendUnSelect * @type {Object} * @property {string} type 'legendUnSelect' * @property {string} name Series name or data item name */ registers.registerAction('legendUnSelect', 'legendunselected', Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"])(legendSelectActionHandler, 'unSelect')); } /***/ }), /***/ "./node_modules/echarts/lib/component/legend/legendFilter.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/component/legend/legendFilter.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return legendFilter; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function legendFilter(ecModel) { var legendModels = ecModel.findComponents({ mainType: 'legend' }); if (legendModels && legendModels.length) { ecModel.filterSeries(function (series) { // If in any legend component the status is not selected. // Because in legend series is assumed selected when it is not in the legend data. for (var i = 0; i < legendModels.length; i++) { if (!legendModels[i].isSelected(series.name)) { return false; } } return true; }); } } /***/ }), /***/ "./node_modules/echarts/lib/component/legend/scrollableLegendAction.js": /*!*****************************************************************************!*\ !*** ./node_modules/echarts/lib/component/legend/scrollableLegendAction.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return installScrollableLegendAction; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function installScrollableLegendAction(registers) { /** * @event legendScroll * @type {Object} * @property {string} type 'legendScroll' * @property {string} scrollDataIndex */ registers.registerAction('legendScroll', 'legendscroll', function (payload, ecModel) { var scrollDataIndex = payload.scrollDataIndex; scrollDataIndex != null && ecModel.eachComponent({ mainType: 'legend', subType: 'scroll', query: payload }, function (legendModel) { legendModel.setScrollDataIndex(scrollDataIndex); }); }); } /***/ }), /***/ "./node_modules/echarts/lib/component/marker/MarkAreaModel.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/component/marker/MarkAreaModel.js ***! \********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _MarkerModel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MarkerModel.js */ "./node_modules/echarts/lib/component/marker/MarkerModel.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var MarkAreaModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MarkAreaModel, _super); function MarkAreaModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = MarkAreaModel.type; return _this; } MarkAreaModel.prototype.createMarkerModelFromSeries = function (markerOpt, masterMarkerModel, ecModel) { return new MarkAreaModel(markerOpt, masterMarkerModel, ecModel); }; MarkAreaModel.type = 'markArea'; MarkAreaModel.defaultOption = { // zlevel: 0, // PENDING z: 1, tooltip: { trigger: 'item' }, // markArea should fixed on the coordinate system animation: false, label: { show: true, position: 'top' }, itemStyle: { // color and borderColor default to use color from series // color: 'auto' // borderColor: 'auto' borderWidth: 0 }, emphasis: { label: { show: true, position: 'top' } } }; return MarkAreaModel; }(_MarkerModel_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (MarkAreaModel); /***/ }), /***/ "./node_modules/echarts/lib/component/marker/MarkAreaView.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/component/marker/MarkAreaView.js ***! \*******************************************************************/ /*! exports provided: dimPermutations, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dimPermutations", function() { return dimPermutations; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/tool/color.js */ "./node_modules/zrender/lib/tool/color.js"); /* harmony import */ var _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../data/SeriesData.js */ "./node_modules/echarts/lib/data/SeriesData.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _markerHelper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./markerHelper.js */ "./node_modules/echarts/lib/component/marker/markerHelper.js"); /* harmony import */ var _MarkerView_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MarkerView.js */ "./node_modules/echarts/lib/component/marker/MarkerView.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _coord_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../coord/CoordinateSystem.js */ "./node_modules/echarts/lib/coord/CoordinateSystem.js"); /* harmony import */ var _MarkerModel_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./MarkerModel.js */ "./node_modules/echarts/lib/component/marker/MarkerModel.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _visual_helper_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../visual/helper.js */ "./node_modules/echarts/lib/visual/helper.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../data/helper/dataValueHelper.js */ "./node_modules/echarts/lib/data/helper/dataValueHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO Optimize on polar var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_11__["makeInner"])(); var markAreaTransform = function (seriesModel, coordSys, maModel, item) { // item may be null var item0 = item[0]; var item1 = item[1]; if (!item0 || !item1) { return; } var lt = _markerHelper_js__WEBPACK_IMPORTED_MODULE_6__["dataTransform"](seriesModel, item0); var rb = _markerHelper_js__WEBPACK_IMPORTED_MODULE_6__["dataTransform"](seriesModel, item1); // FIXME make sure lt is less than rb var ltCoord = lt.coord; var rbCoord = rb.coord; ltCoord[0] = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["retrieve"])(ltCoord[0], -Infinity); ltCoord[1] = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["retrieve"])(ltCoord[1], -Infinity); rbCoord[0] = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["retrieve"])(rbCoord[0], Infinity); rbCoord[1] = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["retrieve"])(rbCoord[1], Infinity); // Merge option into one var result = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["mergeAll"])([{}, lt, rb]); result.coord = [lt.coord, rb.coord]; result.x0 = lt.x; result.y0 = lt.y; result.x1 = rb.x; result.y1 = rb.y; return result; }; function isInfinity(val) { return !isNaN(val) && !isFinite(val); } // If a markArea has one dim function ifMarkAreaHasOnlyDim(dimIndex, fromCoord, toCoord, coordSys) { var otherDimIndex = 1 - dimIndex; return isInfinity(fromCoord[otherDimIndex]) && isInfinity(toCoord[otherDimIndex]); } function markAreaFilter(coordSys, item) { var fromCoord = item.coord[0]; var toCoord = item.coord[1]; var item0 = { coord: fromCoord, x: item.x0, y: item.y0 }; var item1 = { coord: toCoord, x: item.x1, y: item.y1 }; if (Object(_coord_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_9__["isCoordinateSystemType"])(coordSys, 'cartesian2d')) { // In case // { // markArea: { // data: [{ yAxis: 2 }] // } // } if (fromCoord && toCoord && (ifMarkAreaHasOnlyDim(1, fromCoord, toCoord, coordSys) || ifMarkAreaHasOnlyDim(0, fromCoord, toCoord, coordSys))) { return true; } // Directly returning true may also do the work, // because markArea will not be shown automatically // when it's not included in coordinate system. // But filtering ahead can avoid keeping rendering markArea // when there are too many of them. return _markerHelper_js__WEBPACK_IMPORTED_MODULE_6__["zoneFilter"](coordSys, item0, item1); } return _markerHelper_js__WEBPACK_IMPORTED_MODULE_6__["dataFilter"](coordSys, item0) || _markerHelper_js__WEBPACK_IMPORTED_MODULE_6__["dataFilter"](coordSys, item1); } // dims can be ['x0', 'y0'], ['x1', 'y1'], ['x0', 'y1'], ['x1', 'y0'] function getSingleMarkerEndPoint(data, idx, dims, seriesModel, api) { var coordSys = seriesModel.coordinateSystem; var itemModel = data.getItemModel(idx); var point; var xPx = _util_number_js__WEBPACK_IMPORTED_MODULE_3__["parsePercent"](itemModel.get(dims[0]), api.getWidth()); var yPx = _util_number_js__WEBPACK_IMPORTED_MODULE_3__["parsePercent"](itemModel.get(dims[1]), api.getHeight()); if (!isNaN(xPx) && !isNaN(yPx)) { point = [xPx, yPx]; } else { // Chart like bar may have there own marker positioning logic if (seriesModel.getMarkerPosition) { // Consider the case that user input the right-bottom point first // Pick the larger x and y as 'x1' and 'y1' var pointValue0 = data.getValues(['x0', 'y0'], idx); var pointValue1 = data.getValues(['x1', 'y1'], idx); var clampPointValue0 = coordSys.clampData(pointValue0); var clampPointValue1 = coordSys.clampData(pointValue1); var pointValue = []; if (dims[0] === 'x0') { pointValue[0] = clampPointValue0[0] > clampPointValue1[0] ? pointValue1[0] : pointValue0[0]; } else { pointValue[0] = clampPointValue0[0] > clampPointValue1[0] ? pointValue0[0] : pointValue1[0]; } if (dims[1] === 'y0') { pointValue[1] = clampPointValue0[1] > clampPointValue1[1] ? pointValue1[1] : pointValue0[1]; } else { pointValue[1] = clampPointValue0[1] > clampPointValue1[1] ? pointValue0[1] : pointValue1[1]; } // Use the getMarkerPosition point = seriesModel.getMarkerPosition(pointValue, dims, true); } else { var x = data.get(dims[0], idx); var y = data.get(dims[1], idx); var pt = [x, y]; coordSys.clampData && coordSys.clampData(pt, pt); point = coordSys.dataToPoint(pt, true); } if (Object(_coord_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_9__["isCoordinateSystemType"])(coordSys, 'cartesian2d')) { // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug var xAxis = coordSys.getAxis('x'); var yAxis = coordSys.getAxis('y'); var x = data.get(dims[0], idx); var y = data.get(dims[1], idx); if (isInfinity(x)) { point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[dims[0] === 'x0' ? 0 : 1]); } else if (isInfinity(y)) { point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[dims[1] === 'y0' ? 0 : 1]); } } // Use x, y if has any if (!isNaN(xPx)) { point[0] = xPx; } if (!isNaN(yPx)) { point[1] = yPx; } } return point; } var dimPermutations = [['x0', 'y0'], ['x1', 'y0'], ['x1', 'y1'], ['x0', 'y1']]; var MarkAreaView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MarkAreaView, _super); function MarkAreaView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = MarkAreaView.type; return _this; } MarkAreaView.prototype.updateTransform = function (markAreaModel, ecModel, api) { ecModel.eachSeries(function (seriesModel) { var maModel = _MarkerModel_js__WEBPACK_IMPORTED_MODULE_10__["default"].getMarkerModelFromSeries(seriesModel, 'markArea'); if (maModel) { var areaData_1 = maModel.getData(); areaData_1.each(function (idx) { var points = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["map"])(dimPermutations, function (dim) { return getSingleMarkerEndPoint(areaData_1, idx, dim, seriesModel, api); }); // Layout areaData_1.setItemLayout(idx, points); var el = areaData_1.getItemGraphicEl(idx); el.setShape('points', points); }); } }, this); }; MarkAreaView.prototype.renderSeries = function (seriesModel, maModel, ecModel, api) { var coordSys = seriesModel.coordinateSystem; var seriesId = seriesModel.id; var seriesData = seriesModel.getData(); var areaGroupMap = this.markerGroupMap; var polygonGroup = areaGroupMap.get(seriesId) || areaGroupMap.set(seriesId, { group: new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Group"]() }); this.group.add(polygonGroup.group); this.markKeep(polygonGroup); var areaData = createList(coordSys, seriesModel, maModel); // Line data for tooltip and formatter maModel.setData(areaData); // Update visual and layout of line areaData.each(function (idx) { // Layout var points = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["map"])(dimPermutations, function (dim) { return getSingleMarkerEndPoint(areaData, idx, dim, seriesModel, api); }); var xAxisScale = coordSys.getAxis('x').scale; var yAxisScale = coordSys.getAxis('y').scale; var xAxisExtent = xAxisScale.getExtent(); var yAxisExtent = yAxisScale.getExtent(); var xPointExtent = [xAxisScale.parse(areaData.get('x0', idx)), xAxisScale.parse(areaData.get('x1', idx))]; var yPointExtent = [yAxisScale.parse(areaData.get('y0', idx)), yAxisScale.parse(areaData.get('y1', idx))]; _util_number_js__WEBPACK_IMPORTED_MODULE_3__["asc"](xPointExtent); _util_number_js__WEBPACK_IMPORTED_MODULE_3__["asc"](yPointExtent); var overlapped = !(xAxisExtent[0] > xPointExtent[1] || xAxisExtent[1] < xPointExtent[0] || yAxisExtent[0] > yPointExtent[1] || yAxisExtent[1] < yPointExtent[0]); // If none of the area is inside coordSys, allClipped is set to be true // in layout so that label will not be displayed. See #12591 var allClipped = !overlapped; areaData.setItemLayout(idx, { points: points, allClipped: allClipped }); var style = areaData.getItemModel(idx).getModel('itemStyle').getItemStyle(); var color = Object(_visual_helper_js__WEBPACK_IMPORTED_MODULE_12__["getVisualFromData"])(seriesData, 'color'); if (!style.fill) { style.fill = color; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["isString"])(style.fill)) { style.fill = zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["modifyAlpha"](style.fill, 0.4); } } if (!style.stroke) { style.stroke = color; } // Visual areaData.setItemVisual(idx, 'style', style); }); areaData.diff(inner(polygonGroup).data).add(function (idx) { var layout = areaData.getItemLayout(idx); if (!layout.allClipped) { var polygon = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Polygon"]({ shape: { points: layout.points } }); areaData.setItemGraphicEl(idx, polygon); polygonGroup.group.add(polygon); } }).update(function (newIdx, oldIdx) { var polygon = inner(polygonGroup).data.getItemGraphicEl(oldIdx); var layout = areaData.getItemLayout(newIdx); if (!layout.allClipped) { if (polygon) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["updateProps"](polygon, { shape: { points: layout.points } }, maModel, newIdx); } else { polygon = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_4__["Polygon"]({ shape: { points: layout.points } }); } areaData.setItemGraphicEl(newIdx, polygon); polygonGroup.group.add(polygon); } else if (polygon) { polygonGroup.group.remove(polygon); } }).remove(function (idx) { var polygon = inner(polygonGroup).data.getItemGraphicEl(idx); polygonGroup.group.remove(polygon); }).execute(); areaData.eachItemGraphicEl(function (polygon, idx) { var itemModel = areaData.getItemModel(idx); var style = areaData.getItemVisual(idx, 'style'); polygon.useStyle(areaData.getItemVisual(idx, 'style')); Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_13__["setLabelStyle"])(polygon, Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_13__["getLabelStatesModels"])(itemModel), { labelFetcher: maModel, labelDataIndex: idx, defaultText: areaData.getName(idx) || '', inheritColor: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["isString"])(style.fill) ? zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["modifyAlpha"](style.fill, 1) : '#000' }); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_5__["setStatesStylesFromModel"])(polygon, itemModel); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_5__["toggleHoverEmphasis"])(polygon, null, null, itemModel.get(['emphasis', 'disabled'])); Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_14__["getECData"])(polygon).dataModel = maModel; }); inner(polygonGroup).data = areaData; polygonGroup.group.silent = maModel.get('silent') || seriesModel.get('silent'); }; MarkAreaView.type = 'markArea'; return MarkAreaView; }(_MarkerView_js__WEBPACK_IMPORTED_MODULE_7__["default"]); function createList(coordSys, seriesModel, maModel) { var areaData; var dataDims; var dims = ['x0', 'y0', 'x1', 'y1']; if (coordSys) { var coordDimsInfos_1 = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["map"])(coordSys && coordSys.dimensions, function (coordDim) { var data = seriesModel.getData(); var info = data.getDimensionInfo(data.mapDimension(coordDim)) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["extend"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["extend"])({}, info), { name: coordDim, // DON'T use ordinalMeta to parse and collect ordinal. ordinalMeta: null }); }); dataDims = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["map"])(dims, function (dim, idx) { return { name: dim, type: coordDimsInfos_1[idx % 2].type }; }); areaData = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_2__["default"](dataDims, maModel); } else { dataDims = [{ name: 'value', type: 'float' }]; areaData = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_2__["default"](dataDims, maModel); } var optData = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["map"])(maModel.get('data'), Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["curry"])(markAreaTransform, seriesModel, coordSys, maModel)); if (coordSys) { optData = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["filter"])(optData, Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__["curry"])(markAreaFilter, coordSys)); } var dimValueGetter = coordSys ? function (item, dimName, dataIndex, dimIndex) { // TODO should convert to ParsedValue? var rawVal = item.coord[Math.floor(dimIndex / 2)][dimIndex % 2]; return Object(_data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_15__["parseDataValue"])(rawVal, dataDims[dimIndex]); } : function (item, dimName, dataIndex, dimIndex) { return Object(_data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_15__["parseDataValue"])(item.value, dataDims[dimIndex]); }; areaData.initData(optData, null, dimValueGetter); areaData.hasItemOption = true; return areaData; } /* harmony default export */ __webpack_exports__["default"] = (MarkAreaView); /***/ }), /***/ "./node_modules/echarts/lib/component/marker/MarkLineModel.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/component/marker/MarkLineModel.js ***! \********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _MarkerModel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MarkerModel.js */ "./node_modules/echarts/lib/component/marker/MarkerModel.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var MarkLineModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MarkLineModel, _super); function MarkLineModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = MarkLineModel.type; return _this; } MarkLineModel.prototype.createMarkerModelFromSeries = function (markerOpt, masterMarkerModel, ecModel) { return new MarkLineModel(markerOpt, masterMarkerModel, ecModel); }; MarkLineModel.type = 'markLine'; MarkLineModel.defaultOption = { // zlevel: 0, z: 5, symbol: ['circle', 'arrow'], symbolSize: [8, 16], // symbolRotate: 0, symbolOffset: 0, precision: 2, tooltip: { trigger: 'item' }, label: { show: true, position: 'end', distance: 5 }, lineStyle: { type: 'dashed' }, emphasis: { label: { show: true }, lineStyle: { width: 3 } }, animationEasing: 'linear' }; return MarkLineModel; }(_MarkerModel_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (MarkLineModel); /***/ }), /***/ "./node_modules/echarts/lib/component/marker/MarkLineView.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/component/marker/MarkLineView.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../data/SeriesData.js */ "./node_modules/echarts/lib/data/SeriesData.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _markerHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./markerHelper.js */ "./node_modules/echarts/lib/component/marker/markerHelper.js"); /* harmony import */ var _chart_helper_LineDraw_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../chart/helper/LineDraw.js */ "./node_modules/echarts/lib/chart/helper/LineDraw.js"); /* harmony import */ var _MarkerView_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./MarkerView.js */ "./node_modules/echarts/lib/component/marker/MarkerView.js"); /* harmony import */ var _data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../data/helper/dataStackHelper.js */ "./node_modules/echarts/lib/data/helper/dataStackHelper.js"); /* harmony import */ var _coord_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../coord/CoordinateSystem.js */ "./node_modules/echarts/lib/coord/CoordinateSystem.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _MarkerModel_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./MarkerModel.js */ "./node_modules/echarts/lib/component/marker/MarkerModel.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _visual_helper_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../visual/helper.js */ "./node_modules/echarts/lib/visual/helper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_11__["makeInner"])(); var markLineTransform = function (seriesModel, coordSys, mlModel, item) { var data = seriesModel.getData(); var itemArray; if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["isArray"])(item)) { // Special type markLine like 'min', 'max', 'average', 'median' var mlType = item.type; if (mlType === 'min' || mlType === 'max' || mlType === 'average' || mlType === 'median' // In case // data: [{ // yAxis: 10 // }] || item.xAxis != null || item.yAxis != null) { var valueAxis = void 0; var value = void 0; if (item.yAxis != null || item.xAxis != null) { valueAxis = coordSys.getAxis(item.yAxis != null ? 'y' : 'x'); value = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["retrieve"])(item.yAxis, item.xAxis); } else { var axisInfo = _markerHelper_js__WEBPACK_IMPORTED_MODULE_3__["getAxisInfo"](item, data, coordSys, seriesModel); valueAxis = axisInfo.valueAxis; var valueDataDim = Object(_data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_6__["getStackedDimension"])(data, axisInfo.valueDataDim); value = _markerHelper_js__WEBPACK_IMPORTED_MODULE_3__["numCalculate"](data, valueDataDim, mlType); } var valueIndex = valueAxis.dim === 'x' ? 0 : 1; var baseIndex = 1 - valueIndex; // Normized to 2d data with start and end point var mlFrom = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["clone"])(item); var mlTo = { coord: [] }; mlFrom.type = null; mlFrom.coord = []; mlFrom.coord[baseIndex] = -Infinity; mlTo.coord[baseIndex] = Infinity; var precision = mlModel.get('precision'); if (precision >= 0 && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["isNumber"])(value)) { value = +value.toFixed(Math.min(precision, 20)); } mlFrom.coord[valueIndex] = mlTo.coord[valueIndex] = value; itemArray = [mlFrom, mlTo, { type: mlType, valueIndex: item.valueIndex, // Force to use the value of calculated value. value: value }]; } else { // Invalid data if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["logError"])('Invalid markLine data.'); } itemArray = []; } } else { itemArray = item; } var normalizedItem = [_markerHelper_js__WEBPACK_IMPORTED_MODULE_3__["dataTransform"](seriesModel, itemArray[0]), _markerHelper_js__WEBPACK_IMPORTED_MODULE_3__["dataTransform"](seriesModel, itemArray[1]), Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["extend"])({}, itemArray[2])]; // Avoid line data type is extended by from(to) data type normalizedItem[2].type = normalizedItem[2].type || null; // Merge from option and to option into line option Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["merge"])(normalizedItem[2], normalizedItem[0]); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["merge"])(normalizedItem[2], normalizedItem[1]); return normalizedItem; }; function isInfinity(val) { return !isNaN(val) && !isFinite(val); } // If a markLine has one dim function ifMarkLineHasOnlyDim(dimIndex, fromCoord, toCoord, coordSys) { var otherDimIndex = 1 - dimIndex; var dimName = coordSys.dimensions[dimIndex]; return isInfinity(fromCoord[otherDimIndex]) && isInfinity(toCoord[otherDimIndex]) && fromCoord[dimIndex] === toCoord[dimIndex] && coordSys.getAxis(dimName).containData(fromCoord[dimIndex]); } function markLineFilter(coordSys, item) { if (coordSys.type === 'cartesian2d') { var fromCoord = item[0].coord; var toCoord = item[1].coord; // In case // { // markLine: { // data: [{ yAxis: 2 }] // } // } if (fromCoord && toCoord && (ifMarkLineHasOnlyDim(1, fromCoord, toCoord, coordSys) || ifMarkLineHasOnlyDim(0, fromCoord, toCoord, coordSys))) { return true; } } return _markerHelper_js__WEBPACK_IMPORTED_MODULE_3__["dataFilter"](coordSys, item[0]) && _markerHelper_js__WEBPACK_IMPORTED_MODULE_3__["dataFilter"](coordSys, item[1]); } function updateSingleMarkerEndLayout(data, idx, isFrom, seriesModel, api) { var coordSys = seriesModel.coordinateSystem; var itemModel = data.getItemModel(idx); var point; var xPx = _util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"](itemModel.get('x'), api.getWidth()); var yPx = _util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"](itemModel.get('y'), api.getHeight()); if (!isNaN(xPx) && !isNaN(yPx)) { point = [xPx, yPx]; } else { // Chart like bar may have there own marker positioning logic if (seriesModel.getMarkerPosition) { // Use the getMarkerPosition point = seriesModel.getMarkerPosition(data.getValues(data.dimensions, idx)); } else { var dims = coordSys.dimensions; var x = data.get(dims[0], idx); var y = data.get(dims[1], idx); point = coordSys.dataToPoint([x, y]); } // Expand line to the edge of grid if value on one axis is Inifnity // In case // markLine: { // data: [{ // yAxis: 2 // // or // type: 'average' // }] // } if (Object(_coord_CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_7__["isCoordinateSystemType"])(coordSys, 'cartesian2d')) { // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug var xAxis = coordSys.getAxis('x'); var yAxis = coordSys.getAxis('y'); var dims = coordSys.dimensions; if (isInfinity(data.get(dims[0], idx))) { point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[isFrom ? 0 : 1]); } else if (isInfinity(data.get(dims[1], idx))) { point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[isFrom ? 0 : 1]); } } // Use x, y if has any if (!isNaN(xPx)) { point[0] = xPx; } if (!isNaN(yPx)) { point[1] = yPx; } } data.setItemLayout(idx, point); } var MarkLineView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MarkLineView, _super); function MarkLineView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = MarkLineView.type; return _this; } MarkLineView.prototype.updateTransform = function (markLineModel, ecModel, api) { ecModel.eachSeries(function (seriesModel) { var mlModel = _MarkerModel_js__WEBPACK_IMPORTED_MODULE_9__["default"].getMarkerModelFromSeries(seriesModel, 'markLine'); if (mlModel) { var mlData_1 = mlModel.getData(); var fromData_1 = inner(mlModel).from; var toData_1 = inner(mlModel).to; // Update visual and layout of from symbol and to symbol fromData_1.each(function (idx) { updateSingleMarkerEndLayout(fromData_1, idx, true, seriesModel, api); updateSingleMarkerEndLayout(toData_1, idx, false, seriesModel, api); }); // Update layout of line mlData_1.each(function (idx) { mlData_1.setItemLayout(idx, [fromData_1.getItemLayout(idx), toData_1.getItemLayout(idx)]); }); this.markerGroupMap.get(seriesModel.id).updateLayout(); } }, this); }; MarkLineView.prototype.renderSeries = function (seriesModel, mlModel, ecModel, api) { var coordSys = seriesModel.coordinateSystem; var seriesId = seriesModel.id; var seriesData = seriesModel.getData(); var lineDrawMap = this.markerGroupMap; var lineDraw = lineDrawMap.get(seriesId) || lineDrawMap.set(seriesId, new _chart_helper_LineDraw_js__WEBPACK_IMPORTED_MODULE_4__["default"]()); this.group.add(lineDraw.group); var mlData = createList(coordSys, seriesModel, mlModel); var fromData = mlData.from; var toData = mlData.to; var lineData = mlData.line; inner(mlModel).from = fromData; inner(mlModel).to = toData; // Line data for tooltip and formatter mlModel.setData(lineData); // TODO // Functionally, `symbolSize` & `symbolOffset` can also be 2D array now. // But the related logic and type definition are not finished yet. // Finish it if required var symbolType = mlModel.get('symbol'); var symbolSize = mlModel.get('symbolSize'); var symbolRotate = mlModel.get('symbolRotate'); var symbolOffset = mlModel.get('symbolOffset'); // TODO: support callback function like markPoint if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["isArray"])(symbolType)) { symbolType = [symbolType, symbolType]; } if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["isArray"])(symbolSize)) { symbolSize = [symbolSize, symbolSize]; } if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["isArray"])(symbolRotate)) { symbolRotate = [symbolRotate, symbolRotate]; } if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["isArray"])(symbolOffset)) { symbolOffset = [symbolOffset, symbolOffset]; } // Update visual and layout of from symbol and to symbol mlData.from.each(function (idx) { updateDataVisualAndLayout(fromData, idx, true); updateDataVisualAndLayout(toData, idx, false); }); // Update visual and layout of line lineData.each(function (idx) { var lineStyle = lineData.getItemModel(idx).getModel('lineStyle').getLineStyle(); // lineData.setItemVisual(idx, { // color: lineColor || fromData.getItemVisual(idx, 'color') // }); lineData.setItemLayout(idx, [fromData.getItemLayout(idx), toData.getItemLayout(idx)]); if (lineStyle.stroke == null) { lineStyle.stroke = fromData.getItemVisual(idx, 'style').fill; } lineData.setItemVisual(idx, { fromSymbolKeepAspect: fromData.getItemVisual(idx, 'symbolKeepAspect'), fromSymbolOffset: fromData.getItemVisual(idx, 'symbolOffset'), fromSymbolRotate: fromData.getItemVisual(idx, 'symbolRotate'), fromSymbolSize: fromData.getItemVisual(idx, 'symbolSize'), fromSymbol: fromData.getItemVisual(idx, 'symbol'), toSymbolKeepAspect: toData.getItemVisual(idx, 'symbolKeepAspect'), toSymbolOffset: toData.getItemVisual(idx, 'symbolOffset'), toSymbolRotate: toData.getItemVisual(idx, 'symbolRotate'), toSymbolSize: toData.getItemVisual(idx, 'symbolSize'), toSymbol: toData.getItemVisual(idx, 'symbol'), style: lineStyle }); }); lineDraw.updateData(lineData); // Set host model for tooltip // FIXME mlData.line.eachItemGraphicEl(function (el) { Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_8__["getECData"])(el).dataModel = mlModel; el.traverse(function (child) { Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_8__["getECData"])(child).dataModel = mlModel; }); }); function updateDataVisualAndLayout(data, idx, isFrom) { var itemModel = data.getItemModel(idx); updateSingleMarkerEndLayout(data, idx, isFrom, seriesModel, api); var style = itemModel.getModel('itemStyle').getItemStyle(); if (style.fill == null) { style.fill = Object(_visual_helper_js__WEBPACK_IMPORTED_MODULE_12__["getVisualFromData"])(seriesData, 'color'); } data.setItemVisual(idx, { symbolKeepAspect: itemModel.get('symbolKeepAspect'), // `0` should be considered as a valid value, so use `retrieve2` instead of `||` symbolOffset: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["retrieve2"])(itemModel.get('symbolOffset', true), symbolOffset[isFrom ? 0 : 1]), symbolRotate: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["retrieve2"])(itemModel.get('symbolRotate', true), symbolRotate[isFrom ? 0 : 1]), // TODO: when 2d array is supported, it should ignore parent symbolSize: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["retrieve2"])(itemModel.get('symbolSize'), symbolSize[isFrom ? 0 : 1]), symbol: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["retrieve2"])(itemModel.get('symbol', true), symbolType[isFrom ? 0 : 1]), style: style }); } this.markKeep(lineDraw); lineDraw.group.silent = mlModel.get('silent') || seriesModel.get('silent'); }; MarkLineView.type = 'markLine'; return MarkLineView; }(_MarkerView_js__WEBPACK_IMPORTED_MODULE_5__["default"]); function createList(coordSys, seriesModel, mlModel) { var coordDimsInfos; if (coordSys) { coordDimsInfos = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["map"])(coordSys && coordSys.dimensions, function (coordDim) { var info = seriesModel.getData().getDimensionInfo(seriesModel.getData().mapDimension(coordDim)) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["extend"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["extend"])({}, info), { name: coordDim, // DON'T use ordinalMeta to parse and collect ordinal. ordinalMeta: null }); }); } else { coordDimsInfos = [{ name: 'value', type: 'float' }]; } var fromData = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"](coordDimsInfos, mlModel); var toData = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"](coordDimsInfos, mlModel); // No dimensions var lineData = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"]([], mlModel); var optData = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["map"])(mlModel.get('data'), Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["curry"])(markLineTransform, seriesModel, coordSys, mlModel)); if (coordSys) { optData = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["filter"])(optData, Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["curry"])(markLineFilter, coordSys)); } var dimValueGetter = _markerHelper_js__WEBPACK_IMPORTED_MODULE_3__["createMarkerDimValueGetter"](!!coordSys, coordDimsInfos); fromData.initData(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["map"])(optData, function (item) { return item[0]; }), null, dimValueGetter); toData.initData(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["map"])(optData, function (item) { return item[1]; }), null, dimValueGetter); lineData.initData(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["map"])(optData, function (item) { return item[2]; })); lineData.hasItemOption = true; return { from: fromData, to: toData, line: lineData }; } /* harmony default export */ __webpack_exports__["default"] = (MarkLineView); /***/ }), /***/ "./node_modules/echarts/lib/component/marker/MarkPointModel.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/component/marker/MarkPointModel.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _MarkerModel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MarkerModel.js */ "./node_modules/echarts/lib/component/marker/MarkerModel.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var MarkPointModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MarkPointModel, _super); function MarkPointModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = MarkPointModel.type; return _this; } MarkPointModel.prototype.createMarkerModelFromSeries = function (markerOpt, masterMarkerModel, ecModel) { return new MarkPointModel(markerOpt, masterMarkerModel, ecModel); }; MarkPointModel.type = 'markPoint'; MarkPointModel.defaultOption = { // zlevel: 0, z: 5, symbol: 'pin', symbolSize: 50, // symbolRotate: 0, // symbolOffset: [0, 0] tooltip: { trigger: 'item' }, label: { show: true, position: 'inside' }, itemStyle: { borderWidth: 2 }, emphasis: { label: { show: true } } }; return MarkPointModel; }(_MarkerModel_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (MarkPointModel); /***/ }), /***/ "./node_modules/echarts/lib/component/marker/MarkPointView.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/component/marker/MarkPointView.js ***! \********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _chart_helper_SymbolDraw_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../chart/helper/SymbolDraw.js */ "./node_modules/echarts/lib/chart/helper/SymbolDraw.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../data/SeriesData.js */ "./node_modules/echarts/lib/data/SeriesData.js"); /* harmony import */ var _markerHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./markerHelper.js */ "./node_modules/echarts/lib/component/marker/markerHelper.js"); /* harmony import */ var _MarkerView_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./MarkerView.js */ "./node_modules/echarts/lib/component/marker/MarkerView.js"); /* harmony import */ var _MarkerModel_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./MarkerModel.js */ "./node_modules/echarts/lib/component/marker/MarkerModel.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _visual_helper_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../visual/helper.js */ "./node_modules/echarts/lib/visual/helper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function updateMarkerLayout(mpData, seriesModel, api) { var coordSys = seriesModel.coordinateSystem; mpData.each(function (idx) { var itemModel = mpData.getItemModel(idx); var point; var xPx = _util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"](itemModel.get('x'), api.getWidth()); var yPx = _util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"](itemModel.get('y'), api.getHeight()); if (!isNaN(xPx) && !isNaN(yPx)) { point = [xPx, yPx]; } // Chart like bar may have there own marker positioning logic else if (seriesModel.getMarkerPosition) { // Use the getMarkerPosition point = seriesModel.getMarkerPosition(mpData.getValues(mpData.dimensions, idx)); } else if (coordSys) { var x = mpData.get(coordSys.dimensions[0], idx); var y = mpData.get(coordSys.dimensions[1], idx); point = coordSys.dataToPoint([x, y]); } // Use x, y if has any if (!isNaN(xPx)) { point[0] = xPx; } if (!isNaN(yPx)) { point[1] = yPx; } mpData.setItemLayout(idx, point); }); } var MarkPointView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MarkPointView, _super); function MarkPointView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = MarkPointView.type; return _this; } MarkPointView.prototype.updateTransform = function (markPointModel, ecModel, api) { ecModel.eachSeries(function (seriesModel) { var mpModel = _MarkerModel_js__WEBPACK_IMPORTED_MODULE_6__["default"].getMarkerModelFromSeries(seriesModel, 'markPoint'); if (mpModel) { updateMarkerLayout(mpModel.getData(), seriesModel, api); this.markerGroupMap.get(seriesModel.id).updateLayout(); } }, this); }; MarkPointView.prototype.renderSeries = function (seriesModel, mpModel, ecModel, api) { var coordSys = seriesModel.coordinateSystem; var seriesId = seriesModel.id; var seriesData = seriesModel.getData(); var symbolDrawMap = this.markerGroupMap; var symbolDraw = symbolDrawMap.get(seriesId) || symbolDrawMap.set(seriesId, new _chart_helper_SymbolDraw_js__WEBPACK_IMPORTED_MODULE_1__["default"]()); var mpData = createData(coordSys, seriesModel, mpModel); // FIXME mpModel.setData(mpData); updateMarkerLayout(mpModel.getData(), seriesModel, api); mpData.each(function (idx) { var itemModel = mpData.getItemModel(idx); var symbol = itemModel.getShallow('symbol'); var symbolSize = itemModel.getShallow('symbolSize'); var symbolRotate = itemModel.getShallow('symbolRotate'); var symbolOffset = itemModel.getShallow('symbolOffset'); var symbolKeepAspect = itemModel.getShallow('symbolKeepAspect'); // TODO: refactor needed: single data item should not support callback function if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["isFunction"])(symbol) || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["isFunction"])(symbolSize) || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["isFunction"])(symbolRotate) || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["isFunction"])(symbolOffset)) { var rawIdx = mpModel.getRawValue(idx); var dataParams = mpModel.getDataParams(idx); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["isFunction"])(symbol)) { symbol = symbol(rawIdx, dataParams); } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["isFunction"])(symbolSize)) { // FIXME 这里不兼容 ECharts 2.x,2.x 貌似参数是整个数据? symbolSize = symbolSize(rawIdx, dataParams); } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["isFunction"])(symbolRotate)) { symbolRotate = symbolRotate(rawIdx, dataParams); } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["isFunction"])(symbolOffset)) { symbolOffset = symbolOffset(rawIdx, dataParams); } } var style = itemModel.getModel('itemStyle').getItemStyle(); var color = Object(_visual_helper_js__WEBPACK_IMPORTED_MODULE_9__["getVisualFromData"])(seriesData, 'color'); if (!style.fill) { style.fill = color; } mpData.setItemVisual(idx, { symbol: symbol, symbolSize: symbolSize, symbolRotate: symbolRotate, symbolOffset: symbolOffset, symbolKeepAspect: symbolKeepAspect, style: style }); }); // TODO Text are wrong symbolDraw.updateData(mpData); this.group.add(symbolDraw.group); // Set host model for tooltip // FIXME mpData.eachItemGraphicEl(function (el) { el.traverse(function (child) { Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_8__["getECData"])(child).dataModel = mpModel; }); }); this.markKeep(symbolDraw); symbolDraw.group.silent = mpModel.get('silent') || seriesModel.get('silent'); }; MarkPointView.type = 'markPoint'; return MarkPointView; }(_MarkerView_js__WEBPACK_IMPORTED_MODULE_5__["default"]); function createData(coordSys, seriesModel, mpModel) { var coordDimsInfos; if (coordSys) { coordDimsInfos = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["map"])(coordSys && coordSys.dimensions, function (coordDim) { var info = seriesModel.getData().getDimensionInfo(seriesModel.getData().mapDimension(coordDim)) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["extend"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["extend"])({}, info), { name: coordDim, // DON'T use ordinalMeta to parse and collect ordinal. ordinalMeta: null }); }); } else { coordDimsInfos = [{ name: 'value', type: 'float' }]; } var mpData = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_3__["default"](coordDimsInfos, mpModel); var dataOpt = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["map"])(mpModel.get('data'), Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["curry"])(_markerHelper_js__WEBPACK_IMPORTED_MODULE_4__["dataTransform"], seriesModel)); if (coordSys) { dataOpt = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["filter"])(dataOpt, Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["curry"])(_markerHelper_js__WEBPACK_IMPORTED_MODULE_4__["dataFilter"], coordSys)); } var dimValueGetter = _markerHelper_js__WEBPACK_IMPORTED_MODULE_4__["createMarkerDimValueGetter"](!!coordSys, coordDimsInfos); mpData.initData(dataOpt, null, dimValueGetter); return mpData; } /* harmony default export */ __webpack_exports__["default"] = (MarkPointView); /***/ }), /***/ "./node_modules/echarts/lib/component/marker/MarkerModel.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/component/marker/MarkerModel.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/env.js */ "./node_modules/zrender/lib/core/env.js"); /* harmony import */ var _model_mixin_dataFormat_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../model/mixin/dataFormat.js */ "./node_modules/echarts/lib/model/mixin/dataFormat.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tooltip/tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function fillLabel(opt) { Object(_util_model_js__WEBPACK_IMPORTED_MODULE_5__["defaultEmphasis"])(opt, 'label', ['show']); } // { [componentType]: MarkerModel } var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_5__["makeInner"])(); var MarkerModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MarkerModel, _super); function MarkerModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = MarkerModel.type; /** * If marker model is created by self from series */ _this.createdBySelf = false; return _this; } /** * @overrite */ MarkerModel.prototype.init = function (option, parentModel, ecModel) { if (true) { if (this.type === 'marker') { throw new Error('Marker component is abstract component. Use markLine, markPoint, markArea instead.'); } } this.mergeDefaultAndTheme(option, ecModel); this._mergeOption(option, ecModel, false, true); }; MarkerModel.prototype.isAnimationEnabled = function () { if (zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_2__["default"].node) { return false; } var hostSeries = this.__hostSeries; return this.getShallow('animation') && hostSeries && hostSeries.isAnimationEnabled(); }; /** * @overrite */ MarkerModel.prototype.mergeOption = function (newOpt, ecModel) { this._mergeOption(newOpt, ecModel, false, false); }; MarkerModel.prototype._mergeOption = function (newOpt, ecModel, createdBySelf, isInit) { var componentType = this.mainType; if (!createdBySelf) { ecModel.eachSeries(function (seriesModel) { // mainType can be markPoint, markLine, markArea var markerOpt = seriesModel.get(this.mainType, true); var markerModel = inner(seriesModel)[componentType]; if (!markerOpt || !markerOpt.data) { inner(seriesModel)[componentType] = null; return; } if (!markerModel) { if (isInit) { // Default label emphasis `position` and `show` fillLabel(markerOpt); } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](markerOpt.data, function (item) { // FIXME Overwrite fillLabel method ? if (item instanceof Array) { fillLabel(item[0]); fillLabel(item[1]); } else { fillLabel(item); } }); markerModel = this.createMarkerModelFromSeries(markerOpt, this, ecModel); // markerModel = new ImplementedMarkerModel( // markerOpt, this, ecModel // ); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"](markerModel, { mainType: this.mainType, // Use the same series index and name seriesIndex: seriesModel.seriesIndex, name: seriesModel.name, createdBySelf: true }); markerModel.__hostSeries = seriesModel; } else { markerModel._mergeOption(markerOpt, ecModel, true); } inner(seriesModel)[componentType] = markerModel; }, this); } }; MarkerModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) { var data = this.getData(); var value = this.getRawValue(dataIndex); var itemName = data.getName(dataIndex); return Object(_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_6__["createTooltipMarkup"])('section', { header: this.name, blocks: [Object(_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_6__["createTooltipMarkup"])('nameValue', { name: itemName, value: value, noName: !itemName, noValue: value == null })] }); }; MarkerModel.prototype.getData = function () { return this._data; }; MarkerModel.prototype.setData = function (data) { this._data = data; }; MarkerModel.prototype.getDataParams = function (dataIndex, dataType) { var params = _model_mixin_dataFormat_js__WEBPACK_IMPORTED_MODULE_3__["DataFormatMixin"].prototype.getDataParams.call(this, dataIndex, dataType); var hostSeries = this.__hostSeries; if (hostSeries) { params.seriesId = hostSeries.id; params.seriesName = hostSeries.name; params.seriesType = hostSeries.subType; } return params; }; MarkerModel.getMarkerModelFromSeries = function (seriesModel, // Support three types of markers. Strict check. componentType) { return inner(seriesModel)[componentType]; }; MarkerModel.type = 'marker'; MarkerModel.dependencies = ['series', 'grid', 'polar', 'geo']; return MarkerModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"]); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["mixin"](MarkerModel, _model_mixin_dataFormat_js__WEBPACK_IMPORTED_MODULE_3__["DataFormatMixin"].prototype); /* harmony default export */ __webpack_exports__["default"] = (MarkerModel); /***/ }), /***/ "./node_modules/echarts/lib/component/marker/MarkerView.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/component/marker/MarkerView.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _MarkerModel_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MarkerModel.js */ "./node_modules/echarts/lib/component/marker/MarkerModel.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_4__["makeInner"])(); var MarkerView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MarkerView, _super); function MarkerView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = MarkerView.type; return _this; } MarkerView.prototype.init = function () { this.markerGroupMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["createHashMap"])(); }; MarkerView.prototype.render = function (markerModel, ecModel, api) { var _this = this; var markerGroupMap = this.markerGroupMap; markerGroupMap.each(function (item) { inner(item).keep = false; }); ecModel.eachSeries(function (seriesModel) { var markerModel = _MarkerModel_js__WEBPACK_IMPORTED_MODULE_3__["default"].getMarkerModelFromSeries(seriesModel, _this.type); markerModel && _this.renderSeries(seriesModel, markerModel, ecModel, api); }); markerGroupMap.each(function (item) { !inner(item).keep && _this.group.remove(item.group); }); }; MarkerView.prototype.markKeep = function (drawGroup) { inner(drawGroup).keep = true; }; MarkerView.prototype.toggleBlurSeries = function (seriesModelList, isBlur) { var _this = this; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(seriesModelList, function (seriesModel) { var markerModel = _MarkerModel_js__WEBPACK_IMPORTED_MODULE_3__["default"].getMarkerModelFromSeries(seriesModel, _this.type); if (markerModel) { var data = markerModel.getData(); data.eachItemGraphicEl(function (el) { if (el) { isBlur ? Object(_util_states_js__WEBPACK_IMPORTED_MODULE_5__["enterBlur"])(el) : Object(_util_states_js__WEBPACK_IMPORTED_MODULE_5__["leaveBlur"])(el); } }); } }); }; MarkerView.type = 'marker'; return MarkerView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (MarkerView); /***/ }), /***/ "./node_modules/echarts/lib/component/marker/checkMarkerInSeries.js": /*!**************************************************************************!*\ !*** ./node_modules/echarts/lib/component/marker/checkMarkerInSeries.js ***! \**************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return checkMarkerInSeries; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function checkMarkerInSeries(seriesOpts, markerType) { if (!seriesOpts) { return false; } var seriesOptArr = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(seriesOpts) ? seriesOpts : [seriesOpts]; for (var idx = 0; idx < seriesOptArr.length; idx++) { if (seriesOptArr[idx] && seriesOptArr[idx][markerType]) { return true; } } return false; } /***/ }), /***/ "./node_modules/echarts/lib/component/marker/installMarkArea.js": /*!**********************************************************************!*\ !*** ./node_modules/echarts/lib/component/marker/installMarkArea.js ***! \**********************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _checkMarkerInSeries_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./checkMarkerInSeries.js */ "./node_modules/echarts/lib/component/marker/checkMarkerInSeries.js"); /* harmony import */ var _MarkAreaModel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MarkAreaModel.js */ "./node_modules/echarts/lib/component/marker/MarkAreaModel.js"); /* harmony import */ var _MarkAreaView_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MarkAreaView.js */ "./node_modules/echarts/lib/component/marker/MarkAreaView.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerComponentModel(_MarkAreaModel_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerComponentView(_MarkAreaView_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerPreprocessor(function (opt) { if (Object(_checkMarkerInSeries_js__WEBPACK_IMPORTED_MODULE_0__["default"])(opt.series, 'markArea')) { // Make sure markArea component is enabled opt.markArea = opt.markArea || {}; } }); } /***/ }), /***/ "./node_modules/echarts/lib/component/marker/installMarkLine.js": /*!**********************************************************************!*\ !*** ./node_modules/echarts/lib/component/marker/installMarkLine.js ***! \**********************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _checkMarkerInSeries_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./checkMarkerInSeries.js */ "./node_modules/echarts/lib/component/marker/checkMarkerInSeries.js"); /* harmony import */ var _MarkLineModel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MarkLineModel.js */ "./node_modules/echarts/lib/component/marker/MarkLineModel.js"); /* harmony import */ var _MarkLineView_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MarkLineView.js */ "./node_modules/echarts/lib/component/marker/MarkLineView.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ function install(registers) { registers.registerComponentModel(_MarkLineModel_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerComponentView(_MarkLineView_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerPreprocessor(function (opt) { if (Object(_checkMarkerInSeries_js__WEBPACK_IMPORTED_MODULE_0__["default"])(opt.series, 'markLine')) { // Make sure markLine component is enabled opt.markLine = opt.markLine || {}; } }); } /***/ }), /***/ "./node_modules/echarts/lib/component/marker/installMarkPoint.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/marker/installMarkPoint.js ***! \***********************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _checkMarkerInSeries_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./checkMarkerInSeries.js */ "./node_modules/echarts/lib/component/marker/checkMarkerInSeries.js"); /* harmony import */ var _MarkPointModel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MarkPointModel.js */ "./node_modules/echarts/lib/component/marker/MarkPointModel.js"); /* harmony import */ var _MarkPointView_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MarkPointView.js */ "./node_modules/echarts/lib/component/marker/MarkPointView.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ function install(registers) { registers.registerComponentModel(_MarkPointModel_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerComponentView(_MarkPointView_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerPreprocessor(function (opt) { if (Object(_checkMarkerInSeries_js__WEBPACK_IMPORTED_MODULE_0__["default"])(opt.series, 'markPoint')) { // Make sure markPoint component is enabled opt.markPoint = opt.markPoint || {}; } }); } /***/ }), /***/ "./node_modules/echarts/lib/component/marker/markerHelper.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/component/marker/markerHelper.js ***! \*******************************************************************/ /*! exports provided: dataTransform, getAxisInfo, dataFilter, zoneFilter, createMarkerDimValueGetter, numCalculate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataTransform", function() { return dataTransform; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAxisInfo", function() { return getAxisInfo; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataFilter", function() { return dataFilter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zoneFilter", function() { return zoneFilter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createMarkerDimValueGetter", function() { return createMarkerDimValueGetter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "numCalculate", function() { return numCalculate; }); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../data/helper/dataStackHelper.js */ "./node_modules/echarts/lib/data/helper/dataStackHelper.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../data/helper/dataValueHelper.js */ "./node_modules/echarts/lib/data/helper/dataValueHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function hasXOrY(item) { return !(isNaN(parseFloat(item.x)) && isNaN(parseFloat(item.y))); } function hasXAndY(item) { return !isNaN(parseFloat(item.x)) && !isNaN(parseFloat(item.y)); } function markerTypeCalculatorWithExtent(markerType, data, otherDataDim, targetDataDim, otherCoordIndex, targetCoordIndex) { var coordArr = []; var stacked = Object(_data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_1__["isDimensionStacked"])(data, targetDataDim /* , otherDataDim */); var calcDataDim = stacked ? data.getCalculationInfo('stackResultDimension') : targetDataDim; var value = numCalculate(data, calcDataDim, markerType); var dataIndex = data.indicesOfNearest(calcDataDim, value)[0]; coordArr[otherCoordIndex] = data.get(otherDataDim, dataIndex); coordArr[targetCoordIndex] = data.get(calcDataDim, dataIndex); var coordArrValue = data.get(targetDataDim, dataIndex); // Make it simple, do not visit all stacked value to count precision. var precision = _util_number_js__WEBPACK_IMPORTED_MODULE_0__["getPrecision"](data.get(targetDataDim, dataIndex)); precision = Math.min(precision, 20); if (precision >= 0) { coordArr[targetCoordIndex] = +coordArr[targetCoordIndex].toFixed(precision); } return [coordArr, coordArrValue]; } // TODO Specified percent var markerTypeCalculator = { min: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["curry"])(markerTypeCalculatorWithExtent, 'min'), max: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["curry"])(markerTypeCalculatorWithExtent, 'max'), average: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["curry"])(markerTypeCalculatorWithExtent, 'average'), median: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["curry"])(markerTypeCalculatorWithExtent, 'median') }; /** * Transform markPoint data item to format used in List by do the following * 1. Calculate statistic like `max`, `min`, `average` * 2. Convert `item.xAxis`, `item.yAxis` to `item.coord` array */ function dataTransform(seriesModel, item) { if (!item) { return; } var data = seriesModel.getData(); var coordSys = seriesModel.coordinateSystem; var dims = coordSys && coordSys.dimensions; // 1. If not specify the position with pixel directly // 2. If `coord` is not a data array. Which uses `xAxis`, // `yAxis` to specify the coord on each dimension // parseFloat first because item.x and item.y can be percent string like '20%' if (!hasXAndY(item) && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isArray"])(item.coord) && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isArray"])(dims)) { var axisInfo = getAxisInfo(item, data, coordSys, seriesModel); // Clone the option // Transform the properties xAxis, yAxis, radiusAxis, angleAxis, geoCoord to value item = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["clone"])(item); if (item.type && markerTypeCalculator[item.type] && axisInfo.baseAxis && axisInfo.valueAxis) { var otherCoordIndex = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["indexOf"])(dims, axisInfo.baseAxis.dim); var targetCoordIndex = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["indexOf"])(dims, axisInfo.valueAxis.dim); var coordInfo = markerTypeCalculator[item.type](data, axisInfo.baseDataDim, axisInfo.valueDataDim, otherCoordIndex, targetCoordIndex); item.coord = coordInfo[0]; // Force to use the value of calculated value. // let item use the value without stack. item.value = coordInfo[1]; } else { // FIXME Only has one of xAxis and yAxis. item.coord = [item.xAxis != null ? item.xAxis : item.radiusAxis, item.yAxis != null ? item.yAxis : item.angleAxis]; } } // x y is provided if (item.coord == null || !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isArray"])(dims)) { item.coord = []; } else { // Each coord support max, min, average var coord = item.coord; for (var i = 0; i < 2; i++) { if (markerTypeCalculator[coord[i]]) { coord[i] = numCalculate(data, data.mapDimension(dims[i]), coord[i]); } } } return item; } function getAxisInfo(item, data, coordSys, seriesModel) { var ret = {}; if (item.valueIndex != null || item.valueDim != null) { ret.valueDataDim = item.valueIndex != null ? data.getDimension(item.valueIndex) : item.valueDim; ret.valueAxis = coordSys.getAxis(dataDimToCoordDim(seriesModel, ret.valueDataDim)); ret.baseAxis = coordSys.getOtherAxis(ret.valueAxis); ret.baseDataDim = data.mapDimension(ret.baseAxis.dim); } else { ret.baseAxis = seriesModel.getBaseAxis(); ret.valueAxis = coordSys.getOtherAxis(ret.baseAxis); ret.baseDataDim = data.mapDimension(ret.baseAxis.dim); ret.valueDataDim = data.mapDimension(ret.valueAxis.dim); } return ret; } function dataDimToCoordDim(seriesModel, dataDim) { var dimItem = seriesModel.getData().getDimensionInfo(dataDim); return dimItem && dimItem.coordDim; } /** * Filter data which is out of coordinateSystem range * [dataFilter description] */ function dataFilter( // Currently only polar and cartesian has containData. coordSys, item) { // Always return true if there is no coordSys return coordSys && coordSys.containData && item.coord && !hasXOrY(item) ? coordSys.containData(item.coord) : true; } function zoneFilter( // Currently only polar and cartesian has containData. coordSys, item1, item2) { // Always return true if there is no coordSys return coordSys && coordSys.containZone && item1.coord && item2.coord && !hasXOrY(item1) && !hasXOrY(item2) ? coordSys.containZone(item1.coord, item2.coord) : true; } function createMarkerDimValueGetter(inCoordSys, dims) { return inCoordSys ? function (item, dimName, dataIndex, dimIndex) { var rawVal = dimIndex < 2 // x, y, radius, angle ? item.coord && item.coord[dimIndex] : item.value; return Object(_data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_3__["parseDataValue"])(rawVal, dims[dimIndex]); } : function (item, dimName, dataIndex, dimIndex) { return Object(_data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_3__["parseDataValue"])(item.value, dims[dimIndex]); }; } function numCalculate(data, valueDataDim, type) { if (type === 'average') { var sum_1 = 0; var count_1 = 0; data.each(valueDataDim, function (val, idx) { if (!isNaN(val)) { sum_1 += val; count_1++; } }); return sum_1 / count_1; } else if (type === 'median') { return data.getMedian(valueDataDim); } else { // max & min return data.getDataExtent(valueDataDim)[type === 'max' ? 1 : 0]; } } /***/ }), /***/ "./node_modules/echarts/lib/component/parallel/ParallelView.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/component/parallel/ParallelView.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_throttle_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/throttle.js */ "./node_modules/echarts/lib/util/throttle.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var CLICK_THRESHOLD = 5; // > 4 var ParallelView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ParallelView, _super); function ParallelView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ParallelView.type; return _this; } ParallelView.prototype.render = function (parallelModel, ecModel, api) { this._model = parallelModel; this._api = api; if (!this._handlers) { this._handlers = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(handlers, function (handler, eventName) { api.getZr().on(eventName, this._handlers[eventName] = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["bind"])(handler, this)); }, this); } Object(_util_throttle_js__WEBPACK_IMPORTED_MODULE_3__["createOrUpdate"])(this, '_throttledDispatchExpand', parallelModel.get('axisExpandRate'), 'fixRate'); }; ParallelView.prototype.dispose = function (ecModel, api) { Object(_util_throttle_js__WEBPACK_IMPORTED_MODULE_3__["clear"])(this, '_throttledDispatchExpand'); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(this._handlers, function (handler, eventName) { api.getZr().off(eventName, handler); }); this._handlers = null; }; /** * @internal * @param {Object} [opt] If null, cancel the last action triggering for debounce. */ ParallelView.prototype._throttledDispatchExpand = function (opt) { this._dispatchExpand(opt); }; /** * @internal */ ParallelView.prototype._dispatchExpand = function (opt) { opt && this._api.dispatchAction(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["extend"])({ type: 'parallelAxisExpand' }, opt)); }; ParallelView.type = 'parallel'; return ParallelView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"]); var handlers = { mousedown: function (e) { if (checkTrigger(this, 'click')) { this._mouseDownPoint = [e.offsetX, e.offsetY]; } }, mouseup: function (e) { var mouseDownPoint = this._mouseDownPoint; if (checkTrigger(this, 'click') && mouseDownPoint) { var point = [e.offsetX, e.offsetY]; var dist = Math.pow(mouseDownPoint[0] - point[0], 2) + Math.pow(mouseDownPoint[1] - point[1], 2); if (dist > CLICK_THRESHOLD) { return; } var result = this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX, e.offsetY]); result.behavior !== 'none' && this._dispatchExpand({ axisExpandWindow: result.axisExpandWindow }); } this._mouseDownPoint = null; }, mousemove: function (e) { // Should do nothing when brushing. if (this._mouseDownPoint || !checkTrigger(this, 'mousemove')) { return; } var model = this._model; var result = model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX, e.offsetY]); var behavior = result.behavior; behavior === 'jump' && this._throttledDispatchExpand.debounceNextCall(model.get('axisExpandDebounce')); this._throttledDispatchExpand(behavior === 'none' ? null // Cancel the last trigger, in case that mouse slide out of the area quickly. : { axisExpandWindow: result.axisExpandWindow, // Jumping uses animation, and sliding suppresses animation. animation: behavior === 'jump' ? null : { duration: 0 // Disable animation. } }); } }; function checkTrigger(view, triggerOn) { var model = view._model; return model.get('axisExpandable') && model.get('axisExpandTriggerOn') === triggerOn; } /* harmony default export */ __webpack_exports__["default"] = (ParallelView); /***/ }), /***/ "./node_modules/echarts/lib/component/parallel/install.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/component/parallel/install.js ***! \****************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _coord_parallel_parallelPreprocessor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../coord/parallel/parallelPreprocessor.js */ "./node_modules/echarts/lib/coord/parallel/parallelPreprocessor.js"); /* harmony import */ var _ParallelView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ParallelView.js */ "./node_modules/echarts/lib/component/parallel/ParallelView.js"); /* harmony import */ var _coord_parallel_ParallelModel_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../coord/parallel/ParallelModel.js */ "./node_modules/echarts/lib/coord/parallel/ParallelModel.js"); /* harmony import */ var _coord_parallel_parallelCreator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../coord/parallel/parallelCreator.js */ "./node_modules/echarts/lib/coord/parallel/parallelCreator.js"); /* harmony import */ var _coord_axisModelCreator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../coord/axisModelCreator.js */ "./node_modules/echarts/lib/coord/axisModelCreator.js"); /* harmony import */ var _coord_parallel_AxisModel_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../coord/parallel/AxisModel.js */ "./node_modules/echarts/lib/coord/parallel/AxisModel.js"); /* harmony import */ var _axis_ParallelAxisView_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../axis/ParallelAxisView.js */ "./node_modules/echarts/lib/component/axis/ParallelAxisView.js"); /* harmony import */ var _axis_parallelAxisAction_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../axis/parallelAxisAction.js */ "./node_modules/echarts/lib/component/axis/parallelAxisAction.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var defaultAxisOption = { type: 'value', areaSelectStyle: { width: 20, borderWidth: 1, borderColor: 'rgba(160,197,232)', color: 'rgba(160,197,232)', opacity: 0.3 }, realtime: true, z: 10 }; function install(registers) { registers.registerComponentView(_ParallelView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerComponentModel(_coord_parallel_ParallelModel_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerCoordinateSystem('parallel', _coord_parallel_parallelCreator_js__WEBPACK_IMPORTED_MODULE_3__["default"]); registers.registerPreprocessor(_coord_parallel_parallelPreprocessor_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerComponentModel(_coord_parallel_AxisModel_js__WEBPACK_IMPORTED_MODULE_5__["default"]); registers.registerComponentView(_axis_ParallelAxisView_js__WEBPACK_IMPORTED_MODULE_6__["default"]); Object(_coord_axisModelCreator_js__WEBPACK_IMPORTED_MODULE_4__["default"])(registers, 'parallel', _coord_parallel_AxisModel_js__WEBPACK_IMPORTED_MODULE_5__["default"], defaultAxisOption); Object(_axis_parallelAxisAction_js__WEBPACK_IMPORTED_MODULE_7__["installParallelActions"])(registers); } /***/ }), /***/ "./node_modules/echarts/lib/component/polar/install.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/component/polar/install.js ***! \*************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _axis_AxisView_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../axis/AxisView.js */ "./node_modules/echarts/lib/component/axis/AxisView.js"); /* harmony import */ var _axisPointer_PolarAxisPointer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../axisPointer/PolarAxisPointer.js */ "./node_modules/echarts/lib/component/axisPointer/PolarAxisPointer.js"); /* harmony import */ var _axisPointer_install_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../axisPointer/install.js */ "./node_modules/echarts/lib/component/axisPointer/install.js"); /* harmony import */ var _coord_polar_PolarModel_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../coord/polar/PolarModel.js */ "./node_modules/echarts/lib/coord/polar/PolarModel.js"); /* harmony import */ var _coord_axisModelCreator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../coord/axisModelCreator.js */ "./node_modules/echarts/lib/coord/axisModelCreator.js"); /* harmony import */ var _coord_polar_AxisModel_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../coord/polar/AxisModel.js */ "./node_modules/echarts/lib/coord/polar/AxisModel.js"); /* harmony import */ var _coord_polar_polarCreator_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../coord/polar/polarCreator.js */ "./node_modules/echarts/lib/coord/polar/polarCreator.js"); /* harmony import */ var _axis_AngleAxisView_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../axis/AngleAxisView.js */ "./node_modules/echarts/lib/component/axis/AngleAxisView.js"); /* harmony import */ var _axis_RadiusAxisView_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../axis/RadiusAxisView.js */ "./node_modules/echarts/lib/component/axis/RadiusAxisView.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _layout_barPolar_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../layout/barPolar.js */ "./node_modules/echarts/lib/layout/barPolar.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var angleAxisExtraOption = { startAngle: 90, clockwise: true, splitNumber: 12, axisLabel: { rotate: 0 } }; var radiusAxisExtraOption = { splitNumber: 5 }; var PolarView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PolarView, _super); function PolarView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = PolarView.type; return _this; } PolarView.type = 'polar'; return PolarView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_11__["default"]); function install(registers) { Object(_extension_js__WEBPACK_IMPORTED_MODULE_1__["use"])(_axisPointer_install_js__WEBPACK_IMPORTED_MODULE_4__["install"]); _axis_AxisView_js__WEBPACK_IMPORTED_MODULE_2__["default"].registerAxisPointerClass('PolarAxisPointer', _axisPointer_PolarAxisPointer_js__WEBPACK_IMPORTED_MODULE_3__["default"]); registers.registerCoordinateSystem('polar', _coord_polar_polarCreator_js__WEBPACK_IMPORTED_MODULE_8__["default"]); registers.registerComponentModel(_coord_polar_PolarModel_js__WEBPACK_IMPORTED_MODULE_5__["default"]); registers.registerComponentView(PolarView); // Model and view for angleAxis and radiusAxis Object(_coord_axisModelCreator_js__WEBPACK_IMPORTED_MODULE_6__["default"])(registers, 'angle', _coord_polar_AxisModel_js__WEBPACK_IMPORTED_MODULE_7__["AngleAxisModel"], angleAxisExtraOption); Object(_coord_axisModelCreator_js__WEBPACK_IMPORTED_MODULE_6__["default"])(registers, 'radius', _coord_polar_AxisModel_js__WEBPACK_IMPORTED_MODULE_7__["RadiusAxisModel"], radiusAxisExtraOption); registers.registerComponentView(_axis_AngleAxisView_js__WEBPACK_IMPORTED_MODULE_9__["default"]); registers.registerComponentView(_axis_RadiusAxisView_js__WEBPACK_IMPORTED_MODULE_10__["default"]); registers.registerLayout(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_12__["curry"])(_layout_barPolar_js__WEBPACK_IMPORTED_MODULE_13__["default"], 'bar')); } /***/ }), /***/ "./node_modules/echarts/lib/component/radar/RadarView.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/component/radar/RadarView.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _axis_AxisBuilder_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../axis/AxisBuilder.js */ "./node_modules/echarts/lib/component/axis/AxisBuilder.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName']; var RadarView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RadarView, _super); function RadarView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = RadarView.type; return _this; } RadarView.prototype.render = function (radarModel, ecModel, api) { var group = this.group; group.removeAll(); this._buildAxes(radarModel); this._buildSplitLineAndArea(radarModel); }; RadarView.prototype._buildAxes = function (radarModel) { var radar = radarModel.coordinateSystem; var indicatorAxes = radar.getIndicatorAxes(); var axisBuilders = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](indicatorAxes, function (indicatorAxis) { var axisName = indicatorAxis.model.get('showName') ? indicatorAxis.name : ''; // hide name var axisBuilder = new _axis_AxisBuilder_js__WEBPACK_IMPORTED_MODULE_2__["default"](indicatorAxis.model, { axisName: axisName, position: [radar.cx, radar.cy], rotation: indicatorAxis.angle, labelDirection: -1, tickDirection: -1, nameDirection: 1 }); return axisBuilder; }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](axisBuilders, function (axisBuilder) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](axisBuilderAttrs, axisBuilder.add, axisBuilder); this.group.add(axisBuilder.getGroup()); }, this); }; RadarView.prototype._buildSplitLineAndArea = function (radarModel) { var radar = radarModel.coordinateSystem; var indicatorAxes = radar.getIndicatorAxes(); if (!indicatorAxes.length) { return; } var shape = radarModel.get('shape'); var splitLineModel = radarModel.getModel('splitLine'); var splitAreaModel = radarModel.getModel('splitArea'); var lineStyleModel = splitLineModel.getModel('lineStyle'); var areaStyleModel = splitAreaModel.getModel('areaStyle'); var showSplitLine = splitLineModel.get('show'); var showSplitArea = splitAreaModel.get('show'); var splitLineColors = lineStyleModel.get('color'); var splitAreaColors = areaStyleModel.get('color'); var splitLineColorsArr = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](splitLineColors) ? splitLineColors : [splitLineColors]; var splitAreaColorsArr = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](splitAreaColors) ? splitAreaColors : [splitAreaColors]; var splitLines = []; var splitAreas = []; function getColorIndex(areaOrLine, areaOrLineColorList, idx) { var colorIndex = idx % areaOrLineColorList.length; areaOrLine[colorIndex] = areaOrLine[colorIndex] || []; return colorIndex; } if (shape === 'circle') { var ticksRadius = indicatorAxes[0].getTicksCoords(); var cx = radar.cx; var cy = radar.cy; for (var i = 0; i < ticksRadius.length; i++) { if (showSplitLine) { var colorIndex = getColorIndex(splitLines, splitLineColorsArr, i); splitLines[colorIndex].push(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Circle"]({ shape: { cx: cx, cy: cy, r: ticksRadius[i].coord } })); } if (showSplitArea && i < ticksRadius.length - 1) { var colorIndex = getColorIndex(splitAreas, splitAreaColorsArr, i); splitAreas[colorIndex].push(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Ring"]({ shape: { cx: cx, cy: cy, r0: ticksRadius[i].coord, r: ticksRadius[i + 1].coord } })); } } } // Polyyon else { var realSplitNumber_1; var axesTicksPoints = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](indicatorAxes, function (indicatorAxis, idx) { var ticksCoords = indicatorAxis.getTicksCoords(); realSplitNumber_1 = realSplitNumber_1 == null ? ticksCoords.length - 1 : Math.min(ticksCoords.length - 1, realSplitNumber_1); return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](ticksCoords, function (tickCoord) { return radar.coordToPoint(tickCoord.coord, idx); }); }); var prevPoints = []; for (var i = 0; i <= realSplitNumber_1; i++) { var points = []; for (var j = 0; j < indicatorAxes.length; j++) { points.push(axesTicksPoints[j][i]); } // Close if (points[0]) { points.push(points[0].slice()); } else { if (true) { console.error('Can\'t draw value axis ' + i); } } if (showSplitLine) { var colorIndex = getColorIndex(splitLines, splitLineColorsArr, i); splitLines[colorIndex].push(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Polyline"]({ shape: { points: points } })); } if (showSplitArea && prevPoints) { var colorIndex = getColorIndex(splitAreas, splitAreaColorsArr, i - 1); splitAreas[colorIndex].push(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Polygon"]({ shape: { points: points.concat(prevPoints) } })); } prevPoints = points.slice().reverse(); } } var lineStyle = lineStyleModel.getLineStyle(); var areaStyle = areaStyleModel.getAreaStyle(); // Add splitArea before splitLine zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](splitAreas, function (splitAreas, idx) { this.group.add(_util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["mergePath"](splitAreas, { style: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]({ stroke: 'none', fill: splitAreaColorsArr[idx % splitAreaColorsArr.length] }, areaStyle), silent: true })); }, this); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](splitLines, function (splitLines, idx) { this.group.add(_util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["mergePath"](splitLines, { style: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]({ fill: 'none', stroke: splitLineColorsArr[idx % splitLineColorsArr.length] }, lineStyle), silent: true })); }, this); }; RadarView.type = 'radar'; return RadarView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"]); /* harmony default export */ __webpack_exports__["default"] = (RadarView); /***/ }), /***/ "./node_modules/echarts/lib/component/radar/install.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/component/radar/install.js ***! \*************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _coord_radar_RadarModel_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../coord/radar/RadarModel.js */ "./node_modules/echarts/lib/coord/radar/RadarModel.js"); /* harmony import */ var _RadarView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RadarView.js */ "./node_modules/echarts/lib/component/radar/RadarView.js"); /* harmony import */ var _coord_radar_Radar_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../coord/radar/Radar.js */ "./node_modules/echarts/lib/coord/radar/Radar.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerCoordinateSystem('radar', _coord_radar_Radar_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerComponentModel(_coord_radar_RadarModel_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerComponentView(_RadarView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerVisual({ seriesType: 'radar', reset: function (seriesModel) { var data = seriesModel.getData(); // itemVisual symbol is for selected data data.each(function (idx) { data.setItemVisual(idx, 'legendIcon', 'roundRect'); }); // visual is for unselected data data.setVisual('legendIcon', 'roundRect'); } }); } /***/ }), /***/ "./node_modules/echarts/lib/component/singleAxis/install.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/component/singleAxis/install.js ***! \******************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var _axis_SingleAxisView_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../axis/SingleAxisView.js */ "./node_modules/echarts/lib/component/axis/SingleAxisView.js"); /* harmony import */ var _coord_axisModelCreator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../coord/axisModelCreator.js */ "./node_modules/echarts/lib/coord/axisModelCreator.js"); /* harmony import */ var _coord_single_AxisModel_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../coord/single/AxisModel.js */ "./node_modules/echarts/lib/coord/single/AxisModel.js"); /* harmony import */ var _coord_single_singleCreator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../coord/single/singleCreator.js */ "./node_modules/echarts/lib/coord/single/singleCreator.js"); /* harmony import */ var _axisPointer_install_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../axisPointer/install.js */ "./node_modules/echarts/lib/component/axisPointer/install.js"); /* harmony import */ var _axis_AxisView_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../axis/AxisView.js */ "./node_modules/echarts/lib/component/axis/AxisView.js"); /* harmony import */ var _axisPointer_SingleAxisPointer_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../axisPointer/SingleAxisPointer.js */ "./node_modules/echarts/lib/component/axisPointer/SingleAxisPointer.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SingleView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SingleView, _super); function SingleView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = SingleView.type; return _this; } SingleView.type = 'single'; return SingleView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_2__["default"]); function install(registers) { Object(_extension_js__WEBPACK_IMPORTED_MODULE_1__["use"])(_axisPointer_install_js__WEBPACK_IMPORTED_MODULE_7__["install"]); _axis_AxisView_js__WEBPACK_IMPORTED_MODULE_8__["default"].registerAxisPointerClass('SingleAxisPointer', _axisPointer_SingleAxisPointer_js__WEBPACK_IMPORTED_MODULE_9__["default"]); registers.registerComponentView(SingleView); // Axis registers.registerComponentView(_axis_SingleAxisView_js__WEBPACK_IMPORTED_MODULE_3__["default"]); registers.registerComponentModel(_coord_single_AxisModel_js__WEBPACK_IMPORTED_MODULE_5__["default"]); Object(_coord_axisModelCreator_js__WEBPACK_IMPORTED_MODULE_4__["default"])(registers, 'single', _coord_single_AxisModel_js__WEBPACK_IMPORTED_MODULE_5__["default"], _coord_single_AxisModel_js__WEBPACK_IMPORTED_MODULE_5__["default"].defaultOption); registers.registerCoordinateSystem('single', _coord_single_singleCreator_js__WEBPACK_IMPORTED_MODULE_6__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/component/timeline/SliderTimelineModel.js": /*!****************************************************************************!*\ !*** ./node_modules/echarts/lib/component/timeline/SliderTimelineModel.js ***! \****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _TimelineModel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TimelineModel.js */ "./node_modules/echarts/lib/component/timeline/TimelineModel.js"); /* harmony import */ var _model_mixin_dataFormat_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/mixin/dataFormat.js */ "./node_modules/echarts/lib/model/mixin/dataFormat.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SliderTimelineModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SliderTimelineModel, _super); function SliderTimelineModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = SliderTimelineModel.type; return _this; } SliderTimelineModel.type = 'timeline.slider'; /** * @protected */ SliderTimelineModel.defaultOption = Object(_util_component_js__WEBPACK_IMPORTED_MODULE_4__["inheritDefaultOption"])(_TimelineModel_js__WEBPACK_IMPORTED_MODULE_1__["default"].defaultOption, { backgroundColor: 'rgba(0,0,0,0)', borderColor: '#ccc', borderWidth: 0, orient: 'horizontal', inverse: false, tooltip: { trigger: 'item' // data item may also have tootip attr. }, symbol: 'circle', symbolSize: 12, lineStyle: { show: true, width: 2, color: '#DAE1F5' }, label: { position: 'auto', // When using number, label position is not // restricted by viewRect. // positive: right/bottom, negative: left/top show: true, interval: 'auto', rotate: 0, // formatter: null, // 其余属性默认使用全局文本样式,详见TEXTSTYLE color: '#A4B1D7' }, itemStyle: { color: '#A4B1D7', borderWidth: 1 }, checkpointStyle: { symbol: 'circle', symbolSize: 15, color: '#316bf3', borderColor: '#fff', borderWidth: 2, shadowBlur: 2, shadowOffsetX: 1, shadowOffsetY: 1, shadowColor: 'rgba(0, 0, 0, 0.3)', // borderColor: 'rgba(194,53,49, 0.5)', animation: true, animationDuration: 300, animationEasing: 'quinticInOut' }, controlStyle: { show: true, showPlayBtn: true, showPrevBtn: true, showNextBtn: true, itemSize: 24, itemGap: 12, position: 'left', playIcon: 'path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z', stopIcon: 'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z', // eslint-disable-next-line max-len nextIcon: 'M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z', // eslint-disable-next-line max-len prevIcon: 'M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z', prevBtnSize: 18, nextBtnSize: 18, color: '#A4B1D7', borderColor: '#A4B1D7', borderWidth: 1 }, emphasis: { label: { show: true, // 其余属性默认使用全局文本样式,详见TEXTSTYLE color: '#6f778d' }, itemStyle: { color: '#316BF3' }, controlStyle: { color: '#316BF3', borderColor: '#316BF3', borderWidth: 2 } }, progress: { lineStyle: { color: '#316BF3' }, itemStyle: { color: '#316BF3' }, label: { color: '#6f778d' } }, data: [] }); return SliderTimelineModel; }(_TimelineModel_js__WEBPACK_IMPORTED_MODULE_1__["default"]); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["mixin"])(SliderTimelineModel, _model_mixin_dataFormat_js__WEBPACK_IMPORTED_MODULE_2__["DataFormatMixin"].prototype); /* harmony default export */ __webpack_exports__["default"] = (SliderTimelineModel); /***/ }), /***/ "./node_modules/echarts/lib/component/timeline/SliderTimelineView.js": /*!***************************************************************************!*\ !*** ./node_modules/echarts/lib/component/timeline/SliderTimelineView.js ***! \***************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/matrix.js */ "./node_modules/zrender/lib/core/matrix.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _TimelineView_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TimelineView.js */ "./node_modules/echarts/lib/component/timeline/TimelineView.js"); /* harmony import */ var _TimelineAxis_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TimelineAxis.js */ "./node_modules/echarts/lib/component/timeline/TimelineAxis.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _scale_Ordinal_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../scale/Ordinal.js */ "./node_modules/echarts/lib/scale/Ordinal.js"); /* harmony import */ var _scale_Time_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../scale/Time.js */ "./node_modules/echarts/lib/scale/Time.js"); /* harmony import */ var _scale_Interval_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../scale/Interval.js */ "./node_modules/echarts/lib/scale/Interval.js"); /* harmony import */ var zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! zrender/lib/contain/text.js */ "./node_modules/zrender/lib/contain/text.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../tooltip/tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PI = Math.PI; var labelDataIndexStore = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_15__["makeInner"])(); var SliderTimelineView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SliderTimelineView, _super); function SliderTimelineView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = SliderTimelineView.type; return _this; } SliderTimelineView.prototype.init = function (ecModel, api) { this.api = api; }; /** * @override */ SliderTimelineView.prototype.render = function (timelineModel, ecModel, api) { this.model = timelineModel; this.api = api; this.ecModel = ecModel; this.group.removeAll(); if (timelineModel.get('show', true)) { var layoutInfo_1 = this._layout(timelineModel, api); var mainGroup_1 = this._createGroup('_mainGroup'); var labelGroup = this._createGroup('_labelGroup'); var axis_1 = this._axis = this._createAxis(layoutInfo_1, timelineModel); timelineModel.formatTooltip = function (dataIndex) { var name = axis_1.scale.getLabel({ value: dataIndex }); return Object(_tooltip_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_18__["createTooltipMarkup"])('nameValue', { noName: true, value: name }); }; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["each"])(['AxisLine', 'AxisTick', 'Control', 'CurrentPointer'], function (name) { this['_render' + name](layoutInfo_1, mainGroup_1, axis_1, timelineModel); }, this); this._renderAxisLabel(layoutInfo_1, labelGroup, axis_1, timelineModel); this._position(layoutInfo_1, timelineModel); } this._doPlayStop(); this._updateTicksStatus(); }; /** * @override */ SliderTimelineView.prototype.remove = function () { this._clearTimer(); this.group.removeAll(); }; /** * @override */ SliderTimelineView.prototype.dispose = function () { this._clearTimer(); }; SliderTimelineView.prototype._layout = function (timelineModel, api) { var labelPosOpt = timelineModel.get(['label', 'position']); var orient = timelineModel.get('orient'); var viewRect = getViewRect(timelineModel, api); var parsedLabelPos; // Auto label offset. if (labelPosOpt == null || labelPosOpt === 'auto') { parsedLabelPos = orient === 'horizontal' ? viewRect.y + viewRect.height / 2 < api.getHeight() / 2 ? '-' : '+' : viewRect.x + viewRect.width / 2 < api.getWidth() / 2 ? '+' : '-'; } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["isString"])(labelPosOpt)) { parsedLabelPos = { horizontal: { top: '-', bottom: '+' }, vertical: { left: '-', right: '+' } }[orient][labelPosOpt]; } else { // is number parsedLabelPos = labelPosOpt; } var labelAlignMap = { horizontal: 'center', vertical: parsedLabelPos >= 0 || parsedLabelPos === '+' ? 'left' : 'right' }; var labelBaselineMap = { horizontal: parsedLabelPos >= 0 || parsedLabelPos === '+' ? 'top' : 'bottom', vertical: 'middle' }; var rotationMap = { horizontal: 0, vertical: PI / 2 }; // Position var mainLength = orient === 'vertical' ? viewRect.height : viewRect.width; var controlModel = timelineModel.getModel('controlStyle'); var showControl = controlModel.get('show', true); var controlSize = showControl ? controlModel.get('itemSize') : 0; var controlGap = showControl ? controlModel.get('itemGap') : 0; var sizePlusGap = controlSize + controlGap; // Special label rotate. var labelRotation = timelineModel.get(['label', 'rotate']) || 0; labelRotation = labelRotation * PI / 180; // To radian. var playPosition; var prevBtnPosition; var nextBtnPosition; var controlPosition = controlModel.get('position', true); var showPlayBtn = showControl && controlModel.get('showPlayBtn', true); var showPrevBtn = showControl && controlModel.get('showPrevBtn', true); var showNextBtn = showControl && controlModel.get('showNextBtn', true); var xLeft = 0; var xRight = mainLength; // position[0] means left, position[1] means middle. if (controlPosition === 'left' || controlPosition === 'bottom') { showPlayBtn && (playPosition = [0, 0], xLeft += sizePlusGap); showPrevBtn && (prevBtnPosition = [xLeft, 0], xLeft += sizePlusGap); showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap); } else { // 'top' 'right' showPlayBtn && (playPosition = [xRight - controlSize, 0], xRight -= sizePlusGap); showPrevBtn && (prevBtnPosition = [0, 0], xLeft += sizePlusGap); showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap); } var axisExtent = [xLeft, xRight]; if (timelineModel.get('inverse')) { axisExtent.reverse(); } return { viewRect: viewRect, mainLength: mainLength, orient: orient, rotation: rotationMap[orient], labelRotation: labelRotation, labelPosOpt: parsedLabelPos, labelAlign: timelineModel.get(['label', 'align']) || labelAlignMap[orient], labelBaseline: timelineModel.get(['label', 'verticalAlign']) || timelineModel.get(['label', 'baseline']) || labelBaselineMap[orient], // Based on mainGroup. playPosition: playPosition, prevBtnPosition: prevBtnPosition, nextBtnPosition: nextBtnPosition, axisExtent: axisExtent, controlSize: controlSize, controlGap: controlGap }; }; SliderTimelineView.prototype._position = function (layoutInfo, timelineModel) { // Position is be called finally, because bounding rect is needed for // adapt content to fill viewRect (auto adapt offset). // Timeline may be not all in the viewRect when 'offset' is specified // as a number, because it is more appropriate that label aligns at // 'offset' but not the other edge defined by viewRect. var mainGroup = this._mainGroup; var labelGroup = this._labelGroup; var viewRect = layoutInfo.viewRect; if (layoutInfo.orient === 'vertical') { // transform to horizontal, inverse rotate by left-top point. var m = zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_2__["create"](); var rotateOriginX = viewRect.x; var rotateOriginY = viewRect.y + viewRect.height; zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_2__["translate"](m, m, [-rotateOriginX, -rotateOriginY]); zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_2__["rotate"](m, m, -PI / 2); zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_2__["translate"](m, m, [rotateOriginX, rotateOriginY]); viewRect = viewRect.clone(); viewRect.applyTransform(m); } var viewBound = getBound(viewRect); var mainBound = getBound(mainGroup.getBoundingRect()); var labelBound = getBound(labelGroup.getBoundingRect()); var mainPosition = [mainGroup.x, mainGroup.y]; var labelsPosition = [labelGroup.x, labelGroup.y]; labelsPosition[0] = mainPosition[0] = viewBound[0][0]; var labelPosOpt = layoutInfo.labelPosOpt; if (labelPosOpt == null || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["isString"])(labelPosOpt)) { // '+' or '-' var mainBoundIdx = labelPosOpt === '+' ? 0 : 1; toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx); toBound(labelsPosition, labelBound, viewBound, 1, 1 - mainBoundIdx); } else { var mainBoundIdx = labelPosOpt >= 0 ? 0 : 1; toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx); labelsPosition[1] = mainPosition[1] + labelPosOpt; } mainGroup.setPosition(mainPosition); labelGroup.setPosition(labelsPosition); mainGroup.rotation = labelGroup.rotation = layoutInfo.rotation; setOrigin(mainGroup); setOrigin(labelGroup); function setOrigin(targetGroup) { targetGroup.originX = viewBound[0][0] - targetGroup.x; targetGroup.originY = viewBound[1][0] - targetGroup.y; } function getBound(rect) { // [[xmin, xmax], [ymin, ymax]] return [[rect.x, rect.x + rect.width], [rect.y, rect.y + rect.height]]; } function toBound(fromPos, from, to, dimIdx, boundIdx) { fromPos[dimIdx] += to[dimIdx][boundIdx] - from[dimIdx][boundIdx]; } }; SliderTimelineView.prototype._createAxis = function (layoutInfo, timelineModel) { var data = timelineModel.getData(); var axisType = timelineModel.get('axisType'); var scale = createScaleByModel(timelineModel, axisType); // Customize scale. The `tickValue` is `dataIndex`. scale.getTicks = function () { return data.mapArray(['value'], function (value) { return { value: value }; }); }; var dataExtent = data.getDataExtent('value'); scale.setExtent(dataExtent[0], dataExtent[1]); scale.calcNiceTicks(); var axis = new _TimelineAxis_js__WEBPACK_IMPORTED_MODULE_7__["default"]('value', scale, layoutInfo.axisExtent, axisType); axis.model = timelineModel; return axis; }; SliderTimelineView.prototype._createGroup = function (key) { var newGroup = this[key] = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Group"](); this.group.add(newGroup); return newGroup; }; SliderTimelineView.prototype._renderAxisLine = function (layoutInfo, group, axis, timelineModel) { var axisExtent = axis.getExtent(); if (!timelineModel.get(['lineStyle', 'show'])) { return; } var line = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Line"]({ shape: { x1: axisExtent[0], y1: 0, x2: axisExtent[1], y2: 0 }, style: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["extend"])({ lineCap: 'round' }, timelineModel.getModel('lineStyle').getLineStyle()), silent: true, z2: 1 }); group.add(line); var progressLine = this._progressLine = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Line"]({ shape: { x1: axisExtent[0], x2: this._currentPointer ? this._currentPointer.x : axisExtent[0], y1: 0, y2: 0 }, style: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["defaults"])({ lineCap: 'round', lineWidth: line.style.lineWidth }, timelineModel.getModel(['progress', 'lineStyle']).getLineStyle()), silent: true, z2: 1 }); group.add(progressLine); }; SliderTimelineView.prototype._renderAxisTick = function (layoutInfo, group, axis, timelineModel) { var _this = this; var data = timelineModel.getData(); // Show all ticks, despite ignoring strategy. var ticks = axis.scale.getTicks(); this._tickSymbols = []; // The value is dataIndex, see the customized scale. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["each"])(ticks, function (tick) { var tickCoord = axis.dataToCoord(tick.value); var itemModel = data.getItemModel(tick.value); var itemStyleModel = itemModel.getModel('itemStyle'); var hoverStyleModel = itemModel.getModel(['emphasis', 'itemStyle']); var progressStyleModel = itemModel.getModel(['progress', 'itemStyle']); var symbolOpt = { x: tickCoord, y: 0, onclick: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["bind"])(_this._changeTimeline, _this, tick.value) }; var el = giveSymbol(itemModel, itemStyleModel, group, symbolOpt); el.ensureState('emphasis').style = hoverStyleModel.getItemStyle(); el.ensureState('progress').style = progressStyleModel.getItemStyle(); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["enableHoverEmphasis"])(el); var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_16__["getECData"])(el); if (itemModel.get('tooltip')) { ecData.dataIndex = tick.value; ecData.dataModel = timelineModel; } else { ecData.dataIndex = ecData.dataModel = null; } _this._tickSymbols.push(el); }); }; SliderTimelineView.prototype._renderAxisLabel = function (layoutInfo, group, axis, timelineModel) { var _this = this; var labelModel = axis.getLabelModel(); if (!labelModel.get('show')) { return; } var data = timelineModel.getData(); var labels = axis.getViewLabels(); this._tickLabels = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["each"])(labels, function (labelItem) { // The tickValue is dataIndex, see the customized scale. var dataIndex = labelItem.tickValue; var itemModel = data.getItemModel(dataIndex); var normalLabelModel = itemModel.getModel('label'); var hoverLabelModel = itemModel.getModel(['emphasis', 'label']); var progressLabelModel = itemModel.getModel(['progress', 'label']); var tickCoord = axis.dataToCoord(labelItem.tickValue); var textEl = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Text"]({ x: tickCoord, y: 0, rotation: layoutInfo.labelRotation - layoutInfo.rotation, onclick: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["bind"])(_this._changeTimeline, _this, dataIndex), silent: false, style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextStyle"])(normalLabelModel, { text: labelItem.formattedLabel, align: layoutInfo.labelAlign, verticalAlign: layoutInfo.labelBaseline }) }); textEl.ensureState('emphasis').style = Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextStyle"])(hoverLabelModel); textEl.ensureState('progress').style = Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextStyle"])(progressLabelModel); group.add(textEl); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["enableHoverEmphasis"])(textEl); labelDataIndexStore(textEl).dataIndex = dataIndex; _this._tickLabels.push(textEl); }); }; SliderTimelineView.prototype._renderControl = function (layoutInfo, group, axis, timelineModel) { var controlSize = layoutInfo.controlSize; var rotation = layoutInfo.rotation; var itemStyle = timelineModel.getModel('controlStyle').getItemStyle(); var hoverStyle = timelineModel.getModel(['emphasis', 'controlStyle']).getItemStyle(); var playState = timelineModel.getPlayState(); var inverse = timelineModel.get('inverse', true); makeBtn(layoutInfo.nextBtnPosition, 'next', Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["bind"])(this._changeTimeline, this, inverse ? '-' : '+')); makeBtn(layoutInfo.prevBtnPosition, 'prev', Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["bind"])(this._changeTimeline, this, inverse ? '+' : '-')); makeBtn(layoutInfo.playPosition, playState ? 'stop' : 'play', Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["bind"])(this._handlePlayClick, this, !playState), true); function makeBtn(position, iconName, onclick, willRotate) { if (!position) { return; } var iconSize = Object(zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_14__["parsePercent"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["retrieve2"])(timelineModel.get(['controlStyle', iconName + 'BtnSize']), controlSize), controlSize); var rect = [0, -iconSize / 2, iconSize, iconSize]; var btn = makeControlIcon(timelineModel, iconName + 'Icon', rect, { x: position[0], y: position[1], originX: controlSize / 2, originY: 0, rotation: willRotate ? -rotation : 0, rectHover: true, style: itemStyle, onclick: onclick }); btn.ensureState('emphasis').style = hoverStyle; group.add(btn); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["enableHoverEmphasis"])(btn); } }; SliderTimelineView.prototype._renderCurrentPointer = function (layoutInfo, group, axis, timelineModel) { var data = timelineModel.getData(); var currentIndex = timelineModel.getCurrentIndex(); var pointerModel = data.getItemModel(currentIndex).getModel('checkpointStyle'); var me = this; var callback = { onCreate: function (pointer) { pointer.draggable = true; pointer.drift = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["bind"])(me._handlePointerDrag, me); pointer.ondragend = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["bind"])(me._handlePointerDragend, me); pointerMoveTo(pointer, me._progressLine, currentIndex, axis, timelineModel, true); }, onUpdate: function (pointer) { pointerMoveTo(pointer, me._progressLine, currentIndex, axis, timelineModel); } }; // Reuse when exists, for animation and drag. this._currentPointer = giveSymbol(pointerModel, pointerModel, this._mainGroup, {}, this._currentPointer, callback); }; SliderTimelineView.prototype._handlePlayClick = function (nextState) { this._clearTimer(); this.api.dispatchAction({ type: 'timelinePlayChange', playState: nextState, from: this.uid }); }; SliderTimelineView.prototype._handlePointerDrag = function (dx, dy, e) { this._clearTimer(); this._pointerChangeTimeline([e.offsetX, e.offsetY]); }; SliderTimelineView.prototype._handlePointerDragend = function (e) { this._pointerChangeTimeline([e.offsetX, e.offsetY], true); }; SliderTimelineView.prototype._pointerChangeTimeline = function (mousePos, trigger) { var toCoord = this._toAxisCoord(mousePos)[0]; var axis = this._axis; var axisExtent = _util_number_js__WEBPACK_IMPORTED_MODULE_9__["asc"](axis.getExtent().slice()); toCoord > axisExtent[1] && (toCoord = axisExtent[1]); toCoord < axisExtent[0] && (toCoord = axisExtent[0]); this._currentPointer.x = toCoord; this._currentPointer.markRedraw(); var progressLine = this._progressLine; if (progressLine) { progressLine.shape.x2 = toCoord; progressLine.dirty(); } var targetDataIndex = this._findNearestTick(toCoord); var timelineModel = this.model; if (trigger || targetDataIndex !== timelineModel.getCurrentIndex() && timelineModel.get('realtime')) { this._changeTimeline(targetDataIndex); } }; SliderTimelineView.prototype._doPlayStop = function () { var _this = this; this._clearTimer(); if (this.model.getPlayState()) { this._timer = setTimeout(function () { // Do not cache var timelineModel = _this.model; _this._changeTimeline(timelineModel.getCurrentIndex() + (timelineModel.get('rewind', true) ? -1 : 1)); }, this.model.get('playInterval')); } }; SliderTimelineView.prototype._toAxisCoord = function (vertex) { var trans = this._mainGroup.getLocalTransform(); return _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["applyTransform"](vertex, trans, true); }; SliderTimelineView.prototype._findNearestTick = function (axisCoord) { var data = this.model.getData(); var dist = Infinity; var targetDataIndex; var axis = this._axis; data.each(['value'], function (value, dataIndex) { var coord = axis.dataToCoord(value); var d = Math.abs(coord - axisCoord); if (d < dist) { dist = d; targetDataIndex = dataIndex; } }); return targetDataIndex; }; SliderTimelineView.prototype._clearTimer = function () { if (this._timer) { clearTimeout(this._timer); this._timer = null; } }; SliderTimelineView.prototype._changeTimeline = function (nextIndex) { var currentIndex = this.model.getCurrentIndex(); if (nextIndex === '+') { nextIndex = currentIndex + 1; } else if (nextIndex === '-') { nextIndex = currentIndex - 1; } this.api.dispatchAction({ type: 'timelineChange', currentIndex: nextIndex, from: this.uid }); }; SliderTimelineView.prototype._updateTicksStatus = function () { var currentIndex = this.model.getCurrentIndex(); var tickSymbols = this._tickSymbols; var tickLabels = this._tickLabels; if (tickSymbols) { for (var i = 0; i < tickSymbols.length; i++) { tickSymbols && tickSymbols[i] && tickSymbols[i].toggleState('progress', i < currentIndex); } } if (tickLabels) { for (var i = 0; i < tickLabels.length; i++) { tickLabels && tickLabels[i] && tickLabels[i].toggleState('progress', labelDataIndexStore(tickLabels[i]).dataIndex <= currentIndex); } } }; SliderTimelineView.type = 'timeline.slider'; return SliderTimelineView; }(_TimelineView_js__WEBPACK_IMPORTED_MODULE_6__["default"]); function createScaleByModel(model, axisType) { axisType = axisType || model.get('type'); if (axisType) { switch (axisType) { // Buildin scale case 'category': return new _scale_Ordinal_js__WEBPACK_IMPORTED_MODULE_11__["default"]({ ordinalMeta: model.getCategories(), extent: [Infinity, -Infinity] }); case 'time': return new _scale_Time_js__WEBPACK_IMPORTED_MODULE_12__["default"]({ locale: model.ecModel.getLocaleModel(), useUTC: model.ecModel.get('useUTC') }); default: // default to be value return new _scale_Interval_js__WEBPACK_IMPORTED_MODULE_13__["default"](); } } } function getViewRect(model, api) { return _util_layout_js__WEBPACK_IMPORTED_MODULE_5__["getLayoutRect"](model.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() }, model.get('padding')); } function makeControlIcon(timelineModel, objPath, rect, opts) { var style = opts.style; var icon = _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["createIcon"](timelineModel.get(['controlStyle', objPath]), opts || {}, new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__["default"](rect[0], rect[1], rect[2], rect[3])); // TODO createIcon won't use style in opt. if (style) { icon.setStyle(style); } return icon; } /** * Create symbol or update symbol * opt: basic position and event handlers */ function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) { var color = itemStyleModel.get('color'); if (!symbol) { var symbolType = hostModel.get('symbol'); symbol = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_8__["createSymbol"])(symbolType, -1, -1, 2, 2, color); symbol.setStyle('strokeNoScale', true); group.add(symbol); callback && callback.onCreate(symbol); } else { symbol.setColor(color); group.add(symbol); // Group may be new, also need to add. callback && callback.onUpdate(symbol); } // Style var itemStyle = itemStyleModel.getItemStyle(['color']); symbol.setStyle(itemStyle); // Transform and events. opt = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_10__["merge"])({ rectHover: true, z2: 100 }, opt, true); var symbolSize = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_8__["normalizeSymbolSize"])(hostModel.get('symbolSize')); opt.scaleX = symbolSize[0] / 2; opt.scaleY = symbolSize[1] / 2; var symbolOffset = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_8__["normalizeSymbolOffset"])(hostModel.get('symbolOffset'), symbolSize); if (symbolOffset) { opt.x = (opt.x || 0) + symbolOffset[0]; opt.y = (opt.y || 0) + symbolOffset[1]; } var symbolRotate = hostModel.get('symbolRotate'); opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0; symbol.attr(opt); // FIXME // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed, // getBoundingRect will return wrong result. // (This is supposed to be resolved in zrender, but it is a little difficult to // leverage performance and auto updateTransform) // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol. symbol.updateTransform(); return symbol; } function pointerMoveTo(pointer, progressLine, dataIndex, axis, timelineModel, noAnimation) { if (pointer.dragging) { return; } var pointerModel = timelineModel.getModel('checkpointStyle'); var toCoord = axis.dataToCoord(timelineModel.getData().get('value', dataIndex)); if (noAnimation || !pointerModel.get('animation', true)) { pointer.attr({ x: toCoord, y: 0 }); progressLine && progressLine.attr({ shape: { x2: toCoord } }); } else { var animationCfg = { duration: pointerModel.get('animationDuration', true), easing: pointerModel.get('animationEasing', true) }; pointer.stopAnimation(null, true); pointer.animateTo({ x: toCoord, y: 0 }, animationCfg); progressLine && progressLine.animateTo({ shape: { x2: toCoord } }, animationCfg); } } /* harmony default export */ __webpack_exports__["default"] = (SliderTimelineView); /***/ }), /***/ "./node_modules/echarts/lib/component/timeline/TimelineAxis.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/component/timeline/TimelineAxis.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _coord_Axis_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../coord/Axis.js */ "./node_modules/echarts/lib/coord/Axis.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Extend axis 2d */ var TimelineAxis = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TimelineAxis, _super); function TimelineAxis(dim, scale, coordExtent, axisType) { var _this = _super.call(this, dim, scale, coordExtent) || this; _this.type = axisType || 'value'; return _this; } /** * @override */ TimelineAxis.prototype.getLabelModel = function () { // Force override return this.model.getModel('label'); }; /** * @override */ TimelineAxis.prototype.isHorizontal = function () { return this.model.get('orient') === 'horizontal'; }; return TimelineAxis; }(_coord_Axis_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (TimelineAxis); /***/ }), /***/ "./node_modules/echarts/lib/component/timeline/TimelineModel.js": /*!**********************************************************************!*\ !*** ./node_modules/echarts/lib/component/timeline/TimelineModel.js ***! \**********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../data/SeriesData.js */ "./node_modules/echarts/lib/data/SeriesData.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TimelineModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TimelineModel, _super); function TimelineModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = TimelineModel.type; _this.layoutMode = 'box'; return _this; } /** * @override */ TimelineModel.prototype.init = function (option, parentModel, ecModel) { this.mergeDefaultAndTheme(option, ecModel); this._initData(); }; /** * @override */ TimelineModel.prototype.mergeOption = function (option) { _super.prototype.mergeOption.apply(this, arguments); this._initData(); }; TimelineModel.prototype.setCurrentIndex = function (currentIndex) { if (currentIndex == null) { currentIndex = this.option.currentIndex; } var count = this._data.count(); if (this.option.loop) { currentIndex = (currentIndex % count + count) % count; } else { currentIndex >= count && (currentIndex = count - 1); currentIndex < 0 && (currentIndex = 0); } this.option.currentIndex = currentIndex; }; /** * @return {number} currentIndex */ TimelineModel.prototype.getCurrentIndex = function () { return this.option.currentIndex; }; /** * @return {boolean} */ TimelineModel.prototype.isIndexMax = function () { return this.getCurrentIndex() >= this._data.count() - 1; }; /** * @param {boolean} state true: play, false: stop */ TimelineModel.prototype.setPlayState = function (state) { this.option.autoPlay = !!state; }; /** * @return {boolean} true: play, false: stop */ TimelineModel.prototype.getPlayState = function () { return !!this.option.autoPlay; }; /** * @private */ TimelineModel.prototype._initData = function () { var thisOption = this.option; var dataArr = thisOption.data || []; var axisType = thisOption.axisType; var names = this._names = []; var processedDataArr; if (axisType === 'category') { processedDataArr = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(dataArr, function (item, index) { var value = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_4__["convertOptionIdName"])(Object(_util_model_js__WEBPACK_IMPORTED_MODULE_4__["getDataItemValue"])(item), ''); var newItem; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["isObject"])(item)) { newItem = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["clone"])(item); newItem.value = index; } else { newItem = index; } processedDataArr.push(newItem); names.push(value); }); } else { processedDataArr = dataArr; } var dimType = { category: 'ordinal', time: 'time', value: 'number' }[axisType] || 'number'; var data = this._data = new _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_2__["default"]([{ name: 'value', type: dimType }], this); data.initData(processedDataArr, names); }; TimelineModel.prototype.getData = function () { return this._data; }; /** * @public * @return {Array.} categoreis */ TimelineModel.prototype.getCategories = function () { if (this.get('axisType') === 'category') { return this._names.slice(); } }; TimelineModel.type = 'timeline'; /** * @protected */ TimelineModel.defaultOption = { // zlevel: 0, // 一级层叠 z: 4, show: true, axisType: 'time', realtime: true, left: '20%', top: null, right: '20%', bottom: 0, width: null, height: 40, padding: 5, controlPosition: 'left', autoPlay: false, rewind: false, loop: true, playInterval: 2000, currentIndex: 0, itemStyle: {}, label: { color: '#000' }, data: [] }; return TimelineModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (TimelineModel); /***/ }), /***/ "./node_modules/echarts/lib/component/timeline/TimelineView.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/component/timeline/TimelineView.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TimelineView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TimelineView, _super); function TimelineView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = TimelineView.type; return _this; } TimelineView.type = 'timeline'; return TimelineView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (TimelineView); /***/ }), /***/ "./node_modules/echarts/lib/component/timeline/install.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/component/timeline/install.js ***! \****************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _SliderTimelineModel_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SliderTimelineModel.js */ "./node_modules/echarts/lib/component/timeline/SliderTimelineModel.js"); /* harmony import */ var _SliderTimelineView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SliderTimelineView.js */ "./node_modules/echarts/lib/component/timeline/SliderTimelineView.js"); /* harmony import */ var _timelineAction_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./timelineAction.js */ "./node_modules/echarts/lib/component/timeline/timelineAction.js"); /* harmony import */ var _preprocessor_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./preprocessor.js */ "./node_modules/echarts/lib/component/timeline/preprocessor.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ function install(registers) { registers.registerComponentModel(_SliderTimelineModel_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerComponentView(_SliderTimelineView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); registers.registerSubTypeDefaulter('timeline', function () { // Only slider now. return 'slider'; }); Object(_timelineAction_js__WEBPACK_IMPORTED_MODULE_2__["installTimelineAction"])(registers); registers.registerPreprocessor(_preprocessor_js__WEBPACK_IMPORTED_MODULE_3__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/component/timeline/preprocessor.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/component/timeline/preprocessor.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return timelinePreprocessor; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // @ts-nocheck function timelinePreprocessor(option) { var timelineOpt = option && option.timeline; if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](timelineOpt)) { timelineOpt = timelineOpt ? [timelineOpt] : []; } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](timelineOpt, function (opt) { if (!opt) { return; } compatibleEC2(opt); }); } function compatibleEC2(opt) { var type = opt.type; var ec2Types = { 'number': 'value', 'time': 'time' }; // Compatible with ec2 if (ec2Types[type]) { opt.axisType = ec2Types[type]; delete opt.type; } transferItem(opt); if (has(opt, 'controlPosition')) { var controlStyle = opt.controlStyle || (opt.controlStyle = {}); if (!has(controlStyle, 'position')) { controlStyle.position = opt.controlPosition; } if (controlStyle.position === 'none' && !has(controlStyle, 'show')) { controlStyle.show = false; delete controlStyle.position; } delete opt.controlPosition; } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](opt.data || [], function (dataItem) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](dataItem) && !zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](dataItem)) { if (!has(dataItem, 'value') && has(dataItem, 'name')) { // In ec2, using name as value. dataItem.value = dataItem.name; } transferItem(dataItem); } }); } function transferItem(opt) { var itemStyle = opt.itemStyle || (opt.itemStyle = {}); var itemStyleEmphasis = itemStyle.emphasis || (itemStyle.emphasis = {}); // Transfer label out var label = opt.label || opt.label || {}; var labelNormal = label.normal || (label.normal = {}); var excludeLabelAttr = { normal: 1, emphasis: 1 }; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](label, function (value, name) { if (!excludeLabelAttr[name] && !has(labelNormal, name)) { labelNormal[name] = value; } }); if (itemStyleEmphasis.label && !has(label, 'emphasis')) { label.emphasis = itemStyleEmphasis.label; delete itemStyleEmphasis.label; } } function has(obj, attr) { return obj.hasOwnProperty(attr); } /***/ }), /***/ "./node_modules/echarts/lib/component/timeline/timelineAction.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/timeline/timelineAction.js ***! \***********************************************************************/ /*! exports provided: installTimelineAction */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "installTimelineAction", function() { return installTimelineAction; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function installTimelineAction(registers) { registers.registerAction({ type: 'timelineChange', event: 'timelineChanged', update: 'prepareAndUpdate' }, function (payload, ecModel, api) { var timelineModel = ecModel.getComponent('timeline'); if (timelineModel && payload.currentIndex != null) { timelineModel.setCurrentIndex(payload.currentIndex); if (!timelineModel.get('loop', true) && timelineModel.isIndexMax() && timelineModel.getPlayState()) { timelineModel.setPlayState(false); // The timeline has played to the end, trigger event api.dispatchAction({ type: 'timelinePlayChange', playState: false, from: payload.from }); } } // Set normalized currentIndex to payload. ecModel.resetOption('timeline', { replaceMerge: timelineModel.get('replaceMerge', true) }); return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"])({ currentIndex: timelineModel.option.currentIndex }, payload); }); registers.registerAction({ type: 'timelinePlayChange', event: 'timelinePlayChanged', update: 'update' }, function (payload, ecModel) { var timelineModel = ecModel.getComponent('timeline'); if (timelineModel && payload.playState != null) { timelineModel.setPlayState(payload.playState); } }); } /***/ }), /***/ "./node_modules/echarts/lib/component/title/install.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/component/title/install.js ***! \*************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TitleModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TitleModel, _super); function TitleModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = TitleModel.type; _this.layoutMode = { type: 'box', ignoreSize: true }; return _this; } TitleModel.type = 'title'; TitleModel.defaultOption = { // zlevel: 0, z: 6, show: true, text: '', target: 'blank', subtext: '', subtarget: 'blank', left: 0, top: 0, backgroundColor: 'rgba(0,0,0,0)', borderColor: '#ccc', borderWidth: 0, padding: 5, itemGap: 10, textStyle: { fontSize: 18, fontWeight: 'bold', color: '#464646' }, subtextStyle: { fontSize: 12, color: '#6E7079' } }; return TitleModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_6__["default"]); // View var TitleView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TitleView, _super); function TitleView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = TitleView.type; return _this; } TitleView.prototype.render = function (titleModel, ecModel, api) { this.group.removeAll(); if (!titleModel.get('show')) { return; } var group = this.group; var textStyleModel = titleModel.getModel('textStyle'); var subtextStyleModel = titleModel.getModel('subtextStyle'); var textAlign = titleModel.get('textAlign'); var textVerticalAlign = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"](titleModel.get('textBaseline'), titleModel.get('textVerticalAlign')); var textEl = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"]({ style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextStyle"])(textStyleModel, { text: titleModel.get('text'), fill: textStyleModel.getTextColor() }, { disableBox: true }), z2: 10 }); var textRect = textEl.getBoundingRect(); var subText = titleModel.get('subtext'); var subTextEl = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Text"]({ style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_4__["createTextStyle"])(subtextStyleModel, { text: subText, fill: subtextStyleModel.getTextColor(), y: textRect.height + titleModel.get('itemGap'), verticalAlign: 'top' }, { disableBox: true }), z2: 10 }); var link = titleModel.get('link'); var sublink = titleModel.get('sublink'); var triggerEvent = titleModel.get('triggerEvent', true); textEl.silent = !link && !triggerEvent; subTextEl.silent = !sublink && !triggerEvent; if (link) { textEl.on('click', function () { Object(_util_format_js__WEBPACK_IMPORTED_MODULE_8__["windowOpen"])(link, '_' + titleModel.get('target')); }); } if (sublink) { subTextEl.on('click', function () { Object(_util_format_js__WEBPACK_IMPORTED_MODULE_8__["windowOpen"])(sublink, '_' + titleModel.get('subtarget')); }); } Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__["getECData"])(textEl).eventData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_3__["getECData"])(subTextEl).eventData = triggerEvent ? { componentType: 'title', componentIndex: titleModel.componentIndex } : null; group.add(textEl); subText && group.add(subTextEl); // If no subText, but add subTextEl, there will be an empty line. var groupRect = group.getBoundingRect(); var layoutOption = titleModel.getBoxLayoutParams(); layoutOption.width = groupRect.width; layoutOption.height = groupRect.height; var layoutRect = Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_5__["getLayoutRect"])(layoutOption, { width: api.getWidth(), height: api.getHeight() }, titleModel.get('padding')); // Adjust text align based on position if (!textAlign) { // Align left if title is on the left. center and right is same textAlign = titleModel.get('left') || titleModel.get('right'); // @ts-ignore if (textAlign === 'middle') { textAlign = 'center'; } // Adjust layout by text align if (textAlign === 'right') { layoutRect.x += layoutRect.width; } else if (textAlign === 'center') { layoutRect.x += layoutRect.width / 2; } } if (!textVerticalAlign) { textVerticalAlign = titleModel.get('top') || titleModel.get('bottom'); // @ts-ignore if (textVerticalAlign === 'center') { textVerticalAlign = 'middle'; } if (textVerticalAlign === 'bottom') { layoutRect.y += layoutRect.height; } else if (textVerticalAlign === 'middle') { layoutRect.y += layoutRect.height / 2; } textVerticalAlign = textVerticalAlign || 'top'; } group.x = layoutRect.x; group.y = layoutRect.y; group.markRedraw(); var alignStyle = { align: textAlign, verticalAlign: textVerticalAlign }; textEl.setStyle(alignStyle); subTextEl.setStyle(alignStyle); // Render background // Get groupRect again because textAlign has been changed groupRect = group.getBoundingRect(); var padding = layoutRect.margin; var style = titleModel.getItemStyle(['color', 'opacity']); style.fill = titleModel.get('backgroundColor'); var rect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Rect"]({ shape: { x: groupRect.x - padding[3], y: groupRect.y - padding[0], width: groupRect.width + padding[1] + padding[3], height: groupRect.height + padding[0] + padding[2], r: titleModel.get('borderRadius') }, style: style, subPixelOptimize: true, silent: true }); group.add(rect); }; TitleView.type = 'title'; return TitleView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_7__["default"]); function install(registers) { registers.registerComponentModel(TitleModel); registers.registerComponentView(TitleView); } /***/ }), /***/ "./node_modules/echarts/lib/component/toolbox/ToolboxModel.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/component/toolbox/ToolboxModel.js ***! \********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _featureManager_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./featureManager.js */ "./node_modules/echarts/lib/component/toolbox/featureManager.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ToolboxModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ToolboxModel, _super); function ToolboxModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ToolboxModel.type; return _this; } ToolboxModel.prototype.optionUpdated = function () { _super.prototype.optionUpdated.apply(this, arguments); var ecModel = this.ecModel; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](this.option.feature, function (featureOpt, featureName) { var Feature = _featureManager_js__WEBPACK_IMPORTED_MODULE_2__["getFeature"](featureName); if (Feature) { if (Feature.getDefaultOption) { Feature.defaultOption = Feature.getDefaultOption(ecModel); } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](featureOpt, Feature.defaultOption); } }); }; ToolboxModel.type = 'toolbox'; ToolboxModel.layoutMode = { type: 'box', ignoreSize: true }; ToolboxModel.defaultOption = { show: true, z: 6, // zlevel: 0, orient: 'horizontal', left: 'right', top: 'top', // right // bottom backgroundColor: 'transparent', borderColor: '#ccc', borderRadius: 0, borderWidth: 0, padding: 5, itemSize: 15, itemGap: 8, showTitle: true, iconStyle: { borderColor: '#666', color: 'none' }, emphasis: { iconStyle: { borderColor: '#3E98C5' } }, // textStyle: {}, // feature tooltip: { show: false, position: 'bottom' } }; return ToolboxModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_3__["default"]); /* harmony default export */ __webpack_exports__["default"] = (ToolboxModel); /***/ }), /***/ "./node_modules/echarts/lib/component/toolbox/ToolboxView.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/component/toolbox/ToolboxView.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/contain/text.js */ "./node_modules/zrender/lib/contain/text.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../data/DataDiffer.js */ "./node_modules/echarts/lib/data/DataDiffer.js"); /* harmony import */ var _helper_listComponent_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helper/listComponent.js */ "./node_modules/echarts/lib/component/helper/listComponent.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var _featureManager_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./featureManager.js */ "./node_modules/echarts/lib/component/toolbox/featureManager.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* harmony import */ var zrender_lib_graphic_Text_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! zrender/lib/graphic/Text.js */ "./node_modules/zrender/lib/graphic/Text.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ToolboxView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ToolboxView, _super); function ToolboxView() { return _super !== null && _super.apply(this, arguments) || this; } ToolboxView.prototype.render = function (toolboxModel, ecModel, api, payload) { var group = this.group; group.removeAll(); if (!toolboxModel.get('show')) { return; } var itemSize = +toolboxModel.get('itemSize'); var isVertical = toolboxModel.get('orient') === 'vertical'; var featureOpts = toolboxModel.get('feature') || {}; var features = this._features || (this._features = {}); var featureNames = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](featureOpts, function (opt, name) { featureNames.push(name); }); new _data_DataDiffer_js__WEBPACK_IMPORTED_MODULE_6__["default"](this._featureNames || [], featureNames).add(processFeature).update(processFeature).remove(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"](processFeature, null)).execute(); // Keep for diff. this._featureNames = featureNames; function processFeature(newIndex, oldIndex) { var featureName = featureNames[newIndex]; var oldName = featureNames[oldIndex]; var featureOpt = featureOpts[featureName]; var featureModel = new _model_Model_js__WEBPACK_IMPORTED_MODULE_5__["default"](featureOpt, toolboxModel, toolboxModel.ecModel); var feature; // FIX#11236, merge feature title from MagicType newOption. TODO: consider seriesIndex ? if (payload && payload.newTitle != null && payload.featureName === featureName) { featureOpt.title = payload.newTitle; } if (featureName && !oldName) { // Create if (isUserFeatureName(featureName)) { feature = { onclick: featureModel.option.onclick, featureName: featureName }; } else { var Feature = Object(_featureManager_js__WEBPACK_IMPORTED_MODULE_9__["getFeature"])(featureName); if (!Feature) { return; } feature = new Feature(); } features[featureName] = feature; } else { feature = features[oldName]; // If feature does not exist. if (!feature) { return; } } feature.uid = Object(_util_component_js__WEBPACK_IMPORTED_MODULE_10__["getUID"])('toolbox-feature'); feature.model = featureModel; feature.ecModel = ecModel; feature.api = api; var isToolboxFeature = feature instanceof _featureManager_js__WEBPACK_IMPORTED_MODULE_9__["ToolboxFeature"]; if (!featureName && oldName) { isToolboxFeature && feature.dispose && feature.dispose(ecModel, api); return; } if (!featureModel.get('show') || isToolboxFeature && feature.unusable) { isToolboxFeature && feature.remove && feature.remove(ecModel, api); return; } createIconPaths(featureModel, feature, featureName); featureModel.setIconStatus = function (iconName, status) { var option = this.option; var iconPaths = this.iconPaths; option.iconStatus = option.iconStatus || {}; option.iconStatus[iconName] = status; if (iconPaths[iconName]) { (status === 'emphasis' ? _util_states_js__WEBPACK_IMPORTED_MODULE_4__["enterEmphasis"] : _util_states_js__WEBPACK_IMPORTED_MODULE_4__["leaveEmphasis"])(iconPaths[iconName]); } }; if (feature instanceof _featureManager_js__WEBPACK_IMPORTED_MODULE_9__["ToolboxFeature"]) { if (feature.render) { feature.render(featureModel, ecModel, api, payload); } } } function createIconPaths(featureModel, feature, featureName) { var iconStyleModel = featureModel.getModel('iconStyle'); var iconStyleEmphasisModel = featureModel.getModel(['emphasis', 'iconStyle']); // If one feature has multiple icons, they are organized as // { // icon: { // foo: '', // bar: '' // }, // title: { // foo: '', // bar: '' // } // } var icons = feature instanceof _featureManager_js__WEBPACK_IMPORTED_MODULE_9__["ToolboxFeature"] && feature.getIcons ? feature.getIcons() : featureModel.get('icon'); var titles = featureModel.get('title') || {}; var iconsMap; var titlesMap; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"](icons)) { iconsMap = {}; iconsMap[featureName] = icons; } else { iconsMap = icons; } if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"](titles)) { titlesMap = {}; titlesMap[featureName] = titles; } else { titlesMap = titles; } var iconPaths = featureModel.iconPaths = {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](iconsMap, function (iconStr, iconName) { var path = _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["createIcon"](iconStr, {}, { x: -itemSize / 2, y: -itemSize / 2, width: itemSize, height: itemSize }); // TODO handling image path.setStyle(iconStyleModel.getItemStyle()); var pathEmphasisState = path.ensureState('emphasis'); pathEmphasisState.style = iconStyleEmphasisModel.getItemStyle(); // Text position calculation // TODO: extract `textStyle` from `iconStyle` and use `createTextStyle` var textContent = new zrender_lib_graphic_Text_js__WEBPACK_IMPORTED_MODULE_11__["default"]({ style: { text: titlesMap[iconName], align: iconStyleEmphasisModel.get('textAlign'), borderRadius: iconStyleEmphasisModel.get('textBorderRadius'), padding: iconStyleEmphasisModel.get('textPadding'), fill: null, font: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_12__["getFont"])({ fontStyle: iconStyleEmphasisModel.get('textFontStyle'), fontFamily: iconStyleEmphasisModel.get('textFontFamily'), fontSize: iconStyleEmphasisModel.get('textFontSize'), fontWeight: iconStyleEmphasisModel.get('textFontWeight') }, ecModel) }, ignore: true }); path.setTextContent(textContent); _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["setTooltipConfig"]({ el: path, componentModel: toolboxModel, itemName: iconName, formatterParamsExtra: { title: titlesMap[iconName] } }); path.__title = titlesMap[iconName]; path.on('mouseover', function () { // Should not reuse above hoverStyle, which might be modified. var hoverStyle = iconStyleEmphasisModel.getItemStyle(); var defaultTextPosition = isVertical ? toolboxModel.get('right') == null && toolboxModel.get('left') !== 'right' ? 'right' : 'left' : toolboxModel.get('bottom') == null && toolboxModel.get('top') !== 'bottom' ? 'bottom' : 'top'; textContent.setStyle({ fill: iconStyleEmphasisModel.get('textFill') || hoverStyle.fill || hoverStyle.stroke || '#000', backgroundColor: iconStyleEmphasisModel.get('textBackgroundColor') }); path.setTextConfig({ position: iconStyleEmphasisModel.get('textPosition') || defaultTextPosition }); textContent.ignore = !toolboxModel.get('showTitle'); // Use enterEmphasis and leaveEmphasis provide by ec. // There are flags managed by the echarts. api.enterEmphasis(this); }).on('mouseout', function () { if (featureModel.get(['iconStatus', iconName]) !== 'emphasis') { api.leaveEmphasis(this); } textContent.hide(); }); (featureModel.get(['iconStatus', iconName]) === 'emphasis' ? _util_states_js__WEBPACK_IMPORTED_MODULE_4__["enterEmphasis"] : _util_states_js__WEBPACK_IMPORTED_MODULE_4__["leaveEmphasis"])(path); group.add(path); path.on('click', zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](feature.onclick, feature, ecModel, api, iconName)); iconPaths[iconName] = path; }); } _helper_listComponent_js__WEBPACK_IMPORTED_MODULE_7__["layout"](group, toolboxModel, api); // Render background after group is layout // FIXME group.add(_helper_listComponent_js__WEBPACK_IMPORTED_MODULE_7__["makeBackground"](group.getBoundingRect(), toolboxModel)); // Adjust icon title positions to avoid them out of screen isVertical || group.eachChild(function (icon) { var titleText = icon.__title; // const hoverStyle = icon.hoverStyle; // TODO simplify code? var emphasisState = icon.ensureState('emphasis'); var emphasisTextConfig = emphasisState.textConfig || (emphasisState.textConfig = {}); var textContent = icon.getTextContent(); var emphasisTextState = textContent && textContent.ensureState('emphasis'); // May be background element if (emphasisTextState && !zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"](emphasisTextState) && titleText) { var emphasisTextStyle = emphasisTextState.style || (emphasisTextState.style = {}); var rect = zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_2__["getBoundingRect"](titleText, zrender_lib_graphic_Text_js__WEBPACK_IMPORTED_MODULE_11__["default"].makeFont(emphasisTextStyle)); var offsetX = icon.x + group.x; var offsetY = icon.y + group.y + itemSize; var needPutOnTop = false; if (offsetY + rect.height > api.getHeight()) { emphasisTextConfig.position = 'top'; needPutOnTop = true; } var topOffset = needPutOnTop ? -5 - rect.height : itemSize + 10; if (offsetX + rect.width / 2 > api.getWidth()) { emphasisTextConfig.position = ['100%', topOffset]; emphasisTextStyle.align = 'right'; } else if (offsetX - rect.width / 2 < 0) { emphasisTextConfig.position = [0, topOffset]; emphasisTextStyle.align = 'left'; } } }); }; ToolboxView.prototype.updateView = function (toolboxModel, ecModel, api, payload) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](this._features, function (feature) { feature instanceof _featureManager_js__WEBPACK_IMPORTED_MODULE_9__["ToolboxFeature"] && feature.updateView && feature.updateView(feature.model, ecModel, api, payload); }); }; // updateLayout(toolboxModel, ecModel, api, payload) { // zrUtil.each(this._features, function (feature) { // feature.updateLayout && feature.updateLayout(feature.model, ecModel, api, payload); // }); // }, ToolboxView.prototype.remove = function (ecModel, api) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](this._features, function (feature) { feature instanceof _featureManager_js__WEBPACK_IMPORTED_MODULE_9__["ToolboxFeature"] && feature.remove && feature.remove(ecModel, api); }); this.group.removeAll(); }; ToolboxView.prototype.dispose = function (ecModel, api) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](this._features, function (feature) { feature instanceof _featureManager_js__WEBPACK_IMPORTED_MODULE_9__["ToolboxFeature"] && feature.dispose && feature.dispose(ecModel, api); }); }; ToolboxView.type = 'toolbox'; return ToolboxView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_8__["default"]); function isUserFeatureName(featureName) { return featureName.indexOf('my') === 0; } /* harmony default export */ __webpack_exports__["default"] = (ToolboxView); /***/ }), /***/ "./node_modules/echarts/lib/component/toolbox/feature/Brush.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/component/toolbox/feature/Brush.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _featureManager_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../featureManager.js */ "./node_modules/echarts/lib/component/toolbox/featureManager.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ICON_TYPES = ['rect', 'polygon', 'lineX', 'lineY', 'keep', 'clear']; var BrushFeature = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(BrushFeature, _super); function BrushFeature() { return _super !== null && _super.apply(this, arguments) || this; } BrushFeature.prototype.render = function (featureModel, ecModel, api) { var brushType; var brushMode; var isBrushed; ecModel.eachComponent({ mainType: 'brush' }, function (brushModel) { brushType = brushModel.brushType; brushMode = brushModel.brushOption.brushMode || 'single'; isBrushed = isBrushed || !!brushModel.areas.length; }); this._brushType = brushType; this._brushMode = brushMode; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](featureModel.get('type', true), function (type) { featureModel.setIconStatus(type, (type === 'keep' ? brushMode === 'multiple' : type === 'clear' ? isBrushed : type === brushType) ? 'emphasis' : 'normal'); }); }; BrushFeature.prototype.updateView = function (featureModel, ecModel, api) { this.render(featureModel, ecModel, api); }; BrushFeature.prototype.getIcons = function () { var model = this.model; var availableIcons = model.get('icon', true); var icons = {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](model.get('type', true), function (type) { if (availableIcons[type]) { icons[type] = availableIcons[type]; } }); return icons; }; ; BrushFeature.prototype.onclick = function (ecModel, api, type) { var brushType = this._brushType; var brushMode = this._brushMode; if (type === 'clear') { // Trigger parallel action firstly api.dispatchAction({ type: 'axisAreaSelect', intervals: [] }); api.dispatchAction({ type: 'brush', command: 'clear', // Clear all areas of all brush components. areas: [] }); } else { api.dispatchAction({ type: 'takeGlobalCursor', key: 'brush', brushOption: { brushType: type === 'keep' ? brushType : brushType === type ? false : type, brushMode: type === 'keep' ? brushMode === 'multiple' ? 'single' : 'multiple' : brushMode } }); } }; ; BrushFeature.getDefaultOption = function (ecModel) { var defaultOption = { show: true, type: ICON_TYPES.slice(), icon: { /* eslint-disable */ rect: 'M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13', polygon: 'M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2', lineX: 'M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4', lineY: 'M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4', keep: 'M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z', clear: 'M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2' // jshint ignore:line /* eslint-enable */ }, // `rect`, `polygon`, `lineX`, `lineY`, `keep`, `clear` title: ecModel.getLocaleModel().get(['toolbox', 'brush', 'title']) }; return defaultOption; }; return BrushFeature; }(_featureManager_js__WEBPACK_IMPORTED_MODULE_2__["ToolboxFeature"]); /* harmony default export */ __webpack_exports__["default"] = (BrushFeature); /***/ }), /***/ "./node_modules/echarts/lib/component/toolbox/feature/DataView.js": /*!************************************************************************!*\ !*** ./node_modules/echarts/lib/component/toolbox/feature/DataView.js ***! \************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _core_echarts_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../core/echarts.js */ "./node_modules/echarts/lib/core/echarts.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _featureManager_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../featureManager.js */ "./node_modules/echarts/lib/component/toolbox/featureManager.js"); /* harmony import */ var zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/event.js */ "./node_modules/zrender/lib/core/event.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global document */ /* global document */ var BLOCK_SPLITER = new Array(60).join('-'); var ITEM_SPLITER = '\t'; /** * Group series into two types * 1. on category axis, like line, bar * 2. others, like scatter, pie */ function groupSeries(ecModel) { var seriesGroupByCategoryAxis = {}; var otherSeries = []; var meta = []; ecModel.eachRawSeries(function (seriesModel) { var coordSys = seriesModel.coordinateSystem; if (coordSys && (coordSys.type === 'cartesian2d' || coordSys.type === 'polar')) { // TODO: TYPE Consider polar? Include polar may increase unecessary bundle size. var baseAxis = coordSys.getBaseAxis(); if (baseAxis.type === 'category') { var key = baseAxis.dim + '_' + baseAxis.index; if (!seriesGroupByCategoryAxis[key]) { seriesGroupByCategoryAxis[key] = { categoryAxis: baseAxis, valueAxis: coordSys.getOtherAxis(baseAxis), series: [] }; meta.push({ axisDim: baseAxis.dim, axisIndex: baseAxis.index }); } seriesGroupByCategoryAxis[key].series.push(seriesModel); } else { otherSeries.push(seriesModel); } } else { otherSeries.push(seriesModel); } }); return { seriesGroupByCategoryAxis: seriesGroupByCategoryAxis, other: otherSeries, meta: meta }; } /** * Assemble content of series on cateogory axis * @inner */ function assembleSeriesWithCategoryAxis(groups) { var tables = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"](groups, function (group, key) { var categoryAxis = group.categoryAxis; var valueAxis = group.valueAxis; var valueAxisDim = valueAxis.dim; var headers = [' '].concat(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["map"](group.series, function (series) { return series.name; })); // @ts-ignore TODO Polar var columns = [categoryAxis.model.getCategories()]; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"](group.series, function (series) { var rawData = series.getRawData(); columns.push(series.getRawData().mapArray(rawData.mapDimension(valueAxisDim), function (val) { return val; })); }); // Assemble table content var lines = [headers.join(ITEM_SPLITER)]; for (var i = 0; i < columns[0].length; i++) { var items = []; for (var j = 0; j < columns.length; j++) { items.push(columns[j][i]); } lines.push(items.join(ITEM_SPLITER)); } tables.push(lines.join('\n')); }); return tables.join('\n\n' + BLOCK_SPLITER + '\n\n'); } /** * Assemble content of other series */ function assembleOtherSeries(series) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["map"](series, function (series) { var data = series.getRawData(); var lines = [series.name]; var vals = []; data.each(data.dimensions, function () { var argLen = arguments.length; var dataIndex = arguments[argLen - 1]; var name = data.getName(dataIndex); for (var i = 0; i < argLen - 1; i++) { vals[i] = arguments[i]; } lines.push((name ? name + ITEM_SPLITER : '') + vals.join(ITEM_SPLITER)); }); return lines.join('\n'); }).join('\n\n' + BLOCK_SPLITER + '\n\n'); } function getContentFromModel(ecModel) { var result = groupSeries(ecModel); return { value: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["filter"]([assembleSeriesWithCategoryAxis(result.seriesGroupByCategoryAxis), assembleOtherSeries(result.other)], function (str) { return !!str.replace(/[\n\t\s]/g, ''); }).join('\n\n' + BLOCK_SPLITER + '\n\n'), meta: result.meta }; } function trim(str) { return str.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); } /** * If a block is tsv format */ function isTSVFormat(block) { // Simple method to find out if a block is tsv format var firstLine = block.slice(0, block.indexOf('\n')); if (firstLine.indexOf(ITEM_SPLITER) >= 0) { return true; } } var itemSplitRegex = new RegExp('[' + ITEM_SPLITER + ']+', 'g'); /** * @param {string} tsv * @return {Object} */ function parseTSVContents(tsv) { var tsvLines = tsv.split(/\n+/g); var headers = trim(tsvLines.shift()).split(itemSplitRegex); var categories = []; var series = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["map"](headers, function (header) { return { name: header, data: [] }; }); for (var i = 0; i < tsvLines.length; i++) { var items = trim(tsvLines[i]).split(itemSplitRegex); categories.push(items.shift()); for (var j = 0; j < items.length; j++) { series[j] && (series[j].data[i] = items[j]); } } return { series: series, categories: categories }; } function parseListContents(str) { var lines = str.split(/\n+/g); var seriesName = trim(lines.shift()); var data = []; for (var i = 0; i < lines.length; i++) { // if line is empty, ignore it. // there is a case that a user forgot to delete `\n`. var line = trim(lines[i]); if (!line) { continue; } var items = line.split(itemSplitRegex); var name_1 = ''; var value = void 0; var hasName = false; if (isNaN(items[0])) { // First item is name hasName = true; name_1 = items[0]; items = items.slice(1); data[i] = { name: name_1, value: [] }; value = data[i].value; } else { value = data[i] = []; } for (var j = 0; j < items.length; j++) { value.push(+items[j]); } if (value.length === 1) { hasName ? data[i].value = value[0] : data[i] = value[0]; } } return { name: seriesName, data: data }; } function parseContents(str, blockMetaList) { var blocks = str.split(new RegExp('\n*' + BLOCK_SPLITER + '\n*', 'g')); var newOption = { series: [] }; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"](blocks, function (block, idx) { if (isTSVFormat(block)) { var result = parseTSVContents(block); var blockMeta = blockMetaList[idx]; var axisKey = blockMeta.axisDim + 'Axis'; if (blockMeta) { newOption[axisKey] = newOption[axisKey] || []; newOption[axisKey][blockMeta.axisIndex] = { data: result.categories }; newOption.series = newOption.series.concat(result.series); } } else { var result = parseListContents(block); newOption.series.push(result); } }); return newOption; } var DataView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DataView, _super); function DataView() { return _super !== null && _super.apply(this, arguments) || this; } DataView.prototype.onclick = function (ecModel, api) { // FIXME: better way? setTimeout(function () { api.dispatchAction({ type: 'hideTip' }); }); var container = api.getDom(); var model = this.model; if (this._dom) { container.removeChild(this._dom); } var root = document.createElement('div'); // use padding to avoid 5px whitespace root.style.cssText = 'position:absolute;top:0;bottom:0;left:0;right:0;padding:5px'; root.style.backgroundColor = model.get('backgroundColor') || '#fff'; // Create elements var header = document.createElement('h4'); var lang = model.get('lang') || []; header.innerHTML = lang[0] || model.get('title'); header.style.cssText = 'margin:10px 20px'; header.style.color = model.get('textColor'); var viewMain = document.createElement('div'); var textarea = document.createElement('textarea'); viewMain.style.cssText = 'overflow:auto'; var optionToContent = model.get('optionToContent'); var contentToOption = model.get('contentToOption'); var result = getContentFromModel(ecModel); if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isFunction"](optionToContent)) { var htmlOrDom = optionToContent(api.getOption()); if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isString"](htmlOrDom)) { viewMain.innerHTML = htmlOrDom; } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isDom"](htmlOrDom)) { viewMain.appendChild(htmlOrDom); } } else { // Use default textarea textarea.readOnly = model.get('readOnly'); var style = textarea.style; // eslint-disable-next-line max-len style.cssText = 'display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none'; style.color = model.get('textColor'); style.borderColor = model.get('textareaBorderColor'); style.backgroundColor = model.get('textareaColor'); textarea.value = result.value; viewMain.appendChild(textarea); } var blockMetaList = result.meta; var buttonContainer = document.createElement('div'); buttonContainer.style.cssText = 'position:absolute;bottom:5px;left:0;right:0'; // eslint-disable-next-line max-len var buttonStyle = 'float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px'; var closeButton = document.createElement('div'); var refreshButton = document.createElement('div'); buttonStyle += ';background-color:' + model.get('buttonColor'); buttonStyle += ';color:' + model.get('buttonTextColor'); var self = this; function close() { container.removeChild(root); self._dom = null; } Object(zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_4__["addEventListener"])(closeButton, 'click', close); Object(zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_4__["addEventListener"])(refreshButton, 'click', function () { if (contentToOption == null && optionToContent != null || contentToOption != null && optionToContent == null) { if (true) { // eslint-disable-next-line Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["warn"])('It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored.'); } close(); return; } var newOption; try { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isFunction"](contentToOption)) { newOption = contentToOption(viewMain, api.getOption()); } else { newOption = parseContents(textarea.value, blockMetaList); } } catch (e) { close(); throw new Error('Data view format error ' + e); } if (newOption) { api.dispatchAction({ type: 'changeDataView', newOption: newOption }); } close(); }); closeButton.innerHTML = lang[1]; refreshButton.innerHTML = lang[2]; refreshButton.style.cssText = closeButton.style.cssText = buttonStyle; !model.get('readOnly') && buttonContainer.appendChild(refreshButton); buttonContainer.appendChild(closeButton); root.appendChild(header); root.appendChild(viewMain); root.appendChild(buttonContainer); viewMain.style.height = container.clientHeight - 80 + 'px'; container.appendChild(root); this._dom = root; }; DataView.prototype.remove = function (ecModel, api) { this._dom && api.getDom().removeChild(this._dom); }; DataView.prototype.dispose = function (ecModel, api) { this.remove(ecModel, api); }; DataView.getDefaultOption = function (ecModel) { var defaultOption = { show: true, readOnly: false, optionToContent: null, contentToOption: null, // eslint-disable-next-line icon: 'M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28', title: ecModel.getLocaleModel().get(['toolbox', 'dataView', 'title']), lang: ecModel.getLocaleModel().get(['toolbox', 'dataView', 'lang']), backgroundColor: '#fff', textColor: '#000', textareaColor: '#fff', textareaBorderColor: '#333', buttonColor: '#c23531', buttonTextColor: '#fff' }; return defaultOption; }; return DataView; }(_featureManager_js__WEBPACK_IMPORTED_MODULE_3__["ToolboxFeature"]); /** * @inner */ function tryMergeDataOption(newData, originalData) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["map"](newData, function (newVal, idx) { var original = originalData && originalData[idx]; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isObject"](original) && !zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isArray"](original)) { var newValIsObject = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isObject"](newVal) && !zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isArray"](newVal); if (!newValIsObject) { newVal = { value: newVal }; } // original data has name but new data has no name var shouldDeleteName = original.name != null && newVal.name == null; // Original data has option newVal = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["defaults"](newVal, original); shouldDeleteName && delete newVal.name; return newVal; } else { return newVal; } }); } // TODO: SELF REGISTERED. _core_echarts_js__WEBPACK_IMPORTED_MODULE_1__["registerAction"]({ type: 'changeDataView', event: 'dataViewChanged', update: 'prepareAndUpdate' }, function (payload, ecModel) { var newSeriesOptList = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"](payload.newOption.series, function (seriesOpt) { var seriesModel = ecModel.getSeriesByName(seriesOpt.name)[0]; if (!seriesModel) { // New created series // Geuss the series type newSeriesOptList.push(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["extend"]({ // Default is scatter type: 'scatter' }, seriesOpt)); } else { var originalData = seriesModel.get('data'); newSeriesOptList.push({ name: seriesOpt.name, data: tryMergeDataOption(seriesOpt.data, originalData) }); } }); ecModel.mergeOption(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["defaults"]({ series: newSeriesOptList }, payload.newOption)); }); /* harmony default export */ __webpack_exports__["default"] = (DataView); /***/ }), /***/ "./node_modules/echarts/lib/component/toolbox/feature/DataZoom.js": /*!************************************************************************!*\ !*** ./node_modules/echarts/lib/component/toolbox/feature/DataZoom.js ***! \************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _helper_BrushController_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helper/BrushController.js */ "./node_modules/echarts/lib/component/helper/BrushController.js"); /* harmony import */ var _helper_BrushTargetManager_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helper/BrushTargetManager.js */ "./node_modules/echarts/lib/component/helper/BrushTargetManager.js"); /* harmony import */ var _dataZoom_history_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../dataZoom/history.js */ "./node_modules/echarts/lib/component/dataZoom/history.js"); /* harmony import */ var _helper_sliderMove_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helper/sliderMove.js */ "./node_modules/echarts/lib/component/helper/sliderMove.js"); /* harmony import */ var _featureManager_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../featureManager.js */ "./node_modules/echarts/lib/component/toolbox/featureManager.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _model_internalComponentCreator_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../model/internalComponentCreator.js */ "./node_modules/echarts/lib/model/internalComponentCreator.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO depends on DataZoom and Brush var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"]; var DATA_ZOOM_ID_BASE = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_7__["makeInternalComponentId"])('toolbox-dataZoom_'); var ICON_TYPES = ['zoom', 'back']; var DataZoomFeature = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DataZoomFeature, _super); function DataZoomFeature() { return _super !== null && _super.apply(this, arguments) || this; } DataZoomFeature.prototype.render = function (featureModel, ecModel, api, payload) { if (!this._brushController) { this._brushController = new _helper_BrushController_js__WEBPACK_IMPORTED_MODULE_2__["default"](api.getZr()); this._brushController.on('brush', zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](this._onBrush, this)).mount(); } updateZoomBtnStatus(featureModel, ecModel, this, payload, api); updateBackBtnStatus(featureModel, ecModel); }; DataZoomFeature.prototype.onclick = function (ecModel, api, type) { handlers[type].call(this); }; DataZoomFeature.prototype.remove = function (ecModel, api) { this._brushController && this._brushController.unmount(); }; DataZoomFeature.prototype.dispose = function (ecModel, api) { this._brushController && this._brushController.dispose(); }; DataZoomFeature.prototype._onBrush = function (eventParam) { var areas = eventParam.areas; if (!eventParam.isEnd || !areas.length) { return; } var snapshot = {}; var ecModel = this.ecModel; this._brushController.updateCovers([]); // remove cover var brushTargetManager = new _helper_BrushTargetManager_js__WEBPACK_IMPORTED_MODULE_3__["default"](makeAxisFinder(this.model), ecModel, { include: ['grid'] }); brushTargetManager.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys) { if (coordSys.type !== 'cartesian2d') { return; } var brushType = area.brushType; if (brushType === 'rect') { setBatch('x', coordSys, coordRange[0]); setBatch('y', coordSys, coordRange[1]); } else { setBatch({ lineX: 'x', lineY: 'y' }[brushType], coordSys, coordRange); } }); _dataZoom_history_js__WEBPACK_IMPORTED_MODULE_4__["push"](ecModel, snapshot); this._dispatchZoomAction(snapshot); function setBatch(dimName, coordSys, minMax) { var axis = coordSys.getAxis(dimName); var axisModel = axis.model; var dataZoomModel = findDataZoom(dimName, axisModel, ecModel); // Restrict range. var minMaxSpan = dataZoomModel.findRepresentativeAxisProxy(axisModel).getMinMaxSpan(); if (minMaxSpan.minValueSpan != null || minMaxSpan.maxValueSpan != null) { minMax = Object(_helper_sliderMove_js__WEBPACK_IMPORTED_MODULE_5__["default"])(0, minMax.slice(), axis.scale.getExtent(), 0, minMaxSpan.minValueSpan, minMaxSpan.maxValueSpan); } dataZoomModel && (snapshot[dataZoomModel.id] = { dataZoomId: dataZoomModel.id, startValue: minMax[0], endValue: minMax[1] }); } function findDataZoom(dimName, axisModel, ecModel) { var found; ecModel.eachComponent({ mainType: 'dataZoom', subType: 'select' }, function (dzModel) { var has = dzModel.getAxisModel(dimName, axisModel.componentIndex); has && (found = dzModel); }); return found; } }; ; DataZoomFeature.prototype._dispatchZoomAction = function (snapshot) { var batch = []; // Convert from hash map to array. each(snapshot, function (batchItem, dataZoomId) { batch.push(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"](batchItem)); }); batch.length && this.api.dispatchAction({ type: 'dataZoom', from: this.uid, batch: batch }); }; DataZoomFeature.getDefaultOption = function (ecModel) { var defaultOption = { show: true, filterMode: 'filter', // Icon group icon: { zoom: 'M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1', back: 'M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26' }, // `zoom`, `back` title: ecModel.getLocaleModel().get(['toolbox', 'dataZoom', 'title']), brushStyle: { borderWidth: 0, color: 'rgba(210,219,238,0.2)' } }; return defaultOption; }; return DataZoomFeature; }(_featureManager_js__WEBPACK_IMPORTED_MODULE_6__["ToolboxFeature"]); var handlers = { zoom: function () { var nextActive = !this._isZoomActive; this.api.dispatchAction({ type: 'takeGlobalCursor', key: 'dataZoomSelect', dataZoomSelectActive: nextActive }); }, back: function () { this._dispatchZoomAction(_dataZoom_history_js__WEBPACK_IMPORTED_MODULE_4__["pop"](this.ecModel)); } }; function makeAxisFinder(dzFeatureModel) { var setting = { xAxisIndex: dzFeatureModel.get('xAxisIndex', true), yAxisIndex: dzFeatureModel.get('yAxisIndex', true), xAxisId: dzFeatureModel.get('xAxisId', true), yAxisId: dzFeatureModel.get('yAxisId', true) }; // If both `xAxisIndex` `xAxisId` not set, it means 'all'. // If both `yAxisIndex` `yAxisId` not set, it means 'all'. // Some old cases set like this below to close yAxis control but leave xAxis control: // `{ feature: { dataZoom: { yAxisIndex: false } }`. if (setting.xAxisIndex == null && setting.xAxisId == null) { setting.xAxisIndex = 'all'; } if (setting.yAxisIndex == null && setting.yAxisId == null) { setting.yAxisIndex = 'all'; } return setting; } function updateBackBtnStatus(featureModel, ecModel) { featureModel.setIconStatus('back', _dataZoom_history_js__WEBPACK_IMPORTED_MODULE_4__["count"](ecModel) > 1 ? 'emphasis' : 'normal'); } function updateZoomBtnStatus(featureModel, ecModel, view, payload, api) { var zoomActive = view._isZoomActive; if (payload && payload.type === 'takeGlobalCursor') { zoomActive = payload.key === 'dataZoomSelect' ? payload.dataZoomSelectActive : false; } view._isZoomActive = zoomActive; featureModel.setIconStatus('zoom', zoomActive ? 'emphasis' : 'normal'); var brushTargetManager = new _helper_BrushTargetManager_js__WEBPACK_IMPORTED_MODULE_3__["default"](makeAxisFinder(featureModel), ecModel, { include: ['grid'] }); var panels = brushTargetManager.makePanelOpts(api, function (targetInfo) { return targetInfo.xAxisDeclared && !targetInfo.yAxisDeclared ? 'lineX' : !targetInfo.xAxisDeclared && targetInfo.yAxisDeclared ? 'lineY' : 'rect'; }); view._brushController.setPanels(panels).enableBrush(zoomActive && panels.length ? { brushType: 'auto', brushStyle: featureModel.getModel('brushStyle').getItemStyle() } : false); } Object(_model_internalComponentCreator_js__WEBPACK_IMPORTED_MODULE_8__["registerInternalOptionCreator"])('dataZoom', function (ecModel) { var toolboxModel = ecModel.getComponent('toolbox', 0); var featureDataZoomPath = ['feature', 'dataZoom']; if (!toolboxModel || toolboxModel.get(featureDataZoomPath) == null) { return; } var dzFeatureModel = toolboxModel.getModel(featureDataZoomPath); var dzOptions = []; var finder = makeAxisFinder(dzFeatureModel); var finderResult = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_7__["parseFinder"])(ecModel, finder); each(finderResult.xAxisModels, function (axisModel) { return buildInternalOptions(axisModel, 'xAxis', 'xAxisIndex'); }); each(finderResult.yAxisModels, function (axisModel) { return buildInternalOptions(axisModel, 'yAxis', 'yAxisIndex'); }); function buildInternalOptions(axisModel, axisMainType, axisIndexPropName) { var axisIndex = axisModel.componentIndex; var newOpt = { type: 'select', $fromToolbox: true, // Default to be filter filterMode: dzFeatureModel.get('filterMode', true) || 'filter', // Id for merge mapping. id: DATA_ZOOM_ID_BASE + axisMainType + axisIndex }; newOpt[axisIndexPropName] = axisIndex; dzOptions.push(newOpt); } return dzOptions; }); /* harmony default export */ __webpack_exports__["default"] = (DataZoomFeature); /***/ }), /***/ "./node_modules/echarts/lib/component/toolbox/feature/MagicType.js": /*!*************************************************************************!*\ !*** ./node_modules/echarts/lib/component/toolbox/feature/MagicType.js ***! \*************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _core_echarts_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../core/echarts.js */ "./node_modules/echarts/lib/core/echarts.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _featureManager_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../featureManager.js */ "./node_modules/echarts/lib/component/toolbox/featureManager.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var INNER_STACK_KEYWORD = '__ec_magicType_stack__'; var ICON_TYPES = ['line', 'bar', 'stack']; // stack and tiled appears in pair for the title var TITLE_TYPES = ['line', 'bar', 'stack', 'tiled']; var radioTypes = [['line', 'bar'], ['stack']]; var MagicType = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MagicType, _super); function MagicType() { return _super !== null && _super.apply(this, arguments) || this; } MagicType.prototype.getIcons = function () { var model = this.model; var availableIcons = model.get('icon'); var icons = {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"](model.get('type'), function (type) { if (availableIcons[type]) { icons[type] = availableIcons[type]; } }); return icons; }; MagicType.getDefaultOption = function (ecModel) { var defaultOption = { show: true, type: [], // Icon group icon: { line: 'M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4', bar: 'M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7', // eslint-disable-next-line stack: 'M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z' // jshint ignore:line }, // `line`, `bar`, `stack`, `tiled` title: ecModel.getLocaleModel().get(['toolbox', 'magicType', 'title']), option: {}, seriesIndex: {} }; return defaultOption; }; MagicType.prototype.onclick = function (ecModel, api, type) { var model = this.model; var seriesIndex = model.get(['seriesIndex', type]); // Not supported magicType if (!seriesOptGenreator[type]) { return; } var newOption = { series: [] }; var generateNewSeriesTypes = function (seriesModel) { var seriesType = seriesModel.subType; var seriesId = seriesModel.id; var newSeriesOpt = seriesOptGenreator[type](seriesType, seriesId, seriesModel, model); if (newSeriesOpt) { // PENDING If merge original option? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["defaults"](newSeriesOpt, seriesModel.option); newOption.series.push(newSeriesOpt); } // Modify boundaryGap var coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.type === 'cartesian2d' && (type === 'line' || type === 'bar')) { var categoryAxis = coordSys.getAxesByScale('ordinal')[0]; if (categoryAxis) { var axisDim = categoryAxis.dim; var axisType = axisDim + 'Axis'; var axisModel = seriesModel.getReferringComponents(axisType, _util_model_js__WEBPACK_IMPORTED_MODULE_4__["SINGLE_REFERRING"]).models[0]; var axisIndex = axisModel.componentIndex; newOption[axisType] = newOption[axisType] || []; for (var i = 0; i <= axisIndex; i++) { newOption[axisType][axisIndex] = newOption[axisType][axisIndex] || {}; } newOption[axisType][axisIndex].boundaryGap = type === 'bar'; } } }; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"](radioTypes, function (radio) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["indexOf"](radio, type) >= 0) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"](radio, function (item) { model.setIconStatus(item, 'normal'); }); } }); model.setIconStatus(type, 'emphasis'); ecModel.eachComponent({ mainType: 'series', query: seriesIndex == null ? null : { seriesIndex: seriesIndex } }, generateNewSeriesTypes); var newTitle; var currentType = type; // Change title of stack if (type === 'stack') { // use titles in model instead of ecModel // as stack and tiled appears in pair, just flip them // no need of checking stack state newTitle = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["merge"]({ stack: model.option.title.tiled, tiled: model.option.title.stack }, model.option.title); if (model.get(['iconStatus', type]) !== 'emphasis') { currentType = 'tiled'; } } api.dispatchAction({ type: 'changeMagicType', currentType: currentType, newOption: newOption, newTitle: newTitle, featureName: 'magicType' }); }; return MagicType; }(_featureManager_js__WEBPACK_IMPORTED_MODULE_3__["ToolboxFeature"]); var seriesOptGenreator = { 'line': function (seriesType, seriesId, seriesModel, model) { if (seriesType === 'bar') { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["merge"]({ id: seriesId, type: 'line', // Preserve data related option data: seriesModel.get('data'), stack: seriesModel.get('stack'), markPoint: seriesModel.get('markPoint'), markLine: seriesModel.get('markLine') }, model.get(['option', 'line']) || {}, true); } }, 'bar': function (seriesType, seriesId, seriesModel, model) { if (seriesType === 'line') { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["merge"]({ id: seriesId, type: 'bar', // Preserve data related option data: seriesModel.get('data'), stack: seriesModel.get('stack'), markPoint: seriesModel.get('markPoint'), markLine: seriesModel.get('markLine') }, model.get(['option', 'bar']) || {}, true); } }, 'stack': function (seriesType, seriesId, seriesModel, model) { var isStack = seriesModel.get('stack') === INNER_STACK_KEYWORD; if (seriesType === 'line' || seriesType === 'bar') { model.setIconStatus('stack', isStack ? 'normal' : 'emphasis'); return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["merge"]({ id: seriesId, stack: isStack ? '' : INNER_STACK_KEYWORD }, model.get(['option', 'stack']) || {}, true); } } }; // TODO: SELF REGISTERED. _core_echarts_js__WEBPACK_IMPORTED_MODULE_1__["registerAction"]({ type: 'changeMagicType', event: 'magicTypeChanged', update: 'prepareAndUpdate' }, function (payload, ecModel) { ecModel.mergeOption(payload.newOption); }); /* harmony default export */ __webpack_exports__["default"] = (MagicType); /***/ }), /***/ "./node_modules/echarts/lib/component/toolbox/feature/Restore.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/toolbox/feature/Restore.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _core_echarts_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../core/echarts.js */ "./node_modules/echarts/lib/core/echarts.js"); /* harmony import */ var _dataZoom_history_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../dataZoom/history.js */ "./node_modules/echarts/lib/component/dataZoom/history.js"); /* harmony import */ var _featureManager_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../featureManager.js */ "./node_modules/echarts/lib/component/toolbox/featureManager.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var RestoreOption = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RestoreOption, _super); function RestoreOption() { return _super !== null && _super.apply(this, arguments) || this; } RestoreOption.prototype.onclick = function (ecModel, api) { _dataZoom_history_js__WEBPACK_IMPORTED_MODULE_2__["clear"](ecModel); api.dispatchAction({ type: 'restore', from: this.uid }); }; RestoreOption.getDefaultOption = function (ecModel) { var defaultOption = { show: true, // eslint-disable-next-line icon: 'M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5', title: ecModel.getLocaleModel().get(['toolbox', 'restore', 'title']) }; return defaultOption; }; return RestoreOption; }(_featureManager_js__WEBPACK_IMPORTED_MODULE_3__["ToolboxFeature"]); // TODO: SELF REGISTERED. _core_echarts_js__WEBPACK_IMPORTED_MODULE_1__["registerAction"]({ type: 'restore', event: 'restore', update: 'prepareAndUpdate' }, function (payload, ecModel) { ecModel.resetOption('recreate'); }); /* harmony default export */ __webpack_exports__["default"] = (RestoreOption); /***/ }), /***/ "./node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js": /*!***************************************************************************!*\ !*** ./node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js ***! \***************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/env.js */ "./node_modules/zrender/lib/core/env.js"); /* harmony import */ var _featureManager_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../featureManager.js */ "./node_modules/echarts/lib/component/toolbox/featureManager.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global window, Uint8Array, document */ var SaveAsImage = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SaveAsImage, _super); function SaveAsImage() { return _super !== null && _super.apply(this, arguments) || this; } SaveAsImage.prototype.onclick = function (ecModel, api) { var model = this.model; var title = model.get('name') || ecModel.get('title.0.text') || 'echarts'; var isSvg = api.getZr().painter.getType() === 'svg'; var type = isSvg ? 'svg' : model.get('type', true) || 'png'; var url = api.getConnectedDataURL({ type: type, backgroundColor: model.get('backgroundColor', true) || ecModel.get('backgroundColor') || '#fff', connectedBackgroundColor: model.get('connectedBackgroundColor'), excludeComponents: model.get('excludeComponents'), pixelRatio: model.get('pixelRatio') }); var browser = zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_1__["default"].browser; // Chrome, Firefox, New Edge if (typeof MouseEvent === 'function' && (browser.newEdge || !browser.ie && !browser.edge)) { var $a = document.createElement('a'); $a.download = title + '.' + type; $a.target = '_blank'; $a.href = url; var evt = new MouseEvent('click', { // some micro front-end framework, window maybe is a Proxy view: document.defaultView, bubbles: true, cancelable: false }); $a.dispatchEvent(evt); } // IE or old Edge else { // @ts-ignore if (window.navigator.msSaveOrOpenBlob || isSvg) { var parts = url.split(','); // data:[][;charset=][;base64], var base64Encoded = parts[0].indexOf('base64') > -1; var bstr = isSvg // should decode the svg data uri first ? decodeURIComponent(parts[1]) : parts[1]; // only `atob` when the data uri is encoded with base64 // otherwise, like `svg` data uri exported by zrender, // there will be an error, for it's not encoded with base64. // (just a url-encoded string through `encodeURIComponent`) base64Encoded && (bstr = window.atob(bstr)); var filename = title + '.' + type; // @ts-ignore if (window.navigator.msSaveOrOpenBlob) { var n = bstr.length; var u8arr = new Uint8Array(n); while (n--) { u8arr[n] = bstr.charCodeAt(n); } var blob = new Blob([u8arr]); // @ts-ignore window.navigator.msSaveOrOpenBlob(blob, filename); } else { var frame = document.createElement('iframe'); document.body.appendChild(frame); var cw = frame.contentWindow; var doc = cw.document; doc.open('image/svg+xml', 'replace'); doc.write(bstr); doc.close(); cw.focus(); doc.execCommand('SaveAs', true, filename); document.body.removeChild(frame); } } else { var lang = model.get('lang'); var html = '' + '' + '' + ''; var tab = window.open(); tab.document.write(html); tab.document.title = title; } } }; SaveAsImage.getDefaultOption = function (ecModel) { var defaultOption = { show: true, icon: 'M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0', title: ecModel.getLocaleModel().get(['toolbox', 'saveAsImage', 'title']), type: 'png', // Default use option.backgroundColor // backgroundColor: '#fff', connectedBackgroundColor: '#fff', name: '', excludeComponents: ['toolbox'], // use current pixel ratio of device by default // pixelRatio: 1, lang: ecModel.getLocaleModel().get(['toolbox', 'saveAsImage', 'lang']) }; return defaultOption; }; return SaveAsImage; }(_featureManager_js__WEBPACK_IMPORTED_MODULE_2__["ToolboxFeature"]); /* harmony default export */ __webpack_exports__["default"] = (SaveAsImage); /***/ }), /***/ "./node_modules/echarts/lib/component/toolbox/featureManager.js": /*!**********************************************************************!*\ !*** ./node_modules/echarts/lib/component/toolbox/featureManager.js ***! \**********************************************************************/ /*! exports provided: ToolboxFeature, registerFeature, getFeature */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolboxFeature", function() { return ToolboxFeature; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerFeature", function() { return registerFeature; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFeature", function() { return getFeature; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ var ToolboxFeature = /** @class */function () { function ToolboxFeature() {} return ToolboxFeature; }(); var features = {}; function registerFeature(name, ctor) { features[name] = ctor; } function getFeature(name) { return features[name]; } /***/ }), /***/ "./node_modules/echarts/lib/component/toolbox/install.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/component/toolbox/install.js ***! \***************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _component_dataZoom_installDataZoomSelect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../component/dataZoom/installDataZoomSelect.js */ "./node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js"); /* harmony import */ var _ToolboxModel_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ToolboxModel.js */ "./node_modules/echarts/lib/component/toolbox/ToolboxModel.js"); /* harmony import */ var _ToolboxView_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ToolboxView.js */ "./node_modules/echarts/lib/component/toolbox/ToolboxView.js"); /* harmony import */ var _featureManager_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./featureManager.js */ "./node_modules/echarts/lib/component/toolbox/featureManager.js"); /* harmony import */ var _feature_SaveAsImage_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./feature/SaveAsImage.js */ "./node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js"); /* harmony import */ var _feature_MagicType_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./feature/MagicType.js */ "./node_modules/echarts/lib/component/toolbox/feature/MagicType.js"); /* harmony import */ var _feature_DataView_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./feature/DataView.js */ "./node_modules/echarts/lib/component/toolbox/feature/DataView.js"); /* harmony import */ var _feature_Restore_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./feature/Restore.js */ "./node_modules/echarts/lib/component/toolbox/feature/Restore.js"); /* harmony import */ var _feature_DataZoom_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./feature/DataZoom.js */ "./node_modules/echarts/lib/component/toolbox/feature/DataZoom.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODOD: REGISTER IN INSTALL function install(registers) { registers.registerComponentModel(_ToolboxModel_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerComponentView(_ToolboxView_js__WEBPACK_IMPORTED_MODULE_3__["default"]); Object(_featureManager_js__WEBPACK_IMPORTED_MODULE_4__["registerFeature"])('saveAsImage', _feature_SaveAsImage_js__WEBPACK_IMPORTED_MODULE_5__["default"]); Object(_featureManager_js__WEBPACK_IMPORTED_MODULE_4__["registerFeature"])('magicType', _feature_MagicType_js__WEBPACK_IMPORTED_MODULE_6__["default"]); Object(_featureManager_js__WEBPACK_IMPORTED_MODULE_4__["registerFeature"])('dataView', _feature_DataView_js__WEBPACK_IMPORTED_MODULE_7__["default"]); Object(_featureManager_js__WEBPACK_IMPORTED_MODULE_4__["registerFeature"])('dataZoom', _feature_DataZoom_js__WEBPACK_IMPORTED_MODULE_9__["default"]); Object(_featureManager_js__WEBPACK_IMPORTED_MODULE_4__["registerFeature"])('restore', _feature_Restore_js__WEBPACK_IMPORTED_MODULE_8__["default"]); Object(_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_component_dataZoom_installDataZoomSelect_js__WEBPACK_IMPORTED_MODULE_1__["install"]); } /***/ }), /***/ "./node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js": /*!**************************************************************************!*\ !*** ./node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js ***! \**************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/event.js */ "./node_modules/zrender/lib/core/event.js"); /* harmony import */ var zrender_lib_core_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/dom.js */ "./node_modules/zrender/lib/core/dom.js"); /* harmony import */ var zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/env.js */ "./node_modules/zrender/lib/core/env.js"); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/component/tooltip/helper.js"); /* harmony import */ var _tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global document, window */ var CSS_TRANSITION_VENDOR = Object(_helper_js__WEBPACK_IMPORTED_MODULE_5__["toCSSVendorPrefix"])(_helper_js__WEBPACK_IMPORTED_MODULE_5__["TRANSITION_VENDOR"], 'transition'); var CSS_TRANSFORM_VENDOR = Object(_helper_js__WEBPACK_IMPORTED_MODULE_5__["toCSSVendorPrefix"])(_helper_js__WEBPACK_IMPORTED_MODULE_5__["TRANSFORM_VENDOR"], 'transform'); // eslint-disable-next-line var gCssText = "position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;" + (zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__["default"].transform3dSupported ? 'will-change:transform;' : ''); function mirrorPos(pos) { pos = pos === 'left' ? 'right' : pos === 'right' ? 'left' : pos === 'top' ? 'bottom' : 'top'; return pos; } function assembleArrow(tooltipModel, borderColor, arrowPosition) { if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(arrowPosition) || arrowPosition === 'inside') { return ''; } var backgroundColor = tooltipModel.get('backgroundColor'); var borderWidth = tooltipModel.get('borderWidth'); borderColor = Object(_util_format_js__WEBPACK_IMPORTED_MODULE_4__["convertToColorString"])(borderColor); var arrowPos = mirrorPos(arrowPosition); var arrowSize = Math.max(Math.round(borderWidth) * 1.5, 6); var positionStyle = ''; var transformStyle = CSS_TRANSFORM_VENDOR + ':'; var rotateDeg; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"])(['left', 'right'], arrowPos) > -1) { positionStyle += 'top:50%'; transformStyle += "translateY(-50%) rotate(" + (rotateDeg = arrowPos === 'left' ? -225 : -45) + "deg)"; } else { positionStyle += 'left:50%'; transformStyle += "translateX(-50%) rotate(" + (rotateDeg = arrowPos === 'top' ? 225 : 45) + "deg)"; } var rotateRadian = rotateDeg * Math.PI / 180; var arrowWH = arrowSize + borderWidth; var rotatedWH = arrowWH * Math.abs(Math.cos(rotateRadian)) + arrowWH * Math.abs(Math.sin(rotateRadian)); var arrowOffset = Math.round(((rotatedWH - Math.SQRT2 * borderWidth) / 2 + Math.SQRT2 * borderWidth - (rotatedWH - arrowWH) / 2) * 100) / 100; positionStyle += ";" + arrowPos + ":-" + arrowOffset + "px"; var borderStyle = borderColor + " solid " + borderWidth + "px;"; var styleCss = ["position:absolute;width:" + arrowSize + "px;height:" + arrowSize + "px;z-index:-1;", positionStyle + ";" + transformStyle + ";", "border-bottom:" + borderStyle, "border-right:" + borderStyle, "background-color:" + backgroundColor + ";"]; return "
"; } function assembleTransition(duration, onlyFade) { var transitionCurve = 'cubic-bezier(0.23,1,0.32,1)'; var transitionOption = " " + duration / 2 + "s " + transitionCurve; var transitionText = "opacity" + transitionOption + ",visibility" + transitionOption; if (!onlyFade) { transitionOption = " " + duration + "s " + transitionCurve; transitionText += zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__["default"].transformSupported ? "," + CSS_TRANSFORM_VENDOR + transitionOption : ",left" + transitionOption + ",top" + transitionOption; } return CSS_TRANSITION_VENDOR + ':' + transitionText; } function assembleTransform(x, y, toString) { // If using float on style, the final width of the dom might // keep changing slightly while mouse move. So `toFixed(0)` them. var x0 = x.toFixed(0) + 'px'; var y0 = y.toFixed(0) + 'px'; // not support transform, use `left` and `top` instead. if (!zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__["default"].transformSupported) { return toString ? "top:" + y0 + ";left:" + x0 + ";" : [['top', y0], ['left', x0]]; } // support transform var is3d = zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__["default"].transform3dSupported; var translate = "translate" + (is3d ? '3d' : '') + "(" + x0 + "," + y0 + (is3d ? ',0' : '') + ")"; return toString ? 'top:0;left:0;' + CSS_TRANSFORM_VENDOR + ':' + translate + ';' : [['top', 0], ['left', 0], [_helper_js__WEBPACK_IMPORTED_MODULE_5__["TRANSFORM_VENDOR"], translate]]; } /** * @param {Object} textStyle * @return {string} * @inner */ function assembleFont(textStyleModel) { var cssText = []; var fontSize = textStyleModel.get('fontSize'); var color = textStyleModel.getTextColor(); color && cssText.push('color:' + color); cssText.push('font:' + textStyleModel.getFont()); // @ts-ignore, leave it to the tooltip refactor. var lineHeight = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(textStyleModel.get('lineHeight'), Math.round(fontSize * 3 / 2)); fontSize && cssText.push('line-height:' + lineHeight + 'px'); var shadowColor = textStyleModel.get('textShadowColor'); var shadowBlur = textStyleModel.get('textShadowBlur') || 0; var shadowOffsetX = textStyleModel.get('textShadowOffsetX') || 0; var shadowOffsetY = textStyleModel.get('textShadowOffsetY') || 0; shadowColor && shadowBlur && cssText.push('text-shadow:' + shadowOffsetX + 'px ' + shadowOffsetY + 'px ' + shadowBlur + 'px ' + shadowColor); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(['decoration', 'align'], function (name) { var val = textStyleModel.get(name); val && cssText.push('text-' + name + ':' + val); }); return cssText.join(';'); } function assembleCssText(tooltipModel, enableTransition, onlyFade) { var cssText = []; var transitionDuration = tooltipModel.get('transitionDuration'); var backgroundColor = tooltipModel.get('backgroundColor'); var shadowBlur = tooltipModel.get('shadowBlur'); var shadowColor = tooltipModel.get('shadowColor'); var shadowOffsetX = tooltipModel.get('shadowOffsetX'); var shadowOffsetY = tooltipModel.get('shadowOffsetY'); var textStyleModel = tooltipModel.getModel('textStyle'); var padding = Object(_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_6__["getPaddingFromTooltipModel"])(tooltipModel, 'html'); var boxShadow = shadowOffsetX + "px " + shadowOffsetY + "px " + shadowBlur + "px " + shadowColor; cssText.push('box-shadow:' + boxShadow); // Animation transition. Do not animate when transitionDuration is 0. enableTransition && transitionDuration && cssText.push(assembleTransition(transitionDuration, onlyFade)); if (backgroundColor) { cssText.push('background-color:' + backgroundColor); } // Border style Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(['width', 'color', 'radius'], function (name) { var borderName = 'border-' + name; var camelCase = Object(_util_format_js__WEBPACK_IMPORTED_MODULE_4__["toCamelCase"])(borderName); var val = tooltipModel.get(camelCase); val != null && cssText.push(borderName + ':' + val + (name === 'color' ? '' : 'px')); }); // Text style cssText.push(assembleFont(textStyleModel)); // Padding if (padding != null) { cssText.push('padding:' + Object(_util_format_js__WEBPACK_IMPORTED_MODULE_4__["normalizeCssArray"])(padding).join('px ') + 'px'); } return cssText.join(';') + ';'; } // If not able to make, do not modify the input `out`. function makeStyleCoord(out, zr, container, zrX, zrY) { var zrPainter = zr && zr.painter; if (container) { var zrViewportRoot = zrPainter && zrPainter.getViewportRoot(); if (zrViewportRoot) { // Some APPs might use scale on body, so we support CSS transform here. Object(zrender_lib_core_dom_js__WEBPACK_IMPORTED_MODULE_2__["transformLocalCoord"])(out, zrViewportRoot, container, zrX, zrY); } } else { out[0] = zrX; out[1] = zrY; // xy should be based on canvas root. But tooltipContent is // the sibling of canvas root. So padding of ec container // should be considered here. var viewportRootOffset = zrPainter && zrPainter.getViewportRootOffset(); if (viewportRootOffset) { out[0] += viewportRootOffset.offsetLeft; out[1] += viewportRootOffset.offsetTop; } } out[2] = out[0] / zr.getWidth(); out[3] = out[1] / zr.getHeight(); } var TooltipHTMLContent = /** @class */function () { function TooltipHTMLContent(api, opt) { this._show = false; this._styleCoord = [0, 0, 0, 0]; this._enterable = true; this._alwaysShowContent = false; this._firstShow = true; this._longHide = true; if (zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__["default"].wxa) { return null; } var el = document.createElement('div'); // TODO: TYPE el.domBelongToZr = true; this.el = el; var zr = this._zr = api.getZr(); var appendTo = opt.appendTo; var container = appendTo && (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(appendTo) ? document.querySelector(appendTo) : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isDom"])(appendTo) ? appendTo : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(appendTo) && appendTo(api.getDom())); makeStyleCoord(this._styleCoord, zr, container, api.getWidth() / 2, api.getHeight() / 2); (container || api.getDom()).appendChild(el); this._api = api; this._container = container; // FIXME // Is it needed to trigger zr event manually if // the browser do not support `pointer-events: none`. var self = this; el.onmouseenter = function () { // clear the timeout in hideLater and keep showing tooltip if (self._enterable) { clearTimeout(self._hideTimeout); self._show = true; } self._inContent = true; }; el.onmousemove = function (e) { e = e || window.event; if (!self._enterable) { // `pointer-events: none` is set to tooltip content div // if `enterable` is set as `false`, and `el.onmousemove` // can not be triggered. But in browser that do not // support `pointer-events`, we need to do this: // Try trigger zrender event to avoid mouse // in and out shape too frequently var handler = zr.handler; var zrViewportRoot = zr.painter.getViewportRoot(); Object(zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_1__["normalizeEvent"])(zrViewportRoot, e, true); handler.dispatch('mousemove', e); } }; el.onmouseleave = function () { // set `_inContent` to `false` before `hideLater` self._inContent = false; if (self._enterable) { if (self._show) { self.hideLater(self._hideDelay); } } }; } /** * Update when tooltip is rendered */ TooltipHTMLContent.prototype.update = function (tooltipModel) { // FIXME // Move this logic to ec main? if (!this._container) { var container = this._api.getDom(); var position = Object(_helper_js__WEBPACK_IMPORTED_MODULE_5__["getComputedStyle"])(container, 'position'); var domStyle = container.style; if (domStyle.position !== 'absolute' && position !== 'absolute') { domStyle.position = 'relative'; } } // move tooltip if chart resized var alwaysShowContent = tooltipModel.get('alwaysShowContent'); alwaysShowContent && this._moveIfResized(); // update alwaysShowContent this._alwaysShowContent = alwaysShowContent; // update className this.el.className = tooltipModel.get('className') || ''; // Hide the tooltip // PENDING // this.hide(); }; TooltipHTMLContent.prototype.show = function (tooltipModel, nearPointColor) { clearTimeout(this._hideTimeout); clearTimeout(this._longHideTimeout); var el = this.el; var style = el.style; var styleCoord = this._styleCoord; if (!el.innerHTML) { style.display = 'none'; } else { style.cssText = gCssText + assembleCssText(tooltipModel, !this._firstShow, this._longHide) // initial transform + assembleTransform(styleCoord[0], styleCoord[1], true) + ("border-color:" + Object(_util_format_js__WEBPACK_IMPORTED_MODULE_4__["convertToColorString"])(nearPointColor) + ";") + (tooltipModel.get('extraCssText') || '') // If mouse occasionally move over the tooltip, a mouseout event will be // triggered by canvas, and cause some unexpectable result like dragging // stop, "unfocusAdjacency". Here `pointer-events: none` is used to solve // it. Although it is not supported by IE8~IE10, fortunately it is a rare // scenario. + (";pointer-events:" + (this._enterable ? 'auto' : 'none')); } this._show = true; this._firstShow = false; this._longHide = false; }; TooltipHTMLContent.prototype.setContent = function (content, markers, tooltipModel, borderColor, arrowPosition) { var el = this.el; if (content == null) { el.innerHTML = ''; return; } var arrow = ''; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(arrowPosition) && tooltipModel.get('trigger') === 'item' && !Object(_helper_js__WEBPACK_IMPORTED_MODULE_5__["shouldTooltipConfine"])(tooltipModel)) { arrow = assembleArrow(tooltipModel, borderColor, arrowPosition); } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(content)) { el.innerHTML = content + arrow; } else if (content) { // Clear previous el.innerHTML = ''; if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(content)) { content = [content]; } for (var i = 0; i < content.length; i++) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isDom"])(content[i]) && content[i].parentNode !== el) { el.appendChild(content[i]); } } // no arrow if empty if (arrow && el.childNodes.length) { // no need to create a new parent element, but it's not supported by IE 10 and older. // const arrowEl = document.createRange().createContextualFragment(arrow); var arrowEl = document.createElement('div'); arrowEl.innerHTML = arrow; el.appendChild(arrowEl); } } }; TooltipHTMLContent.prototype.setEnterable = function (enterable) { this._enterable = enterable; }; TooltipHTMLContent.prototype.getSize = function () { var el = this.el; return el ? [el.offsetWidth, el.offsetHeight] : [0, 0]; }; TooltipHTMLContent.prototype.moveTo = function (zrX, zrY) { if (!this.el) { return; } var styleCoord = this._styleCoord; makeStyleCoord(styleCoord, this._zr, this._container, zrX, zrY); if (styleCoord[0] != null && styleCoord[1] != null) { var style_1 = this.el.style; var transforms = assembleTransform(styleCoord[0], styleCoord[1]); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(transforms, function (transform) { style_1[transform[0]] = transform[1]; }); } }; /** * when `alwaysShowContent` is true, * move the tooltip after chart resized */ TooltipHTMLContent.prototype._moveIfResized = function () { // The ratio of left to width var ratioX = this._styleCoord[2]; // The ratio of top to height var ratioY = this._styleCoord[3]; this.moveTo(ratioX * this._zr.getWidth(), ratioY * this._zr.getHeight()); }; TooltipHTMLContent.prototype.hide = function () { var _this = this; var style = this.el.style; style.visibility = 'hidden'; style.opacity = '0'; zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__["default"].transform3dSupported && (style.willChange = ''); this._show = false; this._longHideTimeout = setTimeout(function () { return _this._longHide = true; }, 500); }; TooltipHTMLContent.prototype.hideLater = function (time) { if (this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent) { if (time) { this._hideDelay = time; // Set show false to avoid invoke hideLater multiple times this._show = false; this._hideTimeout = setTimeout(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"])(this.hide, this), time); } else { this.hide(); } } }; TooltipHTMLContent.prototype.isShow = function () { return this._show; }; TooltipHTMLContent.prototype.dispose = function () { clearTimeout(this._hideTimeout); clearTimeout(this._longHideTimeout); var parentNode = this.el.parentNode; parentNode && parentNode.removeChild(this.el); this.el = this._container = null; }; return TooltipHTMLContent; }(); /* harmony default export */ __webpack_exports__["default"] = (TooltipHTMLContent); /***/ }), /***/ "./node_modules/echarts/lib/component/tooltip/TooltipModel.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/component/tooltip/TooltipModel.js ***! \********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TooltipModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TooltipModel, _super); function TooltipModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = TooltipModel.type; return _this; } TooltipModel.type = 'tooltip'; TooltipModel.dependencies = ['axisPointer']; TooltipModel.defaultOption = { // zlevel: 0, z: 60, show: true, // tooltip main content showContent: true, // 'trigger' only works on coordinate system. // 'item' | 'axis' | 'none' trigger: 'item', // 'click' | 'mousemove' | 'none' triggerOn: 'mousemove|click', alwaysShowContent: false, displayMode: 'single', renderMode: 'auto', // whether restraint content inside viewRect. // If renderMode: 'richText', default true. // If renderMode: 'html', defaut false (for backward compat). confine: null, showDelay: 0, hideDelay: 100, // Animation transition time, unit is second transitionDuration: 0.4, enterable: false, backgroundColor: '#fff', // box shadow shadowBlur: 10, shadowColor: 'rgba(0, 0, 0, .2)', shadowOffsetX: 1, shadowOffsetY: 2, // tooltip border radius, unit is px, default is 4 borderRadius: 4, // tooltip border width, unit is px, default is 0 (no border) borderWidth: 1, // Tooltip inside padding, default is 5 for all direction // Array is allowed to set up, right, bottom, left, same with css // The default value: See `tooltip/tooltipMarkup.ts#getPaddingFromTooltipModel`. padding: null, // Extra css text extraCssText: '', // axis indicator, trigger by axis axisPointer: { // default is line // legal values: 'line' | 'shadow' | 'cross' type: 'line', // Valid when type is line, appoint tooltip line locate on which line. Optional // legal values: 'x' | 'y' | 'angle' | 'radius' | 'auto' // default is 'auto', chose the axis which type is category. // for multiply y axis, cartesian coord chose x axis, polar chose angle axis axis: 'auto', animation: 'auto', animationDurationUpdate: 200, animationEasingUpdate: 'exponentialOut', crossStyle: { color: '#999', width: 1, type: 'dashed', // TODO formatter textStyle: {} } // lineStyle and shadowStyle should not be specified here, // otherwise it will always override those styles on option.axisPointer. }, textStyle: { color: '#666', fontSize: 14 } }; return TooltipModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (TooltipModel); /***/ }), /***/ "./node_modules/echarts/lib/component/tooltip/TooltipRichContent.js": /*!**************************************************************************!*\ !*** ./node_modules/echarts/lib/component/tooltip/TooltipRichContent.js ***! \**************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_graphic_Text_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/graphic/Text.js */ "./node_modules/zrender/lib/graphic/Text.js"); /* harmony import */ var _tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TooltipRichContent = /** @class */function () { function TooltipRichContent(api) { this._show = false; this._styleCoord = [0, 0, 0, 0]; this._alwaysShowContent = false; this._enterable = true; this._zr = api.getZr(); makeStyleCoord(this._styleCoord, this._zr, api.getWidth() / 2, api.getHeight() / 2); } /** * Update when tooltip is rendered */ TooltipRichContent.prototype.update = function (tooltipModel) { var alwaysShowContent = tooltipModel.get('alwaysShowContent'); alwaysShowContent && this._moveIfResized(); // update alwaysShowContent this._alwaysShowContent = alwaysShowContent; }; TooltipRichContent.prototype.show = function () { if (this._hideTimeout) { clearTimeout(this._hideTimeout); } this.el.show(); this._show = true; }; /** * Set tooltip content */ TooltipRichContent.prototype.setContent = function (content, markupStyleCreator, tooltipModel, borderColor, arrowPosition) { var _this = this; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](content)) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["throwError"])( true ? 'Passing DOM nodes as content is not supported in richText tooltip!' : undefined); } if (this.el) { this._zr.remove(this.el); } var textStyleModel = tooltipModel.getModel('textStyle'); this.el = new zrender_lib_graphic_Text_js__WEBPACK_IMPORTED_MODULE_1__["default"]({ style: { rich: markupStyleCreator.richTextStyles, text: content, lineHeight: 22, borderWidth: 1, borderColor: borderColor, textShadowColor: textStyleModel.get('textShadowColor'), fill: tooltipModel.get(['textStyle', 'color']), padding: Object(_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_2__["getPaddingFromTooltipModel"])(tooltipModel, 'richText'), verticalAlign: 'top', align: 'left' }, z: tooltipModel.get('z') }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](['backgroundColor', 'borderRadius', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'], function (propName) { _this.el.style[propName] = tooltipModel.get(propName); }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](['textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY'], function (propName) { _this.el.style[propName] = textStyleModel.get(propName) || 0; }); this._zr.add(this.el); var self = this; this.el.on('mouseover', function () { // clear the timeout in hideLater and keep showing tooltip if (self._enterable) { clearTimeout(self._hideTimeout); self._show = true; } self._inContent = true; }); this.el.on('mouseout', function () { if (self._enterable) { if (self._show) { self.hideLater(self._hideDelay); } } self._inContent = false; }); }; TooltipRichContent.prototype.setEnterable = function (enterable) { this._enterable = enterable; }; TooltipRichContent.prototype.getSize = function () { var el = this.el; var bounding = this.el.getBoundingRect(); // bounding rect does not include shadow. For renderMode richText, // if overflow, it will be cut. So calculate them accurately. var shadowOuterSize = calcShadowOuterSize(el.style); return [bounding.width + shadowOuterSize.left + shadowOuterSize.right, bounding.height + shadowOuterSize.top + shadowOuterSize.bottom]; }; TooltipRichContent.prototype.moveTo = function (x, y) { var el = this.el; if (el) { var styleCoord = this._styleCoord; makeStyleCoord(styleCoord, this._zr, x, y); x = styleCoord[0]; y = styleCoord[1]; var style = el.style; var borderWidth = mathMaxWith0(style.borderWidth || 0); var shadowOuterSize = calcShadowOuterSize(style); // rich text x, y do not include border. el.x = x + borderWidth + shadowOuterSize.left; el.y = y + borderWidth + shadowOuterSize.top; el.markRedraw(); } }; /** * when `alwaysShowContent` is true, * move the tooltip after chart resized */ TooltipRichContent.prototype._moveIfResized = function () { // The ratio of left to width var ratioX = this._styleCoord[2]; // The ratio of top to height var ratioY = this._styleCoord[3]; this.moveTo(ratioX * this._zr.getWidth(), ratioY * this._zr.getHeight()); }; TooltipRichContent.prototype.hide = function () { if (this.el) { this.el.hide(); } this._show = false; }; TooltipRichContent.prototype.hideLater = function (time) { if (this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent) { if (time) { this._hideDelay = time; // Set show false to avoid invoke hideLater multiple times this._show = false; this._hideTimeout = setTimeout(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"](this.hide, this), time); } else { this.hide(); } } }; TooltipRichContent.prototype.isShow = function () { return this._show; }; TooltipRichContent.prototype.dispose = function () { this._zr.remove(this.el); }; return TooltipRichContent; }(); function mathMaxWith0(val) { return Math.max(0, val); } function calcShadowOuterSize(style) { var shadowBlur = mathMaxWith0(style.shadowBlur || 0); var shadowOffsetX = mathMaxWith0(style.shadowOffsetX || 0); var shadowOffsetY = mathMaxWith0(style.shadowOffsetY || 0); return { left: mathMaxWith0(shadowBlur - shadowOffsetX), right: mathMaxWith0(shadowBlur + shadowOffsetX), top: mathMaxWith0(shadowBlur - shadowOffsetY), bottom: mathMaxWith0(shadowBlur + shadowOffsetY) }; } function makeStyleCoord(out, zr, zrX, zrY) { out[0] = zrX; out[1] = zrY; out[2] = out[0] / zr.getWidth(); out[3] = out[1] / zr.getHeight(); } /* harmony default export */ __webpack_exports__["default"] = (TooltipRichContent); /***/ }), /***/ "./node_modules/echarts/lib/component/tooltip/TooltipView.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/component/tooltip/TooltipView.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/env.js */ "./node_modules/zrender/lib/core/env.js"); /* harmony import */ var _TooltipHTMLContent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TooltipHTMLContent.js */ "./node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js"); /* harmony import */ var _TooltipRichContent_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TooltipRichContent.js */ "./node_modules/echarts/lib/component/tooltip/TooltipRichContent.js"); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _axisPointer_findPointFromSeries_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../axisPointer/findPointFromSeries.js */ "./node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _axisPointer_globalListener_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../axisPointer/globalListener.js */ "./node_modules/echarts/lib/component/axisPointer/globalListener.js"); /* harmony import */ var _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../coord/axisHelper.js */ "./node_modules/echarts/lib/coord/axisHelper.js"); /* harmony import */ var _axisPointer_viewHelper_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../axisPointer/viewHelper.js */ "./node_modules/echarts/lib/component/axisPointer/viewHelper.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var _util_time_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../util/time.js */ "./node_modules/echarts/lib/util/time.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/component/tooltip/helper.js"); /* harmony import */ var _model_mixin_dataFormat_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../model/mixin/dataFormat.js */ "./node_modules/echarts/lib/model/mixin/dataFormat.js"); /* harmony import */ var _tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* harmony import */ var _util_event_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../util/event.js */ "./node_modules/echarts/lib/util/event.js"); /* harmony import */ var _util_throttle_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../util/throttle.js */ "./node_modules/echarts/lib/util/throttle.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var proxyRect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_7__["Rect"]({ shape: { x: -1, y: -1, width: 2, height: 2 } }); var TooltipView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TooltipView, _super); function TooltipView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = TooltipView.type; return _this; } TooltipView.prototype.init = function (ecModel, api) { if (zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_2__["default"].node || !api.getDom()) { return; } var tooltipModel = ecModel.getComponent('tooltip'); var renderMode = this._renderMode = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_14__["getTooltipRenderMode"])(tooltipModel.get('renderMode')); this._tooltipContent = renderMode === 'richText' ? new _TooltipRichContent_js__WEBPACK_IMPORTED_MODULE_4__["default"](api) : new _TooltipHTMLContent_js__WEBPACK_IMPORTED_MODULE_3__["default"](api, { appendTo: tooltipModel.get('appendToBody', true) ? 'body' : tooltipModel.get('appendTo', true) }); }; TooltipView.prototype.render = function (tooltipModel, ecModel, api) { if (zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_2__["default"].node || !api.getDom()) { return; } // Reset this.group.removeAll(); this._tooltipModel = tooltipModel; this._ecModel = ecModel; this._api = api; var tooltipContent = this._tooltipContent; tooltipContent.update(tooltipModel); tooltipContent.setEnterable(tooltipModel.get('enterable')); this._initGlobalListener(); this._keepShow(); // PENDING // `mousemove` event will be triggered very frequently when the mouse moves fast, // which causes that the `updatePosition` function was also called frequently. // In Chrome with devtools open and Firefox, tooltip looks laggy and shakes. See #14695 #16101 // To avoid frequent triggering, // consider throttling it in 50ms when transition is enabled if (this._renderMode !== 'richText' && tooltipModel.get('transitionDuration')) { Object(_util_throttle_js__WEBPACK_IMPORTED_MODULE_22__["createOrUpdate"])(this, '_updatePosition', 50, 'fixRate'); } else { Object(_util_throttle_js__WEBPACK_IMPORTED_MODULE_22__["clear"])(this, '_updatePosition'); } }; TooltipView.prototype._initGlobalListener = function () { var tooltipModel = this._tooltipModel; var triggerOn = tooltipModel.get('triggerOn'); _axisPointer_globalListener_js__WEBPACK_IMPORTED_MODULE_11__["register"]('itemTooltip', this._api, Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(function (currTrigger, e, dispatchAction) { // If 'none', it is not controlled by mouse totally. if (triggerOn !== 'none') { if (triggerOn.indexOf(currTrigger) >= 0) { this._tryShow(e, dispatchAction); } else if (currTrigger === 'leave') { this._hide(dispatchAction); } } }, this)); }; TooltipView.prototype._keepShow = function () { var tooltipModel = this._tooltipModel; var ecModel = this._ecModel; var api = this._api; var triggerOn = tooltipModel.get('triggerOn'); // Try to keep the tooltip show when refreshing if (this._lastX != null && this._lastY != null // When user is willing to control tooltip totally using API, // self.manuallyShowTip({x, y}) might cause tooltip hide, // which is not expected. && triggerOn !== 'none' && triggerOn !== 'click') { var self_1 = this; clearTimeout(this._refreshUpdateTimeout); this._refreshUpdateTimeout = setTimeout(function () { // Show tip next tick after other charts are rendered // In case highlight action has wrong result // FIXME !api.isDisposed() && self_1.manuallyShowTip(tooltipModel, ecModel, api, { x: self_1._lastX, y: self_1._lastY, dataByCoordSys: self_1._lastDataByCoordSys }); }); } }; /** * Show tip manually by * dispatchAction({ * type: 'showTip', * x: 10, * y: 10 * }); * Or * dispatchAction({ * type: 'showTip', * seriesIndex: 0, * dataIndex or dataIndexInside or name * }); * * TODO Batch */ TooltipView.prototype.manuallyShowTip = function (tooltipModel, ecModel, api, payload) { if (payload.from === this.uid || zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_2__["default"].node || !api.getDom()) { return; } var dispatchAction = makeDispatchAction(payload, api); // Reset ticket this._ticket = ''; // When triggered from axisPointer. var dataByCoordSys = payload.dataByCoordSys; var cmptRef = findComponentReference(payload, ecModel, api); if (cmptRef) { var rect = cmptRef.el.getBoundingRect().clone(); rect.applyTransform(cmptRef.el.transform); this._tryShow({ offsetX: rect.x + rect.width / 2, offsetY: rect.y + rect.height / 2, target: cmptRef.el, position: payload.position, // When manully trigger, the mouse is not on the el, so we'd better to // position tooltip on the bottom of the el and display arrow is possible. positionDefault: 'bottom' }, dispatchAction); } else if (payload.tooltip && payload.x != null && payload.y != null) { var el = proxyRect; el.x = payload.x; el.y = payload.y; el.update(); Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_17__["getECData"])(el).tooltipConfig = { name: null, option: payload.tooltip }; // Manually show tooltip while view is not using zrender elements. this._tryShow({ offsetX: payload.x, offsetY: payload.y, target: el }, dispatchAction); } else if (dataByCoordSys) { this._tryShow({ offsetX: payload.x, offsetY: payload.y, position: payload.position, dataByCoordSys: dataByCoordSys, tooltipOption: payload.tooltipOption }, dispatchAction); } else if (payload.seriesIndex != null) { if (this._manuallyAxisShowTip(tooltipModel, ecModel, api, payload)) { return; } var pointInfo = Object(_axisPointer_findPointFromSeries_js__WEBPACK_IMPORTED_MODULE_8__["default"])(payload, ecModel); var cx = pointInfo.point[0]; var cy = pointInfo.point[1]; if (cx != null && cy != null) { this._tryShow({ offsetX: cx, offsetY: cy, target: pointInfo.el, position: payload.position, // When manully trigger, the mouse is not on the el, so we'd better to // position tooltip on the bottom of the el and display arrow is possible. positionDefault: 'bottom' }, dispatchAction); } } else if (payload.x != null && payload.y != null) { // FIXME // should wrap dispatchAction like `axisPointer/globalListener` ? api.dispatchAction({ type: 'updateAxisPointer', x: payload.x, y: payload.y }); this._tryShow({ offsetX: payload.x, offsetY: payload.y, position: payload.position, target: api.getZr().findHover(payload.x, payload.y).target }, dispatchAction); } }; TooltipView.prototype.manuallyHideTip = function (tooltipModel, ecModel, api, payload) { var tooltipContent = this._tooltipContent; if (this._tooltipModel) { tooltipContent.hideLater(this._tooltipModel.get('hideDelay')); } this._lastX = this._lastY = this._lastDataByCoordSys = null; if (payload.from !== this.uid) { this._hide(makeDispatchAction(payload, api)); } }; // Be compatible with previous design, that is, when tooltip.type is 'axis' and // dispatchAction 'showTip' with seriesIndex and dataIndex will trigger axis pointer // and tooltip. TooltipView.prototype._manuallyAxisShowTip = function (tooltipModel, ecModel, api, payload) { var seriesIndex = payload.seriesIndex; var dataIndex = payload.dataIndex; // @ts-ignore var coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo; if (seriesIndex == null || dataIndex == null || coordSysAxesInfo == null) { return; } var seriesModel = ecModel.getSeriesByIndex(seriesIndex); if (!seriesModel) { return; } var data = seriesModel.getData(); var tooltipCascadedModel = buildTooltipModel([data.getItemModel(dataIndex), seriesModel, (seriesModel.coordinateSystem || {}).model], this._tooltipModel); if (tooltipCascadedModel.get('trigger') !== 'axis') { return; } api.dispatchAction({ type: 'updateAxisPointer', seriesIndex: seriesIndex, dataIndex: dataIndex, position: payload.position }); return true; }; TooltipView.prototype._tryShow = function (e, dispatchAction) { var el = e.target; var tooltipModel = this._tooltipModel; if (!tooltipModel) { return; } // Save mouse x, mouse y. So we can try to keep showing the tip if chart is refreshed this._lastX = e.offsetX; this._lastY = e.offsetY; var dataByCoordSys = e.dataByCoordSys; if (dataByCoordSys && dataByCoordSys.length) { this._showAxisTooltip(dataByCoordSys, e); } else if (el) { var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_17__["getECData"])(el); if (ecData.ssrType === 'legend') { // Don't trigger tooltip for legend tooltip item return; } this._lastDataByCoordSys = null; var seriesDispatcher_1; var cmptDispatcher_1; Object(_util_event_js__WEBPACK_IMPORTED_MODULE_21__["findEventDispatcher"])(el, function (target) { // Always show item tooltip if mouse is on the element with dataIndex if (Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_17__["getECData"])(target).dataIndex != null) { seriesDispatcher_1 = target; return true; } // Tooltip provided directly. Like legend. if (Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_17__["getECData"])(target).tooltipConfig != null) { cmptDispatcher_1 = target; return true; } }, true); if (seriesDispatcher_1) { this._showSeriesItemTooltip(e, seriesDispatcher_1, dispatchAction); } else if (cmptDispatcher_1) { this._showComponentItemTooltip(e, cmptDispatcher_1, dispatchAction); } else { this._hide(dispatchAction); } } else { this._lastDataByCoordSys = null; this._hide(dispatchAction); } }; TooltipView.prototype._showOrMove = function (tooltipModel, cb) { // showDelay is used in this case: tooltip.enterable is set // as true. User intent to move mouse into tooltip and click // something. `showDelay` makes it easier to enter the content // but tooltip do not move immediately. var delay = tooltipModel.get('showDelay'); cb = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(cb, this); clearTimeout(this._showTimout); delay > 0 ? this._showTimout = setTimeout(cb, delay) : cb(); }; TooltipView.prototype._showAxisTooltip = function (dataByCoordSys, e) { var ecModel = this._ecModel; var globalTooltipModel = this._tooltipModel; var point = [e.offsetX, e.offsetY]; var singleTooltipModel = buildTooltipModel([e.tooltipOption], globalTooltipModel); var renderMode = this._renderMode; var cbParamsList = []; var articleMarkup = Object(_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_20__["createTooltipMarkup"])('section', { blocks: [], noHeader: true }); // Only for legacy: `Serise['formatTooltip']` returns a string. var markupTextArrLegacy = []; var markupStyleCreator = new _tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_20__["TooltipMarkupStyleCreator"](); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(dataByCoordSys, function (itemCoordSys) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(itemCoordSys.dataByAxis, function (axisItem) { var axisModel = ecModel.getComponent(axisItem.axisDim + 'Axis', axisItem.axisIndex); var axisValue = axisItem.value; if (!axisModel || axisValue == null) { return; } var axisValueLabel = _axisPointer_viewHelper_js__WEBPACK_IMPORTED_MODULE_13__["getValueLabel"](axisValue, axisModel.axis, ecModel, axisItem.seriesDataIndices, axisItem.valueLabelOpt); var axisSectionMarkup = Object(_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_20__["createTooltipMarkup"])('section', { header: axisValueLabel, noHeader: !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["trim"])(axisValueLabel), sortBlocks: true, blocks: [] }); articleMarkup.blocks.push(axisSectionMarkup); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(axisItem.seriesDataIndices, function (idxItem) { var series = ecModel.getSeriesByIndex(idxItem.seriesIndex); var dataIndex = idxItem.dataIndexInside; var cbParams = series.getDataParams(dataIndex); // Can't find data. if (cbParams.dataIndex < 0) { return; } cbParams.axisDim = axisItem.axisDim; cbParams.axisIndex = axisItem.axisIndex; cbParams.axisType = axisItem.axisType; cbParams.axisId = axisItem.axisId; cbParams.axisValue = _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_12__["getAxisRawValue"](axisModel.axis, { value: axisValue }); cbParams.axisValueLabel = axisValueLabel; // Pre-create marker style for makers. Users can assemble richText // text in `formatter` callback and use those markers style. cbParams.marker = markupStyleCreator.makeTooltipMarker('item', Object(_util_format_js__WEBPACK_IMPORTED_MODULE_5__["convertToColorString"])(cbParams.color), renderMode); var seriesTooltipResult = Object(_model_mixin_dataFormat_js__WEBPACK_IMPORTED_MODULE_19__["normalizeTooltipFormatResult"])(series.formatTooltip(dataIndex, true, null)); var frag = seriesTooltipResult.frag; if (frag) { var valueFormatter = buildTooltipModel([series], globalTooltipModel).get('valueFormatter'); axisSectionMarkup.blocks.push(valueFormatter ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])({ valueFormatter: valueFormatter }, frag) : frag); } if (seriesTooltipResult.text) { markupTextArrLegacy.push(seriesTooltipResult.text); } cbParamsList.push(cbParams); }); }); }); // In most cases, the second axis is displays upper on the first one. // So we reverse it to look better. articleMarkup.blocks.reverse(); markupTextArrLegacy.reverse(); var positionExpr = e.position; var orderMode = singleTooltipModel.get('order'); var builtMarkupText = Object(_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_20__["buildTooltipMarkup"])(articleMarkup, markupStyleCreator, renderMode, orderMode, ecModel.get('useUTC'), singleTooltipModel.get('textStyle')); builtMarkupText && markupTextArrLegacy.unshift(builtMarkupText); var blockBreak = renderMode === 'richText' ? '\n\n' : '
'; var allMarkupText = markupTextArrLegacy.join(blockBreak); this._showOrMove(singleTooltipModel, function () { if (this._updateContentNotChangedOnAxis(dataByCoordSys, cbParamsList)) { this._updatePosition(singleTooltipModel, positionExpr, point[0], point[1], this._tooltipContent, cbParamsList); } else { this._showTooltipContent(singleTooltipModel, allMarkupText, cbParamsList, Math.random() + '', point[0], point[1], positionExpr, null, markupStyleCreator); } }); // Do not trigger events here, because this branch only be entered // from dispatchAction. }; TooltipView.prototype._showSeriesItemTooltip = function (e, dispatcher, dispatchAction) { var ecModel = this._ecModel; var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_17__["getECData"])(dispatcher); // Use dataModel in element if possible // Used when mouseover on a element like markPoint or edge // In which case, the data is not main data in series. var seriesIndex = ecData.seriesIndex; var seriesModel = ecModel.getSeriesByIndex(seriesIndex); // For example, graph link. var dataModel = ecData.dataModel || seriesModel; var dataIndex = ecData.dataIndex; var dataType = ecData.dataType; var data = dataModel.getData(dataType); var renderMode = this._renderMode; var positionDefault = e.positionDefault; var tooltipModel = buildTooltipModel([data.getItemModel(dataIndex), dataModel, seriesModel && (seriesModel.coordinateSystem || {}).model], this._tooltipModel, positionDefault ? { position: positionDefault } : null); var tooltipTrigger = tooltipModel.get('trigger'); if (tooltipTrigger != null && tooltipTrigger !== 'item') { return; } var params = dataModel.getDataParams(dataIndex, dataType); var markupStyleCreator = new _tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_20__["TooltipMarkupStyleCreator"](); // Pre-create marker style for makers. Users can assemble richText // text in `formatter` callback and use those markers style. params.marker = markupStyleCreator.makeTooltipMarker('item', Object(_util_format_js__WEBPACK_IMPORTED_MODULE_5__["convertToColorString"])(params.color), renderMode); var seriesTooltipResult = Object(_model_mixin_dataFormat_js__WEBPACK_IMPORTED_MODULE_19__["normalizeTooltipFormatResult"])(dataModel.formatTooltip(dataIndex, false, dataType)); var orderMode = tooltipModel.get('order'); var valueFormatter = tooltipModel.get('valueFormatter'); var frag = seriesTooltipResult.frag; var markupText = frag ? Object(_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_20__["buildTooltipMarkup"])(valueFormatter ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])({ valueFormatter: valueFormatter }, frag) : frag, markupStyleCreator, renderMode, orderMode, ecModel.get('useUTC'), tooltipModel.get('textStyle')) : seriesTooltipResult.text; var asyncTicket = 'item_' + dataModel.name + '_' + dataIndex; this._showOrMove(tooltipModel, function () { this._showTooltipContent(tooltipModel, markupText, params, asyncTicket, e.offsetX, e.offsetY, e.position, e.target, markupStyleCreator); }); // FIXME // duplicated showtip if manuallyShowTip is called from dispatchAction. dispatchAction({ type: 'showTip', dataIndexInside: dataIndex, dataIndex: data.getRawIndex(dataIndex), seriesIndex: seriesIndex, from: this.uid }); }; TooltipView.prototype._showComponentItemTooltip = function (e, el, dispatchAction) { var isHTMLRenderMode = this._renderMode === 'html'; var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_17__["getECData"])(el); var tooltipConfig = ecData.tooltipConfig; var tooltipOpt = tooltipConfig.option || {}; var encodeHTMLContent = tooltipOpt.encodeHTMLContent; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(tooltipOpt)) { var content = tooltipOpt; tooltipOpt = { content: content, // Fixed formatter formatter: content }; // when `tooltipConfig.option` is a string rather than an object, // we can't know if the content needs to be encoded // for the sake of security, encode it by default. encodeHTMLContent = true; } if (encodeHTMLContent && isHTMLRenderMode && tooltipOpt.content) { // clone might be unnecessary? tooltipOpt = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(tooltipOpt); tooltipOpt.content = Object(_util_format_js__WEBPACK_IMPORTED_MODULE_5__["encodeHTML"])(tooltipOpt.content); } var tooltipModelCascade = [tooltipOpt]; var cmpt = this._ecModel.getComponent(ecData.componentMainType, ecData.componentIndex); if (cmpt) { tooltipModelCascade.push(cmpt); } // In most cases, component tooltip formatter has different params with series tooltip formatter, // so that they cannot share the same formatter. Since the global tooltip formatter is used for series // by convention, we do not use it as the default formatter for component. tooltipModelCascade.push({ formatter: tooltipOpt.content }); var positionDefault = e.positionDefault; var subTooltipModel = buildTooltipModel(tooltipModelCascade, this._tooltipModel, positionDefault ? { position: positionDefault } : null); var defaultHtml = subTooltipModel.get('content'); var asyncTicket = Math.random() + ''; // PENDING: this case do not support richText style yet. var markupStyleCreator = new _tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_20__["TooltipMarkupStyleCreator"](); // Do not check whether `trigger` is 'none' here, because `trigger` // only works on coordinate system. In fact, we have not found case // that requires setting `trigger` nothing on component yet. this._showOrMove(subTooltipModel, function () { // Use formatterParams from element defined in component // Avoid users modify it. var formatterParams = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(subTooltipModel.get('formatterParams') || {}); this._showTooltipContent(subTooltipModel, defaultHtml, formatterParams, asyncTicket, e.offsetX, e.offsetY, e.position, el, markupStyleCreator); }); // If not dispatch showTip, tip may be hide triggered by axis. dispatchAction({ type: 'showTip', from: this.uid }); }; TooltipView.prototype._showTooltipContent = function ( // Use Model insteadof TooltipModel because this model may be from series or other options. // Instead of top level tooltip. tooltipModel, defaultHtml, params, asyncTicket, x, y, positionExpr, el, markupStyleCreator) { // Reset ticket this._ticket = ''; if (!tooltipModel.get('showContent') || !tooltipModel.get('show')) { return; } var tooltipContent = this._tooltipContent; tooltipContent.setEnterable(tooltipModel.get('enterable')); var formatter = tooltipModel.get('formatter'); positionExpr = positionExpr || tooltipModel.get('position'); var html = defaultHtml; var nearPoint = this._getNearestPoint([x, y], params, tooltipModel.get('trigger'), tooltipModel.get('borderColor')); var nearPointColor = nearPoint.color; if (formatter) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(formatter)) { var useUTC = tooltipModel.ecModel.get('useUTC'); var params0 = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(params) ? params[0] : params; var isTimeAxis = params0 && params0.axisType && params0.axisType.indexOf('time') >= 0; html = formatter; if (isTimeAxis) { html = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_16__["format"])(params0.axisValue, html, useUTC); } html = Object(_util_format_js__WEBPACK_IMPORTED_MODULE_5__["formatTpl"])(html, params, true); } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"])(formatter)) { var callback = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(function (cbTicket, html) { if (cbTicket === this._ticket) { tooltipContent.setContent(html, markupStyleCreator, tooltipModel, nearPointColor, positionExpr); this._updatePosition(tooltipModel, positionExpr, x, y, tooltipContent, params, el); } }, this); this._ticket = asyncTicket; html = formatter(params, asyncTicket, callback); } else { html = formatter; } } tooltipContent.setContent(html, markupStyleCreator, tooltipModel, nearPointColor, positionExpr); tooltipContent.show(tooltipModel, nearPointColor); this._updatePosition(tooltipModel, positionExpr, x, y, tooltipContent, params, el); }; TooltipView.prototype._getNearestPoint = function (point, tooltipDataParams, trigger, borderColor) { if (trigger === 'axis' || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(tooltipDataParams)) { return { color: borderColor || (this._renderMode === 'html' ? '#fff' : 'none') }; } if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(tooltipDataParams)) { return { color: borderColor || tooltipDataParams.color || tooltipDataParams.borderColor }; } }; TooltipView.prototype._updatePosition = function (tooltipModel, positionExpr, x, // Mouse x y, // Mouse y content, params, el) { var viewWidth = this._api.getWidth(); var viewHeight = this._api.getHeight(); positionExpr = positionExpr || tooltipModel.get('position'); var contentSize = content.getSize(); var align = tooltipModel.get('align'); var vAlign = tooltipModel.get('verticalAlign'); var rect = el && el.getBoundingRect().clone(); el && rect.applyTransform(el.transform); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"])(positionExpr)) { // Callback of position can be an array or a string specify the position positionExpr = positionExpr([x, y], params, content.el, rect, { viewSize: [viewWidth, viewHeight], contentSize: contentSize.slice() }); } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(positionExpr)) { x = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(positionExpr[0], viewWidth); y = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_6__["parsePercent"])(positionExpr[1], viewHeight); } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isObject"])(positionExpr)) { var boxLayoutPosition = positionExpr; boxLayoutPosition.width = contentSize[0]; boxLayoutPosition.height = contentSize[1]; var layoutRect = Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_9__["getLayoutRect"])(boxLayoutPosition, { width: viewWidth, height: viewHeight }); x = layoutRect.x; y = layoutRect.y; align = null; // When positionExpr is left/top/right/bottom, // align and verticalAlign will not work. vAlign = null; } // Specify tooltip position by string 'top' 'bottom' 'left' 'right' around graphic element else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(positionExpr) && el) { var pos = calcTooltipPosition(positionExpr, rect, contentSize, tooltipModel.get('borderWidth')); x = pos[0]; y = pos[1]; } else { var pos = refixTooltipPosition(x, y, content, viewWidth, viewHeight, align ? null : 20, vAlign ? null : 20); x = pos[0]; y = pos[1]; } align && (x -= isCenterAlign(align) ? contentSize[0] / 2 : align === 'right' ? contentSize[0] : 0); vAlign && (y -= isCenterAlign(vAlign) ? contentSize[1] / 2 : vAlign === 'bottom' ? contentSize[1] : 0); if (Object(_helper_js__WEBPACK_IMPORTED_MODULE_18__["shouldTooltipConfine"])(tooltipModel)) { var pos = confineTooltipPosition(x, y, content, viewWidth, viewHeight); x = pos[0]; y = pos[1]; } content.moveTo(x, y); }; // FIXME // Should we remove this but leave this to user? TooltipView.prototype._updateContentNotChangedOnAxis = function (dataByCoordSys, cbParamsList) { var lastCoordSys = this._lastDataByCoordSys; var lastCbParamsList = this._cbParamsList; var contentNotChanged = !!lastCoordSys && lastCoordSys.length === dataByCoordSys.length; contentNotChanged && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(lastCoordSys, function (lastItemCoordSys, indexCoordSys) { var lastDataByAxis = lastItemCoordSys.dataByAxis || []; var thisItemCoordSys = dataByCoordSys[indexCoordSys] || {}; var thisDataByAxis = thisItemCoordSys.dataByAxis || []; contentNotChanged = contentNotChanged && lastDataByAxis.length === thisDataByAxis.length; contentNotChanged && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(lastDataByAxis, function (lastItem, indexAxis) { var thisItem = thisDataByAxis[indexAxis] || {}; var lastIndices = lastItem.seriesDataIndices || []; var newIndices = thisItem.seriesDataIndices || []; contentNotChanged = contentNotChanged && lastItem.value === thisItem.value && lastItem.axisType === thisItem.axisType && lastItem.axisId === thisItem.axisId && lastIndices.length === newIndices.length; contentNotChanged && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(lastIndices, function (lastIdxItem, j) { var newIdxItem = newIndices[j]; contentNotChanged = contentNotChanged && lastIdxItem.seriesIndex === newIdxItem.seriesIndex && lastIdxItem.dataIndex === newIdxItem.dataIndex; }); // check is cbParams data value changed lastCbParamsList && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(lastItem.seriesDataIndices, function (idxItem) { var seriesIdx = idxItem.seriesIndex; var cbParams = cbParamsList[seriesIdx]; var lastCbParams = lastCbParamsList[seriesIdx]; if (cbParams && lastCbParams && lastCbParams.data !== cbParams.data) { contentNotChanged = false; } }); }); }); this._lastDataByCoordSys = dataByCoordSys; this._cbParamsList = cbParamsList; return !!contentNotChanged; }; TooltipView.prototype._hide = function (dispatchAction) { // Do not directly hideLater here, because this behavior may be prevented // in dispatchAction when showTip is dispatched. // FIXME // duplicated hideTip if manuallyHideTip is called from dispatchAction. this._lastDataByCoordSys = null; dispatchAction({ type: 'hideTip', from: this.uid }); }; TooltipView.prototype.dispose = function (ecModel, api) { if (zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_2__["default"].node || !api.getDom()) { return; } Object(_util_throttle_js__WEBPACK_IMPORTED_MODULE_22__["clear"])(this, '_updatePosition'); this._tooltipContent.dispose(); _axisPointer_globalListener_js__WEBPACK_IMPORTED_MODULE_11__["unregister"]('itemTooltip', api); }; TooltipView.type = 'tooltip'; return TooltipView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_15__["default"]); /** * From top to bottom. (the last one should be globalTooltipModel); */ function buildTooltipModel(modelCascade, globalTooltipModel, defaultTooltipOption) { // Last is always tooltip model. var ecModel = globalTooltipModel.ecModel; var resultModel; if (defaultTooltipOption) { resultModel = new _model_Model_js__WEBPACK_IMPORTED_MODULE_10__["default"](defaultTooltipOption, ecModel, ecModel); resultModel = new _model_Model_js__WEBPACK_IMPORTED_MODULE_10__["default"](globalTooltipModel.option, resultModel, ecModel); } else { resultModel = globalTooltipModel; } for (var i = modelCascade.length - 1; i >= 0; i--) { var tooltipOpt = modelCascade[i]; if (tooltipOpt) { if (tooltipOpt instanceof _model_Model_js__WEBPACK_IMPORTED_MODULE_10__["default"]) { tooltipOpt = tooltipOpt.get('tooltip', true); } // In each data item tooltip can be simply write: // { // value: 10, // tooltip: 'Something you need to know' // } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(tooltipOpt)) { tooltipOpt = { formatter: tooltipOpt }; } if (tooltipOpt) { resultModel = new _model_Model_js__WEBPACK_IMPORTED_MODULE_10__["default"](tooltipOpt, resultModel, ecModel); } } } return resultModel; } function makeDispatchAction(payload, api) { return payload.dispatchAction || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"])(api.dispatchAction, api); } function refixTooltipPosition(x, y, content, viewWidth, viewHeight, gapH, gapV) { var size = content.getSize(); var width = size[0]; var height = size[1]; if (gapH != null) { // Add extra 2 pixels for this case: // At present the "values" in default tooltip are using CSS `float: right`. // When the right edge of the tooltip box is on the right side of the // viewport, the `float` layout might push the "values" to the second line. if (x + width + gapH + 2 > viewWidth) { x -= width + gapH; } else { x += gapH; } } if (gapV != null) { if (y + height + gapV > viewHeight) { y -= height + gapV; } else { y += gapV; } } return [x, y]; } function confineTooltipPosition(x, y, content, viewWidth, viewHeight) { var size = content.getSize(); var width = size[0]; var height = size[1]; x = Math.min(x + width, viewWidth) - width; y = Math.min(y + height, viewHeight) - height; x = Math.max(x, 0); y = Math.max(y, 0); return [x, y]; } function calcTooltipPosition(position, rect, contentSize, borderWidth) { var domWidth = contentSize[0]; var domHeight = contentSize[1]; var offset = Math.ceil(Math.SQRT2 * borderWidth) + 8; var x = 0; var y = 0; var rectWidth = rect.width; var rectHeight = rect.height; switch (position) { case 'inside': x = rect.x + rectWidth / 2 - domWidth / 2; y = rect.y + rectHeight / 2 - domHeight / 2; break; case 'top': x = rect.x + rectWidth / 2 - domWidth / 2; y = rect.y - domHeight - offset; break; case 'bottom': x = rect.x + rectWidth / 2 - domWidth / 2; y = rect.y + rectHeight + offset; break; case 'left': x = rect.x - domWidth - offset; y = rect.y + rectHeight / 2 - domHeight / 2; break; case 'right': x = rect.x + rectWidth + offset; y = rect.y + rectHeight / 2 - domHeight / 2; } return [x, y]; } function isCenterAlign(align) { return align === 'center' || align === 'middle'; } /** * Find target component by payload like: * ```js * { legendId: 'some_id', name: 'xxx' } * { toolboxIndex: 1, name: 'xxx' } * { geoName: 'some_name', name: 'xxx' } * ``` * PENDING: at present only * * If not found, return null/undefined. */ function findComponentReference(payload, ecModel, api) { var queryOptionMap = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_14__["preParseFinder"])(payload).queryOptionMap; var componentMainType = queryOptionMap.keys()[0]; if (!componentMainType || componentMainType === 'series') { return; } var queryResult = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_14__["queryReferringComponents"])(ecModel, componentMainType, queryOptionMap.get(componentMainType), { useDefault: false, enableAll: false, enableNone: false }); var model = queryResult.models[0]; if (!model) { return; } var view = api.getViewOfComponentModel(model); var el; view.group.traverse(function (subEl) { var tooltipConfig = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_17__["getECData"])(subEl).tooltipConfig; if (tooltipConfig && tooltipConfig.name === payload.name) { el = subEl; return true; // stop } }); if (el) { return { componentMainType: componentMainType, componentIndex: model.componentIndex, el: el }; } } /* harmony default export */ __webpack_exports__["default"] = (TooltipView); /***/ }), /***/ "./node_modules/echarts/lib/component/tooltip/helper.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/component/tooltip/helper.js ***! \**************************************************************/ /*! exports provided: shouldTooltipConfine, TRANSFORM_VENDOR, TRANSITION_VENDOR, toCSSVendorPrefix, getComputedStyle */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shouldTooltipConfine", function() { return shouldTooltipConfine; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSFORM_VENDOR", function() { return TRANSFORM_VENDOR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSITION_VENDOR", function() { return TRANSITION_VENDOR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toCSSVendorPrefix", function() { return toCSSVendorPrefix; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getComputedStyle", function() { return getComputedStyle; }); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* harmony import */ var zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/env.js */ "./node_modules/zrender/lib/core/env.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global document */ function shouldTooltipConfine(tooltipModel) { var confineOption = tooltipModel.get('confine'); return confineOption != null ? !!confineOption // In richText mode, the outside part can not be visible. : tooltipModel.get('renderMode') === 'richText'; } function testStyle(styleProps) { if (!zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_1__["default"].domSupported) { return; } var style = document.documentElement.style; for (var i = 0, len = styleProps.length; i < len; i++) { if (styleProps[i] in style) { return styleProps[i]; } } } var TRANSFORM_VENDOR = testStyle(['transform', 'webkitTransform', 'OTransform', 'MozTransform', 'msTransform']); var TRANSITION_VENDOR = testStyle(['webkitTransition', 'transition', 'OTransition', 'MozTransition', 'msTransition']); function toCSSVendorPrefix(styleVendor, styleProp) { if (!styleVendor) { return styleProp; } styleProp = Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["toCamelCase"])(styleProp, true); var idx = styleVendor.indexOf(styleProp); styleVendor = idx === -1 ? styleProp : "-" + styleVendor.slice(0, idx) + "-" + styleProp; return styleVendor.toLowerCase(); } function getComputedStyle(el, style) { var stl = el.currentStyle || document.defaultView && document.defaultView.getComputedStyle(el); return stl ? style ? stl[style] : stl : null; } /***/ }), /***/ "./node_modules/echarts/lib/component/tooltip/install.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/component/tooltip/install.js ***! \***************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _axisPointer_install_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../axisPointer/install.js */ "./node_modules/echarts/lib/component/axisPointer/install.js"); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _TooltipModel_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TooltipModel.js */ "./node_modules/echarts/lib/component/tooltip/TooltipModel.js"); /* harmony import */ var _TooltipView_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TooltipView.js */ "./node_modules/echarts/lib/component/tooltip/TooltipView.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { Object(_extension_js__WEBPACK_IMPORTED_MODULE_1__["use"])(_axisPointer_install_js__WEBPACK_IMPORTED_MODULE_0__["install"]); registers.registerComponentModel(_TooltipModel_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registers.registerComponentView(_TooltipView_js__WEBPACK_IMPORTED_MODULE_3__["default"]); /** * @action * @property {string} type * @property {number} seriesIndex * @property {number} dataIndex * @property {number} [x] * @property {number} [y] */ registers.registerAction({ type: 'showTip', event: 'showTip', update: 'tooltip:manuallyShowTip' }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["noop"]); registers.registerAction({ type: 'hideTip', event: 'hideTip', update: 'tooltip:manuallyHideTip' }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["noop"]); } /***/ }), /***/ "./node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js": /*!***************************************************************************!*\ !*** ./node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js ***! \***************************************************************************/ /*! exports provided: defaultSeriesFormatTooltip */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultSeriesFormatTooltip", function() { return defaultSeriesFormatTooltip; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tooltipMarkup.js */ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js"); /* harmony import */ var _data_helper_dataProvider_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../data/helper/dataProvider.js */ "./node_modules/echarts/lib/data/helper/dataProvider.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function defaultSeriesFormatTooltip(opt) { var series = opt.series; var dataIndex = opt.dataIndex; var multipleSeries = opt.multipleSeries; var data = series.getData(); var tooltipDims = data.mapDimensionsAll('defaultedTooltip'); var tooltipDimLen = tooltipDims.length; var value = series.getRawValue(dataIndex); var isValueArr = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(value); var markerColor = Object(_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_1__["retrieveVisualColorForTooltipMarker"])(series, dataIndex); // Complicated rule for pretty tooltip. var inlineValue; var inlineValueType; var subBlocks; var sortParam; if (tooltipDimLen > 1 || isValueArr && !tooltipDimLen) { var formatArrResult = formatTooltipArrayValue(value, series, dataIndex, tooltipDims, markerColor); inlineValue = formatArrResult.inlineValues; inlineValueType = formatArrResult.inlineValueTypes; subBlocks = formatArrResult.blocks; // Only support tooltip sort by the first inline value. It's enough in most cases. sortParam = formatArrResult.inlineValues[0]; } else if (tooltipDimLen) { var dimInfo = data.getDimensionInfo(tooltipDims[0]); sortParam = inlineValue = Object(_data_helper_dataProvider_js__WEBPACK_IMPORTED_MODULE_2__["retrieveRawValue"])(data, dataIndex, tooltipDims[0]); inlineValueType = dimInfo.type; } else { sortParam = inlineValue = isValueArr ? value[0] : value; } // Do not show generated series name. It might not be readable. var seriesNameSpecified = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_3__["isNameSpecified"])(series); var seriesName = seriesNameSpecified && series.name || ''; var itemName = data.getName(dataIndex); var inlineName = multipleSeries ? seriesName : itemName; return Object(_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_1__["createTooltipMarkup"])('section', { header: seriesName, // When series name is not specified, do not show a header line with only '-'. // This case always happens in tooltip.trigger: 'item'. noHeader: multipleSeries || !seriesNameSpecified, sortParam: sortParam, blocks: [Object(_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_1__["createTooltipMarkup"])('nameValue', { markerType: 'item', markerColor: markerColor, // Do not mix display seriesName and itemName in one tooltip, // which might confuses users. name: inlineName, // name dimension might be auto assigned, where the name might // be not readable. So we check trim here. noName: !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["trim"])(inlineName), value: inlineValue, valueType: inlineValueType, dataIndex: dataIndex })].concat(subBlocks || []) }); } function formatTooltipArrayValue(value, series, dataIndex, tooltipDims, colorStr) { // check: category-no-encode-has-axis-data in dataset.html var data = series.getData(); var isValueMultipleLine = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["reduce"])(value, function (isValueMultipleLine, val, idx) { var dimItem = data.getDimensionInfo(idx); return isValueMultipleLine = isValueMultipleLine || dimItem && dimItem.tooltip !== false && dimItem.displayName != null; }, false); var inlineValues = []; var inlineValueTypes = []; var blocks = []; tooltipDims.length ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(tooltipDims, function (dim) { setEachItem(Object(_data_helper_dataProvider_js__WEBPACK_IMPORTED_MODULE_2__["retrieveRawValue"])(data, dataIndex, dim), dim); }) // By default, all dims is used on tooltip. : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(value, setEachItem); function setEachItem(val, dim) { var dimInfo = data.getDimensionInfo(dim); // If `dimInfo.tooltip` is not set, show tooltip. if (!dimInfo || dimInfo.otherDims.tooltip === false) { return; } if (isValueMultipleLine) { blocks.push(Object(_tooltipMarkup_js__WEBPACK_IMPORTED_MODULE_1__["createTooltipMarkup"])('nameValue', { markerType: 'subItem', markerColor: colorStr, name: dimInfo.displayName, value: val, valueType: dimInfo.type })); } else { inlineValues.push(val); inlineValueTypes.push(dimInfo.type); } } return { inlineValues: inlineValues, inlineValueTypes: inlineValueTypes, blocks: blocks }; } /***/ }), /***/ "./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/component/tooltip/tooltipMarkup.js ***! \*********************************************************************/ /*! exports provided: createTooltipMarkup, buildTooltipMarkup, retrieveVisualColorForTooltipMarker, getPaddingFromTooltipModel, TooltipMarkupStyleCreator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createTooltipMarkup", function() { return createTooltipMarkup; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildTooltipMarkup", function() { return buildTooltipMarkup; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retrieveVisualColorForTooltipMarker", function() { return retrieveVisualColorForTooltipMarker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPaddingFromTooltipModel", function() { return getPaddingFromTooltipModel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooltipMarkupStyleCreator", function() { return TooltipMarkupStyleCreator; }); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../data/helper/dataValueHelper.js */ "./node_modules/echarts/lib/data/helper/dataValueHelper.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TOOLTIP_LINE_HEIGHT_CSS = 'line-height:1'; function getTooltipLineHeight(textStyle) { var lineHeight = textStyle.lineHeight; if (lineHeight == null) { return TOOLTIP_LINE_HEIGHT_CSS; } else { return "line-height:" + Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["encodeHTML"])(lineHeight + '') + "px"; } } // TODO: more textStyle option function getTooltipTextStyle(textStyle, renderMode) { var nameFontColor = textStyle.color || '#6e7079'; var nameFontSize = textStyle.fontSize || 12; var nameFontWeight = textStyle.fontWeight || '400'; var valueFontColor = textStyle.color || '#464646'; var valueFontSize = textStyle.fontSize || 14; var valueFontWeight = textStyle.fontWeight || '900'; if (renderMode === 'html') { // `textStyle` is probably from user input, should be encoded to reduce security risk. return { // eslint-disable-next-line max-len nameStyle: "font-size:" + Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["encodeHTML"])(nameFontSize + '') + "px;color:" + Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["encodeHTML"])(nameFontColor) + ";font-weight:" + Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["encodeHTML"])(nameFontWeight + ''), // eslint-disable-next-line max-len valueStyle: "font-size:" + Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["encodeHTML"])(valueFontSize + '') + "px;color:" + Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["encodeHTML"])(valueFontColor) + ";font-weight:" + Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["encodeHTML"])(valueFontWeight + '') }; } else { return { nameStyle: { fontSize: nameFontSize, fill: nameFontColor, fontWeight: nameFontWeight }, valueStyle: { fontSize: valueFontSize, fill: valueFontColor, fontWeight: valueFontWeight } }; } } // See `TooltipMarkupLayoutIntent['innerGapLevel']`. // (value from UI design) var HTML_GAPS = [0, 10, 20, 30]; var RICH_TEXT_GAPS = ['', '\n', '\n\n', '\n\n\n']; // eslint-disable-next-line max-len function createTooltipMarkup(type, option) { option.type = type; return option; } function isSectionFragment(frag) { return frag.type === 'section'; } function getBuilder(frag) { return isSectionFragment(frag) ? buildSection : buildNameValue; } function getBlockGapLevel(frag) { if (isSectionFragment(frag)) { var gapLevel_1 = 0; var subBlockLen = frag.blocks.length; var hasInnerGap_1 = subBlockLen > 1 || subBlockLen > 0 && !frag.noHeader; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(frag.blocks, function (subBlock) { var subGapLevel = getBlockGapLevel(subBlock); // If the some of the sub-blocks have some gaps (like 10px) inside, this block // should use a larger gap (like 20px) to distinguish those sub-blocks. if (subGapLevel >= gapLevel_1) { gapLevel_1 = subGapLevel + +(hasInnerGap_1 && ( // 0 always can not be readable gap level. !subGapLevel // If no header, always keep the sub gap level. Otherwise // look weird in case `multipleSeries`. || isSectionFragment(subBlock) && !subBlock.noHeader)); } }); return gapLevel_1; } return 0; } function buildSection(ctx, fragment, topMarginForOuterGap, toolTipTextStyle) { var noHeader = fragment.noHeader; var gaps = getGap(getBlockGapLevel(fragment)); var subMarkupTextList = []; var subBlocks = fragment.blocks || []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(!subBlocks || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(subBlocks)); subBlocks = subBlocks || []; var orderMode = ctx.orderMode; if (fragment.sortBlocks && orderMode) { subBlocks = subBlocks.slice(); var orderMap = { valueAsc: 'asc', valueDesc: 'desc' }; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(orderMap, orderMode)) { var comparator_1 = new _data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_2__["SortOrderComparator"](orderMap[orderMode], null); subBlocks.sort(function (a, b) { return comparator_1.evaluate(a.sortParam, b.sortParam); }); } // FIXME 'seriesDesc' necessary? else if (orderMode === 'seriesDesc') { subBlocks.reverse(); } } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(subBlocks, function (subBlock, idx) { var valueFormatter = fragment.valueFormatter; var subMarkupText = getBuilder(subBlock)( // Inherit valueFormatter valueFormatter ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])({}, ctx), { valueFormatter: valueFormatter }) : ctx, subBlock, idx > 0 ? gaps.html : 0, toolTipTextStyle); subMarkupText != null && subMarkupTextList.push(subMarkupText); }); var subMarkupText = ctx.renderMode === 'richText' ? subMarkupTextList.join(gaps.richText) : wrapBlockHTML(toolTipTextStyle, subMarkupTextList.join(''), noHeader ? topMarginForOuterGap : gaps.html); if (noHeader) { return subMarkupText; } var displayableHeader = Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["makeValueReadable"])(fragment.header, 'ordinal', ctx.useUTC); var nameStyle = getTooltipTextStyle(toolTipTextStyle, ctx.renderMode).nameStyle; var tooltipLineHeight = getTooltipLineHeight(toolTipTextStyle); if (ctx.renderMode === 'richText') { return wrapInlineNameRichText(ctx, displayableHeader, nameStyle) + gaps.richText + subMarkupText; } else { return wrapBlockHTML(toolTipTextStyle, "
" + Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["encodeHTML"])(displayableHeader) + '
' + subMarkupText, topMarginForOuterGap); } } function buildNameValue(ctx, fragment, topMarginForOuterGap, toolTipTextStyle) { var renderMode = ctx.renderMode; var noName = fragment.noName; var noValue = fragment.noValue; var noMarker = !fragment.markerType; var name = fragment.name; var useUTC = ctx.useUTC; var valueFormatter = fragment.valueFormatter || ctx.valueFormatter || function (value) { value = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(value) ? value : [value]; return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"])(value, function (val, idx) { return Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["makeValueReadable"])(val, Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(valueTypeOption) ? valueTypeOption[idx] : valueTypeOption, useUTC); }); }; if (noName && noValue) { return; } var markerStr = noMarker ? '' : ctx.markupStyleCreator.makeTooltipMarker(fragment.markerType, fragment.markerColor || '#333', renderMode); var readableName = noName ? '' : Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["makeValueReadable"])(name, 'ordinal', useUTC); var valueTypeOption = fragment.valueType; var readableValueList = noValue ? [] : valueFormatter(fragment.value, fragment.dataIndex); var valueAlignRight = !noMarker || !noName; // It little weird if only value next to marker but far from marker. var valueCloseToMarker = !noMarker && noName; var _a = getTooltipTextStyle(toolTipTextStyle, renderMode), nameStyle = _a.nameStyle, valueStyle = _a.valueStyle; return renderMode === 'richText' ? (noMarker ? '' : markerStr) + (noName ? '' : wrapInlineNameRichText(ctx, readableName, nameStyle)) // Value has commas inside, so use ' ' as delimiter for multiple values. + (noValue ? '' : wrapInlineValueRichText(ctx, readableValueList, valueAlignRight, valueCloseToMarker, valueStyle)) : wrapBlockHTML(toolTipTextStyle, (noMarker ? '' : markerStr) + (noName ? '' : wrapInlineNameHTML(readableName, !noMarker, nameStyle)) + (noValue ? '' : wrapInlineValueHTML(readableValueList, valueAlignRight, valueCloseToMarker, valueStyle)), topMarginForOuterGap); } /** * @return markupText. null/undefined means no content. */ function buildTooltipMarkup(fragment, markupStyleCreator, renderMode, orderMode, useUTC, toolTipTextStyle) { if (!fragment) { return; } var builder = getBuilder(fragment); var ctx = { useUTC: useUTC, renderMode: renderMode, orderMode: orderMode, markupStyleCreator: markupStyleCreator, valueFormatter: fragment.valueFormatter }; return builder(ctx, fragment, 0, toolTipTextStyle); } function getGap(gapLevel) { return { html: HTML_GAPS[gapLevel], richText: RICH_TEXT_GAPS[gapLevel] }; } function wrapBlockHTML(textStyle, encodedContent, topGap) { var clearfix = '
'; var marginCSS = "margin: " + topGap + "px 0 0"; var tooltipLineHeight = getTooltipLineHeight(textStyle); return "
" + encodedContent + clearfix + '
'; } function wrapInlineNameHTML(name, leftHasMarker, style) { var marginCss = leftHasMarker ? 'margin-left:2px' : ''; return "" + Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["encodeHTML"])(name) + ''; } function wrapInlineValueHTML(valueList, alignRight, valueCloseToMarker, style) { // Do not too close to marker, considering there are multiple values separated by spaces. var paddingStr = valueCloseToMarker ? '10px' : '20px'; var alignCSS = alignRight ? "float:right;margin-left:" + paddingStr : ''; valueList = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(valueList) ? valueList : [valueList]; return "" // Value has commas inside, so use ' ' as delimiter for multiple values. + Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"])(valueList, function (value) { return Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["encodeHTML"])(value); }).join('  ') + ''; } function wrapInlineNameRichText(ctx, name, style) { return ctx.markupStyleCreator.wrapRichTextStyle(name, style); } function wrapInlineValueRichText(ctx, values, alignRight, valueCloseToMarker, style) { var styles = [style]; var paddingLeft = valueCloseToMarker ? 10 : 20; alignRight && styles.push({ padding: [0, 0, 0, paddingLeft], align: 'right' }); // Value has commas inside, so use ' ' as delimiter for multiple values. return ctx.markupStyleCreator.wrapRichTextStyle(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(values) ? values.join(' ') : values, styles); } function retrieveVisualColorForTooltipMarker(series, dataIndex) { var style = series.getData().getItemVisual(dataIndex, 'style'); var color = style[series.visualDrawType]; return Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["convertToColorString"])(color); } function getPaddingFromTooltipModel(model, renderMode) { var padding = model.get('padding'); return padding != null ? padding // We give slightly different to look pretty. : renderMode === 'richText' ? [8, 10] : 10; } /** * The major feature is generate styles for `renderMode: 'richText'`. * But it also serves `renderMode: 'html'` to provide * "renderMode-independent" API. */ var TooltipMarkupStyleCreator = /** @class */function () { function TooltipMarkupStyleCreator() { this.richTextStyles = {}; // Notice that "generate a style name" usually happens repeatedly when mouse is moving and // a tooltip is displayed. So we put the `_nextStyleNameId` as a member of each creator // rather than static shared by all creators (which will cause it increase to fast). this._nextStyleNameId = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_3__["getRandomIdBase"])(); } TooltipMarkupStyleCreator.prototype._generateStyleName = function () { return '__EC_aUTo_' + this._nextStyleNameId++; }; TooltipMarkupStyleCreator.prototype.makeTooltipMarker = function (markerType, colorStr, renderMode) { var markerId = renderMode === 'richText' ? this._generateStyleName() : null; var marker = Object(_util_format_js__WEBPACK_IMPORTED_MODULE_0__["getTooltipMarker"])({ color: colorStr, type: markerType, renderMode: renderMode, markerId: markerId }); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(marker)) { return marker; } else { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(markerId); } this.richTextStyles[markerId] = marker.style; return marker.content; } }; /** * @usage * ```ts * const styledText = markupStyleCreator.wrapRichTextStyle([ * // The styles will be auto merged. * { * fontSize: 12, * color: 'blue' * }, * { * padding: 20 * } * ]); * ``` */ TooltipMarkupStyleCreator.prototype.wrapRichTextStyle = function (text, styles) { var finalStl = {}; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(styles)) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(styles, function (stl) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(finalStl, stl); }); } else { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(finalStl, styles); } var styleName = this._generateStyleName(); this.richTextStyles[styleName] = finalStl; return "{" + styleName + "|" + text + "}"; }; return TooltipMarkupStyleCreator; }(); /***/ }), /***/ "./node_modules/echarts/lib/component/transform/filterTransform.js": /*!*************************************************************************!*\ !*** ./node_modules/echarts/lib/component/transform/filterTransform.js ***! \*************************************************************************/ /*! exports provided: filterTransform */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterTransform", function() { return filterTransform; }); /* harmony import */ var _util_conditionalExpression_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/conditionalExpression.js */ "./node_modules/echarts/lib/util/conditionalExpression.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var filterTransform = { type: 'echarts:filter', // PENDING: enhance to filter by index rather than create new data transform: function (params) { // [Caveat] Fail-Fast: // Do not return the whole dataset unless user config indicates it explicitly. // For example, if no condition is specified by mistake, returning an empty result // is better than returning the entire raw source for the user to find the mistake. var upstream = params.upstream; var rawItem; var condition = Object(_util_conditionalExpression_js__WEBPACK_IMPORTED_MODULE_0__["parseConditionalExpression"])(params.config, { valueGetterAttrMap: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])({ dimension: true }), prepareGetValue: function (exprOption) { var errMsg = ''; var dimLoose = exprOption.dimension; if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(exprOption, 'dimension')) { if (true) { errMsg = Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["makePrintable"])('Relation condition must has prop "dimension" specified.', 'Illegal condition:', exprOption); } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["throwError"])(errMsg); } var dimInfo = upstream.getDimensionInfo(dimLoose); if (!dimInfo) { if (true) { errMsg = Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["makePrintable"])('Can not find dimension info via: ' + dimLoose + '.\n', 'Existing dimensions: ', upstream.cloneAllDimensionInfo(), '.\n', 'Illegal condition:', exprOption, '.\n'); } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["throwError"])(errMsg); } return { dimIdx: dimInfo.index }; }, getValue: function (param) { return upstream.retrieveValueFromItem(rawItem, param.dimIdx); } }); var resultData = []; for (var i = 0, len = upstream.count(); i < len; i++) { rawItem = upstream.getRawDataItem(i); if (condition.evaluate()) { resultData.push(rawItem); } } return { data: resultData }; } }; /***/ }), /***/ "./node_modules/echarts/lib/component/transform/install.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/component/transform/install.js ***! \*****************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _filterTransform_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./filterTransform.js */ "./node_modules/echarts/lib/component/transform/filterTransform.js"); /* harmony import */ var _sortTransform_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sortTransform.js */ "./node_modules/echarts/lib/component/transform/sortTransform.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerTransform(_filterTransform_js__WEBPACK_IMPORTED_MODULE_0__["filterTransform"]); registers.registerTransform(_sortTransform_js__WEBPACK_IMPORTED_MODULE_1__["sortTransform"]); } /***/ }), /***/ "./node_modules/echarts/lib/component/transform/sortTransform.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/transform/sortTransform.js ***! \***********************************************************************/ /*! exports provided: sortTransform */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortTransform", function() { return sortTransform; }); /* harmony import */ var _util_types_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/types.js */ "./node_modules/echarts/lib/util/types.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../data/helper/dataValueHelper.js */ "./node_modules/echarts/lib/data/helper/dataValueHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var sampleLog = ''; if (true) { sampleLog = ['Valid config is like:', '{ dimension: "age", order: "asc" }', 'or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(' '); } var sortTransform = { type: 'echarts:sort', transform: function (params) { var upstream = params.upstream; var config = params.config; var errMsg = ''; // Normalize // const orderExprList: OrderExpression[] = isArray(config[0]) // ? config as OrderExpression[] // : [config as OrderExpression]; var orderExprList = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_3__["normalizeToArray"])(config); if (!orderExprList.length) { if (true) { errMsg = 'Empty `config` in sort transform.'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } var orderDefList = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(orderExprList, function (orderExpr) { var dimLoose = orderExpr.dimension; var order = orderExpr.order; var parserName = orderExpr.parser; var incomparable = orderExpr.incomparable; if (dimLoose == null) { if (true) { errMsg = 'Sort transform config must has "dimension" specified.' + sampleLog; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } if (order !== 'asc' && order !== 'desc') { if (true) { errMsg = 'Sort transform config must has "order" specified.' + sampleLog; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } if (incomparable && incomparable !== 'min' && incomparable !== 'max') { var errMsg_1 = ''; if (true) { errMsg_1 = 'incomparable must be "min" or "max" rather than "' + incomparable + '".'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg_1); } if (order !== 'asc' && order !== 'desc') { var errMsg_2 = ''; if (true) { errMsg_2 = 'order must be "asc" or "desc" rather than "' + order + '".'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg_2); } var dimInfo = upstream.getDimensionInfo(dimLoose); if (!dimInfo) { if (true) { errMsg = Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["makePrintable"])('Can not find dimension info via: ' + dimLoose + '.\n', 'Existing dimensions: ', upstream.cloneAllDimensionInfo(), '.\n', 'Illegal config:', orderExpr, '.\n'); } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } var parser = parserName ? Object(_data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_4__["getRawValueParser"])(parserName) : null; if (parserName && !parser) { if (true) { errMsg = Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["makePrintable"])('Invalid parser name ' + parserName + '.\n', 'Illegal config:', orderExpr, '.\n'); } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } orderDefList.push({ dimIdx: dimInfo.index, parser: parser, comparator: new _data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_4__["SortOrderComparator"](order, incomparable) }); }); // TODO: support it? var sourceFormat = upstream.sourceFormat; if (sourceFormat !== _util_types_js__WEBPACK_IMPORTED_MODULE_0__["SOURCE_FORMAT_ARRAY_ROWS"] && sourceFormat !== _util_types_js__WEBPACK_IMPORTED_MODULE_0__["SOURCE_FORMAT_OBJECT_ROWS"]) { if (true) { errMsg = 'sourceFormat "' + sourceFormat + '" is not supported yet'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } // Other upstream format are all array. var resultData = []; for (var i = 0, len = upstream.count(); i < len; i++) { resultData.push(upstream.getRawDataItem(i)); } resultData.sort(function (item0, item1) { for (var i = 0; i < orderDefList.length; i++) { var orderDef = orderDefList[i]; var val0 = upstream.retrieveValueFromItem(item0, orderDef.dimIdx); var val1 = upstream.retrieveValueFromItem(item1, orderDef.dimIdx); if (orderDef.parser) { val0 = orderDef.parser(val0); val1 = orderDef.parser(val1); } var result = orderDef.comparator.evaluate(val0, val1); if (result !== 0) { return result; } } return 0; }); return { data: resultData }; } }; /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/ContinuousModel.js": /*!*************************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/ContinuousModel.js ***! \*************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _VisualMapModel_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VisualMapModel.js */ "./node_modules/echarts/lib/component/visualMap/VisualMapModel.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Constant var DEFAULT_BAR_BOUND = [20, 140]; var ContinuousModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ContinuousModel, _super); function ContinuousModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ContinuousModel.type; return _this; } /** * @override */ ContinuousModel.prototype.optionUpdated = function (newOption, isInit) { _super.prototype.optionUpdated.apply(this, arguments); this.resetExtent(); this.resetVisual(function (mappingOption) { mappingOption.mappingMethod = 'linear'; mappingOption.dataExtent = this.getExtent(); }); this._resetRange(); }; /** * @protected * @override */ ContinuousModel.prototype.resetItemSize = function () { _super.prototype.resetItemSize.apply(this, arguments); var itemSize = this.itemSize; (itemSize[0] == null || isNaN(itemSize[0])) && (itemSize[0] = DEFAULT_BAR_BOUND[0]); (itemSize[1] == null || isNaN(itemSize[1])) && (itemSize[1] = DEFAULT_BAR_BOUND[1]); }; /** * @private */ ContinuousModel.prototype._resetRange = function () { var dataExtent = this.getExtent(); var range = this.option.range; if (!range || range.auto) { // `range` should always be array (so we don't use other // value like 'auto') for user-friend. (consider getOption). dataExtent.auto = 1; this.option.range = dataExtent; } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](range)) { if (range[0] > range[1]) { range.reverse(); } range[0] = Math.max(range[0], dataExtent[0]); range[1] = Math.min(range[1], dataExtent[1]); } }; /** * @protected * @override */ ContinuousModel.prototype.completeVisualOption = function () { _super.prototype.completeVisualOption.apply(this, arguments); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](this.stateList, function (state) { var symbolSize = this.option.controller[state].symbolSize; if (symbolSize && symbolSize[0] !== symbolSize[1]) { symbolSize[0] = symbolSize[1] / 3; // For good looking. } }, this); }; /** * @override */ ContinuousModel.prototype.setSelected = function (selected) { this.option.range = selected.slice(); this._resetRange(); }; /** * @public */ ContinuousModel.prototype.getSelected = function () { var dataExtent = this.getExtent(); var dataInterval = _util_number_js__WEBPACK_IMPORTED_MODULE_3__["asc"]((this.get('range') || []).slice()); // Clamp dataInterval[0] > dataExtent[1] && (dataInterval[0] = dataExtent[1]); dataInterval[1] > dataExtent[1] && (dataInterval[1] = dataExtent[1]); dataInterval[0] < dataExtent[0] && (dataInterval[0] = dataExtent[0]); dataInterval[1] < dataExtent[0] && (dataInterval[1] = dataExtent[0]); return dataInterval; }; /** * @override */ ContinuousModel.prototype.getValueState = function (value) { var range = this.option.range; var dataExtent = this.getExtent(); // When range[0] === dataExtent[0], any value larger than dataExtent[0] maps to 'inRange'. // range[1] is processed likewise. return (range[0] <= dataExtent[0] || range[0] <= value) && (range[1] >= dataExtent[1] || value <= range[1]) ? 'inRange' : 'outOfRange'; }; ContinuousModel.prototype.findTargetDataIndices = function (range) { var result = []; this.eachTargetSeries(function (seriesModel) { var dataIndices = []; var data = seriesModel.getData(); data.each(this.getDataDimensionIndex(data), function (value, dataIndex) { range[0] <= value && value <= range[1] && dataIndices.push(dataIndex); }, this); result.push({ seriesId: seriesModel.id, dataIndex: dataIndices }); }, this); return result; }; /** * @implement */ ContinuousModel.prototype.getVisualMeta = function (getColorVisual) { var oVals = getColorStopValues(this, 'outOfRange', this.getExtent()); var iVals = getColorStopValues(this, 'inRange', this.option.range.slice()); var stops = []; function setStop(value, valueState) { stops.push({ value: value, color: getColorVisual(value, valueState) }); } // Format to: outOfRange -- inRange -- outOfRange. var iIdx = 0; var oIdx = 0; var iLen = iVals.length; var oLen = oVals.length; for (; oIdx < oLen && (!iVals.length || oVals[oIdx] <= iVals[0]); oIdx++) { // If oVal[oIdx] === iVals[iIdx], oVal[oIdx] should be ignored. if (oVals[oIdx] < iVals[iIdx]) { setStop(oVals[oIdx], 'outOfRange'); } } for (var first = 1; iIdx < iLen; iIdx++, first = 0) { // If range is full, value beyond min, max will be clamped. // make a singularity first && stops.length && setStop(iVals[iIdx], 'outOfRange'); setStop(iVals[iIdx], 'inRange'); } for (var first = 1; oIdx < oLen; oIdx++) { if (!iVals.length || iVals[iVals.length - 1] < oVals[oIdx]) { // make a singularity if (first) { stops.length && setStop(stops[stops.length - 1].value, 'outOfRange'); first = 0; } setStop(oVals[oIdx], 'outOfRange'); } } var stopsLen = stops.length; return { stops: stops, outerColors: [stopsLen ? stops[0].color : 'transparent', stopsLen ? stops[stopsLen - 1].color : 'transparent'] }; }; ContinuousModel.type = 'visualMap.continuous'; ContinuousModel.defaultOption = Object(_util_component_js__WEBPACK_IMPORTED_MODULE_4__["inheritDefaultOption"])(_VisualMapModel_js__WEBPACK_IMPORTED_MODULE_2__["default"].defaultOption, { align: 'auto', calculable: false, hoverLink: true, realtime: true, handleIcon: 'path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z', handleSize: '120%', handleStyle: { borderColor: '#fff', borderWidth: 1 }, indicatorIcon: 'circle', indicatorSize: '50%', indicatorStyle: { borderColor: '#fff', borderWidth: 2, shadowBlur: 2, shadowOffsetX: 1, shadowOffsetY: 1, shadowColor: 'rgba(0,0,0,0.2)' } // emphasis: { // handleStyle: { // shadowBlur: 3, // shadowOffsetX: 1, // shadowOffsetY: 1, // shadowColor: 'rgba(0,0,0,0.2)' // } // } }); return ContinuousModel; }(_VisualMapModel_js__WEBPACK_IMPORTED_MODULE_2__["default"]); function getColorStopValues(visualMapModel, valueState, dataExtent) { if (dataExtent[0] === dataExtent[1]) { return dataExtent.slice(); } // When using colorHue mapping, it is not linear color any more. // Moreover, canvas gradient seems not to be accurate linear. // FIXME // Should be arbitrary value 100? or based on pixel size? var count = 200; var step = (dataExtent[1] - dataExtent[0]) / count; var value = dataExtent[0]; var stopValues = []; for (var i = 0; i <= count && value < dataExtent[1]; i++) { stopValues.push(value); value += step; } stopValues.push(dataExtent[1]); return stopValues; } /* harmony default export */ __webpack_exports__["default"] = (ContinuousModel); /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/ContinuousView.js": /*!************************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/ContinuousView.js ***! \************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_graphic_LinearGradient_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/graphic/LinearGradient.js */ "./node_modules/zrender/lib/graphic/LinearGradient.js"); /* harmony import */ var zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/event.js */ "./node_modules/zrender/lib/core/event.js"); /* harmony import */ var _VisualMapView_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VisualMapView.js */ "./node_modules/echarts/lib/component/visualMap/VisualMapView.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _helper_sliderMove_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helper/sliderMove.js */ "./node_modules/echarts/lib/component/helper/sliderMove.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/component/visualMap/helper.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! zrender/lib/contain/text.js */ "./node_modules/zrender/lib/contain/text.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! zrender/lib/graphic/Image.js */ "./node_modules/zrender/lib/graphic/Image.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _util_event_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../util/event.js */ "./node_modules/echarts/lib/util/event.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var linearMap = _util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"]; var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"]; var mathMin = Math.min; var mathMax = Math.max; // Arbitrary value var HOVER_LINK_SIZE = 12; var HOVER_LINK_OUT = 6; // Notice: // Any "interval" should be by the order of [low, high]. // "handle0" (handleIndex === 0) maps to // low data value: this._dataInterval[0] and has low coord. // "handle1" (handleIndex === 1) maps to // high data value: this._dataInterval[1] and has high coord. // The logic of transform is implemented in this._createBarGroup. var ContinuousView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ContinuousView, _super); function ContinuousView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ContinuousView.type; _this._shapes = {}; _this._dataInterval = []; _this._handleEnds = []; _this._hoverLinkDataIndices = []; return _this; } ContinuousView.prototype.init = function (ecModel, api) { _super.prototype.init.call(this, ecModel, api); this._hoverLinkFromSeriesMouseOver = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](this._hoverLinkFromSeriesMouseOver, this); this._hideIndicator = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](this._hideIndicator, this); }; ContinuousView.prototype.doRender = function (visualMapModel, ecModel, api, payload) { if (!payload || payload.type !== 'selectDataRange' || payload.from !== this.uid) { this._buildView(); } }; ContinuousView.prototype._buildView = function () { this.group.removeAll(); var visualMapModel = this.visualMapModel; var thisGroup = this.group; this._orient = visualMapModel.get('orient'); this._useHandle = visualMapModel.get('calculable'); this._resetInterval(); this._renderBar(thisGroup); var dataRangeText = visualMapModel.get('text'); this._renderEndsText(thisGroup, dataRangeText, 0); this._renderEndsText(thisGroup, dataRangeText, 1); // Do this for background size calculation. this._updateView(true); // After updating view, inner shapes is built completely, // and then background can be rendered. this.renderBackground(thisGroup); // Real update view this._updateView(); this._enableHoverLinkToSeries(); this._enableHoverLinkFromSeries(); this.positionGroup(thisGroup); }; ContinuousView.prototype._renderEndsText = function (group, dataRangeText, endsIndex) { if (!dataRangeText) { return; } // Compatible with ec2, text[0] map to high value, text[1] map low value. var text = dataRangeText[1 - endsIndex]; text = text != null ? text + '' : ''; var visualMapModel = this.visualMapModel; var textGap = visualMapModel.get('textGap'); var itemSize = visualMapModel.itemSize; var barGroup = this._shapes.mainGroup; var position = this._applyTransform([itemSize[0] / 2, endsIndex === 0 ? -textGap : itemSize[1] + textGap], barGroup); var align = this._applyTransform(endsIndex === 0 ? 'bottom' : 'top', barGroup); var orient = this._orient; var textStyleModel = this.visualMapModel.textStyleModel; this.group.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["Text"]({ style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_15__["createTextStyle"])(textStyleModel, { x: position[0], y: position[1], verticalAlign: orient === 'horizontal' ? 'middle' : align, align: orient === 'horizontal' ? align : 'center', text: text }) })); }; ContinuousView.prototype._renderBar = function (targetGroup) { var visualMapModel = this.visualMapModel; var shapes = this._shapes; var itemSize = visualMapModel.itemSize; var orient = this._orient; var useHandle = this._useHandle; var itemAlign = _helper_js__WEBPACK_IMPORTED_MODULE_8__["getItemAlign"](visualMapModel, this.api, itemSize); var mainGroup = shapes.mainGroup = this._createBarGroup(itemAlign); var gradientBarGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["Group"](); mainGroup.add(gradientBarGroup); // Bar gradientBarGroup.add(shapes.outOfRange = createPolygon()); gradientBarGroup.add(shapes.inRange = createPolygon(null, useHandle ? getCursor(this._orient) : null, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](this._dragHandle, this, 'all', false), zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](this._dragHandle, this, 'all', true))); // A border radius clip. gradientBarGroup.setClipPath(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["Rect"]({ shape: { x: 0, y: 0, width: itemSize[0], height: itemSize[1], r: 3 } })); var textRect = visualMapModel.textStyleModel.getTextRect('国'); var textSize = mathMax(textRect.width, textRect.height); // Handle if (useHandle) { shapes.handleThumbs = []; shapes.handleLabels = []; shapes.handleLabelPoints = []; this._createHandle(visualMapModel, mainGroup, 0, itemSize, textSize, orient); this._createHandle(visualMapModel, mainGroup, 1, itemSize, textSize, orient); } this._createIndicator(visualMapModel, mainGroup, itemSize, textSize, orient); targetGroup.add(mainGroup); }; ContinuousView.prototype._createHandle = function (visualMapModel, mainGroup, handleIndex, itemSize, textSize, orient) { var onDrift = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](this._dragHandle, this, handleIndex, false); var onDragEnd = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](this._dragHandle, this, handleIndex, true); var handleSize = Object(zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_10__["parsePercent"])(visualMapModel.get('handleSize'), itemSize[0]); var handleThumb = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_12__["createSymbol"])(visualMapModel.get('handleIcon'), -handleSize / 2, -handleSize / 2, handleSize, handleSize, null, true); var cursor = getCursor(this._orient); handleThumb.attr({ cursor: cursor, draggable: true, drift: onDrift, ondragend: onDragEnd, onmousemove: function (e) { zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_3__["stop"](e.event); } }); handleThumb.x = itemSize[0] / 2; handleThumb.useStyle(visualMapModel.getModel('handleStyle').getItemStyle()); handleThumb.setStyle({ strokeNoScale: true, strokeFirst: true }); handleThumb.style.lineWidth *= 2; handleThumb.ensureState('emphasis').style = visualMapModel.getModel(['emphasis', 'handleStyle']).getItemStyle(); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_11__["setAsHighDownDispatcher"])(handleThumb, true); mainGroup.add(handleThumb); // Text is always horizontal layout but should not be effected by // transform (orient/inverse). So label is built separately but not // use zrender/graphic/helper/RectText, and is located based on view // group (according to handleLabelPoint) but not barGroup. var textStyleModel = this.visualMapModel.textStyleModel; var handleLabel = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["Text"]({ cursor: cursor, draggable: true, drift: onDrift, onmousemove: function (e) { // For mobile device, prevent screen slider on the button. zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_3__["stop"](e.event); }, ondragend: onDragEnd, style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_15__["createTextStyle"])(textStyleModel, { x: 0, y: 0, text: '' }) }); handleLabel.ensureState('blur').style = { opacity: 0.1 }; handleLabel.stateTransition = { duration: 200 }; this.group.add(handleLabel); var handleLabelPoint = [handleSize, 0]; var shapes = this._shapes; shapes.handleThumbs[handleIndex] = handleThumb; shapes.handleLabelPoints[handleIndex] = handleLabelPoint; shapes.handleLabels[handleIndex] = handleLabel; }; ContinuousView.prototype._createIndicator = function (visualMapModel, mainGroup, itemSize, textSize, orient) { var scale = Object(zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_10__["parsePercent"])(visualMapModel.get('indicatorSize'), itemSize[0]); var indicator = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_12__["createSymbol"])(visualMapModel.get('indicatorIcon'), -scale / 2, -scale / 2, scale, scale, null, true); indicator.attr({ cursor: 'move', invisible: true, silent: true, x: itemSize[0] / 2 }); var indicatorStyle = visualMapModel.getModel('indicatorStyle').getItemStyle(); if (indicator instanceof zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_13__["default"]) { var pathStyle = indicator.style; indicator.useStyle(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"]({ // TODO other properties like x, y ? image: pathStyle.image, x: pathStyle.x, y: pathStyle.y, width: pathStyle.width, height: pathStyle.height }, indicatorStyle)); } else { indicator.useStyle(indicatorStyle); } mainGroup.add(indicator); var textStyleModel = this.visualMapModel.textStyleModel; var indicatorLabel = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["Text"]({ silent: true, invisible: true, style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_15__["createTextStyle"])(textStyleModel, { x: 0, y: 0, text: '' }) }); this.group.add(indicatorLabel); var indicatorLabelPoint = [(orient === 'horizontal' ? textSize / 2 : HOVER_LINK_OUT) + itemSize[0] / 2, 0]; var shapes = this._shapes; shapes.indicator = indicator; shapes.indicatorLabel = indicatorLabel; shapes.indicatorLabelPoint = indicatorLabelPoint; this._firstShowIndicator = true; }; ContinuousView.prototype._dragHandle = function (handleIndex, isEnd, // dx is event from ondragend if isEnd is true. It's not used dx, dy) { if (!this._useHandle) { return; } this._dragging = !isEnd; if (!isEnd) { // Transform dx, dy to bar coordination. var vertex = this._applyTransform([dx, dy], this._shapes.mainGroup, true); this._updateInterval(handleIndex, vertex[1]); this._hideIndicator(); // Considering realtime, update view should be executed // before dispatch action. this._updateView(); } // dragEnd do not dispatch action when realtime. if (isEnd === !this.visualMapModel.get('realtime')) { // jshint ignore:line this.api.dispatchAction({ type: 'selectDataRange', from: this.uid, visualMapId: this.visualMapModel.id, selected: this._dataInterval.slice() }); } if (isEnd) { !this._hovering && this._clearHoverLinkToSeries(); } else if (useHoverLinkOnHandle(this.visualMapModel)) { this._doHoverLinkToSeries(this._handleEnds[handleIndex], false); } }; ContinuousView.prototype._resetInterval = function () { var visualMapModel = this.visualMapModel; var dataInterval = this._dataInterval = visualMapModel.getSelected(); var dataExtent = visualMapModel.getExtent(); var sizeExtent = [0, visualMapModel.itemSize[1]]; this._handleEnds = [linearMap(dataInterval[0], dataExtent, sizeExtent, true), linearMap(dataInterval[1], dataExtent, sizeExtent, true)]; }; /** * @private * @param {(number|string)} handleIndex 0 or 1 or 'all' * @param {number} dx * @param {number} dy */ ContinuousView.prototype._updateInterval = function (handleIndex, delta) { delta = delta || 0; var visualMapModel = this.visualMapModel; var handleEnds = this._handleEnds; var sizeExtent = [0, visualMapModel.itemSize[1]]; Object(_helper_sliderMove_js__WEBPACK_IMPORTED_MODULE_7__["default"])(delta, handleEnds, sizeExtent, handleIndex, // cross is forbidden 0); var dataExtent = visualMapModel.getExtent(); // Update data interval. this._dataInterval = [linearMap(handleEnds[0], sizeExtent, dataExtent, true), linearMap(handleEnds[1], sizeExtent, dataExtent, true)]; }; ContinuousView.prototype._updateView = function (forSketch) { var visualMapModel = this.visualMapModel; var dataExtent = visualMapModel.getExtent(); var shapes = this._shapes; var outOfRangeHandleEnds = [0, visualMapModel.itemSize[1]]; var inRangeHandleEnds = forSketch ? outOfRangeHandleEnds : this._handleEnds; var visualInRange = this._createBarVisual(this._dataInterval, dataExtent, inRangeHandleEnds, 'inRange'); var visualOutOfRange = this._createBarVisual(dataExtent, dataExtent, outOfRangeHandleEnds, 'outOfRange'); shapes.inRange.setStyle({ fill: visualInRange.barColor // opacity: visualInRange.opacity }).setShape('points', visualInRange.barPoints); shapes.outOfRange.setStyle({ fill: visualOutOfRange.barColor // opacity: visualOutOfRange.opacity }).setShape('points', visualOutOfRange.barPoints); this._updateHandle(inRangeHandleEnds, visualInRange); }; ContinuousView.prototype._createBarVisual = function (dataInterval, dataExtent, handleEnds, forceState) { var opts = { forceState: forceState, convertOpacityToAlpha: true }; var colorStops = this._makeColorGradient(dataInterval, opts); var symbolSizes = [this.getControllerVisual(dataInterval[0], 'symbolSize', opts), this.getControllerVisual(dataInterval[1], 'symbolSize', opts)]; var barPoints = this._createBarPoints(handleEnds, symbolSizes); return { barColor: new zrender_lib_graphic_LinearGradient_js__WEBPACK_IMPORTED_MODULE_2__["default"](0, 0, 0, 1, colorStops), barPoints: barPoints, handlesColor: [colorStops[0].color, colorStops[colorStops.length - 1].color] }; }; ContinuousView.prototype._makeColorGradient = function (dataInterval, opts) { // Considering colorHue, which is not linear, so we have to sample // to calculate gradient color stops, but not only calculate head // and tail. var sampleNumber = 100; // Arbitrary value. var colorStops = []; var step = (dataInterval[1] - dataInterval[0]) / sampleNumber; colorStops.push({ color: this.getControllerVisual(dataInterval[0], 'color', opts), offset: 0 }); for (var i = 1; i < sampleNumber; i++) { var currValue = dataInterval[0] + step * i; if (currValue > dataInterval[1]) { break; } colorStops.push({ color: this.getControllerVisual(currValue, 'color', opts), offset: i / sampleNumber }); } colorStops.push({ color: this.getControllerVisual(dataInterval[1], 'color', opts), offset: 1 }); return colorStops; }; ContinuousView.prototype._createBarPoints = function (handleEnds, symbolSizes) { var itemSize = this.visualMapModel.itemSize; return [[itemSize[0] - symbolSizes[0], handleEnds[0]], [itemSize[0], handleEnds[0]], [itemSize[0], handleEnds[1]], [itemSize[0] - symbolSizes[1], handleEnds[1]]]; }; ContinuousView.prototype._createBarGroup = function (itemAlign) { var orient = this._orient; var inverse = this.visualMapModel.get('inverse'); return new _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["Group"](orient === 'horizontal' && !inverse ? { scaleX: itemAlign === 'bottom' ? 1 : -1, rotation: Math.PI / 2 } : orient === 'horizontal' && inverse ? { scaleX: itemAlign === 'bottom' ? -1 : 1, rotation: -Math.PI / 2 } : orient === 'vertical' && !inverse ? { scaleX: itemAlign === 'left' ? 1 : -1, scaleY: -1 } : { scaleX: itemAlign === 'left' ? 1 : -1 }); }; ContinuousView.prototype._updateHandle = function (handleEnds, visualInRange) { if (!this._useHandle) { return; } var shapes = this._shapes; var visualMapModel = this.visualMapModel; var handleThumbs = shapes.handleThumbs; var handleLabels = shapes.handleLabels; var itemSize = visualMapModel.itemSize; var dataExtent = visualMapModel.getExtent(); var align = this._applyTransform('left', shapes.mainGroup); each([0, 1], function (handleIndex) { var handleThumb = handleThumbs[handleIndex]; handleThumb.setStyle('fill', visualInRange.handlesColor[handleIndex]); handleThumb.y = handleEnds[handleIndex]; var val = linearMap(handleEnds[handleIndex], [0, itemSize[1]], dataExtent, true); var symbolSize = this.getControllerVisual(val, 'symbolSize'); handleThumb.scaleX = handleThumb.scaleY = symbolSize / itemSize[0]; handleThumb.x = itemSize[0] - symbolSize / 2; // Update handle label position. var textPoint = _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["applyTransform"](shapes.handleLabelPoints[handleIndex], _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["getTransform"](handleThumb, this.group)); if (this._orient === 'horizontal') { // If visualMap controls symbol size, an additional offset needs to be added to labels to avoid collision at minimum size. // Offset reaches value of 0 at "maximum" position, so maximum position is not altered at all. var minimumOffset = align === 'left' || align === 'top' ? (itemSize[0] - symbolSize) / 2 : (itemSize[0] - symbolSize) / -2; textPoint[1] += minimumOffset; } handleLabels[handleIndex].setStyle({ x: textPoint[0], y: textPoint[1], text: visualMapModel.formatValueText(this._dataInterval[handleIndex]), verticalAlign: 'middle', align: this._orient === 'vertical' ? this._applyTransform('left', shapes.mainGroup) : 'center' }); }, this); }; ContinuousView.prototype._showIndicator = function (cursorValue, textValue, rangeSymbol, halfHoverLinkSize) { var visualMapModel = this.visualMapModel; var dataExtent = visualMapModel.getExtent(); var itemSize = visualMapModel.itemSize; var sizeExtent = [0, itemSize[1]]; var shapes = this._shapes; var indicator = shapes.indicator; if (!indicator) { return; } indicator.attr('invisible', false); var opts = { convertOpacityToAlpha: true }; var color = this.getControllerVisual(cursorValue, 'color', opts); var symbolSize = this.getControllerVisual(cursorValue, 'symbolSize'); var y = linearMap(cursorValue, dataExtent, sizeExtent, true); var x = itemSize[0] - symbolSize / 2; var oldIndicatorPos = { x: indicator.x, y: indicator.y }; // Update handle label position. indicator.y = y; indicator.x = x; var textPoint = _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["applyTransform"](shapes.indicatorLabelPoint, _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["getTransform"](indicator, this.group)); var indicatorLabel = shapes.indicatorLabel; indicatorLabel.attr('invisible', false); var align = this._applyTransform('left', shapes.mainGroup); var orient = this._orient; var isHorizontal = orient === 'horizontal'; indicatorLabel.setStyle({ text: (rangeSymbol ? rangeSymbol : '') + visualMapModel.formatValueText(textValue), verticalAlign: isHorizontal ? align : 'middle', align: isHorizontal ? 'center' : align }); var indicatorNewProps = { x: x, y: y, style: { fill: color } }; var labelNewProps = { style: { x: textPoint[0], y: textPoint[1] } }; if (visualMapModel.ecModel.isAnimationEnabled() && !this._firstShowIndicator) { var animationCfg = { duration: 100, easing: 'cubicInOut', additive: true }; indicator.x = oldIndicatorPos.x; indicator.y = oldIndicatorPos.y; indicator.animateTo(indicatorNewProps, animationCfg); indicatorLabel.animateTo(labelNewProps, animationCfg); } else { indicator.attr(indicatorNewProps); indicatorLabel.attr(labelNewProps); } this._firstShowIndicator = false; var handleLabels = this._shapes.handleLabels; if (handleLabels) { for (var i = 0; i < handleLabels.length; i++) { // Fade out handle labels. // NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it. this.api.enterBlur(handleLabels[i]); } } }; ContinuousView.prototype._enableHoverLinkToSeries = function () { var self = this; this._shapes.mainGroup.on('mousemove', function (e) { self._hovering = true; if (!self._dragging) { var itemSize = self.visualMapModel.itemSize; var pos = self._applyTransform([e.offsetX, e.offsetY], self._shapes.mainGroup, true, true); // For hover link show when hover handle, which might be // below or upper than sizeExtent. pos[1] = mathMin(mathMax(0, pos[1]), itemSize[1]); self._doHoverLinkToSeries(pos[1], 0 <= pos[0] && pos[0] <= itemSize[0]); } }).on('mouseout', function () { // When mouse is out of handle, hoverLink still need // to be displayed when realtime is set as false. self._hovering = false; !self._dragging && self._clearHoverLinkToSeries(); }); }; ContinuousView.prototype._enableHoverLinkFromSeries = function () { var zr = this.api.getZr(); if (this.visualMapModel.option.hoverLink) { zr.on('mouseover', this._hoverLinkFromSeriesMouseOver, this); zr.on('mouseout', this._hideIndicator, this); } else { this._clearHoverLinkFromSeries(); } }; ContinuousView.prototype._doHoverLinkToSeries = function (cursorPos, hoverOnBar) { var visualMapModel = this.visualMapModel; var itemSize = visualMapModel.itemSize; if (!visualMapModel.option.hoverLink) { return; } var sizeExtent = [0, itemSize[1]]; var dataExtent = visualMapModel.getExtent(); // For hover link show when hover handle, which might be below or upper than sizeExtent. cursorPos = mathMin(mathMax(sizeExtent[0], cursorPos), sizeExtent[1]); var halfHoverLinkSize = getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent); var hoverRange = [cursorPos - halfHoverLinkSize, cursorPos + halfHoverLinkSize]; var cursorValue = linearMap(cursorPos, sizeExtent, dataExtent, true); var valueRange = [linearMap(hoverRange[0], sizeExtent, dataExtent, true), linearMap(hoverRange[1], sizeExtent, dataExtent, true)]; // Consider data range is out of visualMap range, see test/visualMap-continuous.html, // where china and india has very large population. hoverRange[0] < sizeExtent[0] && (valueRange[0] = -Infinity); hoverRange[1] > sizeExtent[1] && (valueRange[1] = Infinity); // Do not show indicator when mouse is over handle, // otherwise labels overlap, especially when dragging. if (hoverOnBar) { if (valueRange[0] === -Infinity) { this._showIndicator(cursorValue, valueRange[1], '< ', halfHoverLinkSize); } else if (valueRange[1] === Infinity) { this._showIndicator(cursorValue, valueRange[0], '> ', halfHoverLinkSize); } else { this._showIndicator(cursorValue, cursorValue, '≈ ', halfHoverLinkSize); } } // When realtime is set as false, handles, which are in barGroup, // also trigger hoverLink, which help user to realize where they // focus on when dragging. (see test/heatmap-large.html) // When realtime is set as true, highlight will not show when hover // handle, because the label on handle, which displays a exact value // but not range, might mislead users. var oldBatch = this._hoverLinkDataIndices; var newBatch = []; if (hoverOnBar || useHoverLinkOnHandle(visualMapModel)) { newBatch = this._hoverLinkDataIndices = visualMapModel.findTargetDataIndices(valueRange); } var resultBatches = _util_model_js__WEBPACK_IMPORTED_MODULE_9__["compressBatches"](oldBatch, newBatch); this._dispatchHighDown('downplay', _helper_js__WEBPACK_IMPORTED_MODULE_8__["makeHighDownBatch"](resultBatches[0], visualMapModel)); this._dispatchHighDown('highlight', _helper_js__WEBPACK_IMPORTED_MODULE_8__["makeHighDownBatch"](resultBatches[1], visualMapModel)); }; ContinuousView.prototype._hoverLinkFromSeriesMouseOver = function (e) { var ecData; Object(_util_event_js__WEBPACK_IMPORTED_MODULE_16__["findEventDispatcher"])(e.target, function (target) { var currECData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_14__["getECData"])(target); if (currECData.dataIndex != null) { ecData = currECData; return true; } }, true); if (!ecData) { return; } var dataModel = this.ecModel.getSeriesByIndex(ecData.seriesIndex); var visualMapModel = this.visualMapModel; if (!visualMapModel.isTargetSeries(dataModel)) { return; } var data = dataModel.getData(ecData.dataType); var value = data.getStore().get(visualMapModel.getDataDimensionIndex(data), ecData.dataIndex); if (!isNaN(value)) { this._showIndicator(value, value); } }; ContinuousView.prototype._hideIndicator = function () { var shapes = this._shapes; shapes.indicator && shapes.indicator.attr('invisible', true); shapes.indicatorLabel && shapes.indicatorLabel.attr('invisible', true); var handleLabels = this._shapes.handleLabels; if (handleLabels) { for (var i = 0; i < handleLabels.length; i++) { // Fade out handle labels. // NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it. this.api.leaveBlur(handleLabels[i]); } } }; ContinuousView.prototype._clearHoverLinkToSeries = function () { this._hideIndicator(); var indices = this._hoverLinkDataIndices; this._dispatchHighDown('downplay', _helper_js__WEBPACK_IMPORTED_MODULE_8__["makeHighDownBatch"](indices, this.visualMapModel)); indices.length = 0; }; ContinuousView.prototype._clearHoverLinkFromSeries = function () { this._hideIndicator(); var zr = this.api.getZr(); zr.off('mouseover', this._hoverLinkFromSeriesMouseOver); zr.off('mouseout', this._hideIndicator); }; ContinuousView.prototype._applyTransform = function (vertex, element, inverse, global) { var transform = _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["getTransform"](element, global ? null : this.group); return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](vertex) ? _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["applyTransform"](vertex, transform, inverse) : _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["transformDirection"](vertex, transform, inverse); }; // TODO: TYPE more specified payload types. ContinuousView.prototype._dispatchHighDown = function (type, batch) { batch && batch.length && this.api.dispatchAction({ type: type, batch: batch }); }; /** * @override */ ContinuousView.prototype.dispose = function () { this._clearHoverLinkFromSeries(); this._clearHoverLinkToSeries(); }; ContinuousView.type = 'visualMap.continuous'; return ContinuousView; }(_VisualMapView_js__WEBPACK_IMPORTED_MODULE_4__["default"]); function createPolygon(points, cursor, onDrift, onDragEnd) { return new _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["Polygon"]({ shape: { points: points }, draggable: !!onDrift, cursor: cursor, drift: onDrift, onmousemove: function (e) { // For mobile device, prevent screen slider on the button. zrender_lib_core_event_js__WEBPACK_IMPORTED_MODULE_3__["stop"](e.event); }, ondragend: onDragEnd }); } function getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent) { var halfHoverLinkSize = HOVER_LINK_SIZE / 2; var hoverLinkDataSize = visualMapModel.get('hoverLinkDataSize'); if (hoverLinkDataSize) { halfHoverLinkSize = linearMap(hoverLinkDataSize, dataExtent, sizeExtent, true) / 2; } return halfHoverLinkSize; } function useHoverLinkOnHandle(visualMapModel) { var hoverLinkOnHandle = visualMapModel.get('hoverLinkOnHandle'); return !!(hoverLinkOnHandle == null ? visualMapModel.get('realtime') : hoverLinkOnHandle); } function getCursor(orient) { return orient === 'vertical' ? 'ns-resize' : 'ew-resize'; } /* harmony default export */ __webpack_exports__["default"] = (ContinuousView); /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/PiecewiseModel.js": /*!************************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/PiecewiseModel.js ***! \************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _VisualMapModel_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VisualMapModel.js */ "./node_modules/echarts/lib/component/visualMap/VisualMapModel.js"); /* harmony import */ var _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../visual/VisualMapping.js */ "./node_modules/echarts/lib/visual/VisualMapping.js"); /* harmony import */ var _visual_visualDefault_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../visual/visualDefault.js */ "./node_modules/echarts/lib/visual/visualDefault.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PiecewiseModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PiecewiseModel, _super); function PiecewiseModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = PiecewiseModel.type; /** * The order is always [low, ..., high]. * [{text: string, interval: Array.}, ...] */ _this._pieceList = []; return _this; } PiecewiseModel.prototype.optionUpdated = function (newOption, isInit) { _super.prototype.optionUpdated.apply(this, arguments); this.resetExtent(); var mode = this._mode = this._determineMode(); this._pieceList = []; resetMethods[this._mode].call(this, this._pieceList); this._resetSelected(newOption, isInit); var categories = this.option.categories; this.resetVisual(function (mappingOption, state) { if (mode === 'categories') { mappingOption.mappingMethod = 'category'; mappingOption.categories = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"](categories); } else { mappingOption.dataExtent = this.getExtent(); mappingOption.mappingMethod = 'piecewise'; mappingOption.pieceList = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](this._pieceList, function (piece) { piece = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"](piece); if (state !== 'inRange') { // FIXME // outOfRange do not support special visual in pieces. piece.visual = null; } return piece; }); } }); }; /** * @protected * @override */ PiecewiseModel.prototype.completeVisualOption = function () { // Consider this case: // visualMap: { // pieces: [{symbol: 'circle', lt: 0}, {symbol: 'rect', gte: 0}] // } // where no inRange/outOfRange set but only pieces. So we should make // default inRange/outOfRange for this case, otherwise visuals that only // appear in `pieces` will not be taken into account in visual encoding. var option = this.option; var visualTypesInPieces = {}; var visualTypes = _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_3__["default"].listVisualTypes(); var isCategory = this.isCategory(); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](option.pieces, function (piece) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](visualTypes, function (visualType) { if (piece.hasOwnProperty(visualType)) { visualTypesInPieces[visualType] = 1; } }); }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](visualTypesInPieces, function (v, visualType) { var exists = false; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](this.stateList, function (state) { exists = exists || has(option, state, visualType) || has(option.target, state, visualType); }, this); !exists && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](this.stateList, function (state) { (option[state] || (option[state] = {}))[visualType] = _visual_visualDefault_js__WEBPACK_IMPORTED_MODULE_4__["default"].get(visualType, state === 'inRange' ? 'active' : 'inactive', isCategory); }); }, this); function has(obj, state, visualType) { return obj && obj[state] && obj[state].hasOwnProperty(visualType); } _super.prototype.completeVisualOption.apply(this, arguments); }; PiecewiseModel.prototype._resetSelected = function (newOption, isInit) { var thisOption = this.option; var pieceList = this._pieceList; // Selected do not merge but all override. var selected = (isInit ? thisOption : newOption).selected || {}; thisOption.selected = selected; // Consider 'not specified' means true. zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](pieceList, function (piece, index) { var key = this.getSelectedMapKey(piece); if (!selected.hasOwnProperty(key)) { selected[key] = true; } }, this); if (thisOption.selectedMode === 'single') { // Ensure there is only one selected. var hasSel_1 = false; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](pieceList, function (piece, index) { var key = this.getSelectedMapKey(piece); if (selected[key]) { hasSel_1 ? selected[key] = false : hasSel_1 = true; } }, this); } // thisOption.selectedMode === 'multiple', default: all selected. }; /** * @public */ PiecewiseModel.prototype.getItemSymbol = function () { return this.get('itemSymbol'); }; /** * @public */ PiecewiseModel.prototype.getSelectedMapKey = function (piece) { return this._mode === 'categories' ? piece.value + '' : piece.index + ''; }; /** * @public */ PiecewiseModel.prototype.getPieceList = function () { return this._pieceList; }; /** * @return {string} */ PiecewiseModel.prototype._determineMode = function () { var option = this.option; return option.pieces && option.pieces.length > 0 ? 'pieces' : this.option.categories ? 'categories' : 'splitNumber'; }; /** * @override */ PiecewiseModel.prototype.setSelected = function (selected) { this.option.selected = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"](selected); }; /** * @override */ PiecewiseModel.prototype.getValueState = function (value) { var index = _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_3__["default"].findPieceIndex(value, this._pieceList); return index != null ? this.option.selected[this.getSelectedMapKey(this._pieceList[index])] ? 'inRange' : 'outOfRange' : 'outOfRange'; }; /** * @public * @param pieceIndex piece index in visualMapModel.getPieceList() */ PiecewiseModel.prototype.findTargetDataIndices = function (pieceIndex) { var result = []; var pieceList = this._pieceList; this.eachTargetSeries(function (seriesModel) { var dataIndices = []; var data = seriesModel.getData(); data.each(this.getDataDimensionIndex(data), function (value, dataIndex) { // Should always base on model pieceList, because it is order sensitive. var pIdx = _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_3__["default"].findPieceIndex(value, pieceList); pIdx === pieceIndex && dataIndices.push(dataIndex); }, this); result.push({ seriesId: seriesModel.id, dataIndex: dataIndices }); }, this); return result; }; /** * @private * @param piece piece.value or piece.interval is required. * @return Can be Infinity or -Infinity */ PiecewiseModel.prototype.getRepresentValue = function (piece) { var representValue; if (this.isCategory()) { representValue = piece.value; } else { if (piece.value != null) { representValue = piece.value; } else { var pieceInterval = piece.interval || []; representValue = pieceInterval[0] === -Infinity && pieceInterval[1] === Infinity ? 0 : (pieceInterval[0] + pieceInterval[1]) / 2; } } return representValue; }; PiecewiseModel.prototype.getVisualMeta = function (getColorVisual) { // Do not support category. (category axis is ordinal, numerical) if (this.isCategory()) { return; } var stops = []; var outerColors = ['', '']; var visualMapModel = this; function setStop(interval, valueState) { var representValue = visualMapModel.getRepresentValue({ interval: interval }); // Not category if (!valueState) { valueState = visualMapModel.getValueState(representValue); } var color = getColorVisual(representValue, valueState); if (interval[0] === -Infinity) { outerColors[0] = color; } else if (interval[1] === Infinity) { outerColors[1] = color; } else { stops.push({ value: interval[0], color: color }, { value: interval[1], color: color }); } } // Suplement var pieceList = this._pieceList.slice(); if (!pieceList.length) { pieceList.push({ interval: [-Infinity, Infinity] }); } else { var edge = pieceList[0].interval[0]; edge !== -Infinity && pieceList.unshift({ interval: [-Infinity, edge] }); edge = pieceList[pieceList.length - 1].interval[1]; edge !== Infinity && pieceList.push({ interval: [edge, Infinity] }); } var curr = -Infinity; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](pieceList, function (piece) { var interval = piece.interval; if (interval) { // Fulfill gap. interval[0] > curr && setStop([curr, interval[0]], 'outOfRange'); setStop(interval.slice()); curr = interval[1]; } }, this); return { stops: stops, outerColors: outerColors }; }; PiecewiseModel.type = 'visualMap.piecewise'; PiecewiseModel.defaultOption = Object(_util_component_js__WEBPACK_IMPORTED_MODULE_6__["inheritDefaultOption"])(_VisualMapModel_js__WEBPACK_IMPORTED_MODULE_2__["default"].defaultOption, { selected: null, minOpen: false, maxOpen: false, align: 'auto', itemWidth: 20, itemHeight: 14, itemSymbol: 'roundRect', pieces: null, categories: null, splitNumber: 5, selectedMode: 'multiple', itemGap: 10, hoverLink: true // Enable hover highlight. }); return PiecewiseModel; }(_VisualMapModel_js__WEBPACK_IMPORTED_MODULE_2__["default"]); ; /** * Key is this._mode * @type {Object} * @this {module:echarts/component/viusalMap/PiecewiseMode} */ var resetMethods = { splitNumber: function (outPieceList) { var thisOption = this.option; var precision = Math.min(thisOption.precision, 20); var dataExtent = this.getExtent(); var splitNumber = thisOption.splitNumber; splitNumber = Math.max(parseInt(splitNumber, 10), 1); thisOption.splitNumber = splitNumber; var splitStep = (dataExtent[1] - dataExtent[0]) / splitNumber; // Precision auto-adaption while (+splitStep.toFixed(precision) !== splitStep && precision < 5) { precision++; } thisOption.precision = precision; splitStep = +splitStep.toFixed(precision); if (thisOption.minOpen) { outPieceList.push({ interval: [-Infinity, dataExtent[0]], close: [0, 0] }); } for (var index = 0, curr = dataExtent[0]; index < splitNumber; curr += splitStep, index++) { var max = index === splitNumber - 1 ? dataExtent[1] : curr + splitStep; outPieceList.push({ interval: [curr, max], close: [1, 1] }); } if (thisOption.maxOpen) { outPieceList.push({ interval: [dataExtent[1], Infinity], close: [0, 0] }); } Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["reformIntervals"])(outPieceList); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](outPieceList, function (piece, index) { piece.index = index; piece.text = this.formatValueText(piece.interval); }, this); }, categories: function (outPieceList) { var thisOption = this.option; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](thisOption.categories, function (cate) { // FIXME category模式也使用pieceList,但在visualMapping中不是使用pieceList。 // 是否改一致。 outPieceList.push({ text: this.formatValueText(cate, true), value: cate }); }, this); // See "Order Rule". normalizeReverse(thisOption, outPieceList); }, pieces: function (outPieceList) { var thisOption = this.option; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](thisOption.pieces, function (pieceListItem, index) { if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isObject"](pieceListItem)) { pieceListItem = { value: pieceListItem }; } var item = { text: '', index: index }; if (pieceListItem.label != null) { item.text = pieceListItem.label; } if (pieceListItem.hasOwnProperty('value')) { var value = item.value = pieceListItem.value; item.interval = [value, value]; item.close = [1, 1]; } else { // `min` `max` is legacy option. // `lt` `gt` `lte` `gte` is recommended. var interval = item.interval = []; var close_1 = item.close = [0, 0]; var closeList = [1, 0, 1]; var infinityList = [-Infinity, Infinity]; var useMinMax = []; for (var lg = 0; lg < 2; lg++) { var names = [['gte', 'gt', 'min'], ['lte', 'lt', 'max']][lg]; for (var i = 0; i < 3 && interval[lg] == null; i++) { interval[lg] = pieceListItem[names[i]]; close_1[lg] = closeList[i]; useMinMax[lg] = i === 2; } interval[lg] == null && (interval[lg] = infinityList[lg]); } useMinMax[0] && interval[1] === Infinity && (close_1[0] = 0); useMinMax[1] && interval[0] === -Infinity && (close_1[1] = 0); if (true) { if (interval[0] > interval[1]) { console.warn('Piece ' + index + 'is illegal: ' + interval + ' lower bound should not greater then uppper bound.'); } } if (interval[0] === interval[1] && close_1[0] && close_1[1]) { // Consider: [{min: 5, max: 5, visual: {...}}, {min: 0, max: 5}], // we use value to lift the priority when min === max item.value = interval[0]; } } item.visual = _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_3__["default"].retrieveVisuals(pieceListItem); outPieceList.push(item); }, this); // See "Order Rule". normalizeReverse(thisOption, outPieceList); // Only pieces Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["reformIntervals"])(outPieceList); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](outPieceList, function (piece) { var close = piece.close; var edgeSymbols = [['<', '≤'][close[1]], ['>', '≥'][close[0]]]; piece.text = piece.text || this.formatValueText(piece.value != null ? piece.value : piece.interval, false, edgeSymbols); }, this); } }; function normalizeReverse(thisOption, pieceList) { var inverse = thisOption.inverse; if (thisOption.orient === 'vertical' ? !inverse : inverse) { pieceList.reverse(); } } /* harmony default export */ __webpack_exports__["default"] = (PiecewiseModel); /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/PiecewiseView.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/PiecewiseView.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _VisualMapView_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VisualMapView.js */ "./node_modules/echarts/lib/component/visualMap/VisualMapView.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/component/visualMap/helper.js"); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PiecewiseVisualMapView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PiecewiseVisualMapView, _super); function PiecewiseVisualMapView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = PiecewiseVisualMapView.type; return _this; } PiecewiseVisualMapView.prototype.doRender = function () { var thisGroup = this.group; thisGroup.removeAll(); var visualMapModel = this.visualMapModel; var textGap = visualMapModel.get('textGap'); var textStyleModel = visualMapModel.textStyleModel; var textFont = textStyleModel.getFont(); var textFill = textStyleModel.getTextColor(); var itemAlign = this._getItemAlign(); var itemSize = visualMapModel.itemSize; var viewData = this._getViewData(); var endsText = viewData.endsText; var showLabel = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve"](visualMapModel.get('showLabel', true), !endsText); var silent = !visualMapModel.get('selectedMode'); endsText && this._renderEndsText(thisGroup, endsText[0], itemSize, showLabel, itemAlign); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](viewData.viewPieceList, function (item) { var piece = item.piece; var itemGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Group"](); itemGroup.onclick = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](this._onItemClick, this, piece); this._enableHoverLink(itemGroup, item.indexInModelPieceList); // TODO Category var representValue = visualMapModel.getRepresentValue(piece); this._createItemSymbol(itemGroup, representValue, [0, 0, itemSize[0], itemSize[1]], silent); if (showLabel) { var visualState = this.visualMapModel.getValueState(representValue); itemGroup.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Text"]({ style: { x: itemAlign === 'right' ? -textGap : itemSize[0] + textGap, y: itemSize[1] / 2, text: piece.text, verticalAlign: 'middle', align: itemAlign, font: textFont, fill: textFill, opacity: visualState === 'outOfRange' ? 0.5 : 1 }, silent: silent })); } thisGroup.add(itemGroup); }, this); endsText && this._renderEndsText(thisGroup, endsText[1], itemSize, showLabel, itemAlign); _util_layout_js__WEBPACK_IMPORTED_MODULE_5__["box"](visualMapModel.get('orient'), thisGroup, visualMapModel.get('itemGap')); this.renderBackground(thisGroup); this.positionGroup(thisGroup); }; PiecewiseVisualMapView.prototype._enableHoverLink = function (itemGroup, pieceIndex) { var _this = this; itemGroup.on('mouseover', function () { return onHoverLink('highlight'); }).on('mouseout', function () { return onHoverLink('downplay'); }); var onHoverLink = function (method) { var visualMapModel = _this.visualMapModel; // TODO: TYPE More detailed action types visualMapModel.option.hoverLink && _this.api.dispatchAction({ type: method, batch: _helper_js__WEBPACK_IMPORTED_MODULE_6__["makeHighDownBatch"](visualMapModel.findTargetDataIndices(pieceIndex), visualMapModel) }); }; }; PiecewiseVisualMapView.prototype._getItemAlign = function () { var visualMapModel = this.visualMapModel; var modelOption = visualMapModel.option; if (modelOption.orient === 'vertical') { return _helper_js__WEBPACK_IMPORTED_MODULE_6__["getItemAlign"](visualMapModel, this.api, visualMapModel.itemSize); } else { // horizontal, most case left unless specifying right. var align = modelOption.align; if (!align || align === 'auto') { align = 'left'; } return align; } }; PiecewiseVisualMapView.prototype._renderEndsText = function (group, text, itemSize, showLabel, itemAlign) { if (!text) { return; } var itemGroup = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Group"](); var textStyleModel = this.visualMapModel.textStyleModel; itemGroup.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_3__["Text"]({ style: Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_7__["createTextStyle"])(textStyleModel, { x: showLabel ? itemAlign === 'right' ? itemSize[0] : 0 : itemSize[0] / 2, y: itemSize[1] / 2, verticalAlign: 'middle', align: showLabel ? itemAlign : 'center', text: text }) })); group.add(itemGroup); }; /** * @private * @return {Object} {peiceList, endsText} The order is the same as screen pixel order. */ PiecewiseVisualMapView.prototype._getViewData = function () { var visualMapModel = this.visualMapModel; var viewPieceList = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](visualMapModel.getPieceList(), function (piece, index) { return { piece: piece, indexInModelPieceList: index }; }); var endsText = visualMapModel.get('text'); // Consider orient and inverse. var orient = visualMapModel.get('orient'); var inverse = visualMapModel.get('inverse'); // Order of model pieceList is always [low, ..., high] if (orient === 'horizontal' ? inverse : !inverse) { viewPieceList.reverse(); } // Origin order of endsText is [high, low] else if (endsText) { endsText = endsText.slice().reverse(); } return { viewPieceList: viewPieceList, endsText: endsText }; }; PiecewiseVisualMapView.prototype._createItemSymbol = function (group, representValue, shapeParam, silent) { var itemSymbol = Object(_util_symbol_js__WEBPACK_IMPORTED_MODULE_4__["createSymbol"])( // symbol will be string this.getControllerVisual(representValue, 'symbol'), shapeParam[0], shapeParam[1], shapeParam[2], shapeParam[3], // color will be string this.getControllerVisual(representValue, 'color')); itemSymbol.silent = silent; group.add(itemSymbol); }; PiecewiseVisualMapView.prototype._onItemClick = function (piece) { var visualMapModel = this.visualMapModel; var option = visualMapModel.option; var selectedMode = option.selectedMode; if (!selectedMode) { return; } var selected = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"](option.selected); var newKey = visualMapModel.getSelectedMapKey(piece); if (selectedMode === 'single' || selectedMode === true) { selected[newKey] = true; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](selected, function (o, key) { selected[key] = key === newKey; }); } else { selected[newKey] = !selected[newKey]; } this.api.dispatchAction({ type: 'selectDataRange', from: this.uid, visualMapId: this.visualMapModel.id, selected: selected }); }; PiecewiseVisualMapView.type = 'visualMap.piecewise'; return PiecewiseVisualMapView; }(_VisualMapView_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /* harmony default export */ __webpack_exports__["default"] = (PiecewiseVisualMapView); /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/VisualMapModel.js": /*!************************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/VisualMapModel.js ***! \************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _visual_visualDefault_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../visual/visualDefault.js */ "./node_modules/echarts/lib/visual/visualDefault.js"); /* harmony import */ var _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../visual/VisualMapping.js */ "./node_modules/echarts/lib/visual/VisualMapping.js"); /* harmony import */ var _visual_visualSolution_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../visual/visualSolution.js */ "./node_modules/echarts/lib/visual/visualSolution.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var mapVisual = _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_3__["default"].mapVisual; var eachVisual = _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_3__["default"].eachVisual; var isArray = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"]; var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"]; var asc = _util_number_js__WEBPACK_IMPORTED_MODULE_6__["asc"]; var linearMap = _util_number_js__WEBPACK_IMPORTED_MODULE_6__["linearMap"]; var VisualMapModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(VisualMapModel, _super); function VisualMapModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = VisualMapModel.type; _this.stateList = ['inRange', 'outOfRange']; _this.replacableOptionKeys = ['inRange', 'outOfRange', 'target', 'controller', 'color']; _this.layoutMode = { type: 'box', ignoreSize: true }; /** * [lowerBound, upperBound] */ _this.dataBound = [-Infinity, Infinity]; _this.targetVisuals = {}; _this.controllerVisuals = {}; return _this; } VisualMapModel.prototype.init = function (option, parentModel, ecModel) { this.mergeDefaultAndTheme(option, ecModel); }; /** * @protected */ VisualMapModel.prototype.optionUpdated = function (newOption, isInit) { var thisOption = this.option; !isInit && _visual_visualSolution_js__WEBPACK_IMPORTED_MODULE_4__["replaceVisualOption"](thisOption, newOption, this.replacableOptionKeys); this.textStyleModel = this.getModel('textStyle'); this.resetItemSize(); this.completeVisualOption(); }; /** * @protected */ VisualMapModel.prototype.resetVisual = function (supplementVisualOption) { var stateList = this.stateList; supplementVisualOption = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["bind"](supplementVisualOption, this); this.controllerVisuals = _visual_visualSolution_js__WEBPACK_IMPORTED_MODULE_4__["createVisualMappings"](this.option.controller, stateList, supplementVisualOption); this.targetVisuals = _visual_visualSolution_js__WEBPACK_IMPORTED_MODULE_4__["createVisualMappings"](this.option.target, stateList, supplementVisualOption); }; /** * @public */ VisualMapModel.prototype.getItemSymbol = function () { return null; }; /** * @protected * @return {Array.} An array of series indices. */ VisualMapModel.prototype.getTargetSeriesIndices = function () { var optionSeriesIndex = this.option.seriesIndex; var seriesIndices = []; if (optionSeriesIndex == null || optionSeriesIndex === 'all') { this.ecModel.eachSeries(function (seriesModel, index) { seriesIndices.push(index); }); } else { seriesIndices = _util_model_js__WEBPACK_IMPORTED_MODULE_5__["normalizeToArray"](optionSeriesIndex); } return seriesIndices; }; /** * @public */ VisualMapModel.prototype.eachTargetSeries = function (callback, context) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](this.getTargetSeriesIndices(), function (seriesIndex) { var seriesModel = this.ecModel.getSeriesByIndex(seriesIndex); if (seriesModel) { callback.call(context, seriesModel); } }, this); }; /** * @pubilc */ VisualMapModel.prototype.isTargetSeries = function (seriesModel) { var is = false; this.eachTargetSeries(function (model) { model === seriesModel && (is = true); }); return is; }; /** * @example * this.formatValueText(someVal); // format single numeric value to text. * this.formatValueText(someVal, true); // format single category value to text. * this.formatValueText([min, max]); // format numeric min-max to text. * this.formatValueText([this.dataBound[0], max]); // using data lower bound. * this.formatValueText([min, this.dataBound[1]]); // using data upper bound. * * @param value Real value, or this.dataBound[0 or 1]. * @param isCategory Only available when value is number. * @param edgeSymbols Open-close symbol when value is interval. * @protected */ VisualMapModel.prototype.formatValueText = function (value, isCategory, edgeSymbols) { var option = this.option; var precision = option.precision; var dataBound = this.dataBound; var formatter = option.formatter; var isMinMax; edgeSymbols = edgeSymbols || ['<', '>']; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](value)) { value = value.slice(); isMinMax = true; } var textValue = isCategory ? value // Value is string when isCategory : isMinMax ? [toFixed(value[0]), toFixed(value[1])] : toFixed(value); if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"](formatter)) { return formatter.replace('{value}', isMinMax ? textValue[0] : textValue).replace('{value2}', isMinMax ? textValue[1] : textValue); } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"](formatter)) { return isMinMax ? formatter(value[0], value[1]) : formatter(value); } if (isMinMax) { if (value[0] === dataBound[0]) { return edgeSymbols[0] + ' ' + textValue[1]; } else if (value[1] === dataBound[1]) { return edgeSymbols[1] + ' ' + textValue[0]; } else { return textValue[0] + ' - ' + textValue[1]; } } else { // Format single value (includes category case). return textValue; } function toFixed(val) { return val === dataBound[0] ? 'min' : val === dataBound[1] ? 'max' : (+val).toFixed(Math.min(precision, 20)); } }; /** * @protected */ VisualMapModel.prototype.resetExtent = function () { var thisOption = this.option; // Can not calculate data extent by data here. // Because series and data may be modified in processing stage. // So we do not support the feature "auto min/max". var extent = asc([thisOption.min, thisOption.max]); this._dataExtent = extent; }; /** * PENDING: * delete this method if no outer usage. * * Return Concrete dimension. If null/undefined is returned, no dimension is used. */ // getDataDimension(data: SeriesData) { // const optDim = this.option.dimension; // if (optDim != null) { // return data.getDimension(optDim); // } // const dimNames = data.dimensions; // for (let i = dimNames.length - 1; i >= 0; i--) { // const dimName = dimNames[i]; // const dimInfo = data.getDimensionInfo(dimName); // if (!dimInfo.isCalculationCoord) { // return dimName; // } // } // } VisualMapModel.prototype.getDataDimensionIndex = function (data) { var optDim = this.option.dimension; if (optDim != null) { return data.getDimensionIndex(optDim); } var dimNames = data.dimensions; for (var i = dimNames.length - 1; i >= 0; i--) { var dimName = dimNames[i]; var dimInfo = data.getDimensionInfo(dimName); if (!dimInfo.isCalculationCoord) { return dimInfo.storeDimIndex; } } }; VisualMapModel.prototype.getExtent = function () { return this._dataExtent.slice(); }; VisualMapModel.prototype.completeVisualOption = function () { var ecModel = this.ecModel; var thisOption = this.option; var base = { inRange: thisOption.inRange, outOfRange: thisOption.outOfRange }; var target = thisOption.target || (thisOption.target = {}); var controller = thisOption.controller || (thisOption.controller = {}); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](target, base); // Do not override zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](controller, base); // Do not override var isCategory = this.isCategory(); completeSingle.call(this, target); completeSingle.call(this, controller); completeInactive.call(this, target, 'inRange', 'outOfRange'); // completeInactive.call(this, target, 'outOfRange', 'inRange'); completeController.call(this, controller); function completeSingle(base) { // Compatible with ec2 dataRange.color. // The mapping order of dataRange.color is: [high value, ..., low value] // whereas inRange.color and outOfRange.color is [low value, ..., high value] // Notice: ec2 has no inverse. if (isArray(thisOption.color) // If there has been inRange: {symbol: ...}, adding color is a mistake. // So adding color only when no inRange defined. && !base.inRange) { base.inRange = { color: thisOption.color.slice().reverse() }; } // Compatible with previous logic, always give a default color, otherwise // simple config with no inRange and outOfRange will not work. // Originally we use visualMap.color as the default color, but setOption at // the second time the default color will be erased. So we change to use // constant DEFAULT_COLOR. // If user do not want the default color, set inRange: {color: null}. base.inRange = base.inRange || { color: ecModel.get('gradientColor') }; } function completeInactive(base, stateExist, stateAbsent) { var optExist = base[stateExist]; var optAbsent = base[stateAbsent]; if (optExist && !optAbsent) { optAbsent = base[stateAbsent] = {}; each(optExist, function (visualData, visualType) { if (!_visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_3__["default"].isValidType(visualType)) { return; } var defa = _visual_visualDefault_js__WEBPACK_IMPORTED_MODULE_2__["default"].get(visualType, 'inactive', isCategory); if (defa != null) { optAbsent[visualType] = defa; // Compatibable with ec2: // Only inactive color to rgba(0,0,0,0) can not // make label transparent, so use opacity also. if (visualType === 'color' && !optAbsent.hasOwnProperty('opacity') && !optAbsent.hasOwnProperty('colorAlpha')) { optAbsent.opacity = [0, 0]; } } }); } } function completeController(controller) { var symbolExists = (controller.inRange || {}).symbol || (controller.outOfRange || {}).symbol; var symbolSizeExists = (controller.inRange || {}).symbolSize || (controller.outOfRange || {}).symbolSize; var inactiveColor = this.get('inactiveColor'); var itemSymbol = this.getItemSymbol(); var defaultSymbol = itemSymbol || 'roundRect'; each(this.stateList, function (state) { var itemSize = this.itemSize; var visuals = controller[state]; // Set inactive color for controller if no other color // attr (like colorAlpha) specified. if (!visuals) { visuals = controller[state] = { color: isCategory ? inactiveColor : [inactiveColor] }; } // Consistent symbol and symbolSize if not specified. if (visuals.symbol == null) { visuals.symbol = symbolExists && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"](symbolExists) || (isCategory ? defaultSymbol : [defaultSymbol]); } if (visuals.symbolSize == null) { visuals.symbolSize = symbolSizeExists && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"](symbolSizeExists) || (isCategory ? itemSize[0] : [itemSize[0], itemSize[0]]); } // Filter none visuals.symbol = mapVisual(visuals.symbol, function (symbol) { return symbol === 'none' ? defaultSymbol : symbol; }); // Normalize symbolSize var symbolSize = visuals.symbolSize; if (symbolSize != null) { var max_1 = -Infinity; // symbolSize can be object when categories defined. eachVisual(symbolSize, function (value) { value > max_1 && (max_1 = value); }); visuals.symbolSize = mapVisual(symbolSize, function (value) { return linearMap(value, [0, max_1], [0, itemSize[0]], true); }); } }, this); } }; VisualMapModel.prototype.resetItemSize = function () { this.itemSize = [parseFloat(this.get('itemWidth')), parseFloat(this.get('itemHeight'))]; }; VisualMapModel.prototype.isCategory = function () { return !!this.option.categories; }; /** * @public * @abstract */ VisualMapModel.prototype.setSelected = function (selected) {}; VisualMapModel.prototype.getSelected = function () { return null; }; /** * @public * @abstract */ VisualMapModel.prototype.getValueState = function (value) { return null; }; /** * FIXME * Do not publish to thirt-part-dev temporarily * util the interface is stable. (Should it return * a function but not visual meta?) * * @pubilc * @abstract * @param getColorVisual * params: value, valueState * return: color * @return {Object} visualMeta * should includes {stops, outerColors} * outerColor means [colorBeyondMinValue, colorBeyondMaxValue] */ VisualMapModel.prototype.getVisualMeta = function (getColorVisual) { return null; }; VisualMapModel.type = 'visualMap'; VisualMapModel.dependencies = ['series']; VisualMapModel.defaultOption = { show: true, // zlevel: 0, z: 4, seriesIndex: 'all', min: 0, max: 200, left: 0, right: null, top: null, bottom: 0, itemWidth: null, itemHeight: null, inverse: false, orient: 'vertical', backgroundColor: 'rgba(0,0,0,0)', borderColor: '#ccc', contentColor: '#5793f3', inactiveColor: '#aaa', borderWidth: 0, padding: 5, // 接受数组分别设定上右下左边距,同css textGap: 10, precision: 0, textStyle: { color: '#333' // 值域文字颜色 } }; return VisualMapModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_7__["default"]); /* harmony default export */ __webpack_exports__["default"] = (VisualMapModel); /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/VisualMapView.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/VisualMapView.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../visual/VisualMapping.js */ "./node_modules/echarts/lib/visual/VisualMapping.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var VisualMapView = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(VisualMapView, _super); function VisualMapView() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = VisualMapView.type; _this.autoPositionValues = { left: 1, right: 1, top: 1, bottom: 1 }; return _this; } VisualMapView.prototype.init = function (ecModel, api) { this.ecModel = ecModel; this.api = api; }; /** * @protected */ VisualMapView.prototype.render = function (visualMapModel, ecModel, api, payload // TODO: TYPE ) { this.visualMapModel = visualMapModel; if (visualMapModel.get('show') === false) { this.group.removeAll(); return; } this.doRender(visualMapModel, ecModel, api, payload); }; /** * @protected */ VisualMapView.prototype.renderBackground = function (group) { var visualMapModel = this.visualMapModel; var padding = _util_format_js__WEBPACK_IMPORTED_MODULE_3__["normalizeCssArray"](visualMapModel.get('padding') || 0); var rect = group.getBoundingRect(); group.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_2__["Rect"]({ z2: -1, silent: true, shape: { x: rect.x - padding[3], y: rect.y - padding[0], width: rect.width + padding[3] + padding[1], height: rect.height + padding[0] + padding[2] }, style: { fill: visualMapModel.get('backgroundColor'), stroke: visualMapModel.get('borderColor'), lineWidth: visualMapModel.get('borderWidth') } })); }; /** * @protected * @param targetValue can be Infinity or -Infinity * @param visualCluster Only can be 'color' 'opacity' 'symbol' 'symbolSize' * @param opts * @param opts.forceState Specify state, instead of using getValueState method. * @param opts.convertOpacityToAlpha For color gradient in controller widget. * @return {*} Visual value. */ VisualMapView.prototype.getControllerVisual = function (targetValue, visualCluster, opts) { opts = opts || {}; var forceState = opts.forceState; var visualMapModel = this.visualMapModel; var visualObj = {}; // Default values. if (visualCluster === 'color') { var defaultColor = visualMapModel.get('contentColor'); visualObj.color = defaultColor; } function getter(key) { return visualObj[key]; } function setter(key, value) { visualObj[key] = value; } var mappings = visualMapModel.controllerVisuals[forceState || visualMapModel.getValueState(targetValue)]; var visualTypes = _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_5__["default"].prepareVisualTypes(mappings); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](visualTypes, function (type) { var visualMapping = mappings[type]; if (opts.convertOpacityToAlpha && type === 'opacity') { type = 'colorAlpha'; visualMapping = mappings.__alphaForOpacity; } if (_visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_5__["default"].dependsOn(type, visualCluster)) { visualMapping && visualMapping.applyVisual(targetValue, getter, setter); } }); return visualObj[visualCluster]; }; VisualMapView.prototype.positionGroup = function (group) { var model = this.visualMapModel; var api = this.api; _util_layout_js__WEBPACK_IMPORTED_MODULE_4__["positionElement"](group, model.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() }); }; VisualMapView.prototype.doRender = function (visualMapModel, ecModel, api, payload) {}; VisualMapView.type = 'visualMap'; return VisualMapView; }(_view_Component_js__WEBPACK_IMPORTED_MODULE_6__["default"]); /* harmony default export */ __webpack_exports__["default"] = (VisualMapView); /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/helper.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/helper.js ***! \****************************************************************/ /*! exports provided: getItemAlign, makeHighDownBatch */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getItemAlign", function() { return getItemAlign; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeHighDownBatch", function() { return makeHighDownBatch; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var paramsSet = [['left', 'right', 'width'], ['top', 'bottom', 'height']]; /** * @param visualMapModel * @param api * @param itemSize always [short, long] * @return {string} 'left' or 'right' or 'top' or 'bottom' */ function getItemAlign(visualMapModel, api, itemSize) { var modelOption = visualMapModel.option; var itemAlign = modelOption.align; if (itemAlign != null && itemAlign !== 'auto') { return itemAlign; } // Auto decision align. var ecSize = { width: api.getWidth(), height: api.getHeight() }; var realIndex = modelOption.orient === 'horizontal' ? 1 : 0; var reals = paramsSet[realIndex]; var fakeValue = [0, null, 10]; var layoutInput = {}; for (var i = 0; i < 3; i++) { layoutInput[paramsSet[1 - realIndex][i]] = fakeValue[i]; layoutInput[reals[i]] = i === 2 ? itemSize[0] : modelOption[reals[i]]; } var rParam = [['x', 'width', 3], ['y', 'height', 0]][realIndex]; var rect = Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_1__["getLayoutRect"])(layoutInput, ecSize, modelOption.padding); return reals[(rect.margin[rParam[2]] || 0) + rect[rParam[0]] + rect[rParam[1]] * 0.5 < ecSize[rParam[1]] * 0.5 ? 0 : 1]; } /** * Prepare dataIndex for outside usage, where dataIndex means rawIndex, and * dataIndexInside means filtered index. */ // TODO: TYPE more specified payload types. function makeHighDownBatch(batch, visualMapModel) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](batch || [], function (batchItem) { if (batchItem.dataIndex != null) { batchItem.dataIndexInside = batchItem.dataIndex; batchItem.dataIndex = null; } batchItem.highlightKey = 'visualMap' + (visualMapModel ? visualMapModel.componentIndex : ''); }); return batch; } /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/install.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/install.js ***! \*****************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _installVisualMapContinuous_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./installVisualMapContinuous.js */ "./node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js"); /* harmony import */ var _installVisualMapPiecewise_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./installVisualMapPiecewise.js */ "./node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { Object(_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_installVisualMapContinuous_js__WEBPACK_IMPORTED_MODULE_1__["install"]); Object(_extension_js__WEBPACK_IMPORTED_MODULE_0__["use"])(_installVisualMapPiecewise_js__WEBPACK_IMPORTED_MODULE_2__["install"]); // Do not install './dataZoomSelect', // since it only work for toolbox dataZoom. } /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/installCommon.js": /*!***********************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/installCommon.js ***! \***********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return installCommon; }); /* harmony import */ var _visualMapAction_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./visualMapAction.js */ "./node_modules/echarts/lib/component/visualMap/visualMapAction.js"); /* harmony import */ var _visualEncoding_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./visualEncoding.js */ "./node_modules/echarts/lib/component/visualMap/visualEncoding.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _preprocessor_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./preprocessor.js */ "./node_modules/echarts/lib/component/visualMap/preprocessor.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var installed = false; function installCommon(registers) { if (installed) { return; } installed = true; registers.registerSubTypeDefaulter('visualMap', function (option) { // Compatible with ec2, when splitNumber === 0, continuous visualMap will be used. return !option.categories && (!(option.pieces ? option.pieces.length > 0 : option.splitNumber > 0) || option.calculable) ? 'continuous' : 'piecewise'; }); registers.registerAction(_visualMapAction_js__WEBPACK_IMPORTED_MODULE_0__["visualMapActionInfo"], _visualMapAction_js__WEBPACK_IMPORTED_MODULE_0__["visualMapActionHander"]); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(_visualEncoding_js__WEBPACK_IMPORTED_MODULE_1__["visualMapEncodingHandlers"], function (handler) { registers.registerVisual(registers.PRIORITY.VISUAL.COMPONENT, handler); }); registers.registerPreprocessor(_preprocessor_js__WEBPACK_IMPORTED_MODULE_3__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js": /*!************************************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js ***! \************************************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _ContinuousModel_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ContinuousModel.js */ "./node_modules/echarts/lib/component/visualMap/ContinuousModel.js"); /* harmony import */ var _ContinuousView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ContinuousView.js */ "./node_modules/echarts/lib/component/visualMap/ContinuousView.js"); /* harmony import */ var _installCommon_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./installCommon.js */ "./node_modules/echarts/lib/component/visualMap/installCommon.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerComponentModel(_ContinuousModel_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerComponentView(_ContinuousView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); Object(_installCommon_js__WEBPACK_IMPORTED_MODULE_2__["default"])(registers); } /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js": /*!***********************************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js ***! \***********************************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var _PiecewiseModel_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PiecewiseModel.js */ "./node_modules/echarts/lib/component/visualMap/PiecewiseModel.js"); /* harmony import */ var _PiecewiseView_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PiecewiseView.js */ "./node_modules/echarts/lib/component/visualMap/PiecewiseView.js"); /* harmony import */ var _installCommon_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./installCommon.js */ "./node_modules/echarts/lib/component/visualMap/installCommon.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerComponentModel(_PiecewiseModel_js__WEBPACK_IMPORTED_MODULE_0__["default"]); registers.registerComponentView(_PiecewiseView_js__WEBPACK_IMPORTED_MODULE_1__["default"]); Object(_installCommon_js__WEBPACK_IMPORTED_MODULE_2__["default"])(registers); } /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/preprocessor.js": /*!**********************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/preprocessor.js ***! \**********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return visualMapPreprocessor; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // @ts-nocheck var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]; function visualMapPreprocessor(option) { var visualMap = option && option.visualMap; if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](visualMap)) { visualMap = visualMap ? [visualMap] : []; } each(visualMap, function (opt) { if (!opt) { return; } // rename splitList to pieces if (has(opt, 'splitList') && !has(opt, 'pieces')) { opt.pieces = opt.splitList; delete opt.splitList; } var pieces = opt.pieces; if (pieces && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](pieces)) { each(pieces, function (piece) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](piece)) { if (has(piece, 'start') && !has(piece, 'min')) { piece.min = piece.start; } if (has(piece, 'end') && !has(piece, 'max')) { piece.max = piece.end; } } }); } }); } function has(obj, name) { return obj && obj.hasOwnProperty && obj.hasOwnProperty(name); } /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/visualEncoding.js": /*!************************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/visualEncoding.js ***! \************************************************************************/ /*! exports provided: visualMapEncodingHandlers */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "visualMapEncodingHandlers", function() { return visualMapEncodingHandlers; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _visual_visualSolution_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../visual/visualSolution.js */ "./node_modules/echarts/lib/visual/visualSolution.js"); /* harmony import */ var _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../visual/VisualMapping.js */ "./node_modules/echarts/lib/visual/VisualMapping.js"); /* harmony import */ var _visual_helper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../visual/helper.js */ "./node_modules/echarts/lib/visual/helper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var visualMapEncodingHandlers = [{ createOnAllSeries: true, reset: function (seriesModel, ecModel) { var resetDefines = []; ecModel.eachComponent('visualMap', function (visualMapModel) { var pipelineContext = seriesModel.pipelineContext; if (!visualMapModel.isTargetSeries(seriesModel) || pipelineContext && pipelineContext.large) { return; } resetDefines.push(_visual_visualSolution_js__WEBPACK_IMPORTED_MODULE_1__["incrementalApplyVisual"](visualMapModel.stateList, visualMapModel.targetVisuals, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"](visualMapModel.getValueState, visualMapModel), visualMapModel.getDataDimensionIndex(seriesModel.getData()))); }); return resetDefines; } }, // Only support color. { createOnAllSeries: true, reset: function (seriesModel, ecModel) { var data = seriesModel.getData(); var visualMetaList = []; ecModel.eachComponent('visualMap', function (visualMapModel) { if (visualMapModel.isTargetSeries(seriesModel)) { var visualMeta = visualMapModel.getVisualMeta(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"](getColorVisual, null, seriesModel, visualMapModel)) || { stops: [], outerColors: [] }; var dimIdx = visualMapModel.getDataDimensionIndex(data); if (dimIdx >= 0) { // visualMeta.dimension should be dimension index, but not concrete dimension. visualMeta.dimension = dimIdx; visualMetaList.push(visualMeta); } } }); // console.log(JSON.stringify(visualMetaList.map(a => a.stops))); seriesModel.getData().setVisual('visualMeta', visualMetaList); } }]; // FIXME // performance and export for heatmap? // value can be Infinity or -Infinity function getColorVisual(seriesModel, visualMapModel, value, valueState) { var mappings = visualMapModel.targetVisuals[valueState]; var visualTypes = _visual_VisualMapping_js__WEBPACK_IMPORTED_MODULE_2__["default"].prepareVisualTypes(mappings); var resultVisual = { color: Object(_visual_helper_js__WEBPACK_IMPORTED_MODULE_3__["getVisualFromData"])(seriesModel.getData(), 'color') // default color. }; for (var i = 0, len = visualTypes.length; i < len; i++) { var type = visualTypes[i]; var mapping = mappings[type === 'opacity' ? '__alphaForOpacity' : type]; mapping && mapping.applyVisual(value, getVisual, setVisual); } return resultVisual.color; function getVisual(key) { return resultVisual[key]; } function setVisual(key, value) { resultVisual[key] = value; } } /***/ }), /***/ "./node_modules/echarts/lib/component/visualMap/visualMapAction.js": /*!*************************************************************************!*\ !*** ./node_modules/echarts/lib/component/visualMap/visualMapAction.js ***! \*************************************************************************/ /*! exports provided: visualMapActionInfo, visualMapActionHander */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "visualMapActionInfo", function() { return visualMapActionInfo; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "visualMapActionHander", function() { return visualMapActionHander; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var visualMapActionInfo = { type: 'selectDataRange', event: 'dataRangeSelected', // FIXME use updateView appears wrong update: 'update' }; var visualMapActionHander = function (payload, ecModel) { ecModel.eachComponent({ mainType: 'visualMap', query: payload }, function (model) { model.setSelected(payload.selected); }); }; /***/ }), /***/ "./node_modules/echarts/lib/coord/Axis.js": /*!************************************************!*\ !*** ./node_modules/echarts/lib/coord/Axis.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _axisTickLabelBuilder_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./axisTickLabelBuilder.js */ "./node_modules/echarts/lib/coord/axisTickLabelBuilder.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var NORMALIZED_EXTENT = [0, 1]; /** * Base class of Axis. */ var Axis = /** @class */function () { function Axis(dim, scale, extent) { this.onBand = false; this.inverse = false; this.dim = dim; this.scale = scale; this._extent = extent || [0, 0]; } /** * If axis extent contain given coord */ Axis.prototype.contain = function (coord) { var extent = this._extent; var min = Math.min(extent[0], extent[1]); var max = Math.max(extent[0], extent[1]); return coord >= min && coord <= max; }; /** * If axis extent contain given data */ Axis.prototype.containData = function (data) { return this.scale.contain(data); }; /** * Get coord extent. */ Axis.prototype.getExtent = function () { return this._extent.slice(); }; /** * Get precision used for formatting */ Axis.prototype.getPixelPrecision = function (dataExtent) { return Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["getPixelPrecision"])(dataExtent || this.scale.getExtent(), this._extent); }; /** * Set coord extent */ Axis.prototype.setExtent = function (start, end) { var extent = this._extent; extent[0] = start; extent[1] = end; }; /** * Convert data to coord. Data is the rank if it has an ordinal scale */ Axis.prototype.dataToCoord = function (data, clamp) { var extent = this._extent; var scale = this.scale; data = scale.normalize(data); if (this.onBand && scale.type === 'ordinal') { extent = extent.slice(); fixExtentWithBands(extent, scale.count()); } return Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["linearMap"])(data, NORMALIZED_EXTENT, extent, clamp); }; /** * Convert coord to data. Data is the rank if it has an ordinal scale */ Axis.prototype.coordToData = function (coord, clamp) { var extent = this._extent; var scale = this.scale; if (this.onBand && scale.type === 'ordinal') { extent = extent.slice(); fixExtentWithBands(extent, scale.count()); } var t = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["linearMap"])(coord, extent, NORMALIZED_EXTENT, clamp); return this.scale.scale(t); }; /** * Convert pixel point to data in axis */ Axis.prototype.pointToData = function (point, clamp) { // Should be implemented in derived class if necessary. return; }; /** * Different from `zrUtil.map(axis.getTicks(), axis.dataToCoord, axis)`, * `axis.getTicksCoords` considers `onBand`, which is used by * `boundaryGap:true` of category axis and splitLine and splitArea. * @param opt.tickModel default: axis.model.getModel('axisTick') * @param opt.clamp If `true`, the first and the last * tick must be at the axis end points. Otherwise, clip ticks * that outside the axis extent. */ Axis.prototype.getTicksCoords = function (opt) { opt = opt || {}; var tickModel = opt.tickModel || this.getTickModel(); var result = Object(_axisTickLabelBuilder_js__WEBPACK_IMPORTED_MODULE_2__["createAxisTicks"])(this, tickModel); var ticks = result.ticks; var ticksCoords = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(ticks, function (tickVal) { return { coord: this.dataToCoord(this.scale.type === 'ordinal' ? this.scale.getRawOrdinalNumber(tickVal) : tickVal), tickValue: tickVal }; }, this); var alignWithLabel = tickModel.get('alignWithLabel'); fixOnBandTicksCoords(this, ticksCoords, alignWithLabel, opt.clamp); return ticksCoords; }; Axis.prototype.getMinorTicksCoords = function () { if (this.scale.type === 'ordinal') { // Category axis doesn't support minor ticks return []; } var minorTickModel = this.model.getModel('minorTick'); var splitNumber = minorTickModel.get('splitNumber'); // Protection. if (!(splitNumber > 0 && splitNumber < 100)) { splitNumber = 5; } var minorTicks = this.scale.getMinorTicks(splitNumber); var minorTicksCoords = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(minorTicks, function (minorTicksGroup) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(minorTicksGroup, function (minorTick) { return { coord: this.dataToCoord(minorTick), tickValue: minorTick }; }, this); }, this); return minorTicksCoords; }; Axis.prototype.getViewLabels = function () { return Object(_axisTickLabelBuilder_js__WEBPACK_IMPORTED_MODULE_2__["createAxisLabels"])(this).labels; }; Axis.prototype.getLabelModel = function () { return this.model.getModel('axisLabel'); }; /** * Notice here we only get the default tick model. For splitLine * or splitArea, we should pass the splitLineModel or splitAreaModel * manually when calling `getTicksCoords`. * In GL, this method may be overridden to: * `axisModel.getModel('axisTick', grid3DModel.getModel('axisTick'));` */ Axis.prototype.getTickModel = function () { return this.model.getModel('axisTick'); }; /** * Get width of band */ Axis.prototype.getBandWidth = function () { var axisExtent = this._extent; var dataExtent = this.scale.getExtent(); var len = dataExtent[1] - dataExtent[0] + (this.onBand ? 1 : 0); // Fix #2728, avoid NaN when only one data. len === 0 && (len = 1); var size = Math.abs(axisExtent[1] - axisExtent[0]); return Math.abs(size) / len; }; /** * Only be called in category axis. * Can be overridden, consider other axes like in 3D. * @return Auto interval for cateogry axis tick and label */ Axis.prototype.calculateCategoryInterval = function () { return Object(_axisTickLabelBuilder_js__WEBPACK_IMPORTED_MODULE_2__["calculateCategoryInterval"])(this); }; return Axis; }(); function fixExtentWithBands(extent, nTick) { var size = extent[1] - extent[0]; var len = nTick; var margin = size / len / 2; extent[0] += margin; extent[1] -= margin; } // If axis has labels [1, 2, 3, 4]. Bands on the axis are // |---1---|---2---|---3---|---4---|. // So the displayed ticks and splitLine/splitArea should between // each data item, otherwise cause misleading (e.g., split tow bars // of a single data item when there are two bar series). // Also consider if tickCategoryInterval > 0 and onBand, ticks and // splitLine/spliteArea should layout appropriately corresponding // to displayed labels. (So we should not use `getBandWidth` in this // case). function fixOnBandTicksCoords(axis, ticksCoords, alignWithLabel, clamp) { var ticksLen = ticksCoords.length; if (!axis.onBand || alignWithLabel || !ticksLen) { return; } var axisExtent = axis.getExtent(); var last; var diffSize; if (ticksLen === 1) { ticksCoords[0].coord = axisExtent[0]; last = ticksCoords[1] = { coord: axisExtent[1], tickValue: ticksCoords[0].tickValue }; } else { var crossLen = ticksCoords[ticksLen - 1].tickValue - ticksCoords[0].tickValue; var shift_1 = (ticksCoords[ticksLen - 1].coord - ticksCoords[0].coord) / crossLen; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(ticksCoords, function (ticksItem) { ticksItem.coord -= shift_1 / 2; }); var dataExtent = axis.scale.getExtent(); diffSize = 1 + dataExtent[1] - ticksCoords[ticksLen - 1].tickValue; last = { coord: ticksCoords[ticksLen - 1].coord + shift_1 * diffSize, tickValue: dataExtent[1] + 1 }; ticksCoords.push(last); } var inverse = axisExtent[0] > axisExtent[1]; // Handling clamp. if (littleThan(ticksCoords[0].coord, axisExtent[0])) { clamp ? ticksCoords[0].coord = axisExtent[0] : ticksCoords.shift(); } if (clamp && littleThan(axisExtent[0], ticksCoords[0].coord)) { ticksCoords.unshift({ coord: axisExtent[0] }); } if (littleThan(axisExtent[1], last.coord)) { clamp ? last.coord = axisExtent[1] : ticksCoords.pop(); } if (clamp && littleThan(last.coord, axisExtent[1])) { ticksCoords.push({ coord: axisExtent[1] }); } function littleThan(a, b) { // Avoid rounding error cause calculated tick coord different with extent. // It may cause an extra unnecessary tick added. a = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["round"])(a); b = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["round"])(b); return inverse ? a > b : a < b; } } /* harmony default export */ __webpack_exports__["default"] = (Axis); /***/ }), /***/ "./node_modules/echarts/lib/coord/CoordinateSystem.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/coord/CoordinateSystem.js ***! \************************************************************/ /*! exports provided: isCoordinateSystemType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCoordinateSystemType", function() { return isCoordinateSystemType; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function isCoordinateSystemType(coordSys, type) { return coordSys.type === type; } /***/ }), /***/ "./node_modules/echarts/lib/coord/View.js": /*!************************************************!*\ !*** ./node_modules/echarts/lib/coord/View.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* harmony import */ var zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/matrix.js */ "./node_modules/zrender/lib/core/matrix.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/Transformable.js */ "./node_modules/zrender/lib/core/Transformable.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Simple view coordinate system * Mapping given x, y to transformd view x, y */ var v2ApplyTransform = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["applyTransform"]; var View = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(View, _super); function View(name) { var _this = _super.call(this) || this; _this.type = 'view'; _this.dimensions = ['x', 'y']; /** * Represents the transform brought by roam/zoom. * If `View['_viewRect']` applies roam transform, * we can get the final displayed rect. */ _this._roamTransformable = new zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_4__["default"](); /** * Represents the transform from `View['_rect']` to `View['_viewRect']`. */ _this._rawTransformable = new zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_4__["default"](); _this.name = name; return _this; } View.prototype.setBoundingRect = function (x, y, width, height) { this._rect = new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_3__["default"](x, y, width, height); return this._rect; }; /** * @return {module:zrender/core/BoundingRect} */ View.prototype.getBoundingRect = function () { return this._rect; }; View.prototype.setViewRect = function (x, y, width, height) { this._transformTo(x, y, width, height); this._viewRect = new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_3__["default"](x, y, width, height); }; /** * Transformed to particular position and size */ View.prototype._transformTo = function (x, y, width, height) { var rect = this.getBoundingRect(); var rawTransform = this._rawTransformable; rawTransform.transform = rect.calculateTransform(new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_3__["default"](x, y, width, height)); var rawParent = rawTransform.parent; rawTransform.parent = null; rawTransform.decomposeTransform(); rawTransform.parent = rawParent; this._updateTransform(); }; /** * Set center of view */ View.prototype.setCenter = function (centerCoord, api) { if (!centerCoord) { return; } this._center = [Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["parsePercent"])(centerCoord[0], api.getWidth()), Object(_util_number_js__WEBPACK_IMPORTED_MODULE_5__["parsePercent"])(centerCoord[1], api.getHeight())]; this._updateCenterAndZoom(); }; View.prototype.setZoom = function (zoom) { zoom = zoom || 1; var zoomLimit = this.zoomLimit; if (zoomLimit) { if (zoomLimit.max != null) { zoom = Math.min(zoomLimit.max, zoom); } if (zoomLimit.min != null) { zoom = Math.max(zoomLimit.min, zoom); } } this._zoom = zoom; this._updateCenterAndZoom(); }; /** * Get default center without roam */ View.prototype.getDefaultCenter = function () { // Rect before any transform var rawRect = this.getBoundingRect(); var cx = rawRect.x + rawRect.width / 2; var cy = rawRect.y + rawRect.height / 2; return [cx, cy]; }; View.prototype.getCenter = function () { return this._center || this.getDefaultCenter(); }; View.prototype.getZoom = function () { return this._zoom || 1; }; View.prototype.getRoamTransform = function () { return this._roamTransformable.getLocalTransform(); }; /** * Remove roam */ View.prototype._updateCenterAndZoom = function () { // Must update after view transform updated var rawTransformMatrix = this._rawTransformable.getLocalTransform(); var roamTransform = this._roamTransformable; var defaultCenter = this.getDefaultCenter(); var center = this.getCenter(); var zoom = this.getZoom(); center = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["applyTransform"]([], center, rawTransformMatrix); defaultCenter = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["applyTransform"]([], defaultCenter, rawTransformMatrix); roamTransform.originX = center[0]; roamTransform.originY = center[1]; roamTransform.x = defaultCenter[0] - center[0]; roamTransform.y = defaultCenter[1] - center[1]; roamTransform.scaleX = roamTransform.scaleY = zoom; this._updateTransform(); }; /** * Update transform props on `this` based on the current * `this._roamTransformable` and `this._rawTransformable`. */ View.prototype._updateTransform = function () { var roamTransformable = this._roamTransformable; var rawTransformable = this._rawTransformable; rawTransformable.parent = roamTransformable; roamTransformable.updateTransform(); rawTransformable.updateTransform(); zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_2__["copy"](this.transform || (this.transform = []), rawTransformable.transform || zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_2__["create"]()); this._rawTransform = rawTransformable.getLocalTransform(); this.invTransform = this.invTransform || []; zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_2__["invert"](this.invTransform, this.transform); this.decomposeTransform(); }; View.prototype.getTransformInfo = function () { var rawTransformable = this._rawTransformable; var roamTransformable = this._roamTransformable; // Because roamTransformabel has `originX/originY` modified, // but the caller of `getTransformInfo` can not handle `originX/originY`, // so need to recalculate them. var dummyTransformable = new zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_4__["default"](); dummyTransformable.transform = roamTransformable.transform; dummyTransformable.decomposeTransform(); return { roam: { x: dummyTransformable.x, y: dummyTransformable.y, scaleX: dummyTransformable.scaleX, scaleY: dummyTransformable.scaleY }, raw: { x: rawTransformable.x, y: rawTransformable.y, scaleX: rawTransformable.scaleX, scaleY: rawTransformable.scaleY } }; }; View.prototype.getViewRect = function () { return this._viewRect; }; /** * Get view rect after roam transform */ View.prototype.getViewRectAfterRoam = function () { var rect = this.getBoundingRect().clone(); rect.applyTransform(this.transform); return rect; }; /** * Convert a single (lon, lat) data item to (x, y) point. */ View.prototype.dataToPoint = function (data, noRoam, out) { var transform = noRoam ? this._rawTransform : this.transform; out = out || []; return transform ? v2ApplyTransform(out, data, transform) : zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_1__["copy"](out, data); }; /** * Convert a (x, y) point to (lon, lat) data */ View.prototype.pointToData = function (point) { var invTransform = this.invTransform; return invTransform ? v2ApplyTransform([], point, invTransform) : [point[0], point[1]]; }; View.prototype.convertToPixel = function (ecModel, finder, value) { var coordSys = getCoordSys(finder); return coordSys === this ? coordSys.dataToPoint(value) : null; }; View.prototype.convertFromPixel = function (ecModel, finder, pixel) { var coordSys = getCoordSys(finder); return coordSys === this ? coordSys.pointToData(pixel) : null; }; /** * @implements */ View.prototype.containPoint = function (point) { return this.getViewRectAfterRoam().contain(point[0], point[1]); }; View.dimensions = ['x', 'y']; return View; }(zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_4__["default"]); function getCoordSys(finder) { var seriesModel = finder.seriesModel; return seriesModel ? seriesModel.coordinateSystem : null; // e.g., graph. } /* harmony default export */ __webpack_exports__["default"] = (View); /***/ }), /***/ "./node_modules/echarts/lib/coord/axisAlignTicks.js": /*!**********************************************************!*\ !*** ./node_modules/echarts/lib/coord/axisAlignTicks.js ***! \**********************************************************/ /*! exports provided: alignScaleTicks */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignScaleTicks", function() { return alignScaleTicks; }); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _scale_Interval_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scale/Interval.js */ "./node_modules/echarts/lib/scale/Interval.js"); /* harmony import */ var _axisHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./axisHelper.js */ "./node_modules/echarts/lib/coord/axisHelper.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var _scale_helper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../scale/helper.js */ "./node_modules/echarts/lib/scale/helper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var mathLog = Math.log; function alignScaleTicks(scale, axisModel, alignToScale) { var intervalScaleProto = _scale_Interval_js__WEBPACK_IMPORTED_MODULE_1__["default"].prototype; // NOTE: There is a precondition for log scale here: // In log scale we store _interval and _extent of exponent value. // So if we use the method of InternalScale to set/get these data. // It process the exponent value, which is linear and what we want here. var alignToTicks = intervalScaleProto.getTicks.call(alignToScale); var alignToNicedTicks = intervalScaleProto.getTicks.call(alignToScale, true); var alignToSplitNumber = alignToTicks.length - 1; var alignToInterval = intervalScaleProto.getInterval.call(alignToScale); var scaleExtent = Object(_axisHelper_js__WEBPACK_IMPORTED_MODULE_2__["getScaleExtent"])(scale, axisModel); var rawExtent = scaleExtent.extent; var isMinFixed = scaleExtent.fixMin; var isMaxFixed = scaleExtent.fixMax; if (scale.type === 'log') { var logBase = mathLog(scale.base); rawExtent = [mathLog(rawExtent[0]) / logBase, mathLog(rawExtent[1]) / logBase]; } scale.setExtent(rawExtent[0], rawExtent[1]); scale.calcNiceExtent({ splitNumber: alignToSplitNumber, fixMin: isMinFixed, fixMax: isMaxFixed }); var extent = intervalScaleProto.getExtent.call(scale); // Need to update the rawExtent. // Because value in rawExtent may be not parsed. e.g. 'dataMin', 'dataMax' if (isMinFixed) { rawExtent[0] = extent[0]; } if (isMaxFixed) { rawExtent[1] = extent[1]; } var interval = intervalScaleProto.getInterval.call(scale); var min = rawExtent[0]; var max = rawExtent[1]; if (isMinFixed && isMaxFixed) { // User set min, max, divide to get new interval interval = (max - min) / alignToSplitNumber; } else if (isMinFixed) { max = rawExtent[0] + interval * alignToSplitNumber; // User set min, expand extent on the other side while (max < rawExtent[1] && isFinite(max) && isFinite(rawExtent[1])) { interval = Object(_scale_helper_js__WEBPACK_IMPORTED_MODULE_4__["increaseInterval"])(interval); max = rawExtent[0] + interval * alignToSplitNumber; } } else if (isMaxFixed) { // User set max, expand extent on the other side min = rawExtent[1] - interval * alignToSplitNumber; while (min > rawExtent[0] && isFinite(min) && isFinite(rawExtent[0])) { interval = Object(_scale_helper_js__WEBPACK_IMPORTED_MODULE_4__["increaseInterval"])(interval); min = rawExtent[1] - interval * alignToSplitNumber; } } else { var nicedSplitNumber = scale.getTicks().length - 1; if (nicedSplitNumber > alignToSplitNumber) { interval = Object(_scale_helper_js__WEBPACK_IMPORTED_MODULE_4__["increaseInterval"])(interval); } var range = interval * alignToSplitNumber; max = Math.ceil(rawExtent[1] / interval) * interval; min = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["round"])(max - range); // Not change the result that crossing zero. if (min < 0 && rawExtent[0] >= 0) { min = 0; max = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["round"])(range); } else if (max > 0 && rawExtent[1] <= 0) { max = 0; min = -Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["round"])(range); } } // Adjust min, max based on the extent of alignTo. When min or max is set in alignTo scale var t0 = (alignToTicks[0].value - alignToNicedTicks[0].value) / alignToInterval; var t1 = (alignToTicks[alignToSplitNumber].value - alignToNicedTicks[alignToSplitNumber].value) / alignToInterval; // NOTE: Must in setExtent -> setInterval -> setNiceExtent order. intervalScaleProto.setExtent.call(scale, min + interval * t0, max + interval * t1); intervalScaleProto.setInterval.call(scale, interval); if (t0 || t1) { intervalScaleProto.setNiceExtent.call(scale, min + interval, max - interval); } if (true) { var ticks = intervalScaleProto.getTicks.call(scale); if (ticks[1] && (!Object(_scale_helper_js__WEBPACK_IMPORTED_MODULE_4__["isValueNice"])(interval) || Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["getPrecisionSafe"])(ticks[1].value) > Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["getPrecisionSafe"])(interval))) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["warn"])( // eslint-disable-next-line "The ticks may be not readable when set min: " + axisModel.get('min') + ", max: " + axisModel.get('max') + " and alignTicks: true"); } } } /***/ }), /***/ "./node_modules/echarts/lib/coord/axisCommonTypes.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/coord/axisCommonTypes.js ***! \***********************************************************/ /*! exports provided: AXIS_TYPES */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AXIS_TYPES", function() { return AXIS_TYPES; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var AXIS_TYPES = { value: 1, category: 1, time: 1, log: 1 }; /***/ }), /***/ "./node_modules/echarts/lib/coord/axisDefault.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/coord/axisDefault.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var defaultOption = { show: true, // zlevel: 0, z: 0, // Inverse the axis. inverse: false, // Axis name displayed. name: '', // 'start' | 'middle' | 'end' nameLocation: 'end', // By degree. By default auto rotate by nameLocation. nameRotate: null, nameTruncate: { maxWidth: null, ellipsis: '...', placeholder: '.' }, // Use global text style by default. nameTextStyle: {}, // The gap between axisName and axisLine. nameGap: 15, // Default `false` to support tooltip. silent: false, // Default `false` to avoid legacy user event listener fail. triggerEvent: false, tooltip: { show: false }, axisPointer: {}, axisLine: { show: true, onZero: true, onZeroAxisIndex: null, lineStyle: { color: '#6E7079', width: 1, type: 'solid' }, // The arrow at both ends the the axis. symbol: ['none', 'none'], symbolSize: [10, 15] }, axisTick: { show: true, // Whether axisTick is inside the grid or outside the grid. inside: false, // The length of axisTick. length: 5, lineStyle: { width: 1 } }, axisLabel: { show: true, // Whether axisLabel is inside the grid or outside the grid. inside: false, rotate: 0, // true | false | null/undefined (auto) showMinLabel: null, // true | false | null/undefined (auto) showMaxLabel: null, margin: 8, // formatter: null, fontSize: 12 }, splitLine: { show: true, showMinLine: true, showMaxLine: true, lineStyle: { color: ['#E0E6F1'], width: 1, type: 'solid' } }, splitArea: { show: false, areaStyle: { color: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'] } } }; var categoryAxis = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["merge"]({ // The gap at both ends of the axis. For categoryAxis, boolean. boundaryGap: true, // Set false to faster category collection. deduplication: null, // splitArea: { // show: false // }, splitLine: { show: false }, axisTick: { // If tick is align with label when boundaryGap is true alignWithLabel: false, interval: 'auto' }, axisLabel: { interval: 'auto' } }, defaultOption); var valueAxis = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["merge"]({ boundaryGap: [0, 0], axisLine: { // Not shown when other axis is categoryAxis in cartesian show: 'auto' }, axisTick: { // Not shown when other axis is categoryAxis in cartesian show: 'auto' }, // TODO // min/max: [30, datamin, 60] or [20, datamin] or [datamin, 60] splitNumber: 5, minorTick: { // Minor tick, not available for cateogry axis. show: false, // Split number of minor ticks. The value should be in range of (0, 100) splitNumber: 5, // Length of minor tick length: 3, // Line style lineStyle: { // Default to be same with axisTick } }, minorSplitLine: { show: false, lineStyle: { color: '#F4F7FD', width: 1 } } }, defaultOption); var timeAxis = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["merge"]({ splitNumber: 6, axisLabel: { // To eliminate labels that are not nice showMinLabel: false, showMaxLabel: false, rich: { primary: { fontWeight: 'bold' } } }, splitLine: { show: false } }, valueAxis); var logAxis = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"]({ logBase: 10 }, valueAxis); /* harmony default export */ __webpack_exports__["default"] = ({ category: categoryAxis, value: valueAxis, time: timeAxis, log: logAxis }); /***/ }), /***/ "./node_modules/echarts/lib/coord/axisHelper.js": /*!******************************************************!*\ !*** ./node_modules/echarts/lib/coord/axisHelper.js ***! \******************************************************/ /*! exports provided: getScaleExtent, niceScaleExtent, createScaleByModel, ifAxisCrossZero, makeLabelFormatter, getAxisRawValue, estimateLabelUnionRect, getOptionCategoryInterval, shouldShowAllLabels, getDataDimensionsOnAxis, unionAxisExtentFromData */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getScaleExtent", function() { return getScaleExtent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "niceScaleExtent", function() { return niceScaleExtent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createScaleByModel", function() { return createScaleByModel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ifAxisCrossZero", function() { return ifAxisCrossZero; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeLabelFormatter", function() { return makeLabelFormatter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAxisRawValue", function() { return getAxisRawValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "estimateLabelUnionRect", function() { return estimateLabelUnionRect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOptionCategoryInterval", function() { return getOptionCategoryInterval; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shouldShowAllLabels", function() { return shouldShowAllLabels; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDataDimensionsOnAxis", function() { return getDataDimensionsOnAxis; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unionAxisExtentFromData", function() { return unionAxisExtentFromData; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _scale_Ordinal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scale/Ordinal.js */ "./node_modules/echarts/lib/scale/Ordinal.js"); /* harmony import */ var _scale_Interval_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../scale/Interval.js */ "./node_modules/echarts/lib/scale/Interval.js"); /* harmony import */ var _scale_Scale_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../scale/Scale.js */ "./node_modules/echarts/lib/scale/Scale.js"); /* harmony import */ var _layout_barGrid_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../layout/barGrid.js */ "./node_modules/echarts/lib/layout/barGrid.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var _scale_Time_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../scale/Time.js */ "./node_modules/echarts/lib/scale/Time.js"); /* harmony import */ var _scale_Log_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../scale/Log.js */ "./node_modules/echarts/lib/scale/Log.js"); /* harmony import */ var _data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../data/helper/dataStackHelper.js */ "./node_modules/echarts/lib/data/helper/dataStackHelper.js"); /* harmony import */ var _scaleRawExtentInfo_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./scaleRawExtentInfo.js */ "./node_modules/echarts/lib/coord/scaleRawExtentInfo.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Get axis scale extent before niced. * Item of returned array can only be number (including Infinity and NaN). * * Caution: * Precondition of calling this method: * The scale extent has been initialized using series data extent via * `scale.setExtent` or `scale.unionExtentFromData`; */ function getScaleExtent(scale, model) { var scaleType = scale.type; var rawExtentResult = Object(_scaleRawExtentInfo_js__WEBPACK_IMPORTED_MODULE_9__["ensureScaleRawExtentInfo"])(scale, model, scale.getExtent()).calculate(); scale.setBlank(rawExtentResult.isBlank); var min = rawExtentResult.min; var max = rawExtentResult.max; // If bars are placed on a base axis of type time or interval account for axis boundary overflow and current axis // is base axis // FIXME // (1) Consider support value axis, where below zero and axis `onZero` should be handled properly. // (2) Refactor the logic with `barGrid`. Is it not need to `makeBarWidthAndOffsetInfo` twice with different extent? // Should not depend on series type `bar`? // (3) Fix that might overlap when using dataZoom. // (4) Consider other chart types using `barGrid`? // See #6728, #4862, `test/bar-overflow-time-plot.html` var ecModel = model.ecModel; if (ecModel && scaleType === 'time' /* || scaleType === 'interval' */) { var barSeriesModels = Object(_layout_barGrid_js__WEBPACK_IMPORTED_MODULE_4__["prepareLayoutBarSeries"])('bar', ecModel); var isBaseAxisAndHasBarSeries_1 = false; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](barSeriesModels, function (seriesModel) { isBaseAxisAndHasBarSeries_1 = isBaseAxisAndHasBarSeries_1 || seriesModel.getBaseAxis() === model.axis; }); if (isBaseAxisAndHasBarSeries_1) { // Calculate placement of bars on axis. TODO should be decoupled // with barLayout var barWidthAndOffset = Object(_layout_barGrid_js__WEBPACK_IMPORTED_MODULE_4__["makeColumnLayout"])(barSeriesModels); // Adjust axis min and max to account for overflow var adjustedScale = adjustScaleForOverflow(min, max, model, barWidthAndOffset); min = adjustedScale.min; max = adjustedScale.max; } } return { extent: [min, max], // "fix" means "fixed", the value should not be // changed in the subsequent steps. fixMin: rawExtentResult.minFixed, fixMax: rawExtentResult.maxFixed }; } function adjustScaleForOverflow(min, max, model, // Only support cartesian coord yet. barWidthAndOffset) { // Get Axis Length var axisExtent = model.axis.getExtent(); var axisLength = Math.abs(axisExtent[1] - axisExtent[0]); // Get bars on current base axis and calculate min and max overflow var barsOnCurrentAxis = Object(_layout_barGrid_js__WEBPACK_IMPORTED_MODULE_4__["retrieveColumnLayout"])(barWidthAndOffset, model.axis); if (barsOnCurrentAxis === undefined) { return { min: min, max: max }; } var minOverflow = Infinity; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](barsOnCurrentAxis, function (item) { minOverflow = Math.min(item.offset, minOverflow); }); var maxOverflow = -Infinity; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](barsOnCurrentAxis, function (item) { maxOverflow = Math.max(item.offset + item.width, maxOverflow); }); minOverflow = Math.abs(minOverflow); maxOverflow = Math.abs(maxOverflow); var totalOverFlow = minOverflow + maxOverflow; // Calculate required buffer based on old range and overflow var oldRange = max - min; var oldRangePercentOfNew = 1 - (minOverflow + maxOverflow) / axisLength; var overflowBuffer = oldRange / oldRangePercentOfNew - oldRange; max += overflowBuffer * (maxOverflow / totalOverFlow); min -= overflowBuffer * (minOverflow / totalOverFlow); return { min: min, max: max }; } // Precondition of calling this method: // The scale extent has been initialized using series data extent via // `scale.setExtent` or `scale.unionExtentFromData`; function niceScaleExtent(scale, inModel) { var model = inModel; var extentInfo = getScaleExtent(scale, model); var extent = extentInfo.extent; var splitNumber = model.get('splitNumber'); if (scale instanceof _scale_Log_js__WEBPACK_IMPORTED_MODULE_7__["default"]) { scale.base = model.get('logBase'); } var scaleType = scale.type; var interval = model.get('interval'); var isIntervalOrTime = scaleType === 'interval' || scaleType === 'time'; scale.setExtent(extent[0], extent[1]); scale.calcNiceExtent({ splitNumber: splitNumber, fixMin: extentInfo.fixMin, fixMax: extentInfo.fixMax, minInterval: isIntervalOrTime ? model.get('minInterval') : null, maxInterval: isIntervalOrTime ? model.get('maxInterval') : null }); // If some one specified the min, max. And the default calculated interval // is not good enough. He can specify the interval. It is often appeared // in angle axis with angle 0 - 360. Interval calculated in interval scale is hard // to be 60. // FIXME if (interval != null) { scale.setInterval && scale.setInterval(interval); } } /** * @param axisType Default retrieve from model.type */ function createScaleByModel(model, axisType) { axisType = axisType || model.get('type'); if (axisType) { switch (axisType) { // Buildin scale case 'category': return new _scale_Ordinal_js__WEBPACK_IMPORTED_MODULE_1__["default"]({ ordinalMeta: model.getOrdinalMeta ? model.getOrdinalMeta() : model.getCategories(), extent: [Infinity, -Infinity] }); case 'time': return new _scale_Time_js__WEBPACK_IMPORTED_MODULE_6__["default"]({ locale: model.ecModel.getLocaleModel(), useUTC: model.ecModel.get('useUTC') }); default: // case 'value'/'interval', 'log', or others. return new (_scale_Scale_js__WEBPACK_IMPORTED_MODULE_3__["default"].getClass(axisType) || _scale_Interval_js__WEBPACK_IMPORTED_MODULE_2__["default"])(); } } } /** * Check if the axis cross 0 */ function ifAxisCrossZero(axis) { var dataExtent = axis.scale.getExtent(); var min = dataExtent[0]; var max = dataExtent[1]; return !(min > 0 && max > 0 || min < 0 && max < 0); } /** * @param axis * @return Label formatter function. * param: {number} tickValue, * param: {number} idx, the index in all ticks. * If category axis, this param is not required. * return: {string} label string. */ function makeLabelFormatter(axis) { var labelFormatter = axis.getLabelModel().get('formatter'); var categoryTickStart = axis.type === 'category' ? axis.scale.getExtent()[0] : null; if (axis.scale.type === 'time') { return function (tpl) { return function (tick, idx) { return axis.scale.getFormattedLabel(tick, idx, tpl); }; }(labelFormatter); } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](labelFormatter)) { return function (tpl) { return function (tick) { // For category axis, get raw value; for numeric axis, // get formatted label like '1,333,444'. var label = axis.scale.getLabel(tick); var text = tpl.replace('{value}', label != null ? label : ''); return text; }; }(labelFormatter); } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"](labelFormatter)) { return function (cb) { return function (tick, idx) { // The original intention of `idx` is "the index of the tick in all ticks". // But the previous implementation of category axis do not consider the // `axisLabel.interval`, which cause that, for example, the `interval` is // `1`, then the ticks "name5", "name7", "name9" are displayed, where the // corresponding `idx` are `0`, `2`, `4`, but not `0`, `1`, `2`. So we keep // the definition here for back compatibility. if (categoryTickStart != null) { idx = tick.value - categoryTickStart; } return cb(getAxisRawValue(axis, tick), idx, tick.level != null ? { level: tick.level } : null); }; }(labelFormatter); } else { return function (tick) { return axis.scale.getLabel(tick); }; } } function getAxisRawValue(axis, tick) { // In category axis with data zoom, tick is not the original // index of axis.data. So tick should not be exposed to user // in category axis. return axis.type === 'category' ? axis.scale.getLabel(tick) : tick.value; } /** * @param axis * @return Be null/undefined if no labels. */ function estimateLabelUnionRect(axis) { var axisModel = axis.model; var scale = axis.scale; if (!axisModel.get(['axisLabel', 'show']) || scale.isBlank()) { return; } var realNumberScaleTicks; var tickCount; var categoryScaleExtent = scale.getExtent(); // Optimize for large category data, avoid call `getTicks()`. if (scale instanceof _scale_Ordinal_js__WEBPACK_IMPORTED_MODULE_1__["default"]) { tickCount = scale.count(); } else { realNumberScaleTicks = scale.getTicks(); tickCount = realNumberScaleTicks.length; } var axisLabelModel = axis.getLabelModel(); var labelFormatter = makeLabelFormatter(axis); var rect; var step = 1; // Simple optimization for large amount of labels if (tickCount > 40) { step = Math.ceil(tickCount / 40); } for (var i = 0; i < tickCount; i += step) { var tick = realNumberScaleTicks ? realNumberScaleTicks[i] : { value: categoryScaleExtent[0] + i }; var label = labelFormatter(tick, i); var unrotatedSingleRect = axisLabelModel.getTextRect(label); var singleRect = rotateTextRect(unrotatedSingleRect, axisLabelModel.get('rotate') || 0); rect ? rect.union(singleRect) : rect = singleRect; } return rect; } function rotateTextRect(textRect, rotate) { var rotateRadians = rotate * Math.PI / 180; var beforeWidth = textRect.width; var beforeHeight = textRect.height; var afterWidth = beforeWidth * Math.abs(Math.cos(rotateRadians)) + Math.abs(beforeHeight * Math.sin(rotateRadians)); var afterHeight = beforeWidth * Math.abs(Math.sin(rotateRadians)) + Math.abs(beforeHeight * Math.cos(rotateRadians)); var rotatedRect = new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_5__["default"](textRect.x, textRect.y, afterWidth, afterHeight); return rotatedRect; } /** * @param model axisLabelModel or axisTickModel * @return {number|String} Can be null|'auto'|number|function */ function getOptionCategoryInterval(model) { var interval = model.get('interval'); return interval == null ? 'auto' : interval; } /** * Set `categoryInterval` as 0 implicitly indicates that * show all labels regardless of overlap. * @param {Object} axis axisModel.axis */ function shouldShowAllLabels(axis) { return axis.type === 'category' && getOptionCategoryInterval(axis.getLabelModel()) === 0; } function getDataDimensionsOnAxis(data, axisDim) { // Remove duplicated dat dimensions caused by `getStackedDimension`. var dataDimMap = {}; // Currently `mapDimensionsAll` will contain stack result dimension ('__\0ecstackresult'). // PENDING: is it reasonable? Do we need to remove the original dim from "coord dim" since // there has been stacked result dim? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](data.mapDimensionsAll(axisDim), function (dataDim) { // For example, the extent of the original dimension // is [0.1, 0.5], the extent of the `stackResultDimension` // is [7, 9], the final extent should NOT include [0.1, 0.5], // because there is no graphic corresponding to [0.1, 0.5]. // See the case in `test/area-stack.html` `main1`, where area line // stack needs `yAxis` not start from 0. dataDimMap[Object(_data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_8__["getStackedDimension"])(data, dataDim)] = true; }); return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["keys"](dataDimMap); } function unionAxisExtentFromData(dataExtent, data, axisDim) { if (data) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](getDataDimensionsOnAxis(data, axisDim), function (dim) { var seriesExtent = data.getApproximateExtent(dim); seriesExtent[0] < dataExtent[0] && (dataExtent[0] = seriesExtent[0]); seriesExtent[1] > dataExtent[1] && (dataExtent[1] = seriesExtent[1]); }); } } /***/ }), /***/ "./node_modules/echarts/lib/coord/axisModelCommonMixin.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/coord/axisModelCommonMixin.js ***! \****************************************************************/ /*! exports provided: AxisModelCommonMixin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisModelCommonMixin", function() { return AxisModelCommonMixin; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // eslint-disable-next-line @typescript-eslint/no-unused-vars var AxisModelCommonMixin = /** @class */function () { function AxisModelCommonMixin() {} AxisModelCommonMixin.prototype.getNeedCrossZero = function () { var option = this.option; return !option.scale; }; /** * Should be implemented by each axis model if necessary. * @return coordinate system model */ AxisModelCommonMixin.prototype.getCoordSysModel = function () { return; }; return AxisModelCommonMixin; }(); /***/ }), /***/ "./node_modules/echarts/lib/coord/axisModelCreator.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/coord/axisModelCreator.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return axisModelCreator; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _axisDefault_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./axisDefault.js */ "./node_modules/echarts/lib/coord/axisDefault.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _data_OrdinalMeta_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../data/OrdinalMeta.js */ "./node_modules/echarts/lib/data/OrdinalMeta.js"); /* harmony import */ var _axisCommonTypes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./axisCommonTypes.js */ "./node_modules/echarts/lib/coord/axisCommonTypes.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Generate sub axis model class * @param axisName 'x' 'y' 'radius' 'angle' 'parallel' ... */ function axisModelCreator(registers, axisName, BaseAxisModelClass, extraDefaultOption) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["each"])(_axisCommonTypes_js__WEBPACK_IMPORTED_MODULE_4__["AXIS_TYPES"], function (v, axisType) { var defaultOption = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["merge"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["merge"])({}, _axisDefault_js__WEBPACK_IMPORTED_MODULE_1__["default"][axisType], true), extraDefaultOption, true); var AxisModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AxisModel, _super); function AxisModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = axisName + 'Axis.' + axisType; return _this; } AxisModel.prototype.mergeDefaultAndTheme = function (option, ecModel) { var layoutMode = Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_2__["fetchLayoutMode"])(this); var inputPositionParams = layoutMode ? Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_2__["getLayoutParams"])(option) : {}; var themeModel = ecModel.getTheme(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["merge"])(option, themeModel.get(axisType + 'Axis')); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["merge"])(option, this.getDefaultOption()); option.type = getAxisType(option); if (layoutMode) { Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_2__["mergeLayoutParam"])(option, inputPositionParams, layoutMode); } }; AxisModel.prototype.optionUpdated = function () { var thisOption = this.option; if (thisOption.type === 'category') { this.__ordinalMeta = _data_OrdinalMeta_js__WEBPACK_IMPORTED_MODULE_3__["default"].createByAxisModel(this); } }; /** * Should not be called before all of 'getInitailData' finished. * Because categories are collected during initializing data. */ AxisModel.prototype.getCategories = function (rawData) { var option = this.option; // FIXME // warning if called before all of 'getInitailData' finished. if (option.type === 'category') { if (rawData) { return option.data; } return this.__ordinalMeta.categories; } }; AxisModel.prototype.getOrdinalMeta = function () { return this.__ordinalMeta; }; AxisModel.type = axisName + 'Axis.' + axisType; AxisModel.defaultOption = defaultOption; return AxisModel; }(BaseAxisModelClass); registers.registerComponentModel(AxisModel); }); registers.registerSubTypeDefaulter(axisName + 'Axis', getAxisType); } function getAxisType(option) { // Default axis with data is category axis return option.type || (option.data ? 'category' : 'value'); } /***/ }), /***/ "./node_modules/echarts/lib/coord/axisTickLabelBuilder.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/coord/axisTickLabelBuilder.js ***! \****************************************************************/ /*! exports provided: createAxisLabels, createAxisTicks, calculateCategoryInterval */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createAxisLabels", function() { return createAxisLabels; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createAxisTicks", function() { return createAxisTicks; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateCategoryInterval", function() { return calculateCategoryInterval; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/contain/text.js */ "./node_modules/zrender/lib/contain/text.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _axisHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./axisHelper.js */ "./node_modules/echarts/lib/coord/axisHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_2__["makeInner"])(); function tickValuesToNumbers(axis, values) { var nums = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](values, function (val) { return axis.scale.parse(val); }); if (axis.type === 'time' && nums.length > 0) { // Time axis needs duplicate first/last tick (see TimeScale.getTicks()) // The first and last tick/label don't get drawn nums.sort(); nums.unshift(nums[0]); nums.push(nums[nums.length - 1]); } return nums; } function createAxisLabels(axis) { var custom = axis.getLabelModel().get('customValues'); if (custom) { var labelFormatter_1 = Object(_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["makeLabelFormatter"])(axis); var extent_1 = axis.scale.getExtent(); var tickNumbers = tickValuesToNumbers(axis, custom); var ticks = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["filter"](tickNumbers, function (val) { return val >= extent_1[0] && val <= extent_1[1]; }); return { labels: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](ticks, function (numval) { var tick = { value: numval }; return { formattedLabel: labelFormatter_1(tick), rawLabel: axis.scale.getLabel(tick), tickValue: numval }; }) }; } // Only ordinal scale support tick interval return axis.type === 'category' ? makeCategoryLabels(axis) : makeRealNumberLabels(axis); } /** * @param {module:echats/coord/Axis} axis * @param {module:echarts/model/Model} tickModel For example, can be axisTick, splitLine, splitArea. * @return {Object} { * ticks: Array. * tickCategoryInterval: number * } */ function createAxisTicks(axis, tickModel) { var custom = axis.getTickModel().get('customValues'); if (custom) { var extent_2 = axis.scale.getExtent(); var tickNumbers = tickValuesToNumbers(axis, custom); return { ticks: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["filter"](tickNumbers, function (val) { return val >= extent_2[0] && val <= extent_2[1]; }) }; } // Only ordinal scale support tick interval return axis.type === 'category' ? makeCategoryTicks(axis, tickModel) : { ticks: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](axis.scale.getTicks(), function (tick) { return tick.value; }) }; } function makeCategoryLabels(axis) { var labelModel = axis.getLabelModel(); var result = makeCategoryLabelsActually(axis, labelModel); return !labelModel.get('show') || axis.scale.isBlank() ? { labels: [], labelCategoryInterval: result.labelCategoryInterval } : result; } function makeCategoryLabelsActually(axis, labelModel) { var labelsCache = getListCache(axis, 'labels'); var optionLabelInterval = Object(_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["getOptionCategoryInterval"])(labelModel); var result = listCacheGet(labelsCache, optionLabelInterval); if (result) { return result; } var labels; var numericLabelInterval; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"](optionLabelInterval)) { labels = makeLabelsByCustomizedCategoryInterval(axis, optionLabelInterval); } else { numericLabelInterval = optionLabelInterval === 'auto' ? makeAutoCategoryInterval(axis) : optionLabelInterval; labels = makeLabelsByNumericCategoryInterval(axis, numericLabelInterval); } // Cache to avoid calling interval function repeatedly. return listCacheSet(labelsCache, optionLabelInterval, { labels: labels, labelCategoryInterval: numericLabelInterval }); } function makeCategoryTicks(axis, tickModel) { var ticksCache = getListCache(axis, 'ticks'); var optionTickInterval = Object(_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["getOptionCategoryInterval"])(tickModel); var result = listCacheGet(ticksCache, optionTickInterval); if (result) { return result; } var ticks; var tickCategoryInterval; // Optimize for the case that large category data and no label displayed, // we should not return all ticks. if (!tickModel.get('show') || axis.scale.isBlank()) { ticks = []; } if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"](optionTickInterval)) { ticks = makeLabelsByCustomizedCategoryInterval(axis, optionTickInterval, true); } // Always use label interval by default despite label show. Consider this // scenario, Use multiple grid with the xAxis sync, and only one xAxis shows // labels. `splitLine` and `axisTick` should be consistent in this case. else if (optionTickInterval === 'auto') { var labelsResult = makeCategoryLabelsActually(axis, axis.getLabelModel()); tickCategoryInterval = labelsResult.labelCategoryInterval; ticks = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](labelsResult.labels, function (labelItem) { return labelItem.tickValue; }); } else { tickCategoryInterval = optionTickInterval; ticks = makeLabelsByNumericCategoryInterval(axis, tickCategoryInterval, true); } // Cache to avoid calling interval function repeatedly. return listCacheSet(ticksCache, optionTickInterval, { ticks: ticks, tickCategoryInterval: tickCategoryInterval }); } function makeRealNumberLabels(axis) { var ticks = axis.scale.getTicks(); var labelFormatter = Object(_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["makeLabelFormatter"])(axis); return { labels: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](ticks, function (tick, idx) { return { level: tick.level, formattedLabel: labelFormatter(tick, idx), rawLabel: axis.scale.getLabel(tick), tickValue: tick.value }; }) }; } function getListCache(axis, prop) { // Because key can be a function, and cache size always is small, we use array cache. return inner(axis)[prop] || (inner(axis)[prop] = []); } function listCacheGet(cache, key) { for (var i = 0; i < cache.length; i++) { if (cache[i].key === key) { return cache[i].value; } } } function listCacheSet(cache, key, value) { cache.push({ key: key, value: value }); return value; } function makeAutoCategoryInterval(axis) { var result = inner(axis).autoInterval; return result != null ? result : inner(axis).autoInterval = axis.calculateCategoryInterval(); } /** * Calculate interval for category axis ticks and labels. * To get precise result, at least one of `getRotate` and `isHorizontal` * should be implemented in axis. */ function calculateCategoryInterval(axis) { var params = fetchAutoCategoryIntervalCalculationParams(axis); var labelFormatter = Object(_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["makeLabelFormatter"])(axis); var rotation = (params.axisRotate - params.labelRotate) / 180 * Math.PI; var ordinalScale = axis.scale; var ordinalExtent = ordinalScale.getExtent(); // Providing this method is for optimization: // avoid generating a long array by `getTicks` // in large category data case. var tickCount = ordinalScale.count(); if (ordinalExtent[1] - ordinalExtent[0] < 1) { return 0; } var step = 1; // Simple optimization. Empirical value: tick count should less than 40. if (tickCount > 40) { step = Math.max(1, Math.floor(tickCount / 40)); } var tickValue = ordinalExtent[0]; var unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue); var unitW = Math.abs(unitSpan * Math.cos(rotation)); var unitH = Math.abs(unitSpan * Math.sin(rotation)); var maxW = 0; var maxH = 0; // Caution: Performance sensitive for large category data. // Consider dataZoom, we should make appropriate step to avoid O(n) loop. for (; tickValue <= ordinalExtent[1]; tickValue += step) { var width = 0; var height = 0; // Not precise, do not consider align and vertical align // and each distance from axis line yet. var rect = zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_1__["getBoundingRect"](labelFormatter({ value: tickValue }), params.font, 'center', 'top'); // Magic number width = rect.width * 1.3; height = rect.height * 1.3; // Min size, void long loop. maxW = Math.max(maxW, width, 7); maxH = Math.max(maxH, height, 7); } var dw = maxW / unitW; var dh = maxH / unitH; // 0/0 is NaN, 1/0 is Infinity. isNaN(dw) && (dw = Infinity); isNaN(dh) && (dh = Infinity); var interval = Math.max(0, Math.floor(Math.min(dw, dh))); var cache = inner(axis.model); var axisExtent = axis.getExtent(); var lastAutoInterval = cache.lastAutoInterval; var lastTickCount = cache.lastTickCount; // Use cache to keep interval stable while moving zoom window, // otherwise the calculated interval might jitter when the zoom // window size is close to the interval-changing size. // For example, if all of the axis labels are `a, b, c, d, e, f, g`. // The jitter will cause that sometimes the displayed labels are // `a, d, g` (interval: 2) sometimes `a, c, e`(interval: 1). if (lastAutoInterval != null && lastTickCount != null && Math.abs(lastAutoInterval - interval) <= 1 && Math.abs(lastTickCount - tickCount) <= 1 // Always choose the bigger one, otherwise the critical // point is not the same when zooming in or zooming out. && lastAutoInterval > interval // If the axis change is caused by chart resize, the cache should not // be used. Otherwise some hidden labels might not be shown again. && cache.axisExtent0 === axisExtent[0] && cache.axisExtent1 === axisExtent[1]) { interval = lastAutoInterval; } // Only update cache if cache not used, otherwise the // changing of interval is too insensitive. else { cache.lastTickCount = tickCount; cache.lastAutoInterval = interval; cache.axisExtent0 = axisExtent[0]; cache.axisExtent1 = axisExtent[1]; } return interval; } function fetchAutoCategoryIntervalCalculationParams(axis) { var labelModel = axis.getLabelModel(); return { axisRotate: axis.getRotate ? axis.getRotate() : axis.isHorizontal && !axis.isHorizontal() ? 90 : 0, labelRotate: labelModel.get('rotate') || 0, font: labelModel.getFont() }; } function makeLabelsByNumericCategoryInterval(axis, categoryInterval, onlyTick) { var labelFormatter = Object(_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["makeLabelFormatter"])(axis); var ordinalScale = axis.scale; var ordinalExtent = ordinalScale.getExtent(); var labelModel = axis.getLabelModel(); var result = []; // TODO: axisType: ordinalTime, pick the tick from each month/day/year/... var step = Math.max((categoryInterval || 0) + 1, 1); var startTick = ordinalExtent[0]; var tickCount = ordinalScale.count(); // Calculate start tick based on zero if possible to keep label consistent // while zooming and moving while interval > 0. Otherwise the selection // of displayable ticks and symbols probably keep changing. // 3 is empirical value. if (startTick !== 0 && step > 1 && tickCount / step > 2) { startTick = Math.round(Math.ceil(startTick / step) * step); } // (1) Only add min max label here but leave overlap checking // to render stage, which also ensure the returned list // suitable for splitLine and splitArea rendering. // (2) Scales except category always contain min max label so // do not need to perform this process. var showAllLabel = Object(_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["shouldShowAllLabels"])(axis); var includeMinLabel = labelModel.get('showMinLabel') || showAllLabel; var includeMaxLabel = labelModel.get('showMaxLabel') || showAllLabel; if (includeMinLabel && startTick !== ordinalExtent[0]) { addItem(ordinalExtent[0]); } // Optimize: avoid generating large array by `ordinalScale.getTicks()`. var tickValue = startTick; for (; tickValue <= ordinalExtent[1]; tickValue += step) { addItem(tickValue); } if (includeMaxLabel && tickValue - step !== ordinalExtent[1]) { addItem(ordinalExtent[1]); } function addItem(tickValue) { var tickObj = { value: tickValue }; result.push(onlyTick ? tickValue : { formattedLabel: labelFormatter(tickObj), rawLabel: ordinalScale.getLabel(tickObj), tickValue: tickValue }); } return result; } function makeLabelsByCustomizedCategoryInterval(axis, categoryInterval, onlyTick) { var ordinalScale = axis.scale; var labelFormatter = Object(_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["makeLabelFormatter"])(axis); var result = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](ordinalScale.getTicks(), function (tick) { var rawLabel = ordinalScale.getLabel(tick); var tickValue = tick.value; if (categoryInterval(tick.value, rawLabel)) { result.push(onlyTick ? tickValue : { formattedLabel: labelFormatter(tick), rawLabel: rawLabel, tickValue: tickValue }); } }); return result; } /***/ }), /***/ "./node_modules/echarts/lib/coord/calendar/Calendar.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/coord/calendar/Calendar.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // (24*60*60*1000) var PROXIMATE_ONE_DAY = 86400000; var Calendar = /** @class */function () { function Calendar(calendarModel, ecModel, api) { this.type = 'calendar'; this.dimensions = Calendar.dimensions; // Required in createListFromData this.getDimensionsInfo = Calendar.getDimensionsInfo; this._model = calendarModel; } Calendar.getDimensionsInfo = function () { return [{ name: 'time', type: 'time' }, 'value']; }; Calendar.prototype.getRangeInfo = function () { return this._rangeInfo; }; Calendar.prototype.getModel = function () { return this._model; }; Calendar.prototype.getRect = function () { return this._rect; }; Calendar.prototype.getCellWidth = function () { return this._sw; }; Calendar.prototype.getCellHeight = function () { return this._sh; }; Calendar.prototype.getOrient = function () { return this._orient; }; /** * getFirstDayOfWeek * * @example * 0 : start at Sunday * 1 : start at Monday * * @return {number} */ Calendar.prototype.getFirstDayOfWeek = function () { return this._firstDayOfWeek; }; /** * get date info * } */ Calendar.prototype.getDateInfo = function (date) { date = _util_number_js__WEBPACK_IMPORTED_MODULE_2__["parseDate"](date); var y = date.getFullYear(); var m = date.getMonth() + 1; var mStr = m < 10 ? '0' + m : '' + m; var d = date.getDate(); var dStr = d < 10 ? '0' + d : '' + d; var day = date.getDay(); day = Math.abs((day + 7 - this.getFirstDayOfWeek()) % 7); return { y: y + '', m: mStr, d: dStr, day: day, time: date.getTime(), formatedDate: y + '-' + mStr + '-' + dStr, date: date }; }; Calendar.prototype.getNextNDay = function (date, n) { n = n || 0; if (n === 0) { return this.getDateInfo(date); } date = new Date(this.getDateInfo(date).time); date.setDate(date.getDate() + n); return this.getDateInfo(date); }; Calendar.prototype.update = function (ecModel, api) { this._firstDayOfWeek = +this._model.getModel('dayLabel').get('firstDay'); this._orient = this._model.get('orient'); this._lineWidth = this._model.getModel('itemStyle').getItemStyle().lineWidth || 0; this._rangeInfo = this._getRangeInfo(this._initRangeOption()); var weeks = this._rangeInfo.weeks || 1; var whNames = ['width', 'height']; var cellSize = this._model.getCellSize().slice(); var layoutParams = this._model.getBoxLayoutParams(); var cellNumbers = this._orient === 'horizontal' ? [weeks, 7] : [7, weeks]; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]([0, 1], function (idx) { if (cellSizeSpecified(cellSize, idx)) { layoutParams[whNames[idx]] = cellSize[idx] * cellNumbers[idx]; } }); var whGlobal = { width: api.getWidth(), height: api.getHeight() }; var calendarRect = this._rect = _util_layout_js__WEBPACK_IMPORTED_MODULE_1__["getLayoutRect"](layoutParams, whGlobal); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]([0, 1], function (idx) { if (!cellSizeSpecified(cellSize, idx)) { cellSize[idx] = calendarRect[whNames[idx]] / cellNumbers[idx]; } }); function cellSizeSpecified(cellSize, idx) { return cellSize[idx] != null && cellSize[idx] !== 'auto'; } // Has been calculated out number. this._sw = cellSize[0]; this._sh = cellSize[1]; }; /** * Convert a time data(time, value) item to (x, y) point. */ // TODO Clamp of calendar is not same with cartesian coordinate systems. // It will return NaN if data exceeds. Calendar.prototype.dataToPoint = function (data, clamp) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](data) && (data = data[0]); clamp == null && (clamp = true); var dayInfo = this.getDateInfo(data); var range = this._rangeInfo; var date = dayInfo.formatedDate; // if not in range return [NaN, NaN] if (clamp && !(dayInfo.time >= range.start.time && dayInfo.time < range.end.time + PROXIMATE_ONE_DAY)) { return [NaN, NaN]; } var week = dayInfo.day; var nthWeek = this._getRangeInfo([range.start.time, date]).nthWeek; if (this._orient === 'vertical') { return [this._rect.x + week * this._sw + this._sw / 2, this._rect.y + nthWeek * this._sh + this._sh / 2]; } return [this._rect.x + nthWeek * this._sw + this._sw / 2, this._rect.y + week * this._sh + this._sh / 2]; }; /** * Convert a (x, y) point to time data */ Calendar.prototype.pointToData = function (point) { var date = this.pointToDate(point); return date && date.time; }; /** * Convert a time date item to (x, y) four point. */ Calendar.prototype.dataToRect = function (data, clamp) { var point = this.dataToPoint(data, clamp); return { contentShape: { x: point[0] - (this._sw - this._lineWidth) / 2, y: point[1] - (this._sh - this._lineWidth) / 2, width: this._sw - this._lineWidth, height: this._sh - this._lineWidth }, center: point, tl: [point[0] - this._sw / 2, point[1] - this._sh / 2], tr: [point[0] + this._sw / 2, point[1] - this._sh / 2], br: [point[0] + this._sw / 2, point[1] + this._sh / 2], bl: [point[0] - this._sw / 2, point[1] + this._sh / 2] }; }; /** * Convert a (x, y) point to time date * * @param {Array} point point * @return {Object} date */ Calendar.prototype.pointToDate = function (point) { var nthX = Math.floor((point[0] - this._rect.x) / this._sw) + 1; var nthY = Math.floor((point[1] - this._rect.y) / this._sh) + 1; var range = this._rangeInfo.range; if (this._orient === 'vertical') { return this._getDateByWeeksAndDay(nthY, nthX - 1, range); } return this._getDateByWeeksAndDay(nthX, nthY - 1, range); }; Calendar.prototype.convertToPixel = function (ecModel, finder, value) { var coordSys = getCoordSys(finder); return coordSys === this ? coordSys.dataToPoint(value) : null; }; Calendar.prototype.convertFromPixel = function (ecModel, finder, pixel) { var coordSys = getCoordSys(finder); return coordSys === this ? coordSys.pointToData(pixel) : null; }; Calendar.prototype.containPoint = function (point) { console.warn('Not implemented.'); return false; }; /** * initRange * Normalize to an [start, end] array */ Calendar.prototype._initRangeOption = function () { var range = this._model.get('range'); var normalizedRange; // Convert [1990] to 1990 if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](range) && range.length === 1) { range = range[0]; } if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](range)) { var rangeStr = range.toString(); // One year. if (/^\d{4}$/.test(rangeStr)) { normalizedRange = [rangeStr + '-01-01', rangeStr + '-12-31']; } // One month if (/^\d{4}[\/|-]\d{1,2}$/.test(rangeStr)) { var start = this.getDateInfo(rangeStr); var firstDay = start.date; firstDay.setMonth(firstDay.getMonth() + 1); var end = this.getNextNDay(firstDay, -1); normalizedRange = [start.formatedDate, end.formatedDate]; } // One day if (/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(rangeStr)) { normalizedRange = [rangeStr, rangeStr]; } } else { normalizedRange = range; } if (!normalizedRange) { if (true) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["logError"]('Invalid date range.'); } // Not handling it. return range; } var tmp = this._getRangeInfo(normalizedRange); if (tmp.start.time > tmp.end.time) { normalizedRange.reverse(); } return normalizedRange; }; /** * range info * * @private * @param {Array} range range ['2017-01-01', '2017-07-08'] * If range[0] > range[1], they will not be reversed. * @return {Object} obj */ Calendar.prototype._getRangeInfo = function (range) { var parsedRange = [this.getDateInfo(range[0]), this.getDateInfo(range[1])]; var reversed; if (parsedRange[0].time > parsedRange[1].time) { reversed = true; parsedRange.reverse(); } var allDay = Math.floor(parsedRange[1].time / PROXIMATE_ONE_DAY) - Math.floor(parsedRange[0].time / PROXIMATE_ONE_DAY) + 1; // Consider case1 (#11677 #10430): // Set the system timezone as "UK", set the range to `['2016-07-01', '2016-12-31']` // Consider case2: // Firstly set system timezone as "Time Zone: America/Toronto", // ``` // let first = new Date(1478412000000 - 3600 * 1000 * 2.5); // let second = new Date(1478412000000); // let allDays = Math.floor(second / ONE_DAY) - Math.floor(first / ONE_DAY) + 1; // ``` // will get wrong result because of DST. So we should fix it. var date = new Date(parsedRange[0].time); var startDateNum = date.getDate(); var endDateNum = parsedRange[1].date.getDate(); date.setDate(startDateNum + allDay - 1); // The bias can not over a month, so just compare date. var dateNum = date.getDate(); if (dateNum !== endDateNum) { var sign = date.getTime() - parsedRange[1].time > 0 ? 1 : -1; while ((dateNum = date.getDate()) !== endDateNum && (date.getTime() - parsedRange[1].time) * sign > 0) { allDay -= sign; date.setDate(dateNum - sign); } } var weeks = Math.floor((allDay + parsedRange[0].day + 6) / 7); var nthWeek = reversed ? -weeks + 1 : weeks - 1; reversed && parsedRange.reverse(); return { range: [parsedRange[0].formatedDate, parsedRange[1].formatedDate], start: parsedRange[0], end: parsedRange[1], allDay: allDay, weeks: weeks, // From 0. nthWeek: nthWeek, fweek: parsedRange[0].day, lweek: parsedRange[1].day }; }; /** * get date by nthWeeks and week day in range * * @private * @param {number} nthWeek the week * @param {number} day the week day * @param {Array} range [d1, d2] * @return {Object} */ Calendar.prototype._getDateByWeeksAndDay = function (nthWeek, day, range) { var rangeInfo = this._getRangeInfo(range); if (nthWeek > rangeInfo.weeks || nthWeek === 0 && day < rangeInfo.fweek || nthWeek === rangeInfo.weeks && day > rangeInfo.lweek) { return null; } var nthDay = (nthWeek - 1) * 7 - rangeInfo.fweek + day; var date = new Date(rangeInfo.start.time); date.setDate(+rangeInfo.start.d + nthDay); return this.getDateInfo(date); }; Calendar.create = function (ecModel, api) { var calendarList = []; ecModel.eachComponent('calendar', function (calendarModel) { var calendar = new Calendar(calendarModel, ecModel, api); calendarList.push(calendar); calendarModel.coordinateSystem = calendar; }); ecModel.eachSeries(function (calendarSeries) { if (calendarSeries.get('coordinateSystem') === 'calendar') { // Inject coordinate system calendarSeries.coordinateSystem = calendarList[calendarSeries.get('calendarIndex') || 0]; } }); return calendarList; }; Calendar.dimensions = ['time', 'value']; return Calendar; }(); function getCoordSys(finder) { var calendarModel = finder.calendarModel; var seriesModel = finder.seriesModel; var coordSys = calendarModel ? calendarModel.coordinateSystem : seriesModel ? seriesModel.coordinateSystem : null; return coordSys; } /* harmony default export */ __webpack_exports__["default"] = (Calendar); /***/ }), /***/ "./node_modules/echarts/lib/coord/calendar/CalendarModel.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/coord/calendar/CalendarModel.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var CalendarModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CalendarModel, _super); function CalendarModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = CalendarModel.type; return _this; } /** * @override */ CalendarModel.prototype.init = function (option, parentModel, ecModel) { var inputPositionParams = Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_3__["getLayoutParams"])(option); _super.prototype.init.apply(this, arguments); mergeAndNormalizeLayoutParams(option, inputPositionParams); }; /** * @override */ CalendarModel.prototype.mergeOption = function (option) { _super.prototype.mergeOption.apply(this, arguments); mergeAndNormalizeLayoutParams(this.option, option); }; CalendarModel.prototype.getCellSize = function () { // Has been normalized return this.option.cellSize; }; CalendarModel.type = 'calendar'; CalendarModel.defaultOption = { // zlevel: 0, z: 2, left: 80, top: 60, cellSize: 20, // horizontal vertical orient: 'horizontal', // month separate line style splitLine: { show: true, lineStyle: { color: '#000', width: 1, type: 'solid' } }, // rect style temporarily unused emphasis itemStyle: { color: '#fff', borderWidth: 1, borderColor: '#ccc' }, // week text style dayLabel: { show: true, firstDay: 0, // start end position: 'start', margin: '50%', color: '#000' }, // month text style monthLabel: { show: true, // start end position: 'start', margin: 5, // center or left align: 'center', formatter: null, color: '#000' }, // year text style yearLabel: { show: true, // top bottom left right position: null, margin: 30, formatter: null, color: '#ccc', fontFamily: 'sans-serif', fontWeight: 'bolder', fontSize: 20 } }; return CalendarModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_2__["default"]); function mergeAndNormalizeLayoutParams(target, raw) { // Normalize cellSize var cellSize = target.cellSize; var cellSizeArr; if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"](cellSize)) { cellSizeArr = target.cellSize = [cellSize, cellSize]; } else { cellSizeArr = cellSize; } if (cellSizeArr.length === 1) { cellSizeArr[1] = cellSizeArr[0]; } var ignoreSize = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"]([0, 1], function (hvIdx) { // If user have set `width` or both `left` and `right`, cellSizeArr // will be automatically set to 'auto', otherwise the default // setting of cellSizeArr will make `width` setting not work. if (Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_3__["sizeCalculable"])(raw, hvIdx)) { cellSizeArr[hvIdx] = 'auto'; } return cellSizeArr[hvIdx] != null && cellSizeArr[hvIdx] !== 'auto'; }); Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_3__["mergeLayoutParam"])(target, raw, { type: 'box', ignoreSize: ignoreSize }); } /* harmony default export */ __webpack_exports__["default"] = (CalendarModel); /***/ }), /***/ "./node_modules/echarts/lib/coord/calendar/prepareCustom.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/coord/calendar/prepareCustom.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return calendarPrepareCustom; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function calendarPrepareCustom(coordSys) { var rect = coordSys.getRect(); var rangeInfo = coordSys.getRangeInfo(); return { coordSys: { type: 'calendar', x: rect.x, y: rect.y, width: rect.width, height: rect.height, cellWidth: coordSys.getCellWidth(), cellHeight: coordSys.getCellHeight(), rangeInfo: { start: rangeInfo.start, end: rangeInfo.end, weeks: rangeInfo.weeks, dayCount: rangeInfo.allDay } }, api: { coord: function (data, clamp) { return coordSys.dataToPoint(data, clamp); } } }; } /***/ }), /***/ "./node_modules/echarts/lib/coord/cartesian/Axis2D.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/coord/cartesian/Axis2D.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Axis_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Axis.js */ "./node_modules/echarts/lib/coord/Axis.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var Axis2D = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Axis2D, _super); function Axis2D(dim, scale, coordExtent, axisType, position) { var _this = _super.call(this, dim, scale, coordExtent) || this; /** * Index of axis, can be used as key * Injected outside. */ _this.index = 0; _this.type = axisType || 'value'; _this.position = position || 'bottom'; return _this; } Axis2D.prototype.isHorizontal = function () { var position = this.position; return position === 'top' || position === 'bottom'; }; /** * Each item cooresponds to this.getExtent(), which * means globalExtent[0] may greater than globalExtent[1], * unless `asc` is input. * * @param {boolean} [asc] * @return {Array.} */ Axis2D.prototype.getGlobalExtent = function (asc) { var ret = this.getExtent(); ret[0] = this.toGlobalCoord(ret[0]); ret[1] = this.toGlobalCoord(ret[1]); asc && ret[0] > ret[1] && ret.reverse(); return ret; }; Axis2D.prototype.pointToData = function (point, clamp) { return this.coordToData(this.toLocalCoord(point[this.dim === 'x' ? 0 : 1]), clamp); }; /** * Set ordinalSortInfo * @param info new OrdinalSortInfo */ Axis2D.prototype.setCategorySortInfo = function (info) { if (this.type !== 'category') { return false; } this.model.option.categorySortInfo = info; this.scale.setSortInfo(info); }; return Axis2D; }(_Axis_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (Axis2D); /***/ }), /***/ "./node_modules/echarts/lib/coord/cartesian/AxisModel.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/coord/cartesian/AxisModel.js ***! \***************************************************************/ /*! exports provided: CartesianAxisModel, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CartesianAxisModel", function() { return CartesianAxisModel; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _axisModelCommonMixin_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../axisModelCommonMixin.js */ "./node_modules/echarts/lib/coord/axisModelCommonMixin.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var CartesianAxisModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CartesianAxisModel, _super); function CartesianAxisModel() { return _super !== null && _super.apply(this, arguments) || this; } CartesianAxisModel.prototype.getCoordSysModel = function () { return this.getReferringComponents('grid', _util_model_js__WEBPACK_IMPORTED_MODULE_4__["SINGLE_REFERRING"]).models[0]; }; CartesianAxisModel.type = 'cartesian2dAxis'; return CartesianAxisModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_2__["default"]); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["mixin"](CartesianAxisModel, _axisModelCommonMixin_js__WEBPACK_IMPORTED_MODULE_3__["AxisModelCommonMixin"]); /* harmony default export */ __webpack_exports__["default"] = (CartesianAxisModel); /***/ }), /***/ "./node_modules/echarts/lib/coord/cartesian/Cartesian.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/coord/cartesian/Cartesian.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var Cartesian = /** @class */function () { function Cartesian(name) { this.type = 'cartesian'; this._dimList = []; this._axes = {}; this.name = name || ''; } Cartesian.prototype.getAxis = function (dim) { return this._axes[dim]; }; Cartesian.prototype.getAxes = function () { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](this._dimList, function (dim) { return this._axes[dim]; }, this); }; Cartesian.prototype.getAxesByScale = function (scaleType) { scaleType = scaleType.toLowerCase(); return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["filter"](this.getAxes(), function (axis) { return axis.scale.type === scaleType; }); }; Cartesian.prototype.addAxis = function (axis) { var dim = axis.dim; this._axes[dim] = axis; this._dimList.push(dim); }; return Cartesian; }(); ; /* harmony default export */ __webpack_exports__["default"] = (Cartesian); /***/ }), /***/ "./node_modules/echarts/lib/coord/cartesian/Cartesian2D.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/coord/cartesian/Cartesian2D.js ***! \*****************************************************************/ /*! exports provided: cartesian2DDimensions, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cartesian2DDimensions", function() { return cartesian2DDimensions; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var _Cartesian_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Cartesian.js */ "./node_modules/echarts/lib/coord/cartesian/Cartesian.js"); /* harmony import */ var zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/matrix.js */ "./node_modules/zrender/lib/core/matrix.js"); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var cartesian2DDimensions = ['x', 'y']; function canCalculateAffineTransform(scale) { return scale.type === 'interval' || scale.type === 'time'; } var Cartesian2D = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Cartesian2D, _super); function Cartesian2D() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = 'cartesian2d'; _this.dimensions = cartesian2DDimensions; return _this; } /** * Calculate an affine transform matrix if two axes are time or value. * It's mainly for accelartion on the large time series data. */ Cartesian2D.prototype.calcAffineTransform = function () { this._transform = this._invTransform = null; var xAxisScale = this.getAxis('x').scale; var yAxisScale = this.getAxis('y').scale; if (!canCalculateAffineTransform(xAxisScale) || !canCalculateAffineTransform(yAxisScale)) { return; } var xScaleExtent = xAxisScale.getExtent(); var yScaleExtent = yAxisScale.getExtent(); var start = this.dataToPoint([xScaleExtent[0], yScaleExtent[0]]); var end = this.dataToPoint([xScaleExtent[1], yScaleExtent[1]]); var xScaleSpan = xScaleExtent[1] - xScaleExtent[0]; var yScaleSpan = yScaleExtent[1] - yScaleExtent[0]; if (!xScaleSpan || !yScaleSpan) { return; } // Accelerate data to point calculation on the special large time series data. var scaleX = (end[0] - start[0]) / xScaleSpan; var scaleY = (end[1] - start[1]) / yScaleSpan; var translateX = start[0] - xScaleExtent[0] * scaleX; var translateY = start[1] - yScaleExtent[0] * scaleY; var m = this._transform = [scaleX, 0, 0, scaleY, translateX, translateY]; this._invTransform = Object(zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_3__["invert"])([], m); }; /** * Base axis will be used on stacking. */ Cartesian2D.prototype.getBaseAxis = function () { return this.getAxesByScale('ordinal')[0] || this.getAxesByScale('time')[0] || this.getAxis('x'); }; Cartesian2D.prototype.containPoint = function (point) { var axisX = this.getAxis('x'); var axisY = this.getAxis('y'); return axisX.contain(axisX.toLocalCoord(point[0])) && axisY.contain(axisY.toLocalCoord(point[1])); }; Cartesian2D.prototype.containData = function (data) { return this.getAxis('x').containData(data[0]) && this.getAxis('y').containData(data[1]); }; Cartesian2D.prototype.containZone = function (data1, data2) { var zoneDiag1 = this.dataToPoint(data1); var zoneDiag2 = this.dataToPoint(data2); var area = this.getArea(); var zone = new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__["default"](zoneDiag1[0], zoneDiag1[1], zoneDiag2[0] - zoneDiag1[0], zoneDiag2[1] - zoneDiag1[1]); return area.intersect(zone); }; Cartesian2D.prototype.dataToPoint = function (data, clamp, out) { out = out || []; var xVal = data[0]; var yVal = data[1]; // Fast path if (this._transform // It's supported that if data is like `[Inifity, 123]`, where only Y pixel calculated. && xVal != null && isFinite(xVal) && yVal != null && isFinite(yVal)) { return Object(zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_4__["applyTransform"])(out, data, this._transform); } var xAxis = this.getAxis('x'); var yAxis = this.getAxis('y'); out[0] = xAxis.toGlobalCoord(xAxis.dataToCoord(xVal, clamp)); out[1] = yAxis.toGlobalCoord(yAxis.dataToCoord(yVal, clamp)); return out; }; Cartesian2D.prototype.clampData = function (data, out) { var xScale = this.getAxis('x').scale; var yScale = this.getAxis('y').scale; var xAxisExtent = xScale.getExtent(); var yAxisExtent = yScale.getExtent(); var x = xScale.parse(data[0]); var y = yScale.parse(data[1]); out = out || []; out[0] = Math.min(Math.max(Math.min(xAxisExtent[0], xAxisExtent[1]), x), Math.max(xAxisExtent[0], xAxisExtent[1])); out[1] = Math.min(Math.max(Math.min(yAxisExtent[0], yAxisExtent[1]), y), Math.max(yAxisExtent[0], yAxisExtent[1])); return out; }; Cartesian2D.prototype.pointToData = function (point, clamp) { var out = []; if (this._invTransform) { return Object(zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_4__["applyTransform"])(out, point, this._invTransform); } var xAxis = this.getAxis('x'); var yAxis = this.getAxis('y'); out[0] = xAxis.coordToData(xAxis.toLocalCoord(point[0]), clamp); out[1] = yAxis.coordToData(yAxis.toLocalCoord(point[1]), clamp); return out; }; Cartesian2D.prototype.getOtherAxis = function (axis) { return this.getAxis(axis.dim === 'x' ? 'y' : 'x'); }; /** * Get rect area of cartesian. * Area will have a contain function to determine if a point is in the coordinate system. */ Cartesian2D.prototype.getArea = function (tolerance) { tolerance = tolerance || 0; var xExtent = this.getAxis('x').getGlobalExtent(); var yExtent = this.getAxis('y').getGlobalExtent(); var x = Math.min(xExtent[0], xExtent[1]) - tolerance; var y = Math.min(yExtent[0], yExtent[1]) - tolerance; var width = Math.max(xExtent[0], xExtent[1]) - x + tolerance; var height = Math.max(yExtent[0], yExtent[1]) - y + tolerance; return new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__["default"](x, y, width, height); }; return Cartesian2D; }(_Cartesian_js__WEBPACK_IMPORTED_MODULE_2__["default"]); ; /* harmony default export */ __webpack_exports__["default"] = (Cartesian2D); /***/ }), /***/ "./node_modules/echarts/lib/coord/cartesian/Grid.js": /*!**********************************************************!*\ !*** ./node_modules/echarts/lib/coord/cartesian/Grid.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../coord/axisHelper.js */ "./node_modules/echarts/lib/coord/axisHelper.js"); /* harmony import */ var _Cartesian2D_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Cartesian2D.js */ "./node_modules/echarts/lib/coord/cartesian/Cartesian2D.js"); /* harmony import */ var _Axis2D_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Axis2D.js */ "./node_modules/echarts/lib/coord/cartesian/Axis2D.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _cartesianAxisHelper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cartesianAxisHelper.js */ "./node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js"); /* harmony import */ var _scale_helper_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../scale/helper.js */ "./node_modules/echarts/lib/scale/helper.js"); /* harmony import */ var _axisAlignTicks_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../axisAlignTicks.js */ "./node_modules/echarts/lib/coord/axisAlignTicks.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Grid is a region which contains at most 4 cartesian systems * * TODO Default cartesian */ var Grid = /** @class */function () { function Grid(gridModel, ecModel, api) { // FIXME:TS where used (different from registered type 'cartesian2d')? this.type = 'grid'; this._coordsMap = {}; this._coordsList = []; this._axesMap = {}; this._axesList = []; this.axisPointerEnabled = true; this.dimensions = _Cartesian2D_js__WEBPACK_IMPORTED_MODULE_3__["cartesian2DDimensions"]; this._initCartesian(gridModel, ecModel, api); this.model = gridModel; } Grid.prototype.getRect = function () { return this._rect; }; Grid.prototype.update = function (ecModel, api) { var axesMap = this._axesMap; this._updateScale(ecModel, this.model); function updateAxisTicks(axes) { var alignTo; // Axis is added in order of axisIndex. var axesIndices = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["keys"])(axes); var len = axesIndices.length; if (!len) { return; } var axisNeedsAlign = []; // Process once and calculate the ticks for those don't use alignTicks. for (var i = len - 1; i >= 0; i--) { var idx = +axesIndices[i]; // Convert to number. var axis = axes[idx]; var model = axis.model; var scale = axis.scale; if ( // Only value and log axis without interval support alignTicks. Object(_scale_helper_js__WEBPACK_IMPORTED_MODULE_7__["isIntervalOrLogScale"])(scale) && model.get('alignTicks') && model.get('interval') == null) { axisNeedsAlign.push(axis); } else { Object(_coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_2__["niceScaleExtent"])(scale, model); if (Object(_scale_helper_js__WEBPACK_IMPORTED_MODULE_7__["isIntervalOrLogScale"])(scale)) { // Can only align to interval or log axis. alignTo = axis; } } } ; // All axes has set alignTicks. Pick the first one. // PENDING. Should we find the axis that both set interval, min, max and align to this one? if (axisNeedsAlign.length) { if (!alignTo) { alignTo = axisNeedsAlign.pop(); Object(_coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_2__["niceScaleExtent"])(alignTo.scale, alignTo.model); } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(axisNeedsAlign, function (axis) { Object(_axisAlignTicks_js__WEBPACK_IMPORTED_MODULE_8__["alignScaleTicks"])(axis.scale, axis.model, alignTo.scale); }); } } updateAxisTicks(axesMap.x); updateAxisTicks(axesMap.y); // Key: axisDim_axisIndex, value: boolean, whether onZero target. var onZeroRecords = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(axesMap.x, function (xAxis) { fixAxisOnZero(axesMap, 'y', xAxis, onZeroRecords); }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(axesMap.y, function (yAxis) { fixAxisOnZero(axesMap, 'x', yAxis, onZeroRecords); }); // Resize again if containLabel is enabled // FIXME It may cause getting wrong grid size in data processing stage this.resize(this.model, api); }; /** * Resize the grid */ Grid.prototype.resize = function (gridModel, api, ignoreContainLabel) { var boxLayoutParams = gridModel.getBoxLayoutParams(); var isContainLabel = !ignoreContainLabel && gridModel.get('containLabel'); var gridRect = Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_1__["getLayoutRect"])(boxLayoutParams, { width: api.getWidth(), height: api.getHeight() }); this._rect = gridRect; var axesList = this._axesList; adjustAxes(); // Minus label size if (isContainLabel) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(axesList, function (axis) { if (!axis.model.get(['axisLabel', 'inside'])) { var labelUnionRect = Object(_coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_2__["estimateLabelUnionRect"])(axis); if (labelUnionRect) { var dim = axis.isHorizontal() ? 'height' : 'width'; var margin = axis.model.get(['axisLabel', 'margin']); gridRect[dim] -= labelUnionRect[dim] + margin; if (axis.position === 'top') { gridRect.y += labelUnionRect.height + margin; } else if (axis.position === 'left') { gridRect.x += labelUnionRect.width + margin; } } } }); adjustAxes(); } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(this._coordsList, function (coord) { // Calculate affine matrix to accelerate the data to point transform. // If all the axes scales are time or value. coord.calcAffineTransform(); }); function adjustAxes() { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(axesList, function (axis) { var isHorizontal = axis.isHorizontal(); var extent = isHorizontal ? [0, gridRect.width] : [0, gridRect.height]; var idx = axis.inverse ? 1 : 0; axis.setExtent(extent[idx], extent[1 - idx]); updateAxisTransform(axis, isHorizontal ? gridRect.x : gridRect.y); }); } }; Grid.prototype.getAxis = function (dim, axisIndex) { var axesMapOnDim = this._axesMap[dim]; if (axesMapOnDim != null) { return axesMapOnDim[axisIndex || 0]; } }; Grid.prototype.getAxes = function () { return this._axesList.slice(); }; Grid.prototype.getCartesian = function (xAxisIndex, yAxisIndex) { if (xAxisIndex != null && yAxisIndex != null) { var key = 'x' + xAxisIndex + 'y' + yAxisIndex; return this._coordsMap[key]; } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(xAxisIndex)) { yAxisIndex = xAxisIndex.yAxisIndex; xAxisIndex = xAxisIndex.xAxisIndex; } for (var i = 0, coordList = this._coordsList; i < coordList.length; i++) { if (coordList[i].getAxis('x').index === xAxisIndex || coordList[i].getAxis('y').index === yAxisIndex) { return coordList[i]; } } }; Grid.prototype.getCartesians = function () { return this._coordsList.slice(); }; /** * @implements */ Grid.prototype.convertToPixel = function (ecModel, finder, value) { var target = this._findConvertTarget(finder); return target.cartesian ? target.cartesian.dataToPoint(value) : target.axis ? target.axis.toGlobalCoord(target.axis.dataToCoord(value)) : null; }; /** * @implements */ Grid.prototype.convertFromPixel = function (ecModel, finder, value) { var target = this._findConvertTarget(finder); return target.cartesian ? target.cartesian.pointToData(value) : target.axis ? target.axis.coordToData(target.axis.toLocalCoord(value)) : null; }; Grid.prototype._findConvertTarget = function (finder) { var seriesModel = finder.seriesModel; var xAxisModel = finder.xAxisModel || seriesModel && seriesModel.getReferringComponents('xAxis', _util_model_js__WEBPACK_IMPORTED_MODULE_5__["SINGLE_REFERRING"]).models[0]; var yAxisModel = finder.yAxisModel || seriesModel && seriesModel.getReferringComponents('yAxis', _util_model_js__WEBPACK_IMPORTED_MODULE_5__["SINGLE_REFERRING"]).models[0]; var gridModel = finder.gridModel; var coordsList = this._coordsList; var cartesian; var axis; if (seriesModel) { cartesian = seriesModel.coordinateSystem; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"])(coordsList, cartesian) < 0 && (cartesian = null); } else if (xAxisModel && yAxisModel) { cartesian = this.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex); } else if (xAxisModel) { axis = this.getAxis('x', xAxisModel.componentIndex); } else if (yAxisModel) { axis = this.getAxis('y', yAxisModel.componentIndex); } // Lowest priority. else if (gridModel) { var grid = gridModel.coordinateSystem; if (grid === this) { cartesian = this._coordsList[0]; } } return { cartesian: cartesian, axis: axis }; }; /** * @implements */ Grid.prototype.containPoint = function (point) { var coord = this._coordsList[0]; if (coord) { return coord.containPoint(point); } }; /** * Initialize cartesian coordinate systems */ Grid.prototype._initCartesian = function (gridModel, ecModel, api) { var _this = this; var grid = this; var axisPositionUsed = { left: false, right: false, top: false, bottom: false }; var axesMap = { x: {}, y: {} }; var axesCount = { x: 0, y: 0 }; // Create axis ecModel.eachComponent('xAxis', createAxisCreator('x'), this); ecModel.eachComponent('yAxis', createAxisCreator('y'), this); if (!axesCount.x || !axesCount.y) { // Roll back when there no either x or y axis this._axesMap = {}; this._axesList = []; return; } this._axesMap = axesMap; // Create cartesian2d Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(axesMap.x, function (xAxis, xAxisIndex) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(axesMap.y, function (yAxis, yAxisIndex) { var key = 'x' + xAxisIndex + 'y' + yAxisIndex; var cartesian = new _Cartesian2D_js__WEBPACK_IMPORTED_MODULE_3__["default"](key); cartesian.master = _this; cartesian.model = gridModel; _this._coordsMap[key] = cartesian; _this._coordsList.push(cartesian); cartesian.addAxis(xAxis); cartesian.addAxis(yAxis); }); }); function createAxisCreator(dimName) { return function (axisModel, idx) { if (!isAxisUsedInTheGrid(axisModel, gridModel)) { return; } var axisPosition = axisModel.get('position'); if (dimName === 'x') { // Fix position if (axisPosition !== 'top' && axisPosition !== 'bottom') { // Default bottom of X axisPosition = axisPositionUsed.bottom ? 'top' : 'bottom'; } } else { // Fix position if (axisPosition !== 'left' && axisPosition !== 'right') { // Default left of Y axisPosition = axisPositionUsed.left ? 'right' : 'left'; } } axisPositionUsed[axisPosition] = true; var axis = new _Axis2D_js__WEBPACK_IMPORTED_MODULE_4__["default"](dimName, Object(_coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_2__["createScaleByModel"])(axisModel), [0, 0], axisModel.get('type'), axisPosition); var isCategory = axis.type === 'category'; axis.onBand = isCategory && axisModel.get('boundaryGap'); axis.inverse = axisModel.get('inverse'); // Inject axis into axisModel axisModel.axis = axis; // Inject axisModel into axis axis.model = axisModel; // Inject grid info axis axis.grid = grid; // Index of axis, can be used as key axis.index = idx; grid._axesList.push(axis); axesMap[dimName][idx] = axis; axesCount[dimName]++; }; } }; /** * Update cartesian properties from series. */ Grid.prototype._updateScale = function (ecModel, gridModel) { // Reset scale Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(this._axesList, function (axis) { axis.scale.setExtent(Infinity, -Infinity); if (axis.type === 'category') { var categorySortInfo = axis.model.get('categorySortInfo'); axis.scale.setSortInfo(categorySortInfo); } }); ecModel.eachSeries(function (seriesModel) { if (Object(_cartesianAxisHelper_js__WEBPACK_IMPORTED_MODULE_6__["isCartesian2DSeries"])(seriesModel)) { var axesModelMap = Object(_cartesianAxisHelper_js__WEBPACK_IMPORTED_MODULE_6__["findAxisModels"])(seriesModel); var xAxisModel = axesModelMap.xAxisModel; var yAxisModel = axesModelMap.yAxisModel; if (!isAxisUsedInTheGrid(xAxisModel, gridModel) || !isAxisUsedInTheGrid(yAxisModel, gridModel)) { return; } var cartesian = this.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex); var data = seriesModel.getData(); var xAxis = cartesian.getAxis('x'); var yAxis = cartesian.getAxis('y'); unionExtent(data, xAxis); unionExtent(data, yAxis); } }, this); function unionExtent(data, axis) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(Object(_coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_2__["getDataDimensionsOnAxis"])(data, axis.dim), function (dim) { axis.scale.unionExtentFromData(data, dim); }); } }; /** * @param dim 'x' or 'y' or 'auto' or null/undefined */ Grid.prototype.getTooltipAxes = function (dim) { var baseAxes = []; var otherAxes = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(this.getCartesians(), function (cartesian) { var baseAxis = dim != null && dim !== 'auto' ? cartesian.getAxis(dim) : cartesian.getBaseAxis(); var otherAxis = cartesian.getOtherAxis(baseAxis); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"])(baseAxes, baseAxis) < 0 && baseAxes.push(baseAxis); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"])(otherAxes, otherAxis) < 0 && otherAxes.push(otherAxis); }); return { baseAxes: baseAxes, otherAxes: otherAxes }; }; Grid.create = function (ecModel, api) { var grids = []; ecModel.eachComponent('grid', function (gridModel, idx) { var grid = new Grid(gridModel, ecModel, api); grid.name = 'grid_' + idx; // dataSampling requires axis extent, so resize // should be performed in create stage. grid.resize(gridModel, api, true); gridModel.coordinateSystem = grid; grids.push(grid); }); // Inject the coordinateSystems into seriesModel ecModel.eachSeries(function (seriesModel) { if (!Object(_cartesianAxisHelper_js__WEBPACK_IMPORTED_MODULE_6__["isCartesian2DSeries"])(seriesModel)) { return; } var axesModelMap = Object(_cartesianAxisHelper_js__WEBPACK_IMPORTED_MODULE_6__["findAxisModels"])(seriesModel); var xAxisModel = axesModelMap.xAxisModel; var yAxisModel = axesModelMap.yAxisModel; var gridModel = xAxisModel.getCoordSysModel(); if (true) { if (!gridModel) { throw new Error('Grid "' + Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve3"])(xAxisModel.get('gridIndex'), xAxisModel.get('gridId'), 0) + '" not found'); } if (xAxisModel.getCoordSysModel() !== yAxisModel.getCoordSysModel()) { throw new Error('xAxis and yAxis must use the same grid'); } } var grid = gridModel.coordinateSystem; seriesModel.coordinateSystem = grid.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex); }); return grids; }; // For deciding which dimensions to use when creating list data Grid.dimensions = _Cartesian2D_js__WEBPACK_IMPORTED_MODULE_3__["cartesian2DDimensions"]; return Grid; }(); /** * Check if the axis is used in the specified grid. */ function isAxisUsedInTheGrid(axisModel, gridModel) { return axisModel.getCoordSysModel() === gridModel; } function fixAxisOnZero(axesMap, otherAxisDim, axis, // Key: see `getOnZeroRecordKey` onZeroRecords) { axis.getAxesOnZeroOf = function () { // TODO: onZero of multiple axes. return otherAxisOnZeroOf ? [otherAxisOnZeroOf] : []; }; // onZero can not be enabled in these two situations: // 1. When any other axis is a category axis. // 2. When no axis is cross 0 point. var otherAxes = axesMap[otherAxisDim]; var otherAxisOnZeroOf; var axisModel = axis.model; var onZero = axisModel.get(['axisLine', 'onZero']); var onZeroAxisIndex = axisModel.get(['axisLine', 'onZeroAxisIndex']); if (!onZero) { return; } // If target axis is specified. if (onZeroAxisIndex != null) { if (canOnZeroToAxis(otherAxes[onZeroAxisIndex])) { otherAxisOnZeroOf = otherAxes[onZeroAxisIndex]; } } else { // Find the first available other axis. for (var idx in otherAxes) { if (otherAxes.hasOwnProperty(idx) && canOnZeroToAxis(otherAxes[idx]) // Consider that two Y axes on one value axis, // if both onZero, the two Y axes overlap. && !onZeroRecords[getOnZeroRecordKey(otherAxes[idx])]) { otherAxisOnZeroOf = otherAxes[idx]; break; } } } if (otherAxisOnZeroOf) { onZeroRecords[getOnZeroRecordKey(otherAxisOnZeroOf)] = true; } function getOnZeroRecordKey(axis) { return axis.dim + '_' + axis.index; } } function canOnZeroToAxis(axis) { return axis && axis.type !== 'category' && axis.type !== 'time' && Object(_coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_2__["ifAxisCrossZero"])(axis); } function updateAxisTransform(axis, coordBase) { var axisExtent = axis.getExtent(); var axisExtentSum = axisExtent[0] + axisExtent[1]; // Fast transform axis.toGlobalCoord = axis.dim === 'x' ? function (coord) { return coord + coordBase; } : function (coord) { return axisExtentSum - coord + coordBase; }; axis.toLocalCoord = axis.dim === 'x' ? function (coord) { return coord - coordBase; } : function (coord) { return axisExtentSum - coord + coordBase; }; } /* harmony default export */ __webpack_exports__["default"] = (Grid); /***/ }), /***/ "./node_modules/echarts/lib/coord/cartesian/GridModel.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/coord/cartesian/GridModel.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var GridModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GridModel, _super); function GridModel() { return _super !== null && _super.apply(this, arguments) || this; } GridModel.type = 'grid'; GridModel.dependencies = ['xAxis', 'yAxis']; GridModel.layoutMode = 'box'; GridModel.defaultOption = { show: false, // zlevel: 0, z: 0, left: '10%', top: 60, right: '10%', bottom: 70, // If grid size contain label containLabel: false, // width: {totalWidth} - left - right, // height: {totalHeight} - top - bottom, backgroundColor: 'rgba(0,0,0,0)', borderWidth: 1, borderColor: '#ccc' }; return GridModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (GridModel); /***/ }), /***/ "./node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js": /*!*************************************************************************!*\ !*** ./node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js ***! \*************************************************************************/ /*! exports provided: layout, isCartesian2DSeries, findAxisModels */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "layout", function() { return layout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCartesian2DSeries", function() { return isCartesian2DSeries; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findAxisModels", function() { return findAxisModels; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Can only be called after coordinate system creation stage. * (Can be called before coordinate system update stage). */ function layout(gridModel, axisModel, opt) { opt = opt || {}; var grid = gridModel.coordinateSystem; var axis = axisModel.axis; var layout = {}; var otherAxisOnZeroOf = axis.getAxesOnZeroOf()[0]; var rawAxisPosition = axis.position; var axisPosition = otherAxisOnZeroOf ? 'onZero' : rawAxisPosition; var axisDim = axis.dim; var rect = grid.getRect(); var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height]; var idx = { left: 0, right: 1, top: 0, bottom: 1, onZero: 2 }; var axisOffset = axisModel.get('offset') || 0; var posBound = axisDim === 'x' ? [rectBound[2] - axisOffset, rectBound[3] + axisOffset] : [rectBound[0] - axisOffset, rectBound[1] + axisOffset]; if (otherAxisOnZeroOf) { var onZeroCoord = otherAxisOnZeroOf.toGlobalCoord(otherAxisOnZeroOf.dataToCoord(0)); posBound[idx.onZero] = Math.max(Math.min(onZeroCoord, posBound[1]), posBound[0]); } // Axis position layout.position = [axisDim === 'y' ? posBound[idx[axisPosition]] : rectBound[0], axisDim === 'x' ? posBound[idx[axisPosition]] : rectBound[3]]; // Axis rotation layout.rotation = Math.PI / 2 * (axisDim === 'x' ? 0 : 1); // Tick and label direction, x y is axisDim var dirMap = { top: -1, bottom: 1, left: -1, right: 1 }; layout.labelDirection = layout.tickDirection = layout.nameDirection = dirMap[rawAxisPosition]; layout.labelOffset = otherAxisOnZeroOf ? posBound[idx[rawAxisPosition]] - posBound[idx.onZero] : 0; if (axisModel.get(['axisTick', 'inside'])) { layout.tickDirection = -layout.tickDirection; } if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve"](opt.labelInside, axisModel.get(['axisLabel', 'inside']))) { layout.labelDirection = -layout.labelDirection; } // Special label rotation var labelRotate = axisModel.get(['axisLabel', 'rotate']); layout.labelRotate = axisPosition === 'top' ? -labelRotate : labelRotate; // Over splitLine and splitArea layout.z2 = 1; return layout; } function isCartesian2DSeries(seriesModel) { return seriesModel.get('coordinateSystem') === 'cartesian2d'; } function findAxisModels(seriesModel) { var axisModelMap = { xAxisModel: null, yAxisModel: null }; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](axisModelMap, function (v, key) { var axisType = key.replace(/Model$/, ''); var axisModel = seriesModel.getReferringComponents(axisType, _util_model_js__WEBPACK_IMPORTED_MODULE_1__["SINGLE_REFERRING"]).models[0]; if (true) { if (!axisModel) { throw new Error(axisType + ' "' + zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve3"](seriesModel.get(axisType + 'Index'), seriesModel.get(axisType + 'Id'), 0) + '" not found'); } } axisModelMap[key] = axisModel; }); return axisModelMap; } /***/ }), /***/ "./node_modules/echarts/lib/coord/cartesian/prepareCustom.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/coord/cartesian/prepareCustom.js ***! \*******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return cartesianPrepareCustom; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function dataToCoordSize(dataSize, dataItem) { // dataItem is necessary in log axis. dataItem = dataItem || [0, 0]; return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](['x', 'y'], function (dim, dimIdx) { var axis = this.getAxis(dim); var val = dataItem[dimIdx]; var halfSize = dataSize[dimIdx] / 2; return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize)); }, this); } function cartesianPrepareCustom(coordSys) { var rect = coordSys.master.getRect(); return { coordSys: { // The name exposed to user is always 'cartesian2d' but not 'grid'. type: 'cartesian2d', x: rect.x, y: rect.y, width: rect.width, height: rect.height }, api: { coord: function (data) { // do not provide "out" param return coordSys.dataToPoint(data); }, size: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"](dataToCoordSize, coordSys) } }; } /***/ }), /***/ "./node_modules/echarts/lib/coord/geo/Geo.js": /*!***************************************************!*\ !*** ./node_modules/echarts/lib/coord/geo/Geo.js ***! \***************************************************/ /*! exports provided: geo2DDimensions, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "geo2DDimensions", function() { return geo2DDimensions; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var _View_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../View.js */ "./node_modules/echarts/lib/coord/View.js"); /* harmony import */ var _geoSourceManager_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./geoSourceManager.js */ "./node_modules/echarts/lib/coord/geo/geoSourceManager.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var GEO_DEFAULT_PARAMS = { 'geoJSON': { aspectScale: 0.75, invertLongitute: true }, 'geoSVG': { aspectScale: 1, invertLongitute: false } }; var geo2DDimensions = ['lng', 'lat']; var Geo = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Geo, _super); function Geo(name, map, opt) { var _this = _super.call(this, name) || this; _this.dimensions = geo2DDimensions; _this.type = 'geo'; // Only store specified name coord via `addGeoCoord`. _this._nameCoordMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"](); _this.map = map; var projection = opt.projection; var source = _geoSourceManager_js__WEBPACK_IMPORTED_MODULE_4__["default"].load(map, opt.nameMap, opt.nameProperty); var resource = _geoSourceManager_js__WEBPACK_IMPORTED_MODULE_4__["default"].getGeoResource(map); var resourceType = _this.resourceType = resource ? resource.type : null; var regions = _this.regions = source.regions; var defaultParams = GEO_DEFAULT_PARAMS[resource.type]; _this._regionsMap = source.regionsMap; _this.regions = source.regions; if ( true && projection) { // Do some check if (resourceType === 'geoSVG') { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_6__["warn"])("Map " + map + " with SVG source can't use projection. Only GeoJSON source supports projection."); } projection = null; } if (!(projection.project && projection.unproject)) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_6__["warn"])('project and unproject must be both provided in the projeciton.'); } projection = null; } } _this.projection = projection; var boundingRect; if (projection) { // Can't reuse the raw bounding rect for (var i = 0; i < regions.length; i++) { var regionRect = regions[i].getBoundingRect(projection); boundingRect = boundingRect || regionRect.clone(); boundingRect.union(regionRect); } } else { boundingRect = source.boundingRect; } _this.setBoundingRect(boundingRect.x, boundingRect.y, boundingRect.width, boundingRect.height); // aspectScale and invertLongitute actually is the parameters default raw projection. // So we ignore them if projection is given. // Ignore default aspect scale if projection exits. _this.aspectScale = projection ? 1 : zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"](opt.aspectScale, defaultParams.aspectScale); // Not invert longitude if projection exits. _this._invertLongitute = projection ? false : defaultParams.invertLongitute; return _this; } Geo.prototype._transformTo = function (x, y, width, height) { var rect = this.getBoundingRect(); var invertLongitute = this._invertLongitute; rect = rect.clone(); if (invertLongitute) { // Longitude is inverted. rect.y = -rect.y - rect.height; } var rawTransformable = this._rawTransformable; rawTransformable.transform = rect.calculateTransform(new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_2__["default"](x, y, width, height)); var rawParent = rawTransformable.parent; rawTransformable.parent = null; rawTransformable.decomposeTransform(); rawTransformable.parent = rawParent; if (invertLongitute) { rawTransformable.scaleY = -rawTransformable.scaleY; } this._updateTransform(); }; Geo.prototype.getRegion = function (name) { return this._regionsMap.get(name); }; Geo.prototype.getRegionByCoord = function (coord) { var regions = this.regions; for (var i = 0; i < regions.length; i++) { var region = regions[i]; if (region.type === 'geoJSON' && region.contain(coord)) { return regions[i]; } } }; /** * Add geoCoord for indexing by name */ Geo.prototype.addGeoCoord = function (name, geoCoord) { this._nameCoordMap.set(name, geoCoord); }; /** * Get geoCoord by name */ Geo.prototype.getGeoCoord = function (name) { var region = this._regionsMap.get(name); // Calculate center only on demand. return this._nameCoordMap.get(name) || region && region.getCenter(); }; Geo.prototype.dataToPoint = function (data, noRoam, out) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"](data)) { // Map area name to geoCoord data = this.getGeoCoord(data); } if (data) { var projection = this.projection; if (projection) { // projection may return null point. data = projection.project(data); } return data && this.projectedToPoint(data, noRoam, out); } }; Geo.prototype.pointToData = function (point) { var projection = this.projection; if (projection) { // projection may return null point. point = projection.unproject(point); } return point && this.pointToProjected(point); }; /** * Point to projected data. Same with pointToData when projection is used. */ Geo.prototype.pointToProjected = function (point) { return _super.prototype.pointToData.call(this, point); }; Geo.prototype.projectedToPoint = function (projected, noRoam, out) { return _super.prototype.dataToPoint.call(this, projected, noRoam, out); }; Geo.prototype.convertToPixel = function (ecModel, finder, value) { var coordSys = getCoordSys(finder); return coordSys === this ? coordSys.dataToPoint(value) : null; }; Geo.prototype.convertFromPixel = function (ecModel, finder, pixel) { var coordSys = getCoordSys(finder); return coordSys === this ? coordSys.pointToData(pixel) : null; }; return Geo; }(_View_js__WEBPACK_IMPORTED_MODULE_3__["default"]); ; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["mixin"](Geo, _View_js__WEBPACK_IMPORTED_MODULE_3__["default"]); function getCoordSys(finder) { var geoModel = finder.geoModel; var seriesModel = finder.seriesModel; return geoModel ? geoModel.coordinateSystem : seriesModel ? seriesModel.coordinateSystem // For map series. || (seriesModel.getReferringComponents('geo', _util_model_js__WEBPACK_IMPORTED_MODULE_5__["SINGLE_REFERRING"]).models[0] || {}).coordinateSystem : null; } /* harmony default export */ __webpack_exports__["default"] = (Geo); /***/ }), /***/ "./node_modules/echarts/lib/coord/geo/GeoJSONResource.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/coord/geo/GeoJSONResource.js ***! \***************************************************************/ /*! exports provided: GeoJSONResource */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeoJSONResource", function() { return GeoJSONResource; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _parseGeoJson_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parseGeoJson.js */ "./node_modules/echarts/lib/coord/geo/parseGeoJson.js"); /* harmony import */ var _fix_nanhai_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fix/nanhai.js */ "./node_modules/echarts/lib/coord/geo/fix/nanhai.js"); /* harmony import */ var _fix_textCoord_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fix/textCoord.js */ "./node_modules/echarts/lib/coord/geo/fix/textCoord.js"); /* harmony import */ var _fix_diaoyuIsland_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fix/diaoyuIsland.js */ "./node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Built-in GEO fixer. var DEFAULT_NAME_PROPERTY = 'name'; var GeoJSONResource = /** @class */function () { function GeoJSONResource(mapName, geoJSON, specialAreas) { this.type = 'geoJSON'; this._parsedMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); this._mapName = mapName; this._specialAreas = specialAreas; // PENDING: delay the parse to the first usage to rapid up the FMP? this._geoJSON = parseInput(geoJSON); } /** * @param nameMap can be null/undefined * @param nameProperty can be null/undefined */ GeoJSONResource.prototype.load = function (nameMap, nameProperty) { nameProperty = nameProperty || DEFAULT_NAME_PROPERTY; var parsed = this._parsedMap.get(nameProperty); if (!parsed) { var rawRegions = this._parseToRegions(nameProperty); parsed = this._parsedMap.set(nameProperty, { regions: rawRegions, boundingRect: calculateBoundingRect(rawRegions) }); } var regionsMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); var finalRegions = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(parsed.regions, function (region) { var regionName = region.name; // Try use the alias in geoNameMap if (nameMap && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(nameMap, regionName)) { region = region.cloneShallow(regionName = nameMap[regionName]); } finalRegions.push(region); regionsMap.set(regionName, region); }); return { regions: finalRegions, boundingRect: parsed.boundingRect || new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_5__["default"](0, 0, 0, 0), regionsMap: regionsMap }; }; GeoJSONResource.prototype._parseToRegions = function (nameProperty) { var mapName = this._mapName; var geoJSON = this._geoJSON; var rawRegions; // https://jsperf.com/try-catch-performance-overhead try { rawRegions = geoJSON ? Object(_parseGeoJson_js__WEBPACK_IMPORTED_MODULE_1__["default"])(geoJSON, nameProperty) : []; } catch (e) { throw new Error('Invalid geoJson format\n' + e.message); } Object(_fix_nanhai_js__WEBPACK_IMPORTED_MODULE_2__["default"])(mapName, rawRegions); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(rawRegions, function (region) { var regionName = region.name; Object(_fix_textCoord_js__WEBPACK_IMPORTED_MODULE_3__["default"])(mapName, region); Object(_fix_diaoyuIsland_js__WEBPACK_IMPORTED_MODULE_4__["default"])(mapName, region); // Some area like Alaska in USA map needs to be tansformed // to look better var specialArea = this._specialAreas && this._specialAreas[regionName]; if (specialArea) { region.transformTo(specialArea.left, specialArea.top, specialArea.width, specialArea.height); } }, this); return rawRegions; }; /** * Only for exporting to users. * **MUST NOT** used internally. */ GeoJSONResource.prototype.getMapForUser = function () { return { // For backward compatibility, use geoJson // PENDING: it has been returning them without clone. // do we need to avoid outsite modification? geoJson: this._geoJSON, geoJSON: this._geoJSON, specialAreas: this._specialAreas }; }; return GeoJSONResource; }(); function calculateBoundingRect(regions) { var rect; for (var i = 0; i < regions.length; i++) { var regionRect = regions[i].getBoundingRect(); rect = rect || regionRect.clone(); rect.union(regionRect); } return rect; } function parseInput(source) { return !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(source) ? source : typeof JSON !== 'undefined' && JSON.parse ? JSON.parse(source) : new Function('return (' + source + ');')(); } /***/ }), /***/ "./node_modules/echarts/lib/coord/geo/GeoModel.js": /*!********************************************************!*\ !*** ./node_modules/echarts/lib/coord/geo/GeoModel.js ***! \********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _geoCreator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./geoCreator.js */ "./node_modules/echarts/lib/coord/geo/geoCreator.js"); /* harmony import */ var _geoSourceManager_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./geoSourceManager.js */ "./node_modules/echarts/lib/coord/geo/geoSourceManager.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ; var GeoModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GeoModel, _super); function GeoModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = GeoModel.type; return _this; } GeoModel.prototype.init = function (option, parentModel, ecModel) { var source = _geoSourceManager_js__WEBPACK_IMPORTED_MODULE_6__["default"].getGeoResource(option.map); if (source && source.type === 'geoJSON') { var itemStyle = option.itemStyle = option.itemStyle || {}; if (!('color' in itemStyle)) { itemStyle.color = '#eee'; } } this.mergeDefaultAndTheme(option, ecModel); // Default label emphasis `show` _util_model_js__WEBPACK_IMPORTED_MODULE_2__["defaultEmphasis"](option, 'label', ['show']); }; GeoModel.prototype.optionUpdated = function () { var _this = this; var option = this.option; option.regions = _geoCreator_js__WEBPACK_IMPORTED_MODULE_5__["default"].getFilledRegions(option.regions, option.map, option.nameMap, option.nameProperty); var selectedMap = {}; this._optionModelMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["reduce"](option.regions || [], function (optionModelMap, regionOpt) { var regionName = regionOpt.name; if (regionName) { optionModelMap.set(regionName, new _model_Model_js__WEBPACK_IMPORTED_MODULE_4__["default"](regionOpt, _this, _this.ecModel)); if (regionOpt.selected) { selectedMap[regionName] = true; } } return optionModelMap; }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"]()); if (!option.selectedMap) { option.selectedMap = selectedMap; } }; /** * Get model of region. */ GeoModel.prototype.getRegionModel = function (name) { return this._optionModelMap.get(name) || new _model_Model_js__WEBPACK_IMPORTED_MODULE_4__["default"](null, this, this.ecModel); }; /** * Format label * @param name Region name */ GeoModel.prototype.getFormattedLabel = function (name, status) { var regionModel = this.getRegionModel(name); var formatter = status === 'normal' ? regionModel.get(['label', 'formatter']) : regionModel.get(['emphasis', 'label', 'formatter']); var params = { name: name }; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"](formatter)) { params.status = status; return formatter(params); } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"](formatter)) { return formatter.replace('{a}', name != null ? name : ''); } }; GeoModel.prototype.setZoom = function (zoom) { this.option.zoom = zoom; }; GeoModel.prototype.setCenter = function (center) { this.option.center = center; }; // PENGING If selectedMode is null ? GeoModel.prototype.select = function (name) { var option = this.option; var selectedMode = option.selectedMode; if (!selectedMode) { return; } if (selectedMode !== 'multiple') { option.selectedMap = null; } var selectedMap = option.selectedMap || (option.selectedMap = {}); selectedMap[name] = true; }; GeoModel.prototype.unSelect = function (name) { var selectedMap = this.option.selectedMap; if (selectedMap) { selectedMap[name] = false; } }; GeoModel.prototype.toggleSelected = function (name) { this[this.isSelected(name) ? 'unSelect' : 'select'](name); }; GeoModel.prototype.isSelected = function (name) { var selectedMap = this.option.selectedMap; return !!(selectedMap && selectedMap[name]); }; GeoModel.type = 'geo'; GeoModel.layoutMode = 'box'; GeoModel.defaultOption = { // zlevel: 0, z: 0, show: true, left: 'center', top: 'center', // Default value: // for geoSVG source: 1, // for geoJSON source: 0.75. aspectScale: null, // /// Layout with center and size // If you want to put map in a fixed size box with right aspect ratio // This two properties may be more convenient // layoutCenter: [50%, 50%] // layoutSize: 100 silent: false, // Map type map: '', // Define left-top, right-bottom coords to control view // For example, [ [180, 90], [-180, -90] ] boundingCoords: null, // Default on center of map center: null, zoom: 1, scaleLimit: null, // selectedMode: false label: { show: false, color: '#000' }, itemStyle: { borderWidth: 0.5, borderColor: '#444' // Default color: // + geoJSON: #eee // + geoSVG: null (use SVG original `fill`) // color: '#eee' }, emphasis: { label: { show: true, color: 'rgb(100,0,0)' }, itemStyle: { color: 'rgba(255,215,0,0.8)' } }, select: { label: { show: true, color: 'rgb(100,0,0)' }, itemStyle: { color: 'rgba(255,215,0,0.8)' } }, regions: [] // tooltip: { // show: false // } }; return GeoModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_3__["default"]); /* harmony default export */ __webpack_exports__["default"] = (GeoModel); /***/ }), /***/ "./node_modules/echarts/lib/coord/geo/GeoSVGResource.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/coord/geo/GeoSVGResource.js ***! \**************************************************************/ /*! exports provided: GeoSVGResource */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeoSVGResource", function() { return GeoSVGResource; }); /* harmony import */ var zrender_lib_tool_parseSVG_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/tool/parseSVG.js */ "./node_modules/zrender/lib/tool/parseSVG.js"); /* harmony import */ var zrender_lib_graphic_Group_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/graphic/Group.js */ "./node_modules/zrender/lib/graphic/Group.js"); /* harmony import */ var zrender_lib_graphic_shape_Rect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/graphic/shape/Rect.js */ "./node_modules/zrender/lib/graphic/shape/Rect.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var zrender_lib_tool_parseXML_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/tool/parseXML.js */ "./node_modules/zrender/lib/tool/parseXML.js"); /* harmony import */ var _Region_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Region.js */ "./node_modules/echarts/lib/coord/geo/Region.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * "region available" means that: enable users to set attribute `name="xxx"` on those tags * to make it be a region. * 1. region styles and its label styles can be defined in echarts opton: * ```js * geo: { * regions: [{ * name: 'xxx', * itemStyle: { ... }, * label: { ... } * }, { * ... * }, * ...] * }; * ``` * 2. name can be duplicated in different SVG tag. All of the tags with the same name share * a region option. For exampel if there are two representing two lung lobes. They have * no common parents but both of them need to display label "lung" inside. */ var REGION_AVAILABLE_SVG_TAG_MAP = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["createHashMap"])(['rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path', // are also enabled because some SVG might paint text itself, // but still need to trigger events or tooltip. 'text', 'tspan', // is also enabled because this case: if multiple tags share one name // and need label displayed, every tags will display the name, which is not // expected. So we can put them into a . Thereby only one label // displayed and located based on the bounding rect of the . 'g']); var GeoSVGResource = /** @class */function () { function GeoSVGResource(mapName, svg) { this.type = 'geoSVG'; // All used graphics. key: hostKey, value: root this._usedGraphicMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["createHashMap"])(); // All unused graphics. this._freedGraphics = []; this._mapName = mapName; // Only perform parse to XML object here, which might be time // consiming for large SVG. // Although convert XML to zrender element is also time consiming, // if we do it here, the clone of zrender elements has to be // required. So we do it once for each geo instance, util real // performance issues call for optimizing it. this._parsedXML = Object(zrender_lib_tool_parseXML_js__WEBPACK_IMPORTED_MODULE_5__["parseXML"])(svg); } GeoSVGResource.prototype.load = function /* nameMap: NameMap */ () { // In the "load" stage, graphic need to be built to // get boundingRect for geo coordinate system. var firstGraphic = this._firstGraphic; // Create the return data structure only when first graphic created. // Because they will be used in geo coordinate system update stage, // and `regions` will be mounted at `geo` coordinate system, // in which there is no "view" info, so that it should better not to // make references to graphic elements. if (!firstGraphic) { firstGraphic = this._firstGraphic = this._buildGraphic(this._parsedXML); this._freedGraphics.push(firstGraphic); this._boundingRect = this._firstGraphic.boundingRect.clone(); // PENDING: `nameMap` will not be supported until some real requirement come. // if (nameMap) { // named = applyNameMap(named, nameMap); // } var _a = createRegions(firstGraphic.named), regions = _a.regions, regionsMap = _a.regionsMap; this._regions = regions; this._regionsMap = regionsMap; } return { boundingRect: this._boundingRect, regions: this._regions, regionsMap: this._regionsMap }; }; GeoSVGResource.prototype._buildGraphic = function (svgXML) { var result; var rootFromParse; try { result = svgXML && Object(zrender_lib_tool_parseSVG_js__WEBPACK_IMPORTED_MODULE_0__["parseSVG"])(svgXML, { ignoreViewBox: true, ignoreRootClip: true }) || {}; rootFromParse = result.root; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["assert"])(rootFromParse != null); } catch (e) { throw new Error('Invalid svg format\n' + e.message); } // Note: we keep the covenant that the root has no transform. So always add an extra root. var root = new zrender_lib_graphic_Group_js__WEBPACK_IMPORTED_MODULE_1__["default"](); root.add(rootFromParse); root.isGeoSVGGraphicRoot = true; // [THE_RULE_OF_VIEWPORT_AND_VIEWBOX] // // Consider: `` // - the `width/height` we call it `svgWidth/svgHeight` for short. // - `(0, 0, svgWidth, svgHeight)` defines the viewport of the SVG, or say, // "viewport boundingRect", or `boundingRect` for short. // - `viewBox` defines the transform from the real content ot the viewport. // `viewBox` has the same unit as the content of SVG. // If `viewBox` exists, a transform is defined, so the unit of `svgWidth/svgHeight` become // different from the content of SVG. Otherwise, they are the same. // // If both `svgWidth/svgHeight/viewBox` are specified in a SVG file, the transform rule will be: // 0. `boundingRect` is `(0, 0, svgWidth, svgHeight)`. Set it to Geo['_rect'] (View['_rect']). // 1. Make a transform from `viewBox` to `boundingRect`. // Note: only support `preserveAspectRatio 'xMidYMid'` here. That is, this transform will preserve // the aspect ratio. // 2. Make a transform from boundingRect to Geo['_viewRect'] (View['_viewRect']) // (`Geo`/`View` will do this job). // Note: this transform might not preserve aspect radio, which depending on how users specify // viewRect in echarts option (e.g., `geo.left/top/width/height` will not preserve aspect ratio, // but `geo.layoutCenter/layoutSize` will preserve aspect ratio). // // If `svgWidth/svgHeight` not specified, we use `viewBox` as the `boundingRect` to make the SVG // layout look good. // // If neither `svgWidth/svgHeight` nor `viewBox` are not specified, we calculate the boundingRect // of the SVG content and use them to make SVG layout look good. var svgWidth = result.width; var svgHeight = result.height; var viewBoxRect = result.viewBoxRect; var boundingRect = this._boundingRect; if (!boundingRect) { var bRectX = void 0; var bRectY = void 0; var bRectWidth = void 0; var bRectHeight = void 0; if (svgWidth != null) { bRectX = 0; bRectWidth = svgWidth; } else if (viewBoxRect) { bRectX = viewBoxRect.x; bRectWidth = viewBoxRect.width; } if (svgHeight != null) { bRectY = 0; bRectHeight = svgHeight; } else if (viewBoxRect) { bRectY = viewBoxRect.y; bRectHeight = viewBoxRect.height; } // If both viewBox and svgWidth/svgHeight not specified, // we have to determine how to layout those element to make them look good. if (bRectX == null || bRectY == null) { var calculatedBoundingRect = rootFromParse.getBoundingRect(); if (bRectX == null) { bRectX = calculatedBoundingRect.x; bRectWidth = calculatedBoundingRect.width; } if (bRectY == null) { bRectY = calculatedBoundingRect.y; bRectHeight = calculatedBoundingRect.height; } } boundingRect = this._boundingRect = new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_4__["default"](bRectX, bRectY, bRectWidth, bRectHeight); } if (viewBoxRect) { var viewBoxTransform = Object(zrender_lib_tool_parseSVG_js__WEBPACK_IMPORTED_MODULE_0__["makeViewBoxTransform"])(viewBoxRect, boundingRect); // Only support `preserveAspectRatio 'xMidYMid'` rootFromParse.scaleX = rootFromParse.scaleY = viewBoxTransform.scale; rootFromParse.x = viewBoxTransform.x; rootFromParse.y = viewBoxTransform.y; } // SVG needs to clip based on `viewBox`. And some SVG files really rely on this feature. // They do not strictly confine all of the content inside a display rect, but deliberately // use a `viewBox` to define a displayable rect. // PENDING: // The drawback of the `setClipPath` here is: the region label (genereted by echarts) near the // edge might also be clipped, because region labels are put as `textContent` of the SVG path. root.setClipPath(new zrender_lib_graphic_shape_Rect_js__WEBPACK_IMPORTED_MODULE_2__["default"]({ shape: boundingRect.plain() })); var named = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(result.named, function (namedItem) { if (REGION_AVAILABLE_SVG_TAG_MAP.get(namedItem.svgNodeTagLower) != null) { named.push(namedItem); setSilent(namedItem.el); } }); return { root: root, boundingRect: boundingRect, named: named }; }; /** * Consider: * (1) One graphic element can not be shared by different `geoView` running simultaneously. * Notice, also need to consider multiple echarts instances share a `mapRecord`. * (2) Converting SVG to graphic elements is time consuming. * (3) In the current architecture, `load` should be called frequently to get boundingRect, * and it is called without view info. * So we maintain graphic elements in this module, and enables `view` to use/return these * graphics from/to the pool with it's uid. */ GeoSVGResource.prototype.useGraphic = function (hostKey /* , nameMap: NameMap */) { var usedRootMap = this._usedGraphicMap; var svgGraphic = usedRootMap.get(hostKey); if (svgGraphic) { return svgGraphic; } svgGraphic = this._freedGraphics.pop() // use the first boundingRect to avoid duplicated boundingRect calculation. || this._buildGraphic(this._parsedXML); usedRootMap.set(hostKey, svgGraphic); // PENDING: `nameMap` will not be supported until some real requirement come. // `nameMap` can only be obtained from echarts option. // The original `named` must not be modified. // if (nameMap) { // svgGraphic = extend({}, svgGraphic); // svgGraphic.named = applyNameMap(svgGraphic.named, nameMap); // } return svgGraphic; }; GeoSVGResource.prototype.freeGraphic = function (hostKey) { var usedRootMap = this._usedGraphicMap; var svgGraphic = usedRootMap.get(hostKey); if (svgGraphic) { usedRootMap.removeKey(hostKey); this._freedGraphics.push(svgGraphic); } }; return GeoSVGResource; }(); function setSilent(el) { // Only named element has silent: false, other elements should // act as background and has no user interaction. el.silent = false; // text|tspan will be converted to group. if (el.isGroup) { el.traverse(function (child) { child.silent = false; }); } } function createRegions(named) { var regions = []; var regionsMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["createHashMap"])(); // Create resions only for the first graphic. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(named, function (namedItem) { // Region has feature to calculate center for tooltip or other features. // If there is a , the center should be the center of the // bounding rect of the g. if (namedItem.namedFrom != null) { return; } var region = new _Region_js__WEBPACK_IMPORTED_MODULE_6__["GeoSVGRegion"](namedItem.name, namedItem.el); // PENDING: if `nameMap` supported, this region can not be mounted on // `this`, but can only be created each time `load()` called. regions.push(region); // PENDING: if multiple tag named with the same name, only one will be // found by `_regionsMap`. `_regionsMap` is used to find a coordinate // by name. We use `region.getCenter()` as the coordinate. regionsMap.set(namedItem.name, region); }); return { regions: regions, regionsMap: regionsMap }; } // PENDING: `nameMap` will not be supported until some real requirement come. // /** // * Use the alias in geoNameMap. // * The input `named` must not be modified. // */ // function applyNameMap( // named: GeoSVGGraphicRecord['named'], // nameMap: NameMap // ): GeoSVGGraphicRecord['named'] { // const result = [] as GeoSVGGraphicRecord['named']; // for (let i = 0; i < named.length; i++) { // let regionGraphic = named[i]; // const name = regionGraphic.name; // if (nameMap && nameMap.hasOwnProperty(name)) { // regionGraphic = extend({}, regionGraphic); // regionGraphic.name = name; // } // result.push(regionGraphic); // } // return result; // } /***/ }), /***/ "./node_modules/echarts/lib/coord/geo/Region.js": /*!******************************************************!*\ !*** ./node_modules/echarts/lib/coord/geo/Region.js ***! \******************************************************/ /*! exports provided: Region, GeoJSONPolygonGeometry, GeoJSONLineStringGeometry, GeoJSONRegion, GeoSVGRegion */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Region", function() { return Region; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeoJSONPolygonGeometry", function() { return GeoJSONPolygonGeometry; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeoJSONLineStringGeometry", function() { return GeoJSONLineStringGeometry; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeoJSONRegion", function() { return GeoJSONRegion; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeoSVGRegion", function() { return GeoSVGRegion; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* harmony import */ var zrender_lib_contain_polygon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/contain/polygon.js */ "./node_modules/zrender/lib/contain/polygon.js"); /* harmony import */ var zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/matrix.js */ "./node_modules/zrender/lib/core/matrix.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TMP_TRANSFORM = []; function transformPoints(points, transform) { for (var p = 0; p < points.length; p++) { zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_2__["applyTransform"](points[p], points[p], transform); } } function updateBBoxFromPoints(points, min, max, projection) { for (var i = 0; i < points.length; i++) { var p = points[i]; if (projection) { // projection may return null point. p = projection.project(p); } if (p && isFinite(p[0]) && isFinite(p[1])) { zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_2__["min"](min, min, p); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_2__["max"](max, max, p); } } } function centroid(points) { var signedArea = 0; var cx = 0; var cy = 0; var len = points.length; var x0 = points[len - 1][0]; var y0 = points[len - 1][1]; // Polygon should been closed. for (var i = 0; i < len; i++) { var x1 = points[i][0]; var y1 = points[i][1]; var a = x0 * y1 - x1 * y0; signedArea += a; cx += (x0 + x1) * a; cy += (y0 + y1) * a; x0 = x1; y0 = y1; } return signedArea ? [cx / signedArea / 3, cy / signedArea / 3, signedArea] : [points[0][0] || 0, points[0][1] || 0]; } var Region = /** @class */function () { function Region(name) { this.name = name; } Region.prototype.setCenter = function (center) { this._center = center; }; /** * Get center point in data unit. That is, * for GeoJSONRegion, the unit is lat/lng, * for GeoSVGRegion, the unit is SVG local coord. */ Region.prototype.getCenter = function () { var center = this._center; if (!center) { // In most cases there are no need to calculate this center. // So calculate only when called. center = this._center = this.calcCenter(); } return center; }; return Region; }(); var GeoJSONPolygonGeometry = /** @class */function () { function GeoJSONPolygonGeometry(exterior, interiors) { this.type = 'polygon'; this.exterior = exterior; this.interiors = interiors; } return GeoJSONPolygonGeometry; }(); var GeoJSONLineStringGeometry = /** @class */function () { function GeoJSONLineStringGeometry(points) { this.type = 'linestring'; this.points = points; } return GeoJSONLineStringGeometry; }(); var GeoJSONRegion = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GeoJSONRegion, _super); function GeoJSONRegion(name, geometries, cp) { var _this = _super.call(this, name) || this; _this.type = 'geoJSON'; _this.geometries = geometries; _this._center = cp && [cp[0], cp[1]]; return _this; } GeoJSONRegion.prototype.calcCenter = function () { var geometries = this.geometries; var largestGeo; var largestGeoSize = 0; for (var i = 0; i < geometries.length; i++) { var geo = geometries[i]; var exterior = geo.exterior; // Simple trick to use points count instead of polygon area as region size. // Ignore linestring var size = exterior && exterior.length; if (size > largestGeoSize) { largestGeo = geo; largestGeoSize = size; } } if (largestGeo) { return centroid(largestGeo.exterior); } // from bounding rect by default. var rect = this.getBoundingRect(); return [rect.x + rect.width / 2, rect.y + rect.height / 2]; }; GeoJSONRegion.prototype.getBoundingRect = function (projection) { var rect = this._rect; // Always recalculate if using projection. if (rect && !projection) { return rect; } var min = [Infinity, Infinity]; var max = [-Infinity, -Infinity]; var geometries = this.geometries; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["each"])(geometries, function (geo) { if (geo.type === 'polygon') { // Doesn't consider hole updateBBoxFromPoints(geo.exterior, min, max, projection); } else { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["each"])(geo.points, function (points) { updateBBoxFromPoints(points, min, max, projection); }); } }); // Normalie invalid bounding. if (!(isFinite(min[0]) && isFinite(min[1]) && isFinite(max[0]) && isFinite(max[1]))) { min[0] = min[1] = max[0] = max[1] = 0; } rect = new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__["default"](min[0], min[1], max[0] - min[0], max[1] - min[1]); if (!projection) { this._rect = rect; } return rect; }; GeoJSONRegion.prototype.contain = function (coord) { var rect = this.getBoundingRect(); var geometries = this.geometries; if (!rect.contain(coord[0], coord[1])) { return false; } loopGeo: for (var i = 0, len = geometries.length; i < len; i++) { var geo = geometries[i]; // Only support polygon. if (geo.type !== 'polygon') { continue; } var exterior = geo.exterior; var interiors = geo.interiors; if (zrender_lib_contain_polygon_js__WEBPACK_IMPORTED_MODULE_3__["contain"](exterior, coord[0], coord[1])) { // Not in the region if point is in the hole. for (var k = 0; k < (interiors ? interiors.length : 0); k++) { if (zrender_lib_contain_polygon_js__WEBPACK_IMPORTED_MODULE_3__["contain"](interiors[k], coord[0], coord[1])) { continue loopGeo; } } return true; } } return false; }; /** * Transform the raw coords to target bounding. * @param x * @param y * @param width * @param height */ GeoJSONRegion.prototype.transformTo = function (x, y, width, height) { var rect = this.getBoundingRect(); var aspect = rect.width / rect.height; if (!width) { width = aspect * height; } else if (!height) { height = width / aspect; } var target = new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__["default"](x, y, width, height); var transform = rect.calculateTransform(target); var geometries = this.geometries; for (var i = 0; i < geometries.length; i++) { var geo = geometries[i]; if (geo.type === 'polygon') { transformPoints(geo.exterior, transform); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["each"])(geo.interiors, function (interior) { transformPoints(interior, transform); }); } else { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["each"])(geo.points, function (points) { transformPoints(points, transform); }); } } rect = this._rect; rect.copy(target); // Update center this._center = [rect.x + rect.width / 2, rect.y + rect.height / 2]; }; GeoJSONRegion.prototype.cloneShallow = function (name) { name == null && (name = this.name); var newRegion = new GeoJSONRegion(name, this.geometries, this._center); newRegion._rect = this._rect; newRegion.transformTo = null; // Simply avoid to be called. return newRegion; }; return GeoJSONRegion; }(Region); var GeoSVGRegion = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GeoSVGRegion, _super); function GeoSVGRegion(name, elOnlyForCalculate) { var _this = _super.call(this, name) || this; _this.type = 'geoSVG'; _this._elOnlyForCalculate = elOnlyForCalculate; return _this; } GeoSVGRegion.prototype.calcCenter = function () { var el = this._elOnlyForCalculate; var rect = el.getBoundingRect(); var center = [rect.x + rect.width / 2, rect.y + rect.height / 2]; var mat = zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_4__["identity"](TMP_TRANSFORM); var target = el; while (target && !target.isGeoSVGGraphicRoot) { zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_4__["mul"](mat, target.getLocalTransform(), mat); target = target.parent; } zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_4__["invert"](mat, mat); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_2__["applyTransform"](center, center, mat); return center; }; return GeoSVGRegion; }(Region); /***/ }), /***/ "./node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return fixDiaoyuIsland; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Fix for 钓鱼岛 // let Region = require('../Region'); // let zrUtil = require('zrender/lib/core/util'); // let geoCoord = [126, 25]; var points = [[[123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261]]]; function fixDiaoyuIsland(mapType, region) { if (mapType === 'china' && region.name === '台湾') { region.geometries.push({ type: 'polygon', exterior: points[0] }); } } /***/ }), /***/ "./node_modules/echarts/lib/coord/geo/fix/nanhai.js": /*!**********************************************************!*\ !*** ./node_modules/echarts/lib/coord/geo/fix/nanhai.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return fixNanhai; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _Region_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Region.js */ "./node_modules/echarts/lib/coord/geo/Region.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Fix for 南海诸岛 var geoCoord = [126, 25]; var nanhaiName = '南海诸岛'; var points = [[[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7], [56, 7.7], [59, 0.7], [64, 0.7], [64, 0], [5, 0], [0, 3.5]], [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]], [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]], [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]], [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]], [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]], [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]], [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]], [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]], [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]], [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]], [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4], [1, 92.4], [1, 3.5], [0, 3.5]]]; for (var i = 0; i < points.length; i++) { for (var k = 0; k < points[i].length; k++) { points[i][k][0] /= 10.5; points[i][k][1] /= -10.5 / 0.75; points[i][k][0] += geoCoord[0]; points[i][k][1] += geoCoord[1]; } } function fixNanhai(mapType, regions) { if (mapType === 'china') { for (var i = 0; i < regions.length; i++) { // Already exists. if (regions[i].name === nanhaiName) { return; } } regions.push(new _Region_js__WEBPACK_IMPORTED_MODULE_1__["GeoJSONRegion"](nanhaiName, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](points, function (exterior) { return { type: 'polygon', exterior: exterior }; }), geoCoord)); } } /***/ }), /***/ "./node_modules/echarts/lib/coord/geo/fix/textCoord.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/coord/geo/fix/textCoord.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return fixTextCoords; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var coordsOffsetMap = { '南海诸岛': [32, 80], // 全国 '广东': [0, -10], '香港': [10, 5], '澳门': [-10, 10], // '北京': [-10, 0], '天津': [5, 5] }; function fixTextCoords(mapType, region) { if (mapType === 'china') { var coordFix = coordsOffsetMap[region.name]; if (coordFix) { var cp = region.getCenter(); cp[0] += coordFix[0] / 10.5; cp[1] += -coordFix[1] / (10.5 / 0.75); region.setCenter(cp); } } } /***/ }), /***/ "./node_modules/echarts/lib/coord/geo/geoCreator.js": /*!**********************************************************!*\ !*** ./node_modules/echarts/lib/coord/geo/geoCreator.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _Geo_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Geo.js */ "./node_modules/echarts/lib/coord/geo/Geo.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _geoSourceManager_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./geoSourceManager.js */ "./node_modules/echarts/lib/coord/geo/geoSourceManager.js"); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Resize method bound to the geo */ function resizeGeo(geoModel, api) { var boundingCoords = geoModel.get('boundingCoords'); if (boundingCoords != null) { var leftTop_1 = boundingCoords[0]; var rightBottom_1 = boundingCoords[1]; if (!(isFinite(leftTop_1[0]) && isFinite(leftTop_1[1]) && isFinite(rightBottom_1[0]) && isFinite(rightBottom_1[1]))) { if (true) { console.error('Invalid boundingCoords'); } } else { // Sample around the lng/lat rect and use projection to calculate actual bounding rect. var projection_1 = this.projection; if (projection_1) { var xMin = leftTop_1[0]; var yMin = leftTop_1[1]; var xMax = rightBottom_1[0]; var yMax = rightBottom_1[1]; leftTop_1 = [Infinity, Infinity]; rightBottom_1 = [-Infinity, -Infinity]; // TODO better way? var sampleLine = function (x0, y0, x1, y1) { var dx = x1 - x0; var dy = y1 - y0; for (var i = 0; i <= 100; i++) { var p = i / 100; var pt = projection_1.project([x0 + dx * p, y0 + dy * p]); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_5__["min"](leftTop_1, leftTop_1, pt); zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_5__["max"](rightBottom_1, rightBottom_1, pt); } }; // Top sampleLine(xMin, yMin, xMax, yMin); // Right sampleLine(xMax, yMin, xMax, yMax); // Bottom sampleLine(xMax, yMax, xMin, yMax); // Left sampleLine(xMin, yMax, xMax, yMin); } this.setBoundingRect(leftTop_1[0], leftTop_1[1], rightBottom_1[0] - leftTop_1[0], rightBottom_1[1] - leftTop_1[1]); } } var rect = this.getBoundingRect(); var centerOption = geoModel.get('layoutCenter'); var sizeOption = geoModel.get('layoutSize'); var viewWidth = api.getWidth(); var viewHeight = api.getHeight(); var aspect = rect.width / rect.height * this.aspectScale; var useCenterAndSize = false; var center; var size; if (centerOption && sizeOption) { center = [_util_number_js__WEBPACK_IMPORTED_MODULE_3__["parsePercent"](centerOption[0], viewWidth), _util_number_js__WEBPACK_IMPORTED_MODULE_3__["parsePercent"](centerOption[1], viewHeight)]; size = _util_number_js__WEBPACK_IMPORTED_MODULE_3__["parsePercent"](sizeOption, Math.min(viewWidth, viewHeight)); if (!isNaN(center[0]) && !isNaN(center[1]) && !isNaN(size)) { useCenterAndSize = true; } else { if (true) { console.warn('Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.'); } } } var viewRect; if (useCenterAndSize) { viewRect = {}; if (aspect > 1) { // Width is same with size viewRect.width = size; viewRect.height = size / aspect; } else { viewRect.height = size; viewRect.width = size * aspect; } viewRect.y = center[1] - viewRect.height / 2; viewRect.x = center[0] - viewRect.width / 2; } else { // Use left/top/width/height var boxLayoutOption = geoModel.getBoxLayoutParams(); boxLayoutOption.aspect = aspect; viewRect = _util_layout_js__WEBPACK_IMPORTED_MODULE_2__["getLayoutRect"](boxLayoutOption, { width: viewWidth, height: viewHeight }); } this.setViewRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height); this.setCenter(geoModel.get('center'), api); this.setZoom(geoModel.get('zoom')); } // Back compat for ECharts2, where the coord map is set on map series: // {type: 'map', geoCoord: {'cityA': [116.46,39.92], 'cityA': [119.12,24.61]}}, function setGeoCoords(geo, model) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](model.get('geoCoord'), function (geoCoord, name) { geo.addGeoCoord(name, geoCoord); }); } var GeoCreator = /** @class */function () { function GeoCreator() { // For deciding which dimensions to use when creating list data this.dimensions = _Geo_js__WEBPACK_IMPORTED_MODULE_1__["geo2DDimensions"]; } GeoCreator.prototype.create = function (ecModel, api) { var geoList = []; function getCommonGeoProperties(model) { return { nameProperty: model.get('nameProperty'), aspectScale: model.get('aspectScale'), projection: model.get('projection') }; } // FIXME Create each time may be slow ecModel.eachComponent('geo', function (geoModel, idx) { var mapName = geoModel.get('map'); var geo = new _Geo_js__WEBPACK_IMPORTED_MODULE_1__["default"](mapName + idx, mapName, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"]({ nameMap: geoModel.get('nameMap') }, getCommonGeoProperties(geoModel))); geo.zoomLimit = geoModel.get('scaleLimit'); geoList.push(geo); // setGeoCoords(geo, geoModel); geoModel.coordinateSystem = geo; geo.model = geoModel; // Inject resize method geo.resize = resizeGeo; geo.resize(geoModel, api); }); ecModel.eachSeries(function (seriesModel) { var coordSys = seriesModel.get('coordinateSystem'); if (coordSys === 'geo') { var geoIndex = seriesModel.get('geoIndex') || 0; seriesModel.coordinateSystem = geoList[geoIndex]; } }); // If has map series var mapModelGroupBySeries = {}; ecModel.eachSeriesByType('map', function (seriesModel) { if (!seriesModel.getHostGeoModel()) { var mapType = seriesModel.getMapType(); mapModelGroupBySeries[mapType] = mapModelGroupBySeries[mapType] || []; mapModelGroupBySeries[mapType].push(seriesModel); } }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](mapModelGroupBySeries, function (mapSeries, mapType) { var nameMapList = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](mapSeries, function (singleMapSeries) { return singleMapSeries.get('nameMap'); }); var geo = new _Geo_js__WEBPACK_IMPORTED_MODULE_1__["default"](mapType, mapType, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"]({ nameMap: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["mergeAll"](nameMapList) }, getCommonGeoProperties(mapSeries[0]))); geo.zoomLimit = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve"].apply(null, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](mapSeries, function (singleMapSeries) { return singleMapSeries.get('scaleLimit'); })); geoList.push(geo); // Inject resize method geo.resize = resizeGeo; geo.resize(mapSeries[0], api); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](mapSeries, function (singleMapSeries) { singleMapSeries.coordinateSystem = geo; setGeoCoords(geo, singleMapSeries); }); }); return geoList; }; /** * Fill given regions array */ GeoCreator.prototype.getFilledRegions = function (originRegionArr, mapName, nameMap, nameProperty) { // Not use the original var regionsArr = (originRegionArr || []).slice(); var dataNameMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](); for (var i = 0; i < regionsArr.length; i++) { dataNameMap.set(regionsArr[i].name, regionsArr[i]); } var source = _geoSourceManager_js__WEBPACK_IMPORTED_MODULE_4__["default"].load(mapName, nameMap, nameProperty); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](source.regions, function (region) { var name = region.name; var regionOption = dataNameMap.get(name); // apply specified echarts style in GeoJSON data var specifiedGeoJSONRegionStyle = region.properties && region.properties.echartsStyle; if (!regionOption) { regionOption = { name: name }; regionsArr.push(regionOption); } specifiedGeoJSONRegionStyle && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["merge"](regionOption, specifiedGeoJSONRegionStyle); }); return regionsArr; }; return GeoCreator; }(); var geoCreator = new GeoCreator(); /* harmony default export */ __webpack_exports__["default"] = (geoCreator); /***/ }), /***/ "./node_modules/echarts/lib/coord/geo/geoSourceManager.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/coord/geo/geoSourceManager.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _GeoSVGResource_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GeoSVGResource.js */ "./node_modules/echarts/lib/coord/geo/GeoSVGResource.js"); /* harmony import */ var _GeoJSONResource_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GeoJSONResource.js */ "./node_modules/echarts/lib/coord/geo/GeoJSONResource.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var storage = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); /* harmony default export */ __webpack_exports__["default"] = ({ /** * Compatible with previous `echarts.registerMap`. * * @usage * ```js * * echarts.registerMap('USA', geoJson, specialAreas); * * echarts.registerMap('USA', { * geoJson: geoJson, * specialAreas: {...} * }); * echarts.registerMap('USA', { * geoJSON: geoJson, * specialAreas: {...} * }); * * echarts.registerMap('airport', { * svg: svg * } * ``` * * Note: * Do not support that register multiple geoJSON or SVG * one map name. Because different geoJSON and SVG have * different unit. It's not easy to make sure how those * units are mapping/normalize. * If intending to use multiple geoJSON or SVG, we can * use multiple geo coordinate system. */ registerMap: function (mapName, rawDef, rawSpecialAreas) { if (rawDef.svg) { var resource = new _GeoSVGResource_js__WEBPACK_IMPORTED_MODULE_1__["GeoSVGResource"](mapName, rawDef.svg); storage.set(mapName, resource); } else { // Recommend: // echarts.registerMap('eu', { geoJSON: xxx, specialAreas: xxx }); // Backward compatibility: // echarts.registerMap('eu', geoJSON, specialAreas); // echarts.registerMap('eu', { geoJson: xxx, specialAreas: xxx }); var geoJSON = rawDef.geoJson || rawDef.geoJSON; if (geoJSON && !rawDef.features) { rawSpecialAreas = rawDef.specialAreas; } else { geoJSON = rawDef; } var resource = new _GeoJSONResource_js__WEBPACK_IMPORTED_MODULE_2__["GeoJSONResource"](mapName, geoJSON, rawSpecialAreas); storage.set(mapName, resource); } }, getGeoResource: function (mapName) { return storage.get(mapName); }, /** * Only for exporting to users. * **MUST NOT** used internally. */ getMapForUser: function (mapName) { var resource = storage.get(mapName); // Do not support return SVG until some real requirement come. return resource && resource.type === 'geoJSON' && resource.getMapForUser(); }, load: function (mapName, nameMap, nameProperty) { var resource = storage.get(mapName); if (!resource) { if (true) { console.error('Map ' + mapName + ' not exists. The GeoJSON of the map must be provided.'); } return; } return resource.load(nameMap, nameProperty); } }); /***/ }), /***/ "./node_modules/echarts/lib/coord/geo/parseGeoJson.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/coord/geo/parseGeoJson.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return parseGeoJSON; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _Region_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Region.js */ "./node_modules/echarts/lib/coord/geo/Region.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Parse and decode geo json */ function decode(json) { if (!json.UTF8Encoding) { return json; } var jsonCompressed = json; var encodeScale = jsonCompressed.UTF8Scale; if (encodeScale == null) { encodeScale = 1024; } var features = jsonCompressed.features; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](features, function (feature) { var geometry = feature.geometry; var encodeOffsets = geometry.encodeOffsets; var coordinates = geometry.coordinates; // Geometry may be appeded manually in the script after json loaded. // In this case this geometry is usually not encoded. if (!encodeOffsets) { return; } switch (geometry.type) { case 'LineString': geometry.coordinates = decodeRing(coordinates, encodeOffsets, encodeScale); break; case 'Polygon': decodeRings(coordinates, encodeOffsets, encodeScale); break; case 'MultiLineString': decodeRings(coordinates, encodeOffsets, encodeScale); break; case 'MultiPolygon': zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](coordinates, function (rings, idx) { return decodeRings(rings, encodeOffsets[idx], encodeScale); }); } }); // Has been decoded jsonCompressed.UTF8Encoding = false; return jsonCompressed; } function decodeRings(rings, encodeOffsets, encodeScale) { for (var c = 0; c < rings.length; c++) { rings[c] = decodeRing(rings[c], encodeOffsets[c], encodeScale); } } function decodeRing(coordinate, encodeOffsets, encodeScale) { var result = []; var prevX = encodeOffsets[0]; var prevY = encodeOffsets[1]; for (var i = 0; i < coordinate.length; i += 2) { var x = coordinate.charCodeAt(i) - 64; var y = coordinate.charCodeAt(i + 1) - 64; // ZigZag decoding x = x >> 1 ^ -(x & 1); y = y >> 1 ^ -(y & 1); // Delta deocding x += prevX; y += prevY; prevX = x; prevY = y; // Dequantize result.push([x / encodeScale, y / encodeScale]); } return result; } function parseGeoJSON(geoJson, nameProperty) { geoJson = decode(geoJson); return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["filter"](geoJson.features, function (featureObj) { // Output of mapshaper may have geometry null return featureObj.geometry && featureObj.properties && featureObj.geometry.coordinates.length > 0; }), function (featureObj) { var properties = featureObj.properties; var geo = featureObj.geometry; var geometries = []; switch (geo.type) { case 'Polygon': var coordinates = geo.coordinates; // According to the GeoJSON specification. // First must be exterior, and the rest are all interior(holes). geometries.push(new _Region_js__WEBPACK_IMPORTED_MODULE_1__["GeoJSONPolygonGeometry"](coordinates[0], coordinates.slice(1))); break; case 'MultiPolygon': zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](geo.coordinates, function (item) { if (item[0]) { geometries.push(new _Region_js__WEBPACK_IMPORTED_MODULE_1__["GeoJSONPolygonGeometry"](item[0], item.slice(1))); } }); break; case 'LineString': geometries.push(new _Region_js__WEBPACK_IMPORTED_MODULE_1__["GeoJSONLineStringGeometry"]([geo.coordinates])); break; case 'MultiLineString': geometries.push(new _Region_js__WEBPACK_IMPORTED_MODULE_1__["GeoJSONLineStringGeometry"](geo.coordinates)); } var region = new _Region_js__WEBPACK_IMPORTED_MODULE_1__["GeoJSONRegion"](properties[nameProperty || 'name'], geometries, properties.cp); region.properties = properties; return region; }); } /***/ }), /***/ "./node_modules/echarts/lib/coord/geo/prepareCustom.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/coord/geo/prepareCustom.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return geoPrepareCustom; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function dataToCoordSize(dataSize, dataItem) { dataItem = dataItem || [0, 0]; return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"]([0, 1], function (dimIdx) { var val = dataItem[dimIdx]; var halfSize = dataSize[dimIdx] / 2; var p1 = []; var p2 = []; p1[dimIdx] = val - halfSize; p2[dimIdx] = val + halfSize; p1[1 - dimIdx] = p2[1 - dimIdx] = dataItem[1 - dimIdx]; return Math.abs(this.dataToPoint(p1)[dimIdx] - this.dataToPoint(p2)[dimIdx]); }, this); } function geoPrepareCustom(coordSys) { var rect = coordSys.getBoundingRect(); return { coordSys: { type: 'geo', x: rect.x, y: rect.y, width: rect.width, height: rect.height, zoom: coordSys.getZoom() }, api: { coord: function (data) { // do not provide "out" and noRoam param, // Compatible with this usage: // echarts.util.map(item.points, api.coord) return coordSys.dataToPoint(data); }, size: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"](dataToCoordSize, coordSys) } }; } /***/ }), /***/ "./node_modules/echarts/lib/coord/parallel/AxisModel.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/coord/parallel/AxisModel.js ***! \**************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _model_mixin_makeStyleMapper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../model/mixin/makeStyleMapper.js */ "./node_modules/echarts/lib/model/mixin/makeStyleMapper.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _axisModelCommonMixin_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../axisModelCommonMixin.js */ "./node_modules/echarts/lib/coord/axisModelCommonMixin.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ParallelAxisModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ParallelAxisModel, _super); function ParallelAxisModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ParallelAxisModel.type; /** * @readOnly */ _this.activeIntervals = []; return _this; } ParallelAxisModel.prototype.getAreaSelectStyle = function () { return Object(_model_mixin_makeStyleMapper_js__WEBPACK_IMPORTED_MODULE_3__["default"])([['fill', 'color'], ['lineWidth', 'borderWidth'], ['stroke', 'borderColor'], ['width', 'width'], ['opacity', 'opacity'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`. // So do not transfer decal directly. ])(this.getModel('areaSelectStyle')); }; /** * The code of this feature is put on AxisModel but not ParallelAxis, * because axisModel can be alive after echarts updating but instance of * ParallelAxis having been disposed. this._activeInterval should be kept * when action dispatched (i.e. legend click). * * @param intervals `interval.length === 0` means set all active. */ ParallelAxisModel.prototype.setActiveIntervals = function (intervals) { var activeIntervals = this.activeIntervals = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"](intervals); // Normalize if (activeIntervals) { for (var i = activeIntervals.length - 1; i >= 0; i--) { _util_number_js__WEBPACK_IMPORTED_MODULE_4__["asc"](activeIntervals[i]); } } }; /** * @param value When only attempting detect whether 'no activeIntervals set', * `value` is not needed to be input. */ ParallelAxisModel.prototype.getActiveState = function (value) { var activeIntervals = this.activeIntervals; if (!activeIntervals.length) { return 'normal'; } if (value == null || isNaN(+value)) { return 'inactive'; } // Simple optimization if (activeIntervals.length === 1) { var interval = activeIntervals[0]; if (interval[0] <= value && value <= interval[1]) { return 'active'; } } else { for (var i = 0, len = activeIntervals.length; i < len; i++) { if (activeIntervals[i][0] <= value && value <= activeIntervals[i][1]) { return 'active'; } } } return 'inactive'; }; return ParallelAxisModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_2__["default"]); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["mixin"](ParallelAxisModel, _axisModelCommonMixin_js__WEBPACK_IMPORTED_MODULE_5__["AxisModelCommonMixin"]); /* harmony default export */ __webpack_exports__["default"] = (ParallelAxisModel); /***/ }), /***/ "./node_modules/echarts/lib/coord/parallel/Parallel.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/coord/parallel/Parallel.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/matrix.js */ "./node_modules/zrender/lib/core/matrix.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../coord/axisHelper.js */ "./node_modules/echarts/lib/coord/axisHelper.js"); /* harmony import */ var _ParallelAxis_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ParallelAxis.js */ "./node_modules/echarts/lib/coord/parallel/ParallelAxis.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _component_helper_sliderMove_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../component/helper/sliderMove.js */ "./node_modules/echarts/lib/component/helper/sliderMove.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Parallel Coordinates * */ var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]; var mathMin = Math.min; var mathMax = Math.max; var mathFloor = Math.floor; var mathCeil = Math.ceil; var round = _util_number_js__WEBPACK_IMPORTED_MODULE_6__["round"]; var PI = Math.PI; var Parallel = /** @class */function () { function Parallel(parallelModel, ecModel, api) { this.type = 'parallel'; /** * key: dimension */ this._axesMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](); /** * key: dimension * value: {position: [], rotation, } */ this._axesLayout = {}; this.dimensions = parallelModel.dimensions; this._model = parallelModel; this._init(parallelModel, ecModel, api); } Parallel.prototype._init = function (parallelModel, ecModel, api) { var dimensions = parallelModel.dimensions; var parallelAxisIndex = parallelModel.parallelAxisIndex; each(dimensions, function (dim, idx) { var axisIndex = parallelAxisIndex[idx]; var axisModel = ecModel.getComponent('parallelAxis', axisIndex); var axis = this._axesMap.set(dim, new _ParallelAxis_js__WEBPACK_IMPORTED_MODULE_4__["default"](dim, _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["createScaleByModel"](axisModel), [0, 0], axisModel.get('type'), axisIndex)); var isCategory = axis.type === 'category'; axis.onBand = isCategory && axisModel.get('boundaryGap'); axis.inverse = axisModel.get('inverse'); // Injection axisModel.axis = axis; axis.model = axisModel; axis.coordinateSystem = axisModel.coordinateSystem = this; }, this); }; /** * Update axis scale after data processed */ Parallel.prototype.update = function (ecModel, api) { this._updateAxesFromSeries(this._model, ecModel); }; Parallel.prototype.containPoint = function (point) { var layoutInfo = this._makeLayoutInfo(); var axisBase = layoutInfo.axisBase; var layoutBase = layoutInfo.layoutBase; var pixelDimIndex = layoutInfo.pixelDimIndex; var pAxis = point[1 - pixelDimIndex]; var pLayout = point[pixelDimIndex]; return pAxis >= axisBase && pAxis <= axisBase + layoutInfo.axisLength && pLayout >= layoutBase && pLayout <= layoutBase + layoutInfo.layoutLength; }; Parallel.prototype.getModel = function () { return this._model; }; /** * Update properties from series */ Parallel.prototype._updateAxesFromSeries = function (parallelModel, ecModel) { ecModel.eachSeries(function (seriesModel) { if (!parallelModel.contains(seriesModel, ecModel)) { return; } var data = seriesModel.getData(); each(this.dimensions, function (dim) { var axis = this._axesMap.get(dim); axis.scale.unionExtentFromData(data, data.mapDimension(dim)); _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["niceScaleExtent"](axis.scale, axis.model); }, this); }, this); }; /** * Resize the parallel coordinate system. */ Parallel.prototype.resize = function (parallelModel, api) { this._rect = _util_layout_js__WEBPACK_IMPORTED_MODULE_2__["getLayoutRect"](parallelModel.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() }); this._layoutAxes(); }; Parallel.prototype.getRect = function () { return this._rect; }; Parallel.prototype._makeLayoutInfo = function () { var parallelModel = this._model; var rect = this._rect; var xy = ['x', 'y']; var wh = ['width', 'height']; var layout = parallelModel.get('layout'); var pixelDimIndex = layout === 'horizontal' ? 0 : 1; var layoutLength = rect[wh[pixelDimIndex]]; var layoutExtent = [0, layoutLength]; var axisCount = this.dimensions.length; var axisExpandWidth = restrict(parallelModel.get('axisExpandWidth'), layoutExtent); var axisExpandCount = restrict(parallelModel.get('axisExpandCount') || 0, [0, axisCount]); var axisExpandable = parallelModel.get('axisExpandable') && axisCount > 3 && axisCount > axisExpandCount && axisExpandCount > 1 && axisExpandWidth > 0 && layoutLength > 0; // `axisExpandWindow` is According to the coordinates of [0, axisExpandLength], // for sake of consider the case that axisCollapseWidth is 0 (when screen is narrow), // where collapsed axes should be overlapped. var axisExpandWindow = parallelModel.get('axisExpandWindow'); var winSize; if (!axisExpandWindow) { winSize = restrict(axisExpandWidth * (axisExpandCount - 1), layoutExtent); var axisExpandCenter = parallelModel.get('axisExpandCenter') || mathFloor(axisCount / 2); axisExpandWindow = [axisExpandWidth * axisExpandCenter - winSize / 2]; axisExpandWindow[1] = axisExpandWindow[0] + winSize; } else { winSize = restrict(axisExpandWindow[1] - axisExpandWindow[0], layoutExtent); axisExpandWindow[1] = axisExpandWindow[0] + winSize; } var axisCollapseWidth = (layoutLength - winSize) / (axisCount - axisExpandCount); // Avoid axisCollapseWidth is too small. axisCollapseWidth < 3 && (axisCollapseWidth = 0); // Find the first and last indices > ewin[0] and < ewin[1]. var winInnerIndices = [mathFloor(round(axisExpandWindow[0] / axisExpandWidth, 1)) + 1, mathCeil(round(axisExpandWindow[1] / axisExpandWidth, 1)) - 1]; // Pos in ec coordinates. var axisExpandWindow0Pos = axisCollapseWidth / axisExpandWidth * axisExpandWindow[0]; return { layout: layout, pixelDimIndex: pixelDimIndex, layoutBase: rect[xy[pixelDimIndex]], layoutLength: layoutLength, axisBase: rect[xy[1 - pixelDimIndex]], axisLength: rect[wh[1 - pixelDimIndex]], axisExpandable: axisExpandable, axisExpandWidth: axisExpandWidth, axisCollapseWidth: axisCollapseWidth, axisExpandWindow: axisExpandWindow, axisCount: axisCount, winInnerIndices: winInnerIndices, axisExpandWindow0Pos: axisExpandWindow0Pos }; }; Parallel.prototype._layoutAxes = function () { var rect = this._rect; var axes = this._axesMap; var dimensions = this.dimensions; var layoutInfo = this._makeLayoutInfo(); var layout = layoutInfo.layout; axes.each(function (axis) { var axisExtent = [0, layoutInfo.axisLength]; var idx = axis.inverse ? 1 : 0; axis.setExtent(axisExtent[idx], axisExtent[1 - idx]); }); each(dimensions, function (dim, idx) { var posInfo = (layoutInfo.axisExpandable ? layoutAxisWithExpand : layoutAxisWithoutExpand)(idx, layoutInfo); var positionTable = { horizontal: { x: posInfo.position, y: layoutInfo.axisLength }, vertical: { x: 0, y: posInfo.position } }; var rotationTable = { horizontal: PI / 2, vertical: 0 }; var position = [positionTable[layout].x + rect.x, positionTable[layout].y + rect.y]; var rotation = rotationTable[layout]; var transform = zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_1__["create"](); zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_1__["rotate"](transform, transform, rotation); zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_1__["translate"](transform, transform, position); // TODO // tick layout info // TODO // update dimensions info based on axis order. this._axesLayout[dim] = { position: position, rotation: rotation, transform: transform, axisNameAvailableWidth: posInfo.axisNameAvailableWidth, axisLabelShow: posInfo.axisLabelShow, nameTruncateMaxWidth: posInfo.nameTruncateMaxWidth, tickDirection: 1, labelDirection: 1 }; }, this); }; /** * Get axis by dim. */ Parallel.prototype.getAxis = function (dim) { return this._axesMap.get(dim); }; /** * Convert a dim value of a single item of series data to Point. */ Parallel.prototype.dataToPoint = function (value, dim) { return this.axisCoordToPoint(this._axesMap.get(dim).dataToCoord(value), dim); }; /** * Travel data for one time, get activeState of each data item. * @param start the start dataIndex that travel from. * @param end the next dataIndex of the last dataIndex will be travel. */ Parallel.prototype.eachActiveState = function (data, callback, start, end) { start == null && (start = 0); end == null && (end = data.count()); var axesMap = this._axesMap; var dimensions = this.dimensions; var dataDimensions = []; var axisModels = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](dimensions, function (axisDim) { dataDimensions.push(data.mapDimension(axisDim)); axisModels.push(axesMap.get(axisDim).model); }); var hasActiveSet = this.hasAxisBrushed(); for (var dataIndex = start; dataIndex < end; dataIndex++) { var activeState = void 0; if (!hasActiveSet) { activeState = 'normal'; } else { activeState = 'active'; var values = data.getValues(dataDimensions, dataIndex); for (var j = 0, lenj = dimensions.length; j < lenj; j++) { var state = axisModels[j].getActiveState(values[j]); if (state === 'inactive') { activeState = 'inactive'; break; } } } callback(activeState, dataIndex); } }; /** * Whether has any activeSet. */ Parallel.prototype.hasAxisBrushed = function () { var dimensions = this.dimensions; var axesMap = this._axesMap; var hasActiveSet = false; for (var j = 0, lenj = dimensions.length; j < lenj; j++) { if (axesMap.get(dimensions[j]).model.getActiveState() !== 'normal') { hasActiveSet = true; } } return hasActiveSet; }; /** * Convert coords of each axis to Point. * Return point. For example: [10, 20] */ Parallel.prototype.axisCoordToPoint = function (coord, dim) { var axisLayout = this._axesLayout[dim]; return _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["applyTransform"]([coord, 0], axisLayout.transform); }; /** * Get axis layout. */ Parallel.prototype.getAxisLayout = function (dim) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"](this._axesLayout[dim]); }; /** * @return {Object} {axisExpandWindow, delta, behavior: 'jump' | 'slide' | 'none'}. */ Parallel.prototype.getSlidedAxisExpandWindow = function (point) { var layoutInfo = this._makeLayoutInfo(); var pixelDimIndex = layoutInfo.pixelDimIndex; var axisExpandWindow = layoutInfo.axisExpandWindow.slice(); var winSize = axisExpandWindow[1] - axisExpandWindow[0]; var extent = [0, layoutInfo.axisExpandWidth * (layoutInfo.axisCount - 1)]; // Out of the area of coordinate system. if (!this.containPoint(point)) { return { behavior: 'none', axisExpandWindow: axisExpandWindow }; } // Convert the point from global to expand coordinates. var pointCoord = point[pixelDimIndex] - layoutInfo.layoutBase - layoutInfo.axisExpandWindow0Pos; // For dragging operation convenience, the window should not be // slided when mouse is the center area of the window. var delta; var behavior = 'slide'; var axisCollapseWidth = layoutInfo.axisCollapseWidth; var triggerArea = this._model.get('axisExpandSlideTriggerArea'); // But consider touch device, jump is necessary. var useJump = triggerArea[0] != null; if (axisCollapseWidth) { if (useJump && axisCollapseWidth && pointCoord < winSize * triggerArea[0]) { behavior = 'jump'; delta = pointCoord - winSize * triggerArea[2]; } else if (useJump && axisCollapseWidth && pointCoord > winSize * (1 - triggerArea[0])) { behavior = 'jump'; delta = pointCoord - winSize * (1 - triggerArea[2]); } else { (delta = pointCoord - winSize * triggerArea[1]) >= 0 && (delta = pointCoord - winSize * (1 - triggerArea[1])) <= 0 && (delta = 0); } delta *= layoutInfo.axisExpandWidth / axisCollapseWidth; delta ? Object(_component_helper_sliderMove_js__WEBPACK_IMPORTED_MODULE_7__["default"])(delta, axisExpandWindow, extent, 'all') // Avoid nonsense triger on mousemove. : behavior = 'none'; } // When screen is too narrow, make it visible and slidable, although it is hard to interact. else { var winSize2 = axisExpandWindow[1] - axisExpandWindow[0]; var pos = extent[1] * pointCoord / winSize2; axisExpandWindow = [mathMax(0, pos - winSize2 / 2)]; axisExpandWindow[1] = mathMin(extent[1], axisExpandWindow[0] + winSize2); axisExpandWindow[0] = axisExpandWindow[1] - winSize2; } return { axisExpandWindow: axisExpandWindow, behavior: behavior }; }; return Parallel; }(); function restrict(len, extent) { return mathMin(mathMax(len, extent[0]), extent[1]); } function layoutAxisWithoutExpand(axisIndex, layoutInfo) { var step = layoutInfo.layoutLength / (layoutInfo.axisCount - 1); return { position: step * axisIndex, axisNameAvailableWidth: step, axisLabelShow: true }; } function layoutAxisWithExpand(axisIndex, layoutInfo) { var layoutLength = layoutInfo.layoutLength; var axisExpandWidth = layoutInfo.axisExpandWidth; var axisCount = layoutInfo.axisCount; var axisCollapseWidth = layoutInfo.axisCollapseWidth; var winInnerIndices = layoutInfo.winInnerIndices; var position; var axisNameAvailableWidth = axisCollapseWidth; var axisLabelShow = false; var nameTruncateMaxWidth; if (axisIndex < winInnerIndices[0]) { position = axisIndex * axisCollapseWidth; nameTruncateMaxWidth = axisCollapseWidth; } else if (axisIndex <= winInnerIndices[1]) { position = layoutInfo.axisExpandWindow0Pos + axisIndex * axisExpandWidth - layoutInfo.axisExpandWindow[0]; axisNameAvailableWidth = axisExpandWidth; axisLabelShow = true; } else { position = layoutLength - (axisCount - 1 - axisIndex) * axisCollapseWidth; nameTruncateMaxWidth = axisCollapseWidth; } return { position: position, axisNameAvailableWidth: axisNameAvailableWidth, axisLabelShow: axisLabelShow, nameTruncateMaxWidth: nameTruncateMaxWidth }; } /* harmony default export */ __webpack_exports__["default"] = (Parallel); /***/ }), /***/ "./node_modules/echarts/lib/coord/parallel/ParallelAxis.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/coord/parallel/ParallelAxis.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Axis_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Axis.js */ "./node_modules/echarts/lib/coord/Axis.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ParallelAxis = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ParallelAxis, _super); function ParallelAxis(dim, scale, coordExtent, axisType, axisIndex) { var _this = _super.call(this, dim, scale, coordExtent) || this; _this.type = axisType || 'value'; _this.axisIndex = axisIndex; return _this; } ParallelAxis.prototype.isHorizontal = function () { return this.coordinateSystem.getModel().get('layout') !== 'horizontal'; }; return ParallelAxis; }(_Axis_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (ParallelAxis); /***/ }), /***/ "./node_modules/echarts/lib/coord/parallel/ParallelModel.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/coord/parallel/ParallelModel.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ParallelModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ParallelModel, _super); function ParallelModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = ParallelModel.type; return _this; } ParallelModel.prototype.init = function () { _super.prototype.init.apply(this, arguments); this.mergeOption({}); }; ParallelModel.prototype.mergeOption = function (newOption) { var thisOption = this.option; newOption && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](thisOption, newOption, true); this._initDimensions(); }; /** * Whether series or axis is in this coordinate system. */ ParallelModel.prototype.contains = function (model, ecModel) { var parallelIndex = model.get('parallelIndex'); return parallelIndex != null && ecModel.getComponent('parallel', parallelIndex) === this; }; ParallelModel.prototype.setAxisExpand = function (opt) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](['axisExpandable', 'axisExpandCenter', 'axisExpandCount', 'axisExpandWidth', 'axisExpandWindow'], function (name) { if (opt.hasOwnProperty(name)) { // @ts-ignore FIXME: why "never" inferred in this.option[name]? this.option[name] = opt[name]; } }, this); }; ParallelModel.prototype._initDimensions = function () { var dimensions = this.dimensions = []; var parallelAxisIndex = this.parallelAxisIndex = []; var axisModels = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"](this.ecModel.queryComponents({ mainType: 'parallelAxis' }), function (axisModel) { // Can not use this.contains here, because // initialization has not been completed yet. return (axisModel.get('parallelIndex') || 0) === this.componentIndex; }, this); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](axisModels, function (axisModel) { dimensions.push('dim' + axisModel.get('dim')); parallelAxisIndex.push(axisModel.componentIndex); }); }; ParallelModel.type = 'parallel'; ParallelModel.dependencies = ['parallelAxis']; ParallelModel.layoutMode = 'box'; ParallelModel.defaultOption = { // zlevel: 0, z: 0, left: 80, top: 60, right: 80, bottom: 60, // width: {totalWidth} - left - right, // height: {totalHeight} - top - bottom, layout: 'horizontal', // FIXME // naming? axisExpandable: false, axisExpandCenter: null, axisExpandCount: 0, axisExpandWidth: 50, axisExpandRate: 17, axisExpandDebounce: 50, // [out, in, jumpTarget]. In percentage. If use [null, 0.05], null means full. // Do not doc to user until necessary. axisExpandSlideTriggerArea: [-0.15, 0.05, 0.4], axisExpandTriggerOn: 'click', parallelAxisDefault: null }; return ParallelModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_2__["default"]); /* harmony default export */ __webpack_exports__["default"] = (ParallelModel); /***/ }), /***/ "./node_modules/echarts/lib/coord/parallel/parallelCreator.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/coord/parallel/parallelCreator.js ***! \********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Parallel_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Parallel.js */ "./node_modules/echarts/lib/coord/parallel/Parallel.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Parallel coordinate system creater. */ function createParallelCoordSys(ecModel, api) { var coordSysList = []; ecModel.eachComponent('parallel', function (parallelModel, idx) { var coordSys = new _Parallel_js__WEBPACK_IMPORTED_MODULE_0__["default"](parallelModel, ecModel, api); coordSys.name = 'parallel_' + idx; coordSys.resize(parallelModel, api); parallelModel.coordinateSystem = coordSys; coordSys.model = parallelModel; coordSysList.push(coordSys); }); // Inject the coordinateSystems into seriesModel ecModel.eachSeries(function (seriesModel) { if (seriesModel.get('coordinateSystem') === 'parallel') { var parallelModel = seriesModel.getReferringComponents('parallel', _util_model_js__WEBPACK_IMPORTED_MODULE_1__["SINGLE_REFERRING"]).models[0]; seriesModel.coordinateSystem = parallelModel.coordinateSystem; } }); return coordSysList; } var parallelCoordSysCreator = { create: createParallelCoordSys }; /* harmony default export */ __webpack_exports__["default"] = (parallelCoordSysCreator); /***/ }), /***/ "./node_modules/echarts/lib/coord/parallel/parallelPreprocessor.js": /*!*************************************************************************!*\ !*** ./node_modules/echarts/lib/coord/parallel/parallelPreprocessor.js ***! \*************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return parallelPreprocessor; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function parallelPreprocessor(option) { createParallelIfNeeded(option); mergeAxisOptionFromParallel(option); } /** * Create a parallel coordinate if not exists. * @inner */ function createParallelIfNeeded(option) { if (option.parallel) { return; } var hasParallelSeries = false; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](option.series, function (seriesOpt) { if (seriesOpt && seriesOpt.type === 'parallel') { hasParallelSeries = true; } }); if (hasParallelSeries) { option.parallel = [{}]; } } /** * Merge aixs definition from parallel option (if exists) to axis option. * @inner */ function mergeAxisOptionFromParallel(option) { var axes = _util_model_js__WEBPACK_IMPORTED_MODULE_1__["normalizeToArray"](option.parallelAxis); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](axes, function (axisOption) { if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](axisOption)) { return; } var parallelIndex = axisOption.parallelIndex || 0; var parallelOption = _util_model_js__WEBPACK_IMPORTED_MODULE_1__["normalizeToArray"](option.parallel)[parallelIndex]; if (parallelOption && parallelOption.parallelAxisDefault) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["merge"](axisOption, parallelOption.parallelAxisDefault, false); } }); } /***/ }), /***/ "./node_modules/echarts/lib/coord/polar/AngleAxis.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/coord/polar/AngleAxis.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/contain/text.js */ "./node_modules/zrender/lib/contain/text.js"); /* harmony import */ var _Axis_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Axis.js */ "./node_modules/echarts/lib/coord/Axis.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_3__["makeInner"])(); var AngleAxis = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AngleAxis, _super); function AngleAxis(scale, angleExtent) { return _super.call(this, 'angle', scale, angleExtent || [0, 360]) || this; } AngleAxis.prototype.pointToData = function (point, clamp) { return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1]; }; /** * Only be called in category axis. * Angle axis uses text height to decide interval * * @override * @return {number} Auto interval for cateogry axis tick and label */ AngleAxis.prototype.calculateCategoryInterval = function () { var axis = this; var labelModel = axis.getLabelModel(); var ordinalScale = axis.scale; var ordinalExtent = ordinalScale.getExtent(); // Providing this method is for optimization: // avoid generating a long array by `getTicks` // in large category data case. var tickCount = ordinalScale.count(); if (ordinalExtent[1] - ordinalExtent[0] < 1) { return 0; } var tickValue = ordinalExtent[0]; var unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue); var unitH = Math.abs(unitSpan); // Not precise, just use height as text width // and each distance from axis line yet. var rect = zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_1__["getBoundingRect"](tickValue == null ? '' : tickValue + '', labelModel.getFont(), 'center', 'top'); var maxH = Math.max(rect.height, 7); var dh = maxH / unitH; // 0/0 is NaN, 1/0 is Infinity. isNaN(dh) && (dh = Infinity); var interval = Math.max(0, Math.floor(dh)); var cache = inner(axis.model); var lastAutoInterval = cache.lastAutoInterval; var lastTickCount = cache.lastTickCount; // Use cache to keep interval stable while moving zoom window, // otherwise the calculated interval might jitter when the zoom // window size is close to the interval-changing size. if (lastAutoInterval != null && lastTickCount != null && Math.abs(lastAutoInterval - interval) <= 1 && Math.abs(lastTickCount - tickCount) <= 1 // Always choose the bigger one, otherwise the critical // point is not the same when zooming in or zooming out. && lastAutoInterval > interval) { interval = lastAutoInterval; } // Only update cache if cache not used, otherwise the // changing of interval is too insensitive. else { cache.lastTickCount = tickCount; cache.lastAutoInterval = interval; } return interval; }; return AngleAxis; }(_Axis_js__WEBPACK_IMPORTED_MODULE_2__["default"]); AngleAxis.prototype.dataToAngle = _Axis_js__WEBPACK_IMPORTED_MODULE_2__["default"].prototype.dataToCoord; AngleAxis.prototype.angleToData = _Axis_js__WEBPACK_IMPORTED_MODULE_2__["default"].prototype.coordToData; /* harmony default export */ __webpack_exports__["default"] = (AngleAxis); /***/ }), /***/ "./node_modules/echarts/lib/coord/polar/AxisModel.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/coord/polar/AxisModel.js ***! \***********************************************************/ /*! exports provided: PolarAxisModel, AngleAxisModel, RadiusAxisModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PolarAxisModel", function() { return PolarAxisModel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AngleAxisModel", function() { return AngleAxisModel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadiusAxisModel", function() { return RadiusAxisModel; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _axisModelCommonMixin_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../axisModelCommonMixin.js */ "./node_modules/echarts/lib/coord/axisModelCommonMixin.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PolarAxisModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PolarAxisModel, _super); function PolarAxisModel() { return _super !== null && _super.apply(this, arguments) || this; } PolarAxisModel.prototype.getCoordSysModel = function () { return this.getReferringComponents('polar', _util_model_js__WEBPACK_IMPORTED_MODULE_4__["SINGLE_REFERRING"]).models[0]; }; PolarAxisModel.type = 'polarAxis'; return PolarAxisModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_2__["default"]); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["mixin"](PolarAxisModel, _axisModelCommonMixin_js__WEBPACK_IMPORTED_MODULE_3__["AxisModelCommonMixin"]); var AngleAxisModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AngleAxisModel, _super); function AngleAxisModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = AngleAxisModel.type; return _this; } AngleAxisModel.type = 'angleAxis'; return AngleAxisModel; }(PolarAxisModel); var RadiusAxisModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RadiusAxisModel, _super); function RadiusAxisModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = RadiusAxisModel.type; return _this; } RadiusAxisModel.type = 'radiusAxis'; return RadiusAxisModel; }(PolarAxisModel); /***/ }), /***/ "./node_modules/echarts/lib/coord/polar/Polar.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/coord/polar/Polar.js ***! \*******************************************************/ /*! exports provided: polarDimensions, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polarDimensions", function() { return polarDimensions; }); /* harmony import */ var _RadiusAxis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RadiusAxis.js */ "./node_modules/echarts/lib/coord/polar/RadiusAxis.js"); /* harmony import */ var _AngleAxis_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AngleAxis.js */ "./node_modules/echarts/lib/coord/polar/AngleAxis.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var polarDimensions = ['radius', 'angle']; var Polar = /** @class */function () { function Polar(name) { this.dimensions = polarDimensions; this.type = 'polar'; /** * x of polar center */ this.cx = 0; /** * y of polar center */ this.cy = 0; this._radiusAxis = new _RadiusAxis_js__WEBPACK_IMPORTED_MODULE_0__["default"](); this._angleAxis = new _AngleAxis_js__WEBPACK_IMPORTED_MODULE_1__["default"](); this.axisPointerEnabled = true; this.name = name || ''; this._radiusAxis.polar = this._angleAxis.polar = this; } /** * If contain coord */ Polar.prototype.containPoint = function (point) { var coord = this.pointToCoord(point); return this._radiusAxis.contain(coord[0]) && this._angleAxis.contain(coord[1]); }; /** * If contain data */ Polar.prototype.containData = function (data) { return this._radiusAxis.containData(data[0]) && this._angleAxis.containData(data[1]); }; Polar.prototype.getAxis = function (dim) { var key = '_' + dim + 'Axis'; return this[key]; }; Polar.prototype.getAxes = function () { return [this._radiusAxis, this._angleAxis]; }; /** * Get axes by type of scale */ Polar.prototype.getAxesByScale = function (scaleType) { var axes = []; var angleAxis = this._angleAxis; var radiusAxis = this._radiusAxis; angleAxis.scale.type === scaleType && axes.push(angleAxis); radiusAxis.scale.type === scaleType && axes.push(radiusAxis); return axes; }; Polar.prototype.getAngleAxis = function () { return this._angleAxis; }; Polar.prototype.getRadiusAxis = function () { return this._radiusAxis; }; Polar.prototype.getOtherAxis = function (axis) { var angleAxis = this._angleAxis; return axis === angleAxis ? this._radiusAxis : angleAxis; }; /** * Base axis will be used on stacking. * */ Polar.prototype.getBaseAxis = function () { return this.getAxesByScale('ordinal')[0] || this.getAxesByScale('time')[0] || this.getAngleAxis(); }; Polar.prototype.getTooltipAxes = function (dim) { var baseAxis = dim != null && dim !== 'auto' ? this.getAxis(dim) : this.getBaseAxis(); return { baseAxes: [baseAxis], otherAxes: [this.getOtherAxis(baseAxis)] }; }; /** * Convert a single data item to (x, y) point. * Parameter data is an array which the first element is radius and the second is angle */ Polar.prototype.dataToPoint = function (data, clamp) { return this.coordToPoint([this._radiusAxis.dataToRadius(data[0], clamp), this._angleAxis.dataToAngle(data[1], clamp)]); }; /** * Convert a (x, y) point to data */ Polar.prototype.pointToData = function (point, clamp) { var coord = this.pointToCoord(point); return [this._radiusAxis.radiusToData(coord[0], clamp), this._angleAxis.angleToData(coord[1], clamp)]; }; /** * Convert a (x, y) point to (radius, angle) coord */ Polar.prototype.pointToCoord = function (point) { var dx = point[0] - this.cx; var dy = point[1] - this.cy; var angleAxis = this.getAngleAxis(); var extent = angleAxis.getExtent(); var minAngle = Math.min(extent[0], extent[1]); var maxAngle = Math.max(extent[0], extent[1]); // Fix fixed extent in polarCreator // FIXME angleAxis.inverse ? minAngle = maxAngle - 360 : maxAngle = minAngle + 360; var radius = Math.sqrt(dx * dx + dy * dy); dx /= radius; dy /= radius; var radian = Math.atan2(-dy, dx) / Math.PI * 180; // move to angleExtent var dir = radian < minAngle ? 1 : -1; while (radian < minAngle || radian > maxAngle) { radian += dir * 360; } return [radius, radian]; }; /** * Convert a (radius, angle) coord to (x, y) point */ Polar.prototype.coordToPoint = function (coord) { var radius = coord[0]; var radian = coord[1] / 180 * Math.PI; var x = Math.cos(radian) * radius + this.cx; // Inverse the y var y = -Math.sin(radian) * radius + this.cy; return [x, y]; }; /** * Get ring area of cartesian. * Area will have a contain function to determine if a point is in the coordinate system. */ Polar.prototype.getArea = function () { var angleAxis = this.getAngleAxis(); var radiusAxis = this.getRadiusAxis(); var radiusExtent = radiusAxis.getExtent().slice(); radiusExtent[0] > radiusExtent[1] && radiusExtent.reverse(); var angleExtent = angleAxis.getExtent(); var RADIAN = Math.PI / 180; var EPSILON = 1e-4; return { cx: this.cx, cy: this.cy, r0: radiusExtent[0], r: radiusExtent[1], startAngle: -angleExtent[0] * RADIAN, endAngle: -angleExtent[1] * RADIAN, clockwise: angleAxis.inverse, contain: function (x, y) { // It's a ring shape. // Start angle and end angle don't matter var dx = x - this.cx; var dy = y - this.cy; var d2 = dx * dx + dy * dy; var r = this.r; var r0 = this.r0; // minus a tiny value 1e-4 in double side to avoid being clipped unexpectedly // r == r0 contain nothing return r !== r0 && d2 - EPSILON <= r * r && d2 + EPSILON >= r0 * r0; } }; }; Polar.prototype.convertToPixel = function (ecModel, finder, value) { var coordSys = getCoordSys(finder); return coordSys === this ? this.dataToPoint(value) : null; }; Polar.prototype.convertFromPixel = function (ecModel, finder, pixel) { var coordSys = getCoordSys(finder); return coordSys === this ? this.pointToData(pixel) : null; }; return Polar; }(); function getCoordSys(finder) { var seriesModel = finder.seriesModel; var polarModel = finder.polarModel; return polarModel && polarModel.coordinateSystem || seriesModel && seriesModel.coordinateSystem; } /* harmony default export */ __webpack_exports__["default"] = (Polar); /***/ }), /***/ "./node_modules/echarts/lib/coord/polar/PolarModel.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/coord/polar/PolarModel.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PolarModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PolarModel, _super); function PolarModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = PolarModel.type; return _this; } PolarModel.prototype.findAxisModel = function (axisType) { var foundAxisModel; var ecModel = this.ecModel; ecModel.eachComponent(axisType, function (axisModel) { if (axisModel.getCoordSysModel() === this) { foundAxisModel = axisModel; } }, this); return foundAxisModel; }; PolarModel.type = 'polar'; PolarModel.dependencies = ['radiusAxis', 'angleAxis']; PolarModel.defaultOption = { // zlevel: 0, z: 0, center: ['50%', '50%'], radius: '80%' }; return PolarModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (PolarModel); /***/ }), /***/ "./node_modules/echarts/lib/coord/polar/RadiusAxis.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/coord/polar/RadiusAxis.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Axis_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Axis.js */ "./node_modules/echarts/lib/coord/Axis.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var RadiusAxis = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RadiusAxis, _super); function RadiusAxis(scale, radiusExtent) { return _super.call(this, 'radius', scale, radiusExtent) || this; } RadiusAxis.prototype.pointToData = function (point, clamp) { return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1]; }; return RadiusAxis; }(_Axis_js__WEBPACK_IMPORTED_MODULE_1__["default"]); RadiusAxis.prototype.dataToRadius = _Axis_js__WEBPACK_IMPORTED_MODULE_1__["default"].prototype.dataToCoord; RadiusAxis.prototype.radiusToData = _Axis_js__WEBPACK_IMPORTED_MODULE_1__["default"].prototype.coordToData; /* harmony default export */ __webpack_exports__["default"] = (RadiusAxis); /***/ }), /***/ "./node_modules/echarts/lib/coord/polar/polarCreator.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/coord/polar/polarCreator.js ***! \**************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _Polar_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Polar.js */ "./node_modules/echarts/lib/coord/polar/Polar.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../coord/axisHelper.js */ "./node_modules/echarts/lib/coord/axisHelper.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO Axis scale /** * Resize method bound to the polar */ function resizePolar(polar, polarModel, api) { var center = polarModel.get('center'); var width = api.getWidth(); var height = api.getHeight(); polar.cx = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(center[0], width); polar.cy = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(center[1], height); var radiusAxis = polar.getRadiusAxis(); var size = Math.min(width, height) / 2; var radius = polarModel.get('radius'); if (radius == null) { radius = [0, '100%']; } else if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](radius)) { // r0 = 0 radius = [0, radius]; } var parsedRadius = [Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(radius[0], size), Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(radius[1], size)]; radiusAxis.inverse ? radiusAxis.setExtent(parsedRadius[1], parsedRadius[0]) : radiusAxis.setExtent(parsedRadius[0], parsedRadius[1]); } /** * Update polar */ function updatePolarScale(ecModel, api) { var polar = this; var angleAxis = polar.getAngleAxis(); var radiusAxis = polar.getRadiusAxis(); // Reset scale angleAxis.scale.setExtent(Infinity, -Infinity); radiusAxis.scale.setExtent(Infinity, -Infinity); ecModel.eachSeries(function (seriesModel) { if (seriesModel.coordinateSystem === polar) { var data_1 = seriesModel.getData(); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](Object(_coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["getDataDimensionsOnAxis"])(data_1, 'radius'), function (dim) { radiusAxis.scale.unionExtentFromData(data_1, dim); }); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](Object(_coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["getDataDimensionsOnAxis"])(data_1, 'angle'), function (dim) { angleAxis.scale.unionExtentFromData(data_1, dim); }); } }); Object(_coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["niceScaleExtent"])(angleAxis.scale, angleAxis.model); Object(_coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["niceScaleExtent"])(radiusAxis.scale, radiusAxis.model); // Fix extent of category angle axis if (angleAxis.type === 'category' && !angleAxis.onBand) { var extent = angleAxis.getExtent(); var diff = 360 / angleAxis.scale.count(); angleAxis.inverse ? extent[1] += diff : extent[1] -= diff; angleAxis.setExtent(extent[0], extent[1]); } } function isAngleAxisModel(axisModel) { return axisModel.mainType === 'angleAxis'; } /** * Set common axis properties */ function setAxis(axis, axisModel) { var _a; axis.type = axisModel.get('type'); axis.scale = Object(_coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_3__["createScaleByModel"])(axisModel); axis.onBand = axisModel.get('boundaryGap') && axis.type === 'category'; axis.inverse = axisModel.get('inverse'); if (isAngleAxisModel(axisModel)) { axis.inverse = axis.inverse !== axisModel.get('clockwise'); var startAngle = axisModel.get('startAngle'); var endAngle = (_a = axisModel.get('endAngle')) !== null && _a !== void 0 ? _a : startAngle + (axis.inverse ? -360 : 360); axis.setExtent(startAngle, endAngle); } // Inject axis instance axisModel.axis = axis; axis.model = axisModel; } var polarCreator = { dimensions: _Polar_js__WEBPACK_IMPORTED_MODULE_1__["polarDimensions"], create: function (ecModel, api) { var polarList = []; ecModel.eachComponent('polar', function (polarModel, idx) { var polar = new _Polar_js__WEBPACK_IMPORTED_MODULE_1__["default"](idx + ''); // Inject resize and update method polar.update = updatePolarScale; var radiusAxis = polar.getRadiusAxis(); var angleAxis = polar.getAngleAxis(); var radiusAxisModel = polarModel.findAxisModel('radiusAxis'); var angleAxisModel = polarModel.findAxisModel('angleAxis'); setAxis(radiusAxis, radiusAxisModel); setAxis(angleAxis, angleAxisModel); resizePolar(polar, polarModel, api); polarList.push(polar); polarModel.coordinateSystem = polar; polar.model = polarModel; }); // Inject coordinateSystem to series ecModel.eachSeries(function (seriesModel) { if (seriesModel.get('coordinateSystem') === 'polar') { var polarModel = seriesModel.getReferringComponents('polar', _util_model_js__WEBPACK_IMPORTED_MODULE_4__["SINGLE_REFERRING"]).models[0]; if (true) { if (!polarModel) { throw new Error('Polar "' + zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve"](seriesModel.get('polarIndex'), seriesModel.get('polarId'), 0) + '" not found'); } } seriesModel.coordinateSystem = polarModel.coordinateSystem; } }); return polarList; } }; /* harmony default export */ __webpack_exports__["default"] = (polarCreator); /***/ }), /***/ "./node_modules/echarts/lib/coord/polar/prepareCustom.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/coord/polar/prepareCustom.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return polarPrepareCustom; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // import AngleAxis from './AngleAxis.js'; function dataToCoordSize(dataSize, dataItem) { // dataItem is necessary in log axis. dataItem = dataItem || [0, 0]; return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](['Radius', 'Angle'], function (dim, dimIdx) { var getterName = 'get' + dim + 'Axis'; // TODO: TYPE Check Angle Axis var axis = this[getterName](); var val = dataItem[dimIdx]; var halfSize = dataSize[dimIdx] / 2; var result = axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize)); if (dim === 'Angle') { result = result * Math.PI / 180; } return result; }, this); } function polarPrepareCustom(coordSys) { var radiusAxis = coordSys.getRadiusAxis(); var angleAxis = coordSys.getAngleAxis(); var radius = radiusAxis.getExtent(); radius[0] > radius[1] && radius.reverse(); return { coordSys: { type: 'polar', cx: coordSys.cx, cy: coordSys.cy, r: radius[1], r0: radius[0] }, api: { coord: function (data) { var radius = radiusAxis.dataToRadius(data[0]); var angle = angleAxis.dataToAngle(data[1]); var coord = coordSys.coordToPoint([radius, angle]); coord.push(radius, angle * Math.PI / 180); return coord; }, size: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"](dataToCoordSize, coordSys) } }; } /***/ }), /***/ "./node_modules/echarts/lib/coord/radar/IndicatorAxis.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/coord/radar/IndicatorAxis.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Axis_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Axis.js */ "./node_modules/echarts/lib/coord/Axis.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var IndicatorAxis = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(IndicatorAxis, _super); function IndicatorAxis(dim, scale, radiusExtent) { var _this = _super.call(this, dim, scale, radiusExtent) || this; _this.type = 'value'; _this.angle = 0; _this.name = ''; return _this; } return IndicatorAxis; }(_Axis_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (IndicatorAxis); /***/ }), /***/ "./node_modules/echarts/lib/coord/radar/Radar.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/coord/radar/Radar.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _IndicatorAxis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./IndicatorAxis.js */ "./node_modules/echarts/lib/coord/radar/IndicatorAxis.js"); /* harmony import */ var _scale_Interval_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../scale/Interval.js */ "./node_modules/echarts/lib/scale/Interval.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _axisAlignTicks_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../axisAlignTicks.js */ "./node_modules/echarts/lib/coord/axisAlignTicks.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO clockwise var Radar = /** @class */function () { function Radar(radarModel, ecModel, api) { /** * * Radar dimensions */ this.dimensions = []; this._model = radarModel; this._indicatorAxes = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["map"])(radarModel.getIndicatorModels(), function (indicatorModel, idx) { var dim = 'indicator_' + idx; var indicatorAxis = new _IndicatorAxis_js__WEBPACK_IMPORTED_MODULE_0__["default"](dim, new _scale_Interval_js__WEBPACK_IMPORTED_MODULE_1__["default"]() // (indicatorModel.get('axisType') === 'log') ? new LogScale() : new IntervalScale() ); indicatorAxis.name = indicatorModel.get('name'); // Inject model and axis indicatorAxis.model = indicatorModel; indicatorModel.axis = indicatorAxis; this.dimensions.push(dim); return indicatorAxis; }, this); this.resize(radarModel, api); } Radar.prototype.getIndicatorAxes = function () { return this._indicatorAxes; }; Radar.prototype.dataToPoint = function (value, indicatorIndex) { var indicatorAxis = this._indicatorAxes[indicatorIndex]; return this.coordToPoint(indicatorAxis.dataToCoord(value), indicatorIndex); }; // TODO: API should be coordToPoint([coord, indicatorIndex]) Radar.prototype.coordToPoint = function (coord, indicatorIndex) { var indicatorAxis = this._indicatorAxes[indicatorIndex]; var angle = indicatorAxis.angle; var x = this.cx + coord * Math.cos(angle); var y = this.cy - coord * Math.sin(angle); return [x, y]; }; Radar.prototype.pointToData = function (pt) { var dx = pt[0] - this.cx; var dy = pt[1] - this.cy; var radius = Math.sqrt(dx * dx + dy * dy); dx /= radius; dy /= radius; var radian = Math.atan2(-dy, dx); // Find the closest angle // FIXME index can calculated directly var minRadianDiff = Infinity; var closestAxis; var closestAxisIdx = -1; for (var i = 0; i < this._indicatorAxes.length; i++) { var indicatorAxis = this._indicatorAxes[i]; var diff = Math.abs(radian - indicatorAxis.angle); if (diff < minRadianDiff) { closestAxis = indicatorAxis; closestAxisIdx = i; minRadianDiff = diff; } } return [closestAxisIdx, +(closestAxis && closestAxis.coordToData(radius))]; }; Radar.prototype.resize = function (radarModel, api) { var center = radarModel.get('center'); var viewWidth = api.getWidth(); var viewHeight = api.getHeight(); var viewSize = Math.min(viewWidth, viewHeight) / 2; this.cx = _util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"](center[0], viewWidth); this.cy = _util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"](center[1], viewHeight); this.startAngle = radarModel.get('startAngle') * Math.PI / 180; // radius may be single value like `20`, `'80%'`, or array like `[10, '80%']` var radius = radarModel.get('radius'); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["isString"])(radius) || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["isNumber"])(radius)) { radius = [0, radius]; } this.r0 = _util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"](radius[0], viewSize); this.r = _util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"](radius[1], viewSize); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(this._indicatorAxes, function (indicatorAxis, idx) { indicatorAxis.setExtent(this.r0, this.r); var angle = this.startAngle + idx * Math.PI * 2 / this._indicatorAxes.length; // Normalize to [-PI, PI] angle = Math.atan2(Math.sin(angle), Math.cos(angle)); indicatorAxis.angle = angle; }, this); }; Radar.prototype.update = function (ecModel, api) { var indicatorAxes = this._indicatorAxes; var radarModel = this._model; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(indicatorAxes, function (indicatorAxis) { indicatorAxis.scale.setExtent(Infinity, -Infinity); }); ecModel.eachSeriesByType('radar', function (radarSeries, idx) { if (radarSeries.get('coordinateSystem') !== 'radar' // @ts-ignore || ecModel.getComponent('radar', radarSeries.get('radarIndex')) !== radarModel) { return; } var data = radarSeries.getData(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(indicatorAxes, function (indicatorAxis) { indicatorAxis.scale.unionExtentFromData(data, data.mapDimension(indicatorAxis.dim)); }); }, this); var splitNumber = radarModel.get('splitNumber'); var dummyScale = new _scale_Interval_js__WEBPACK_IMPORTED_MODULE_1__["default"](); dummyScale.setExtent(0, splitNumber); dummyScale.setInterval(1); // Force all the axis fixing the maxSplitNumber. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(indicatorAxes, function (indicatorAxis, idx) { Object(_axisAlignTicks_js__WEBPACK_IMPORTED_MODULE_4__["alignScaleTicks"])(indicatorAxis.scale, indicatorAxis.model, dummyScale); }); }; Radar.prototype.convertToPixel = function (ecModel, finder, value) { console.warn('Not implemented.'); return null; }; Radar.prototype.convertFromPixel = function (ecModel, finder, pixel) { console.warn('Not implemented.'); return null; }; Radar.prototype.containPoint = function (point) { console.warn('Not implemented.'); return false; }; Radar.create = function (ecModel, api) { var radarList = []; ecModel.eachComponent('radar', function (radarModel) { var radar = new Radar(radarModel, ecModel, api); radarList.push(radar); radarModel.coordinateSystem = radar; }); ecModel.eachSeriesByType('radar', function (radarSeries) { if (radarSeries.get('coordinateSystem') === 'radar') { // Inject coordinate system // @ts-ignore radarSeries.coordinateSystem = radarList[radarSeries.get('radarIndex') || 0]; } }); return radarList; }; /** * Radar dimensions is based on the data */ Radar.dimensions = []; return Radar; }(); /* harmony default export */ __webpack_exports__["default"] = (Radar); /***/ }), /***/ "./node_modules/echarts/lib/coord/radar/RadarModel.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/coord/radar/RadarModel.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _axisDefault_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../axisDefault.js */ "./node_modules/echarts/lib/coord/axisDefault.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _axisModelCommonMixin_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../axisModelCommonMixin.js */ "./node_modules/echarts/lib/coord/axisModelCommonMixin.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var valueAxisDefault = _axisDefault_js__WEBPACK_IMPORTED_MODULE_2__["default"].value; function defaultsShow(opt, show) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]({ show: show }, opt); } var RadarModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RadarModel, _super); function RadarModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = RadarModel.type; return _this; } RadarModel.prototype.optionUpdated = function () { var boundaryGap = this.get('boundaryGap'); var splitNumber = this.get('splitNumber'); var scale = this.get('scale'); var axisLine = this.get('axisLine'); var axisTick = this.get('axisTick'); // let axisType = this.get('axisType'); var axisLabel = this.get('axisLabel'); var nameTextStyle = this.get('axisName'); var showName = this.get(['axisName', 'show']); var nameFormatter = this.get(['axisName', 'formatter']); var nameGap = this.get('axisNameGap'); var triggerEvent = this.get('triggerEvent'); var indicatorModels = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](this.get('indicator') || [], function (indicatorOpt) { // PENDING if (indicatorOpt.max != null && indicatorOpt.max > 0 && !indicatorOpt.min) { indicatorOpt.min = 0; } else if (indicatorOpt.min != null && indicatorOpt.min < 0 && !indicatorOpt.max) { indicatorOpt.max = 0; } var iNameTextStyle = nameTextStyle; if (indicatorOpt.color != null) { iNameTextStyle = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["defaults"]({ color: indicatorOpt.color }, nameTextStyle); } // Use same configuration var innerIndicatorOpt = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"](indicatorOpt), { boundaryGap: boundaryGap, splitNumber: splitNumber, scale: scale, axisLine: axisLine, axisTick: axisTick, // axisType: axisType, axisLabel: axisLabel, // Compatible with 2 and use text name: indicatorOpt.text, showName: showName, nameLocation: 'end', nameGap: nameGap, // min: 0, nameTextStyle: iNameTextStyle, triggerEvent: triggerEvent }, false); if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"](nameFormatter)) { var indName = innerIndicatorOpt.name; innerIndicatorOpt.name = nameFormatter.replace('{value}', indName != null ? indName : ''); } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"](nameFormatter)) { innerIndicatorOpt.name = nameFormatter(innerIndicatorOpt.name, innerIndicatorOpt); } var model = new _model_Model_js__WEBPACK_IMPORTED_MODULE_3__["default"](innerIndicatorOpt, null, this.ecModel); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["mixin"](model, _axisModelCommonMixin_js__WEBPACK_IMPORTED_MODULE_4__["AxisModelCommonMixin"].prototype); // For triggerEvent. model.mainType = 'radar'; model.componentIndex = this.componentIndex; return model; }, this); this._indicatorModels = indicatorModels; }; RadarModel.prototype.getIndicatorModels = function () { return this._indicatorModels; }; RadarModel.type = 'radar'; RadarModel.defaultOption = { // zlevel: 0, z: 0, center: ['50%', '50%'], radius: '75%', startAngle: 90, axisName: { show: true // formatter: null // textStyle: {} }, boundaryGap: [0, 0], splitNumber: 5, axisNameGap: 15, scale: false, // Polygon or circle shape: 'polygon', axisLine: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"]({ lineStyle: { color: '#bbb' } }, valueAxisDefault.axisLine), axisLabel: defaultsShow(valueAxisDefault.axisLabel, false), axisTick: defaultsShow(valueAxisDefault.axisTick, false), // axisType: 'value', splitLine: defaultsShow(valueAxisDefault.splitLine, true), splitArea: defaultsShow(valueAxisDefault.splitArea, true), // {text, min, max} indicator: [] }; return RadarModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_5__["default"]); /* harmony default export */ __webpack_exports__["default"] = (RadarModel); /***/ }), /***/ "./node_modules/echarts/lib/coord/scaleRawExtentInfo.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/coord/scaleRawExtentInfo.js ***! \**************************************************************/ /*! exports provided: ScaleRawExtentInfo, ensureScaleRawExtentInfo, parseAxisModelMinMax */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScaleRawExtentInfo", function() { return ScaleRawExtentInfo; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ensureScaleRawExtentInfo", function() { return ensureScaleRawExtentInfo; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseAxisModelMinMax", function() { return parseAxisModelMinMax; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/contain/text.js */ "./node_modules/zrender/lib/contain/text.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ScaleRawExtentInfo = /** @class */function () { function ScaleRawExtentInfo(scale, model, // Usually: data extent from all series on this axis. originalExtent) { this._prepareParams(scale, model, originalExtent); } /** * Parameters depending on outside (like model, user callback) * are prepared and fixed here. */ ScaleRawExtentInfo.prototype._prepareParams = function (scale, model, // Usually: data extent from all series on this axis. dataExtent) { if (dataExtent[1] < dataExtent[0]) { dataExtent = [NaN, NaN]; } this._dataMin = dataExtent[0]; this._dataMax = dataExtent[1]; var isOrdinal = this._isOrdinal = scale.type === 'ordinal'; this._needCrossZero = scale.type === 'interval' && model.getNeedCrossZero && model.getNeedCrossZero(); var axisMinValue = model.get('min', true); if (axisMinValue == null) { axisMinValue = model.get('startValue', true); } var modelMinRaw = this._modelMinRaw = axisMinValue; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(modelMinRaw)) { // This callback always provides users the full data extent (before data is filtered). this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw({ min: dataExtent[0], max: dataExtent[1] })); } else if (modelMinRaw !== 'dataMin') { this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw); } var modelMaxRaw = this._modelMaxRaw = model.get('max', true); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(modelMaxRaw)) { // This callback always provides users the full data extent (before data is filtered). this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw({ min: dataExtent[0], max: dataExtent[1] })); } else if (modelMaxRaw !== 'dataMax') { this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw); } if (isOrdinal) { // FIXME: there is a flaw here: if there is no "block" data processor like `dataZoom`, // and progressive rendering is using, here the category result might just only contain // the processed chunk rather than the entire result. this._axisDataLen = model.getCategories().length; } else { var boundaryGap = model.get('boundaryGap'); var boundaryGapArr = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(boundaryGap) ? boundaryGap : [boundaryGap || 0, boundaryGap || 0]; if (typeof boundaryGapArr[0] === 'boolean' || typeof boundaryGapArr[1] === 'boolean') { if (true) { console.warn('Boolean type for boundaryGap is only ' + 'allowed for ordinal axis. Please use string in ' + 'percentage instead, e.g., "20%". Currently, ' + 'boundaryGap is set to be 0.'); } this._boundaryGapInner = [0, 0]; } else { this._boundaryGapInner = [Object(zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(boundaryGapArr[0], 1), Object(zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(boundaryGapArr[1], 1)]; } } }; /** * Calculate extent by prepared parameters. * This method has no external dependency and can be called duplicatedly, * getting the same result. * If parameters changed, should call this method to recalcuate. */ ScaleRawExtentInfo.prototype.calculate = function () { // Notice: When min/max is not set (that is, when there are null/undefined, // which is the most common case), these cases should be ensured: // (1) For 'ordinal', show all axis.data. // (2) For others: // + `boundaryGap` is applied (if min/max set, boundaryGap is // disabled). // + If `needCrossZero`, min/max should be zero, otherwise, min/max should // be the result that originalExtent enlarged by boundaryGap. // (3) If no data, it should be ensured that `scale.setBlank` is set. var isOrdinal = this._isOrdinal; var dataMin = this._dataMin; var dataMax = this._dataMax; var axisDataLen = this._axisDataLen; var boundaryGapInner = this._boundaryGapInner; var span = !isOrdinal ? dataMax - dataMin || Math.abs(dataMin) : null; // Currently if a `'value'` axis model min is specified as 'dataMin'/'dataMax', // `boundaryGap` will not be used. It's the different from specifying as `null`/`undefined`. var min = this._modelMinRaw === 'dataMin' ? dataMin : this._modelMinNum; var max = this._modelMaxRaw === 'dataMax' ? dataMax : this._modelMaxNum; // If `_modelMinNum`/`_modelMaxNum` is `null`/`undefined`, should not be fixed. var minFixed = min != null; var maxFixed = max != null; if (min == null) { min = isOrdinal ? axisDataLen ? 0 : NaN : dataMin - boundaryGapInner[0] * span; } if (max == null) { max = isOrdinal ? axisDataLen ? axisDataLen - 1 : NaN : dataMax + boundaryGapInner[1] * span; } (min == null || !isFinite(min)) && (min = NaN); (max == null || !isFinite(max)) && (max = NaN); var isBlank = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["eqNaN"])(min) || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["eqNaN"])(max) || isOrdinal && !axisDataLen; // If data extent modified, need to recalculated to ensure cross zero. if (this._needCrossZero) { // Axis is over zero and min is not set if (min > 0 && max > 0 && !minFixed) { min = 0; // minFixed = true; } // Axis is under zero and max is not set if (min < 0 && max < 0 && !maxFixed) { max = 0; // maxFixed = true; } // PENDING: // When `needCrossZero` and all data is positive/negative, should it be ensured // that the results processed by boundaryGap are positive/negative? // If so, here `minFixed`/`maxFixed` need to be set. } var determinedMin = this._determinedMin; var determinedMax = this._determinedMax; if (determinedMin != null) { min = determinedMin; minFixed = true; } if (determinedMax != null) { max = determinedMax; maxFixed = true; } // Ensure min/max be finite number or NaN here. (not to be null/undefined) // `NaN` means min/max axis is blank. return { min: min, max: max, minFixed: minFixed, maxFixed: maxFixed, isBlank: isBlank }; }; ScaleRawExtentInfo.prototype.modifyDataMinMax = function (minMaxName, val) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(!this.frozen); } this[DATA_MIN_MAX_ATTR[minMaxName]] = val; }; ScaleRawExtentInfo.prototype.setDeterminedMinMax = function (minMaxName, val) { var attr = DETERMINED_MIN_MAX_ATTR[minMaxName]; if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(!this.frozen // Earse them usually means logic flaw. && this[attr] == null); } this[attr] = val; }; ScaleRawExtentInfo.prototype.freeze = function () { // @ts-ignore this.frozen = true; }; return ScaleRawExtentInfo; }(); var DETERMINED_MIN_MAX_ATTR = { min: '_determinedMin', max: '_determinedMax' }; var DATA_MIN_MAX_ATTR = { min: '_dataMin', max: '_dataMax' }; /** * Get scale min max and related info only depends on model settings. * This method can be called after coordinate system created. * For example, in data processing stage. * * Scale extent info probably be required multiple times during a workflow. * For example: * (1) `dataZoom` depends it to get the axis extent in "100%" state. * (2) `processor/extentCalculator` depends it to make sure whether axis extent is specified. * (3) `coordSys.update` use it to finally decide the scale extent. * But the callback of `min`/`max` should not be called multiple times. * The code below should not be implemented repeatedly either. * So we cache the result in the scale instance, which will be recreated at the beginning * of the workflow (because `scale` instance will be recreated each round of the workflow). */ function ensureScaleRawExtentInfo(scale, model, // Usually: data extent from all series on this axis. originalExtent) { // Do not permit to recreate. var rawExtentInfo = scale.rawExtentInfo; if (rawExtentInfo) { return rawExtentInfo; } rawExtentInfo = new ScaleRawExtentInfo(scale, model, originalExtent); // @ts-ignore scale.rawExtentInfo = rawExtentInfo; return rawExtentInfo; } function parseAxisModelMinMax(scale, minMax) { return minMax == null ? null : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["eqNaN"])(minMax) ? NaN : scale.parse(minMax); } /***/ }), /***/ "./node_modules/echarts/lib/coord/single/AxisModel.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/coord/single/AxisModel.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _axisModelCommonMixin_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../axisModelCommonMixin.js */ "./node_modules/echarts/lib/coord/axisModelCommonMixin.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SingleAxisModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SingleAxisModel, _super); function SingleAxisModel() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = SingleAxisModel.type; return _this; } SingleAxisModel.prototype.getCoordSysModel = function () { return this; }; SingleAxisModel.type = 'singleAxis'; SingleAxisModel.layoutMode = 'box'; SingleAxisModel.defaultOption = { left: '5%', top: '5%', right: '5%', bottom: '5%', type: 'value', position: 'bottom', orient: 'horizontal', axisLine: { show: true, lineStyle: { width: 1, type: 'solid' } }, // Single coordinate system and single axis is the, // which is used as the parent tooltip model. // same model, so we set default tooltip show as true. tooltip: { show: true }, axisTick: { show: true, length: 6, lineStyle: { width: 1 } }, axisLabel: { show: true, interval: 'auto' }, splitLine: { show: true, lineStyle: { type: 'dashed', opacity: 0.2 } } }; return SingleAxisModel; }(_model_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"]); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["mixin"])(SingleAxisModel, _axisModelCommonMixin_js__WEBPACK_IMPORTED_MODULE_2__["AxisModelCommonMixin"].prototype); /* harmony default export */ __webpack_exports__["default"] = (SingleAxisModel); /***/ }), /***/ "./node_modules/echarts/lib/coord/single/Single.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/coord/single/Single.js ***! \*********************************************************/ /*! exports provided: singleDimensions, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "singleDimensions", function() { return singleDimensions; }); /* harmony import */ var _SingleAxis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SingleAxis.js */ "./node_modules/echarts/lib/coord/single/SingleAxis.js"); /* harmony import */ var _axisHelper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../axisHelper.js */ "./node_modules/echarts/lib/coord/axisHelper.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Single coordinates system. */ var singleDimensions = ['single']; /** * Create a single coordinates system. */ var Single = /** @class */function () { function Single(axisModel, ecModel, api) { this.type = 'single'; this.dimension = 'single'; /** * Add it just for draw tooltip. */ this.dimensions = singleDimensions; this.axisPointerEnabled = true; this.model = axisModel; this._init(axisModel, ecModel, api); } /** * Initialize single coordinate system. */ Single.prototype._init = function (axisModel, ecModel, api) { var dim = this.dimension; var axis = new _SingleAxis_js__WEBPACK_IMPORTED_MODULE_0__["default"](dim, _axisHelper_js__WEBPACK_IMPORTED_MODULE_1__["createScaleByModel"](axisModel), [0, 0], axisModel.get('type'), axisModel.get('position')); var isCategory = axis.type === 'category'; axis.onBand = isCategory && axisModel.get('boundaryGap'); axis.inverse = axisModel.get('inverse'); axis.orient = axisModel.get('orient'); axisModel.axis = axis; axis.model = axisModel; axis.coordinateSystem = this; this._axis = axis; }; /** * Update axis scale after data processed */ Single.prototype.update = function (ecModel, api) { ecModel.eachSeries(function (seriesModel) { if (seriesModel.coordinateSystem === this) { var data_1 = seriesModel.getData(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_3__["each"])(data_1.mapDimensionsAll(this.dimension), function (dim) { this._axis.scale.unionExtentFromData(data_1, dim); }, this); _axisHelper_js__WEBPACK_IMPORTED_MODULE_1__["niceScaleExtent"](this._axis.scale, this._axis.model); } }, this); }; /** * Resize the single coordinate system. */ Single.prototype.resize = function (axisModel, api) { this._rect = Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_2__["getLayoutRect"])({ left: axisModel.get('left'), top: axisModel.get('top'), right: axisModel.get('right'), bottom: axisModel.get('bottom'), width: axisModel.get('width'), height: axisModel.get('height') }, { width: api.getWidth(), height: api.getHeight() }); this._adjustAxis(); }; Single.prototype.getRect = function () { return this._rect; }; Single.prototype._adjustAxis = function () { var rect = this._rect; var axis = this._axis; var isHorizontal = axis.isHorizontal(); var extent = isHorizontal ? [0, rect.width] : [0, rect.height]; var idx = axis.inverse ? 1 : 0; axis.setExtent(extent[idx], extent[1 - idx]); this._updateAxisTransform(axis, isHorizontal ? rect.x : rect.y); }; Single.prototype._updateAxisTransform = function (axis, coordBase) { var axisExtent = axis.getExtent(); var extentSum = axisExtent[0] + axisExtent[1]; var isHorizontal = axis.isHorizontal(); axis.toGlobalCoord = isHorizontal ? function (coord) { return coord + coordBase; } : function (coord) { return extentSum - coord + coordBase; }; axis.toLocalCoord = isHorizontal ? function (coord) { return coord - coordBase; } : function (coord) { return extentSum - coord + coordBase; }; }; /** * Get axis. */ Single.prototype.getAxis = function () { return this._axis; }; /** * Get axis, add it just for draw tooltip. */ Single.prototype.getBaseAxis = function () { return this._axis; }; Single.prototype.getAxes = function () { return [this._axis]; }; Single.prototype.getTooltipAxes = function () { return { baseAxes: [this.getAxis()], // Empty otherAxes otherAxes: [] }; }; /** * If contain point. */ Single.prototype.containPoint = function (point) { var rect = this.getRect(); var axis = this.getAxis(); var orient = axis.orient; if (orient === 'horizontal') { return axis.contain(axis.toLocalCoord(point[0])) && point[1] >= rect.y && point[1] <= rect.y + rect.height; } else { return axis.contain(axis.toLocalCoord(point[1])) && point[0] >= rect.y && point[0] <= rect.y + rect.height; } }; Single.prototype.pointToData = function (point) { var axis = this.getAxis(); return [axis.coordToData(axis.toLocalCoord(point[axis.orient === 'horizontal' ? 0 : 1]))]; }; /** * Convert the series data to concrete point. * Can be [val] | val */ Single.prototype.dataToPoint = function (val) { var axis = this.getAxis(); var rect = this.getRect(); var pt = []; var idx = axis.orient === 'horizontal' ? 0 : 1; if (val instanceof Array) { val = val[0]; } pt[idx] = axis.toGlobalCoord(axis.dataToCoord(+val)); pt[1 - idx] = idx === 0 ? rect.y + rect.height / 2 : rect.x + rect.width / 2; return pt; }; Single.prototype.convertToPixel = function (ecModel, finder, value) { var coordSys = getCoordSys(finder); return coordSys === this ? this.dataToPoint(value) : null; }; Single.prototype.convertFromPixel = function (ecModel, finder, pixel) { var coordSys = getCoordSys(finder); return coordSys === this ? this.pointToData(pixel) : null; }; return Single; }(); function getCoordSys(finder) { var seriesModel = finder.seriesModel; var singleModel = finder.singleAxisModel; return singleModel && singleModel.coordinateSystem || seriesModel && seriesModel.coordinateSystem; } /* harmony default export */ __webpack_exports__["default"] = (Single); /***/ }), /***/ "./node_modules/echarts/lib/coord/single/SingleAxis.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/coord/single/SingleAxis.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Axis_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Axis.js */ "./node_modules/echarts/lib/coord/Axis.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SingleAxis = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SingleAxis, _super); function SingleAxis(dim, scale, coordExtent, axisType, position) { var _this = _super.call(this, dim, scale, coordExtent) || this; _this.type = axisType || 'value'; _this.position = position || 'bottom'; return _this; } /** * Judge the orient of the axis. */ SingleAxis.prototype.isHorizontal = function () { var position = this.position; return position === 'top' || position === 'bottom'; }; SingleAxis.prototype.pointToData = function (point, clamp) { return this.coordinateSystem.pointToData(point)[0]; }; return SingleAxis; }(_Axis_js__WEBPACK_IMPORTED_MODULE_1__["default"]); /* harmony default export */ __webpack_exports__["default"] = (SingleAxis); /***/ }), /***/ "./node_modules/echarts/lib/coord/single/prepareCustom.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/coord/single/prepareCustom.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return singlePrepareCustom; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function dataToCoordSize(dataSize, dataItem) { // dataItem is necessary in log axis. var axis = this.getAxis(); var val = dataItem instanceof Array ? dataItem[0] : dataItem; var halfSize = (dataSize instanceof Array ? dataSize[0] : dataSize) / 2; return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize)); } function singlePrepareCustom(coordSys) { var rect = coordSys.getRect(); return { coordSys: { type: 'singleAxis', x: rect.x, y: rect.y, width: rect.width, height: rect.height }, api: { coord: function (val) { // do not provide "out" param return coordSys.dataToPoint(val); }, size: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"])(dataToCoordSize, coordSys) } }; } /***/ }), /***/ "./node_modules/echarts/lib/coord/single/singleAxisHelper.js": /*!*******************************************************************!*\ !*** ./node_modules/echarts/lib/coord/single/singleAxisHelper.js ***! \*******************************************************************/ /*! exports provided: layout */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "layout", function() { return layout; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function layout(axisModel, opt) { opt = opt || {}; var single = axisModel.coordinateSystem; var axis = axisModel.axis; var layout = {}; var axisPosition = axis.position; var orient = axis.orient; var rect = single.getRect(); var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height]; var positionMap = { horizontal: { top: rectBound[2], bottom: rectBound[3] }, vertical: { left: rectBound[0], right: rectBound[1] } }; layout.position = [orient === 'vertical' ? positionMap.vertical[axisPosition] : rectBound[0], orient === 'horizontal' ? positionMap.horizontal[axisPosition] : rectBound[3]]; var r = { horizontal: 0, vertical: 1 }; layout.rotation = Math.PI / 2 * r[orient]; var directionMap = { top: -1, bottom: 1, right: 1, left: -1 }; layout.labelDirection = layout.tickDirection = layout.nameDirection = directionMap[axisPosition]; if (axisModel.get(['axisTick', 'inside'])) { layout.tickDirection = -layout.tickDirection; } if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve"](opt.labelInside, axisModel.get(['axisLabel', 'inside']))) { layout.labelDirection = -layout.labelDirection; } var labelRotation = opt.rotate; labelRotation == null && (labelRotation = axisModel.get(['axisLabel', 'rotate'])); layout.labelRotation = axisPosition === 'top' ? -labelRotation : labelRotation; layout.z2 = 1; return layout; } /***/ }), /***/ "./node_modules/echarts/lib/coord/single/singleCreator.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/coord/single/singleCreator.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Single_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Single.js */ "./node_modules/echarts/lib/coord/single/Single.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Single coordinate system creator. */ /** * Create single coordinate system and inject it into seriesModel. */ function create(ecModel, api) { var singles = []; ecModel.eachComponent('singleAxis', function (axisModel, idx) { var single = new _Single_js__WEBPACK_IMPORTED_MODULE_0__["default"](axisModel, ecModel, api); single.name = 'single_' + idx; single.resize(axisModel, api); axisModel.coordinateSystem = single; singles.push(single); }); ecModel.eachSeries(function (seriesModel) { if (seriesModel.get('coordinateSystem') === 'singleAxis') { var singleAxisModel = seriesModel.getReferringComponents('singleAxis', _util_model_js__WEBPACK_IMPORTED_MODULE_1__["SINGLE_REFERRING"]).models[0]; seriesModel.coordinateSystem = singleAxisModel && singleAxisModel.coordinateSystem; } }); return singles; } var singleCreator = { create: create, dimensions: _Single_js__WEBPACK_IMPORTED_MODULE_0__["singleDimensions"] }; /* harmony default export */ __webpack_exports__["default"] = (singleCreator); /***/ }), /***/ "./node_modules/echarts/lib/core/CoordinateSystem.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/core/CoordinateSystem.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var coordinateSystemCreators = {}; var CoordinateSystemManager = /** @class */function () { function CoordinateSystemManager() { this._coordinateSystems = []; } CoordinateSystemManager.prototype.create = function (ecModel, api) { var coordinateSystems = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](coordinateSystemCreators, function (creator, type) { var list = creator.create(ecModel, api); coordinateSystems = coordinateSystems.concat(list || []); }); this._coordinateSystems = coordinateSystems; }; CoordinateSystemManager.prototype.update = function (ecModel, api) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](this._coordinateSystems, function (coordSys) { coordSys.update && coordSys.update(ecModel, api); }); }; CoordinateSystemManager.prototype.getCoordinateSystems = function () { return this._coordinateSystems.slice(); }; CoordinateSystemManager.register = function (type, creator) { coordinateSystemCreators[type] = creator; }; CoordinateSystemManager.get = function (type) { return coordinateSystemCreators[type]; }; return CoordinateSystemManager; }(); /* harmony default export */ __webpack_exports__["default"] = (CoordinateSystemManager); /***/ }), /***/ "./node_modules/echarts/lib/core/ExtensionAPI.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/core/ExtensionAPI.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var availableMethods = ['getDom', 'getZr', 'getWidth', 'getHeight', 'getDevicePixelRatio', 'dispatchAction', 'isSSR', 'isDisposed', 'on', 'off', 'getDataURL', 'getConnectedDataURL', // 'getModel', 'getOption', // 'getViewOfComponentModel', // 'getViewOfSeriesModel', 'getId', 'updateLabelLayout']; var ExtensionAPI = /** @class */function () { function ExtensionAPI(ecInstance) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](availableMethods, function (methodName) { this[methodName] = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"](ecInstance[methodName], ecInstance); }, this); } return ExtensionAPI; }(); /* harmony default export */ __webpack_exports__["default"] = (ExtensionAPI); /***/ }), /***/ "./node_modules/echarts/lib/core/Scheduler.js": /*!****************************************************!*\ !*** ./node_modules/echarts/lib/core/Scheduler.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _task_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./task.js */ "./node_modules/echarts/lib/core/task.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* harmony import */ var _model_Global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../model/Global.js */ "./node_modules/echarts/lib/model/Global.js"); /* harmony import */ var _ExtensionAPI_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ExtensionAPI.js */ "./node_modules/echarts/lib/core/ExtensionAPI.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ; var Scheduler = /** @class */function () { function Scheduler(ecInstance, api, dataProcessorHandlers, visualHandlers) { // key: handlerUID this._stageTaskMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); this.ecInstance = ecInstance; this.api = api; // Fix current processors in case that in some rear cases that // processors might be registered after echarts instance created. // Register processors incrementally for a echarts instance is // not supported by this stream architecture. dataProcessorHandlers = this._dataProcessorHandlers = dataProcessorHandlers.slice(); visualHandlers = this._visualHandlers = visualHandlers.slice(); this._allHandlers = dataProcessorHandlers.concat(visualHandlers); } Scheduler.prototype.restoreData = function (ecModel, payload) { // TODO: Only restore needed series and components, but not all components. // Currently `restoreData` of all of the series and component will be called. // But some independent components like `title`, `legend`, `graphic`, `toolbox`, // `tooltip`, `axisPointer`, etc, do not need series refresh when `setOption`, // and some components like coordinate system, axes, dataZoom, visualMap only // need their target series refresh. // (1) If we are implementing this feature some day, we should consider these cases: // if a data processor depends on a component (e.g., dataZoomProcessor depends // on the settings of `dataZoom`), it should be re-performed if the component // is modified by `setOption`. // (2) If a processor depends on sevral series, speicified by its `getTargetSeries`, // it should be re-performed when the result array of `getTargetSeries` changed. // We use `dependencies` to cover these issues. // (3) How to update target series when coordinate system related components modified. // TODO: simply the dirty mechanism? Check whether only the case here can set tasks dirty, // and this case all of the tasks will be set as dirty. ecModel.restoreData(payload); // Theoretically an overall task not only depends on each of its target series, but also // depends on all of the series. // The overall task is not in pipeline, and `ecModel.restoreData` only set pipeline tasks // dirty. If `getTargetSeries` of an overall task returns nothing, we should also ensure // that the overall task is set as dirty and to be performed, otherwise it probably cause // state chaos. So we have to set dirty of all of the overall tasks manually, otherwise it // probably cause state chaos (consider `dataZoomProcessor`). this._stageTaskMap.each(function (taskRecord) { var overallTask = taskRecord.overallTask; overallTask && overallTask.dirty(); }); }; // If seriesModel provided, incremental threshold is check by series data. Scheduler.prototype.getPerformArgs = function (task, isBlock) { // For overall task if (!task.__pipeline) { return; } var pipeline = this._pipelineMap.get(task.__pipeline.id); var pCtx = pipeline.context; var incremental = !isBlock && pipeline.progressiveEnabled && (!pCtx || pCtx.progressiveRender) && task.__idxInPipeline > pipeline.blockIndex; var step = incremental ? pipeline.step : null; var modDataCount = pCtx && pCtx.modDataCount; var modBy = modDataCount != null ? Math.ceil(modDataCount / step) : null; return { step: step, modBy: modBy, modDataCount: modDataCount }; }; Scheduler.prototype.getPipeline = function (pipelineId) { return this._pipelineMap.get(pipelineId); }; /** * Current, progressive rendering starts from visual and layout. * Always detect render mode in the same stage, avoiding that incorrect * detection caused by data filtering. * Caution: * `updateStreamModes` use `seriesModel.getData()`. */ Scheduler.prototype.updateStreamModes = function (seriesModel, view) { var pipeline = this._pipelineMap.get(seriesModel.uid); var data = seriesModel.getData(); var dataLen = data.count(); // `progressiveRender` means that can render progressively in each // animation frame. Note that some types of series do not provide // `view.incrementalPrepareRender` but support `chart.appendData`. We // use the term `incremental` but not `progressive` to describe the // case that `chart.appendData`. var progressiveRender = pipeline.progressiveEnabled && view.incrementalPrepareRender && dataLen >= pipeline.threshold; var large = seriesModel.get('large') && dataLen >= seriesModel.get('largeThreshold'); // TODO: modDataCount should not updated if `appendData`, otherwise cause whole repaint. // see `test/candlestick-large3.html` var modDataCount = seriesModel.get('progressiveChunkMode') === 'mod' ? dataLen : null; seriesModel.pipelineContext = pipeline.context = { progressiveRender: progressiveRender, modDataCount: modDataCount, large: large }; }; Scheduler.prototype.restorePipelines = function (ecModel) { var scheduler = this; var pipelineMap = scheduler._pipelineMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); ecModel.eachSeries(function (seriesModel) { var progressive = seriesModel.getProgressive(); var pipelineId = seriesModel.uid; pipelineMap.set(pipelineId, { id: pipelineId, head: null, tail: null, threshold: seriesModel.getProgressiveThreshold(), progressiveEnabled: progressive && !(seriesModel.preventIncremental && seriesModel.preventIncremental()), blockIndex: -1, step: Math.round(progressive || 700), count: 0 }); scheduler._pipe(seriesModel, seriesModel.dataTask); }); }; Scheduler.prototype.prepareStageTasks = function () { var stageTaskMap = this._stageTaskMap; var ecModel = this.api.getModel(); var api = this.api; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(this._allHandlers, function (handler) { var record = stageTaskMap.get(handler.uid) || stageTaskMap.set(handler.uid, {}); var errMsg = ''; if (true) { // Currently do not need to support to sepecify them both. errMsg = '"reset" and "overallReset" must not be both specified.'; } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(!(handler.reset && handler.overallReset), errMsg); handler.reset && this._createSeriesStageTask(handler, record, ecModel, api); handler.overallReset && this._createOverallStageTask(handler, record, ecModel, api); }, this); }; Scheduler.prototype.prepareView = function (view, model, ecModel, api) { var renderTask = view.renderTask; var context = renderTask.context; context.model = model; context.ecModel = ecModel; context.api = api; renderTask.__block = !view.incrementalPrepareRender; this._pipe(model, renderTask); }; Scheduler.prototype.performDataProcessorTasks = function (ecModel, payload) { // If we do not use `block` here, it should be considered when to update modes. this._performStageTasks(this._dataProcessorHandlers, ecModel, payload, { block: true }); }; Scheduler.prototype.performVisualTasks = function (ecModel, payload, opt) { this._performStageTasks(this._visualHandlers, ecModel, payload, opt); }; Scheduler.prototype._performStageTasks = function (stageHandlers, ecModel, payload, opt) { opt = opt || {}; var unfinished = false; var scheduler = this; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(stageHandlers, function (stageHandler, idx) { if (opt.visualType && opt.visualType !== stageHandler.visualType) { return; } var stageHandlerRecord = scheduler._stageTaskMap.get(stageHandler.uid); var seriesTaskMap = stageHandlerRecord.seriesTaskMap; var overallTask = stageHandlerRecord.overallTask; if (overallTask) { var overallNeedDirty_1; var agentStubMap = overallTask.agentStubMap; agentStubMap.each(function (stub) { if (needSetDirty(opt, stub)) { stub.dirty(); overallNeedDirty_1 = true; } }); overallNeedDirty_1 && overallTask.dirty(); scheduler.updatePayload(overallTask, payload); var performArgs_1 = scheduler.getPerformArgs(overallTask, opt.block); // Execute stubs firstly, which may set the overall task dirty, // then execute the overall task. And stub will call seriesModel.setData, // which ensures that in the overallTask seriesModel.getData() will not // return incorrect data. agentStubMap.each(function (stub) { stub.perform(performArgs_1); }); if (overallTask.perform(performArgs_1)) { unfinished = true; } } else if (seriesTaskMap) { seriesTaskMap.each(function (task, pipelineId) { if (needSetDirty(opt, task)) { task.dirty(); } var performArgs = scheduler.getPerformArgs(task, opt.block); // FIXME // if intending to declare `performRawSeries` in handlers, only // stream-independent (specifically, data item independent) operations can be // performed. Because if a series is filtered, most of the tasks will not // be performed. A stream-dependent operation probably cause wrong biz logic. // Perhaps we should not provide a separate callback for this case instead // of providing the config `performRawSeries`. The stream-dependent operations // and stream-independent operations should better not be mixed. performArgs.skip = !stageHandler.performRawSeries && ecModel.isSeriesFiltered(task.context.model); scheduler.updatePayload(task, payload); if (task.perform(performArgs)) { unfinished = true; } }); } }); function needSetDirty(opt, task) { return opt.setDirty && (!opt.dirtyMap || opt.dirtyMap.get(task.__pipeline.id)); } this.unfinished = unfinished || this.unfinished; }; Scheduler.prototype.performSeriesTasks = function (ecModel) { var unfinished; ecModel.eachSeries(function (seriesModel) { // Progress to the end for dataInit and dataRestore. unfinished = seriesModel.dataTask.perform() || unfinished; }); this.unfinished = unfinished || this.unfinished; }; Scheduler.prototype.plan = function () { // Travel pipelines, check block. this._pipelineMap.each(function (pipeline) { var task = pipeline.tail; do { if (task.__block) { pipeline.blockIndex = task.__idxInPipeline; break; } task = task.getUpstream(); } while (task); }); }; Scheduler.prototype.updatePayload = function (task, payload) { payload !== 'remain' && (task.context.payload = payload); }; Scheduler.prototype._createSeriesStageTask = function (stageHandler, stageHandlerRecord, ecModel, api) { var scheduler = this; var oldSeriesTaskMap = stageHandlerRecord.seriesTaskMap; // The count of stages are totally about only several dozen, so // do not need to reuse the map. var newSeriesTaskMap = stageHandlerRecord.seriesTaskMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); var seriesType = stageHandler.seriesType; var getTargetSeries = stageHandler.getTargetSeries; // If a stageHandler should cover all series, `createOnAllSeries` should be declared mandatorily, // to avoid some typo or abuse. Otherwise if an extension do not specify a `seriesType`, // it works but it may cause other irrelevant charts blocked. if (stageHandler.createOnAllSeries) { ecModel.eachRawSeries(create); } else if (seriesType) { ecModel.eachRawSeriesByType(seriesType, create); } else if (getTargetSeries) { getTargetSeries(ecModel, api).each(create); } function create(seriesModel) { var pipelineId = seriesModel.uid; // Init tasks for each seriesModel only once. // Reuse original task instance. var task = newSeriesTaskMap.set(pipelineId, oldSeriesTaskMap && oldSeriesTaskMap.get(pipelineId) || Object(_task_js__WEBPACK_IMPORTED_MODULE_1__["createTask"])({ plan: seriesTaskPlan, reset: seriesTaskReset, count: seriesTaskCount })); task.context = { model: seriesModel, ecModel: ecModel, api: api, // PENDING: `useClearVisual` not used? useClearVisual: stageHandler.isVisual && !stageHandler.isLayout, plan: stageHandler.plan, reset: stageHandler.reset, scheduler: scheduler }; scheduler._pipe(seriesModel, task); } }; Scheduler.prototype._createOverallStageTask = function (stageHandler, stageHandlerRecord, ecModel, api) { var scheduler = this; var overallTask = stageHandlerRecord.overallTask = stageHandlerRecord.overallTask // For overall task, the function only be called on reset stage. || Object(_task_js__WEBPACK_IMPORTED_MODULE_1__["createTask"])({ reset: overallTaskReset }); overallTask.context = { ecModel: ecModel, api: api, overallReset: stageHandler.overallReset, scheduler: scheduler }; var oldAgentStubMap = overallTask.agentStubMap; // The count of stages are totally about only several dozen, so // do not need to reuse the map. var newAgentStubMap = overallTask.agentStubMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); var seriesType = stageHandler.seriesType; var getTargetSeries = stageHandler.getTargetSeries; var overallProgress = true; var shouldOverallTaskDirty = false; // FIXME:TS never used, so comment it // let modifyOutputEnd = stageHandler.modifyOutputEnd; // An overall task with seriesType detected or has `getTargetSeries`, we add // stub in each pipelines, it will set the overall task dirty when the pipeline // progress. Moreover, to avoid call the overall task each frame (too frequent), // we set the pipeline block. var errMsg = ''; if (true) { errMsg = '"createOnAllSeries" is not supported for "overallReset", ' + 'because it will block all streams.'; } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(!stageHandler.createOnAllSeries, errMsg); if (seriesType) { ecModel.eachRawSeriesByType(seriesType, createStub); } else if (getTargetSeries) { getTargetSeries(ecModel, api).each(createStub); } // Otherwise, (usually it is legacy case), the overall task will only be // executed when upstream is dirty. Otherwise the progressive rendering of all // pipelines will be disabled unexpectedly. But it still needs stubs to receive // dirty info from upstream. else { overallProgress = false; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(ecModel.getSeries(), createStub); } function createStub(seriesModel) { var pipelineId = seriesModel.uid; var stub = newAgentStubMap.set(pipelineId, oldAgentStubMap && oldAgentStubMap.get(pipelineId) || ( // When the result of `getTargetSeries` changed, the overallTask // should be set as dirty and re-performed. shouldOverallTaskDirty = true, Object(_task_js__WEBPACK_IMPORTED_MODULE_1__["createTask"])({ reset: stubReset, onDirty: stubOnDirty }))); stub.context = { model: seriesModel, overallProgress: overallProgress // FIXME:TS never used, so comment it // modifyOutputEnd: modifyOutputEnd }; stub.agent = overallTask; stub.__block = overallProgress; scheduler._pipe(seriesModel, stub); } if (shouldOverallTaskDirty) { overallTask.dirty(); } }; Scheduler.prototype._pipe = function (seriesModel, task) { var pipelineId = seriesModel.uid; var pipeline = this._pipelineMap.get(pipelineId); !pipeline.head && (pipeline.head = task); pipeline.tail && pipeline.tail.pipe(task); pipeline.tail = task; task.__idxInPipeline = pipeline.count++; task.__pipeline = pipeline; }; Scheduler.wrapStageHandler = function (stageHandler, visualType) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(stageHandler)) { stageHandler = { overallReset: stageHandler, seriesType: detectSeriseType(stageHandler) }; } stageHandler.uid = Object(_util_component_js__WEBPACK_IMPORTED_MODULE_2__["getUID"])('stageHandler'); visualType && (stageHandler.visualType = visualType); return stageHandler; }; ; return Scheduler; }(); function overallTaskReset(context) { context.overallReset(context.ecModel, context.api, context.payload); } function stubReset(context) { return context.overallProgress && stubProgress; } function stubProgress() { this.agent.dirty(); this.getDownstream().dirty(); } function stubOnDirty() { this.agent && this.agent.dirty(); } function seriesTaskPlan(context) { return context.plan ? context.plan(context.model, context.ecModel, context.api, context.payload) : null; } function seriesTaskReset(context) { if (context.useClearVisual) { context.data.clearAllVisual(); } var resetDefines = context.resetDefines = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_5__["normalizeToArray"])(context.reset(context.model, context.ecModel, context.api, context.payload)); return resetDefines.length > 1 ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(resetDefines, function (v, idx) { return makeSeriesTaskProgress(idx); }) : singleSeriesTaskProgress; } var singleSeriesTaskProgress = makeSeriesTaskProgress(0); function makeSeriesTaskProgress(resetDefineIdx) { return function (params, context) { var data = context.data; var resetDefine = context.resetDefines[resetDefineIdx]; if (resetDefine && resetDefine.dataEach) { for (var i = params.start; i < params.end; i++) { resetDefine.dataEach(data, i); } } else if (resetDefine && resetDefine.progress) { resetDefine.progress(params, data); } }; } function seriesTaskCount(context) { return context.data.count(); } /** * Only some legacy stage handlers (usually in echarts extensions) are pure function. * To ensure that they can work normally, they should work in block mode, that is, * they should not be started util the previous tasks finished. So they cause the * progressive rendering disabled. We try to detect the series type, to narrow down * the block range to only the series type they concern, but not all series. */ function detectSeriseType(legacyFunc) { seriesType = null; try { // Assume there is no async when calling `eachSeriesByType`. legacyFunc(ecModelMock, apiMock); } catch (e) {} return seriesType; } var ecModelMock = {}; var apiMock = {}; var seriesType; mockMethods(ecModelMock, _model_Global_js__WEBPACK_IMPORTED_MODULE_3__["default"]); mockMethods(apiMock, _ExtensionAPI_js__WEBPACK_IMPORTED_MODULE_4__["default"]); ecModelMock.eachSeriesByType = ecModelMock.eachRawSeriesByType = function (type) { seriesType = type; }; ecModelMock.eachComponent = function (cond) { if (cond.mainType === 'series' && cond.subType) { seriesType = cond.subType; } }; function mockMethods(target, Clz) { /* eslint-disable */ for (var name_1 in Clz.prototype) { // Do not use hasOwnProperty target[name_1] = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["noop"]; } /* eslint-enable */ } /* harmony default export */ __webpack_exports__["default"] = (Scheduler); /***/ }), /***/ "./node_modules/echarts/lib/core/echarts.js": /*!**************************************************!*\ !*** ./node_modules/echarts/lib/core/echarts.js ***! \**************************************************/ /*! exports provided: version, dependencies, PRIORITY, init, connect, disconnect, disConnect, dispose, getInstanceByDom, getInstanceById, registerTheme, registerPreprocessor, registerProcessor, registerPostInit, registerPostUpdate, registerUpdateLifecycle, registerAction, registerCoordinateSystem, getCoordinateSystemDimensions, registerLocale, registerLayout, registerVisual, registerLoading, setCanvasCreator, registerMap, getMap, registerTransform, dataTool */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dependencies", function() { return dependencies; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PRIORITY", function() { return PRIORITY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "init", function() { return init; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "connect", function() { return connect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "disconnect", function() { return disconnect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "disConnect", function() { return disConnect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispose", function() { return dispose; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getInstanceByDom", function() { return getInstanceByDom; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getInstanceById", function() { return getInstanceById; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerTheme", function() { return registerTheme; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerPreprocessor", function() { return registerPreprocessor; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerProcessor", function() { return registerProcessor; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerPostInit", function() { return registerPostInit; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerPostUpdate", function() { return registerPostUpdate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerUpdateLifecycle", function() { return registerUpdateLifecycle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerAction", function() { return registerAction; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerCoordinateSystem", function() { return registerCoordinateSystem; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCoordinateSystemDimensions", function() { return getCoordinateSystemDimensions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerLayout", function() { return registerLayout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerVisual", function() { return registerVisual; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerLoading", function() { return registerLoading; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setCanvasCreator", function() { return setCanvasCreator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerMap", function() { return registerMap; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMap", function() { return getMap; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerTransform", function() { return registerTransform; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataTool", function() { return dataTool; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_zrender_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/zrender.js */ "./node_modules/zrender/lib/zrender.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/env.js */ "./node_modules/zrender/lib/core/env.js"); /* harmony import */ var zrender_lib_core_timsort_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/timsort.js */ "./node_modules/zrender/lib/core/timsort.js"); /* harmony import */ var zrender_lib_core_Eventful_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/Eventful.js */ "./node_modules/zrender/lib/core/Eventful.js"); /* harmony import */ var _model_Global_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../model/Global.js */ "./node_modules/echarts/lib/model/Global.js"); /* harmony import */ var _ExtensionAPI_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ExtensionAPI.js */ "./node_modules/echarts/lib/core/ExtensionAPI.js"); /* harmony import */ var _CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CoordinateSystem.js */ "./node_modules/echarts/lib/core/CoordinateSystem.js"); /* harmony import */ var _model_OptionManager_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../model/OptionManager.js */ "./node_modules/echarts/lib/model/OptionManager.js"); /* harmony import */ var _preprocessor_backwardCompat_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../preprocessor/backwardCompat.js */ "./node_modules/echarts/lib/preprocessor/backwardCompat.js"); /* harmony import */ var _processor_dataStack_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../processor/dataStack.js */ "./node_modules/echarts/lib/processor/dataStack.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_throttle_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../util/throttle.js */ "./node_modules/echarts/lib/util/throttle.js"); /* harmony import */ var _visual_style_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../visual/style.js */ "./node_modules/echarts/lib/visual/style.js"); /* harmony import */ var _loading_default_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../loading/default.js */ "./node_modules/echarts/lib/loading/default.js"); /* harmony import */ var _Scheduler_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Scheduler.js */ "./node_modules/echarts/lib/core/Scheduler.js"); /* harmony import */ var _theme_light_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../theme/light.js */ "./node_modules/echarts/lib/theme/light.js"); /* harmony import */ var _theme_dark_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../theme/dark.js */ "./node_modules/echarts/lib/theme/dark.js"); /* harmony import */ var _util_clazz_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../util/clazz.js */ "./node_modules/echarts/lib/util/clazz.js"); /* harmony import */ var _util_ECEventProcessor_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../util/ECEventProcessor.js */ "./node_modules/echarts/lib/util/ECEventProcessor.js"); /* harmony import */ var _visual_symbol_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../visual/symbol.js */ "./node_modules/echarts/lib/visual/symbol.js"); /* harmony import */ var _visual_helper_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../visual/helper.js */ "./node_modules/echarts/lib/visual/helper.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var _legacy_dataSelectAction_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../legacy/dataSelectAction.js */ "./node_modules/echarts/lib/legacy/dataSelectAction.js"); /* harmony import */ var _data_helper_transform_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../data/helper/transform.js */ "./node_modules/echarts/lib/data/helper/transform.js"); /* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./locale.js */ "./node_modules/echarts/lib/core/locale.js"); /* harmony import */ var _util_event_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../util/event.js */ "./node_modules/echarts/lib/util/event.js"); /* harmony import */ var _visual_decal_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../visual/decal.js */ "./node_modules/echarts/lib/visual/decal.js"); /* harmony import */ var _lifecycle_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./lifecycle.js */ "./node_modules/echarts/lib/core/lifecycle.js"); /* harmony import */ var zrender_lib_core_platform_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! zrender/lib/core/platform.js */ "./node_modules/zrender/lib/core/platform.js"); /* harmony import */ var _impl_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./impl.js */ "./node_modules/echarts/lib/core/impl.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerLocale", function() { return _locale_js__WEBPACK_IMPORTED_MODULE_32__["registerLocale"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var version = '5.6.0'; var dependencies = { zrender: '5.6.1' }; var TEST_FRAME_REMAIN_TIME = 1; var PRIORITY_PROCESSOR_SERIES_FILTER = 800; // Some data processors depends on the stack result dimension (to calculate data extent). // So data stack stage should be in front of data processing stage. var PRIORITY_PROCESSOR_DATASTACK = 900; // "Data filter" will block the stream, so it should be // put at the beginning of data processing. var PRIORITY_PROCESSOR_FILTER = 1000; var PRIORITY_PROCESSOR_DEFAULT = 2000; var PRIORITY_PROCESSOR_STATISTIC = 5000; var PRIORITY_VISUAL_LAYOUT = 1000; var PRIORITY_VISUAL_PROGRESSIVE_LAYOUT = 1100; var PRIORITY_VISUAL_GLOBAL = 2000; var PRIORITY_VISUAL_CHART = 3000; var PRIORITY_VISUAL_COMPONENT = 4000; // Visual property in data. Greater than `PRIORITY_VISUAL_COMPONENT` to enable to // overwrite the viusal result of component (like `visualMap`) // using data item specific setting (like itemStyle.xxx on data item) var PRIORITY_VISUAL_CHART_DATA_CUSTOM = 4500; // Greater than `PRIORITY_VISUAL_CHART_DATA_CUSTOM` to enable to layout based on // visual result like `symbolSize`. var PRIORITY_VISUAL_POST_CHART_LAYOUT = 4600; var PRIORITY_VISUAL_BRUSH = 5000; var PRIORITY_VISUAL_ARIA = 6000; var PRIORITY_VISUAL_DECAL = 7000; var PRIORITY = { PROCESSOR: { FILTER: PRIORITY_PROCESSOR_FILTER, SERIES_FILTER: PRIORITY_PROCESSOR_SERIES_FILTER, STATISTIC: PRIORITY_PROCESSOR_STATISTIC }, VISUAL: { LAYOUT: PRIORITY_VISUAL_LAYOUT, PROGRESSIVE_LAYOUT: PRIORITY_VISUAL_PROGRESSIVE_LAYOUT, GLOBAL: PRIORITY_VISUAL_GLOBAL, CHART: PRIORITY_VISUAL_CHART, POST_CHART_LAYOUT: PRIORITY_VISUAL_POST_CHART_LAYOUT, COMPONENT: PRIORITY_VISUAL_COMPONENT, BRUSH: PRIORITY_VISUAL_BRUSH, CHART_ITEM: PRIORITY_VISUAL_CHART_DATA_CUSTOM, ARIA: PRIORITY_VISUAL_ARIA, DECAL: PRIORITY_VISUAL_DECAL } }; // Main process have three entries: `setOption`, `dispatchAction` and `resize`, // where they must not be invoked nestedly, except the only case: invoke // dispatchAction with updateMethod "none" in main process. // This flag is used to carry out this rule. // All events will be triggered out side main process (i.e. when !this[IN_MAIN_PROCESS]). var IN_MAIN_PROCESS_KEY = '__flagInMainProcess'; var PENDING_UPDATE = '__pendingUpdate'; var STATUS_NEEDS_UPDATE_KEY = '__needsUpdateStatus'; var ACTION_REG = /^[a-zA-Z0-9_]+$/; var CONNECT_STATUS_KEY = '__connectUpdateStatus'; var CONNECT_STATUS_PENDING = 0; var CONNECT_STATUS_UPDATING = 1; var CONNECT_STATUS_UPDATED = 2; ; ; function createRegisterEventWithLowercaseECharts(method) { return function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } if (this.isDisposed()) { disposedWarning(this.id); return; } return toLowercaseNameAndCallEventful(this, method, args); }; } function createRegisterEventWithLowercaseMessageCenter(method) { return function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } return toLowercaseNameAndCallEventful(this, method, args); }; } function toLowercaseNameAndCallEventful(host, method, args) { // `args[0]` is event name. Event name is all lowercase. args[0] = args[0] && args[0].toLowerCase(); return zrender_lib_core_Eventful_js__WEBPACK_IMPORTED_MODULE_5__["default"].prototype[method].apply(host, args); } var MessageCenter = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MessageCenter, _super); function MessageCenter() { return _super !== null && _super.apply(this, arguments) || this; } return MessageCenter; }(zrender_lib_core_Eventful_js__WEBPACK_IMPORTED_MODULE_5__["default"]); var messageCenterProto = MessageCenter.prototype; messageCenterProto.on = createRegisterEventWithLowercaseMessageCenter('on'); messageCenterProto.off = createRegisterEventWithLowercaseMessageCenter('off'); // --------------------------------------- // Internal method names for class ECharts // --------------------------------------- var prepare; var prepareView; var updateDirectly; var updateMethods; var doConvertPixel; var updateStreamModes; var doDispatchAction; var flushPendingActions; var triggerUpdatedEvent; var bindRenderedEvent; var bindMouseEvent; var render; var renderComponents; var renderSeries; var createExtensionAPI; var enableConnect; var markStatusToUpdate; var applyChangedStates; var ECharts = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ECharts, _super); function ECharts(dom, // Theme name or themeOption. theme, opts) { var _this = _super.call(this, new _util_ECEventProcessor_js__WEBPACK_IMPORTED_MODULE_26__["ECEventProcessor"]()) || this; _this._chartsViews = []; _this._chartsMap = {}; _this._componentsViews = []; _this._componentsMap = {}; // Can't dispatch action during rendering procedure _this._pendingActions = []; opts = opts || {}; // Get theme by name if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isString"])(theme)) { theme = themeStorage[theme]; } _this._dom = dom; var defaultRenderer = 'canvas'; var defaultCoarsePointer = 'auto'; var defaultUseDirtyRect = false; if (true) { var root = /* eslint-disable-next-line */ zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasGlobalWindow ? window : global; if (root) { defaultRenderer = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["retrieve2"])(root.__ECHARTS__DEFAULT__RENDERER__, defaultRenderer); defaultCoarsePointer = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["retrieve2"])(root.__ECHARTS__DEFAULT__COARSE_POINTER, defaultCoarsePointer); defaultUseDirtyRect = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["retrieve2"])(root.__ECHARTS__DEFAULT__USE_DIRTY_RECT__, defaultUseDirtyRect); } } if (opts.ssr) { zrender_lib_zrender_js__WEBPACK_IMPORTED_MODULE_1__["registerSSRDataGetter"](function (el) { var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_16__["getECData"])(el); var dataIndex = ecData.dataIndex; if (dataIndex == null) { return; } var hashMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["createHashMap"])(); hashMap.set('series_index', ecData.seriesIndex); hashMap.set('data_index', dataIndex); ecData.ssrType && hashMap.set('ssr_type', ecData.ssrType); return hashMap; }); } var zr = _this._zr = zrender_lib_zrender_js__WEBPACK_IMPORTED_MODULE_1__["init"](dom, { renderer: opts.renderer || defaultRenderer, devicePixelRatio: opts.devicePixelRatio, width: opts.width, height: opts.height, ssr: opts.ssr, useDirtyRect: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["retrieve2"])(opts.useDirtyRect, defaultUseDirtyRect), useCoarsePointer: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["retrieve2"])(opts.useCoarsePointer, defaultCoarsePointer), pointerSize: opts.pointerSize }); _this._ssr = opts.ssr; // Expect 60 fps. _this._throttledZrFlush = Object(_util_throttle_js__WEBPACK_IMPORTED_MODULE_19__["throttle"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["bind"])(zr.flush, zr), 17); theme = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["clone"])(theme); theme && Object(_preprocessor_backwardCompat_js__WEBPACK_IMPORTED_MODULE_10__["default"])(theme, true); _this._theme = theme; _this._locale = Object(_locale_js__WEBPACK_IMPORTED_MODULE_32__["createLocaleObject"])(opts.locale || _locale_js__WEBPACK_IMPORTED_MODULE_32__["SYSTEM_LANG"]); _this._coordSysMgr = new _CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_8__["default"](); var api = _this._api = createExtensionAPI(_this); // Sort on demand function prioritySortFunc(a, b) { return a.__prio - b.__prio; } Object(zrender_lib_core_timsort_js__WEBPACK_IMPORTED_MODULE_4__["default"])(visualFuncs, prioritySortFunc); Object(zrender_lib_core_timsort_js__WEBPACK_IMPORTED_MODULE_4__["default"])(dataProcessorFuncs, prioritySortFunc); _this._scheduler = new _Scheduler_js__WEBPACK_IMPORTED_MODULE_22__["default"](_this, api, dataProcessorFuncs, visualFuncs); _this._messageCenter = new MessageCenter(); // Init mouse events _this._initEvents(); // In case some people write `window.onresize = chart.resize` _this.resize = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["bind"])(_this.resize, _this); zr.animation.on('frame', _this._onframe, _this); bindRenderedEvent(zr, _this); bindMouseEvent(zr, _this); // ECharts instance can be used as value. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["setAsPrimitive"])(_this); return _this; } ECharts.prototype._onframe = function () { if (this._disposed) { return; } applyChangedStates(this); var scheduler = this._scheduler; // Lazy update if (this[PENDING_UPDATE]) { var silent = this[PENDING_UPDATE].silent; this[IN_MAIN_PROCESS_KEY] = true; try { prepare(this); updateMethods.update.call(this, null, this[PENDING_UPDATE].updateParams); } catch (e) { this[IN_MAIN_PROCESS_KEY] = false; this[PENDING_UPDATE] = null; throw e; } // At present, in each frame, zrender performs: // (1) animation step forward. // (2) trigger('frame') (where this `_onframe` is called) // (3) zrender flush (render). // If we do nothing here, since we use `setToFinal: true`, the step (3) above // will render the final state of the elements before the real animation started. this._zr.flush(); this[IN_MAIN_PROCESS_KEY] = false; this[PENDING_UPDATE] = null; flushPendingActions.call(this, silent); triggerUpdatedEvent.call(this, silent); } // Avoid do both lazy update and progress in one frame. else if (scheduler.unfinished) { // Stream progress. var remainTime = TEST_FRAME_REMAIN_TIME; var ecModel = this._model; var api = this._api; scheduler.unfinished = false; do { var startTime = +new Date(); scheduler.performSeriesTasks(ecModel); // Currently dataProcessorFuncs do not check threshold. scheduler.performDataProcessorTasks(ecModel); updateStreamModes(this, ecModel); // Do not update coordinate system here. Because that coord system update in // each frame is not a good user experience. So we follow the rule that // the extent of the coordinate system is determined in the first frame (the // frame is executed immediately after task reset. // this._coordSysMgr.update(ecModel, api); // console.log('--- ec frame visual ---', remainTime); scheduler.performVisualTasks(ecModel); renderSeries(this, this._model, api, 'remain', {}); remainTime -= +new Date() - startTime; } while (remainTime > 0 && scheduler.unfinished); // Call flush explicitly for trigger finished event. if (!scheduler.unfinished) { this._zr.flush(); } // Else, zr flushing be ensue within the same frame, // because zr flushing is after onframe event. } }; ECharts.prototype.getDom = function () { return this._dom; }; ECharts.prototype.getId = function () { return this.id; }; ECharts.prototype.getZr = function () { return this._zr; }; ECharts.prototype.isSSR = function () { return this._ssr; }; /* eslint-disable-next-line */ ECharts.prototype.setOption = function (option, notMerge, lazyUpdate) { if (this[IN_MAIN_PROCESS_KEY]) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["error"])('`setOption` should not be called during main process.'); } return; } if (this._disposed) { disposedWarning(this.id); return; } var silent; var replaceMerge; var transitionOpt; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isObject"])(notMerge)) { lazyUpdate = notMerge.lazyUpdate; silent = notMerge.silent; replaceMerge = notMerge.replaceMerge; transitionOpt = notMerge.transition; notMerge = notMerge.notMerge; } this[IN_MAIN_PROCESS_KEY] = true; if (!this._model || notMerge) { var optionManager = new _model_OptionManager_js__WEBPACK_IMPORTED_MODULE_9__["default"](this._api); var theme = this._theme; var ecModel = this._model = new _model_Global_js__WEBPACK_IMPORTED_MODULE_6__["default"](); ecModel.scheduler = this._scheduler; ecModel.ssr = this._ssr; ecModel.init(null, null, null, theme, this._locale, optionManager); } this._model.setOption(option, { replaceMerge: replaceMerge }, optionPreprocessorFuncs); var updateParams = { seriesTransition: transitionOpt, optionChanged: true }; if (lazyUpdate) { this[PENDING_UPDATE] = { silent: silent, updateParams: updateParams }; this[IN_MAIN_PROCESS_KEY] = false; // `setOption(option, {lazyMode: true})` may be called when zrender has been slept. // It should wake it up to make sure zrender start to render at the next frame. this.getZr().wakeUp(); } else { try { prepare(this); updateMethods.update.call(this, null, updateParams); } catch (e) { this[PENDING_UPDATE] = null; this[IN_MAIN_PROCESS_KEY] = false; throw e; } // Ensure zr refresh sychronously, and then pixel in canvas can be // fetched after `setOption`. if (!this._ssr) { // not use flush when using ssr mode. this._zr.flush(); } this[PENDING_UPDATE] = null; this[IN_MAIN_PROCESS_KEY] = false; flushPendingActions.call(this, silent); triggerUpdatedEvent.call(this, silent); } }; /** * @deprecated */ ECharts.prototype.setTheme = function () { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["deprecateLog"])('ECharts#setTheme() is DEPRECATED in ECharts 3.0'); }; // We don't want developers to use getModel directly. ECharts.prototype.getModel = function () { return this._model; }; ECharts.prototype.getOption = function () { return this._model && this._model.getOption(); }; ECharts.prototype.getWidth = function () { return this._zr.getWidth(); }; ECharts.prototype.getHeight = function () { return this._zr.getHeight(); }; ECharts.prototype.getDevicePixelRatio = function () { return this._zr.painter.dpr /* eslint-disable-next-line */ || zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasGlobalWindow && window.devicePixelRatio || 1; }; /** * Get canvas which has all thing rendered * @deprecated Use renderToCanvas instead. */ ECharts.prototype.getRenderedCanvas = function (opts) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["deprecateReplaceLog"])('getRenderedCanvas', 'renderToCanvas'); } return this.renderToCanvas(opts); }; ECharts.prototype.renderToCanvas = function (opts) { opts = opts || {}; var painter = this._zr.painter; if (true) { if (painter.type !== 'canvas') { throw new Error('renderToCanvas can only be used in the canvas renderer.'); } } return painter.getRenderedCanvas({ backgroundColor: opts.backgroundColor || this._model.get('backgroundColor'), pixelRatio: opts.pixelRatio || this.getDevicePixelRatio() }); }; ECharts.prototype.renderToSVGString = function (opts) { opts = opts || {}; var painter = this._zr.painter; if (true) { if (painter.type !== 'svg') { throw new Error('renderToSVGString can only be used in the svg renderer.'); } } return painter.renderToString({ useViewBox: opts.useViewBox }); }; /** * Get svg data url */ ECharts.prototype.getSvgDataURL = function () { if (!zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__["default"].svgSupported) { return; } var zr = this._zr; var list = zr.storage.getDisplayList(); // Stop animations Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(list, function (el) { el.stopAnimation(null, true); }); return zr.painter.toDataURL(); }; ECharts.prototype.getDataURL = function (opts) { if (this._disposed) { disposedWarning(this.id); return; } opts = opts || {}; var excludeComponents = opts.excludeComponents; var ecModel = this._model; var excludesComponentViews = []; var self = this; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(excludeComponents, function (componentType) { ecModel.eachComponent({ mainType: componentType }, function (component) { var view = self._componentsMap[component.__viewId]; if (!view.group.ignore) { excludesComponentViews.push(view); view.group.ignore = true; } }); }); var url = this._zr.painter.getType() === 'svg' ? this.getSvgDataURL() : this.renderToCanvas(opts).toDataURL('image/' + (opts && opts.type || 'png')); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(excludesComponentViews, function (view) { view.group.ignore = false; }); return url; }; ECharts.prototype.getConnectedDataURL = function (opts) { if (this._disposed) { disposedWarning(this.id); return; } var isSvg = opts.type === 'svg'; var groupId = this.group; var mathMin = Math.min; var mathMax = Math.max; var MAX_NUMBER = Infinity; if (connectedGroups[groupId]) { var left_1 = MAX_NUMBER; var top_1 = MAX_NUMBER; var right_1 = -MAX_NUMBER; var bottom_1 = -MAX_NUMBER; var canvasList_1 = []; var dpr_1 = opts && opts.pixelRatio || this.getDevicePixelRatio(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(instances, function (chart, id) { if (chart.group === groupId) { var canvas = isSvg ? chart.getZr().painter.getSvgDom().innerHTML : chart.renderToCanvas(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["clone"])(opts)); var boundingRect = chart.getDom().getBoundingClientRect(); left_1 = mathMin(boundingRect.left, left_1); top_1 = mathMin(boundingRect.top, top_1); right_1 = mathMax(boundingRect.right, right_1); bottom_1 = mathMax(boundingRect.bottom, bottom_1); canvasList_1.push({ dom: canvas, left: boundingRect.left, top: boundingRect.top }); } }); left_1 *= dpr_1; top_1 *= dpr_1; right_1 *= dpr_1; bottom_1 *= dpr_1; var width = right_1 - left_1; var height = bottom_1 - top_1; var targetCanvas = zrender_lib_core_platform_js__WEBPACK_IMPORTED_MODULE_36__["platformApi"].createCanvas(); var zr_1 = zrender_lib_zrender_js__WEBPACK_IMPORTED_MODULE_1__["init"](targetCanvas, { renderer: isSvg ? 'svg' : 'canvas' }); zr_1.resize({ width: width, height: height }); if (isSvg) { var content_1 = ''; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(canvasList_1, function (item) { var x = item.left - left_1; var y = item.top - top_1; content_1 += '' + item.dom + ''; }); zr_1.painter.getSvgRoot().innerHTML = content_1; if (opts.connectedBackgroundColor) { zr_1.painter.setBackgroundColor(opts.connectedBackgroundColor); } zr_1.refreshImmediately(); return zr_1.painter.toDataURL(); } else { // Background between the charts if (opts.connectedBackgroundColor) { zr_1.add(new _util_graphic_js__WEBPACK_IMPORTED_MODULE_15__["Rect"]({ shape: { x: 0, y: 0, width: width, height: height }, style: { fill: opts.connectedBackgroundColor } })); } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(canvasList_1, function (item) { var img = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_15__["Image"]({ style: { x: item.left * dpr_1 - left_1, y: item.top * dpr_1 - top_1, image: item.dom } }); zr_1.add(img); }); zr_1.refreshImmediately(); return targetCanvas.toDataURL('image/' + (opts && opts.type || 'png')); } } else { return this.getDataURL(opts); } }; ECharts.prototype.convertToPixel = function (finder, value) { return doConvertPixel(this, 'convertToPixel', finder, value); }; ECharts.prototype.convertFromPixel = function (finder, value) { return doConvertPixel(this, 'convertFromPixel', finder, value); }; /** * Is the specified coordinate systems or components contain the given pixel point. * @param {Array|number} value * @return {boolean} result */ ECharts.prototype.containPixel = function (finder, value) { if (this._disposed) { disposedWarning(this.id); return; } var ecModel = this._model; var result; var findResult = _util_model_js__WEBPACK_IMPORTED_MODULE_18__["parseFinder"](ecModel, finder); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(findResult, function (models, key) { key.indexOf('Models') >= 0 && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(models, function (model) { var coordSys = model.coordinateSystem; if (coordSys && coordSys.containPoint) { result = result || !!coordSys.containPoint(value); } else if (key === 'seriesModels') { var view = this._chartsMap[model.__viewId]; if (view && view.containPoint) { result = result || view.containPoint(value, model); } else { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["warn"])(key + ': ' + (view ? 'The found component do not support containPoint.' : 'No view mapping to the found component.')); } } } else { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["warn"])(key + ': containPoint is not supported'); } } }, this); }, this); return !!result; }; /** * Get visual from series or data. * @param finder * If string, e.g., 'series', means {seriesIndex: 0}. * If Object, could contain some of these properties below: * { * seriesIndex / seriesId / seriesName, * dataIndex / dataIndexInside * } * If dataIndex is not specified, series visual will be fetched, * but not data item visual. * If all of seriesIndex, seriesId, seriesName are not specified, * visual will be fetched from first series. * @param visualType 'color', 'symbol', 'symbolSize' */ ECharts.prototype.getVisual = function (finder, visualType) { var ecModel = this._model; var parsedFinder = _util_model_js__WEBPACK_IMPORTED_MODULE_18__["parseFinder"](ecModel, finder, { defaultMainType: 'series' }); var seriesModel = parsedFinder.seriesModel; if (true) { if (!seriesModel) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["warn"])('There is no specified series model'); } } var data = seriesModel.getData(); var dataIndexInside = parsedFinder.hasOwnProperty('dataIndexInside') ? parsedFinder.dataIndexInside : parsedFinder.hasOwnProperty('dataIndex') ? data.indexOfRawIndex(parsedFinder.dataIndex) : null; return dataIndexInside != null ? Object(_visual_helper_js__WEBPACK_IMPORTED_MODULE_28__["getItemVisualFromData"])(data, dataIndexInside, visualType) : Object(_visual_helper_js__WEBPACK_IMPORTED_MODULE_28__["getVisualFromData"])(data, visualType); }; /** * Get view of corresponding component model */ ECharts.prototype.getViewOfComponentModel = function (componentModel) { return this._componentsMap[componentModel.__viewId]; }; /** * Get view of corresponding series model */ ECharts.prototype.getViewOfSeriesModel = function (seriesModel) { return this._chartsMap[seriesModel.__viewId]; }; ECharts.prototype._initEvents = function () { var _this = this; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(MOUSE_EVENT_NAMES, function (eveName) { var handler = function (e) { var ecModel = _this.getModel(); var el = e.target; var params; var isGlobalOut = eveName === 'globalout'; // no e.target when 'globalout'. if (isGlobalOut) { params = {}; } else { el && Object(_util_event_js__WEBPACK_IMPORTED_MODULE_33__["findEventDispatcher"])(el, function (parent) { var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_16__["getECData"])(parent); if (ecData && ecData.dataIndex != null) { var dataModel = ecData.dataModel || ecModel.getSeriesByIndex(ecData.seriesIndex); params = dataModel && dataModel.getDataParams(ecData.dataIndex, ecData.dataType, el) || {}; return true; } // If element has custom eventData of components else if (ecData.eventData) { params = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["extend"])({}, ecData.eventData); return true; } }, true); } // Contract: if params prepared in mouse event, // these properties must be specified: // { // componentType: string (component main type) // componentIndex: number // } // Otherwise event query can not work. if (params) { var componentType = params.componentType; var componentIndex = params.componentIndex; // Special handling for historic reason: when trigger by // markLine/markPoint/markArea, the componentType is // 'markLine'/'markPoint'/'markArea', but we should better // enable them to be queried by seriesIndex, since their // option is set in each series. if (componentType === 'markLine' || componentType === 'markPoint' || componentType === 'markArea') { componentType = 'series'; componentIndex = params.seriesIndex; } var model = componentType && componentIndex != null && ecModel.getComponent(componentType, componentIndex); var view = model && _this[model.mainType === 'series' ? '_chartsMap' : '_componentsMap'][model.__viewId]; if (true) { // `event.componentType` and `event[componentTpype + 'Index']` must not // be missed, otherwise there is no way to distinguish source component. // See `dataFormat.getDataParams`. if (!isGlobalOut && !(model && view)) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["warn"])('model or view can not be found by params'); } } params.event = e; params.type = eveName; _this._$eventProcessor.eventInfo = { targetEl: el, packedEvent: params, model: model, view: view }; _this.trigger(eveName, params); } }; // Consider that some component (like tooltip, brush, ...) // register zr event handler, but user event handler might // do anything, such as call `setOption` or `dispatchAction`, // which probably update any of the content and probably // cause problem if it is called previous other inner handlers. handler.zrEventfulCallAtLast = true; _this._zr.on(eveName, handler, _this); }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(eventActionMap, function (actionType, eventType) { _this._messageCenter.on(eventType, function (event) { this.trigger(eventType, event); }, _this); }); // Extra events // TODO register? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(['selectchanged'], function (eventType) { _this._messageCenter.on(eventType, function (event) { this.trigger(eventType, event); }, _this); }); Object(_legacy_dataSelectAction_js__WEBPACK_IMPORTED_MODULE_30__["handleLegacySelectEvents"])(this._messageCenter, this, this._api); }; ECharts.prototype.isDisposed = function () { return this._disposed; }; ECharts.prototype.clear = function () { if (this._disposed) { disposedWarning(this.id); return; } this.setOption({ series: [] }, true); }; ECharts.prototype.dispose = function () { if (this._disposed) { disposedWarning(this.id); return; } this._disposed = true; var dom = this.getDom(); if (dom) { _util_model_js__WEBPACK_IMPORTED_MODULE_18__["setAttribute"](this.getDom(), DOM_ATTRIBUTE_KEY, ''); } var chart = this; var api = chart._api; var ecModel = chart._model; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(chart._componentsViews, function (component) { component.dispose(ecModel, api); }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(chart._chartsViews, function (chart) { chart.dispose(ecModel, api); }); // Dispose after all views disposed chart._zr.dispose(); // Set properties to null. // To reduce the memory cost in case the top code still holds this instance unexpectedly. chart._dom = chart._model = chart._chartsMap = chart._componentsMap = chart._chartsViews = chart._componentsViews = chart._scheduler = chart._api = chart._zr = chart._throttledZrFlush = chart._theme = chart._coordSysMgr = chart._messageCenter = null; delete instances[chart.id]; }; /** * Resize the chart */ ECharts.prototype.resize = function (opts) { if (this[IN_MAIN_PROCESS_KEY]) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["error"])('`resize` should not be called during main process.'); } return; } if (this._disposed) { disposedWarning(this.id); return; } this._zr.resize(opts); var ecModel = this._model; // Resize loading effect this._loadingFX && this._loadingFX.resize(); if (!ecModel) { return; } var needPrepare = ecModel.resetOption('media'); var silent = opts && opts.silent; // There is some real cases that: // chart.setOption(option, { lazyUpdate: true }); // chart.resize(); if (this[PENDING_UPDATE]) { if (silent == null) { silent = this[PENDING_UPDATE].silent; } needPrepare = true; this[PENDING_UPDATE] = null; } this[IN_MAIN_PROCESS_KEY] = true; try { needPrepare && prepare(this); updateMethods.update.call(this, { type: 'resize', animation: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["extend"])({ // Disable animation duration: 0 }, opts && opts.animation) }); } catch (e) { this[IN_MAIN_PROCESS_KEY] = false; throw e; } this[IN_MAIN_PROCESS_KEY] = false; flushPendingActions.call(this, silent); triggerUpdatedEvent.call(this, silent); }; ECharts.prototype.showLoading = function (name, cfg) { if (this._disposed) { disposedWarning(this.id); return; } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isObject"])(name)) { cfg = name; name = ''; } name = name || 'default'; this.hideLoading(); if (!loadingEffects[name]) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["warn"])('Loading effects ' + name + ' not exists.'); } return; } var el = loadingEffects[name](this._api, cfg); var zr = this._zr; this._loadingFX = el; zr.add(el); }; /** * Hide loading effect */ ECharts.prototype.hideLoading = function () { if (this._disposed) { disposedWarning(this.id); return; } this._loadingFX && this._zr.remove(this._loadingFX); this._loadingFX = null; }; ECharts.prototype.makeActionFromEvent = function (eventObj) { var payload = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["extend"])({}, eventObj); payload.type = eventActionMap[eventObj.type]; return payload; }; /** * @param opt If pass boolean, means opt.silent * @param opt.silent Default `false`. Whether trigger events. * @param opt.flush Default `undefined`. * true: Flush immediately, and then pixel in canvas can be fetched * immediately. Caution: it might affect performance. * false: Not flush. * undefined: Auto decide whether perform flush. */ ECharts.prototype.dispatchAction = function (payload, opt) { if (this._disposed) { disposedWarning(this.id); return; } if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isObject"])(opt)) { opt = { silent: !!opt }; } if (!actions[payload.type]) { return; } // Avoid dispatch action before setOption. Especially in `connect`. if (!this._model) { return; } // May dispatchAction in rendering procedure if (this[IN_MAIN_PROCESS_KEY]) { this._pendingActions.push(payload); return; } var silent = opt.silent; doDispatchAction.call(this, payload, silent); var flush = opt.flush; if (flush) { this._zr.flush(); } else if (flush !== false && zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__["default"].browser.weChat) { // In WeChat embedded browser, `requestAnimationFrame` and `setInterval` // hang when sliding page (on touch event), which cause that zr does not // refresh until user interaction finished, which is not expected. // But `dispatchAction` may be called too frequently when pan on touch // screen, which impacts performance if do not throttle them. this._throttledZrFlush(); } flushPendingActions.call(this, silent); triggerUpdatedEvent.call(this, silent); }; ECharts.prototype.updateLabelLayout = function () { _lifecycle_js__WEBPACK_IMPORTED_MODULE_35__["default"].trigger('series:layoutlabels', this._model, this._api, { // Not adding series labels. // TODO updatedSeries: [] }); }; ECharts.prototype.appendData = function (params) { if (this._disposed) { disposedWarning(this.id); return; } var seriesIndex = params.seriesIndex; var ecModel = this.getModel(); var seriesModel = ecModel.getSeriesByIndex(seriesIndex); if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["assert"])(params.data && seriesModel); } seriesModel.appendData(params); // Note: `appendData` does not support that update extent of coordinate // system, util some scenario require that. In the expected usage of // `appendData`, the initial extent of coordinate system should better // be fixed by axis `min`/`max` setting or initial data, otherwise if // the extent changed while `appendData`, the location of the painted // graphic elements have to be changed, which make the usage of // `appendData` meaningless. this._scheduler.unfinished = true; this.getZr().wakeUp(); }; // A work around for no `internal` modifier in ts yet but // need to strictly hide private methods to JS users. ECharts.internalField = function () { prepare = function (ecIns) { var scheduler = ecIns._scheduler; scheduler.restorePipelines(ecIns._model); scheduler.prepareStageTasks(); prepareView(ecIns, true); prepareView(ecIns, false); scheduler.plan(); }; /** * Prepare view instances of charts and components */ prepareView = function (ecIns, isComponent) { var ecModel = ecIns._model; var scheduler = ecIns._scheduler; var viewList = isComponent ? ecIns._componentsViews : ecIns._chartsViews; var viewMap = isComponent ? ecIns._componentsMap : ecIns._chartsMap; var zr = ecIns._zr; var api = ecIns._api; for (var i = 0; i < viewList.length; i++) { viewList[i].__alive = false; } isComponent ? ecModel.eachComponent(function (componentType, model) { componentType !== 'series' && doPrepare(model); }) : ecModel.eachSeries(doPrepare); function doPrepare(model) { // By default view will be reused if possible for the case that `setOption` with "notMerge" // mode and need to enable transition animation. (Usually, when they have the same id, or // especially no id but have the same type & name & index. See the `model.id` generation // rule in `makeIdAndName` and `viewId` generation rule here). // But in `replaceMerge` mode, this feature should be able to disabled when it is clear that // the new model has nothing to do with the old model. var requireNewView = model.__requireNewView; // This command should not work twice. model.__requireNewView = false; // Consider: id same and type changed. var viewId = '_ec_' + model.id + '_' + model.type; var view = !requireNewView && viewMap[viewId]; if (!view) { var classType = Object(_util_clazz_js__WEBPACK_IMPORTED_MODULE_25__["parseClassType"])(model.type); var Clazz = isComponent ? _view_Component_js__WEBPACK_IMPORTED_MODULE_13__["default"].getClass(classType.main, classType.sub) : // FIXME:TS // (ChartView as ChartViewConstructor).getClass('series', classType.sub) // For backward compat, still support a chart type declared as only subType // like "liquidfill", but recommend "series.liquidfill" // But need a base class to make a type series. _view_Chart_js__WEBPACK_IMPORTED_MODULE_14__["default"].getClass(classType.sub); if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["assert"])(Clazz, classType.sub + ' does not exist.'); } view = new Clazz(); view.init(ecModel, api); viewMap[viewId] = view; viewList.push(view); zr.add(view.group); } model.__viewId = view.__id = viewId; view.__alive = true; view.__model = model; view.group.__ecComponentInfo = { mainType: model.mainType, index: model.componentIndex }; !isComponent && scheduler.prepareView(view, model, ecModel, api); } for (var i = 0; i < viewList.length;) { var view = viewList[i]; if (!view.__alive) { !isComponent && view.renderTask.dispose(); zr.remove(view.group); view.dispose(ecModel, api); viewList.splice(i, 1); if (viewMap[view.__id] === view) { delete viewMap[view.__id]; } view.__id = view.group.__ecComponentInfo = null; } else { i++; } } }; updateDirectly = function (ecIns, method, payload, mainType, subType) { var ecModel = ecIns._model; ecModel.setUpdatePayload(payload); // broadcast if (!mainType) { // FIXME // Chart will not be update directly here, except set dirty. // But there is no such scenario now. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])([].concat(ecIns._componentsViews).concat(ecIns._chartsViews), callView); return; } var query = {}; query[mainType + 'Id'] = payload[mainType + 'Id']; query[mainType + 'Index'] = payload[mainType + 'Index']; query[mainType + 'Name'] = payload[mainType + 'Name']; var condition = { mainType: mainType, query: query }; subType && (condition.subType = subType); // subType may be '' by parseClassType; var excludeSeriesId = payload.excludeSeriesId; var excludeSeriesIdMap; if (excludeSeriesId != null) { excludeSeriesIdMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["createHashMap"])(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(_util_model_js__WEBPACK_IMPORTED_MODULE_18__["normalizeToArray"](excludeSeriesId), function (id) { var modelId = _util_model_js__WEBPACK_IMPORTED_MODULE_18__["convertOptionIdName"](id, null); if (modelId != null) { excludeSeriesIdMap.set(modelId, true); } }); } // If dispatchAction before setOption, do nothing. ecModel && ecModel.eachComponent(condition, function (model) { var isExcluded = excludeSeriesIdMap && excludeSeriesIdMap.get(model.id) != null; if (isExcluded) { return; } ; if (Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["isHighDownPayload"])(payload)) { if (model instanceof _model_Series_js__WEBPACK_IMPORTED_MODULE_12__["default"]) { if (payload.type === _util_states_js__WEBPACK_IMPORTED_MODULE_17__["HIGHLIGHT_ACTION_TYPE"] && !payload.notBlur && !model.get(['emphasis', 'disabled'])) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["blurSeriesFromHighlightPayload"])(model, payload, ecIns._api); } } else { var _a = Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["findComponentHighDownDispatchers"])(model.mainType, model.componentIndex, payload.name, ecIns._api), focusSelf = _a.focusSelf, dispatchers = _a.dispatchers; if (payload.type === _util_states_js__WEBPACK_IMPORTED_MODULE_17__["HIGHLIGHT_ACTION_TYPE"] && focusSelf && !payload.notBlur) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["blurComponent"])(model.mainType, model.componentIndex, ecIns._api); } // PENDING: // Whether to put this "enter emphasis" code in `ComponentView`, // which will be the same as `ChartView` but might be not necessary // and will be far from this logic. if (dispatchers) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(dispatchers, function (dispatcher) { payload.type === _util_states_js__WEBPACK_IMPORTED_MODULE_17__["HIGHLIGHT_ACTION_TYPE"] ? Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["enterEmphasis"])(dispatcher) : Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["leaveEmphasis"])(dispatcher); }); } } } else if (Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["isSelectChangePayload"])(payload)) { // TODO geo if (model instanceof _model_Series_js__WEBPACK_IMPORTED_MODULE_12__["default"]) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["toggleSelectionFromPayload"])(model, payload, ecIns._api); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["updateSeriesElementSelection"])(model); markStatusToUpdate(ecIns); } } }, ecIns); ecModel && ecModel.eachComponent(condition, function (model) { var isExcluded = excludeSeriesIdMap && excludeSeriesIdMap.get(model.id) != null; if (isExcluded) { return; } ; callView(ecIns[mainType === 'series' ? '_chartsMap' : '_componentsMap'][model.__viewId]); }, ecIns); function callView(view) { view && view.__alive && view[method] && view[method](view.__model, ecModel, ecIns._api, payload); } }; updateMethods = { prepareAndUpdate: function (payload) { prepare(this); updateMethods.update.call(this, payload, { // Needs to mark option changed if newOption is given. // It's from MagicType. // TODO If use a separate flag optionChanged in payload? optionChanged: payload.newOption != null }); }, update: function (payload, updateParams) { var ecModel = this._model; var api = this._api; var zr = this._zr; var coordSysMgr = this._coordSysMgr; var scheduler = this._scheduler; // update before setOption if (!ecModel) { return; } ecModel.setUpdatePayload(payload); scheduler.restoreData(ecModel, payload); scheduler.performSeriesTasks(ecModel); // TODO // Save total ecModel here for undo/redo (after restoring data and before processing data). // Undo (restoration of total ecModel) can be carried out in 'action' or outside API call. // Create new coordinate system each update // In LineView may save the old coordinate system and use it to get the original point. coordSysMgr.create(ecModel, api); scheduler.performDataProcessorTasks(ecModel, payload); // Current stream render is not supported in data process. So we can update // stream modes after data processing, where the filtered data is used to // determine whether to use progressive rendering. updateStreamModes(this, ecModel); // We update stream modes before coordinate system updated, then the modes info // can be fetched when coord sys updating (consider the barGrid extent fix). But // the drawback is the full coord info can not be fetched. Fortunately this full // coord is not required in stream mode updater currently. coordSysMgr.update(ecModel, api); clearColorPalette(ecModel); scheduler.performVisualTasks(ecModel, payload); render(this, ecModel, api, payload, updateParams); // Set background var backgroundColor = ecModel.get('backgroundColor') || 'transparent'; var darkMode = ecModel.get('darkMode'); zr.setBackgroundColor(backgroundColor); // Force set dark mode. if (darkMode != null && darkMode !== 'auto') { zr.setDarkMode(darkMode); } _lifecycle_js__WEBPACK_IMPORTED_MODULE_35__["default"].trigger('afterupdate', ecModel, api); }, updateTransform: function (payload) { var _this = this; var ecModel = this._model; var api = this._api; // update before setOption if (!ecModel) { return; } ecModel.setUpdatePayload(payload); // ChartView.markUpdateMethod(payload, 'updateTransform'); var componentDirtyList = []; ecModel.eachComponent(function (componentType, componentModel) { if (componentType === 'series') { return; } var componentView = _this.getViewOfComponentModel(componentModel); if (componentView && componentView.__alive) { if (componentView.updateTransform) { var result = componentView.updateTransform(componentModel, ecModel, api, payload); result && result.update && componentDirtyList.push(componentView); } else { componentDirtyList.push(componentView); } } }); var seriesDirtyMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["createHashMap"])(); ecModel.eachSeries(function (seriesModel) { var chartView = _this._chartsMap[seriesModel.__viewId]; if (chartView.updateTransform) { var result = chartView.updateTransform(seriesModel, ecModel, api, payload); result && result.update && seriesDirtyMap.set(seriesModel.uid, 1); } else { seriesDirtyMap.set(seriesModel.uid, 1); } }); clearColorPalette(ecModel); // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline. // this._scheduler.performVisualTasks(ecModel, payload, 'layout', true); this._scheduler.performVisualTasks(ecModel, payload, { setDirty: true, dirtyMap: seriesDirtyMap }); // Currently, not call render of components. Geo render cost a lot. // renderComponents(ecIns, ecModel, api, payload, componentDirtyList); renderSeries(this, ecModel, api, payload, {}, seriesDirtyMap); _lifecycle_js__WEBPACK_IMPORTED_MODULE_35__["default"].trigger('afterupdate', ecModel, api); }, updateView: function (payload) { var ecModel = this._model; // update before setOption if (!ecModel) { return; } ecModel.setUpdatePayload(payload); _view_Chart_js__WEBPACK_IMPORTED_MODULE_14__["default"].markUpdateMethod(payload, 'updateView'); clearColorPalette(ecModel); // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline. this._scheduler.performVisualTasks(ecModel, payload, { setDirty: true }); render(this, ecModel, this._api, payload, {}); _lifecycle_js__WEBPACK_IMPORTED_MODULE_35__["default"].trigger('afterupdate', ecModel, this._api); }, updateVisual: function (payload) { // updateMethods.update.call(this, payload); var _this = this; var ecModel = this._model; // update before setOption if (!ecModel) { return; } ecModel.setUpdatePayload(payload); // clear all visual ecModel.eachSeries(function (seriesModel) { seriesModel.getData().clearAllVisual(); }); // Perform visual _view_Chart_js__WEBPACK_IMPORTED_MODULE_14__["default"].markUpdateMethod(payload, 'updateVisual'); clearColorPalette(ecModel); // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline. this._scheduler.performVisualTasks(ecModel, payload, { visualType: 'visual', setDirty: true }); ecModel.eachComponent(function (componentType, componentModel) { if (componentType !== 'series') { var componentView = _this.getViewOfComponentModel(componentModel); componentView && componentView.__alive && componentView.updateVisual(componentModel, ecModel, _this._api, payload); } }); ecModel.eachSeries(function (seriesModel) { var chartView = _this._chartsMap[seriesModel.__viewId]; chartView.updateVisual(seriesModel, ecModel, _this._api, payload); }); _lifecycle_js__WEBPACK_IMPORTED_MODULE_35__["default"].trigger('afterupdate', ecModel, this._api); }, updateLayout: function (payload) { updateMethods.update.call(this, payload); } }; doConvertPixel = function (ecIns, methodName, finder, value) { if (ecIns._disposed) { disposedWarning(ecIns.id); return; } var ecModel = ecIns._model; var coordSysList = ecIns._coordSysMgr.getCoordinateSystems(); var result; var parsedFinder = _util_model_js__WEBPACK_IMPORTED_MODULE_18__["parseFinder"](ecModel, finder); for (var i = 0; i < coordSysList.length; i++) { var coordSys = coordSysList[i]; if (coordSys[methodName] && (result = coordSys[methodName](ecModel, parsedFinder, value)) != null) { return result; } } if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["warn"])('No coordinate system that supports ' + methodName + ' found by the given finder.'); } }; updateStreamModes = function (ecIns, ecModel) { var chartsMap = ecIns._chartsMap; var scheduler = ecIns._scheduler; ecModel.eachSeries(function (seriesModel) { scheduler.updateStreamModes(seriesModel, chartsMap[seriesModel.__viewId]); }); }; doDispatchAction = function (payload, silent) { var _this = this; var ecModel = this.getModel(); var payloadType = payload.type; var escapeConnect = payload.escapeConnect; var actionWrap = actions[payloadType]; var actionInfo = actionWrap.actionInfo; var cptTypeTmp = (actionInfo.update || 'update').split(':'); var updateMethod = cptTypeTmp.pop(); var cptType = cptTypeTmp[0] != null && Object(_util_clazz_js__WEBPACK_IMPORTED_MODULE_25__["parseClassType"])(cptTypeTmp[0]); this[IN_MAIN_PROCESS_KEY] = true; var payloads = [payload]; var batched = false; // Batch action if (payload.batch) { batched = true; payloads = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["map"])(payload.batch, function (item) { item = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["defaults"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["extend"])({}, item), payload); item.batch = null; return item; }); } var eventObjBatch = []; var eventObj; var isSelectChange = Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["isSelectChangePayload"])(payload); var isHighDown = Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["isHighDownPayload"])(payload); // Only leave blur once if there are multiple batches. if (isHighDown) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["allLeaveBlur"])(this._api); } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(payloads, function (batchItem) { // Action can specify the event by return it. eventObj = actionWrap.action(batchItem, _this._model, _this._api); // Emit event outside eventObj = eventObj || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["extend"])({}, batchItem); // Convert type to eventType eventObj.type = actionInfo.event || eventObj.type; eventObjBatch.push(eventObj); // light update does not perform data process, layout and visual. if (isHighDown) { var _a = _util_model_js__WEBPACK_IMPORTED_MODULE_18__["preParseFinder"](payload), queryOptionMap = _a.queryOptionMap, mainTypeSpecified = _a.mainTypeSpecified; var componentMainType = mainTypeSpecified ? queryOptionMap.keys()[0] : 'series'; updateDirectly(_this, updateMethod, batchItem, componentMainType); markStatusToUpdate(_this); } else if (isSelectChange) { // At present `dispatchAction({ type: 'select', ... })` is not supported on components. // geo still use 'geoselect'. updateDirectly(_this, updateMethod, batchItem, 'series'); markStatusToUpdate(_this); } else if (cptType) { updateDirectly(_this, updateMethod, batchItem, cptType.main, cptType.sub); } }); if (updateMethod !== 'none' && !isHighDown && !isSelectChange && !cptType) { try { // Still dirty if (this[PENDING_UPDATE]) { prepare(this); updateMethods.update.call(this, payload); this[PENDING_UPDATE] = null; } else { updateMethods[updateMethod].call(this, payload); } } catch (e) { this[IN_MAIN_PROCESS_KEY] = false; throw e; } } // Follow the rule of action batch if (batched) { eventObj = { type: actionInfo.event || payloadType, escapeConnect: escapeConnect, batch: eventObjBatch }; } else { eventObj = eventObjBatch[0]; } this[IN_MAIN_PROCESS_KEY] = false; if (!silent) { var messageCenter = this._messageCenter; messageCenter.trigger(eventObj.type, eventObj); // Extra triggered 'selectchanged' event if (isSelectChange) { var newObj = { type: 'selectchanged', escapeConnect: escapeConnect, selected: Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["getAllSelectedIndices"])(ecModel), isFromClick: payload.isFromClick || false, fromAction: payload.type, fromActionPayload: payload }; messageCenter.trigger(newObj.type, newObj); } } }; flushPendingActions = function (silent) { var pendingActions = this._pendingActions; while (pendingActions.length) { var payload = pendingActions.shift(); doDispatchAction.call(this, payload, silent); } }; triggerUpdatedEvent = function (silent) { !silent && this.trigger('updated'); }; /** * Event `rendered` is triggered when zr * rendered. It is useful for realtime * snapshot (reflect animation). * * Event `finished` is triggered when: * (1) zrender rendering finished. * (2) initial animation finished. * (3) progressive rendering finished. * (4) no pending action. * (5) no delayed setOption needs to be processed. */ bindRenderedEvent = function (zr, ecIns) { zr.on('rendered', function (params) { ecIns.trigger('rendered', params); // The `finished` event should not be triggered repeatedly, // so it should only be triggered when rendering indeed happens // in zrender. (Consider the case that dipatchAction is keep // triggering when mouse move). if ( // Although zr is dirty if initial animation is not finished // and this checking is called on frame, we also check // animation finished for robustness. zr.animation.isFinished() && !ecIns[PENDING_UPDATE] && !ecIns._scheduler.unfinished && !ecIns._pendingActions.length) { ecIns.trigger('finished'); } }); }; bindMouseEvent = function (zr, ecIns) { zr.on('mouseover', function (e) { var el = e.target; var dispatcher = Object(_util_event_js__WEBPACK_IMPORTED_MODULE_33__["findEventDispatcher"])(el, _util_states_js__WEBPACK_IMPORTED_MODULE_17__["isHighDownDispatcher"]); if (dispatcher) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["handleGlobalMouseOverForHighDown"])(dispatcher, e, ecIns._api); markStatusToUpdate(ecIns); } }).on('mouseout', function (e) { var el = e.target; var dispatcher = Object(_util_event_js__WEBPACK_IMPORTED_MODULE_33__["findEventDispatcher"])(el, _util_states_js__WEBPACK_IMPORTED_MODULE_17__["isHighDownDispatcher"]); if (dispatcher) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["handleGlobalMouseOutForHighDown"])(dispatcher, e, ecIns._api); markStatusToUpdate(ecIns); } }).on('click', function (e) { var el = e.target; var dispatcher = Object(_util_event_js__WEBPACK_IMPORTED_MODULE_33__["findEventDispatcher"])(el, function (target) { return Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_16__["getECData"])(target).dataIndex != null; }, true); if (dispatcher) { var actionType = dispatcher.selected ? 'unselect' : 'select'; var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_16__["getECData"])(dispatcher); ecIns._api.dispatchAction({ type: actionType, dataType: ecData.dataType, dataIndexInside: ecData.dataIndex, seriesIndex: ecData.seriesIndex, isFromClick: true }); } }); }; function clearColorPalette(ecModel) { ecModel.clearColorPalette(); ecModel.eachSeries(function (seriesModel) { seriesModel.clearColorPalette(); }); } ; // Allocate zlevels for series and components function allocateZlevels(ecModel) { ; var componentZLevels = []; var seriesZLevels = []; var hasSeparateZLevel = false; ecModel.eachComponent(function (componentType, componentModel) { var zlevel = componentModel.get('zlevel') || 0; var z = componentModel.get('z') || 0; var zlevelKey = componentModel.getZLevelKey(); hasSeparateZLevel = hasSeparateZLevel || !!zlevelKey; (componentType === 'series' ? seriesZLevels : componentZLevels).push({ zlevel: zlevel, z: z, idx: componentModel.componentIndex, type: componentType, key: zlevelKey }); }); if (hasSeparateZLevel) { // Series after component var zLevels = componentZLevels.concat(seriesZLevels); var lastSeriesZLevel_1; var lastSeriesKey_1; Object(zrender_lib_core_timsort_js__WEBPACK_IMPORTED_MODULE_4__["default"])(zLevels, function (a, b) { if (a.zlevel === b.zlevel) { return a.z - b.z; } return a.zlevel - b.zlevel; }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(zLevels, function (item) { var componentModel = ecModel.getComponent(item.type, item.idx); var zlevel = item.zlevel; var key = item.key; if (lastSeriesZLevel_1 != null) { zlevel = Math.max(lastSeriesZLevel_1, zlevel); } if (key) { if (zlevel === lastSeriesZLevel_1 && key !== lastSeriesKey_1) { zlevel++; } lastSeriesKey_1 = key; } else if (lastSeriesKey_1) { if (zlevel === lastSeriesZLevel_1) { zlevel++; } lastSeriesKey_1 = ''; } lastSeriesZLevel_1 = zlevel; componentModel.setZLevel(zlevel); }); } } render = function (ecIns, ecModel, api, payload, updateParams) { allocateZlevels(ecModel); renderComponents(ecIns, ecModel, api, payload, updateParams); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(ecIns._chartsViews, function (chart) { chart.__alive = false; }); renderSeries(ecIns, ecModel, api, payload, updateParams); // Remove groups of unrendered charts Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(ecIns._chartsViews, function (chart) { if (!chart.__alive) { chart.remove(ecModel, api); } }); }; renderComponents = function (ecIns, ecModel, api, payload, updateParams, dirtyList) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(dirtyList || ecIns._componentsViews, function (componentView) { var componentModel = componentView.__model; clearStates(componentModel, componentView); componentView.render(componentModel, ecModel, api, payload); updateZ(componentModel, componentView); updateStates(componentModel, componentView); }); }; /** * Render each chart and component */ renderSeries = function (ecIns, ecModel, api, payload, updateParams, dirtyMap) { // Render all charts var scheduler = ecIns._scheduler; updateParams = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["extend"])(updateParams || {}, { updatedSeries: ecModel.getSeries() }); // TODO progressive? _lifecycle_js__WEBPACK_IMPORTED_MODULE_35__["default"].trigger('series:beforeupdate', ecModel, api, updateParams); var unfinished = false; ecModel.eachSeries(function (seriesModel) { var chartView = ecIns._chartsMap[seriesModel.__viewId]; chartView.__alive = true; var renderTask = chartView.renderTask; scheduler.updatePayload(renderTask, payload); // TODO states on marker. clearStates(seriesModel, chartView); if (dirtyMap && dirtyMap.get(seriesModel.uid)) { renderTask.dirty(); } if (renderTask.perform(scheduler.getPerformArgs(renderTask))) { unfinished = true; } chartView.group.silent = !!seriesModel.get('silent'); // Should not call markRedraw on group, because it will disable zrender // incremental render (always render from the __startIndex each frame) // chartView.group.markRedraw(); updateBlend(seriesModel, chartView); Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["updateSeriesElementSelection"])(seriesModel); }); scheduler.unfinished = unfinished || scheduler.unfinished; _lifecycle_js__WEBPACK_IMPORTED_MODULE_35__["default"].trigger('series:layoutlabels', ecModel, api, updateParams); // transition after label is layouted. _lifecycle_js__WEBPACK_IMPORTED_MODULE_35__["default"].trigger('series:transition', ecModel, api, updateParams); ecModel.eachSeries(function (seriesModel) { var chartView = ecIns._chartsMap[seriesModel.__viewId]; // Update Z after labels updated. Before applying states. updateZ(seriesModel, chartView); // NOTE: Update states after label is updated. // label should be in normal status when layouting. updateStates(seriesModel, chartView); }); // If use hover layer updateHoverLayerStatus(ecIns, ecModel); _lifecycle_js__WEBPACK_IMPORTED_MODULE_35__["default"].trigger('series:afterupdate', ecModel, api, updateParams); }; markStatusToUpdate = function (ecIns) { ecIns[STATUS_NEEDS_UPDATE_KEY] = true; // Wake up zrender if it's sleep. Let it update states in the next frame. ecIns.getZr().wakeUp(); }; applyChangedStates = function (ecIns) { if (!ecIns[STATUS_NEEDS_UPDATE_KEY]) { return; } ecIns.getZr().storage.traverse(function (el) { // Not applied on removed elements, it may still in fading. if (_util_graphic_js__WEBPACK_IMPORTED_MODULE_15__["isElementRemoved"](el)) { return; } applyElementStates(el); }); ecIns[STATUS_NEEDS_UPDATE_KEY] = false; }; function applyElementStates(el) { var newStates = []; var oldStates = el.currentStates; // Keep other states. for (var i = 0; i < oldStates.length; i++) { var stateName = oldStates[i]; if (!(stateName === 'emphasis' || stateName === 'blur' || stateName === 'select')) { newStates.push(stateName); } } // Only use states when it's exists. if (el.selected && el.states.select) { newStates.push('select'); } if (el.hoverState === _util_states_js__WEBPACK_IMPORTED_MODULE_17__["HOVER_STATE_EMPHASIS"] && el.states.emphasis) { newStates.push('emphasis'); } else if (el.hoverState === _util_states_js__WEBPACK_IMPORTED_MODULE_17__["HOVER_STATE_BLUR"] && el.states.blur) { newStates.push('blur'); } el.useStates(newStates); } function updateHoverLayerStatus(ecIns, ecModel) { var zr = ecIns._zr; var storage = zr.storage; var elCount = 0; storage.traverse(function (el) { if (!el.isGroup) { elCount++; } }); if (elCount > ecModel.get('hoverLayerThreshold') && !zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__["default"].node && !zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_3__["default"].worker) { ecModel.eachSeries(function (seriesModel) { if (seriesModel.preventUsingHoverLayer) { return; } var chartView = ecIns._chartsMap[seriesModel.__viewId]; if (chartView.__alive) { chartView.eachRendered(function (el) { if (el.states.emphasis) { el.states.emphasis.hoverLayer = true; } }); } }); } } ; /** * Update chart and blend. */ function updateBlend(seriesModel, chartView) { var blendMode = seriesModel.get('blendMode') || null; chartView.eachRendered(function (el) { // FIXME marker and other components if (!el.isGroup) { // DON'T mark the element dirty. In case element is incremental and don't want to rerender. el.style.blend = blendMode; } }); } ; function updateZ(model, view) { if (model.preventAutoZ) { return; } var z = model.get('z') || 0; var zlevel = model.get('zlevel') || 0; // Set z and zlevel view.eachRendered(function (el) { doUpdateZ(el, z, zlevel, -Infinity); // Don't traverse the children because it has been traversed in _updateZ. return true; }); } ; function doUpdateZ(el, z, zlevel, maxZ2) { // Group may also have textContent var label = el.getTextContent(); var labelLine = el.getTextGuideLine(); var isGroup = el.isGroup; if (isGroup) { // set z & zlevel of children elements of Group var children = el.childrenRef(); for (var i = 0; i < children.length; i++) { maxZ2 = Math.max(doUpdateZ(children[i], z, zlevel, maxZ2), maxZ2); } } else { // not Group el.z = z; el.zlevel = zlevel; maxZ2 = Math.max(el.z2, maxZ2); } // always set z and zlevel if label/labelLine exists if (label) { label.z = z; label.zlevel = zlevel; // lift z2 of text content // TODO if el.emphasis.z2 is spcefied, what about textContent. isFinite(maxZ2) && (label.z2 = maxZ2 + 2); } if (labelLine) { var textGuideLineConfig = el.textGuideLineConfig; labelLine.z = z; labelLine.zlevel = zlevel; isFinite(maxZ2) && (labelLine.z2 = maxZ2 + (textGuideLineConfig && textGuideLineConfig.showAbove ? 1 : -1)); } return maxZ2; } // Clear states without animation. // TODO States on component. function clearStates(model, view) { view.eachRendered(function (el) { // Not applied on removed elements, it may still in fading. if (_util_graphic_js__WEBPACK_IMPORTED_MODULE_15__["isElementRemoved"](el)) { return; } var textContent = el.getTextContent(); var textGuide = el.getTextGuideLine(); if (el.stateTransition) { el.stateTransition = null; } if (textContent && textContent.stateTransition) { textContent.stateTransition = null; } if (textGuide && textGuide.stateTransition) { textGuide.stateTransition = null; } // TODO If el is incremental. if (el.hasState()) { el.prevStates = el.currentStates; el.clearStates(); } else if (el.prevStates) { el.prevStates = null; } }); } function updateStates(model, view) { var stateAnimationModel = model.getModel('stateAnimation'); var enableAnimation = model.isAnimationEnabled(); var duration = stateAnimationModel.get('duration'); var stateTransition = duration > 0 ? { duration: duration, delay: stateAnimationModel.get('delay'), easing: stateAnimationModel.get('easing') // additive: stateAnimationModel.get('additive') } : null; view.eachRendered(function (el) { if (el.states && el.states.emphasis) { // Not applied on removed elements, it may still in fading. if (_util_graphic_js__WEBPACK_IMPORTED_MODULE_15__["isElementRemoved"](el)) { return; } if (el instanceof _util_graphic_js__WEBPACK_IMPORTED_MODULE_15__["Path"]) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["savePathStates"])(el); } // Only updated on changed element. In case element is incremental and don't want to rerender. // TODO, a more proper way? if (el.__dirty) { var prevStates = el.prevStates; // Restore states without animation if (prevStates) { el.useStates(prevStates); } } // Update state transition and enable animation again. if (enableAnimation) { el.stateTransition = stateTransition; var textContent = el.getTextContent(); var textGuide = el.getTextGuideLine(); // TODO Is it necessary to animate label? if (textContent) { textContent.stateTransition = stateTransition; } if (textGuide) { textGuide.stateTransition = stateTransition; } } // Use highlighted and selected flag to toggle states. if (el.__dirty) { applyElementStates(el); } } }); } ; createExtensionAPI = function (ecIns) { return new (/** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.getCoordinateSystems = function () { return ecIns._coordSysMgr.getCoordinateSystems(); }; class_1.prototype.getComponentByElement = function (el) { while (el) { var modelInfo = el.__ecComponentInfo; if (modelInfo != null) { return ecIns._model.getComponent(modelInfo.mainType, modelInfo.index); } el = el.parent; } }; class_1.prototype.enterEmphasis = function (el, highlightDigit) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["enterEmphasis"])(el, highlightDigit); markStatusToUpdate(ecIns); }; class_1.prototype.leaveEmphasis = function (el, highlightDigit) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["leaveEmphasis"])(el, highlightDigit); markStatusToUpdate(ecIns); }; class_1.prototype.enterBlur = function (el) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["enterBlur"])(el); markStatusToUpdate(ecIns); }; class_1.prototype.leaveBlur = function (el) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["leaveBlur"])(el); markStatusToUpdate(ecIns); }; class_1.prototype.enterSelect = function (el) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["enterSelect"])(el); markStatusToUpdate(ecIns); }; class_1.prototype.leaveSelect = function (el) { Object(_util_states_js__WEBPACK_IMPORTED_MODULE_17__["leaveSelect"])(el); markStatusToUpdate(ecIns); }; class_1.prototype.getModel = function () { return ecIns.getModel(); }; class_1.prototype.getViewOfComponentModel = function (componentModel) { return ecIns.getViewOfComponentModel(componentModel); }; class_1.prototype.getViewOfSeriesModel = function (seriesModel) { return ecIns.getViewOfSeriesModel(seriesModel); }; return class_1; }(_ExtensionAPI_js__WEBPACK_IMPORTED_MODULE_7__["default"]))(ecIns); }; enableConnect = function (chart) { function updateConnectedChartsStatus(charts, status) { for (var i = 0; i < charts.length; i++) { var otherChart = charts[i]; otherChart[CONNECT_STATUS_KEY] = status; } } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(eventActionMap, function (actionType, eventType) { chart._messageCenter.on(eventType, function (event) { if (connectedGroups[chart.group] && chart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_PENDING) { if (event && event.escapeConnect) { return; } var action_1 = chart.makeActionFromEvent(event); var otherCharts_1 = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(instances, function (otherChart) { if (otherChart !== chart && otherChart.group === chart.group) { otherCharts_1.push(otherChart); } }); updateConnectedChartsStatus(otherCharts_1, CONNECT_STATUS_PENDING); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(otherCharts_1, function (otherChart) { if (otherChart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_UPDATING) { otherChart.dispatchAction(action_1); } }); updateConnectedChartsStatus(otherCharts_1, CONNECT_STATUS_UPDATED); } }); }); }; }(); return ECharts; }(zrender_lib_core_Eventful_js__WEBPACK_IMPORTED_MODULE_5__["default"]); var echartsProto = ECharts.prototype; echartsProto.on = createRegisterEventWithLowercaseECharts('on'); echartsProto.off = createRegisterEventWithLowercaseECharts('off'); /** * @deprecated */ // @ts-ignore echartsProto.one = function (eventName, cb, ctx) { var self = this; Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["deprecateLog"])('ECharts#one is deprecated.'); function wrapped() { var args2 = []; for (var _i = 0; _i < arguments.length; _i++) { args2[_i] = arguments[_i]; } cb && cb.apply && cb.apply(this, args2); // @ts-ignore self.off(eventName, wrapped); } ; // @ts-ignore this.on.call(this, eventName, wrapped, ctx); }; var MOUSE_EVENT_NAMES = ['click', 'dblclick', 'mouseover', 'mouseout', 'mousemove', 'mousedown', 'mouseup', 'globalout', 'contextmenu']; function disposedWarning(id) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["warn"])('Instance ' + id + ' has been disposed'); } } var actions = {}; /** * Map eventType to actionType */ var eventActionMap = {}; var dataProcessorFuncs = []; var optionPreprocessorFuncs = []; var visualFuncs = []; var themeStorage = {}; var loadingEffects = {}; var instances = {}; var connectedGroups = {}; var idBase = +new Date() - 0; var groupIdBase = +new Date() - 0; var DOM_ATTRIBUTE_KEY = '_echarts_instance_'; /** * @param opts.devicePixelRatio Use window.devicePixelRatio by default * @param opts.renderer Can choose 'canvas' or 'svg' to render the chart. * @param opts.width Use clientWidth of the input `dom` by default. * Can be 'auto' (the same as null/undefined) * @param opts.height Use clientHeight of the input `dom` by default. * Can be 'auto' (the same as null/undefined) * @param opts.locale Specify the locale. * @param opts.useDirtyRect Enable dirty rectangle rendering or not. */ function init(dom, theme, opts) { var isClient = !(opts && opts.ssr); if (isClient) { if (true) { if (!dom) { throw new Error('Initialize failed: invalid dom.'); } } var existInstance = getInstanceByDom(dom); if (existInstance) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["warn"])('There is a chart instance already initialized on the dom.'); } return existInstance; } if (true) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isDom"])(dom) && dom.nodeName.toUpperCase() !== 'CANVAS' && (!dom.clientWidth && (!opts || opts.width == null) || !dom.clientHeight && (!opts || opts.height == null))) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["warn"])('Can\'t get DOM width or height. Please check ' + 'dom.clientWidth and dom.clientHeight. They should not be 0.' + 'For example, you may need to call this in the callback ' + 'of window.onload.'); } } } var chart = new ECharts(dom, theme, opts); chart.id = 'ec_' + idBase++; instances[chart.id] = chart; isClient && _util_model_js__WEBPACK_IMPORTED_MODULE_18__["setAttribute"](dom, DOM_ATTRIBUTE_KEY, chart.id); enableConnect(chart); _lifecycle_js__WEBPACK_IMPORTED_MODULE_35__["default"].trigger('afterinit', chart); return chart; } /** * @usage * (A) * ```js * let chart1 = echarts.init(dom1); * let chart2 = echarts.init(dom2); * chart1.group = 'xxx'; * chart2.group = 'xxx'; * echarts.connect('xxx'); * ``` * (B) * ```js * let chart1 = echarts.init(dom1); * let chart2 = echarts.init(dom2); * echarts.connect('xxx', [chart1, chart2]); * ``` */ function connect(groupId) { // Is array of charts if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isArray"])(groupId)) { var charts = groupId; groupId = null; // If any chart has group Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(charts, function (chart) { if (chart.group != null) { groupId = chart.group; } }); groupId = groupId || 'g_' + groupIdBase++; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(charts, function (chart) { chart.group = groupId; }); } connectedGroups[groupId] = true; return groupId; } function disconnect(groupId) { connectedGroups[groupId] = false; } /** * Alias and backward compatibility * @deprecated */ var disConnect = disconnect; /** * Dispose a chart instance */ function dispose(chart) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isString"])(chart)) { chart = instances[chart]; } else if (!(chart instanceof ECharts)) { // Try to treat as dom chart = getInstanceByDom(chart); } if (chart instanceof ECharts && !chart.isDisposed()) { chart.dispose(); } } function getInstanceByDom(dom) { return instances[_util_model_js__WEBPACK_IMPORTED_MODULE_18__["getAttribute"](dom, DOM_ATTRIBUTE_KEY)]; } function getInstanceById(key) { return instances[key]; } /** * Register theme */ function registerTheme(name, theme) { themeStorage[name] = theme; } /** * Register option preprocessor */ function registerPreprocessor(preprocessorFunc) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["indexOf"])(optionPreprocessorFuncs, preprocessorFunc) < 0) { optionPreprocessorFuncs.push(preprocessorFunc); } } function registerProcessor(priority, processor) { normalizeRegister(dataProcessorFuncs, priority, processor, PRIORITY_PROCESSOR_DEFAULT); } /** * Register postIniter * @param {Function} postInitFunc */ function registerPostInit(postInitFunc) { registerUpdateLifecycle('afterinit', postInitFunc); } /** * Register postUpdater * @param {Function} postUpdateFunc */ function registerPostUpdate(postUpdateFunc) { registerUpdateLifecycle('afterupdate', postUpdateFunc); } function registerUpdateLifecycle(name, cb) { _lifecycle_js__WEBPACK_IMPORTED_MODULE_35__["default"].on(name, cb); } function registerAction(actionInfo, eventName, action) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(eventName)) { action = eventName; eventName = ''; } var actionType = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isObject"])(actionInfo) ? actionInfo.type : [actionInfo, actionInfo = { event: eventName }][0]; // Event name is all lowercase actionInfo.event = (actionInfo.event || actionType).toLowerCase(); eventName = actionInfo.event; if (eventActionMap[eventName]) { // Already registered. return; } // Validate action type and event name. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["assert"])(ACTION_REG.test(actionType) && ACTION_REG.test(eventName)); if (!actions[actionType]) { actions[actionType] = { action: action, actionInfo: actionInfo }; } eventActionMap[eventName] = actionType; } function registerCoordinateSystem(type, coordSysCreator) { _CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_8__["default"].register(type, coordSysCreator); } /** * Get dimensions of specified coordinate system. * @param {string} type * @return {Array.} */ function getCoordinateSystemDimensions(type) { var coordSysCreator = _CoordinateSystem_js__WEBPACK_IMPORTED_MODULE_8__["default"].get(type); if (coordSysCreator) { return coordSysCreator.getDimensionsInfo ? coordSysCreator.getDimensionsInfo() : coordSysCreator.dimensions.slice(); } } function registerLayout(priority, layoutTask) { normalizeRegister(visualFuncs, priority, layoutTask, PRIORITY_VISUAL_LAYOUT, 'layout'); } function registerVisual(priority, visualTask) { normalizeRegister(visualFuncs, priority, visualTask, PRIORITY_VISUAL_CHART, 'visual'); } var registeredTasks = []; function normalizeRegister(targetList, priority, fn, defaultPriority, visualType) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(priority) || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isObject"])(priority)) { fn = priority; priority = defaultPriority; } if (true) { if (isNaN(priority) || priority == null) { throw new Error('Illegal priority'); } // Check duplicate Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(targetList, function (wrap) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["assert"])(wrap.__raw !== fn); }); } // Already registered if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["indexOf"])(registeredTasks, fn) >= 0) { return; } registeredTasks.push(fn); var stageHandler = _Scheduler_js__WEBPACK_IMPORTED_MODULE_22__["default"].wrapStageHandler(fn, visualType); stageHandler.__prio = priority; stageHandler.__raw = fn; targetList.push(stageHandler); } function registerLoading(name, loadingFx) { loadingEffects[name] = loadingFx; } /** * ZRender need a canvas context to do measureText. * But in node environment canvas may be created by node-canvas. * So we need to specify how to create a canvas instead of using document.createElement('canvas') * * * @deprecated use setPlatformAPI({ createCanvas }) instead. * * @example * let Canvas = require('canvas'); * let echarts = require('echarts'); * echarts.setCanvasCreator(function () { * // Small size is enough. * return new Canvas(32, 32); * }); */ function setCanvasCreator(creator) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_29__["deprecateLog"])('setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead.'); } Object(zrender_lib_core_platform_js__WEBPACK_IMPORTED_MODULE_36__["setPlatformAPI"])({ createCanvas: creator }); } /** * The parameters and usage: see `geoSourceManager.registerMap`. * Compatible with previous `echarts.registerMap`. */ function registerMap(mapName, geoJson, specialAreas) { var registerMap = Object(_impl_js__WEBPACK_IMPORTED_MODULE_37__["getImpl"])('registerMap'); registerMap && registerMap(mapName, geoJson, specialAreas); } function getMap(mapName) { var getMap = Object(_impl_js__WEBPACK_IMPORTED_MODULE_37__["getImpl"])('getMap'); return getMap && getMap(mapName); } var registerTransform = _data_helper_transform_js__WEBPACK_IMPORTED_MODULE_31__["registerExternalTransform"]; /** * Globa dispatchAction to a specified chart instance. */ // export function dispatchAction(payload: { chartId: string } & Payload, opt?: Parameters[1]) { // if (!payload || !payload.chartId) { // // Must have chartId to find chart // return; // } // const chart = instances[payload.chartId]; // if (chart) { // chart.dispatchAction(payload, opt); // } // } // Builtin global visual registerVisual(PRIORITY_VISUAL_GLOBAL, _visual_style_js__WEBPACK_IMPORTED_MODULE_20__["seriesStyleTask"]); registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, _visual_style_js__WEBPACK_IMPORTED_MODULE_20__["dataStyleTask"]); registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, _visual_style_js__WEBPACK_IMPORTED_MODULE_20__["dataColorPaletteTask"]); registerVisual(PRIORITY_VISUAL_GLOBAL, _visual_symbol_js__WEBPACK_IMPORTED_MODULE_27__["seriesSymbolTask"]); registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, _visual_symbol_js__WEBPACK_IMPORTED_MODULE_27__["dataSymbolTask"]); registerVisual(PRIORITY_VISUAL_DECAL, _visual_decal_js__WEBPACK_IMPORTED_MODULE_34__["default"]); registerPreprocessor(_preprocessor_backwardCompat_js__WEBPACK_IMPORTED_MODULE_10__["default"]); registerProcessor(PRIORITY_PROCESSOR_DATASTACK, _processor_dataStack_js__WEBPACK_IMPORTED_MODULE_11__["default"]); registerLoading('default', _loading_default_js__WEBPACK_IMPORTED_MODULE_21__["default"]); // Default actions registerAction({ type: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["HIGHLIGHT_ACTION_TYPE"], event: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["HIGHLIGHT_ACTION_TYPE"], update: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["HIGHLIGHT_ACTION_TYPE"] }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["noop"]); registerAction({ type: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["DOWNPLAY_ACTION_TYPE"], event: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["DOWNPLAY_ACTION_TYPE"], update: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["DOWNPLAY_ACTION_TYPE"] }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["noop"]); registerAction({ type: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["SELECT_ACTION_TYPE"], event: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["SELECT_ACTION_TYPE"], update: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["SELECT_ACTION_TYPE"] }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["noop"]); registerAction({ type: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["UNSELECT_ACTION_TYPE"], event: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["UNSELECT_ACTION_TYPE"], update: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["UNSELECT_ACTION_TYPE"] }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["noop"]); registerAction({ type: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["TOGGLE_SELECT_ACTION_TYPE"], event: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["TOGGLE_SELECT_ACTION_TYPE"], update: _util_states_js__WEBPACK_IMPORTED_MODULE_17__["TOGGLE_SELECT_ACTION_TYPE"] }, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["noop"]); // Default theme registerTheme('light', _theme_light_js__WEBPACK_IMPORTED_MODULE_23__["default"]); registerTheme('dark', _theme_dark_js__WEBPACK_IMPORTED_MODULE_24__["default"]); // For backward compatibility, where the namespace `dataTool` will // be mounted on `echarts` is the extension `dataTool` is imported. var dataTool = {}; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) /***/ }), /***/ "./node_modules/echarts/lib/core/impl.js": /*!***********************************************!*\ !*** ./node_modules/echarts/lib/core/impl.js ***! \***********************************************/ /*! exports provided: registerImpl, getImpl */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerImpl", function() { return registerImpl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getImpl", function() { return getImpl; }); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Implementation of exported APIs. For example registerMap, getMap. // The implementations will be registered when installing the component. // Avoid these code being bundled to the core module. var implsStore = {}; // TODO Type function registerImpl(name, impl) { if (true) { if (implsStore[name]) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_0__["error"])("Already has an implementation of " + name + "."); } } implsStore[name] = impl; } function getImpl(name) { if (true) { if (!implsStore[name]) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_0__["error"])("Implementation of " + name + " doesn't exists."); } } return implsStore[name]; } /***/ }), /***/ "./node_modules/echarts/lib/core/lifecycle.js": /*!****************************************************!*\ !*** ./node_modules/echarts/lib/core/lifecycle.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_Eventful_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/Eventful.js */ "./node_modules/zrender/lib/core/Eventful.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ; var lifecycle = new zrender_lib_core_Eventful_js__WEBPACK_IMPORTED_MODULE_0__["default"](); /* harmony default export */ __webpack_exports__["default"] = (lifecycle); /***/ }), /***/ "./node_modules/echarts/lib/core/locale.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/core/locale.js ***! \*************************************************/ /*! exports provided: SYSTEM_LANG, registerLocale, createLocaleObject, getLocaleModel, getDefaultLocaleModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SYSTEM_LANG", function() { return SYSTEM_LANG; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerLocale", function() { return registerLocale; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createLocaleObject", function() { return createLocaleObject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleModel", function() { return getLocaleModel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDefaultLocaleModel", function() { return getDefaultLocaleModel; }); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/env.js */ "./node_modules/zrender/lib/core/env.js"); /* harmony import */ var _i18n_langEN_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../i18n/langEN.js */ "./node_modules/echarts/lib/i18n/langEN.js"); /* harmony import */ var _i18n_langZH_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../i18n/langZH.js */ "./node_modules/echarts/lib/i18n/langZH.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // default import ZH and EN lang var LOCALE_ZH = 'ZH'; var LOCALE_EN = 'EN'; var DEFAULT_LOCALE = LOCALE_EN; var localeStorage = {}; var localeModels = {}; var SYSTEM_LANG = !zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_1__["default"].domSupported ? DEFAULT_LOCALE : function () { var langStr = (/* eslint-disable-next-line */ document.documentElement.lang || navigator.language || navigator.browserLanguage || DEFAULT_LOCALE).toUpperCase(); return langStr.indexOf(LOCALE_ZH) > -1 ? LOCALE_ZH : DEFAULT_LOCALE; }(); function registerLocale(locale, localeObj) { locale = locale.toUpperCase(); localeModels[locale] = new _model_Model_js__WEBPACK_IMPORTED_MODULE_0__["default"](localeObj); localeStorage[locale] = localeObj; } // export function getLocale(locale: string) { // return localeStorage[locale]; // } function createLocaleObject(locale) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["isString"])(locale)) { var localeObj = localeStorage[locale.toUpperCase()] || {}; if (locale === LOCALE_ZH || locale === LOCALE_EN) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["clone"])(localeObj); } else { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["merge"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["clone"])(localeObj), Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["clone"])(localeStorage[DEFAULT_LOCALE]), false); } } else { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["merge"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["clone"])(locale), Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["clone"])(localeStorage[DEFAULT_LOCALE]), false); } } function getLocaleModel(lang) { return localeModels[lang]; } function getDefaultLocaleModel() { return localeModels[DEFAULT_LOCALE]; } // Default locale registerLocale(LOCALE_EN, _i18n_langEN_js__WEBPACK_IMPORTED_MODULE_2__["default"]); registerLocale(LOCALE_ZH, _i18n_langZH_js__WEBPACK_IMPORTED_MODULE_3__["default"]); /***/ }), /***/ "./node_modules/echarts/lib/core/task.js": /*!***********************************************!*\ !*** ./node_modules/echarts/lib/core/task.js ***! \***********************************************/ /*! exports provided: createTask, Task */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createTask", function() { return createTask; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Task", function() { return Task; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ; /** * @param {Object} define * @return See the return of `createTask`. */ function createTask(define) { return new Task(define); } var Task = /** @class */function () { function Task(define) { define = define || {}; this._reset = define.reset; this._plan = define.plan; this._count = define.count; this._onDirty = define.onDirty; this._dirty = true; } /** * @param step Specified step. * @param skip Skip customer perform call. * @param modBy Sampling window size. * @param modDataCount Sampling count. * @return whether unfinished. */ Task.prototype.perform = function (performArgs) { var upTask = this._upstream; var skip = performArgs && performArgs.skip; // TODO some refactor. // Pull data. Must pull data each time, because context.data // may be updated by Series.setData. if (this._dirty && upTask) { var context = this.context; context.data = context.outputData = upTask.context.outputData; } if (this.__pipeline) { this.__pipeline.currentTask = this; } var planResult; if (this._plan && !skip) { planResult = this._plan(this.context); } // Support sharding by mod, which changes the render sequence and makes the rendered graphic // elements uniformed distributed when progress, especially when moving or zooming. var lastModBy = normalizeModBy(this._modBy); var lastModDataCount = this._modDataCount || 0; var modBy = normalizeModBy(performArgs && performArgs.modBy); var modDataCount = performArgs && performArgs.modDataCount || 0; if (lastModBy !== modBy || lastModDataCount !== modDataCount) { planResult = 'reset'; } function normalizeModBy(val) { !(val >= 1) && (val = 1); // jshint ignore:line return val; } var forceFirstProgress; if (this._dirty || planResult === 'reset') { this._dirty = false; forceFirstProgress = this._doReset(skip); } this._modBy = modBy; this._modDataCount = modDataCount; var step = performArgs && performArgs.step; if (upTask) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(upTask._outputDueEnd != null); } this._dueEnd = upTask._outputDueEnd; } // DataTask or overallTask else { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(!this._progress || this._count); } this._dueEnd = this._count ? this._count(this.context) : Infinity; } // Note: Stubs, that its host overall task let it has progress, has progress. // If no progress, pass index from upstream to downstream each time plan called. if (this._progress) { var start = this._dueIndex; var end = Math.min(step != null ? this._dueIndex + step : Infinity, this._dueEnd); if (!skip && (forceFirstProgress || start < end)) { var progress = this._progress; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(progress)) { for (var i = 0; i < progress.length; i++) { this._doProgress(progress[i], start, end, modBy, modDataCount); } } else { this._doProgress(progress, start, end, modBy, modDataCount); } } this._dueIndex = end; // If no `outputDueEnd`, assume that output data and // input data is the same, so use `dueIndex` as `outputDueEnd`. var outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : end; if (true) { // ??? Can not rollback. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(outputDueEnd >= this._outputDueEnd); } this._outputDueEnd = outputDueEnd; } else { // (1) Some overall task has no progress. // (2) Stubs, that its host overall task do not let it has progress, has no progress. // This should always be performed so it can be passed to downstream. this._dueIndex = this._outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : this._dueEnd; } return this.unfinished(); }; Task.prototype.dirty = function () { this._dirty = true; this._onDirty && this._onDirty(this.context); }; Task.prototype._doProgress = function (progress, start, end, modBy, modDataCount) { iterator.reset(start, end, modBy, modDataCount); this._callingProgress = progress; this._callingProgress({ start: start, end: end, count: end - start, next: iterator.next }, this.context); }; Task.prototype._doReset = function (skip) { this._dueIndex = this._outputDueEnd = this._dueEnd = 0; this._settedOutputEnd = null; var progress; var forceFirstProgress; if (!skip && this._reset) { progress = this._reset(this.context); if (progress && progress.progress) { forceFirstProgress = progress.forceFirstProgress; progress = progress.progress; } // To simplify no progress checking, array must has item. if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(progress) && !progress.length) { progress = null; } } this._progress = progress; this._modBy = this._modDataCount = null; var downstream = this._downstream; downstream && downstream.dirty(); return forceFirstProgress; }; Task.prototype.unfinished = function () { return this._progress && this._dueIndex < this._dueEnd; }; /** * @param downTask The downstream task. * @return The downstream task. */ Task.prototype.pipe = function (downTask) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(downTask && !downTask._disposed && downTask !== this); } // If already downstream, do not dirty downTask. if (this._downstream !== downTask || this._dirty) { this._downstream = downTask; downTask._upstream = this; downTask.dirty(); } }; Task.prototype.dispose = function () { if (this._disposed) { return; } this._upstream && (this._upstream._downstream = null); this._downstream && (this._downstream._upstream = null); this._dirty = false; this._disposed = true; }; Task.prototype.getUpstream = function () { return this._upstream; }; Task.prototype.getDownstream = function () { return this._downstream; }; Task.prototype.setOutputEnd = function (end) { // This only happens in dataTask, dataZoom, map, currently. // where dataZoom do not set end each time, but only set // when reset. So we should record the set end, in case // that the stub of dataZoom perform again and earse the // set end by upstream. this._outputDueEnd = this._settedOutputEnd = end; }; return Task; }(); var iterator = function () { var end; var current; var modBy; var modDataCount; var winCount; var it = { reset: function (s, e, sStep, sCount) { current = s; end = e; modBy = sStep; modDataCount = sCount; winCount = Math.ceil(modDataCount / modBy); it.next = modBy > 1 && modDataCount > 0 ? modNext : sequentialNext; } }; return it; function sequentialNext() { return current < end ? current++ : null; } function modNext() { var dataIndex = current % winCount * modBy + Math.ceil(current / winCount); var result = current >= end ? null : dataIndex < modDataCount ? dataIndex // If modDataCount is smaller than data.count() (consider `appendData` case), // Use normal linear rendering mode. : current; current++; return result; } }(); // ----------------------------------------------------------------------------- // For stream debug (Should be commented out after used!) // @usage: printTask(this, 'begin'); // @usage: printTask(this, null, {someExtraProp}); // @usage: Use `__idxInPipeline` as conditional breakpiont. // // window.printTask = function (task: any, prefix: string, extra: { [key: string]: unknown }): void { // window.ecTaskUID == null && (window.ecTaskUID = 0); // task.uidDebug == null && (task.uidDebug = `task_${window.ecTaskUID++}`); // task.agent && task.agent.uidDebug == null && (task.agent.uidDebug = `task_${window.ecTaskUID++}`); // let props = []; // if (task.__pipeline) { // let val = `${task.__idxInPipeline}/${task.__pipeline.tail.__idxInPipeline} ${task.agent ? '(stub)' : ''}`; // props.push({text: '__idxInPipeline/total', value: val}); // } else { // let stubCount = 0; // task.agentStubMap.each(() => stubCount++); // props.push({text: 'idx', value: `overall (stubs: ${stubCount})`}); // } // props.push({text: 'uid', value: task.uidDebug}); // if (task.__pipeline) { // props.push({text: 'pipelineId', value: task.__pipeline.id}); // task.agent && props.push( // {text: 'stubFor', value: task.agent.uidDebug} // ); // } // props.push( // {text: 'dirty', value: task._dirty}, // {text: 'dueIndex', value: task._dueIndex}, // {text: 'dueEnd', value: task._dueEnd}, // {text: 'outputDueEnd', value: task._outputDueEnd} // ); // if (extra) { // Object.keys(extra).forEach(key => { // props.push({text: key, value: extra[key]}); // }); // } // let args = ['color: blue']; // let msg = `%c[${prefix || 'T'}] %c` + props.map(item => ( // args.push('color: green', 'color: red'), // `${item.text}: %c${item.value}` // )).join('%c, '); // console.log.apply(console, [msg].concat(args)); // // console.log(this); // }; // window.printPipeline = function (task: any, prefix: string) { // const pipeline = task.__pipeline; // let currTask = pipeline.head; // while (currTask) { // window.printTask(currTask, prefix); // currTask = currTask._downstream; // } // }; // window.showChain = function (chainHeadTask) { // var chain = []; // var task = chainHeadTask; // while (task) { // chain.push({ // task: task, // up: task._upstream, // down: task._downstream, // idxInPipeline: task.__idxInPipeline // }); // task = task._downstream; // } // return chain; // }; // window.findTaskInChain = function (task, chainHeadTask) { // let chain = window.showChain(chainHeadTask); // let result = []; // for (let i = 0; i < chain.length; i++) { // let chainItem = chain[i]; // if (chainItem.task === task) { // result.push(i); // } // } // return result; // }; // window.printChainAEachInChainB = function (chainHeadTaskA, chainHeadTaskB) { // let chainA = window.showChain(chainHeadTaskA); // for (let i = 0; i < chainA.length; i++) { // console.log('chainAIdx:', i, 'inChainB:', window.findTaskInChain(chainA[i].task, chainHeadTaskB)); // } // }; /***/ }), /***/ "./node_modules/echarts/lib/data/DataDiffer.js": /*!*****************************************************!*\ !*** ./node_modules/echarts/lib/data/DataDiffer.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function dataIndexMapValueLength(valNumOrArrLengthMoreThan2) { return valNumOrArrLengthMoreThan2 == null ? 0 : valNumOrArrLengthMoreThan2.length || 1; } function defaultKeyGetter(item) { return item; } var DataDiffer = /** @class */function () { /** * @param context Can be visited by this.context in callback. */ function DataDiffer(oldArr, newArr, oldKeyGetter, newKeyGetter, context, // By default: 'oneToOne'. diffMode) { this._old = oldArr; this._new = newArr; this._oldKeyGetter = oldKeyGetter || defaultKeyGetter; this._newKeyGetter = newKeyGetter || defaultKeyGetter; // Visible in callback via `this.context`; this.context = context; this._diffModeMultiple = diffMode === 'multiple'; } /** * Callback function when add a data */ DataDiffer.prototype.add = function (func) { this._add = func; return this; }; /** * Callback function when update a data */ DataDiffer.prototype.update = function (func) { this._update = func; return this; }; /** * Callback function when update a data and only work in `cbMode: 'byKey'`. */ DataDiffer.prototype.updateManyToOne = function (func) { this._updateManyToOne = func; return this; }; /** * Callback function when update a data and only work in `cbMode: 'byKey'`. */ DataDiffer.prototype.updateOneToMany = function (func) { this._updateOneToMany = func; return this; }; /** * Callback function when update a data and only work in `cbMode: 'byKey'`. */ DataDiffer.prototype.updateManyToMany = function (func) { this._updateManyToMany = func; return this; }; /** * Callback function when remove a data */ DataDiffer.prototype.remove = function (func) { this._remove = func; return this; }; DataDiffer.prototype.execute = function () { this[this._diffModeMultiple ? '_executeMultiple' : '_executeOneToOne'](); }; DataDiffer.prototype._executeOneToOne = function () { var oldArr = this._old; var newArr = this._new; var newDataIndexMap = {}; var oldDataKeyArr = new Array(oldArr.length); var newDataKeyArr = new Array(newArr.length); this._initIndexMap(oldArr, null, oldDataKeyArr, '_oldKeyGetter'); this._initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter'); for (var i = 0; i < oldArr.length; i++) { var oldKey = oldDataKeyArr[i]; var newIdxMapVal = newDataIndexMap[oldKey]; var newIdxMapValLen = dataIndexMapValueLength(newIdxMapVal); // idx can never be empty array here. see 'set null' logic below. if (newIdxMapValLen > 1) { // Consider there is duplicate key (for example, use dataItem.name as key). // We should make sure every item in newArr and oldArr can be visited. var newIdx = newIdxMapVal.shift(); if (newIdxMapVal.length === 1) { newDataIndexMap[oldKey] = newIdxMapVal[0]; } this._update && this._update(newIdx, i); } else if (newIdxMapValLen === 1) { newDataIndexMap[oldKey] = null; this._update && this._update(newIdxMapVal, i); } else { this._remove && this._remove(i); } } this._performRestAdd(newDataKeyArr, newDataIndexMap); }; /** * For example, consider the case: * oldData: [o0, o1, o2, o3, o4, o5, o6, o7], * newData: [n0, n1, n2, n3, n4, n5, n6, n7, n8], * Where: * o0, o1, n0 has key 'a' (many to one) * o5, n4, n5, n6 has key 'b' (one to many) * o2, n1 has key 'c' (one to one) * n2, n3 has key 'd' (add) * o3, o4 has key 'e' (remove) * o6, o7, n7, n8 has key 'f' (many to many, treated as add and remove) * Then: * (The order of the following directives are not ensured.) * this._updateManyToOne(n0, [o0, o1]); * this._updateOneToMany([n4, n5, n6], o5); * this._update(n1, o2); * this._remove(o3); * this._remove(o4); * this._remove(o6); * this._remove(o7); * this._add(n2); * this._add(n3); * this._add(n7); * this._add(n8); */ DataDiffer.prototype._executeMultiple = function () { var oldArr = this._old; var newArr = this._new; var oldDataIndexMap = {}; var newDataIndexMap = {}; var oldDataKeyArr = []; var newDataKeyArr = []; this._initIndexMap(oldArr, oldDataIndexMap, oldDataKeyArr, '_oldKeyGetter'); this._initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter'); for (var i = 0; i < oldDataKeyArr.length; i++) { var oldKey = oldDataKeyArr[i]; var oldIdxMapVal = oldDataIndexMap[oldKey]; var newIdxMapVal = newDataIndexMap[oldKey]; var oldIdxMapValLen = dataIndexMapValueLength(oldIdxMapVal); var newIdxMapValLen = dataIndexMapValueLength(newIdxMapVal); if (oldIdxMapValLen > 1 && newIdxMapValLen === 1) { this._updateManyToOne && this._updateManyToOne(newIdxMapVal, oldIdxMapVal); newDataIndexMap[oldKey] = null; } else if (oldIdxMapValLen === 1 && newIdxMapValLen > 1) { this._updateOneToMany && this._updateOneToMany(newIdxMapVal, oldIdxMapVal); newDataIndexMap[oldKey] = null; } else if (oldIdxMapValLen === 1 && newIdxMapValLen === 1) { this._update && this._update(newIdxMapVal, oldIdxMapVal); newDataIndexMap[oldKey] = null; } else if (oldIdxMapValLen > 1 && newIdxMapValLen > 1) { this._updateManyToMany && this._updateManyToMany(newIdxMapVal, oldIdxMapVal); newDataIndexMap[oldKey] = null; } else if (oldIdxMapValLen > 1) { for (var i_1 = 0; i_1 < oldIdxMapValLen; i_1++) { this._remove && this._remove(oldIdxMapVal[i_1]); } } else { this._remove && this._remove(oldIdxMapVal); } } this._performRestAdd(newDataKeyArr, newDataIndexMap); }; DataDiffer.prototype._performRestAdd = function (newDataKeyArr, newDataIndexMap) { for (var i = 0; i < newDataKeyArr.length; i++) { var newKey = newDataKeyArr[i]; var newIdxMapVal = newDataIndexMap[newKey]; var idxMapValLen = dataIndexMapValueLength(newIdxMapVal); if (idxMapValLen > 1) { for (var j = 0; j < idxMapValLen; j++) { this._add && this._add(newIdxMapVal[j]); } } else if (idxMapValLen === 1) { this._add && this._add(newIdxMapVal); } // Support both `newDataKeyArr` are duplication removed or not removed. newDataIndexMap[newKey] = null; } }; DataDiffer.prototype._initIndexMap = function (arr, // Can be null. map, // In 'byKey', the output `keyArr` is duplication removed. // In 'byIndex', the output `keyArr` is not duplication removed and // its indices are accurately corresponding to `arr`. keyArr, keyGetterName) { var cbModeMultiple = this._diffModeMultiple; for (var i = 0; i < arr.length; i++) { // Add prefix to avoid conflict with Object.prototype. var key = '_ec_' + this[keyGetterName](arr[i], i); if (!cbModeMultiple) { keyArr[i] = key; } if (!map) { continue; } var idxMapVal = map[key]; var idxMapValLen = dataIndexMapValueLength(idxMapVal); if (idxMapValLen === 0) { // Simple optimize: in most cases, one index has one key, // do not need array. map[key] = i; if (cbModeMultiple) { keyArr.push(key); } } else if (idxMapValLen === 1) { map[key] = [idxMapVal, i]; } else { idxMapVal.push(i); } } }; return DataDiffer; }(); /* harmony default export */ __webpack_exports__["default"] = (DataDiffer); /***/ }), /***/ "./node_modules/echarts/lib/data/DataStore.js": /*!****************************************************!*\ !*** ./node_modules/echarts/lib/data/DataStore.js ***! \****************************************************/ /*! exports provided: CtorUint32Array, CtorUint16Array, CtorInt32Array, CtorFloat64Array, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CtorUint32Array", function() { return CtorUint32Array; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CtorUint16Array", function() { return CtorUint16Array; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CtorInt32Array", function() { return CtorInt32Array; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CtorFloat64Array", function() { return CtorFloat64Array; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helper/dataValueHelper.js */ "./node_modules/echarts/lib/data/helper/dataValueHelper.js"); /* harmony import */ var _Source_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Source.js */ "./node_modules/echarts/lib/data/Source.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var UNDEFINED = 'undefined'; /* global Float64Array, Int32Array, Uint32Array, Uint16Array */ // Caution: MUST not use `new CtorUint32Array(arr, 0, len)`, because the Ctor of array is // different from the Ctor of typed array. var CtorUint32Array = typeof Uint32Array === UNDEFINED ? Array : Uint32Array; var CtorUint16Array = typeof Uint16Array === UNDEFINED ? Array : Uint16Array; var CtorInt32Array = typeof Int32Array === UNDEFINED ? Array : Int32Array; var CtorFloat64Array = typeof Float64Array === UNDEFINED ? Array : Float64Array; /** * Multi dimensional data store */ var dataCtors = { 'float': CtorFloat64Array, 'int': CtorInt32Array, // Ordinal data type can be string or int 'ordinal': Array, 'number': Array, 'time': CtorFloat64Array }; var defaultDimValueGetters; function getIndicesCtor(rawCount) { // The possible max value in this._indicies is always this._rawCount despite of filtering. return rawCount > 65535 ? CtorUint32Array : CtorUint16Array; } ; function getInitialExtent() { return [Infinity, -Infinity]; } ; function cloneChunk(originalChunk) { var Ctor = originalChunk.constructor; // Only shallow clone is enough when Array. return Ctor === Array ? originalChunk.slice() : new Ctor(originalChunk); } function prepareStore(store, dimIdx, dimType, end, append) { var DataCtor = dataCtors[dimType || 'float']; if (append) { var oldStore = store[dimIdx]; var oldLen = oldStore && oldStore.length; if (!(oldLen === end)) { var newStore = new DataCtor(end); // The cost of the copy is probably inconsiderable // within the initial chunkSize. for (var j = 0; j < oldLen; j++) { newStore[j] = oldStore[j]; } store[dimIdx] = newStore; } } else { store[dimIdx] = new DataCtor(end); } } ; /** * Basically, DataStore API keep immutable. */ var DataStore = /** @class */function () { function DataStore() { this._chunks = []; // It will not be calculated until needed. this._rawExtent = []; this._extent = []; this._count = 0; this._rawCount = 0; this._calcDimNameToIdx = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); } /** * Initialize from data */ DataStore.prototype.initData = function (provider, inputDimensions, dimValueGetter) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(provider.getItem) && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(provider.count), 'Invalid data provider.'); } this._provider = provider; // Clear this._chunks = []; this._indices = null; this.getRawIndex = this._getRawIdxIdentity; var source = provider.getSource(); var defaultGetter = this.defaultDimValueGetter = defaultDimValueGetters[source.sourceFormat]; // Default dim value getter this._dimValueGetter = dimValueGetter || defaultGetter; // Reset raw extent. this._rawExtent = []; var willRetrieveDataByName = Object(_Source_js__WEBPACK_IMPORTED_MODULE_2__["shouldRetrieveDataByName"])(source); this._dimensions = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(inputDimensions, function (dim) { if (true) { if (willRetrieveDataByName) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(dim.property != null); } } return { // Only pick these two props. Not leak other properties like orderMeta. type: dim.type, property: dim.property }; }); this._initDataFromProvider(0, provider.count()); }; DataStore.prototype.getProvider = function () { return this._provider; }; /** * Caution: even when a `source` instance owned by a series, the created data store * may still be shared by different sereis (the source hash does not use all `source` * props, see `sourceManager`). In this case, the `source` props that are not used in * hash (like `source.dimensionDefine`) probably only belongs to a certain series and * thus should not be fetch here. */ DataStore.prototype.getSource = function () { return this._provider.getSource(); }; /** * @caution Only used in dataStack. */ DataStore.prototype.ensureCalculationDimension = function (dimName, type) { var calcDimNameToIdx = this._calcDimNameToIdx; var dimensions = this._dimensions; var calcDimIdx = calcDimNameToIdx.get(dimName); if (calcDimIdx != null) { if (dimensions[calcDimIdx].type === type) { return calcDimIdx; } } else { calcDimIdx = dimensions.length; } dimensions[calcDimIdx] = { type: type }; calcDimNameToIdx.set(dimName, calcDimIdx); this._chunks[calcDimIdx] = new dataCtors[type || 'float'](this._rawCount); this._rawExtent[calcDimIdx] = getInitialExtent(); return calcDimIdx; }; DataStore.prototype.collectOrdinalMeta = function (dimIdx, ordinalMeta) { var chunk = this._chunks[dimIdx]; var dim = this._dimensions[dimIdx]; var rawExtents = this._rawExtent; var offset = dim.ordinalOffset || 0; var len = chunk.length; if (offset === 0) { // We need to reset the rawExtent if collect is from start. // Because this dimension may be guessed as number and calcuating a wrong extent. rawExtents[dimIdx] = getInitialExtent(); } var dimRawExtent = rawExtents[dimIdx]; // Parse from previous data offset. len may be changed after appendData for (var i = offset; i < len; i++) { var val = chunk[i] = ordinalMeta.parseAndCollect(chunk[i]); if (!isNaN(val)) { dimRawExtent[0] = Math.min(val, dimRawExtent[0]); dimRawExtent[1] = Math.max(val, dimRawExtent[1]); } } dim.ordinalMeta = ordinalMeta; dim.ordinalOffset = len; dim.type = 'ordinal'; // Force to be ordinal }; DataStore.prototype.getOrdinalMeta = function (dimIdx) { var dimInfo = this._dimensions[dimIdx]; var ordinalMeta = dimInfo.ordinalMeta; return ordinalMeta; }; DataStore.prototype.getDimensionProperty = function (dimIndex) { var item = this._dimensions[dimIndex]; return item && item.property; }; /** * Caution: Can be only called on raw data (before `this._indices` created). */ DataStore.prototype.appendData = function (data) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(!this._indices, 'appendData can only be called on raw data.'); } var provider = this._provider; var start = this.count(); provider.appendData(data); var end = provider.count(); if (!provider.persistent) { end += start; } if (start < end) { this._initDataFromProvider(start, end, true); } return [start, end]; }; DataStore.prototype.appendValues = function (values, minFillLen) { var chunks = this._chunks; var dimensions = this._dimensions; var dimLen = dimensions.length; var rawExtent = this._rawExtent; var start = this.count(); var end = start + Math.max(values.length, minFillLen || 0); for (var i = 0; i < dimLen; i++) { var dim = dimensions[i]; prepareStore(chunks, i, dim.type, end, true); } var emptyDataItem = []; for (var idx = start; idx < end; idx++) { var sourceIdx = idx - start; // Store the data by dimensions for (var dimIdx = 0; dimIdx < dimLen; dimIdx++) { var dim = dimensions[dimIdx]; var val = defaultDimValueGetters.arrayRows.call(this, values[sourceIdx] || emptyDataItem, dim.property, sourceIdx, dimIdx); chunks[dimIdx][idx] = val; var dimRawExtent = rawExtent[dimIdx]; val < dimRawExtent[0] && (dimRawExtent[0] = val); val > dimRawExtent[1] && (dimRawExtent[1] = val); } } this._rawCount = this._count = end; return { start: start, end: end }; }; DataStore.prototype._initDataFromProvider = function (start, end, append) { var provider = this._provider; var chunks = this._chunks; var dimensions = this._dimensions; var dimLen = dimensions.length; var rawExtent = this._rawExtent; var dimNames = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(dimensions, function (dim) { return dim.property; }); for (var i = 0; i < dimLen; i++) { var dim = dimensions[i]; if (!rawExtent[i]) { rawExtent[i] = getInitialExtent(); } prepareStore(chunks, i, dim.type, end, append); } if (provider.fillStorage) { provider.fillStorage(start, end, chunks, rawExtent); } else { var dataItem = []; for (var idx = start; idx < end; idx++) { // NOTICE: Try not to write things into dataItem dataItem = provider.getItem(idx, dataItem); // Each data item is value // [1, 2] // 2 // Bar chart, line chart which uses category axis // only gives the 'y' value. 'x' value is the indices of category // Use a tempValue to normalize the value to be a (x, y) value // Store the data by dimensions for (var dimIdx = 0; dimIdx < dimLen; dimIdx++) { var dimStorage = chunks[dimIdx]; // PENDING NULL is empty or zero var val = this._dimValueGetter(dataItem, dimNames[dimIdx], idx, dimIdx); dimStorage[idx] = val; var dimRawExtent = rawExtent[dimIdx]; val < dimRawExtent[0] && (dimRawExtent[0] = val); val > dimRawExtent[1] && (dimRawExtent[1] = val); } } } if (!provider.persistent && provider.clean) { // Clean unused data if data source is typed array. provider.clean(); } this._rawCount = this._count = end; // Reset data extent this._extent = []; }; DataStore.prototype.count = function () { return this._count; }; /** * Get value. Return NaN if idx is out of range. */ DataStore.prototype.get = function (dim, idx) { if (!(idx >= 0 && idx < this._count)) { return NaN; } var dimStore = this._chunks[dim]; return dimStore ? dimStore[this.getRawIndex(idx)] : NaN; }; DataStore.prototype.getValues = function (dimensions, idx) { var values = []; var dimArr = []; if (idx == null) { idx = dimensions; // TODO get all from store? dimensions = []; // All dimensions for (var i = 0; i < this._dimensions.length; i++) { dimArr.push(i); } } else { dimArr = dimensions; } for (var i = 0, len = dimArr.length; i < len; i++) { values.push(this.get(dimArr[i], idx)); } return values; }; /** * @param dim concrete dim */ DataStore.prototype.getByRawIndex = function (dim, rawIdx) { if (!(rawIdx >= 0 && rawIdx < this._rawCount)) { return NaN; } var dimStore = this._chunks[dim]; return dimStore ? dimStore[rawIdx] : NaN; }; /** * Get sum of data in one dimension */ DataStore.prototype.getSum = function (dim) { var dimData = this._chunks[dim]; var sum = 0; if (dimData) { for (var i = 0, len = this.count(); i < len; i++) { var value = this.get(dim, i); if (!isNaN(value)) { sum += value; } } } return sum; }; /** * Get median of data in one dimension */ DataStore.prototype.getMedian = function (dim) { var dimDataArray = []; // map all data of one dimension this.each([dim], function (val) { if (!isNaN(val)) { dimDataArray.push(val); } }); // TODO // Use quick select? var sortedDimDataArray = dimDataArray.sort(function (a, b) { return a - b; }); var len = this.count(); // calculate median return len === 0 ? 0 : len % 2 === 1 ? sortedDimDataArray[(len - 1) / 2] : (sortedDimDataArray[len / 2] + sortedDimDataArray[len / 2 - 1]) / 2; }; /** * Retrieve the index with given raw data index. */ DataStore.prototype.indexOfRawIndex = function (rawIndex) { if (rawIndex >= this._rawCount || rawIndex < 0) { return -1; } if (!this._indices) { return rawIndex; } // Indices are ascending var indices = this._indices; // If rawIndex === dataIndex var rawDataIndex = indices[rawIndex]; if (rawDataIndex != null && rawDataIndex < this._count && rawDataIndex === rawIndex) { return rawIndex; } var left = 0; var right = this._count - 1; while (left <= right) { var mid = (left + right) / 2 | 0; if (indices[mid] < rawIndex) { left = mid + 1; } else if (indices[mid] > rawIndex) { right = mid - 1; } else { return mid; } } return -1; }; /** * Retrieve the index of nearest value. * @param dim * @param value * @param [maxDistance=Infinity] * @return If and only if multiple indices have * the same value, they are put to the result. */ DataStore.prototype.indicesOfNearest = function (dim, value, maxDistance) { var chunks = this._chunks; var dimData = chunks[dim]; var nearestIndices = []; if (!dimData) { return nearestIndices; } if (maxDistance == null) { maxDistance = Infinity; } var minDist = Infinity; var minDiff = -1; var nearestIndicesLen = 0; // Check the test case of `test/ut/spec/data/SeriesData.js`. for (var i = 0, len = this.count(); i < len; i++) { var dataIndex = this.getRawIndex(i); var diff = value - dimData[dataIndex]; var dist = Math.abs(diff); if (dist <= maxDistance) { // When the `value` is at the middle of `this.get(dim, i)` and `this.get(dim, i+1)`, // we'd better not push both of them to `nearestIndices`, otherwise it is easy to // get more than one item in `nearestIndices` (more specifically, in `tooltip`). // So we choose the one that `diff >= 0` in this case. // But if `this.get(dim, i)` and `this.get(dim, j)` get the same value, both of them // should be push to `nearestIndices`. if (dist < minDist || dist === minDist && diff >= 0 && minDiff < 0) { minDist = dist; minDiff = diff; nearestIndicesLen = 0; } if (diff === minDiff) { nearestIndices[nearestIndicesLen++] = i; } } } nearestIndices.length = nearestIndicesLen; return nearestIndices; }; DataStore.prototype.getIndices = function () { var newIndices; var indices = this._indices; if (indices) { var Ctor = indices.constructor; var thisCount = this._count; // `new Array(a, b, c)` is different from `new Uint32Array(a, b, c)`. if (Ctor === Array) { newIndices = new Ctor(thisCount); for (var i = 0; i < thisCount; i++) { newIndices[i] = indices[i]; } } else { newIndices = new Ctor(indices.buffer, 0, thisCount); } } else { var Ctor = getIndicesCtor(this._rawCount); newIndices = new Ctor(this.count()); for (var i = 0; i < newIndices.length; i++) { newIndices[i] = i; } } return newIndices; }; /** * Data filter. */ DataStore.prototype.filter = function (dims, cb) { if (!this._count) { return this; } var newStore = this.clone(); var count = newStore.count(); var Ctor = getIndicesCtor(newStore._rawCount); var newIndices = new Ctor(count); var value = []; var dimSize = dims.length; var offset = 0; var dim0 = dims[0]; var chunks = newStore._chunks; for (var i = 0; i < count; i++) { var keep = void 0; var rawIdx = newStore.getRawIndex(i); // Simple optimization if (dimSize === 0) { keep = cb(i); } else if (dimSize === 1) { var val = chunks[dim0][rawIdx]; keep = cb(val, i); } else { var k = 0; for (; k < dimSize; k++) { value[k] = chunks[dims[k]][rawIdx]; } value[k] = i; keep = cb.apply(null, value); } if (keep) { newIndices[offset++] = rawIdx; } } // Set indices after filtered. if (offset < count) { newStore._indices = newIndices; } newStore._count = offset; // Reset data extent newStore._extent = []; newStore._updateGetRawIdx(); return newStore; }; /** * Select data in range. (For optimization of filter) * (Manually inline code, support 5 million data filtering in data zoom.) */ DataStore.prototype.selectRange = function (range) { var newStore = this.clone(); var len = newStore._count; if (!len) { return this; } var dims = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["keys"])(range); var dimSize = dims.length; if (!dimSize) { return this; } var originalCount = newStore.count(); var Ctor = getIndicesCtor(newStore._rawCount); var newIndices = new Ctor(originalCount); var offset = 0; var dim0 = dims[0]; var min = range[dim0][0]; var max = range[dim0][1]; var storeArr = newStore._chunks; var quickFinished = false; if (!newStore._indices) { // Extreme optimization for common case. About 2x faster in chrome. var idx = 0; if (dimSize === 1) { var dimStorage = storeArr[dims[0]]; for (var i = 0; i < len; i++) { var val = dimStorage[i]; // NaN will not be filtered. Consider the case, in line chart, empty // value indicates the line should be broken. But for the case like // scatter plot, a data item with empty value will not be rendered, // but the axis extent may be effected if some other dim of the data // item has value. Fortunately it is not a significant negative effect. if (val >= min && val <= max || isNaN(val)) { newIndices[offset++] = idx; } idx++; } quickFinished = true; } else if (dimSize === 2) { var dimStorage = storeArr[dims[0]]; var dimStorage2 = storeArr[dims[1]]; var min2 = range[dims[1]][0]; var max2 = range[dims[1]][1]; for (var i = 0; i < len; i++) { var val = dimStorage[i]; var val2 = dimStorage2[i]; // Do not filter NaN, see comment above. if ((val >= min && val <= max || isNaN(val)) && (val2 >= min2 && val2 <= max2 || isNaN(val2))) { newIndices[offset++] = idx; } idx++; } quickFinished = true; } } if (!quickFinished) { if (dimSize === 1) { for (var i = 0; i < originalCount; i++) { var rawIndex = newStore.getRawIndex(i); var val = storeArr[dims[0]][rawIndex]; // Do not filter NaN, see comment above. if (val >= min && val <= max || isNaN(val)) { newIndices[offset++] = rawIndex; } } } else { for (var i = 0; i < originalCount; i++) { var keep = true; var rawIndex = newStore.getRawIndex(i); for (var k = 0; k < dimSize; k++) { var dimk = dims[k]; var val = storeArr[dimk][rawIndex]; // Do not filter NaN, see comment above. if (val < range[dimk][0] || val > range[dimk][1]) { keep = false; } } if (keep) { newIndices[offset++] = newStore.getRawIndex(i); } } } } // Set indices after filtered. if (offset < originalCount) { newStore._indices = newIndices; } newStore._count = offset; // Reset data extent newStore._extent = []; newStore._updateGetRawIdx(); return newStore; }; // /** // * Data mapping to a plain array // */ // mapArray(dims: DimensionIndex[], cb: MapArrayCb): any[] { // const result: any[] = []; // this.each(dims, function () { // result.push(cb && (cb as MapArrayCb).apply(null, arguments)); // }); // return result; // } /** * Data mapping to a new List with given dimensions */ DataStore.prototype.map = function (dims, cb) { // TODO only clone picked chunks. var target = this.clone(dims); this._updateDims(target, dims, cb); return target; }; /** * @caution Danger!! Only used in dataStack. */ DataStore.prototype.modify = function (dims, cb) { this._updateDims(this, dims, cb); }; DataStore.prototype._updateDims = function (target, dims, cb) { var targetChunks = target._chunks; var tmpRetValue = []; var dimSize = dims.length; var dataCount = target.count(); var values = []; var rawExtent = target._rawExtent; for (var i = 0; i < dims.length; i++) { rawExtent[dims[i]] = getInitialExtent(); } for (var dataIndex = 0; dataIndex < dataCount; dataIndex++) { var rawIndex = target.getRawIndex(dataIndex); for (var k = 0; k < dimSize; k++) { values[k] = targetChunks[dims[k]][rawIndex]; } values[dimSize] = dataIndex; var retValue = cb && cb.apply(null, values); if (retValue != null) { // a number or string (in oridinal dimension)? if (typeof retValue !== 'object') { tmpRetValue[0] = retValue; retValue = tmpRetValue; } for (var i = 0; i < retValue.length; i++) { var dim = dims[i]; var val = retValue[i]; var rawExtentOnDim = rawExtent[dim]; var dimStore = targetChunks[dim]; if (dimStore) { dimStore[rawIndex] = val; } if (val < rawExtentOnDim[0]) { rawExtentOnDim[0] = val; } if (val > rawExtentOnDim[1]) { rawExtentOnDim[1] = val; } } } } }; /** * Large data down sampling using largest-triangle-three-buckets * @param {string} valueDimension * @param {number} targetCount */ DataStore.prototype.lttbDownSample = function (valueDimension, rate) { var target = this.clone([valueDimension], true); var targetStorage = target._chunks; var dimStore = targetStorage[valueDimension]; var len = this.count(); var sampledIndex = 0; var frameSize = Math.floor(1 / rate); var currentRawIndex = this.getRawIndex(0); var maxArea; var area; var nextRawIndex; var newIndices = new (getIndicesCtor(this._rawCount))(Math.min((Math.ceil(len / frameSize) + 2) * 2, len)); // First frame use the first data. newIndices[sampledIndex++] = currentRawIndex; for (var i = 1; i < len - 1; i += frameSize) { var nextFrameStart = Math.min(i + frameSize, len - 1); var nextFrameEnd = Math.min(i + frameSize * 2, len); var avgX = (nextFrameEnd + nextFrameStart) / 2; var avgY = 0; for (var idx = nextFrameStart; idx < nextFrameEnd; idx++) { var rawIndex = this.getRawIndex(idx); var y = dimStore[rawIndex]; if (isNaN(y)) { continue; } avgY += y; } avgY /= nextFrameEnd - nextFrameStart; var frameStart = i; var frameEnd = Math.min(i + frameSize, len); var pointAX = i - 1; var pointAY = dimStore[currentRawIndex]; maxArea = -1; nextRawIndex = frameStart; var firstNaNIndex = -1; var countNaN = 0; // Find a point from current frame that construct a triangle with largest area with previous selected point // And the average of next frame. for (var idx = frameStart; idx < frameEnd; idx++) { var rawIndex = this.getRawIndex(idx); var y = dimStore[rawIndex]; if (isNaN(y)) { countNaN++; if (firstNaNIndex < 0) { firstNaNIndex = rawIndex; } continue; } // Calculate triangle area over three buckets area = Math.abs((pointAX - avgX) * (y - pointAY) - (pointAX - idx) * (avgY - pointAY)); if (area > maxArea) { maxArea = area; nextRawIndex = rawIndex; // Next a is this b } } if (countNaN > 0 && countNaN < frameEnd - frameStart) { // Append first NaN point in every bucket. // It is necessary to ensure the correct order of indices. newIndices[sampledIndex++] = Math.min(firstNaNIndex, nextRawIndex); nextRawIndex = Math.max(firstNaNIndex, nextRawIndex); } newIndices[sampledIndex++] = nextRawIndex; currentRawIndex = nextRawIndex; // This a is the next a (chosen b) } // First frame use the last data. newIndices[sampledIndex++] = this.getRawIndex(len - 1); target._count = sampledIndex; target._indices = newIndices; target.getRawIndex = this._getRawIdx; return target; }; /** * Large data down sampling using min-max * @param {string} valueDimension * @param {number} rate */ DataStore.prototype.minmaxDownSample = function (valueDimension, rate) { var target = this.clone([valueDimension], true); var targetStorage = target._chunks; var frameSize = Math.floor(1 / rate); var dimStore = targetStorage[valueDimension]; var len = this.count(); // Each frame results in 2 data points, one for min and one for max var newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize) * 2); var offset = 0; for (var i = 0; i < len; i += frameSize) { var minIndex = i; var minValue = dimStore[this.getRawIndex(minIndex)]; var maxIndex = i; var maxValue = dimStore[this.getRawIndex(maxIndex)]; var thisFrameSize = frameSize; // Handle final smaller frame if (i + frameSize > len) { thisFrameSize = len - i; } // Determine min and max within the current frame for (var k = 0; k < thisFrameSize; k++) { var rawIndex = this.getRawIndex(i + k); var value = dimStore[rawIndex]; if (value < minValue) { minValue = value; minIndex = i + k; } if (value > maxValue) { maxValue = value; maxIndex = i + k; } } var rawMinIndex = this.getRawIndex(minIndex); var rawMaxIndex = this.getRawIndex(maxIndex); // Set the order of the min and max values, based on their ordering in the frame if (minIndex < maxIndex) { newIndices[offset++] = rawMinIndex; newIndices[offset++] = rawMaxIndex; } else { newIndices[offset++] = rawMaxIndex; newIndices[offset++] = rawMinIndex; } } target._count = offset; target._indices = newIndices; target._updateGetRawIdx(); return target; }; /** * Large data down sampling on given dimension * @param sampleIndex Sample index for name and id */ DataStore.prototype.downSample = function (dimension, rate, sampleValue, sampleIndex) { var target = this.clone([dimension], true); var targetStorage = target._chunks; var frameValues = []; var frameSize = Math.floor(1 / rate); var dimStore = targetStorage[dimension]; var len = this.count(); var rawExtentOnDim = target._rawExtent[dimension] = getInitialExtent(); var newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize)); var offset = 0; for (var i = 0; i < len; i += frameSize) { // Last frame if (frameSize > len - i) { frameSize = len - i; frameValues.length = frameSize; } for (var k = 0; k < frameSize; k++) { var dataIdx = this.getRawIndex(i + k); frameValues[k] = dimStore[dataIdx]; } var value = sampleValue(frameValues); var sampleFrameIdx = this.getRawIndex(Math.min(i + sampleIndex(frameValues, value) || 0, len - 1)); // Only write value on the filtered data dimStore[sampleFrameIdx] = value; if (value < rawExtentOnDim[0]) { rawExtentOnDim[0] = value; } if (value > rawExtentOnDim[1]) { rawExtentOnDim[1] = value; } newIndices[offset++] = sampleFrameIdx; } target._count = offset; target._indices = newIndices; target._updateGetRawIdx(); return target; }; /** * Data iteration * @param ctx default this * @example * list.each('x', function (x, idx) {}); * list.each(['x', 'y'], function (x, y, idx) {}); * list.each(function (idx) {}) */ DataStore.prototype.each = function (dims, cb) { if (!this._count) { return; } var dimSize = dims.length; var chunks = this._chunks; for (var i = 0, len = this.count(); i < len; i++) { var rawIdx = this.getRawIndex(i); // Simple optimization switch (dimSize) { case 0: cb(i); break; case 1: cb(chunks[dims[0]][rawIdx], i); break; case 2: cb(chunks[dims[0]][rawIdx], chunks[dims[1]][rawIdx], i); break; default: var k = 0; var value = []; for (; k < dimSize; k++) { value[k] = chunks[dims[k]][rawIdx]; } // Index value[k] = i; cb.apply(null, value); } } }; /** * Get extent of data in one dimension */ DataStore.prototype.getDataExtent = function (dim) { // Make sure use concrete dim as cache name. var dimData = this._chunks[dim]; var initialExtent = getInitialExtent(); if (!dimData) { return initialExtent; } // Make more strict checkings to ensure hitting cache. var currEnd = this.count(); // Consider the most cases when using data zoom, `getDataExtent` // happened before filtering. We cache raw extent, which is not // necessary to be cleared and recalculated when restore data. var useRaw = !this._indices; var dimExtent; if (useRaw) { return this._rawExtent[dim].slice(); } dimExtent = this._extent[dim]; if (dimExtent) { return dimExtent.slice(); } dimExtent = initialExtent; var min = dimExtent[0]; var max = dimExtent[1]; for (var i = 0; i < currEnd; i++) { var rawIdx = this.getRawIndex(i); var value = dimData[rawIdx]; value < min && (min = value); value > max && (max = value); } dimExtent = [min, max]; this._extent[dim] = dimExtent; return dimExtent; }; /** * Get raw data item */ DataStore.prototype.getRawDataItem = function (idx) { var rawIdx = this.getRawIndex(idx); if (!this._provider.persistent) { var val = []; var chunks = this._chunks; for (var i = 0; i < chunks.length; i++) { val.push(chunks[i][rawIdx]); } return val; } else { return this._provider.getItem(rawIdx); } }; /** * Clone shallow. * * @param clonedDims Determine which dims to clone. Will share the data if not specified. */ DataStore.prototype.clone = function (clonedDims, ignoreIndices) { var target = new DataStore(); var chunks = this._chunks; var clonedDimsMap = clonedDims && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["reduce"])(clonedDims, function (obj, dimIdx) { obj[dimIdx] = true; return obj; }, {}); if (clonedDimsMap) { for (var i = 0; i < chunks.length; i++) { // Not clone if dim is not picked. target._chunks[i] = !clonedDimsMap[i] ? chunks[i] : cloneChunk(chunks[i]); } } else { target._chunks = chunks; } this._copyCommonProps(target); if (!ignoreIndices) { target._indices = this._cloneIndices(); } target._updateGetRawIdx(); return target; }; DataStore.prototype._copyCommonProps = function (target) { target._count = this._count; target._rawCount = this._rawCount; target._provider = this._provider; target._dimensions = this._dimensions; target._extent = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"])(this._extent); target._rawExtent = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"])(this._rawExtent); }; DataStore.prototype._cloneIndices = function () { if (this._indices) { var Ctor = this._indices.constructor; var indices = void 0; if (Ctor === Array) { var thisCount = this._indices.length; indices = new Ctor(thisCount); for (var i = 0; i < thisCount; i++) { indices[i] = this._indices[i]; } } else { indices = new Ctor(this._indices); } return indices; } return null; }; DataStore.prototype._getRawIdxIdentity = function (idx) { return idx; }; DataStore.prototype._getRawIdx = function (idx) { if (idx < this._count && idx >= 0) { return this._indices[idx]; } return -1; }; DataStore.prototype._updateGetRawIdx = function () { this.getRawIndex = this._indices ? this._getRawIdx : this._getRawIdxIdentity; }; DataStore.internalField = function () { function getDimValueSimply(dataItem, property, dataIndex, dimIndex) { return Object(_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_1__["parseDataValue"])(dataItem[dimIndex], this._dimensions[dimIndex]); } defaultDimValueGetters = { arrayRows: getDimValueSimply, objectRows: function (dataItem, property, dataIndex, dimIndex) { return Object(_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_1__["parseDataValue"])(dataItem[property], this._dimensions[dimIndex]); }, keyedColumns: getDimValueSimply, original: function (dataItem, property, dataIndex, dimIndex) { // Performance sensitive, do not use modelUtil.getDataItemValue. // If dataItem is an plain object with no value field, the let `value` // will be assigned with the object, but it will be tread correctly // in the `convertValue`. var value = dataItem && (dataItem.value == null ? dataItem : dataItem.value); return Object(_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_1__["parseDataValue"])(value instanceof Array ? value[dimIndex] // If value is a single number or something else not array. : value, this._dimensions[dimIndex]); }, typedArray: function (dataItem, property, dataIndex, dimIndex) { return dataItem[dimIndex]; } }; }(); return DataStore; }(); /* harmony default export */ __webpack_exports__["default"] = (DataStore); /***/ }), /***/ "./node_modules/echarts/lib/data/Graph.js": /*!************************************************!*\ !*** ./node_modules/echarts/lib/data/Graph.js ***! \************************************************/ /*! exports provided: default, GraphNode, GraphEdge */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphNode", function() { return GraphNode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphEdge", function() { return GraphEdge; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // id may be function name of Object, add a prefix to avoid this problem. function generateNodeKey(id) { return '_EC_' + id; } var Graph = /** @class */function () { function Graph(directed) { this.type = 'graph'; this.nodes = []; this.edges = []; this._nodesMap = {}; /** * @type {Object.} * @private */ this._edgesMap = {}; this._directed = directed || false; } /** * If is directed graph */ Graph.prototype.isDirected = function () { return this._directed; }; ; /** * Add a new node */ Graph.prototype.addNode = function (id, dataIndex) { id = id == null ? '' + dataIndex : '' + id; var nodesMap = this._nodesMap; if (nodesMap[generateNodeKey(id)]) { if (true) { console.error('Graph nodes have duplicate name or id'); } return; } var node = new GraphNode(id, dataIndex); node.hostGraph = this; this.nodes.push(node); nodesMap[generateNodeKey(id)] = node; return node; }; ; /** * Get node by data index */ Graph.prototype.getNodeByIndex = function (dataIndex) { var rawIdx = this.data.getRawIndex(dataIndex); return this.nodes[rawIdx]; }; ; /** * Get node by id */ Graph.prototype.getNodeById = function (id) { return this._nodesMap[generateNodeKey(id)]; }; ; /** * Add a new edge */ Graph.prototype.addEdge = function (n1, n2, dataIndex) { var nodesMap = this._nodesMap; var edgesMap = this._edgesMap; // PENDING if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isNumber"](n1)) { n1 = this.nodes[n1]; } if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isNumber"](n2)) { n2 = this.nodes[n2]; } if (!(n1 instanceof GraphNode)) { n1 = nodesMap[generateNodeKey(n1)]; } if (!(n2 instanceof GraphNode)) { n2 = nodesMap[generateNodeKey(n2)]; } if (!n1 || !n2) { return; } var key = n1.id + '-' + n2.id; var edge = new GraphEdge(n1, n2, dataIndex); edge.hostGraph = this; if (this._directed) { n1.outEdges.push(edge); n2.inEdges.push(edge); } n1.edges.push(edge); if (n1 !== n2) { n2.edges.push(edge); } this.edges.push(edge); edgesMap[key] = edge; return edge; }; ; /** * Get edge by data index */ Graph.prototype.getEdgeByIndex = function (dataIndex) { var rawIdx = this.edgeData.getRawIndex(dataIndex); return this.edges[rawIdx]; }; ; /** * Get edge by two linked nodes */ Graph.prototype.getEdge = function (n1, n2) { if (n1 instanceof GraphNode) { n1 = n1.id; } if (n2 instanceof GraphNode) { n2 = n2.id; } var edgesMap = this._edgesMap; if (this._directed) { return edgesMap[n1 + '-' + n2]; } else { return edgesMap[n1 + '-' + n2] || edgesMap[n2 + '-' + n1]; } }; ; /** * Iterate all nodes */ Graph.prototype.eachNode = function (cb, context) { var nodes = this.nodes; var len = nodes.length; for (var i = 0; i < len; i++) { if (nodes[i].dataIndex >= 0) { cb.call(context, nodes[i], i); } } }; ; /** * Iterate all edges */ Graph.prototype.eachEdge = function (cb, context) { var edges = this.edges; var len = edges.length; for (var i = 0; i < len; i++) { if (edges[i].dataIndex >= 0 && edges[i].node1.dataIndex >= 0 && edges[i].node2.dataIndex >= 0) { cb.call(context, edges[i], i); } } }; ; /** * Breadth first traverse * Return true to stop traversing */ Graph.prototype.breadthFirstTraverse = function (cb, startNode, direction, context) { if (!(startNode instanceof GraphNode)) { startNode = this._nodesMap[generateNodeKey(startNode)]; } if (!startNode) { return; } var edgeType = direction === 'out' ? 'outEdges' : direction === 'in' ? 'inEdges' : 'edges'; for (var i = 0; i < this.nodes.length; i++) { this.nodes[i].__visited = false; } if (cb.call(context, startNode, null)) { return; } var queue = [startNode]; while (queue.length) { var currentNode = queue.shift(); var edges = currentNode[edgeType]; for (var i = 0; i < edges.length; i++) { var e = edges[i]; var otherNode = e.node1 === currentNode ? e.node2 : e.node1; if (!otherNode.__visited) { if (cb.call(context, otherNode, currentNode)) { // Stop traversing return; } queue.push(otherNode); otherNode.__visited = true; } } } }; ; // TODO // depthFirstTraverse( // cb, startNode, direction, context // ) { // }; // Filter update Graph.prototype.update = function () { var data = this.data; var edgeData = this.edgeData; var nodes = this.nodes; var edges = this.edges; for (var i = 0, len = nodes.length; i < len; i++) { nodes[i].dataIndex = -1; } for (var i = 0, len = data.count(); i < len; i++) { nodes[data.getRawIndex(i)].dataIndex = i; } edgeData.filterSelf(function (idx) { var edge = edges[edgeData.getRawIndex(idx)]; return edge.node1.dataIndex >= 0 && edge.node2.dataIndex >= 0; }); // Update edge for (var i = 0, len = edges.length; i < len; i++) { edges[i].dataIndex = -1; } for (var i = 0, len = edgeData.count(); i < len; i++) { edges[edgeData.getRawIndex(i)].dataIndex = i; } }; ; /** * @return {module:echarts/data/Graph} */ Graph.prototype.clone = function () { var graph = new Graph(this._directed); var nodes = this.nodes; var edges = this.edges; for (var i = 0; i < nodes.length; i++) { graph.addNode(nodes[i].id, nodes[i].dataIndex); } for (var i = 0; i < edges.length; i++) { var e = edges[i]; graph.addEdge(e.node1.id, e.node2.id, e.dataIndex); } return graph; }; ; return Graph; }(); var GraphNode = /** @class */function () { function GraphNode(id, dataIndex) { this.inEdges = []; this.outEdges = []; this.edges = []; this.dataIndex = -1; this.id = id == null ? '' : id; this.dataIndex = dataIndex == null ? -1 : dataIndex; } /** * @return {number} */ GraphNode.prototype.degree = function () { return this.edges.length; }; /** * @return {number} */ GraphNode.prototype.inDegree = function () { return this.inEdges.length; }; /** * @return {number} */ GraphNode.prototype.outDegree = function () { return this.outEdges.length; }; GraphNode.prototype.getModel = function (path) { if (this.dataIndex < 0) { return; } var graph = this.hostGraph; var itemModel = graph.data.getItemModel(this.dataIndex); return itemModel.getModel(path); }; GraphNode.prototype.getAdjacentDataIndices = function () { var dataIndices = { edge: [], node: [] }; for (var i = 0; i < this.edges.length; i++) { var adjacentEdge = this.edges[i]; if (adjacentEdge.dataIndex < 0) { continue; } dataIndices.edge.push(adjacentEdge.dataIndex); dataIndices.node.push(adjacentEdge.node1.dataIndex, adjacentEdge.node2.dataIndex); } return dataIndices; }; GraphNode.prototype.getTrajectoryDataIndices = function () { var connectedEdgesMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](); var connectedNodesMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](); for (var i = 0; i < this.edges.length; i++) { var adjacentEdge = this.edges[i]; if (adjacentEdge.dataIndex < 0) { continue; } connectedEdgesMap.set(adjacentEdge.dataIndex, true); var sourceNodesQueue = [adjacentEdge.node1]; var targetNodesQueue = [adjacentEdge.node2]; var nodeIteratorIndex = 0; while (nodeIteratorIndex < sourceNodesQueue.length) { var sourceNode = sourceNodesQueue[nodeIteratorIndex]; nodeIteratorIndex++; connectedNodesMap.set(sourceNode.dataIndex, true); for (var j = 0; j < sourceNode.inEdges.length; j++) { connectedEdgesMap.set(sourceNode.inEdges[j].dataIndex, true); sourceNodesQueue.push(sourceNode.inEdges[j].node1); } } nodeIteratorIndex = 0; while (nodeIteratorIndex < targetNodesQueue.length) { var targetNode = targetNodesQueue[nodeIteratorIndex]; nodeIteratorIndex++; connectedNodesMap.set(targetNode.dataIndex, true); for (var j = 0; j < targetNode.outEdges.length; j++) { connectedEdgesMap.set(targetNode.outEdges[j].dataIndex, true); targetNodesQueue.push(targetNode.outEdges[j].node2); } } } return { edge: connectedEdgesMap.keys(), node: connectedNodesMap.keys() }; }; return GraphNode; }(); var GraphEdge = /** @class */function () { function GraphEdge(n1, n2, dataIndex) { this.dataIndex = -1; this.node1 = n1; this.node2 = n2; this.dataIndex = dataIndex == null ? -1 : dataIndex; } // eslint-disable-next-line @typescript-eslint/no-unused-vars GraphEdge.prototype.getModel = function (path) { if (this.dataIndex < 0) { return; } var graph = this.hostGraph; var itemModel = graph.edgeData.getItemModel(this.dataIndex); return itemModel.getModel(path); }; GraphEdge.prototype.getAdjacentDataIndices = function () { return { edge: [this.dataIndex], node: [this.node1.dataIndex, this.node2.dataIndex] }; }; GraphEdge.prototype.getTrajectoryDataIndices = function () { var connectedEdgesMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](); var connectedNodesMap = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](); connectedEdgesMap.set(this.dataIndex, true); var sourceNodes = [this.node1]; var targetNodes = [this.node2]; var nodeIteratorIndex = 0; while (nodeIteratorIndex < sourceNodes.length) { var sourceNode = sourceNodes[nodeIteratorIndex]; nodeIteratorIndex++; connectedNodesMap.set(sourceNode.dataIndex, true); for (var j = 0; j < sourceNode.inEdges.length; j++) { connectedEdgesMap.set(sourceNode.inEdges[j].dataIndex, true); sourceNodes.push(sourceNode.inEdges[j].node1); } } nodeIteratorIndex = 0; while (nodeIteratorIndex < targetNodes.length) { var targetNode = targetNodes[nodeIteratorIndex]; nodeIteratorIndex++; connectedNodesMap.set(targetNode.dataIndex, true); for (var j = 0; j < targetNode.outEdges.length; j++) { connectedEdgesMap.set(targetNode.outEdges[j].dataIndex, true); targetNodes.push(targetNode.outEdges[j].node2); } } return { edge: connectedEdgesMap.keys(), node: connectedNodesMap.keys() }; }; return GraphEdge; }(); function createGraphDataProxyMixin(hostName, dataName) { return { /** * @param Default 'value'. can be 'a', 'b', 'c', 'd', 'e'. */ getValue: function (dimension) { var data = this[hostName][dataName]; return data.getStore().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex); }, // TODO: TYPE stricter type. setVisual: function (key, value) { this.dataIndex >= 0 && this[hostName][dataName].setItemVisual(this.dataIndex, key, value); }, getVisual: function (key) { return this[hostName][dataName].getItemVisual(this.dataIndex, key); }, setLayout: function (layout, merge) { this.dataIndex >= 0 && this[hostName][dataName].setItemLayout(this.dataIndex, layout, merge); }, getLayout: function () { return this[hostName][dataName].getItemLayout(this.dataIndex); }, getGraphicEl: function () { return this[hostName][dataName].getItemGraphicEl(this.dataIndex); }, getRawIndex: function () { return this[hostName][dataName].getRawIndex(this.dataIndex); } }; } ; ; ; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["mixin"](GraphNode, createGraphDataProxyMixin('hostGraph', 'data')); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["mixin"](GraphEdge, createGraphDataProxyMixin('hostGraph', 'edgeData')); /* harmony default export */ __webpack_exports__["default"] = (Graph); /***/ }), /***/ "./node_modules/echarts/lib/data/OrdinalMeta.js": /*!******************************************************!*\ !*** ./node_modules/echarts/lib/data/OrdinalMeta.js ***! \******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var uidBase = 0; var OrdinalMeta = /** @class */function () { function OrdinalMeta(opt) { this.categories = opt.categories || []; this._needCollect = opt.needCollect; this._deduplication = opt.deduplication; this.uid = ++uidBase; } OrdinalMeta.createByAxisModel = function (axisModel) { var option = axisModel.option; var data = option.data; var categories = data && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(data, getName); return new OrdinalMeta({ categories: categories, needCollect: !categories, // deduplication is default in axis. deduplication: option.dedplication !== false }); }; ; OrdinalMeta.prototype.getOrdinal = function (category) { // @ts-ignore return this._getOrCreateMap().get(category); }; /** * @return The ordinal. If not found, return NaN. */ OrdinalMeta.prototype.parseAndCollect = function (category) { var index; var needCollect = this._needCollect; // The value of category dim can be the index of the given category set. // This feature is only supported when !needCollect, because we should // consider a common case: a value is 2017, which is a number but is // expected to be tread as a category. This case usually happen in dataset, // where it happent to be no need of the index feature. if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(category) && !needCollect) { return category; } // Optimize for the scenario: // category is ['2012-01-01', '2012-01-02', ...], where the input // data has been ensured not duplicate and is large data. // Notice, if a dataset dimension provide categroies, usually echarts // should remove duplication except user tell echarts dont do that // (set axis.deduplication = false), because echarts do not know whether // the values in the category dimension has duplication (consider the // parallel-aqi example) if (needCollect && !this._deduplication) { index = this.categories.length; this.categories[index] = category; return index; } var map = this._getOrCreateMap(); // @ts-ignore index = map.get(category); if (index == null) { if (needCollect) { index = this.categories.length; this.categories[index] = category; // @ts-ignore map.set(category, index); } else { index = NaN; } } return index; }; // Consider big data, do not create map until needed. OrdinalMeta.prototype._getOrCreateMap = function () { return this._map || (this._map = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(this.categories)); }; return OrdinalMeta; }(); function getName(obj) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(obj) && obj.value != null) { return obj.value; } else { return obj + ''; } } /* harmony default export */ __webpack_exports__["default"] = (OrdinalMeta); /***/ }), /***/ "./node_modules/echarts/lib/data/SeriesData.js": /*!*****************************************************!*\ !*** ./node_modules/echarts/lib/data/SeriesData.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _DataDiffer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DataDiffer.js */ "./node_modules/echarts/lib/data/DataDiffer.js"); /* harmony import */ var _helper_dataProvider_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helper/dataProvider.js */ "./node_modules/echarts/lib/data/helper/dataProvider.js"); /* harmony import */ var _helper_dimensionHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helper/dimensionHelper.js */ "./node_modules/echarts/lib/data/helper/dimensionHelper.js"); /* harmony import */ var _SeriesDimensionDefine_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SeriesDimensionDefine.js */ "./node_modules/echarts/lib/data/SeriesDimensionDefine.js"); /* harmony import */ var _util_types_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/types.js */ "./node_modules/echarts/lib/util/types.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _Source_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Source.js */ "./node_modules/echarts/lib/data/Source.js"); /* harmony import */ var _DataStore_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DataStore.js */ "./node_modules/echarts/lib/data/DataStore.js"); /* harmony import */ var _helper_SeriesDataSchema_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helper/SeriesDataSchema.js */ "./node_modules/echarts/lib/data/helper/SeriesDataSchema.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Int32Array */ var isObject = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"]; var map = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"]; var CtorInt32Array = typeof Int32Array === 'undefined' ? Array : Int32Array; // Use prefix to avoid index to be the same as otherIdList[idx], // which will cause weird update animation. var ID_PREFIX = 'e\0\0'; var INDEX_NOT_FOUND = -1; // type SeriesDimensionIndex = DimensionIndex; var TRANSFERABLE_PROPERTIES = ['hasItemOption', '_nameList', '_idList', '_invertedIndicesMap', '_dimSummary', 'userOutput', '_rawData', '_dimValueGetter', '_nameDimIdx', '_idDimIdx', '_nameRepeatCount']; var CLONE_PROPERTIES = ['_approximateExtent']; // ----------------------------- // Internal method declarations: // ----------------------------- var prepareInvertedIndex; var getId; var getIdNameFromStore; var normalizeDimensions; var transferProperties; var cloneListForMapAndSample; var makeIdFromName; var SeriesData = /** @class */function () { /** * @param dimensionsInput.dimensions * For example, ['someDimName', {name: 'someDimName', type: 'someDimType'}, ...]. * Dimensions should be concrete names like x, y, z, lng, lat, angle, radius */ function SeriesData(dimensionsInput, hostModel) { this.type = 'list'; this._dimOmitted = false; this._nameList = []; this._idList = []; // Models of data option is stored sparse for optimizing memory cost // Never used yet (not used yet). // private _optionModels: Model[] = []; // Global visual properties after visual coding this._visual = {}; // Global layout properties. this._layout = {}; // Item visual properties after visual coding this._itemVisuals = []; // Item layout properties after layout this._itemLayouts = []; // Graphic elements this._graphicEls = []; // key: dim, value: extent this._approximateExtent = {}; this._calculationInfo = {}; // Having detected that there is data item is non primitive type // (in type `OptionDataItemObject`). // Like `data: [ { value: xx, itemStyle: {...} }, ...]` // At present it only happen in `SOURCE_FORMAT_ORIGINAL`. this.hasItemOption = false; // Methods that create a new list based on this list should be listed here. // Notice that those method should `RETURN` the new list. this.TRANSFERABLE_METHODS = ['cloneShallow', 'downSample', 'minmaxDownSample', 'lttbDownSample', 'map']; // Methods that change indices of this list should be listed here. this.CHANGABLE_METHODS = ['filterSelf', 'selectRange']; this.DOWNSAMPLE_METHODS = ['downSample', 'minmaxDownSample', 'lttbDownSample']; var dimensions; var assignStoreDimIdx = false; if (Object(_helper_SeriesDataSchema_js__WEBPACK_IMPORTED_MODULE_11__["isSeriesDataSchema"])(dimensionsInput)) { dimensions = dimensionsInput.dimensions; this._dimOmitted = dimensionsInput.isDimensionOmitted(); this._schema = dimensionsInput; } else { assignStoreDimIdx = true; dimensions = dimensionsInput; } dimensions = dimensions || ['x', 'y']; var dimensionInfos = {}; var dimensionNames = []; var invertedIndicesMap = {}; var needsHasOwn = false; var emptyObj = {}; for (var i = 0; i < dimensions.length; i++) { // Use the original dimensions[i], where other flag props may exists. var dimInfoInput = dimensions[i]; var dimensionInfo = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](dimInfoInput) ? new _SeriesDimensionDefine_js__WEBPACK_IMPORTED_MODULE_5__["default"]({ name: dimInfoInput }) : !(dimInfoInput instanceof _SeriesDimensionDefine_js__WEBPACK_IMPORTED_MODULE_5__["default"]) ? new _SeriesDimensionDefine_js__WEBPACK_IMPORTED_MODULE_5__["default"](dimInfoInput) : dimInfoInput; var dimensionName = dimensionInfo.name; dimensionInfo.type = dimensionInfo.type || 'float'; if (!dimensionInfo.coordDim) { dimensionInfo.coordDim = dimensionName; dimensionInfo.coordDimIndex = 0; } var otherDims = dimensionInfo.otherDims = dimensionInfo.otherDims || {}; dimensionNames.push(dimensionName); dimensionInfos[dimensionName] = dimensionInfo; if (emptyObj[dimensionName] != null) { needsHasOwn = true; } if (dimensionInfo.createInvertedIndices) { invertedIndicesMap[dimensionName] = []; } if (otherDims.itemName === 0) { this._nameDimIdx = i; } if (otherDims.itemId === 0) { this._idDimIdx = i; } if (true) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"](assignStoreDimIdx || dimensionInfo.storeDimIndex >= 0); } if (assignStoreDimIdx) { dimensionInfo.storeDimIndex = i; } } this.dimensions = dimensionNames; this._dimInfos = dimensionInfos; this._initGetDimensionInfo(needsHasOwn); this.hostModel = hostModel; this._invertedIndicesMap = invertedIndicesMap; if (this._dimOmitted) { var dimIdxToName_1 = this._dimIdxToName = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](dimensionNames, function (dimName) { dimIdxToName_1.set(dimensionInfos[dimName].storeDimIndex, dimName); }); } } /** * * Get concrete dimension name by dimension name or dimension index. * If input a dimension name, do not validate whether the dimension name exits. * * @caution * @param dim Must make sure the dimension is `SeriesDimensionLoose`. * Because only those dimensions will have auto-generated dimension names if not * have a user-specified name, and other dimensions will get a return of null/undefined. * * @notice Because of this reason, should better use `getDimensionIndex` instead, for examples: * ```js * const val = data.getStore().get(data.getDimensionIndex(dim), dataIdx); * ``` * * @return Concrete dim name. */ SeriesData.prototype.getDimension = function (dim) { var dimIdx = this._recognizeDimIndex(dim); if (dimIdx == null) { return dim; } dimIdx = dim; if (!this._dimOmitted) { return this.dimensions[dimIdx]; } // Retrieve from series dimension definition because it probably contains // generated dimension name (like 'x', 'y'). var dimName = this._dimIdxToName.get(dimIdx); if (dimName != null) { return dimName; } var sourceDimDef = this._schema.getSourceDimension(dimIdx); if (sourceDimDef) { return sourceDimDef.name; } }; /** * Get dimension index in data store. Return -1 if not found. * Can be used to index value from getRawValue. */ SeriesData.prototype.getDimensionIndex = function (dim) { var dimIdx = this._recognizeDimIndex(dim); if (dimIdx != null) { return dimIdx; } if (dim == null) { return -1; } var dimInfo = this._getDimInfo(dim); return dimInfo ? dimInfo.storeDimIndex : this._dimOmitted ? this._schema.getSourceDimensionIndex(dim) : -1; }; /** * The meanings of the input parameter `dim`: * * + If dim is a number (e.g., `1`), it means the index of the dimension. * For example, `getDimension(0)` will return 'x' or 'lng' or 'radius'. * + If dim is a number-like string (e.g., `"1"`): * + If there is the same concrete dim name defined in `series.dimensions` or `dataset.dimensions`, * it means that concrete name. * + If not, it will be converted to a number, which means the index of the dimension. * (why? because of the backward compatibility. We have been tolerating number-like string in * dimension setting, although now it seems that it is not a good idea.) * For example, `visualMap[i].dimension: "1"` is the same meaning as `visualMap[i].dimension: 1`, * if no dimension name is defined as `"1"`. * + If dim is a not-number-like string, it means the concrete dim name. * For example, it can be be default name `"x"`, `"y"`, `"z"`, `"lng"`, `"lat"`, `"angle"`, `"radius"`, * or customized in `dimensions` property of option like `"age"`. * * @return recognized `DimensionIndex`. Otherwise return null/undefined (means that dim is `DimensionName`). */ SeriesData.prototype._recognizeDimIndex = function (dim) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isNumber"](dim) // If being a number-like string but not being defined as a dimension name. || dim != null && !isNaN(dim) && !this._getDimInfo(dim) && (!this._dimOmitted || this._schema.getSourceDimensionIndex(dim) < 0)) { return +dim; } }; SeriesData.prototype._getStoreDimIndex = function (dim) { var dimIdx = this.getDimensionIndex(dim); if (true) { if (dimIdx == null) { throw new Error('Unknown dimension ' + dim); } } return dimIdx; }; /** * Get type and calculation info of particular dimension * @param dim * Dimension can be concrete names like x, y, z, lng, lat, angle, radius * Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius' */ SeriesData.prototype.getDimensionInfo = function (dim) { // Do not clone, because there may be categories in dimInfo. return this._getDimInfo(this.getDimension(dim)); }; SeriesData.prototype._initGetDimensionInfo = function (needsHasOwn) { var dimensionInfos = this._dimInfos; this._getDimInfo = needsHasOwn ? function (dimName) { return dimensionInfos.hasOwnProperty(dimName) ? dimensionInfos[dimName] : undefined; } : function (dimName) { return dimensionInfos[dimName]; }; }; /** * concrete dimension name list on coord. */ SeriesData.prototype.getDimensionsOnCoord = function () { return this._dimSummary.dataDimsOnCoord.slice(); }; SeriesData.prototype.mapDimension = function (coordDim, idx) { var dimensionsSummary = this._dimSummary; if (idx == null) { return dimensionsSummary.encodeFirstDimNotExtra[coordDim]; } var dims = dimensionsSummary.encode[coordDim]; return dims ? dims[idx] : null; }; SeriesData.prototype.mapDimensionsAll = function (coordDim) { var dimensionsSummary = this._dimSummary; var dims = dimensionsSummary.encode[coordDim]; return (dims || []).slice(); }; SeriesData.prototype.getStore = function () { return this._store; }; /** * Initialize from data * @param data source or data or data store. * @param nameList The name of a datum is used on data diff and * default label/tooltip. * A name can be specified in encode.itemName, * or dataItem.name (only for series option data), * or provided in nameList from outside. */ SeriesData.prototype.initData = function (data, nameList, dimValueGetter) { var _this = this; var store; if (data instanceof _DataStore_js__WEBPACK_IMPORTED_MODULE_10__["default"]) { store = data; } if (!store) { var dimensions = this.dimensions; var provider = Object(_Source_js__WEBPACK_IMPORTED_MODULE_9__["isSourceInstance"])(data) || zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArrayLike"](data) ? new _helper_dataProvider_js__WEBPACK_IMPORTED_MODULE_3__["DefaultDataProvider"](data, dimensions.length) : data; store = new _DataStore_js__WEBPACK_IMPORTED_MODULE_10__["default"](); var dimensionInfos = map(dimensions, function (dimName) { return { type: _this._dimInfos[dimName].type, property: dimName }; }); store.initData(provider, dimensionInfos, dimValueGetter); } this._store = store; // Reset this._nameList = (nameList || []).slice(); this._idList = []; this._nameRepeatCount = {}; this._doInit(0, store.count()); // Cache summary info for fast visit. See "dimensionHelper". // Needs to be initialized after store is prepared. this._dimSummary = Object(_helper_dimensionHelper_js__WEBPACK_IMPORTED_MODULE_4__["summarizeDimensions"])(this, this._schema); this.userOutput = this._dimSummary.userOutput; }; /** * Caution: Can be only called on raw data (before `this._indices` created). */ SeriesData.prototype.appendData = function (data) { var range = this._store.appendData(data); this._doInit(range[0], range[1]); }; /** * Caution: Can be only called on raw data (before `this._indices` created). * This method does not modify `rawData` (`dataProvider`), but only * add values to store. * * The final count will be increased by `Math.max(values.length, names.length)`. * * @param values That is the SourceType: 'arrayRows', like * [ * [12, 33, 44], * [NaN, 43, 1], * ['-', 'asdf', 0] * ] * Each item is exactly corresponding to a dimension. */ SeriesData.prototype.appendValues = function (values, names) { var _a = this._store.appendValues(values, names && names.length), start = _a.start, end = _a.end; var shouldMakeIdFromName = this._shouldMakeIdFromName(); this._updateOrdinalMeta(); if (names) { for (var idx = start; idx < end; idx++) { var sourceIdx = idx - start; this._nameList[idx] = names[sourceIdx]; if (shouldMakeIdFromName) { makeIdFromName(this, idx); } } } }; SeriesData.prototype._updateOrdinalMeta = function () { var store = this._store; var dimensions = this.dimensions; for (var i = 0; i < dimensions.length; i++) { var dimInfo = this._dimInfos[dimensions[i]]; if (dimInfo.ordinalMeta) { store.collectOrdinalMeta(dimInfo.storeDimIndex, dimInfo.ordinalMeta); } } }; SeriesData.prototype._shouldMakeIdFromName = function () { var provider = this._store.getProvider(); return this._idDimIdx == null && provider.getSource().sourceFormat !== _util_types_js__WEBPACK_IMPORTED_MODULE_6__["SOURCE_FORMAT_TYPED_ARRAY"] && !provider.fillStorage; }; SeriesData.prototype._doInit = function (start, end) { if (start >= end) { return; } var store = this._store; var provider = store.getProvider(); this._updateOrdinalMeta(); var nameList = this._nameList; var idList = this._idList; var sourceFormat = provider.getSource().sourceFormat; var isFormatOriginal = sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_6__["SOURCE_FORMAT_ORIGINAL"]; // Each data item is value // [1, 2] // 2 // Bar chart, line chart which uses category axis // only gives the 'y' value. 'x' value is the indices of category // Use a tempValue to normalize the value to be a (x, y) value // If dataItem is {name: ...} or {id: ...}, it has highest priority. // This kind of ids and names are always stored `_nameList` and `_idList`. if (isFormatOriginal && !provider.pure) { var sharedDataItem = []; for (var idx = start; idx < end; idx++) { // NOTICE: Try not to write things into dataItem var dataItem = provider.getItem(idx, sharedDataItem); if (!this.hasItemOption && Object(_util_model_js__WEBPACK_IMPORTED_MODULE_7__["isDataItemOption"])(dataItem)) { this.hasItemOption = true; } if (dataItem) { var itemName = dataItem.name; if (nameList[idx] == null && itemName != null) { nameList[idx] = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_7__["convertOptionIdName"])(itemName, null); } var itemId = dataItem.id; if (idList[idx] == null && itemId != null) { idList[idx] = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_7__["convertOptionIdName"])(itemId, null); } } } } if (this._shouldMakeIdFromName()) { for (var idx = start; idx < end; idx++) { makeIdFromName(this, idx); } } prepareInvertedIndex(this); }; /** * PENDING: In fact currently this function is only used to short-circuit * the calling of `scale.unionExtentFromData` when data have been filtered by modules * like "dataZoom". `scale.unionExtentFromData` is used to calculate data extent for series on * an axis, but if a "axis related data filter module" is used, the extent of the axis have * been fixed and no need to calling `scale.unionExtentFromData` actually. * But if we add "custom data filter" in future, which is not "axis related", this method may * be still needed. * * Optimize for the scenario that data is filtered by a given extent. * Consider that if data amount is more than hundreds of thousand, * extent calculation will cost more than 10ms and the cache will * be erased because of the filtering. */ SeriesData.prototype.getApproximateExtent = function (dim) { return this._approximateExtent[dim] || this._store.getDataExtent(this._getStoreDimIndex(dim)); }; /** * Calculate extent on a filtered data might be time consuming. * Approximate extent is only used for: calculate extent of filtered data outside. */ SeriesData.prototype.setApproximateExtent = function (extent, dim) { dim = this.getDimension(dim); this._approximateExtent[dim] = extent.slice(); }; SeriesData.prototype.getCalculationInfo = function (key) { return this._calculationInfo[key]; }; SeriesData.prototype.setCalculationInfo = function (key, value) { isObject(key) ? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"](this._calculationInfo, key) : this._calculationInfo[key] = value; }; /** * @return Never be null/undefined. `number` will be converted to string. Because: * In most cases, name is used in display, where returning a string is more convenient. * In other cases, name is used in query (see `indexOfName`), where we can keep the * rule that name `2` equals to name `'2'`. */ SeriesData.prototype.getName = function (idx) { var rawIndex = this.getRawIndex(idx); var name = this._nameList[rawIndex]; if (name == null && this._nameDimIdx != null) { name = getIdNameFromStore(this, this._nameDimIdx, rawIndex); } if (name == null) { name = ''; } return name; }; SeriesData.prototype._getCategory = function (dimIdx, idx) { var ordinal = this._store.get(dimIdx, idx); var ordinalMeta = this._store.getOrdinalMeta(dimIdx); if (ordinalMeta) { return ordinalMeta.categories[ordinal]; } return ordinal; }; /** * @return Never null/undefined. `number` will be converted to string. Because: * In all cases having encountered at present, id is used in making diff comparison, which * are usually based on hash map. We can keep the rule that the internal id are always string * (treat `2` is the same as `'2'`) to make the related logic simple. */ SeriesData.prototype.getId = function (idx) { return getId(this, this.getRawIndex(idx)); }; SeriesData.prototype.count = function () { return this._store.count(); }; /** * Get value. Return NaN if idx is out of range. * * @notice Should better to use `data.getStore().get(dimIndex, dataIdx)` instead. */ SeriesData.prototype.get = function (dim, idx) { var store = this._store; var dimInfo = this._dimInfos[dim]; if (dimInfo) { return store.get(dimInfo.storeDimIndex, idx); } }; /** * @notice Should better to use `data.getStore().getByRawIndex(dimIndex, dataIdx)` instead. */ SeriesData.prototype.getByRawIndex = function (dim, rawIdx) { var store = this._store; var dimInfo = this._dimInfos[dim]; if (dimInfo) { return store.getByRawIndex(dimInfo.storeDimIndex, rawIdx); } }; SeriesData.prototype.getIndices = function () { return this._store.getIndices(); }; SeriesData.prototype.getDataExtent = function (dim) { return this._store.getDataExtent(this._getStoreDimIndex(dim)); }; SeriesData.prototype.getSum = function (dim) { return this._store.getSum(this._getStoreDimIndex(dim)); }; SeriesData.prototype.getMedian = function (dim) { return this._store.getMedian(this._getStoreDimIndex(dim)); }; SeriesData.prototype.getValues = function (dimensions, idx) { var _this = this; var store = this._store; return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](dimensions) ? store.getValues(map(dimensions, function (dim) { return _this._getStoreDimIndex(dim); }), idx) : store.getValues(dimensions); }; /** * If value is NaN. Including '-' * Only check the coord dimensions. */ SeriesData.prototype.hasValue = function (idx) { var dataDimIndicesOnCoord = this._dimSummary.dataDimIndicesOnCoord; for (var i = 0, len = dataDimIndicesOnCoord.length; i < len; i++) { // Ordinal type originally can be string or number. // But when an ordinal type is used on coord, it can // not be string but only number. So we can also use isNaN. if (isNaN(this._store.get(dataDimIndicesOnCoord[i], idx))) { return false; } } return true; }; /** * Retrieve the index with given name */ SeriesData.prototype.indexOfName = function (name) { for (var i = 0, len = this._store.count(); i < len; i++) { if (this.getName(i) === name) { return i; } } return -1; }; SeriesData.prototype.getRawIndex = function (idx) { return this._store.getRawIndex(idx); }; SeriesData.prototype.indexOfRawIndex = function (rawIndex) { return this._store.indexOfRawIndex(rawIndex); }; /** * Only support the dimension which inverted index created. * Do not support other cases until required. * @param dim concrete dim * @param value ordinal index * @return rawIndex */ SeriesData.prototype.rawIndexOf = function (dim, value) { var invertedIndices = dim && this._invertedIndicesMap[dim]; if (true) { if (!invertedIndices) { throw new Error('Do not supported yet'); } } var rawIndex = invertedIndices && invertedIndices[value]; if (rawIndex == null || isNaN(rawIndex)) { return INDEX_NOT_FOUND; } return rawIndex; }; /** * Retrieve the index of nearest value * @param dim * @param value * @param [maxDistance=Infinity] * @return If and only if multiple indices has * the same value, they are put to the result. */ SeriesData.prototype.indicesOfNearest = function (dim, value, maxDistance) { return this._store.indicesOfNearest(this._getStoreDimIndex(dim), value, maxDistance); }; SeriesData.prototype.each = function (dims, cb, ctx) { 'use strict'; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"](dims)) { ctx = cb; cb = dims; dims = []; } // ctxCompat just for compat echarts3 var fCtx = ctx || this; var dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this); this._store.each(dimIndices, fCtx ? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"](cb, fCtx) : cb); }; SeriesData.prototype.filterSelf = function (dims, cb, ctx) { 'use strict'; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"](dims)) { ctx = cb; cb = dims; dims = []; } // ctxCompat just for compat echarts3 var fCtx = ctx || this; var dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this); this._store = this._store.filter(dimIndices, fCtx ? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"](cb, fCtx) : cb); return this; }; /** * Select data in range. (For optimization of filter) * (Manually inline code, support 5 million data filtering in data zoom.) */ SeriesData.prototype.selectRange = function (range) { 'use strict'; var _this = this; var innerRange = {}; var dims = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["keys"](range); var dimIndices = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](dims, function (dim) { var dimIdx = _this._getStoreDimIndex(dim); innerRange[dimIdx] = range[dim]; dimIndices.push(dimIdx); }); this._store = this._store.selectRange(innerRange); return this; }; /* eslint-enable max-len */ SeriesData.prototype.mapArray = function (dims, cb, ctx) { 'use strict'; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"](dims)) { ctx = cb; cb = dims; dims = []; } // ctxCompat just for compat echarts3 ctx = ctx || this; var result = []; this.each(dims, function () { result.push(cb && cb.apply(this, arguments)); }, ctx); return result; }; SeriesData.prototype.map = function (dims, cb, ctx, ctxCompat) { 'use strict'; // ctxCompat just for compat echarts3 var fCtx = ctx || ctxCompat || this; var dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this); var list = cloneListForMapAndSample(this); list._store = this._store.map(dimIndices, fCtx ? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"](cb, fCtx) : cb); return list; }; SeriesData.prototype.modify = function (dims, cb, ctx, ctxCompat) { var _this = this; // ctxCompat just for compat echarts3 var fCtx = ctx || ctxCompat || this; if (true) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](normalizeDimensions(dims), function (dim) { var dimInfo = _this.getDimensionInfo(dim); if (!dimInfo.isCalculationCoord) { console.error('Danger: only stack dimension can be modified'); } }); } var dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this); // If do shallow clone here, if there are too many stacked series, // it still cost lots of memory, because `_store.dimensions` are not shared. // We should consider there probably be shallow clone happen in each series // in consequent filter/map. this._store.modify(dimIndices, fCtx ? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"](cb, fCtx) : cb); }; /** * Large data down sampling on given dimension * @param sampleIndex Sample index for name and id */ SeriesData.prototype.downSample = function (dimension, rate, sampleValue, sampleIndex) { var list = cloneListForMapAndSample(this); list._store = this._store.downSample(this._getStoreDimIndex(dimension), rate, sampleValue, sampleIndex); return list; }; /** * Large data down sampling using min-max * @param {string} valueDimension * @param {number} rate */ SeriesData.prototype.minmaxDownSample = function (valueDimension, rate) { var list = cloneListForMapAndSample(this); list._store = this._store.minmaxDownSample(this._getStoreDimIndex(valueDimension), rate); return list; }; /** * Large data down sampling using largest-triangle-three-buckets * @param {string} valueDimension * @param {number} targetCount */ SeriesData.prototype.lttbDownSample = function (valueDimension, rate) { var list = cloneListForMapAndSample(this); list._store = this._store.lttbDownSample(this._getStoreDimIndex(valueDimension), rate); return list; }; SeriesData.prototype.getRawDataItem = function (idx) { return this._store.getRawDataItem(idx); }; /** * Get model of one data item. */ // TODO: Type of data item SeriesData.prototype.getItemModel = function (idx) { var hostModel = this.hostModel; var dataItem = this.getRawDataItem(idx); return new _model_Model_js__WEBPACK_IMPORTED_MODULE_1__["default"](dataItem, hostModel, hostModel && hostModel.ecModel); }; /** * Create a data differ */ SeriesData.prototype.diff = function (otherList) { var thisList = this; return new _DataDiffer_js__WEBPACK_IMPORTED_MODULE_2__["default"](otherList ? otherList.getStore().getIndices() : [], this.getStore().getIndices(), function (idx) { return getId(otherList, idx); }, function (idx) { return getId(thisList, idx); }); }; /** * Get visual property. */ SeriesData.prototype.getVisual = function (key) { var visual = this._visual; return visual && visual[key]; }; SeriesData.prototype.setVisual = function (kvObj, val) { this._visual = this._visual || {}; if (isObject(kvObj)) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"](this._visual, kvObj); } else { this._visual[kvObj] = val; } }; /** * Get visual property of single data item */ // eslint-disable-next-line SeriesData.prototype.getItemVisual = function (idx, key) { var itemVisual = this._itemVisuals[idx]; var val = itemVisual && itemVisual[key]; if (val == null) { // Use global visual property return this.getVisual(key); } return val; }; /** * If exists visual property of single data item */ SeriesData.prototype.hasItemVisual = function () { return this._itemVisuals.length > 0; }; /** * Make sure itemVisual property is unique */ // TODO: use key to save visual to reduce memory. SeriesData.prototype.ensureUniqueItemVisual = function (idx, key) { var itemVisuals = this._itemVisuals; var itemVisual = itemVisuals[idx]; if (!itemVisual) { itemVisual = itemVisuals[idx] = {}; } var val = itemVisual[key]; if (val == null) { val = this.getVisual(key); // TODO Performance? if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](val)) { val = val.slice(); } else if (isObject(val)) { val = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, val); } itemVisual[key] = val; } return val; }; // eslint-disable-next-line SeriesData.prototype.setItemVisual = function (idx, key, value) { var itemVisual = this._itemVisuals[idx] || {}; this._itemVisuals[idx] = itemVisual; if (isObject(key)) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"](itemVisual, key); } else { itemVisual[key] = value; } }; /** * Clear itemVisuals and list visual. */ SeriesData.prototype.clearAllVisual = function () { this._visual = {}; this._itemVisuals = []; }; SeriesData.prototype.setLayout = function (key, val) { isObject(key) ? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"](this._layout, key) : this._layout[key] = val; }; /** * Get layout property. */ SeriesData.prototype.getLayout = function (key) { return this._layout[key]; }; /** * Get layout of single data item */ SeriesData.prototype.getItemLayout = function (idx) { return this._itemLayouts[idx]; }; /** * Set layout of single data item */ SeriesData.prototype.setItemLayout = function (idx, layout, merge) { this._itemLayouts[idx] = merge ? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"](this._itemLayouts[idx] || {}, layout) : layout; }; /** * Clear all layout of single data item */ SeriesData.prototype.clearItemLayouts = function () { this._itemLayouts.length = 0; }; /** * Set graphic element relative to data. It can be set as null */ SeriesData.prototype.setItemGraphicEl = function (idx, el) { var seriesIndex = this.hostModel && this.hostModel.seriesIndex; Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_8__["setCommonECData"])(seriesIndex, this.dataType, idx, el); this._graphicEls[idx] = el; }; SeriesData.prototype.getItemGraphicEl = function (idx) { return this._graphicEls[idx]; }; SeriesData.prototype.eachItemGraphicEl = function (cb, context) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](this._graphicEls, function (el, idx) { if (el) { cb && cb.call(context, el, idx); } }); }; /** * Shallow clone a new list except visual and layout properties, and graph elements. * New list only change the indices. */ SeriesData.prototype.cloneShallow = function (list) { if (!list) { list = new SeriesData(this._schema ? this._schema : map(this.dimensions, this._getDimInfo, this), this.hostModel); } transferProperties(list, this); list._store = this._store; return list; }; /** * Wrap some method to add more feature */ SeriesData.prototype.wrapMethod = function (methodName, injectFunction) { var originalMethod = this[methodName]; if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"](originalMethod)) { return; } this.__wrappedMethods = this.__wrappedMethods || []; this.__wrappedMethods.push(methodName); this[methodName] = function () { var res = originalMethod.apply(this, arguments); return injectFunction.apply(this, [res].concat(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["slice"](arguments))); }; }; // ---------------------------------------------------------- // A work around for internal method visiting private member. // ---------------------------------------------------------- SeriesData.internalField = function () { prepareInvertedIndex = function (data) { var invertedIndicesMap = data._invertedIndicesMap; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](invertedIndicesMap, function (invertedIndices, dim) { var dimInfo = data._dimInfos[dim]; // Currently, only dimensions that has ordinalMeta can create inverted indices. var ordinalMeta = dimInfo.ordinalMeta; var store = data._store; if (ordinalMeta) { invertedIndices = invertedIndicesMap[dim] = new CtorInt32Array(ordinalMeta.categories.length); // The default value of TypedArray is 0. To avoid miss // mapping to 0, we should set it as INDEX_NOT_FOUND. for (var i = 0; i < invertedIndices.length; i++) { invertedIndices[i] = INDEX_NOT_FOUND; } for (var i = 0; i < store.count(); i++) { // Only support the case that all values are distinct. invertedIndices[store.get(dimInfo.storeDimIndex, i)] = i; } } }); }; getIdNameFromStore = function (data, dimIdx, idx) { return Object(_util_model_js__WEBPACK_IMPORTED_MODULE_7__["convertOptionIdName"])(data._getCategory(dimIdx, idx), null); }; /** * @see the comment of `List['getId']`. */ getId = function (data, rawIndex) { var id = data._idList[rawIndex]; if (id == null && data._idDimIdx != null) { id = getIdNameFromStore(data, data._idDimIdx, rawIndex); } if (id == null) { id = ID_PREFIX + rawIndex; } return id; }; normalizeDimensions = function (dimensions) { if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](dimensions)) { dimensions = dimensions != null ? [dimensions] : []; } return dimensions; }; /** * Data in excludeDimensions is copied, otherwise transferred. */ cloneListForMapAndSample = function (original) { var list = new SeriesData(original._schema ? original._schema : map(original.dimensions, original._getDimInfo, original), original.hostModel); // FIXME If needs stackedOn, value may already been stacked transferProperties(list, original); return list; }; transferProperties = function (target, source) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](TRANSFERABLE_PROPERTIES.concat(source.__wrappedMethods || []), function (propName) { if (source.hasOwnProperty(propName)) { target[propName] = source[propName]; } }); target.__wrappedMethods = source.__wrappedMethods; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](CLONE_PROPERTIES, function (propName) { target[propName] = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"](source[propName]); }); target._calculationInfo = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, source._calculationInfo); }; makeIdFromName = function (data, idx) { var nameList = data._nameList; var idList = data._idList; var nameDimIdx = data._nameDimIdx; var idDimIdx = data._idDimIdx; var name = nameList[idx]; var id = idList[idx]; if (name == null && nameDimIdx != null) { nameList[idx] = name = getIdNameFromStore(data, nameDimIdx, idx); } if (id == null && idDimIdx != null) { idList[idx] = id = getIdNameFromStore(data, idDimIdx, idx); } if (id == null && name != null) { var nameRepeatCount = data._nameRepeatCount; var nmCnt = nameRepeatCount[name] = (nameRepeatCount[name] || 0) + 1; id = name; if (nmCnt > 1) { id += '__ec__' + nmCnt; } idList[idx] = id; } }; }(); return SeriesData; }(); /* harmony default export */ __webpack_exports__["default"] = (SeriesData); /***/ }), /***/ "./node_modules/echarts/lib/data/SeriesDimensionDefine.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/data/SeriesDimensionDefine.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SeriesDimensionDefine = /** @class */function () { /** * @param opt All of the fields will be shallow copied. */ function SeriesDimensionDefine(opt) { /** * The format of `otherDims` is: * ```js * { * tooltip?: number * label?: number * itemName?: number * seriesName?: number * } * ``` * * A `series.encode` can specified these fields: * ```js * encode: { * // "3, 1, 5" is the index of data dimension. * tooltip: [3, 1, 5], * label: [0, 3], * ... * } * ``` * `otherDims` is the parse result of the `series.encode` above, like: * ```js * // Suppose the index of this data dimension is `3`. * this.otherDims = { * // `3` is at the index `0` of the `encode.tooltip` * tooltip: 0, * // `3` is at the index `1` of the `encode.label` * label: 1 * }; * ``` * * This prop should never be `null`/`undefined` after initialized. */ this.otherDims = {}; if (opt != null) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"](this, opt); } } return SeriesDimensionDefine; }(); ; /* harmony default export */ __webpack_exports__["default"] = (SeriesDimensionDefine); /***/ }), /***/ "./node_modules/echarts/lib/data/Source.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/data/Source.js ***! \*************************************************/ /*! exports provided: isSourceInstance, createSource, createSourceFromSeriesDataOption, cloneSourceShallow, detectSourceFormat, shouldRetrieveDataByName */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSourceInstance", function() { return isSourceInstance; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSource", function() { return createSource; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSourceFromSeriesDataOption", function() { return createSourceFromSeriesDataOption; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneSourceShallow", function() { return cloneSourceShallow; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "detectSourceFormat", function() { return detectSourceFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shouldRetrieveDataByName", function() { return shouldRetrieveDataByName; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_types_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/types.js */ "./node_modules/echarts/lib/util/types.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helper/sourceHelper.js */ "./node_modules/echarts/lib/data/helper/sourceHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ; // @inner var SourceImpl = /** @class */function () { function SourceImpl(fields) { this.data = fields.data || (fields.sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_KEYED_COLUMNS"] ? {} : []); this.sourceFormat = fields.sourceFormat || _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_UNKNOWN"]; // Visit config this.seriesLayoutBy = fields.seriesLayoutBy || _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SERIES_LAYOUT_BY_COLUMN"]; this.startIndex = fields.startIndex || 0; this.dimensionsDetectedCount = fields.dimensionsDetectedCount; this.metaRawOption = fields.metaRawOption; var dimensionsDefine = this.dimensionsDefine = fields.dimensionsDefine; if (dimensionsDefine) { for (var i = 0; i < dimensionsDefine.length; i++) { var dim = dimensionsDefine[i]; if (dim.type == null) { if (Object(_helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_3__["guessOrdinal"])(this, i) === _helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_3__["BE_ORDINAL"].Must) { dim.type = 'ordinal'; } } } } } return SourceImpl; }(); function isSourceInstance(val) { return val instanceof SourceImpl; } /** * Create a source from option. * NOTE: Created source is immutable. Don't change any properties in it. */ function createSource(sourceData, thisMetaRawOption, // can be null. If not provided, auto detect it from `sourceData`. sourceFormat) { sourceFormat = sourceFormat || detectSourceFormat(sourceData); var seriesLayoutBy = thisMetaRawOption.seriesLayoutBy; var determined = determineSourceDimensions(sourceData, sourceFormat, seriesLayoutBy, thisMetaRawOption.sourceHeader, thisMetaRawOption.dimensions); var source = new SourceImpl({ data: sourceData, sourceFormat: sourceFormat, seriesLayoutBy: seriesLayoutBy, dimensionsDefine: determined.dimensionsDefine, startIndex: determined.startIndex, dimensionsDetectedCount: determined.dimensionsDetectedCount, metaRawOption: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"])(thisMetaRawOption) }); return source; } /** * Wrap original series data for some compatibility cases. */ function createSourceFromSeriesDataOption(data) { return new SourceImpl({ data: data, sourceFormat: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isTypedArray"])(data) ? _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_TYPED_ARRAY"] : _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_ORIGINAL"] }); } /** * Clone source but excludes source data. */ function cloneSourceShallow(source) { return new SourceImpl({ data: source.data, sourceFormat: source.sourceFormat, seriesLayoutBy: source.seriesLayoutBy, dimensionsDefine: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"])(source.dimensionsDefine), startIndex: source.startIndex, dimensionsDetectedCount: source.dimensionsDetectedCount }); } /** * Note: An empty array will be detected as `SOURCE_FORMAT_ARRAY_ROWS`. */ function detectSourceFormat(data) { var sourceFormat = _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_UNKNOWN"]; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isTypedArray"])(data)) { sourceFormat = _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_TYPED_ARRAY"]; } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(data)) { // FIXME Whether tolerate null in top level array? if (data.length === 0) { sourceFormat = _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_ARRAY_ROWS"]; } for (var i = 0, len = data.length; i < len; i++) { var item = data[i]; if (item == null) { continue; } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(item) || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isTypedArray"])(item)) { sourceFormat = _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_ARRAY_ROWS"]; break; } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(item)) { sourceFormat = _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_OBJECT_ROWS"]; break; } } } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(data)) { for (var key in data) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(data, key) && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArrayLike"])(data[key])) { sourceFormat = _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_KEYED_COLUMNS"]; break; } } } return sourceFormat; } /** * Determine the source definitions from data standalone dimensions definitions * are not specified. */ function determineSourceDimensions(data, sourceFormat, seriesLayoutBy, sourceHeader, // standalone raw dimensions definition, like: // { // dimensions: ['aa', 'bb', { name: 'cc', type: 'time' }] // } // in `dataset` or `series` dimensionsDefine) { var dimensionsDetectedCount; var startIndex; // PENDING: Could data be null/undefined here? // currently, if `dataset.source` not specified, error thrown. // if `series.data` not specified, nothing rendered without error thrown. // Should test these cases. if (!data) { return { dimensionsDefine: normalizeDimensionsOption(dimensionsDefine), startIndex: startIndex, dimensionsDetectedCount: dimensionsDetectedCount }; } if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_ARRAY_ROWS"]) { var dataArrayRows = data; // Rule: Most of the first line are string: it is header. // Caution: consider a line with 5 string and 1 number, // it still can not be sure it is a head, because the // 5 string may be 5 values of category columns. if (sourceHeader === 'auto' || sourceHeader == null) { arrayRowsTravelFirst(function (val) { // '-' is regarded as null/undefined. if (val != null && val !== '-') { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(val)) { startIndex == null && (startIndex = 1); } else { startIndex = 0; } } // 10 is an experience number, avoid long loop. }, seriesLayoutBy, dataArrayRows, 10); } else { startIndex = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isNumber"])(sourceHeader) ? sourceHeader : sourceHeader ? 1 : 0; } if (!dimensionsDefine && startIndex === 1) { dimensionsDefine = []; arrayRowsTravelFirst(function (val, index) { dimensionsDefine[index] = val != null ? val + '' : ''; }, seriesLayoutBy, dataArrayRows, Infinity); } dimensionsDetectedCount = dimensionsDefine ? dimensionsDefine.length : seriesLayoutBy === _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SERIES_LAYOUT_BY_ROW"] ? dataArrayRows.length : dataArrayRows[0] ? dataArrayRows[0].length : null; } else if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_OBJECT_ROWS"]) { if (!dimensionsDefine) { dimensionsDefine = objectRowsCollectDimensions(data); } } else if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_KEYED_COLUMNS"]) { if (!dimensionsDefine) { dimensionsDefine = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(data, function (colArr, key) { dimensionsDefine.push(key); }); } } else if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_ORIGINAL"]) { var value0 = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_2__["getDataItemValue"])(data[0]); dimensionsDetectedCount = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(value0) && value0.length || 1; } else if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_TYPED_ARRAY"]) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(!!dimensionsDefine, 'dimensions must be given if data is TypedArray.'); } } return { startIndex: startIndex, dimensionsDefine: normalizeDimensionsOption(dimensionsDefine), dimensionsDetectedCount: dimensionsDetectedCount }; } function objectRowsCollectDimensions(data) { var firstIndex = 0; var obj; while (firstIndex < data.length && !(obj = data[firstIndex++])) {} // jshint ignore: line if (obj) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["keys"])(obj); } } // Consider dimensions defined like ['A', 'price', 'B', 'price', 'C', 'price'], // which is reasonable. But dimension name is duplicated. // Returns undefined or an array contains only object without null/undefined or string. function normalizeDimensionsOption(dimensionsDefine) { if (!dimensionsDefine) { // The meaning of null/undefined is different from empty array. return; } var nameMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(dimensionsDefine, function (rawItem, index) { rawItem = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(rawItem) ? rawItem : { name: rawItem }; // Other fields will be discarded. var item = { name: rawItem.name, displayName: rawItem.displayName, type: rawItem.type }; // User can set null in dimensions. // We don't auto specify name, otherwise a given name may // cause it to be referred unexpectedly. if (item.name == null) { return item; } // Also consider number form like 2012. item.name += ''; // User may also specify displayName. // displayName will always exists except user not // specified or dim name is not specified or detected. // (A auto generated dim name will not be used as // displayName). if (item.displayName == null) { item.displayName = item.name; } var exist = nameMap.get(item.name); if (!exist) { nameMap.set(item.name, { count: 1 }); } else { item.name += '-' + exist.count++; } return item; }); } function arrayRowsTravelFirst(cb, seriesLayoutBy, data, maxLoop) { if (seriesLayoutBy === _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SERIES_LAYOUT_BY_ROW"]) { for (var i = 0; i < data.length && i < maxLoop; i++) { cb(data[i] ? data[i][0] : null, i); } } else { var value0 = data[0] || []; for (var i = 0; i < value0.length && i < maxLoop; i++) { cb(value0[i], i); } } } function shouldRetrieveDataByName(source) { var sourceFormat = source.sourceFormat; return sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_OBJECT_ROWS"] || sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_1__["SOURCE_FORMAT_KEYED_COLUMNS"]; } /***/ }), /***/ "./node_modules/echarts/lib/data/Tree.js": /*!***********************************************!*\ !*** ./node_modules/echarts/lib/data/Tree.js ***! \***********************************************/ /*! exports provided: TreeNode, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeNode", function() { return TreeNode; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _helper_linkSeriesData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helper/linkSeriesData.js */ "./node_modules/echarts/lib/data/helper/linkSeriesData.js"); /* harmony import */ var _SeriesData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SeriesData.js */ "./node_modules/echarts/lib/data/SeriesData.js"); /* harmony import */ var _helper_createDimensions_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helper/createDimensions.js */ "./node_modules/echarts/lib/data/helper/createDimensions.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Tree data structure */ var TreeNode = /** @class */function () { function TreeNode(name, hostTree) { this.depth = 0; this.height = 0; /** * Reference to list item. * Do not persistent dataIndex outside, * besause it may be changed by list. * If dataIndex -1, * this node is logical deleted (filtered) in list. */ this.dataIndex = -1; this.children = []; this.viewChildren = []; this.isExpand = false; this.name = name || ''; this.hostTree = hostTree; } /** * The node is removed. */ TreeNode.prototype.isRemoved = function () { return this.dataIndex < 0; }; TreeNode.prototype.eachNode = function (options, cb, context) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"](options)) { context = cb; cb = options; options = null; } options = options || {}; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](options)) { options = { order: options }; } var order = options.order || 'preorder'; var children = this[options.attr || 'children']; var suppressVisitSub; order === 'preorder' && (suppressVisitSub = cb.call(context, this)); for (var i = 0; !suppressVisitSub && i < children.length; i++) { children[i].eachNode(options, cb, context); } order === 'postorder' && cb.call(context, this); }; /** * Update depth and height of this subtree. */ TreeNode.prototype.updateDepthAndHeight = function (depth) { var height = 0; this.depth = depth; for (var i = 0; i < this.children.length; i++) { var child = this.children[i]; child.updateDepthAndHeight(depth + 1); if (child.height > height) { height = child.height; } } this.height = height + 1; }; TreeNode.prototype.getNodeById = function (id) { if (this.getId() === id) { return this; } for (var i = 0, children = this.children, len = children.length; i < len; i++) { var res = children[i].getNodeById(id); if (res) { return res; } } }; TreeNode.prototype.contains = function (node) { if (node === this) { return true; } for (var i = 0, children = this.children, len = children.length; i < len; i++) { var res = children[i].contains(node); if (res) { return res; } } }; /** * @param includeSelf Default false. * @return order: [root, child, grandchild, ...] */ TreeNode.prototype.getAncestors = function (includeSelf) { var ancestors = []; var node = includeSelf ? this : this.parentNode; while (node) { ancestors.push(node); node = node.parentNode; } ancestors.reverse(); return ancestors; }; TreeNode.prototype.getAncestorsIndices = function () { var indices = []; var currNode = this; while (currNode) { indices.push(currNode.dataIndex); currNode = currNode.parentNode; } indices.reverse(); return indices; }; TreeNode.prototype.getDescendantIndices = function () { var indices = []; this.eachNode(function (childNode) { indices.push(childNode.dataIndex); }); return indices; }; TreeNode.prototype.getValue = function (dimension) { var data = this.hostTree.data; return data.getStore().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex); }; TreeNode.prototype.setLayout = function (layout, merge) { this.dataIndex >= 0 && this.hostTree.data.setItemLayout(this.dataIndex, layout, merge); }; /** * @return {Object} layout */ TreeNode.prototype.getLayout = function () { return this.hostTree.data.getItemLayout(this.dataIndex); }; // @depcrecated // getModel(path: S): Model // eslint-disable-next-line @typescript-eslint/no-unused-vars TreeNode.prototype.getModel = function (path) { if (this.dataIndex < 0) { return; } var hostTree = this.hostTree; var itemModel = hostTree.data.getItemModel(this.dataIndex); return itemModel.getModel(path); }; // TODO: TYPE More specific model TreeNode.prototype.getLevelModel = function () { return (this.hostTree.levelModels || [])[this.depth]; }; TreeNode.prototype.setVisual = function (key, value) { this.dataIndex >= 0 && this.hostTree.data.setItemVisual(this.dataIndex, key, value); }; /** * Get item visual * FIXME: make return type better */ TreeNode.prototype.getVisual = function (key) { return this.hostTree.data.getItemVisual(this.dataIndex, key); }; TreeNode.prototype.getRawIndex = function () { return this.hostTree.data.getRawIndex(this.dataIndex); }; TreeNode.prototype.getId = function () { return this.hostTree.data.getId(this.dataIndex); }; /** * index in parent's children */ TreeNode.prototype.getChildIndex = function () { if (this.parentNode) { var children = this.parentNode.children; for (var i = 0; i < children.length; ++i) { if (children[i] === this) { return i; } } return -1; } return -1; }; /** * if this is an ancestor of another node * * @param node another node * @return if is ancestor */ TreeNode.prototype.isAncestorOf = function (node) { var parent = node.parentNode; while (parent) { if (parent === this) { return true; } parent = parent.parentNode; } return false; }; /** * if this is an descendant of another node * * @param node another node * @return if is descendant */ TreeNode.prototype.isDescendantOf = function (node) { return node !== this && node.isAncestorOf(this); }; return TreeNode; }(); ; var Tree = /** @class */function () { function Tree(hostModel) { this.type = 'tree'; this._nodes = []; this.hostModel = hostModel; } Tree.prototype.eachNode = function (options, cb, context) { this.root.eachNode(options, cb, context); }; Tree.prototype.getNodeByDataIndex = function (dataIndex) { var rawIndex = this.data.getRawIndex(dataIndex); return this._nodes[rawIndex]; }; Tree.prototype.getNodeById = function (name) { return this.root.getNodeById(name); }; /** * Update item available by list, * when list has been performed options like 'filterSelf' or 'map'. */ Tree.prototype.update = function () { var data = this.data; var nodes = this._nodes; for (var i = 0, len = nodes.length; i < len; i++) { nodes[i].dataIndex = -1; } for (var i = 0, len = data.count(); i < len; i++) { nodes[data.getRawIndex(i)].dataIndex = i; } }; /** * Clear all layouts */ Tree.prototype.clearLayouts = function () { this.data.clearItemLayouts(); }; /** * data node format: * { * name: ... * value: ... * children: [ * { * name: ... * value: ... * children: ... * }, * ... * ] * } */ Tree.createTree = function (dataRoot, hostModel, beforeLink) { var tree = new Tree(hostModel); var listData = []; var dimMax = 1; buildHierarchy(dataRoot); function buildHierarchy(dataNode, parentNode) { var value = dataNode.value; dimMax = Math.max(dimMax, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](value) ? value.length : 1); listData.push(dataNode); var node = new TreeNode(Object(_util_model_js__WEBPACK_IMPORTED_MODULE_4__["convertOptionIdName"])(dataNode.name, ''), tree); parentNode ? addChild(node, parentNode) : tree.root = node; tree._nodes.push(node); var children = dataNode.children; if (children) { for (var i = 0; i < children.length; i++) { buildHierarchy(children[i], node); } } } tree.root.updateDepthAndHeight(0); var dimensions = Object(_helper_createDimensions_js__WEBPACK_IMPORTED_MODULE_3__["default"])(listData, { coordDimensions: ['value'], dimensionsCount: dimMax }).dimensions; var list = new _SeriesData_js__WEBPACK_IMPORTED_MODULE_2__["default"](dimensions, hostModel); list.initData(listData); beforeLink && beforeLink(list); Object(_helper_linkSeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ mainData: list, struct: tree, structAttr: 'tree' }); tree.update(); return tree; }; return Tree; }(); /** * It is needed to consider the mess of 'list', 'hostModel' when creating a TreeNote, * so this function is not ready and not necessary to be public. */ function addChild(child, node) { var children = node.children; if (child.parentNode === node) { return; } children.push(child); child.parentNode = node; } /* harmony default export */ __webpack_exports__["default"] = (Tree); /***/ }), /***/ "./node_modules/echarts/lib/data/helper/SeriesDataSchema.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/data/helper/SeriesDataSchema.js ***! \******************************************************************/ /*! exports provided: SeriesDataSchema, isSeriesDataSchema, createDimNameMap, ensureSourceDimNameMap, shouldOmitUnusedDimensions */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SeriesDataSchema", function() { return SeriesDataSchema; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSeriesDataSchema", function() { return isSeriesDataSchema; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createDimNameMap", function() { return createDimNameMap; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ensureSourceDimNameMap", function() { return ensureSourceDimNameMap; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shouldOmitUnusedDimensions", function() { return shouldOmitUnusedDimensions; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _Source_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Source.js */ "./node_modules/echarts/lib/data/Source.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_1__["makeInner"])(); var dimTypeShort = { float: 'f', int: 'i', ordinal: 'o', number: 'n', time: 't' }; /** * Represents the dimension requirement of a series. * * NOTICE: * When there are too many dimensions in dataset and many series, only the used dimensions * (i.e., used by coord sys and declared in `series.encode`) are add to `dimensionDefineList`. * But users may query data by other unused dimension names. * In this case, users can only query data if and only if they have defined dimension names * via ec option, so we provide `getDimensionIndexFromSource`, which only query them from * `source` dimensions. */ var SeriesDataSchema = /** @class */function () { function SeriesDataSchema(opt) { this.dimensions = opt.dimensions; this._dimOmitted = opt.dimensionOmitted; this.source = opt.source; this._fullDimCount = opt.fullDimensionCount; this._updateDimOmitted(opt.dimensionOmitted); } SeriesDataSchema.prototype.isDimensionOmitted = function () { return this._dimOmitted; }; SeriesDataSchema.prototype._updateDimOmitted = function (dimensionOmitted) { this._dimOmitted = dimensionOmitted; if (!dimensionOmitted) { return; } if (!this._dimNameMap) { this._dimNameMap = ensureSourceDimNameMap(this.source); } }; /** * @caution Can only be used when `dimensionOmitted: true`. * * Get index by user defined dimension name (i.e., not internal generate name). * That is, get index from `dimensionsDefine`. * If no `dimensionsDefine`, or no name get, return -1. */ SeriesDataSchema.prototype.getSourceDimensionIndex = function (dimName) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(this._dimNameMap.get(dimName), -1); }; /** * @caution Can only be used when `dimensionOmitted: true`. * * Notice: may return `null`/`undefined` if user not specify dimension names. */ SeriesDataSchema.prototype.getSourceDimension = function (dimIndex) { var dimensionsDefine = this.source.dimensionsDefine; if (dimensionsDefine) { return dimensionsDefine[dimIndex]; } }; SeriesDataSchema.prototype.makeStoreSchema = function () { var dimCount = this._fullDimCount; var willRetrieveDataByName = Object(_Source_js__WEBPACK_IMPORTED_MODULE_2__["shouldRetrieveDataByName"])(this.source); var makeHashStrict = !shouldOmitUnusedDimensions(dimCount); // If source don't have dimensions or series don't omit unsed dimensions. // Generate from seriesDimList directly var dimHash = ''; var dims = []; for (var fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < dimCount; fullDimIdx++) { var property = void 0; var type = void 0; var ordinalMeta = void 0; var seriesDimDef = this.dimensions[seriesDimIdx]; // The list has been sorted by `storeDimIndex` asc. if (seriesDimDef && seriesDimDef.storeDimIndex === fullDimIdx) { property = willRetrieveDataByName ? seriesDimDef.name : null; type = seriesDimDef.type; ordinalMeta = seriesDimDef.ordinalMeta; seriesDimIdx++; } else { var sourceDimDef = this.getSourceDimension(fullDimIdx); if (sourceDimDef) { property = willRetrieveDataByName ? sourceDimDef.name : null; type = sourceDimDef.type; } } dims.push({ property: property, type: type, ordinalMeta: ordinalMeta }); // If retrieving data by index, // use to determine whether data can be shared. // (Because in this case there might be no dimension name defined in dataset, but indices always exists). // (Indices are always 0, 1, 2, ..., so we can ignore them to shorten the hash). // Otherwise if retrieving data by property name (like `data: [{aa: 123, bb: 765}, ...]`), // use in hash. if (willRetrieveDataByName && property != null // For data stack, we have make sure each series has its own dim on this store. // So we do not add property to hash to make sure they can share this store. && (!seriesDimDef || !seriesDimDef.isCalculationCoord)) { dimHash += makeHashStrict // Use escape character '`' in case that property name contains '$'. ? property.replace(/\`/g, '`1').replace(/\$/g, '`2') // For better performance, when there are large dimensions, tolerant this defects that hardly meet. : property; } dimHash += '$'; dimHash += dimTypeShort[type] || 'f'; if (ordinalMeta) { dimHash += ordinalMeta.uid; } dimHash += '$'; } // Source from endpoint(usually series) will be read differently // when seriesLayoutBy or startIndex(which is affected by sourceHeader) are different. // So we use this three props as key. var source = this.source; var hash = [source.seriesLayoutBy, source.startIndex, dimHash].join('$$'); return { dimensions: dims, hash: hash }; }; SeriesDataSchema.prototype.makeOutputDimensionNames = function () { var result = []; for (var fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < this._fullDimCount; fullDimIdx++) { var name_1 = void 0; var seriesDimDef = this.dimensions[seriesDimIdx]; // The list has been sorted by `storeDimIndex` asc. if (seriesDimDef && seriesDimDef.storeDimIndex === fullDimIdx) { if (!seriesDimDef.isCalculationCoord) { name_1 = seriesDimDef.name; } seriesDimIdx++; } else { var sourceDimDef = this.getSourceDimension(fullDimIdx); if (sourceDimDef) { name_1 = sourceDimDef.name; } } result.push(name_1); } return result; }; SeriesDataSchema.prototype.appendCalculationDimension = function (dimDef) { this.dimensions.push(dimDef); dimDef.isCalculationCoord = true; this._fullDimCount++; // If append dimension on a data store, consider the store // might be shared by different series, series dimensions not // really map to store dimensions. this._updateDimOmitted(true); }; return SeriesDataSchema; }(); function isSeriesDataSchema(schema) { return schema instanceof SeriesDataSchema; } function createDimNameMap(dimsDef) { var dataDimNameMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); for (var i = 0; i < (dimsDef || []).length; i++) { var dimDefItemRaw = dimsDef[i]; var userDimName = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(dimDefItemRaw) ? dimDefItemRaw.name : dimDefItemRaw; if (userDimName != null && dataDimNameMap.get(userDimName) == null) { dataDimNameMap.set(userDimName, i); } } return dataDimNameMap; } function ensureSourceDimNameMap(source) { var innerSource = inner(source); return innerSource.dimNameMap || (innerSource.dimNameMap = createDimNameMap(source.dimensionsDefine)); } function shouldOmitUnusedDimensions(dimCount) { return dimCount > 30; } /***/ }), /***/ "./node_modules/echarts/lib/data/helper/createDimensions.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/data/helper/createDimensions.js ***! \******************************************************************/ /*! exports provided: createDimensions, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createDimensions", function() { return createDimensions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return prepareSeriesDataSchema; }); /* harmony import */ var _util_types_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/types.js */ "./node_modules/echarts/lib/util/types.js"); /* harmony import */ var _SeriesDimensionDefine_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../SeriesDimensionDefine.js */ "./node_modules/echarts/lib/data/SeriesDimensionDefine.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _Source_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Source.js */ "./node_modules/echarts/lib/data/Source.js"); /* harmony import */ var _DataStore_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../DataStore.js */ "./node_modules/echarts/lib/data/DataStore.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _sourceHelper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./sourceHelper.js */ "./node_modules/echarts/lib/data/helper/sourceHelper.js"); /* harmony import */ var _SeriesDataSchema_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SeriesDataSchema.js */ "./node_modules/echarts/lib/data/helper/SeriesDataSchema.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * For outside usage compat (like echarts-gl are using it). */ function createDimensions(source, opt) { return prepareSeriesDataSchema(source, opt).dimensions; } /** * This method builds the relationship between: * + "what the coord sys or series requires (see `coordDimensions`)", * + "what the user defines (in `encode` and `dimensions`, see `opt.dimensionsDefine` and `opt.encodeDefine`)" * + "what the data source provids (see `source`)". * * Some guess strategy will be adapted if user does not define something. * If no 'value' dimension specified, the first no-named dimension will be * named as 'value'. * * @return The results are always sorted by `storeDimIndex` asc. */ function prepareSeriesDataSchema( // TODO: TYPE completeDimensions type source, opt) { if (!Object(_Source_js__WEBPACK_IMPORTED_MODULE_3__["isSourceInstance"])(source)) { source = Object(_Source_js__WEBPACK_IMPORTED_MODULE_3__["createSourceFromSeriesDataOption"])(source); } opt = opt || {}; var sysDims = opt.coordDimensions || []; var dimsDef = opt.dimensionsDefine || source.dimensionsDefine || []; var coordDimNameMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["createHashMap"])(); var resultList = []; var dimCount = getDimCount(source, sysDims, dimsDef, opt.dimensionsCount); // Try to ignore unused dimensions if sharing a high dimension datastore // 30 is an experience value. var omitUnusedDimensions = opt.canOmitUnusedDimensions && Object(_SeriesDataSchema_js__WEBPACK_IMPORTED_MODULE_7__["shouldOmitUnusedDimensions"])(dimCount); var isUsingSourceDimensionsDef = dimsDef === source.dimensionsDefine; var dataDimNameMap = isUsingSourceDimensionsDef ? Object(_SeriesDataSchema_js__WEBPACK_IMPORTED_MODULE_7__["ensureSourceDimNameMap"])(source) : Object(_SeriesDataSchema_js__WEBPACK_IMPORTED_MODULE_7__["createDimNameMap"])(dimsDef); var encodeDef = opt.encodeDefine; if (!encodeDef && opt.encodeDefaulter) { encodeDef = opt.encodeDefaulter(source, dimCount); } var encodeDefMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["createHashMap"])(encodeDef); var indicesMap = new _DataStore_js__WEBPACK_IMPORTED_MODULE_4__["CtorInt32Array"](dimCount); for (var i = 0; i < indicesMap.length; i++) { indicesMap[i] = -1; } function getResultItem(dimIdx) { var idx = indicesMap[dimIdx]; if (idx < 0) { var dimDefItemRaw = dimsDef[dimIdx]; var dimDefItem = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isObject"])(dimDefItemRaw) ? dimDefItemRaw : { name: dimDefItemRaw }; var resultItem = new _SeriesDimensionDefine_js__WEBPACK_IMPORTED_MODULE_1__["default"](); var userDimName = dimDefItem.name; if (userDimName != null && dataDimNameMap.get(userDimName) != null) { // Only if `series.dimensions` is defined in option // displayName, will be set, and dimension will be displayed vertically in // tooltip by default. resultItem.name = resultItem.displayName = userDimName; } dimDefItem.type != null && (resultItem.type = dimDefItem.type); dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName); var newIdx = resultList.length; indicesMap[dimIdx] = newIdx; resultItem.storeDimIndex = dimIdx; resultList.push(resultItem); return resultItem; } return resultList[idx]; } if (!omitUnusedDimensions) { for (var i = 0; i < dimCount; i++) { getResultItem(i); } } // Set `coordDim` and `coordDimIndex` by `encodeDefMap` and normalize `encodeDefMap`. encodeDefMap.each(function (dataDimsRaw, coordDim) { var dataDims = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_5__["normalizeToArray"])(dataDimsRaw).slice(); // Note: It is allowed that `dataDims.length` is `0`, e.g., options is // `{encode: {x: -1, y: 1}}`. Should not filter anything in // this case. if (dataDims.length === 1 && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isString"])(dataDims[0]) && dataDims[0] < 0) { encodeDefMap.set(coordDim, false); return; } var validDataDims = encodeDefMap.set(coordDim, []); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(dataDims, function (resultDimIdxOrName, idx) { // The input resultDimIdx can be dim name or index. var resultDimIdx = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isString"])(resultDimIdxOrName) ? dataDimNameMap.get(resultDimIdxOrName) : resultDimIdxOrName; if (resultDimIdx != null && resultDimIdx < dimCount) { validDataDims[idx] = resultDimIdx; applyDim(getResultItem(resultDimIdx), coordDim, idx); } }); }); // Apply templates and default order from `sysDims`. var availDimIdx = 0; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(sysDims, function (sysDimItemRaw) { var coordDim; var sysDimItemDimsDef; var sysDimItemOtherDims; var sysDimItem; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isString"])(sysDimItemRaw)) { coordDim = sysDimItemRaw; sysDimItem = {}; } else { sysDimItem = sysDimItemRaw; coordDim = sysDimItem.name; var ordinalMeta = sysDimItem.ordinalMeta; sysDimItem.ordinalMeta = null; sysDimItem = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["extend"])({}, sysDimItem); sysDimItem.ordinalMeta = ordinalMeta; // `coordDimIndex` should not be set directly. sysDimItemDimsDef = sysDimItem.dimsDef; sysDimItemOtherDims = sysDimItem.otherDims; sysDimItem.name = sysDimItem.coordDim = sysDimItem.coordDimIndex = sysDimItem.dimsDef = sysDimItem.otherDims = null; } var dataDims = encodeDefMap.get(coordDim); // negative resultDimIdx means no need to mapping. if (dataDims === false) { return; } dataDims = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_5__["normalizeToArray"])(dataDims); // dimensions provides default dim sequences. if (!dataDims.length) { for (var i = 0; i < (sysDimItemDimsDef && sysDimItemDimsDef.length || 1); i++) { while (availDimIdx < dimCount && getResultItem(availDimIdx).coordDim != null) { availDimIdx++; } availDimIdx < dimCount && dataDims.push(availDimIdx++); } } // Apply templates. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(dataDims, function (resultDimIdx, coordDimIndex) { var resultItem = getResultItem(resultDimIdx); // Coordinate system has a higher priority on dim type than source. if (isUsingSourceDimensionsDef && sysDimItem.type != null) { resultItem.type = sysDimItem.type; } applyDim(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["defaults"])(resultItem, sysDimItem), coordDim, coordDimIndex); if (resultItem.name == null && sysDimItemDimsDef) { var sysDimItemDimsDefItem = sysDimItemDimsDef[coordDimIndex]; !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isObject"])(sysDimItemDimsDefItem) && (sysDimItemDimsDefItem = { name: sysDimItemDimsDefItem }); resultItem.name = resultItem.displayName = sysDimItemDimsDefItem.name; resultItem.defaultTooltip = sysDimItemDimsDefItem.defaultTooltip; } // FIXME refactor, currently only used in case: {otherDims: {tooltip: false}} sysDimItemOtherDims && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["defaults"])(resultItem.otherDims, sysDimItemOtherDims); }); }); function applyDim(resultItem, coordDim, coordDimIndex) { if (_util_types_js__WEBPACK_IMPORTED_MODULE_0__["VISUAL_DIMENSIONS"].get(coordDim) != null) { resultItem.otherDims[coordDim] = coordDimIndex; } else { resultItem.coordDim = coordDim; resultItem.coordDimIndex = coordDimIndex; coordDimNameMap.set(coordDim, true); } } // Make sure the first extra dim is 'value'. var generateCoord = opt.generateCoord; var generateCoordCount = opt.generateCoordCount; var fromZero = generateCoordCount != null; generateCoordCount = generateCoord ? generateCoordCount || 1 : 0; var extra = generateCoord || 'value'; function ifNoNameFillWithCoordName(resultItem) { if (resultItem.name == null) { // Duplication will be removed in the next step. resultItem.name = resultItem.coordDim; } } // Set dim `name` and other `coordDim` and other props. if (!omitUnusedDimensions) { for (var resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) { var resultItem = getResultItem(resultDimIdx); var coordDim = resultItem.coordDim; if (coordDim == null) { // TODO no need to generate coordDim for isExtraCoord? resultItem.coordDim = genCoordDimName(extra, coordDimNameMap, fromZero); resultItem.coordDimIndex = 0; // Series specified generateCoord is using out. if (!generateCoord || generateCoordCount <= 0) { resultItem.isExtraCoord = true; } generateCoordCount--; } ifNoNameFillWithCoordName(resultItem); if (resultItem.type == null && (Object(_sourceHelper_js__WEBPACK_IMPORTED_MODULE_6__["guessOrdinal"])(source, resultDimIdx) === _sourceHelper_js__WEBPACK_IMPORTED_MODULE_6__["BE_ORDINAL"].Must // Consider the case: // { // dataset: {source: [ // ['2001', 123], // ['2002', 456], // ... // ['The others', 987], // ]}, // series: {type: 'pie'} // } // The first column should better be treated as a "ordinal" although it // might not be detected as an "ordinal" by `guessOrdinal`. || resultItem.isExtraCoord && (resultItem.otherDims.itemName != null || resultItem.otherDims.seriesName != null))) { resultItem.type = 'ordinal'; } } } else { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(resultList, function (resultItem) { // PENDING: guessOrdinal or let user specify type: 'ordinal' manually? ifNoNameFillWithCoordName(resultItem); }); // Sort dimensions: there are some rule that use the last dim as label, // and for some latter travel process easier. resultList.sort(function (item0, item1) { return item0.storeDimIndex - item1.storeDimIndex; }); } removeDuplication(resultList); return new _SeriesDataSchema_js__WEBPACK_IMPORTED_MODULE_7__["SeriesDataSchema"]({ source: source, dimensions: resultList, fullDimensionCount: dimCount, dimensionOmitted: omitUnusedDimensions }); } function removeDuplication(result) { var duplicationMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["createHashMap"])(); for (var i = 0; i < result.length; i++) { var dim = result[i]; var dimOriginalName = dim.name; var count = duplicationMap.get(dimOriginalName) || 0; if (count > 0) { // Starts from 0. dim.name = dimOriginalName + (count - 1); } count++; duplicationMap.set(dimOriginalName, count); } } // ??? TODO // Originally detect dimCount by data[0]. Should we // optimize it to only by sysDims and dimensions and encode. // So only necessary dims will be initialized. // But // (1) custom series should be considered. where other dims // may be visited. // (2) sometimes user need to calculate bubble size or use visualMap // on other dimensions besides coordSys needed. // So, dims that is not used by system, should be shared in data store? function getDimCount(source, sysDims, dimsDef, optDimCount) { // Note that the result dimCount should not small than columns count // of data, otherwise `dataDimNameMap` checking will be incorrect. var dimCount = Math.max(source.dimensionsDetectedCount || 1, sysDims.length, dimsDef.length, optDimCount || 0); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(sysDims, function (sysDimItem) { var sysDimItemDimsDef; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isObject"])(sysDimItem) && (sysDimItemDimsDef = sysDimItem.dimsDef)) { dimCount = Math.max(dimCount, sysDimItemDimsDef.length); } }); return dimCount; } function genCoordDimName(name, map, fromZero) { if (fromZero || map.hasKey(name)) { var i = 0; while (map.hasKey(name + i)) { i++; } name += i; } map.set(name, true); return name; } /***/ }), /***/ "./node_modules/echarts/lib/data/helper/dataProvider.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/data/helper/dataProvider.js ***! \**************************************************************/ /*! exports provided: DefaultDataProvider, getRawSourceItemGetter, getRawSourceDataCounter, getRawSourceValueGetter, retrieveRawValue, retrieveRawAttr */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultDataProvider", function() { return DefaultDataProvider; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRawSourceItemGetter", function() { return getRawSourceItemGetter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRawSourceDataCounter", function() { return getRawSourceDataCounter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRawSourceValueGetter", function() { return getRawSourceValueGetter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retrieveRawValue", function() { return retrieveRawValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retrieveRawAttr", function() { return retrieveRawAttr; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _Source_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Source.js */ "./node_modules/echarts/lib/data/Source.js"); /* harmony import */ var _util_types_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/types.js */ "./node_modules/echarts/lib/util/types.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var _a, _b, _c; // TODO // ??? refactor? check the outer usage of data provider. // merge with defaultDimValueGetter? var providerMethods; var mountMethods; /** * If normal array used, mutable chunk size is supported. * If typed array used, chunk size must be fixed. */ var DefaultDataProvider = /** @class */function () { function DefaultDataProvider(sourceParam, dimSize) { // let source: Source; var source = !Object(_Source_js__WEBPACK_IMPORTED_MODULE_2__["isSourceInstance"])(sourceParam) ? Object(_Source_js__WEBPACK_IMPORTED_MODULE_2__["createSourceFromSeriesDataOption"])(sourceParam) : sourceParam; // declare source is Source; this._source = source; var data = this._data = source.data; // Typed array. TODO IE10+? if (source.sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_TYPED_ARRAY"]) { if (true) { if (dimSize == null) { throw new Error('Typed array data must specify dimension size'); } } this._offset = 0; this._dimSize = dimSize; this._data = data; } mountMethods(this, data, source); } DefaultDataProvider.prototype.getSource = function () { return this._source; }; DefaultDataProvider.prototype.count = function () { return 0; }; DefaultDataProvider.prototype.getItem = function (idx, out) { return; }; DefaultDataProvider.prototype.appendData = function (newData) {}; DefaultDataProvider.prototype.clean = function () {}; DefaultDataProvider.protoInitialize = function () { // PENDING: To avoid potential incompat (e.g., prototype // is visited somewhere), still init them on prototype. var proto = DefaultDataProvider.prototype; proto.pure = false; proto.persistent = true; }(); DefaultDataProvider.internalField = function () { var _a; mountMethods = function (provider, data, source) { var sourceFormat = source.sourceFormat; var seriesLayoutBy = source.seriesLayoutBy; var startIndex = source.startIndex; var dimsDef = source.dimensionsDefine; var methods = providerMethods[getMethodMapKey(sourceFormat, seriesLayoutBy)]; if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(methods, 'Invalide sourceFormat: ' + sourceFormat); } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(provider, methods); if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_TYPED_ARRAY"]) { provider.getItem = getItemForTypedArray; provider.count = countForTypedArray; provider.fillStorage = fillStorageForTypedArray; } else { var rawItemGetter = getRawSourceItemGetter(sourceFormat, seriesLayoutBy); provider.getItem = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"])(rawItemGetter, null, data, startIndex, dimsDef); var rawCounter = getRawSourceDataCounter(sourceFormat, seriesLayoutBy); provider.count = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"])(rawCounter, null, data, startIndex, dimsDef); } }; var getItemForTypedArray = function (idx, out) { idx = idx - this._offset; out = out || []; var data = this._data; var dimSize = this._dimSize; var offset = dimSize * idx; for (var i = 0; i < dimSize; i++) { out[i] = data[offset + i]; } return out; }; var fillStorageForTypedArray = function (start, end, storage, extent) { var data = this._data; var dimSize = this._dimSize; for (var dim = 0; dim < dimSize; dim++) { var dimExtent = extent[dim]; var min = dimExtent[0] == null ? Infinity : dimExtent[0]; var max = dimExtent[1] == null ? -Infinity : dimExtent[1]; var count = end - start; var arr = storage[dim]; for (var i = 0; i < count; i++) { // appendData with TypedArray will always do replace in provider. var val = data[i * dimSize + dim]; arr[start + i] = val; val < min && (min = val); val > max && (max = val); } dimExtent[0] = min; dimExtent[1] = max; } }; var countForTypedArray = function () { return this._data ? this._data.length / this._dimSize : 0; }; providerMethods = (_a = {}, _a[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ARRAY_ROWS"] + '_' + _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SERIES_LAYOUT_BY_COLUMN"]] = { pure: true, appendData: appendDataSimply }, _a[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ARRAY_ROWS"] + '_' + _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SERIES_LAYOUT_BY_ROW"]] = { pure: true, appendData: function () { throw new Error('Do not support appendData when set seriesLayoutBy: "row".'); } }, _a[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_OBJECT_ROWS"]] = { pure: true, appendData: appendDataSimply }, _a[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_KEYED_COLUMNS"]] = { pure: true, appendData: function (newData) { var data = this._data; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(newData, function (newCol, key) { var oldCol = data[key] || (data[key] = []); for (var i = 0; i < (newCol || []).length; i++) { oldCol.push(newCol[i]); } }); } }, _a[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ORIGINAL"]] = { appendData: appendDataSimply }, _a[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_TYPED_ARRAY"]] = { persistent: false, pure: true, appendData: function (newData) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isTypedArray"])(newData), 'Added data must be TypedArray if data in initialization is TypedArray'); } this._data = newData; }, // Clean self if data is already used. clean: function () { // PENDING this._offset += this.count(); this._data = null; } }, _a); function appendDataSimply(newData) { for (var i = 0; i < newData.length; i++) { this._data.push(newData[i]); } } }(); return DefaultDataProvider; }(); var getItemSimply = function (rawData, startIndex, dimsDef, idx) { return rawData[idx]; }; var rawSourceItemGetterMap = (_a = {}, _a[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ARRAY_ROWS"] + '_' + _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SERIES_LAYOUT_BY_COLUMN"]] = function (rawData, startIndex, dimsDef, idx) { return rawData[idx + startIndex]; }, _a[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ARRAY_ROWS"] + '_' + _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SERIES_LAYOUT_BY_ROW"]] = function (rawData, startIndex, dimsDef, idx, out) { idx += startIndex; var item = out || []; var data = rawData; for (var i = 0; i < data.length; i++) { var row = data[i]; item[i] = row ? row[idx] : null; } return item; }, _a[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_OBJECT_ROWS"]] = getItemSimply, _a[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_KEYED_COLUMNS"]] = function (rawData, startIndex, dimsDef, idx, out) { var item = out || []; for (var i = 0; i < dimsDef.length; i++) { var dimName = dimsDef[i].name; if (true) { if (dimName == null) { throw new Error(); } } var col = rawData[dimName]; item[i] = col ? col[idx] : null; } return item; }, _a[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ORIGINAL"]] = getItemSimply, _a); function getRawSourceItemGetter(sourceFormat, seriesLayoutBy) { var method = rawSourceItemGetterMap[getMethodMapKey(sourceFormat, seriesLayoutBy)]; if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(method, 'Do not support get item on "' + sourceFormat + '", "' + seriesLayoutBy + '".'); } return method; } var countSimply = function (rawData, startIndex, dimsDef) { return rawData.length; }; var rawSourceDataCounterMap = (_b = {}, _b[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ARRAY_ROWS"] + '_' + _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SERIES_LAYOUT_BY_COLUMN"]] = function (rawData, startIndex, dimsDef) { return Math.max(0, rawData.length - startIndex); }, _b[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ARRAY_ROWS"] + '_' + _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SERIES_LAYOUT_BY_ROW"]] = function (rawData, startIndex, dimsDef) { var row = rawData[0]; return row ? Math.max(0, row.length - startIndex) : 0; }, _b[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_OBJECT_ROWS"]] = countSimply, _b[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_KEYED_COLUMNS"]] = function (rawData, startIndex, dimsDef) { var dimName = dimsDef[0].name; if (true) { if (dimName == null) { throw new Error(); } } var col = rawData[dimName]; return col ? col.length : 0; }, _b[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ORIGINAL"]] = countSimply, _b); function getRawSourceDataCounter(sourceFormat, seriesLayoutBy) { var method = rawSourceDataCounterMap[getMethodMapKey(sourceFormat, seriesLayoutBy)]; if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(method, 'Do not support count on "' + sourceFormat + '", "' + seriesLayoutBy + '".'); } return method; } var getRawValueSimply = function (dataItem, dimIndex, property) { return dataItem[dimIndex]; }; var rawSourceValueGetterMap = (_c = {}, _c[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ARRAY_ROWS"]] = getRawValueSimply, _c[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_OBJECT_ROWS"]] = function (dataItem, dimIndex, property) { return dataItem[property]; }, _c[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_KEYED_COLUMNS"]] = getRawValueSimply, _c[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ORIGINAL"]] = function (dataItem, dimIndex, property) { // FIXME: In some case (markpoint in geo (geo-map.html)), // dataItem is {coord: [...]} var value = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_1__["getDataItemValue"])(dataItem); return !(value instanceof Array) ? value : value[dimIndex]; }, _c[_util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_TYPED_ARRAY"]] = getRawValueSimply, _c); function getRawSourceValueGetter(sourceFormat) { var method = rawSourceValueGetterMap[sourceFormat]; if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(method, 'Do not support get value on "' + sourceFormat + '".'); } return method; } function getMethodMapKey(sourceFormat, seriesLayoutBy) { return sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ARRAY_ROWS"] ? sourceFormat + '_' + seriesLayoutBy : sourceFormat; } // ??? FIXME can these logic be more neat: getRawValue, getRawDataItem, // Consider persistent. // Caution: why use raw value to display on label or tooltip? // A reason is to avoid format. For example time value we do not know // how to format is expected. More over, if stack is used, calculated // value may be 0.91000000001, which have brings trouble to display. // TODO: consider how to treat null/undefined/NaN when display? function retrieveRawValue(data, dataIndex, // If dimIndex is null/undefined, return OptionDataItem. // Otherwise, return OptionDataValue. dim) { if (!data) { return; } // Consider data may be not persistent. var dataItem = data.getRawDataItem(dataIndex); if (dataItem == null) { return; } var store = data.getStore(); var sourceFormat = store.getSource().sourceFormat; if (dim != null) { var dimIndex = data.getDimensionIndex(dim); var property = store.getDimensionProperty(dimIndex); return getRawSourceValueGetter(sourceFormat)(dataItem, dimIndex, property); } else { var result = dataItem; if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ORIGINAL"]) { result = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_1__["getDataItemValue"])(dataItem); } return result; } } /** * Compatible with some cases (in pie, map) like: * data: [{name: 'xx', value: 5, selected: true}, ...] * where only sourceFormat is 'original' and 'objectRows' supported. * * // TODO * Supported detail options in data item when using 'arrayRows'. * * @param data * @param dataIndex * @param attr like 'selected' */ function retrieveRawAttr(data, dataIndex, attr) { if (!data) { return; } var sourceFormat = data.getStore().getSource().sourceFormat; if (sourceFormat !== _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ORIGINAL"] && sourceFormat !== _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_OBJECT_ROWS"]) { return; } var dataItem = data.getRawDataItem(dataIndex); if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_3__["SOURCE_FORMAT_ORIGINAL"] && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(dataItem)) { dataItem = null; } if (dataItem) { return dataItem[attr]; } } /***/ }), /***/ "./node_modules/echarts/lib/data/helper/dataStackHelper.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/data/helper/dataStackHelper.js ***! \*****************************************************************/ /*! exports provided: enableDataStack, isDimensionStacked, getStackedDimension */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableDataStack", function() { return enableDataStack; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDimensionStacked", function() { return isDimensionStacked; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStackedDimension", function() { return getStackedDimension; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _SeriesDataSchema_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SeriesDataSchema.js */ "./node_modules/echarts/lib/data/helper/SeriesDataSchema.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Note that it is too complicated to support 3d stack by value * (have to create two-dimension inverted index), so in 3d case * we just support that stacked by index. * * @param seriesModel * @param dimensionsInput The same as the input of . * The input will be modified. * @param opt * @param opt.stackedCoordDimension Specify a coord dimension if needed. * @param opt.byIndex=false * @return calculationInfo * { * stackedDimension: string * stackedByDimension: string * isStackedByIndex: boolean * stackedOverDimension: string * stackResultDimension: string * } */ function enableDataStack(seriesModel, dimensionsInput, opt) { opt = opt || {}; var byIndex = opt.byIndex; var stackedCoordDimension = opt.stackedCoordDimension; var dimensionDefineList; var schema; var store; if (isLegacyDimensionsInput(dimensionsInput)) { dimensionDefineList = dimensionsInput; } else { schema = dimensionsInput.schema; dimensionDefineList = schema.dimensions; store = dimensionsInput.store; } // Compatibal: when `stack` is set as '', do not stack. var mayStack = !!(seriesModel && seriesModel.get('stack')); var stackedByDimInfo; var stackedDimInfo; var stackResultDimension; var stackedOverDimension; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(dimensionDefineList, function (dimensionInfo, index) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(dimensionInfo)) { dimensionDefineList[index] = dimensionInfo = { name: dimensionInfo }; } if (mayStack && !dimensionInfo.isExtraCoord) { // Find the first ordinal dimension as the stackedByDimInfo. if (!byIndex && !stackedByDimInfo && dimensionInfo.ordinalMeta) { stackedByDimInfo = dimensionInfo; } // Find the first stackable dimension as the stackedDimInfo. if (!stackedDimInfo && dimensionInfo.type !== 'ordinal' && dimensionInfo.type !== 'time' && (!stackedCoordDimension || stackedCoordDimension === dimensionInfo.coordDim)) { stackedDimInfo = dimensionInfo; } } }); if (stackedDimInfo && !byIndex && !stackedByDimInfo) { // Compatible with previous design, value axis (time axis) only stack by index. // It may make sense if the user provides elaborately constructed data. byIndex = true; } // Add stack dimension, they can be both calculated by coordinate system in `unionExtent`. // That put stack logic in List is for using conveniently in echarts extensions, but it // might not be a good way. if (stackedDimInfo) { // Use a weird name that not duplicated with other names. // Also need to use seriesModel.id as postfix because different // series may share same data store. The stack dimension needs to be distinguished. stackResultDimension = '__\0ecstackresult_' + seriesModel.id; stackedOverDimension = '__\0ecstackedover_' + seriesModel.id; // Create inverted index to fast query index by value. if (stackedByDimInfo) { stackedByDimInfo.createInvertedIndices = true; } var stackedDimCoordDim_1 = stackedDimInfo.coordDim; var stackedDimType = stackedDimInfo.type; var stackedDimCoordIndex_1 = 0; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(dimensionDefineList, function (dimensionInfo) { if (dimensionInfo.coordDim === stackedDimCoordDim_1) { stackedDimCoordIndex_1++; } }); var stackedOverDimensionDefine = { name: stackResultDimension, coordDim: stackedDimCoordDim_1, coordDimIndex: stackedDimCoordIndex_1, type: stackedDimType, isExtraCoord: true, isCalculationCoord: true, storeDimIndex: dimensionDefineList.length }; var stackResultDimensionDefine = { name: stackedOverDimension, // This dimension contains stack base (generally, 0), so do not set it as // `stackedDimCoordDim` to avoid extent calculation, consider log scale. coordDim: stackedOverDimension, coordDimIndex: stackedDimCoordIndex_1 + 1, type: stackedDimType, isExtraCoord: true, isCalculationCoord: true, storeDimIndex: dimensionDefineList.length + 1 }; if (schema) { if (store) { stackedOverDimensionDefine.storeDimIndex = store.ensureCalculationDimension(stackedOverDimension, stackedDimType); stackResultDimensionDefine.storeDimIndex = store.ensureCalculationDimension(stackResultDimension, stackedDimType); } schema.appendCalculationDimension(stackedOverDimensionDefine); schema.appendCalculationDimension(stackResultDimensionDefine); } else { dimensionDefineList.push(stackedOverDimensionDefine); dimensionDefineList.push(stackResultDimensionDefine); } } return { stackedDimension: stackedDimInfo && stackedDimInfo.name, stackedByDimension: stackedByDimInfo && stackedByDimInfo.name, isStackedByIndex: byIndex, stackedOverDimension: stackedOverDimension, stackResultDimension: stackResultDimension }; } function isLegacyDimensionsInput(dimensionsInput) { return !Object(_SeriesDataSchema_js__WEBPACK_IMPORTED_MODULE_1__["isSeriesDataSchema"])(dimensionsInput.schema); } function isDimensionStacked(data, stackedDim) { // Each single series only maps to one pair of axis. So we do not need to // check stackByDim, whatever stacked by a dimension or stacked by index. return !!stackedDim && stackedDim === data.getCalculationInfo('stackedDimension'); } function getStackedDimension(data, targetDim) { return isDimensionStacked(data, targetDim) ? data.getCalculationInfo('stackResultDimension') : targetDim; } /***/ }), /***/ "./node_modules/echarts/lib/data/helper/dataValueHelper.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/data/helper/dataValueHelper.js ***! \*****************************************************************/ /*! exports provided: parseDataValue, getRawValueParser, SortOrderComparator, createFilterComparator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDataValue", function() { return parseDataValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRawValueParser", function() { return getRawValueParser; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SortOrderComparator", function() { return SortOrderComparator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createFilterComparator", function() { return createFilterComparator; }); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Convert raw the value in to inner value in List. * * [Performance sensitive] * * [Caution]: this is the key logic of user value parser. * For backward compatibility, do not modify it until you have to! */ function parseDataValue(value, // For high performance, do not omit the second param. opt) { // Performance sensitive. var dimType = opt && opt.type; if (dimType === 'ordinal') { // If given value is a category string return value; } if (dimType === 'time' // spead up when using timestamp && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isNumber"])(value) && value != null && value !== '-') { value = +Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parseDate"])(value); } // dimType defaults 'number'. // If dimType is not ordinal and value is null or undefined or NaN or '-', // parse to NaN. // number-like string (like ' 123 ') can be converted to a number. // where null/undefined or other string will be converted to NaN. return value == null || value === '' ? NaN // If string (like '-'), using '+' parse to NaN // If object, also parse to NaN : Number(value); } ; var valueParserMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])({ 'number': function (val) { // Do not use `numericToNumber` here. We have `numericToNumber` by default. // Here the number parser can have loose rule: // enable to cut suffix: "120px" => 120, "14%" => 14. return parseFloat(val); }, 'time': function (val) { // return timestamp. return +Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["parseDate"])(val); }, 'trim': function (val) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(val) ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["trim"])(val) : val; } }); function getRawValueParser(type) { return valueParserMap.get(type); } var ORDER_COMPARISON_OP_MAP = { lt: function (lval, rval) { return lval < rval; }, lte: function (lval, rval) { return lval <= rval; }, gt: function (lval, rval) { return lval > rval; }, gte: function (lval, rval) { return lval >= rval; } }; var FilterOrderComparator = /** @class */function () { function FilterOrderComparator(op, rval) { if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isNumber"])(rval)) { var errMsg = ''; if (true) { errMsg = 'rvalue of "<", ">", "<=", ">=" can only be number in filter.'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["throwError"])(errMsg); } this._opFn = ORDER_COMPARISON_OP_MAP[op]; this._rvalFloat = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["numericToNumber"])(rval); } // Performance sensitive. FilterOrderComparator.prototype.evaluate = function (lval) { // Most cases is 'number', and typeof maybe 10 times faseter than parseFloat. return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isNumber"])(lval) ? this._opFn(lval, this._rvalFloat) : this._opFn(Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["numericToNumber"])(lval), this._rvalFloat); }; return FilterOrderComparator; }(); var SortOrderComparator = /** @class */function () { /** * @param order by default: 'asc' * @param incomparable by default: Always on the tail. * That is, if 'asc' => 'max', if 'desc' => 'min' * See the definition of "incomparable" in [SORT_COMPARISON_RULE]. */ function SortOrderComparator(order, incomparable) { var isDesc = order === 'desc'; this._resultLT = isDesc ? 1 : -1; if (incomparable == null) { incomparable = isDesc ? 'min' : 'max'; } this._incomparable = incomparable === 'min' ? -Infinity : Infinity; } // See [SORT_COMPARISON_RULE]. // Performance sensitive. SortOrderComparator.prototype.evaluate = function (lval, rval) { // Most cases is 'number', and typeof maybe 10 times faseter than parseFloat. var lvalFloat = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isNumber"])(lval) ? lval : Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["numericToNumber"])(lval); var rvalFloat = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isNumber"])(rval) ? rval : Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["numericToNumber"])(rval); var lvalNotNumeric = isNaN(lvalFloat); var rvalNotNumeric = isNaN(rvalFloat); if (lvalNotNumeric) { lvalFloat = this._incomparable; } if (rvalNotNumeric) { rvalFloat = this._incomparable; } if (lvalNotNumeric && rvalNotNumeric) { var lvalIsStr = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(lval); var rvalIsStr = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(rval); if (lvalIsStr) { lvalFloat = rvalIsStr ? lval : 0; } if (rvalIsStr) { rvalFloat = lvalIsStr ? rval : 0; } } return lvalFloat < rvalFloat ? this._resultLT : lvalFloat > rvalFloat ? -this._resultLT : 0; }; return SortOrderComparator; }(); var FilterEqualityComparator = /** @class */function () { function FilterEqualityComparator(isEq, rval) { this._rval = rval; this._isEQ = isEq; this._rvalTypeof = typeof rval; this._rvalFloat = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["numericToNumber"])(rval); } // Performance sensitive. FilterEqualityComparator.prototype.evaluate = function (lval) { var eqResult = lval === this._rval; if (!eqResult) { var lvalTypeof = typeof lval; if (lvalTypeof !== this._rvalTypeof && (lvalTypeof === 'number' || this._rvalTypeof === 'number')) { eqResult = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["numericToNumber"])(lval) === this._rvalFloat; } } return this._isEQ ? eqResult : !eqResult; }; return FilterEqualityComparator; }(); /** * [FILTER_COMPARISON_RULE] * `lt`|`lte`|`gt`|`gte`: * + rval must be a number. And lval will be converted to number (`numericToNumber`) to compare. * `eq`: * + If same type, compare with `===`. * + If there is one number, convert to number (`numericToNumber`) to compare. * + Else return `false`. * `ne`: * + Not `eq`. * * * [SORT_COMPARISON_RULE] * All the values are grouped into three categories: * + "numeric" (number and numeric string) * + "non-numeric-string" (string that excluding numeric string) * + "others" * "numeric" vs "numeric": values are ordered by number order. * "non-numeric-string" vs "non-numeric-string": values are ordered by ES spec (#sec-abstract-relational-comparison). * "others" vs "others": do not change order (always return 0). * "numeric" vs "non-numeric-string": "non-numeric-string" is treated as "incomparable". * "number" vs "others": "others" is treated as "incomparable". * "non-numeric-string" vs "others": "others" is treated as "incomparable". * "incomparable" will be seen as -Infinity or Infinity (depends on the settings). * MEMO: * Non-numeric string sort makes sense when we need to put the items with the same tag together. * But if we support string sort, we still need to avoid the misleading like `'2' > '12'`, * So we treat "numeric-string" sorted by number order rather than string comparison. * * * [CHECK_LIST_OF_THE_RULE_DESIGN] * + Do not support string comparison until required. And also need to * avoid the misleading of "2" > "12". * + Should avoid the misleading case: * `" 22 " gte "22"` is `true` but `" 22 " eq "22"` is `false`. * + JS bad case should be avoided: null <= 0, [] <= 0, ' ' <= 0, ... * + Only "numeric" can be converted to comparable number, otherwise converted to NaN. * See `util/number.ts#numericToNumber`. * * @return If `op` is not `RelationalOperator`, return null; */ function createFilterComparator(op, rval) { return op === 'eq' || op === 'ne' ? new FilterEqualityComparator(op === 'eq', rval) : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["hasOwn"])(ORDER_COMPARISON_OP_MAP, op) ? new FilterOrderComparator(op, rval) : null; } /***/ }), /***/ "./node_modules/echarts/lib/data/helper/dimensionHelper.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/data/helper/dimensionHelper.js ***! \*****************************************************************/ /*! exports provided: summarizeDimensions, getDimensionTypeByAxis */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "summarizeDimensions", function() { return summarizeDimensions; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDimensionTypeByAxis", function() { return getDimensionTypeByAxis; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_types_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/types.js */ "./node_modules/echarts/lib/util/types.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DimensionUserOuput = /** @class */function () { function DimensionUserOuput(encode, dimRequest) { this._encode = encode; this._schema = dimRequest; } DimensionUserOuput.prototype.get = function () { return { // Do not generate full dimension name until fist used. fullDimensions: this._getFullDimensionNames(), encode: this._encode }; }; /** * Get all data store dimension names. * Theoretically a series data store is defined both by series and used dataset (if any). * If some dimensions are omitted for performance reason in `this.dimensions`, * the dimension name may not be auto-generated if user does not specify a dimension name. * In this case, the dimension name is `null`/`undefined`. */ DimensionUserOuput.prototype._getFullDimensionNames = function () { if (!this._cachedDimNames) { this._cachedDimNames = this._schema ? this._schema.makeOutputDimensionNames() : []; } return this._cachedDimNames; }; return DimensionUserOuput; }(); ; function summarizeDimensions(data, schema) { var summary = {}; var encode = summary.encode = {}; var notExtraCoordDimMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); var defaultedLabel = []; var defaultedTooltip = []; var userOutputEncode = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(data.dimensions, function (dimName) { var dimItem = data.getDimensionInfo(dimName); var coordDim = dimItem.coordDim; if (coordDim) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(_util_types_js__WEBPACK_IMPORTED_MODULE_1__["VISUAL_DIMENSIONS"].get(coordDim) == null); } var coordDimIndex = dimItem.coordDimIndex; getOrCreateEncodeArr(encode, coordDim)[coordDimIndex] = dimName; if (!dimItem.isExtraCoord) { notExtraCoordDimMap.set(coordDim, 1); // Use the last coord dim (and label friendly) as default label, // because when dataset is used, it is hard to guess which dimension // can be value dimension. If both show x, y on label is not look good, // and conventionally y axis is focused more. if (mayLabelDimType(dimItem.type)) { defaultedLabel[0] = dimName; } // User output encode do not contain generated coords. // And it only has index. User can use index to retrieve value from the raw item array. getOrCreateEncodeArr(userOutputEncode, coordDim)[coordDimIndex] = data.getDimensionIndex(dimItem.name); } if (dimItem.defaultTooltip) { defaultedTooltip.push(dimName); } } _util_types_js__WEBPACK_IMPORTED_MODULE_1__["VISUAL_DIMENSIONS"].each(function (v, otherDim) { var encodeArr = getOrCreateEncodeArr(encode, otherDim); var dimIndex = dimItem.otherDims[otherDim]; if (dimIndex != null && dimIndex !== false) { encodeArr[dimIndex] = dimItem.name; } }); }); var dataDimsOnCoord = []; var encodeFirstDimNotExtra = {}; notExtraCoordDimMap.each(function (v, coordDim) { var dimArr = encode[coordDim]; encodeFirstDimNotExtra[coordDim] = dimArr[0]; // Not necessary to remove duplicate, because a data // dim canot on more than one coordDim. dataDimsOnCoord = dataDimsOnCoord.concat(dimArr); }); summary.dataDimsOnCoord = dataDimsOnCoord; summary.dataDimIndicesOnCoord = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(dataDimsOnCoord, function (dimName) { return data.getDimensionInfo(dimName).storeDimIndex; }); summary.encodeFirstDimNotExtra = encodeFirstDimNotExtra; var encodeLabel = encode.label; // FIXME `encode.label` is not recommended, because formatter cannot be set // in this way. Use label.formatter instead. Maybe remove this approach someday. if (encodeLabel && encodeLabel.length) { defaultedLabel = encodeLabel.slice(); } var encodeTooltip = encode.tooltip; if (encodeTooltip && encodeTooltip.length) { defaultedTooltip = encodeTooltip.slice(); } else if (!defaultedTooltip.length) { defaultedTooltip = defaultedLabel.slice(); } encode.defaultedLabel = defaultedLabel; encode.defaultedTooltip = defaultedTooltip; summary.userOutput = new DimensionUserOuput(userOutputEncode, schema); return summary; } function getOrCreateEncodeArr(encode, dim) { if (!encode.hasOwnProperty(dim)) { encode[dim] = []; } return encode[dim]; } // FIXME:TS should be type `AxisType` function getDimensionTypeByAxis(axisType) { return axisType === 'category' ? 'ordinal' : axisType === 'time' ? 'time' : 'float'; } function mayLabelDimType(dimType) { // In most cases, ordinal and time do not suitable for label. // Ordinal info can be displayed on axis. Time is too long. return !(dimType === 'ordinal' || dimType === 'time'); } // function findTheLastDimMayLabel(data) { // // Get last value dim // let dimensions = data.dimensions.slice(); // let valueType; // let valueDim; // while (dimensions.length && ( // valueDim = dimensions.pop(), // valueType = data.getDimensionInfo(valueDim).type, // valueType === 'ordinal' || valueType === 'time' // )) {} // jshint ignore:line // return valueDim; // } /***/ }), /***/ "./node_modules/echarts/lib/data/helper/linkSeriesData.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/data/helper/linkSeriesData.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Link lists and struct (graph or tree) */ var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_1__["makeInner"])(); function linkSeriesData(opt) { var mainData = opt.mainData; var datas = opt.datas; if (!datas) { datas = { main: mainData }; opt.datasAttr = { main: 'data' }; } opt.datas = opt.mainData = null; linkAll(mainData, datas, opt); // Porxy data original methods. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(datas, function (data) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(mainData.TRANSFERABLE_METHODS, function (methodName) { data.wrapMethod(methodName, Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"])(transferInjection, opt)); }); }); // Beyond transfer, additional features should be added to `cloneShallow`. mainData.wrapMethod('cloneShallow', Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"])(cloneShallowInjection, opt)); // Only mainData trigger change, because struct.update may trigger // another changable methods, which may bring about dead lock. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(mainData.CHANGABLE_METHODS, function (methodName) { mainData.wrapMethod(methodName, Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"])(changeInjection, opt)); }); // Make sure datas contains mainData. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(datas[mainData.dataType] === mainData); } function transferInjection(opt, res) { if (isMainData(this)) { // Transfer datas to new main data. var datas = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, inner(this).datas); datas[this.dataType] = res; linkAll(res, datas, opt); } else { // Modify the reference in main data to point newData. linkSingle(res, this.dataType, inner(this).mainData, opt); } return res; } function changeInjection(opt, res) { opt.struct && opt.struct.update(); return res; } function cloneShallowInjection(opt, res) { // cloneShallow, which brings about some fragilities, may be inappropriate // to be exposed as an API. So for implementation simplicity we can make // the restriction that cloneShallow of not-mainData should not be invoked // outside, but only be invoked here. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(inner(res).datas, function (data, dataType) { data !== res && linkSingle(data.cloneShallow(), dataType, res, opt); }); return res; } /** * Supplement method to List. * * @public * @param [dataType] If not specified, return mainData. */ function getLinkedData(dataType) { var mainData = inner(this).mainData; return dataType == null || mainData == null ? mainData : inner(mainData).datas[dataType]; } /** * Get list of all linked data */ function getLinkedDataAll() { var mainData = inner(this).mainData; return mainData == null ? [{ data: mainData }] : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["keys"])(inner(mainData).datas), function (type) { return { type: type, data: inner(mainData).datas[type] }; }); } function isMainData(data) { return inner(data).mainData === data; } function linkAll(mainData, datas, opt) { inner(mainData).datas = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(datas, function (data, dataType) { linkSingle(data, dataType, mainData, opt); }); } function linkSingle(data, dataType, mainData, opt) { inner(mainData).datas[dataType] = data; inner(data).mainData = mainData; data.dataType = dataType; if (opt.struct) { data[opt.structAttr] = opt.struct; opt.struct[opt.datasAttr[dataType]] = data; } // Supplement method. data.getLinkedData = getLinkedData; data.getLinkedDataAll = getLinkedDataAll; } /* harmony default export */ __webpack_exports__["default"] = (linkSeriesData); /***/ }), /***/ "./node_modules/echarts/lib/data/helper/sourceHelper.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/data/helper/sourceHelper.js ***! \**************************************************************/ /*! exports provided: BE_ORDINAL, resetSourceDefaulter, makeSeriesEncodeForAxisCoordSys, makeSeriesEncodeForNameBased, querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels, guessOrdinal */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BE_ORDINAL", function() { return BE_ORDINAL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetSourceDefaulter", function() { return resetSourceDefaulter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeSeriesEncodeForAxisCoordSys", function() { return makeSeriesEncodeForAxisCoordSys; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeSeriesEncodeForNameBased", function() { return makeSeriesEncodeForNameBased; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "querySeriesUpstreamDatasetModel", function() { return querySeriesUpstreamDatasetModel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "queryDatasetUpstreamDatasetModels", function() { return queryDatasetUpstreamDatasetModels; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "guessOrdinal", function() { return guessOrdinal; }); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_types_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/types.js */ "./node_modules/echarts/lib/util/types.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // The result of `guessOrdinal`. var BE_ORDINAL = { Must: 1, Might: 2, Not: 3 // Other cases }; var innerGlobalModel = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["makeInner"])(); /** * MUST be called before mergeOption of all series. */ function resetSourceDefaulter(ecModel) { // `datasetMap` is used to make default encode. innerGlobalModel(ecModel).datasetMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])(); } /** * [The strategy of the arrengment of data dimensions for dataset]: * "value way": all axes are non-category axes. So series one by one take * several (the number is coordSysDims.length) dimensions from dataset. * The result of data arrengment of data dimensions like: * | ser0_x | ser0_y | ser1_x | ser1_y | ser2_x | ser2_y | * "category way": at least one axis is category axis. So the the first data * dimension is always mapped to the first category axis and shared by * all of the series. The other data dimensions are taken by series like * "value way" does. * The result of data arrengment of data dimensions like: * | ser_shared_x | ser0_y | ser1_y | ser2_y | * * @return encode Never be `null/undefined`. */ function makeSeriesEncodeForAxisCoordSys(coordDimensions, seriesModel, source) { var encode = {}; var datasetModel = querySeriesUpstreamDatasetModel(seriesModel); // Currently only make default when using dataset, util more reqirements occur. if (!datasetModel || !coordDimensions) { return encode; } var encodeItemName = []; var encodeSeriesName = []; var ecModel = seriesModel.ecModel; var datasetMap = innerGlobalModel(ecModel).datasetMap; var key = datasetModel.uid + '_' + source.seriesLayoutBy; var baseCategoryDimIndex; var categoryWayValueDimStart; coordDimensions = coordDimensions.slice(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(coordDimensions, function (coordDimInfoLoose, coordDimIdx) { var coordDimInfo = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isObject"])(coordDimInfoLoose) ? coordDimInfoLoose : coordDimensions[coordDimIdx] = { name: coordDimInfoLoose }; if (coordDimInfo.type === 'ordinal' && baseCategoryDimIndex == null) { baseCategoryDimIndex = coordDimIdx; categoryWayValueDimStart = getDataDimCountOnCoordDim(coordDimInfo); } encode[coordDimInfo.name] = []; }); var datasetRecord = datasetMap.get(key) || datasetMap.set(key, { categoryWayDim: categoryWayValueDimStart, valueWayDim: 0 }); // TODO // Auto detect first time axis and do arrangement. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(coordDimensions, function (coordDimInfo, coordDimIdx) { var coordDimName = coordDimInfo.name; var count = getDataDimCountOnCoordDim(coordDimInfo); // In value way. if (baseCategoryDimIndex == null) { var start = datasetRecord.valueWayDim; pushDim(encode[coordDimName], start, count); pushDim(encodeSeriesName, start, count); datasetRecord.valueWayDim += count; // ??? TODO give a better default series name rule? // especially when encode x y specified. // consider: when multiple series share one dimension // category axis, series name should better use // the other dimension name. On the other hand, use // both dimensions name. } // In category way, the first category axis. else if (baseCategoryDimIndex === coordDimIdx) { pushDim(encode[coordDimName], 0, count); pushDim(encodeItemName, 0, count); } // In category way, the other axis. else { var start = datasetRecord.categoryWayDim; pushDim(encode[coordDimName], start, count); pushDim(encodeSeriesName, start, count); datasetRecord.categoryWayDim += count; } }); function pushDim(dimIdxArr, idxFrom, idxCount) { for (var i = 0; i < idxCount; i++) { dimIdxArr.push(idxFrom + i); } } function getDataDimCountOnCoordDim(coordDimInfo) { var dimsDef = coordDimInfo.dimsDef; return dimsDef ? dimsDef.length : 1; } encodeItemName.length && (encode.itemName = encodeItemName); encodeSeriesName.length && (encode.seriesName = encodeSeriesName); return encode; } /** * Work for data like [{name: ..., value: ...}, ...]. * * @return encode Never be `null/undefined`. */ function makeSeriesEncodeForNameBased(seriesModel, source, dimCount) { var encode = {}; var datasetModel = querySeriesUpstreamDatasetModel(seriesModel); // Currently only make default when using dataset, util more reqirements occur. if (!datasetModel) { return encode; } var sourceFormat = source.sourceFormat; var dimensionsDefine = source.dimensionsDefine; var potentialNameDimIndex; if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_2__["SOURCE_FORMAT_OBJECT_ROWS"] || sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_2__["SOURCE_FORMAT_KEYED_COLUMNS"]) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(dimensionsDefine, function (dim, idx) { if ((Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isObject"])(dim) ? dim.name : dim) === 'name') { potentialNameDimIndex = idx; } }); } var idxResult = function () { var idxRes0 = {}; var idxRes1 = {}; var guessRecords = []; // 5 is an experience value. for (var i = 0, len = Math.min(5, dimCount); i < len; i++) { var guessResult = doGuessOrdinal(source.data, sourceFormat, source.seriesLayoutBy, dimensionsDefine, source.startIndex, i); guessRecords.push(guessResult); var isPureNumber = guessResult === BE_ORDINAL.Not; // [Strategy of idxRes0]: find the first BE_ORDINAL.Not as the value dim, // and then find a name dim with the priority: // "BE_ORDINAL.Might|BE_ORDINAL.Must" > "other dim" > "the value dim itself". if (isPureNumber && idxRes0.v == null && i !== potentialNameDimIndex) { idxRes0.v = i; } if (idxRes0.n == null || idxRes0.n === idxRes0.v || !isPureNumber && guessRecords[idxRes0.n] === BE_ORDINAL.Not) { idxRes0.n = i; } if (fulfilled(idxRes0) && guessRecords[idxRes0.n] !== BE_ORDINAL.Not) { return idxRes0; } // [Strategy of idxRes1]: if idxRes0 not satisfied (that is, no BE_ORDINAL.Not), // find the first BE_ORDINAL.Might as the value dim, // and then find a name dim with the priority: // "other dim" > "the value dim itself". // That is for backward compat: number-like (e.g., `'3'`, `'55'`) can be // treated as number. if (!isPureNumber) { if (guessResult === BE_ORDINAL.Might && idxRes1.v == null && i !== potentialNameDimIndex) { idxRes1.v = i; } if (idxRes1.n == null || idxRes1.n === idxRes1.v) { idxRes1.n = i; } } } function fulfilled(idxResult) { return idxResult.v != null && idxResult.n != null; } return fulfilled(idxRes0) ? idxRes0 : fulfilled(idxRes1) ? idxRes1 : null; }(); if (idxResult) { encode.value = [idxResult.v]; // `potentialNameDimIndex` has highest priority. var nameDimIndex = potentialNameDimIndex != null ? potentialNameDimIndex : idxResult.n; // By default, label uses itemName in charts. // So we don't set encodeLabel here. encode.itemName = [nameDimIndex]; encode.seriesName = [nameDimIndex]; } return encode; } /** * @return If return null/undefined, indicate that should not use datasetModel. */ function querySeriesUpstreamDatasetModel(seriesModel) { // Caution: consider the scenario: // A dataset is declared and a series is not expected to use the dataset, // and at the beginning `setOption({series: { noData })` (just prepare other // option but no data), then `setOption({series: {data: [...]}); In this case, // the user should set an empty array to avoid that dataset is used by default. var thisData = seriesModel.get('data', true); if (!thisData) { return Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["queryReferringComponents"])(seriesModel.ecModel, 'dataset', { index: seriesModel.get('datasetIndex', true), id: seriesModel.get('datasetId', true) }, _util_model_js__WEBPACK_IMPORTED_MODULE_0__["SINGLE_REFERRING"]).models[0]; } } /** * @return Always return an array event empty. */ function queryDatasetUpstreamDatasetModels(datasetModel) { // Only these attributes declared, we by default reference to `datasetIndex: 0`. // Otherwise, no reference. if (!datasetModel.get('transform', true) && !datasetModel.get('fromTransformResult', true)) { return []; } return Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["queryReferringComponents"])(datasetModel.ecModel, 'dataset', { index: datasetModel.get('fromDatasetIndex', true), id: datasetModel.get('fromDatasetId', true) }, _util_model_js__WEBPACK_IMPORTED_MODULE_0__["SINGLE_REFERRING"]).models; } /** * The rule should not be complex, otherwise user might not * be able to known where the data is wrong. * The code is ugly, but how to make it neat? */ function guessOrdinal(source, dimIndex) { return doGuessOrdinal(source.data, source.sourceFormat, source.seriesLayoutBy, source.dimensionsDefine, source.startIndex, dimIndex); } // dimIndex may be overflow source data. // return {BE_ORDINAL} function doGuessOrdinal(data, sourceFormat, seriesLayoutBy, dimensionsDefine, startIndex, dimIndex) { var result; // Experience value. var maxLoop = 5; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isTypedArray"])(data)) { return BE_ORDINAL.Not; } // When sourceType is 'objectRows' or 'keyedColumns', dimensionsDefine // always exists in source. var dimName; var dimType; if (dimensionsDefine) { var dimDefItem = dimensionsDefine[dimIndex]; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isObject"])(dimDefItem)) { dimName = dimDefItem.name; dimType = dimDefItem.type; } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(dimDefItem)) { dimName = dimDefItem; } } if (dimType != null) { return dimType === 'ordinal' ? BE_ORDINAL.Must : BE_ORDINAL.Not; } if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_2__["SOURCE_FORMAT_ARRAY_ROWS"]) { var dataArrayRows = data; if (seriesLayoutBy === _util_types_js__WEBPACK_IMPORTED_MODULE_2__["SERIES_LAYOUT_BY_ROW"]) { var sample = dataArrayRows[dimIndex]; for (var i = 0; i < (sample || []).length && i < maxLoop; i++) { if ((result = detectValue(sample[startIndex + i])) != null) { return result; } } } else { for (var i = 0; i < dataArrayRows.length && i < maxLoop; i++) { var row = dataArrayRows[startIndex + i]; if (row && (result = detectValue(row[dimIndex])) != null) { return result; } } } } else if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_2__["SOURCE_FORMAT_OBJECT_ROWS"]) { var dataObjectRows = data; if (!dimName) { return BE_ORDINAL.Not; } for (var i = 0; i < dataObjectRows.length && i < maxLoop; i++) { var item = dataObjectRows[i]; if (item && (result = detectValue(item[dimName])) != null) { return result; } } } else if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_2__["SOURCE_FORMAT_KEYED_COLUMNS"]) { var dataKeyedColumns = data; if (!dimName) { return BE_ORDINAL.Not; } var sample = dataKeyedColumns[dimName]; if (!sample || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isTypedArray"])(sample)) { return BE_ORDINAL.Not; } for (var i = 0; i < sample.length && i < maxLoop; i++) { if ((result = detectValue(sample[i])) != null) { return result; } } } else if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_2__["SOURCE_FORMAT_ORIGINAL"]) { var dataOriginal = data; for (var i = 0; i < dataOriginal.length && i < maxLoop; i++) { var item = dataOriginal[i]; var val = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["getDataItemValue"])(item); if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(val)) { return BE_ORDINAL.Not; } if ((result = detectValue(val[dimIndex])) != null) { return result; } } } function detectValue(val) { var beStr = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(val); // Consider usage convenience, '1', '2' will be treated as "number". // `Number('')` (or any whitespace) is `0`. if (val != null && Number.isFinite(Number(val)) && val !== '') { return beStr ? BE_ORDINAL.Might : BE_ORDINAL.Not; } else if (beStr && val !== '-') { return BE_ORDINAL.Must; } } return BE_ORDINAL.Not; } /***/ }), /***/ "./node_modules/echarts/lib/data/helper/sourceManager.js": /*!***************************************************************!*\ !*** ./node_modules/echarts/lib/data/helper/sourceManager.js ***! \***************************************************************/ /*! exports provided: SourceManager, disableTransformOptionMerge */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SourceManager", function() { return SourceManager; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "disableTransformOptionMerge", function() { return disableTransformOptionMerge; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _Source_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Source.js */ "./node_modules/echarts/lib/data/Source.js"); /* harmony import */ var _util_types_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/types.js */ "./node_modules/echarts/lib/util/types.js"); /* harmony import */ var _sourceHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sourceHelper.js */ "./node_modules/echarts/lib/data/helper/sourceHelper.js"); /* harmony import */ var _transform_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./transform.js */ "./node_modules/echarts/lib/data/helper/transform.js"); /* harmony import */ var _DataStore_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../DataStore.js */ "./node_modules/echarts/lib/data/DataStore.js"); /* harmony import */ var _dataProvider_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./dataProvider.js */ "./node_modules/echarts/lib/data/helper/dataProvider.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * [REQUIREMENT_MEMO]: * (0) `metaRawOption` means `dimensions`/`sourceHeader`/`seriesLayoutBy` in raw option. * (1) Keep support the feature: `metaRawOption` can be specified both on `series` and * `root-dataset`. Them on `series` has higher priority. * (2) Do not support to set `metaRawOption` on a `non-root-dataset`, because it might * confuse users: whether those props indicate how to visit the upstream source or visit * the transform result source, and some transforms has nothing to do with these props, * and some transforms might have multiple upstream. * (3) Transforms should specify `metaRawOption` in each output, just like they can be * declared in `root-dataset`. * (4) At present only support visit source in `SERIES_LAYOUT_BY_COLUMN` in transforms. * That is for reducing complexity in transforms. * PENDING: Whether to provide transposition transform? * * [IMPLEMENTAION_MEMO]: * "sourceVisitConfig" are calculated from `metaRawOption` and `data`. * They will not be calculated until `source` is about to be visited (to prevent from * duplicate calcuation). `source` is visited only in series and input to transforms. * * [DIMENSION_INHERIT_RULE]: * By default the dimensions are inherited from ancestors, unless a transform return * a new dimensions definition. * Consider the case: * ```js * dataset: [{ * source: [ ['Product', 'Sales', 'Prise'], ['Cookies', 321, 44.21], ...] * }, { * transform: { type: 'filter', ... } * }] * dataset: [{ * dimension: ['Product', 'Sales', 'Prise'], * source: [ ['Cookies', 321, 44.21], ...] * }, { * transform: { type: 'filter', ... } * }] * ``` * The two types of option should have the same behavior after transform. * * * [SCENARIO]: * (1) Provide source data directly: * ```js * series: { * encode: {...}, * dimensions: [...] * seriesLayoutBy: 'row', * data: [[...]] * } * ``` * (2) Series refer to dataset. * ```js * series: [{ * encode: {...} * // Ignore datasetIndex means `datasetIndex: 0` * // and the dimensions defination in dataset is used * }, { * encode: {...}, * seriesLayoutBy: 'column', * datasetIndex: 1 * }] * ``` * (3) dataset transform * ```js * dataset: [{ * source: [...] * }, { * source: [...] * }, { * // By default from 0. * transform: { type: 'filter', config: {...} } * }, { * // Piped. * transform: [ * { type: 'filter', config: {...} }, * { type: 'sort', config: {...} } * ] * }, { * id: 'regressionData', * fromDatasetIndex: 1, * // Third-party transform * transform: { type: 'ecStat:regression', config: {...} } * }, { * // retrieve the extra result. * id: 'regressionFormula', * fromDatasetId: 'regressionData', * fromTransformResult: 1 * }] * ``` */ var SourceManager = /** @class */function () { function SourceManager(sourceHost) { // Cached source. Do not repeat calculating if not dirty. this._sourceList = []; this._storeList = []; // version sign of each upstream source manager. this._upstreamSignList = []; this._versionSignBase = 0; this._dirty = true; this._sourceHost = sourceHost; } /** * Mark dirty. */ SourceManager.prototype.dirty = function () { this._setLocalSource([], []); this._storeList = []; this._dirty = true; }; SourceManager.prototype._setLocalSource = function (sourceList, upstreamSignList) { this._sourceList = sourceList; this._upstreamSignList = upstreamSignList; this._versionSignBase++; if (this._versionSignBase > 9e10) { this._versionSignBase = 0; } }; /** * For detecting whether the upstream source is dirty, so that * the local cached source (in `_sourceList`) should be discarded. */ SourceManager.prototype._getVersionSign = function () { return this._sourceHost.uid + '_' + this._versionSignBase; }; /** * Always return a source instance. Otherwise throw error. */ SourceManager.prototype.prepareSource = function () { // For the case that call `setOption` multiple time but no data changed, // cache the result source to prevent from repeating transform. if (this._isDirty()) { this._createSource(); this._dirty = false; } }; SourceManager.prototype._createSource = function () { this._setLocalSource([], []); var sourceHost = this._sourceHost; var upSourceMgrList = this._getUpstreamSourceManagers(); var hasUpstream = !!upSourceMgrList.length; var resultSourceList; var upstreamSignList; if (isSeries(sourceHost)) { var seriesModel = sourceHost; var data = void 0; var sourceFormat = void 0; var upSource = void 0; // Has upstream dataset if (hasUpstream) { var upSourceMgr = upSourceMgrList[0]; upSourceMgr.prepareSource(); upSource = upSourceMgr.getSource(); data = upSource.data; sourceFormat = upSource.sourceFormat; upstreamSignList = [upSourceMgr._getVersionSign()]; } // Series data is from own. else { data = seriesModel.get('data', true); sourceFormat = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isTypedArray"])(data) ? _util_types_js__WEBPACK_IMPORTED_MODULE_2__["SOURCE_FORMAT_TYPED_ARRAY"] : _util_types_js__WEBPACK_IMPORTED_MODULE_2__["SOURCE_FORMAT_ORIGINAL"]; upstreamSignList = []; } // See [REQUIREMENT_MEMO], merge settings on series and parent dataset if it is root. var newMetaRawOption = this._getSourceMetaRawOption() || {}; var upMetaRawOption = upSource && upSource.metaRawOption || {}; var seriesLayoutBy = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(newMetaRawOption.seriesLayoutBy, upMetaRawOption.seriesLayoutBy) || null; var sourceHeader = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(newMetaRawOption.sourceHeader, upMetaRawOption.sourceHeader); // Note here we should not use `upSource.dimensionsDefine`. Consider the case: // `upSource.dimensionsDefine` is detected by `seriesLayoutBy: 'column'`, // but series need `seriesLayoutBy: 'row'`. var dimensions = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(newMetaRawOption.dimensions, upMetaRawOption.dimensions); // We share source with dataset as much as possible // to avoid extra memory cost of high dimensional data. var needsCreateSource = seriesLayoutBy !== upMetaRawOption.seriesLayoutBy || !!sourceHeader !== !!upMetaRawOption.sourceHeader || dimensions; resultSourceList = needsCreateSource ? [Object(_Source_js__WEBPACK_IMPORTED_MODULE_1__["createSource"])(data, { seriesLayoutBy: seriesLayoutBy, sourceHeader: sourceHeader, dimensions: dimensions }, sourceFormat)] : []; } else { var datasetModel = sourceHost; // Has upstream dataset. if (hasUpstream) { var result = this._applyTransform(upSourceMgrList); resultSourceList = result.sourceList; upstreamSignList = result.upstreamSignList; } // Is root dataset. else { var sourceData = datasetModel.get('source', true); resultSourceList = [Object(_Source_js__WEBPACK_IMPORTED_MODULE_1__["createSource"])(sourceData, this._getSourceMetaRawOption(), null)]; upstreamSignList = []; } } if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(resultSourceList && upstreamSignList); } this._setLocalSource(resultSourceList, upstreamSignList); }; SourceManager.prototype._applyTransform = function (upMgrList) { var datasetModel = this._sourceHost; var transformOption = datasetModel.get('transform', true); var fromTransformResult = datasetModel.get('fromTransformResult', true); if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(fromTransformResult != null || transformOption != null); } if (fromTransformResult != null) { var errMsg = ''; if (upMgrList.length !== 1) { if (true) { errMsg = 'When using `fromTransformResult`, there should be only one upstream dataset'; } doThrow(errMsg); } } var sourceList; var upSourceList = []; var upstreamSignList = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(upMgrList, function (upMgr) { upMgr.prepareSource(); var upSource = upMgr.getSource(fromTransformResult || 0); var errMsg = ''; if (fromTransformResult != null && !upSource) { if (true) { errMsg = 'Can not retrieve result by `fromTransformResult`: ' + fromTransformResult; } doThrow(errMsg); } upSourceList.push(upSource); upstreamSignList.push(upMgr._getVersionSign()); }); if (transformOption) { sourceList = Object(_transform_js__WEBPACK_IMPORTED_MODULE_4__["applyDataTransform"])(transformOption, upSourceList, { datasetIndex: datasetModel.componentIndex }); } else if (fromTransformResult != null) { sourceList = [Object(_Source_js__WEBPACK_IMPORTED_MODULE_1__["cloneSourceShallow"])(upSourceList[0])]; } return { sourceList: sourceList, upstreamSignList: upstreamSignList }; }; SourceManager.prototype._isDirty = function () { if (this._dirty) { return true; } // All sourceList is from the some upstream. var upSourceMgrList = this._getUpstreamSourceManagers(); for (var i = 0; i < upSourceMgrList.length; i++) { var upSrcMgr = upSourceMgrList[i]; if ( // Consider the case that there is ancestor diry, call it recursively. // The performance is probably not an issue because usually the chain is not long. upSrcMgr._isDirty() || this._upstreamSignList[i] !== upSrcMgr._getVersionSign()) { return true; } } }; /** * @param sourceIndex By default 0, means "main source". * In most cases there is only one source. */ SourceManager.prototype.getSource = function (sourceIndex) { sourceIndex = sourceIndex || 0; var source = this._sourceList[sourceIndex]; if (!source) { // Series may share source instance with dataset. var upSourceMgrList = this._getUpstreamSourceManagers(); return upSourceMgrList[0] && upSourceMgrList[0].getSource(sourceIndex); } return source; }; /** * * Get a data store which can be shared across series. * Only available for series. * * @param seriesDimRequest Dimensions that are generated in series. * Should have been sorted by `storeDimIndex` asc. */ SourceManager.prototype.getSharedDataStore = function (seriesDimRequest) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(isSeries(this._sourceHost), 'Can only call getDataStore on series source manager.'); } var schema = seriesDimRequest.makeStoreSchema(); return this._innerGetDataStore(schema.dimensions, seriesDimRequest.source, schema.hash); }; SourceManager.prototype._innerGetDataStore = function (storeDims, seriesSource, sourceReadKey) { // TODO Can use other sourceIndex? var sourceIndex = 0; var storeList = this._storeList; var cachedStoreMap = storeList[sourceIndex]; if (!cachedStoreMap) { cachedStoreMap = storeList[sourceIndex] = {}; } var cachedStore = cachedStoreMap[sourceReadKey]; if (!cachedStore) { var upSourceMgr = this._getUpstreamSourceManagers()[0]; if (isSeries(this._sourceHost) && upSourceMgr) { cachedStore = upSourceMgr._innerGetDataStore(storeDims, seriesSource, sourceReadKey); } else { cachedStore = new _DataStore_js__WEBPACK_IMPORTED_MODULE_5__["default"](); // Always create store from source of series. cachedStore.initData(new _dataProvider_js__WEBPACK_IMPORTED_MODULE_6__["DefaultDataProvider"](seriesSource, storeDims.length), storeDims); } cachedStoreMap[sourceReadKey] = cachedStore; } return cachedStore; }; /** * PENDING: Is it fast enough? * If no upstream, return empty array. */ SourceManager.prototype._getUpstreamSourceManagers = function () { // Always get the relationship from the raw option. // Do not cache the link of the dependency graph, so that // there is no need to update them when change happens. var sourceHost = this._sourceHost; if (isSeries(sourceHost)) { var datasetModel = Object(_sourceHelper_js__WEBPACK_IMPORTED_MODULE_3__["querySeriesUpstreamDatasetModel"])(sourceHost); return !datasetModel ? [] : [datasetModel.getSourceManager()]; } else { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(Object(_sourceHelper_js__WEBPACK_IMPORTED_MODULE_3__["queryDatasetUpstreamDatasetModels"])(sourceHost), function (datasetModel) { return datasetModel.getSourceManager(); }); } }; SourceManager.prototype._getSourceMetaRawOption = function () { var sourceHost = this._sourceHost; var seriesLayoutBy; var sourceHeader; var dimensions; if (isSeries(sourceHost)) { seriesLayoutBy = sourceHost.get('seriesLayoutBy', true); sourceHeader = sourceHost.get('sourceHeader', true); dimensions = sourceHost.get('dimensions', true); } // See [REQUIREMENT_MEMO], `non-root-dataset` do not support them. else if (!this._getUpstreamSourceManagers().length) { var model = sourceHost; seriesLayoutBy = model.get('seriesLayoutBy', true); sourceHeader = model.get('sourceHeader', true); dimensions = model.get('dimensions', true); } return { seriesLayoutBy: seriesLayoutBy, sourceHeader: sourceHeader, dimensions: dimensions }; }; return SourceManager; }(); // Call this method after `super.init` and `super.mergeOption` to // disable the transform merge, but do not disable transform clone from rawOption. function disableTransformOptionMerge(datasetModel) { var transformOption = datasetModel.option.transform; transformOption && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["setAsPrimitive"])(datasetModel.option.transform); } function isSeries(sourceHost) { // Avoid circular dependency with Series.ts return sourceHost.mainType === 'series'; } function doThrow(errMsg) { throw new Error(errMsg); } /***/ }), /***/ "./node_modules/echarts/lib/data/helper/transform.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/data/helper/transform.js ***! \***********************************************************/ /*! exports provided: ExternalSource, registerExternalTransform, applyDataTransform */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExternalSource", function() { return ExternalSource; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerExternalTransform", function() { return registerExternalTransform; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyDataTransform", function() { return applyDataTransform; }); /* harmony import */ var _util_types_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/types.js */ "./node_modules/echarts/lib/util/types.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _dataProvider_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dataProvider.js */ "./node_modules/echarts/lib/data/helper/dataProvider.js"); /* harmony import */ var _dataValueHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dataValueHelper.js */ "./node_modules/echarts/lib/data/helper/dataValueHelper.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var _Source_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Source.js */ "./node_modules/echarts/lib/data/Source.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * TODO: disable writable. * This structure will be exposed to users. */ var ExternalSource = /** @class */function () { function ExternalSource() {} ExternalSource.prototype.getRawData = function () { // Only built-in transform available. throw new Error('not supported'); }; ExternalSource.prototype.getRawDataItem = function (dataIndex) { // Only built-in transform available. throw new Error('not supported'); }; ExternalSource.prototype.cloneRawData = function () { return; }; /** * @return If dimension not found, return null/undefined. */ ExternalSource.prototype.getDimensionInfo = function (dim) { return; }; /** * dimensions defined if and only if either: * (a) dataset.dimensions are declared. * (b) dataset data include dimensions definitions in data (detected or via specified `sourceHeader`). * If dimensions are defined, `dimensionInfoAll` is corresponding to * the defined dimensions. * Otherwise, `dimensionInfoAll` is determined by data columns. * @return Always return an array (even empty array). */ ExternalSource.prototype.cloneAllDimensionInfo = function () { return; }; ExternalSource.prototype.count = function () { return; }; /** * Only support by dimension index. * No need to support by dimension name in transform function, * because transform function is not case-specific, no need to use name literally. */ ExternalSource.prototype.retrieveValue = function (dataIndex, dimIndex) { return; }; ExternalSource.prototype.retrieveValueFromItem = function (dataItem, dimIndex) { return; }; ExternalSource.prototype.convertValue = function (rawVal, dimInfo) { return Object(_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_4__["parseDataValue"])(rawVal, dimInfo); }; return ExternalSource; }(); function createExternalSource(internalSource, externalTransform) { var extSource = new ExternalSource(); var data = internalSource.data; var sourceFormat = extSource.sourceFormat = internalSource.sourceFormat; var sourceHeaderCount = internalSource.startIndex; var errMsg = ''; if (internalSource.seriesLayoutBy !== _util_types_js__WEBPACK_IMPORTED_MODULE_0__["SERIES_LAYOUT_BY_COLUMN"]) { // For the logic simplicity in transformer, only 'culumn' is // supported in data transform. Otherwise, the `dimensionsDefine` // might be detected by 'row', which probably confuses users. if (true) { errMsg = '`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errMsg); } // [MEMO] // Create a new dimensions structure for exposing. // Do not expose all dimension info to users directly. // Because the dimension is probably auto detected from data and not might reliable. // Should not lead the transformers to think that is reliable and return it. // See [DIMENSION_INHERIT_RULE] in `sourceManager.ts`. var dimensions = []; var dimsByName = {}; var dimsDef = internalSource.dimensionsDefine; if (dimsDef) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["each"])(dimsDef, function (dimDef, idx) { var name = dimDef.name; var dimDefExt = { index: idx, name: name, displayName: dimDef.displayName }; dimensions.push(dimDefExt); // Users probably do not specify dimension name. For simplicity, data transform // does not generate dimension name. if (name != null) { // Dimension name should not be duplicated. // For simplicity, data transform forbids name duplication, do not generate // new name like module `completeDimensions.ts` did, but just tell users. var errMsg_1 = ''; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["hasOwn"])(dimsByName, name)) { if (true) { errMsg_1 = 'dimension name "' + name + '" duplicated.'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errMsg_1); } dimsByName[name] = dimDefExt; } }); } // If dimension definitions are not defined and can not be detected. // e.g., pure data `[[11, 22], ...]`. else { for (var i = 0; i < internalSource.dimensionsDetectedCount || 0; i++) { // Do not generete name or anything others. The consequence process in // `transform` or `series` probably have there own name generation strategry. dimensions.push({ index: i }); } } // Implement public methods: var rawItemGetter = Object(_dataProvider_js__WEBPACK_IMPORTED_MODULE_3__["getRawSourceItemGetter"])(sourceFormat, _util_types_js__WEBPACK_IMPORTED_MODULE_0__["SERIES_LAYOUT_BY_COLUMN"]); if (externalTransform.__isBuiltIn) { extSource.getRawDataItem = function (dataIndex) { return rawItemGetter(data, sourceHeaderCount, dimensions, dataIndex); }; extSource.getRawData = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["bind"])(getRawData, null, internalSource); } extSource.cloneRawData = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["bind"])(cloneRawData, null, internalSource); var rawCounter = Object(_dataProvider_js__WEBPACK_IMPORTED_MODULE_3__["getRawSourceDataCounter"])(sourceFormat, _util_types_js__WEBPACK_IMPORTED_MODULE_0__["SERIES_LAYOUT_BY_COLUMN"]); extSource.count = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["bind"])(rawCounter, null, data, sourceHeaderCount, dimensions); var rawValueGetter = Object(_dataProvider_js__WEBPACK_IMPORTED_MODULE_3__["getRawSourceValueGetter"])(sourceFormat); extSource.retrieveValue = function (dataIndex, dimIndex) { var rawItem = rawItemGetter(data, sourceHeaderCount, dimensions, dataIndex); return retrieveValueFromItem(rawItem, dimIndex); }; var retrieveValueFromItem = extSource.retrieveValueFromItem = function (dataItem, dimIndex) { if (dataItem == null) { return; } var dimDef = dimensions[dimIndex]; // When `dimIndex` is `null`, `rawValueGetter` return the whole item. if (dimDef) { return rawValueGetter(dataItem, dimIndex, dimDef.name); } }; extSource.getDimensionInfo = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["bind"])(getDimensionInfo, null, dimensions, dimsByName); extSource.cloneAllDimensionInfo = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["bind"])(cloneAllDimensionInfo, null, dimensions); return extSource; } function getRawData(upstream) { var sourceFormat = upstream.sourceFormat; if (!isSupportedSourceFormat(sourceFormat)) { var errMsg = ''; if (true) { errMsg = '`getRawData` is not supported in source format ' + sourceFormat; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errMsg); } return upstream.data; } function cloneRawData(upstream) { var sourceFormat = upstream.sourceFormat; var data = upstream.data; if (!isSupportedSourceFormat(sourceFormat)) { var errMsg = ''; if (true) { errMsg = '`cloneRawData` is not supported in source format ' + sourceFormat; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errMsg); } if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_0__["SOURCE_FORMAT_ARRAY_ROWS"]) { var result = []; for (var i = 0, len = data.length; i < len; i++) { // Not strictly clone for performance result.push(data[i].slice()); } return result; } else if (sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_0__["SOURCE_FORMAT_OBJECT_ROWS"]) { var result = []; for (var i = 0, len = data.length; i < len; i++) { // Not strictly clone for performance result.push(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["extend"])({}, data[i])); } return result; } } function getDimensionInfo(dimensions, dimsByName, dim) { if (dim == null) { return; } // Keep the same logic as `List::getDimension` did. if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isNumber"])(dim) // If being a number-like string but not being defined a dimension name. || !isNaN(dim) && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["hasOwn"])(dimsByName, dim)) { return dimensions[dim]; } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["hasOwn"])(dimsByName, dim)) { return dimsByName[dim]; } } function cloneAllDimensionInfo(dimensions) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["clone"])(dimensions); } var externalTransformMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["createHashMap"])(); function registerExternalTransform(externalTransform) { externalTransform = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["clone"])(externalTransform); var type = externalTransform.type; var errMsg = ''; if (!type) { if (true) { errMsg = 'Must have a `type` when `registerTransform`.'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errMsg); } var typeParsed = type.split(':'); if (typeParsed.length !== 2) { if (true) { errMsg = 'Name must include namespace like "ns:regression".'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errMsg); } // Namespace 'echarts:xxx' is official namespace, where the transforms should // be called directly via 'xxx' rather than 'echarts:xxx'. var isBuiltIn = false; if (typeParsed[0] === 'echarts') { type = typeParsed[1]; isBuiltIn = true; } externalTransform.__isBuiltIn = isBuiltIn; externalTransformMap.set(type, externalTransform); } function applyDataTransform(rawTransOption, sourceList, infoForPrint) { var pipedTransOption = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_1__["normalizeToArray"])(rawTransOption); var pipeLen = pipedTransOption.length; var errMsg = ''; if (!pipeLen) { if (true) { errMsg = 'If `transform` declared, it should at least contain one transform.'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errMsg); } for (var i = 0, len = pipeLen; i < len; i++) { var transOption = pipedTransOption[i]; sourceList = applySingleDataTransform(transOption, sourceList, infoForPrint, pipeLen === 1 ? null : i); // piped transform only support single input, except the fist one. // piped transform only support single output, except the last one. if (i !== len - 1) { sourceList.length = Math.max(sourceList.length, 1); } } return sourceList; } function applySingleDataTransform(transOption, upSourceList, infoForPrint, // If `pipeIndex` is null/undefined, no piped transform. pipeIndex) { var errMsg = ''; if (!upSourceList.length) { if (true) { errMsg = 'Must have at least one upstream dataset.'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errMsg); } if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isObject"])(transOption)) { if (true) { errMsg = 'transform declaration must be an object rather than ' + typeof transOption + '.'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errMsg); } var transType = transOption.type; var externalTransform = externalTransformMap.get(transType); if (!externalTransform) { if (true) { errMsg = 'Can not find transform on type "' + transType + '".'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errMsg); } // Prepare source var extUpSourceList = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["map"])(upSourceList, function (upSource) { return createExternalSource(upSource, externalTransform); }); var resultList = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_1__["normalizeToArray"])(externalTransform.transform({ upstream: extUpSourceList[0], upstreamList: extUpSourceList, config: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["clone"])(transOption.config) })); if (true) { if (transOption.print) { var printStrArr = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["map"])(resultList, function (extSource) { var pipeIndexStr = pipeIndex != null ? ' === pipe index: ' + pipeIndex : ''; return ['=== dataset index: ' + infoForPrint.datasetIndex + pipeIndexStr + ' ===', '- transform result data:', Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["makePrintable"])(extSource.data), '- transform result dimensions:', Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["makePrintable"])(extSource.dimensions)].join('\n'); }).join('\n'); Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["log"])(printStrArr); } } return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["map"])(resultList, function (result, resultIndex) { var errMsg = ''; if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isObject"])(result)) { if (true) { errMsg = 'A transform should not return some empty results.'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errMsg); } if (!result.data) { if (true) { errMsg = 'Transform result data should be not be null or undefined'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errMsg); } var sourceFormat = Object(_Source_js__WEBPACK_IMPORTED_MODULE_6__["detectSourceFormat"])(result.data); if (!isSupportedSourceFormat(sourceFormat)) { if (true) { errMsg = 'Transform result data should be array rows or object rows.'; } Object(_util_log_js__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errMsg); } var resultMetaRawOption; var firstUpSource = upSourceList[0]; /** * Intuitively, the end users known the content of the original `dataset.source`, * calucating the transform result in mind. * Suppose the original `dataset.source` is: * ```js * [ * ['product', '2012', '2013', '2014', '2015'], * ['AAA', 41.1, 30.4, 65.1, 53.3], * ['BBB', 86.5, 92.1, 85.7, 83.1], * ['CCC', 24.1, 67.2, 79.5, 86.4] * ] * ``` * The dimension info have to be detected from the source data. * Some of the transformers (like filter, sort) will follow the dimension info * of upstream, while others use new dimensions (like aggregate). * Transformer can output a field `dimensions` to define the its own output dimensions. * We also allow transformers to ignore the output `dimensions` field, and * inherit the upstream dimensions definition. It can reduce the burden of handling * dimensions in transformers. * * See also [DIMENSION_INHERIT_RULE] in `sourceManager.ts`. */ if (firstUpSource && resultIndex === 0 // If transformer returns `dimensions`, it means that the transformer has different // dimensions definitions. We do not inherit anything from upstream. && !result.dimensions) { var startIndex = firstUpSource.startIndex; // We copy the header of upstream to the result, because: // (1) The returned data always does not contain header line and can not be used // as dimension-detection. In this case we can not use "detected dimensions" of // upstream directly, because it might be detected based on different `seriesLayoutBy`. // (2) We should support that the series read the upstream source in `seriesLayoutBy: 'row'`. // So the original detected header should be add to the result, otherwise they can not be read. if (startIndex) { result.data = firstUpSource.data.slice(0, startIndex).concat(result.data); } resultMetaRawOption = { seriesLayoutBy: _util_types_js__WEBPACK_IMPORTED_MODULE_0__["SERIES_LAYOUT_BY_COLUMN"], sourceHeader: startIndex, dimensions: firstUpSource.metaRawOption.dimensions }; } else { resultMetaRawOption = { seriesLayoutBy: _util_types_js__WEBPACK_IMPORTED_MODULE_0__["SERIES_LAYOUT_BY_COLUMN"], sourceHeader: 0, dimensions: result.dimensions }; } return Object(_Source_js__WEBPACK_IMPORTED_MODULE_6__["createSource"])(result.data, resultMetaRawOption, null); }); } function isSupportedSourceFormat(sourceFormat) { return sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_0__["SOURCE_FORMAT_ARRAY_ROWS"] || sourceFormat === _util_types_js__WEBPACK_IMPORTED_MODULE_0__["SOURCE_FORMAT_OBJECT_ROWS"]; } /***/ }), /***/ "./node_modules/echarts/lib/export/api.js": /*!************************************************!*\ !*** ./node_modules/echarts/lib/export/api.js ***! \************************************************/ /*! exports provided: zrender, matrix, vector, zrUtil, color, throttle, helper, use, setPlatformAPI, parseGeoJSON, parseGeoJson, number, time, graphic, format, util, env, List, Model, Axis, ComponentModel, ComponentView, SeriesModel, ChartView, innerDrawElementOnCanvas, extendComponentModel, extendComponentView, extendSeriesModel, extendChartView */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extendComponentModel", function() { return extendComponentModel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extendComponentView", function() { return extendComponentView; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extendSeriesModel", function() { return extendSeriesModel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extendChartView", function() { return extendChartView; }); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentModel", function() { return _model_Component_js__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentView", function() { return _view_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SeriesModel", function() { return _model_Series_js__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChartView", function() { return _view_Chart_js__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../data/SeriesData.js */ "./node_modules/echarts/lib/data/SeriesData.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function() { return _data_SeriesData_js__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var zrender_lib_zrender_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/zrender.js */ "./node_modules/zrender/lib/zrender.js"); /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "zrender", function() { return zrender_lib_zrender_js__WEBPACK_IMPORTED_MODULE_5__; }); /* harmony import */ var zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! zrender/lib/core/matrix.js */ "./node_modules/zrender/lib/core/matrix.js"); /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "matrix", function() { return zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_6__; }); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "vector", function() { return zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_7__; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "zrUtil", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_8__; }); /* harmony import */ var zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! zrender/lib/tool/color.js */ "./node_modules/zrender/lib/tool/color.js"); /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "color", function() { return zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_9__; }); /* harmony import */ var _util_throttle_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../util/throttle.js */ "./node_modules/echarts/lib/util/throttle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "throttle", function() { return _util_throttle_js__WEBPACK_IMPORTED_MODULE_10__["throttle"]; }); /* harmony import */ var _api_helper_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./api/helper.js */ "./node_modules/echarts/lib/export/api/helper.js"); /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "helper", function() { return _api_helper_js__WEBPACK_IMPORTED_MODULE_11__; }); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "use", function() { return _extension_js__WEBPACK_IMPORTED_MODULE_12__["use"]; }); /* harmony import */ var zrender_lib_core_platform_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! zrender/lib/core/platform.js */ "./node_modules/zrender/lib/core/platform.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setPlatformAPI", function() { return zrender_lib_core_platform_js__WEBPACK_IMPORTED_MODULE_13__["setPlatformAPI"]; }); /* harmony import */ var _coord_geo_parseGeoJson_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../coord/geo/parseGeoJson.js */ "./node_modules/echarts/lib/coord/geo/parseGeoJson.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseGeoJSON", function() { return _coord_geo_parseGeoJson_js__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseGeoJson", function() { return _coord_geo_parseGeoJson_js__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony import */ var _api_number_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./api/number.js */ "./node_modules/echarts/lib/export/api/number.js"); /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "number", function() { return _api_number_js__WEBPACK_IMPORTED_MODULE_15__; }); /* harmony import */ var _api_time_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./api/time.js */ "./node_modules/echarts/lib/export/api/time.js"); /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "time", function() { return _api_time_js__WEBPACK_IMPORTED_MODULE_16__; }); /* harmony import */ var _api_graphic_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./api/graphic.js */ "./node_modules/echarts/lib/export/api/graphic.js"); /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "graphic", function() { return _api_graphic_js__WEBPACK_IMPORTED_MODULE_17__; }); /* harmony import */ var _api_format_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./api/format.js */ "./node_modules/echarts/lib/export/api/format.js"); /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "format", function() { return _api_format_js__WEBPACK_IMPORTED_MODULE_18__; }); /* harmony import */ var _api_util_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./api/util.js */ "./node_modules/echarts/lib/export/api/util.js"); /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "util", function() { return _api_util_js__WEBPACK_IMPORTED_MODULE_19__; }); /* harmony import */ var zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! zrender/lib/core/env.js */ "./node_modules/zrender/lib/core/env.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "env", function() { return zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_20__["default"]; }); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Model", function() { return _model_Model_js__WEBPACK_IMPORTED_MODULE_21__["default"]; }); /* harmony import */ var _coord_Axis_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../coord/Axis.js */ "./node_modules/echarts/lib/coord/Axis.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Axis", function() { return _coord_Axis_js__WEBPACK_IMPORTED_MODULE_22__["default"]; }); /* harmony import */ var zrender_lib_canvas_graphic_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! zrender/lib/canvas/graphic.js */ "./node_modules/zrender/lib/canvas/graphic.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "innerDrawElementOnCanvas", function() { return zrender_lib_canvas_graphic_js__WEBPACK_IMPORTED_MODULE_23__["brushSingle"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // These APIs are for more advanced usages // For example extend charts and components, creating graphic elements, formatting. // --------------------- Helper Methods --------------------- // --------------------- Export for Extension Usage --------------------- // export {SeriesData}; // TODO: Compatitable with exists echarts-gl code // Only for GL // --------------------- Deprecated Extension Methods --------------------- // Should use `ComponentModel.extend` or `class XXXX extend ComponentModel` to create class. // Then use `registerComponentModel` in `install` parameter when `use` this extension. For example: // class Bar3DModel extends ComponentModel {} // export function install(registers) { registers.registerComponentModel(Bar3DModel); } // echarts.use(install); function extendComponentModel(proto) { var Model = _model_Component_js__WEBPACK_IMPORTED_MODULE_0__["default"].extend(proto); _model_Component_js__WEBPACK_IMPORTED_MODULE_0__["default"].registerClass(Model); return Model; } function extendComponentView(proto) { var View = _view_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"].extend(proto); _view_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"].registerClass(View); return View; } function extendSeriesModel(proto) { var Model = _model_Series_js__WEBPACK_IMPORTED_MODULE_2__["default"].extend(proto); _model_Series_js__WEBPACK_IMPORTED_MODULE_2__["default"].registerClass(Model); return Model; } function extendChartView(proto) { var View = _view_Chart_js__WEBPACK_IMPORTED_MODULE_3__["default"].extend(proto); _view_Chart_js__WEBPACK_IMPORTED_MODULE_3__["default"].registerClass(View); return View; } /***/ }), /***/ "./node_modules/echarts/lib/export/api/format.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/export/api/format.js ***! \*******************************************************/ /*! exports provided: addCommas, toCamelCase, normalizeCssArray, encodeHTML, formatTpl, getTooltipMarker, formatTime, capitalFirst, truncateText, getTextRect */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "addCommas", function() { return _util_format_js__WEBPACK_IMPORTED_MODULE_0__["addCommas"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toCamelCase", function() { return _util_format_js__WEBPACK_IMPORTED_MODULE_0__["toCamelCase"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "normalizeCssArray", function() { return _util_format_js__WEBPACK_IMPORTED_MODULE_0__["normalizeCssArray"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "encodeHTML", function() { return _util_format_js__WEBPACK_IMPORTED_MODULE_0__["encodeHTML"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatTpl", function() { return _util_format_js__WEBPACK_IMPORTED_MODULE_0__["formatTpl"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTooltipMarker", function() { return _util_format_js__WEBPACK_IMPORTED_MODULE_0__["getTooltipMarker"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatTime", function() { return _util_format_js__WEBPACK_IMPORTED_MODULE_0__["formatTime"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "capitalFirst", function() { return _util_format_js__WEBPACK_IMPORTED_MODULE_0__["capitalFirst"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "truncateText", function() { return _util_format_js__WEBPACK_IMPORTED_MODULE_0__["truncateText"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTextRect", function() { return _util_format_js__WEBPACK_IMPORTED_MODULE_0__["getTextRect"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /***/ }), /***/ "./node_modules/echarts/lib/export/api/graphic.js": /*!********************************************************!*\ !*** ./node_modules/echarts/lib/export/api/graphic.js ***! \********************************************************/ /*! exports provided: extendShape, extendPath, makePath, makeImage, mergePath, resizePath, createIcon, updateProps, initProps, getTransform, clipPointsByRect, clipRectByRect, registerShape, getShapeClass, Group, Image, Text, Circle, Ellipse, Sector, Ring, Polygon, Polyline, Rect, Line, BezierCurve, Arc, IncrementalDisplayable, CompoundPath, LinearGradient, RadialGradient, BoundingRect */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendShape", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["extendShape"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendPath", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["extendPath"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makePath", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["makePath"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeImage", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["makeImage"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergePath", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["mergePath"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resizePath", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["resizePath"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createIcon", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["createIcon"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "updateProps", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["updateProps"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initProps", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["initProps"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTransform", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["getTransform"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clipPointsByRect", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["clipPointsByRect"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clipRectByRect", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["clipRectByRect"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerShape", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["registerShape"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getShapeClass", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["getShapeClass"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Group", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Group"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Image", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Image"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Text", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Text"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Circle", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Circle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Ellipse", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Ellipse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sector", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Sector"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Ring", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Ring"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Polygon", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Polygon"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Polyline", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Polyline"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rect", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Rect"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Line", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Line"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BezierCurve", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["BezierCurve"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Arc", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Arc"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IncrementalDisplayable", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["IncrementalDisplayable"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompoundPath", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["CompoundPath"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LinearGradient", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["LinearGradient"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadialGradient", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["RadialGradient"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BoundingRect", function() { return _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["BoundingRect"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /***/ }), /***/ "./node_modules/echarts/lib/export/api/helper.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/export/api/helper.js ***! \*******************************************************/ /*! exports provided: createList, getLayoutRect, createDimensions, dataStack, createSymbol, createScale, mixinAxisModelCommonMethods, getECData, enableHoverEmphasis, createTextStyle */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createList", function() { return createList; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataStack", function() { return dataStack; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createScale", function() { return createScale; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixinAxisModelCommonMethods", function() { return mixinAxisModelCommonMethods; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createTextStyle", function() { return createTextStyle; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _chart_helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../chart/helper/createSeriesData.js */ "./node_modules/echarts/lib/chart/helper/createSeriesData.js"); /* harmony import */ var _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../coord/axisHelper.js */ "./node_modules/echarts/lib/coord/axisHelper.js"); /* harmony import */ var _coord_axisModelCommonMixin_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../coord/axisModelCommonMixin.js */ "./node_modules/echarts/lib/coord/axisModelCommonMixin.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLayoutRect", function() { return _util_layout_js__WEBPACK_IMPORTED_MODULE_5__["getLayoutRect"]; }); /* harmony import */ var _data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../data/helper/dataStackHelper.js */ "./node_modules/echarts/lib/data/helper/dataStackHelper.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getECData", function() { return _util_innerStore_js__WEBPACK_IMPORTED_MODULE_7__["getECData"]; }); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var _data_helper_createDimensions_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../data/helper/createDimensions.js */ "./node_modules/echarts/lib/data/helper/createDimensions.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createDimensions", function() { return _data_helper_createDimensions_js__WEBPACK_IMPORTED_MODULE_9__["createDimensions"]; }); /* harmony import */ var _util_symbol_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createSymbol", function() { return _util_symbol_js__WEBPACK_IMPORTED_MODULE_10__["createSymbol"]; }); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "enableHoverEmphasis", function() { return _util_states_js__WEBPACK_IMPORTED_MODULE_11__["enableHoverEmphasis"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * This module exposes helper functions for developing extensions. */ // import createGraphFromNodeEdge from './chart/helper/createGraphFromNodeEdge.js'; /** * Create a multi dimension List structure from seriesModel. */ function createList(seriesModel) { return Object(_chart_helper_createSeriesData_js__WEBPACK_IMPORTED_MODULE_1__["default"])(null, seriesModel); } // export function createGraph(seriesModel) { // let nodes = seriesModel.get('data'); // let links = seriesModel.get('links'); // return createGraphFromNodeEdge(nodes, links, seriesModel); // } var dataStack = { isDimensionStacked: _data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_6__["isDimensionStacked"], enableDataStack: _data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_6__["enableDataStack"], getStackedDimension: _data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_6__["getStackedDimension"] }; /** * Create a symbol element with given symbol configuration: shape, x, y, width, height, color * @param {string} symbolDesc * @param {number} x * @param {number} y * @param {number} w * @param {number} h * @param {string} color */ /** * Create scale * @param {Array.} dataExtent * @param {Object|module:echarts/Model} option If `optoin.type` * is secified, it can only be `'value'` currently. */ function createScale(dataExtent, option) { var axisModel = option; if (!(option instanceof _model_Model_js__WEBPACK_IMPORTED_MODULE_4__["default"])) { axisModel = new _model_Model_js__WEBPACK_IMPORTED_MODULE_4__["default"](option); // FIXME // Currently AxisModelCommonMixin has nothing to do with the // the requirements of `axisHelper.createScaleByModel`. For // example the methods `getCategories` and `getOrdinalMeta` // are required for `'category'` axis, and ecModel is required // for `'time'` axis. But occasionally echarts-gl happened // to only use `'value'` axis. // zrUtil.mixin(axisModel, AxisModelCommonMixin); } var scale = _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_2__["createScaleByModel"](axisModel); scale.setExtent(dataExtent[0], dataExtent[1]); _coord_axisHelper_js__WEBPACK_IMPORTED_MODULE_2__["niceScaleExtent"](scale, axisModel); return scale; } /** * Mixin common methods to axis model, * * Include methods * `getFormattedLabels() => Array.` * `getCategories() => Array.` * `getMin(origin: boolean) => number` * `getMax(origin: boolean) => number` * `getNeedCrossZero() => boolean` */ function mixinAxisModelCommonMethods(Model) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["mixin"](Model, _coord_axisModelCommonMixin_js__WEBPACK_IMPORTED_MODULE_3__["AxisModelCommonMixin"]); } function createTextStyle(textStyleModel, opts) { opts = opts || {}; return Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_8__["createTextStyle"])(textStyleModel, null, null, opts.state !== 'normal'); } /***/ }), /***/ "./node_modules/echarts/lib/export/api/number.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/export/api/number.js ***! \*******************************************************/ /*! exports provided: linearMap, round, asc, getPrecision, getPrecisionSafe, getPixelPrecision, getPercentWithPrecision, MAX_SAFE_INTEGER, remRadian, isRadianAroundZero, parseDate, quantity, quantityExponent, nice, quantile, reformIntervals, isNumeric, numericToNumber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linearMap", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["linearMap"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "round", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["round"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "asc", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["asc"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPrecision", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["getPrecision"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPrecisionSafe", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["getPrecisionSafe"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPixelPrecision", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["getPixelPrecision"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getPercentWithPrecision", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["getPercentWithPrecision"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MAX_SAFE_INTEGER", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["MAX_SAFE_INTEGER"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "remRadian", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["remRadian"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isRadianAroundZero", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["isRadianAroundZero"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseDate", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["parseDate"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantity", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["quantity"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantityExponent", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["quantityExponent"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "nice", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["nice"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantile", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["quantile"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "reformIntervals", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["reformIntervals"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isNumeric", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["isNumeric"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "numericToNumber", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["numericToNumber"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /***/ }), /***/ "./node_modules/echarts/lib/export/api/time.js": /*!*****************************************************!*\ !*** ./node_modules/echarts/lib/export/api/time.js ***! \*****************************************************/ /*! exports provided: parse, format */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return _util_number_js__WEBPACK_IMPORTED_MODULE_0__["parseDate"]; }); /* harmony import */ var _util_time_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/time.js */ "./node_modules/echarts/lib/util/time.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "format", function() { return _util_time_js__WEBPACK_IMPORTED_MODULE_1__["format"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /***/ }), /***/ "./node_modules/echarts/lib/export/api/util.js": /*!*****************************************************!*\ !*** ./node_modules/echarts/lib/export/api/util.js ***! \*****************************************************/ /*! exports provided: map, each, indexOf, inherits, reduce, filter, bind, curry, isArray, isString, isObject, isFunction, extend, defaults, clone, merge */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "map", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "each", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "indexOf", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "inherits", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["inherits"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "reduce", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["reduce"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "filter", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["filter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bind", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curry", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isArray", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isString", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isObject", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isFunction", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extend", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaults", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clone", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["merge"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /***/ }), /***/ "./node_modules/echarts/lib/export/charts.js": /*!***************************************************!*\ !*** ./node_modules/echarts/lib/export/charts.js ***! \***************************************************/ /*! exports provided: LineChart, BarChart, PieChart, ScatterChart, RadarChart, MapChart, TreeChart, TreemapChart, GraphChart, GaugeChart, FunnelChart, ParallelChart, SankeyChart, BoxplotChart, CandlestickChart, EffectScatterChart, LinesChart, HeatmapChart, PictorialBarChart, ThemeRiverChart, SunburstChart, CustomChart */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _chart_line_install_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../chart/line/install.js */ "./node_modules/echarts/lib/chart/line/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineChart", function() { return _chart_line_install_js__WEBPACK_IMPORTED_MODULE_0__["install"]; }); /* harmony import */ var _chart_bar_install_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../chart/bar/install.js */ "./node_modules/echarts/lib/chart/bar/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BarChart", function() { return _chart_bar_install_js__WEBPACK_IMPORTED_MODULE_1__["install"]; }); /* harmony import */ var _chart_pie_install_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../chart/pie/install.js */ "./node_modules/echarts/lib/chart/pie/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieChart", function() { return _chart_pie_install_js__WEBPACK_IMPORTED_MODULE_2__["install"]; }); /* harmony import */ var _chart_scatter_install_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../chart/scatter/install.js */ "./node_modules/echarts/lib/chart/scatter/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScatterChart", function() { return _chart_scatter_install_js__WEBPACK_IMPORTED_MODULE_3__["install"]; }); /* harmony import */ var _chart_radar_install_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../chart/radar/install.js */ "./node_modules/echarts/lib/chart/radar/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadarChart", function() { return _chart_radar_install_js__WEBPACK_IMPORTED_MODULE_4__["install"]; }); /* harmony import */ var _chart_map_install_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../chart/map/install.js */ "./node_modules/echarts/lib/chart/map/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MapChart", function() { return _chart_map_install_js__WEBPACK_IMPORTED_MODULE_5__["install"]; }); /* harmony import */ var _chart_tree_install_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../chart/tree/install.js */ "./node_modules/echarts/lib/chart/tree/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeChart", function() { return _chart_tree_install_js__WEBPACK_IMPORTED_MODULE_6__["install"]; }); /* harmony import */ var _chart_treemap_install_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../chart/treemap/install.js */ "./node_modules/echarts/lib/chart/treemap/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreemapChart", function() { return _chart_treemap_install_js__WEBPACK_IMPORTED_MODULE_7__["install"]; }); /* harmony import */ var _chart_graph_install_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../chart/graph/install.js */ "./node_modules/echarts/lib/chart/graph/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphChart", function() { return _chart_graph_install_js__WEBPACK_IMPORTED_MODULE_8__["install"]; }); /* harmony import */ var _chart_gauge_install_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../chart/gauge/install.js */ "./node_modules/echarts/lib/chart/gauge/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GaugeChart", function() { return _chart_gauge_install_js__WEBPACK_IMPORTED_MODULE_9__["install"]; }); /* harmony import */ var _chart_funnel_install_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../chart/funnel/install.js */ "./node_modules/echarts/lib/chart/funnel/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FunnelChart", function() { return _chart_funnel_install_js__WEBPACK_IMPORTED_MODULE_10__["install"]; }); /* harmony import */ var _chart_parallel_install_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../chart/parallel/install.js */ "./node_modules/echarts/lib/chart/parallel/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParallelChart", function() { return _chart_parallel_install_js__WEBPACK_IMPORTED_MODULE_11__["install"]; }); /* harmony import */ var _chart_sankey_install_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../chart/sankey/install.js */ "./node_modules/echarts/lib/chart/sankey/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SankeyChart", function() { return _chart_sankey_install_js__WEBPACK_IMPORTED_MODULE_12__["install"]; }); /* harmony import */ var _chart_boxplot_install_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../chart/boxplot/install.js */ "./node_modules/echarts/lib/chart/boxplot/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BoxplotChart", function() { return _chart_boxplot_install_js__WEBPACK_IMPORTED_MODULE_13__["install"]; }); /* harmony import */ var _chart_candlestick_install_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../chart/candlestick/install.js */ "./node_modules/echarts/lib/chart/candlestick/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CandlestickChart", function() { return _chart_candlestick_install_js__WEBPACK_IMPORTED_MODULE_14__["install"]; }); /* harmony import */ var _chart_effectScatter_install_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../chart/effectScatter/install.js */ "./node_modules/echarts/lib/chart/effectScatter/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EffectScatterChart", function() { return _chart_effectScatter_install_js__WEBPACK_IMPORTED_MODULE_15__["install"]; }); /* harmony import */ var _chart_lines_install_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../chart/lines/install.js */ "./node_modules/echarts/lib/chart/lines/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LinesChart", function() { return _chart_lines_install_js__WEBPACK_IMPORTED_MODULE_16__["install"]; }); /* harmony import */ var _chart_heatmap_install_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../chart/heatmap/install.js */ "./node_modules/echarts/lib/chart/heatmap/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeatmapChart", function() { return _chart_heatmap_install_js__WEBPACK_IMPORTED_MODULE_17__["install"]; }); /* harmony import */ var _chart_bar_installPictorialBar_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../chart/bar/installPictorialBar.js */ "./node_modules/echarts/lib/chart/bar/installPictorialBar.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PictorialBarChart", function() { return _chart_bar_installPictorialBar_js__WEBPACK_IMPORTED_MODULE_18__["install"]; }); /* harmony import */ var _chart_themeRiver_install_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../chart/themeRiver/install.js */ "./node_modules/echarts/lib/chart/themeRiver/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThemeRiverChart", function() { return _chart_themeRiver_install_js__WEBPACK_IMPORTED_MODULE_19__["install"]; }); /* harmony import */ var _chart_sunburst_install_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../chart/sunburst/install.js */ "./node_modules/echarts/lib/chart/sunburst/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SunburstChart", function() { return _chart_sunburst_install_js__WEBPACK_IMPORTED_MODULE_20__["install"]; }); /* harmony import */ var _chart_custom_install_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../chart/custom/install.js */ "./node_modules/echarts/lib/chart/custom/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomChart", function() { return _chart_custom_install_js__WEBPACK_IMPORTED_MODULE_21__["install"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // In somehow. If we export like // export * as LineChart './chart/line/install' // The exported code will be transformed to // import * as LineChart_1 './chart/line/install'; export {LineChart_1 as LineChart}; // Treeshaking in webpack will not work even if we configured sideEffects to false in package.json /***/ }), /***/ "./node_modules/echarts/lib/export/components.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/export/components.js ***! \*******************************************************/ /*! exports provided: GridSimpleComponent, GridComponent, PolarComponent, RadarComponent, GeoComponent, SingleAxisComponent, ParallelComponent, CalendarComponent, GraphicComponent, ToolboxComponent, TooltipComponent, AxisPointerComponent, BrushComponent, TitleComponent, TimelineComponent, MarkPointComponent, MarkLineComponent, MarkAreaComponent, LegendComponent, LegendScrollComponent, LegendPlainComponent, DataZoomComponent, DataZoomInsideComponent, DataZoomSliderComponent, VisualMapComponent, VisualMapContinuousComponent, VisualMapPiecewiseComponent, AriaComponent, TransformComponent, DatasetComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _component_grid_installSimple_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../component/grid/installSimple.js */ "./node_modules/echarts/lib/component/grid/installSimple.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GridSimpleComponent", function() { return _component_grid_installSimple_js__WEBPACK_IMPORTED_MODULE_0__["install"]; }); /* harmony import */ var _component_grid_install_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../component/grid/install.js */ "./node_modules/echarts/lib/component/grid/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GridComponent", function() { return _component_grid_install_js__WEBPACK_IMPORTED_MODULE_1__["install"]; }); /* harmony import */ var _component_polar_install_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../component/polar/install.js */ "./node_modules/echarts/lib/component/polar/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PolarComponent", function() { return _component_polar_install_js__WEBPACK_IMPORTED_MODULE_2__["install"]; }); /* harmony import */ var _component_radar_install_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../component/radar/install.js */ "./node_modules/echarts/lib/component/radar/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadarComponent", function() { return _component_radar_install_js__WEBPACK_IMPORTED_MODULE_3__["install"]; }); /* harmony import */ var _component_geo_install_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../component/geo/install.js */ "./node_modules/echarts/lib/component/geo/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GeoComponent", function() { return _component_geo_install_js__WEBPACK_IMPORTED_MODULE_4__["install"]; }); /* harmony import */ var _component_singleAxis_install_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../component/singleAxis/install.js */ "./node_modules/echarts/lib/component/singleAxis/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SingleAxisComponent", function() { return _component_singleAxis_install_js__WEBPACK_IMPORTED_MODULE_5__["install"]; }); /* harmony import */ var _component_parallel_install_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../component/parallel/install.js */ "./node_modules/echarts/lib/component/parallel/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParallelComponent", function() { return _component_parallel_install_js__WEBPACK_IMPORTED_MODULE_6__["install"]; }); /* harmony import */ var _component_calendar_install_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../component/calendar/install.js */ "./node_modules/echarts/lib/component/calendar/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CalendarComponent", function() { return _component_calendar_install_js__WEBPACK_IMPORTED_MODULE_7__["install"]; }); /* harmony import */ var _component_graphic_install_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../component/graphic/install.js */ "./node_modules/echarts/lib/component/graphic/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphicComponent", function() { return _component_graphic_install_js__WEBPACK_IMPORTED_MODULE_8__["install"]; }); /* harmony import */ var _component_toolbox_install_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../component/toolbox/install.js */ "./node_modules/echarts/lib/component/toolbox/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxComponent", function() { return _component_toolbox_install_js__WEBPACK_IMPORTED_MODULE_9__["install"]; }); /* harmony import */ var _component_tooltip_install_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../component/tooltip/install.js */ "./node_modules/echarts/lib/component/tooltip/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooltipComponent", function() { return _component_tooltip_install_js__WEBPACK_IMPORTED_MODULE_10__["install"]; }); /* harmony import */ var _component_axisPointer_install_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../component/axisPointer/install.js */ "./node_modules/echarts/lib/component/axisPointer/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AxisPointerComponent", function() { return _component_axisPointer_install_js__WEBPACK_IMPORTED_MODULE_11__["install"]; }); /* harmony import */ var _component_brush_install_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../component/brush/install.js */ "./node_modules/echarts/lib/component/brush/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BrushComponent", function() { return _component_brush_install_js__WEBPACK_IMPORTED_MODULE_12__["install"]; }); /* harmony import */ var _component_title_install_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../component/title/install.js */ "./node_modules/echarts/lib/component/title/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TitleComponent", function() { return _component_title_install_js__WEBPACK_IMPORTED_MODULE_13__["install"]; }); /* harmony import */ var _component_timeline_install_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../component/timeline/install.js */ "./node_modules/echarts/lib/component/timeline/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimelineComponent", function() { return _component_timeline_install_js__WEBPACK_IMPORTED_MODULE_14__["install"]; }); /* harmony import */ var _component_marker_installMarkPoint_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../component/marker/installMarkPoint.js */ "./node_modules/echarts/lib/component/marker/installMarkPoint.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MarkPointComponent", function() { return _component_marker_installMarkPoint_js__WEBPACK_IMPORTED_MODULE_15__["install"]; }); /* harmony import */ var _component_marker_installMarkLine_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../component/marker/installMarkLine.js */ "./node_modules/echarts/lib/component/marker/installMarkLine.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MarkLineComponent", function() { return _component_marker_installMarkLine_js__WEBPACK_IMPORTED_MODULE_16__["install"]; }); /* harmony import */ var _component_marker_installMarkArea_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../component/marker/installMarkArea.js */ "./node_modules/echarts/lib/component/marker/installMarkArea.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MarkAreaComponent", function() { return _component_marker_installMarkArea_js__WEBPACK_IMPORTED_MODULE_17__["install"]; }); /* harmony import */ var _component_legend_install_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../component/legend/install.js */ "./node_modules/echarts/lib/component/legend/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LegendComponent", function() { return _component_legend_install_js__WEBPACK_IMPORTED_MODULE_18__["install"]; }); /* harmony import */ var _component_legend_installLegendScroll_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../component/legend/installLegendScroll.js */ "./node_modules/echarts/lib/component/legend/installLegendScroll.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LegendScrollComponent", function() { return _component_legend_installLegendScroll_js__WEBPACK_IMPORTED_MODULE_19__["install"]; }); /* harmony import */ var _component_legend_installLegendPlain_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../component/legend/installLegendPlain.js */ "./node_modules/echarts/lib/component/legend/installLegendPlain.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LegendPlainComponent", function() { return _component_legend_installLegendPlain_js__WEBPACK_IMPORTED_MODULE_20__["install"]; }); /* harmony import */ var _component_dataZoom_install_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../component/dataZoom/install.js */ "./node_modules/echarts/lib/component/dataZoom/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataZoomComponent", function() { return _component_dataZoom_install_js__WEBPACK_IMPORTED_MODULE_21__["install"]; }); /* harmony import */ var _component_dataZoom_installDataZoomInside_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../component/dataZoom/installDataZoomInside.js */ "./node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataZoomInsideComponent", function() { return _component_dataZoom_installDataZoomInside_js__WEBPACK_IMPORTED_MODULE_22__["install"]; }); /* harmony import */ var _component_dataZoom_installDataZoomSlider_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../component/dataZoom/installDataZoomSlider.js */ "./node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataZoomSliderComponent", function() { return _component_dataZoom_installDataZoomSlider_js__WEBPACK_IMPORTED_MODULE_23__["install"]; }); /* harmony import */ var _component_visualMap_install_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../component/visualMap/install.js */ "./node_modules/echarts/lib/component/visualMap/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VisualMapComponent", function() { return _component_visualMap_install_js__WEBPACK_IMPORTED_MODULE_24__["install"]; }); /* harmony import */ var _component_visualMap_installVisualMapContinuous_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../component/visualMap/installVisualMapContinuous.js */ "./node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VisualMapContinuousComponent", function() { return _component_visualMap_installVisualMapContinuous_js__WEBPACK_IMPORTED_MODULE_25__["install"]; }); /* harmony import */ var _component_visualMap_installVisualMapPiecewise_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../component/visualMap/installVisualMapPiecewise.js */ "./node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VisualMapPiecewiseComponent", function() { return _component_visualMap_installVisualMapPiecewise_js__WEBPACK_IMPORTED_MODULE_26__["install"]; }); /* harmony import */ var _component_aria_install_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../component/aria/install.js */ "./node_modules/echarts/lib/component/aria/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AriaComponent", function() { return _component_aria_install_js__WEBPACK_IMPORTED_MODULE_27__["install"]; }); /* harmony import */ var _component_transform_install_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../component/transform/install.js */ "./node_modules/echarts/lib/component/transform/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TransformComponent", function() { return _component_transform_install_js__WEBPACK_IMPORTED_MODULE_28__["install"]; }); /* harmony import */ var _component_dataset_install_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../component/dataset/install.js */ "./node_modules/echarts/lib/component/dataset/install.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DatasetComponent", function() { return _component_dataset_install_js__WEBPACK_IMPORTED_MODULE_29__["install"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /***/ }), /***/ "./node_modules/echarts/lib/export/core.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/export/core.js ***! \*************************************************/ /*! exports provided: version, dependencies, PRIORITY, init, connect, disconnect, disConnect, dispose, getInstanceByDom, getInstanceById, registerTheme, registerPreprocessor, registerProcessor, registerPostInit, registerPostUpdate, registerUpdateLifecycle, registerAction, registerCoordinateSystem, getCoordinateSystemDimensions, registerLocale, registerLayout, registerVisual, registerLoading, setCanvasCreator, registerMap, getMap, registerTransform, dataTool, zrender, matrix, vector, zrUtil, color, throttle, helper, use, setPlatformAPI, parseGeoJSON, parseGeoJson, number, time, graphic, format, util, env, List, Model, Axis, ComponentModel, ComponentView, SeriesModel, ChartView, innerDrawElementOnCanvas, extendComponentModel, extendComponentView, extendSeriesModel, extendChartView */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/echarts.js */ "./node_modules/echarts/lib/core/echarts.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["version"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dependencies", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["dependencies"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PRIORITY", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["PRIORITY"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "init", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["init"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "connect", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["connect"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "disconnect", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["disconnect"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "disConnect", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["disConnect"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dispose", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["dispose"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getInstanceByDom", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["getInstanceByDom"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getInstanceById", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["getInstanceById"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerTheme", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerTheme"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerPreprocessor", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerPreprocessor"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerProcessor", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerProcessor"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerPostInit", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerPostInit"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerPostUpdate", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerPostUpdate"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerUpdateLifecycle", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerUpdateLifecycle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerAction", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerAction"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerCoordinateSystem", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerCoordinateSystem"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getCoordinateSystemDimensions", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["getCoordinateSystemDimensions"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerLocale", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerLocale"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerLayout", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerLayout"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerVisual", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerVisual"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerLoading", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerLoading"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setCanvasCreator", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["setCanvasCreator"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerMap", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerMap"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getMap", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["getMap"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "registerTransform", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerTransform"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dataTool", function() { return _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["dataTool"]; }); /* harmony import */ var _api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./api.js */ "./node_modules/echarts/lib/export/api.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zrender", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["zrender"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "matrix", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["matrix"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "vector", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["vector"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zrUtil", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["zrUtil"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "color", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["color"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "throttle", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["throttle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "helper", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["helper"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "use", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["use"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setPlatformAPI", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["setPlatformAPI"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseGeoJSON", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["parseGeoJSON"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseGeoJson", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["parseGeoJson"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "number", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["number"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "time", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["time"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "graphic", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["graphic"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "format", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["format"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "util", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["util"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "env", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["env"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["List"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Model", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["Model"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Axis", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["Axis"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentModel", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["ComponentModel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentView", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["ComponentView"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SeriesModel", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["SeriesModel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChartView", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["ChartView"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "innerDrawElementOnCanvas", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["innerDrawElementOnCanvas"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendComponentModel", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["extendComponentModel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendComponentView", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["extendComponentView"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendSeriesModel", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["extendSeriesModel"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendChartView", function() { return _api_js__WEBPACK_IMPORTED_MODULE_1__["extendChartView"]; }); /* harmony import */ var _extension_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../extension.js */ "./node_modules/echarts/lib/extension.js"); /* harmony import */ var _label_installLabelLayout_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../label/installLabelLayout.js */ "./node_modules/echarts/lib/label/installLabelLayout.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Core API from echarts/src/echarts // Import label layout by default. // TODO will be treeshaked. Object(_extension_js__WEBPACK_IMPORTED_MODULE_2__["use"])(_label_installLabelLayout_js__WEBPACK_IMPORTED_MODULE_3__["installLabelLayout"]); /***/ }), /***/ "./node_modules/echarts/lib/export/features.js": /*!*****************************************************!*\ !*** ./node_modules/echarts/lib/export/features.js ***! \*****************************************************/ /*! exports provided: UniversalTransition, LabelLayout */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _animation_universalTransition_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../animation/universalTransition.js */ "./node_modules/echarts/lib/animation/universalTransition.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UniversalTransition", function() { return _animation_universalTransition_js__WEBPACK_IMPORTED_MODULE_0__["installUniversalTransition"]; }); /* harmony import */ var _label_installLabelLayout_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../label/installLabelLayout.js */ "./node_modules/echarts/lib/label/installLabelLayout.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LabelLayout", function() { return _label_installLabelLayout_js__WEBPACK_IMPORTED_MODULE_1__["installLabelLayout"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Module that exports complex but fancy features. /***/ }), /***/ "./node_modules/echarts/lib/export/renderers.js": /*!******************************************************!*\ !*** ./node_modules/echarts/lib/export/renderers.js ***! \******************************************************/ /*! exports provided: SVGRenderer, CanvasRenderer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _renderer_installSVGRenderer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../renderer/installSVGRenderer.js */ "./node_modules/echarts/lib/renderer/installSVGRenderer.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SVGRenderer", function() { return _renderer_installSVGRenderer_js__WEBPACK_IMPORTED_MODULE_0__["install"]; }); /* harmony import */ var _renderer_installCanvasRenderer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../renderer/installCanvasRenderer.js */ "./node_modules/echarts/lib/renderer/installCanvasRenderer.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CanvasRenderer", function() { return _renderer_installCanvasRenderer_js__WEBPACK_IMPORTED_MODULE_1__["install"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /***/ }), /***/ "./node_modules/echarts/lib/extension.js": /*!***********************************************!*\ !*** ./node_modules/echarts/lib/extension.js ***! \***********************************************/ /*! exports provided: use */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "use", function() { return use; }); /* harmony import */ var _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core/echarts.js */ "./node_modules/echarts/lib/core/echarts.js"); /* harmony import */ var _view_Component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./view/Component.js */ "./node_modules/echarts/lib/view/Component.js"); /* harmony import */ var _view_Chart_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./view/Chart.js */ "./node_modules/echarts/lib/view/Chart.js"); /* harmony import */ var _model_Component_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./model/Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _model_Series_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./model/Series.js */ "./node_modules/echarts/lib/model/Series.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _core_impl_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./core/impl.js */ "./node_modules/echarts/lib/core/impl.js"); /* harmony import */ var zrender_lib_zrender_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! zrender/lib/zrender.js */ "./node_modules/zrender/lib/zrender.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var extensions = []; var extensionRegisters = { registerPreprocessor: _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerPreprocessor"], registerProcessor: _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerProcessor"], registerPostInit: _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerPostInit"], registerPostUpdate: _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerPostUpdate"], registerUpdateLifecycle: _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerUpdateLifecycle"], registerAction: _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerAction"], registerCoordinateSystem: _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerCoordinateSystem"], registerLayout: _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerLayout"], registerVisual: _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerVisual"], registerTransform: _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerTransform"], registerLoading: _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerLoading"], registerMap: _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["registerMap"], registerImpl: _core_impl_js__WEBPACK_IMPORTED_MODULE_6__["registerImpl"], PRIORITY: _core_echarts_js__WEBPACK_IMPORTED_MODULE_0__["PRIORITY"], ComponentModel: _model_Component_js__WEBPACK_IMPORTED_MODULE_3__["default"], ComponentView: _view_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"], SeriesModel: _model_Series_js__WEBPACK_IMPORTED_MODULE_4__["default"], ChartView: _view_Chart_js__WEBPACK_IMPORTED_MODULE_2__["default"], // TODO Use ComponentModel and SeriesModel instead of Constructor registerComponentModel: function (ComponentModelClass) { _model_Component_js__WEBPACK_IMPORTED_MODULE_3__["default"].registerClass(ComponentModelClass); }, registerComponentView: function (ComponentViewClass) { _view_Component_js__WEBPACK_IMPORTED_MODULE_1__["default"].registerClass(ComponentViewClass); }, registerSeriesModel: function (SeriesModelClass) { _model_Series_js__WEBPACK_IMPORTED_MODULE_4__["default"].registerClass(SeriesModelClass); }, registerChartView: function (ChartViewClass) { _view_Chart_js__WEBPACK_IMPORTED_MODULE_2__["default"].registerClass(ChartViewClass); }, registerSubTypeDefaulter: function (componentType, defaulter) { _model_Component_js__WEBPACK_IMPORTED_MODULE_3__["default"].registerSubTypeDefaulter(componentType, defaulter); }, registerPainter: function (painterType, PainterCtor) { Object(zrender_lib_zrender_js__WEBPACK_IMPORTED_MODULE_7__["registerPainter"])(painterType, PainterCtor); } }; function use(ext) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["isArray"])(ext)) { // use([ChartLine, ChartBar]); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["each"])(ext, function (singleExt) { use(singleExt); }); return; } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["indexOf"])(extensions, ext) >= 0) { return; } extensions.push(ext); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_5__["isFunction"])(ext)) { ext = { install: ext }; } ext.install(extensionRegisters); } /***/ }), /***/ "./node_modules/echarts/lib/i18n/langEN.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/i18n/langEN.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Language: English. */ /* harmony default export */ __webpack_exports__["default"] = ({ time: { month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], monthAbbr: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], dayOfWeek: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], dayOfWeekAbbr: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] }, legend: { selector: { all: 'All', inverse: 'Inv' } }, toolbox: { brush: { title: { rect: 'Box Select', polygon: 'Lasso Select', lineX: 'Horizontally Select', lineY: 'Vertically Select', keep: 'Keep Selections', clear: 'Clear Selections' } }, dataView: { title: 'Data View', lang: ['Data View', 'Close', 'Refresh'] }, dataZoom: { title: { zoom: 'Zoom', back: 'Zoom Reset' } }, magicType: { title: { line: 'Switch to Line Chart', bar: 'Switch to Bar Chart', stack: 'Stack', tiled: 'Tile' } }, restore: { title: 'Restore' }, saveAsImage: { title: 'Save as Image', lang: ['Right Click to Save Image'] } }, series: { typeNames: { pie: 'Pie chart', bar: 'Bar chart', line: 'Line chart', scatter: 'Scatter plot', effectScatter: 'Ripple scatter plot', radar: 'Radar chart', tree: 'Tree', treemap: 'Treemap', boxplot: 'Boxplot', candlestick: 'Candlestick', k: 'K line chart', heatmap: 'Heat map', map: 'Map', parallel: 'Parallel coordinate map', lines: 'Line graph', graph: 'Relationship graph', sankey: 'Sankey diagram', funnel: 'Funnel chart', gauge: 'Gauge', pictorialBar: 'Pictorial bar', themeRiver: 'Theme River Map', sunburst: 'Sunburst', custom: 'Custom chart', chart: 'Chart' } }, aria: { general: { withTitle: 'This is a chart about "{title}"', withoutTitle: 'This is a chart' }, series: { single: { prefix: '', withName: ' with type {seriesType} named {seriesName}.', withoutName: ' with type {seriesType}.' }, multiple: { prefix: '. It consists of {seriesCount} series count.', withName: ' The {seriesId} series is a {seriesType} representing {seriesName}.', withoutName: ' The {seriesId} series is a {seriesType}.', separator: { middle: '', end: '' } } }, data: { allData: 'The data is as follows: ', partialData: 'The first {displayCnt} items are: ', withName: 'the data for {name} is {value}', withoutName: '{value}', separator: { middle: ', ', end: '. ' } } } }); /***/ }), /***/ "./node_modules/echarts/lib/i18n/langZH.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/i18n/langZH.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* harmony default export */ __webpack_exports__["default"] = ({ time: { month: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], monthAbbr: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], dayOfWeek: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'], dayOfWeekAbbr: ['日', '一', '二', '三', '四', '五', '六'] }, legend: { selector: { all: '全选', inverse: '反选' } }, toolbox: { brush: { title: { rect: '矩形选择', polygon: '圈选', lineX: '横向选择', lineY: '纵向选择', keep: '保持选择', clear: '清除选择' } }, dataView: { title: '数据视图', lang: ['数据视图', '关闭', '刷新'] }, dataZoom: { title: { zoom: '区域缩放', back: '区域缩放还原' } }, magicType: { title: { line: '切换为折线图', bar: '切换为柱状图', stack: '切换为堆叠', tiled: '切换为平铺' } }, restore: { title: '还原' }, saveAsImage: { title: '保存为图片', lang: ['右键另存为图片'] } }, series: { typeNames: { pie: '饼图', bar: '柱状图', line: '折线图', scatter: '散点图', effectScatter: '涟漪散点图', radar: '雷达图', tree: '树图', treemap: '矩形树图', boxplot: '箱型图', candlestick: 'K线图', k: 'K线图', heatmap: '热力图', map: '地图', parallel: '平行坐标图', lines: '线图', graph: '关系图', sankey: '桑基图', funnel: '漏斗图', gauge: '仪表盘图', pictorialBar: '象形柱图', themeRiver: '主题河流图', sunburst: '旭日图', custom: '自定义图表', chart: '图表' } }, aria: { general: { withTitle: '这是一个关于“{title}”的图表。', withoutTitle: '这是一个图表,' }, series: { single: { prefix: '', withName: '图表类型是{seriesType},表示{seriesName}。', withoutName: '图表类型是{seriesType}。' }, multiple: { prefix: '它由{seriesCount}个图表系列组成。', withName: '第{seriesId}个系列是一个表示{seriesName}的{seriesType},', withoutName: '第{seriesId}个系列是一个{seriesType},', separator: { middle: ';', end: '。' } } }, data: { allData: '其数据是——', partialData: '其中,前{displayCnt}项是——', withName: '{name}的数据是{value}', withoutName: '{value}', separator: { middle: ',', end: '' } } } }); /***/ }), /***/ "./node_modules/echarts/lib/label/LabelManager.js": /*!********************************************************!*\ !*** ./node_modules/echarts/lib/label/LabelManager.js ***! \********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_innerStore_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/Transformable.js */ "./node_modules/zrender/lib/core/Transformable.js"); /* harmony import */ var _labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./labelGuideHelper.js */ "./node_modules/echarts/lib/label/labelGuideHelper.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _labelLayoutHelper_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./labelLayoutHelper.js */ "./node_modules/echarts/lib/label/labelLayoutHelper.js"); /* harmony import */ var _labelStyle_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var zrender_lib_contain_util_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! zrender/lib/contain/util.js */ "./node_modules/zrender/lib/contain/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO: move labels out of viewport. function cloneArr(points) { if (points) { var newPoints = []; for (var i = 0; i < points.length; i++) { newPoints.push(points[i].slice()); } return newPoints; } } function prepareLayoutCallbackParams(labelItem, hostEl) { var label = labelItem.label; var labelLine = hostEl && hostEl.getTextGuideLine(); return { dataIndex: labelItem.dataIndex, dataType: labelItem.dataType, seriesIndex: labelItem.seriesModel.seriesIndex, text: labelItem.label.style.text, rect: labelItem.hostRect, labelRect: labelItem.rect, // x: labelAttr.x, // y: labelAttr.y, align: label.style.align, verticalAlign: label.style.verticalAlign, labelLinePoints: cloneArr(labelLine && labelLine.shape.points) }; } var LABEL_OPTION_TO_STYLE_KEYS = ['align', 'verticalAlign', 'width', 'height', 'fontSize']; var dummyTransformable = new zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_3__["default"](); var labelLayoutInnerStore = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_5__["makeInner"])(); var labelLineAnimationStore = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_5__["makeInner"])(); function extendWithKeys(target, source, keys) { for (var i = 0; i < keys.length; i++) { var key = keys[i]; if (source[key] != null) { target[key] = source[key]; } } } var LABEL_LAYOUT_PROPS = ['x', 'y', 'rotation']; var LabelManager = /** @class */function () { function LabelManager() { this._labelList = []; this._chartViewList = []; } LabelManager.prototype.clearLabels = function () { this._labelList = []; this._chartViewList = []; }; /** * Add label to manager */ LabelManager.prototype._addLabel = function (dataIndex, dataType, seriesModel, label, layoutOption) { var labelStyle = label.style; var hostEl = label.__hostTarget; var textConfig = hostEl.textConfig || {}; // TODO: If label is in other state. var labelTransform = label.getComputedTransform(); var labelRect = label.getBoundingRect().plain(); _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["BoundingRect"].applyTransform(labelRect, labelRect, labelTransform); if (labelTransform) { dummyTransformable.setLocalTransform(labelTransform); } else { // Identity transform. dummyTransformable.x = dummyTransformable.y = dummyTransformable.rotation = dummyTransformable.originX = dummyTransformable.originY = 0; dummyTransformable.scaleX = dummyTransformable.scaleY = 1; } dummyTransformable.rotation = Object(zrender_lib_contain_util_js__WEBPACK_IMPORTED_MODULE_9__["normalizeRadian"])(dummyTransformable.rotation); var host = label.__hostTarget; var hostRect; if (host) { hostRect = host.getBoundingRect().plain(); var transform = host.getComputedTransform(); _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["BoundingRect"].applyTransform(hostRect, hostRect, transform); } var labelGuide = hostRect && host.getTextGuideLine(); this._labelList.push({ label: label, labelLine: labelGuide, seriesModel: seriesModel, dataIndex: dataIndex, dataType: dataType, layoutOption: layoutOption, computedLayoutOption: null, rect: labelRect, hostRect: hostRect, // Label with lower priority will be hidden when overlapped // Use rect size as default priority priority: hostRect ? hostRect.width * hostRect.height : 0, // Save default label attributes. // For restore if developers want get back to default value in callback. defaultAttr: { ignore: label.ignore, labelGuideIgnore: labelGuide && labelGuide.ignore, x: dummyTransformable.x, y: dummyTransformable.y, scaleX: dummyTransformable.scaleX, scaleY: dummyTransformable.scaleY, rotation: dummyTransformable.rotation, style: { x: labelStyle.x, y: labelStyle.y, align: labelStyle.align, verticalAlign: labelStyle.verticalAlign, width: labelStyle.width, height: labelStyle.height, fontSize: labelStyle.fontSize }, cursor: label.cursor, attachedPos: textConfig.position, attachedRot: textConfig.rotation } }); }; LabelManager.prototype.addLabelsOfSeries = function (chartView) { var _this = this; this._chartViewList.push(chartView); var seriesModel = chartView.__model; var layoutOption = seriesModel.get('labelLayout'); /** * Ignore layouting if it's not specified anything. */ if (!(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["isFunction"])(layoutOption) || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["keys"])(layoutOption).length)) { return; } chartView.group.traverse(function (child) { if (child.ignore) { return true; // Stop traverse descendants. } // Only support label being hosted on graphic elements. var textEl = child.getTextContent(); var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_1__["getECData"])(child); // Can only attach the text on the element with dataIndex if (textEl && !textEl.disableLabelLayout) { _this._addLabel(ecData.dataIndex, ecData.dataType, seriesModel, textEl, layoutOption); } }); }; LabelManager.prototype.updateLayoutConfig = function (api) { var width = api.getWidth(); var height = api.getHeight(); function createDragHandler(el, labelLineModel) { return function () { Object(_labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_4__["updateLabelLinePoints"])(el, labelLineModel); }; } for (var i = 0; i < this._labelList.length; i++) { var labelItem = this._labelList[i]; var label = labelItem.label; var hostEl = label.__hostTarget; var defaultLabelAttr = labelItem.defaultAttr; var layoutOption = void 0; // TODO A global layout option? if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["isFunction"])(labelItem.layoutOption)) { layoutOption = labelItem.layoutOption(prepareLayoutCallbackParams(labelItem, hostEl)); } else { layoutOption = labelItem.layoutOption; } layoutOption = layoutOption || {}; labelItem.computedLayoutOption = layoutOption; var degreeToRadian = Math.PI / 180; // TODO hostEl should always exists. // Or label should not have parent because the x, y is all in global space. if (hostEl) { hostEl.setTextConfig({ // Force to set local false. local: false, // Ignore position and rotation config on the host el if x or y is changed. position: layoutOption.x != null || layoutOption.y != null ? null : defaultLabelAttr.attachedPos, // Ignore rotation config on the host el if rotation is changed. rotation: layoutOption.rotate != null ? layoutOption.rotate * degreeToRadian : defaultLabelAttr.attachedRot, offset: [layoutOption.dx || 0, layoutOption.dy || 0] }); } var needsUpdateLabelLine = false; if (layoutOption.x != null) { // TODO width of chart view. label.x = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(layoutOption.x, width); label.setStyle('x', 0); // Ignore movement in style. TODO: origin. needsUpdateLabelLine = true; } else { label.x = defaultLabelAttr.x; label.setStyle('x', defaultLabelAttr.style.x); } if (layoutOption.y != null) { // TODO height of chart view. label.y = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(layoutOption.y, height); label.setStyle('y', 0); // Ignore movement in style. needsUpdateLabelLine = true; } else { label.y = defaultLabelAttr.y; label.setStyle('y', defaultLabelAttr.style.y); } if (layoutOption.labelLinePoints) { var guideLine = hostEl.getTextGuideLine(); if (guideLine) { guideLine.setShape({ points: layoutOption.labelLinePoints }); // Not update needsUpdateLabelLine = false; } } var labelLayoutStore = labelLayoutInnerStore(label); labelLayoutStore.needsUpdateLabelLine = needsUpdateLabelLine; label.rotation = layoutOption.rotate != null ? layoutOption.rotate * degreeToRadian : defaultLabelAttr.rotation; label.scaleX = defaultLabelAttr.scaleX; label.scaleY = defaultLabelAttr.scaleY; for (var k = 0; k < LABEL_OPTION_TO_STYLE_KEYS.length; k++) { var key = LABEL_OPTION_TO_STYLE_KEYS[k]; label.setStyle(key, layoutOption[key] != null ? layoutOption[key] : defaultLabelAttr.style[key]); } if (layoutOption.draggable) { label.draggable = true; label.cursor = 'move'; if (hostEl) { var hostModel = labelItem.seriesModel; if (labelItem.dataIndex != null) { var data = labelItem.seriesModel.getData(labelItem.dataType); hostModel = data.getItemModel(labelItem.dataIndex); } label.on('drag', createDragHandler(hostEl, hostModel.getModel('labelLine'))); } } else { // TODO Other drag functions? label.off('drag'); label.cursor = defaultLabelAttr.cursor; } } }; LabelManager.prototype.layout = function (api) { var width = api.getWidth(); var height = api.getHeight(); var labelList = Object(_labelLayoutHelper_js__WEBPACK_IMPORTED_MODULE_7__["prepareLayoutList"])(this._labelList); var labelsNeedsAdjustOnX = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["filter"])(labelList, function (item) { return item.layoutOption.moveOverlap === 'shiftX'; }); var labelsNeedsAdjustOnY = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["filter"])(labelList, function (item) { return item.layoutOption.moveOverlap === 'shiftY'; }); Object(_labelLayoutHelper_js__WEBPACK_IMPORTED_MODULE_7__["shiftLayoutOnX"])(labelsNeedsAdjustOnX, 0, width); Object(_labelLayoutHelper_js__WEBPACK_IMPORTED_MODULE_7__["shiftLayoutOnY"])(labelsNeedsAdjustOnY, 0, height); var labelsNeedsHideOverlap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["filter"])(labelList, function (item) { return item.layoutOption.hideOverlap; }); Object(_labelLayoutHelper_js__WEBPACK_IMPORTED_MODULE_7__["hideOverlap"])(labelsNeedsHideOverlap); }; /** * Process all labels. Not only labels with layoutOption. */ LabelManager.prototype.processLabelsOverall = function () { var _this = this; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["each"])(this._chartViewList, function (chartView) { var seriesModel = chartView.__model; var ignoreLabelLineUpdate = chartView.ignoreLabelLineUpdate; var animationEnabled = seriesModel.isAnimationEnabled(); chartView.group.traverse(function (child) { if (child.ignore && !child.forceLabelAnimation) { return true; // Stop traverse descendants. } var needsUpdateLabelLine = !ignoreLabelLineUpdate; var label = child.getTextContent(); if (!needsUpdateLabelLine && label) { needsUpdateLabelLine = labelLayoutInnerStore(label).needsUpdateLabelLine; } if (needsUpdateLabelLine) { _this._updateLabelLine(child, seriesModel); } if (animationEnabled) { _this._animateLabels(child, seriesModel); } }); }); }; LabelManager.prototype._updateLabelLine = function (el, seriesModel) { // Only support label being hosted on graphic elements. var textEl = el.getTextContent(); // Update label line style. var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_1__["getECData"])(el); var dataIndex = ecData.dataIndex; // Only support labelLine on the labels represent data. if (textEl && dataIndex != null) { var data = seriesModel.getData(ecData.dataType); var itemModel = data.getItemModel(dataIndex); var defaultStyle = {}; var visualStyle = data.getItemVisual(dataIndex, 'style'); if (visualStyle) { var visualType = data.getVisual('drawType'); // Default to be same with main color defaultStyle.stroke = visualStyle[visualType]; } var labelLineModel = itemModel.getModel('labelLine'); Object(_labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_4__["setLabelLineStyle"])(el, Object(_labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_4__["getLabelLineStatesModels"])(itemModel), defaultStyle); Object(_labelGuideHelper_js__WEBPACK_IMPORTED_MODULE_4__["updateLabelLinePoints"])(el, labelLineModel); } }; LabelManager.prototype._animateLabels = function (el, seriesModel) { var textEl = el.getTextContent(); var guideLine = el.getTextGuideLine(); // Animate if (textEl // `forceLabelAnimation` has the highest priority && (el.forceLabelAnimation || !textEl.ignore && !textEl.invisible && !el.disableLabelAnimation && !Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["isElementRemoved"])(el))) { var layoutStore = labelLayoutInnerStore(textEl); var oldLayout = layoutStore.oldLayout; var ecData = Object(_util_innerStore_js__WEBPACK_IMPORTED_MODULE_1__["getECData"])(el); var dataIndex = ecData.dataIndex; var newProps = { x: textEl.x, y: textEl.y, rotation: textEl.rotation }; var data = seriesModel.getData(ecData.dataType); if (!oldLayout) { textEl.attr(newProps); // Disable fade in animation if value animation is enabled. if (!Object(_labelStyle_js__WEBPACK_IMPORTED_MODULE_8__["labelInner"])(textEl).valueAnimation) { var oldOpacity = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["retrieve2"])(textEl.style.opacity, 1); // Fade in animation textEl.style.opacity = 0; Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["initProps"])(textEl, { style: { opacity: oldOpacity } }, seriesModel, dataIndex); } } else { textEl.attr(oldLayout); // Make sure the animation from is in the right status. var prevStates = el.prevStates; if (prevStates) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["indexOf"])(prevStates, 'select') >= 0) { textEl.attr(layoutStore.oldLayoutSelect); } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["indexOf"])(prevStates, 'emphasis') >= 0) { textEl.attr(layoutStore.oldLayoutEmphasis); } } Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["updateProps"])(textEl, newProps, seriesModel, dataIndex); } layoutStore.oldLayout = newProps; if (textEl.states.select) { var layoutSelect = layoutStore.oldLayoutSelect = {}; extendWithKeys(layoutSelect, newProps, LABEL_LAYOUT_PROPS); extendWithKeys(layoutSelect, textEl.states.select, LABEL_LAYOUT_PROPS); } if (textEl.states.emphasis) { var layoutEmphasis = layoutStore.oldLayoutEmphasis = {}; extendWithKeys(layoutEmphasis, newProps, LABEL_LAYOUT_PROPS); extendWithKeys(layoutEmphasis, textEl.states.emphasis, LABEL_LAYOUT_PROPS); } Object(_labelStyle_js__WEBPACK_IMPORTED_MODULE_8__["animateLabelValue"])(textEl, dataIndex, data, seriesModel, seriesModel); } if (guideLine && !guideLine.ignore && !guideLine.invisible) { var layoutStore = labelLineAnimationStore(guideLine); var oldLayout = layoutStore.oldLayout; var newLayout = { points: guideLine.shape.points }; if (!oldLayout) { guideLine.setShape(newLayout); guideLine.style.strokePercent = 0; Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["initProps"])(guideLine, { style: { strokePercent: 1 } }, seriesModel); } else { guideLine.attr({ shape: oldLayout }); Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["updateProps"])(guideLine, { shape: newLayout }, seriesModel); } layoutStore.oldLayout = newLayout; } }; return LabelManager; }(); /* harmony default export */ __webpack_exports__["default"] = (LabelManager); /***/ }), /***/ "./node_modules/echarts/lib/label/installLabelLayout.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/lib/label/installLabelLayout.js ***! \**************************************************************/ /*! exports provided: installLabelLayout */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "installLabelLayout", function() { return installLabelLayout; }); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _LabelManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LabelManager.js */ "./node_modules/echarts/lib/label/LabelManager.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var getLabelManager = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["makeInner"])(); function installLabelLayout(registers) { registers.registerUpdateLifecycle('series:beforeupdate', function (ecModel, api, params) { // TODO api provide an namespace that can save stuff per instance var labelManager = getLabelManager(api).labelManager; if (!labelManager) { labelManager = getLabelManager(api).labelManager = new _LabelManager_js__WEBPACK_IMPORTED_MODULE_1__["default"](); } labelManager.clearLabels(); }); registers.registerUpdateLifecycle('series:layoutlabels', function (ecModel, api, params) { var labelManager = getLabelManager(api).labelManager; params.updatedSeries.forEach(function (series) { labelManager.addLabelsOfSeries(api.getViewOfSeriesModel(series)); }); labelManager.updateLayoutConfig(api); labelManager.layout(api); labelManager.processLabelsOverall(); }); } /***/ }), /***/ "./node_modules/echarts/lib/label/labelGuideHelper.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/label/labelGuideHelper.js ***! \************************************************************/ /*! exports provided: updateLabelLinePoints, limitTurnAngle, limitSurfaceAngle, setLabelLineStyle, getLabelLineStatesModels */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateLabelLinePoints", function() { return updateLabelLinePoints; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "limitTurnAngle", function() { return limitTurnAngle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "limitSurfaceAngle", function() { return limitSurfaceAngle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLabelLineStyle", function() { return setLabelLineStyle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLabelLineStatesModels", function() { return getLabelLineStatesModels; }); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var zrender_lib_core_PathProxy_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/PathProxy.js */ "./node_modules/zrender/lib/core/PathProxy.js"); /* harmony import */ var zrender_lib_contain_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/contain/util.js */ "./node_modules/zrender/lib/contain/util.js"); /* harmony import */ var zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/core/curve.js */ "./node_modules/zrender/lib/core/curve.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/core/matrix.js */ "./node_modules/zrender/lib/core/matrix.js"); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PI2 = Math.PI * 2; var CMD = zrender_lib_core_PathProxy_js__WEBPACK_IMPORTED_MODULE_1__["default"].CMD; var DEFAULT_SEARCH_SPACE = ['top', 'right', 'bottom', 'left']; function getCandidateAnchor(pos, distance, rect, outPt, outDir) { var width = rect.width; var height = rect.height; switch (pos) { case 'top': outPt.set(rect.x + width / 2, rect.y - distance); outDir.set(0, -1); break; case 'bottom': outPt.set(rect.x + width / 2, rect.y + height + distance); outDir.set(0, 1); break; case 'left': outPt.set(rect.x - distance, rect.y + height / 2); outDir.set(-1, 0); break; case 'right': outPt.set(rect.x + width + distance, rect.y + height / 2); outDir.set(1, 0); break; } } function projectPointToArc(cx, cy, r, startAngle, endAngle, anticlockwise, x, y, out) { x -= cx; y -= cy; var d = Math.sqrt(x * x + y * y); x /= d; y /= d; // Intersect point. var ox = x * r + cx; var oy = y * r + cy; if (Math.abs(startAngle - endAngle) % PI2 < 1e-4) { // Is a circle out[0] = ox; out[1] = oy; return d - r; } if (anticlockwise) { var tmp = startAngle; startAngle = Object(zrender_lib_contain_util_js__WEBPACK_IMPORTED_MODULE_2__["normalizeRadian"])(endAngle); endAngle = Object(zrender_lib_contain_util_js__WEBPACK_IMPORTED_MODULE_2__["normalizeRadian"])(tmp); } else { startAngle = Object(zrender_lib_contain_util_js__WEBPACK_IMPORTED_MODULE_2__["normalizeRadian"])(startAngle); endAngle = Object(zrender_lib_contain_util_js__WEBPACK_IMPORTED_MODULE_2__["normalizeRadian"])(endAngle); } if (startAngle > endAngle) { endAngle += PI2; } var angle = Math.atan2(y, x); if (angle < 0) { angle += PI2; } if (angle >= startAngle && angle <= endAngle || angle + PI2 >= startAngle && angle + PI2 <= endAngle) { // Project point is on the arc. out[0] = ox; out[1] = oy; return d - r; } var x1 = r * Math.cos(startAngle) + cx; var y1 = r * Math.sin(startAngle) + cy; var x2 = r * Math.cos(endAngle) + cx; var y2 = r * Math.sin(endAngle) + cy; var d1 = (x1 - x) * (x1 - x) + (y1 - y) * (y1 - y); var d2 = (x2 - x) * (x2 - x) + (y2 - y) * (y2 - y); if (d1 < d2) { out[0] = x1; out[1] = y1; return Math.sqrt(d1); } else { out[0] = x2; out[1] = y2; return Math.sqrt(d2); } } function projectPointToLine(x1, y1, x2, y2, x, y, out, limitToEnds) { var dx = x - x1; var dy = y - y1; var dx1 = x2 - x1; var dy1 = y2 - y1; var lineLen = Math.sqrt(dx1 * dx1 + dy1 * dy1); dx1 /= lineLen; dy1 /= lineLen; // dot product var projectedLen = dx * dx1 + dy * dy1; var t = projectedLen / lineLen; if (limitToEnds) { t = Math.min(Math.max(t, 0), 1); } t *= lineLen; var ox = out[0] = x1 + t * dx1; var oy = out[1] = y1 + t * dy1; return Math.sqrt((ox - x) * (ox - x) + (oy - y) * (oy - y)); } function projectPointToRect(x1, y1, width, height, x, y, out) { if (width < 0) { x1 = x1 + width; width = -width; } if (height < 0) { y1 = y1 + height; height = -height; } var x2 = x1 + width; var y2 = y1 + height; var ox = out[0] = Math.min(Math.max(x, x1), x2); var oy = out[1] = Math.min(Math.max(y, y1), y2); return Math.sqrt((ox - x) * (ox - x) + (oy - y) * (oy - y)); } var tmpPt = []; function nearestPointOnRect(pt, rect, out) { var dist = projectPointToRect(rect.x, rect.y, rect.width, rect.height, pt.x, pt.y, tmpPt); out.set(tmpPt[0], tmpPt[1]); return dist; } /** * Calculate min distance corresponding point. * This method won't evaluate if point is in the path. */ function nearestPointOnPath(pt, path, out) { var xi = 0; var yi = 0; var x0 = 0; var y0 = 0; var x1; var y1; var minDist = Infinity; var data = path.data; var x = pt.x; var y = pt.y; for (var i = 0; i < data.length;) { var cmd = data[i++]; if (i === 1) { xi = data[i]; yi = data[i + 1]; x0 = xi; y0 = yi; } var d = minDist; switch (cmd) { case CMD.M: // moveTo 命令重新创建一个新的 subpath, 并且更新新的起点 // 在 closePath 的时候使用 x0 = data[i++]; y0 = data[i++]; xi = x0; yi = y0; break; case CMD.L: d = projectPointToLine(xi, yi, data[i], data[i + 1], x, y, tmpPt, true); xi = data[i++]; yi = data[i++]; break; case CMD.C: d = Object(zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_3__["cubicProjectPoint"])(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], x, y, tmpPt); xi = data[i++]; yi = data[i++]; break; case CMD.Q: d = Object(zrender_lib_core_curve_js__WEBPACK_IMPORTED_MODULE_3__["quadraticProjectPoint"])(xi, yi, data[i++], data[i++], data[i], data[i + 1], x, y, tmpPt); xi = data[i++]; yi = data[i++]; break; case CMD.A: // TODO Arc 判断的开销比较大 var cx = data[i++]; var cy = data[i++]; var rx = data[i++]; var ry = data[i++]; var theta = data[i++]; var dTheta = data[i++]; // TODO Arc 旋转 i += 1; var anticlockwise = !!(1 - data[i++]); x1 = Math.cos(theta) * rx + cx; y1 = Math.sin(theta) * ry + cy; // 不是直接使用 arc 命令 if (i <= 1) { // 第一个命令起点还未定义 x0 = x1; y0 = y1; } // zr 使用scale来模拟椭圆, 这里也对x做一定的缩放 var _x = (x - cx) * ry / rx + cx; d = projectPointToArc(cx, cy, ry, theta, theta + dTheta, anticlockwise, _x, y, tmpPt); xi = Math.cos(theta + dTheta) * rx + cx; yi = Math.sin(theta + dTheta) * ry + cy; break; case CMD.R: x0 = xi = data[i++]; y0 = yi = data[i++]; var width = data[i++]; var height = data[i++]; d = projectPointToRect(x0, y0, width, height, x, y, tmpPt); break; case CMD.Z: d = projectPointToLine(xi, yi, x0, y0, x, y, tmpPt, true); xi = x0; yi = y0; break; } if (d < minDist) { minDist = d; out.set(tmpPt[0], tmpPt[1]); } } return minDist; } // Temporal variable for intermediate usage. var pt0 = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"](); var pt1 = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"](); var pt2 = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"](); var dir = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"](); var dir2 = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"](); /** * Calculate a proper guide line based on the label position and graphic element definition * @param label * @param labelRect * @param target * @param targetRect */ function updateLabelLinePoints(target, labelLineModel) { if (!target) { return; } var labelLine = target.getTextGuideLine(); var label = target.getTextContent(); // Needs to create text guide in each charts. if (!(label && labelLine)) { return; } var labelGuideConfig = target.textGuideLineConfig || {}; var points = [[0, 0], [0, 0], [0, 0]]; var searchSpace = labelGuideConfig.candidates || DEFAULT_SEARCH_SPACE; var labelRect = label.getBoundingRect().clone(); labelRect.applyTransform(label.getComputedTransform()); var minDist = Infinity; var anchorPoint = labelGuideConfig.anchor; var targetTransform = target.getComputedTransform(); var targetInversedTransform = targetTransform && Object(zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_5__["invert"])([], targetTransform); var len = labelLineModel.get('length2') || 0; if (anchorPoint) { pt2.copy(anchorPoint); } for (var i = 0; i < searchSpace.length; i++) { var candidate = searchSpace[i]; getCandidateAnchor(candidate, 0, labelRect, pt0, dir); _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"].scaleAndAdd(pt1, pt0, dir, len); // Transform to target coord space. pt1.transform(targetInversedTransform); // Note: getBoundingRect will ensure the `path` being created. var boundingRect = target.getBoundingRect(); var dist = anchorPoint ? anchorPoint.distance(pt1) : target instanceof _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Path"] ? nearestPointOnPath(pt1, target.path, pt2) : nearestPointOnRect(pt1, boundingRect, pt2); // TODO pt2 is in the path if (dist < minDist) { minDist = dist; // Transform back to global space. pt1.transform(targetTransform); pt2.transform(targetTransform); pt2.toArray(points[0]); pt1.toArray(points[1]); pt0.toArray(points[2]); } } limitTurnAngle(points, labelLineModel.get('minTurnAngle')); labelLine.setShape({ points: points }); } // Temporal variable for the limitTurnAngle function var tmpArr = []; var tmpProjPoint = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"](); /** * Reduce the line segment attached to the label to limit the turn angle between two segments. * @param linePoints * @param minTurnAngle Radian of minimum turn angle. 0 - 180 */ function limitTurnAngle(linePoints, minTurnAngle) { if (!(minTurnAngle <= 180 && minTurnAngle > 0)) { return; } minTurnAngle = minTurnAngle / 180 * Math.PI; // The line points can be // /pt1----pt2 (label) // / // pt0/ pt0.fromArray(linePoints[0]); pt1.fromArray(linePoints[1]); pt2.fromArray(linePoints[2]); _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"].sub(dir, pt0, pt1); _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"].sub(dir2, pt2, pt1); var len1 = dir.len(); var len2 = dir2.len(); if (len1 < 1e-3 || len2 < 1e-3) { return; } dir.scale(1 / len1); dir2.scale(1 / len2); var angleCos = dir.dot(dir2); var minTurnAngleCos = Math.cos(minTurnAngle); if (minTurnAngleCos < angleCos) { // Smaller than minTurnAngle // Calculate project point of pt0 on pt1-pt2 var d = projectPointToLine(pt1.x, pt1.y, pt2.x, pt2.y, pt0.x, pt0.y, tmpArr, false); tmpProjPoint.fromArray(tmpArr); // Calculate new projected length with limited minTurnAngle and get the new connect point tmpProjPoint.scaleAndAdd(dir2, d / Math.tan(Math.PI - minTurnAngle)); // Limit the new calculated connect point between pt1 and pt2. var t = pt2.x !== pt1.x ? (tmpProjPoint.x - pt1.x) / (pt2.x - pt1.x) : (tmpProjPoint.y - pt1.y) / (pt2.y - pt1.y); if (isNaN(t)) { return; } if (t < 0) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"].copy(tmpProjPoint, pt1); } else if (t > 1) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"].copy(tmpProjPoint, pt2); } tmpProjPoint.toArray(linePoints[1]); } } /** * Limit the angle of line and the surface * @param maxSurfaceAngle Radian of minimum turn angle. 0 - 180. 0 is same direction to normal. 180 is opposite */ function limitSurfaceAngle(linePoints, surfaceNormal, maxSurfaceAngle) { if (!(maxSurfaceAngle <= 180 && maxSurfaceAngle > 0)) { return; } maxSurfaceAngle = maxSurfaceAngle / 180 * Math.PI; pt0.fromArray(linePoints[0]); pt1.fromArray(linePoints[1]); pt2.fromArray(linePoints[2]); _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"].sub(dir, pt1, pt0); _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"].sub(dir2, pt2, pt1); var len1 = dir.len(); var len2 = dir2.len(); if (len1 < 1e-3 || len2 < 1e-3) { return; } dir.scale(1 / len1); dir2.scale(1 / len2); var angleCos = dir.dot(surfaceNormal); var maxSurfaceAngleCos = Math.cos(maxSurfaceAngle); if (angleCos < maxSurfaceAngleCos) { // Calculate project point of pt0 on pt1-pt2 var d = projectPointToLine(pt1.x, pt1.y, pt2.x, pt2.y, pt0.x, pt0.y, tmpArr, false); tmpProjPoint.fromArray(tmpArr); var HALF_PI = Math.PI / 2; var angle2 = Math.acos(dir2.dot(surfaceNormal)); var newAngle = HALF_PI + angle2 - maxSurfaceAngle; if (newAngle >= HALF_PI) { // parallel _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"].copy(tmpProjPoint, pt2); } else { // Calculate new projected length with limited minTurnAngle and get the new connect point tmpProjPoint.scaleAndAdd(dir2, d / Math.tan(Math.PI / 2 - newAngle)); // Limit the new calculated connect point between pt1 and pt2. var t = pt2.x !== pt1.x ? (tmpProjPoint.x - pt1.x) / (pt2.x - pt1.x) : (tmpProjPoint.y - pt1.y) / (pt2.y - pt1.y); if (isNaN(t)) { return; } if (t < 0) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"].copy(tmpProjPoint, pt1); } else if (t > 1) { _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Point"].copy(tmpProjPoint, pt2); } } tmpProjPoint.toArray(linePoints[1]); } } function setLabelLineState(labelLine, ignore, stateName, stateModel) { var isNormal = stateName === 'normal'; var stateObj = isNormal ? labelLine : labelLine.ensureState(stateName); // Make sure display. stateObj.ignore = ignore; // Set smooth var smooth = stateModel.get('smooth'); if (smooth && smooth === true) { smooth = 0.3; } stateObj.shape = stateObj.shape || {}; if (smooth > 0) { stateObj.shape.smooth = smooth; } var styleObj = stateModel.getModel('lineStyle').getLineStyle(); isNormal ? labelLine.useStyle(styleObj) : stateObj.style = styleObj; } function buildLabelLinePath(path, shape) { var smooth = shape.smooth; var points = shape.points; if (!points) { return; } path.moveTo(points[0][0], points[0][1]); if (smooth > 0 && points.length >= 3) { var len1 = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_6__["dist"](points[0], points[1]); var len2 = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_6__["dist"](points[1], points[2]); if (!len1 || !len2) { path.lineTo(points[1][0], points[1][1]); path.lineTo(points[2][0], points[2][1]); return; } var moveLen = Math.min(len1, len2) * smooth; var midPoint0 = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_6__["lerp"]([], points[1], points[0], moveLen / len1); var midPoint2 = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_6__["lerp"]([], points[1], points[2], moveLen / len2); var midPoint1 = zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_6__["lerp"]([], midPoint0, midPoint2, 0.5); path.bezierCurveTo(midPoint0[0], midPoint0[1], midPoint0[0], midPoint0[1], midPoint1[0], midPoint1[1]); path.bezierCurveTo(midPoint2[0], midPoint2[1], midPoint2[0], midPoint2[1], points[2][0], points[2][1]); } else { for (var i = 1; i < points.length; i++) { path.lineTo(points[i][0], points[i][1]); } } } /** * Create a label line if necessary and set it's style. */ function setLabelLineStyle(targetEl, statesModels, defaultStyle) { var labelLine = targetEl.getTextGuideLine(); var label = targetEl.getTextContent(); if (!label) { // Not show label line if there is no label. if (labelLine) { targetEl.removeTextGuideLine(); } return; } var normalModel = statesModels.normal; var showNormal = normalModel.get('show'); var labelIgnoreNormal = label.ignore; for (var i = 0; i < _util_states_js__WEBPACK_IMPORTED_MODULE_7__["DISPLAY_STATES"].length; i++) { var stateName = _util_states_js__WEBPACK_IMPORTED_MODULE_7__["DISPLAY_STATES"][i]; var stateModel = statesModels[stateName]; var isNormal = stateName === 'normal'; if (stateModel) { var stateShow = stateModel.get('show'); var isLabelIgnored = isNormal ? labelIgnoreNormal : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["retrieve2"])(label.states[stateName] && label.states[stateName].ignore, labelIgnoreNormal); if (isLabelIgnored // Not show when label is not shown in this state. || !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["retrieve2"])(stateShow, showNormal) // Use normal state by default if not set. ) { var stateObj = isNormal ? labelLine : labelLine && labelLine.states[stateName]; if (stateObj) { stateObj.ignore = true; } if (!!labelLine) { setLabelLineState(labelLine, true, stateName, stateModel); } continue; } // Create labelLine if not exists if (!labelLine) { labelLine = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Polyline"](); targetEl.setTextGuideLine(labelLine); // Reset state of normal because it's new created. // NOTE: NORMAL should always been the first! if (!isNormal && (labelIgnoreNormal || !showNormal)) { setLabelLineState(labelLine, true, 'normal', statesModels.normal); } // Use same state proxy. if (targetEl.stateProxy) { labelLine.stateProxy = targetEl.stateProxy; } } setLabelLineState(labelLine, false, stateName, stateModel); } } if (labelLine) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["defaults"])(labelLine.style, defaultStyle); // Not fill. labelLine.style.fill = null; var showAbove = normalModel.get('showAbove'); var labelLineConfig = targetEl.textGuideLineConfig = targetEl.textGuideLineConfig || {}; labelLineConfig.showAbove = showAbove || false; // Custom the buildPath. labelLine.buildPath = buildLabelLinePath; } } function getLabelLineStatesModels(itemModel, labelLineName) { labelLineName = labelLineName || 'labelLine'; var statesModels = { normal: itemModel.getModel(labelLineName) }; for (var i = 0; i < _util_states_js__WEBPACK_IMPORTED_MODULE_7__["SPECIAL_STATES"].length; i++) { var stateName = _util_states_js__WEBPACK_IMPORTED_MODULE_7__["SPECIAL_STATES"][i]; statesModels[stateName] = itemModel.getModel([stateName, labelLineName]); } return statesModels; } /***/ }), /***/ "./node_modules/echarts/lib/label/labelLayoutHelper.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/label/labelLayoutHelper.js ***! \*************************************************************/ /*! exports provided: prepareLayoutList, shiftLayoutOnX, shiftLayoutOnY, hideOverlap */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prepareLayoutList", function() { return prepareLayoutList; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shiftLayoutOnX", function() { return shiftLayoutOnX; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shiftLayoutOnY", function() { return shiftLayoutOnY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hideOverlap", function() { return hideOverlap; }); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function prepareLayoutList(input) { var list = []; for (var i = 0; i < input.length; i++) { var rawItem = input[i]; if (rawItem.defaultAttr.ignore) { continue; } var label = rawItem.label; var transform = label.getComputedTransform(); // NOTE: Get bounding rect after getComputedTransform, or label may not been updated by the host el. var localRect = label.getBoundingRect(); var isAxisAligned = !transform || transform[1] < 1e-5 && transform[2] < 1e-5; var minMargin = label.style.margin || 0; var globalRect = localRect.clone(); globalRect.applyTransform(transform); globalRect.x -= minMargin / 2; globalRect.y -= minMargin / 2; globalRect.width += minMargin; globalRect.height += minMargin; var obb = isAxisAligned ? new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["OrientedBoundingRect"](localRect, transform) : null; list.push({ label: label, labelLine: rawItem.labelLine, rect: globalRect, localRect: localRect, obb: obb, priority: rawItem.priority, defaultAttr: rawItem.defaultAttr, layoutOption: rawItem.computedLayoutOption, axisAligned: isAxisAligned, transform: transform }); } return list; } function shiftLayout(list, xyDim, sizeDim, minBound, maxBound, balanceShift) { var len = list.length; if (len < 2) { return; } list.sort(function (a, b) { return a.rect[xyDim] - b.rect[xyDim]; }); var lastPos = 0; var delta; var adjusted = false; var shifts = []; var totalShifts = 0; for (var i = 0; i < len; i++) { var item = list[i]; var rect = item.rect; delta = rect[xyDim] - lastPos; if (delta < 0) { // shiftForward(i, len, -delta); rect[xyDim] -= delta; item.label[xyDim] -= delta; adjusted = true; } var shift = Math.max(-delta, 0); shifts.push(shift); totalShifts += shift; lastPos = rect[xyDim] + rect[sizeDim]; } if (totalShifts > 0 && balanceShift) { // Shift back to make the distribution more equally. shiftList(-totalShifts / len, 0, len); } // TODO bleedMargin? var first = list[0]; var last = list[len - 1]; var minGap; var maxGap; updateMinMaxGap(); // If ends exceed two bounds, squeeze at most 80%, then take the gap of two bounds. minGap < 0 && squeezeGaps(-minGap, 0.8); maxGap < 0 && squeezeGaps(maxGap, 0.8); updateMinMaxGap(); takeBoundsGap(minGap, maxGap, 1); takeBoundsGap(maxGap, minGap, -1); // Handle bailout when there is not enough space. updateMinMaxGap(); if (minGap < 0) { squeezeWhenBailout(-minGap); } if (maxGap < 0) { squeezeWhenBailout(maxGap); } function updateMinMaxGap() { minGap = first.rect[xyDim] - minBound; maxGap = maxBound - last.rect[xyDim] - last.rect[sizeDim]; } function takeBoundsGap(gapThisBound, gapOtherBound, moveDir) { if (gapThisBound < 0) { // Move from other gap if can. var moveFromMaxGap = Math.min(gapOtherBound, -gapThisBound); if (moveFromMaxGap > 0) { shiftList(moveFromMaxGap * moveDir, 0, len); var remained = moveFromMaxGap + gapThisBound; if (remained < 0) { squeezeGaps(-remained * moveDir, 1); } } else { squeezeGaps(-gapThisBound * moveDir, 1); } } } function shiftList(delta, start, end) { if (delta !== 0) { adjusted = true; } for (var i = start; i < end; i++) { var item = list[i]; var rect = item.rect; rect[xyDim] += delta; item.label[xyDim] += delta; } } // Squeeze gaps if the labels exceed margin. function squeezeGaps(delta, maxSqeezePercent) { var gaps = []; var totalGaps = 0; for (var i = 1; i < len; i++) { var prevItemRect = list[i - 1].rect; var gap = Math.max(list[i].rect[xyDim] - prevItemRect[xyDim] - prevItemRect[sizeDim], 0); gaps.push(gap); totalGaps += gap; } if (!totalGaps) { return; } var squeezePercent = Math.min(Math.abs(delta) / totalGaps, maxSqeezePercent); if (delta > 0) { for (var i = 0; i < len - 1; i++) { // Distribute the shift delta to all gaps. var movement = gaps[i] * squeezePercent; // Forward shiftList(movement, 0, i + 1); } } else { // Backward for (var i = len - 1; i > 0; i--) { // Distribute the shift delta to all gaps. var movement = gaps[i - 1] * squeezePercent; shiftList(-movement, i, len); } } } /** * Squeeze to allow overlap if there is no more space available. * Let other overlapping strategy like hideOverlap do the job instead of keep exceeding the bounds. */ function squeezeWhenBailout(delta) { var dir = delta < 0 ? -1 : 1; delta = Math.abs(delta); var moveForEachLabel = Math.ceil(delta / (len - 1)); for (var i = 0; i < len - 1; i++) { if (dir > 0) { // Forward shiftList(moveForEachLabel, 0, i + 1); } else { // Backward shiftList(-moveForEachLabel, len - i - 1, len); } delta -= moveForEachLabel; if (delta <= 0) { return; } } } return adjusted; } /** * Adjust labels on x direction to avoid overlap. */ function shiftLayoutOnX(list, leftBound, rightBound, // If average the shifts on all labels and add them to 0 // TODO: Not sure if should enable it. // Pros: The angle of lines will distribute more equally // Cons: In some layout. It may not what user wanted. like in pie. the label of last sector is usually changed unexpectedly. balanceShift) { return shiftLayout(list, 'x', 'width', leftBound, rightBound, balanceShift); } /** * Adjust labels on y direction to avoid overlap. */ function shiftLayoutOnY(list, topBound, bottomBound, // If average the shifts on all labels and add them to 0 balanceShift) { return shiftLayout(list, 'y', 'height', topBound, bottomBound, balanceShift); } function hideOverlap(labelList) { var displayedLabels = []; // TODO, render overflow visible first, put in the displayedLabels. labelList.sort(function (a, b) { return b.priority - a.priority; }); var globalRect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["BoundingRect"](0, 0, 0, 0); function hideEl(el) { if (!el.ignore) { // Show on emphasis. var emphasisState = el.ensureState('emphasis'); if (emphasisState.ignore == null) { emphasisState.ignore = false; } } el.ignore = true; } for (var i = 0; i < labelList.length; i++) { var labelItem = labelList[i]; var isAxisAligned = labelItem.axisAligned; var localRect = labelItem.localRect; var transform = labelItem.transform; var label = labelItem.label; var labelLine = labelItem.labelLine; globalRect.copy(labelItem.rect); // Add a threshold because layout may be aligned precisely. globalRect.width -= 0.1; globalRect.height -= 0.1; globalRect.x += 0.05; globalRect.y += 0.05; var obb = labelItem.obb; var overlapped = false; for (var j = 0; j < displayedLabels.length; j++) { var existsTextCfg = displayedLabels[j]; // Fast rejection. if (!globalRect.intersect(existsTextCfg.rect)) { continue; } if (isAxisAligned && existsTextCfg.axisAligned) { // Is overlapped overlapped = true; break; } if (!existsTextCfg.obb) { // If self is not axis aligned. But other is. existsTextCfg.obb = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["OrientedBoundingRect"](existsTextCfg.localRect, existsTextCfg.transform); } if (!obb) { // If self is axis aligned. But other is not. obb = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["OrientedBoundingRect"](localRect, transform); } if (obb.intersect(existsTextCfg.obb)) { overlapped = true; break; } } // TODO Callback to determine if this overlap should be handled? if (overlapped) { hideEl(label); labelLine && hideEl(labelLine); } else { label.attr('ignore', labelItem.defaultAttr.ignore); labelLine && labelLine.attr('ignore', labelItem.defaultAttr.labelGuideIgnore); displayedLabels.push(labelItem); } } } /***/ }), /***/ "./node_modules/echarts/lib/label/labelStyle.js": /*!******************************************************!*\ !*** ./node_modules/echarts/lib/label/labelStyle.js ***! \******************************************************/ /*! exports provided: setLabelText, setLabelStyle, getLabelStatesModels, createTextStyle, createTextConfig, getFont, labelInner, setLabelValueAnimation, animateLabelValue */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLabelText", function() { return setLabelText; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLabelStyle", function() { return setLabelStyle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLabelStatesModels", function() { return getLabelStatesModels; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createTextStyle", function() { return createTextStyle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createTextConfig", function() { return createTextConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFont", function() { return getFont; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "labelInner", function() { return labelInner; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLabelValueAnimation", function() { return setLabelValueAnimation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animateLabelValue", function() { return animateLabelValue; }); /* harmony import */ var zrender_lib_graphic_Text_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/graphic/Text.js */ "./node_modules/zrender/lib/graphic/Text.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var EMPTY_OBJ = {}; function setLabelText(label, labelTexts) { for (var i = 0; i < _util_states_js__WEBPACK_IMPORTED_MODULE_2__["SPECIAL_STATES"].length; i++) { var stateName = _util_states_js__WEBPACK_IMPORTED_MODULE_2__["SPECIAL_STATES"][i]; var text = labelTexts[stateName]; var state = label.ensureState(stateName); state.style = state.style || {}; state.style.text = text; } var oldStates = label.currentStates.slice(); label.clearStates(true); label.setStyle({ text: labelTexts.normal }); label.useStates(oldStates, true); } function getLabelText(opt, stateModels, interpolatedValue) { var labelFetcher = opt.labelFetcher; var labelDataIndex = opt.labelDataIndex; var labelDimIndex = opt.labelDimIndex; var normalModel = stateModels.normal; var baseText; if (labelFetcher) { baseText = labelFetcher.getFormattedLabel(labelDataIndex, 'normal', null, labelDimIndex, normalModel && normalModel.get('formatter'), interpolatedValue != null ? { interpolatedValue: interpolatedValue } : null); } if (baseText == null) { baseText = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"])(opt.defaultText) ? opt.defaultText(labelDataIndex, opt, interpolatedValue) : opt.defaultText; } var statesText = { normal: baseText }; for (var i = 0; i < _util_states_js__WEBPACK_IMPORTED_MODULE_2__["SPECIAL_STATES"].length; i++) { var stateName = _util_states_js__WEBPACK_IMPORTED_MODULE_2__["SPECIAL_STATES"][i]; var stateModel = stateModels[stateName]; statesText[stateName] = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"])(labelFetcher ? labelFetcher.getFormattedLabel(labelDataIndex, stateName, null, labelDimIndex, stateModel && stateModel.get('formatter')) : null, baseText); } return statesText; } function setLabelStyle(targetEl, labelStatesModels, opt, stateSpecified // TODO specified position? ) { opt = opt || EMPTY_OBJ; var isSetOnText = targetEl instanceof zrender_lib_graphic_Text_js__WEBPACK_IMPORTED_MODULE_0__["default"]; var needsCreateText = false; for (var i = 0; i < _util_states_js__WEBPACK_IMPORTED_MODULE_2__["DISPLAY_STATES"].length; i++) { var stateModel = labelStatesModels[_util_states_js__WEBPACK_IMPORTED_MODULE_2__["DISPLAY_STATES"][i]]; if (stateModel && stateModel.getShallow('show')) { needsCreateText = true; break; } } var textContent = isSetOnText ? targetEl : targetEl.getTextContent(); if (needsCreateText) { if (!isSetOnText) { // Reuse the previous if (!textContent) { textContent = new zrender_lib_graphic_Text_js__WEBPACK_IMPORTED_MODULE_0__["default"](); targetEl.setTextContent(textContent); } // Use same state proxy if (targetEl.stateProxy) { textContent.stateProxy = targetEl.stateProxy; } } var labelStatesTexts = getLabelText(opt, labelStatesModels); var normalModel = labelStatesModels.normal; var showNormal = !!normalModel.getShallow('show'); var normalStyle = createTextStyle(normalModel, stateSpecified && stateSpecified.normal, opt, false, !isSetOnText); normalStyle.text = labelStatesTexts.normal; if (!isSetOnText) { // Always create new targetEl.setTextConfig(createTextConfig(normalModel, opt, false)); } for (var i = 0; i < _util_states_js__WEBPACK_IMPORTED_MODULE_2__["SPECIAL_STATES"].length; i++) { var stateName = _util_states_js__WEBPACK_IMPORTED_MODULE_2__["SPECIAL_STATES"][i]; var stateModel = labelStatesModels[stateName]; if (stateModel) { var stateObj = textContent.ensureState(stateName); var stateShow = !!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"])(stateModel.getShallow('show'), showNormal); if (stateShow !== showNormal) { stateObj.ignore = !stateShow; } stateObj.style = createTextStyle(stateModel, stateSpecified && stateSpecified[stateName], opt, true, !isSetOnText); stateObj.style.text = labelStatesTexts[stateName]; if (!isSetOnText) { var targetElEmphasisState = targetEl.ensureState(stateName); targetElEmphasisState.textConfig = createTextConfig(stateModel, opt, true); } } } // PENDING: if there is many requirements that emphasis position // need to be different from normal position, we might consider // auto silent is those cases. textContent.silent = !!normalModel.getShallow('silent'); // Keep x and y if (textContent.style.x != null) { normalStyle.x = textContent.style.x; } if (textContent.style.y != null) { normalStyle.y = textContent.style.y; } textContent.ignore = !showNormal; // Always create new style. textContent.useStyle(normalStyle); textContent.dirty(); if (opt.enableTextSetter) { labelInner(textContent).setLabelText = function (interpolatedValue) { var labelStatesTexts = getLabelText(opt, labelStatesModels, interpolatedValue); setLabelText(textContent, labelStatesTexts); }; } } else if (textContent) { // Not display rich text. textContent.ignore = true; } targetEl.dirty(); } function getLabelStatesModels(itemModel, labelName) { labelName = labelName || 'label'; var statesModels = { normal: itemModel.getModel(labelName) }; for (var i = 0; i < _util_states_js__WEBPACK_IMPORTED_MODULE_2__["SPECIAL_STATES"].length; i++) { var stateName = _util_states_js__WEBPACK_IMPORTED_MODULE_2__["SPECIAL_STATES"][i]; statesModels[stateName] = itemModel.getModel([stateName, labelName]); } return statesModels; } /** * Set basic textStyle properties. */ function createTextStyle(textStyleModel, specifiedTextStyle, // Fixed style in the code. Can't be set by model. opt, isNotNormal, isAttached // If text is attached on an element. If so, auto color will handling in zrender. ) { var textStyle = {}; setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached); specifiedTextStyle && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(textStyle, specifiedTextStyle); // textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false); return textStyle; } function createTextConfig(textStyleModel, opt, isNotNormal) { opt = opt || {}; var textConfig = {}; var labelPosition; var labelRotate = textStyleModel.getShallow('rotate'); var labelDistance = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"])(textStyleModel.getShallow('distance'), isNotNormal ? null : 5); var labelOffset = textStyleModel.getShallow('offset'); labelPosition = textStyleModel.getShallow('position') || (isNotNormal ? null : 'inside'); // 'outside' is not a valid zr textPostion value, but used // in bar series, and magric type should be considered. labelPosition === 'outside' && (labelPosition = opt.defaultOutsidePosition || 'top'); if (labelPosition != null) { textConfig.position = labelPosition; } if (labelOffset != null) { textConfig.offset = labelOffset; } if (labelRotate != null) { labelRotate *= Math.PI / 180; textConfig.rotation = labelRotate; } if (labelDistance != null) { textConfig.distance = labelDistance; } // fill and auto is determined by the color of path fill if it's not specified by developers. textConfig.outsideFill = textStyleModel.get('color') === 'inherit' ? opt.inheritColor || null : 'auto'; return textConfig; } /** * The uniform entry of set text style, that is, retrieve style definitions * from `model` and set to `textStyle` object. * * Never in merge mode, but in overwrite mode, that is, all of the text style * properties will be set. (Consider the states of normal and emphasis and * default value can be adopted, merge would make the logic too complicated * to manage.) */ function setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached) { // Consider there will be abnormal when merge hover style to normal style if given default value. opt = opt || EMPTY_OBJ; var ecModel = textStyleModel.ecModel; var globalTextStyle = ecModel && ecModel.option.textStyle; // Consider case: // { // data: [{ // value: 12, // label: { // rich: { // // no 'a' here but using parent 'a'. // } // } // }], // rich: { // a: { ... } // } // } var richItemNames = getRichItemNames(textStyleModel); var richResult; if (richItemNames) { richResult = {}; for (var name_1 in richItemNames) { if (richItemNames.hasOwnProperty(name_1)) { // Cascade is supported in rich. var richTextStyle = textStyleModel.getModel(['rich', name_1]); // In rich, never `disableBox`. // FIXME: consider `label: {formatter: '{a|xx}', color: 'blue', rich: {a: {}}}`, // the default color `'blue'` will not be adopted if no color declared in `rich`. // That might confuses users. So probably we should put `textStyleModel` as the // root ancestor of the `richTextStyle`. But that would be a break change. setTokenTextStyle(richResult[name_1] = {}, richTextStyle, globalTextStyle, opt, isNotNormal, isAttached, false, true); } } } if (richResult) { textStyle.rich = richResult; } var overflow = textStyleModel.get('overflow'); if (overflow) { textStyle.overflow = overflow; } var margin = textStyleModel.get('minMargin'); if (margin != null) { textStyle.margin = margin; } setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isNotNormal, isAttached, true, false); } // Consider case: // { // data: [{ // value: 12, // label: { // rich: { // // no 'a' here but using parent 'a'. // } // } // }], // rich: { // a: { ... } // } // } // TODO TextStyleModel function getRichItemNames(textStyleModel) { // Use object to remove duplicated names. var richItemNameMap; while (textStyleModel && textStyleModel !== textStyleModel.ecModel) { var rich = (textStyleModel.option || EMPTY_OBJ).rich; if (rich) { richItemNameMap = richItemNameMap || {}; var richKeys = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["keys"])(rich); for (var i = 0; i < richKeys.length; i++) { var richKey = richKeys[i]; richItemNameMap[richKey] = 1; } } textStyleModel = textStyleModel.parentModel; } return richItemNameMap; } var TEXT_PROPS_WITH_GLOBAL = ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily', 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY']; var TEXT_PROPS_SELF = ['align', 'lineHeight', 'width', 'height', 'tag', 'verticalAlign', 'ellipsis']; var TEXT_PROPS_BOX = ['padding', 'borderWidth', 'borderRadius', 'borderDashOffset', 'backgroundColor', 'borderColor', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY']; function setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isNotNormal, isAttached, isBlock, inRich) { // In merge mode, default value should not be given. globalTextStyle = !isNotNormal && globalTextStyle || EMPTY_OBJ; var inheritColor = opt && opt.inheritColor; var fillColor = textStyleModel.getShallow('color'); var strokeColor = textStyleModel.getShallow('textBorderColor'); var opacity = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"])(textStyleModel.getShallow('opacity'), globalTextStyle.opacity); if (fillColor === 'inherit' || fillColor === 'auto') { if (true) { if (fillColor === 'auto') { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])('color: \'auto\'', 'color: \'inherit\''); } } if (inheritColor) { fillColor = inheritColor; } else { fillColor = null; } } if (strokeColor === 'inherit' || strokeColor === 'auto') { if (true) { if (strokeColor === 'auto') { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])('color: \'auto\'', 'color: \'inherit\''); } } if (inheritColor) { strokeColor = inheritColor; } else { strokeColor = null; } } if (!isAttached) { // Only use default global textStyle.color if text is individual. // Otherwise it will use the strategy of attached text color because text may be on a path. fillColor = fillColor || globalTextStyle.color; strokeColor = strokeColor || globalTextStyle.textBorderColor; } if (fillColor != null) { textStyle.fill = fillColor; } if (strokeColor != null) { textStyle.stroke = strokeColor; } var textBorderWidth = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"])(textStyleModel.getShallow('textBorderWidth'), globalTextStyle.textBorderWidth); if (textBorderWidth != null) { textStyle.lineWidth = textBorderWidth; } var textBorderType = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"])(textStyleModel.getShallow('textBorderType'), globalTextStyle.textBorderType); if (textBorderType != null) { textStyle.lineDash = textBorderType; } var textBorderDashOffset = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"])(textStyleModel.getShallow('textBorderDashOffset'), globalTextStyle.textBorderDashOffset); if (textBorderDashOffset != null) { textStyle.lineDashOffset = textBorderDashOffset; } if (!isNotNormal && opacity == null && !inRich) { opacity = opt && opt.defaultOpacity; } if (opacity != null) { textStyle.opacity = opacity; } // TODO if (!isNotNormal && !isAttached) { // Set default finally. if (textStyle.fill == null && opt.inheritColor) { textStyle.fill = opt.inheritColor; } } // Do not use `getFont` here, because merge should be supported, where // part of these properties may be changed in emphasis style, and the // others should remain their original value got from normal style. for (var i = 0; i < TEXT_PROPS_WITH_GLOBAL.length; i++) { var key = TEXT_PROPS_WITH_GLOBAL[i]; var val = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"])(textStyleModel.getShallow(key), globalTextStyle[key]); if (val != null) { textStyle[key] = val; } } for (var i = 0; i < TEXT_PROPS_SELF.length; i++) { var key = TEXT_PROPS_SELF[i]; var val = textStyleModel.getShallow(key); if (val != null) { textStyle[key] = val; } } if (textStyle.verticalAlign == null) { var baseline = textStyleModel.getShallow('baseline'); if (baseline != null) { textStyle.verticalAlign = baseline; } } if (!isBlock || !opt.disableBox) { for (var i = 0; i < TEXT_PROPS_BOX.length; i++) { var key = TEXT_PROPS_BOX[i]; var val = textStyleModel.getShallow(key); if (val != null) { textStyle[key] = val; } } var borderType = textStyleModel.getShallow('borderType'); if (borderType != null) { textStyle.borderDash = borderType; } if ((textStyle.backgroundColor === 'auto' || textStyle.backgroundColor === 'inherit') && inheritColor) { if (true) { if (textStyle.backgroundColor === 'auto') { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])('backgroundColor: \'auto\'', 'backgroundColor: \'inherit\''); } } textStyle.backgroundColor = inheritColor; } if ((textStyle.borderColor === 'auto' || textStyle.borderColor === 'inherit') && inheritColor) { if (true) { if (textStyle.borderColor === 'auto') { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])('borderColor: \'auto\'', 'borderColor: \'inherit\''); } } textStyle.borderColor = inheritColor; } } } function getFont(opt, ecModel) { var gTextStyleModel = ecModel && ecModel.getModel('textStyle'); return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["trim"])([ // FIXME in node-canvas fontWeight is before fontStyle opt.fontStyle || gTextStyleModel && gTextStyleModel.getShallow('fontStyle') || '', opt.fontWeight || gTextStyleModel && gTextStyleModel.getShallow('fontWeight') || '', (opt.fontSize || gTextStyleModel && gTextStyleModel.getShallow('fontSize') || 12) + 'px', opt.fontFamily || gTextStyleModel && gTextStyleModel.getShallow('fontFamily') || 'sans-serif'].join(' ')); } var labelInner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_4__["makeInner"])(); function setLabelValueAnimation(label, labelStatesModels, value, getDefaultText) { if (!label) { return; } var obj = labelInner(label); obj.prevValue = obj.value; obj.value = value; var normalLabelModel = labelStatesModels.normal; obj.valueAnimation = normalLabelModel.get('valueAnimation'); if (obj.valueAnimation) { obj.precision = normalLabelModel.get('precision'); obj.defaultInterpolatedText = getDefaultText; obj.statesModels = labelStatesModels; } } function animateLabelValue(textEl, dataIndex, data, animatableModel, labelFetcher) { var labelInnerStore = labelInner(textEl); if (!labelInnerStore.valueAnimation || labelInnerStore.prevValue === labelInnerStore.value) { // Value not changed, no new label animation return; } var defaultInterpolatedText = labelInnerStore.defaultInterpolatedText; // Consider the case that being animating, do not use the `obj.value`, // Otherwise it will jump to the `obj.value` when this new animation started. var currValue = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["retrieve2"])(labelInnerStore.interpolatedValue, labelInnerStore.prevValue); var targetValue = labelInnerStore.value; function during(percent) { var interpolated = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_4__["interpolateRawValues"])(data, labelInnerStore.precision, currValue, targetValue, percent); labelInnerStore.interpolatedValue = percent === 1 ? null : interpolated; var labelText = getLabelText({ labelDataIndex: dataIndex, labelFetcher: labelFetcher, defaultText: defaultInterpolatedText ? defaultInterpolatedText(interpolated) : interpolated + '' }, labelInnerStore.statesModels, interpolated); setLabelText(textEl, labelText); } textEl.percent = 0; (labelInnerStore.prevValue == null ? _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["initProps"] : _util_graphic_js__WEBPACK_IMPORTED_MODULE_5__["updateProps"])(textEl, { // percent is used to prevent animation from being aborted #15916 percent: 1 }, animatableModel, dataIndex, null, during); } /***/ }), /***/ "./node_modules/echarts/lib/label/sectorLabel.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/label/sectorLabel.js ***! \*******************************************************/ /*! exports provided: createSectorCalculateTextPosition, setSectorTextRotation */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSectorCalculateTextPosition", function() { return createSectorCalculateTextPosition; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setSectorTextRotation", function() { return setSectorTextRotation; }); /* harmony import */ var zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/contain/text.js */ "./node_modules/zrender/lib/contain/text.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function createSectorCalculateTextPosition(positionMapping, opts) { opts = opts || {}; var isRoundCap = opts.isRoundCap; return function (out, opts, boundingRect) { var textPosition = opts.position; if (!textPosition || textPosition instanceof Array) { return Object(zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_0__["calculateTextPosition"])(out, opts, boundingRect); } var mappedSectorPosition = positionMapping(textPosition); var distance = opts.distance != null ? opts.distance : 5; var sector = this.shape; var cx = sector.cx; var cy = sector.cy; var r = sector.r; var r0 = sector.r0; var middleR = (r + r0) / 2; var startAngle = sector.startAngle; var endAngle = sector.endAngle; var middleAngle = (startAngle + endAngle) / 2; var extraDist = isRoundCap ? Math.abs(r - r0) / 2 : 0; var mathCos = Math.cos; var mathSin = Math.sin; // base position: top-left var x = cx + r * mathCos(startAngle); var y = cy + r * mathSin(startAngle); var textAlign = 'left'; var textVerticalAlign = 'top'; switch (mappedSectorPosition) { case 'startArc': x = cx + (r0 - distance) * mathCos(middleAngle); y = cy + (r0 - distance) * mathSin(middleAngle); textAlign = 'center'; textVerticalAlign = 'top'; break; case 'insideStartArc': x = cx + (r0 + distance) * mathCos(middleAngle); y = cy + (r0 + distance) * mathSin(middleAngle); textAlign = 'center'; textVerticalAlign = 'bottom'; break; case 'startAngle': x = cx + middleR * mathCos(startAngle) + adjustAngleDistanceX(startAngle, distance + extraDist, false); y = cy + middleR * mathSin(startAngle) + adjustAngleDistanceY(startAngle, distance + extraDist, false); textAlign = 'right'; textVerticalAlign = 'middle'; break; case 'insideStartAngle': x = cx + middleR * mathCos(startAngle) + adjustAngleDistanceX(startAngle, -distance + extraDist, false); y = cy + middleR * mathSin(startAngle) + adjustAngleDistanceY(startAngle, -distance + extraDist, false); textAlign = 'left'; textVerticalAlign = 'middle'; break; case 'middle': x = cx + middleR * mathCos(middleAngle); y = cy + middleR * mathSin(middleAngle); textAlign = 'center'; textVerticalAlign = 'middle'; break; case 'endArc': x = cx + (r + distance) * mathCos(middleAngle); y = cy + (r + distance) * mathSin(middleAngle); textAlign = 'center'; textVerticalAlign = 'bottom'; break; case 'insideEndArc': x = cx + (r - distance) * mathCos(middleAngle); y = cy + (r - distance) * mathSin(middleAngle); textAlign = 'center'; textVerticalAlign = 'top'; break; case 'endAngle': x = cx + middleR * mathCos(endAngle) + adjustAngleDistanceX(endAngle, distance + extraDist, true); y = cy + middleR * mathSin(endAngle) + adjustAngleDistanceY(endAngle, distance + extraDist, true); textAlign = 'left'; textVerticalAlign = 'middle'; break; case 'insideEndAngle': x = cx + middleR * mathCos(endAngle) + adjustAngleDistanceX(endAngle, -distance + extraDist, true); y = cy + middleR * mathSin(endAngle) + adjustAngleDistanceY(endAngle, -distance + extraDist, true); textAlign = 'right'; textVerticalAlign = 'middle'; break; default: return Object(zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_0__["calculateTextPosition"])(out, opts, boundingRect); } out = out || {}; out.x = x; out.y = y; out.align = textAlign; out.verticalAlign = textVerticalAlign; return out; }; } function setSectorTextRotation(sector, textPosition, positionMapping, rotateType) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isNumber"])(rotateType)) { // user-set rotation sector.setTextConfig({ rotation: rotateType }); return; } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(textPosition)) { // user-set position, use 0 as auto rotation sector.setTextConfig({ rotation: 0 }); return; } var shape = sector.shape; var startAngle = shape.clockwise ? shape.startAngle : shape.endAngle; var endAngle = shape.clockwise ? shape.endAngle : shape.startAngle; var middleAngle = (startAngle + endAngle) / 2; var anchorAngle; var mappedSectorPosition = positionMapping(textPosition); switch (mappedSectorPosition) { case 'startArc': case 'insideStartArc': case 'middle': case 'insideEndArc': case 'endArc': anchorAngle = middleAngle; break; case 'startAngle': case 'insideStartAngle': anchorAngle = startAngle; break; case 'endAngle': case 'insideEndAngle': anchorAngle = endAngle; break; default: sector.setTextConfig({ rotation: 0 }); return; } var rotate = Math.PI * 1.5 - anchorAngle; /** * TODO: labels with rotate > Math.PI / 2 should be rotate another * half round flipped to increase readability. However, only middle * position supports this for now, because in other positions, the * anchor point is not at the center of the text, so the positions * after rotating is not as expected. */ if (mappedSectorPosition === 'middle' && rotate > Math.PI / 2 && rotate < Math.PI * 1.5) { rotate -= Math.PI; } sector.setTextConfig({ rotation: rotate }); } function adjustAngleDistanceX(angle, distance, isEnd) { return distance * Math.sin(angle) * (isEnd ? -1 : 1); } function adjustAngleDistanceY(angle, distance, isEnd) { return distance * Math.cos(angle) * (isEnd ? 1 : -1); } /***/ }), /***/ "./node_modules/echarts/lib/layout/barGrid.js": /*!****************************************************!*\ !*** ./node_modules/echarts/lib/layout/barGrid.js ***! \****************************************************/ /*! exports provided: getLayoutOnAxis, prepareLayoutBarSeries, makeColumnLayout, retrieveColumnLayout, layout, createProgressiveLayout */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLayoutOnAxis", function() { return getLayoutOnAxis; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prepareLayoutBarSeries", function() { return prepareLayoutBarSeries; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeColumnLayout", function() { return makeColumnLayout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retrieveColumnLayout", function() { return retrieveColumnLayout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "layout", function() { return layout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createProgressiveLayout", function() { return createProgressiveLayout; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../data/helper/dataStackHelper.js */ "./node_modules/echarts/lib/data/helper/dataStackHelper.js"); /* harmony import */ var _chart_helper_createRenderPlanner_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../chart/helper/createRenderPlanner.js */ "./node_modules/echarts/lib/chart/helper/createRenderPlanner.js"); /* harmony import */ var _util_vendor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/vendor.js */ "./node_modules/echarts/lib/util/vendor.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var STACK_PREFIX = '__ec_stack_'; function getSeriesStackId(seriesModel) { return seriesModel.get('stack') || STACK_PREFIX + seriesModel.seriesIndex; } function getAxisKey(axis) { return axis.dim + axis.index; } /** * @return {Object} {width, offset, offsetCenter} If axis.type is not 'category', return undefined. */ function getLayoutOnAxis(opt) { var params = []; var baseAxis = opt.axis; var axisKey = 'axis0'; if (baseAxis.type !== 'category') { return; } var bandWidth = baseAxis.getBandWidth(); for (var i = 0; i < opt.count || 0; i++) { params.push(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"])({ bandWidth: bandWidth, axisKey: axisKey, stackId: STACK_PREFIX + i }, opt)); } var widthAndOffsets = doCalBarWidthAndOffset(params); var result = []; for (var i = 0; i < opt.count; i++) { var item = widthAndOffsets[axisKey][STACK_PREFIX + i]; item.offsetCenter = item.offset + item.width / 2; result.push(item); } return result; } function prepareLayoutBarSeries(seriesType, ecModel) { var seriesModels = []; ecModel.eachSeriesByType(seriesType, function (seriesModel) { // Check series coordinate, do layout for cartesian2d only if (isOnCartesian(seriesModel)) { seriesModels.push(seriesModel); } }); return seriesModels; } /** * Map from (baseAxis.dim + '_' + baseAxis.index) to min gap of two adjacent * values. * This works for time axes, value axes, and log axes. * For a single time axis, return value is in the form like * {'x_0': [1000000]}. * The value of 1000000 is in milliseconds. */ function getValueAxesMinGaps(barSeries) { /** * Map from axis.index to values. * For a single time axis, axisValues is in the form like * {'x_0': [1495555200000, 1495641600000, 1495728000000]}. * Items in axisValues[x], e.g. 1495555200000, are time values of all * series. */ var axisValues = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(barSeries, function (seriesModel) { var cartesian = seriesModel.coordinateSystem; var baseAxis = cartesian.getBaseAxis(); if (baseAxis.type !== 'time' && baseAxis.type !== 'value') { return; } var data = seriesModel.getData(); var key = baseAxis.dim + '_' + baseAxis.index; var dimIdx = data.getDimensionIndex(data.mapDimension(baseAxis.dim)); var store = data.getStore(); for (var i = 0, cnt = store.count(); i < cnt; ++i) { var value = store.get(dimIdx, i); if (!axisValues[key]) { // No previous data for the axis axisValues[key] = [value]; } else { // No value in previous series axisValues[key].push(value); } // Ignore duplicated time values in the same axis } }); var axisMinGaps = {}; for (var key in axisValues) { if (axisValues.hasOwnProperty(key)) { var valuesInAxis = axisValues[key]; if (valuesInAxis) { // Sort axis values into ascending order to calculate gaps valuesInAxis.sort(function (a, b) { return a - b; }); var min = null; for (var j = 1; j < valuesInAxis.length; ++j) { var delta = valuesInAxis[j] - valuesInAxis[j - 1]; if (delta > 0) { // Ignore 0 delta because they are of the same axis value min = min === null ? delta : Math.min(min, delta); } } // Set to null if only have one data axisMinGaps[key] = min; } } } return axisMinGaps; } function makeColumnLayout(barSeries) { var axisMinGaps = getValueAxesMinGaps(barSeries); var seriesInfoList = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(barSeries, function (seriesModel) { var cartesian = seriesModel.coordinateSystem; var baseAxis = cartesian.getBaseAxis(); var axisExtent = baseAxis.getExtent(); var bandWidth; if (baseAxis.type === 'category') { bandWidth = baseAxis.getBandWidth(); } else if (baseAxis.type === 'value' || baseAxis.type === 'time') { var key = baseAxis.dim + '_' + baseAxis.index; var minGap = axisMinGaps[key]; var extentSpan = Math.abs(axisExtent[1] - axisExtent[0]); var scale = baseAxis.scale.getExtent(); var scaleSpan = Math.abs(scale[1] - scale[0]); bandWidth = minGap ? extentSpan / scaleSpan * minGap : extentSpan; // When there is only one data value } else { var data = seriesModel.getData(); bandWidth = Math.abs(axisExtent[1] - axisExtent[0]) / data.count(); } var barWidth = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(seriesModel.get('barWidth'), bandWidth); var barMaxWidth = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(seriesModel.get('barMaxWidth'), bandWidth); var barMinWidth = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])( // barMinWidth by default is 0.5 / 1 in cartesian. Because in value axis, // the auto-calculated bar width might be less than 0.5 / 1. seriesModel.get('barMinWidth') || (isInLargeMode(seriesModel) ? 0.5 : 1), bandWidth); var barGap = seriesModel.get('barGap'); var barCategoryGap = seriesModel.get('barCategoryGap'); seriesInfoList.push({ bandWidth: bandWidth, barWidth: barWidth, barMaxWidth: barMaxWidth, barMinWidth: barMinWidth, barGap: barGap, barCategoryGap: barCategoryGap, axisKey: getAxisKey(baseAxis), stackId: getSeriesStackId(seriesModel) }); }); return doCalBarWidthAndOffset(seriesInfoList); } function doCalBarWidthAndOffset(seriesInfoList) { // Columns info on each category axis. Key is cartesian name var columnsMap = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(seriesInfoList, function (seriesInfo, idx) { var axisKey = seriesInfo.axisKey; var bandWidth = seriesInfo.bandWidth; var columnsOnAxis = columnsMap[axisKey] || { bandWidth: bandWidth, remainedWidth: bandWidth, autoWidthCount: 0, categoryGap: null, gap: '20%', stacks: {} }; var stacks = columnsOnAxis.stacks; columnsMap[axisKey] = columnsOnAxis; var stackId = seriesInfo.stackId; if (!stacks[stackId]) { columnsOnAxis.autoWidthCount++; } stacks[stackId] = stacks[stackId] || { width: 0, maxWidth: 0 }; // Caution: In a single coordinate system, these barGrid attributes // will be shared by series. Consider that they have default values, // only the attributes set on the last series will work. // Do not change this fact unless there will be a break change. var barWidth = seriesInfo.barWidth; if (barWidth && !stacks[stackId].width) { // See #6312, do not restrict width. stacks[stackId].width = barWidth; barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth); columnsOnAxis.remainedWidth -= barWidth; } var barMaxWidth = seriesInfo.barMaxWidth; barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth); var barMinWidth = seriesInfo.barMinWidth; barMinWidth && (stacks[stackId].minWidth = barMinWidth); var barGap = seriesInfo.barGap; barGap != null && (columnsOnAxis.gap = barGap); var barCategoryGap = seriesInfo.barCategoryGap; barCategoryGap != null && (columnsOnAxis.categoryGap = barCategoryGap); }); var result = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(columnsMap, function (columnsOnAxis, coordSysName) { result[coordSysName] = {}; var stacks = columnsOnAxis.stacks; var bandWidth = columnsOnAxis.bandWidth; var categoryGapPercent = columnsOnAxis.categoryGap; if (categoryGapPercent == null) { var columnCount = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["keys"])(stacks).length; // More columns in one group // the spaces between group is smaller. Or the column will be too thin. categoryGapPercent = Math.max(35 - columnCount * 4, 15) + '%'; } var categoryGap = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(categoryGapPercent, bandWidth); var barGapPercent = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(columnsOnAxis.gap, 1); var remainedWidth = columnsOnAxis.remainedWidth; var autoWidthCount = columnsOnAxis.autoWidthCount; var autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent); autoWidth = Math.max(autoWidth, 0); // Find if any auto calculated bar exceeded maxBarWidth Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(stacks, function (column) { var maxWidth = column.maxWidth; var minWidth = column.minWidth; if (!column.width) { var finalWidth = autoWidth; if (maxWidth && maxWidth < finalWidth) { finalWidth = Math.min(maxWidth, remainedWidth); } // `minWidth` has higher priority. `minWidth` decide that whether the // bar is able to be visible. So `minWidth` should not be restricted // by `maxWidth` or `remainedWidth` (which is from `bandWidth`). In // the extreme cases for `value` axis, bars are allowed to overlap // with each other if `minWidth` specified. if (minWidth && minWidth > finalWidth) { finalWidth = minWidth; } if (finalWidth !== autoWidth) { column.width = finalWidth; remainedWidth -= finalWidth + barGapPercent * finalWidth; autoWidthCount--; } } else { // `barMinWidth/barMaxWidth` has higher priority than `barWidth`, as // CSS does. Because barWidth can be a percent value, where // `barMaxWidth` can be used to restrict the final width. var finalWidth = column.width; if (maxWidth) { finalWidth = Math.min(finalWidth, maxWidth); } // `minWidth` has higher priority, as described above if (minWidth) { finalWidth = Math.max(finalWidth, minWidth); } column.width = finalWidth; remainedWidth -= finalWidth + barGapPercent * finalWidth; autoWidthCount--; } }); // Recalculate width again autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent); autoWidth = Math.max(autoWidth, 0); var widthSum = 0; var lastColumn; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(stacks, function (column, idx) { if (!column.width) { column.width = autoWidth; } lastColumn = column; widthSum += column.width * (1 + barGapPercent); }); if (lastColumn) { widthSum -= lastColumn.width * barGapPercent; } var offset = -widthSum / 2; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(stacks, function (column, stackId) { result[coordSysName][stackId] = result[coordSysName][stackId] || { bandWidth: bandWidth, offset: offset, width: column.width }; offset += column.width * (1 + barGapPercent); }); }); return result; } function retrieveColumnLayout(barWidthAndOffset, axis, seriesModel) { if (barWidthAndOffset && axis) { var result = barWidthAndOffset[getAxisKey(axis)]; if (result != null && seriesModel != null) { return result[getSeriesStackId(seriesModel)]; } return result; } } function layout(seriesType, ecModel) { var seriesModels = prepareLayoutBarSeries(seriesType, ecModel); var barWidthAndOffset = makeColumnLayout(seriesModels); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(seriesModels, function (seriesModel) { var data = seriesModel.getData(); var cartesian = seriesModel.coordinateSystem; var baseAxis = cartesian.getBaseAxis(); var stackId = getSeriesStackId(seriesModel); var columnLayoutInfo = barWidthAndOffset[getAxisKey(baseAxis)][stackId]; var columnOffset = columnLayoutInfo.offset; var columnWidth = columnLayoutInfo.width; data.setLayout({ bandWidth: columnLayoutInfo.bandWidth, offset: columnOffset, size: columnWidth }); }); } // TODO: Do not support stack in large mode yet. function createProgressiveLayout(seriesType) { return { seriesType: seriesType, plan: Object(_chart_helper_createRenderPlanner_js__WEBPACK_IMPORTED_MODULE_3__["default"])(), reset: function (seriesModel) { if (!isOnCartesian(seriesModel)) { return; } var data = seriesModel.getData(); var cartesian = seriesModel.coordinateSystem; var baseAxis = cartesian.getBaseAxis(); var valueAxis = cartesian.getOtherAxis(baseAxis); var valueDimIdx = data.getDimensionIndex(data.mapDimension(valueAxis.dim)); var baseDimIdx = data.getDimensionIndex(data.mapDimension(baseAxis.dim)); var drawBackground = seriesModel.get('showBackground', true); var valueDim = data.mapDimension(valueAxis.dim); var stackResultDim = data.getCalculationInfo('stackResultDimension'); var stacked = Object(_data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_2__["isDimensionStacked"])(data, valueDim) && !!data.getCalculationInfo('stackedOnSeries'); var isValueAxisH = valueAxis.isHorizontal(); var valueAxisStart = getValueAxisStart(baseAxis, valueAxis); var isLarge = isInLargeMode(seriesModel); var barMinHeight = seriesModel.get('barMinHeight') || 0; var stackedDimIdx = stackResultDim && data.getDimensionIndex(stackResultDim); // Layout info. var columnWidth = data.getLayout('size'); var columnOffset = data.getLayout('offset'); return { progress: function (params, data) { var count = params.count; var largePoints = isLarge && Object(_util_vendor_js__WEBPACK_IMPORTED_MODULE_4__["createFloat32Array"])(count * 3); var largeBackgroundPoints = isLarge && drawBackground && Object(_util_vendor_js__WEBPACK_IMPORTED_MODULE_4__["createFloat32Array"])(count * 3); var largeDataIndices = isLarge && Object(_util_vendor_js__WEBPACK_IMPORTED_MODULE_4__["createFloat32Array"])(count); var coordLayout = cartesian.master.getRect(); var bgSize = isValueAxisH ? coordLayout.width : coordLayout.height; var dataIndex; var store = data.getStore(); var idxOffset = 0; while ((dataIndex = params.next()) != null) { var value = store.get(stacked ? stackedDimIdx : valueDimIdx, dataIndex); var baseValue = store.get(baseDimIdx, dataIndex); var baseCoord = valueAxisStart; var stackStartValue = void 0; // Because of the barMinHeight, we can not use the value in // stackResultDimension directly. if (stacked) { stackStartValue = +value - store.get(valueDimIdx, dataIndex); } var x = void 0; var y = void 0; var width = void 0; var height = void 0; if (isValueAxisH) { var coord = cartesian.dataToPoint([value, baseValue]); if (stacked) { var startCoord = cartesian.dataToPoint([stackStartValue, baseValue]); baseCoord = startCoord[0]; } x = baseCoord; y = coord[1] + columnOffset; width = coord[0] - baseCoord; height = columnWidth; if (Math.abs(width) < barMinHeight) { width = (width < 0 ? -1 : 1) * barMinHeight; } } else { var coord = cartesian.dataToPoint([baseValue, value]); if (stacked) { var startCoord = cartesian.dataToPoint([baseValue, stackStartValue]); baseCoord = startCoord[1]; } x = coord[0] + columnOffset; y = baseCoord; width = columnWidth; height = coord[1] - baseCoord; if (Math.abs(height) < barMinHeight) { // Include zero to has a positive bar height = (height <= 0 ? -1 : 1) * barMinHeight; } } if (!isLarge) { data.setItemLayout(dataIndex, { x: x, y: y, width: width, height: height }); } else { largePoints[idxOffset] = x; largePoints[idxOffset + 1] = y; largePoints[idxOffset + 2] = isValueAxisH ? width : height; if (largeBackgroundPoints) { largeBackgroundPoints[idxOffset] = isValueAxisH ? coordLayout.x : x; largeBackgroundPoints[idxOffset + 1] = isValueAxisH ? y : coordLayout.y; largeBackgroundPoints[idxOffset + 2] = bgSize; } largeDataIndices[dataIndex] = dataIndex; } idxOffset += 3; } if (isLarge) { data.setLayout({ largePoints: largePoints, largeDataIndices: largeDataIndices, largeBackgroundPoints: largeBackgroundPoints, valueAxisHorizontal: isValueAxisH }); } } }; } }; } function isOnCartesian(seriesModel) { return seriesModel.coordinateSystem && seriesModel.coordinateSystem.type === 'cartesian2d'; } function isInLargeMode(seriesModel) { return seriesModel.pipelineContext && seriesModel.pipelineContext.large; } // See cases in `test/bar-start.html` and `#7412`, `#8747`. function getValueAxisStart(baseAxis, valueAxis) { var startValue = valueAxis.model.get('startValue'); if (!startValue) { startValue = 0; } return valueAxis.toGlobalCoord(valueAxis.dataToCoord(valueAxis.type === 'log' ? startValue > 0 ? startValue : 1 : startValue)); } /***/ }), /***/ "./node_modules/echarts/lib/layout/barPolar.js": /*!*****************************************************!*\ !*** ./node_modules/echarts/lib/layout/barPolar.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../data/helper/dataStackHelper.js */ "./node_modules/echarts/lib/data/helper/dataStackHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getSeriesStackId(seriesModel) { return seriesModel.get('stack') || '__ec_stack_' + seriesModel.seriesIndex; } function getAxisKey(polar, axis) { return axis.dim + polar.model.componentIndex; } function barLayoutPolar(seriesType, ecModel, api) { var lastStackCoords = {}; var barWidthAndOffset = calRadialBar(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["filter"](ecModel.getSeriesByType(seriesType), function (seriesModel) { return !ecModel.isSeriesFiltered(seriesModel) && seriesModel.coordinateSystem && seriesModel.coordinateSystem.type === 'polar'; })); ecModel.eachSeriesByType(seriesType, function (seriesModel) { // Check series coordinate, do layout for polar only if (seriesModel.coordinateSystem.type !== 'polar') { return; } var data = seriesModel.getData(); var polar = seriesModel.coordinateSystem; var baseAxis = polar.getBaseAxis(); var axisKey = getAxisKey(polar, baseAxis); var stackId = getSeriesStackId(seriesModel); var columnLayoutInfo = barWidthAndOffset[axisKey][stackId]; var columnOffset = columnLayoutInfo.offset; var columnWidth = columnLayoutInfo.width; var valueAxis = polar.getOtherAxis(baseAxis); var cx = seriesModel.coordinateSystem.cx; var cy = seriesModel.coordinateSystem.cy; var barMinHeight = seriesModel.get('barMinHeight') || 0; var barMinAngle = seriesModel.get('barMinAngle') || 0; lastStackCoords[stackId] = lastStackCoords[stackId] || []; var valueDim = data.mapDimension(valueAxis.dim); var baseDim = data.mapDimension(baseAxis.dim); var stacked = Object(_data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_2__["isDimensionStacked"])(data, valueDim /* , baseDim */); var clampLayout = baseAxis.dim !== 'radius' || !seriesModel.get('roundCap', true); var valueAxisModel = valueAxis.model; var startValue = valueAxisModel.get('startValue'); var valueAxisStart = valueAxis.dataToCoord(startValue || 0); for (var idx = 0, len = data.count(); idx < len; idx++) { var value = data.get(valueDim, idx); var baseValue = data.get(baseDim, idx); var sign = value >= 0 ? 'p' : 'n'; var baseCoord = valueAxisStart; // Because of the barMinHeight, we can not use the value in // stackResultDimension directly. // Only ordinal axis can be stacked. if (stacked) { if (!lastStackCoords[stackId][baseValue]) { lastStackCoords[stackId][baseValue] = { p: valueAxisStart, n: valueAxisStart // Negative stack }; } // Should also consider #4243 baseCoord = lastStackCoords[stackId][baseValue][sign]; } var r0 = void 0; var r = void 0; var startAngle = void 0; var endAngle = void 0; // radial sector if (valueAxis.dim === 'radius') { var radiusSpan = valueAxis.dataToCoord(value) - valueAxisStart; var angle = baseAxis.dataToCoord(baseValue); if (Math.abs(radiusSpan) < barMinHeight) { radiusSpan = (radiusSpan < 0 ? -1 : 1) * barMinHeight; } r0 = baseCoord; r = baseCoord + radiusSpan; startAngle = angle - columnOffset; endAngle = startAngle - columnWidth; stacked && (lastStackCoords[stackId][baseValue][sign] = r); } // tangential sector else { var angleSpan = valueAxis.dataToCoord(value, clampLayout) - valueAxisStart; var radius = baseAxis.dataToCoord(baseValue); if (Math.abs(angleSpan) < barMinAngle) { angleSpan = (angleSpan < 0 ? -1 : 1) * barMinAngle; } r0 = radius + columnOffset; r = r0 + columnWidth; startAngle = baseCoord; endAngle = baseCoord + angleSpan; // if the previous stack is at the end of the ring, // add a round to differentiate it from origin // let extent = angleAxis.getExtent(); // let stackCoord = angle; // if (stackCoord === extent[0] && value > 0) { // stackCoord = extent[1]; // } // else if (stackCoord === extent[1] && value < 0) { // stackCoord = extent[0]; // } stacked && (lastStackCoords[stackId][baseValue][sign] = endAngle); } data.setItemLayout(idx, { cx: cx, cy: cy, r0: r0, r: r, // Consider that positive angle is anti-clockwise, // while positive radian of sector is clockwise startAngle: -startAngle * Math.PI / 180, endAngle: -endAngle * Math.PI / 180, /** * Keep the same logic with bar in catesion: use end value to * control direction. Notice that if clockwise is true (by * default), the sector will always draw clockwisely, no matter * whether endAngle is greater or less than startAngle. */ clockwise: startAngle >= endAngle }); } }); } /** * Calculate bar width and offset for radial bar charts */ function calRadialBar(barSeries) { // Columns info on each category axis. Key is polar name var columnsMap = {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](barSeries, function (seriesModel, idx) { var data = seriesModel.getData(); var polar = seriesModel.coordinateSystem; var baseAxis = polar.getBaseAxis(); var axisKey = getAxisKey(polar, baseAxis); var axisExtent = baseAxis.getExtent(); var bandWidth = baseAxis.type === 'category' ? baseAxis.getBandWidth() : Math.abs(axisExtent[1] - axisExtent[0]) / data.count(); var columnsOnAxis = columnsMap[axisKey] || { bandWidth: bandWidth, remainedWidth: bandWidth, autoWidthCount: 0, categoryGap: '20%', gap: '30%', stacks: {} }; var stacks = columnsOnAxis.stacks; columnsMap[axisKey] = columnsOnAxis; var stackId = getSeriesStackId(seriesModel); if (!stacks[stackId]) { columnsOnAxis.autoWidthCount++; } stacks[stackId] = stacks[stackId] || { width: 0, maxWidth: 0 }; var barWidth = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(seriesModel.get('barWidth'), bandWidth); var barMaxWidth = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(seriesModel.get('barMaxWidth'), bandWidth); var barGap = seriesModel.get('barGap'); var barCategoryGap = seriesModel.get('barCategoryGap'); if (barWidth && !stacks[stackId].width) { barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth); stacks[stackId].width = barWidth; columnsOnAxis.remainedWidth -= barWidth; } barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth); barGap != null && (columnsOnAxis.gap = barGap); barCategoryGap != null && (columnsOnAxis.categoryGap = barCategoryGap); }); var result = {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](columnsMap, function (columnsOnAxis, coordSysName) { result[coordSysName] = {}; var stacks = columnsOnAxis.stacks; var bandWidth = columnsOnAxis.bandWidth; var categoryGap = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(columnsOnAxis.categoryGap, bandWidth); var barGapPercent = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parsePercent"])(columnsOnAxis.gap, 1); var remainedWidth = columnsOnAxis.remainedWidth; var autoWidthCount = columnsOnAxis.autoWidthCount; var autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent); autoWidth = Math.max(autoWidth, 0); // Find if any auto calculated bar exceeded maxBarWidth zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](stacks, function (column, stack) { var maxWidth = column.maxWidth; if (maxWidth && maxWidth < autoWidth) { maxWidth = Math.min(maxWidth, remainedWidth); if (column.width) { maxWidth = Math.min(maxWidth, column.width); } remainedWidth -= maxWidth; column.width = maxWidth; autoWidthCount--; } }); // Recalculate width again autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent); autoWidth = Math.max(autoWidth, 0); var widthSum = 0; var lastColumn; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](stacks, function (column, idx) { if (!column.width) { column.width = autoWidth; } lastColumn = column; widthSum += column.width * (1 + barGapPercent); }); if (lastColumn) { widthSum -= lastColumn.width * barGapPercent; } var offset = -widthSum / 2; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](stacks, function (column, stackId) { result[coordSysName][stackId] = result[coordSysName][stackId] || { offset: offset, width: column.width }; offset += column.width * (1 + barGapPercent); }); }); return result; } /* harmony default export */ __webpack_exports__["default"] = (barLayoutPolar); /***/ }), /***/ "./node_modules/echarts/lib/layout/points.js": /*!***************************************************!*\ !*** ./node_modules/echarts/lib/layout/points.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return pointsLayout; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _chart_helper_createRenderPlanner_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../chart/helper/createRenderPlanner.js */ "./node_modules/echarts/lib/chart/helper/createRenderPlanner.js"); /* harmony import */ var _data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../data/helper/dataStackHelper.js */ "./node_modules/echarts/lib/data/helper/dataStackHelper.js"); /* harmony import */ var _util_vendor_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/vendor.js */ "./node_modules/echarts/lib/util/vendor.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function pointsLayout(seriesType, forceStoreInTypedArray) { return { seriesType: seriesType, plan: Object(_chart_helper_createRenderPlanner_js__WEBPACK_IMPORTED_MODULE_1__["default"])(), reset: function (seriesModel) { var data = seriesModel.getData(); var coordSys = seriesModel.coordinateSystem; var pipelineContext = seriesModel.pipelineContext; var useTypedArray = forceStoreInTypedArray || pipelineContext.large; if (!coordSys) { return; } var dims = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(coordSys.dimensions, function (dim) { return data.mapDimension(dim); }).slice(0, 2); var dimLen = dims.length; var stackResultDim = data.getCalculationInfo('stackResultDimension'); if (Object(_data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_2__["isDimensionStacked"])(data, dims[0])) { dims[0] = stackResultDim; } if (Object(_data_helper_dataStackHelper_js__WEBPACK_IMPORTED_MODULE_2__["isDimensionStacked"])(data, dims[1])) { dims[1] = stackResultDim; } var store = data.getStore(); var dimIdx0 = data.getDimensionIndex(dims[0]); var dimIdx1 = data.getDimensionIndex(dims[1]); return dimLen && { progress: function (params, data) { var segCount = params.end - params.start; var points = useTypedArray && Object(_util_vendor_js__WEBPACK_IMPORTED_MODULE_3__["createFloat32Array"])(segCount * dimLen); var tmpIn = []; var tmpOut = []; for (var i = params.start, offset = 0; i < params.end; i++) { var point = void 0; if (dimLen === 1) { var x = store.get(dimIdx0, i); // NOTE: Make sure the second parameter is null to use default strategy. point = coordSys.dataToPoint(x, null, tmpOut); } else { tmpIn[0] = store.get(dimIdx0, i); tmpIn[1] = store.get(dimIdx1, i); // Let coordinate system to handle the NaN data. point = coordSys.dataToPoint(tmpIn, null, tmpOut); } if (useTypedArray) { points[offset++] = point[0]; points[offset++] = point[1]; } else { data.setItemLayout(i, point.slice()); } } useTypedArray && data.setLayout('points', points); } }; } }; } ; /***/ }), /***/ "./node_modules/echarts/lib/legacy/dataSelectAction.js": /*!*************************************************************!*\ !*** ./node_modules/echarts/lib/legacy/dataSelectAction.js ***! \*************************************************************/ /*! exports provided: createLegacyDataSelectAction, handleLegacySelectEvents */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createLegacyDataSelectAction", function() { return createLegacyDataSelectAction; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleLegacySelectEvents", function() { return handleLegacySelectEvents; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Legacy data selection action. // Includes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect function createLegacyDataSelectAction(seriesType, ecRegisterAction) { function getSeriesIndices(ecModel, payload) { var seriesIndices = []; ecModel.eachComponent({ mainType: 'series', subType: seriesType, query: payload }, function (seriesModel) { seriesIndices.push(seriesModel.seriesIndex); }); return seriesIndices; } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])([[seriesType + 'ToggleSelect', 'toggleSelect'], [seriesType + 'Select', 'select'], [seriesType + 'UnSelect', 'unselect']], function (eventsMap) { ecRegisterAction(eventsMap[0], function (payload, ecModel, api) { payload = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, payload); if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["deprecateReplaceLog"])(payload.type, eventsMap[1]); } api.dispatchAction(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(payload, { type: eventsMap[1], seriesIndex: getSeriesIndices(ecModel, payload) })); }); }); } function handleSeriesLegacySelectEvents(type, eventPostfix, ecIns, ecModel, payload) { var legacyEventName = type + eventPostfix; if (!ecIns.isSilent(legacyEventName)) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_1__["deprecateLog"])("event " + legacyEventName + " is deprecated."); } ecModel.eachComponent({ mainType: 'series', subType: 'pie' }, function (seriesModel) { var seriesIndex = seriesModel.seriesIndex; var selectedMap = seriesModel.option.selectedMap; var selected = payload.selected; for (var i = 0; i < selected.length; i++) { if (selected[i].seriesIndex === seriesIndex) { var data = seriesModel.getData(); var dataIndex = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_2__["queryDataIndex"])(data, payload.fromActionPayload); ecIns.trigger(legacyEventName, { type: legacyEventName, seriesId: seriesModel.id, name: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(dataIndex) ? data.getName(dataIndex[0]) : data.getName(dataIndex), selected: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(selectedMap) ? selectedMap : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, selectedMap) }); } } }); } } function handleLegacySelectEvents(messageCenter, ecIns, api) { messageCenter.on('selectchanged', function (params) { var ecModel = api.getModel(); if (params.isFromClick) { handleSeriesLegacySelectEvents('map', 'selectchanged', ecIns, ecModel, params); handleSeriesLegacySelectEvents('pie', 'selectchanged', ecIns, ecModel, params); } else if (params.fromAction === 'select') { handleSeriesLegacySelectEvents('map', 'selected', ecIns, ecModel, params); handleSeriesLegacySelectEvents('pie', 'selected', ecIns, ecModel, params); } else if (params.fromAction === 'unselect') { handleSeriesLegacySelectEvents('map', 'unselected', ecIns, ecModel, params); handleSeriesLegacySelectEvents('pie', 'unselected', ecIns, ecModel, params); } }); } /***/ }), /***/ "./node_modules/echarts/lib/legacy/getTextRect.js": /*!********************************************************!*\ !*** ./node_modules/echarts/lib/legacy/getTextRect.js ***! \********************************************************/ /*! exports provided: getTextRect */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTextRect", function() { return getTextRect; }); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getTextRect(text, font, align, verticalAlign, padding, rich, truncate, lineHeight) { var textEl = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_0__["Text"]({ style: { text: text, font: font, align: align, verticalAlign: verticalAlign, padding: padding, rich: rich, overflow: truncate ? 'truncate' : null, lineHeight: lineHeight } }); return textEl.getBoundingRect(); } /***/ }), /***/ "./node_modules/echarts/lib/loading/default.js": /*!*****************************************************!*\ !*** ./node_modules/echarts/lib/loading/default.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return defaultLoading; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PI = Math.PI; /** * @param {module:echarts/ExtensionAPI} api * @param {Object} [opts] * @param {string} [opts.text] * @param {string} [opts.color] * @param {string} [opts.textColor] * @return {module:zrender/Element} */ function defaultLoading(api, opts) { opts = opts || {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"](opts, { text: 'loading', textColor: '#000', fontSize: 12, fontWeight: 'normal', fontStyle: 'normal', fontFamily: 'sans-serif', maskColor: 'rgba(255, 255, 255, 0.8)', showSpinner: true, color: '#5470c6', spinnerRadius: 10, lineWidth: 5, zlevel: 0 }); var group = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Group"](); var mask = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Rect"]({ style: { fill: opts.maskColor }, zlevel: opts.zlevel, z: 10000 }); group.add(mask); var textContent = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Text"]({ style: { text: opts.text, fill: opts.textColor, fontSize: opts.fontSize, fontWeight: opts.fontWeight, fontStyle: opts.fontStyle, fontFamily: opts.fontFamily }, zlevel: opts.zlevel, z: 10001 }); var labelRect = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Rect"]({ style: { fill: 'none' }, textContent: textContent, textConfig: { position: 'right', distance: 10 }, zlevel: opts.zlevel, z: 10001 }); group.add(labelRect); var arc; if (opts.showSpinner) { arc = new _util_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Arc"]({ shape: { startAngle: -PI / 2, endAngle: -PI / 2 + 0.1, r: opts.spinnerRadius }, style: { stroke: opts.color, lineCap: 'round', lineWidth: opts.lineWidth }, zlevel: opts.zlevel, z: 10001 }); arc.animateShape(true).when(1000, { endAngle: PI * 3 / 2 }).start('circularInOut'); arc.animateShape(true).when(1000, { startAngle: PI * 3 / 2 }).delay(300).start('circularInOut'); group.add(arc); } // Inject resize group.resize = function () { var textWidth = textContent.getBoundingRect().width; var r = opts.showSpinner ? opts.spinnerRadius : 0; // cx = (containerWidth - arcDiameter - textDistance - textWidth) / 2 // textDistance needs to be calculated when both animation and text exist var cx = (api.getWidth() - r * 2 - (opts.showSpinner && textWidth ? 10 : 0) - textWidth) / 2 - (opts.showSpinner && textWidth ? 0 : 5 + textWidth / 2) // only show the text + (opts.showSpinner ? 0 : textWidth / 2) // only show the spinner + (textWidth ? 0 : r); var cy = api.getHeight() / 2; opts.showSpinner && arc.setShape({ cx: cx, cy: cy }); labelRect.setShape({ x: cx - r, y: cy - r, width: r * 2, height: r * 2 }); mask.setShape({ x: 0, y: 0, width: api.getWidth(), height: api.getHeight() }); }; group.resize(); return group; } /***/ }), /***/ "./node_modules/echarts/lib/model/Component.js": /*!*****************************************************!*\ !*** ./node_modules/echarts/lib/model/Component.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _Model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* harmony import */ var _util_clazz_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/clazz.js */ "./node_modules/echarts/lib/util/clazz.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_5__["makeInner"])(); var ComponentModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ComponentModel, _super); function ComponentModel(option, parentModel, ecModel) { var _this = _super.call(this, option, parentModel, ecModel) || this; _this.uid = _util_component_js__WEBPACK_IMPORTED_MODULE_3__["getUID"]('ec_cpt_model'); return _this; } ComponentModel.prototype.init = function (option, parentModel, ecModel) { this.mergeDefaultAndTheme(option, ecModel); }; ComponentModel.prototype.mergeDefaultAndTheme = function (option, ecModel) { var layoutMode = _util_layout_js__WEBPACK_IMPORTED_MODULE_6__["fetchLayoutMode"](this); var inputPositionParams = layoutMode ? _util_layout_js__WEBPACK_IMPORTED_MODULE_6__["getLayoutParams"](option) : {}; var themeModel = ecModel.getTheme(); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](option, themeModel.get(this.mainType)); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](option, this.getDefaultOption()); if (layoutMode) { _util_layout_js__WEBPACK_IMPORTED_MODULE_6__["mergeLayoutParam"](option, inputPositionParams, layoutMode); } }; ComponentModel.prototype.mergeOption = function (option, ecModel) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](this.option, option, true); var layoutMode = _util_layout_js__WEBPACK_IMPORTED_MODULE_6__["fetchLayoutMode"](this); if (layoutMode) { _util_layout_js__WEBPACK_IMPORTED_MODULE_6__["mergeLayoutParam"](this.option, option, layoutMode); } }; /** * Called immediately after `init` or `mergeOption` of this instance called. */ ComponentModel.prototype.optionUpdated = function (newCptOption, isInit) {}; /** * [How to declare defaultOption]: * * (A) If using class declaration in typescript (since echarts 5): * ```ts * import {ComponentOption} from '../model/option.js'; * export interface XxxOption extends ComponentOption { * aaa: number * } * export class XxxModel extends Component { * static type = 'xxx'; * static defaultOption: XxxOption = { * aaa: 123 * } * } * Component.registerClass(XxxModel); * ``` * ```ts * import {inheritDefaultOption} from '../util/component.js'; * import {XxxModel, XxxOption} from './XxxModel.js'; * export interface XxxSubOption extends XxxOption { * bbb: number * } * class XxxSubModel extends XxxModel { * static defaultOption: XxxSubOption = inheritDefaultOption(XxxModel.defaultOption, { * bbb: 456 * }) * fn() { * let opt = this.getDefaultOption(); * // opt is {aaa: 123, bbb: 456} * } * } * ``` * * (B) If using class extend (previous approach in echarts 3 & 4): * ```js * let XxxComponent = Component.extend({ * defaultOption: { * xx: 123 * } * }) * ``` * ```js * let XxxSubComponent = XxxComponent.extend({ * defaultOption: { * yy: 456 * }, * fn: function () { * let opt = this.getDefaultOption(); * // opt is {xx: 123, yy: 456} * } * }) * ``` */ ComponentModel.prototype.getDefaultOption = function () { var ctor = this.constructor; // If using class declaration, it is different to travel super class // in legacy env and auto merge defaultOption. So if using class // declaration, defaultOption should be merged manually. if (!Object(_util_clazz_js__WEBPACK_IMPORTED_MODULE_4__["isExtendedClass"])(ctor)) { // When using ts class, defaultOption must be declared as static. return ctor.defaultOption; } // FIXME: remove this approach? var fields = inner(this); if (!fields.defaultOption) { var optList = []; var clz = ctor; while (clz) { var opt = clz.prototype.defaultOption; opt && optList.push(opt); clz = clz.superClass; } var defaultOption = {}; for (var i = optList.length - 1; i >= 0; i--) { defaultOption = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](defaultOption, optList[i], true); } fields.defaultOption = defaultOption; } return fields.defaultOption; }; /** * Notice: always force to input param `useDefault` in case that forget to consider it. * The same behavior as `modelUtil.parseFinder`. * * @param useDefault In many cases like series refer axis and axis refer grid, * If axis index / axis id not specified, use the first target as default. * In other cases like dataZoom refer axis, if not specified, measn no refer. */ ComponentModel.prototype.getReferringComponents = function (mainType, opt) { var indexKey = mainType + 'Index'; var idKey = mainType + 'Id'; return Object(_util_model_js__WEBPACK_IMPORTED_MODULE_5__["queryReferringComponents"])(this.ecModel, mainType, { index: this.get(indexKey, true), id: this.get(idKey, true) }, opt); }; ComponentModel.prototype.getBoxLayoutParams = function () { // Consider itself having box layout configs. var boxLayoutModel = this; return { left: boxLayoutModel.get('left'), top: boxLayoutModel.get('top'), right: boxLayoutModel.get('right'), bottom: boxLayoutModel.get('bottom'), width: boxLayoutModel.get('width'), height: boxLayoutModel.get('height') }; }; /** * Get key for zlevel. * If developers don't configure zlevel. We will assign zlevel to series based on the key. * For example, lines with trail effect and progressive series will in an individual zlevel. */ ComponentModel.prototype.getZLevelKey = function () { return ''; }; ComponentModel.prototype.setZLevel = function (zlevel) { this.option.zlevel = zlevel; }; ComponentModel.protoInitialize = function () { var proto = ComponentModel.prototype; proto.type = 'component'; proto.id = ''; proto.name = ''; proto.mainType = ''; proto.subType = ''; proto.componentIndex = 0; }(); return ComponentModel; }(_Model_js__WEBPACK_IMPORTED_MODULE_2__["default"]); Object(_util_clazz_js__WEBPACK_IMPORTED_MODULE_4__["mountExtend"])(ComponentModel, _Model_js__WEBPACK_IMPORTED_MODULE_2__["default"]); Object(_util_clazz_js__WEBPACK_IMPORTED_MODULE_4__["enableClassManagement"])(ComponentModel); _util_component_js__WEBPACK_IMPORTED_MODULE_3__["enableSubTypeDefaulter"](ComponentModel); _util_component_js__WEBPACK_IMPORTED_MODULE_3__["enableTopologicalTravel"](ComponentModel, getDependencies); function getDependencies(componentType) { var deps = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](ComponentModel.getClassesByMainType(componentType), function (clz) { deps = deps.concat(clz.dependencies || clz.prototype.dependencies || []); }); // Ensure main type. deps = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](deps, function (type) { return Object(_util_clazz_js__WEBPACK_IMPORTED_MODULE_4__["parseClassType"])(type).main; }); // Hack dataset for convenience. if (componentType !== 'dataset' && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["indexOf"](deps, 'dataset') <= 0) { deps.unshift('dataset'); } return deps; } /* harmony default export */ __webpack_exports__["default"] = (ComponentModel); /***/ }), /***/ "./node_modules/echarts/lib/model/Global.js": /*!**************************************************!*\ !*** ./node_modules/echarts/lib/model/Global.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _Model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _Component_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _globalDefault_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./globalDefault.js */ "./node_modules/echarts/lib/model/globalDefault.js"); /* harmony import */ var _data_helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../data/helper/sourceHelper.js */ "./node_modules/echarts/lib/data/helper/sourceHelper.js"); /* harmony import */ var _internalComponentCreator_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./internalComponentCreator.js */ "./node_modules/echarts/lib/model/internalComponentCreator.js"); /* harmony import */ var _mixin_palette_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./mixin/palette.js */ "./node_modules/echarts/lib/model/mixin/palette.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Caution: If the mechanism should be changed some day, these cases * should be considered: * * (1) In `merge option` mode, if using the same option to call `setOption` * many times, the result should be the same (try our best to ensure that). * (2) In `merge option` mode, if a component has no id/name specified, it * will be merged by index, and the result sequence of the components is * consistent to the original sequence. * (3) In `replaceMerge` mode, keep the result sequence of the components is * consistent to the original sequence, even though there might result in "hole". * (4) `reset` feature (in toolbox). Find detailed info in comments about * `mergeOption` in module:echarts/model/OptionManager. */ // ----------------------- // Internal method names: // ----------------------- var reCreateSeriesIndices; var assertSeriesInitialized; var initBase; var OPTION_INNER_KEY = '\0_ec_inner'; var OPTION_INNER_VALUE = 1; var BUITIN_COMPONENTS_MAP = { grid: 'GridComponent', polar: 'PolarComponent', geo: 'GeoComponent', singleAxis: 'SingleAxisComponent', parallel: 'ParallelComponent', calendar: 'CalendarComponent', graphic: 'GraphicComponent', toolbox: 'ToolboxComponent', tooltip: 'TooltipComponent', axisPointer: 'AxisPointerComponent', brush: 'BrushComponent', title: 'TitleComponent', timeline: 'TimelineComponent', markPoint: 'MarkPointComponent', markLine: 'MarkLineComponent', markArea: 'MarkAreaComponent', legend: 'LegendComponent', dataZoom: 'DataZoomComponent', visualMap: 'VisualMapComponent', // aria: 'AriaComponent', // dataset: 'DatasetComponent', // Dependencies xAxis: 'GridComponent', yAxis: 'GridComponent', angleAxis: 'PolarComponent', radiusAxis: 'PolarComponent' }; var BUILTIN_CHARTS_MAP = { line: 'LineChart', bar: 'BarChart', pie: 'PieChart', scatter: 'ScatterChart', radar: 'RadarChart', map: 'MapChart', tree: 'TreeChart', treemap: 'TreemapChart', graph: 'GraphChart', gauge: 'GaugeChart', funnel: 'FunnelChart', parallel: 'ParallelChart', sankey: 'SankeyChart', boxplot: 'BoxplotChart', candlestick: 'CandlestickChart', effectScatter: 'EffectScatterChart', lines: 'LinesChart', heatmap: 'HeatmapChart', pictorialBar: 'PictorialBarChart', themeRiver: 'ThemeRiverChart', sunburst: 'SunburstChart', custom: 'CustomChart' }; var componetsMissingLogPrinted = {}; function checkMissingComponents(option) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(option, function (componentOption, mainType) { if (!_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].hasClass(mainType)) { var componentImportName = BUITIN_COMPONENTS_MAP[mainType]; if (componentImportName && !componetsMissingLogPrinted[componentImportName]) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_9__["error"])("Component " + mainType + " is used but not imported.\nimport { " + componentImportName + " } from 'echarts/components';\necharts.use([" + componentImportName + "]);"); componetsMissingLogPrinted[componentImportName] = true; } } }); } var GlobalModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GlobalModel, _super); function GlobalModel() { return _super !== null && _super.apply(this, arguments) || this; } GlobalModel.prototype.init = function (option, parentModel, ecModel, theme, locale, optionManager) { theme = theme || {}; this.option = null; // Mark as not initialized. this._theme = new _Model_js__WEBPACK_IMPORTED_MODULE_3__["default"](theme); this._locale = new _Model_js__WEBPACK_IMPORTED_MODULE_3__["default"](locale); this._optionManager = optionManager; }; GlobalModel.prototype.setOption = function (option, opts, optionPreprocessorFuncs) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(option != null, 'option is null/undefined'); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(option[OPTION_INNER_KEY] !== OPTION_INNER_VALUE, 'please use chart.getOption()'); } var innerOpt = normalizeSetOptionInput(opts); this._optionManager.setOption(option, optionPreprocessorFuncs, innerOpt); this._resetOption(null, innerOpt); }; /** * @param type null/undefined: reset all. * 'recreate': force recreate all. * 'timeline': only reset timeline option * 'media': only reset media query option * @return Whether option changed. */ GlobalModel.prototype.resetOption = function (type, opt) { return this._resetOption(type, normalizeSetOptionInput(opt)); }; GlobalModel.prototype._resetOption = function (type, opt) { var optionChanged = false; var optionManager = this._optionManager; if (!type || type === 'recreate') { var baseOption = optionManager.mountOption(type === 'recreate'); if (true) { checkMissingComponents(baseOption); } if (!this.option || type === 'recreate') { initBase(this, baseOption); } else { this.restoreData(); this._mergeOption(baseOption, opt); } optionChanged = true; } if (type === 'timeline' || type === 'media') { this.restoreData(); } // By design, if `setOption(option2)` at the second time, and `option2` is a `ECUnitOption`, // it should better not have the same props with `MediaUnit['option']`. // Because either `option2` or `MediaUnit['option']` will be always merged to "current option" // rather than original "baseOption". If they both override a prop, the result might be // unexpected when media state changed after `setOption` called. // If we really need to modify a props in each `MediaUnit['option']`, use the full version // (`{baseOption, media}`) in `setOption`. // For `timeline`, the case is the same. if (!type || type === 'recreate' || type === 'timeline') { var timelineOption = optionManager.getTimelineOption(this); if (timelineOption) { optionChanged = true; this._mergeOption(timelineOption, opt); } } if (!type || type === 'recreate' || type === 'media') { var mediaOptions = optionManager.getMediaOption(this); if (mediaOptions.length) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(mediaOptions, function (mediaOption) { optionChanged = true; this._mergeOption(mediaOption, opt); }, this); } } return optionChanged; }; GlobalModel.prototype.mergeOption = function (option) { this._mergeOption(option, null); }; GlobalModel.prototype._mergeOption = function (newOption, opt) { var option = this.option; var componentsMap = this._componentsMap; var componentsCount = this._componentsCount; var newCmptTypes = []; var newCmptTypeMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])(); var replaceMergeMainTypeMap = opt && opt.replaceMergeMainTypeMap; Object(_data_helper_sourceHelper_js__WEBPACK_IMPORTED_MODULE_6__["resetSourceDefaulter"])(this); // If no component class, merge directly. // For example: color, animaiton options, etc. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(newOption, function (componentOption, mainType) { if (componentOption == null) { return; } if (!_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].hasClass(mainType)) { // globalSettingTask.dirty(); option[mainType] = option[mainType] == null ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(componentOption) : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(option[mainType], componentOption, true); } else if (mainType) { newCmptTypes.push(mainType); newCmptTypeMap.set(mainType, true); } }); if (replaceMergeMainTypeMap) { // If there is a mainType `xxx` in `replaceMerge` but not declared in option, // we trade it as it is declared in option as `{xxx: []}`. Because: // (1) for normal merge, `{xxx: null/undefined}` are the same meaning as `{xxx: []}`. // (2) some preprocessor may convert some of `{xxx: null/undefined}` to `{xxx: []}`. replaceMergeMainTypeMap.each(function (val, mainTypeInReplaceMerge) { if (_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].hasClass(mainTypeInReplaceMerge) && !newCmptTypeMap.get(mainTypeInReplaceMerge)) { newCmptTypes.push(mainTypeInReplaceMerge); newCmptTypeMap.set(mainTypeInReplaceMerge, true); } }); } _Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].topologicalTravel(newCmptTypes, _Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].getAllClassMainTypes(), visitComponent, this); function visitComponent(mainType) { var newCmptOptionList = Object(_internalComponentCreator_js__WEBPACK_IMPORTED_MODULE_7__["concatInternalOptions"])(this, mainType, _util_model_js__WEBPACK_IMPORTED_MODULE_2__["normalizeToArray"](newOption[mainType])); var oldCmptList = componentsMap.get(mainType); var mergeMode = // `!oldCmptList` means init. See the comment in `mappingToExists` !oldCmptList ? 'replaceAll' : replaceMergeMainTypeMap && replaceMergeMainTypeMap.get(mainType) ? 'replaceMerge' : 'normalMerge'; var mappingResult = _util_model_js__WEBPACK_IMPORTED_MODULE_2__["mappingToExists"](oldCmptList, newCmptOptionList, mergeMode); // Set mainType and complete subType. _util_model_js__WEBPACK_IMPORTED_MODULE_2__["setComponentTypeToKeyInfo"](mappingResult, mainType, _Component_js__WEBPACK_IMPORTED_MODULE_4__["default"]); // Empty it before the travel, in order to prevent `this._componentsMap` // from being used in the `init`/`mergeOption`/`optionUpdated` of some // components, which is probably incorrect logic. option[mainType] = null; componentsMap.set(mainType, null); componentsCount.set(mainType, 0); var optionsByMainType = []; var cmptsByMainType = []; var cmptsCountByMainType = 0; var tooltipExists; var tooltipWarningLogged; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(mappingResult, function (resultItem, index) { var componentModel = resultItem.existing; var newCmptOption = resultItem.newOption; if (!newCmptOption) { if (componentModel) { // Consider where is no new option and should be merged using {}, // see removeEdgeAndAdd in topologicalTravel and // ComponentModel.getAllClassMainTypes. componentModel.mergeOption({}, this); componentModel.optionUpdated({}, false); } // If no both `resultItem.exist` and `resultItem.option`, // either it is in `replaceMerge` and not matched by any id, // or it has been removed in previous `replaceMerge` and left a "hole" in this component index. } else { var isSeriesType = mainType === 'series'; var ComponentModelClass = _Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].getClass(mainType, resultItem.keyInfo.subType, !isSeriesType // Give a more detailed warn later if series don't exists ); if (!ComponentModelClass) { if (true) { var subType = resultItem.keyInfo.subType; var seriesImportName = BUILTIN_CHARTS_MAP[subType]; if (!componetsMissingLogPrinted[subType]) { componetsMissingLogPrinted[subType] = true; if (seriesImportName) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_9__["error"])("Series " + subType + " is used but not imported.\nimport { " + seriesImportName + " } from 'echarts/charts';\necharts.use([" + seriesImportName + "]);"); } else { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_9__["error"])("Unknown series " + subType); } } } return; } // TODO Before multiple tooltips get supported, we do this check to avoid unexpected exception. if (mainType === 'tooltip') { if (tooltipExists) { if (true) { if (!tooltipWarningLogged) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_9__["warn"])('Currently only one tooltip component is allowed.'); tooltipWarningLogged = true; } } return; } tooltipExists = true; } if (componentModel && componentModel.constructor === ComponentModelClass) { componentModel.name = resultItem.keyInfo.name; // componentModel.settingTask && componentModel.settingTask.dirty(); componentModel.mergeOption(newCmptOption, this); componentModel.optionUpdated(newCmptOption, false); } else { // PENDING Global as parent ? var extraOpt = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])({ componentIndex: index }, resultItem.keyInfo); componentModel = new ComponentModelClass(newCmptOption, this, this, extraOpt); // Assign `keyInfo` Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"])(componentModel, extraOpt); if (resultItem.brandNew) { componentModel.__requireNewView = true; } componentModel.init(newCmptOption, this, this); // Call optionUpdated after init. // newCmptOption has been used as componentModel.option // and may be merged with theme and default, so pass null // to avoid confusion. componentModel.optionUpdated(null, true); } } if (componentModel) { optionsByMainType.push(componentModel.option); cmptsByMainType.push(componentModel); cmptsCountByMainType++; } else { // Always do assign to avoid elided item in array. optionsByMainType.push(void 0); cmptsByMainType.push(void 0); } }, this); option[mainType] = optionsByMainType; componentsMap.set(mainType, cmptsByMainType); componentsCount.set(mainType, cmptsCountByMainType); // Backup series for filtering. if (mainType === 'series') { reCreateSeriesIndices(this); } } // If no series declared, ensure `_seriesIndices` initialized. if (!this._seriesIndices) { reCreateSeriesIndices(this); } }; /** * Get option for output (cloned option and inner info removed) */ GlobalModel.prototype.getOption = function () { var option = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(this.option); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(option, function (optInMainType, mainType) { if (_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].hasClass(mainType)) { var opts = _util_model_js__WEBPACK_IMPORTED_MODULE_2__["normalizeToArray"](optInMainType); // Inner cmpts need to be removed. // Inner cmpts might not be at last since ec5.0, but still // compatible for users: if inner cmpt at last, splice the returned array. var realLen = opts.length; var metNonInner = false; for (var i = realLen - 1; i >= 0; i--) { // Remove options with inner id. if (opts[i] && !_util_model_js__WEBPACK_IMPORTED_MODULE_2__["isComponentIdInternal"](opts[i])) { metNonInner = true; } else { opts[i] = null; !metNonInner && realLen--; } } opts.length = realLen; option[mainType] = opts; } }); delete option[OPTION_INNER_KEY]; return option; }; GlobalModel.prototype.getTheme = function () { return this._theme; }; GlobalModel.prototype.getLocaleModel = function () { return this._locale; }; GlobalModel.prototype.setUpdatePayload = function (payload) { this._payload = payload; }; GlobalModel.prototype.getUpdatePayload = function () { return this._payload; }; /** * @param idx If not specified, return the first one. */ GlobalModel.prototype.getComponent = function (mainType, idx) { var list = this._componentsMap.get(mainType); if (list) { var cmpt = list[idx || 0]; if (cmpt) { return cmpt; } else if (idx == null) { for (var i = 0; i < list.length; i++) { if (list[i]) { return list[i]; } } } } }; /** * @return Never be null/undefined. */ GlobalModel.prototype.queryComponents = function (condition) { var mainType = condition.mainType; if (!mainType) { return []; } var index = condition.index; var id = condition.id; var name = condition.name; var cmpts = this._componentsMap.get(mainType); if (!cmpts || !cmpts.length) { return []; } var result; if (index != null) { result = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(_util_model_js__WEBPACK_IMPORTED_MODULE_2__["normalizeToArray"](index), function (idx) { cmpts[idx] && result.push(cmpts[idx]); }); } else if (id != null) { result = queryByIdOrName('id', id, cmpts); } else if (name != null) { result = queryByIdOrName('name', name, cmpts); } else { // Return all non-empty components in that mainType result = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"])(cmpts, function (cmpt) { return !!cmpt; }); } return filterBySubType(result, condition); }; /** * The interface is different from queryComponents, * which is convenient for inner usage. * * @usage * let result = findComponents( * {mainType: 'dataZoom', query: {dataZoomId: 'abc'}} * ); * let result = findComponents( * {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}} * ); * let result = findComponents( * {mainType: 'series', * filter: function (model, index) {...}} * ); * // result like [component0, componnet1, ...] */ GlobalModel.prototype.findComponents = function (condition) { var query = condition.query; var mainType = condition.mainType; var queryCond = getQueryCond(query); var result = queryCond ? this.queryComponents(queryCond) // Retrieve all non-empty components. : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"])(this._componentsMap.get(mainType), function (cmpt) { return !!cmpt; }); return doFilter(filterBySubType(result, condition)); function getQueryCond(q) { var indexAttr = mainType + 'Index'; var idAttr = mainType + 'Id'; var nameAttr = mainType + 'Name'; return q && (q[indexAttr] != null || q[idAttr] != null || q[nameAttr] != null) ? { mainType: mainType, // subType will be filtered finally. index: q[indexAttr], id: q[idAttr], name: q[nameAttr] } : null; } function doFilter(res) { return condition.filter ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"])(res, condition.filter) : res; } }; GlobalModel.prototype.eachComponent = function (mainType, cb, context) { var componentsMap = this._componentsMap; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"])(mainType)) { var ctxForAll_1 = cb; var cbForAll_1 = mainType; componentsMap.each(function (cmpts, componentType) { for (var i = 0; cmpts && i < cmpts.length; i++) { var cmpt = cmpts[i]; cmpt && cbForAll_1.call(ctxForAll_1, componentType, cmpt, cmpt.componentIndex); } }); } else { var cmpts = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isString"])(mainType) ? componentsMap.get(mainType) : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isObject"])(mainType) ? this.findComponents(mainType) : null; for (var i = 0; cmpts && i < cmpts.length; i++) { var cmpt = cmpts[i]; cmpt && cb.call(context, cmpt, cmpt.componentIndex); } } }; /** * Get series list before filtered by name. */ GlobalModel.prototype.getSeriesByName = function (name) { var nameStr = _util_model_js__WEBPACK_IMPORTED_MODULE_2__["convertOptionIdName"](name, null); return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"])(this._componentsMap.get('series'), function (oneSeries) { return !!oneSeries && nameStr != null && oneSeries.name === nameStr; }); }; /** * Get series list before filtered by index. */ GlobalModel.prototype.getSeriesByIndex = function (seriesIndex) { return this._componentsMap.get('series')[seriesIndex]; }; /** * Get series list before filtered by type. * FIXME: rename to getRawSeriesByType? */ GlobalModel.prototype.getSeriesByType = function (subType) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"])(this._componentsMap.get('series'), function (oneSeries) { return !!oneSeries && oneSeries.subType === subType; }); }; /** * Get all series before filtered. */ GlobalModel.prototype.getSeries = function () { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"])(this._componentsMap.get('series'), function (oneSeries) { return !!oneSeries; }); }; /** * Count series before filtered. */ GlobalModel.prototype.getSeriesCount = function () { return this._componentsCount.get('series'); }; /** * After filtering, series may be different * from raw series. */ GlobalModel.prototype.eachSeries = function (cb, context) { assertSeriesInitialized(this); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(this._seriesIndices, function (rawSeriesIndex) { var series = this._componentsMap.get('series')[rawSeriesIndex]; cb.call(context, series, rawSeriesIndex); }, this); }; /** * Iterate raw series before filtered. * * @param {Function} cb * @param {*} context */ GlobalModel.prototype.eachRawSeries = function (cb, context) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(this._componentsMap.get('series'), function (series) { series && cb.call(context, series, series.componentIndex); }); }; /** * After filtering, series may be different. * from raw series. */ GlobalModel.prototype.eachSeriesByType = function (subType, cb, context) { assertSeriesInitialized(this); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(this._seriesIndices, function (rawSeriesIndex) { var series = this._componentsMap.get('series')[rawSeriesIndex]; if (series.subType === subType) { cb.call(context, series, rawSeriesIndex); } }, this); }; /** * Iterate raw series before filtered of given type. */ GlobalModel.prototype.eachRawSeriesByType = function (subType, cb, context) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(this.getSeriesByType(subType), cb, context); }; GlobalModel.prototype.isSeriesFiltered = function (seriesModel) { assertSeriesInitialized(this); return this._seriesIndicesMap.get(seriesModel.componentIndex) == null; }; GlobalModel.prototype.getCurrentSeriesIndices = function () { return (this._seriesIndices || []).slice(); }; GlobalModel.prototype.filterSeries = function (cb, context) { assertSeriesInitialized(this); var newSeriesIndices = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(this._seriesIndices, function (seriesRawIdx) { var series = this._componentsMap.get('series')[seriesRawIdx]; cb.call(context, series, seriesRawIdx) && newSeriesIndices.push(seriesRawIdx); }, this); this._seriesIndices = newSeriesIndices; this._seriesIndicesMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])(newSeriesIndices); }; GlobalModel.prototype.restoreData = function (payload) { reCreateSeriesIndices(this); var componentsMap = this._componentsMap; var componentTypes = []; componentsMap.each(function (components, componentType) { if (_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].hasClass(componentType)) { componentTypes.push(componentType); } }); _Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].topologicalTravel(componentTypes, _Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].getAllClassMainTypes(), function (componentType) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(componentsMap.get(componentType), function (component) { if (component && (componentType !== 'series' || !isNotTargetSeries(component, payload))) { component.restoreData(); } }); }); }; GlobalModel.internalField = function () { reCreateSeriesIndices = function (ecModel) { var seriesIndices = ecModel._seriesIndices = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(ecModel._componentsMap.get('series'), function (series) { // series may have been removed by `replaceMerge`. series && seriesIndices.push(series.componentIndex); }); ecModel._seriesIndicesMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])(seriesIndices); }; assertSeriesInitialized = function (ecModel) { // Components that use _seriesIndices should depends on series component, // which make sure that their initialization is after series. if (true) { if (!ecModel._seriesIndices) { throw new Error('Option should contains series.'); } } }; initBase = function (ecModel, baseOption) { // Using OPTION_INNER_KEY to mark that this option cannot be used outside, // i.e. `chart.setOption(chart.getModel().option);` is forbidden. ecModel.option = {}; ecModel.option[OPTION_INNER_KEY] = OPTION_INNER_VALUE; // Init with series: [], in case of calling findSeries method // before series initialized. ecModel._componentsMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])({ series: [] }); ecModel._componentsCount = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])(); // If user spefied `option.aria`, aria will be enable. This detection should be // performed before theme and globalDefault merge. var airaOption = baseOption.aria; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isObject"])(airaOption) && airaOption.enabled == null) { airaOption.enabled = true; } mergeTheme(baseOption, ecModel._theme.option); // TODO Needs clone when merging to the unexisted property Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(baseOption, _globalDefault_js__WEBPACK_IMPORTED_MODULE_5__["default"], false); ecModel._mergeOption(baseOption, null); }; }(); return GlobalModel; }(_Model_js__WEBPACK_IMPORTED_MODULE_3__["default"]); function isNotTargetSeries(seriesModel, payload) { if (payload) { var index = payload.seriesIndex; var id = payload.seriesId; var name_1 = payload.seriesName; return index != null && seriesModel.componentIndex !== index || id != null && seriesModel.id !== id || name_1 != null && seriesModel.name !== name_1; } } function mergeTheme(option, theme) { // PENDING // NOT use `colorLayer` in theme if option has `color` var notMergeColorLayer = option.color && !option.colorLayer; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(theme, function (themeItem, name) { if (name === 'colorLayer' && notMergeColorLayer) { return; } // If it is component model mainType, the model handles that merge later. // otherwise, merge them here. if (!_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].hasClass(name)) { if (typeof themeItem === 'object') { option[name] = !option[name] ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(themeItem) : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"])(option[name], themeItem, false); } else { if (option[name] == null) { option[name] = themeItem; } } } }); } function queryByIdOrName(attr, idOrName, cmpts) { // Here is a break from echarts4: string and number are // treated as equal. if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(idOrName)) { var keyMap_1 = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(idOrName, function (idOrNameItem) { if (idOrNameItem != null) { var idName = _util_model_js__WEBPACK_IMPORTED_MODULE_2__["convertOptionIdName"](idOrNameItem, null); idName != null && keyMap_1.set(idOrNameItem, true); } }); return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"])(cmpts, function (cmpt) { return cmpt && keyMap_1.get(cmpt[attr]); }); } else { var idName_1 = _util_model_js__WEBPACK_IMPORTED_MODULE_2__["convertOptionIdName"](idOrName, null); return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"])(cmpts, function (cmpt) { return cmpt && idName_1 != null && cmpt[attr] === idName_1; }); } } function filterBySubType(components, condition) { // Using hasOwnProperty for restrict. Consider // subType is undefined in user payload. return condition.hasOwnProperty('subType') ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["filter"])(components, function (cmpt) { return cmpt && cmpt.subType === condition.subType; }) : components; } function normalizeSetOptionInput(opts) { var replaceMergeMainTypeMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"])(); opts && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(_util_model_js__WEBPACK_IMPORTED_MODULE_2__["normalizeToArray"](opts.replaceMerge), function (mainType) { if (true) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"])(_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].hasClass(mainType), '"' + mainType + '" is not valid component main type in "replaceMerge"'); } replaceMergeMainTypeMap.set(mainType, true); }); return { replaceMergeMainTypeMap: replaceMergeMainTypeMap }; } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["mixin"])(GlobalModel, _mixin_palette_js__WEBPACK_IMPORTED_MODULE_8__["PaletteMixin"]); /* harmony default export */ __webpack_exports__["default"] = (GlobalModel); /***/ }), /***/ "./node_modules/echarts/lib/model/Model.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/model/Model.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/env.js */ "./node_modules/zrender/lib/core/env.js"); /* harmony import */ var _util_clazz_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/clazz.js */ "./node_modules/echarts/lib/util/clazz.js"); /* harmony import */ var _mixin_areaStyle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mixin/areaStyle.js */ "./node_modules/echarts/lib/model/mixin/areaStyle.js"); /* harmony import */ var _mixin_textStyle_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./mixin/textStyle.js */ "./node_modules/echarts/lib/model/mixin/textStyle.js"); /* harmony import */ var _mixin_lineStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mixin/lineStyle.js */ "./node_modules/echarts/lib/model/mixin/lineStyle.js"); /* harmony import */ var _mixin_itemStyle_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./mixin/itemStyle.js */ "./node_modules/echarts/lib/model/mixin/itemStyle.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var Model = /** @class */function () { function Model(option, parentModel, ecModel) { this.parentModel = parentModel; this.ecModel = ecModel; this.option = option; // Simple optimization // if (this.init) { // if (arguments.length <= 4) { // this.init(option, parentModel, ecModel, extraOpt); // } // else { // this.init.apply(this, arguments); // } // } } Model.prototype.init = function (option, parentModel, ecModel) { var rest = []; for (var _i = 3; _i < arguments.length; _i++) { rest[_i - 3] = arguments[_i]; } }; /** * Merge the input option to me. */ Model.prototype.mergeOption = function (option, ecModel) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["merge"])(this.option, option, true); }; // `path` can be 'a.b.c', so the return value type have to be `ModelOption` // TODO: TYPE strict key check? // get(path: string | string[], ignoreParent?: boolean): ModelOption; Model.prototype.get = function (path, ignoreParent) { if (path == null) { return this.option; } return this._doGet(this.parsePath(path), !ignoreParent && this.parentModel); }; Model.prototype.getShallow = function (key, ignoreParent) { var option = this.option; var val = option == null ? option : option[key]; if (val == null && !ignoreParent) { var parentModel = this.parentModel; if (parentModel) { // FIXME:TS do not know how to make it works val = parentModel.getShallow(key); } } return val; }; // `path` can be 'a.b.c', so the return value type have to be `Model` // getModel(path: string | string[], parentModel?: Model): Model; // TODO 'a.b.c' is deprecated Model.prototype.getModel = function (path, parentModel) { var hasPath = path != null; var pathFinal = hasPath ? this.parsePath(path) : null; var obj = hasPath ? this._doGet(pathFinal) : this.option; parentModel = parentModel || this.parentModel && this.parentModel.getModel(this.resolveParentPath(pathFinal)); return new Model(obj, parentModel, this.ecModel); }; /** * If model has option */ Model.prototype.isEmpty = function () { return this.option == null; }; Model.prototype.restoreData = function () {}; // Pending Model.prototype.clone = function () { var Ctor = this.constructor; return new Ctor(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["clone"])(this.option)); }; // setReadOnly(properties): void { // clazzUtil.setReadOnly(this, properties); // } // If path is null/undefined, return null/undefined. Model.prototype.parsePath = function (path) { if (typeof path === 'string') { return path.split('.'); } return path; }; // Resolve path for parent. Perhaps useful when parent use a different property. // Default to be a identity resolver. // Can be modified to a different resolver. Model.prototype.resolveParentPath = function (path) { return path; }; // FIXME:TS check whether put this method here Model.prototype.isAnimationEnabled = function () { if (!zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_0__["default"].node && this.option) { if (this.option.animation != null) { return !!this.option.animation; } else if (this.parentModel) { return this.parentModel.isAnimationEnabled(); } } }; Model.prototype._doGet = function (pathArr, parentModel) { var obj = this.option; if (!pathArr) { return obj; } for (var i = 0; i < pathArr.length; i++) { // Ignore empty if (!pathArr[i]) { continue; } // obj could be number/string/... (like 0) obj = obj && typeof obj === 'object' ? obj[pathArr[i]] : null; if (obj == null) { break; } } if (obj == null && parentModel) { obj = parentModel._doGet(this.resolveParentPath(pathArr), parentModel.parentModel); } return obj; }; return Model; }(); ; // Enable Model.extend. Object(_util_clazz_js__WEBPACK_IMPORTED_MODULE_1__["enableClassExtend"])(Model); Object(_util_clazz_js__WEBPACK_IMPORTED_MODULE_1__["enableClassCheck"])(Model); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["mixin"])(Model, _mixin_lineStyle_js__WEBPACK_IMPORTED_MODULE_4__["LineStyleMixin"]); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["mixin"])(Model, _mixin_itemStyle_js__WEBPACK_IMPORTED_MODULE_5__["ItemStyleMixin"]); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["mixin"])(Model, _mixin_areaStyle_js__WEBPACK_IMPORTED_MODULE_2__["AreaStyleMixin"]); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_6__["mixin"])(Model, _mixin_textStyle_js__WEBPACK_IMPORTED_MODULE_3__["default"]); /* harmony default export */ __webpack_exports__["default"] = (Model); /***/ }), /***/ "./node_modules/echarts/lib/model/OptionManager.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/model/OptionManager.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var QUERY_REG = /^(min|max)?(.+)$/; // Key: mainType // type FakeComponentsMap = HashMap<(MappingExistingItem & { subType: string })[]>; /** * TERM EXPLANATIONS: * See `ECOption` and `ECUnitOption` in `src/util/types.ts`. */ var OptionManager = /** @class */function () { // timeline.notMerge is not supported in ec3. Firstly there is rearly // case that notMerge is needed. Secondly supporting 'notMerge' requires // rawOption cloned and backuped when timeline changed, which does no // good to performance. What's more, that both timeline and setOption // method supply 'notMerge' brings complex and some problems. // Consider this case: // (step1) chart.setOption({timeline: {notMerge: false}, ...}, false); // (step2) chart.setOption({timeline: {notMerge: true}, ...}, false); function OptionManager(api) { this._timelineOptions = []; this._mediaList = []; /** * -1, means default. * empty means no media. */ this._currentMediaIndices = []; this._api = api; } OptionManager.prototype.setOption = function (rawOption, optionPreprocessorFuncs, opt) { if (rawOption) { // That set dat primitive is dangerous if user reuse the data when setOption again. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["normalizeToArray"])(rawOption.series), function (series) { series && series.data && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isTypedArray"])(series.data) && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["setAsPrimitive"])(series.data); }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["normalizeToArray"])(rawOption.dataset), function (dataset) { dataset && dataset.source && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isTypedArray"])(dataset.source) && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["setAsPrimitive"])(dataset.source); }); } // Caution: some series modify option data, if do not clone, // it should ensure that the repeat modify correctly // (create a new object when modify itself). rawOption = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(rawOption); // FIXME // If some property is set in timeline options or media option but // not set in baseOption, a warning should be given. var optionBackup = this._optionBackup; var newParsedOption = parseRawOption(rawOption, optionPreprocessorFuncs, !optionBackup); this._newBaseOption = newParsedOption.baseOption; // For setOption at second time (using merge mode); if (optionBackup) { // FIXME // the restore merge solution is essentially incorrect. // the mapping can not be 100% consistent with ecModel, which probably brings // potential bug! // The first merge is delayed, because in most cases, users do not call `setOption` twice. // let fakeCmptsMap = this._fakeCmptsMap; // if (!fakeCmptsMap) { // fakeCmptsMap = this._fakeCmptsMap = createHashMap(); // mergeToBackupOption(fakeCmptsMap, null, optionBackup.baseOption, null); // } // mergeToBackupOption( // fakeCmptsMap, optionBackup.baseOption, newParsedOption.baseOption, opt // ); // For simplicity, timeline options and media options do not support merge, // that is, if you `setOption` twice and both has timeline options, the latter // timeline options will not be merged to the former, but just substitute them. if (newParsedOption.timelineOptions.length) { optionBackup.timelineOptions = newParsedOption.timelineOptions; } if (newParsedOption.mediaList.length) { optionBackup.mediaList = newParsedOption.mediaList; } if (newParsedOption.mediaDefault) { optionBackup.mediaDefault = newParsedOption.mediaDefault; } } else { this._optionBackup = newParsedOption; } }; OptionManager.prototype.mountOption = function (isRecreate) { var optionBackup = this._optionBackup; this._timelineOptions = optionBackup.timelineOptions; this._mediaList = optionBackup.mediaList; this._mediaDefault = optionBackup.mediaDefault; this._currentMediaIndices = []; return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(isRecreate // this._optionBackup.baseOption, which is created at the first `setOption` // called, and is merged into every new option by inner method `mergeToBackupOption` // each time `setOption` called, can be only used in `isRecreate`, because // its reliability is under suspicion. In other cases option merge is // performed by `model.mergeOption`. ? optionBackup.baseOption : this._newBaseOption); }; OptionManager.prototype.getTimelineOption = function (ecModel) { var option; var timelineOptions = this._timelineOptions; if (timelineOptions.length) { // getTimelineOption can only be called after ecModel inited, // so we can get currentIndex from timelineModel. var timelineModel = ecModel.getComponent('timeline'); if (timelineModel) { option = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])( // FIXME:TS as TimelineModel or quivlant interface timelineOptions[timelineModel.getCurrentIndex()]); } } return option; }; OptionManager.prototype.getMediaOption = function (ecModel) { var ecWidth = this._api.getWidth(); var ecHeight = this._api.getHeight(); var mediaList = this._mediaList; var mediaDefault = this._mediaDefault; var indices = []; var result = []; // No media defined. if (!mediaList.length && !mediaDefault) { return result; } // Multi media may be applied, the latter defined media has higher priority. for (var i = 0, len = mediaList.length; i < len; i++) { if (applyMediaQuery(mediaList[i].query, ecWidth, ecHeight)) { indices.push(i); } } // FIXME // Whether mediaDefault should force users to provide? Otherwise // the change by media query can not be recorvered. if (!indices.length && mediaDefault) { indices = [-1]; } if (indices.length && !indicesEquals(indices, this._currentMediaIndices)) { result = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"])(indices, function (index) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["clone"])(index === -1 ? mediaDefault.option : mediaList[index].option); }); } // Otherwise return nothing. this._currentMediaIndices = indices; return result; }; return OptionManager; }(); /** * [RAW_OPTION_PATTERNS] * (Note: "series: []" represents all other props in `ECUnitOption`) * * (1) No prop "baseOption" declared: * Root option is used as "baseOption" (except prop "options" and "media"). * ```js * option = { * series: [], * timeline: {}, * options: [], * }; * option = { * series: [], * media: {}, * }; * option = { * series: [], * timeline: {}, * options: [], * media: {}, * } * ``` * * (2) Prop "baseOption" declared: * If "baseOption" declared, `ECUnitOption` props can only be declared * inside "baseOption" except prop "timeline" (compat ec2). * ```js * option = { * baseOption: { * timeline: {}, * series: [], * }, * options: [] * }; * option = { * baseOption: { * series: [], * }, * media: [] * }; * option = { * baseOption: { * timeline: {}, * series: [], * }, * options: [] * media: [] * }; * option = { * // ec3 compat ec2: allow (only) `timeline` declared * // outside baseOption. Keep this setting for compat. * timeline: {}, * baseOption: { * series: [], * }, * options: [], * media: [] * }; * ``` */ function parseRawOption( // `rawOption` May be modified rawOption, optionPreprocessorFuncs, isNew) { var mediaList = []; var mediaDefault; var baseOption; var declaredBaseOption = rawOption.baseOption; // Compatible with ec2, [RAW_OPTION_PATTERNS] above. var timelineOnRoot = rawOption.timeline; var timelineOptionsOnRoot = rawOption.options; var mediaOnRoot = rawOption.media; var hasMedia = !!rawOption.media; var hasTimeline = !!(timelineOptionsOnRoot || timelineOnRoot || declaredBaseOption && declaredBaseOption.timeline); if (declaredBaseOption) { baseOption = declaredBaseOption; // For merge option. if (!baseOption.timeline) { baseOption.timeline = timelineOnRoot; } } // For convenience, enable to use the root option as the `baseOption`: // `{ ...normalOptionProps, media: [{ ... }, { ... }] }` else { if (hasTimeline || hasMedia) { rawOption.options = rawOption.media = null; } baseOption = rawOption; } if (hasMedia) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isArray"])(mediaOnRoot)) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(mediaOnRoot, function (singleMedia) { if (true) { // Real case of wrong config. if (singleMedia && !singleMedia.option && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isObject"])(singleMedia.query) && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isObject"])(singleMedia.query.option)) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["error"])('Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }'); } } if (singleMedia && singleMedia.option) { if (singleMedia.query) { mediaList.push(singleMedia); } else if (!mediaDefault) { // Use the first media default. mediaDefault = singleMedia; } } }); } else { if (true) { // Real case of wrong config. Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["error"])('Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }'); } } } doPreprocess(baseOption); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(timelineOptionsOnRoot, function (option) { return doPreprocess(option); }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(mediaList, function (media) { return doPreprocess(media.option); }); function doPreprocess(option) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(optionPreprocessorFuncs, function (preProcess) { preProcess(option, isNew); }); } return { baseOption: baseOption, timelineOptions: timelineOptionsOnRoot || [], mediaDefault: mediaDefault, mediaList: mediaList }; } /** * @see * Support: width, height, aspectRatio * Can use max or min as prefix. */ function applyMediaQuery(query, ecWidth, ecHeight) { var realMap = { width: ecWidth, height: ecHeight, aspectratio: ecWidth / ecHeight // lower case for convenience. }; var applicable = true; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"])(query, function (value, attr) { var matched = attr.match(QUERY_REG); if (!matched || !matched[1] || !matched[2]) { return; } var operator = matched[1]; var realAttr = matched[2].toLowerCase(); if (!compare(realMap[realAttr], value, operator)) { applicable = false; } }); return applicable; } function compare(real, expect, operator) { if (operator === 'min') { return real >= expect; } else if (operator === 'max') { return real <= expect; } else { // Equals return real === expect; } } function indicesEquals(indices1, indices2) { // indices is always order by asc and has only finite number. return indices1.join(',') === indices2.join(','); } /** * Consider case: * `chart.setOption(opt1);` * Then user do some interaction like dataZoom, dataView changing. * `chart.setOption(opt2);` * Then user press 'reset button' in toolbox. * * After doing that all of the interaction effects should be reset, the * chart should be the same as the result of invoke * `chart.setOption(opt1); chart.setOption(opt2);`. * * Although it is not able ensure that * `chart.setOption(opt1); chart.setOption(opt2);` is equivalents to * `chart.setOption(merge(opt1, opt2));` exactly, * this might be the only simple way to implement that feature. * * MEMO: We've considered some other approaches: * 1. Each model handles its self restoration but not uniform treatment. * (Too complex in logic and error-prone) * 2. Use a shadow ecModel. (Performance expensive) * * FIXME: A possible solution: * Add a extra level of model for each component model. The inheritance chain would be: * ecModel <- componentModel <- componentActionModel <- dataItemModel * And all of the actions can only modify the `componentActionModel` rather than * `componentModel`. `setOption` will only modify the `ecModel` and `componentModel`. * When "resotre" action triggered, model from `componentActionModel` will be discarded * instead of recreating the "ecModel" from the "_optionBackup". */ // function mergeToBackupOption( // fakeCmptsMap: FakeComponentsMap, // // `tarOption` Can be null/undefined, means init // tarOption: ECUnitOption, // newOption: ECUnitOption, // // Can be null/undefined // opt: InnerSetOptionOpts // ): void { // newOption = newOption || {} as ECUnitOption; // const notInit = !!tarOption; // each(newOption, function (newOptsInMainType, mainType) { // if (newOptsInMainType == null) { // return; // } // if (!ComponentModel.hasClass(mainType)) { // if (tarOption) { // tarOption[mainType] = merge(tarOption[mainType], newOptsInMainType, true); // } // } // else { // const oldTarOptsInMainType = notInit ? normalizeToArray(tarOption[mainType]) : null; // const oldFakeCmptsInMainType = fakeCmptsMap.get(mainType) || []; // const resultTarOptsInMainType = notInit ? (tarOption[mainType] = [] as ComponentOption[]) : null; // const resultFakeCmptsInMainType = fakeCmptsMap.set(mainType, []); // const mappingResult = mappingToExists( // oldFakeCmptsInMainType, // normalizeToArray(newOptsInMainType), // (opt && opt.replaceMergeMainTypeMap.get(mainType)) ? 'replaceMerge' : 'normalMerge' // ); // setComponentTypeToKeyInfo(mappingResult, mainType, ComponentModel as ComponentModelConstructor); // each(mappingResult, function (resultItem, index) { // // The same logic as `Global.ts#_mergeOption`. // let fakeCmpt = resultItem.existing; // const newOption = resultItem.newOption; // const keyInfo = resultItem.keyInfo; // let fakeCmptOpt; // if (!newOption) { // fakeCmptOpt = oldTarOptsInMainType[index]; // } // else { // if (fakeCmpt && fakeCmpt.subType === keyInfo.subType) { // fakeCmpt.name = keyInfo.name; // if (notInit) { // fakeCmptOpt = merge(oldTarOptsInMainType[index], newOption, true); // } // } // else { // fakeCmpt = extend({}, keyInfo); // if (notInit) { // fakeCmptOpt = clone(newOption); // } // } // } // if (fakeCmpt) { // notInit && resultTarOptsInMainType.push(fakeCmptOpt); // resultFakeCmptsInMainType.push(fakeCmpt); // } // else { // notInit && resultTarOptsInMainType.push(void 0); // resultFakeCmptsInMainType.push(void 0); // } // }); // } // }); // } /* harmony default export */ __webpack_exports__["default"] = (OptionManager); /***/ }), /***/ "./node_modules/echarts/lib/model/Series.js": /*!**************************************************!*\ !*** ./node_modules/echarts/lib/model/Series.js ***! \**************************************************/ /*! exports provided: SERIES_UNIVERSAL_TRANSITION_PROP, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SERIES_UNIVERSAL_TRANSITION_PROP", function() { return SERIES_UNIVERSAL_TRANSITION_PROP; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/env.js */ "./node_modules/zrender/lib/core/env.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _Component_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Component.js */ "./node_modules/echarts/lib/model/Component.js"); /* harmony import */ var _mixin_palette_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./mixin/palette.js */ "./node_modules/echarts/lib/model/mixin/palette.js"); /* harmony import */ var _model_mixin_dataFormat_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../model/mixin/dataFormat.js */ "./node_modules/echarts/lib/model/mixin/dataFormat.js"); /* harmony import */ var _util_layout_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util/layout.js */ "./node_modules/echarts/lib/util/layout.js"); /* harmony import */ var _core_task_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/task.js */ "./node_modules/echarts/lib/core/task.js"); /* harmony import */ var _util_clazz_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util/clazz.js */ "./node_modules/echarts/lib/util/clazz.js"); /* harmony import */ var _data_helper_sourceManager_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../data/helper/sourceManager.js */ "./node_modules/echarts/lib/data/helper/sourceManager.js"); /* harmony import */ var _component_tooltip_seriesFormatTooltip_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../component/tooltip/seriesFormatTooltip.js */ "./node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner = _util_model_js__WEBPACK_IMPORTED_MODULE_3__["makeInner"](); function getSelectionKey(data, dataIndex) { return data.getName(dataIndex) || data.getId(dataIndex); } var SERIES_UNIVERSAL_TRANSITION_PROP = '__universalTransitionEnabled'; var SeriesModel = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SeriesModel, _super); function SeriesModel() { // [Caution]: Because this class or desecendants can be used as `XXX.extend(subProto)`, // the class members must not be initialized in constructor or declaration place. // Otherwise there is bad case: // class A {xxx = 1;} // enableClassExtend(A); // class B extends A {} // var C = B.extend({xxx: 5}); // var c = new C(); // console.log(c.xxx); // expect 5 but always 1. var _this = _super !== null && _super.apply(this, arguments) || this; // --------------------------------------- // Props about data selection // --------------------------------------- _this._selectedDataIndicesMap = {}; return _this; } SeriesModel.prototype.init = function (option, parentModel, ecModel) { this.seriesIndex = this.componentIndex; this.dataTask = Object(_core_task_js__WEBPACK_IMPORTED_MODULE_8__["createTask"])({ count: dataTaskCount, reset: dataTaskReset }); this.dataTask.context = { model: this }; this.mergeDefaultAndTheme(option, ecModel); var sourceManager = inner(this).sourceManager = new _data_helper_sourceManager_js__WEBPACK_IMPORTED_MODULE_10__["SourceManager"](this); sourceManager.prepareSource(); var data = this.getInitialData(option, ecModel); wrapData(data, this); this.dataTask.context.data = data; if (true) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"](data, 'getInitialData returned invalid data.'); } inner(this).dataBeforeProcessed = data; // If we reverse the order (make data firstly, and then make // dataBeforeProcessed by cloneShallow), cloneShallow will // cause data.graph.data !== data when using // module:echarts/data/Graph or module:echarts/data/Tree. // See module:echarts/data/helper/linkSeriesData // Theoretically, it is unreasonable to call `seriesModel.getData()` in the model // init or merge stage, because the data can be restored. So we do not `restoreData` // and `setData` here, which forbids calling `seriesModel.getData()` in this stage. // Call `seriesModel.getRawData()` instead. // this.restoreData(); autoSeriesName(this); this._initSelectedMapFromData(data); }; /** * Util for merge default and theme to option */ SeriesModel.prototype.mergeDefaultAndTheme = function (option, ecModel) { var layoutMode = Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_7__["fetchLayoutMode"])(this); var inputPositionParams = layoutMode ? Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_7__["getLayoutParams"])(option) : {}; // Backward compat: using subType on theme. // But if name duplicate between series subType // (for example: parallel) add component mainType, // add suffix 'Series'. var themeSubType = this.subType; if (_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].hasClass(themeSubType)) { themeSubType += 'Series'; } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](option, ecModel.getTheme().get(this.subType)); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](option, this.getDefaultOption()); // Default label emphasis `show` _util_model_js__WEBPACK_IMPORTED_MODULE_3__["defaultEmphasis"](option, 'label', ['show']); this.fillDataTextStyle(option.data); if (layoutMode) { Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_7__["mergeLayoutParam"])(option, inputPositionParams, layoutMode); } }; SeriesModel.prototype.mergeOption = function (newSeriesOption, ecModel) { // this.settingTask.dirty(); newSeriesOption = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["merge"](this.option, newSeriesOption, true); this.fillDataTextStyle(newSeriesOption.data); var layoutMode = Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_7__["fetchLayoutMode"])(this); if (layoutMode) { Object(_util_layout_js__WEBPACK_IMPORTED_MODULE_7__["mergeLayoutParam"])(this.option, newSeriesOption, layoutMode); } var sourceManager = inner(this).sourceManager; sourceManager.dirty(); sourceManager.prepareSource(); var data = this.getInitialData(newSeriesOption, ecModel); wrapData(data, this); this.dataTask.dirty(); this.dataTask.context.data = data; inner(this).dataBeforeProcessed = data; autoSeriesName(this); this._initSelectedMapFromData(data); }; SeriesModel.prototype.fillDataTextStyle = function (data) { // Default data label emphasis `show` // FIXME Tree structure data ? // FIXME Performance ? if (data && !zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isTypedArray"](data)) { var props = ['show']; for (var i = 0; i < data.length; i++) { if (data[i] && data[i].label) { _util_model_js__WEBPACK_IMPORTED_MODULE_3__["defaultEmphasis"](data[i], 'label', props); } } } }; /** * Init a data structure from data related option in series * Must be overridden. */ SeriesModel.prototype.getInitialData = function (option, ecModel) { return; }; /** * Append data to list */ SeriesModel.prototype.appendData = function (params) { // FIXME ??? // (1) If data from dataset, forbidden append. // (2) support append data of dataset. var data = this.getRawData(); data.appendData(params.data); }; /** * Consider some method like `filter`, `map` need make new data, * We should make sure that `seriesModel.getData()` get correct * data in the stream procedure. So we fetch data from upstream * each time `task.perform` called. */ SeriesModel.prototype.getData = function (dataType) { var task = getCurrentTask(this); if (task) { var data = task.context.data; return dataType == null || !data.getLinkedData ? data : data.getLinkedData(dataType); } else { // When series is not alive (that may happen when click toolbox // restore or setOption with not merge mode), series data may // be still need to judge animation or something when graphic // elements want to know whether fade out. return inner(this).data; } }; SeriesModel.prototype.getAllData = function () { var mainData = this.getData(); return mainData && mainData.getLinkedDataAll ? mainData.getLinkedDataAll() : [{ data: mainData }]; }; SeriesModel.prototype.setData = function (data) { var task = getCurrentTask(this); if (task) { var context = task.context; // Consider case: filter, data sample. // FIXME:TS never used, so comment it // if (context.data !== data && task.modifyOutputEnd) { // task.setOutputEnd(data.count()); // } context.outputData = data; // Caution: setData should update context.data, // Because getData may be called multiply in a // single stage and expect to get the data just // set. (For example, AxisProxy, x y both call // getData and setDate sequentially). // So the context.data should be fetched from // upstream each time when a stage starts to be // performed. if (task !== this.dataTask) { context.data = data; } } inner(this).data = data; }; SeriesModel.prototype.getEncode = function () { var encode = this.get('encode', true); if (encode) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["createHashMap"](encode); } }; SeriesModel.prototype.getSourceManager = function () { return inner(this).sourceManager; }; SeriesModel.prototype.getSource = function () { return this.getSourceManager().getSource(); }; /** * Get data before processed */ SeriesModel.prototype.getRawData = function () { return inner(this).dataBeforeProcessed; }; SeriesModel.prototype.getColorBy = function () { var colorBy = this.get('colorBy'); return colorBy || 'series'; }; SeriesModel.prototype.isColorBySeries = function () { return this.getColorBy() === 'series'; }; /** * Get base axis if has coordinate system and has axis. * By default use coordSys.getBaseAxis(); * Can be overridden for some chart. * @return {type} description */ SeriesModel.prototype.getBaseAxis = function () { var coordSys = this.coordinateSystem; // @ts-ignore return coordSys && coordSys.getBaseAxis && coordSys.getBaseAxis(); }; /** * Default tooltip formatter * * @param dataIndex * @param multipleSeries * @param dataType * @param renderMode valid values: 'html'(by default) and 'richText'. * 'html' is used for rendering tooltip in extra DOM form, and the result * string is used as DOM HTML content. * 'richText' is used for rendering tooltip in rich text form, for those where * DOM operation is not supported. * @return formatted tooltip with `html` and `markers` * Notice: The override method can also return string */ SeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) { return Object(_component_tooltip_seriesFormatTooltip_js__WEBPACK_IMPORTED_MODULE_11__["defaultSeriesFormatTooltip"])({ series: this, dataIndex: dataIndex, multipleSeries: multipleSeries }); }; SeriesModel.prototype.isAnimationEnabled = function () { var ecModel = this.ecModel; // Disable animation if using echarts in node but not give ssr flag. // In ssr mode, renderToString will generate svg with css animation. if (zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_2__["default"].node && !(ecModel && ecModel.ssr)) { return false; } var animationEnabled = this.getShallow('animation'); if (animationEnabled) { if (this.getData().count() > this.getShallow('animationThreshold')) { animationEnabled = false; } } return !!animationEnabled; }; SeriesModel.prototype.restoreData = function () { this.dataTask.dirty(); }; SeriesModel.prototype.getColorFromPalette = function (name, scope, requestColorNum) { var ecModel = this.ecModel; // PENDING var color = _mixin_palette_js__WEBPACK_IMPORTED_MODULE_5__["PaletteMixin"].prototype.getColorFromPalette.call(this, name, scope, requestColorNum); if (!color) { color = ecModel.getColorFromPalette(name, scope, requestColorNum); } return color; }; /** * Use `data.mapDimensionsAll(coordDim)` instead. * @deprecated */ SeriesModel.prototype.coordDimToDataDim = function (coordDim) { return this.getRawData().mapDimensionsAll(coordDim); }; /** * Get progressive rendering count each step */ SeriesModel.prototype.getProgressive = function () { return this.get('progressive'); }; /** * Get progressive rendering count each step */ SeriesModel.prototype.getProgressiveThreshold = function () { return this.get('progressiveThreshold'); }; // PENGING If selectedMode is null ? SeriesModel.prototype.select = function (innerDataIndices, dataType) { this._innerSelect(this.getData(dataType), innerDataIndices); }; SeriesModel.prototype.unselect = function (innerDataIndices, dataType) { var selectedMap = this.option.selectedMap; if (!selectedMap) { return; } var selectedMode = this.option.selectedMode; var data = this.getData(dataType); if (selectedMode === 'series' || selectedMap === 'all') { this.option.selectedMap = {}; this._selectedDataIndicesMap = {}; return; } for (var i = 0; i < innerDataIndices.length; i++) { var dataIndex = innerDataIndices[i]; var nameOrId = getSelectionKey(data, dataIndex); selectedMap[nameOrId] = false; this._selectedDataIndicesMap[nameOrId] = -1; } }; SeriesModel.prototype.toggleSelect = function (innerDataIndices, dataType) { var tmpArr = []; for (var i = 0; i < innerDataIndices.length; i++) { tmpArr[0] = innerDataIndices[i]; this.isSelected(innerDataIndices[i], dataType) ? this.unselect(tmpArr, dataType) : this.select(tmpArr, dataType); } }; SeriesModel.prototype.getSelectedDataIndices = function () { if (this.option.selectedMap === 'all') { return [].slice.call(this.getData().getIndices()); } var selectedDataIndicesMap = this._selectedDataIndicesMap; var nameOrIds = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["keys"](selectedDataIndicesMap); var dataIndices = []; for (var i = 0; i < nameOrIds.length; i++) { var dataIndex = selectedDataIndicesMap[nameOrIds[i]]; if (dataIndex >= 0) { dataIndices.push(dataIndex); } } return dataIndices; }; SeriesModel.prototype.isSelected = function (dataIndex, dataType) { var selectedMap = this.option.selectedMap; if (!selectedMap) { return false; } var data = this.getData(dataType); return (selectedMap === 'all' || selectedMap[getSelectionKey(data, dataIndex)]) && !data.getItemModel(dataIndex).get(['select', 'disabled']); }; SeriesModel.prototype.isUniversalTransitionEnabled = function () { if (this[SERIES_UNIVERSAL_TRANSITION_PROP]) { return true; } var universalTransitionOpt = this.option.universalTransition; // Quick reject if (!universalTransitionOpt) { return false; } if (universalTransitionOpt === true) { return true; } // Can be simply 'universalTransition: true' return universalTransitionOpt && universalTransitionOpt.enabled; }; SeriesModel.prototype._innerSelect = function (data, innerDataIndices) { var _a, _b; var option = this.option; var selectedMode = option.selectedMode; var len = innerDataIndices.length; if (!selectedMode || !len) { return; } if (selectedMode === 'series') { option.selectedMap = 'all'; } else if (selectedMode === 'multiple') { if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isObject"](option.selectedMap)) { option.selectedMap = {}; } var selectedMap = option.selectedMap; for (var i = 0; i < len; i++) { var dataIndex = innerDataIndices[i]; // TODO different types of data share same object. var nameOrId = getSelectionKey(data, dataIndex); selectedMap[nameOrId] = true; this._selectedDataIndicesMap[nameOrId] = data.getRawIndex(dataIndex); } } else if (selectedMode === 'single' || selectedMode === true) { var lastDataIndex = innerDataIndices[len - 1]; var nameOrId = getSelectionKey(data, lastDataIndex); option.selectedMap = (_a = {}, _a[nameOrId] = true, _a); this._selectedDataIndicesMap = (_b = {}, _b[nameOrId] = data.getRawIndex(lastDataIndex), _b); } }; SeriesModel.prototype._initSelectedMapFromData = function (data) { // Ignore select info in data if selectedMap exists. // NOTE It's only for legacy usage. edge data is not supported. if (this.option.selectedMap) { return; } var dataIndices = []; if (data.hasItemOption) { data.each(function (idx) { var rawItem = data.getRawDataItem(idx); if (rawItem && rawItem.selected) { dataIndices.push(idx); } }); } if (dataIndices.length > 0) { this._innerSelect(data, dataIndices); } }; // /** // * @see {module:echarts/stream/Scheduler} // */ // abstract pipeTask: null SeriesModel.registerClass = function (clz) { return _Component_js__WEBPACK_IMPORTED_MODULE_4__["default"].registerClass(clz); }; SeriesModel.protoInitialize = function () { var proto = SeriesModel.prototype; proto.type = 'series.__base__'; proto.seriesIndex = 0; proto.ignoreStyleOnData = false; proto.hasSymbolVisual = false; proto.defaultSymbol = 'circle'; // Make sure the values can be accessed! proto.visualStyleAccessPath = 'itemStyle'; proto.visualDrawType = 'fill'; }(); return SeriesModel; }(_Component_js__WEBPACK_IMPORTED_MODULE_4__["default"]); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["mixin"](SeriesModel, _model_mixin_dataFormat_js__WEBPACK_IMPORTED_MODULE_6__["DataFormatMixin"]); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["mixin"](SeriesModel, _mixin_palette_js__WEBPACK_IMPORTED_MODULE_5__["PaletteMixin"]); Object(_util_clazz_js__WEBPACK_IMPORTED_MODULE_9__["mountExtend"])(SeriesModel, _Component_js__WEBPACK_IMPORTED_MODULE_4__["default"]); /** * MUST be called after `prepareSource` called * Here we need to make auto series, especially for auto legend. But we * do not modify series.name in option to avoid side effects. */ function autoSeriesName(seriesModel) { // User specified name has higher priority, otherwise it may cause // series can not be queried unexpectedly. var name = seriesModel.name; if (!_util_model_js__WEBPACK_IMPORTED_MODULE_3__["isNameSpecified"](seriesModel)) { seriesModel.name = getSeriesAutoName(seriesModel) || name; } } function getSeriesAutoName(seriesModel) { var data = seriesModel.getRawData(); var dataDims = data.mapDimensionsAll('seriesName'); var nameArr = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](dataDims, function (dataDim) { var dimInfo = data.getDimensionInfo(dataDim); dimInfo.displayName && nameArr.push(dimInfo.displayName); }); return nameArr.join(' '); } function dataTaskCount(context) { return context.model.getRawData().count(); } function dataTaskReset(context) { var seriesModel = context.model; seriesModel.setData(seriesModel.getRawData().cloneShallow()); return dataTaskProgress; } function dataTaskProgress(param, context) { // Avoid repeat cloneShallow when data just created in reset. if (context.outputData && param.end > context.outputData.count()) { context.model.getRawData().cloneShallow(context.outputData); } } // TODO refactor function wrapData(data, seriesModel) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["concatArray"](data.CHANGABLE_METHODS, data.DOWNSAMPLE_METHODS), function (methodName) { data.wrapMethod(methodName, zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["curry"](onDataChange, seriesModel)); }); } function onDataChange(seriesModel, newList) { var task = getCurrentTask(seriesModel); if (task) { // Consider case: filter, selectRange task.setOutputEnd((newList || this).count()); } return newList; } function getCurrentTask(seriesModel) { var scheduler = (seriesModel.ecModel || {}).scheduler; var pipeline = scheduler && scheduler.getPipeline(seriesModel.uid); if (pipeline) { // When pipline finished, the currrentTask keep the last // task (renderTask). var task = pipeline.currentTask; if (task) { var agentStubMap = task.agentStubMap; if (agentStubMap) { task = agentStubMap.get(seriesModel.uid); } } return task; } } /* harmony default export */ __webpack_exports__["default"] = (SeriesModel); /***/ }), /***/ "./node_modules/echarts/lib/model/globalDefault.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/model/globalDefault.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var platform = ''; // Navigator not exists in node if (typeof navigator !== 'undefined') { /* global navigator */ platform = navigator.platform || ''; } var decalColor = 'rgba(0, 0, 0, 0.2)'; /* harmony default export */ __webpack_exports__["default"] = ({ darkMode: 'auto', // backgroundColor: 'rgba(0,0,0,0)', colorBy: 'series', color: ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'], gradientColor: ['#f6efa6', '#d88273', '#bf444c'], aria: { decal: { decals: [{ color: decalColor, dashArrayX: [1, 0], dashArrayY: [2, 5], symbolSize: 1, rotation: Math.PI / 6 }, { color: decalColor, symbol: 'circle', dashArrayX: [[8, 8], [0, 8, 8, 0]], dashArrayY: [6, 0], symbolSize: 0.8 }, { color: decalColor, dashArrayX: [1, 0], dashArrayY: [4, 3], rotation: -Math.PI / 4 }, { color: decalColor, dashArrayX: [[6, 6], [0, 6, 6, 0]], dashArrayY: [6, 0] }, { color: decalColor, dashArrayX: [[1, 0], [1, 6]], dashArrayY: [1, 0, 6, 0], rotation: Math.PI / 4 }, { color: decalColor, symbol: 'triangle', dashArrayX: [[9, 9], [0, 9, 9, 0]], dashArrayY: [7, 2], symbolSize: 0.75 }] } }, // If xAxis and yAxis declared, grid is created by default. // grid: {}, textStyle: { // color: '#000', // decoration: 'none', // PENDING fontFamily: platform.match(/^Win/) ? 'Microsoft YaHei' : 'sans-serif', // fontFamily: 'Arial, Verdana, sans-serif', fontSize: 12, fontStyle: 'normal', fontWeight: 'normal' }, // http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/ // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation // Default is source-over blendMode: null, stateAnimation: { duration: 300, easing: 'cubicOut' }, animation: 'auto', animationDuration: 1000, animationDurationUpdate: 500, animationEasing: 'cubicInOut', animationEasingUpdate: 'cubicInOut', animationThreshold: 2000, // Configuration for progressive/incremental rendering progressiveThreshold: 3000, progressive: 400, // Threshold of if use single hover layer to optimize. // It is recommended that `hoverLayerThreshold` is equivalent to or less than // `progressiveThreshold`, otherwise hover will cause restart of progressive, // which is unexpected. // see example . hoverLayerThreshold: 3000, // See: module:echarts/scale/Time useUTC: false }); /***/ }), /***/ "./node_modules/echarts/lib/model/internalComponentCreator.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/model/internalComponentCreator.js ***! \********************************************************************/ /*! exports provided: registerInternalOptionCreator, concatInternalOptions */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerInternalOptionCreator", function() { return registerInternalOptionCreator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatInternalOptions", function() { return concatInternalOptions; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var internalOptionCreatorMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); function registerInternalOptionCreator(mainType, creator) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(internalOptionCreatorMap.get(mainType) == null && creator); internalOptionCreatorMap.set(mainType, creator); } function concatInternalOptions(ecModel, mainType, newCmptOptionList) { var internalOptionCreator = internalOptionCreatorMap.get(mainType); if (!internalOptionCreator) { return newCmptOptionList; } var internalOptions = internalOptionCreator(ecModel); if (!internalOptions) { return newCmptOptionList; } if (true) { for (var i = 0; i < internalOptions.length; i++) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(Object(_util_model_js__WEBPACK_IMPORTED_MODULE_1__["isComponentIdInternal"])(internalOptions[i])); } } return newCmptOptionList.concat(internalOptions); } /***/ }), /***/ "./node_modules/echarts/lib/model/mixin/areaStyle.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/model/mixin/areaStyle.js ***! \***********************************************************/ /*! exports provided: AREA_STYLE_KEY_MAP, AreaStyleMixin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AREA_STYLE_KEY_MAP", function() { return AREA_STYLE_KEY_MAP; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AreaStyleMixin", function() { return AreaStyleMixin; }); /* harmony import */ var _makeStyleMapper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./makeStyleMapper.js */ "./node_modules/echarts/lib/model/mixin/makeStyleMapper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var AREA_STYLE_KEY_MAP = [['fill', 'color'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['opacity'], ['shadowColor'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`. // So do not transfer decal directly. ]; var getAreaStyle = Object(_makeStyleMapper_js__WEBPACK_IMPORTED_MODULE_0__["default"])(AREA_STYLE_KEY_MAP); var AreaStyleMixin = /** @class */function () { function AreaStyleMixin() {} AreaStyleMixin.prototype.getAreaStyle = function (excludes, includes) { return getAreaStyle(this, excludes, includes); }; return AreaStyleMixin; }(); ; /***/ }), /***/ "./node_modules/echarts/lib/model/mixin/dataFormat.js": /*!************************************************************!*\ !*** ./node_modules/echarts/lib/model/mixin/dataFormat.js ***! \************************************************************/ /*! exports provided: DataFormatMixin, normalizeTooltipFormatResult */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataFormatMixin", function() { return DataFormatMixin; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeTooltipFormatResult", function() { return normalizeTooltipFormatResult; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _data_helper_dataProvider_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../data/helper/dataProvider.js */ "./node_modules/echarts/lib/data/helper/dataProvider.js"); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DIMENSION_LABEL_REG = /\{@(.+?)\}/g; var DataFormatMixin = /** @class */function () { function DataFormatMixin() {} /** * Get params for formatter */ DataFormatMixin.prototype.getDataParams = function (dataIndex, dataType) { var data = this.getData(dataType); var rawValue = this.getRawValue(dataIndex, dataType); var rawDataIndex = data.getRawIndex(dataIndex); var name = data.getName(dataIndex); var itemOpt = data.getRawDataItem(dataIndex); var style = data.getItemVisual(dataIndex, 'style'); var color = style && style[data.getItemVisual(dataIndex, 'drawType') || 'fill']; var borderColor = style && style.stroke; var mainType = this.mainType; var isSeries = mainType === 'series'; var userOutput = data.userOutput && data.userOutput.get(); return { componentType: mainType, componentSubType: this.subType, componentIndex: this.componentIndex, seriesType: isSeries ? this.subType : null, seriesIndex: this.seriesIndex, seriesId: isSeries ? this.id : null, seriesName: isSeries ? this.name : null, name: name, dataIndex: rawDataIndex, data: itemOpt, dataType: dataType, value: rawValue, color: color, borderColor: borderColor, dimensionNames: userOutput ? userOutput.fullDimensions : null, encode: userOutput ? userOutput.encode : null, // Param name list for mapping `a`, `b`, `c`, `d`, `e` $vars: ['seriesName', 'name', 'value'] }; }; /** * Format label * @param dataIndex * @param status 'normal' by default * @param dataType * @param labelDimIndex Only used in some chart that * use formatter in different dimensions, like radar. * @param formatter Formatter given outside. * @return return null/undefined if no formatter */ DataFormatMixin.prototype.getFormattedLabel = function (dataIndex, status, dataType, labelDimIndex, formatter, extendParams) { status = status || 'normal'; var data = this.getData(dataType); var params = this.getDataParams(dataIndex, dataType); if (extendParams) { params.value = extendParams.interpolatedValue; } if (labelDimIndex != null && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](params.value)) { params.value = params.value[labelDimIndex]; } if (!formatter) { var itemModel = data.getItemModel(dataIndex); // @ts-ignore formatter = itemModel.get(status === 'normal' ? ['label', 'formatter'] : [status, 'label', 'formatter']); } if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"](formatter)) { params.status = status; params.dimensionIndex = labelDimIndex; return formatter(params); } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](formatter)) { var str = Object(_util_format_js__WEBPACK_IMPORTED_MODULE_2__["formatTpl"])(formatter, params); // Support 'aaa{@[3]}bbb{@product}ccc'. // Do not support '}' in dim name util have to. return str.replace(DIMENSION_LABEL_REG, function (origin, dimStr) { var len = dimStr.length; var dimLoose = dimStr; if (dimLoose.charAt(0) === '[' && dimLoose.charAt(len - 1) === ']') { dimLoose = +dimLoose.slice(1, len - 1); // Also support: '[]' => 0 if (true) { if (isNaN(dimLoose)) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["error"])("Invalide label formatter: @" + dimStr + ", only support @[0], @[1], @[2], ..."); } } } var val = Object(_data_helper_dataProvider_js__WEBPACK_IMPORTED_MODULE_1__["retrieveRawValue"])(data, dataIndex, dimLoose); if (extendParams && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](extendParams.interpolatedValue)) { var dimIndex = data.getDimensionIndex(dimLoose); if (dimIndex >= 0) { val = extendParams.interpolatedValue[dimIndex]; } } return val != null ? val + '' : ''; }); } }; /** * Get raw value in option */ DataFormatMixin.prototype.getRawValue = function (idx, dataType) { return Object(_data_helper_dataProvider_js__WEBPACK_IMPORTED_MODULE_1__["retrieveRawValue"])(this.getData(dataType), idx); }; /** * Should be implemented. * @param {number} dataIndex * @param {boolean} [multipleSeries=false] * @param {string} [dataType] */ DataFormatMixin.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) { // Empty function return; }; return DataFormatMixin; }(); ; // PENDING: previously we accept this type when calling `formatTooltip`, // but guess little chance has been used outside. Do we need to backward // compat it? // type TooltipFormatResultLegacyObject = { // // `html` means the markup language text, either in 'html' or 'richText'. // // The name `html` is not appropriate because in 'richText' it is not a HTML // // string. But still support it for backward compatibility. // html: string; // markers: Dictionary; // }; /** * For backward compat, normalize the return from `formatTooltip`. */ function normalizeTooltipFormatResult(result) { var markupText; // let markers: Dictionary; var markupFragment; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](result)) { if (result.type) { markupFragment = result; } else { if (true) { console.warn('The return type of `formatTooltip` is not supported: ' + Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["makePrintable"])(result)); } } // else { // markupText = (result as TooltipFormatResultLegacyObject).html; // markers = (result as TooltipFormatResultLegacyObject).markers; // if (markersExisting) { // markers = zrUtil.merge(markersExisting, markers); // } // } } else { markupText = result; } return { text: markupText, // markers: markers || markersExisting, frag: markupFragment }; } /***/ }), /***/ "./node_modules/echarts/lib/model/mixin/itemStyle.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/model/mixin/itemStyle.js ***! \***********************************************************/ /*! exports provided: ITEM_STYLE_KEY_MAP, ItemStyleMixin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ITEM_STYLE_KEY_MAP", function() { return ITEM_STYLE_KEY_MAP; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItemStyleMixin", function() { return ItemStyleMixin; }); /* harmony import */ var _makeStyleMapper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./makeStyleMapper.js */ "./node_modules/echarts/lib/model/mixin/makeStyleMapper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ITEM_STYLE_KEY_MAP = [['fill', 'color'], ['stroke', 'borderColor'], ['lineWidth', 'borderWidth'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'], ['lineDash', 'borderType'], ['lineDashOffset', 'borderDashOffset'], ['lineCap', 'borderCap'], ['lineJoin', 'borderJoin'], ['miterLimit', 'borderMiterLimit'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`. // So do not transfer decal directly. ]; var getItemStyle = Object(_makeStyleMapper_js__WEBPACK_IMPORTED_MODULE_0__["default"])(ITEM_STYLE_KEY_MAP); var ItemStyleMixin = /** @class */function () { function ItemStyleMixin() {} ItemStyleMixin.prototype.getItemStyle = function (excludes, includes) { return getItemStyle(this, excludes, includes); }; return ItemStyleMixin; }(); /***/ }), /***/ "./node_modules/echarts/lib/model/mixin/lineStyle.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/model/mixin/lineStyle.js ***! \***********************************************************/ /*! exports provided: LINE_STYLE_KEY_MAP, LineStyleMixin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LINE_STYLE_KEY_MAP", function() { return LINE_STYLE_KEY_MAP; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineStyleMixin", function() { return LineStyleMixin; }); /* harmony import */ var _makeStyleMapper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./makeStyleMapper.js */ "./node_modules/echarts/lib/model/mixin/makeStyleMapper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var LINE_STYLE_KEY_MAP = [['lineWidth', 'width'], ['stroke', 'color'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'], ['lineDash', 'type'], ['lineDashOffset', 'dashOffset'], ['lineCap', 'cap'], ['lineJoin', 'join'], ['miterLimit'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`. // So do not transfer decal directly. ]; var getLineStyle = Object(_makeStyleMapper_js__WEBPACK_IMPORTED_MODULE_0__["default"])(LINE_STYLE_KEY_MAP); var LineStyleMixin = /** @class */function () { function LineStyleMixin() {} LineStyleMixin.prototype.getLineStyle = function (excludes) { return getLineStyle(this, excludes); }; return LineStyleMixin; }(); ; /***/ }), /***/ "./node_modules/echarts/lib/model/mixin/makeStyleMapper.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/model/mixin/makeStyleMapper.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return makeStyleMapper; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // TODO Parse shadow style // TODO Only shallow path support function makeStyleMapper(properties, ignoreParent) { // Normalize for (var i = 0; i < properties.length; i++) { if (!properties[i][1]) { properties[i][1] = properties[i][0]; } } ignoreParent = ignoreParent || false; return function (model, excludes, includes) { var style = {}; for (var i = 0; i < properties.length; i++) { var propName = properties[i][1]; if (excludes && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"](excludes, propName) >= 0 || includes && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"](includes, propName) < 0) { continue; } var val = model.getShallow(propName, ignoreParent); if (val != null) { style[properties[i][0]] = val; } } // TODO Text or image? return style; }; } /***/ }), /***/ "./node_modules/echarts/lib/model/mixin/palette.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/model/mixin/palette.js ***! \*********************************************************/ /*! exports provided: getDecalFromPalette, PaletteMixin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDecalFromPalette", function() { return getDecalFromPalette; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaletteMixin", function() { return PaletteMixin; }); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var innerColor = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["makeInner"])(); var innerDecal = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["makeInner"])(); var PaletteMixin = /** @class */function () { function PaletteMixin() {} PaletteMixin.prototype.getColorFromPalette = function (name, scope, requestNum) { var defaultPalette = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["normalizeToArray"])(this.get('color', true)); var layeredPalette = this.get('colorLayer', true); return getFromPalette(this, innerColor, defaultPalette, layeredPalette, name, scope, requestNum); }; PaletteMixin.prototype.clearColorPalette = function () { clearPalette(this, innerColor); }; return PaletteMixin; }(); function getDecalFromPalette(ecModel, name, scope, requestNum) { var defaultDecals = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_0__["normalizeToArray"])(ecModel.get(['aria', 'decal', 'decals'])); return getFromPalette(ecModel, innerDecal, defaultDecals, null, name, scope, requestNum); } function getNearestPalette(palettes, requestColorNum) { var paletteNum = palettes.length; // TODO palettes must be in order for (var i = 0; i < paletteNum; i++) { if (palettes[i].length > requestColorNum) { return palettes[i]; } } return palettes[paletteNum - 1]; } /** * @param name MUST NOT be null/undefined. Otherwise call this function * twise with the same parameters will get different result. * @param scope default this. * @return Can be null/undefined */ function getFromPalette(that, inner, defaultPalette, layeredPalette, name, scope, requestNum) { scope = scope || that; var scopeFields = inner(scope); var paletteIdx = scopeFields.paletteIdx || 0; var paletteNameMap = scopeFields.paletteNameMap = scopeFields.paletteNameMap || {}; // Use `hasOwnProperty` to avoid conflict with Object.prototype. if (paletteNameMap.hasOwnProperty(name)) { return paletteNameMap[name]; } var palette = requestNum == null || !layeredPalette ? defaultPalette : getNearestPalette(layeredPalette, requestNum); // In case can't find in layered color palette. palette = palette || defaultPalette; if (!palette || !palette.length) { return; } var pickedPaletteItem = palette[paletteIdx]; if (name) { paletteNameMap[name] = pickedPaletteItem; } scopeFields.paletteIdx = (paletteIdx + 1) % palette.length; return pickedPaletteItem; } function clearPalette(that, inner) { inner(that).paletteIdx = 0; inner(that).paletteNameMap = {}; } /***/ }), /***/ "./node_modules/echarts/lib/model/mixin/textStyle.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/model/mixin/textStyle.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _label_labelStyle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../label/labelStyle.js */ "./node_modules/echarts/lib/label/labelStyle.js"); /* harmony import */ var zrender_lib_graphic_Text_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/graphic/Text.js */ "./node_modules/zrender/lib/graphic/Text.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var PATH_COLOR = ['textStyle', 'color']; var textStyleParams = ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily', 'padding', 'lineHeight', 'rich', 'width', 'height', 'overflow']; // TODO Performance improvement? var tmpText = new zrender_lib_graphic_Text_js__WEBPACK_IMPORTED_MODULE_1__["default"](); var TextStyleMixin = /** @class */function () { function TextStyleMixin() {} /** * Get color property or get color from option.textStyle.color */ // TODO Callback TextStyleMixin.prototype.getTextColor = function (isEmphasis) { var ecModel = this.ecModel; return this.getShallow('color') || (!isEmphasis && ecModel ? ecModel.get(PATH_COLOR) : null); }; /** * Create font string from fontStyle, fontWeight, fontSize, fontFamily * @return {string} */ TextStyleMixin.prototype.getFont = function () { return Object(_label_labelStyle_js__WEBPACK_IMPORTED_MODULE_0__["getFont"])({ fontStyle: this.getShallow('fontStyle'), fontWeight: this.getShallow('fontWeight'), fontSize: this.getShallow('fontSize'), fontFamily: this.getShallow('fontFamily') }, this.ecModel); }; TextStyleMixin.prototype.getTextRect = function (text) { var style = { text: text, verticalAlign: this.getShallow('verticalAlign') || this.getShallow('baseline') }; for (var i = 0; i < textStyleParams.length; i++) { style[textStyleParams[i]] = this.getShallow(textStyleParams[i]); } tmpText.useStyle(style); tmpText.update(); return tmpText.getBoundingRect(); }; return TextStyleMixin; }(); ; /* harmony default export */ __webpack_exports__["default"] = (TextStyleMixin); /***/ }), /***/ "./node_modules/echarts/lib/model/referHelper.js": /*!*******************************************************!*\ !*** ./node_modules/echarts/lib/model/referHelper.js ***! \*******************************************************/ /*! exports provided: getCoordSysInfoBySeries */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCoordSysInfoBySeries", function() { return getCoordSysInfoBySeries; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Helper for model references. * There are many manners to refer axis/coordSys. */ // TODO // merge relevant logic to this file? // check: "modelHelper" of tooltip and "BrushTargetManager". /** * @class * For example: * { * coordSysName: 'cartesian2d', * coordSysDims: ['x', 'y', ...], * axisMap: HashMap({ * x: xAxisModel, * y: yAxisModel * }), * categoryAxisMap: HashMap({ * x: xAxisModel, * y: undefined * }), * // The index of the first category axis in `coordSysDims`. * // `null/undefined` means no category axis exists. * firstCategoryDimIndex: 1, * // To replace user specified encode. * } */ var CoordSysInfo = /** @class */function () { function CoordSysInfo(coordSysName) { this.coordSysDims = []; this.axisMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); this.categoryAxisMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); this.coordSysName = coordSysName; } return CoordSysInfo; }(); function getCoordSysInfoBySeries(seriesModel) { var coordSysName = seriesModel.get('coordinateSystem'); var result = new CoordSysInfo(coordSysName); var fetch = fetchers[coordSysName]; if (fetch) { fetch(seriesModel, result, result.axisMap, result.categoryAxisMap); return result; } } var fetchers = { cartesian2d: function (seriesModel, result, axisMap, categoryAxisMap) { var xAxisModel = seriesModel.getReferringComponents('xAxis', _util_model_js__WEBPACK_IMPORTED_MODULE_1__["SINGLE_REFERRING"]).models[0]; var yAxisModel = seriesModel.getReferringComponents('yAxis', _util_model_js__WEBPACK_IMPORTED_MODULE_1__["SINGLE_REFERRING"]).models[0]; if (true) { if (!xAxisModel) { throw new Error('xAxis "' + Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve"])(seriesModel.get('xAxisIndex'), seriesModel.get('xAxisId'), 0) + '" not found'); } if (!yAxisModel) { throw new Error('yAxis "' + Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve"])(seriesModel.get('xAxisIndex'), seriesModel.get('yAxisId'), 0) + '" not found'); } } result.coordSysDims = ['x', 'y']; axisMap.set('x', xAxisModel); axisMap.set('y', yAxisModel); if (isCategory(xAxisModel)) { categoryAxisMap.set('x', xAxisModel); result.firstCategoryDimIndex = 0; } if (isCategory(yAxisModel)) { categoryAxisMap.set('y', yAxisModel); result.firstCategoryDimIndex == null && (result.firstCategoryDimIndex = 1); } }, singleAxis: function (seriesModel, result, axisMap, categoryAxisMap) { var singleAxisModel = seriesModel.getReferringComponents('singleAxis', _util_model_js__WEBPACK_IMPORTED_MODULE_1__["SINGLE_REFERRING"]).models[0]; if (true) { if (!singleAxisModel) { throw new Error('singleAxis should be specified.'); } } result.coordSysDims = ['single']; axisMap.set('single', singleAxisModel); if (isCategory(singleAxisModel)) { categoryAxisMap.set('single', singleAxisModel); result.firstCategoryDimIndex = 0; } }, polar: function (seriesModel, result, axisMap, categoryAxisMap) { var polarModel = seriesModel.getReferringComponents('polar', _util_model_js__WEBPACK_IMPORTED_MODULE_1__["SINGLE_REFERRING"]).models[0]; var radiusAxisModel = polarModel.findAxisModel('radiusAxis'); var angleAxisModel = polarModel.findAxisModel('angleAxis'); if (true) { if (!angleAxisModel) { throw new Error('angleAxis option not found'); } if (!radiusAxisModel) { throw new Error('radiusAxis option not found'); } } result.coordSysDims = ['radius', 'angle']; axisMap.set('radius', radiusAxisModel); axisMap.set('angle', angleAxisModel); if (isCategory(radiusAxisModel)) { categoryAxisMap.set('radius', radiusAxisModel); result.firstCategoryDimIndex = 0; } if (isCategory(angleAxisModel)) { categoryAxisMap.set('angle', angleAxisModel); result.firstCategoryDimIndex == null && (result.firstCategoryDimIndex = 1); } }, geo: function (seriesModel, result, axisMap, categoryAxisMap) { result.coordSysDims = ['lng', 'lat']; }, parallel: function (seriesModel, result, axisMap, categoryAxisMap) { var ecModel = seriesModel.ecModel; var parallelModel = ecModel.getComponent('parallel', seriesModel.get('parallelIndex')); var coordSysDims = result.coordSysDims = parallelModel.dimensions.slice(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(parallelModel.parallelAxisIndex, function (axisIndex, index) { var axisModel = ecModel.getComponent('parallelAxis', axisIndex); var axisDim = coordSysDims[index]; axisMap.set(axisDim, axisModel); if (isCategory(axisModel)) { categoryAxisMap.set(axisDim, axisModel); if (result.firstCategoryDimIndex == null) { result.firstCategoryDimIndex = index; } } }); } }; function isCategory(axisModel) { return axisModel.get('type') === 'category'; } /***/ }), /***/ "./node_modules/echarts/lib/preprocessor/backwardCompat.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/preprocessor/backwardCompat.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return globalBackwardCompat; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _helper_compatStyle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helper/compatStyle.js */ "./node_modules/echarts/lib/preprocessor/helper/compatStyle.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function get(opt, path) { var pathArr = path.split(','); var obj = opt; for (var i = 0; i < pathArr.length; i++) { obj = obj && obj[pathArr[i]]; if (obj == null) { break; } } return obj; } function set(opt, path, val, overwrite) { var pathArr = path.split(','); var obj = opt; var key; var i = 0; for (; i < pathArr.length - 1; i++) { key = pathArr[i]; if (obj[key] == null) { obj[key] = {}; } obj = obj[key]; } if (overwrite || obj[pathArr[i]] == null) { obj[pathArr[i]] = val; } } function compatLayoutProperties(option) { option && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(LAYOUT_PROPERTIES, function (prop) { if (prop[0] in option && !(prop[1] in option)) { option[prop[1]] = option[prop[0]]; } }); } var LAYOUT_PROPERTIES = [['x', 'left'], ['y', 'top'], ['x2', 'right'], ['y2', 'bottom']]; var COMPATITABLE_COMPONENTS = ['grid', 'geo', 'parallel', 'legend', 'toolbox', 'title', 'visualMap', 'dataZoom', 'timeline']; var BAR_ITEM_STYLE_MAP = [['borderRadius', 'barBorderRadius'], ['borderColor', 'barBorderColor'], ['borderWidth', 'barBorderWidth']]; function compatBarItemStyle(option) { var itemStyle = option && option.itemStyle; if (itemStyle) { for (var i = 0; i < BAR_ITEM_STYLE_MAP.length; i++) { var oldName = BAR_ITEM_STYLE_MAP[i][1]; var newName = BAR_ITEM_STYLE_MAP[i][0]; if (itemStyle[oldName] != null) { itemStyle[newName] = itemStyle[oldName]; if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])(oldName, newName); } } } } } function compatPieLabel(option) { if (!option) { return; } if (option.alignTo === 'edge' && option.margin != null && option.edgeDistance == null) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])('label.margin', 'label.edgeDistance', 'pie'); } option.edgeDistance = option.margin; } } function compatSunburstState(option) { if (!option) { return; } if (option.downplay && !option.blur) { option.blur = option.downplay; if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])('downplay', 'blur', 'sunburst'); } } } function compatGraphFocus(option) { if (!option) { return; } if (option.focusNodeAdjacency != null) { option.emphasis = option.emphasis || {}; if (option.emphasis.focus == null) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])('focusNodeAdjacency', 'emphasis: { focus: \'adjacency\'}', 'graph/sankey'); } option.emphasis.focus = 'adjacency'; } } } function traverseTree(data, cb) { if (data) { for (var i = 0; i < data.length; i++) { cb(data[i]); data[i] && traverseTree(data[i].children, cb); } } } function globalBackwardCompat(option, isTheme) { Object(_helper_compatStyle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(option, isTheme); // Make sure series array for model initialization. option.series = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_2__["normalizeToArray"])(option.series); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(option.series, function (seriesOpt) { if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(seriesOpt)) { return; } var seriesType = seriesOpt.type; if (seriesType === 'line') { if (seriesOpt.clipOverflow != null) { seriesOpt.clip = seriesOpt.clipOverflow; if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])('clipOverflow', 'clip', 'line'); } } } else if (seriesType === 'pie' || seriesType === 'gauge') { if (seriesOpt.clockWise != null) { seriesOpt.clockwise = seriesOpt.clockWise; if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])('clockWise', 'clockwise'); } } compatPieLabel(seriesOpt.label); var data = seriesOpt.data; if (data && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isTypedArray"])(data)) { for (var i = 0; i < data.length; i++) { compatPieLabel(data[i]); } } if (seriesOpt.hoverOffset != null) { seriesOpt.emphasis = seriesOpt.emphasis || {}; if (seriesOpt.emphasis.scaleSize = null) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])('hoverOffset', 'emphasis.scaleSize'); } seriesOpt.emphasis.scaleSize = seriesOpt.hoverOffset; } } } else if (seriesType === 'gauge') { var pointerColor = get(seriesOpt, 'pointer.color'); pointerColor != null && set(seriesOpt, 'itemStyle.color', pointerColor); } else if (seriesType === 'bar') { compatBarItemStyle(seriesOpt); compatBarItemStyle(seriesOpt.backgroundStyle); compatBarItemStyle(seriesOpt.emphasis); var data = seriesOpt.data; if (data && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isTypedArray"])(data)) { for (var i = 0; i < data.length; i++) { if (typeof data[i] === 'object') { compatBarItemStyle(data[i]); compatBarItemStyle(data[i] && data[i].emphasis); } } } } else if (seriesType === 'sunburst') { var highlightPolicy = seriesOpt.highlightPolicy; if (highlightPolicy) { seriesOpt.emphasis = seriesOpt.emphasis || {}; if (!seriesOpt.emphasis.focus) { seriesOpt.emphasis.focus = highlightPolicy; if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])('highlightPolicy', 'emphasis.focus', 'sunburst'); } } } compatSunburstState(seriesOpt); traverseTree(seriesOpt.data, compatSunburstState); } else if (seriesType === 'graph' || seriesType === 'sankey') { compatGraphFocus(seriesOpt); // TODO nodes, edges? } else if (seriesType === 'map') { if (seriesOpt.mapType && !seriesOpt.map) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])('mapType', 'map', 'map'); } seriesOpt.map = seriesOpt.mapType; } if (seriesOpt.mapLocation) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateLog"])('`mapLocation` is not used anymore.'); } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"])(seriesOpt, seriesOpt.mapLocation); } } if (seriesOpt.hoverAnimation != null) { seriesOpt.emphasis = seriesOpt.emphasis || {}; if (seriesOpt.emphasis && seriesOpt.emphasis.scale == null) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["deprecateReplaceLog"])('hoverAnimation', 'emphasis.scale'); } seriesOpt.emphasis.scale = seriesOpt.hoverAnimation; } } compatLayoutProperties(seriesOpt); }); // dataRange has changed to visualMap if (option.dataRange) { option.visualMap = option.dataRange; } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(COMPATITABLE_COMPONENTS, function (componentName) { var options = option[componentName]; if (options) { if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(options)) { options = [options]; } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(options, function (option) { compatLayoutProperties(option); }); } }); } /***/ }), /***/ "./node_modules/echarts/lib/preprocessor/helper/compatStyle.js": /*!*********************************************************************!*\ !*** ./node_modules/echarts/lib/preprocessor/helper/compatStyle.js ***! \*********************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return globalCompatStyle; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]; var isObject = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"]; var POSSIBLE_STYLES = ['areaStyle', 'lineStyle', 'nodeStyle', 'linkStyle', 'chordStyle', 'label', 'labelLine']; function compatEC2ItemStyle(opt) { var itemStyleOpt = opt && opt.itemStyle; if (!itemStyleOpt) { return; } for (var i = 0, len = POSSIBLE_STYLES.length; i < len; i++) { var styleName = POSSIBLE_STYLES[i]; var normalItemStyleOpt = itemStyleOpt.normal; var emphasisItemStyleOpt = itemStyleOpt.emphasis; if (normalItemStyleOpt && normalItemStyleOpt[styleName]) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["deprecateReplaceLog"])("itemStyle.normal." + styleName, styleName); } opt[styleName] = opt[styleName] || {}; if (!opt[styleName].normal) { opt[styleName].normal = normalItemStyleOpt[styleName]; } else { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["merge"](opt[styleName].normal, normalItemStyleOpt[styleName]); } normalItemStyleOpt[styleName] = null; } if (emphasisItemStyleOpt && emphasisItemStyleOpt[styleName]) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["deprecateReplaceLog"])("itemStyle.emphasis." + styleName, "emphasis." + styleName); } opt[styleName] = opt[styleName] || {}; if (!opt[styleName].emphasis) { opt[styleName].emphasis = emphasisItemStyleOpt[styleName]; } else { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["merge"](opt[styleName].emphasis, emphasisItemStyleOpt[styleName]); } emphasisItemStyleOpt[styleName] = null; } } } function convertNormalEmphasis(opt, optType, useExtend) { if (opt && opt[optType] && (opt[optType].normal || opt[optType].emphasis)) { var normalOpt = opt[optType].normal; var emphasisOpt = opt[optType].emphasis; if (normalOpt) { if (true) { // eslint-disable-next-line max-len Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["deprecateLog"])("'normal' hierarchy in " + optType + " has been removed since 4.0. All style properties are configured in " + optType + " directly now."); } // Timeline controlStyle has other properties besides normal and emphasis if (useExtend) { opt[optType].normal = opt[optType].emphasis = null; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"](opt[optType], normalOpt); } else { opt[optType] = normalOpt; } } if (emphasisOpt) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["deprecateLog"])(optType + ".emphasis has been changed to emphasis." + optType + " since 4.0"); } opt.emphasis = opt.emphasis || {}; opt.emphasis[optType] = emphasisOpt; // Also compat the case user mix the style and focus together in ec3 style // for example: { itemStyle: { normal: {}, emphasis: {focus, shadowBlur} } } if (emphasisOpt.focus) { opt.emphasis.focus = emphasisOpt.focus; } if (emphasisOpt.blurScope) { opt.emphasis.blurScope = emphasisOpt.blurScope; } } } } function removeEC3NormalStatus(opt) { convertNormalEmphasis(opt, 'itemStyle'); convertNormalEmphasis(opt, 'lineStyle'); convertNormalEmphasis(opt, 'areaStyle'); convertNormalEmphasis(opt, 'label'); convertNormalEmphasis(opt, 'labelLine'); // treemap convertNormalEmphasis(opt, 'upperLabel'); // graph convertNormalEmphasis(opt, 'edgeLabel'); } function compatTextStyle(opt, propName) { // Check whether is not object (string\null\undefined ...) var labelOptSingle = isObject(opt) && opt[propName]; var textStyle = isObject(labelOptSingle) && labelOptSingle.textStyle; if (textStyle) { if (true) { // eslint-disable-next-line max-len Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["deprecateLog"])("textStyle hierarchy in " + propName + " has been removed since 4.0. All textStyle properties are configured in " + propName + " directly now."); } for (var i = 0, len = _util_model_js__WEBPACK_IMPORTED_MODULE_1__["TEXT_STYLE_OPTIONS"].length; i < len; i++) { var textPropName = _util_model_js__WEBPACK_IMPORTED_MODULE_1__["TEXT_STYLE_OPTIONS"][i]; if (textStyle.hasOwnProperty(textPropName)) { labelOptSingle[textPropName] = textStyle[textPropName]; } } } } function compatEC3CommonStyles(opt) { if (opt) { removeEC3NormalStatus(opt); compatTextStyle(opt, 'label'); opt.emphasis && compatTextStyle(opt.emphasis, 'label'); } } function processSeries(seriesOpt) { if (!isObject(seriesOpt)) { return; } compatEC2ItemStyle(seriesOpt); removeEC3NormalStatus(seriesOpt); compatTextStyle(seriesOpt, 'label'); // treemap compatTextStyle(seriesOpt, 'upperLabel'); // graph compatTextStyle(seriesOpt, 'edgeLabel'); if (seriesOpt.emphasis) { compatTextStyle(seriesOpt.emphasis, 'label'); // treemap compatTextStyle(seriesOpt.emphasis, 'upperLabel'); // graph compatTextStyle(seriesOpt.emphasis, 'edgeLabel'); } var markPoint = seriesOpt.markPoint; if (markPoint) { compatEC2ItemStyle(markPoint); compatEC3CommonStyles(markPoint); } var markLine = seriesOpt.markLine; if (markLine) { compatEC2ItemStyle(markLine); compatEC3CommonStyles(markLine); } var markArea = seriesOpt.markArea; if (markArea) { compatEC3CommonStyles(markArea); } var data = seriesOpt.data; // Break with ec3: if `setOption` again, there may be no `type` in option, // then the backward compat based on option type will not be performed. if (seriesOpt.type === 'graph') { data = data || seriesOpt.nodes; var edgeData = seriesOpt.links || seriesOpt.edges; if (edgeData && !zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isTypedArray"](edgeData)) { for (var i = 0; i < edgeData.length; i++) { compatEC3CommonStyles(edgeData[i]); } } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](seriesOpt.categories, function (opt) { removeEC3NormalStatus(opt); }); } if (data && !zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isTypedArray"](data)) { for (var i = 0; i < data.length; i++) { compatEC3CommonStyles(data[i]); } } // mark point data markPoint = seriesOpt.markPoint; if (markPoint && markPoint.data) { var mpData = markPoint.data; for (var i = 0; i < mpData.length; i++) { compatEC3CommonStyles(mpData[i]); } } // mark line data markLine = seriesOpt.markLine; if (markLine && markLine.data) { var mlData = markLine.data; for (var i = 0; i < mlData.length; i++) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](mlData[i])) { compatEC3CommonStyles(mlData[i][0]); compatEC3CommonStyles(mlData[i][1]); } else { compatEC3CommonStyles(mlData[i]); } } } // Series if (seriesOpt.type === 'gauge') { compatTextStyle(seriesOpt, 'axisLabel'); compatTextStyle(seriesOpt, 'title'); compatTextStyle(seriesOpt, 'detail'); } else if (seriesOpt.type === 'treemap') { convertNormalEmphasis(seriesOpt.breadcrumb, 'itemStyle'); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](seriesOpt.levels, function (opt) { removeEC3NormalStatus(opt); }); } else if (seriesOpt.type === 'tree') { removeEC3NormalStatus(seriesOpt.leaves); } // sunburst starts from ec4, so it does not need to compat levels. } function toArr(o) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](o) ? o : o ? [o] : []; } function toObj(o) { return (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](o) ? o[0] : o) || {}; } function globalCompatStyle(option, isTheme) { each(toArr(option.series), function (seriesOpt) { isObject(seriesOpt) && processSeries(seriesOpt); }); var axes = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'parallelAxis', 'radar']; isTheme && axes.push('valueAxis', 'categoryAxis', 'logAxis', 'timeAxis'); each(axes, function (axisName) { each(toArr(option[axisName]), function (axisOpt) { if (axisOpt) { compatTextStyle(axisOpt, 'axisLabel'); compatTextStyle(axisOpt.axisPointer, 'label'); } }); }); each(toArr(option.parallel), function (parallelOpt) { var parallelAxisDefault = parallelOpt && parallelOpt.parallelAxisDefault; compatTextStyle(parallelAxisDefault, 'axisLabel'); compatTextStyle(parallelAxisDefault && parallelAxisDefault.axisPointer, 'label'); }); each(toArr(option.calendar), function (calendarOpt) { convertNormalEmphasis(calendarOpt, 'itemStyle'); compatTextStyle(calendarOpt, 'dayLabel'); compatTextStyle(calendarOpt, 'monthLabel'); compatTextStyle(calendarOpt, 'yearLabel'); }); // radar.name.textStyle each(toArr(option.radar), function (radarOpt) { compatTextStyle(radarOpt, 'name'); // Use axisName instead of name because component has name property if (radarOpt.name && radarOpt.axisName == null) { radarOpt.axisName = radarOpt.name; delete radarOpt.name; if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["deprecateLog"])('name property in radar component has been changed to axisName'); } } if (radarOpt.nameGap != null && radarOpt.axisNameGap == null) { radarOpt.axisNameGap = radarOpt.nameGap; delete radarOpt.nameGap; if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["deprecateLog"])('nameGap property in radar component has been changed to axisNameGap'); } } if (true) { each(radarOpt.indicator, function (indicatorOpt) { if (indicatorOpt.text) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_2__["deprecateReplaceLog"])('text', 'name', 'radar.indicator'); } }); } }); each(toArr(option.geo), function (geoOpt) { if (isObject(geoOpt)) { compatEC3CommonStyles(geoOpt); each(toArr(geoOpt.regions), function (regionObj) { compatEC3CommonStyles(regionObj); }); } }); each(toArr(option.timeline), function (timelineOpt) { compatEC3CommonStyles(timelineOpt); convertNormalEmphasis(timelineOpt, 'label'); convertNormalEmphasis(timelineOpt, 'itemStyle'); convertNormalEmphasis(timelineOpt, 'controlStyle', true); var data = timelineOpt.data; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](data) && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](data, function (item) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](item)) { convertNormalEmphasis(item, 'label'); convertNormalEmphasis(item, 'itemStyle'); } }); }); each(toArr(option.toolbox), function (toolboxOpt) { convertNormalEmphasis(toolboxOpt, 'iconStyle'); each(toolboxOpt.feature, function (featureOpt) { convertNormalEmphasis(featureOpt, 'iconStyle'); }); }); compatTextStyle(toObj(option.axisPointer), 'label'); compatTextStyle(toObj(option.tooltip).axisPointer, 'label'); // Clean logs // storedLogs = {}; } /***/ }), /***/ "./node_modules/echarts/lib/processor/dataFilter.js": /*!**********************************************************!*\ !*** ./node_modules/echarts/lib/processor/dataFilter.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return dataFilter; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function dataFilter(seriesType) { return { seriesType: seriesType, reset: function (seriesModel, ecModel) { var legendModels = ecModel.findComponents({ mainType: 'legend' }); if (!legendModels || !legendModels.length) { return; } var data = seriesModel.getData(); data.filterSelf(function (idx) { var name = data.getName(idx); // If in any legend component the status is not selected. for (var i = 0; i < legendModels.length; i++) { // @ts-ignore FIXME: LegendModel if (!legendModels[i].isSelected(name)) { return false; } } return true; }); } }; } /***/ }), /***/ "./node_modules/echarts/lib/processor/dataSample.js": /*!**********************************************************!*\ !*** ./node_modules/echarts/lib/processor/dataSample.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return dataSample; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var samplers = { average: function (frame) { var sum = 0; var count = 0; for (var i = 0; i < frame.length; i++) { if (!isNaN(frame[i])) { sum += frame[i]; count++; } } // Return NaN if count is 0 return count === 0 ? NaN : sum / count; }, sum: function (frame) { var sum = 0; for (var i = 0; i < frame.length; i++) { // Ignore NaN sum += frame[i] || 0; } return sum; }, max: function (frame) { var max = -Infinity; for (var i = 0; i < frame.length; i++) { frame[i] > max && (max = frame[i]); } // NaN will cause illegal axis extent. return isFinite(max) ? max : NaN; }, min: function (frame) { var min = Infinity; for (var i = 0; i < frame.length; i++) { frame[i] < min && (min = frame[i]); } // NaN will cause illegal axis extent. return isFinite(min) ? min : NaN; }, // TODO // Median nearest: function (frame) { return frame[0]; } }; var indexSampler = function (frame) { return Math.round(frame.length / 2); }; function dataSample(seriesType) { return { seriesType: seriesType, // FIXME:TS never used, so comment it // modifyOutputEnd: true, reset: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var sampling = seriesModel.get('sampling'); var coordSys = seriesModel.coordinateSystem; var count = data.count(); // Only cartesian2d support down sampling. Disable it when there is few data. if (count > 10 && coordSys.type === 'cartesian2d' && sampling) { var baseAxis = coordSys.getBaseAxis(); var valueAxis = coordSys.getOtherAxis(baseAxis); var extent = baseAxis.getExtent(); var dpr = api.getDevicePixelRatio(); // Coordinste system has been resized var size = Math.abs(extent[1] - extent[0]) * (dpr || 1); var rate = Math.round(count / size); if (isFinite(rate) && rate > 1) { if (sampling === 'lttb') { seriesModel.setData(data.lttbDownSample(data.mapDimension(valueAxis.dim), 1 / rate)); } else if (sampling === 'minmax') { seriesModel.setData(data.minmaxDownSample(data.mapDimension(valueAxis.dim), 1 / rate)); } var sampler = void 0; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(sampling)) { sampler = samplers[sampling]; } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(sampling)) { sampler = sampling; } if (sampler) { // Only support sample the first dim mapped from value axis. seriesModel.setData(data.downSample(data.mapDimension(valueAxis.dim), 1 / rate, sampler, indexSampler)); } } } } }; } /***/ }), /***/ "./node_modules/echarts/lib/processor/dataStack.js": /*!*********************************************************!*\ !*** ./node_modules/echarts/lib/processor/dataStack.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return dataStack; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // (1) [Caution]: the logic is correct based on the premises: // data processing stage is blocked in stream. // See // (2) Only register once when import repeatedly. // Should be executed after series is filtered and before stack calculation. function dataStack(ecModel) { var stackInfoMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); ecModel.eachSeries(function (seriesModel) { var stack = seriesModel.get('stack'); // Compatible: when `stack` is set as '', do not stack. if (stack) { var stackInfoList = stackInfoMap.get(stack) || stackInfoMap.set(stack, []); var data = seriesModel.getData(); var stackInfo = { // Used for calculate axis extent automatically. // TODO: Type getCalculationInfo return more specific type? stackResultDimension: data.getCalculationInfo('stackResultDimension'), stackedOverDimension: data.getCalculationInfo('stackedOverDimension'), stackedDimension: data.getCalculationInfo('stackedDimension'), stackedByDimension: data.getCalculationInfo('stackedByDimension'), isStackedByIndex: data.getCalculationInfo('isStackedByIndex'), data: data, seriesModel: seriesModel }; // If stacked on axis that do not support data stack. if (!stackInfo.stackedDimension || !(stackInfo.isStackedByIndex || stackInfo.stackedByDimension)) { return; } stackInfoList.length && data.setCalculationInfo('stackedOnSeries', stackInfoList[stackInfoList.length - 1].seriesModel); stackInfoList.push(stackInfo); } }); stackInfoMap.each(calculateStack); } function calculateStack(stackInfoList) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(stackInfoList, function (targetStackInfo, idxInStack) { var resultVal = []; var resultNaN = [NaN, NaN]; var dims = [targetStackInfo.stackResultDimension, targetStackInfo.stackedOverDimension]; var targetData = targetStackInfo.data; var isStackedByIndex = targetStackInfo.isStackedByIndex; var stackStrategy = targetStackInfo.seriesModel.get('stackStrategy') || 'samesign'; // Should not write on raw data, because stack series model list changes // depending on legend selection. targetData.modify(dims, function (v0, v1, dataIndex) { var sum = targetData.get(targetStackInfo.stackedDimension, dataIndex); // Consider `connectNulls` of line area, if value is NaN, stackedOver // should also be NaN, to draw a appropriate belt area. if (isNaN(sum)) { return resultNaN; } var byValue; var stackedDataRawIndex; if (isStackedByIndex) { stackedDataRawIndex = targetData.getRawIndex(dataIndex); } else { byValue = targetData.get(targetStackInfo.stackedByDimension, dataIndex); } // If stackOver is NaN, chart view will render point on value start. var stackedOver = NaN; for (var j = idxInStack - 1; j >= 0; j--) { var stackInfo = stackInfoList[j]; // Has been optimized by inverted indices on `stackedByDimension`. if (!isStackedByIndex) { stackedDataRawIndex = stackInfo.data.rawIndexOf(stackInfo.stackedByDimension, byValue); } if (stackedDataRawIndex >= 0) { var val = stackInfo.data.getByRawIndex(stackInfo.stackResultDimension, stackedDataRawIndex); // Considering positive stack, negative stack and empty data if (stackStrategy === 'all' // single stack group || stackStrategy === 'positive' && val > 0 || stackStrategy === 'negative' && val < 0 || stackStrategy === 'samesign' && sum >= 0 && val > 0 // All positive stack || stackStrategy === 'samesign' && sum <= 0 && val < 0 // All negative stack ) { // The sum has to be very small to be affected by the // floating arithmetic problem. An incorrect result will probably // cause axis min/max to be filtered incorrectly. sum = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_1__["addSafe"])(sum, val); stackedOver = val; break; } } } resultVal[0] = sum; resultVal[1] = stackedOver; return resultVal; }); }); } /***/ }), /***/ "./node_modules/echarts/lib/processor/negativeDataFilter.js": /*!******************************************************************!*\ !*** ./node_modules/echarts/lib/processor/negativeDataFilter.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return negativeDataFilter; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function negativeDataFilter(seriesType) { return { seriesType: seriesType, reset: function (seriesModel, ecModel) { var data = seriesModel.getData(); data.filterSelf(function (idx) { // handle negative value condition var valueDim = data.mapDimension('value'); var curValue = data.get(valueDim, idx); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isNumber"])(curValue) && !isNaN(curValue) && curValue < 0) { return false; } return true; }); } }; } /***/ }), /***/ "./node_modules/echarts/lib/renderer/installCanvasRenderer.js": /*!********************************************************************!*\ !*** ./node_modules/echarts/lib/renderer/installCanvasRenderer.js ***! \********************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var zrender_lib_canvas_Painter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/canvas/Painter.js */ "./node_modules/zrender/lib/canvas/Painter.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerPainter('canvas', zrender_lib_canvas_Painter_js__WEBPACK_IMPORTED_MODULE_0__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/renderer/installSVGRenderer.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/renderer/installSVGRenderer.js ***! \*****************************************************************/ /*! exports provided: install */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; }); /* harmony import */ var zrender_lib_svg_Painter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/svg/Painter.js */ "./node_modules/zrender/lib/svg/Painter.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function install(registers) { registers.registerPainter('svg', zrender_lib_svg_Painter_js__WEBPACK_IMPORTED_MODULE_0__["default"]); } /***/ }), /***/ "./node_modules/echarts/lib/scale/Interval.js": /*!****************************************************!*\ !*** ./node_modules/echarts/lib/scale/Interval.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _util_format_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/format.js */ "./node_modules/echarts/lib/util/format.js"); /* harmony import */ var _Scale_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Scale.js */ "./node_modules/echarts/lib/scale/Scale.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/scale/helper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var roundNumber = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["round"]; var IntervalScale = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(IntervalScale, _super); function IntervalScale() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = 'interval'; // Step is calculated in adjustExtent. _this._interval = 0; _this._intervalPrecision = 2; return _this; } IntervalScale.prototype.parse = function (val) { return val; }; IntervalScale.prototype.contain = function (val) { return _helper_js__WEBPACK_IMPORTED_MODULE_4__["contain"](val, this._extent); }; IntervalScale.prototype.normalize = function (val) { return _helper_js__WEBPACK_IMPORTED_MODULE_4__["normalize"](val, this._extent); }; IntervalScale.prototype.scale = function (val) { return _helper_js__WEBPACK_IMPORTED_MODULE_4__["scale"](val, this._extent); }; IntervalScale.prototype.setExtent = function (start, end) { var thisExtent = this._extent; // start,end may be a Number like '25',so... if (!isNaN(start)) { thisExtent[0] = parseFloat(start); } if (!isNaN(end)) { thisExtent[1] = parseFloat(end); } }; IntervalScale.prototype.unionExtent = function (other) { var extent = this._extent; other[0] < extent[0] && (extent[0] = other[0]); other[1] > extent[1] && (extent[1] = other[1]); // unionExtent may called by it's sub classes this.setExtent(extent[0], extent[1]); }; IntervalScale.prototype.getInterval = function () { return this._interval; }; IntervalScale.prototype.setInterval = function (interval) { this._interval = interval; // Dropped auto calculated niceExtent and use user-set extent. // We assume user wants to set both interval, min, max to get a better result. this._niceExtent = this._extent.slice(); this._intervalPrecision = _helper_js__WEBPACK_IMPORTED_MODULE_4__["getIntervalPrecision"](interval); }; /** * @param expandToNicedExtent Whether expand the ticks to niced extent. */ IntervalScale.prototype.getTicks = function (expandToNicedExtent) { var interval = this._interval; var extent = this._extent; var niceTickExtent = this._niceExtent; var intervalPrecision = this._intervalPrecision; var ticks = []; // If interval is 0, return []; if (!interval) { return ticks; } // Consider this case: using dataZoom toolbox, zoom and zoom. var safeLimit = 10000; if (extent[0] < niceTickExtent[0]) { if (expandToNicedExtent) { ticks.push({ value: roundNumber(niceTickExtent[0] - interval, intervalPrecision) }); } else { ticks.push({ value: extent[0] }); } } var tick = niceTickExtent[0]; while (tick <= niceTickExtent[1]) { ticks.push({ value: tick }); // Avoid rounding error tick = roundNumber(tick + interval, intervalPrecision); if (tick === ticks[ticks.length - 1].value) { // Consider out of safe float point, e.g., // -3711126.9907707 + 2e-10 === -3711126.9907707 break; } if (ticks.length > safeLimit) { return []; } } // Consider this case: the last item of ticks is smaller // than niceTickExtent[1] and niceTickExtent[1] === extent[1]. var lastNiceTick = ticks.length ? ticks[ticks.length - 1].value : niceTickExtent[1]; if (extent[1] > lastNiceTick) { if (expandToNicedExtent) { ticks.push({ value: roundNumber(lastNiceTick + interval, intervalPrecision) }); } else { ticks.push({ value: extent[1] }); } } return ticks; }; IntervalScale.prototype.getMinorTicks = function (splitNumber) { var ticks = this.getTicks(true); var minorTicks = []; var extent = this.getExtent(); for (var i = 1; i < ticks.length; i++) { var nextTick = ticks[i]; var prevTick = ticks[i - 1]; var count = 0; var minorTicksGroup = []; var interval = nextTick.value - prevTick.value; var minorInterval = interval / splitNumber; while (count < splitNumber - 1) { var minorTick = roundNumber(prevTick.value + (count + 1) * minorInterval); // For the first and last interval. The count may be less than splitNumber. if (minorTick > extent[0] && minorTick < extent[1]) { minorTicksGroup.push(minorTick); } count++; } minorTicks.push(minorTicksGroup); } return minorTicks; }; /** * @param opt.precision If 'auto', use nice presision. * @param opt.pad returns 1.50 but not 1.5 if precision is 2. */ IntervalScale.prototype.getLabel = function (data, opt) { if (data == null) { return ''; } var precision = opt && opt.precision; if (precision == null) { precision = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["getPrecision"](data.value) || 0; } else if (precision === 'auto') { // Should be more precise then tick. precision = this._intervalPrecision; } // (1) If `precision` is set, 12.005 should be display as '12.00500'. // (2) Use roundNumber (toFixed) to avoid scientific notation like '3.5e-7'. var dataNum = roundNumber(data.value, precision, true); return _util_format_js__WEBPACK_IMPORTED_MODULE_2__["addCommas"](dataNum); }; /** * @param splitNumber By default `5`. */ IntervalScale.prototype.calcNiceTicks = function (splitNumber, minInterval, maxInterval) { splitNumber = splitNumber || 5; var extent = this._extent; var span = extent[1] - extent[0]; if (!isFinite(span)) { return; } // User may set axis min 0 and data are all negative // FIXME If it needs to reverse ? if (span < 0) { span = -span; extent.reverse(); } var result = _helper_js__WEBPACK_IMPORTED_MODULE_4__["intervalScaleNiceTicks"](extent, splitNumber, minInterval, maxInterval); this._intervalPrecision = result.intervalPrecision; this._interval = result.interval; this._niceExtent = result.niceTickExtent; }; IntervalScale.prototype.calcNiceExtent = function (opt) { var extent = this._extent; // If extent start and end are same, expand them if (extent[0] === extent[1]) { if (extent[0] !== 0) { // Expand extent // Note that extents can be both negative. See #13154 var expandSize = Math.abs(extent[0]); // In the fowllowing case // Axis has been fixed max 100 // Plus data are all 100 and axis extent are [100, 100]. // Extend to the both side will cause expanded max is larger than fixed max. // So only expand to the smaller side. if (!opt.fixMax) { extent[1] += expandSize / 2; extent[0] -= expandSize / 2; } else { extent[0] -= expandSize / 2; } } else { extent[1] = 1; } } var span = extent[1] - extent[0]; // If there are no data and extent are [Infinity, -Infinity] if (!isFinite(span)) { extent[0] = 0; extent[1] = 1; } this.calcNiceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval); // let extent = this._extent; var interval = this._interval; if (!opt.fixMin) { extent[0] = roundNumber(Math.floor(extent[0] / interval) * interval); } if (!opt.fixMax) { extent[1] = roundNumber(Math.ceil(extent[1] / interval) * interval); } }; IntervalScale.prototype.setNiceExtent = function (min, max) { this._niceExtent = [min, max]; }; IntervalScale.type = 'interval'; return IntervalScale; }(_Scale_js__WEBPACK_IMPORTED_MODULE_3__["default"]); _Scale_js__WEBPACK_IMPORTED_MODULE_3__["default"].registerClass(IntervalScale); /* harmony default export */ __webpack_exports__["default"] = (IntervalScale); /***/ }), /***/ "./node_modules/echarts/lib/scale/Log.js": /*!***********************************************!*\ !*** ./node_modules/echarts/lib/scale/Log.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _Scale_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Scale.js */ "./node_modules/echarts/lib/scale/Scale.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/scale/helper.js"); /* harmony import */ var _Interval_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Interval.js */ "./node_modules/echarts/lib/scale/Interval.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Use some method of IntervalScale var scaleProto = _Scale_js__WEBPACK_IMPORTED_MODULE_2__["default"].prototype; // FIXME:TS refactor: not good to call it directly with `this`? var intervalScaleProto = _Interval_js__WEBPACK_IMPORTED_MODULE_5__["default"].prototype; var roundingErrorFix = _util_number_js__WEBPACK_IMPORTED_MODULE_3__["round"]; var mathFloor = Math.floor; var mathCeil = Math.ceil; var mathPow = Math.pow; var mathLog = Math.log; var LogScale = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LogScale, _super); function LogScale() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = 'log'; _this.base = 10; _this._originalScale = new _Interval_js__WEBPACK_IMPORTED_MODULE_5__["default"](); // FIXME:TS actually used by `IntervalScale` _this._interval = 0; return _this; } /** * @param Whether expand the ticks to niced extent. */ LogScale.prototype.getTicks = function (expandToNicedExtent) { var originalScale = this._originalScale; var extent = this._extent; var originalExtent = originalScale.getExtent(); var ticks = intervalScaleProto.getTicks.call(this, expandToNicedExtent); return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["map"](ticks, function (tick) { var val = tick.value; var powVal = _util_number_js__WEBPACK_IMPORTED_MODULE_3__["round"](mathPow(this.base, val)); // Fix #4158 powVal = val === extent[0] && this._fixMin ? fixRoundingError(powVal, originalExtent[0]) : powVal; powVal = val === extent[1] && this._fixMax ? fixRoundingError(powVal, originalExtent[1]) : powVal; return { value: powVal }; }, this); }; LogScale.prototype.setExtent = function (start, end) { var base = mathLog(this.base); // log(-Infinity) is NaN, so safe guard here start = mathLog(Math.max(0, start)) / base; end = mathLog(Math.max(0, end)) / base; intervalScaleProto.setExtent.call(this, start, end); }; /** * @return {number} end */ LogScale.prototype.getExtent = function () { var base = this.base; var extent = scaleProto.getExtent.call(this); extent[0] = mathPow(base, extent[0]); extent[1] = mathPow(base, extent[1]); // Fix #4158 var originalScale = this._originalScale; var originalExtent = originalScale.getExtent(); this._fixMin && (extent[0] = fixRoundingError(extent[0], originalExtent[0])); this._fixMax && (extent[1] = fixRoundingError(extent[1], originalExtent[1])); return extent; }; LogScale.prototype.unionExtent = function (extent) { this._originalScale.unionExtent(extent); var base = this.base; extent[0] = mathLog(extent[0]) / mathLog(base); extent[1] = mathLog(extent[1]) / mathLog(base); scaleProto.unionExtent.call(this, extent); }; LogScale.prototype.unionExtentFromData = function (data, dim) { // TODO // filter value that <= 0 this.unionExtent(data.getApproximateExtent(dim)); }; /** * Update interval and extent of intervals for nice ticks * @param approxTickNum default 10 Given approx tick number */ LogScale.prototype.calcNiceTicks = function (approxTickNum) { approxTickNum = approxTickNum || 10; var extent = this._extent; var span = extent[1] - extent[0]; if (span === Infinity || span <= 0) { return; } var interval = _util_number_js__WEBPACK_IMPORTED_MODULE_3__["quantity"](span); var err = approxTickNum / span * interval; // Filter ticks to get closer to the desired count. if (err <= 0.5) { interval *= 10; } // Interval should be integer while (!isNaN(interval) && Math.abs(interval) < 1 && Math.abs(interval) > 0) { interval *= 10; } var niceExtent = [_util_number_js__WEBPACK_IMPORTED_MODULE_3__["round"](mathCeil(extent[0] / interval) * interval), _util_number_js__WEBPACK_IMPORTED_MODULE_3__["round"](mathFloor(extent[1] / interval) * interval)]; this._interval = interval; this._niceExtent = niceExtent; }; LogScale.prototype.calcNiceExtent = function (opt) { intervalScaleProto.calcNiceExtent.call(this, opt); this._fixMin = opt.fixMin; this._fixMax = opt.fixMax; }; LogScale.prototype.parse = function (val) { return val; }; LogScale.prototype.contain = function (val) { val = mathLog(val) / mathLog(this.base); return _helper_js__WEBPACK_IMPORTED_MODULE_4__["contain"](val, this._extent); }; LogScale.prototype.normalize = function (val) { val = mathLog(val) / mathLog(this.base); return _helper_js__WEBPACK_IMPORTED_MODULE_4__["normalize"](val, this._extent); }; LogScale.prototype.scale = function (val) { val = _helper_js__WEBPACK_IMPORTED_MODULE_4__["scale"](val, this._extent); return mathPow(this.base, val); }; LogScale.type = 'log'; return LogScale; }(_Scale_js__WEBPACK_IMPORTED_MODULE_2__["default"]); var proto = LogScale.prototype; proto.getMinorTicks = intervalScaleProto.getMinorTicks; proto.getLabel = intervalScaleProto.getLabel; function fixRoundingError(val, originalVal) { return roundingErrorFix(val, _util_number_js__WEBPACK_IMPORTED_MODULE_3__["getPrecision"](originalVal)); } _Scale_js__WEBPACK_IMPORTED_MODULE_2__["default"].registerClass(LogScale); /* harmony default export */ __webpack_exports__["default"] = (LogScale); /***/ }), /***/ "./node_modules/echarts/lib/scale/Ordinal.js": /*!***************************************************!*\ !*** ./node_modules/echarts/lib/scale/Ordinal.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _Scale_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Scale.js */ "./node_modules/echarts/lib/scale/Scale.js"); /* harmony import */ var _data_OrdinalMeta_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../data/OrdinalMeta.js */ "./node_modules/echarts/lib/data/OrdinalMeta.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/scale/helper.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Linear continuous scale * http://en.wikipedia.org/wiki/Level_of_measurement */ // FIXME only one data var OrdinalScale = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(OrdinalScale, _super); function OrdinalScale(setting) { var _this = _super.call(this, setting) || this; _this.type = 'ordinal'; var ordinalMeta = _this.getSetting('ordinalMeta'); // Caution: Should not use instanceof, consider ec-extensions using // import approach to get OrdinalMeta class. if (!ordinalMeta) { ordinalMeta = new _data_OrdinalMeta_js__WEBPACK_IMPORTED_MODULE_2__["default"]({}); } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["isArray"])(ordinalMeta)) { ordinalMeta = new _data_OrdinalMeta_js__WEBPACK_IMPORTED_MODULE_2__["default"]({ categories: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["map"])(ordinalMeta, function (item) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["isObject"])(item) ? item.value : item; }) }); } _this._ordinalMeta = ordinalMeta; _this._extent = _this.getSetting('extent') || [0, ordinalMeta.categories.length - 1]; return _this; } OrdinalScale.prototype.parse = function (val) { // Caution: Math.round(null) will return `0` rather than `NaN` if (val == null) { return NaN; } return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_4__["isString"])(val) ? this._ordinalMeta.getOrdinal(val) // val might be float. : Math.round(val); }; OrdinalScale.prototype.contain = function (rank) { rank = this.parse(rank); return _helper_js__WEBPACK_IMPORTED_MODULE_3__["contain"](rank, this._extent) && this._ordinalMeta.categories[rank] != null; }; /** * Normalize given rank or name to linear [0, 1] * @param val raw ordinal number. * @return normalized value in [0, 1]. */ OrdinalScale.prototype.normalize = function (val) { val = this._getTickNumber(this.parse(val)); return _helper_js__WEBPACK_IMPORTED_MODULE_3__["normalize"](val, this._extent); }; /** * @param val normalized value in [0, 1]. * @return raw ordinal number. */ OrdinalScale.prototype.scale = function (val) { val = Math.round(_helper_js__WEBPACK_IMPORTED_MODULE_3__["scale"](val, this._extent)); return this.getRawOrdinalNumber(val); }; OrdinalScale.prototype.getTicks = function () { var ticks = []; var extent = this._extent; var rank = extent[0]; while (rank <= extent[1]) { ticks.push({ value: rank }); rank++; } return ticks; }; OrdinalScale.prototype.getMinorTicks = function (splitNumber) { // Not support. return; }; /** * @see `Ordinal['_ordinalNumbersByTick']` */ OrdinalScale.prototype.setSortInfo = function (info) { if (info == null) { this._ordinalNumbersByTick = this._ticksByOrdinalNumber = null; return; } var infoOrdinalNumbers = info.ordinalNumbers; var ordinalsByTick = this._ordinalNumbersByTick = []; var ticksByOrdinal = this._ticksByOrdinalNumber = []; // Unnecessary support negative tick in `realtimeSort`. var tickNum = 0; var allCategoryLen = this._ordinalMeta.categories.length; for (var len = Math.min(allCategoryLen, infoOrdinalNumbers.length); tickNum < len; ++tickNum) { var ordinalNumber = infoOrdinalNumbers[tickNum]; ordinalsByTick[tickNum] = ordinalNumber; ticksByOrdinal[ordinalNumber] = tickNum; } // Handle that `series.data` only covers part of the `axis.category.data`. var unusedOrdinal = 0; for (; tickNum < allCategoryLen; ++tickNum) { while (ticksByOrdinal[unusedOrdinal] != null) { unusedOrdinal++; } ; ordinalsByTick.push(unusedOrdinal); ticksByOrdinal[unusedOrdinal] = tickNum; } }; OrdinalScale.prototype._getTickNumber = function (ordinal) { var ticksByOrdinalNumber = this._ticksByOrdinalNumber; // also support ordinal out of range of `ordinalMeta.categories.length`, // where ordinal numbers are used as tick value directly. return ticksByOrdinalNumber && ordinal >= 0 && ordinal < ticksByOrdinalNumber.length ? ticksByOrdinalNumber[ordinal] : ordinal; }; /** * @usage * ```js * const ordinalNumber = ordinalScale.getRawOrdinalNumber(tickVal); * * // case0 * const rawOrdinalValue = axisModel.getCategories()[ordinalNumber]; * // case1 * const rawOrdinalValue = this._ordinalMeta.categories[ordinalNumber]; * // case2 * const coord = axis.dataToCoord(ordinalNumber); * ``` * * @param {OrdinalNumber} tickNumber index of display */ OrdinalScale.prototype.getRawOrdinalNumber = function (tickNumber) { var ordinalNumbersByTick = this._ordinalNumbersByTick; // tickNumber may be out of range, e.g., when axis max is larger than `ordinalMeta.categories.length`., // where ordinal numbers are used as tick value directly. return ordinalNumbersByTick && tickNumber >= 0 && tickNumber < ordinalNumbersByTick.length ? ordinalNumbersByTick[tickNumber] : tickNumber; }; /** * Get item on tick */ OrdinalScale.prototype.getLabel = function (tick) { if (!this.isBlank()) { var ordinalNumber = this.getRawOrdinalNumber(tick.value); var cateogry = this._ordinalMeta.categories[ordinalNumber]; // Note that if no data, ordinalMeta.categories is an empty array. // Return empty if it's not exist. return cateogry == null ? '' : cateogry + ''; } }; OrdinalScale.prototype.count = function () { return this._extent[1] - this._extent[0] + 1; }; OrdinalScale.prototype.unionExtentFromData = function (data, dim) { this.unionExtent(data.getApproximateExtent(dim)); }; /** * @override * If value is in extent range */ OrdinalScale.prototype.isInExtentRange = function (value) { value = this._getTickNumber(value); return this._extent[0] <= value && this._extent[1] >= value; }; OrdinalScale.prototype.getOrdinalMeta = function () { return this._ordinalMeta; }; OrdinalScale.prototype.calcNiceTicks = function () {}; OrdinalScale.prototype.calcNiceExtent = function () {}; OrdinalScale.type = 'ordinal'; return OrdinalScale; }(_Scale_js__WEBPACK_IMPORTED_MODULE_1__["default"]); _Scale_js__WEBPACK_IMPORTED_MODULE_1__["default"].registerClass(OrdinalScale); /* harmony default export */ __webpack_exports__["default"] = (OrdinalScale); /***/ }), /***/ "./node_modules/echarts/lib/scale/Scale.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/scale/Scale.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _util_clazz_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/clazz.js */ "./node_modules/echarts/lib/util/clazz.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var Scale = /** @class */function () { function Scale(setting) { this._setting = setting || {}; this._extent = [Infinity, -Infinity]; } Scale.prototype.getSetting = function (name) { return this._setting[name]; }; /** * Set extent from data */ Scale.prototype.unionExtent = function (other) { var extent = this._extent; other[0] < extent[0] && (extent[0] = other[0]); other[1] > extent[1] && (extent[1] = other[1]); // not setExtent because in log axis it may transformed to power // this.setExtent(extent[0], extent[1]); }; /** * Set extent from data */ Scale.prototype.unionExtentFromData = function (data, dim) { this.unionExtent(data.getApproximateExtent(dim)); }; /** * Get extent * * Extent is always in increase order. */ Scale.prototype.getExtent = function () { return this._extent.slice(); }; /** * Set extent */ Scale.prototype.setExtent = function (start, end) { var thisExtent = this._extent; if (!isNaN(start)) { thisExtent[0] = start; } if (!isNaN(end)) { thisExtent[1] = end; } }; /** * If value is in extent range */ Scale.prototype.isInExtentRange = function (value) { return this._extent[0] <= value && this._extent[1] >= value; }; /** * When axis extent depends on data and no data exists, * axis ticks should not be drawn, which is named 'blank'. */ Scale.prototype.isBlank = function () { return this._isBlank; }; /** * When axis extent depends on data and no data exists, * axis ticks should not be drawn, which is named 'blank'. */ Scale.prototype.setBlank = function (isBlank) { this._isBlank = isBlank; }; return Scale; }(); _util_clazz_js__WEBPACK_IMPORTED_MODULE_0__["enableClassManagement"](Scale); /* harmony default export */ __webpack_exports__["default"] = (Scale); /***/ }), /***/ "./node_modules/echarts/lib/scale/Time.js": /*!************************************************!*\ !*** ./node_modules/echarts/lib/scale/Time.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _util_time_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/time.js */ "./node_modules/echarts/lib/util/time.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/scale/helper.js"); /* harmony import */ var _Interval_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Interval.js */ "./node_modules/echarts/lib/scale/Interval.js"); /* harmony import */ var _Scale_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Scale.js */ "./node_modules/echarts/lib/scale/Scale.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * A third-party license is embedded for some of the code in this file: * The "scaleLevels" was originally copied from "d3.js" with some * modifications made for this project. * (See more details in the comment on the definition of "scaleLevels" below.) * The use of the source code of this file is also subject to the terms * and consitions of the license of "d3.js" (BSD-3Clause, see * ). */ // [About UTC and local time zone]: // In most cases, `number.parseDate` will treat input data string as local time // (except time zone is specified in time string). And `format.formateTime` returns // local time by default. option.useUTC is false by default. This design has // considered these common cases: // (1) Time that is persistent in server is in UTC, but it is needed to be displayed // in local time by default. // (2) By default, the input data string (e.g., '2011-01-02') should be displayed // as its original time, without any time difference. // FIXME 公用? var bisect = function (a, x, lo, hi) { while (lo < hi) { var mid = lo + hi >>> 1; if (a[mid][1] < x) { lo = mid + 1; } else { hi = mid; } } return lo; }; var TimeScale = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TimeScale, _super); function TimeScale(settings) { var _this = _super.call(this, settings) || this; _this.type = 'time'; return _this; } /** * Get label is mainly for other components like dataZoom, tooltip. */ TimeScale.prototype.getLabel = function (tick) { var useUTC = this.getSetting('useUTC'); return Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["format"])(tick.value, _util_time_js__WEBPACK_IMPORTED_MODULE_2__["fullLeveledFormatter"][Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["getDefaultFormatPrecisionOfInterval"])(Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["getPrimaryTimeUnit"])(this._minLevelUnit))] || _util_time_js__WEBPACK_IMPORTED_MODULE_2__["fullLeveledFormatter"].second, useUTC, this.getSetting('locale')); }; TimeScale.prototype.getFormattedLabel = function (tick, idx, labelFormatter) { var isUTC = this.getSetting('useUTC'); var lang = this.getSetting('locale'); return Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["leveledFormat"])(tick, idx, labelFormatter, lang, isUTC); }; /** * @override */ TimeScale.prototype.getTicks = function () { var interval = this._interval; var extent = this._extent; var ticks = []; // If interval is 0, return []; if (!interval) { return ticks; } ticks.push({ value: extent[0], level: 0 }); var useUTC = this.getSetting('useUTC'); var innerTicks = getIntervalTicks(this._minLevelUnit, this._approxInterval, useUTC, extent); ticks = ticks.concat(innerTicks); ticks.push({ value: extent[1], level: 0 }); return ticks; }; TimeScale.prototype.calcNiceExtent = function (opt) { var extent = this._extent; // If extent start and end are same, expand them if (extent[0] === extent[1]) { // Expand extent extent[0] -= _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_DAY"]; extent[1] += _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_DAY"]; } // If there are no data and extent are [Infinity, -Infinity] if (extent[1] === -Infinity && extent[0] === Infinity) { var d = new Date(); extent[1] = +new Date(d.getFullYear(), d.getMonth(), d.getDate()); extent[0] = extent[1] - _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_DAY"]; } this.calcNiceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval); }; TimeScale.prototype.calcNiceTicks = function (approxTickNum, minInterval, maxInterval) { approxTickNum = approxTickNum || 10; var extent = this._extent; var span = extent[1] - extent[0]; this._approxInterval = span / approxTickNum; if (minInterval != null && this._approxInterval < minInterval) { this._approxInterval = minInterval; } if (maxInterval != null && this._approxInterval > maxInterval) { this._approxInterval = maxInterval; } var scaleIntervalsLen = scaleIntervals.length; var idx = Math.min(bisect(scaleIntervals, this._approxInterval, 0, scaleIntervalsLen), scaleIntervalsLen - 1); // Interval that can be used to calculate ticks this._interval = scaleIntervals[idx][1]; // Min level used when picking ticks from top down. // We check one more level to avoid the ticks are to sparse in some case. this._minLevelUnit = scaleIntervals[Math.max(idx - 1, 0)][0]; }; TimeScale.prototype.parse = function (val) { // val might be float. return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["isNumber"])(val) ? val : +_util_number_js__WEBPACK_IMPORTED_MODULE_1__["parseDate"](val); }; TimeScale.prototype.contain = function (val) { return _helper_js__WEBPACK_IMPORTED_MODULE_3__["contain"](this.parse(val), this._extent); }; TimeScale.prototype.normalize = function (val) { return _helper_js__WEBPACK_IMPORTED_MODULE_3__["normalize"](this.parse(val), this._extent); }; TimeScale.prototype.scale = function (val) { return _helper_js__WEBPACK_IMPORTED_MODULE_3__["scale"](val, this._extent); }; TimeScale.type = 'time'; return TimeScale; }(_Interval_js__WEBPACK_IMPORTED_MODULE_4__["default"]); /** * This implementation was originally copied from "d3.js" * * with some modifications made for this program. * See the license statement at the head of this file. */ var scaleIntervals = [ // Format interval ['second', _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_SECOND"]], ['minute', _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_MINUTE"]], ['hour', _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_HOUR"]], ['quarter-day', _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_HOUR"] * 6], ['half-day', _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_HOUR"] * 12], ['day', _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_DAY"] * 1.2], ['half-week', _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_DAY"] * 3.5], ['week', _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_DAY"] * 7], ['month', _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_DAY"] * 31], ['quarter', _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_DAY"] * 95], ['half-year', _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_YEAR"] / 2], ['year', _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_YEAR"]] // 1Y ]; function isUnitValueSame(unit, valueA, valueB, isUTC) { var dateA = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["parseDate"](valueA); var dateB = _util_number_js__WEBPACK_IMPORTED_MODULE_1__["parseDate"](valueB); var isSame = function (unit) { return Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["getUnitValue"])(dateA, unit, isUTC) === Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["getUnitValue"])(dateB, unit, isUTC); }; var isSameYear = function () { return isSame('year'); }; // const isSameHalfYear = () => isSameYear() && isSame('half-year'); // const isSameQuater = () => isSameYear() && isSame('quarter'); var isSameMonth = function () { return isSameYear() && isSame('month'); }; var isSameDay = function () { return isSameMonth() && isSame('day'); }; // const isSameHalfDay = () => isSameDay() && isSame('half-day'); var isSameHour = function () { return isSameDay() && isSame('hour'); }; var isSameMinute = function () { return isSameHour() && isSame('minute'); }; var isSameSecond = function () { return isSameMinute() && isSame('second'); }; var isSameMilliSecond = function () { return isSameSecond() && isSame('millisecond'); }; switch (unit) { case 'year': return isSameYear(); case 'month': return isSameMonth(); case 'day': return isSameDay(); case 'hour': return isSameHour(); case 'minute': return isSameMinute(); case 'second': return isSameSecond(); case 'millisecond': return isSameMilliSecond(); } } // const primaryUnitGetters = { // year: fullYearGetterName(), // month: monthGetterName(), // day: dateGetterName(), // hour: hoursGetterName(), // minute: minutesGetterName(), // second: secondsGetterName(), // millisecond: millisecondsGetterName() // }; // const primaryUnitUTCGetters = { // year: fullYearGetterName(true), // month: monthGetterName(true), // day: dateGetterName(true), // hour: hoursGetterName(true), // minute: minutesGetterName(true), // second: secondsGetterName(true), // millisecond: millisecondsGetterName(true) // }; // function moveTick(date: Date, unitName: TimeUnit, step: number, isUTC: boolean) { // step = step || 1; // switch (getPrimaryTimeUnit(unitName)) { // case 'year': // date[fullYearSetterName(isUTC)](date[fullYearGetterName(isUTC)]() + step); // break; // case 'month': // date[monthSetterName(isUTC)](date[monthGetterName(isUTC)]() + step); // break; // case 'day': // date[dateSetterName(isUTC)](date[dateGetterName(isUTC)]() + step); // break; // case 'hour': // date[hoursSetterName(isUTC)](date[hoursGetterName(isUTC)]() + step); // break; // case 'minute': // date[minutesSetterName(isUTC)](date[minutesGetterName(isUTC)]() + step); // break; // case 'second': // date[secondsSetterName(isUTC)](date[secondsGetterName(isUTC)]() + step); // break; // case 'millisecond': // date[millisecondsSetterName(isUTC)](date[millisecondsGetterName(isUTC)]() + step); // break; // } // return date.getTime(); // } // const DATE_INTERVALS = [[8, 7.5], [4, 3.5], [2, 1.5]]; // const MONTH_INTERVALS = [[6, 5.5], [3, 2.5], [2, 1.5]]; // const MINUTES_SECONDS_INTERVALS = [[30, 30], [20, 20], [15, 15], [10, 10], [5, 5], [2, 2]]; function getDateInterval(approxInterval, daysInMonth) { approxInterval /= _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_DAY"]; return approxInterval > 16 ? 16 // Math.floor(daysInMonth / 2) + 1 // In this case we only want one tick between two months. : approxInterval > 7.5 ? 7 // TODO week 7 or day 8? : approxInterval > 3.5 ? 4 : approxInterval > 1.5 ? 2 : 1; } function getMonthInterval(approxInterval) { var APPROX_ONE_MONTH = 30 * _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_DAY"]; approxInterval /= APPROX_ONE_MONTH; return approxInterval > 6 ? 6 : approxInterval > 3 ? 3 : approxInterval > 2 ? 2 : 1; } function getHourInterval(approxInterval) { approxInterval /= _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_HOUR"]; return approxInterval > 12 ? 12 : approxInterval > 6 ? 6 : approxInterval > 3.5 ? 4 : approxInterval > 2 ? 2 : 1; } function getMinutesAndSecondsInterval(approxInterval, isMinutes) { approxInterval /= isMinutes ? _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_MINUTE"] : _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_SECOND"]; return approxInterval > 30 ? 30 : approxInterval > 20 ? 20 : approxInterval > 15 ? 15 : approxInterval > 10 ? 10 : approxInterval > 5 ? 5 : approxInterval > 2 ? 2 : 1; } function getMillisecondsInterval(approxInterval) { return _util_number_js__WEBPACK_IMPORTED_MODULE_1__["nice"](approxInterval, true); } function getFirstTimestampOfUnit(date, unitName, isUTC) { var outDate = new Date(date); switch (Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["getPrimaryTimeUnit"])(unitName)) { case 'year': case 'month': outDate[Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["monthSetterName"])(isUTC)](0); case 'day': outDate[Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["dateSetterName"])(isUTC)](1); case 'hour': outDate[Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["hoursSetterName"])(isUTC)](0); case 'minute': outDate[Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["minutesSetterName"])(isUTC)](0); case 'second': outDate[Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["secondsSetterName"])(isUTC)](0); outDate[Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["millisecondsSetterName"])(isUTC)](0); } return outDate.getTime(); } function getIntervalTicks(bottomUnitName, approxInterval, isUTC, extent) { var safeLimit = 10000; var unitNames = _util_time_js__WEBPACK_IMPORTED_MODULE_2__["timeUnits"]; var iter = 0; function addTicksInSpan(interval, minTimestamp, maxTimestamp, getMethodName, setMethodName, isDate, out) { var date = new Date(minTimestamp); var dateTime = minTimestamp; var d = date[getMethodName](); // if (isDate) { // d -= 1; // Starts with 0; PENDING // } while (dateTime < maxTimestamp && dateTime <= extent[1]) { out.push({ value: dateTime }); d += interval; date[setMethodName](d); dateTime = date.getTime(); } // This extra tick is for calcuating ticks of next level. Will not been added to the final result out.push({ value: dateTime, notAdd: true }); } function addLevelTicks(unitName, lastLevelTicks, levelTicks) { var newAddedTicks = []; var isFirstLevel = !lastLevelTicks.length; if (isUnitValueSame(Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["getPrimaryTimeUnit"])(unitName), extent[0], extent[1], isUTC)) { return; } if (isFirstLevel) { lastLevelTicks = [{ // TODO Optimize. Not include so may ticks. value: getFirstTimestampOfUnit(new Date(extent[0]), unitName, isUTC) }, { value: extent[1] }]; } for (var i = 0; i < lastLevelTicks.length - 1; i++) { var startTick = lastLevelTicks[i].value; var endTick = lastLevelTicks[i + 1].value; if (startTick === endTick) { continue; } var interval = void 0; var getterName = void 0; var setterName = void 0; var isDate = false; switch (unitName) { case 'year': interval = Math.max(1, Math.round(approxInterval / _util_time_js__WEBPACK_IMPORTED_MODULE_2__["ONE_DAY"] / 365)); getterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["fullYearGetterName"])(isUTC); setterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["fullYearSetterName"])(isUTC); break; case 'half-year': case 'quarter': case 'month': interval = getMonthInterval(approxInterval); getterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["monthGetterName"])(isUTC); setterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["monthSetterName"])(isUTC); break; case 'week': // PENDING If week is added. Ignore day. case 'half-week': case 'day': interval = getDateInterval(approxInterval, 31); // Use 32 days and let interval been 16 getterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["dateGetterName"])(isUTC); setterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["dateSetterName"])(isUTC); isDate = true; break; case 'half-day': case 'quarter-day': case 'hour': interval = getHourInterval(approxInterval); getterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["hoursGetterName"])(isUTC); setterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["hoursSetterName"])(isUTC); break; case 'minute': interval = getMinutesAndSecondsInterval(approxInterval, true); getterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["minutesGetterName"])(isUTC); setterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["minutesSetterName"])(isUTC); break; case 'second': interval = getMinutesAndSecondsInterval(approxInterval, false); getterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["secondsGetterName"])(isUTC); setterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["secondsSetterName"])(isUTC); break; case 'millisecond': interval = getMillisecondsInterval(approxInterval); getterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["millisecondsGetterName"])(isUTC); setterName = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["millisecondsSetterName"])(isUTC); break; } addTicksInSpan(interval, startTick, endTick, getterName, setterName, isDate, newAddedTicks); if (unitName === 'year' && levelTicks.length > 1 && i === 0) { // Add nearest years to the left extent. levelTicks.unshift({ value: levelTicks[0].value - interval }); } } for (var i = 0; i < newAddedTicks.length; i++) { levelTicks.push(newAddedTicks[i]); } // newAddedTicks.length && console.log(unitName, newAddedTicks); return newAddedTicks; } var levelsTicks = []; var currentLevelTicks = []; var tickCount = 0; var lastLevelTickCount = 0; for (var i = 0; i < unitNames.length && iter++ < safeLimit; ++i) { var primaryTimeUnit = Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["getPrimaryTimeUnit"])(unitNames[i]); if (!Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["isPrimaryTimeUnit"])(unitNames[i])) { // TODO continue; } addLevelTicks(unitNames[i], levelsTicks[levelsTicks.length - 1] || [], currentLevelTicks); var nextPrimaryTimeUnit = unitNames[i + 1] ? Object(_util_time_js__WEBPACK_IMPORTED_MODULE_2__["getPrimaryTimeUnit"])(unitNames[i + 1]) : null; if (primaryTimeUnit !== nextPrimaryTimeUnit) { if (currentLevelTicks.length) { lastLevelTickCount = tickCount; // Remove the duplicate so the tick count can be precisely. currentLevelTicks.sort(function (a, b) { return a.value - b.value; }); var levelTicksRemoveDuplicated = []; for (var i_1 = 0; i_1 < currentLevelTicks.length; ++i_1) { var tickValue = currentLevelTicks[i_1].value; if (i_1 === 0 || currentLevelTicks[i_1 - 1].value !== tickValue) { levelTicksRemoveDuplicated.push(currentLevelTicks[i_1]); if (tickValue >= extent[0] && tickValue <= extent[1]) { tickCount++; } } } var targetTickNum = (extent[1] - extent[0]) / approxInterval; // Added too much in this level and not too less in last level if (tickCount > targetTickNum * 1.5 && lastLevelTickCount > targetTickNum / 1.5) { break; } // Only treat primary time unit as one level. levelsTicks.push(levelTicksRemoveDuplicated); if (tickCount > targetTickNum || bottomUnitName === unitNames[i]) { break; } } // Reset if next unitName is primary currentLevelTicks = []; } } if (true) { if (iter >= safeLimit) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_6__["warn"])('Exceed safe limit.'); } } var levelsTicksInExtent = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["filter"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["map"])(levelsTicks, function (levelTicks) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_7__["filter"])(levelTicks, function (tick) { return tick.value >= extent[0] && tick.value <= extent[1] && !tick.notAdd; }); }), function (levelTicks) { return levelTicks.length > 0; }); var ticks = []; var maxLevel = levelsTicksInExtent.length - 1; for (var i = 0; i < levelsTicksInExtent.length; ++i) { var levelTicks = levelsTicksInExtent[i]; for (var k = 0; k < levelTicks.length; ++k) { ticks.push({ value: levelTicks[k].value, level: maxLevel - i }); } } ticks.sort(function (a, b) { return a.value - b.value; }); // Remove duplicates var result = []; for (var i = 0; i < ticks.length; ++i) { if (i === 0 || ticks[i].value !== ticks[i - 1].value) { result.push(ticks[i]); } } return result; } _Scale_js__WEBPACK_IMPORTED_MODULE_5__["default"].registerClass(TimeScale); /* harmony default export */ __webpack_exports__["default"] = (TimeScale); /***/ }), /***/ "./node_modules/echarts/lib/scale/helper.js": /*!**************************************************!*\ !*** ./node_modules/echarts/lib/scale/helper.js ***! \**************************************************/ /*! exports provided: isValueNice, isIntervalOrLogScale, intervalScaleNiceTicks, increaseInterval, getIntervalPrecision, fixExtent, contain, normalize, scale */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValueNice", function() { return isValueNice; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIntervalOrLogScale", function() { return isIntervalOrLogScale; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "intervalScaleNiceTicks", function() { return intervalScaleNiceTicks; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "increaseInterval", function() { return increaseInterval; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getIntervalPrecision", function() { return getIntervalPrecision; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fixExtent", function() { return fixExtent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "contain", function() { return contain; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalize", function() { return normalize; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scale", function() { return scale; }); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function isValueNice(val) { var exp10 = Math.pow(10, Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["quantityExponent"])(Math.abs(val))); var f = Math.abs(val / exp10); return f === 0 || f === 1 || f === 2 || f === 3 || f === 5; } function isIntervalOrLogScale(scale) { return scale.type === 'interval' || scale.type === 'log'; } /** * @param extent Both extent[0] and extent[1] should be valid number. * Should be extent[0] < extent[1]. * @param splitNumber splitNumber should be >= 1. */ function intervalScaleNiceTicks(extent, splitNumber, minInterval, maxInterval) { var result = {}; var span = extent[1] - extent[0]; var interval = result.interval = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["nice"])(span / splitNumber, true); if (minInterval != null && interval < minInterval) { interval = result.interval = minInterval; } if (maxInterval != null && interval > maxInterval) { interval = result.interval = maxInterval; } // Tow more digital for tick. var precision = result.intervalPrecision = getIntervalPrecision(interval); // Niced extent inside original extent var niceTickExtent = result.niceTickExtent = [Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["round"])(Math.ceil(extent[0] / interval) * interval, precision), Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["round"])(Math.floor(extent[1] / interval) * interval, precision)]; fixExtent(niceTickExtent, extent); return result; } function increaseInterval(interval) { var exp10 = Math.pow(10, Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["quantityExponent"])(interval)); // Increase interval var f = interval / exp10; if (!f) { f = 1; } else if (f === 2) { f = 3; } else if (f === 3) { f = 5; } else { // f is 1 or 5 f *= 2; } return Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["round"])(f * exp10); } /** * @return interval precision */ function getIntervalPrecision(interval) { // Tow more digital for tick. return Object(_util_number_js__WEBPACK_IMPORTED_MODULE_0__["getPrecision"])(interval) + 2; } function clamp(niceTickExtent, idx, extent) { niceTickExtent[idx] = Math.max(Math.min(niceTickExtent[idx], extent[1]), extent[0]); } // In some cases (e.g., splitNumber is 1), niceTickExtent may be out of extent. function fixExtent(niceTickExtent, extent) { !isFinite(niceTickExtent[0]) && (niceTickExtent[0] = extent[0]); !isFinite(niceTickExtent[1]) && (niceTickExtent[1] = extent[1]); clamp(niceTickExtent, 0, extent); clamp(niceTickExtent, 1, extent); if (niceTickExtent[0] > niceTickExtent[1]) { niceTickExtent[0] = niceTickExtent[1]; } } function contain(val, extent) { return val >= extent[0] && val <= extent[1]; } function normalize(val, extent) { if (extent[1] === extent[0]) { return 0.5; } return (val - extent[0]) / (extent[1] - extent[0]); } function scale(val, extent) { return val * (extent[1] - extent[0]) + extent[0]; } /***/ }), /***/ "./node_modules/echarts/lib/theme/dark.js": /*!************************************************!*\ !*** ./node_modules/echarts/lib/theme/dark.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var contrastColor = '#B9B8CE'; var backgroundColor = '#100C2A'; var axisCommon = function () { return { axisLine: { lineStyle: { color: contrastColor } }, splitLine: { lineStyle: { color: '#484753' } }, splitArea: { areaStyle: { color: ['rgba(255,255,255,0.02)', 'rgba(255,255,255,0.05)'] } }, minorSplitLine: { lineStyle: { color: '#20203B' } } }; }; var colorPalette = ['#4992ff', '#7cffb2', '#fddd60', '#ff6e76', '#58d9f9', '#05c091', '#ff8a45', '#8d48e3', '#dd79ff']; var theme = { darkMode: true, color: colorPalette, backgroundColor: backgroundColor, axisPointer: { lineStyle: { color: '#817f91' }, crossStyle: { color: '#817f91' }, label: { // TODO Contrast of label backgorundColor color: '#fff' } }, legend: { textStyle: { color: contrastColor }, pageTextStyle: { color: contrastColor } }, textStyle: { color: contrastColor }, title: { textStyle: { color: '#EEF1FA' }, subtextStyle: { color: '#B9B8CE' } }, toolbox: { iconStyle: { borderColor: contrastColor } }, dataZoom: { borderColor: '#71708A', textStyle: { color: contrastColor }, brushStyle: { color: 'rgba(135,163,206,0.3)' }, handleStyle: { color: '#353450', borderColor: '#C5CBE3' }, moveHandleStyle: { color: '#B0B6C3', opacity: 0.3 }, fillerColor: 'rgba(135,163,206,0.2)', emphasis: { handleStyle: { borderColor: '#91B7F2', color: '#4D587D' }, moveHandleStyle: { color: '#636D9A', opacity: 0.7 } }, dataBackground: { lineStyle: { color: '#71708A', width: 1 }, areaStyle: { color: '#71708A' } }, selectedDataBackground: { lineStyle: { color: '#87A3CE' }, areaStyle: { color: '#87A3CE' } } }, visualMap: { textStyle: { color: contrastColor } }, timeline: { lineStyle: { color: contrastColor }, label: { color: contrastColor }, controlStyle: { color: contrastColor, borderColor: contrastColor } }, calendar: { itemStyle: { color: backgroundColor }, dayLabel: { color: contrastColor }, monthLabel: { color: contrastColor }, yearLabel: { color: contrastColor } }, timeAxis: axisCommon(), logAxis: axisCommon(), valueAxis: axisCommon(), categoryAxis: axisCommon(), line: { symbol: 'circle' }, graph: { color: colorPalette }, gauge: { title: { color: contrastColor }, axisLine: { lineStyle: { color: [[1, 'rgba(207,212,219,0.2)']] } }, axisLabel: { color: contrastColor }, detail: { color: '#EEF1FA' } }, candlestick: { itemStyle: { color: '#f64e56', color0: '#54ea92', borderColor: '#f64e56', borderColor0: '#54ea92' // borderColor: '#ca2824', // borderColor0: '#09a443' } } }; theme.categoryAxis.splitLine.show = false; /* harmony default export */ __webpack_exports__["default"] = (theme); /***/ }), /***/ "./node_modules/echarts/lib/theme/light.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/theme/light.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var colorAll = ['#37A2DA', '#32C5E9', '#67E0E3', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#E062AE', '#E690D1', '#e7bcf3', '#9d96f5', '#8378EA', '#96BFFF']; /* harmony default export */ __webpack_exports__["default"] = ({ color: colorAll, colorLayer: [['#37A2DA', '#ffd85c', '#fd7b5f'], ['#37A2DA', '#67E0E3', '#FFDB5C', '#ff9f7f', '#E062AE', '#9d96f5'], ['#37A2DA', '#32C5E9', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#e7bcf3', '#8378EA', '#96BFFF'], colorAll] }); /***/ }), /***/ "./node_modules/echarts/lib/util/ECEventProcessor.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/util/ECEventProcessor.js ***! \***********************************************************/ /*! exports provided: ECEventProcessor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ECEventProcessor", function() { return ECEventProcessor; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _clazz_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./clazz.js */ "./node_modules/echarts/lib/util/clazz.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Usage of query: * `chart.on('click', query, handler);` * The `query` can be: * + The component type query string, only `mainType` or `mainType.subType`, * like: 'xAxis', 'series', 'xAxis.category' or 'series.line'. * + The component query object, like: * `{seriesIndex: 2}`, `{seriesName: 'xx'}`, `{seriesId: 'some'}`, * `{xAxisIndex: 2}`, `{xAxisName: 'xx'}`, `{xAxisId: 'some'}`. * + The data query object, like: * `{dataIndex: 123}`, `{dataType: 'link'}`, `{name: 'some'}`. * + The other query object (cmponent customized query), like: * `{element: 'some'}` (only available in custom series). * * Caveat: If a prop in the `query` object is `null/undefined`, it is the * same as there is no such prop in the `query` object. */ var ECEventProcessor = /** @class */function () { function ECEventProcessor() {} ECEventProcessor.prototype.normalizeQuery = function (query) { var cptQuery = {}; var dataQuery = {}; var otherQuery = {}; // `query` is `mainType` or `mainType.subType` of component. if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](query)) { var condCptType = Object(_clazz_js__WEBPACK_IMPORTED_MODULE_1__["parseClassType"])(query); // `.main` and `.sub` may be ''. cptQuery.mainType = condCptType.main || null; cptQuery.subType = condCptType.sub || null; } // `query` is an object, convert to {mainType, index, name, id}. else { // `xxxIndex`, `xxxName`, `xxxId`, `name`, `dataIndex`, `dataType` is reserved, // can not be used in `compomentModel.filterForExposedEvent`. var suffixes_1 = ['Index', 'Name', 'Id']; var dataKeys_1 = { name: 1, dataIndex: 1, dataType: 1 }; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](query, function (val, key) { var reserved = false; for (var i = 0; i < suffixes_1.length; i++) { var propSuffix = suffixes_1[i]; var suffixPos = key.lastIndexOf(propSuffix); if (suffixPos > 0 && suffixPos === key.length - propSuffix.length) { var mainType = key.slice(0, suffixPos); // Consider `dataIndex`. if (mainType !== 'data') { cptQuery.mainType = mainType; cptQuery[propSuffix.toLowerCase()] = val; reserved = true; } } } if (dataKeys_1.hasOwnProperty(key)) { dataQuery[key] = val; reserved = true; } if (!reserved) { otherQuery[key] = val; } }); } return { cptQuery: cptQuery, dataQuery: dataQuery, otherQuery: otherQuery }; }; ECEventProcessor.prototype.filter = function (eventType, query) { // They should be assigned before each trigger call. var eventInfo = this.eventInfo; if (!eventInfo) { return true; } var targetEl = eventInfo.targetEl; var packedEvent = eventInfo.packedEvent; var model = eventInfo.model; var view = eventInfo.view; // For event like 'globalout'. if (!model || !view) { return true; } var cptQuery = query.cptQuery; var dataQuery = query.dataQuery; return check(cptQuery, model, 'mainType') && check(cptQuery, model, 'subType') && check(cptQuery, model, 'index', 'componentIndex') && check(cptQuery, model, 'name') && check(cptQuery, model, 'id') && check(dataQuery, packedEvent, 'name') && check(dataQuery, packedEvent, 'dataIndex') && check(dataQuery, packedEvent, 'dataType') && (!view.filterForExposedEvent || view.filterForExposedEvent(eventType, query.otherQuery, targetEl, packedEvent)); function check(query, host, prop, propOnHost) { return query[prop] == null || host[propOnHost || prop] === query[prop]; } }; ECEventProcessor.prototype.afterTrigger = function () { // Make sure the eventInfo won't be used in next trigger. this.eventInfo = null; }; return ECEventProcessor; }(); ; /***/ }), /***/ "./node_modules/echarts/lib/util/animation.js": /*!****************************************************!*\ !*** ./node_modules/echarts/lib/util/animation.js ***! \****************************************************/ /*! exports provided: createWrap */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createWrap", function() { return createWrap; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Animate multiple elements with a single done-callback. * * @example * animation * .createWrap() * .add(el1, {x: 10, y: 10}) * .add(el2, {shape: {width: 500}, style: {fill: 'red'}}, 400) * .done(function () { // done }) * .start('cubicOut'); */ var AnimationWrap = /** @class */function () { function AnimationWrap() { this._storage = []; this._elExistsMap = {}; } /** * Caution: a el can only be added once, otherwise 'done' * might not be called. This method checks this (by el.id), * suppresses adding and returns false when existing el found. * * @return Whether adding succeeded. */ AnimationWrap.prototype.add = function (el, target, duration, delay, easing) { if (this._elExistsMap[el.id]) { return false; } this._elExistsMap[el.id] = true; this._storage.push({ el: el, target: target, duration: duration, delay: delay, easing: easing }); return true; }; /** * Only execute when animation done/aborted. */ AnimationWrap.prototype.finished = function (callback) { this._finishedCallback = callback; return this; }; /** * Will stop exist animation firstly. */ AnimationWrap.prototype.start = function () { var _this = this; var count = this._storage.length; var checkTerminate = function () { count--; if (count <= 0) { // Guard. _this._storage.length = 0; _this._elExistsMap = {}; _this._finishedCallback && _this._finishedCallback(); } }; for (var i = 0, len = this._storage.length; i < len; i++) { var item = this._storage[i]; item.el.animateTo(item.target, { duration: item.duration, delay: item.delay, easing: item.easing, setToFinal: true, done: checkTerminate, aborted: checkTerminate }); } return this; }; return AnimationWrap; }(); function createWrap() { return new AnimationWrap(); } /***/ }), /***/ "./node_modules/echarts/lib/util/clazz.js": /*!************************************************!*\ !*** ./node_modules/echarts/lib/util/clazz.js ***! \************************************************/ /*! exports provided: parseClassType, isExtendedClass, enableClassExtend, mountExtend, enableClassCheck, enableClassManagement */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseClassType", function() { return parseClassType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isExtendedClass", function() { return isExtendedClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableClassExtend", function() { return enableClassExtend; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mountExtend", function() { return mountExtend; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableClassCheck", function() { return enableClassCheck; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableClassManagement", function() { return enableClassManagement; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var TYPE_DELIMITER = '.'; var IS_CONTAINER = '___EC__COMPONENT__CONTAINER___'; var IS_EXTENDED_CLASS = '___EC__EXTENDED_CLASS___'; /** * Notice, parseClassType('') should returns {main: '', sub: ''} * @public */ function parseClassType(componentType) { var ret = { main: '', sub: '' }; if (componentType) { var typeArr = componentType.split(TYPE_DELIMITER); ret.main = typeArr[0] || ''; ret.sub = typeArr[1] || ''; } return ret; } /** * @public */ function checkClassType(componentType) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(componentType), 'componentType "' + componentType + '" illegal'); } function isExtendedClass(clz) { return !!(clz && clz[IS_EXTENDED_CLASS]); } /** * Implements `ExtendableConstructor` for `rootClz`. * * @usage * ```ts * class Xxx {} * type XxxConstructor = typeof Xxx & ExtendableConstructor * enableClassExtend(Xxx as XxxConstructor); * ``` */ function enableClassExtend(rootClz, mandatoryMethods) { rootClz.$constructor = rootClz; // FIXME: not necessary? rootClz.extend = function (proto) { if (true) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](mandatoryMethods, function (method) { if (!proto[method]) { console.warn('Method `' + method + '` should be implemented' + (proto.type ? ' in ' + proto.type : '') + '.'); } }); } var superClass = this; var ExtendedClass; if (isESClass(superClass)) { ExtendedClass = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(class_1, _super); function class_1() { return _super.apply(this, arguments) || this; } return class_1; }(superClass); } else { // For backward compat, we both support ts class inheritance and this // "extend" approach. // The constructor should keep the same behavior as ts class inheritance: // If this constructor/$constructor is not declared, auto invoke the super // constructor. // If this constructor/$constructor is declared, it is responsible for // calling the super constructor. ExtendedClass = function () { (proto.$constructor || superClass).apply(this, arguments); }; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["inherits"](ExtendedClass, this); } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["extend"](ExtendedClass.prototype, proto); ExtendedClass[IS_EXTENDED_CLASS] = true; ExtendedClass.extend = this.extend; ExtendedClass.superCall = superCall; ExtendedClass.superApply = superApply; ExtendedClass.superClass = superClass; return ExtendedClass; }; } function isESClass(fn) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["isFunction"](fn) && /^class\s/.test(Function.prototype.toString.call(fn)); } /** * A work around to both support ts extend and this extend mechanism. * on sub-class. * @usage * ```ts * class Component { ... } * classUtil.enableClassExtend(Component); * classUtil.enableClassManagement(Component, {registerWhenExtend: true}); * * class Series extends Component { ... } * // Without calling `markExtend`, `registerWhenExtend` will not work. * Component.markExtend(Series); * ``` */ function mountExtend(SubClz, SupperClz) { SubClz.extend = SupperClz.extend; } // A random offset. var classBase = Math.round(Math.random() * 10); /** * Implements `CheckableConstructor` for `target`. * Can not use instanceof, consider different scope by * cross domain or es module import in ec extensions. * Mount a method "isInstance()" to Clz. * * @usage * ```ts * class Xxx {} * type XxxConstructor = typeof Xxx & CheckableConstructor; * enableClassCheck(Xxx as XxxConstructor) * ``` */ function enableClassCheck(target) { var classAttr = ['__\0is_clz', classBase++].join('_'); target.prototype[classAttr] = true; if (true) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["assert"](!target.isInstance, 'The method "is" can not be defined.'); } target.isInstance = function (obj) { return !!(obj && obj[classAttr]); }; } // superCall should have class info, which can not be fetched from 'this'. // Consider this case: // class A has method f, // class B inherits class A, overrides method f, f call superApply('f'), // class C inherits class B, does not override method f, // then when method of class C is called, dead loop occurred. function superCall(context, methodName) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } return this.superClass.prototype[methodName].apply(context, args); } function superApply(context, methodName, args) { return this.superClass.prototype[methodName].apply(context, args); } /** * Implements `ClassManager` for `target` * * @usage * ```ts * class Xxx {} * type XxxConstructor = typeof Xxx & ClassManager * enableClassManagement(Xxx as XxxConstructor); * ``` */ function enableClassManagement(target) { /** * Component model classes * key: componentType, * value: * componentClass, when componentType is 'a' * or Object., when componentType is 'a.b' */ var storage = {}; target.registerClass = function (clz) { // `type` should not be a "instance member". // If using TS class, should better declared as `static type = 'series.pie'`. // otherwise users have to mount `type` on prototype manually. // For backward compat and enable instance visit type via `this.type`, // we still support fetch `type` from prototype. var componentFullType = clz.type || clz.prototype.type; if (componentFullType) { checkClassType(componentFullType); // If only static type declared, we assign it to prototype mandatorily. clz.prototype.type = componentFullType; var componentTypeInfo = parseClassType(componentFullType); if (!componentTypeInfo.sub) { if (true) { if (storage[componentTypeInfo.main]) { console.warn(componentTypeInfo.main + ' exists.'); } } storage[componentTypeInfo.main] = clz; } else if (componentTypeInfo.sub !== IS_CONTAINER) { var container = makeContainer(componentTypeInfo); container[componentTypeInfo.sub] = clz; } } return clz; }; target.getClass = function (mainType, subType, throwWhenNotFound) { var clz = storage[mainType]; if (clz && clz[IS_CONTAINER]) { clz = subType ? clz[subType] : null; } if (throwWhenNotFound && !clz) { throw new Error(!subType ? mainType + '.' + 'type should be specified.' : 'Component ' + mainType + '.' + (subType || '') + ' is used but not imported.'); } return clz; }; target.getClassesByMainType = function (componentType) { var componentTypeInfo = parseClassType(componentType); var result = []; var obj = storage[componentTypeInfo.main]; if (obj && obj[IS_CONTAINER]) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](obj, function (o, type) { type !== IS_CONTAINER && result.push(o); }); } else { result.push(obj); } return result; }; target.hasClass = function (componentType) { // Just consider componentType.main. var componentTypeInfo = parseClassType(componentType); return !!storage[componentTypeInfo.main]; }; /** * @return Like ['aa', 'bb'], but can not be ['aa.xx'] */ target.getAllClassMainTypes = function () { var types = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_1__["each"](storage, function (obj, type) { types.push(type); }); return types; }; /** * If a main type is container and has sub types */ target.hasSubTypes = function (componentType) { var componentTypeInfo = parseClassType(componentType); var obj = storage[componentTypeInfo.main]; return obj && obj[IS_CONTAINER]; }; function makeContainer(componentTypeInfo) { var container = storage[componentTypeInfo.main]; if (!container || !container[IS_CONTAINER]) { container = storage[componentTypeInfo.main] = {}; container[IS_CONTAINER] = true; } return container; } } // /** // * @param {string|Array.} properties // */ // export function setReadOnly(obj, properties) { // FIXME It seems broken in IE8 simulation of IE11 // if (!zrUtil.isArray(properties)) { // properties = properties != null ? [properties] : []; // } // zrUtil.each(properties, function (prop) { // let value = obj[prop]; // Object.defineProperty // && Object.defineProperty(obj, prop, { // value: value, writable: false // }); // zrUtil.isArray(obj[prop]) // && Object.freeze // && Object.freeze(obj[prop]); // }); // } /***/ }), /***/ "./node_modules/echarts/lib/util/component.js": /*!****************************************************!*\ !*** ./node_modules/echarts/lib/util/component.js ***! \****************************************************/ /*! exports provided: getUID, enableSubTypeDefaulter, enableTopologicalTravel, inheritDefaultOption */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUID", function() { return getUID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableSubTypeDefaulter", function() { return enableSubTypeDefaulter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableTopologicalTravel", function() { return enableTopologicalTravel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inheritDefaultOption", function() { return inheritDefaultOption; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _clazz_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./clazz.js */ "./node_modules/echarts/lib/util/clazz.js"); /* harmony import */ var _log_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // A random offset var base = Math.round(Math.random() * 10); /** * @public * @param {string} type * @return {string} */ function getUID(type) { // Considering the case of crossing js context, // use Math.random to make id as unique as possible. return [type || '', base++].join('_'); } /** * Implements `SubTypeDefaulterManager` for `target`. */ function enableSubTypeDefaulter(target) { var subTypeDefaulters = {}; target.registerSubTypeDefaulter = function (componentType, defaulter) { var componentTypeInfo = Object(_clazz_js__WEBPACK_IMPORTED_MODULE_1__["parseClassType"])(componentType); subTypeDefaulters[componentTypeInfo.main] = defaulter; }; target.determineSubType = function (componentType, option) { var type = option.type; if (!type) { var componentTypeMain = Object(_clazz_js__WEBPACK_IMPORTED_MODULE_1__["parseClassType"])(componentType).main; if (target.hasSubTypes(componentType) && subTypeDefaulters[componentTypeMain]) { type = subTypeDefaulters[componentTypeMain](option); } } return type; }; } /** * Implements `TopologicalTravelable` for `entity`. * * Topological travel on Activity Network (Activity On Vertices). * Dependencies is defined in Model.prototype.dependencies, like ['xAxis', 'yAxis']. * If 'xAxis' or 'yAxis' is absent in componentTypeList, just ignore it in topology. * If there is circular dependencey, Error will be thrown. */ function enableTopologicalTravel(entity, dependencyGetter) { /** * @param targetNameList Target Component type list. * Can be ['aa', 'bb', 'aa.xx'] * @param fullNameList By which we can build dependency graph. * @param callback Params: componentType, dependencies. * @param context Scope of callback. */ entity.topologicalTravel = function (targetNameList, fullNameList, callback, context) { if (!targetNameList.length) { return; } var result = makeDepndencyGraph(fullNameList); var graph = result.graph; var noEntryList = result.noEntryList; var targetNameSet = {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](targetNameList, function (name) { targetNameSet[name] = true; }); while (noEntryList.length) { var currComponentType = noEntryList.pop(); var currVertex = graph[currComponentType]; var isInTargetNameSet = !!targetNameSet[currComponentType]; if (isInTargetNameSet) { callback.call(context, currComponentType, currVertex.originalDeps.slice()); delete targetNameSet[currComponentType]; } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](currVertex.successor, isInTargetNameSet ? removeEdgeAndAdd : removeEdge); } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](targetNameSet, function () { var errMsg = ''; if (true) { errMsg = Object(_log_js__WEBPACK_IMPORTED_MODULE_2__["makePrintable"])('Circular dependency may exists: ', targetNameSet, targetNameList, fullNameList); } throw new Error(errMsg); }); function removeEdge(succComponentType) { graph[succComponentType].entryCount--; if (graph[succComponentType].entryCount === 0) { noEntryList.push(succComponentType); } } // Consider this case: legend depends on series, and we call // chart.setOption({series: [...]}), where only series is in option. // If we do not have 'removeEdgeAndAdd', legendModel.mergeOption will // not be called, but only sereis.mergeOption is called. Thus legend // have no chance to update its local record about series (like which // name of series is available in legend). function removeEdgeAndAdd(succComponentType) { targetNameSet[succComponentType] = true; removeEdge(succComponentType); } }; function makeDepndencyGraph(fullNameList) { var graph = {}; var noEntryList = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](fullNameList, function (name) { var thisItem = createDependencyGraphItem(graph, name); var originalDeps = thisItem.originalDeps = dependencyGetter(name); var availableDeps = getAvailableDependencies(originalDeps, fullNameList); thisItem.entryCount = availableDeps.length; if (thisItem.entryCount === 0) { noEntryList.push(name); } zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](availableDeps, function (dependentName) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"](thisItem.predecessor, dependentName) < 0) { thisItem.predecessor.push(dependentName); } var thatItem = createDependencyGraphItem(graph, dependentName); if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"](thatItem.successor, dependentName) < 0) { thatItem.successor.push(name); } }); }); return { graph: graph, noEntryList: noEntryList }; } function createDependencyGraphItem(graph, name) { if (!graph[name]) { graph[name] = { predecessor: [], successor: [] }; } return graph[name]; } function getAvailableDependencies(originalDeps, fullNameList) { var availableDeps = []; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](originalDeps, function (dep) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"](fullNameList, dep) >= 0 && availableDeps.push(dep); }); return availableDeps; } } function inheritDefaultOption(superOption, subOption) { // See also `model/Component.ts#getDefaultOption` return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["merge"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["merge"]({}, superOption, true), subOption, true); } /***/ }), /***/ "./node_modules/echarts/lib/util/conditionalExpression.js": /*!****************************************************************!*\ !*** ./node_modules/echarts/lib/util/conditionalExpression.js ***! \****************************************************************/ /*! exports provided: parseConditionalExpression */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseConditionalExpression", function() { return parseConditionalExpression; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _log_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var _data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../data/helper/dataValueHelper.js */ "./node_modules/echarts/lib/data/helper/dataValueHelper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ; var RELATIONAL_EXPRESSION_OP_ALIAS_MAP = { value: 'eq', // PENDING: not good for literal semantic? '<': 'lt', '<=': 'lte', '>': 'gt', '>=': 'gte', '=': 'eq', '!=': 'ne', '<>': 'ne' // Might be misleading for sake of the difference between '==' and '===', // so don't support them. // '==': 'eq', // '===': 'seq', // '!==': 'sne' // PENDING: Whether support some common alias "ge", "le", "neq"? // ge: 'gte', // le: 'lte', // neq: 'ne', }; // type RelationalExpressionOpEvaluate = (tarVal: unknown, condVal: unknown) => boolean; var RegExpEvaluator = /** @class */function () { function RegExpEvaluator(rVal) { // Support condVal: RegExp | string var condValue = this._condVal = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(rVal) ? new RegExp(rVal) : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isRegExp"])(rVal) ? rVal : null; if (condValue == null) { var errMsg = ''; if (true) { errMsg = Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["makePrintable"])('Illegal regexp', rVal, 'in'); } Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } } RegExpEvaluator.prototype.evaluate = function (lVal) { var type = typeof lVal; return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(type) ? this._condVal.test(lVal) : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isNumber"])(type) ? this._condVal.test(lVal + '') : false; }; return RegExpEvaluator; }(); var ConstConditionInternal = /** @class */function () { function ConstConditionInternal() {} ConstConditionInternal.prototype.evaluate = function () { return this.value; }; return ConstConditionInternal; }(); var AndConditionInternal = /** @class */function () { function AndConditionInternal() {} AndConditionInternal.prototype.evaluate = function () { var children = this.children; for (var i = 0; i < children.length; i++) { if (!children[i].evaluate()) { return false; } } return true; }; return AndConditionInternal; }(); var OrConditionInternal = /** @class */function () { function OrConditionInternal() {} OrConditionInternal.prototype.evaluate = function () { var children = this.children; for (var i = 0; i < children.length; i++) { if (children[i].evaluate()) { return true; } } return false; }; return OrConditionInternal; }(); var NotConditionInternal = /** @class */function () { function NotConditionInternal() {} NotConditionInternal.prototype.evaluate = function () { return !this.child.evaluate(); }; return NotConditionInternal; }(); var RelationalConditionInternal = /** @class */function () { function RelationalConditionInternal() {} RelationalConditionInternal.prototype.evaluate = function () { var needParse = !!this.valueParser; // Call getValue with no `this`. var getValue = this.getValue; var tarValRaw = getValue(this.valueGetterParam); var tarValParsed = needParse ? this.valueParser(tarValRaw) : null; // Relational cond follow "and" logic internally. for (var i = 0; i < this.subCondList.length; i++) { if (!this.subCondList[i].evaluate(needParse ? tarValParsed : tarValRaw)) { return false; } } return true; }; return RelationalConditionInternal; }(); function parseOption(exprOption, getters) { if (exprOption === true || exprOption === false) { var cond = new ConstConditionInternal(); cond.value = exprOption; return cond; } var errMsg = ''; if (!isObjectNotArray(exprOption)) { if (true) { errMsg = Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["makePrintable"])('Illegal config. Expect a plain object but actually', exprOption); } Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } if (exprOption.and) { return parseAndOrOption('and', exprOption, getters); } else if (exprOption.or) { return parseAndOrOption('or', exprOption, getters); } else if (exprOption.not) { return parseNotOption(exprOption, getters); } return parseRelationalOption(exprOption, getters); } function parseAndOrOption(op, exprOption, getters) { var subOptionArr = exprOption[op]; var errMsg = ''; if (true) { errMsg = Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["makePrintable"])('"and"/"or" condition should only be `' + op + ': [...]` and must not be empty array.', 'Illegal condition:', exprOption); } if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(subOptionArr)) { Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } if (!subOptionArr.length) { Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } var cond = op === 'and' ? new AndConditionInternal() : new OrConditionInternal(); cond.children = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(subOptionArr, function (subOption) { return parseOption(subOption, getters); }); if (!cond.children.length) { Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } return cond; } function parseNotOption(exprOption, getters) { var subOption = exprOption.not; var errMsg = ''; if (true) { errMsg = Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["makePrintable"])('"not" condition should only be `not: {}`.', 'Illegal condition:', exprOption); } if (!isObjectNotArray(subOption)) { Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } var cond = new NotConditionInternal(); cond.child = parseOption(subOption, getters); if (!cond.child) { Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } return cond; } function parseRelationalOption(exprOption, getters) { var errMsg = ''; var valueGetterParam = getters.prepareGetValue(exprOption); var subCondList = []; var exprKeys = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["keys"])(exprOption); var parserName = exprOption.parser; var valueParser = parserName ? Object(_data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_2__["getRawValueParser"])(parserName) : null; for (var i = 0; i < exprKeys.length; i++) { var keyRaw = exprKeys[i]; if (keyRaw === 'parser' || getters.valueGetterAttrMap.get(keyRaw)) { continue; } var op = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(RELATIONAL_EXPRESSION_OP_ALIAS_MAP, keyRaw) ? RELATIONAL_EXPRESSION_OP_ALIAS_MAP[keyRaw] : keyRaw; var condValueRaw = exprOption[keyRaw]; var condValueParsed = valueParser ? valueParser(condValueRaw) : condValueRaw; var evaluator = Object(_data_helper_dataValueHelper_js__WEBPACK_IMPORTED_MODULE_2__["createFilterComparator"])(op, condValueParsed) || op === 'reg' && new RegExpEvaluator(condValueParsed); if (!evaluator) { if (true) { errMsg = Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["makePrintable"])('Illegal relational operation: "' + keyRaw + '" in condition:', exprOption); } Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } subCondList.push(evaluator); } if (!subCondList.length) { if (true) { errMsg = Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["makePrintable"])('Relational condition must have at least one operator.', 'Illegal condition:', exprOption); } // No relational operator always disabled in case of dangers result. Object(_log_js__WEBPACK_IMPORTED_MODULE_1__["throwError"])(errMsg); } var cond = new RelationalConditionInternal(); cond.valueGetterParam = valueGetterParam; cond.valueParser = valueParser; cond.getValue = getters.getValue; cond.subCondList = subCondList; return cond; } function isObjectNotArray(val) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(val) && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArrayLike"])(val); } var ConditionalExpressionParsed = /** @class */function () { function ConditionalExpressionParsed(exprOption, getters) { this._cond = parseOption(exprOption, getters); } ConditionalExpressionParsed.prototype.evaluate = function () { return this._cond.evaluate(); }; return ConditionalExpressionParsed; }(); ; function parseConditionalExpression(exprOption, getters) { return new ConditionalExpressionParsed(exprOption, getters); } /***/ }), /***/ "./node_modules/echarts/lib/util/decal.js": /*!************************************************!*\ !*** ./node_modules/echarts/lib/util/decal.js ***! \************************************************/ /*! exports provided: createOrUpdatePatternFromDecal */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createOrUpdatePatternFromDecal", function() { return createOrUpdatePatternFromDecal; }); /* harmony import */ var zrender_lib_core_WeakMap_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/WeakMap.js */ "./node_modules/zrender/lib/core/WeakMap.js"); /* harmony import */ var zrender_lib_core_LRU_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/LRU.js */ "./node_modules/zrender/lib/core/LRU.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _symbol_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./symbol.js */ "./node_modules/echarts/lib/util/symbol.js"); /* harmony import */ var zrender_lib_canvas_graphic_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/canvas/graphic.js */ "./node_modules/zrender/lib/canvas/graphic.js"); /* harmony import */ var zrender_lib_core_platform_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! zrender/lib/core/platform.js */ "./node_modules/zrender/lib/core/platform.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var decalMap = new zrender_lib_core_WeakMap_js__WEBPACK_IMPORTED_MODULE_0__["default"](); var decalCache = new zrender_lib_core_LRU_js__WEBPACK_IMPORTED_MODULE_1__["default"](100); var decalKeys = ['symbol', 'symbolSize', 'symbolKeepAspect', 'color', 'backgroundColor', 'dashArrayX', 'dashArrayY', 'maxTileWidth', 'maxTileHeight']; /** * Create or update pattern image from decal options * * @param {InnerDecalObject | 'none'} decalObject decal options, 'none' if no decal * @return {Pattern} pattern with generated image, null if no decal */ function createOrUpdatePatternFromDecal(decalObject, api) { if (decalObject === 'none') { return null; } var dpr = api.getDevicePixelRatio(); var zr = api.getZr(); var isSVG = zr.painter.type === 'svg'; if (decalObject.dirty) { decalMap["delete"](decalObject); } var oldPattern = decalMap.get(decalObject); if (oldPattern) { return oldPattern; } var decalOpt = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["defaults"])(decalObject, { symbol: 'rect', symbolSize: 1, symbolKeepAspect: true, color: 'rgba(0, 0, 0, 0.2)', backgroundColor: null, dashArrayX: 5, dashArrayY: 5, rotation: 0, maxTileWidth: 512, maxTileHeight: 512 }); if (decalOpt.backgroundColor === 'none') { decalOpt.backgroundColor = null; } var pattern = { repeat: 'repeat' }; setPatternnSource(pattern); pattern.rotation = decalOpt.rotation; pattern.scaleX = pattern.scaleY = isSVG ? 1 : 1 / dpr; decalMap.set(decalObject, pattern); decalObject.dirty = false; return pattern; function setPatternnSource(pattern) { var keys = [dpr]; var isValidKey = true; for (var i = 0; i < decalKeys.length; ++i) { var value = decalOpt[decalKeys[i]]; if (value != null && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isArray"])(value) && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isString"])(value) && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isNumber"])(value) && typeof value !== 'boolean') { isValidKey = false; break; } keys.push(value); } var cacheKey; if (isValidKey) { cacheKey = keys.join(',') + (isSVG ? '-svg' : ''); var cache = decalCache.get(cacheKey); if (cache) { isSVG ? pattern.svgElement = cache : pattern.image = cache; } } var dashArrayX = normalizeDashArrayX(decalOpt.dashArrayX); var dashArrayY = normalizeDashArrayY(decalOpt.dashArrayY); var symbolArray = normalizeSymbolArray(decalOpt.symbol); var lineBlockLengthsX = getLineBlockLengthX(dashArrayX); var lineBlockLengthY = getLineBlockLengthY(dashArrayY); var canvas = !isSVG && zrender_lib_core_platform_js__WEBPACK_IMPORTED_MODULE_6__["platformApi"].createCanvas(); var svgRoot = isSVG && { tag: 'g', attrs: {}, key: 'dcl', children: [] }; var pSize = getPatternSize(); var ctx; if (canvas) { canvas.width = pSize.width * dpr; canvas.height = pSize.height * dpr; ctx = canvas.getContext('2d'); } brushDecal(); if (isValidKey) { decalCache.put(cacheKey, canvas || svgRoot); } pattern.image = canvas; pattern.svgElement = svgRoot; pattern.svgWidth = pSize.width; pattern.svgHeight = pSize.height; /** * Get minimum length that can make a repeatable pattern. * * @return {Object} pattern width and height */ function getPatternSize() { /** * For example, if dash is [[3, 2], [2, 1]] for X, it looks like * |--- --- --- --- --- ... * |-- -- -- -- -- -- -- -- ... * |--- --- --- --- --- ... * |-- -- -- -- -- -- -- -- ... * So the minimum length of X is 15, * which is the least common multiple of `3 + 2` and `2 + 1` * |--- --- --- |--- --- ... * |-- -- -- -- -- |-- -- -- ... */ var width = 1; for (var i = 0, xlen = lineBlockLengthsX.length; i < xlen; ++i) { width = Object(_number_js__WEBPACK_IMPORTED_MODULE_3__["getLeastCommonMultiple"])(width, lineBlockLengthsX[i]); } var symbolRepeats = 1; for (var i = 0, xlen = symbolArray.length; i < xlen; ++i) { symbolRepeats = Object(_number_js__WEBPACK_IMPORTED_MODULE_3__["getLeastCommonMultiple"])(symbolRepeats, symbolArray[i].length); } width *= symbolRepeats; var height = lineBlockLengthY * lineBlockLengthsX.length * symbolArray.length; if (true) { var warn = function (attrName) { /* eslint-disable-next-line */ console.warn("Calculated decal size is greater than " + attrName + " due to decal option settings so " + attrName + " is used for the decal size. Please consider changing the decal option to make a smaller decal or set " + attrName + " to be larger to avoid incontinuity."); }; if (width > decalOpt.maxTileWidth) { warn('maxTileWidth'); } if (height > decalOpt.maxTileHeight) { warn('maxTileHeight'); } } return { width: Math.max(1, Math.min(width, decalOpt.maxTileWidth)), height: Math.max(1, Math.min(height, decalOpt.maxTileHeight)) }; } function brushDecal() { if (ctx) { ctx.clearRect(0, 0, canvas.width, canvas.height); if (decalOpt.backgroundColor) { ctx.fillStyle = decalOpt.backgroundColor; ctx.fillRect(0, 0, canvas.width, canvas.height); } } var ySum = 0; for (var i = 0; i < dashArrayY.length; ++i) { ySum += dashArrayY[i]; } if (ySum <= 0) { // dashArrayY is 0, draw nothing return; } var y = -lineBlockLengthY; var yId = 0; var yIdTotal = 0; var xId0 = 0; while (y < pSize.height) { if (yId % 2 === 0) { var symbolYId = yIdTotal / 2 % symbolArray.length; var x = 0; var xId1 = 0; var xId1Total = 0; while (x < pSize.width * 2) { var xSum = 0; for (var i = 0; i < dashArrayX[xId0].length; ++i) { xSum += dashArrayX[xId0][i]; } if (xSum <= 0) { // Skip empty line break; } // E.g., [15, 5, 20, 5] draws only for 15 and 20 if (xId1 % 2 === 0) { var size = (1 - decalOpt.symbolSize) * 0.5; var left = x + dashArrayX[xId0][xId1] * size; var top_1 = y + dashArrayY[yId] * size; var width = dashArrayX[xId0][xId1] * decalOpt.symbolSize; var height = dashArrayY[yId] * decalOpt.symbolSize; var symbolXId = xId1Total / 2 % symbolArray[symbolYId].length; brushSymbol(left, top_1, width, height, symbolArray[symbolYId][symbolXId]); } x += dashArrayX[xId0][xId1]; ++xId1Total; ++xId1; if (xId1 === dashArrayX[xId0].length) { xId1 = 0; } } ++xId0; if (xId0 === dashArrayX.length) { xId0 = 0; } } y += dashArrayY[yId]; ++yIdTotal; ++yId; if (yId === dashArrayY.length) { yId = 0; } } function brushSymbol(x, y, width, height, symbolType) { var scale = isSVG ? 1 : dpr; var symbol = Object(_symbol_js__WEBPACK_IMPORTED_MODULE_4__["createSymbol"])(symbolType, x * scale, y * scale, width * scale, height * scale, decalOpt.color, decalOpt.symbolKeepAspect); if (isSVG) { var symbolVNode = zr.painter.renderOneToVNode(symbol); if (symbolVNode) { svgRoot.children.push(symbolVNode); } } else { // Paint to canvas for all other renderers. Object(zrender_lib_canvas_graphic_js__WEBPACK_IMPORTED_MODULE_5__["brushSingle"])(ctx, symbol); } } } } } /** * Convert symbol array into normalized array * * @param {string | (string | string[])[]} symbol symbol input * @return {string[][]} normolized symbol array */ function normalizeSymbolArray(symbol) { if (!symbol || symbol.length === 0) { return [['rect']]; } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isString"])(symbol)) { return [[symbol]]; } var isAllString = true; for (var i = 0; i < symbol.length; ++i) { if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isString"])(symbol[i])) { isAllString = false; break; } } if (isAllString) { return normalizeSymbolArray([symbol]); } var result = []; for (var i = 0; i < symbol.length; ++i) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isString"])(symbol[i])) { result.push([symbol[i]]); } else { result.push(symbol[i]); } } return result; } /** * Convert dash input into dashArray * * @param {DecalDashArrayX} dash dash input * @return {number[][]} normolized dash array */ function normalizeDashArrayX(dash) { if (!dash || dash.length === 0) { return [[0, 0]]; } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isNumber"])(dash)) { var dashValue = Math.ceil(dash); return [[dashValue, dashValue]]; } /** * [20, 5] should be normalized into [[20, 5]], * while [20, [5, 10]] should be normalized into [[20, 20], [5, 10]] */ var isAllNumber = true; for (var i = 0; i < dash.length; ++i) { if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isNumber"])(dash[i])) { isAllNumber = false; break; } } if (isAllNumber) { return normalizeDashArrayX([dash]); } var result = []; for (var i = 0; i < dash.length; ++i) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isNumber"])(dash[i])) { var dashValue = Math.ceil(dash[i]); result.push([dashValue, dashValue]); } else { var dashValue = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["map"])(dash[i], function (n) { return Math.ceil(n); }); if (dashValue.length % 2 === 1) { // [4, 2, 1] means |---- - -- |---- - -- | // so normalize it to be [4, 2, 1, 4, 2, 1] result.push(dashValue.concat(dashValue)); } else { result.push(dashValue); } } } return result; } /** * Convert dash input into dashArray * * @param {DecalDashArrayY} dash dash input * @return {number[]} normolized dash array */ function normalizeDashArrayY(dash) { if (!dash || typeof dash === 'object' && dash.length === 0) { return [0, 0]; } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["isNumber"])(dash)) { var dashValue_1 = Math.ceil(dash); return [dashValue_1, dashValue_1]; } var dashValue = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["map"])(dash, function (n) { return Math.ceil(n); }); return dash.length % 2 ? dashValue.concat(dashValue) : dashValue; } /** * Get block length of each line. A block is the length of dash line and space. * For example, a line with [4, 1] has a dash line of 4 and a space of 1 after * that, so the block length of this line is 5. * * @param {number[][]} dash dash array of X or Y * @return {number[]} block length of each line */ function getLineBlockLengthX(dash) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_2__["map"])(dash, function (line) { return getLineBlockLengthY(line); }); } function getLineBlockLengthY(dash) { var blockLength = 0; for (var i = 0; i < dash.length; ++i) { blockLength += dash[i]; } if (dash.length % 2 === 1) { // [4, 2, 1] means |---- - -- |---- - -- | // So total length is (4 + 2 + 1) * 2 return blockLength * 2; } return blockLength; } /***/ }), /***/ "./node_modules/echarts/lib/util/event.js": /*!************************************************!*\ !*** ./node_modules/echarts/lib/util/event.js ***! \************************************************/ /*! exports provided: findEventDispatcher */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findEventDispatcher", function() { return findEventDispatcher; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function findEventDispatcher(target, det, returnFirstMatch) { var found; while (target) { if (det(target)) { found = target; if (returnFirstMatch) { break; } } target = target.__hostTarget || target.parent; } return found; } /***/ }), /***/ "./node_modules/echarts/lib/util/format.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/util/format.js ***! \*************************************************/ /*! exports provided: addCommas, toCamelCase, normalizeCssArray, encodeHTML, makeValueReadable, formatTpl, formatTplSimple, getTooltipMarker, formatTime, capitalFirst, convertToColorString, truncateText, windowOpen, getTextRect */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addCommas", function() { return addCommas; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toCamelCase", function() { return toCamelCase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeCssArray", function() { return normalizeCssArray; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeValueReadable", function() { return makeValueReadable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatTpl", function() { return formatTpl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatTplSimple", function() { return formatTplSimple; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTooltipMarker", function() { return getTooltipMarker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatTime", function() { return formatTime; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "capitalFirst", function() { return capitalFirst; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertToColorString", function() { return convertToColorString; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "windowOpen", function() { return windowOpen; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/dom.js */ "./node_modules/zrender/lib/core/dom.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "encodeHTML", function() { return zrender_lib_core_dom_js__WEBPACK_IMPORTED_MODULE_1__["encodeHTML"]; }); /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _time_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./time.js */ "./node_modules/echarts/lib/util/time.js"); /* harmony import */ var _log_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log.js */ "./node_modules/echarts/lib/util/log.js"); /* harmony import */ var zrender_lib_graphic_helper_parseText_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/graphic/helper/parseText.js */ "./node_modules/zrender/lib/graphic/helper/parseText.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "truncateText", function() { return zrender_lib_graphic_helper_parseText_js__WEBPACK_IMPORTED_MODULE_5__["truncateText"]; }); /* harmony import */ var _legacy_getTextRect_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../legacy/getTextRect.js */ "./node_modules/echarts/lib/legacy/getTextRect.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTextRect", function() { return _legacy_getTextRect_js__WEBPACK_IMPORTED_MODULE_6__["getTextRect"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Add a comma each three digit. */ function addCommas(x) { if (!Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(x)) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](x) ? x : '-'; } var parts = (x + '').split('.'); return parts[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, '$1,') + (parts.length > 1 ? '.' + parts[1] : ''); } function toCamelCase(str, upperCaseFirst) { str = (str || '').toLowerCase().replace(/-(.)/g, function (match, group1) { return group1.toUpperCase(); }); if (upperCaseFirst && str) { str = str.charAt(0).toUpperCase() + str.slice(1); } return str; } var normalizeCssArray = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["normalizeCssArray"]; /** * Make value user readable for tooltip and label. * "User readable": * Try to not print programmer-specific text like NaN, Infinity, null, undefined. * Avoid to display an empty string, which users can not recognize there is * a value and it might look like a bug. */ function makeValueReadable(value, valueType, useUTC) { var USER_READABLE_DEFUALT_TIME_PATTERN = '{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}'; function stringToUserReadable(str) { return str && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["trim"](str) ? str : '-'; } function isNumberUserReadable(num) { return !!(num != null && !isNaN(num) && isFinite(num)); } var isTypeTime = valueType === 'time'; var isValueDate = value instanceof Date; if (isTypeTime || isValueDate) { var date = isTypeTime ? Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["parseDate"])(value) : value; if (!isNaN(+date)) { return Object(_time_js__WEBPACK_IMPORTED_MODULE_3__["format"])(date, USER_READABLE_DEFUALT_TIME_PATTERN, useUTC); } else if (isValueDate) { return '-'; } // In other cases, continue to try to display the value in the following code. } if (valueType === 'ordinal') { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isStringSafe"](value) ? stringToUserReadable(value) : zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isNumber"](value) ? isNumberUserReadable(value) ? value + '' : '-' : '-'; } // By default. var numericResult = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["numericToNumber"])(value); return isNumberUserReadable(numericResult) ? addCommas(numericResult) : zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isStringSafe"](value) ? stringToUserReadable(value) : typeof value === 'boolean' ? value + '' : '-'; } var TPL_VAR_ALIAS = ['a', 'b', 'c', 'd', 'e', 'f', 'g']; var wrapVar = function (varName, seriesIdx) { return '{' + varName + (seriesIdx == null ? '' : seriesIdx) + '}'; }; /** * Template formatter * @param {Array.|Object} paramsList */ function formatTpl(tpl, paramsList, encode) { if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](paramsList)) { paramsList = [paramsList]; } var seriesLen = paramsList.length; if (!seriesLen) { return ''; } var $vars = paramsList[0].$vars || []; for (var i = 0; i < $vars.length; i++) { var alias = TPL_VAR_ALIAS[i]; tpl = tpl.replace(wrapVar(alias), wrapVar(alias, 0)); } for (var seriesIdx = 0; seriesIdx < seriesLen; seriesIdx++) { for (var k = 0; k < $vars.length; k++) { var val = paramsList[seriesIdx][$vars[k]]; tpl = tpl.replace(wrapVar(TPL_VAR_ALIAS[k], seriesIdx), encode ? Object(zrender_lib_core_dom_js__WEBPACK_IMPORTED_MODULE_1__["encodeHTML"])(val) : val); } } return tpl; } /** * simple Template formatter */ function formatTplSimple(tpl, param, encode) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](param, function (value, key) { tpl = tpl.replace('{' + key + '}', encode ? Object(zrender_lib_core_dom_js__WEBPACK_IMPORTED_MODULE_1__["encodeHTML"])(value) : value); }); return tpl; } function getTooltipMarker(inOpt, extraCssText) { var opt = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](inOpt) ? { color: inOpt, extraCssText: extraCssText } : inOpt || {}; var color = opt.color; var type = opt.type; extraCssText = opt.extraCssText; var renderMode = opt.renderMode || 'html'; if (!color) { return ''; } if (renderMode === 'html') { return type === 'subItem' ? '' : ''; } else { // Should better not to auto generate style name by auto-increment number here. // Because this util is usually called in tooltip formatter, which is probably // called repeatedly when mouse move and the auto-increment number increases fast. // Users can make their own style name by theirselves, make it unique and readable. var markerId = opt.markerId || 'markerX'; return { renderMode: renderMode, content: '{' + markerId + '|} ', style: type === 'subItem' ? { width: 4, height: 4, borderRadius: 2, backgroundColor: color } : { width: 10, height: 10, borderRadius: 5, backgroundColor: color } }; } } /** * @deprecated Use `time/format` instead. * ISO Date format * @param {string} tpl * @param {number} value * @param {boolean} [isUTC=false] Default in local time. * see `module:echarts/scale/Time` * and `module:echarts/util/number#parseDate`. * @inner */ function formatTime(tpl, value, isUTC) { if (true) { Object(_log_js__WEBPACK_IMPORTED_MODULE_4__["deprecateReplaceLog"])('echarts.format.formatTime', 'echarts.time.format'); } if (tpl === 'week' || tpl === 'month' || tpl === 'quarter' || tpl === 'half-year' || tpl === 'year') { tpl = 'MM-dd\nyyyy'; } var date = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["parseDate"])(value); var getUTC = isUTC ? 'getUTC' : 'get'; var y = date[getUTC + 'FullYear'](); var M = date[getUTC + 'Month']() + 1; var d = date[getUTC + 'Date'](); var h = date[getUTC + 'Hours'](); var m = date[getUTC + 'Minutes'](); var s = date[getUTC + 'Seconds'](); var S = date[getUTC + 'Milliseconds'](); tpl = tpl.replace('MM', Object(_time_js__WEBPACK_IMPORTED_MODULE_3__["pad"])(M, 2)).replace('M', M).replace('yyyy', y).replace('yy', Object(_time_js__WEBPACK_IMPORTED_MODULE_3__["pad"])(y % 100 + '', 2)).replace('dd', Object(_time_js__WEBPACK_IMPORTED_MODULE_3__["pad"])(d, 2)).replace('d', d).replace('hh', Object(_time_js__WEBPACK_IMPORTED_MODULE_3__["pad"])(h, 2)).replace('h', h).replace('mm', Object(_time_js__WEBPACK_IMPORTED_MODULE_3__["pad"])(m, 2)).replace('m', m).replace('ss', Object(_time_js__WEBPACK_IMPORTED_MODULE_3__["pad"])(s, 2)).replace('s', s).replace('SSS', Object(_time_js__WEBPACK_IMPORTED_MODULE_3__["pad"])(S, 3)); return tpl; } /** * Capital first * @param {string} str * @return {string} */ function capitalFirst(str) { return str ? str.charAt(0).toUpperCase() + str.substr(1) : str; } /** * @return Never be null/undefined. */ function convertToColorString(color, defaultColor) { defaultColor = defaultColor || 'transparent'; return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](color) ? color : zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](color) ? color.colorStops && (color.colorStops[0] || {}).color || defaultColor : defaultColor; } /** * open new tab * @param link url * @param target blank or self */ function windowOpen(link, target) { /* global window */ if (target === '_blank' || target === 'blank') { var blank = window.open(); blank.opener = null; blank.location.href = link; } else { window.open(link, target); } } /***/ }), /***/ "./node_modules/echarts/lib/util/graphic.js": /*!**************************************************!*\ !*** ./node_modules/echarts/lib/util/graphic.js ***! \**************************************************/ /*! exports provided: updateProps, initProps, removeElement, removeElementWithFadeOut, isElementRemoved, extendShape, extendPath, registerShape, getShapeClass, makePath, makeImage, mergePath, resizePath, subPixelOptimizeLine, subPixelOptimizeRect, subPixelOptimize, getTransform, applyTransform, transformDirection, groupTransition, clipPointsByRect, clipRectByRect, createIcon, linePolygonIntersect, lineLineIntersect, setTooltipConfig, traverseElements, Group, Image, Text, Circle, Ellipse, Sector, Ring, Polygon, Polyline, Rect, Line, BezierCurve, Arc, IncrementalDisplayable, CompoundPath, LinearGradient, RadialGradient, BoundingRect, OrientedBoundingRect, Point, Path */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extendShape", function() { return extendShape; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extendPath", function() { return extendPath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerShape", function() { return registerShape; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getShapeClass", function() { return getShapeClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makePath", function() { return makePath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeImage", function() { return makeImage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergePath", function() { return mergePath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resizePath", function() { return resizePath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subPixelOptimizeLine", function() { return subPixelOptimizeLine; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subPixelOptimizeRect", function() { return subPixelOptimizeRect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subPixelOptimize", function() { return subPixelOptimize; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTransform", function() { return getTransform; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyTransform", function() { return applyTransform; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transformDirection", function() { return transformDirection; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "groupTransition", function() { return groupTransition; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clipPointsByRect", function() { return clipPointsByRect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clipRectByRect", function() { return clipRectByRect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createIcon", function() { return createIcon; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linePolygonIntersect", function() { return linePolygonIntersect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lineLineIntersect", function() { return lineLineIntersect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTooltipConfig", function() { return setTooltipConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "traverseElements", function() { return traverseElements; }); /* harmony import */ var zrender_lib_tool_path_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/tool/path.js */ "./node_modules/zrender/lib/tool/path.js"); /* harmony import */ var zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/matrix.js */ "./node_modules/zrender/lib/core/matrix.js"); /* harmony import */ var zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/vector.js */ "./node_modules/zrender/lib/core/vector.js"); /* harmony import */ var zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/graphic/Path.js */ "./node_modules/zrender/lib/graphic/Path.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Path", function() { return zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/core/Transformable.js */ "./node_modules/zrender/lib/core/Transformable.js"); /* harmony import */ var zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zrender/lib/graphic/Image.js */ "./node_modules/zrender/lib/graphic/Image.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Image", function() { return zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var zrender_lib_graphic_Group_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! zrender/lib/graphic/Group.js */ "./node_modules/zrender/lib/graphic/Group.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Group", function() { return zrender_lib_graphic_Group_js__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var zrender_lib_graphic_Text_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! zrender/lib/graphic/Text.js */ "./node_modules/zrender/lib/graphic/Text.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Text", function() { return zrender_lib_graphic_Text_js__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony import */ var zrender_lib_graphic_shape_Circle_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! zrender/lib/graphic/shape/Circle.js */ "./node_modules/zrender/lib/graphic/shape/Circle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Circle", function() { return zrender_lib_graphic_shape_Circle_js__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony import */ var zrender_lib_graphic_shape_Ellipse_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! zrender/lib/graphic/shape/Ellipse.js */ "./node_modules/zrender/lib/graphic/shape/Ellipse.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Ellipse", function() { return zrender_lib_graphic_shape_Ellipse_js__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony import */ var zrender_lib_graphic_shape_Sector_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! zrender/lib/graphic/shape/Sector.js */ "./node_modules/zrender/lib/graphic/shape/Sector.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sector", function() { return zrender_lib_graphic_shape_Sector_js__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var zrender_lib_graphic_shape_Ring_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! zrender/lib/graphic/shape/Ring.js */ "./node_modules/zrender/lib/graphic/shape/Ring.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Ring", function() { return zrender_lib_graphic_shape_Ring_js__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony import */ var zrender_lib_graphic_shape_Polygon_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! zrender/lib/graphic/shape/Polygon.js */ "./node_modules/zrender/lib/graphic/shape/Polygon.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Polygon", function() { return zrender_lib_graphic_shape_Polygon_js__WEBPACK_IMPORTED_MODULE_12__["default"]; }); /* harmony import */ var zrender_lib_graphic_shape_Polyline_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! zrender/lib/graphic/shape/Polyline.js */ "./node_modules/zrender/lib/graphic/shape/Polyline.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Polyline", function() { return zrender_lib_graphic_shape_Polyline_js__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony import */ var zrender_lib_graphic_shape_Rect_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! zrender/lib/graphic/shape/Rect.js */ "./node_modules/zrender/lib/graphic/shape/Rect.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rect", function() { return zrender_lib_graphic_shape_Rect_js__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony import */ var zrender_lib_graphic_shape_Line_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! zrender/lib/graphic/shape/Line.js */ "./node_modules/zrender/lib/graphic/shape/Line.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Line", function() { return zrender_lib_graphic_shape_Line_js__WEBPACK_IMPORTED_MODULE_15__["default"]; }); /* harmony import */ var zrender_lib_graphic_shape_BezierCurve_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! zrender/lib/graphic/shape/BezierCurve.js */ "./node_modules/zrender/lib/graphic/shape/BezierCurve.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BezierCurve", function() { return zrender_lib_graphic_shape_BezierCurve_js__WEBPACK_IMPORTED_MODULE_16__["default"]; }); /* harmony import */ var zrender_lib_graphic_shape_Arc_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! zrender/lib/graphic/shape/Arc.js */ "./node_modules/zrender/lib/graphic/shape/Arc.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Arc", function() { return zrender_lib_graphic_shape_Arc_js__WEBPACK_IMPORTED_MODULE_17__["default"]; }); /* harmony import */ var zrender_lib_graphic_CompoundPath_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! zrender/lib/graphic/CompoundPath.js */ "./node_modules/zrender/lib/graphic/CompoundPath.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompoundPath", function() { return zrender_lib_graphic_CompoundPath_js__WEBPACK_IMPORTED_MODULE_18__["default"]; }); /* harmony import */ var zrender_lib_graphic_LinearGradient_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! zrender/lib/graphic/LinearGradient.js */ "./node_modules/zrender/lib/graphic/LinearGradient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LinearGradient", function() { return zrender_lib_graphic_LinearGradient_js__WEBPACK_IMPORTED_MODULE_19__["default"]; }); /* harmony import */ var zrender_lib_graphic_RadialGradient_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! zrender/lib/graphic/RadialGradient.js */ "./node_modules/zrender/lib/graphic/RadialGradient.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RadialGradient", function() { return zrender_lib_graphic_RadialGradient_js__WEBPACK_IMPORTED_MODULE_20__["default"]; }); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BoundingRect", function() { return zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_21__["default"]; }); /* harmony import */ var zrender_lib_core_OrientedBoundingRect_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! zrender/lib/core/OrientedBoundingRect.js */ "./node_modules/zrender/lib/core/OrientedBoundingRect.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrientedBoundingRect", function() { return zrender_lib_core_OrientedBoundingRect_js__WEBPACK_IMPORTED_MODULE_22__["default"]; }); /* harmony import */ var zrender_lib_core_Point_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! zrender/lib/core/Point.js */ "./node_modules/zrender/lib/core/Point.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Point", function() { return zrender_lib_core_Point_js__WEBPACK_IMPORTED_MODULE_23__["default"]; }); /* harmony import */ var zrender_lib_graphic_IncrementalDisplayable_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! zrender/lib/graphic/IncrementalDisplayable.js */ "./node_modules/zrender/lib/graphic/IncrementalDisplayable.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IncrementalDisplayable", function() { return zrender_lib_graphic_IncrementalDisplayable_js__WEBPACK_IMPORTED_MODULE_24__["default"]; }); /* harmony import */ var zrender_lib_graphic_helper_subPixelOptimize_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! zrender/lib/graphic/helper/subPixelOptimize.js */ "./node_modules/zrender/lib/graphic/helper/subPixelOptimize.js"); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _innerStore_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../animation/basicTransition.js */ "./node_modules/echarts/lib/animation/basicTransition.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "updateProps", function() { return _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_28__["updateProps"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initProps", function() { return _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_28__["initProps"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "removeElement", function() { return _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_28__["removeElement"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "removeElementWithFadeOut", function() { return _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_28__["removeElementWithFadeOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isElementRemoved", function() { return _animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_28__["isElementRemoved"]; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @deprecated export for compatitable reason */ var mathMax = Math.max; var mathMin = Math.min; var _customShapeMap = {}; /** * Extend shape with parameters */ function extendShape(opts) { return zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_3__["default"].extend(opts); } var extendPathFromString = zrender_lib_tool_path_js__WEBPACK_IMPORTED_MODULE_0__["extendFromString"]; /** * Extend path */ function extendPath(pathData, opts) { return extendPathFromString(pathData, opts); } /** * Register a user defined shape. * The shape class can be fetched by `getShapeClass` * This method will overwrite the registered shapes, including * the registered built-in shapes, if using the same `name`. * The shape can be used in `custom series` and * `graphic component` by declaring `{type: name}`. * * @param name * @param ShapeClass Can be generated by `extendShape`. */ function registerShape(name, ShapeClass) { _customShapeMap[name] = ShapeClass; } /** * Find shape class registered by `registerShape`. Usually used in * fetching user defined shape. * * [Caution]: * (1) This method **MUST NOT be used inside echarts !!!**, unless it is prepared * to use user registered shapes. * Because the built-in shape (see `getBuiltInShape`) will be registered by * `registerShape` by default. That enables users to get both built-in * shapes as well as the shapes belonging to themsleves. But users can overwrite * the built-in shapes by using names like 'circle', 'rect' via calling * `registerShape`. So the echarts inner featrues should not fetch shapes from here * in case that it is overwritten by users, except that some features, like * `custom series`, `graphic component`, do it deliberately. * * (2) In the features like `custom series`, `graphic component`, the user input * `{tpye: 'xxx'}` does not only specify shapes but also specify other graphic * elements like `'group'`, `'text'`, `'image'` or event `'path'`. Those names * are reserved names, that is, if some user registers a shape named `'image'`, * the shape will not be used. If we intending to add some more reserved names * in feature, that might bring break changes (disable some existing user shape * names). But that case probably rarely happens. So we don't make more mechanism * to resolve this issue here. * * @param name * @return The shape class. If not found, return nothing. */ function getShapeClass(name) { if (_customShapeMap.hasOwnProperty(name)) { return _customShapeMap[name]; } } /** * Create a path element from path data string * @param pathData * @param opts * @param rect * @param layout 'center' or 'cover' default to be cover */ function makePath(pathData, opts, rect, layout) { var path = zrender_lib_tool_path_js__WEBPACK_IMPORTED_MODULE_0__["createFromString"](pathData, opts); if (rect) { if (layout === 'center') { rect = centerGraphic(rect, path.getBoundingRect()); } resizePath(path, rect); } return path; } /** * Create a image element from image url * @param imageUrl image url * @param opts options * @param rect constrain rect * @param layout 'center' or 'cover'. Default to be 'cover' */ function makeImage(imageUrl, rect, layout) { var zrImg = new zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_5__["default"]({ style: { image: imageUrl, x: rect.x, y: rect.y, width: rect.width, height: rect.height }, onload: function (img) { if (layout === 'center') { var boundingRect = { width: img.width, height: img.height }; zrImg.setStyle(centerGraphic(rect, boundingRect)); } } }); return zrImg; } /** * Get position of centered element in bounding box. * * @param rect element local bounding box * @param boundingRect constraint bounding box * @return element position containing x, y, width, and height */ function centerGraphic(rect, boundingRect) { // Set rect to center, keep width / height ratio. var aspect = boundingRect.width / boundingRect.height; var width = rect.height * aspect; var height; if (width <= rect.width) { height = rect.height; } else { width = rect.width; height = width / aspect; } var cx = rect.x + rect.width / 2; var cy = rect.y + rect.height / 2; return { x: cx - width / 2, y: cy - height / 2, width: width, height: height }; } var mergePath = zrender_lib_tool_path_js__WEBPACK_IMPORTED_MODULE_0__["mergePath"]; /** * Resize a path to fit the rect * @param path * @param rect */ function resizePath(path, rect) { if (!path.applyTransform) { return; } var pathRect = path.getBoundingRect(); var m = pathRect.calculateTransform(rect); path.applyTransform(m); } /** * Sub pixel optimize line for canvas */ function subPixelOptimizeLine(shape, lineWidth) { zrender_lib_graphic_helper_subPixelOptimize_js__WEBPACK_IMPORTED_MODULE_25__["subPixelOptimizeLine"](shape, shape, { lineWidth: lineWidth }); return shape; } /** * Sub pixel optimize rect for canvas */ function subPixelOptimizeRect(param) { zrender_lib_graphic_helper_subPixelOptimize_js__WEBPACK_IMPORTED_MODULE_25__["subPixelOptimizeRect"](param.shape, param.shape, param.style); return param; } /** * Sub pixel optimize for canvas * * @param position Coordinate, such as x, y * @param lineWidth Should be nonnegative integer. * @param positiveOrNegative Default false (negative). * @return Optimized position. */ var subPixelOptimize = zrender_lib_graphic_helper_subPixelOptimize_js__WEBPACK_IMPORTED_MODULE_25__["subPixelOptimize"]; /** * Get transform matrix of target (param target), * in coordinate of its ancestor (param ancestor) * * @param target * @param [ancestor] */ function getTransform(target, ancestor) { var mat = zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_1__["identity"]([]); while (target && target !== ancestor) { zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_1__["mul"](mat, target.getLocalTransform(), mat); target = target.parent; } return mat; } /** * Apply transform to an vertex. * @param target [x, y] * @param transform Can be: * + Transform matrix: like [1, 0, 0, 1, 0, 0] * + {position, rotation, scale}, the same as `zrender/Transformable`. * @param invert Whether use invert matrix. * @return [x, y] */ function applyTransform(target, transform, invert) { if (transform && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_26__["isArrayLike"])(transform)) { transform = zrender_lib_core_Transformable_js__WEBPACK_IMPORTED_MODULE_4__["default"].getLocalTransform(transform); } if (invert) { transform = zrender_lib_core_matrix_js__WEBPACK_IMPORTED_MODULE_1__["invert"]([], transform); } return zrender_lib_core_vector_js__WEBPACK_IMPORTED_MODULE_2__["applyTransform"]([], target, transform); } /** * @param direction 'left' 'right' 'top' 'bottom' * @param transform Transform matrix: like [1, 0, 0, 1, 0, 0] * @param invert Whether use invert matrix. * @return Transformed direction. 'left' 'right' 'top' 'bottom' */ function transformDirection(direction, transform, invert) { // Pick a base, ensure that transform result will not be (0, 0). var hBase = transform[4] === 0 || transform[5] === 0 || transform[0] === 0 ? 1 : Math.abs(2 * transform[4] / transform[0]); var vBase = transform[4] === 0 || transform[5] === 0 || transform[2] === 0 ? 1 : Math.abs(2 * transform[4] / transform[2]); var vertex = [direction === 'left' ? -hBase : direction === 'right' ? hBase : 0, direction === 'top' ? -vBase : direction === 'bottom' ? vBase : 0]; vertex = applyTransform(vertex, transform, invert); return Math.abs(vertex[0]) > Math.abs(vertex[1]) ? vertex[0] > 0 ? 'right' : 'left' : vertex[1] > 0 ? 'bottom' : 'top'; } function isNotGroup(el) { return !el.isGroup; } function isPath(el) { return el.shape != null; } /** * Apply group transition animation from g1 to g2. * If no animatableModel, no animation. */ function groupTransition(g1, g2, animatableModel) { if (!g1 || !g2) { return; } function getElMap(g) { var elMap = {}; g.traverse(function (el) { if (isNotGroup(el) && el.anid) { elMap[el.anid] = el; } }); return elMap; } function getAnimatableProps(el) { var obj = { x: el.x, y: el.y, rotation: el.rotation }; if (isPath(el)) { obj.shape = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_26__["extend"])({}, el.shape); } return obj; } var elMap1 = getElMap(g1); g2.traverse(function (el) { if (isNotGroup(el) && el.anid) { var oldEl = elMap1[el.anid]; if (oldEl) { var newProp = getAnimatableProps(el); el.attr(getAnimatableProps(oldEl)); Object(_animation_basicTransition_js__WEBPACK_IMPORTED_MODULE_28__["updateProps"])(el, newProp, animatableModel, Object(_innerStore_js__WEBPACK_IMPORTED_MODULE_27__["getECData"])(el).dataIndex); } } }); } function clipPointsByRect(points, rect) { // FIXME: This way might be incorrect when graphic clipped by a corner // and when element has a border. return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_26__["map"])(points, function (point) { var x = point[0]; x = mathMax(x, rect.x); x = mathMin(x, rect.x + rect.width); var y = point[1]; y = mathMax(y, rect.y); y = mathMin(y, rect.y + rect.height); return [x, y]; }); } /** * Return a new clipped rect. If rect size are negative, return undefined. */ function clipRectByRect(targetRect, rect) { var x = mathMax(targetRect.x, rect.x); var x2 = mathMin(targetRect.x + targetRect.width, rect.x + rect.width); var y = mathMax(targetRect.y, rect.y); var y2 = mathMin(targetRect.y + targetRect.height, rect.y + rect.height); // If the total rect is cliped, nothing, including the border, // should be painted. So return undefined. if (x2 >= x && y2 >= y) { return { x: x, y: y, width: x2 - x, height: y2 - y }; } } function createIcon(iconStr, // Support 'image://' or 'path://' or direct svg path. opt, rect) { var innerOpts = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_26__["extend"])({ rectHover: true }, opt); var style = innerOpts.style = { strokeNoScale: true }; rect = rect || { x: -1, y: -1, width: 2, height: 2 }; if (iconStr) { return iconStr.indexOf('image://') === 0 ? (style.image = iconStr.slice(8), Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_26__["defaults"])(style, rect), new zrender_lib_graphic_Image_js__WEBPACK_IMPORTED_MODULE_5__["default"](innerOpts)) : makePath(iconStr.replace('path://', ''), innerOpts, rect, 'center'); } } /** * Return `true` if the given line (line `a`) and the given polygon * are intersect. * Note that we do not count colinear as intersect here because no * requirement for that. We could do that if required in future. */ function linePolygonIntersect(a1x, a1y, a2x, a2y, points) { for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) { var p = points[i]; if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) { return true; } p2 = p; } } /** * Return `true` if the given two lines (line `a` and line `b`) * are intersect. * Note that we do not count colinear as intersect here because no * requirement for that. We could do that if required in future. */ function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) { // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`. var mx = a2x - a1x; var my = a2y - a1y; var nx = b2x - b1x; var ny = b2y - b1y; // `vec_m` and `vec_n` are parallel iff // existing `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`. var nmCrossProduct = crossProduct2d(nx, ny, mx, my); if (nearZero(nmCrossProduct)) { return false; } // `vec_m` and `vec_n` are intersect iff // existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`, // such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)` // and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`. var b1a1x = a1x - b1x; var b1a1y = a1y - b1y; var q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct; if (q < 0 || q > 1) { return false; } var p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct; if (p < 0 || p > 1) { return false; } return true; } /** * Cross product of 2-dimension vector. */ function crossProduct2d(x1, y1, x2, y2) { return x1 * y2 - x2 * y1; } function nearZero(val) { return val <= 1e-6 && val >= -1e-6; } function setTooltipConfig(opt) { var itemTooltipOption = opt.itemTooltipOption; var componentModel = opt.componentModel; var itemName = opt.itemName; var itemTooltipOptionObj = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_26__["isString"])(itemTooltipOption) ? { formatter: itemTooltipOption } : itemTooltipOption; var mainType = componentModel.mainType; var componentIndex = componentModel.componentIndex; var formatterParams = { componentType: mainType, name: itemName, $vars: ['name'] }; formatterParams[mainType + 'Index'] = componentIndex; var formatterParamsExtra = opt.formatterParamsExtra; if (formatterParamsExtra) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_26__["each"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_26__["keys"])(formatterParamsExtra), function (key) { if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_26__["hasOwn"])(formatterParams, key)) { formatterParams[key] = formatterParamsExtra[key]; formatterParams.$vars.push(key); } }); } var ecData = Object(_innerStore_js__WEBPACK_IMPORTED_MODULE_27__["getECData"])(opt.el); ecData.componentMainType = mainType; ecData.componentIndex = componentIndex; ecData.tooltipConfig = { name: itemName, option: Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_26__["defaults"])({ content: itemName, encodeHTMLContent: true, formatterParams: formatterParams }, itemTooltipOptionObj) }; } function traverseElement(el, cb) { var stopped; // TODO // Polyfill for fixing zrender group traverse don't visit it's root issue. if (el.isGroup) { stopped = cb(el); } if (!stopped) { el.traverse(cb); } } function traverseElements(els, cb) { if (els) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_26__["isArray"])(els)) { for (var i = 0; i < els.length; i++) { traverseElement(els[i], cb); } } else { traverseElement(els, cb); } } } // Register built-in shapes. These shapes might be overwritten // by users, although we do not recommend that. registerShape('circle', zrender_lib_graphic_shape_Circle_js__WEBPACK_IMPORTED_MODULE_8__["default"]); registerShape('ellipse', zrender_lib_graphic_shape_Ellipse_js__WEBPACK_IMPORTED_MODULE_9__["default"]); registerShape('sector', zrender_lib_graphic_shape_Sector_js__WEBPACK_IMPORTED_MODULE_10__["default"]); registerShape('ring', zrender_lib_graphic_shape_Ring_js__WEBPACK_IMPORTED_MODULE_11__["default"]); registerShape('polygon', zrender_lib_graphic_shape_Polygon_js__WEBPACK_IMPORTED_MODULE_12__["default"]); registerShape('polyline', zrender_lib_graphic_shape_Polyline_js__WEBPACK_IMPORTED_MODULE_13__["default"]); registerShape('rect', zrender_lib_graphic_shape_Rect_js__WEBPACK_IMPORTED_MODULE_14__["default"]); registerShape('line', zrender_lib_graphic_shape_Line_js__WEBPACK_IMPORTED_MODULE_15__["default"]); registerShape('bezierCurve', zrender_lib_graphic_shape_BezierCurve_js__WEBPACK_IMPORTED_MODULE_16__["default"]); registerShape('arc', zrender_lib_graphic_shape_Arc_js__WEBPACK_IMPORTED_MODULE_17__["default"]); /***/ }), /***/ "./node_modules/echarts/lib/util/innerStore.js": /*!*****************************************************!*\ !*** ./node_modules/echarts/lib/util/innerStore.js ***! \*****************************************************/ /*! exports provided: getECData, setCommonECData */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getECData", function() { return getECData; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setCommonECData", function() { return setCommonECData; }); /* harmony import */ var _model_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var getECData = Object(_model_js__WEBPACK_IMPORTED_MODULE_0__["makeInner"])(); var setCommonECData = function (seriesIndex, dataType, dataIdx, el) { if (el) { var ecData = getECData(el); // Add data index and series index for indexing the data by element // Useful in tooltip ecData.dataIndex = dataIdx; ecData.dataType = dataType; ecData.seriesIndex = seriesIndex; ecData.ssrType = 'chart'; // TODO: not store dataIndex on children. if (el.type === 'group') { el.traverse(function (child) { var childECData = getECData(child); childECData.seriesIndex = seriesIndex; childECData.dataIndex = dataIdx; childECData.dataType = dataType; childECData.ssrType = 'chart'; }); } } }; /***/ }), /***/ "./node_modules/echarts/lib/util/layout.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/util/layout.js ***! \*************************************************/ /*! exports provided: LOCATION_PARAMS, HV_NAMES, box, vbox, hbox, getAvailableSize, getLayoutRect, positionElement, sizeCalculable, fetchLayoutMode, mergeLayoutParam, getLayoutParams, copyLayoutParams */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LOCATION_PARAMS", function() { return LOCATION_PARAMS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HV_NAMES", function() { return HV_NAMES; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "box", function() { return box; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vbox", function() { return vbox; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hbox", function() { return hbox; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAvailableSize", function() { return getAvailableSize; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLayoutRect", function() { return getLayoutRect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionElement", function() { return positionElement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sizeCalculable", function() { return sizeCalculable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchLayoutMode", function() { return fetchLayoutMode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeLayoutParam", function() { return mergeLayoutParam; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLayoutParams", function() { return getLayoutParams; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copyLayoutParams", function() { return copyLayoutParams; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _format_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./format.js */ "./node_modules/echarts/lib/util/format.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Layout helpers for each component positioning var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]; /** * @public */ var LOCATION_PARAMS = ['left', 'right', 'top', 'bottom', 'width', 'height']; /** * @public */ var HV_NAMES = [['width', 'left', 'right'], ['height', 'top', 'bottom']]; function boxLayout(orient, group, gap, maxWidth, maxHeight) { var x = 0; var y = 0; if (maxWidth == null) { maxWidth = Infinity; } if (maxHeight == null) { maxHeight = Infinity; } var currentLineMaxSize = 0; group.eachChild(function (child, idx) { var rect = child.getBoundingRect(); var nextChild = group.childAt(idx + 1); var nextChildRect = nextChild && nextChild.getBoundingRect(); var nextX; var nextY; if (orient === 'horizontal') { var moveX = rect.width + (nextChildRect ? -nextChildRect.x + rect.x : 0); nextX = x + moveX; // Wrap when width exceeds maxWidth or meet a `newline` group // FIXME compare before adding gap? if (nextX > maxWidth || child.newline) { x = 0; nextX = moveX; y += currentLineMaxSize + gap; currentLineMaxSize = rect.height; } else { // FIXME: consider rect.y is not `0`? currentLineMaxSize = Math.max(currentLineMaxSize, rect.height); } } else { var moveY = rect.height + (nextChildRect ? -nextChildRect.y + rect.y : 0); nextY = y + moveY; // Wrap when width exceeds maxHeight or meet a `newline` group if (nextY > maxHeight || child.newline) { x += currentLineMaxSize + gap; y = 0; nextY = moveY; currentLineMaxSize = rect.width; } else { currentLineMaxSize = Math.max(currentLineMaxSize, rect.width); } } if (child.newline) { return; } child.x = x; child.y = y; child.markRedraw(); orient === 'horizontal' ? x = nextX + gap : y = nextY + gap; }); } /** * VBox or HBox layouting * @param {string} orient * @param {module:zrender/graphic/Group} group * @param {number} gap * @param {number} [width=Infinity] * @param {number} [height=Infinity] */ var box = boxLayout; /** * VBox layouting * @param {module:zrender/graphic/Group} group * @param {number} gap * @param {number} [width=Infinity] * @param {number} [height=Infinity] */ var vbox = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"](boxLayout, 'vertical'); /** * HBox layouting * @param {module:zrender/graphic/Group} group * @param {number} gap * @param {number} [width=Infinity] * @param {number} [height=Infinity] */ var hbox = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["curry"](boxLayout, 'horizontal'); /** * If x or x2 is not specified or 'center' 'left' 'right', * the width would be as long as possible. * If y or y2 is not specified or 'middle' 'top' 'bottom', * the height would be as long as possible. */ function getAvailableSize(positionInfo, containerRect, margin) { var containerWidth = containerRect.width; var containerHeight = containerRect.height; var x = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(positionInfo.left, containerWidth); var y = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(positionInfo.top, containerHeight); var x2 = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(positionInfo.right, containerWidth); var y2 = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(positionInfo.bottom, containerHeight); (isNaN(x) || isNaN(parseFloat(positionInfo.left))) && (x = 0); (isNaN(x2) || isNaN(parseFloat(positionInfo.right))) && (x2 = containerWidth); (isNaN(y) || isNaN(parseFloat(positionInfo.top))) && (y = 0); (isNaN(y2) || isNaN(parseFloat(positionInfo.bottom))) && (y2 = containerHeight); margin = _format_js__WEBPACK_IMPORTED_MODULE_3__["normalizeCssArray"](margin || 0); return { width: Math.max(x2 - x - margin[1] - margin[3], 0), height: Math.max(y2 - y - margin[0] - margin[2], 0) }; } /** * Parse position info. */ function getLayoutRect(positionInfo, containerRect, margin) { margin = _format_js__WEBPACK_IMPORTED_MODULE_3__["normalizeCssArray"](margin || 0); var containerWidth = containerRect.width; var containerHeight = containerRect.height; var left = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(positionInfo.left, containerWidth); var top = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(positionInfo.top, containerHeight); var right = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(positionInfo.right, containerWidth); var bottom = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(positionInfo.bottom, containerHeight); var width = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(positionInfo.width, containerWidth); var height = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["parsePercent"])(positionInfo.height, containerHeight); var verticalMargin = margin[2] + margin[0]; var horizontalMargin = margin[1] + margin[3]; var aspect = positionInfo.aspect; // If width is not specified, calculate width from left and right if (isNaN(width)) { width = containerWidth - right - horizontalMargin - left; } if (isNaN(height)) { height = containerHeight - bottom - verticalMargin - top; } if (aspect != null) { // If width and height are not given // 1. Graph should not exceeds the container // 2. Aspect must be keeped // 3. Graph should take the space as more as possible // FIXME // Margin is not considered, because there is no case that both // using margin and aspect so far. if (isNaN(width) && isNaN(height)) { if (aspect > containerWidth / containerHeight) { width = containerWidth * 0.8; } else { height = containerHeight * 0.8; } } // Calculate width or height with given aspect if (isNaN(width)) { width = aspect * height; } if (isNaN(height)) { height = width / aspect; } } // If left is not specified, calculate left from right and width if (isNaN(left)) { left = containerWidth - right - width - horizontalMargin; } if (isNaN(top)) { top = containerHeight - bottom - height - verticalMargin; } // Align left and top switch (positionInfo.left || positionInfo.right) { case 'center': left = containerWidth / 2 - width / 2 - margin[3]; break; case 'right': left = containerWidth - width - horizontalMargin; break; } switch (positionInfo.top || positionInfo.bottom) { case 'middle': case 'center': top = containerHeight / 2 - height / 2 - margin[0]; break; case 'bottom': top = containerHeight - height - verticalMargin; break; } // If something is wrong and left, top, width, height are calculated as NaN left = left || 0; top = top || 0; if (isNaN(width)) { // Width may be NaN if only one value is given except width width = containerWidth - horizontalMargin - left - (right || 0); } if (isNaN(height)) { // Height may be NaN if only one value is given except height height = containerHeight - verticalMargin - top - (bottom || 0); } var rect = new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__["default"](left + margin[3], top + margin[0], width, height); rect.margin = margin; return rect; } /** * Position a zr element in viewport * Group position is specified by either * {left, top}, {right, bottom} * If all properties exists, right and bottom will be igonred. * * Logic: * 1. Scale (against origin point in parent coord) * 2. Rotate (against origin point in parent coord) * 3. Translate (with el.position by this method) * So this method only fixes the last step 'Translate', which does not affect * scaling and rotating. * * If be called repeatedly with the same input el, the same result will be gotten. * * Return true if the layout happened. * * @param el Should have `getBoundingRect` method. * @param positionInfo * @param positionInfo.left * @param positionInfo.top * @param positionInfo.right * @param positionInfo.bottom * @param positionInfo.width Only for opt.boundingModel: 'raw' * @param positionInfo.height Only for opt.boundingModel: 'raw' * @param containerRect * @param margin * @param opt * @param opt.hv Only horizontal or only vertical. Default to be [1, 1] * @param opt.boundingMode * Specify how to calculate boundingRect when locating. * 'all': Position the boundingRect that is transformed and uioned * both itself and its descendants. * This mode simplies confine the elements in the bounding * of their container (e.g., using 'right: 0'). * 'raw': Position the boundingRect that is not transformed and only itself. * This mode is useful when you want a element can overflow its * container. (Consider a rotated circle needs to be located in a corner.) * In this mode positionInfo.width/height can only be number. */ function positionElement(el, positionInfo, containerRect, margin, opt, out) { var h = !opt || !opt.hv || opt.hv[0]; var v = !opt || !opt.hv || opt.hv[1]; var boundingMode = opt && opt.boundingMode || 'all'; out = out || el; out.x = el.x; out.y = el.y; if (!h && !v) { return false; } var rect; if (boundingMode === 'raw') { rect = el.type === 'group' ? new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_1__["default"](0, 0, +positionInfo.width || 0, +positionInfo.height || 0) : el.getBoundingRect(); } else { rect = el.getBoundingRect(); if (el.needLocalTransform()) { var transform = el.getLocalTransform(); // Notice: raw rect may be inner object of el, // which should not be modified. rect = rect.clone(); rect.applyTransform(transform); } } // The real width and height can not be specified but calculated by the given el. var layoutRect = getLayoutRect(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"]({ width: rect.width, height: rect.height }, positionInfo), containerRect, margin); // Because 'tranlate' is the last step in transform // (see zrender/core/Transformable#getLocalTransform), // we can just only modify el.position to get final result. var dx = h ? layoutRect.x - rect.x : 0; var dy = v ? layoutRect.y - rect.y : 0; if (boundingMode === 'raw') { out.x = dx; out.y = dy; } else { out.x += dx; out.y += dy; } if (out === el) { el.markRedraw(); } return true; } /** * @param option Contains some of the properties in HV_NAMES. * @param hvIdx 0: horizontal; 1: vertical. */ function sizeCalculable(option, hvIdx) { return option[HV_NAMES[hvIdx][0]] != null || option[HV_NAMES[hvIdx][1]] != null && option[HV_NAMES[hvIdx][2]] != null; } function fetchLayoutMode(ins) { var layoutMode = ins.layoutMode || ins.constructor.layoutMode; return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](layoutMode) ? layoutMode : layoutMode ? { type: layoutMode } : null; } /** * Consider Case: * When default option has {left: 0, width: 100}, and we set {right: 0} * through setOption or media query, using normal zrUtil.merge will cause * {right: 0} does not take effect. * * @example * ComponentModel.extend({ * init: function () { * ... * let inputPositionParams = layout.getLayoutParams(option); * this.mergeOption(inputPositionParams); * }, * mergeOption: function (newOption) { * newOption && zrUtil.merge(thisOption, newOption, true); * layout.mergeLayoutParam(thisOption, newOption); * } * }); * * @param targetOption * @param newOption * @param opt */ function mergeLayoutParam(targetOption, newOption, opt) { var ignoreSize = opt && opt.ignoreSize; !zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](ignoreSize) && (ignoreSize = [ignoreSize, ignoreSize]); var hResult = merge(HV_NAMES[0], 0); var vResult = merge(HV_NAMES[1], 1); copy(HV_NAMES[0], targetOption, hResult); copy(HV_NAMES[1], targetOption, vResult); function merge(names, hvIdx) { var newParams = {}; var newValueCount = 0; var merged = {}; var mergedValueCount = 0; var enoughParamNumber = 2; each(names, function (name) { merged[name] = targetOption[name]; }); each(names, function (name) { // Consider case: newOption.width is null, which is // set by user for removing width setting. hasProp(newOption, name) && (newParams[name] = merged[name] = newOption[name]); hasValue(newParams, name) && newValueCount++; hasValue(merged, name) && mergedValueCount++; }); if (ignoreSize[hvIdx]) { // Only one of left/right is premitted to exist. if (hasValue(newOption, names[1])) { merged[names[2]] = null; } else if (hasValue(newOption, names[2])) { merged[names[1]] = null; } return merged; } // Case: newOption: {width: ..., right: ...}, // or targetOption: {right: ...} and newOption: {width: ...}, // There is no conflict when merged only has params count // little than enoughParamNumber. if (mergedValueCount === enoughParamNumber || !newValueCount) { return merged; } // Case: newOption: {width: ..., right: ...}, // Than we can make sure user only want those two, and ignore // all origin params in targetOption. else if (newValueCount >= enoughParamNumber) { return newParams; } else { // Chose another param from targetOption by priority. for (var i = 0; i < names.length; i++) { var name_1 = names[i]; if (!hasProp(newParams, name_1) && hasProp(targetOption, name_1)) { newParams[name_1] = targetOption[name_1]; break; } } return newParams; } } function hasProp(obj, name) { return obj.hasOwnProperty(name); } function hasValue(obj, name) { return obj[name] != null && obj[name] !== 'auto'; } function copy(names, target, source) { each(names, function (name) { target[name] = source[name]; }); } } /** * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object. */ function getLayoutParams(source) { return copyLayoutParams({}, source); } /** * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object. * @param {Object} source * @return {Object} Result contains those props. */ function copyLayoutParams(target, source) { source && target && each(LOCATION_PARAMS, function (name) { source.hasOwnProperty(name) && (target[name] = source[name]); }); return target; } /***/ }), /***/ "./node_modules/echarts/lib/util/log.js": /*!**********************************************!*\ !*** ./node_modules/echarts/lib/util/log.js ***! \**********************************************/ /*! exports provided: log, warn, error, deprecateLog, deprecateReplaceLog, makePrintable, throwError */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "log", function() { return log; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warn", function() { return warn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "error", function() { return error; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deprecateLog", function() { return deprecateLog; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deprecateReplaceLog", function() { return deprecateReplaceLog; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makePrintable", function() { return makePrintable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throwError", function() { return throwError; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ECHARTS_PREFIX = '[ECharts] '; var storedLogs = {}; var hasConsole = typeof console !== 'undefined' // eslint-disable-next-line && console.warn && console.log; function outputLog(type, str, onlyOnce) { if (hasConsole) { if (onlyOnce) { if (storedLogs[str]) { return; } storedLogs[str] = true; } // eslint-disable-next-line console[type](ECHARTS_PREFIX + str); } } function log(str, onlyOnce) { outputLog('log', str, onlyOnce); } function warn(str, onlyOnce) { outputLog('warn', str, onlyOnce); } function error(str, onlyOnce) { outputLog('error', str, onlyOnce); } function deprecateLog(str) { if (true) { // Not display duplicate message. outputLog('warn', 'DEPRECATED: ' + str, true); } } function deprecateReplaceLog(oldOpt, newOpt, scope) { if (true) { deprecateLog((scope ? "[" + scope + "]" : '') + (oldOpt + " is deprecated, use " + newOpt + " instead.")); } } /** * If in __DEV__ environment, get console printable message for users hint. * Parameters are separated by ' '. * @usage * makePrintable('This is an error on', someVar, someObj); * * @param hintInfo anything about the current execution context to hint users. * @throws Error */ function makePrintable() { var hintInfo = []; for (var _i = 0; _i < arguments.length; _i++) { hintInfo[_i] = arguments[_i]; } var msg = ''; if (true) { // Fuzzy stringify for print. // This code only exist in dev environment. var makePrintableStringIfPossible_1 = function (val) { return val === void 0 ? 'undefined' : val === Infinity ? 'Infinity' : val === -Infinity ? '-Infinity' : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["eqNaN"])(val) ? 'NaN' : val instanceof Date ? 'Date(' + val.toISOString() + ')' : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(val) ? 'function () { ... }' : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isRegExp"])(val) ? val + '' : null; }; msg = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(hintInfo, function (arg) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(arg)) { // Print without quotation mark for some statement. return arg; } else { var printableStr = makePrintableStringIfPossible_1(arg); if (printableStr != null) { return printableStr; } else if (typeof JSON !== 'undefined' && JSON.stringify) { try { return JSON.stringify(arg, function (n, val) { var printableStr = makePrintableStringIfPossible_1(val); return printableStr == null ? val : printableStr; }); // In most cases the info object is small, so do not line break. } catch (err) { return '?'; } } else { return '?'; } } }).join(' '); } return msg; } /** * @throws Error */ function throwError(msg) { throw new Error(msg); } /***/ }), /***/ "./node_modules/echarts/lib/util/model.js": /*!************************************************!*\ !*** ./node_modules/echarts/lib/util/model.js ***! \************************************************/ /*! exports provided: normalizeToArray, defaultEmphasis, TEXT_STYLE_OPTIONS, getDataItemValue, isDataItemOption, mappingToExists, convertOptionIdName, isNameSpecified, isComponentIdInternal, makeInternalComponentId, setComponentTypeToKeyInfo, compressBatches, queryDataIndex, makeInner, parseFinder, preParseFinder, SINGLE_REFERRING, MULTIPLE_REFERRING, queryReferringComponents, setAttribute, getAttribute, getTooltipRenderMode, groupData, interpolateRawValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeToArray", function() { return normalizeToArray; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultEmphasis", function() { return defaultEmphasis; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TEXT_STYLE_OPTIONS", function() { return TEXT_STYLE_OPTIONS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDataItemValue", function() { return getDataItemValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDataItemOption", function() { return isDataItemOption; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mappingToExists", function() { return mappingToExists; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertOptionIdName", function() { return convertOptionIdName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNameSpecified", function() { return isNameSpecified; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isComponentIdInternal", function() { return isComponentIdInternal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeInternalComponentId", function() { return makeInternalComponentId; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setComponentTypeToKeyInfo", function() { return setComponentTypeToKeyInfo; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "compressBatches", function() { return compressBatches; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "queryDataIndex", function() { return queryDataIndex; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeInner", function() { return makeInner; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseFinder", function() { return parseFinder; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "preParseFinder", function() { return preParseFinder; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SINGLE_REFERRING", function() { return SINGLE_REFERRING; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MULTIPLE_REFERRING", function() { return MULTIPLE_REFERRING; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "queryReferringComponents", function() { return queryReferringComponents; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setAttribute", function() { return setAttribute; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAttribute", function() { return getAttribute; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTooltipRenderMode", function() { return getTooltipRenderMode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "groupData", function() { return groupData; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateRawValues", function() { return interpolateRawValues; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/core/env.js */ "./node_modules/zrender/lib/core/env.js"); /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _log_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function interpolateNumber(p0, p1, percent) { return (p1 - p0) * percent + p0; } /** * Make the name displayable. But we should * make sure it is not duplicated with user * specified name, so use '\0'; */ var DUMMY_COMPONENT_NAME_PREFIX = 'series\0'; var INTERNAL_COMPONENT_ID_PREFIX = '\0_ec_\0'; /** * If value is not array, then translate it to array. * @param {*} value * @return {Array} [value] or value */ function normalizeToArray(value) { return value instanceof Array ? value : value == null ? [] : [value]; } /** * Sync default option between normal and emphasis like `position` and `show` * In case some one will write code like * label: { * show: false, * position: 'outside', * fontSize: 18 * }, * emphasis: { * label: { show: true } * } */ function defaultEmphasis(opt, key, subOpts) { // Caution: performance sensitive. if (opt) { opt[key] = opt[key] || {}; opt.emphasis = opt.emphasis || {}; opt.emphasis[key] = opt.emphasis[key] || {}; // Default emphasis option from normal for (var i = 0, len = subOpts.length; i < len; i++) { var subOptName = subOpts[i]; if (!opt.emphasis[key].hasOwnProperty(subOptName) && opt[key].hasOwnProperty(subOptName)) { opt.emphasis[key][subOptName] = opt[key][subOptName]; } } } } var TEXT_STYLE_OPTIONS = ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily', 'rich', 'tag', 'color', 'textBorderColor', 'textBorderWidth', 'width', 'height', 'lineHeight', 'align', 'verticalAlign', 'baseline', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY', 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY', 'backgroundColor', 'borderColor', 'borderWidth', 'borderRadius', 'padding']; // modelUtil.LABEL_OPTIONS = modelUtil.TEXT_STYLE_OPTIONS.concat([ // 'position', 'offset', 'rotate', 'origin', 'show', 'distance', 'formatter', // 'fontStyle', 'fontWeight', 'fontSize', 'fontFamily', // // FIXME: deprecated, check and remove it. // 'textStyle' // ]); /** * The method does not ensure performance. * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}] * This helper method retrieves value from data. */ function getDataItemValue(dataItem) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(dataItem) && !Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(dataItem) && !(dataItem instanceof Date) ? dataItem.value : dataItem; } /** * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}] * This helper method determine if dataItem has extra option besides value */ function isDataItemOption(dataItem) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(dataItem) && !(dataItem instanceof Array); // // markLine data can be array // && !(dataItem[0] && isObject(dataItem[0]) && !(dataItem[0] instanceof Array)); } ; /** * Mapping to existings for merge. * * Mode "normalMege": * The mapping result (merge result) will keep the order of the existing * component, rather than the order of new option. Because we should ensure * some specified index reference (like xAxisIndex) keep work. * And in most cases, "merge option" is used to update partial option but not * be expected to change the order. * * Mode "replaceMege": * (1) Only the id mapped components will be merged. * (2) Other existing components (except internal components) will be removed. * (3) Other new options will be used to create new component. * (4) The index of the existing components will not be modified. * That means their might be "hole" after the removal. * The new components are created first at those available index. * * Mode "replaceAll": * This mode try to support that reproduce an echarts instance from another * echarts instance (via `getOption`) in some simple cases. * In this scenario, the `result` index are exactly the consistent with the `newCmptOptions`, * which ensures the component index referring (like `xAxisIndex: ?`) corrent. That is, * the "hole" in `newCmptOptions` will also be kept. * On the contrary, other modes try best to eliminate holes. * PENDING: This is an experimental mode yet. * * @return See the comment of . */ function mappingToExists(existings, newCmptOptions, mode) { var isNormalMergeMode = mode === 'normalMerge'; var isReplaceMergeMode = mode === 'replaceMerge'; var isReplaceAllMode = mode === 'replaceAll'; existings = existings || []; newCmptOptions = (newCmptOptions || []).slice(); var existingIdIdxMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); // Validate id and name on user input option. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(newCmptOptions, function (cmptOption, index) { if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(cmptOption)) { newCmptOptions[index] = null; return; } if (true) { // There is some legacy case that name is set as `false`. // But should work normally rather than throw error. if (cmptOption.id != null && !isValidIdOrName(cmptOption.id)) { warnInvalidateIdOrName(cmptOption.id); } if (cmptOption.name != null && !isValidIdOrName(cmptOption.name)) { warnInvalidateIdOrName(cmptOption.name); } } }); var result = prepareResult(existings, existingIdIdxMap, mode); if (isNormalMergeMode || isReplaceMergeMode) { mappingById(result, existings, existingIdIdxMap, newCmptOptions); } if (isNormalMergeMode) { mappingByName(result, newCmptOptions); } if (isNormalMergeMode || isReplaceMergeMode) { mappingByIndex(result, newCmptOptions, isReplaceMergeMode); } else if (isReplaceAllMode) { mappingInReplaceAllMode(result, newCmptOptions); } makeIdAndName(result); // The array `result` MUST NOT contain elided items, otherwise the // forEach will omit those items and result in incorrect result. return result; } function prepareResult(existings, existingIdIdxMap, mode) { var result = []; if (mode === 'replaceAll') { return result; } // Do not use native `map` to in case that the array `existings` // contains elided items, which will be omitted. for (var index = 0; index < existings.length; index++) { var existing = existings[index]; // Because of replaceMerge, `existing` may be null/undefined. if (existing && existing.id != null) { existingIdIdxMap.set(existing.id, index); } // For non-internal-componnets: // Mode "normalMerge": all existings kept. // Mode "replaceMerge": all existing removed unless mapped by id. // For internal-components: // go with "replaceMerge" approach in both mode. result.push({ existing: mode === 'replaceMerge' || isComponentIdInternal(existing) ? null : existing, newOption: null, keyInfo: null, brandNew: null }); } return result; } function mappingById(result, existings, existingIdIdxMap, newCmptOptions) { // Mapping by id if specified. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(newCmptOptions, function (cmptOption, index) { if (!cmptOption || cmptOption.id == null) { return; } var optionId = makeComparableKey(cmptOption.id); var existingIdx = existingIdIdxMap.get(optionId); if (existingIdx != null) { var resultItem = result[existingIdx]; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(!resultItem.newOption, 'Duplicated option on id "' + optionId + '".'); resultItem.newOption = cmptOption; // In both mode, if id matched, new option will be merged to // the existings rather than creating new component model. resultItem.existing = existings[existingIdx]; newCmptOptions[index] = null; } }); } function mappingByName(result, newCmptOptions) { // Mapping by name if specified. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(newCmptOptions, function (cmptOption, index) { if (!cmptOption || cmptOption.name == null) { return; } for (var i = 0; i < result.length; i++) { var existing = result[i].existing; if (!result[i].newOption // Consider name: two map to one. // Can not match when both ids existing but different. && existing && (existing.id == null || cmptOption.id == null) && !isComponentIdInternal(cmptOption) && !isComponentIdInternal(existing) && keyExistAndEqual('name', existing, cmptOption)) { result[i].newOption = cmptOption; newCmptOptions[index] = null; return; } } }); } function mappingByIndex(result, newCmptOptions, brandNew) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(newCmptOptions, function (cmptOption) { if (!cmptOption) { return; } // Find the first place that not mapped by id and not internal component (consider the "hole"). var resultItem; var nextIdx = 0; while ( // Be `!resultItem` only when `nextIdx >= result.length`. (resultItem = result[nextIdx] // (1) Existing models that already have id should be able to mapped to. Because // after mapping performed, model will always be assigned with an id if user not given. // After that all models have id. // (2) If new option has id, it can only set to a hole or append to the last. It should // not be merged to the existings with different id. Because id should not be overwritten. // (3) Name can be overwritten, because axis use name as 'show label text'. ) && (resultItem.newOption || isComponentIdInternal(resultItem.existing) || // In mode "replaceMerge", here no not-mapped-non-internal-existing. resultItem.existing && cmptOption.id != null && !keyExistAndEqual('id', cmptOption, resultItem.existing))) { nextIdx++; } if (resultItem) { resultItem.newOption = cmptOption; resultItem.brandNew = brandNew; } else { result.push({ newOption: cmptOption, brandNew: brandNew, existing: null, keyInfo: null }); } nextIdx++; }); } function mappingInReplaceAllMode(result, newCmptOptions) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(newCmptOptions, function (cmptOption) { // The feature "reproduce" requires "hole" will also reproduced // in case that component index referring are broken. result.push({ newOption: cmptOption, brandNew: true, existing: null, keyInfo: null }); }); } /** * Make id and name for mapping result (result of mappingToExists) * into `keyInfo` field. */ function makeIdAndName(mapResult) { // We use this id to hash component models and view instances // in echarts. id can be specified by user, or auto generated. // The id generation rule ensures new view instance are able // to mapped to old instance when setOption are called in // no-merge mode. So we generate model id by name and plus // type in view id. // name can be duplicated among components, which is convenient // to specify multi components (like series) by one name. // Ensure that each id is distinct. var idMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(mapResult, function (item) { var existing = item.existing; existing && idMap.set(existing.id, item); }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(mapResult, function (item) { var opt = item.newOption; // Force ensure id not duplicated. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(!opt || opt.id == null || !idMap.get(opt.id) || idMap.get(opt.id) === item, 'id duplicates: ' + (opt && opt.id)); opt && opt.id != null && idMap.set(opt.id, item); !item.keyInfo && (item.keyInfo = {}); }); // Make name and id. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(mapResult, function (item, index) { var existing = item.existing; var opt = item.newOption; var keyInfo = item.keyInfo; if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(opt)) { return; } // Name can be overwritten. Consider case: axis.name = '20km'. // But id generated by name will not be changed, which affect // only in that case: setOption with 'not merge mode' and view // instance will be recreated, which can be accepted. keyInfo.name = opt.name != null ? makeComparableKey(opt.name) : existing ? existing.name // Avoid that different series has the same name, // because name may be used like in color pallet. : DUMMY_COMPONENT_NAME_PREFIX + index; if (existing) { keyInfo.id = makeComparableKey(existing.id); } else if (opt.id != null) { keyInfo.id = makeComparableKey(opt.id); } else { // Consider this situatoin: // optionA: [{name: 'a'}, {name: 'a'}, {..}] // optionB [{..}, {name: 'a'}, {name: 'a'}] // Series with the same name between optionA and optionB // should be mapped. var idNum = 0; do { keyInfo.id = '\0' + keyInfo.name + '\0' + idNum++; } while (idMap.get(keyInfo.id)); } idMap.set(keyInfo.id, item); }); } function keyExistAndEqual(attr, obj1, obj2) { var key1 = convertOptionIdName(obj1[attr], null); var key2 = convertOptionIdName(obj2[attr], null); // See `MappingExistingItem`. `id` and `name` trade string equals to number. return key1 != null && key2 != null && key1 === key2; } /** * @return return null if not exist. */ function makeComparableKey(val) { if (true) { if (val == null) { throw new Error(); } } return convertOptionIdName(val, ''); } function convertOptionIdName(idOrName, defaultValue) { if (idOrName == null) { return defaultValue; } return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(idOrName) ? idOrName : Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isNumber"])(idOrName) || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isStringSafe"])(idOrName) ? idOrName + '' : defaultValue; } function warnInvalidateIdOrName(idOrName) { if (true) { Object(_log_js__WEBPACK_IMPORTED_MODULE_3__["warn"])('`' + idOrName + '` is invalid id or name. Must be a string or number.'); } } function isValidIdOrName(idOrName) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isStringSafe"])(idOrName) || Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(idOrName); } function isNameSpecified(componentModel) { var name = componentModel.name; // Is specified when `indexOf` get -1 or > 0. return !!(name && name.indexOf(DUMMY_COMPONENT_NAME_PREFIX)); } /** * @public * @param {Object} cmptOption * @return {boolean} */ function isComponentIdInternal(cmptOption) { return cmptOption && cmptOption.id != null && makeComparableKey(cmptOption.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX) === 0; } function makeInternalComponentId(idSuffix) { return INTERNAL_COMPONENT_ID_PREFIX + idSuffix; } function setComponentTypeToKeyInfo(mappingResult, mainType, componentModelCtor) { // Set mainType and complete subType. Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(mappingResult, function (item) { var newOption = item.newOption; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(newOption)) { item.keyInfo.mainType = mainType; item.keyInfo.subType = determineSubType(mainType, newOption, item.existing, componentModelCtor); } }); } function determineSubType(mainType, newCmptOption, existComponent, componentModelCtor) { var subType = newCmptOption.type ? newCmptOption.type : existComponent ? existComponent.subType // Use determineSubType only when there is no existComponent. : componentModelCtor.determineSubType(mainType, newCmptOption); // tooltip, markline, markpoint may always has no subType return subType; } /** * A helper for removing duplicate items between batchA and batchB, * and in themselves, and categorize by series. * * @param batchA Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...] * @param batchB Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...] * @return result: [resultBatchA, resultBatchB] */ function compressBatches(batchA, batchB) { var mapA = {}; var mapB = {}; makeMap(batchA || [], mapA); makeMap(batchB || [], mapB, mapA); return [mapToArray(mapA), mapToArray(mapB)]; function makeMap(sourceBatch, map, otherMap) { for (var i = 0, len = sourceBatch.length; i < len; i++) { var seriesId = convertOptionIdName(sourceBatch[i].seriesId, null); if (seriesId == null) { return; } var dataIndices = normalizeToArray(sourceBatch[i].dataIndex); var otherDataIndices = otherMap && otherMap[seriesId]; for (var j = 0, lenj = dataIndices.length; j < lenj; j++) { var dataIndex = dataIndices[j]; if (otherDataIndices && otherDataIndices[dataIndex]) { otherDataIndices[dataIndex] = null; } else { (map[seriesId] || (map[seriesId] = {}))[dataIndex] = 1; } } } } function mapToArray(map, isData) { var result = []; for (var i in map) { if (map.hasOwnProperty(i) && map[i] != null) { if (isData) { result.push(+i); } else { var dataIndices = mapToArray(map[i], true); dataIndices.length && result.push({ seriesId: i, dataIndex: dataIndices }); } } } return result; } } /** * @param payload Contains dataIndex (means rawIndex) / dataIndexInside / name * each of which can be Array or primary type. * @return dataIndex If not found, return undefined/null. */ function queryDataIndex(data, payload) { if (payload.dataIndexInside != null) { return payload.dataIndexInside; } else if (payload.dataIndex != null) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(payload.dataIndex) ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(payload.dataIndex, function (value) { return data.indexOfRawIndex(value); }) : data.indexOfRawIndex(payload.dataIndex); } else if (payload.name != null) { return Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(payload.name) ? Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"])(payload.name, function (value) { return data.indexOfName(value); }) : data.indexOfName(payload.name); } } /** * Enable property storage to any host object. * Notice: Serialization is not supported. * * For example: * let inner = zrUitl.makeInner(); * * function some1(hostObj) { * inner(hostObj).someProperty = 1212; * ... * } * function some2() { * let fields = inner(this); * fields.someProperty1 = 1212; * fields.someProperty2 = 'xx'; * ... * } * * @return {Function} */ function makeInner() { var key = '__ec_inner_' + innerUniqueIndex++; return function (hostObj) { return hostObj[key] || (hostObj[key] = {}); }; } var innerUniqueIndex = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["getRandomIdBase"])(); /** * The same behavior as `component.getReferringComponents`. */ function parseFinder(ecModel, finderInput, opt) { var _a = preParseFinder(finderInput, opt), mainTypeSpecified = _a.mainTypeSpecified, queryOptionMap = _a.queryOptionMap, others = _a.others; var result = others; var defaultMainType = opt ? opt.defaultMainType : null; if (!mainTypeSpecified && defaultMainType) { queryOptionMap.set(defaultMainType, {}); } queryOptionMap.each(function (queryOption, mainType) { var queryResult = queryReferringComponents(ecModel, mainType, queryOption, { useDefault: defaultMainType === mainType, enableAll: opt && opt.enableAll != null ? opt.enableAll : true, enableNone: opt && opt.enableNone != null ? opt.enableNone : true }); result[mainType + 'Models'] = queryResult.models; result[mainType + 'Model'] = queryResult.models[0]; }); return result; } function preParseFinder(finderInput, opt) { var finder; if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(finderInput)) { var obj = {}; obj[finderInput + 'Index'] = 0; finder = obj; } else { finder = finderInput; } var queryOptionMap = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); var others = {}; var mainTypeSpecified = false; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(finder, function (value, key) { // Exclude 'dataIndex' and other illgal keys. if (key === 'dataIndex' || key === 'dataIndexInside') { others[key] = value; return; } var parsedKey = key.match(/^(\w+)(Index|Id|Name)$/) || []; var mainType = parsedKey[1]; var queryType = (parsedKey[2] || '').toLowerCase(); if (!mainType || !queryType || opt && opt.includeMainTypes && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"])(opt.includeMainTypes, mainType) < 0) { return; } mainTypeSpecified = mainTypeSpecified || !!mainType; var queryOption = queryOptionMap.get(mainType) || queryOptionMap.set(mainType, {}); queryOption[queryType] = value; }); return { mainTypeSpecified: mainTypeSpecified, queryOptionMap: queryOptionMap, others: others }; } var SINGLE_REFERRING = { useDefault: true, enableAll: false, enableNone: false }; var MULTIPLE_REFERRING = { useDefault: false, enableAll: true, enableNone: true }; function queryReferringComponents(ecModel, mainType, userOption, opt) { opt = opt || SINGLE_REFERRING; var indexOption = userOption.index; var idOption = userOption.id; var nameOption = userOption.name; var result = { models: null, specified: indexOption != null || idOption != null || nameOption != null }; if (!result.specified) { // Use the first as default if `useDefault`. var firstCmpt = void 0; result.models = opt.useDefault && (firstCmpt = ecModel.getComponent(mainType)) ? [firstCmpt] : []; return result; } if (indexOption === 'none' || indexOption === false) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(opt.enableNone, '`"none"` or `false` is not a valid value on index option.'); result.models = []; return result; } // `queryComponents` will return all components if // both all of index/id/name are null/undefined. if (indexOption === 'all') { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"])(opt.enableAll, '`"all"` is not a valid value on index option.'); indexOption = idOption = nameOption = null; } result.models = ecModel.queryComponents({ mainType: mainType, index: indexOption, id: idOption, name: nameOption }); return result; } function setAttribute(dom, key, value) { dom.setAttribute ? dom.setAttribute(key, value) : dom[key] = value; } function getAttribute(dom, key) { return dom.getAttribute ? dom.getAttribute(key) : dom[key]; } function getTooltipRenderMode(renderModeOption) { if (renderModeOption === 'auto') { // Using html when `document` exists, use richText otherwise return zrender_lib_core_env_js__WEBPACK_IMPORTED_MODULE_1__["default"].domSupported ? 'html' : 'richText'; } else { return renderModeOption || 'html'; } } /** * Group a list by key. */ function groupData(array, getKey // return key ) { var buckets = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); var keys = []; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(array, function (item) { var key = getKey(item); (buckets.get(key) || (keys.push(key), buckets.set(key, []))).push(item); }); return { keys: keys, buckets: buckets }; } /** * Interpolate raw values of a series with percent * * @param data data * @param labelModel label model of the text element * @param sourceValue start value. May be null/undefined when init. * @param targetValue end value * @param percent 0~1 percentage; 0 uses start value while 1 uses end value * @return interpolated values * If `sourceValue` and `targetValue` are `number`, return `number`. * If `sourceValue` and `targetValue` are `string`, return `string`. * If `sourceValue` and `targetValue` are `(string | number)[]`, return `(string | number)[]`. * Other cases do not supported. */ function interpolateRawValues(data, precision, sourceValue, targetValue, percent) { var isAutoPrecision = precision == null || precision === 'auto'; if (targetValue == null) { return targetValue; } if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isNumber"])(targetValue)) { var value = interpolateNumber(sourceValue || 0, targetValue, percent); return Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["round"])(value, isAutoPrecision ? Math.max(Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["getPrecision"])(sourceValue || 0), Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["getPrecision"])(targetValue)) : precision); } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"])(targetValue)) { return percent < 1 ? sourceValue : targetValue; } else { var interpolated = []; var leftArr = sourceValue; var rightArr = targetValue; var length_1 = Math.max(leftArr ? leftArr.length : 0, rightArr.length); for (var i = 0; i < length_1; ++i) { var info = data.getDimensionInfo(i); // Don't interpolate ordinal dims if (info && info.type === 'ordinal') { // In init, there is no `sourceValue`, but should better not to get undefined result. interpolated[i] = (percent < 1 && leftArr ? leftArr : rightArr)[i]; } else { var leftVal = leftArr && leftArr[i] ? leftArr[i] : 0; var rightVal = rightArr[i]; var value = interpolateNumber(leftVal, rightVal, percent); interpolated[i] = Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["round"])(value, isAutoPrecision ? Math.max(Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["getPrecision"])(leftVal), Object(_number_js__WEBPACK_IMPORTED_MODULE_2__["getPrecision"])(rightVal)) : precision); } } return interpolated; } } /***/ }), /***/ "./node_modules/echarts/lib/util/number.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/util/number.js ***! \*************************************************/ /*! exports provided: linearMap, parsePercent, round, asc, getPrecision, getPrecisionSafe, getPixelPrecision, getPercentWithPrecision, getPercentSeats, addSafe, MAX_SAFE_INTEGER, remRadian, isRadianAroundZero, parseDate, quantity, quantityExponent, nice, quantile, reformIntervals, numericToNumber, isNumeric, getRandomIdBase, getGreatestCommonDividor, getLeastCommonMultiple */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linearMap", function() { return linearMap; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parsePercent", function() { return parsePercent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "round", function() { return round; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asc", function() { return asc; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPrecision", function() { return getPrecision; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPrecisionSafe", function() { return getPrecisionSafe; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPixelPrecision", function() { return getPixelPrecision; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPercentWithPrecision", function() { return getPercentWithPrecision; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPercentSeats", function() { return getPercentSeats; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addSafe", function() { return addSafe; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAX_SAFE_INTEGER", function() { return MAX_SAFE_INTEGER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "remRadian", function() { return remRadian; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isRadianAroundZero", function() { return isRadianAroundZero; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDate", function() { return parseDate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quantity", function() { return quantity; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quantityExponent", function() { return quantityExponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nice", function() { return nice; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quantile", function() { return quantile; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reformIntervals", function() { return reformIntervals; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "numericToNumber", function() { return numericToNumber; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNumeric", function() { return isNumeric; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRandomIdBase", function() { return getRandomIdBase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getGreatestCommonDividor", function() { return getGreatestCommonDividor; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLeastCommonMultiple", function() { return getLeastCommonMultiple; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * A third-party license is embedded for some of the code in this file: * The method "quantile" was copied from "d3.js". * (See more details in the comment of the method below.) * The use of the source code of this file is also subject to the terms * and consitions of the license of "d3.js" (BSD-3Clause, see * ). */ var RADIAN_EPSILON = 1e-4; // Although chrome already enlarge this number to 100 for `toFixed`, but // we sill follow the spec for compatibility. var ROUND_SUPPORTED_PRECISION_MAX = 20; function _trim(str) { return str.replace(/^\s+|\s+$/g, ''); } /** * Linear mapping a value from domain to range * @param val * @param domain Domain extent domain[0] can be bigger than domain[1] * @param range Range extent range[0] can be bigger than range[1] * @param clamp Default to be false */ function linearMap(val, domain, range, clamp) { var d0 = domain[0]; var d1 = domain[1]; var r0 = range[0]; var r1 = range[1]; var subDomain = d1 - d0; var subRange = r1 - r0; if (subDomain === 0) { return subRange === 0 ? r0 : (r0 + r1) / 2; } // Avoid accuracy problem in edge, such as // 146.39 - 62.83 === 83.55999999999999. // See echarts/test/ut/spec/util/number.js#linearMap#accuracyError // It is a little verbose for efficiency considering this method // is a hotspot. if (clamp) { if (subDomain > 0) { if (val <= d0) { return r0; } else if (val >= d1) { return r1; } } else { if (val >= d0) { return r0; } else if (val <= d1) { return r1; } } } else { if (val === d0) { return r0; } if (val === d1) { return r1; } } return (val - d0) / subDomain * subRange + r0; } /** * Convert a percent string to absolute number. * Returns NaN if percent is not a valid string or number */ function parsePercent(percent, all) { switch (percent) { case 'center': case 'middle': percent = '50%'; break; case 'left': case 'top': percent = '0%'; break; case 'right': case 'bottom': percent = '100%'; break; } if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](percent)) { if (_trim(percent).match(/%$/)) { return parseFloat(percent) / 100 * all; } return parseFloat(percent); } return percent == null ? NaN : +percent; } function round(x, precision, returnStr) { if (precision == null) { precision = 10; } // Avoid range error precision = Math.min(Math.max(0, precision), ROUND_SUPPORTED_PRECISION_MAX); // PENDING: 1.005.toFixed(2) is '1.00' rather than '1.01' x = (+x).toFixed(precision); return returnStr ? x : +x; } /** * Inplacd asc sort arr. * The input arr will be modified. */ function asc(arr) { arr.sort(function (a, b) { return a - b; }); return arr; } /** * Get precision. */ function getPrecision(val) { val = +val; if (isNaN(val)) { return 0; } // It is much faster than methods converting number to string as follows // let tmp = val.toString(); // return tmp.length - 1 - tmp.indexOf('.'); // especially when precision is low // Notice: // (1) If the loop count is over about 20, it is slower than `getPrecisionSafe`. // (see https://jsbench.me/2vkpcekkvw/1) // (2) If the val is less than for example 1e-15, the result may be incorrect. // (see test/ut/spec/util/number.test.ts `getPrecision_equal_random`) if (val > 1e-14) { var e = 1; for (var i = 0; i < 15; i++, e *= 10) { if (Math.round(val * e) / e === val) { return i; } } } return getPrecisionSafe(val); } /** * Get precision with slow but safe method */ function getPrecisionSafe(val) { // toLowerCase for: '3.4E-12' var str = val.toString().toLowerCase(); // Consider scientific notation: '3.4e-12' '3.4e+12' var eIndex = str.indexOf('e'); var exp = eIndex > 0 ? +str.slice(eIndex + 1) : 0; var significandPartLen = eIndex > 0 ? eIndex : str.length; var dotIndex = str.indexOf('.'); var decimalPartLen = dotIndex < 0 ? 0 : significandPartLen - 1 - dotIndex; return Math.max(0, decimalPartLen - exp); } /** * Minimal dicernible data precisioin according to a single pixel. */ function getPixelPrecision(dataExtent, pixelExtent) { var log = Math.log; var LN10 = Math.LN10; var dataQuantity = Math.floor(log(dataExtent[1] - dataExtent[0]) / LN10); var sizeQuantity = Math.round(log(Math.abs(pixelExtent[1] - pixelExtent[0])) / LN10); // toFixed() digits argument must be between 0 and 20. var precision = Math.min(Math.max(-dataQuantity + sizeQuantity, 0), 20); return !isFinite(precision) ? 20 : precision; } /** * Get a data of given precision, assuring the sum of percentages * in valueList is 1. * The largest remainder method is used. * https://en.wikipedia.org/wiki/Largest_remainder_method * * @param valueList a list of all data * @param idx index of the data to be processed in valueList * @param precision integer number showing digits of precision * @return percent ranging from 0 to 100 */ function getPercentWithPrecision(valueList, idx, precision) { if (!valueList[idx]) { return 0; } var seats = getPercentSeats(valueList, precision); return seats[idx] || 0; } /** * Get a data of given precision, assuring the sum of percentages * in valueList is 1. * The largest remainder method is used. * https://en.wikipedia.org/wiki/Largest_remainder_method * * @param valueList a list of all data * @param precision integer number showing digits of precision * @return {Array} */ function getPercentSeats(valueList, precision) { var sum = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["reduce"](valueList, function (acc, val) { return acc + (isNaN(val) ? 0 : val); }, 0); if (sum === 0) { return []; } var digits = Math.pow(10, precision); var votesPerQuota = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](valueList, function (val) { return (isNaN(val) ? 0 : val) / sum * digits * 100; }); var targetSeats = digits * 100; var seats = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](votesPerQuota, function (votes) { // Assign automatic seats. return Math.floor(votes); }); var currentSum = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["reduce"](seats, function (acc, val) { return acc + val; }, 0); var remainder = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](votesPerQuota, function (votes, idx) { return votes - seats[idx]; }); // Has remainding votes. while (currentSum < targetSeats) { // Find next largest remainder. var max = Number.NEGATIVE_INFINITY; var maxId = null; for (var i = 0, len = remainder.length; i < len; ++i) { if (remainder[i] > max) { max = remainder[i]; maxId = i; } } // Add a vote to max remainder. ++seats[maxId]; remainder[maxId] = 0; ++currentSum; } return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](seats, function (seat) { return seat / digits; }); } /** * Solve the floating point adding problem like 0.1 + 0.2 === 0.30000000000000004 * See */ function addSafe(val0, val1) { var maxPrecision = Math.max(getPrecision(val0), getPrecision(val1)); // const multiplier = Math.pow(10, maxPrecision); // return (Math.round(val0 * multiplier) + Math.round(val1 * multiplier)) / multiplier; var sum = val0 + val1; // // PENDING: support more? return maxPrecision > ROUND_SUPPORTED_PRECISION_MAX ? sum : round(sum, maxPrecision); } // Number.MAX_SAFE_INTEGER, ie do not support. var MAX_SAFE_INTEGER = 9007199254740991; /** * To 0 - 2 * PI, considering negative radian. */ function remRadian(radian) { var pi2 = Math.PI * 2; return (radian % pi2 + pi2) % pi2; } /** * @param {type} radian * @return {boolean} */ function isRadianAroundZero(val) { return val > -RADIAN_EPSILON && val < RADIAN_EPSILON; } // eslint-disable-next-line var TIME_REG = /^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/; // jshint ignore:line /** * @param value valid type: number | string | Date, otherwise return `new Date(NaN)` * These values can be accepted: * + An instance of Date, represent a time in its own time zone. * + Or string in a subset of ISO 8601, only including: * + only year, month, date: '2012-03', '2012-03-01', '2012-03-01 05', '2012-03-01 05:06', * + separated with T or space: '2012-03-01T12:22:33.123', '2012-03-01 12:22:33.123', * + time zone: '2012-03-01T12:22:33Z', '2012-03-01T12:22:33+8000', '2012-03-01T12:22:33-05:00', * all of which will be treated as local time if time zone is not specified * (see ). * + Or other string format, including (all of which will be treated as local time): * '2012', '2012-3-1', '2012/3/1', '2012/03/01', * '2009/6/12 2:00', '2009/6/12 2:05:08', '2009/6/12 2:05:08.123' * + a timestamp, which represent a time in UTC. * @return date Never be null/undefined. If invalid, return `new Date(NaN)`. */ function parseDate(value) { if (value instanceof Date) { return value; } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](value)) { // Different browsers parse date in different way, so we parse it manually. // Some other issues: // new Date('1970-01-01') is UTC, // new Date('1970/01/01') and new Date('1970-1-01') is local. // See issue #3623 var match = TIME_REG.exec(value); if (!match) { // return Invalid Date. return new Date(NaN); } // Use local time when no timezone offset is specified. if (!match[8]) { // match[n] can only be string or undefined. // But take care of '12' + 1 => '121'. return new Date(+match[1], +(match[2] || 1) - 1, +match[3] || 1, +match[4] || 0, +(match[5] || 0), +match[6] || 0, match[7] ? +match[7].substring(0, 3) : 0); } // Timezoneoffset of Javascript Date has considered DST (Daylight Saving Time, // https://tc39.github.io/ecma262/#sec-daylight-saving-time-adjustment). // For example, system timezone is set as "Time Zone: America/Toronto", // then these code will get different result: // `new Date(1478411999999).getTimezoneOffset(); // get 240` // `new Date(1478412000000).getTimezoneOffset(); // get 300` // So we should not use `new Date`, but use `Date.UTC`. else { var hour = +match[4] || 0; if (match[8].toUpperCase() !== 'Z') { hour -= +match[8].slice(0, 3); } return new Date(Date.UTC(+match[1], +(match[2] || 1) - 1, +match[3] || 1, hour, +(match[5] || 0), +match[6] || 0, match[7] ? +match[7].substring(0, 3) : 0)); } } else if (value == null) { return new Date(NaN); } return new Date(Math.round(value)); } /** * Quantity of a number. e.g. 0.1, 1, 10, 100 * * @param val * @return */ function quantity(val) { return Math.pow(10, quantityExponent(val)); } /** * Exponent of the quantity of a number * e.g., 1234 equals to 1.234*10^3, so quantityExponent(1234) is 3 * * @param val non-negative value * @return */ function quantityExponent(val) { if (val === 0) { return 0; } var exp = Math.floor(Math.log(val) / Math.LN10); /** * exp is expected to be the rounded-down result of the base-10 log of val. * But due to the precision loss with Math.log(val), we need to restore it * using 10^exp to make sure we can get val back from exp. #11249 */ if (val / Math.pow(10, exp) >= 10) { exp++; } return exp; } /** * find a “nice” number approximately equal to x. Round the number if round = true, * take ceiling if round = false. The primary observation is that the “nicest” * numbers in decimal are 1, 2, and 5, and all power-of-ten multiples of these numbers. * * See "Nice Numbers for Graph Labels" of Graphic Gems. * * @param val Non-negative value. * @param round * @return Niced number */ function nice(val, round) { var exponent = quantityExponent(val); var exp10 = Math.pow(10, exponent); var f = val / exp10; // 1 <= f < 10 var nf; if (round) { if (f < 1.5) { nf = 1; } else if (f < 2.5) { nf = 2; } else if (f < 4) { nf = 3; } else if (f < 7) { nf = 5; } else { nf = 10; } } else { if (f < 1) { nf = 1; } else if (f < 2) { nf = 2; } else if (f < 3) { nf = 3; } else if (f < 5) { nf = 5; } else { nf = 10; } } val = nf * exp10; // Fix 3 * 0.1 === 0.30000000000000004 issue (see IEEE 754). // 20 is the uppper bound of toFixed. return exponent >= -20 ? +val.toFixed(exponent < 0 ? -exponent : 0) : val; } /** * This code was copied from "d3.js" * . * See the license statement at the head of this file. * @param ascArr */ function quantile(ascArr, p) { var H = (ascArr.length - 1) * p + 1; var h = Math.floor(H); var v = +ascArr[h - 1]; var e = H - h; return e ? v + e * (ascArr[h] - v) : v; } /** * Order intervals asc, and split them when overlap. * expect(numberUtil.reformIntervals([ * {interval: [18, 62], close: [1, 1]}, * {interval: [-Infinity, -70], close: [0, 0]}, * {interval: [-70, -26], close: [1, 1]}, * {interval: [-26, 18], close: [1, 1]}, * {interval: [62, 150], close: [1, 1]}, * {interval: [106, 150], close: [1, 1]}, * {interval: [150, Infinity], close: [0, 0]} * ])).toEqual([ * {interval: [-Infinity, -70], close: [0, 0]}, * {interval: [-70, -26], close: [1, 1]}, * {interval: [-26, 18], close: [0, 1]}, * {interval: [18, 62], close: [0, 1]}, * {interval: [62, 150], close: [0, 1]}, * {interval: [150, Infinity], close: [0, 0]} * ]); * @param list, where `close` mean open or close * of the interval, and Infinity can be used. * @return The origin list, which has been reformed. */ function reformIntervals(list) { list.sort(function (a, b) { return littleThan(a, b, 0) ? -1 : 1; }); var curr = -Infinity; var currClose = 1; for (var i = 0; i < list.length;) { var interval = list[i].interval; var close_1 = list[i].close; for (var lg = 0; lg < 2; lg++) { if (interval[lg] <= curr) { interval[lg] = curr; close_1[lg] = !lg ? 1 - currClose : 1; } curr = interval[lg]; currClose = close_1[lg]; } if (interval[0] === interval[1] && close_1[0] * close_1[1] !== 1) { list.splice(i, 1); } else { i++; } } return list; function littleThan(a, b, lg) { return a.interval[lg] < b.interval[lg] || a.interval[lg] === b.interval[lg] && (a.close[lg] - b.close[lg] === (!lg ? 1 : -1) || !lg && littleThan(a, b, 1)); } } /** * [Numeric is defined as]: * `parseFloat(val) == val` * For example: * numeric: * typeof number except NaN, '-123', '123', '2e3', '-2e3', '011', 'Infinity', Infinity, * and they rounded by white-spaces or line-terminal like ' -123 \n ' (see es spec) * not-numeric: * null, undefined, [], {}, true, false, 'NaN', NaN, '123ab', * empty string, string with only white-spaces or line-terminal (see es spec), * 0x12, '0x12', '-0x12', 012, '012', '-012', * non-string, ... * * @test See full test cases in `test/ut/spec/util/number.js`. * @return Must be a typeof number. If not numeric, return NaN. */ function numericToNumber(val) { var valFloat = parseFloat(val); return valFloat == val // eslint-disable-line eqeqeq && (valFloat !== 0 || !zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](val) || val.indexOf('x') <= 0) // For case ' 0x0 '. ? valFloat : NaN; } /** * Definition of "numeric": see `numericToNumber`. */ function isNumeric(val) { return !isNaN(numericToNumber(val)); } /** * Use random base to prevent users hard code depending on * this auto generated marker id. * @return An positive integer. */ function getRandomIdBase() { return Math.round(Math.random() * 9); } /** * Get the greatest common divisor. * * @param {number} a one number * @param {number} b the other number */ function getGreatestCommonDividor(a, b) { if (b === 0) { return a; } return getGreatestCommonDividor(b, a % b); } /** * Get the least common multiple. * * @param {number} a one number * @param {number} b the other number */ function getLeastCommonMultiple(a, b) { if (a == null) { return b; } if (b == null) { return a; } return a * b / getGreatestCommonDividor(a, b); } /***/ }), /***/ "./node_modules/echarts/lib/util/shape/sausage.js": /*!********************************************************!*\ !*** ./node_modules/echarts/lib/util/shape/sausage.js ***! \********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/echarts/node_modules/tslib/tslib.es6.js"); /* harmony import */ var _graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Sausage: similar to sector, but have half circle on both sides */ var SausageShape = /** @class */function () { function SausageShape() { this.cx = 0; this.cy = 0; this.r0 = 0; this.r = 0; this.startAngle = 0; this.endAngle = Math.PI * 2; this.clockwise = true; } return SausageShape; }(); var SausagePath = /** @class */function (_super) { Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SausagePath, _super); function SausagePath(opts) { var _this = _super.call(this, opts) || this; _this.type = 'sausage'; return _this; } SausagePath.prototype.getDefaultShape = function () { return new SausageShape(); }; SausagePath.prototype.buildPath = function (ctx, shape) { var cx = shape.cx; var cy = shape.cy; var r0 = Math.max(shape.r0 || 0, 0); var r = Math.max(shape.r, 0); var dr = (r - r0) * 0.5; var rCenter = r0 + dr; var startAngle = shape.startAngle; var endAngle = shape.endAngle; var clockwise = shape.clockwise; var PI2 = Math.PI * 2; var lessThanCircle = clockwise ? endAngle - startAngle < PI2 : startAngle - endAngle < PI2; if (!lessThanCircle) { // Normalize angles startAngle = endAngle - (clockwise ? PI2 : -PI2); } var unitStartX = Math.cos(startAngle); var unitStartY = Math.sin(startAngle); var unitEndX = Math.cos(endAngle); var unitEndY = Math.sin(endAngle); if (lessThanCircle) { ctx.moveTo(unitStartX * r0 + cx, unitStartY * r0 + cy); ctx.arc(unitStartX * rCenter + cx, unitStartY * rCenter + cy, dr, -Math.PI + startAngle, startAngle, !clockwise); } else { ctx.moveTo(unitStartX * r + cx, unitStartY * r + cy); } ctx.arc(cx, cy, r, startAngle, endAngle, !clockwise); ctx.arc(unitEndX * rCenter + cx, unitEndY * rCenter + cy, dr, endAngle - Math.PI * 2, endAngle - Math.PI, !clockwise); if (r0 !== 0) { ctx.arc(cx, cy, r0, endAngle, startAngle, clockwise); } // ctx.closePath(); }; return SausagePath; }(_graphic_js__WEBPACK_IMPORTED_MODULE_1__["Path"]); /* harmony default export */ __webpack_exports__["default"] = (SausagePath); /***/ }), /***/ "./node_modules/echarts/lib/util/states.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/util/states.js ***! \*************************************************/ /*! exports provided: HOVER_STATE_NORMAL, HOVER_STATE_BLUR, HOVER_STATE_EMPHASIS, SPECIAL_STATES, DISPLAY_STATES, Z2_EMPHASIS_LIFT, Z2_SELECT_LIFT, HIGHLIGHT_ACTION_TYPE, DOWNPLAY_ACTION_TYPE, SELECT_ACTION_TYPE, UNSELECT_ACTION_TYPE, TOGGLE_SELECT_ACTION_TYPE, setStatesFlag, clearStates, setDefaultStateProxy, enterEmphasisWhenMouseOver, leaveEmphasisWhenMouseOut, enterEmphasis, leaveEmphasis, enterBlur, leaveBlur, enterSelect, leaveSelect, allLeaveBlur, blurSeries, blurComponent, blurSeriesFromHighlightPayload, findComponentHighDownDispatchers, handleGlobalMouseOverForHighDown, handleGlobalMouseOutForHighDown, toggleSelectionFromPayload, updateSeriesElementSelection, getAllSelectedIndices, enableHoverEmphasis, disableHoverEmphasis, toggleHoverEmphasis, enableHoverFocus, setStatesStylesFromModel, setAsHighDownDispatcher, isHighDownDispatcher, enableComponentHighDownFeatures, getHighlightDigit, isSelectChangePayload, isHighDownPayload, savePathStates */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HOVER_STATE_NORMAL", function() { return HOVER_STATE_NORMAL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HOVER_STATE_BLUR", function() { return HOVER_STATE_BLUR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HOVER_STATE_EMPHASIS", function() { return HOVER_STATE_EMPHASIS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SPECIAL_STATES", function() { return SPECIAL_STATES; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DISPLAY_STATES", function() { return DISPLAY_STATES; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z2_EMPHASIS_LIFT", function() { return Z2_EMPHASIS_LIFT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z2_SELECT_LIFT", function() { return Z2_SELECT_LIFT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HIGHLIGHT_ACTION_TYPE", function() { return HIGHLIGHT_ACTION_TYPE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DOWNPLAY_ACTION_TYPE", function() { return DOWNPLAY_ACTION_TYPE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SELECT_ACTION_TYPE", function() { return SELECT_ACTION_TYPE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSELECT_ACTION_TYPE", function() { return UNSELECT_ACTION_TYPE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TOGGLE_SELECT_ACTION_TYPE", function() { return TOGGLE_SELECT_ACTION_TYPE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setStatesFlag", function() { return setStatesFlag; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clearStates", function() { return clearStates; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDefaultStateProxy", function() { return setDefaultStateProxy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enterEmphasisWhenMouseOver", function() { return enterEmphasisWhenMouseOver; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "leaveEmphasisWhenMouseOut", function() { return leaveEmphasisWhenMouseOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enterEmphasis", function() { return enterEmphasis; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "leaveEmphasis", function() { return leaveEmphasis; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enterBlur", function() { return enterBlur; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "leaveBlur", function() { return leaveBlur; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enterSelect", function() { return enterSelect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "leaveSelect", function() { return leaveSelect; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "allLeaveBlur", function() { return allLeaveBlur; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blurSeries", function() { return blurSeries; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blurComponent", function() { return blurComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blurSeriesFromHighlightPayload", function() { return blurSeriesFromHighlightPayload; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findComponentHighDownDispatchers", function() { return findComponentHighDownDispatchers; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleGlobalMouseOverForHighDown", function() { return handleGlobalMouseOverForHighDown; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleGlobalMouseOutForHighDown", function() { return handleGlobalMouseOutForHighDown; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toggleSelectionFromPayload", function() { return toggleSelectionFromPayload; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateSeriesElementSelection", function() { return updateSeriesElementSelection; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAllSelectedIndices", function() { return getAllSelectedIndices; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableHoverEmphasis", function() { return enableHoverEmphasis; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "disableHoverEmphasis", function() { return disableHoverEmphasis; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toggleHoverEmphasis", function() { return toggleHoverEmphasis; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableHoverFocus", function() { return enableHoverFocus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setStatesStylesFromModel", function() { return setStatesStylesFromModel; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setAsHighDownDispatcher", function() { return setAsHighDownDispatcher; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isHighDownDispatcher", function() { return isHighDownDispatcher; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableComponentHighDownFeatures", function() { return enableComponentHighDownFeatures; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHighlightDigit", function() { return getHighlightDigit; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSelectChangePayload", function() { return isSelectChangePayload; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isHighDownPayload", function() { return isHighDownPayload; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "savePathStates", function() { return savePathStates; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _innerStore_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./innerStore.js */ "./node_modules/echarts/lib/util/innerStore.js"); /* harmony import */ var zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/tool/color.js */ "./node_modules/zrender/lib/tool/color.js"); /* harmony import */ var _model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! zrender/lib/graphic/Path.js */ "./node_modules/zrender/lib/graphic/Path.js"); /* harmony import */ var _log_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Reserve 0 as default. var _highlightNextDigit = 1; var _highlightKeyMap = {}; var getSavedStates = Object(_model_js__WEBPACK_IMPORTED_MODULE_3__["makeInner"])(); var getComponentStates = Object(_model_js__WEBPACK_IMPORTED_MODULE_3__["makeInner"])(); var HOVER_STATE_NORMAL = 0; var HOVER_STATE_BLUR = 1; var HOVER_STATE_EMPHASIS = 2; var SPECIAL_STATES = ['emphasis', 'blur', 'select']; var DISPLAY_STATES = ['normal', 'emphasis', 'blur', 'select']; var Z2_EMPHASIS_LIFT = 10; var Z2_SELECT_LIFT = 9; var HIGHLIGHT_ACTION_TYPE = 'highlight'; var DOWNPLAY_ACTION_TYPE = 'downplay'; var SELECT_ACTION_TYPE = 'select'; var UNSELECT_ACTION_TYPE = 'unselect'; var TOGGLE_SELECT_ACTION_TYPE = 'toggleSelect'; function hasFillOrStroke(fillOrStroke) { return fillOrStroke != null && fillOrStroke !== 'none'; } function doChangeHoverState(el, stateName, hoverStateEnum) { if (el.onHoverStateChange && (el.hoverState || 0) !== hoverStateEnum) { el.onHoverStateChange(stateName); } el.hoverState = hoverStateEnum; } function singleEnterEmphasis(el) { // Only mark the flag. // States will be applied in the echarts.ts in next frame. doChangeHoverState(el, 'emphasis', HOVER_STATE_EMPHASIS); } function singleLeaveEmphasis(el) { // Only mark the flag. // States will be applied in the echarts.ts in next frame. if (el.hoverState === HOVER_STATE_EMPHASIS) { doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL); } } function singleEnterBlur(el) { doChangeHoverState(el, 'blur', HOVER_STATE_BLUR); } function singleLeaveBlur(el) { if (el.hoverState === HOVER_STATE_BLUR) { doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL); } } function singleEnterSelect(el) { el.selected = true; } function singleLeaveSelect(el) { el.selected = false; } function updateElementState(el, updater, commonParam) { updater(el, commonParam); } function traverseUpdateState(el, updater, commonParam) { updateElementState(el, updater, commonParam); el.isGroup && el.traverse(function (child) { updateElementState(child, updater, commonParam); }); } function setStatesFlag(el, stateName) { switch (stateName) { case 'emphasis': el.hoverState = HOVER_STATE_EMPHASIS; break; case 'normal': el.hoverState = HOVER_STATE_NORMAL; break; case 'blur': el.hoverState = HOVER_STATE_BLUR; break; case 'select': el.selected = true; } } /** * If we reuse elements when rerender. * DON'T forget to clearStates before we update the style and shape. * Or we may update on the wrong state instead of normal state. */ function clearStates(el) { if (el.isGroup) { el.traverse(function (child) { child.clearStates(); }); } else { el.clearStates(); } } function getFromStateStyle(el, props, toStateName, defaultValue) { var style = el.style; var fromState = {}; for (var i = 0; i < props.length; i++) { var propName = props[i]; var val = style[propName]; fromState[propName] = val == null ? defaultValue && defaultValue[propName] : val; } for (var i = 0; i < el.animators.length; i++) { var animator = el.animators[i]; if (animator.__fromStateTransition // Don't consider the animation to emphasis state. && animator.__fromStateTransition.indexOf(toStateName) < 0 && animator.targetName === 'style') { animator.saveTo(fromState, props); } } return fromState; } function createEmphasisDefaultState(el, stateName, targetStates, state) { var hasSelect = targetStates && Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"])(targetStates, 'select') >= 0; var cloned = false; if (el instanceof zrender_lib_graphic_Path_js__WEBPACK_IMPORTED_MODULE_4__["default"]) { var store = getSavedStates(el); var fromFill = hasSelect ? store.selectFill || store.normalFill : store.normalFill; var fromStroke = hasSelect ? store.selectStroke || store.normalStroke : store.normalStroke; if (hasFillOrStroke(fromFill) || hasFillOrStroke(fromStroke)) { state = state || {}; var emphasisStyle = state.style || {}; // inherit case if (emphasisStyle.fill === 'inherit') { cloned = true; state = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, state); emphasisStyle = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, emphasisStyle); emphasisStyle.fill = fromFill; } // Apply default color lift else if (!hasFillOrStroke(emphasisStyle.fill) && hasFillOrStroke(fromFill)) { cloned = true; // Not modify the original value. state = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, state); emphasisStyle = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, emphasisStyle); // Already being applied 'emphasis'. DON'T lift color multiple times. emphasisStyle.fill = Object(zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_2__["liftColor"])(fromFill); } // Not highlight stroke if fill has been highlighted. else if (!hasFillOrStroke(emphasisStyle.stroke) && hasFillOrStroke(fromStroke)) { if (!cloned) { state = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, state); emphasisStyle = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, emphasisStyle); } emphasisStyle.stroke = Object(zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_2__["liftColor"])(fromStroke); } state.style = emphasisStyle; } } if (state) { // TODO Share with textContent? if (state.z2 == null) { if (!cloned) { state = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, state); } var z2EmphasisLift = el.z2EmphasisLift; state.z2 = el.z2 + (z2EmphasisLift != null ? z2EmphasisLift : Z2_EMPHASIS_LIFT); } } return state; } function createSelectDefaultState(el, stateName, state) { // const hasSelect = indexOf(el.currentStates, stateName) >= 0; if (state) { // TODO Share with textContent? if (state.z2 == null) { state = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, state); var z2SelectLift = el.z2SelectLift; state.z2 = el.z2 + (z2SelectLift != null ? z2SelectLift : Z2_SELECT_LIFT); } } return state; } function createBlurDefaultState(el, stateName, state) { var hasBlur = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"])(el.currentStates, stateName) >= 0; var currentOpacity = el.style.opacity; var fromState = !hasBlur ? getFromStateStyle(el, ['opacity'], stateName, { opacity: 1 }) : null; state = state || {}; var blurStyle = state.style || {}; if (blurStyle.opacity == null) { // clone state state = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, state); blurStyle = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({ // Already being applied 'emphasis'. DON'T mul opacity multiple times. opacity: hasBlur ? currentOpacity : fromState.opacity * 0.1 }, blurStyle); state.style = blurStyle; } return state; } function elementStateProxy(stateName, targetStates) { var state = this.states[stateName]; if (this.style) { if (stateName === 'emphasis') { return createEmphasisDefaultState(this, stateName, targetStates, state); } else if (stateName === 'blur') { return createBlurDefaultState(this, stateName, state); } else if (stateName === 'select') { return createSelectDefaultState(this, stateName, state); } } return state; } /** * Set hover style (namely "emphasis style") of element. * @param el Should not be `zrender/graphic/Group`. * @param focus 'self' | 'selfInSeries' | 'series' */ function setDefaultStateProxy(el) { el.stateProxy = elementStateProxy; var textContent = el.getTextContent(); var textGuide = el.getTextGuideLine(); if (textContent) { textContent.stateProxy = elementStateProxy; } if (textGuide) { textGuide.stateProxy = elementStateProxy; } } function enterEmphasisWhenMouseOver(el, e) { !shouldSilent(el, e) // "emphasis" event highlight has higher priority than mouse highlight. && !el.__highByOuter && traverseUpdateState(el, singleEnterEmphasis); } function leaveEmphasisWhenMouseOut(el, e) { !shouldSilent(el, e) // "emphasis" event highlight has higher priority than mouse highlight. && !el.__highByOuter && traverseUpdateState(el, singleLeaveEmphasis); } function enterEmphasis(el, highlightDigit) { el.__highByOuter |= 1 << (highlightDigit || 0); traverseUpdateState(el, singleEnterEmphasis); } function leaveEmphasis(el, highlightDigit) { !(el.__highByOuter &= ~(1 << (highlightDigit || 0))) && traverseUpdateState(el, singleLeaveEmphasis); } function enterBlur(el) { traverseUpdateState(el, singleEnterBlur); } function leaveBlur(el) { traverseUpdateState(el, singleLeaveBlur); } function enterSelect(el) { traverseUpdateState(el, singleEnterSelect); } function leaveSelect(el) { traverseUpdateState(el, singleLeaveSelect); } function shouldSilent(el, e) { return el.__highDownSilentOnTouch && e.zrByTouch; } function allLeaveBlur(api) { var model = api.getModel(); var leaveBlurredSeries = []; var allComponentViews = []; model.eachComponent(function (componentType, componentModel) { var componentStates = getComponentStates(componentModel); var isSeries = componentType === 'series'; var view = isSeries ? api.getViewOfSeriesModel(componentModel) : api.getViewOfComponentModel(componentModel); !isSeries && allComponentViews.push(view); if (componentStates.isBlured) { // Leave blur anyway view.group.traverse(function (child) { singleLeaveBlur(child); }); isSeries && leaveBlurredSeries.push(componentModel); } componentStates.isBlured = false; }); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(allComponentViews, function (view) { if (view && view.toggleBlurSeries) { view.toggleBlurSeries(leaveBlurredSeries, false, model); } }); } function blurSeries(targetSeriesIndex, focus, blurScope, api) { var ecModel = api.getModel(); blurScope = blurScope || 'coordinateSystem'; function leaveBlurOfIndices(data, dataIndices) { for (var i = 0; i < dataIndices.length; i++) { var itemEl = data.getItemGraphicEl(dataIndices[i]); itemEl && leaveBlur(itemEl); } } if (targetSeriesIndex == null) { return; } if (!focus || focus === 'none') { return; } var targetSeriesModel = ecModel.getSeriesByIndex(targetSeriesIndex); var targetCoordSys = targetSeriesModel.coordinateSystem; if (targetCoordSys && targetCoordSys.master) { targetCoordSys = targetCoordSys.master; } var blurredSeries = []; ecModel.eachSeries(function (seriesModel) { var sameSeries = targetSeriesModel === seriesModel; var coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.master) { coordSys = coordSys.master; } var sameCoordSys = coordSys && targetCoordSys ? coordSys === targetCoordSys : sameSeries; // If there is no coordinate system. use sameSeries instead. if (!( // Not blur other series if blurScope series blurScope === 'series' && !sameSeries // Not blur other coordinate system if blurScope is coordinateSystem || blurScope === 'coordinateSystem' && !sameCoordSys // Not blur self series if focus is series. || focus === 'series' && sameSeries // TODO blurScope: coordinate system )) { var view = api.getViewOfSeriesModel(seriesModel); view.group.traverse(function (child) { // For the elements that have been triggered by other components, // and are still required to be highlighted, // because the current is directly forced to blur the element, // it will cause the focus self to be unable to highlight, so skip the blur of this element. if (child.__highByOuter && sameSeries && focus === 'self') { return; } singleEnterBlur(child); }); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArrayLike"])(focus)) { leaveBlurOfIndices(seriesModel.getData(), focus); } else if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"])(focus)) { var dataTypes = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["keys"])(focus); for (var d = 0; d < dataTypes.length; d++) { leaveBlurOfIndices(seriesModel.getData(dataTypes[d]), focus[dataTypes[d]]); } } blurredSeries.push(seriesModel); getComponentStates(seriesModel).isBlured = true; } }); ecModel.eachComponent(function (componentType, componentModel) { if (componentType === 'series') { return; } var view = api.getViewOfComponentModel(componentModel); if (view && view.toggleBlurSeries) { view.toggleBlurSeries(blurredSeries, true, ecModel); } }); } function blurComponent(componentMainType, componentIndex, api) { if (componentMainType == null || componentIndex == null) { return; } var componentModel = api.getModel().getComponent(componentMainType, componentIndex); if (!componentModel) { return; } getComponentStates(componentModel).isBlured = true; var view = api.getViewOfComponentModel(componentModel); if (!view || !view.focusBlurEnabled) { return; } view.group.traverse(function (child) { singleEnterBlur(child); }); } function blurSeriesFromHighlightPayload(seriesModel, payload, api) { var seriesIndex = seriesModel.seriesIndex; var data = seriesModel.getData(payload.dataType); if (!data) { if (true) { Object(_log_js__WEBPACK_IMPORTED_MODULE_5__["error"])("Unknown dataType " + payload.dataType); } return; } var dataIndex = Object(_model_js__WEBPACK_IMPORTED_MODULE_3__["queryDataIndex"])(data, payload); // Pick the first one if there is multiple/none exists. dataIndex = (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(dataIndex) ? dataIndex[0] : dataIndex) || 0; var el = data.getItemGraphicEl(dataIndex); if (!el) { var count = data.count(); var current = 0; // If data on dataIndex is NaN. while (!el && current < count) { el = data.getItemGraphicEl(current++); } } if (el) { var ecData = Object(_innerStore_js__WEBPACK_IMPORTED_MODULE_1__["getECData"])(el); blurSeries(seriesIndex, ecData.focus, ecData.blurScope, api); } else { // If there is no element put on the data. Try getting it from raw option // TODO Should put it on seriesModel? var focus_1 = seriesModel.get(['emphasis', 'focus']); var blurScope = seriesModel.get(['emphasis', 'blurScope']); if (focus_1 != null) { blurSeries(seriesIndex, focus_1, blurScope, api); } } } function findComponentHighDownDispatchers(componentMainType, componentIndex, name, api) { var ret = { focusSelf: false, dispatchers: null }; if (componentMainType == null || componentMainType === 'series' || componentIndex == null || name == null) { return ret; } var componentModel = api.getModel().getComponent(componentMainType, componentIndex); if (!componentModel) { return ret; } var view = api.getViewOfComponentModel(componentModel); if (!view || !view.findHighDownDispatchers) { return ret; } var dispatchers = view.findHighDownDispatchers(name); // At presnet, the component (like Geo) only blur inside itself. // So we do not use `blurScope` in component. var focusSelf; for (var i = 0; i < dispatchers.length; i++) { if ( true && !isHighDownDispatcher(dispatchers[i])) { Object(_log_js__WEBPACK_IMPORTED_MODULE_5__["error"])('param should be highDownDispatcher'); } if (Object(_innerStore_js__WEBPACK_IMPORTED_MODULE_1__["getECData"])(dispatchers[i]).focus === 'self') { focusSelf = true; break; } } return { focusSelf: focusSelf, dispatchers: dispatchers }; } function handleGlobalMouseOverForHighDown(dispatcher, e, api) { if ( true && !isHighDownDispatcher(dispatcher)) { Object(_log_js__WEBPACK_IMPORTED_MODULE_5__["error"])('param should be highDownDispatcher'); } var ecData = Object(_innerStore_js__WEBPACK_IMPORTED_MODULE_1__["getECData"])(dispatcher); var _a = findComponentHighDownDispatchers(ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api), dispatchers = _a.dispatchers, focusSelf = _a.focusSelf; // If `findHighDownDispatchers` is supported on the component, // highlight/downplay elements with the same name. if (dispatchers) { if (focusSelf) { blurComponent(ecData.componentMainType, ecData.componentIndex, api); } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(dispatchers, function (dispatcher) { return enterEmphasisWhenMouseOver(dispatcher, e); }); } else { // Try blur all in the related series. Then emphasis the hoverred. // TODO. progressive mode. blurSeries(ecData.seriesIndex, ecData.focus, ecData.blurScope, api); if (ecData.focus === 'self') { blurComponent(ecData.componentMainType, ecData.componentIndex, api); } // Other than series, component that not support `findHighDownDispatcher` will // also use it. But in this case, highlight/downplay are only supported in // mouse hover but not in dispatchAction. enterEmphasisWhenMouseOver(dispatcher, e); } } function handleGlobalMouseOutForHighDown(dispatcher, e, api) { if ( true && !isHighDownDispatcher(dispatcher)) { Object(_log_js__WEBPACK_IMPORTED_MODULE_5__["error"])('param should be highDownDispatcher'); } allLeaveBlur(api); var ecData = Object(_innerStore_js__WEBPACK_IMPORTED_MODULE_1__["getECData"])(dispatcher); var dispatchers = findComponentHighDownDispatchers(ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api).dispatchers; if (dispatchers) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(dispatchers, function (dispatcher) { return leaveEmphasisWhenMouseOut(dispatcher, e); }); } else { leaveEmphasisWhenMouseOut(dispatcher, e); } } function toggleSelectionFromPayload(seriesModel, payload, api) { if (!isSelectChangePayload(payload)) { return; } var dataType = payload.dataType; var data = seriesModel.getData(dataType); var dataIndex = Object(_model_js__WEBPACK_IMPORTED_MODULE_3__["queryDataIndex"])(data, payload); if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(dataIndex)) { dataIndex = [dataIndex]; } seriesModel[payload.type === TOGGLE_SELECT_ACTION_TYPE ? 'toggleSelect' : payload.type === SELECT_ACTION_TYPE ? 'select' : 'unselect'](dataIndex, dataType); } function updateSeriesElementSelection(seriesModel) { var allData = seriesModel.getAllData(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(allData, function (_a) { var data = _a.data, type = _a.type; data.eachItemGraphicEl(function (el, idx) { seriesModel.isSelected(idx, type) ? enterSelect(el) : leaveSelect(el); }); }); } function getAllSelectedIndices(ecModel) { var ret = []; ecModel.eachSeries(function (seriesModel) { var allData = seriesModel.getAllData(); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(allData, function (_a) { var data = _a.data, type = _a.type; var dataIndices = seriesModel.getSelectedDataIndices(); if (dataIndices.length > 0) { var item = { dataIndex: dataIndices, seriesIndex: seriesModel.seriesIndex }; if (type != null) { item.dataType = type; } ret.push(item); } }); }); return ret; } /** * Enable the function that mouseover will trigger the emphasis state. * * NOTE: * This function should be used on the element with dataIndex, seriesIndex. * */ function enableHoverEmphasis(el, focus, blurScope) { setAsHighDownDispatcher(el, true); traverseUpdateState(el, setDefaultStateProxy); enableHoverFocus(el, focus, blurScope); } function disableHoverEmphasis(el) { setAsHighDownDispatcher(el, false); } function toggleHoverEmphasis(el, focus, blurScope, isDisabled) { isDisabled ? disableHoverEmphasis(el) : enableHoverEmphasis(el, focus, blurScope); } function enableHoverFocus(el, focus, blurScope) { var ecData = Object(_innerStore_js__WEBPACK_IMPORTED_MODULE_1__["getECData"])(el); if (focus != null) { // TODO dataIndex may be set after this function. This check is not useful. // if (ecData.dataIndex == null) { // if (__DEV__) { // console.warn('focus can only been set on element with dataIndex'); // } // } // else { ecData.focus = focus; ecData.blurScope = blurScope; // } } else if (ecData.focus) { ecData.focus = null; } } var OTHER_STATES = ['emphasis', 'blur', 'select']; var defaultStyleGetterMap = { itemStyle: 'getItemStyle', lineStyle: 'getLineStyle', areaStyle: 'getAreaStyle' }; /** * Set emphasis/blur/selected states of element. */ function setStatesStylesFromModel(el, itemModel, styleType, // default itemStyle getter) { styleType = styleType || 'itemStyle'; for (var i = 0; i < OTHER_STATES.length; i++) { var stateName = OTHER_STATES[i]; var model = itemModel.getModel([stateName, styleType]); var state = el.ensureState(stateName); // Let it throw error if getterType is not found. state.style = getter ? getter(model) : model[defaultStyleGetterMap[styleType]](); } } /** * * Set element as highlight / downplay dispatcher. * It will be checked when element received mouseover event or from highlight action. * It's in change of all highlight/downplay behavior of it's children. * * @param el * @param el.highDownSilentOnTouch * In touch device, mouseover event will be trigger on touchstart event * (see module:zrender/dom/HandlerProxy). By this mechanism, we can * conveniently use hoverStyle when tap on touch screen without additional * code for compatibility. * But if the chart/component has select feature, which usually also use * hoverStyle, there might be conflict between 'select-highlight' and * 'hover-highlight' especially when roam is enabled (see geo for example). * In this case, `highDownSilentOnTouch` should be used to disable * hover-highlight on touch device. * @param asDispatcher If `false`, do not set as "highDownDispatcher". */ function setAsHighDownDispatcher(el, asDispatcher) { var disable = asDispatcher === false; var extendedEl = el; // Make `highDownSilentOnTouch` and `onStateChange` only work after // `setAsHighDownDispatcher` called. Avoid it is modified by user unexpectedly. if (el.highDownSilentOnTouch) { extendedEl.__highDownSilentOnTouch = el.highDownSilentOnTouch; } // Simple optimize, since this method might be // called for each elements of a group in some cases. if (!disable || extendedEl.__highDownDispatcher) { // Emphasis, normal can be triggered manually by API or other components like hover link. // el[method]('emphasis', onElementEmphasisEvent)[method]('normal', onElementNormalEvent); // Also keep previous record. extendedEl.__highByOuter = extendedEl.__highByOuter || 0; extendedEl.__highDownDispatcher = !disable; } } function isHighDownDispatcher(el) { return !!(el && el.__highDownDispatcher); } /** * Enable component highlight/downplay features: * + hover link (within the same name) * + focus blur in component */ function enableComponentHighDownFeatures(el, componentModel, componentHighDownName) { var ecData = Object(_innerStore_js__WEBPACK_IMPORTED_MODULE_1__["getECData"])(el); ecData.componentMainType = componentModel.mainType; ecData.componentIndex = componentModel.componentIndex; ecData.componentHighDownName = componentHighDownName; } /** * Support highlight/downplay record on each elements. * For the case: hover highlight/downplay (legend, visualMap, ...) and * user triggered highlight/downplay should not conflict. * Only all of the highlightDigit cleared, return to normal. * @param {string} highlightKey * @return {number} highlightDigit */ function getHighlightDigit(highlightKey) { var highlightDigit = _highlightKeyMap[highlightKey]; if (highlightDigit == null && _highlightNextDigit <= 32) { highlightDigit = _highlightKeyMap[highlightKey] = _highlightNextDigit++; } return highlightDigit; } function isSelectChangePayload(payload) { var payloadType = payload.type; return payloadType === SELECT_ACTION_TYPE || payloadType === UNSELECT_ACTION_TYPE || payloadType === TOGGLE_SELECT_ACTION_TYPE; } function isHighDownPayload(payload) { var payloadType = payload.type; return payloadType === HIGHLIGHT_ACTION_TYPE || payloadType === DOWNPLAY_ACTION_TYPE; } function savePathStates(el) { var store = getSavedStates(el); store.normalFill = el.style.fill; store.normalStroke = el.style.stroke; var selectState = el.states.select || {}; store.selectFill = selectState.style && selectState.style.fill || null; store.selectStroke = selectState.style && selectState.style.stroke || null; } /***/ }), /***/ "./node_modules/echarts/lib/util/styleCompat.js": /*!******************************************************!*\ !*** ./node_modules/echarts/lib/util/styleCompat.js ***! \******************************************************/ /*! exports provided: isEC4CompatibleStyle, convertFromEC4CompatibleStyle, convertToEC4StyleForCustomSerise, warnDeprecated */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEC4CompatibleStyle", function() { return isEC4CompatibleStyle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertFromEC4CompatibleStyle", function() { return convertFromEC4CompatibleStyle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertToEC4StyleForCustomSerise", function() { return convertToEC4StyleForCustomSerise; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warnDeprecated", function() { return warnDeprecated; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var deprecatedLogs = {}; /** * Whether need to call `convertEC4CompatibleStyle`. */ function isEC4CompatibleStyle(style, elType, hasOwnTextContentOption, hasOwnTextConfig) { // Since echarts5, `RectText` is separated from its host element and style.text // does not exist any more. The compat work brings some extra burden on performance. // So we provide: // `legacy: true` force make compat. // `legacy: false`, force do not compat. // `legacy` not set: auto detect whether legacy. // But in this case we do not compat (difficult to detect and rare case): // Becuse custom series and graphic component support "merge", users may firstly // only set `textStrokeWidth` style or secondly only set `text`. return style && (style.legacy || style.legacy !== false && !hasOwnTextContentOption && !hasOwnTextConfig && elType !== 'tspan' // Difficult to detect whether legacy for a "text" el. && (elType === 'text' || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(style, 'text'))); } /** * `EC4CompatibleStyle` is style that might be in echarts4 format or echarts5 format. * @param hostStyle The properties might be modified. * @return If be text el, `textContentStyle` and `textConfig` will not be returned. * Otherwise a `textContentStyle` and `textConfig` will be created, whose props area * retried from the `hostStyle`. */ function convertFromEC4CompatibleStyle(hostStyle, elType, isNormal) { var srcStyle = hostStyle; var textConfig; var textContent; var textContentStyle; if (elType === 'text') { textContentStyle = srcStyle; } else { textContentStyle = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(srcStyle, 'text') && (textContentStyle.text = srcStyle.text); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(srcStyle, 'rich') && (textContentStyle.rich = srcStyle.rich); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(srcStyle, 'textFill') && (textContentStyle.fill = srcStyle.textFill); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(srcStyle, 'textStroke') && (textContentStyle.stroke = srcStyle.textStroke); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(srcStyle, 'fontFamily') && (textContentStyle.fontFamily = srcStyle.fontFamily); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(srcStyle, 'fontSize') && (textContentStyle.fontSize = srcStyle.fontSize); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(srcStyle, 'fontStyle') && (textContentStyle.fontStyle = srcStyle.fontStyle); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(srcStyle, 'fontWeight') && (textContentStyle.fontWeight = srcStyle.fontWeight); textContent = { type: 'text', style: textContentStyle, // ec4 does not support rectText trigger. // And when text position is different in normal and emphasis // => hover text trigger emphasis; // => text position changed, leave mouse pointer immediately; // That might cause incorrect state. silent: true }; textConfig = {}; var hasOwnPos = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(srcStyle, 'textPosition'); if (isNormal) { textConfig.position = hasOwnPos ? srcStyle.textPosition : 'inside'; } else { hasOwnPos && (textConfig.position = srcStyle.textPosition); } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(srcStyle, 'textPosition') && (textConfig.position = srcStyle.textPosition); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(srcStyle, 'textOffset') && (textConfig.offset = srcStyle.textOffset); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(srcStyle, 'textRotation') && (textConfig.rotation = srcStyle.textRotation); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(srcStyle, 'textDistance') && (textConfig.distance = srcStyle.textDistance); } convertEC4CompatibleRichItem(textContentStyle, hostStyle); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(textContentStyle.rich, function (richItem) { convertEC4CompatibleRichItem(richItem, richItem); }); return { textConfig: textConfig, textContent: textContent }; } /** * The result will be set to `out`. */ function convertEC4CompatibleRichItem(out, richItem) { if (!richItem) { return; } // (1) For simplicity, make textXXX properties (deprecated since ec5) has // higher priority. For example, consider in ec4 `borderColor: 5, textBorderColor: 10` // on a rect means `borderColor: 4` on the rect and `borderColor: 10` on an attached // richText in ec5. // (2) `out === richItem` if and only if `out` is text el or rich item. // So we can overwrite existing props in `out` since textXXX has higher priority. richItem.font = richItem.textFont || richItem.font; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textStrokeWidth') && (out.lineWidth = richItem.textStrokeWidth); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textAlign') && (out.align = richItem.textAlign); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textVerticalAlign') && (out.verticalAlign = richItem.textVerticalAlign); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textLineHeight') && (out.lineHeight = richItem.textLineHeight); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textWidth') && (out.width = richItem.textWidth); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textHeight') && (out.height = richItem.textHeight); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textBackgroundColor') && (out.backgroundColor = richItem.textBackgroundColor); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textPadding') && (out.padding = richItem.textPadding); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textBorderColor') && (out.borderColor = richItem.textBorderColor); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textBorderWidth') && (out.borderWidth = richItem.textBorderWidth); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textBorderRadius') && (out.borderRadius = richItem.textBorderRadius); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textBoxShadowColor') && (out.shadowColor = richItem.textBoxShadowColor); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textBoxShadowBlur') && (out.shadowBlur = richItem.textBoxShadowBlur); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textBoxShadowOffsetX') && (out.shadowOffsetX = richItem.textBoxShadowOffsetX); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textBoxShadowOffsetY') && (out.shadowOffsetY = richItem.textBoxShadowOffsetY); } /** * Convert to pure echarts4 format style. * `itemStyle` will be modified, added with ec4 style properties from * `textStyle` and `textConfig`. * * [Caveat]: For simplicity, `insideRollback` in ec4 does not compat, where * `styleEmphasis: {textFill: 'red'}` will remove the normal auto added stroke. */ function convertToEC4StyleForCustomSerise(itemStl, txStl, txCfg) { var out = itemStl; // See `custom.ts`, a trick to set extra `textPosition` firstly. out.textPosition = out.textPosition || txCfg.position || 'inside'; txCfg.offset != null && (out.textOffset = txCfg.offset); txCfg.rotation != null && (out.textRotation = txCfg.rotation); txCfg.distance != null && (out.textDistance = txCfg.distance); var isInside = out.textPosition.indexOf('inside') >= 0; var hostFill = itemStl.fill || '#000'; convertToEC4RichItem(out, txStl); var textFillNotSet = out.textFill == null; if (isInside) { if (textFillNotSet) { out.textFill = txCfg.insideFill || '#fff'; !out.textStroke && txCfg.insideStroke && (out.textStroke = txCfg.insideStroke); !out.textStroke && (out.textStroke = hostFill); out.textStrokeWidth == null && (out.textStrokeWidth = 2); } } else { if (textFillNotSet) { out.textFill = itemStl.fill || txCfg.outsideFill || '#000'; } !out.textStroke && txCfg.outsideStroke && (out.textStroke = txCfg.outsideStroke); } out.text = txStl.text; out.rich = txStl.rich; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(txStl.rich, function (richItem) { convertToEC4RichItem(richItem, richItem); }); return out; } function convertToEC4RichItem(out, richItem) { if (!richItem) { return; } Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'fill') && (out.textFill = richItem.fill); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'stroke') && (out.textStroke = richItem.fill); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'lineWidth') && (out.textStrokeWidth = richItem.lineWidth); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'font') && (out.font = richItem.font); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'fontStyle') && (out.fontStyle = richItem.fontStyle); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'fontWeight') && (out.fontWeight = richItem.fontWeight); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'fontSize') && (out.fontSize = richItem.fontSize); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'fontFamily') && (out.fontFamily = richItem.fontFamily); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'align') && (out.textAlign = richItem.align); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'verticalAlign') && (out.textVerticalAlign = richItem.verticalAlign); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'lineHeight') && (out.textLineHeight = richItem.lineHeight); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'width') && (out.textWidth = richItem.width); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'height') && (out.textHeight = richItem.height); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'backgroundColor') && (out.textBackgroundColor = richItem.backgroundColor); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'padding') && (out.textPadding = richItem.padding); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'borderColor') && (out.textBorderColor = richItem.borderColor); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'borderWidth') && (out.textBorderWidth = richItem.borderWidth); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'borderRadius') && (out.textBorderRadius = richItem.borderRadius); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'shadowColor') && (out.textBoxShadowColor = richItem.shadowColor); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'shadowBlur') && (out.textBoxShadowBlur = richItem.shadowBlur); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'shadowOffsetX') && (out.textBoxShadowOffsetX = richItem.shadowOffsetX); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'shadowOffsetY') && (out.textBoxShadowOffsetY = richItem.shadowOffsetY); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textShadowColor') && (out.textShadowColor = richItem.textShadowColor); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textShadowBlur') && (out.textShadowBlur = richItem.textShadowBlur); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textShadowOffsetX') && (out.textShadowOffsetX = richItem.textShadowOffsetX); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["hasOwn"])(richItem, 'textShadowOffsetY') && (out.textShadowOffsetY = richItem.textShadowOffsetY); } function warnDeprecated(deprecated, insteadApproach) { if (true) { var key = deprecated + '^_^' + insteadApproach; if (!deprecatedLogs[key]) { console.warn("[ECharts] DEPRECATED: \"" + deprecated + "\" has been deprecated. " + insteadApproach); deprecatedLogs[key] = true; } } } /***/ }), /***/ "./node_modules/echarts/lib/util/symbol.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/util/symbol.js ***! \*************************************************/ /*! exports provided: symbolBuildProxies, createSymbol, normalizeSymbolSize, normalizeSymbolOffset */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "symbolBuildProxies", function() { return symbolBuildProxies; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSymbol", function() { return createSymbol; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeSymbolSize", function() { return normalizeSymbolSize; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeSymbolOffset", function() { return normalizeSymbolOffset; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _graphic_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zrender/lib/core/BoundingRect.js */ "./node_modules/zrender/lib/core/BoundingRect.js"); /* harmony import */ var zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zrender/lib/contain/text.js */ "./node_modules/zrender/lib/contain/text.js"); /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./number.js */ "./node_modules/echarts/lib/util/number.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // Symbol factory /** * Triangle shape * @inner */ var Triangle = _graphic_js__WEBPACK_IMPORTED_MODULE_1__["Path"].extend({ type: 'triangle', shape: { cx: 0, cy: 0, width: 0, height: 0 }, buildPath: function (path, shape) { var cx = shape.cx; var cy = shape.cy; var width = shape.width / 2; var height = shape.height / 2; path.moveTo(cx, cy - height); path.lineTo(cx + width, cy + height); path.lineTo(cx - width, cy + height); path.closePath(); } }); /** * Diamond shape * @inner */ var Diamond = _graphic_js__WEBPACK_IMPORTED_MODULE_1__["Path"].extend({ type: 'diamond', shape: { cx: 0, cy: 0, width: 0, height: 0 }, buildPath: function (path, shape) { var cx = shape.cx; var cy = shape.cy; var width = shape.width / 2; var height = shape.height / 2; path.moveTo(cx, cy - height); path.lineTo(cx + width, cy); path.lineTo(cx, cy + height); path.lineTo(cx - width, cy); path.closePath(); } }); /** * Pin shape * @inner */ var Pin = _graphic_js__WEBPACK_IMPORTED_MODULE_1__["Path"].extend({ type: 'pin', shape: { // x, y on the cusp x: 0, y: 0, width: 0, height: 0 }, buildPath: function (path, shape) { var x = shape.x; var y = shape.y; var w = shape.width / 5 * 3; // Height must be larger than width var h = Math.max(w, shape.height); var r = w / 2; // Dist on y with tangent point and circle center var dy = r * r / (h - r); var cy = y - h + r + dy; var angle = Math.asin(dy / r); // Dist on x with tangent point and circle center var dx = Math.cos(angle) * r; var tanX = Math.sin(angle); var tanY = Math.cos(angle); var cpLen = r * 0.6; var cpLen2 = r * 0.7; path.moveTo(x - dx, cy + dy); path.arc(x, cy, r, Math.PI - angle, Math.PI * 2 + angle); path.bezierCurveTo(x + dx - tanX * cpLen, cy + dy + tanY * cpLen, x, y - cpLen2, x, y); path.bezierCurveTo(x, y - cpLen2, x - dx + tanX * cpLen, cy + dy + tanY * cpLen, x - dx, cy + dy); path.closePath(); } }); /** * Arrow shape * @inner */ var Arrow = _graphic_js__WEBPACK_IMPORTED_MODULE_1__["Path"].extend({ type: 'arrow', shape: { x: 0, y: 0, width: 0, height: 0 }, buildPath: function (ctx, shape) { var height = shape.height; var width = shape.width; var x = shape.x; var y = shape.y; var dx = width / 3 * 2; ctx.moveTo(x, y); ctx.lineTo(x + dx, y + height); ctx.lineTo(x, y + height / 4 * 3); ctx.lineTo(x - dx, y + height); ctx.lineTo(x, y); ctx.closePath(); } }); /** * Map of path constructors */ // TODO Use function to build symbol path. var symbolCtors = { line: _graphic_js__WEBPACK_IMPORTED_MODULE_1__["Line"], rect: _graphic_js__WEBPACK_IMPORTED_MODULE_1__["Rect"], roundRect: _graphic_js__WEBPACK_IMPORTED_MODULE_1__["Rect"], square: _graphic_js__WEBPACK_IMPORTED_MODULE_1__["Rect"], circle: _graphic_js__WEBPACK_IMPORTED_MODULE_1__["Circle"], diamond: Diamond, pin: Pin, arrow: Arrow, triangle: Triangle }; var symbolShapeMakers = { line: function (x, y, w, h, shape) { shape.x1 = x; shape.y1 = y + h / 2; shape.x2 = x + w; shape.y2 = y + h / 2; }, rect: function (x, y, w, h, shape) { shape.x = x; shape.y = y; shape.width = w; shape.height = h; }, roundRect: function (x, y, w, h, shape) { shape.x = x; shape.y = y; shape.width = w; shape.height = h; shape.r = Math.min(w, h) / 4; }, square: function (x, y, w, h, shape) { var size = Math.min(w, h); shape.x = x; shape.y = y; shape.width = size; shape.height = size; }, circle: function (x, y, w, h, shape) { // Put circle in the center of square shape.cx = x + w / 2; shape.cy = y + h / 2; shape.r = Math.min(w, h) / 2; }, diamond: function (x, y, w, h, shape) { shape.cx = x + w / 2; shape.cy = y + h / 2; shape.width = w; shape.height = h; }, pin: function (x, y, w, h, shape) { shape.x = x + w / 2; shape.y = y + h / 2; shape.width = w; shape.height = h; }, arrow: function (x, y, w, h, shape) { shape.x = x + w / 2; shape.y = y + h / 2; shape.width = w; shape.height = h; }, triangle: function (x, y, w, h, shape) { shape.cx = x + w / 2; shape.cy = y + h / 2; shape.width = w; shape.height = h; } }; var symbolBuildProxies = {}; Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(symbolCtors, function (Ctor, name) { symbolBuildProxies[name] = new Ctor(); }); var SymbolClz = _graphic_js__WEBPACK_IMPORTED_MODULE_1__["Path"].extend({ type: 'symbol', shape: { symbolType: '', x: 0, y: 0, width: 0, height: 0 }, calculateTextPosition: function (out, config, rect) { var res = Object(zrender_lib_contain_text_js__WEBPACK_IMPORTED_MODULE_3__["calculateTextPosition"])(out, config, rect); var shape = this.shape; if (shape && shape.symbolType === 'pin' && config.position === 'inside') { res.y = rect.y + rect.height * 0.4; } return res; }, buildPath: function (ctx, shape, inBundle) { var symbolType = shape.symbolType; if (symbolType !== 'none') { var proxySymbol = symbolBuildProxies[symbolType]; if (!proxySymbol) { // Default rect symbolType = 'rect'; proxySymbol = symbolBuildProxies[symbolType]; } symbolShapeMakers[symbolType](shape.x, shape.y, shape.width, shape.height, proxySymbol.shape); proxySymbol.buildPath(ctx, proxySymbol.shape, inBundle); } } }); // Provide setColor helper method to avoid determine if set the fill or stroke outside function symbolPathSetColor(color, innerColor) { if (this.type !== 'image') { var symbolStyle = this.style; if (this.__isEmptyBrush) { symbolStyle.stroke = color; symbolStyle.fill = innerColor || '#fff'; // TODO Same width with lineStyle in LineView symbolStyle.lineWidth = 2; } else if (this.shape.symbolType === 'line') { symbolStyle.stroke = color; } else { symbolStyle.fill = color; } this.markRedraw(); } } /** * Create a symbol element with given symbol configuration: shape, x, y, width, height, color */ function createSymbol(symbolType, x, y, w, h, color, // whether to keep the ratio of w/h, keepAspect) { // TODO Support image object, DynamicImage. var isEmpty = symbolType.indexOf('empty') === 0; if (isEmpty) { symbolType = symbolType.substr(5, 1).toLowerCase() + symbolType.substr(6); } var symbolPath; if (symbolType.indexOf('image://') === 0) { symbolPath = _graphic_js__WEBPACK_IMPORTED_MODULE_1__["makeImage"](symbolType.slice(8), new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_2__["default"](x, y, w, h), keepAspect ? 'center' : 'cover'); } else if (symbolType.indexOf('path://') === 0) { symbolPath = _graphic_js__WEBPACK_IMPORTED_MODULE_1__["makePath"](symbolType.slice(7), {}, new zrender_lib_core_BoundingRect_js__WEBPACK_IMPORTED_MODULE_2__["default"](x, y, w, h), keepAspect ? 'center' : 'cover'); } else { symbolPath = new SymbolClz({ shape: { symbolType: symbolType, x: x, y: y, width: w, height: h } }); } symbolPath.__isEmptyBrush = isEmpty; // TODO Should deprecate setColor symbolPath.setColor = symbolPathSetColor; if (color) { symbolPath.setColor(color); } return symbolPath; } function normalizeSymbolSize(symbolSize) { if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(symbolSize)) { symbolSize = [+symbolSize, +symbolSize]; } return [symbolSize[0] || 0, symbolSize[1] || 0]; } function normalizeSymbolOffset(symbolOffset, symbolSize) { if (symbolOffset == null) { return; } if (!Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(symbolOffset)) { symbolOffset = [symbolOffset, symbolOffset]; } return [Object(_number_js__WEBPACK_IMPORTED_MODULE_4__["parsePercent"])(symbolOffset[0], symbolSize[0]) || 0, Object(_number_js__WEBPACK_IMPORTED_MODULE_4__["parsePercent"])(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["retrieve2"])(symbolOffset[1], symbolOffset[0]), symbolSize[1]) || 0]; } /***/ }), /***/ "./node_modules/echarts/lib/util/throttle.js": /*!***************************************************!*\ !*** ./node_modules/echarts/lib/util/throttle.js ***! \***************************************************/ /*! exports provided: throttle, createOrUpdate, clear */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throttle", function() { return throttle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createOrUpdate", function() { return createOrUpdate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ORIGIN_METHOD = '\0__throttleOriginMethod'; var RATE = '\0__throttleRate'; var THROTTLE_TYPE = '\0__throttleType'; ; /** * @public * @param {(Function)} fn * @param {number} [delay=0] Unit: ms. * @param {boolean} [debounce=false] * true: If call interval less than `delay`, only the last call works. * false: If call interval less than `delay, call works on fixed rate. * @return {(Function)} throttled fn. */ function throttle(fn, delay, debounce) { var currCall; var lastCall = 0; var lastExec = 0; var timer = null; var diff; var scope; var args; var debounceNextCall; delay = delay || 0; function exec() { lastExec = new Date().getTime(); timer = null; fn.apply(scope, args || []); } var cb = function () { var cbArgs = []; for (var _i = 0; _i < arguments.length; _i++) { cbArgs[_i] = arguments[_i]; } currCall = new Date().getTime(); scope = this; args = cbArgs; var thisDelay = debounceNextCall || delay; var thisDebounce = debounceNextCall || debounce; debounceNextCall = null; diff = currCall - (thisDebounce ? lastCall : lastExec) - thisDelay; clearTimeout(timer); // Here we should make sure that: the `exec` SHOULD NOT be called later // than a new call of `cb`, that is, preserving the command order. Consider // calculating "scale rate" when roaming as an example. When a call of `cb` // happens, either the `exec` is called dierectly, or the call is delayed. // But the delayed call should never be later than next call of `cb`. Under // this assurance, we can simply update view state each time `dispatchAction` // triggered by user roaming, but not need to add extra code to avoid the // state being "rolled-back". if (thisDebounce) { timer = setTimeout(exec, thisDelay); } else { if (diff >= 0) { exec(); } else { timer = setTimeout(exec, -diff); } } lastCall = currCall; }; /** * Clear throttle. * @public */ cb.clear = function () { if (timer) { clearTimeout(timer); timer = null; } }; /** * Enable debounce once. */ cb.debounceNextCall = function (debounceDelay) { debounceNextCall = debounceDelay; }; return cb; } /** * Create throttle method or update throttle rate. * * @example * ComponentView.prototype.render = function () { * ... * throttle.createOrUpdate( * this, * '_dispatchAction', * this.model.get('throttle'), * 'fixRate' * ); * }; * ComponentView.prototype.remove = function () { * throttle.clear(this, '_dispatchAction'); * }; * ComponentView.prototype.dispose = function () { * throttle.clear(this, '_dispatchAction'); * }; * */ function createOrUpdate(obj, fnAttr, rate, throttleType) { var fn = obj[fnAttr]; if (!fn) { return; } var originFn = fn[ORIGIN_METHOD] || fn; var lastThrottleType = fn[THROTTLE_TYPE]; var lastRate = fn[RATE]; if (lastRate !== rate || lastThrottleType !== throttleType) { if (rate == null || !throttleType) { return obj[fnAttr] = originFn; } fn = obj[fnAttr] = throttle(originFn, rate, throttleType === 'debounce'); fn[ORIGIN_METHOD] = originFn; fn[THROTTLE_TYPE] = throttleType; fn[RATE] = rate; } return fn; } /** * Clear throttle. Example see throttle.createOrUpdate. */ function clear(obj, fnAttr) { var fn = obj[fnAttr]; if (fn && fn[ORIGIN_METHOD]) { // Clear throttle fn.clear && fn.clear(); obj[fnAttr] = fn[ORIGIN_METHOD]; } } /***/ }), /***/ "./node_modules/echarts/lib/util/time.js": /*!***********************************************!*\ !*** ./node_modules/echarts/lib/util/time.js ***! \***********************************************/ /*! exports provided: ONE_SECOND, ONE_MINUTE, ONE_HOUR, ONE_DAY, ONE_YEAR, defaultLeveledFormatter, fullLeveledFormatter, primaryTimeUnits, timeUnits, pad, getPrimaryTimeUnit, isPrimaryTimeUnit, getDefaultFormatPrecisionOfInterval, format, leveledFormat, getUnitFromValue, getUnitValue, fullYearGetterName, monthGetterName, dateGetterName, hoursGetterName, minutesGetterName, secondsGetterName, millisecondsGetterName, fullYearSetterName, monthSetterName, dateSetterName, hoursSetterName, minutesSetterName, secondsSetterName, millisecondsSetterName */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ONE_SECOND", function() { return ONE_SECOND; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ONE_MINUTE", function() { return ONE_MINUTE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ONE_HOUR", function() { return ONE_HOUR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ONE_DAY", function() { return ONE_DAY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ONE_YEAR", function() { return ONE_YEAR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultLeveledFormatter", function() { return defaultLeveledFormatter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fullLeveledFormatter", function() { return fullLeveledFormatter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "primaryTimeUnits", function() { return primaryTimeUnits; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeUnits", function() { return timeUnits; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pad", function() { return pad; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPrimaryTimeUnit", function() { return getPrimaryTimeUnit; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPrimaryTimeUnit", function() { return isPrimaryTimeUnit; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDefaultFormatPrecisionOfInterval", function() { return getDefaultFormatPrecisionOfInterval; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "format", function() { return format; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "leveledFormat", function() { return leveledFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUnitFromValue", function() { return getUnitFromValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUnitValue", function() { return getUnitValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fullYearGetterName", function() { return fullYearGetterName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monthGetterName", function() { return monthGetterName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dateGetterName", function() { return dateGetterName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hoursGetterName", function() { return hoursGetterName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "minutesGetterName", function() { return minutesGetterName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "secondsGetterName", function() { return secondsGetterName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "millisecondsGetterName", function() { return millisecondsGetterName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fullYearSetterName", function() { return fullYearSetterName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monthSetterName", function() { return monthSetterName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dateSetterName", function() { return dateSetterName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hoursSetterName", function() { return hoursSetterName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "minutesSetterName", function() { return minutesSetterName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "secondsSetterName", function() { return secondsSetterName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "millisecondsSetterName", function() { return millisecondsSetterName; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _core_locale_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/locale.js */ "./node_modules/echarts/lib/core/locale.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ONE_SECOND = 1000; var ONE_MINUTE = ONE_SECOND * 60; var ONE_HOUR = ONE_MINUTE * 60; var ONE_DAY = ONE_HOUR * 24; var ONE_YEAR = ONE_DAY * 365; var defaultLeveledFormatter = { year: '{yyyy}', month: '{MMM}', day: '{d}', hour: '{HH}:{mm}', minute: '{HH}:{mm}', second: '{HH}:{mm}:{ss}', millisecond: '{HH}:{mm}:{ss} {SSS}', none: '{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}' }; var fullDayFormatter = '{yyyy}-{MM}-{dd}'; var fullLeveledFormatter = { year: '{yyyy}', month: '{yyyy}-{MM}', day: fullDayFormatter, hour: fullDayFormatter + ' ' + defaultLeveledFormatter.hour, minute: fullDayFormatter + ' ' + defaultLeveledFormatter.minute, second: fullDayFormatter + ' ' + defaultLeveledFormatter.second, millisecond: defaultLeveledFormatter.none }; var primaryTimeUnits = ['year', 'month', 'day', 'hour', 'minute', 'second', 'millisecond']; var timeUnits = ['year', 'half-year', 'quarter', 'month', 'week', 'half-week', 'day', 'half-day', 'quarter-day', 'hour', 'minute', 'second', 'millisecond']; function pad(str, len) { str += ''; return '0000'.substr(0, len - str.length) + str; } function getPrimaryTimeUnit(timeUnit) { switch (timeUnit) { case 'half-year': case 'quarter': return 'month'; case 'week': case 'half-week': return 'day'; case 'half-day': case 'quarter-day': return 'hour'; default: // year, minutes, second, milliseconds return timeUnit; } } function isPrimaryTimeUnit(timeUnit) { return timeUnit === getPrimaryTimeUnit(timeUnit); } function getDefaultFormatPrecisionOfInterval(timeUnit) { switch (timeUnit) { case 'year': case 'month': return 'day'; case 'millisecond': return 'millisecond'; default: // Also for day, hour, minute, second return 'second'; } } function format( // Note: The result based on `isUTC` are totally different, which can not be just simply // substituted by the result without `isUTC`. So we make the param `isUTC` mandatory. time, template, isUTC, lang) { var date = _number_js__WEBPACK_IMPORTED_MODULE_1__["parseDate"](time); var y = date[fullYearGetterName(isUTC)](); var M = date[monthGetterName(isUTC)]() + 1; var q = Math.floor((M - 1) / 3) + 1; var d = date[dateGetterName(isUTC)](); var e = date['get' + (isUTC ? 'UTC' : '') + 'Day'](); var H = date[hoursGetterName(isUTC)](); var h = (H - 1) % 12 + 1; var m = date[minutesGetterName(isUTC)](); var s = date[secondsGetterName(isUTC)](); var S = date[millisecondsGetterName(isUTC)](); var a = H >= 12 ? 'pm' : 'am'; var A = a.toUpperCase(); var localeModel = lang instanceof _model_Model_js__WEBPACK_IMPORTED_MODULE_3__["default"] ? lang : Object(_core_locale_js__WEBPACK_IMPORTED_MODULE_2__["getLocaleModel"])(lang || _core_locale_js__WEBPACK_IMPORTED_MODULE_2__["SYSTEM_LANG"]) || Object(_core_locale_js__WEBPACK_IMPORTED_MODULE_2__["getDefaultLocaleModel"])(); var timeModel = localeModel.getModel('time'); var month = timeModel.get('month'); var monthAbbr = timeModel.get('monthAbbr'); var dayOfWeek = timeModel.get('dayOfWeek'); var dayOfWeekAbbr = timeModel.get('dayOfWeekAbbr'); return (template || '').replace(/{a}/g, a + '').replace(/{A}/g, A + '').replace(/{yyyy}/g, y + '').replace(/{yy}/g, pad(y % 100 + '', 2)).replace(/{Q}/g, q + '').replace(/{MMMM}/g, month[M - 1]).replace(/{MMM}/g, monthAbbr[M - 1]).replace(/{MM}/g, pad(M, 2)).replace(/{M}/g, M + '').replace(/{dd}/g, pad(d, 2)).replace(/{d}/g, d + '').replace(/{eeee}/g, dayOfWeek[e]).replace(/{ee}/g, dayOfWeekAbbr[e]).replace(/{e}/g, e + '').replace(/{HH}/g, pad(H, 2)).replace(/{H}/g, H + '').replace(/{hh}/g, pad(h + '', 2)).replace(/{h}/g, h + '').replace(/{mm}/g, pad(m, 2)).replace(/{m}/g, m + '').replace(/{ss}/g, pad(s, 2)).replace(/{s}/g, s + '').replace(/{SSS}/g, pad(S, 3)).replace(/{S}/g, S + ''); } function leveledFormat(tick, idx, formatter, lang, isUTC) { var template = null; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](formatter)) { // Single formatter for all units at all levels template = formatter; } else if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"](formatter)) { // Callback formatter template = formatter(tick.value, idx, { level: tick.level }); } else { var defaults = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, defaultLeveledFormatter); if (tick.level > 0) { for (var i = 0; i < primaryTimeUnits.length; ++i) { defaults[primaryTimeUnits[i]] = "{primary|" + defaults[primaryTimeUnits[i]] + "}"; } } var mergedFormatter = formatter ? formatter.inherit === false ? formatter // Use formatter with bigger units : zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"](formatter, defaults) : defaults; var unit = getUnitFromValue(tick.value, isUTC); if (mergedFormatter[unit]) { template = mergedFormatter[unit]; } else if (mergedFormatter.inherit) { // Unit formatter is not defined and should inherit from bigger units var targetId = timeUnits.indexOf(unit); for (var i = targetId - 1; i >= 0; --i) { if (mergedFormatter[unit]) { template = mergedFormatter[unit]; break; } } template = template || defaults.none; } if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](template)) { var levelId = tick.level == null ? 0 : tick.level >= 0 ? tick.level : template.length + tick.level; levelId = Math.min(levelId, template.length - 1); template = template[levelId]; } } return format(new Date(tick.value), template, isUTC, lang); } function getUnitFromValue(value, isUTC) { var date = _number_js__WEBPACK_IMPORTED_MODULE_1__["parseDate"](value); var M = date[monthGetterName(isUTC)]() + 1; var d = date[dateGetterName(isUTC)](); var h = date[hoursGetterName(isUTC)](); var m = date[minutesGetterName(isUTC)](); var s = date[secondsGetterName(isUTC)](); var S = date[millisecondsGetterName(isUTC)](); var isSecond = S === 0; var isMinute = isSecond && s === 0; var isHour = isMinute && m === 0; var isDay = isHour && h === 0; var isMonth = isDay && d === 1; var isYear = isMonth && M === 1; if (isYear) { return 'year'; } else if (isMonth) { return 'month'; } else if (isDay) { return 'day'; } else if (isHour) { return 'hour'; } else if (isMinute) { return 'minute'; } else if (isSecond) { return 'second'; } else { return 'millisecond'; } } function getUnitValue(value, unit, isUTC) { var date = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isNumber"](value) ? _number_js__WEBPACK_IMPORTED_MODULE_1__["parseDate"](value) : value; unit = unit || getUnitFromValue(value, isUTC); switch (unit) { case 'year': return date[fullYearGetterName(isUTC)](); case 'half-year': return date[monthGetterName(isUTC)]() >= 6 ? 1 : 0; case 'quarter': return Math.floor((date[monthGetterName(isUTC)]() + 1) / 4); case 'month': return date[monthGetterName(isUTC)](); case 'day': return date[dateGetterName(isUTC)](); case 'half-day': return date[hoursGetterName(isUTC)]() / 24; case 'hour': return date[hoursGetterName(isUTC)](); case 'minute': return date[minutesGetterName(isUTC)](); case 'second': return date[secondsGetterName(isUTC)](); case 'millisecond': return date[millisecondsGetterName(isUTC)](); } } function fullYearGetterName(isUTC) { return isUTC ? 'getUTCFullYear' : 'getFullYear'; } function monthGetterName(isUTC) { return isUTC ? 'getUTCMonth' : 'getMonth'; } function dateGetterName(isUTC) { return isUTC ? 'getUTCDate' : 'getDate'; } function hoursGetterName(isUTC) { return isUTC ? 'getUTCHours' : 'getHours'; } function minutesGetterName(isUTC) { return isUTC ? 'getUTCMinutes' : 'getMinutes'; } function secondsGetterName(isUTC) { return isUTC ? 'getUTCSeconds' : 'getSeconds'; } function millisecondsGetterName(isUTC) { return isUTC ? 'getUTCMilliseconds' : 'getMilliseconds'; } function fullYearSetterName(isUTC) { return isUTC ? 'setUTCFullYear' : 'setFullYear'; } function monthSetterName(isUTC) { return isUTC ? 'setUTCMonth' : 'setMonth'; } function dateSetterName(isUTC) { return isUTC ? 'setUTCDate' : 'setDate'; } function hoursSetterName(isUTC) { return isUTC ? 'setUTCHours' : 'setHours'; } function minutesSetterName(isUTC) { return isUTC ? 'setUTCMinutes' : 'setMinutes'; } function secondsSetterName(isUTC) { return isUTC ? 'setUTCSeconds' : 'setSeconds'; } function millisecondsSetterName(isUTC) { return isUTC ? 'setUTCMilliseconds' : 'setMilliseconds'; } /***/ }), /***/ "./node_modules/echarts/lib/util/types.js": /*!************************************************!*\ !*** ./node_modules/echarts/lib/util/types.js ***! \************************************************/ /*! exports provided: VISUAL_DIMENSIONS, SOURCE_FORMAT_ORIGINAL, SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_OBJECT_ROWS, SOURCE_FORMAT_KEYED_COLUMNS, SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_UNKNOWN, SERIES_LAYOUT_BY_COLUMN, SERIES_LAYOUT_BY_ROW */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VISUAL_DIMENSIONS", function() { return VISUAL_DIMENSIONS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SOURCE_FORMAT_ORIGINAL", function() { return SOURCE_FORMAT_ORIGINAL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SOURCE_FORMAT_ARRAY_ROWS", function() { return SOURCE_FORMAT_ARRAY_ROWS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SOURCE_FORMAT_OBJECT_ROWS", function() { return SOURCE_FORMAT_OBJECT_ROWS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SOURCE_FORMAT_KEYED_COLUMNS", function() { return SOURCE_FORMAT_KEYED_COLUMNS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SOURCE_FORMAT_TYPED_ARRAY", function() { return SOURCE_FORMAT_TYPED_ARRAY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SOURCE_FORMAT_UNKNOWN", function() { return SOURCE_FORMAT_UNKNOWN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SERIES_LAYOUT_BY_COLUMN", function() { return SERIES_LAYOUT_BY_COLUMN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SERIES_LAYOUT_BY_ROW", function() { return SERIES_LAYOUT_BY_ROW; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ; ; ; var VISUAL_DIMENSIONS = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(['tooltip', 'label', 'itemName', 'itemId', 'itemGroupId', 'itemChildGroupId', 'seriesName']); var SOURCE_FORMAT_ORIGINAL = 'original'; var SOURCE_FORMAT_ARRAY_ROWS = 'arrayRows'; var SOURCE_FORMAT_OBJECT_ROWS = 'objectRows'; var SOURCE_FORMAT_KEYED_COLUMNS = 'keyedColumns'; var SOURCE_FORMAT_TYPED_ARRAY = 'typedArray'; var SOURCE_FORMAT_UNKNOWN = 'unknown'; var SERIES_LAYOUT_BY_COLUMN = 'column'; var SERIES_LAYOUT_BY_ROW = 'row'; ; ; ; ; /***/ }), /***/ "./node_modules/echarts/lib/util/vendor.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/util/vendor.js ***! \*************************************************/ /*! exports provided: createFloat32Array */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createFloat32Array", function() { return createFloat32Array; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* global Float32Array */ var supportFloat32Array = typeof Float32Array !== 'undefined'; var Float32ArrayCtor = !supportFloat32Array ? Array : Float32Array; function createFloat32Array(arg) { if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"])(arg)) { // Return self directly if don't support TypedArray. return supportFloat32Array ? new Float32Array(arg) : arg; } // Else is number return new Float32ArrayCtor(arg); } /***/ }), /***/ "./node_modules/echarts/lib/view/Chart.js": /*!************************************************!*\ !*** ./node_modules/echarts/lib/view/Chart.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_graphic_Group_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/graphic/Group.js */ "./node_modules/zrender/lib/graphic/Group.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* harmony import */ var _util_clazz_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/clazz.js */ "./node_modules/echarts/lib/util/clazz.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _util_states_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/states.js */ "./node_modules/echarts/lib/util/states.js"); /* harmony import */ var _core_task_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../core/task.js */ "./node_modules/echarts/lib/core/task.js"); /* harmony import */ var _chart_helper_createRenderPlanner_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../chart/helper/createRenderPlanner.js */ "./node_modules/echarts/lib/chart/helper/createRenderPlanner.js"); /* harmony import */ var _util_graphic_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util/graphic.js */ "./node_modules/echarts/lib/util/graphic.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner = _util_model_js__WEBPACK_IMPORTED_MODULE_4__["makeInner"](); var renderPlanner = Object(_chart_helper_createRenderPlanner_js__WEBPACK_IMPORTED_MODULE_7__["default"])(); var ChartView = /** @class */function () { function ChartView() { this.group = new zrender_lib_graphic_Group_js__WEBPACK_IMPORTED_MODULE_1__["default"](); this.uid = _util_component_js__WEBPACK_IMPORTED_MODULE_2__["getUID"]('viewChart'); this.renderTask = Object(_core_task_js__WEBPACK_IMPORTED_MODULE_6__["createTask"])({ plan: renderTaskPlan, reset: renderTaskReset }); this.renderTask.context = { view: this }; } ChartView.prototype.init = function (ecModel, api) {}; ChartView.prototype.render = function (seriesModel, ecModel, api, payload) { if (true) { throw new Error('render method must been implemented'); } }; /** * Highlight series or specified data item. */ ChartView.prototype.highlight = function (seriesModel, ecModel, api, payload) { var data = seriesModel.getData(payload && payload.dataType); if (!data) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_9__["error"])("Unknown dataType " + payload.dataType); } return; } toggleHighlight(data, payload, 'emphasis'); }; /** * Downplay series or specified data item. */ ChartView.prototype.downplay = function (seriesModel, ecModel, api, payload) { var data = seriesModel.getData(payload && payload.dataType); if (!data) { if (true) { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_9__["error"])("Unknown dataType " + payload.dataType); } return; } toggleHighlight(data, payload, 'normal'); }; /** * Remove self. */ ChartView.prototype.remove = function (ecModel, api) { this.group.removeAll(); }; /** * Dispose self. */ ChartView.prototype.dispose = function (ecModel, api) {}; ChartView.prototype.updateView = function (seriesModel, ecModel, api, payload) { this.render(seriesModel, ecModel, api, payload); }; // FIXME never used? ChartView.prototype.updateLayout = function (seriesModel, ecModel, api, payload) { this.render(seriesModel, ecModel, api, payload); }; // FIXME never used? ChartView.prototype.updateVisual = function (seriesModel, ecModel, api, payload) { this.render(seriesModel, ecModel, api, payload); }; /** * Traverse the new rendered elements. * * It will traverse the new added element in progressive rendering. * And traverse all in normal rendering. */ ChartView.prototype.eachRendered = function (cb) { Object(_util_graphic_js__WEBPACK_IMPORTED_MODULE_8__["traverseElements"])(this.group, cb); }; ChartView.markUpdateMethod = function (payload, methodName) { inner(payload).updateMethod = methodName; }; ChartView.protoInitialize = function () { var proto = ChartView.prototype; proto.type = 'chart'; }(); return ChartView; }(); ; /** * Set state of single element */ function elSetState(el, state, highlightDigit) { if (el && Object(_util_states_js__WEBPACK_IMPORTED_MODULE_5__["isHighDownDispatcher"])(el)) { (state === 'emphasis' ? _util_states_js__WEBPACK_IMPORTED_MODULE_5__["enterEmphasis"] : _util_states_js__WEBPACK_IMPORTED_MODULE_5__["leaveEmphasis"])(el, highlightDigit); } } function toggleHighlight(data, payload, state) { var dataIndex = _util_model_js__WEBPACK_IMPORTED_MODULE_4__["queryDataIndex"](data, payload); var highlightDigit = payload && payload.highlightKey != null ? Object(_util_states_js__WEBPACK_IMPORTED_MODULE_5__["getHighlightDigit"])(payload.highlightKey) : null; if (dataIndex != null) { Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"])(_util_model_js__WEBPACK_IMPORTED_MODULE_4__["normalizeToArray"](dataIndex), function (dataIdx) { elSetState(data.getItemGraphicEl(dataIdx), state, highlightDigit); }); } else { data.eachItemGraphicEl(function (el) { elSetState(el, state, highlightDigit); }); } } _util_clazz_js__WEBPACK_IMPORTED_MODULE_3__["enableClassExtend"](ChartView, ['dispose']); _util_clazz_js__WEBPACK_IMPORTED_MODULE_3__["enableClassManagement"](ChartView); function renderTaskPlan(context) { return renderPlanner(context.model); } function renderTaskReset(context) { var seriesModel = context.model; var ecModel = context.ecModel; var api = context.api; var payload = context.payload; // FIXME: remove updateView updateVisual var progressiveRender = seriesModel.pipelineContext.progressiveRender; var view = context.view; var updateMethod = payload && inner(payload).updateMethod; var methodName = progressiveRender ? 'incrementalPrepareRender' : updateMethod && view[updateMethod] ? updateMethod // `appendData` is also supported when data amount // is less than progressive threshold. : 'render'; if (methodName !== 'render') { view[methodName](seriesModel, ecModel, api, payload); } return progressMethodMap[methodName]; } var progressMethodMap = { incrementalPrepareRender: { progress: function (params, context) { context.view.incrementalRender(params, context.model, context.ecModel, context.api, context.payload); } }, render: { // Put view.render in `progress` to support appendData. But in this case // view.render should not be called in reset, otherwise it will be called // twise. Use `forceFirstProgress` to make sure that view.render is called // in any cases. forceFirstProgress: true, progress: function (params, context) { context.view.render(context.model, context.ecModel, context.api, context.payload); } } }; /* harmony default export */ __webpack_exports__["default"] = (ChartView); /***/ }), /***/ "./node_modules/echarts/lib/view/Component.js": /*!****************************************************!*\ !*** ./node_modules/echarts/lib/view/Component.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_graphic_Group_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/graphic/Group.js */ "./node_modules/zrender/lib/graphic/Group.js"); /* harmony import */ var _util_component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/component.js */ "./node_modules/echarts/lib/util/component.js"); /* harmony import */ var _util_clazz_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/clazz.js */ "./node_modules/echarts/lib/util/clazz.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var ComponentView = /** @class */function () { function ComponentView() { this.group = new zrender_lib_graphic_Group_js__WEBPACK_IMPORTED_MODULE_0__["default"](); this.uid = _util_component_js__WEBPACK_IMPORTED_MODULE_1__["getUID"]('viewComponent'); } ComponentView.prototype.init = function (ecModel, api) {}; ComponentView.prototype.render = function (model, ecModel, api, payload) {}; ComponentView.prototype.dispose = function (ecModel, api) {}; ComponentView.prototype.updateView = function (model, ecModel, api, payload) { // Do nothing; }; ComponentView.prototype.updateLayout = function (model, ecModel, api, payload) { // Do nothing; }; ComponentView.prototype.updateVisual = function (model, ecModel, api, payload) { // Do nothing; }; /** * Hook for toggle blur target series. * Can be used in marker for blur or leave blur the markers */ ComponentView.prototype.toggleBlurSeries = function (seriesModels, isBlur, ecModel) { // Do nothing; }; /** * Traverse the new rendered elements. * * It will traverse the new added element in progressive rendering. * And traverse all in normal rendering. */ ComponentView.prototype.eachRendered = function (cb) { var group = this.group; if (group) { group.traverse(cb); } }; return ComponentView; }(); ; _util_clazz_js__WEBPACK_IMPORTED_MODULE_2__["enableClassExtend"](ComponentView); _util_clazz_js__WEBPACK_IMPORTED_MODULE_2__["enableClassManagement"](ComponentView); /* harmony default export */ __webpack_exports__["default"] = (ComponentView); /***/ }), /***/ "./node_modules/echarts/lib/visual/LegendVisualProvider.js": /*!*****************************************************************!*\ !*** ./node_modules/echarts/lib/visual/LegendVisualProvider.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * LegendVisualProvider is an bridge that pick encoded color from data and * provide to the legend component. */ var LegendVisualProvider = /** @class */function () { function LegendVisualProvider( // Function to get data after filtered. It stores all the encoding info getDataWithEncodedVisual, // Function to get raw data before filtered. getRawData) { this._getDataWithEncodedVisual = getDataWithEncodedVisual; this._getRawData = getRawData; } LegendVisualProvider.prototype.getAllNames = function () { var rawData = this._getRawData(); // We find the name from the raw data. In case it's filtered by the legend component. // Normally, the name can be found in rawData, but can't be found in filtered data will display as gray. return rawData.mapArray(rawData.getName); }; LegendVisualProvider.prototype.containName = function (name) { var rawData = this._getRawData(); return rawData.indexOfName(name) >= 0; }; LegendVisualProvider.prototype.indexOfName = function (name) { // Only get data when necessary. // Because LegendVisualProvider constructor may be new in the stage that data is not prepared yet. // Invoking Series#getData immediately will throw an error. var dataWithEncodedVisual = this._getDataWithEncodedVisual(); return dataWithEncodedVisual.indexOfName(name); }; LegendVisualProvider.prototype.getItemVisual = function (dataIndex, key) { // Get encoded visual properties from final filtered data. var dataWithEncodedVisual = this._getDataWithEncodedVisual(); return dataWithEncodedVisual.getItemVisual(dataIndex, key); }; return LegendVisualProvider; }(); /* harmony default export */ __webpack_exports__["default"] = (LegendVisualProvider); /***/ }), /***/ "./node_modules/echarts/lib/visual/VisualMapping.js": /*!**********************************************************!*\ !*** ./node_modules/echarts/lib/visual/VisualMapping.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! zrender/lib/tool/color.js */ "./node_modules/zrender/lib/tool/color.js"); /* harmony import */ var _util_number_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/number.js */ "./node_modules/echarts/lib/util/number.js"); /* harmony import */ var _util_log_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/log.js */ "./node_modules/echarts/lib/util/log.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]; var isObject = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"]; var CATEGORY_DEFAULT_VISUAL_INDEX = -1; var VisualMapping = /** @class */function () { function VisualMapping(option) { var mappingMethod = option.mappingMethod; var visualType = option.type; var thisOption = this.option = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"](option); this.type = visualType; this.mappingMethod = mappingMethod; this._normalizeData = normalizers[mappingMethod]; var visualHandler = VisualMapping.visualHandlers[visualType]; this.applyVisual = visualHandler.applyVisual; this.getColorMapper = visualHandler.getColorMapper; this._normalizedToVisual = visualHandler._normalizedToVisual[mappingMethod]; if (mappingMethod === 'piecewise') { normalizeVisualRange(thisOption); preprocessForPiecewise(thisOption); } else if (mappingMethod === 'category') { thisOption.categories ? preprocessForSpecifiedCategory(thisOption) // categories is ordinal when thisOption.categories not specified, // which need no more preprocess except normalize visual. : normalizeVisualRange(thisOption, true); } else { // mappingMethod === 'linear' or 'fixed' zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["assert"](mappingMethod !== 'linear' || thisOption.dataExtent); normalizeVisualRange(thisOption); } } VisualMapping.prototype.mapValueToVisual = function (value) { var normalized = this._normalizeData(value); return this._normalizedToVisual(normalized, value); }; VisualMapping.prototype.getNormalizer = function () { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"](this._normalizeData, this); }; /** * List available visual types. * * @public * @return {Array.} */ VisualMapping.listVisualTypes = function () { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["keys"](VisualMapping.visualHandlers); }; // /** // * @public // */ // static addVisualHandler(name, handler) { // visualHandlers[name] = handler; // } /** * @public */ VisualMapping.isValidType = function (visualType) { return VisualMapping.visualHandlers.hasOwnProperty(visualType); }; /** * Convenient method. * Visual can be Object or Array or primary type. */ VisualMapping.eachVisual = function (visual, callback, context) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](visual)) { zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](visual, callback, context); } else { callback.call(context, visual); } }; VisualMapping.mapVisual = function (visual, callback, context) { var isPrimary; var newVisual = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](visual) ? [] : zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](visual) ? {} : (isPrimary = true, null); VisualMapping.eachVisual(visual, function (v, key) { var newVal = callback.call(context, v, key); isPrimary ? newVisual = newVal : newVisual[key] = newVal; }); return newVisual; }; /** * Retrieve visual properties from given object. */ VisualMapping.retrieveVisuals = function (obj) { var ret = {}; var hasVisual; obj && each(VisualMapping.visualHandlers, function (h, visualType) { if (obj.hasOwnProperty(visualType)) { ret[visualType] = obj[visualType]; hasVisual = true; } }); return hasVisual ? ret : null; }; /** * Give order to visual types, considering colorSaturation, colorAlpha depends on color. * * @public * @param {(Object|Array)} visualTypes If Object, like: {color: ..., colorSaturation: ...} * IF Array, like: ['color', 'symbol', 'colorSaturation'] * @return {Array.} Sorted visual types. */ VisualMapping.prepareVisualTypes = function (visualTypes) { if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](visualTypes)) { visualTypes = visualTypes.slice(); } else if (isObject(visualTypes)) { var types_1 = []; each(visualTypes, function (item, type) { types_1.push(type); }); visualTypes = types_1; } else { return []; } visualTypes.sort(function (type1, type2) { // color should be front of colorSaturation, colorAlpha, ... // symbol and symbolSize do not matter. return type2 === 'color' && type1 !== 'color' && type1.indexOf('color') === 0 ? 1 : -1; }); return visualTypes; }; /** * 'color', 'colorSaturation', 'colorAlpha', ... are depends on 'color'. * Other visuals are only depends on themself. */ VisualMapping.dependsOn = function (visualType1, visualType2) { return visualType2 === 'color' ? !!(visualType1 && visualType1.indexOf(visualType2) === 0) : visualType1 === visualType2; }; /** * @param value * @param pieceList [{value: ..., interval: [min, max]}, ...] * Always from small to big. * @param findClosestWhenOutside Default to be false * @return index */ VisualMapping.findPieceIndex = function (value, pieceList, findClosestWhenOutside) { var possibleI; var abs = Infinity; // value has the higher priority. for (var i = 0, len = pieceList.length; i < len; i++) { var pieceValue = pieceList[i].value; if (pieceValue != null) { if (pieceValue === value // FIXME // It is supposed to compare value according to value type of dimension, // but currently value type can exactly be string or number. // Compromise for numeric-like string (like '12'), especially // in the case that visualMap.categories is ['22', '33']. || zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](pieceValue) && pieceValue === value + '') { return i; } findClosestWhenOutside && updatePossible(pieceValue, i); } } for (var i = 0, len = pieceList.length; i < len; i++) { var piece = pieceList[i]; var interval = piece.interval; var close_1 = piece.close; if (interval) { if (interval[0] === -Infinity) { if (littleThan(close_1[1], value, interval[1])) { return i; } } else if (interval[1] === Infinity) { if (littleThan(close_1[0], interval[0], value)) { return i; } } else if (littleThan(close_1[0], interval[0], value) && littleThan(close_1[1], value, interval[1])) { return i; } findClosestWhenOutside && updatePossible(interval[0], i); findClosestWhenOutside && updatePossible(interval[1], i); } } if (findClosestWhenOutside) { return value === Infinity ? pieceList.length - 1 : value === -Infinity ? 0 : possibleI; } function updatePossible(val, index) { var newAbs = Math.abs(val - value); if (newAbs < abs) { abs = newAbs; possibleI = index; } } }; VisualMapping.visualHandlers = { color: { applyVisual: makeApplyVisual('color'), getColorMapper: function () { var thisOption = this.option; return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["bind"](thisOption.mappingMethod === 'category' ? function (value, isNormalized) { !isNormalized && (value = this._normalizeData(value)); return doMapCategory.call(this, value); } : function (value, isNormalized, out) { // If output rgb array // which will be much faster and useful in pixel manipulation var returnRGBArray = !!out; !isNormalized && (value = this._normalizeData(value)); out = zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["fastLerp"](value, thisOption.parsedVisual, out); return returnRGBArray ? out : zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["stringify"](out, 'rgba'); }, this); }, _normalizedToVisual: { linear: function (normalized) { return zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["stringify"](zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["fastLerp"](normalized, this.option.parsedVisual), 'rgba'); }, category: doMapCategory, piecewise: function (normalized, value) { var result = getSpecifiedVisual.call(this, value); if (result == null) { result = zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["stringify"](zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["fastLerp"](normalized, this.option.parsedVisual), 'rgba'); } return result; }, fixed: doMapFixed } }, colorHue: makePartialColorVisualHandler(function (color, value) { return zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["modifyHSL"](color, value); }), colorSaturation: makePartialColorVisualHandler(function (color, value) { return zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["modifyHSL"](color, null, value); }), colorLightness: makePartialColorVisualHandler(function (color, value) { return zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["modifyHSL"](color, null, null, value); }), colorAlpha: makePartialColorVisualHandler(function (color, value) { return zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["modifyAlpha"](color, value); }), decal: { applyVisual: makeApplyVisual('decal'), _normalizedToVisual: { linear: null, category: doMapCategory, piecewise: null, fixed: null } }, opacity: { applyVisual: makeApplyVisual('opacity'), _normalizedToVisual: createNormalizedToNumericVisual([0, 1]) }, liftZ: { applyVisual: makeApplyVisual('liftZ'), _normalizedToVisual: { linear: doMapFixed, category: doMapFixed, piecewise: doMapFixed, fixed: doMapFixed } }, symbol: { applyVisual: function (value, getter, setter) { var symbolCfg = this.mapValueToVisual(value); setter('symbol', symbolCfg); }, _normalizedToVisual: { linear: doMapToArray, category: doMapCategory, piecewise: function (normalized, value) { var result = getSpecifiedVisual.call(this, value); if (result == null) { result = doMapToArray.call(this, normalized); } return result; }, fixed: doMapFixed } }, symbolSize: { applyVisual: makeApplyVisual('symbolSize'), _normalizedToVisual: createNormalizedToNumericVisual([0, 1]) } }; return VisualMapping; }(); function preprocessForPiecewise(thisOption) { var pieceList = thisOption.pieceList; thisOption.hasSpecialVisual = false; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](pieceList, function (piece, index) { piece.originIndex = index; // piece.visual is "result visual value" but not // a visual range, so it does not need to be normalized. if (piece.visual != null) { thisOption.hasSpecialVisual = true; } }); } function preprocessForSpecifiedCategory(thisOption) { // Hash categories. var categories = thisOption.categories; var categoryMap = thisOption.categoryMap = {}; var visual = thisOption.visual; each(categories, function (cate, index) { categoryMap[cate] = index; }); // Process visual map input. if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](visual)) { var visualArr_1 = []; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](visual)) { each(visual, function (v, cate) { var index = categoryMap[cate]; visualArr_1[index != null ? index : CATEGORY_DEFAULT_VISUAL_INDEX] = v; }); } else { // Is primary type, represents default visual. visualArr_1[CATEGORY_DEFAULT_VISUAL_INDEX] = visual; } visual = setVisualToOption(thisOption, visualArr_1); } // Remove categories that has no visual, // then we can mapping them to CATEGORY_DEFAULT_VISUAL_INDEX. for (var i = categories.length - 1; i >= 0; i--) { if (visual[i] == null) { delete categoryMap[categories[i]]; categories.pop(); } } } function normalizeVisualRange(thisOption, isCategory) { var visual = thisOption.visual; var visualArr = []; if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isObject"](visual)) { each(visual, function (v) { visualArr.push(v); }); } else if (visual != null) { visualArr.push(visual); } var doNotNeedPair = { color: 1, symbol: 1 }; if (!isCategory && visualArr.length === 1 && !doNotNeedPair.hasOwnProperty(thisOption.type)) { // Do not care visualArr.length === 0, which is illegal. visualArr[1] = visualArr[0]; } setVisualToOption(thisOption, visualArr); } function makePartialColorVisualHandler(applyValue) { return { applyVisual: function (value, getter, setter) { // Only used in HSL var colorChannel = this.mapValueToVisual(value); // Must not be array value setter('color', applyValue(getter('color'), colorChannel)); }, _normalizedToVisual: createNormalizedToNumericVisual([0, 1]) }; } function doMapToArray(normalized) { var visual = this.option.visual; return visual[Math.round(Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["linearMap"])(normalized, [0, 1], [0, visual.length - 1], true))] || {}; // TODO {}? } function makeApplyVisual(visualType) { return function (value, getter, setter) { setter(visualType, this.mapValueToVisual(value)); }; } function doMapCategory(normalized) { var visual = this.option.visual; return visual[this.option.loop && normalized !== CATEGORY_DEFAULT_VISUAL_INDEX ? normalized % visual.length : normalized]; } function doMapFixed() { // visual will be convert to array. return this.option.visual[0]; } /** * Create mapped to numeric visual */ function createNormalizedToNumericVisual(sourceExtent) { return { linear: function (normalized) { return Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["linearMap"])(normalized, sourceExtent, this.option.visual, true); }, category: doMapCategory, piecewise: function (normalized, value) { var result = getSpecifiedVisual.call(this, value); if (result == null) { result = Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["linearMap"])(normalized, sourceExtent, this.option.visual, true); } return result; }, fixed: doMapFixed }; } function getSpecifiedVisual(value) { var thisOption = this.option; var pieceList = thisOption.pieceList; if (thisOption.hasSpecialVisual) { var pieceIndex = VisualMapping.findPieceIndex(value, pieceList); var piece = pieceList[pieceIndex]; if (piece && piece.visual) { return piece.visual[this.type]; } } } function setVisualToOption(thisOption, visualArr) { thisOption.visual = visualArr; if (thisOption.type === 'color') { thisOption.parsedVisual = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["map"](visualArr, function (item) { var color = zrender_lib_tool_color_js__WEBPACK_IMPORTED_MODULE_1__["parse"](item); if (!color && "staging" !== 'production') { Object(_util_log_js__WEBPACK_IMPORTED_MODULE_3__["warn"])("'" + item + "' is an illegal color, fallback to '#000000'", true); } return color || [0, 0, 0, 1]; }); } return visualArr; } /** * Normalizers by mapping methods. */ var normalizers = { linear: function (value) { return Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["linearMap"])(value, this.option.dataExtent, [0, 1], true); }, piecewise: function (value) { var pieceList = this.option.pieceList; var pieceIndex = VisualMapping.findPieceIndex(value, pieceList, true); if (pieceIndex != null) { return Object(_util_number_js__WEBPACK_IMPORTED_MODULE_2__["linearMap"])(pieceIndex, [0, pieceList.length - 1], [0, 1], true); } }, category: function (value) { var index = this.option.categories ? this.option.categoryMap[value] : value; // ordinal value return index == null ? CATEGORY_DEFAULT_VISUAL_INDEX : index; }, fixed: zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["noop"] }; function littleThan(close, a, b) { return close ? a <= b : a < b; } /* harmony default export */ __webpack_exports__["default"] = (VisualMapping); /***/ }), /***/ "./node_modules/echarts/lib/visual/aria.js": /*!*************************************************!*\ !*** ./node_modules/echarts/lib/visual/aria.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ariaVisual; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* harmony import */ var _model_mixin_palette_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../model/mixin/palette.js */ "./node_modules/echarts/lib/model/mixin/palette.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var DEFAULT_OPTION = { label: { enabled: true }, decal: { show: false } }; var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_1__["makeInner"])(); var decalPaletteScope = {}; function ariaVisual(ecModel, api) { var ariaModel = ecModel.getModel('aria'); // See "area enabled" detection code in `GlobalModel.ts`. if (!ariaModel.get('enabled')) { return; } var defaultOption = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"](DEFAULT_OPTION); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["merge"](defaultOption.label, ecModel.getLocaleModel().get('aria'), false); zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["merge"](ariaModel.option, defaultOption, false); setDecal(); setLabel(); function setDecal() { var decalModel = ariaModel.getModel('decal'); var useDecal = decalModel.get('show'); if (useDecal) { // Each type of series use one scope. // Pie and funnel are using different scopes. var paletteScopeGroupByType_1 = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"](); ecModel.eachSeries(function (seriesModel) { if (seriesModel.isColorBySeries()) { return; } var decalScope = paletteScopeGroupByType_1.get(seriesModel.type); if (!decalScope) { decalScope = {}; paletteScopeGroupByType_1.set(seriesModel.type, decalScope); } inner(seriesModel).scope = decalScope; }); ecModel.eachRawSeries(function (seriesModel) { if (ecModel.isSeriesFiltered(seriesModel)) { return; } if (zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"](seriesModel.enableAriaDecal)) { // Let series define how to use decal palette on data seriesModel.enableAriaDecal(); return; } var data = seriesModel.getData(); if (!seriesModel.isColorBySeries()) { var dataAll_1 = seriesModel.getRawData(); var idxMap_1 = {}; var decalScope_1 = inner(seriesModel).scope; data.each(function (idx) { var rawIdx = data.getRawIndex(idx); idxMap_1[rawIdx] = idx; }); var dataCount_1 = dataAll_1.count(); dataAll_1.each(function (rawIdx) { var idx = idxMap_1[rawIdx]; var name = dataAll_1.getName(rawIdx) || rawIdx + ''; var paletteDecal = Object(_model_mixin_palette_js__WEBPACK_IMPORTED_MODULE_2__["getDecalFromPalette"])(seriesModel.ecModel, name, decalScope_1, dataCount_1); var specifiedDecal = data.getItemVisual(idx, 'decal'); data.setItemVisual(idx, 'decal', mergeDecal(specifiedDecal, paletteDecal)); }); } else { var paletteDecal = Object(_model_mixin_palette_js__WEBPACK_IMPORTED_MODULE_2__["getDecalFromPalette"])(seriesModel.ecModel, seriesModel.name, decalPaletteScope, ecModel.getSeriesCount()); var specifiedDecal = data.getVisual('decal'); data.setVisual('decal', mergeDecal(specifiedDecal, paletteDecal)); } function mergeDecal(specifiedDecal, paletteDecal) { // Merge decal from palette to decal from itemStyle. // User do not need to specify all of the decal props. var resultDecal = specifiedDecal ? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"](zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, paletteDecal), specifiedDecal) : paletteDecal; resultDecal.dirty = true; return resultDecal; } }); } } function setLabel() { var dom = api.getZr().dom; // TODO: support for SSR if (!dom) { return; } var labelLocale = ecModel.getLocaleModel().get('aria'); var labelModel = ariaModel.getModel('label'); labelModel.option = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["defaults"](labelModel.option, labelLocale); if (!labelModel.get('enabled')) { return; } dom.setAttribute('role', 'img'); if (labelModel.get('description')) { dom.setAttribute('aria-label', labelModel.get('description')); return; } var seriesCnt = ecModel.getSeriesCount(); var maxDataCnt = labelModel.get(['data', 'maxCount']) || 10; var maxSeriesCnt = labelModel.get(['series', 'maxCount']) || 10; var displaySeriesCnt = Math.min(seriesCnt, maxSeriesCnt); var ariaLabel; if (seriesCnt < 1) { // No series, no aria label return; } else { var title = getTitle(); if (title) { var withTitle = labelModel.get(['general', 'withTitle']); ariaLabel = replace(withTitle, { title: title }); } else { ariaLabel = labelModel.get(['general', 'withoutTitle']); } var seriesLabels_1 = []; var prefix = seriesCnt > 1 ? labelModel.get(['series', 'multiple', 'prefix']) : labelModel.get(['series', 'single', 'prefix']); ariaLabel += replace(prefix, { seriesCount: seriesCnt }); ecModel.eachSeries(function (seriesModel, idx) { if (idx < displaySeriesCnt) { var seriesLabel = void 0; var seriesName = seriesModel.get('name'); var withName = seriesName ? 'withName' : 'withoutName'; seriesLabel = seriesCnt > 1 ? labelModel.get(['series', 'multiple', withName]) : labelModel.get(['series', 'single', withName]); seriesLabel = replace(seriesLabel, { seriesId: seriesModel.seriesIndex, seriesName: seriesModel.get('name'), seriesType: getSeriesTypeName(seriesModel.subType) }); var data = seriesModel.getData(); if (data.count() > maxDataCnt) { // Show part of data var partialLabel = labelModel.get(['data', 'partialData']); seriesLabel += replace(partialLabel, { displayCnt: maxDataCnt }); } else { seriesLabel += labelModel.get(['data', 'allData']); } var middleSeparator_1 = labelModel.get(['data', 'separator', 'middle']); var endSeparator_1 = labelModel.get(['data', 'separator', 'end']); var excludeDimensionId_1 = labelModel.get(['data', 'excludeDimensionId']); var dataLabels = []; for (var i = 0; i < data.count(); i++) { if (i < maxDataCnt) { var name_1 = data.getName(i); var value = !excludeDimensionId_1 ? data.getValues(i) : zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["filter"](data.getValues(i), function (v, j) { return zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["indexOf"](excludeDimensionId_1, j) === -1; }); var dataLabel = labelModel.get(['data', name_1 ? 'withName' : 'withoutName']); dataLabels.push(replace(dataLabel, { name: name_1, value: value.join(middleSeparator_1) })); } } seriesLabel += dataLabels.join(middleSeparator_1) + endSeparator_1; seriesLabels_1.push(seriesLabel); } }); var separatorModel = labelModel.getModel(['series', 'multiple', 'separator']); var middleSeparator = separatorModel.get('middle'); var endSeparator = separatorModel.get('end'); ariaLabel += seriesLabels_1.join(middleSeparator) + endSeparator; dom.setAttribute('aria-label', ariaLabel); } } function replace(str, keyValues) { if (!zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isString"](str)) { return str; } var result = str; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](keyValues, function (value, key) { result = result.replace(new RegExp('\\{\\s*' + key + '\\s*\\}', 'g'), value); }); return result; } function getTitle() { var title = ecModel.get('title'); if (title && title.length) { title = title[0]; } return title && title.text; } function getSeriesTypeName(type) { var typeNames = ecModel.getLocaleModel().get(['series', 'typeNames']); return typeNames[type] || typeNames.chart; } } /***/ }), /***/ "./node_modules/echarts/lib/visual/decal.js": /*!**************************************************!*\ !*** ./node_modules/echarts/lib/visual/decal.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return decalVisual; }); /* harmony import */ var _util_decal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/decal.js */ "./node_modules/echarts/lib/util/decal.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function decalVisual(ecModel, api) { ecModel.eachRawSeries(function (seriesModel) { if (ecModel.isSeriesFiltered(seriesModel)) { return; } var data = seriesModel.getData(); if (data.hasItemVisual()) { data.each(function (idx) { var decal = data.getItemVisual(idx, 'decal'); if (decal) { var itemStyle = data.ensureUniqueItemVisual(idx, 'style'); itemStyle.decal = Object(_util_decal_js__WEBPACK_IMPORTED_MODULE_0__["createOrUpdatePatternFromDecal"])(decal, api); } }); } var decal = data.getVisual('decal'); if (decal) { var style = data.getVisual('style'); style.decal = Object(_util_decal_js__WEBPACK_IMPORTED_MODULE_0__["createOrUpdatePatternFromDecal"])(decal, api); } }); } /***/ }), /***/ "./node_modules/echarts/lib/visual/helper.js": /*!***************************************************!*\ !*** ./node_modules/echarts/lib/visual/helper.js ***! \***************************************************/ /*! exports provided: getItemVisualFromData, getVisualFromData, setItemVisualFromData */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getItemVisualFromData", function() { return getItemVisualFromData; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getVisualFromData", function() { return getVisualFromData; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setItemVisualFromData", function() { return setItemVisualFromData; }); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function getItemVisualFromData(data, dataIndex, key) { switch (key) { case 'color': var style = data.getItemVisual(dataIndex, 'style'); return style[data.getVisual('drawType')]; case 'opacity': return data.getItemVisual(dataIndex, 'style').opacity; case 'symbol': case 'symbolSize': case 'liftZ': return data.getItemVisual(dataIndex, key); default: if (true) { console.warn("Unknown visual type " + key); } } } function getVisualFromData(data, key) { switch (key) { case 'color': var style = data.getVisual('style'); return style[data.getVisual('drawType')]; case 'opacity': return data.getVisual('style').opacity; case 'symbol': case 'symbolSize': case 'liftZ': return data.getVisual(key); default: if (true) { console.warn("Unknown visual type " + key); } } } function setItemVisualFromData(data, dataIndex, key, value) { switch (key) { case 'color': // Make sure not sharing style object. var style = data.ensureUniqueItemVisual(dataIndex, 'style'); style[data.getVisual('drawType')] = value; // Mark the color has been changed, not from palette anymore data.setItemVisual(dataIndex, 'colorFromPalette', false); break; case 'opacity': data.ensureUniqueItemVisual(dataIndex, 'style').opacity = value; break; case 'symbol': case 'symbolSize': case 'liftZ': data.setItemVisual(dataIndex, key, value); break; default: if (true) { console.warn("Unknown visual type " + key); } } } /***/ }), /***/ "./node_modules/echarts/lib/visual/style.js": /*!**************************************************!*\ !*** ./node_modules/echarts/lib/visual/style.js ***! \**************************************************/ /*! exports provided: seriesStyleTask, dataStyleTask, dataColorPaletteTask */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "seriesStyleTask", function() { return seriesStyleTask; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataStyleTask", function() { return dataStyleTask; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataColorPaletteTask", function() { return dataColorPaletteTask; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _model_mixin_makeStyleMapper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../model/mixin/makeStyleMapper.js */ "./node_modules/echarts/lib/model/mixin/makeStyleMapper.js"); /* harmony import */ var _model_mixin_itemStyle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../model/mixin/itemStyle.js */ "./node_modules/echarts/lib/model/mixin/itemStyle.js"); /* harmony import */ var _model_mixin_lineStyle_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../model/mixin/lineStyle.js */ "./node_modules/echarts/lib/model/mixin/lineStyle.js"); /* harmony import */ var _model_Model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../model/Model.js */ "./node_modules/echarts/lib/model/Model.js"); /* harmony import */ var _util_model_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/model.js */ "./node_modules/echarts/lib/util/model.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var inner = Object(_util_model_js__WEBPACK_IMPORTED_MODULE_5__["makeInner"])(); var defaultStyleMappers = { itemStyle: Object(_model_mixin_makeStyleMapper_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_model_mixin_itemStyle_js__WEBPACK_IMPORTED_MODULE_2__["ITEM_STYLE_KEY_MAP"], true), lineStyle: Object(_model_mixin_makeStyleMapper_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_model_mixin_lineStyle_js__WEBPACK_IMPORTED_MODULE_3__["LINE_STYLE_KEY_MAP"], true) }; var defaultColorKey = { lineStyle: 'stroke', itemStyle: 'fill' }; function getStyleMapper(seriesModel, stylePath) { var styleMapper = seriesModel.visualStyleMapper || defaultStyleMappers[stylePath]; if (!styleMapper) { console.warn("Unknown style type '" + stylePath + "'."); return defaultStyleMappers.itemStyle; } return styleMapper; } function getDefaultColorKey(seriesModel, stylePath) { // return defaultColorKey[stylePath] || var colorKey = seriesModel.visualDrawType || defaultColorKey[stylePath]; if (!colorKey) { console.warn("Unknown style type '" + stylePath + "'."); return 'fill'; } return colorKey; } var seriesStyleTask = { createOnAllSeries: true, performRawSeries: true, reset: function (seriesModel, ecModel) { var data = seriesModel.getData(); var stylePath = seriesModel.visualStyleAccessPath || 'itemStyle'; // Set in itemStyle var styleModel = seriesModel.getModel(stylePath); var getStyle = getStyleMapper(seriesModel, stylePath); var globalStyle = getStyle(styleModel); var decalOption = styleModel.getShallow('decal'); if (decalOption) { data.setVisual('decal', decalOption); decalOption.dirty = true; } // TODO var colorKey = getDefaultColorKey(seriesModel, stylePath); var color = globalStyle[colorKey]; // TODO style callback var colorCallback = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(color) ? color : null; var hasAutoColor = globalStyle.fill === 'auto' || globalStyle.stroke === 'auto'; // Get from color palette by default. if (!globalStyle[colorKey] || colorCallback || hasAutoColor) { // Note: If some series has color specified (e.g., by itemStyle.color), we DO NOT // make it effect palette. Because some scenarios users need to make some series // transparent or as background, which should better not effect the palette. var colorPalette = seriesModel.getColorFromPalette( // TODO series count changed. seriesModel.name, null, ecModel.getSeriesCount()); if (!globalStyle[colorKey]) { globalStyle[colorKey] = colorPalette; data.setVisual('colorFromPalette', true); } globalStyle.fill = globalStyle.fill === 'auto' || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(globalStyle.fill) ? colorPalette : globalStyle.fill; globalStyle.stroke = globalStyle.stroke === 'auto' || Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(globalStyle.stroke) ? colorPalette : globalStyle.stroke; } data.setVisual('style', globalStyle); data.setVisual('drawType', colorKey); // Only visible series has each data be visual encoded if (!ecModel.isSeriesFiltered(seriesModel) && colorCallback) { data.setVisual('colorFromPalette', false); return { dataEach: function (data, idx) { var dataParams = seriesModel.getDataParams(idx); var itemStyle = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({}, globalStyle); itemStyle[colorKey] = colorCallback(dataParams); data.setItemVisual(idx, 'style', itemStyle); } }; } } }; var sharedModel = new _model_Model_js__WEBPACK_IMPORTED_MODULE_4__["default"](); var dataStyleTask = { createOnAllSeries: true, performRawSeries: true, reset: function (seriesModel, ecModel) { if (seriesModel.ignoreStyleOnData || ecModel.isSeriesFiltered(seriesModel)) { return; } var data = seriesModel.getData(); var stylePath = seriesModel.visualStyleAccessPath || 'itemStyle'; // Set in itemStyle var getStyle = getStyleMapper(seriesModel, stylePath); var colorKey = data.getVisual('drawType'); return { dataEach: data.hasItemOption ? function (data, idx) { // Not use getItemModel for performance considuration var rawItem = data.getRawDataItem(idx); if (rawItem && rawItem[stylePath]) { sharedModel.option = rawItem[stylePath]; var style = getStyle(sharedModel); var existsStyle = data.ensureUniqueItemVisual(idx, 'style'); Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])(existsStyle, style); if (sharedModel.option.decal) { data.setItemVisual(idx, 'decal', sharedModel.option.decal); sharedModel.option.decal.dirty = true; } if (colorKey in style) { data.setItemVisual(idx, 'colorFromPalette', false); } } } : null }; } }; // Pick color from palette for the data which has not been set with color yet. // Note: do not support stream rendering. No such cases yet. var dataColorPaletteTask = { performRawSeries: true, overallReset: function (ecModel) { // Each type of series uses one scope. // Pie and funnel are using different scopes. var paletteScopeGroupByType = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["createHashMap"])(); ecModel.eachSeries(function (seriesModel) { var colorBy = seriesModel.getColorBy(); if (seriesModel.isColorBySeries()) { return; } var key = seriesModel.type + '-' + colorBy; var colorScope = paletteScopeGroupByType.get(key); if (!colorScope) { colorScope = {}; paletteScopeGroupByType.set(key, colorScope); } inner(seriesModel).scope = colorScope; }); ecModel.eachSeries(function (seriesModel) { if (seriesModel.isColorBySeries() || ecModel.isSeriesFiltered(seriesModel)) { return; } var dataAll = seriesModel.getRawData(); var idxMap = {}; var data = seriesModel.getData(); var colorScope = inner(seriesModel).scope; var stylePath = seriesModel.visualStyleAccessPath || 'itemStyle'; var colorKey = getDefaultColorKey(seriesModel, stylePath); data.each(function (idx) { var rawIdx = data.getRawIndex(idx); idxMap[rawIdx] = idx; }); // Iterate on data before filtered. To make sure color from palette can be // Consistent when toggling legend. dataAll.each(function (rawIdx) { var idx = idxMap[rawIdx]; var fromPalette = data.getItemVisual(idx, 'colorFromPalette'); // Get color from palette for each data only when the color is inherited from series color, which is // also picked from color palette. So following situation is not in the case: // 1. series.itemStyle.color is set // 2. color is encoded by visualMap if (fromPalette) { var itemStyle = data.ensureUniqueItemVisual(idx, 'style'); var name_1 = dataAll.getName(rawIdx) || rawIdx + ''; var dataCount = dataAll.count(); itemStyle[colorKey] = seriesModel.getColorFromPalette(name_1, colorScope, dataCount); } }); }); } }; /***/ }), /***/ "./node_modules/echarts/lib/visual/symbol.js": /*!***************************************************!*\ !*** ./node_modules/echarts/lib/visual/symbol.js ***! \***************************************************/ /*! exports provided: seriesSymbolTask, dataSymbolTask */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "seriesSymbolTask", function() { return seriesSymbolTask; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataSymbolTask", function() { return dataSymbolTask; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var SYMBOL_PROPS_WITH_CB = ['symbol', 'symbolSize', 'symbolRotate', 'symbolOffset']; var SYMBOL_PROPS = SYMBOL_PROPS_WITH_CB.concat(['symbolKeepAspect']); // Encoding visual for all series include which is filtered for legend drawing var seriesSymbolTask = { createOnAllSeries: true, // For legend. performRawSeries: true, reset: function (seriesModel, ecModel) { var data = seriesModel.getData(); if (seriesModel.legendIcon) { data.setVisual('legendIcon', seriesModel.legendIcon); } if (!seriesModel.hasSymbolVisual) { return; } var symbolOptions = {}; var symbolOptionsCb = {}; var hasCallback = false; for (var i = 0; i < SYMBOL_PROPS_WITH_CB.length; i++) { var symbolPropName = SYMBOL_PROPS_WITH_CB[i]; var val = seriesModel.get(symbolPropName); if (Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(val)) { hasCallback = true; symbolOptionsCb[symbolPropName] = val; } else { symbolOptions[symbolPropName] = val; } } symbolOptions.symbol = symbolOptions.symbol || seriesModel.defaultSymbol; data.setVisual(Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["extend"])({ legendIcon: seriesModel.legendIcon || symbolOptions.symbol, symbolKeepAspect: seriesModel.get('symbolKeepAspect') }, symbolOptions)); // Only visible series has each data be visual encoded if (ecModel.isSeriesFiltered(seriesModel)) { return; } var symbolPropsCb = Object(zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["keys"])(symbolOptionsCb); function dataEach(data, idx) { var rawValue = seriesModel.getRawValue(idx); var params = seriesModel.getDataParams(idx); for (var i = 0; i < symbolPropsCb.length; i++) { var symbolPropName = symbolPropsCb[i]; data.setItemVisual(idx, symbolPropName, symbolOptionsCb[symbolPropName](rawValue, params)); } } return { dataEach: hasCallback ? dataEach : null }; } }; var dataSymbolTask = { createOnAllSeries: true, // For legend. performRawSeries: true, reset: function (seriesModel, ecModel) { if (!seriesModel.hasSymbolVisual) { return; } // Only visible series has each data be visual encoded if (ecModel.isSeriesFiltered(seriesModel)) { return; } var data = seriesModel.getData(); function dataEach(data, idx) { var itemModel = data.getItemModel(idx); for (var i = 0; i < SYMBOL_PROPS.length; i++) { var symbolPropName = SYMBOL_PROPS[i]; var val = itemModel.getShallow(symbolPropName, true); if (val != null) { data.setItemVisual(idx, symbolPropName, val); } } } return { dataEach: data.hasItemOption ? dataEach : null }; } }; /***/ }), /***/ "./node_modules/echarts/lib/visual/visualDefault.js": /*!**********************************************************!*\ !*** ./node_modules/echarts/lib/visual/visualDefault.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @file Visual mapping. */ var visualDefault = { /** * @public */ get: function (visualType, key, isCategory) { var value = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"]((defaultOption[visualType] || {})[key]); return isCategory ? zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["isArray"](value) ? value[value.length - 1] : value : value; } }; var defaultOption = { color: { active: ['#006edd', '#e0ffff'], inactive: ['rgba(0,0,0,0)'] }, colorHue: { active: [0, 360], inactive: [0, 0] }, colorSaturation: { active: [0.3, 1], inactive: [0, 0] }, colorLightness: { active: [0.9, 0.5], inactive: [0, 0] }, colorAlpha: { active: [0.3, 1], inactive: [0, 0] }, opacity: { active: [0.3, 1], inactive: [0, 0] }, symbol: { active: ['circle', 'roundRect', 'diamond'], inactive: ['none'] }, symbolSize: { active: [10, 50], inactive: [0, 0] } }; /* harmony default export */ __webpack_exports__["default"] = (visualDefault); /***/ }), /***/ "./node_modules/echarts/lib/visual/visualSolution.js": /*!***********************************************************!*\ !*** ./node_modules/echarts/lib/visual/visualSolution.js ***! \***********************************************************/ /*! exports provided: createVisualMappings, replaceVisualOption, applyVisual, incrementalApplyVisual */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createVisualMappings", function() { return createVisualMappings; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "replaceVisualOption", function() { return replaceVisualOption; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyVisual", function() { return applyVisual; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "incrementalApplyVisual", function() { return incrementalApplyVisual; }); /* harmony import */ var zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zrender/lib/core/util.js */ "./node_modules/zrender/lib/core/util.js"); /* harmony import */ var _VisualMapping_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VisualMapping.js */ "./node_modules/echarts/lib/visual/VisualMapping.js"); /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helper.js */ "./node_modules/echarts/lib/visual/helper.js"); /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * AUTO-GENERATED FILE. DO NOT MODIFY. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * @file Visual solution, for consistent option specification. */ var each = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"]; function hasKeys(obj) { if (obj) { for (var name_1 in obj) { if (obj.hasOwnProperty(name_1)) { return true; } } } } function createVisualMappings(option, stateList, supplementVisualOption) { var visualMappings = {}; each(stateList, function (state) { var mappings = visualMappings[state] = createMappings(); each(option[state], function (visualData, visualType) { if (!_VisualMapping_js__WEBPACK_IMPORTED_MODULE_1__["default"].isValidType(visualType)) { return; } var mappingOption = { type: visualType, visual: visualData }; supplementVisualOption && supplementVisualOption(mappingOption, state); mappings[visualType] = new _VisualMapping_js__WEBPACK_IMPORTED_MODULE_1__["default"](mappingOption); // Prepare a alpha for opacity, for some case that opacity // is not supported, such as rendering using gradient color. if (visualType === 'opacity') { mappingOption = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"](mappingOption); mappingOption.type = 'colorAlpha'; mappings.__hidden.__alphaForOpacity = new _VisualMapping_js__WEBPACK_IMPORTED_MODULE_1__["default"](mappingOption); } }); }); return visualMappings; function createMappings() { var Creater = function () {}; // Make sure hidden fields will not be visited by // object iteration (with hasOwnProperty checking). Creater.prototype.__hidden = Creater.prototype; var obj = new Creater(); return obj; } } function replaceVisualOption(thisOption, newOption, keys) { // Visual attributes merge is not supported, otherwise it // brings overcomplicated merge logic. See #2853. So if // newOption has anyone of these keys, all of these keys // will be reset. Otherwise, all keys remain. var has; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](keys, function (key) { if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) { has = true; } }); has && zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](keys, function (key) { if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) { thisOption[key] = zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["clone"](newOption[key]); } else { delete thisOption[key]; } }); } /** * @param stateList * @param visualMappings * @param list * @param getValueState param: valueOrIndex, return: state. * @param scope Scope for getValueState * @param dimension Concrete dimension, if used. */ // ???! handle brush? function applyVisual(stateList, visualMappings, data, getValueState, scope, dimension) { var visualTypesMap = {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](stateList, function (state) { var visualTypes = _VisualMapping_js__WEBPACK_IMPORTED_MODULE_1__["default"].prepareVisualTypes(visualMappings[state]); visualTypesMap[state] = visualTypes; }); var dataIndex; function getVisual(key) { return Object(_helper_js__WEBPACK_IMPORTED_MODULE_2__["getItemVisualFromData"])(data, dataIndex, key); } function setVisual(key, value) { Object(_helper_js__WEBPACK_IMPORTED_MODULE_2__["setItemVisualFromData"])(data, dataIndex, key, value); } if (dimension == null) { data.each(eachItem); } else { data.each([dimension], eachItem); } function eachItem(valueOrIndex, index) { dataIndex = dimension == null ? valueOrIndex // First argument is index : index; var rawDataItem = data.getRawDataItem(dataIndex); // Consider performance // @ts-ignore if (rawDataItem && rawDataItem.visualMap === false) { return; } var valueState = getValueState.call(scope, valueOrIndex); var mappings = visualMappings[valueState]; var visualTypes = visualTypesMap[valueState]; for (var i = 0, len = visualTypes.length; i < len; i++) { var type = visualTypes[i]; mappings[type] && mappings[type].applyVisual(valueOrIndex, getVisual, setVisual); } } } /** * @param data * @param stateList * @param visualMappings > * @param getValueState param: valueOrIndex, return: state. * @param dim dimension or dimension index. */ function incrementalApplyVisual(stateList, visualMappings, getValueState, dim) { var visualTypesMap = {}; zrender_lib_core_util_js__WEBPACK_IMPORTED_MODULE_0__["each"](stateList, function (state) { var visualTypes = _VisualMapping_js__WEBPACK_IMPORTED_MODULE_1__["default"].prepareVisualTypes(visualMappings[state]); visualTypesMap[state] = visualTypes; }); return { progress: function progress(params, data) { var dimIndex; if (dim != null) { dimIndex = data.getDimensionIndex(dim); } function getVisual(key) { return Object(_helper_js__WEBPACK_IMPORTED_MODULE_2__["getItemVisualFromData"])(data, dataIndex, key); } function setVisual(key, value) { Object(_helper_js__WEBPACK_IMPORTED_MODULE_2__["setItemVisualFromData"])(data, dataIndex, key, value); } var dataIndex; var store = data.getStore(); while ((dataIndex = params.next()) != null) { var rawDataItem = data.getRawDataItem(dataIndex); // Consider performance // @ts-ignore if (rawDataItem && rawDataItem.visualMap === false) { continue; } var value = dim != null ? store.get(dimIndex, dataIndex) : dataIndex; var valueState = getValueState(value); var mappings = visualMappings[valueState]; var visualTypes = visualTypesMap[valueState]; for (var i = 0, len = visualTypes.length; i < len; i++) { var type = visualTypes[i]; mappings[type] && mappings[type].applyVisual(value, getVisual, setVisual); } } } }; } /***/ }), /***/ "./node_modules/echarts/node_modules/tslib/tslib.es6.js": /*!**************************************************************!*\ !*** ./node_modules/echarts/node_modules/tslib/tslib.es6.js ***! \**************************************************************/ /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArray", function() { return __spreadArray; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; }); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ /* global Reflect, Promise */ var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; function __extends(d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); } var __assign = function() { __assign = Object.assign || function __assign(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; } return __assign.apply(this, arguments); } function __rest(s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; } function __decorate(decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; } function __param(paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } } function __metadata(metadataKey, metadataValue) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); } function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); } function __generator(thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } var __createBinding = Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; }); function __exportStar(m, o) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); } function __values(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); } function __read(o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; } /** @deprecated */ function __spread() { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; } /** @deprecated */ function __spreadArrays() { for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; return r; } function __spreadArray(to, from, pack) { if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { if (ar || !(i in from)) { if (!ar) ar = Array.prototype.slice.call(from, 0, i); ar[i] = from[i]; } } return to.concat(ar || from); } function __await(v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } function __asyncGenerator(thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } } function __asyncDelegator(o) { var i, p; return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } } function __asyncValues(o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } } function __makeTemplateObject(cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; var __setModuleDefault = Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }; function __importStar(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; } function __importDefault(mod) { return (mod && mod.__esModule) ? mod : { default: mod }; } function __classPrivateFieldGet(receiver, state, kind, f) { if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); } function __classPrivateFieldSet(receiver, state, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; } /***/ }), /***/ "./node_modules/end-of-stream/index.js": /*!*********************************************!*\ !*** ./node_modules/end-of-stream/index.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {var once = __webpack_require__(/*! once */ "./node_modules/once/once.js"); var noop = function() {}; var isRequest = function(stream) { return stream.setHeader && typeof stream.abort === 'function'; }; var isChildProcess = function(stream) { return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3 }; var eos = function(stream, opts, callback) { if (typeof opts === 'function') return eos(stream, null, opts); if (!opts) opts = {}; callback = once(callback || noop); var ws = stream._writableState; var rs = stream._readableState; var readable = opts.readable || (opts.readable !== false && stream.readable); var writable = opts.writable || (opts.writable !== false && stream.writable); var cancelled = false; var onlegacyfinish = function() { if (!stream.writable) onfinish(); }; var onfinish = function() { writable = false; if (!readable) callback.call(stream); }; var onend = function() { readable = false; if (!writable) callback.call(stream); }; var onexit = function(exitCode) { callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null); }; var onerror = function(err) { callback.call(stream, err); }; var onclose = function() { process.nextTick(onclosenexttick); }; var onclosenexttick = function() { if (cancelled) return; if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close')); if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close')); }; var onrequest = function() { stream.req.on('finish', onfinish); }; if (isRequest(stream)) { stream.on('complete', onfinish); stream.on('abort', onclose); if (stream.req) onrequest(); else stream.on('request', onrequest); } else if (writable && !ws) { // legacy streams stream.on('end', onlegacyfinish); stream.on('close', onlegacyfinish); } if (isChildProcess(stream)) stream.on('exit', onexit); stream.on('end', onend); stream.on('finish', onfinish); if (opts.error !== false) stream.on('error', onerror); stream.on('close', onclose); return function() { cancelled = true; stream.removeListener('complete', onfinish); stream.removeListener('abort', onclose); stream.removeListener('request', onrequest); if (stream.req) stream.req.removeListener('finish', onfinish); stream.removeListener('end', onlegacyfinish); stream.removeListener('close', onlegacyfinish); stream.removeListener('finish', onfinish); stream.removeListener('exit', onexit); stream.removeListener('end', onend); stream.removeListener('error', onerror); stream.removeListener('close', onclose); }; }; module.exports = eos; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/es-object-atoms/index.js": /*!***********************************************!*\ !*** ./node_modules/es-object-atoms/index.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('.')} */ module.exports = Object; /***/ }), /***/ "./node_modules/events/events.js": /*!***************************************!*\ !*** ./node_modules/events/events.js ***! \***************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. var R = typeof Reflect === 'object' ? Reflect : null var ReflectApply = R && typeof R.apply === 'function' ? R.apply : function ReflectApply(target, receiver, args) { return Function.prototype.apply.call(target, receiver, args); } var ReflectOwnKeys if (R && typeof R.ownKeys === 'function') { ReflectOwnKeys = R.ownKeys } else if (Object.getOwnPropertySymbols) { ReflectOwnKeys = function ReflectOwnKeys(target) { return Object.getOwnPropertyNames(target) .concat(Object.getOwnPropertySymbols(target)); }; } else { ReflectOwnKeys = function ReflectOwnKeys(target) { return Object.getOwnPropertyNames(target); }; } function ProcessEmitWarning(warning) { if (console && console.warn) console.warn(warning); } var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) { return value !== value; } function EventEmitter() { EventEmitter.init.call(this); } module.exports = EventEmitter; module.exports.once = once; // Backwards-compat with node 0.10.x EventEmitter.EventEmitter = EventEmitter; EventEmitter.prototype._events = undefined; EventEmitter.prototype._eventsCount = 0; EventEmitter.prototype._maxListeners = undefined; // By default EventEmitters will print a warning if more than 10 listeners are // added to it. This is a useful default which helps finding memory leaks. var defaultMaxListeners = 10; function checkListener(listener) { if (typeof listener !== 'function') { throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener); } } Object.defineProperty(EventEmitter, 'defaultMaxListeners', { enumerable: true, get: function() { return defaultMaxListeners; }, set: function(arg) { if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) { throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.'); } defaultMaxListeners = arg; } }); EventEmitter.init = function() { if (this._events === undefined || this._events === Object.getPrototypeOf(this)._events) { this._events = Object.create(null); this._eventsCount = 0; } this._maxListeners = this._maxListeners || undefined; }; // Obviously not all Emitters should be limited to 10. This function allows // that to be increased. Set to zero for unlimited. EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) { if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) { throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.'); } this._maxListeners = n; return this; }; function _getMaxListeners(that) { if (that._maxListeners === undefined) return EventEmitter.defaultMaxListeners; return that._maxListeners; } EventEmitter.prototype.getMaxListeners = function getMaxListeners() { return _getMaxListeners(this); }; EventEmitter.prototype.emit = function emit(type) { var args = []; for (var i = 1; i < arguments.length; i++) args.push(arguments[i]); var doError = (type === 'error'); var events = this._events; if (events !== undefined) doError = (doError && events.error === undefined); else if (!doError) return false; // If there is no 'error' event listener then throw. if (doError) { var er; if (args.length > 0) er = args[0]; if (er instanceof Error) { // Note: The comments on the `throw` lines are intentional, they show // up in Node's output if this results in an unhandled exception. throw er; // Unhandled 'error' event } // At least give some kind of context to the user var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : '')); err.context = er; throw err; // Unhandled 'error' event } var handler = events[type]; if (handler === undefined) return false; if (typeof handler === 'function') { ReflectApply(handler, this, args); } else { var len = handler.length; var listeners = arrayClone(handler, len); for (var i = 0; i < len; ++i) ReflectApply(listeners[i], this, args); } return true; }; function _addListener(target, type, listener, prepend) { var m; var events; var existing; checkListener(listener); events = target._events; if (events === undefined) { events = target._events = Object.create(null); target._eventsCount = 0; } else { // To avoid recursion in the case that type === "newListener"! Before // adding it to the listeners, first emit "newListener". if (events.newListener !== undefined) { target.emit('newListener', type, listener.listener ? listener.listener : listener); // Re-assign `events` because a newListener handler could have caused the // this._events to be assigned to a new object events = target._events; } existing = events[type]; } if (existing === undefined) { // Optimize the case of one listener. Don't need the extra array object. existing = events[type] = listener; ++target._eventsCount; } else { if (typeof existing === 'function') { // Adding the second element, need to change to array. existing = events[type] = prepend ? [listener, existing] : [existing, listener]; // If we've already got an array, just append. } else if (prepend) { existing.unshift(listener); } else { existing.push(listener); } // Check for listener leak m = _getMaxListeners(target); if (m > 0 && existing.length > m && !existing.warned) { existing.warned = true; // No error code for this since it is a Warning // eslint-disable-next-line no-restricted-syntax var w = new Error('Possible EventEmitter memory leak detected. ' + existing.length + ' ' + String(type) + ' listeners ' + 'added. Use emitter.setMaxListeners() to ' + 'increase limit'); w.name = 'MaxListenersExceededWarning'; w.emitter = target; w.type = type; w.count = existing.length; ProcessEmitWarning(w); } } return target; } EventEmitter.prototype.addListener = function addListener(type, listener) { return _addListener(this, type, listener, false); }; EventEmitter.prototype.on = EventEmitter.prototype.addListener; EventEmitter.prototype.prependListener = function prependListener(type, listener) { return _addListener(this, type, listener, true); }; function onceWrapper() { if (!this.fired) { this.target.removeListener(this.type, this.wrapFn); this.fired = true; if (arguments.length === 0) return this.listener.call(this.target); return this.listener.apply(this.target, arguments); } } function _onceWrap(target, type, listener) { var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener }; var wrapped = onceWrapper.bind(state); wrapped.listener = listener; state.wrapFn = wrapped; return wrapped; } EventEmitter.prototype.once = function once(type, listener) { checkListener(listener); this.on(type, _onceWrap(this, type, listener)); return this; }; EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) { checkListener(listener); this.prependListener(type, _onceWrap(this, type, listener)); return this; }; // Emits a 'removeListener' event if and only if the listener was removed. EventEmitter.prototype.removeListener = function removeListener(type, listener) { var list, events, position, i, originalListener; checkListener(listener); events = this._events; if (events === undefined) return this; list = events[type]; if (list === undefined) return this; if (list === listener || list.listener === listener) { if (--this._eventsCount === 0) this._events = Object.create(null); else { delete events[type]; if (events.removeListener) this.emit('removeListener', type, list.listener || listener); } } else if (typeof list !== 'function') { position = -1; for (i = list.length - 1; i >= 0; i--) { if (list[i] === listener || list[i].listener === listener) { originalListener = list[i].listener; position = i; break; } } if (position < 0) return this; if (position === 0) list.shift(); else { spliceOne(list, position); } if (list.length === 1) events[type] = list[0]; if (events.removeListener !== undefined) this.emit('removeListener', type, originalListener || listener); } return this; }; EventEmitter.prototype.off = EventEmitter.prototype.removeListener; EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) { var listeners, events, i; events = this._events; if (events === undefined) return this; // not listening for removeListener, no need to emit if (events.removeListener === undefined) { if (arguments.length === 0) { this._events = Object.create(null); this._eventsCount = 0; } else if (events[type] !== undefined) { if (--this._eventsCount === 0) this._events = Object.create(null); else delete events[type]; } return this; } // emit removeListener for all listeners on all events if (arguments.length === 0) { var keys = Object.keys(events); var key; for (i = 0; i < keys.length; ++i) { key = keys[i]; if (key === 'removeListener') continue; this.removeAllListeners(key); } this.removeAllListeners('removeListener'); this._events = Object.create(null); this._eventsCount = 0; return this; } listeners = events[type]; if (typeof listeners === 'function') { this.removeListener(type, listeners); } else if (listeners !== undefined) { // LIFO order for (i = listeners.length - 1; i >= 0; i--) { this.removeListener(type, listeners[i]); } } return this; }; function _listeners(target, type, unwrap) { var events = target._events; if (events === undefined) return []; var evlistener = events[type]; if (evlistener === undefined) return []; if (typeof evlistener === 'function') return unwrap ? [evlistener.listener || evlistener] : [evlistener]; return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length); } EventEmitter.prototype.listeners = function listeners(type) { return _listeners(this, type, true); }; EventEmitter.prototype.rawListeners = function rawListeners(type) { return _listeners(this, type, false); }; EventEmitter.listenerCount = function(emitter, type) { if (typeof emitter.listenerCount === 'function') { return emitter.listenerCount(type); } else { return listenerCount.call(emitter, type); } }; EventEmitter.prototype.listenerCount = listenerCount; function listenerCount(type) { var events = this._events; if (events !== undefined) { var evlistener = events[type]; if (typeof evlistener === 'function') { return 1; } else if (evlistener !== undefined) { return evlistener.length; } } return 0; } EventEmitter.prototype.eventNames = function eventNames() { return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : []; }; function arrayClone(arr, n) { var copy = new Array(n); for (var i = 0; i < n; ++i) copy[i] = arr[i]; return copy; } function spliceOne(list, index) { for (; index + 1 < list.length; index++) list[index] = list[index + 1]; list.pop(); } function unwrapListeners(arr) { var ret = new Array(arr.length); for (var i = 0; i < ret.length; ++i) { ret[i] = arr[i].listener || arr[i]; } return ret; } function once(emitter, name) { return new Promise(function (resolve, reject) { function errorListener(err) { emitter.removeListener(name, resolver); reject(err); } function resolver() { if (typeof emitter.removeListener === 'function') { emitter.removeListener('error', errorListener); } resolve([].slice.call(arguments)); }; eventTargetAgnosticAddListener(emitter, name, resolver, { once: true }); if (name !== 'error') { addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true }); } }); } function addErrorHandlerIfEventEmitter(emitter, handler, flags) { if (typeof emitter.on === 'function') { eventTargetAgnosticAddListener(emitter, 'error', handler, flags); } } function eventTargetAgnosticAddListener(emitter, name, listener, flags) { if (typeof emitter.on === 'function') { if (flags.once) { emitter.once(name, listener); } else { emitter.on(name, listener); } } else if (typeof emitter.addEventListener === 'function') { // EventTarget does not have `error` event semantics like Node // EventEmitters, we do not listen for `error` events here. emitter.addEventListener(name, function wrapListener(arg) { // IE does not have builtin `{ once: true }` support so we // have to do it manually. if (flags.once) { emitter.removeEventListener(name, wrapListener); } listener(arg); }); } else { throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter); } } /***/ }), /***/ "./node_modules/flv.js/dist/flv.js": /*!*****************************************!*\ !*** ./node_modules/flv.js/dist/flv.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {(function webpackUniversalModuleDefinition(root, factory) { if(true) module.exports = factory(); else {} })(self, function() { return /******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./node_modules/es6-promise/dist/es6-promise.js": /*!******************************************************!*\ !*** ./node_modules/es6-promise/dist/es6-promise.js ***! \******************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.8+1e68dce6 */ (function (global, factory) { true ? module.exports = factory() : undefined; }(this, (function () { 'use strict'; function objectOrFunction(x) { var type = typeof x; return x !== null && (type === 'object' || type === 'function'); } function isFunction(x) { return typeof x === 'function'; } var _isArray = void 0; if (Array.isArray) { _isArray = Array.isArray; } else { _isArray = function (x) { return Object.prototype.toString.call(x) === '[object Array]'; }; } var isArray = _isArray; var len = 0; var vertxNext = void 0; var customSchedulerFn = void 0; var asap = function asap(callback, arg) { queue[len] = callback; queue[len + 1] = arg; len += 2; if (len === 2) { // If len is 2, that means that we need to schedule an async flush. // If additional callbacks are queued before the queue is flushed, they // will be processed by this flush that we are scheduling. if (customSchedulerFn) { customSchedulerFn(flush); } else { scheduleFlush(); } } }; function setScheduler(scheduleFn) { customSchedulerFn = scheduleFn; } function setAsap(asapFn) { asap = asapFn; } var browserWindow = typeof window !== 'undefined' ? window : undefined; var browserGlobal = browserWindow || {}; var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; // test for web worker but not in IE10 var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined'; // node function useNextTick() { // node version 0.10.x displays a deprecation warning when nextTick is used recursively // see https://github.com/cujojs/when/issues/410 for details return function () { return process.nextTick(flush); }; } // vertx function useVertxTimer() { if (typeof vertxNext !== 'undefined') { return function () { vertxNext(flush); }; } return useSetTimeout(); } function useMutationObserver() { var iterations = 0; var observer = new BrowserMutationObserver(flush); var node = document.createTextNode(''); observer.observe(node, { characterData: true }); return function () { node.data = iterations = ++iterations % 2; }; } // web worker function useMessageChannel() { var channel = new MessageChannel(); channel.port1.onmessage = flush; return function () { return channel.port2.postMessage(0); }; } function useSetTimeout() { // Store setTimeout reference so es6-promise will be unaffected by // other code modifying setTimeout (like sinon.useFakeTimers()) var globalSetTimeout = setTimeout; return function () { return globalSetTimeout(flush, 1); }; } var queue = new Array(1000); function flush() { for (var i = 0; i < len; i += 2) { var callback = queue[i]; var arg = queue[i + 1]; callback(arg); queue[i] = undefined; queue[i + 1] = undefined; } len = 0; } function attemptVertx() { try { var vertx = Function('return this')().require('vertx'); vertxNext = vertx.runOnLoop || vertx.runOnContext; return useVertxTimer(); } catch (e) { return useSetTimeout(); } } var scheduleFlush = void 0; // Decide what async method to use to triggering processing of queued callbacks: if (isNode) { scheduleFlush = useNextTick(); } else if (BrowserMutationObserver) { scheduleFlush = useMutationObserver(); } else if (isWorker) { scheduleFlush = useMessageChannel(); } else if (browserWindow === undefined && "function" === 'function') { scheduleFlush = attemptVertx(); } else { scheduleFlush = useSetTimeout(); } function then(onFulfillment, onRejection) { var parent = this; var child = new this.constructor(noop); if (child[PROMISE_ID] === undefined) { makePromise(child); } var _state = parent._state; if (_state) { var callback = arguments[_state - 1]; asap(function () { return invokeCallback(_state, child, callback, parent._result); }); } else { subscribe(parent, child, onFulfillment, onRejection); } return child; } /** `Promise.resolve` returns a promise that will become resolved with the passed `value`. It is shorthand for the following: ```javascript let promise = new Promise(function(resolve, reject){ resolve(1); }); promise.then(function(value){ // value === 1 }); ``` Instead of writing the above, your code now simply becomes the following: ```javascript let promise = Promise.resolve(1); promise.then(function(value){ // value === 1 }); ``` @method resolve @static @param {Any} value value that the returned promise will be resolved with Useful for tooling. @return {Promise} a promise that will become fulfilled with the given `value` */ function resolve$1(object) { /*jshint validthis:true */ var Constructor = this; if (object && typeof object === 'object' && object.constructor === Constructor) { return object; } var promise = new Constructor(noop); resolve(promise, object); return promise; } var PROMISE_ID = Math.random().toString(36).substring(2); function noop() { } var PENDING = void 0; var FULFILLED = 1; var REJECTED = 2; function selfFulfillment() { return new TypeError("You cannot resolve a promise with itself"); } function cannotReturnOwn() { return new TypeError('A promises callback cannot return that same promise.'); } function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) { try { then$$1.call(value, fulfillmentHandler, rejectionHandler); } catch (e) { return e; } } function handleForeignThenable(promise, thenable, then$$1) { asap(function (promise) { var sealed = false; var error = tryThen(then$$1, thenable, function (value) { if (sealed) { return; } sealed = true; if (thenable !== value) { resolve(promise, value); } else { fulfill(promise, value); } }, function (reason) { if (sealed) { return; } sealed = true; reject(promise, reason); }, 'Settle: ' + (promise._label || ' unknown promise')); if (!sealed && error) { sealed = true; reject(promise, error); } }, promise); } function handleOwnThenable(promise, thenable) { if (thenable._state === FULFILLED) { fulfill(promise, thenable._result); } else if (thenable._state === REJECTED) { reject(promise, thenable._result); } else { subscribe(thenable, undefined, function (value) { return resolve(promise, value); }, function (reason) { return reject(promise, reason); }); } } function handleMaybeThenable(promise, maybeThenable, then$$1) { if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) { handleOwnThenable(promise, maybeThenable); } else { if (then$$1 === undefined) { fulfill(promise, maybeThenable); } else if (isFunction(then$$1)) { handleForeignThenable(promise, maybeThenable, then$$1); } else { fulfill(promise, maybeThenable); } } } function resolve(promise, value) { if (promise === value) { reject(promise, selfFulfillment()); } else if (objectOrFunction(value)) { var then$$1 = void 0; try { then$$1 = value.then; } catch (error) { reject(promise, error); return; } handleMaybeThenable(promise, value, then$$1); } else { fulfill(promise, value); } } function publishRejection(promise) { if (promise._onerror) { promise._onerror(promise._result); } publish(promise); } function fulfill(promise, value) { if (promise._state !== PENDING) { return; } promise._result = value; promise._state = FULFILLED; if (promise._subscribers.length !== 0) { asap(publish, promise); } } function reject(promise, reason) { if (promise._state !== PENDING) { return; } promise._state = REJECTED; promise._result = reason; asap(publishRejection, promise); } function subscribe(parent, child, onFulfillment, onRejection) { var _subscribers = parent._subscribers; var length = _subscribers.length; parent._onerror = null; _subscribers[length] = child; _subscribers[length + FULFILLED] = onFulfillment; _subscribers[length + REJECTED] = onRejection; if (length === 0 && parent._state) { asap(publish, parent); } } function publish(promise) { var subscribers = promise._subscribers; var settled = promise._state; if (subscribers.length === 0) { return; } var child = void 0, callback = void 0, detail = promise._result; for (var i = 0; i < subscribers.length; i += 3) { child = subscribers[i]; callback = subscribers[i + settled]; if (child) { invokeCallback(settled, child, callback, detail); } else { callback(detail); } } promise._subscribers.length = 0; } function invokeCallback(settled, promise, callback, detail) { var hasCallback = isFunction(callback), value = void 0, error = void 0, succeeded = true; if (hasCallback) { try { value = callback(detail); } catch (e) { succeeded = false; error = e; } if (promise === value) { reject(promise, cannotReturnOwn()); return; } } else { value = detail; } if (promise._state !== PENDING) { // noop } else if (hasCallback && succeeded) { resolve(promise, value); } else if (succeeded === false) { reject(promise, error); } else if (settled === FULFILLED) { fulfill(promise, value); } else if (settled === REJECTED) { reject(promise, value); } } function initializePromise(promise, resolver) { try { resolver(function resolvePromise(value) { resolve(promise, value); }, function rejectPromise(reason) { reject(promise, reason); }); } catch (e) { reject(promise, e); } } var id = 0; function nextId() { return id++; } function makePromise(promise) { promise[PROMISE_ID] = id++; promise._state = undefined; promise._result = undefined; promise._subscribers = []; } function validationError() { return new Error('Array Methods must be provided an Array'); } var Enumerator = function () { function Enumerator(Constructor, input) { this._instanceConstructor = Constructor; this.promise = new Constructor(noop); if (!this.promise[PROMISE_ID]) { makePromise(this.promise); } if (isArray(input)) { this.length = input.length; this._remaining = input.length; this._result = new Array(this.length); if (this.length === 0) { fulfill(this.promise, this._result); } else { this.length = this.length || 0; this._enumerate(input); if (this._remaining === 0) { fulfill(this.promise, this._result); } } } else { reject(this.promise, validationError()); } } Enumerator.prototype._enumerate = function _enumerate(input) { for (var i = 0; this._state === PENDING && i < input.length; i++) { this._eachEntry(input[i], i); } }; Enumerator.prototype._eachEntry = function _eachEntry(entry, i) { var c = this._instanceConstructor; var resolve$$1 = c.resolve; if (resolve$$1 === resolve$1) { var _then = void 0; var error = void 0; var didError = false; try { _then = entry.then; } catch (e) { didError = true; error = e; } if (_then === then && entry._state !== PENDING) { this._settledAt(entry._state, i, entry._result); } else if (typeof _then !== 'function') { this._remaining--; this._result[i] = entry; } else if (c === Promise$1) { var promise = new c(noop); if (didError) { reject(promise, error); } else { handleMaybeThenable(promise, entry, _then); } this._willSettleAt(promise, i); } else { this._willSettleAt(new c(function (resolve$$1) { return resolve$$1(entry); }), i); } } else { this._willSettleAt(resolve$$1(entry), i); } }; Enumerator.prototype._settledAt = function _settledAt(state, i, value) { var promise = this.promise; if (promise._state === PENDING) { this._remaining--; if (state === REJECTED) { reject(promise, value); } else { this._result[i] = value; } } if (this._remaining === 0) { fulfill(promise, this._result); } }; Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) { var enumerator = this; subscribe(promise, undefined, function (value) { return enumerator._settledAt(FULFILLED, i, value); }, function (reason) { return enumerator._settledAt(REJECTED, i, reason); }); }; return Enumerator; }(); /** `Promise.all` accepts an array of promises, and returns a new promise which is fulfilled with an array of fulfillment values for the passed promises, or rejected with the reason of the first passed promise to be rejected. It casts all elements of the passed iterable to promises as it runs this algorithm. Example: ```javascript let promise1 = resolve(1); let promise2 = resolve(2); let promise3 = resolve(3); let promises = [ promise1, promise2, promise3 ]; Promise.all(promises).then(function(array){ // The array here would be [ 1, 2, 3 ]; }); ``` If any of the `promises` given to `all` are rejected, the first promise that is rejected will be given as an argument to the returned promises's rejection handler. For example: Example: ```javascript let promise1 = resolve(1); let promise2 = reject(new Error("2")); let promise3 = reject(new Error("3")); let promises = [ promise1, promise2, promise3 ]; Promise.all(promises).then(function(array){ // Code here never runs because there are rejected promises! }, function(error) { // error.message === "2" }); ``` @method all @static @param {Array} entries array of promises @param {String} label optional string for labeling the promise. Useful for tooling. @return {Promise} promise that is fulfilled when all `promises` have been fulfilled, or rejected if any of them become rejected. @static */ function all(entries) { return new Enumerator(this, entries).promise; } /** `Promise.race` returns a new promise which is settled in the same way as the first passed promise to settle. Example: ```javascript let promise1 = new Promise(function(resolve, reject){ setTimeout(function(){ resolve('promise 1'); }, 200); }); let promise2 = new Promise(function(resolve, reject){ setTimeout(function(){ resolve('promise 2'); }, 100); }); Promise.race([promise1, promise2]).then(function(result){ // result === 'promise 2' because it was resolved before promise1 // was resolved. }); ``` `Promise.race` is deterministic in that only the state of the first settled promise matters. For example, even if other promises given to the `promises` array argument are resolved, but the first settled promise has become rejected before the other promises became fulfilled, the returned promise will become rejected: ```javascript let promise1 = new Promise(function(resolve, reject){ setTimeout(function(){ resolve('promise 1'); }, 200); }); let promise2 = new Promise(function(resolve, reject){ setTimeout(function(){ reject(new Error('promise 2')); }, 100); }); Promise.race([promise1, promise2]).then(function(result){ // Code here never runs }, function(reason){ // reason.message === 'promise 2' because promise 2 became rejected before // promise 1 became fulfilled }); ``` An example real-world use case is implementing timeouts: ```javascript Promise.race([ajax('foo.json'), timeout(5000)]) ``` @method race @static @param {Array} promises array of promises to observe Useful for tooling. @return {Promise} a promise which settles in the same way as the first passed promise to settle. */ function race(entries) { /*jshint validthis:true */ var Constructor = this; if (!isArray(entries)) { return new Constructor(function (_, reject) { return reject(new TypeError('You must pass an array to race.')); }); } else { return new Constructor(function (resolve, reject) { var length = entries.length; for (var i = 0; i < length; i++) { Constructor.resolve(entries[i]).then(resolve, reject); } }); } } /** `Promise.reject` returns a promise rejected with the passed `reason`. It is shorthand for the following: ```javascript let promise = new Promise(function(resolve, reject){ reject(new Error('WHOOPS')); }); promise.then(function(value){ // Code here doesn't run because the promise is rejected! }, function(reason){ // reason.message === 'WHOOPS' }); ``` Instead of writing the above, your code now simply becomes the following: ```javascript let promise = Promise.reject(new Error('WHOOPS')); promise.then(function(value){ // Code here doesn't run because the promise is rejected! }, function(reason){ // reason.message === 'WHOOPS' }); ``` @method reject @static @param {Any} reason value that the returned promise will be rejected with. Useful for tooling. @return {Promise} a promise rejected with the given `reason`. */ function reject$1(reason) { /*jshint validthis:true */ var Constructor = this; var promise = new Constructor(noop); reject(promise, reason); return promise; } function needsResolver() { throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); } function needsNew() { throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); } /** Promise objects represent the eventual result of an asynchronous operation. The primary way of interacting with a promise is through its `then` method, which registers callbacks to receive either a promise's eventual value or the reason why the promise cannot be fulfilled. Terminology ----------- - `promise` is an object or function with a `then` method whose behavior conforms to this specification. - `thenable` is an object or function that defines a `then` method. - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). - `exception` is a value that is thrown using the throw statement. - `reason` is a value that indicates why a promise was rejected. - `settled` the final resting state of a promise, fulfilled or rejected. A promise can be in one of three states: pending, fulfilled, or rejected. Promises that are fulfilled have a fulfillment value and are in the fulfilled state. Promises that are rejected have a rejection reason and are in the rejected state. A fulfillment value is never a thenable. Promises can also be said to *resolve* a value. If this value is also a promise, then the original promise's settled state will match the value's settled state. So a promise that *resolves* a promise that rejects will itself reject, and a promise that *resolves* a promise that fulfills will itself fulfill. Basic Usage: ------------ ```js let promise = new Promise(function(resolve, reject) { // on success resolve(value); // on failure reject(reason); }); promise.then(function(value) { // on fulfillment }, function(reason) { // on rejection }); ``` Advanced Usage: --------------- Promises shine when abstracting away asynchronous interactions such as `XMLHttpRequest`s. ```js function getJSON(url) { return new Promise(function(resolve, reject){ let xhr = new XMLHttpRequest(); xhr.open('GET', url); xhr.onreadystatechange = handler; xhr.responseType = 'json'; xhr.setRequestHeader('Accept', 'application/json'); xhr.send(); function handler() { if (this.readyState === this.DONE) { if (this.status === 200) { resolve(this.response); } else { reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); } } }; }); } getJSON('/posts.json').then(function(json) { // on fulfillment }, function(reason) { // on rejection }); ``` Unlike callbacks, promises are great composable primitives. ```js Promise.all([ getJSON('/posts'), getJSON('/comments') ]).then(function(values){ values[0] // => postsJSON values[1] // => commentsJSON return values; }); ``` @class Promise @param {Function} resolver Useful for tooling. @constructor */ var Promise$1 = function () { function Promise(resolver) { this[PROMISE_ID] = nextId(); this._result = this._state = undefined; this._subscribers = []; if (noop !== resolver) { typeof resolver !== 'function' && needsResolver(); this instanceof Promise ? initializePromise(this, resolver) : needsNew(); } } /** The primary way of interacting with a promise is through its `then` method, which registers callbacks to receive either a promise's eventual value or the reason why the promise cannot be fulfilled. ```js findUser().then(function(user){ // user is available }, function(reason){ // user is unavailable, and you are given the reason why }); ``` Chaining -------- The return value of `then` is itself a promise. This second, 'downstream' promise is resolved with the return value of the first promise's fulfillment or rejection handler, or rejected if the handler throws an exception. ```js findUser().then(function (user) { return user.name; }, function (reason) { return 'default name'; }).then(function (userName) { // If `findUser` fulfilled, `userName` will be the user's name, otherwise it // will be `'default name'` }); findUser().then(function (user) { throw new Error('Found user, but still unhappy'); }, function (reason) { throw new Error('`findUser` rejected and we're unhappy'); }).then(function (value) { // never reached }, function (reason) { // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'. }); ``` If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. ```js findUser().then(function (user) { throw new PedagogicalException('Upstream error'); }).then(function (value) { // never reached }).then(function (value) { // never reached }, function (reason) { // The `PedgagocialException` is propagated all the way down to here }); ``` Assimilation ------------ Sometimes the value you want to propagate to a downstream promise can only be retrieved asynchronously. This can be achieved by returning a promise in the fulfillment or rejection handler. The downstream promise will then be pending until the returned promise is settled. This is called *assimilation*. ```js findUser().then(function (user) { return findCommentsByAuthor(user); }).then(function (comments) { // The user's comments are now available }); ``` If the assimliated promise rejects, then the downstream promise will also reject. ```js findUser().then(function (user) { return findCommentsByAuthor(user); }).then(function (comments) { // If `findCommentsByAuthor` fulfills, we'll have the value here }, function (reason) { // If `findCommentsByAuthor` rejects, we'll have the reason here }); ``` Simple Example -------------- Synchronous Example ```javascript let result; try { result = findResult(); // success } catch(reason) { // failure } ``` Errback Example ```js findResult(function(result, err){ if (err) { // failure } else { // success } }); ``` Promise Example; ```javascript findResult().then(function(result){ // success }, function(reason){ // failure }); ``` Advanced Example -------------- Synchronous Example ```javascript let author, books; try { author = findAuthor(); books = findBooksByAuthor(author); // success } catch(reason) { // failure } ``` Errback Example ```js function foundBooks(books) { } function failure(reason) { } findAuthor(function(author, err){ if (err) { failure(err); // failure } else { try { findBoooksByAuthor(author, function(books, err) { if (err) { failure(err); } else { try { foundBooks(books); } catch(reason) { failure(reason); } } }); } catch(error) { failure(err); } // success } }); ``` Promise Example; ```javascript findAuthor(). then(findBooksByAuthor). then(function(books){ // found books }).catch(function(reason){ // something went wrong }); ``` @method then @param {Function} onFulfilled @param {Function} onRejected Useful for tooling. @return {Promise} */ /** `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same as the catch block of a try/catch statement. ```js function findAuthor(){ throw new Error('couldn't find that author'); } // synchronous try { findAuthor(); } catch(reason) { // something went wrong } // async with promises findAuthor().catch(function(reason){ // something went wrong }); ``` @method catch @param {Function} onRejection Useful for tooling. @return {Promise} */ Promise.prototype.catch = function _catch(onRejection) { return this.then(null, onRejection); }; /** `finally` will be invoked regardless of the promise's fate just as native try/catch/finally behaves Synchronous example: ```js findAuthor() { if (Math.random() > 0.5) { throw new Error(); } return new Author(); } try { return findAuthor(); // succeed or fail } catch(error) { return findOtherAuther(); } finally { // always runs // doesn't affect the return value } ``` Asynchronous example: ```js findAuthor().catch(function(reason){ return findOtherAuther(); }).finally(function(){ // author was either found, or not }); ``` @method finally @param {Function} callback @return {Promise} */ Promise.prototype.finally = function _finally(callback) { var promise = this; var constructor = promise.constructor; if (isFunction(callback)) { return promise.then(function (value) { return constructor.resolve(callback()).then(function () { return value; }); }, function (reason) { return constructor.resolve(callback()).then(function () { throw reason; }); }); } return promise.then(callback, callback); }; return Promise; }(); Promise$1.prototype.then = then; Promise$1.all = all; Promise$1.race = race; Promise$1.resolve = resolve$1; Promise$1.reject = reject$1; Promise$1._setScheduler = setScheduler; Promise$1._setAsap = setAsap; Promise$1._asap = asap; /*global self*/ function polyfill() { var local = void 0; if (typeof __webpack_require__.g !== 'undefined') { local = __webpack_require__.g; } else if (typeof self !== 'undefined') { local = self; } else { try { local = Function('return this')(); } catch (e) { throw new Error('polyfill failed because global object is unavailable in this environment'); } } var P = local.Promise; if (P) { var promiseToString = null; try { promiseToString = Object.prototype.toString.call(P.resolve()); } catch (e) { // silently ignored } if (promiseToString === '[object Promise]' && !P.cast) { return; } } local.Promise = Promise$1; } // Strange compat.. Promise$1.polyfill = polyfill; Promise$1.Promise = Promise$1; return Promise$1; }))); /***/ }), /***/ "./node_modules/events/events.js": /*!***************************************!*\ !*** ./node_modules/events/events.js ***! \***************************************/ /***/ (function(module) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. var R = typeof Reflect === 'object' ? Reflect : null; var ReflectApply = R && typeof R.apply === 'function' ? R.apply : function ReflectApply(target, receiver, args) { return Function.prototype.apply.call(target, receiver, args); }; var ReflectOwnKeys; if (R && typeof R.ownKeys === 'function') { ReflectOwnKeys = R.ownKeys; } else if (Object.getOwnPropertySymbols) { ReflectOwnKeys = function ReflectOwnKeys(target) { return Object.getOwnPropertyNames(target) .concat(Object.getOwnPropertySymbols(target)); }; } else { ReflectOwnKeys = function ReflectOwnKeys(target) { return Object.getOwnPropertyNames(target); }; } function ProcessEmitWarning(warning) { if (console && console.warn) console.warn(warning); } var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) { return value !== value; }; function EventEmitter() { EventEmitter.init.call(this); } module.exports = EventEmitter; module.exports.once = once; // Backwards-compat with node 0.10.x EventEmitter.EventEmitter = EventEmitter; EventEmitter.prototype._events = undefined; EventEmitter.prototype._eventsCount = 0; EventEmitter.prototype._maxListeners = undefined; // By default EventEmitters will print a warning if more than 10 listeners are // added to it. This is a useful default which helps finding memory leaks. var defaultMaxListeners = 10; function checkListener(listener) { if (typeof listener !== 'function') { throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener); } } Object.defineProperty(EventEmitter, 'defaultMaxListeners', { enumerable: true, get: function () { return defaultMaxListeners; }, set: function (arg) { if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) { throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.'); } defaultMaxListeners = arg; } }); EventEmitter.init = function () { if (this._events === undefined || this._events === Object.getPrototypeOf(this)._events) { this._events = Object.create(null); this._eventsCount = 0; } this._maxListeners = this._maxListeners || undefined; }; // Obviously not all Emitters should be limited to 10. This function allows // that to be increased. Set to zero for unlimited. EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) { if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) { throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.'); } this._maxListeners = n; return this; }; function _getMaxListeners(that) { if (that._maxListeners === undefined) return EventEmitter.defaultMaxListeners; return that._maxListeners; } EventEmitter.prototype.getMaxListeners = function getMaxListeners() { return _getMaxListeners(this); }; EventEmitter.prototype.emit = function emit(type) { var args = []; for (var i = 1; i < arguments.length; i++) args.push(arguments[i]); var doError = (type === 'error'); var events = this._events; if (events !== undefined) doError = (doError && events.error === undefined); else if (!doError) return false; // If there is no 'error' event listener then throw. if (doError) { var er; if (args.length > 0) er = args[0]; if (er instanceof Error) { // Note: The comments on the `throw` lines are intentional, they show // up in Node's output if this results in an unhandled exception. throw er; // Unhandled 'error' event } // At least give some kind of context to the user var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : '')); err.context = er; throw err; // Unhandled 'error' event } var handler = events[type]; if (handler === undefined) return false; if (typeof handler === 'function') { ReflectApply(handler, this, args); } else { var len = handler.length; var listeners = arrayClone(handler, len); for (var i = 0; i < len; ++i) ReflectApply(listeners[i], this, args); } return true; }; function _addListener(target, type, listener, prepend) { var m; var events; var existing; checkListener(listener); events = target._events; if (events === undefined) { events = target._events = Object.create(null); target._eventsCount = 0; } else { // To avoid recursion in the case that type === "newListener"! Before // adding it to the listeners, first emit "newListener". if (events.newListener !== undefined) { target.emit('newListener', type, listener.listener ? listener.listener : listener); // Re-assign `events` because a newListener handler could have caused the // this._events to be assigned to a new object events = target._events; } existing = events[type]; } if (existing === undefined) { // Optimize the case of one listener. Don't need the extra array object. existing = events[type] = listener; ++target._eventsCount; } else { if (typeof existing === 'function') { // Adding the second element, need to change to array. existing = events[type] = prepend ? [listener, existing] : [existing, listener]; // If we've already got an array, just append. } else if (prepend) { existing.unshift(listener); } else { existing.push(listener); } // Check for listener leak m = _getMaxListeners(target); if (m > 0 && existing.length > m && !existing.warned) { existing.warned = true; // No error code for this since it is a Warning // eslint-disable-next-line no-restricted-syntax var w = new Error('Possible EventEmitter memory leak detected. ' + existing.length + ' ' + String(type) + ' listeners ' + 'added. Use emitter.setMaxListeners() to ' + 'increase limit'); w.name = 'MaxListenersExceededWarning'; w.emitter = target; w.type = type; w.count = existing.length; ProcessEmitWarning(w); } } return target; } EventEmitter.prototype.addListener = function addListener(type, listener) { return _addListener(this, type, listener, false); }; EventEmitter.prototype.on = EventEmitter.prototype.addListener; EventEmitter.prototype.prependListener = function prependListener(type, listener) { return _addListener(this, type, listener, true); }; function onceWrapper() { if (!this.fired) { this.target.removeListener(this.type, this.wrapFn); this.fired = true; if (arguments.length === 0) return this.listener.call(this.target); return this.listener.apply(this.target, arguments); } } function _onceWrap(target, type, listener) { var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener }; var wrapped = onceWrapper.bind(state); wrapped.listener = listener; state.wrapFn = wrapped; return wrapped; } EventEmitter.prototype.once = function once(type, listener) { checkListener(listener); this.on(type, _onceWrap(this, type, listener)); return this; }; EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) { checkListener(listener); this.prependListener(type, _onceWrap(this, type, listener)); return this; }; // Emits a 'removeListener' event if and only if the listener was removed. EventEmitter.prototype.removeListener = function removeListener(type, listener) { var list, events, position, i, originalListener; checkListener(listener); events = this._events; if (events === undefined) return this; list = events[type]; if (list === undefined) return this; if (list === listener || list.listener === listener) { if (--this._eventsCount === 0) this._events = Object.create(null); else { delete events[type]; if (events.removeListener) this.emit('removeListener', type, list.listener || listener); } } else if (typeof list !== 'function') { position = -1; for (i = list.length - 1; i >= 0; i--) { if (list[i] === listener || list[i].listener === listener) { originalListener = list[i].listener; position = i; break; } } if (position < 0) return this; if (position === 0) list.shift(); else { spliceOne(list, position); } if (list.length === 1) events[type] = list[0]; if (events.removeListener !== undefined) this.emit('removeListener', type, originalListener || listener); } return this; }; EventEmitter.prototype.off = EventEmitter.prototype.removeListener; EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) { var listeners, events, i; events = this._events; if (events === undefined) return this; // not listening for removeListener, no need to emit if (events.removeListener === undefined) { if (arguments.length === 0) { this._events = Object.create(null); this._eventsCount = 0; } else if (events[type] !== undefined) { if (--this._eventsCount === 0) this._events = Object.create(null); else delete events[type]; } return this; } // emit removeListener for all listeners on all events if (arguments.length === 0) { var keys = Object.keys(events); var key; for (i = 0; i < keys.length; ++i) { key = keys[i]; if (key === 'removeListener') continue; this.removeAllListeners(key); } this.removeAllListeners('removeListener'); this._events = Object.create(null); this._eventsCount = 0; return this; } listeners = events[type]; if (typeof listeners === 'function') { this.removeListener(type, listeners); } else if (listeners !== undefined) { // LIFO order for (i = listeners.length - 1; i >= 0; i--) { this.removeListener(type, listeners[i]); } } return this; }; function _listeners(target, type, unwrap) { var events = target._events; if (events === undefined) return []; var evlistener = events[type]; if (evlistener === undefined) return []; if (typeof evlistener === 'function') return unwrap ? [evlistener.listener || evlistener] : [evlistener]; return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length); } EventEmitter.prototype.listeners = function listeners(type) { return _listeners(this, type, true); }; EventEmitter.prototype.rawListeners = function rawListeners(type) { return _listeners(this, type, false); }; EventEmitter.listenerCount = function (emitter, type) { if (typeof emitter.listenerCount === 'function') { return emitter.listenerCount(type); } else { return listenerCount.call(emitter, type); } }; EventEmitter.prototype.listenerCount = listenerCount; function listenerCount(type) { var events = this._events; if (events !== undefined) { var evlistener = events[type]; if (typeof evlistener === 'function') { return 1; } else if (evlistener !== undefined) { return evlistener.length; } } return 0; } EventEmitter.prototype.eventNames = function eventNames() { return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : []; }; function arrayClone(arr, n) { var copy = new Array(n); for (var i = 0; i < n; ++i) copy[i] = arr[i]; return copy; } function spliceOne(list, index) { for (; index + 1 < list.length; index++) list[index] = list[index + 1]; list.pop(); } function unwrapListeners(arr) { var ret = new Array(arr.length); for (var i = 0; i < ret.length; ++i) { ret[i] = arr[i].listener || arr[i]; } return ret; } function once(emitter, name) { return new Promise(function (resolve, reject) { function errorListener(err) { emitter.removeListener(name, resolver); reject(err); } function resolver() { if (typeof emitter.removeListener === 'function') { emitter.removeListener('error', errorListener); } resolve([].slice.call(arguments)); } ; eventTargetAgnosticAddListener(emitter, name, resolver, { once: true }); if (name !== 'error') { addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true }); } }); } function addErrorHandlerIfEventEmitter(emitter, handler, flags) { if (typeof emitter.on === 'function') { eventTargetAgnosticAddListener(emitter, 'error', handler, flags); } } function eventTargetAgnosticAddListener(emitter, name, listener, flags) { if (typeof emitter.on === 'function') { if (flags.once) { emitter.once(name, listener); } else { emitter.on(name, listener); } } else if (typeof emitter.addEventListener === 'function') { // EventTarget does not have `error` event semantics like Node // EventEmitters, we do not listen for `error` events here. emitter.addEventListener(name, function wrapListener(arg) { // IE does not have builtin `{ once: true }` support so we // have to do it manually. if (flags.once) { emitter.removeEventListener(name, wrapListener); } listener(arg); }); } else { throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter); } } /***/ }), /***/ "./node_modules/webworkify-webpack/index.js": /*!**************************************************!*\ !*** ./node_modules/webworkify-webpack/index.js ***! \**************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { function webpackBootstrapFunc(modules) { /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __nested_webpack_require_164__(moduleId) { /******/ // Check if module is in cache /******/ if (installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_164__); /******/ // Flag the module as loaded /******/ module.l = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __nested_webpack_require_164__.m = modules; /******/ // expose the module cache /******/ __nested_webpack_require_164__.c = installedModules; /******/ // identity function for calling harmony imports with the correct context /******/ __nested_webpack_require_164__.i = function (value) { return value; }; /******/ // define getter function for harmony exports /******/ __nested_webpack_require_164__.d = function (exports, name, getter) { /******/ if (!__nested_webpack_require_164__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ } /******/ }; /******/ // define __esModule on exports /******/ __nested_webpack_require_164__.r = function (exports) { /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __nested_webpack_require_164__.n = function (module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __nested_webpack_require_164__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ // Object.prototype.hasOwnProperty.call /******/ __nested_webpack_require_164__.o = function (object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ // __webpack_public_path__ /******/ __nested_webpack_require_164__.p = "/"; /******/ // on error function for async loading /******/ __nested_webpack_require_164__.oe = function (err) { console.error(err); throw err; }; var f = __nested_webpack_require_164__(__nested_webpack_require_164__.s = ENTRY_MODULE); return f.default || f; // try to call default if defined to also support babel esmodule exports } var moduleNameReqExp = '[\\.|\\-|\\+|\\w|\/|@]+'; var dependencyRegExp = '\\(\\s*(\/\\*.*?\\*\/)?\\s*.*?(' + moduleNameReqExp + ').*?\\)'; // additional chars when output.pathinfo is true // http://stackoverflow.com/a/2593661/130442 function quoteRegExp(str) { return (str + '').replace(/[.?*+^$[\]\\(){}|-]/g, '\\$&'); } function isNumeric(n) { return !isNaN(1 * n); // 1 * n converts integers, integers as string ("123"), 1e3 and "1e3" to integers and strings to NaN } function getModuleDependencies(sources, module, queueName) { var retval = {}; retval[queueName] = []; var fnString = module.toString(); var wrapperSignature = fnString.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/); if (!wrapperSignature) return retval; var webpackRequireName = wrapperSignature[1]; // main bundle deps var re = new RegExp('(\\\\n|\\W)' + quoteRegExp(webpackRequireName) + dependencyRegExp, 'g'); var match; while ((match = re.exec(fnString))) { if (match[3] === 'dll-reference') continue; retval[queueName].push(match[3]); } // dll deps re = new RegExp('\\(' + quoteRegExp(webpackRequireName) + '\\("(dll-reference\\s(' + moduleNameReqExp + '))"\\)\\)' + dependencyRegExp, 'g'); while ((match = re.exec(fnString))) { if (!sources[match[2]]) { retval[queueName].push(match[1]); sources[match[2]] = __webpack_require__(match[1]).m; } retval[match[2]] = retval[match[2]] || []; retval[match[2]].push(match[4]); } // convert 1e3 back to 1000 - this can be important after uglify-js converted 1000 to 1e3 var keys = Object.keys(retval); for (var i = 0; i < keys.length; i++) { for (var j = 0; j < retval[keys[i]].length; j++) { if (isNumeric(retval[keys[i]][j])) { retval[keys[i]][j] = 1 * retval[keys[i]][j]; } } } return retval; } function hasValuesInQueues(queues) { var keys = Object.keys(queues); return keys.reduce(function (hasValues, key) { return hasValues || queues[key].length > 0; }, false); } function getRequiredModules(sources, moduleId) { var modulesQueue = { main: [moduleId] }; var requiredModules = { main: [] }; var seenModules = { main: {} }; while (hasValuesInQueues(modulesQueue)) { var queues = Object.keys(modulesQueue); for (var i = 0; i < queues.length; i++) { var queueName = queues[i]; var queue = modulesQueue[queueName]; var moduleToCheck = queue.pop(); seenModules[queueName] = seenModules[queueName] || {}; if (seenModules[queueName][moduleToCheck] || !sources[queueName][moduleToCheck]) continue; seenModules[queueName][moduleToCheck] = true; requiredModules[queueName] = requiredModules[queueName] || []; requiredModules[queueName].push(moduleToCheck); var newModules = getModuleDependencies(sources, sources[queueName][moduleToCheck], queueName); var newModulesKeys = Object.keys(newModules); for (var j = 0; j < newModulesKeys.length; j++) { modulesQueue[newModulesKeys[j]] = modulesQueue[newModulesKeys[j]] || []; modulesQueue[newModulesKeys[j]] = modulesQueue[newModulesKeys[j]].concat(newModules[newModulesKeys[j]]); } } } return requiredModules; } module.exports = function (moduleId, options) { options = options || {}; var sources = { main: __webpack_require__.m }; var requiredModules = options.all ? { main: Object.keys(sources.main) } : getRequiredModules(sources, moduleId); var src = ''; Object.keys(requiredModules).filter(function (m) { return m !== 'main'; }).forEach(function (module) { var entryModule = 0; while (requiredModules[module][entryModule]) { entryModule++; } requiredModules[module].push(entryModule); sources[module][entryModule] = '(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })'; src = src + 'var ' + module + ' = (' + webpackBootstrapFunc.toString().replace('ENTRY_MODULE', JSON.stringify(entryModule)) + ')({' + requiredModules[module].map(function (id) { return '' + JSON.stringify(id) + ': ' + sources[module][id].toString(); }).join(',') + '});\n'; }); src = src + 'new ((' + webpackBootstrapFunc.toString().replace('ENTRY_MODULE', JSON.stringify(moduleId)) + ')({' + requiredModules.main.map(function (id) { return '' + JSON.stringify(id) + ': ' + sources.main[id].toString(); }).join(',') + '}))(self);'; var blob = new window.Blob([src], { type: 'text/javascript' }); if (options.bare) { return blob; } var URL = window.URL || window.webkitURL || window.mozURL || window.msURL; var workerUrl = URL.createObjectURL(blob); var worker = new window.Worker(workerUrl); worker.objectURL = workerUrl; return worker; }; /***/ }), /***/ "./src/config.js": /*!***********************!*\ !*** ./src/config.js ***! \***********************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "defaultConfig": function() { return /* binding */ defaultConfig; }, /* harmony export */ "createDefaultConfig": function() { return /* binding */ createDefaultConfig; } /* harmony export */ }); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var defaultConfig = { enableWorker: false, enableStashBuffer: true, stashInitialSize: undefined, isLive: false, lazyLoad: true, lazyLoadMaxDuration: 3 * 60, lazyLoadRecoverDuration: 30, deferLoadAfterSourceOpen: true, // autoCleanupSourceBuffer: default as false, leave unspecified autoCleanupMaxBackwardDuration: 3 * 60, autoCleanupMinBackwardDuration: 2 * 60, statisticsInfoReportInterval: 600, fixAudioTimestampGap: true, accurateSeek: false, seekType: 'range', seekParamStart: 'bstart', seekParamEnd: 'bend', rangeLoadZeroStart: false, customSeekHandler: undefined, reuseRedirectedURL: false, // referrerPolicy: leave as unspecified headers: undefined, customLoader: undefined }; function createDefaultConfig() { return Object.assign({}, defaultConfig); } /***/ }), /***/ "./src/core/features.js": /*!******************************!*\ !*** ./src/core/features.js ***! \******************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _io_io_controller_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../io/io-controller.js */ "./src/io/io-controller.js"); /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../config.js */ "./src/config.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var Features = /** @class */ (function () { function Features() { } Features.supportMSEH264Playback = function () { return window.MediaSource && window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'); }; Features.supportNetworkStreamIO = function () { var ioctl = new _io_io_controller_js__WEBPACK_IMPORTED_MODULE_0__.default({}, (0,_config_js__WEBPACK_IMPORTED_MODULE_1__.createDefaultConfig)()); var loaderType = ioctl.loaderType; ioctl.destroy(); return loaderType == 'fetch-stream-loader' || loaderType == 'xhr-moz-chunked-loader'; }; Features.getNetworkLoaderTypeName = function () { var ioctl = new _io_io_controller_js__WEBPACK_IMPORTED_MODULE_0__.default({}, (0,_config_js__WEBPACK_IMPORTED_MODULE_1__.createDefaultConfig)()); var loaderType = ioctl.loaderType; ioctl.destroy(); return loaderType; }; Features.supportNativeMediaPlayback = function (mimeType) { if (Features.videoElement == undefined) { Features.videoElement = window.document.createElement('video'); } var canPlay = Features.videoElement.canPlayType(mimeType); return canPlay === 'probably' || canPlay == 'maybe'; }; Features.getFeatureList = function () { var features = { mseFlvPlayback: false, mseLiveFlvPlayback: false, networkStreamIO: false, networkLoaderName: '', nativeMP4H264Playback: false, nativeWebmVP8Playback: false, nativeWebmVP9Playback: false }; features.mseFlvPlayback = Features.supportMSEH264Playback(); features.networkStreamIO = Features.supportNetworkStreamIO(); features.networkLoaderName = Features.getNetworkLoaderTypeName(); features.mseLiveFlvPlayback = features.mseFlvPlayback && features.networkStreamIO; features.nativeMP4H264Playback = Features.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'); features.nativeWebmVP8Playback = Features.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'); features.nativeWebmVP9Playback = Features.supportNativeMediaPlayback('video/webm; codecs="vp9"'); return features; }; return Features; }()); /* harmony default export */ __webpack_exports__["default"] = (Features); /***/ }), /***/ "./src/core/media-info.js": /*!********************************!*\ !*** ./src/core/media-info.js ***! \********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var MediaInfo = /** @class */ (function () { function MediaInfo() { this.mimeType = null; this.duration = null; this.hasAudio = null; this.hasVideo = null; this.audioCodec = null; this.videoCodec = null; this.audioDataRate = null; this.videoDataRate = null; this.audioSampleRate = null; this.audioChannelCount = null; this.width = null; this.height = null; this.fps = null; this.profile = null; this.level = null; this.refFrames = null; this.chromaFormat = null; this.sarNum = null; this.sarDen = null; this.metadata = null; this.segments = null; // MediaInfo[] this.segmentCount = null; this.hasKeyframesIndex = null; this.keyframesIndex = null; } MediaInfo.prototype.isComplete = function () { var audioInfoComplete = (this.hasAudio === false) || (this.hasAudio === true && this.audioCodec != null && this.audioSampleRate != null && this.audioChannelCount != null); var videoInfoComplete = (this.hasVideo === false) || (this.hasVideo === true && this.videoCodec != null && this.width != null && this.height != null && this.fps != null && this.profile != null && this.level != null && this.refFrames != null && this.chromaFormat != null && this.sarNum != null && this.sarDen != null); // keyframesIndex may not be present return this.mimeType != null && this.duration != null && this.metadata != null && this.hasKeyframesIndex != null && audioInfoComplete && videoInfoComplete; }; MediaInfo.prototype.isSeekable = function () { return this.hasKeyframesIndex === true; }; MediaInfo.prototype.getNearestKeyframe = function (milliseconds) { if (this.keyframesIndex == null) { return null; } var table = this.keyframesIndex; var keyframeIdx = this._search(table.times, milliseconds); return { index: keyframeIdx, milliseconds: table.times[keyframeIdx], fileposition: table.filepositions[keyframeIdx] }; }; MediaInfo.prototype._search = function (list, value) { var idx = 0; var last = list.length - 1; var mid = 0; var lbound = 0; var ubound = last; if (value < list[0]) { idx = 0; lbound = ubound + 1; // skip search } while (lbound <= ubound) { mid = lbound + Math.floor((ubound - lbound) / 2); if (mid === last || (value >= list[mid] && value < list[mid + 1])) { idx = mid; break; } else if (list[mid] < value) { lbound = mid + 1; } else { ubound = mid - 1; } } return idx; }; return MediaInfo; }()); /* harmony default export */ __webpack_exports__["default"] = (MediaInfo); /***/ }), /***/ "./src/core/media-segment-info.js": /*!****************************************!*\ !*** ./src/core/media-segment-info.js ***! \****************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "SampleInfo": function() { return /* binding */ SampleInfo; }, /* harmony export */ "MediaSegmentInfo": function() { return /* binding */ MediaSegmentInfo; }, /* harmony export */ "IDRSampleList": function() { return /* binding */ IDRSampleList; }, /* harmony export */ "MediaSegmentInfoList": function() { return /* binding */ MediaSegmentInfoList; } /* harmony export */ }); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Represents an media sample (audio / video) var SampleInfo = /** @class */ (function () { function SampleInfo(dts, pts, duration, originalDts, isSync) { this.dts = dts; this.pts = pts; this.duration = duration; this.originalDts = originalDts; this.isSyncPoint = isSync; this.fileposition = null; } return SampleInfo; }()); // Media Segment concept is defined in Media Source Extensions spec. // Particularly in ISO BMFF format, an Media Segment contains a moof box followed by a mdat box. var MediaSegmentInfo = /** @class */ (function () { function MediaSegmentInfo() { this.beginDts = 0; this.endDts = 0; this.beginPts = 0; this.endPts = 0; this.originalBeginDts = 0; this.originalEndDts = 0; this.syncPoints = []; // SampleInfo[n], for video IDR frames only this.firstSample = null; // SampleInfo this.lastSample = null; // SampleInfo } MediaSegmentInfo.prototype.appendSyncPoint = function (sampleInfo) { sampleInfo.isSyncPoint = true; this.syncPoints.push(sampleInfo); }; return MediaSegmentInfo; }()); // Ordered list for recording video IDR frames, sorted by originalDts var IDRSampleList = /** @class */ (function () { function IDRSampleList() { this._list = []; } IDRSampleList.prototype.clear = function () { this._list = []; }; IDRSampleList.prototype.appendArray = function (syncPoints) { var list = this._list; if (syncPoints.length === 0) { return; } if (list.length > 0 && syncPoints[0].originalDts < list[list.length - 1].originalDts) { this.clear(); } Array.prototype.push.apply(list, syncPoints); }; IDRSampleList.prototype.getLastSyncPointBeforeDts = function (dts) { if (this._list.length == 0) { return null; } var list = this._list; var idx = 0; var last = list.length - 1; var mid = 0; var lbound = 0; var ubound = last; if (dts < list[0].dts) { idx = 0; lbound = ubound + 1; } while (lbound <= ubound) { mid = lbound + Math.floor((ubound - lbound) / 2); if (mid === last || (dts >= list[mid].dts && dts < list[mid + 1].dts)) { idx = mid; break; } else if (list[mid].dts < dts) { lbound = mid + 1; } else { ubound = mid - 1; } } return this._list[idx]; }; return IDRSampleList; }()); // Data structure for recording information of media segments in single track. var MediaSegmentInfoList = /** @class */ (function () { function MediaSegmentInfoList(type) { this._type = type; this._list = []; this._lastAppendLocation = -1; // cached last insert location } Object.defineProperty(MediaSegmentInfoList.prototype, "type", { get: function () { return this._type; }, enumerable: false, configurable: true }); Object.defineProperty(MediaSegmentInfoList.prototype, "length", { get: function () { return this._list.length; }, enumerable: false, configurable: true }); MediaSegmentInfoList.prototype.isEmpty = function () { return this._list.length === 0; }; MediaSegmentInfoList.prototype.clear = function () { this._list = []; this._lastAppendLocation = -1; }; MediaSegmentInfoList.prototype._searchNearestSegmentBefore = function (originalBeginDts) { var list = this._list; if (list.length === 0) { return -2; } var last = list.length - 1; var mid = 0; var lbound = 0; var ubound = last; var idx = 0; if (originalBeginDts < list[0].originalBeginDts) { idx = -1; return idx; } while (lbound <= ubound) { mid = lbound + Math.floor((ubound - lbound) / 2); if (mid === last || (originalBeginDts > list[mid].lastSample.originalDts && (originalBeginDts < list[mid + 1].originalBeginDts))) { idx = mid; break; } else if (list[mid].originalBeginDts < originalBeginDts) { lbound = mid + 1; } else { ubound = mid - 1; } } return idx; }; MediaSegmentInfoList.prototype._searchNearestSegmentAfter = function (originalBeginDts) { return this._searchNearestSegmentBefore(originalBeginDts) + 1; }; MediaSegmentInfoList.prototype.append = function (mediaSegmentInfo) { var list = this._list; var msi = mediaSegmentInfo; var lastAppendIdx = this._lastAppendLocation; var insertIdx = 0; if (lastAppendIdx !== -1 && lastAppendIdx < list.length && msi.originalBeginDts >= list[lastAppendIdx].lastSample.originalDts && ((lastAppendIdx === list.length - 1) || (lastAppendIdx < list.length - 1 && msi.originalBeginDts < list[lastAppendIdx + 1].originalBeginDts))) { insertIdx = lastAppendIdx + 1; // use cached location idx } else { if (list.length > 0) { insertIdx = this._searchNearestSegmentBefore(msi.originalBeginDts) + 1; } } this._lastAppendLocation = insertIdx; this._list.splice(insertIdx, 0, msi); }; MediaSegmentInfoList.prototype.getLastSegmentBefore = function (originalBeginDts) { var idx = this._searchNearestSegmentBefore(originalBeginDts); if (idx >= 0) { return this._list[idx]; } else { // -1 return null; } }; MediaSegmentInfoList.prototype.getLastSampleBefore = function (originalBeginDts) { var segment = this.getLastSegmentBefore(originalBeginDts); if (segment != null) { return segment.lastSample; } else { return null; } }; MediaSegmentInfoList.prototype.getLastSyncPointBefore = function (originalBeginDts) { var segmentIdx = this._searchNearestSegmentBefore(originalBeginDts); var syncPoints = this._list[segmentIdx].syncPoints; while (syncPoints.length === 0 && segmentIdx > 0) { segmentIdx--; syncPoints = this._list[segmentIdx].syncPoints; } if (syncPoints.length > 0) { return syncPoints[syncPoints.length - 1]; } else { return null; } }; return MediaSegmentInfoList; }()); /***/ }), /***/ "./src/core/mse-controller.js": /*!************************************!*\ !*** ./src/core/mse-controller.js ***! \************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! events */ "./node_modules/events/events.js"); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/logger.js */ "./src/utils/logger.js"); /* harmony import */ var _utils_browser_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/browser.js */ "./src/utils/browser.js"); /* harmony import */ var _mse_events_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./mse-events.js */ "./src/core/mse-events.js"); /* harmony import */ var _media_segment_info_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./media-segment-info.js */ "./src/core/media-segment-info.js"); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Media Source Extensions controller var MSEController = /** @class */ (function () { function MSEController(config) { this.TAG = 'MSEController'; this._config = config; this._emitter = new (events__WEBPACK_IMPORTED_MODULE_0___default())(); if (this._config.isLive && this._config.autoCleanupSourceBuffer == undefined) { // For live stream, do auto cleanup by default this._config.autoCleanupSourceBuffer = true; } this.e = { onSourceOpen: this._onSourceOpen.bind(this), onSourceEnded: this._onSourceEnded.bind(this), onSourceClose: this._onSourceClose.bind(this), onSourceBufferError: this._onSourceBufferError.bind(this), onSourceBufferUpdateEnd: this._onSourceBufferUpdateEnd.bind(this) }; this._mediaSource = null; this._mediaSourceObjectURL = null; this._mediaElement = null; this._isBufferFull = false; this._hasPendingEos = false; this._requireSetMediaDuration = false; this._pendingMediaDuration = 0; this._pendingSourceBufferInit = []; this._mimeTypes = { video: null, audio: null }; this._sourceBuffers = { video: null, audio: null }; this._lastInitSegments = { video: null, audio: null }; this._pendingSegments = { video: [], audio: [] }; this._pendingRemoveRanges = { video: [], audio: [] }; this._idrList = new _media_segment_info_js__WEBPACK_IMPORTED_MODULE_4__.IDRSampleList(); } MSEController.prototype.destroy = function () { if (this._mediaElement || this._mediaSource) { this.detachMediaElement(); } this.e = null; this._emitter.removeAllListeners(); this._emitter = null; }; MSEController.prototype.on = function (event, listener) { this._emitter.addListener(event, listener); }; MSEController.prototype.off = function (event, listener) { this._emitter.removeListener(event, listener); }; MSEController.prototype.attachMediaElement = function (mediaElement) { if (this._mediaSource) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_5__.IllegalStateException('MediaSource has been attached to an HTMLMediaElement!'); } var ms = this._mediaSource = new window.MediaSource(); ms.addEventListener('sourceopen', this.e.onSourceOpen); ms.addEventListener('sourceended', this.e.onSourceEnded); ms.addEventListener('sourceclose', this.e.onSourceClose); this._mediaElement = mediaElement; this._mediaSourceObjectURL = window.URL.createObjectURL(this._mediaSource); mediaElement.src = this._mediaSourceObjectURL; }; MSEController.prototype.detachMediaElement = function () { if (this._mediaSource) { var ms = this._mediaSource; for (var type in this._sourceBuffers) { // pending segments should be discard var ps = this._pendingSegments[type]; ps.splice(0, ps.length); this._pendingSegments[type] = null; this._pendingRemoveRanges[type] = null; this._lastInitSegments[type] = null; // remove all sourcebuffers var sb = this._sourceBuffers[type]; if (sb) { if (ms.readyState !== 'closed') { // ms edge can throw an error: Unexpected call to method or property access try { ms.removeSourceBuffer(sb); } catch (error) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.e(this.TAG, error.message); } sb.removeEventListener('error', this.e.onSourceBufferError); sb.removeEventListener('updateend', this.e.onSourceBufferUpdateEnd); } this._mimeTypes[type] = null; this._sourceBuffers[type] = null; } } if (ms.readyState === 'open') { try { ms.endOfStream(); } catch (error) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.e(this.TAG, error.message); } } ms.removeEventListener('sourceopen', this.e.onSourceOpen); ms.removeEventListener('sourceended', this.e.onSourceEnded); ms.removeEventListener('sourceclose', this.e.onSourceClose); this._pendingSourceBufferInit = []; this._isBufferFull = false; this._idrList.clear(); this._mediaSource = null; } if (this._mediaElement) { this._mediaElement.src = ''; this._mediaElement.removeAttribute('src'); this._mediaElement = null; } if (this._mediaSourceObjectURL) { window.URL.revokeObjectURL(this._mediaSourceObjectURL); this._mediaSourceObjectURL = null; } }; MSEController.prototype.appendInitSegment = function (initSegment, deferred) { if (!this._mediaSource || this._mediaSource.readyState !== 'open') { // sourcebuffer creation requires mediaSource.readyState === 'open' // so we defer the sourcebuffer creation, until sourceopen event triggered this._pendingSourceBufferInit.push(initSegment); // make sure that this InitSegment is in the front of pending segments queue this._pendingSegments[initSegment.type].push(initSegment); return; } var is = initSegment; var mimeType = "" + is.container; if (is.codec && is.codec.length > 0) { mimeType += ";codecs=" + is.codec; } var firstInitSegment = false; _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.v(this.TAG, 'Received Initialization Segment, mimeType: ' + mimeType); this._lastInitSegments[is.type] = is; if (mimeType !== this._mimeTypes[is.type]) { if (!this._mimeTypes[is.type]) { // empty, first chance create sourcebuffer firstInitSegment = true; try { var sb = this._sourceBuffers[is.type] = this._mediaSource.addSourceBuffer(mimeType); sb.addEventListener('error', this.e.onSourceBufferError); sb.addEventListener('updateend', this.e.onSourceBufferUpdateEnd); } catch (error) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.e(this.TAG, error.message); this._emitter.emit(_mse_events_js__WEBPACK_IMPORTED_MODULE_3__.default.ERROR, { code: error.code, msg: error.message }); return; } } else { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.v(this.TAG, "Notice: " + is.type + " mimeType changed, origin: " + this._mimeTypes[is.type] + ", target: " + mimeType); } this._mimeTypes[is.type] = mimeType; } if (!deferred) { // deferred means this InitSegment has been pushed to pendingSegments queue this._pendingSegments[is.type].push(is); } if (!firstInitSegment) { // append immediately only if init segment in subsequence if (this._sourceBuffers[is.type] && !this._sourceBuffers[is.type].updating) { this._doAppendSegments(); } } if (_utils_browser_js__WEBPACK_IMPORTED_MODULE_2__.default.safari && is.container === 'audio/mpeg' && is.mediaDuration > 0) { // 'audio/mpeg' track under Safari may cause MediaElement's duration to be NaN // Manually correct MediaSource.duration to make progress bar seekable, and report right duration this._requireSetMediaDuration = true; this._pendingMediaDuration = is.mediaDuration / 1000; // in seconds this._updateMediaSourceDuration(); } }; MSEController.prototype.appendMediaSegment = function (mediaSegment) { var ms = mediaSegment; this._pendingSegments[ms.type].push(ms); if (this._config.autoCleanupSourceBuffer && this._needCleanupSourceBuffer()) { this._doCleanupSourceBuffer(); } var sb = this._sourceBuffers[ms.type]; if (sb && !sb.updating && !this._hasPendingRemoveRanges()) { this._doAppendSegments(); } }; MSEController.prototype.seek = function (seconds) { // remove all appended buffers for (var type in this._sourceBuffers) { if (!this._sourceBuffers[type]) { continue; } // abort current buffer append algorithm var sb = this._sourceBuffers[type]; if (this._mediaSource.readyState === 'open') { try { // If range removal algorithm is running, InvalidStateError will be throwed // Ignore it. sb.abort(); } catch (error) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.e(this.TAG, error.message); } } // IDRList should be clear this._idrList.clear(); // pending segments should be discard var ps = this._pendingSegments[type]; ps.splice(0, ps.length); if (this._mediaSource.readyState === 'closed') { // Parent MediaSource object has been detached from HTMLMediaElement continue; } // record ranges to be remove from SourceBuffer for (var i = 0; i < sb.buffered.length; i++) { var start = sb.buffered.start(i); var end = sb.buffered.end(i); this._pendingRemoveRanges[type].push({ start: start, end: end }); } // if sb is not updating, let's remove ranges now! if (!sb.updating) { this._doRemoveRanges(); } // Safari 10 may get InvalidStateError in the later appendBuffer() after SourceBuffer.remove() call // Internal parser's state may be invalid at this time. Re-append last InitSegment to workaround. // Related issue: https://bugs.webkit.org/show_bug.cgi?id=159230 if (_utils_browser_js__WEBPACK_IMPORTED_MODULE_2__.default.safari) { var lastInitSegment = this._lastInitSegments[type]; if (lastInitSegment) { this._pendingSegments[type].push(lastInitSegment); if (!sb.updating) { this._doAppendSegments(); } } } } }; MSEController.prototype.endOfStream = function () { var ms = this._mediaSource; var sb = this._sourceBuffers; if (!ms || ms.readyState !== 'open') { if (ms && ms.readyState === 'closed' && this._hasPendingSegments()) { // If MediaSource hasn't turned into open state, and there're pending segments // Mark pending endOfStream, defer call until all pending segments appended complete this._hasPendingEos = true; } return; } if (sb.video && sb.video.updating || sb.audio && sb.audio.updating) { // If any sourcebuffer is updating, defer endOfStream operation // See _onSourceBufferUpdateEnd() this._hasPendingEos = true; } else { this._hasPendingEos = false; // Notify media data loading complete // This is helpful for correcting total duration to match last media segment // Otherwise MediaElement's ended event may not be triggered ms.endOfStream(); } }; MSEController.prototype.getNearestKeyframe = function (dts) { return this._idrList.getLastSyncPointBeforeDts(dts); }; MSEController.prototype._needCleanupSourceBuffer = function () { if (!this._config.autoCleanupSourceBuffer) { return false; } var currentTime = this._mediaElement.currentTime; for (var type in this._sourceBuffers) { var sb = this._sourceBuffers[type]; if (sb) { var buffered = sb.buffered; if (buffered.length >= 1) { if (currentTime - buffered.start(0) >= this._config.autoCleanupMaxBackwardDuration) { return true; } } } } return false; }; MSEController.prototype._doCleanupSourceBuffer = function () { var currentTime = this._mediaElement.currentTime; for (var type in this._sourceBuffers) { var sb = this._sourceBuffers[type]; if (sb) { var buffered = sb.buffered; var doRemove = false; for (var i = 0; i < buffered.length; i++) { var start = buffered.start(i); var end = buffered.end(i); if (start <= currentTime && currentTime < end + 3) { // padding 3 seconds if (currentTime - start >= this._config.autoCleanupMaxBackwardDuration) { doRemove = true; var removeEnd = currentTime - this._config.autoCleanupMinBackwardDuration; this._pendingRemoveRanges[type].push({ start: start, end: removeEnd }); } } else if (end < currentTime) { doRemove = true; this._pendingRemoveRanges[type].push({ start: start, end: end }); } } if (doRemove && !sb.updating) { this._doRemoveRanges(); } } } }; MSEController.prototype._updateMediaSourceDuration = function () { var sb = this._sourceBuffers; if (this._mediaElement.readyState === 0 || this._mediaSource.readyState !== 'open') { return; } if ((sb.video && sb.video.updating) || (sb.audio && sb.audio.updating)) { return; } var current = this._mediaSource.duration; var target = this._pendingMediaDuration; if (target > 0 && (isNaN(current) || target > current)) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.v(this.TAG, "Update MediaSource duration from " + current + " to " + target); this._mediaSource.duration = target; } this._requireSetMediaDuration = false; this._pendingMediaDuration = 0; }; MSEController.prototype._doRemoveRanges = function () { for (var type in this._pendingRemoveRanges) { if (!this._sourceBuffers[type] || this._sourceBuffers[type].updating) { continue; } var sb = this._sourceBuffers[type]; var ranges = this._pendingRemoveRanges[type]; while (ranges.length && !sb.updating) { var range = ranges.shift(); sb.remove(range.start, range.end); } } }; MSEController.prototype._doAppendSegments = function () { var pendingSegments = this._pendingSegments; for (var type in pendingSegments) { if (!this._sourceBuffers[type] || this._sourceBuffers[type].updating) { continue; } if (pendingSegments[type].length > 0) { var segment = pendingSegments[type].shift(); if (segment.timestampOffset) { // For MPEG audio stream in MSE, if unbuffered-seeking occurred // We need explicitly set timestampOffset to the desired point in timeline for mpeg SourceBuffer. var currentOffset = this._sourceBuffers[type].timestampOffset; var targetOffset = segment.timestampOffset / 1000; // in seconds var delta = Math.abs(currentOffset - targetOffset); if (delta > 0.1) { // If time delta > 100ms _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.v(this.TAG, "Update MPEG audio timestampOffset from " + currentOffset + " to " + targetOffset); this._sourceBuffers[type].timestampOffset = targetOffset; } delete segment.timestampOffset; } if (!segment.data || segment.data.byteLength === 0) { // Ignore empty buffer continue; } try { this._sourceBuffers[type].appendBuffer(segment.data); this._isBufferFull = false; if (type === 'video' && segment.hasOwnProperty('info')) { this._idrList.appendArray(segment.info.syncPoints); } } catch (error) { this._pendingSegments[type].unshift(segment); if (error.code === 22) { // QuotaExceededError /* Notice that FireFox may not throw QuotaExceededError if SourceBuffer is full * Currently we can only do lazy-load to avoid SourceBuffer become scattered. * SourceBuffer eviction policy may be changed in future version of FireFox. * * Related issues: * https://bugzilla.mozilla.org/show_bug.cgi?id=1279885 * https://bugzilla.mozilla.org/show_bug.cgi?id=1280023 */ // report buffer full, abort network IO if (!this._isBufferFull) { this._emitter.emit(_mse_events_js__WEBPACK_IMPORTED_MODULE_3__.default.BUFFER_FULL); } this._isBufferFull = true; } else { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.e(this.TAG, error.message); this._emitter.emit(_mse_events_js__WEBPACK_IMPORTED_MODULE_3__.default.ERROR, { code: error.code, msg: error.message }); } } } } }; MSEController.prototype._onSourceOpen = function () { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.v(this.TAG, 'MediaSource onSourceOpen'); this._mediaSource.removeEventListener('sourceopen', this.e.onSourceOpen); // deferred sourcebuffer creation / initialization if (this._pendingSourceBufferInit.length > 0) { var pendings = this._pendingSourceBufferInit; while (pendings.length) { var segment = pendings.shift(); this.appendInitSegment(segment, true); } } // there may be some pending media segments, append them if (this._hasPendingSegments()) { this._doAppendSegments(); } this._emitter.emit(_mse_events_js__WEBPACK_IMPORTED_MODULE_3__.default.SOURCE_OPEN); }; MSEController.prototype._onSourceEnded = function () { // fired on endOfStream _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.v(this.TAG, 'MediaSource onSourceEnded'); }; MSEController.prototype._onSourceClose = function () { // fired on detaching from media element _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.v(this.TAG, 'MediaSource onSourceClose'); if (this._mediaSource && this.e != null) { this._mediaSource.removeEventListener('sourceopen', this.e.onSourceOpen); this._mediaSource.removeEventListener('sourceended', this.e.onSourceEnded); this._mediaSource.removeEventListener('sourceclose', this.e.onSourceClose); } }; MSEController.prototype._hasPendingSegments = function () { var ps = this._pendingSegments; return ps.video.length > 0 || ps.audio.length > 0; }; MSEController.prototype._hasPendingRemoveRanges = function () { var prr = this._pendingRemoveRanges; return prr.video.length > 0 || prr.audio.length > 0; }; MSEController.prototype._onSourceBufferUpdateEnd = function () { if (this._requireSetMediaDuration) { this._updateMediaSourceDuration(); } else if (this._hasPendingRemoveRanges()) { this._doRemoveRanges(); } else if (this._hasPendingSegments()) { this._doAppendSegments(); } else if (this._hasPendingEos) { this.endOfStream(); } this._emitter.emit(_mse_events_js__WEBPACK_IMPORTED_MODULE_3__.default.UPDATE_END); }; MSEController.prototype._onSourceBufferError = function (e) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.e(this.TAG, "SourceBuffer Error: " + e); // this error might not always be fatal, just ignore it }; return MSEController; }()); /* harmony default export */ __webpack_exports__["default"] = (MSEController); /***/ }), /***/ "./src/core/mse-events.js": /*!********************************!*\ !*** ./src/core/mse-events.js ***! \********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var MSEEvents = { ERROR: 'error', SOURCE_OPEN: 'source_open', UPDATE_END: 'update_end', BUFFER_FULL: 'buffer_full' }; /* harmony default export */ __webpack_exports__["default"] = (MSEEvents); /***/ }), /***/ "./src/core/transmuxer.js": /*!********************************!*\ !*** ./src/core/transmuxer.js ***! \********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! events */ "./node_modules/events/events.js"); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var webworkify_webpack__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! webworkify-webpack */ "./node_modules/webworkify-webpack/index.js"); /* harmony import */ var webworkify_webpack__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(webworkify_webpack__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _utils_logger_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/logger.js */ "./src/utils/logger.js"); /* harmony import */ var _utils_logging_control_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/logging-control.js */ "./src/utils/logging-control.js"); /* harmony import */ var _transmuxing_controller_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./transmuxing-controller.js */ "./src/core/transmuxing-controller.js"); /* harmony import */ var _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./transmuxing-events.js */ "./src/core/transmuxing-events.js"); /* harmony import */ var _media_info_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./media-info.js */ "./src/core/media-info.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var Transmuxer = /** @class */ (function () { function Transmuxer(mediaDataSource, config) { this.TAG = 'Transmuxer'; this._emitter = new (events__WEBPACK_IMPORTED_MODULE_0___default())(); if (config.enableWorker && typeof (Worker) !== 'undefined') { try { this._worker = webworkify_webpack__WEBPACK_IMPORTED_MODULE_1___default()(/*require.resolve*/(/*! ./transmuxing-worker */ "./src/core/transmuxing-worker.js")); this._workerDestroying = false; this._worker.addEventListener('message', this._onWorkerMessage.bind(this)); this._worker.postMessage({ cmd: 'init', param: [mediaDataSource, config] }); this.e = { onLoggingConfigChanged: this._onLoggingConfigChanged.bind(this) }; _utils_logging_control_js__WEBPACK_IMPORTED_MODULE_3__.default.registerListener(this.e.onLoggingConfigChanged); this._worker.postMessage({ cmd: 'logging_config', param: _utils_logging_control_js__WEBPACK_IMPORTED_MODULE_3__.default.getConfig() }); } catch (error) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_2__.default.e(this.TAG, 'Error while initialize transmuxing worker, fallback to inline transmuxing'); this._worker = null; this._controller = new _transmuxing_controller_js__WEBPACK_IMPORTED_MODULE_4__.default(mediaDataSource, config); } } else { this._controller = new _transmuxing_controller_js__WEBPACK_IMPORTED_MODULE_4__.default(mediaDataSource, config); } if (this._controller) { var ctl = this._controller; ctl.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.IO_ERROR, this._onIOError.bind(this)); ctl.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.DEMUX_ERROR, this._onDemuxError.bind(this)); ctl.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.INIT_SEGMENT, this._onInitSegment.bind(this)); ctl.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.MEDIA_SEGMENT, this._onMediaSegment.bind(this)); ctl.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.LOADING_COMPLETE, this._onLoadingComplete.bind(this)); ctl.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.RECOVERED_EARLY_EOF, this._onRecoveredEarlyEof.bind(this)); ctl.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.MEDIA_INFO, this._onMediaInfo.bind(this)); ctl.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.METADATA_ARRIVED, this._onMetaDataArrived.bind(this)); ctl.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.SCRIPTDATA_ARRIVED, this._onScriptDataArrived.bind(this)); ctl.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.STATISTICS_INFO, this._onStatisticsInfo.bind(this)); ctl.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.RECOMMEND_SEEKPOINT, this._onRecommendSeekpoint.bind(this)); } } Transmuxer.prototype.destroy = function () { if (this._worker) { if (!this._workerDestroying) { this._workerDestroying = true; this._worker.postMessage({ cmd: 'destroy' }); _utils_logging_control_js__WEBPACK_IMPORTED_MODULE_3__.default.removeListener(this.e.onLoggingConfigChanged); this.e = null; } } else { this._controller.destroy(); this._controller = null; } this._emitter.removeAllListeners(); this._emitter = null; }; Transmuxer.prototype.on = function (event, listener) { this._emitter.addListener(event, listener); }; Transmuxer.prototype.off = function (event, listener) { this._emitter.removeListener(event, listener); }; Transmuxer.prototype.hasWorker = function () { return this._worker != null; }; Transmuxer.prototype.open = function () { if (this._worker) { this._worker.postMessage({ cmd: 'start' }); } else { this._controller.start(); } }; Transmuxer.prototype.close = function () { if (this._worker) { this._worker.postMessage({ cmd: 'stop' }); } else { this._controller.stop(); } }; Transmuxer.prototype.seek = function (milliseconds) { if (this._worker) { this._worker.postMessage({ cmd: 'seek', param: milliseconds }); } else { this._controller.seek(milliseconds); } }; Transmuxer.prototype.pause = function () { if (this._worker) { this._worker.postMessage({ cmd: 'pause' }); } else { this._controller.pause(); } }; Transmuxer.prototype.resume = function () { if (this._worker) { this._worker.postMessage({ cmd: 'resume' }); } else { this._controller.resume(); } }; Transmuxer.prototype._onInitSegment = function (type, initSegment) { var _this = this; // do async invoke Promise.resolve().then(function () { _this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.INIT_SEGMENT, type, initSegment); }); }; Transmuxer.prototype._onMediaSegment = function (type, mediaSegment) { var _this = this; Promise.resolve().then(function () { _this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.MEDIA_SEGMENT, type, mediaSegment); }); }; Transmuxer.prototype._onLoadingComplete = function () { var _this = this; Promise.resolve().then(function () { _this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.LOADING_COMPLETE); }); }; Transmuxer.prototype._onRecoveredEarlyEof = function () { var _this = this; Promise.resolve().then(function () { _this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.RECOVERED_EARLY_EOF); }); }; Transmuxer.prototype._onMediaInfo = function (mediaInfo) { var _this = this; Promise.resolve().then(function () { _this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.MEDIA_INFO, mediaInfo); }); }; Transmuxer.prototype._onMetaDataArrived = function (metadata) { var _this = this; Promise.resolve().then(function () { _this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.METADATA_ARRIVED, metadata); }); }; Transmuxer.prototype._onScriptDataArrived = function (data) { var _this = this; Promise.resolve().then(function () { _this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.SCRIPTDATA_ARRIVED, data); }); }; Transmuxer.prototype._onStatisticsInfo = function (statisticsInfo) { var _this = this; Promise.resolve().then(function () { _this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.STATISTICS_INFO, statisticsInfo); }); }; Transmuxer.prototype._onIOError = function (type, info) { var _this = this; Promise.resolve().then(function () { _this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.IO_ERROR, type, info); }); }; Transmuxer.prototype._onDemuxError = function (type, info) { var _this = this; Promise.resolve().then(function () { _this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.DEMUX_ERROR, type, info); }); }; Transmuxer.prototype._onRecommendSeekpoint = function (milliseconds) { var _this = this; Promise.resolve().then(function () { _this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.RECOMMEND_SEEKPOINT, milliseconds); }); }; Transmuxer.prototype._onLoggingConfigChanged = function (config) { if (this._worker) { this._worker.postMessage({ cmd: 'logging_config', param: config }); } }; Transmuxer.prototype._onWorkerMessage = function (e) { var message = e.data; var data = message.data; if (message.msg === 'destroyed' || this._workerDestroying) { this._workerDestroying = false; this._worker.terminate(); this._worker = null; return; } switch (message.msg) { case _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.INIT_SEGMENT: case _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.MEDIA_SEGMENT: this._emitter.emit(message.msg, data.type, data.data); break; case _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.LOADING_COMPLETE: case _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.RECOVERED_EARLY_EOF: this._emitter.emit(message.msg); break; case _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.MEDIA_INFO: Object.setPrototypeOf(data, _media_info_js__WEBPACK_IMPORTED_MODULE_6__.default.prototype); this._emitter.emit(message.msg, data); break; case _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.METADATA_ARRIVED: case _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.SCRIPTDATA_ARRIVED: case _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.STATISTICS_INFO: this._emitter.emit(message.msg, data); break; case _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.IO_ERROR: case _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.DEMUX_ERROR: this._emitter.emit(message.msg, data.type, data.info); break; case _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.RECOMMEND_SEEKPOINT: this._emitter.emit(message.msg, data); break; case 'logcat_callback': _utils_logger_js__WEBPACK_IMPORTED_MODULE_2__.default.emitter.emit('log', data.type, data.logcat); break; default: break; } }; return Transmuxer; }()); /* harmony default export */ __webpack_exports__["default"] = (Transmuxer); /***/ }), /***/ "./src/core/transmuxing-controller.js": /*!********************************************!*\ !*** ./src/core/transmuxing-controller.js ***! \********************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! events */ "./node_modules/events/events.js"); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/logger.js */ "./src/utils/logger.js"); /* harmony import */ var _utils_browser_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/browser.js */ "./src/utils/browser.js"); /* harmony import */ var _media_info_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./media-info.js */ "./src/core/media-info.js"); /* harmony import */ var _demux_flv_demuxer_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../demux/flv-demuxer.js */ "./src/demux/flv-demuxer.js"); /* harmony import */ var _remux_mp4_remuxer_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../remux/mp4-remuxer.js */ "./src/remux/mp4-remuxer.js"); /* harmony import */ var _demux_demux_errors_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../demux/demux-errors.js */ "./src/demux/demux-errors.js"); /* harmony import */ var _io_io_controller_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../io/io-controller.js */ "./src/io/io-controller.js"); /* harmony import */ var _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./transmuxing-events.js */ "./src/core/transmuxing-events.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Transmuxing (IO, Demuxing, Remuxing) controller, with multipart support var TransmuxingController = /** @class */ (function () { function TransmuxingController(mediaDataSource, config) { this.TAG = 'TransmuxingController'; this._emitter = new (events__WEBPACK_IMPORTED_MODULE_0___default())(); this._config = config; // treat single part media as multipart media, which has only one segment if (!mediaDataSource.segments) { mediaDataSource.segments = [{ duration: mediaDataSource.duration, filesize: mediaDataSource.filesize, url: mediaDataSource.url }]; } // fill in default IO params if not exists if (typeof mediaDataSource.cors !== 'boolean') { mediaDataSource.cors = true; } if (typeof mediaDataSource.withCredentials !== 'boolean') { mediaDataSource.withCredentials = false; } this._mediaDataSource = mediaDataSource; this._currentSegmentIndex = 0; var totalDuration = 0; this._mediaDataSource.segments.forEach(function (segment) { // timestampBase for each segment, and calculate total duration segment.timestampBase = totalDuration; totalDuration += segment.duration; // params needed by IOController segment.cors = mediaDataSource.cors; segment.withCredentials = mediaDataSource.withCredentials; // referrer policy control, if exist if (config.referrerPolicy) { segment.referrerPolicy = config.referrerPolicy; } }); if (!isNaN(totalDuration) && this._mediaDataSource.duration !== totalDuration) { this._mediaDataSource.duration = totalDuration; } this._mediaInfo = null; this._demuxer = null; this._remuxer = null; this._ioctl = null; this._pendingSeekTime = null; this._pendingResolveSeekPoint = null; this._statisticsReporter = null; } TransmuxingController.prototype.destroy = function () { this._mediaInfo = null; this._mediaDataSource = null; if (this._statisticsReporter) { this._disableStatisticsReporter(); } if (this._ioctl) { this._ioctl.destroy(); this._ioctl = null; } if (this._demuxer) { this._demuxer.destroy(); this._demuxer = null; } if (this._remuxer) { this._remuxer.destroy(); this._remuxer = null; } this._emitter.removeAllListeners(); this._emitter = null; }; TransmuxingController.prototype.on = function (event, listener) { this._emitter.addListener(event, listener); }; TransmuxingController.prototype.off = function (event, listener) { this._emitter.removeListener(event, listener); }; TransmuxingController.prototype.start = function () { this._loadSegment(0); this._enableStatisticsReporter(); }; TransmuxingController.prototype._loadSegment = function (segmentIndex, optionalFrom) { this._currentSegmentIndex = segmentIndex; var dataSource = this._mediaDataSource.segments[segmentIndex]; var ioctl = this._ioctl = new _io_io_controller_js__WEBPACK_IMPORTED_MODULE_7__.default(dataSource, this._config, segmentIndex); ioctl.onError = this._onIOException.bind(this); ioctl.onSeeked = this._onIOSeeked.bind(this); ioctl.onComplete = this._onIOComplete.bind(this); ioctl.onRedirect = this._onIORedirect.bind(this); ioctl.onRecoveredEarlyEof = this._onIORecoveredEarlyEof.bind(this); if (optionalFrom) { this._demuxer.bindDataSource(this._ioctl); } else { ioctl.onDataArrival = this._onInitChunkArrival.bind(this); } ioctl.open(optionalFrom); }; TransmuxingController.prototype.stop = function () { this._internalAbort(); this._disableStatisticsReporter(); }; TransmuxingController.prototype._internalAbort = function () { if (this._ioctl) { this._ioctl.destroy(); this._ioctl = null; } }; TransmuxingController.prototype.pause = function () { if (this._ioctl && this._ioctl.isWorking()) { this._ioctl.pause(); this._disableStatisticsReporter(); } }; TransmuxingController.prototype.resume = function () { if (this._ioctl && this._ioctl.isPaused()) { this._ioctl.resume(); this._enableStatisticsReporter(); } }; TransmuxingController.prototype.seek = function (milliseconds) { if (this._mediaInfo == null || !this._mediaInfo.isSeekable()) { return; } var targetSegmentIndex = this._searchSegmentIndexContains(milliseconds); if (targetSegmentIndex === this._currentSegmentIndex) { // intra-segment seeking var segmentInfo = this._mediaInfo.segments[targetSegmentIndex]; if (segmentInfo == undefined) { // current segment loading started, but mediainfo hasn't received yet // wait for the metadata loaded, then seek to expected position this._pendingSeekTime = milliseconds; } else { var keyframe = segmentInfo.getNearestKeyframe(milliseconds); this._remuxer.seek(keyframe.milliseconds); this._ioctl.seek(keyframe.fileposition); // Will be resolved in _onRemuxerMediaSegmentArrival() this._pendingResolveSeekPoint = keyframe.milliseconds; } } else { // cross-segment seeking var targetSegmentInfo = this._mediaInfo.segments[targetSegmentIndex]; if (targetSegmentInfo == undefined) { // target segment hasn't been loaded. We need metadata then seek to expected time this._pendingSeekTime = milliseconds; this._internalAbort(); this._remuxer.seek(); this._remuxer.insertDiscontinuity(); this._loadSegment(targetSegmentIndex); // Here we wait for the metadata loaded, then seek to expected position } else { // We have target segment's metadata, direct seek to target position var keyframe = targetSegmentInfo.getNearestKeyframe(milliseconds); this._internalAbort(); this._remuxer.seek(milliseconds); this._remuxer.insertDiscontinuity(); this._demuxer.resetMediaInfo(); this._demuxer.timestampBase = this._mediaDataSource.segments[targetSegmentIndex].timestampBase; this._loadSegment(targetSegmentIndex, keyframe.fileposition); this._pendingResolveSeekPoint = keyframe.milliseconds; this._reportSegmentMediaInfo(targetSegmentIndex); } } this._enableStatisticsReporter(); }; TransmuxingController.prototype._searchSegmentIndexContains = function (milliseconds) { var segments = this._mediaDataSource.segments; var idx = segments.length - 1; for (var i = 0; i < segments.length; i++) { if (milliseconds < segments[i].timestampBase) { idx = i - 1; break; } } return idx; }; TransmuxingController.prototype._onInitChunkArrival = function (data, byteStart) { var _this = this; var probeData = null; var consumed = 0; if (byteStart > 0) { // IOController seeked immediately after opened, byteStart > 0 callback may received this._demuxer.bindDataSource(this._ioctl); this._demuxer.timestampBase = this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase; consumed = this._demuxer.parseChunks(data, byteStart); } else if ((probeData = _demux_flv_demuxer_js__WEBPACK_IMPORTED_MODULE_4__.default.probe(data)).match) { // Always create new FLVDemuxer this._demuxer = new _demux_flv_demuxer_js__WEBPACK_IMPORTED_MODULE_4__.default(probeData, this._config); if (!this._remuxer) { this._remuxer = new _remux_mp4_remuxer_js__WEBPACK_IMPORTED_MODULE_5__.default(this._config); } var mds = this._mediaDataSource; if (mds.duration != undefined && !isNaN(mds.duration)) { this._demuxer.overridedDuration = mds.duration; } if (typeof mds.hasAudio === 'boolean') { this._demuxer.overridedHasAudio = mds.hasAudio; } if (typeof mds.hasVideo === 'boolean') { this._demuxer.overridedHasVideo = mds.hasVideo; } this._demuxer.timestampBase = mds.segments[this._currentSegmentIndex].timestampBase; this._demuxer.onError = this._onDemuxException.bind(this); this._demuxer.onMediaInfo = this._onMediaInfo.bind(this); this._demuxer.onMetaDataArrived = this._onMetaDataArrived.bind(this); this._demuxer.onScriptDataArrived = this._onScriptDataArrived.bind(this); this._remuxer.bindDataSource(this._demuxer .bindDataSource(this._ioctl)); this._remuxer.onInitSegment = this._onRemuxerInitSegmentArrival.bind(this); this._remuxer.onMediaSegment = this._onRemuxerMediaSegmentArrival.bind(this); consumed = this._demuxer.parseChunks(data, byteStart); } else { probeData = null; _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.e(this.TAG, 'Non-FLV, Unsupported media type!'); Promise.resolve().then(function () { _this._internalAbort(); }); this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_8__.default.DEMUX_ERROR, _demux_demux_errors_js__WEBPACK_IMPORTED_MODULE_6__.default.FORMAT_UNSUPPORTED, 'Non-FLV, Unsupported media type'); consumed = 0; } return consumed; }; TransmuxingController.prototype._onMediaInfo = function (mediaInfo) { var _this = this; if (this._mediaInfo == null) { // Store first segment's mediainfo as global mediaInfo this._mediaInfo = Object.assign({}, mediaInfo); this._mediaInfo.keyframesIndex = null; this._mediaInfo.segments = []; this._mediaInfo.segmentCount = this._mediaDataSource.segments.length; Object.setPrototypeOf(this._mediaInfo, _media_info_js__WEBPACK_IMPORTED_MODULE_3__.default.prototype); } var segmentInfo = Object.assign({}, mediaInfo); Object.setPrototypeOf(segmentInfo, _media_info_js__WEBPACK_IMPORTED_MODULE_3__.default.prototype); this._mediaInfo.segments[this._currentSegmentIndex] = segmentInfo; // notify mediaInfo update this._reportSegmentMediaInfo(this._currentSegmentIndex); if (this._pendingSeekTime != null) { Promise.resolve().then(function () { var target = _this._pendingSeekTime; _this._pendingSeekTime = null; _this.seek(target); }); } }; TransmuxingController.prototype._onMetaDataArrived = function (metadata) { this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_8__.default.METADATA_ARRIVED, metadata); }; TransmuxingController.prototype._onScriptDataArrived = function (data) { this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_8__.default.SCRIPTDATA_ARRIVED, data); }; TransmuxingController.prototype._onIOSeeked = function () { this._remuxer.insertDiscontinuity(); }; TransmuxingController.prototype._onIOComplete = function (extraData) { var segmentIndex = extraData; var nextSegmentIndex = segmentIndex + 1; if (nextSegmentIndex < this._mediaDataSource.segments.length) { this._internalAbort(); this._remuxer.flushStashedSamples(); this._loadSegment(nextSegmentIndex); } else { this._remuxer.flushStashedSamples(); this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_8__.default.LOADING_COMPLETE); this._disableStatisticsReporter(); } }; TransmuxingController.prototype._onIORedirect = function (redirectedURL) { var segmentIndex = this._ioctl.extraData; this._mediaDataSource.segments[segmentIndex].redirectedURL = redirectedURL; }; TransmuxingController.prototype._onIORecoveredEarlyEof = function () { this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_8__.default.RECOVERED_EARLY_EOF); }; TransmuxingController.prototype._onIOException = function (type, info) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.e(this.TAG, "IOException: type = " + type + ", code = " + info.code + ", msg = " + info.msg); this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_8__.default.IO_ERROR, type, info); this._disableStatisticsReporter(); }; TransmuxingController.prototype._onDemuxException = function (type, info) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.e(this.TAG, "DemuxException: type = " + type + ", info = " + info); this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_8__.default.DEMUX_ERROR, type, info); }; TransmuxingController.prototype._onRemuxerInitSegmentArrival = function (type, initSegment) { this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_8__.default.INIT_SEGMENT, type, initSegment); }; TransmuxingController.prototype._onRemuxerMediaSegmentArrival = function (type, mediaSegment) { if (this._pendingSeekTime != null) { // Media segments after new-segment cross-seeking should be dropped. return; } this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_8__.default.MEDIA_SEGMENT, type, mediaSegment); // Resolve pending seekPoint if (this._pendingResolveSeekPoint != null && type === 'video') { var syncPoints = mediaSegment.info.syncPoints; var seekpoint = this._pendingResolveSeekPoint; this._pendingResolveSeekPoint = null; // Safari: Pass PTS for recommend_seekpoint if (_utils_browser_js__WEBPACK_IMPORTED_MODULE_2__.default.safari && syncPoints.length > 0 && syncPoints[0].originalDts === seekpoint) { seekpoint = syncPoints[0].pts; } // else: use original DTS (keyframe.milliseconds) this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_8__.default.RECOMMEND_SEEKPOINT, seekpoint); } }; TransmuxingController.prototype._enableStatisticsReporter = function () { if (this._statisticsReporter == null) { this._statisticsReporter = self.setInterval(this._reportStatisticsInfo.bind(this), this._config.statisticsInfoReportInterval); } }; TransmuxingController.prototype._disableStatisticsReporter = function () { if (this._statisticsReporter) { self.clearInterval(this._statisticsReporter); this._statisticsReporter = null; } }; TransmuxingController.prototype._reportSegmentMediaInfo = function (segmentIndex) { var segmentInfo = this._mediaInfo.segments[segmentIndex]; var exportInfo = Object.assign({}, segmentInfo); exportInfo.duration = this._mediaInfo.duration; exportInfo.segmentCount = this._mediaInfo.segmentCount; delete exportInfo.segments; delete exportInfo.keyframesIndex; this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_8__.default.MEDIA_INFO, exportInfo); }; TransmuxingController.prototype._reportStatisticsInfo = function () { var info = {}; info.url = this._ioctl.currentURL; info.hasRedirect = this._ioctl.hasRedirect; if (info.hasRedirect) { info.redirectedURL = this._ioctl.currentRedirectedURL; } info.speed = this._ioctl.currentSpeed; info.loaderType = this._ioctl.loaderType; info.currentSegmentIndex = this._currentSegmentIndex; info.totalSegmentCount = this._mediaDataSource.segments.length; this._emitter.emit(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_8__.default.STATISTICS_INFO, info); }; return TransmuxingController; }()); /* harmony default export */ __webpack_exports__["default"] = (TransmuxingController); /***/ }), /***/ "./src/core/transmuxing-events.js": /*!****************************************!*\ !*** ./src/core/transmuxing-events.js ***! \****************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var TransmuxingEvents = { IO_ERROR: 'io_error', DEMUX_ERROR: 'demux_error', INIT_SEGMENT: 'init_segment', MEDIA_SEGMENT: 'media_segment', LOADING_COMPLETE: 'loading_complete', RECOVERED_EARLY_EOF: 'recovered_early_eof', MEDIA_INFO: 'media_info', METADATA_ARRIVED: 'metadata_arrived', SCRIPTDATA_ARRIVED: 'scriptdata_arrived', STATISTICS_INFO: 'statistics_info', RECOMMEND_SEEKPOINT: 'recommend_seekpoint' }; /* harmony default export */ __webpack_exports__["default"] = (TransmuxingEvents); /***/ }), /***/ "./src/core/transmuxing-worker.js": /*!****************************************!*\ !*** ./src/core/transmuxing-worker.js ***! \****************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utils_logging_control_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/logging-control.js */ "./src/utils/logging-control.js"); /* harmony import */ var _utils_polyfill_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/polyfill.js */ "./src/utils/polyfill.js"); /* harmony import */ var _transmuxing_controller_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transmuxing-controller.js */ "./src/core/transmuxing-controller.js"); /* harmony import */ var _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transmuxing-events.js */ "./src/core/transmuxing-events.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* post message to worker: data: { cmd: string param: any } receive message from worker: data: { msg: string, data: any } */ var TransmuxingWorker = function (self) { var TAG = 'TransmuxingWorker'; var controller = null; var logcatListener = onLogcatCallback.bind(this); _utils_polyfill_js__WEBPACK_IMPORTED_MODULE_1__.default.install(); self.addEventListener('message', function (e) { switch (e.data.cmd) { case 'init': controller = new _transmuxing_controller_js__WEBPACK_IMPORTED_MODULE_2__.default(e.data.param[0], e.data.param[1]); controller.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.IO_ERROR, onIOError.bind(this)); controller.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.DEMUX_ERROR, onDemuxError.bind(this)); controller.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.INIT_SEGMENT, onInitSegment.bind(this)); controller.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.MEDIA_SEGMENT, onMediaSegment.bind(this)); controller.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.LOADING_COMPLETE, onLoadingComplete.bind(this)); controller.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.RECOVERED_EARLY_EOF, onRecoveredEarlyEof.bind(this)); controller.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.MEDIA_INFO, onMediaInfo.bind(this)); controller.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.METADATA_ARRIVED, onMetaDataArrived.bind(this)); controller.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.SCRIPTDATA_ARRIVED, onScriptDataArrived.bind(this)); controller.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.STATISTICS_INFO, onStatisticsInfo.bind(this)); controller.on(_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.RECOMMEND_SEEKPOINT, onRecommendSeekpoint.bind(this)); break; case 'destroy': if (controller) { controller.destroy(); controller = null; } self.postMessage({ msg: 'destroyed' }); break; case 'start': controller.start(); break; case 'stop': controller.stop(); break; case 'seek': controller.seek(e.data.param); break; case 'pause': controller.pause(); break; case 'resume': controller.resume(); break; case 'logging_config': { var config = e.data.param; _utils_logging_control_js__WEBPACK_IMPORTED_MODULE_0__.default.applyConfig(config); if (config.enableCallback === true) { _utils_logging_control_js__WEBPACK_IMPORTED_MODULE_0__.default.addLogListener(logcatListener); } else { _utils_logging_control_js__WEBPACK_IMPORTED_MODULE_0__.default.removeLogListener(logcatListener); } break; } } }); function onInitSegment(type, initSegment) { var obj = { msg: _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.INIT_SEGMENT, data: { type: type, data: initSegment } }; self.postMessage(obj, [initSegment.data]); // data: ArrayBuffer } function onMediaSegment(type, mediaSegment) { var obj = { msg: _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.MEDIA_SEGMENT, data: { type: type, data: mediaSegment } }; self.postMessage(obj, [mediaSegment.data]); // data: ArrayBuffer } function onLoadingComplete() { var obj = { msg: _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.LOADING_COMPLETE }; self.postMessage(obj); } function onRecoveredEarlyEof() { var obj = { msg: _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.RECOVERED_EARLY_EOF }; self.postMessage(obj); } function onMediaInfo(mediaInfo) { var obj = { msg: _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.MEDIA_INFO, data: mediaInfo }; self.postMessage(obj); } function onMetaDataArrived(metadata) { var obj = { msg: _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.METADATA_ARRIVED, data: metadata }; self.postMessage(obj); } function onScriptDataArrived(data) { var obj = { msg: _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.SCRIPTDATA_ARRIVED, data: data }; self.postMessage(obj); } function onStatisticsInfo(statInfo) { var obj = { msg: _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.STATISTICS_INFO, data: statInfo }; self.postMessage(obj); } function onIOError(type, info) { self.postMessage({ msg: _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.IO_ERROR, data: { type: type, info: info } }); } function onDemuxError(type, info) { self.postMessage({ msg: _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.DEMUX_ERROR, data: { type: type, info: info } }); } function onRecommendSeekpoint(milliseconds) { self.postMessage({ msg: _transmuxing_events_js__WEBPACK_IMPORTED_MODULE_3__.default.RECOMMEND_SEEKPOINT, data: milliseconds }); } function onLogcatCallback(type, str) { self.postMessage({ msg: 'logcat_callback', data: { type: type, logcat: str } }); } }; /* harmony default export */ __webpack_exports__["default"] = (TransmuxingWorker); /***/ }), /***/ "./src/demux/amf-parser.js": /*!*********************************!*\ !*** ./src/demux/amf-parser.js ***! \*********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/logger.js */ "./src/utils/logger.js"); /* harmony import */ var _utils_utf8_conv_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/utf8-conv.js */ "./src/utils/utf8-conv.js"); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var le = (function () { var buf = new ArrayBuffer(2); (new DataView(buf)).setInt16(0, 256, true); // little-endian write return (new Int16Array(buf))[0] === 256; // platform-spec read, if equal then LE })(); var AMF = /** @class */ (function () { function AMF() { } AMF.parseScriptData = function (arrayBuffer, dataOffset, dataSize) { var data = {}; try { var name_1 = AMF.parseValue(arrayBuffer, dataOffset, dataSize); var value = AMF.parseValue(arrayBuffer, dataOffset + name_1.size, dataSize - name_1.size); data[name_1.data] = value.data; } catch (e) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.e('AMF', e.toString()); } return data; }; AMF.parseObject = function (arrayBuffer, dataOffset, dataSize) { if (dataSize < 3) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_2__.IllegalStateException('Data not enough when parse ScriptDataObject'); } var name = AMF.parseString(arrayBuffer, dataOffset, dataSize); var value = AMF.parseValue(arrayBuffer, dataOffset + name.size, dataSize - name.size); var isObjectEnd = value.objectEnd; return { data: { name: name.data, value: value.data }, size: name.size + value.size, objectEnd: isObjectEnd }; }; AMF.parseVariable = function (arrayBuffer, dataOffset, dataSize) { return AMF.parseObject(arrayBuffer, dataOffset, dataSize); }; AMF.parseString = function (arrayBuffer, dataOffset, dataSize) { if (dataSize < 2) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_2__.IllegalStateException('Data not enough when parse String'); } var v = new DataView(arrayBuffer, dataOffset, dataSize); var length = v.getUint16(0, !le); var str; if (length > 0) { str = (0,_utils_utf8_conv_js__WEBPACK_IMPORTED_MODULE_1__.default)(new Uint8Array(arrayBuffer, dataOffset + 2, length)); } else { str = ''; } return { data: str, size: 2 + length }; }; AMF.parseLongString = function (arrayBuffer, dataOffset, dataSize) { if (dataSize < 4) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_2__.IllegalStateException('Data not enough when parse LongString'); } var v = new DataView(arrayBuffer, dataOffset, dataSize); var length = v.getUint32(0, !le); var str; if (length > 0) { str = (0,_utils_utf8_conv_js__WEBPACK_IMPORTED_MODULE_1__.default)(new Uint8Array(arrayBuffer, dataOffset + 4, length)); } else { str = ''; } return { data: str, size: 4 + length }; }; AMF.parseDate = function (arrayBuffer, dataOffset, dataSize) { if (dataSize < 10) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_2__.IllegalStateException('Data size invalid when parse Date'); } var v = new DataView(arrayBuffer, dataOffset, dataSize); var timestamp = v.getFloat64(0, !le); var localTimeOffset = v.getInt16(8, !le); timestamp += localTimeOffset * 60 * 1000; // get UTC time return { data: new Date(timestamp), size: 8 + 2 }; }; AMF.parseValue = function (arrayBuffer, dataOffset, dataSize) { if (dataSize < 1) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_2__.IllegalStateException('Data not enough when parse Value'); } var v = new DataView(arrayBuffer, dataOffset, dataSize); var offset = 1; var type = v.getUint8(0); var value; var objectEnd = false; try { switch (type) { case 0: // Number(Double) type value = v.getFloat64(1, !le); offset += 8; break; case 1: { // Boolean type var b = v.getUint8(1); value = b ? true : false; offset += 1; break; } case 2: { // String type var amfstr = AMF.parseString(arrayBuffer, dataOffset + 1, dataSize - 1); value = amfstr.data; offset += amfstr.size; break; } case 3: { // Object(s) type value = {}; var terminal = 0; // workaround for malformed Objects which has missing ScriptDataObjectEnd if ((v.getUint32(dataSize - 4, !le) & 0x00FFFFFF) === 9) { terminal = 3; } while (offset < dataSize - 4) { // 4 === type(UI8) + ScriptDataObjectEnd(UI24) var amfobj = AMF.parseObject(arrayBuffer, dataOffset + offset, dataSize - offset - terminal); if (amfobj.objectEnd) break; value[amfobj.data.name] = amfobj.data.value; offset += amfobj.size; } if (offset <= dataSize - 3) { var marker = v.getUint32(offset - 1, !le) & 0x00FFFFFF; if (marker === 9) { offset += 3; } } break; } case 8: { // ECMA array type (Mixed array) value = {}; offset += 4; // ECMAArrayLength(UI32) var terminal = 0; // workaround for malformed MixedArrays which has missing ScriptDataObjectEnd if ((v.getUint32(dataSize - 4, !le) & 0x00FFFFFF) === 9) { terminal = 3; } while (offset < dataSize - 8) { // 8 === type(UI8) + ECMAArrayLength(UI32) + ScriptDataVariableEnd(UI24) var amfvar = AMF.parseVariable(arrayBuffer, dataOffset + offset, dataSize - offset - terminal); if (amfvar.objectEnd) break; value[amfvar.data.name] = amfvar.data.value; offset += amfvar.size; } if (offset <= dataSize - 3) { var marker = v.getUint32(offset - 1, !le) & 0x00FFFFFF; if (marker === 9) { offset += 3; } } break; } case 9: // ScriptDataObjectEnd value = undefined; offset = 1; objectEnd = true; break; case 10: { // Strict array type // ScriptDataValue[n]. NOTE: according to video_file_format_spec_v10_1.pdf value = []; var strictArrayLength = v.getUint32(1, !le); offset += 4; for (var i = 0; i < strictArrayLength; i++) { var val = AMF.parseValue(arrayBuffer, dataOffset + offset, dataSize - offset); value.push(val.data); offset += val.size; } break; } case 11: { // Date type var date = AMF.parseDate(arrayBuffer, dataOffset + 1, dataSize - 1); value = date.data; offset += date.size; break; } case 12: { // Long string type var amfLongStr = AMF.parseString(arrayBuffer, dataOffset + 1, dataSize - 1); value = amfLongStr.data; offset += amfLongStr.size; break; } default: // ignore and skip offset = dataSize; _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w('AMF', 'Unsupported AMF value type ' + type); } } catch (e) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.e('AMF', e.toString()); } return { data: value, size: offset, objectEnd: objectEnd }; }; return AMF; }()); /* harmony default export */ __webpack_exports__["default"] = (AMF); /***/ }), /***/ "./src/demux/demux-errors.js": /*!***********************************!*\ !*** ./src/demux/demux-errors.js ***! \***********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var DemuxErrors = { OK: 'OK', FORMAT_ERROR: 'FormatError', FORMAT_UNSUPPORTED: 'FormatUnsupported', CODEC_UNSUPPORTED: 'CodecUnsupported' }; /* harmony default export */ __webpack_exports__["default"] = (DemuxErrors); /***/ }), /***/ "./src/demux/exp-golomb.js": /*!*********************************!*\ !*** ./src/demux/exp-golomb.js ***! \*********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Exponential-Golomb buffer decoder var ExpGolomb = /** @class */ (function () { function ExpGolomb(uint8array) { this.TAG = 'ExpGolomb'; this._buffer = uint8array; this._buffer_index = 0; this._total_bytes = uint8array.byteLength; this._total_bits = uint8array.byteLength * 8; this._current_word = 0; this._current_word_bits_left = 0; } ExpGolomb.prototype.destroy = function () { this._buffer = null; }; ExpGolomb.prototype._fillCurrentWord = function () { var buffer_bytes_left = this._total_bytes - this._buffer_index; if (buffer_bytes_left <= 0) throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_0__.IllegalStateException('ExpGolomb: _fillCurrentWord() but no bytes available'); var bytes_read = Math.min(4, buffer_bytes_left); var word = new Uint8Array(4); word.set(this._buffer.subarray(this._buffer_index, this._buffer_index + bytes_read)); this._current_word = new DataView(word.buffer).getUint32(0, false); this._buffer_index += bytes_read; this._current_word_bits_left = bytes_read * 8; }; ExpGolomb.prototype.readBits = function (bits) { if (bits > 32) throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_0__.InvalidArgumentException('ExpGolomb: readBits() bits exceeded max 32bits!'); if (bits <= this._current_word_bits_left) { var result_1 = this._current_word >>> (32 - bits); this._current_word <<= bits; this._current_word_bits_left -= bits; return result_1; } var result = this._current_word_bits_left ? this._current_word : 0; result = result >>> (32 - this._current_word_bits_left); var bits_need_left = bits - this._current_word_bits_left; this._fillCurrentWord(); var bits_read_next = Math.min(bits_need_left, this._current_word_bits_left); var result2 = this._current_word >>> (32 - bits_read_next); this._current_word <<= bits_read_next; this._current_word_bits_left -= bits_read_next; result = (result << bits_read_next) | result2; return result; }; ExpGolomb.prototype.readBool = function () { return this.readBits(1) === 1; }; ExpGolomb.prototype.readByte = function () { return this.readBits(8); }; ExpGolomb.prototype._skipLeadingZero = function () { var zero_count; for (zero_count = 0; zero_count < this._current_word_bits_left; zero_count++) { if (0 !== (this._current_word & (0x80000000 >>> zero_count))) { this._current_word <<= zero_count; this._current_word_bits_left -= zero_count; return zero_count; } } this._fillCurrentWord(); return zero_count + this._skipLeadingZero(); }; ExpGolomb.prototype.readUEG = function () { var leading_zeros = this._skipLeadingZero(); return this.readBits(leading_zeros + 1) - 1; }; ExpGolomb.prototype.readSEG = function () { var value = this.readUEG(); if (value & 0x01) { return (value + 1) >>> 1; } else { return -1 * (value >>> 1); } }; return ExpGolomb; }()); /* harmony default export */ __webpack_exports__["default"] = (ExpGolomb); /***/ }), /***/ "./src/demux/flv-demuxer.js": /*!**********************************!*\ !*** ./src/demux/flv-demuxer.js ***! \**********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/logger.js */ "./src/utils/logger.js"); /* harmony import */ var _amf_parser_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./amf-parser.js */ "./src/demux/amf-parser.js"); /* harmony import */ var _sps_parser_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sps-parser.js */ "./src/demux/sps-parser.js"); /* harmony import */ var _demux_errors_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./demux-errors.js */ "./src/demux/demux-errors.js"); /* harmony import */ var _core_media_info_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/media-info.js */ "./src/core/media-info.js"); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function Swap16(src) { return (((src >>> 8) & 0xFF) | ((src & 0xFF) << 8)); } function Swap32(src) { return (((src & 0xFF000000) >>> 24) | ((src & 0x00FF0000) >>> 8) | ((src & 0x0000FF00) << 8) | ((src & 0x000000FF) << 24)); } function ReadBig32(array, index) { return ((array[index] << 24) | (array[index + 1] << 16) | (array[index + 2] << 8) | (array[index + 3])); } var FLVDemuxer = /** @class */ (function () { function FLVDemuxer(probeData, config) { this.TAG = 'FLVDemuxer'; this._config = config; this._onError = null; this._onMediaInfo = null; this._onMetaDataArrived = null; this._onScriptDataArrived = null; this._onTrackMetadata = null; this._onDataAvailable = null; this._dataOffset = probeData.dataOffset; this._firstParse = true; this._dispatch = false; this._hasAudio = probeData.hasAudioTrack; this._hasVideo = probeData.hasVideoTrack; this._hasAudioFlagOverrided = false; this._hasVideoFlagOverrided = false; this._audioInitialMetadataDispatched = false; this._videoInitialMetadataDispatched = false; this._mediaInfo = new _core_media_info_js__WEBPACK_IMPORTED_MODULE_4__.default(); this._mediaInfo.hasAudio = this._hasAudio; this._mediaInfo.hasVideo = this._hasVideo; this._metadata = null; this._audioMetadata = null; this._videoMetadata = null; this._naluLengthSize = 4; this._timestampBase = 0; // int32, in milliseconds this._timescale = 1000; this._duration = 0; // int32, in milliseconds this._durationOverrided = false; this._referenceFrameRate = { fixed: true, fps: 23.976, fps_num: 23976, fps_den: 1000 }; this._flvSoundRateTable = [5500, 11025, 22050, 44100, 48000]; this._mpegSamplingRates = [ 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350 ]; this._mpegAudioV10SampleRateTable = [44100, 48000, 32000, 0]; this._mpegAudioV20SampleRateTable = [22050, 24000, 16000, 0]; this._mpegAudioV25SampleRateTable = [11025, 12000, 8000, 0]; this._mpegAudioL1BitRateTable = [0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, -1]; this._mpegAudioL2BitRateTable = [0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, -1]; this._mpegAudioL3BitRateTable = [0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, -1]; this._videoTrack = { type: 'video', id: 1, sequenceNumber: 0, samples: [], length: 0 }; this._audioTrack = { type: 'audio', id: 2, sequenceNumber: 0, samples: [], length: 0 }; this._littleEndian = (function () { var buf = new ArrayBuffer(2); (new DataView(buf)).setInt16(0, 256, true); // little-endian write return (new Int16Array(buf))[0] === 256; // platform-spec read, if equal then LE })(); } FLVDemuxer.prototype.destroy = function () { this._mediaInfo = null; this._metadata = null; this._audioMetadata = null; this._videoMetadata = null; this._videoTrack = null; this._audioTrack = null; this._onError = null; this._onMediaInfo = null; this._onMetaDataArrived = null; this._onScriptDataArrived = null; this._onTrackMetadata = null; this._onDataAvailable = null; }; FLVDemuxer.probe = function (buffer) { var data = new Uint8Array(buffer); var mismatch = { match: false }; if (data[0] !== 0x46 || data[1] !== 0x4C || data[2] !== 0x56 || data[3] !== 0x01) { return mismatch; } var hasAudio = ((data[4] & 4) >>> 2) !== 0; var hasVideo = (data[4] & 1) !== 0; var offset = ReadBig32(data, 5); if (offset < 9) { return mismatch; } return { match: true, consumed: offset, dataOffset: offset, hasAudioTrack: hasAudio, hasVideoTrack: hasVideo }; }; FLVDemuxer.prototype.bindDataSource = function (loader) { loader.onDataArrival = this.parseChunks.bind(this); return this; }; Object.defineProperty(FLVDemuxer.prototype, "onTrackMetadata", { // prototype: function(type: string, metadata: any): void get: function () { return this._onTrackMetadata; }, set: function (callback) { this._onTrackMetadata = callback; }, enumerable: false, configurable: true }); Object.defineProperty(FLVDemuxer.prototype, "onMediaInfo", { // prototype: function(mediaInfo: MediaInfo): void get: function () { return this._onMediaInfo; }, set: function (callback) { this._onMediaInfo = callback; }, enumerable: false, configurable: true }); Object.defineProperty(FLVDemuxer.prototype, "onMetaDataArrived", { get: function () { return this._onMetaDataArrived; }, set: function (callback) { this._onMetaDataArrived = callback; }, enumerable: false, configurable: true }); Object.defineProperty(FLVDemuxer.prototype, "onScriptDataArrived", { get: function () { return this._onScriptDataArrived; }, set: function (callback) { this._onScriptDataArrived = callback; }, enumerable: false, configurable: true }); Object.defineProperty(FLVDemuxer.prototype, "onError", { // prototype: function(type: number, info: string): void get: function () { return this._onError; }, set: function (callback) { this._onError = callback; }, enumerable: false, configurable: true }); Object.defineProperty(FLVDemuxer.prototype, "onDataAvailable", { // prototype: function(videoTrack: any, audioTrack: any): void get: function () { return this._onDataAvailable; }, set: function (callback) { this._onDataAvailable = callback; }, enumerable: false, configurable: true }); Object.defineProperty(FLVDemuxer.prototype, "timestampBase", { // timestamp base for output samples, must be in milliseconds get: function () { return this._timestampBase; }, set: function (base) { this._timestampBase = base; }, enumerable: false, configurable: true }); Object.defineProperty(FLVDemuxer.prototype, "overridedDuration", { get: function () { return this._duration; }, // Force-override media duration. Must be in milliseconds, int32 set: function (duration) { this._durationOverrided = true; this._duration = duration; this._mediaInfo.duration = duration; }, enumerable: false, configurable: true }); Object.defineProperty(FLVDemuxer.prototype, "overridedHasAudio", { // Force-override audio track present flag, boolean set: function (hasAudio) { this._hasAudioFlagOverrided = true; this._hasAudio = hasAudio; this._mediaInfo.hasAudio = hasAudio; }, enumerable: false, configurable: true }); Object.defineProperty(FLVDemuxer.prototype, "overridedHasVideo", { // Force-override video track present flag, boolean set: function (hasVideo) { this._hasVideoFlagOverrided = true; this._hasVideo = hasVideo; this._mediaInfo.hasVideo = hasVideo; }, enumerable: false, configurable: true }); FLVDemuxer.prototype.resetMediaInfo = function () { this._mediaInfo = new _core_media_info_js__WEBPACK_IMPORTED_MODULE_4__.default(); }; FLVDemuxer.prototype._isInitialMetadataDispatched = function () { if (this._hasAudio && this._hasVideo) { // both audio & video return this._audioInitialMetadataDispatched && this._videoInitialMetadataDispatched; } if (this._hasAudio && !this._hasVideo) { // audio only return this._audioInitialMetadataDispatched; } if (!this._hasAudio && this._hasVideo) { // video only return this._videoInitialMetadataDispatched; } return false; }; // function parseChunks(chunk: ArrayBuffer, byteStart: number): number; FLVDemuxer.prototype.parseChunks = function (chunk, byteStart) { if (!this._onError || !this._onMediaInfo || !this._onTrackMetadata || !this._onDataAvailable) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_5__.IllegalStateException('Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified'); } var offset = 0; var le = this._littleEndian; if (byteStart === 0) { // buffer with FLV header if (chunk.byteLength > 13) { var probeData = FLVDemuxer.probe(chunk); offset = probeData.dataOffset; } else { return 0; } } if (this._firstParse) { // handle PreviousTagSize0 before Tag1 this._firstParse = false; if (byteStart + offset !== this._dataOffset) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'First time parsing but chunk byteStart invalid!'); } var v = new DataView(chunk, offset); var prevTagSize0 = v.getUint32(0, !le); if (prevTagSize0 !== 0) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'PrevTagSize0 !== 0 !!!'); } offset += 4; } while (offset < chunk.byteLength) { this._dispatch = true; var v = new DataView(chunk, offset); if (offset + 11 + 4 > chunk.byteLength) { // data not enough for parsing an flv tag break; } var tagType = v.getUint8(0); var dataSize = v.getUint32(0, !le) & 0x00FFFFFF; if (offset + 11 + dataSize + 4 > chunk.byteLength) { // data not enough for parsing actual data body break; } if (tagType !== 8 && tagType !== 9 && tagType !== 18) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, "Unsupported tag type " + tagType + ", skipped"); // consume the whole tag (skip it) offset += 11 + dataSize + 4; continue; } var ts2 = v.getUint8(4); var ts1 = v.getUint8(5); var ts0 = v.getUint8(6); var ts3 = v.getUint8(7); var timestamp = ts0 | (ts1 << 8) | (ts2 << 16) | (ts3 << 24); var streamId = v.getUint32(7, !le) & 0x00FFFFFF; if (streamId !== 0) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Meet tag which has StreamID != 0!'); } var dataOffset = offset + 11; switch (tagType) { case 8: // Audio this._parseAudioData(chunk, dataOffset, dataSize, timestamp); break; case 9: // Video this._parseVideoData(chunk, dataOffset, dataSize, timestamp, byteStart + offset); break; case 18: // ScriptDataObject this._parseScriptData(chunk, dataOffset, dataSize); break; } var prevTagSize = v.getUint32(11 + dataSize, !le); if (prevTagSize !== 11 + dataSize) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, "Invalid PrevTagSize " + prevTagSize); } offset += 11 + dataSize + 4; // tagBody + dataSize + prevTagSize } // dispatch parsed frames to consumer (typically, the remuxer) if (this._isInitialMetadataDispatched()) { if (this._dispatch && (this._audioTrack.length || this._videoTrack.length)) { this._onDataAvailable(this._audioTrack, this._videoTrack); } } return offset; // consumed bytes, just equals latest offset index }; FLVDemuxer.prototype._parseScriptData = function (arrayBuffer, dataOffset, dataSize) { var scriptData = _amf_parser_js__WEBPACK_IMPORTED_MODULE_1__.default.parseScriptData(arrayBuffer, dataOffset, dataSize); if (scriptData.hasOwnProperty('onMetaData')) { if (scriptData.onMetaData == null || typeof scriptData.onMetaData !== 'object') { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Invalid onMetaData structure!'); return; } if (this._metadata) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Found another onMetaData tag!'); } this._metadata = scriptData; var onMetaData = this._metadata.onMetaData; if (this._onMetaDataArrived) { this._onMetaDataArrived(Object.assign({}, onMetaData)); } if (typeof onMetaData.hasAudio === 'boolean') { // hasAudio if (this._hasAudioFlagOverrided === false) { this._hasAudio = onMetaData.hasAudio; this._mediaInfo.hasAudio = this._hasAudio; } } if (typeof onMetaData.hasVideo === 'boolean') { // hasVideo if (this._hasVideoFlagOverrided === false) { this._hasVideo = onMetaData.hasVideo; this._mediaInfo.hasVideo = this._hasVideo; } } if (typeof onMetaData.audiodatarate === 'number') { // audiodatarate this._mediaInfo.audioDataRate = onMetaData.audiodatarate; } if (typeof onMetaData.videodatarate === 'number') { // videodatarate this._mediaInfo.videoDataRate = onMetaData.videodatarate; } if (typeof onMetaData.width === 'number') { // width this._mediaInfo.width = onMetaData.width; } if (typeof onMetaData.height === 'number') { // height this._mediaInfo.height = onMetaData.height; } if (typeof onMetaData.duration === 'number') { // duration if (!this._durationOverrided) { var duration = Math.floor(onMetaData.duration * this._timescale); this._duration = duration; this._mediaInfo.duration = duration; } } else { this._mediaInfo.duration = 0; } if (typeof onMetaData.framerate === 'number') { // framerate var fps_num = Math.floor(onMetaData.framerate * 1000); if (fps_num > 0) { var fps = fps_num / 1000; this._referenceFrameRate.fixed = true; this._referenceFrameRate.fps = fps; this._referenceFrameRate.fps_num = fps_num; this._referenceFrameRate.fps_den = 1000; this._mediaInfo.fps = fps; } } if (typeof onMetaData.keyframes === 'object') { // keyframes this._mediaInfo.hasKeyframesIndex = true; var keyframes = onMetaData.keyframes; this._mediaInfo.keyframesIndex = this._parseKeyframesIndex(keyframes); onMetaData.keyframes = null; // keyframes has been extracted, remove it } else { this._mediaInfo.hasKeyframesIndex = false; } this._dispatch = false; this._mediaInfo.metadata = onMetaData; _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.v(this.TAG, 'Parsed onMetaData'); if (this._mediaInfo.isComplete()) { this._onMediaInfo(this._mediaInfo); } } if (Object.keys(scriptData).length > 0) { if (this._onScriptDataArrived) { this._onScriptDataArrived(Object.assign({}, scriptData)); } } }; FLVDemuxer.prototype._parseKeyframesIndex = function (keyframes) { var times = []; var filepositions = []; // ignore first keyframe which is actually AVC Sequence Header (AVCDecoderConfigurationRecord) for (var i = 1; i < keyframes.times.length; i++) { var time = this._timestampBase + Math.floor(keyframes.times[i] * 1000); times.push(time); filepositions.push(keyframes.filepositions[i]); } return { times: times, filepositions: filepositions }; }; FLVDemuxer.prototype._parseAudioData = function (arrayBuffer, dataOffset, dataSize, tagTimestamp) { if (dataSize <= 1) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Flv: Invalid audio packet, missing SoundData payload!'); return; } if (this._hasAudioFlagOverrided === true && this._hasAudio === false) { // If hasAudio: false indicated explicitly in MediaDataSource, // Ignore all the audio packets return; } var le = this._littleEndian; var v = new DataView(arrayBuffer, dataOffset, dataSize); var soundSpec = v.getUint8(0); var soundFormat = soundSpec >>> 4; if (soundFormat !== 2 && soundFormat !== 10) { // MP3 or AAC this._onError(_demux_errors_js__WEBPACK_IMPORTED_MODULE_3__.default.CODEC_UNSUPPORTED, 'Flv: Unsupported audio codec idx: ' + soundFormat); return; } var soundRate = 0; var soundRateIndex = (soundSpec & 12) >>> 2; if (soundRateIndex >= 0 && soundRateIndex <= 4) { soundRate = this._flvSoundRateTable[soundRateIndex]; } else { this._onError(_demux_errors_js__WEBPACK_IMPORTED_MODULE_3__.default.FORMAT_ERROR, 'Flv: Invalid audio sample rate idx: ' + soundRateIndex); return; } var soundSize = (soundSpec & 2) >>> 1; // unused var soundType = (soundSpec & 1); var meta = this._audioMetadata; var track = this._audioTrack; if (!meta) { if (this._hasAudio === false && this._hasAudioFlagOverrided === false) { this._hasAudio = true; this._mediaInfo.hasAudio = true; } // initial metadata meta = this._audioMetadata = {}; meta.type = 'audio'; meta.id = track.id; meta.timescale = this._timescale; meta.duration = this._duration; meta.audioSampleRate = soundRate; meta.channelCount = (soundType === 0 ? 1 : 2); } if (soundFormat === 10) { // AAC var aacData = this._parseAACAudioData(arrayBuffer, dataOffset + 1, dataSize - 1); if (aacData == undefined) { return; } if (aacData.packetType === 0) { // AAC sequence header (AudioSpecificConfig) if (meta.config) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Found another AudioSpecificConfig!'); } var misc = aacData.data; meta.audioSampleRate = misc.samplingRate; meta.channelCount = misc.channelCount; meta.codec = misc.codec; meta.originalCodec = misc.originalCodec; meta.config = misc.config; // The decode result of an aac sample is 1024 PCM samples meta.refSampleDuration = 1024 / meta.audioSampleRate * meta.timescale; _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.v(this.TAG, 'Parsed AudioSpecificConfig'); if (this._isInitialMetadataDispatched()) { // Non-initial metadata, force dispatch (or flush) parsed frames to remuxer if (this._dispatch && (this._audioTrack.length || this._videoTrack.length)) { this._onDataAvailable(this._audioTrack, this._videoTrack); } } else { this._audioInitialMetadataDispatched = true; } // then notify new metadata this._dispatch = false; this._onTrackMetadata('audio', meta); var mi = this._mediaInfo; mi.audioCodec = meta.originalCodec; mi.audioSampleRate = meta.audioSampleRate; mi.audioChannelCount = meta.channelCount; if (mi.hasVideo) { if (mi.videoCodec != null) { mi.mimeType = 'video/x-flv; codecs="' + mi.videoCodec + ',' + mi.audioCodec + '"'; } } else { mi.mimeType = 'video/x-flv; codecs="' + mi.audioCodec + '"'; } if (mi.isComplete()) { this._onMediaInfo(mi); } } else if (aacData.packetType === 1) { // AAC raw frame data var dts = this._timestampBase + tagTimestamp; var aacSample = { unit: aacData.data, length: aacData.data.byteLength, dts: dts, pts: dts }; track.samples.push(aacSample); track.length += aacData.data.length; } else { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.e(this.TAG, "Flv: Unsupported AAC data type " + aacData.packetType); } } else if (soundFormat === 2) { // MP3 if (!meta.codec) { // We need metadata for mp3 audio track, extract info from frame header var misc = this._parseMP3AudioData(arrayBuffer, dataOffset + 1, dataSize - 1, true); if (misc == undefined) { return; } meta.audioSampleRate = misc.samplingRate; meta.channelCount = misc.channelCount; meta.codec = misc.codec; meta.originalCodec = misc.originalCodec; // The decode result of an mp3 sample is 1152 PCM samples meta.refSampleDuration = 1152 / meta.audioSampleRate * meta.timescale; _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.v(this.TAG, 'Parsed MPEG Audio Frame Header'); this._audioInitialMetadataDispatched = true; this._onTrackMetadata('audio', meta); var mi = this._mediaInfo; mi.audioCodec = meta.codec; mi.audioSampleRate = meta.audioSampleRate; mi.audioChannelCount = meta.channelCount; mi.audioDataRate = misc.bitRate; if (mi.hasVideo) { if (mi.videoCodec != null) { mi.mimeType = 'video/x-flv; codecs="' + mi.videoCodec + ',' + mi.audioCodec + '"'; } } else { mi.mimeType = 'video/x-flv; codecs="' + mi.audioCodec + '"'; } if (mi.isComplete()) { this._onMediaInfo(mi); } } // This packet is always a valid audio packet, extract it var data = this._parseMP3AudioData(arrayBuffer, dataOffset + 1, dataSize - 1, false); if (data == undefined) { return; } var dts = this._timestampBase + tagTimestamp; var mp3Sample = { unit: data, length: data.byteLength, dts: dts, pts: dts }; track.samples.push(mp3Sample); track.length += data.length; } }; FLVDemuxer.prototype._parseAACAudioData = function (arrayBuffer, dataOffset, dataSize) { if (dataSize <= 1) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Flv: Invalid AAC packet, missing AACPacketType or/and Data!'); return; } var result = {}; var array = new Uint8Array(arrayBuffer, dataOffset, dataSize); result.packetType = array[0]; if (array[0] === 0) { result.data = this._parseAACAudioSpecificConfig(arrayBuffer, dataOffset + 1, dataSize - 1); } else { result.data = array.subarray(1); } return result; }; FLVDemuxer.prototype._parseAACAudioSpecificConfig = function (arrayBuffer, dataOffset, dataSize) { var array = new Uint8Array(arrayBuffer, dataOffset, dataSize); var config = null; /* Audio Object Type: 0: Null 1: AAC Main 2: AAC LC 3: AAC SSR (Scalable Sample Rate) 4: AAC LTP (Long Term Prediction) 5: HE-AAC / SBR (Spectral Band Replication) 6: AAC Scalable */ var audioObjectType = 0; var originalAudioObjectType = 0; var audioExtensionObjectType = null; var samplingIndex = 0; var extensionSamplingIndex = null; // 5 bits audioObjectType = originalAudioObjectType = array[0] >>> 3; // 4 bits samplingIndex = ((array[0] & 0x07) << 1) | (array[1] >>> 7); if (samplingIndex < 0 || samplingIndex >= this._mpegSamplingRates.length) { this._onError(_demux_errors_js__WEBPACK_IMPORTED_MODULE_3__.default.FORMAT_ERROR, 'Flv: AAC invalid sampling frequency index!'); return; } var samplingFrequence = this._mpegSamplingRates[samplingIndex]; // 4 bits var channelConfig = (array[1] & 0x78) >>> 3; if (channelConfig < 0 || channelConfig >= 8) { this._onError(_demux_errors_js__WEBPACK_IMPORTED_MODULE_3__.default.FORMAT_ERROR, 'Flv: AAC invalid channel configuration'); return; } if (audioObjectType === 5) { // HE-AAC? // 4 bits extensionSamplingIndex = ((array[1] & 0x07) << 1) | (array[2] >>> 7); // 5 bits audioExtensionObjectType = (array[2] & 0x7C) >>> 2; } // workarounds for various browsers var userAgent = self.navigator.userAgent.toLowerCase(); if (userAgent.indexOf('firefox') !== -1) { // firefox: use SBR (HE-AAC) if freq less than 24kHz if (samplingIndex >= 6) { audioObjectType = 5; config = new Array(4); extensionSamplingIndex = samplingIndex - 3; } else { // use LC-AAC audioObjectType = 2; config = new Array(2); extensionSamplingIndex = samplingIndex; } } else if (userAgent.indexOf('android') !== -1) { // android: always use LC-AAC audioObjectType = 2; config = new Array(2); extensionSamplingIndex = samplingIndex; } else { // for other browsers, e.g. chrome... // Always use HE-AAC to make it easier to switch aac codec profile audioObjectType = 5; extensionSamplingIndex = samplingIndex; config = new Array(4); if (samplingIndex >= 6) { extensionSamplingIndex = samplingIndex - 3; } else if (channelConfig === 1) { // Mono channel audioObjectType = 2; config = new Array(2); extensionSamplingIndex = samplingIndex; } } config[0] = audioObjectType << 3; config[0] |= (samplingIndex & 0x0F) >>> 1; config[1] = (samplingIndex & 0x0F) << 7; config[1] |= (channelConfig & 0x0F) << 3; if (audioObjectType === 5) { config[1] |= ((extensionSamplingIndex & 0x0F) >>> 1); config[2] = (extensionSamplingIndex & 0x01) << 7; // extended audio object type: force to 2 (LC-AAC) config[2] |= (2 << 2); config[3] = 0; } return { config: config, samplingRate: samplingFrequence, channelCount: channelConfig, codec: 'mp4a.40.' + audioObjectType, originalCodec: 'mp4a.40.' + originalAudioObjectType }; }; FLVDemuxer.prototype._parseMP3AudioData = function (arrayBuffer, dataOffset, dataSize, requestHeader) { if (dataSize < 4) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Flv: Invalid MP3 packet, header missing!'); return; } var le = this._littleEndian; var array = new Uint8Array(arrayBuffer, dataOffset, dataSize); var result = null; if (requestHeader) { if (array[0] !== 0xFF) { return; } var ver = (array[1] >>> 3) & 0x03; var layer = (array[1] & 0x06) >> 1; var bitrate_index = (array[2] & 0xF0) >>> 4; var sampling_freq_index = (array[2] & 0x0C) >>> 2; var channel_mode = (array[3] >>> 6) & 0x03; var channel_count = channel_mode !== 3 ? 2 : 1; var sample_rate = 0; var bit_rate = 0; var object_type = 34; // Layer-3, listed in MPEG-4 Audio Object Types var codec = 'mp3'; switch (ver) { case 0: // MPEG 2.5 sample_rate = this._mpegAudioV25SampleRateTable[sampling_freq_index]; break; case 2: // MPEG 2 sample_rate = this._mpegAudioV20SampleRateTable[sampling_freq_index]; break; case 3: // MPEG 1 sample_rate = this._mpegAudioV10SampleRateTable[sampling_freq_index]; break; } switch (layer) { case 1: // Layer 3 object_type = 34; if (bitrate_index < this._mpegAudioL3BitRateTable.length) { bit_rate = this._mpegAudioL3BitRateTable[bitrate_index]; } break; case 2: // Layer 2 object_type = 33; if (bitrate_index < this._mpegAudioL2BitRateTable.length) { bit_rate = this._mpegAudioL2BitRateTable[bitrate_index]; } break; case 3: // Layer 1 object_type = 32; if (bitrate_index < this._mpegAudioL1BitRateTable.length) { bit_rate = this._mpegAudioL1BitRateTable[bitrate_index]; } break; } result = { bitRate: bit_rate, samplingRate: sample_rate, channelCount: channel_count, codec: codec, originalCodec: codec }; } else { result = array; } return result; }; FLVDemuxer.prototype._parseVideoData = function (arrayBuffer, dataOffset, dataSize, tagTimestamp, tagPosition) { if (dataSize <= 1) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Flv: Invalid video packet, missing VideoData payload!'); return; } if (this._hasVideoFlagOverrided === true && this._hasVideo === false) { // If hasVideo: false indicated explicitly in MediaDataSource, // Ignore all the video packets return; } var spec = (new Uint8Array(arrayBuffer, dataOffset, dataSize))[0]; var frameType = (spec & 240) >>> 4; var codecId = spec & 15; if (codecId !== 7) { this._onError(_demux_errors_js__WEBPACK_IMPORTED_MODULE_3__.default.CODEC_UNSUPPORTED, "Flv: Unsupported codec in video frame: " + codecId); return; } this._parseAVCVideoPacket(arrayBuffer, dataOffset + 1, dataSize - 1, tagTimestamp, tagPosition, frameType); }; FLVDemuxer.prototype._parseAVCVideoPacket = function (arrayBuffer, dataOffset, dataSize, tagTimestamp, tagPosition, frameType) { if (dataSize < 4) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime'); return; } var le = this._littleEndian; var v = new DataView(arrayBuffer, dataOffset, dataSize); var packetType = v.getUint8(0); var cts_unsigned = v.getUint32(0, !le) & 0x00FFFFFF; var cts = (cts_unsigned << 8) >> 8; // convert to 24-bit signed int if (packetType === 0) { // AVCDecoderConfigurationRecord this._parseAVCDecoderConfigurationRecord(arrayBuffer, dataOffset + 4, dataSize - 4); } else if (packetType === 1) { // One or more Nalus this._parseAVCVideoData(arrayBuffer, dataOffset + 4, dataSize - 4, tagTimestamp, tagPosition, frameType, cts); } else if (packetType === 2) { // empty, AVC end of sequence } else { this._onError(_demux_errors_js__WEBPACK_IMPORTED_MODULE_3__.default.FORMAT_ERROR, "Flv: Invalid video packet type " + packetType); return; } }; FLVDemuxer.prototype._parseAVCDecoderConfigurationRecord = function (arrayBuffer, dataOffset, dataSize) { if (dataSize < 7) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Flv: Invalid AVCDecoderConfigurationRecord, lack of data!'); return; } var meta = this._videoMetadata; var track = this._videoTrack; var le = this._littleEndian; var v = new DataView(arrayBuffer, dataOffset, dataSize); if (!meta) { if (this._hasVideo === false && this._hasVideoFlagOverrided === false) { this._hasVideo = true; this._mediaInfo.hasVideo = true; } meta = this._videoMetadata = {}; meta.type = 'video'; meta.id = track.id; meta.timescale = this._timescale; meta.duration = this._duration; } else { if (typeof meta.avcc !== 'undefined') { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Found another AVCDecoderConfigurationRecord!'); } } var version = v.getUint8(0); // configurationVersion var avcProfile = v.getUint8(1); // avcProfileIndication var profileCompatibility = v.getUint8(2); // profile_compatibility var avcLevel = v.getUint8(3); // AVCLevelIndication if (version !== 1 || avcProfile === 0) { this._onError(_demux_errors_js__WEBPACK_IMPORTED_MODULE_3__.default.FORMAT_ERROR, 'Flv: Invalid AVCDecoderConfigurationRecord'); return; } this._naluLengthSize = (v.getUint8(4) & 3) + 1; // lengthSizeMinusOne if (this._naluLengthSize !== 3 && this._naluLengthSize !== 4) { // holy shit!!! this._onError(_demux_errors_js__WEBPACK_IMPORTED_MODULE_3__.default.FORMAT_ERROR, "Flv: Strange NaluLengthSizeMinusOne: " + (this._naluLengthSize - 1)); return; } var spsCount = v.getUint8(5) & 31; // numOfSequenceParameterSets if (spsCount === 0) { this._onError(_demux_errors_js__WEBPACK_IMPORTED_MODULE_3__.default.FORMAT_ERROR, 'Flv: Invalid AVCDecoderConfigurationRecord: No SPS'); return; } else if (spsCount > 1) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, "Flv: Strange AVCDecoderConfigurationRecord: SPS Count = " + spsCount); } var offset = 6; for (var i = 0; i < spsCount; i++) { var len = v.getUint16(offset, !le); // sequenceParameterSetLength offset += 2; if (len === 0) { continue; } // Notice: Nalu without startcode header (00 00 00 01) var sps = new Uint8Array(arrayBuffer, dataOffset + offset, len); offset += len; var config = _sps_parser_js__WEBPACK_IMPORTED_MODULE_2__.default.parseSPS(sps); if (i !== 0) { // ignore other sps's config continue; } meta.codecWidth = config.codec_size.width; meta.codecHeight = config.codec_size.height; meta.presentWidth = config.present_size.width; meta.presentHeight = config.present_size.height; meta.profile = config.profile_string; meta.level = config.level_string; meta.bitDepth = config.bit_depth; meta.chromaFormat = config.chroma_format; meta.sarRatio = config.sar_ratio; meta.frameRate = config.frame_rate; if (config.frame_rate.fixed === false || config.frame_rate.fps_num === 0 || config.frame_rate.fps_den === 0) { meta.frameRate = this._referenceFrameRate; } var fps_den = meta.frameRate.fps_den; var fps_num = meta.frameRate.fps_num; meta.refSampleDuration = meta.timescale * (fps_den / fps_num); var codecArray = sps.subarray(1, 4); var codecString = 'avc1.'; for (var j = 0; j < 3; j++) { var h = codecArray[j].toString(16); if (h.length < 2) { h = '0' + h; } codecString += h; } meta.codec = codecString; var mi = this._mediaInfo; mi.width = meta.codecWidth; mi.height = meta.codecHeight; mi.fps = meta.frameRate.fps; mi.profile = meta.profile; mi.level = meta.level; mi.refFrames = config.ref_frames; mi.chromaFormat = config.chroma_format_string; mi.sarNum = meta.sarRatio.width; mi.sarDen = meta.sarRatio.height; mi.videoCodec = codecString; if (mi.hasAudio) { if (mi.audioCodec != null) { mi.mimeType = 'video/x-flv; codecs="' + mi.videoCodec + ',' + mi.audioCodec + '"'; } } else { mi.mimeType = 'video/x-flv; codecs="' + mi.videoCodec + '"'; } if (mi.isComplete()) { this._onMediaInfo(mi); } } var ppsCount = v.getUint8(offset); // numOfPictureParameterSets if (ppsCount === 0) { this._onError(_demux_errors_js__WEBPACK_IMPORTED_MODULE_3__.default.FORMAT_ERROR, 'Flv: Invalid AVCDecoderConfigurationRecord: No PPS'); return; } else if (ppsCount > 1) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, "Flv: Strange AVCDecoderConfigurationRecord: PPS Count = " + ppsCount); } offset++; for (var i = 0; i < ppsCount; i++) { var len = v.getUint16(offset, !le); // pictureParameterSetLength offset += 2; if (len === 0) { continue; } // pps is useless for extracting video information offset += len; } meta.avcc = new Uint8Array(dataSize); meta.avcc.set(new Uint8Array(arrayBuffer, dataOffset, dataSize), 0); _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.v(this.TAG, 'Parsed AVCDecoderConfigurationRecord'); if (this._isInitialMetadataDispatched()) { // flush parsed frames if (this._dispatch && (this._audioTrack.length || this._videoTrack.length)) { this._onDataAvailable(this._audioTrack, this._videoTrack); } } else { this._videoInitialMetadataDispatched = true; } // notify new metadata this._dispatch = false; this._onTrackMetadata('video', meta); }; FLVDemuxer.prototype._parseAVCVideoData = function (arrayBuffer, dataOffset, dataSize, tagTimestamp, tagPosition, frameType, cts) { var le = this._littleEndian; var v = new DataView(arrayBuffer, dataOffset, dataSize); var units = [], length = 0; var offset = 0; var lengthSize = this._naluLengthSize; var dts = this._timestampBase + tagTimestamp; var keyframe = (frameType === 1); // from FLV Frame Type constants while (offset < dataSize) { if (offset + 4 >= dataSize) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, "Malformed Nalu near timestamp " + dts + ", offset = " + offset + ", dataSize = " + dataSize); break; // data not enough for next Nalu } // Nalu with length-header (AVC1) var naluSize = v.getUint32(offset, !le); // Big-Endian read if (lengthSize === 3) { naluSize >>>= 8; } if (naluSize > dataSize - lengthSize) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, "Malformed Nalus near timestamp " + dts + ", NaluSize > DataSize!"); return; } var unitType = v.getUint8(offset + lengthSize) & 0x1F; if (unitType === 5) { // IDR keyframe = true; } var data = new Uint8Array(arrayBuffer, dataOffset + offset, lengthSize + naluSize); var unit = { type: unitType, data: data }; units.push(unit); length += data.byteLength; offset += lengthSize + naluSize; } if (units.length) { var track = this._videoTrack; var avcSample = { units: units, length: length, isKeyframe: keyframe, dts: dts, cts: cts, pts: (dts + cts) }; if (keyframe) { avcSample.fileposition = tagPosition; } track.samples.push(avcSample); track.length += length; } }; return FLVDemuxer; }()); /* harmony default export */ __webpack_exports__["default"] = (FLVDemuxer); /***/ }), /***/ "./src/demux/sps-parser.js": /*!*********************************!*\ !*** ./src/demux/sps-parser.js ***! \*********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _exp_golomb_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exp-golomb.js */ "./src/demux/exp-golomb.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var SPSParser = /** @class */ (function () { function SPSParser() { } SPSParser._ebsp2rbsp = function (uint8array) { var src = uint8array; var src_length = src.byteLength; var dst = new Uint8Array(src_length); var dst_idx = 0; for (var i = 0; i < src_length; i++) { if (i >= 2) { // Unescape: Skip 0x03 after 00 00 if (src[i] === 0x03 && src[i - 1] === 0x00 && src[i - 2] === 0x00) { continue; } } dst[dst_idx] = src[i]; dst_idx++; } return new Uint8Array(dst.buffer, 0, dst_idx); }; SPSParser.parseSPS = function (uint8array) { var rbsp = SPSParser._ebsp2rbsp(uint8array); var gb = new _exp_golomb_js__WEBPACK_IMPORTED_MODULE_0__.default(rbsp); gb.readByte(); var profile_idc = gb.readByte(); // profile_idc gb.readByte(); // constraint_set_flags[5] + reserved_zero[3] var level_idc = gb.readByte(); // level_idc gb.readUEG(); // seq_parameter_set_id var profile_string = SPSParser.getProfileString(profile_idc); var level_string = SPSParser.getLevelString(level_idc); var chroma_format_idc = 1; var chroma_format = 420; var chroma_format_table = [0, 420, 422, 444]; var bit_depth = 8; if (profile_idc === 100 || profile_idc === 110 || profile_idc === 122 || profile_idc === 244 || profile_idc === 44 || profile_idc === 83 || profile_idc === 86 || profile_idc === 118 || profile_idc === 128 || profile_idc === 138 || profile_idc === 144) { chroma_format_idc = gb.readUEG(); if (chroma_format_idc === 3) { gb.readBits(1); // separate_colour_plane_flag } if (chroma_format_idc <= 3) { chroma_format = chroma_format_table[chroma_format_idc]; } bit_depth = gb.readUEG() + 8; // bit_depth_luma_minus8 gb.readUEG(); // bit_depth_chroma_minus8 gb.readBits(1); // qpprime_y_zero_transform_bypass_flag if (gb.readBool()) { // seq_scaling_matrix_present_flag var scaling_list_count = (chroma_format_idc !== 3) ? 8 : 12; for (var i = 0; i < scaling_list_count; i++) { if (gb.readBool()) { // seq_scaling_list_present_flag if (i < 6) { SPSParser._skipScalingList(gb, 16); } else { SPSParser._skipScalingList(gb, 64); } } } } } gb.readUEG(); // log2_max_frame_num_minus4 var pic_order_cnt_type = gb.readUEG(); if (pic_order_cnt_type === 0) { gb.readUEG(); // log2_max_pic_order_cnt_lsb_minus_4 } else if (pic_order_cnt_type === 1) { gb.readBits(1); // delta_pic_order_always_zero_flag gb.readSEG(); // offset_for_non_ref_pic gb.readSEG(); // offset_for_top_to_bottom_field var num_ref_frames_in_pic_order_cnt_cycle = gb.readUEG(); for (var i = 0; i < num_ref_frames_in_pic_order_cnt_cycle; i++) { gb.readSEG(); // offset_for_ref_frame } } var ref_frames = gb.readUEG(); // max_num_ref_frames gb.readBits(1); // gaps_in_frame_num_value_allowed_flag var pic_width_in_mbs_minus1 = gb.readUEG(); var pic_height_in_map_units_minus1 = gb.readUEG(); var frame_mbs_only_flag = gb.readBits(1); if (frame_mbs_only_flag === 0) { gb.readBits(1); // mb_adaptive_frame_field_flag } gb.readBits(1); // direct_8x8_inference_flag var frame_crop_left_offset = 0; var frame_crop_right_offset = 0; var frame_crop_top_offset = 0; var frame_crop_bottom_offset = 0; var frame_cropping_flag = gb.readBool(); if (frame_cropping_flag) { frame_crop_left_offset = gb.readUEG(); frame_crop_right_offset = gb.readUEG(); frame_crop_top_offset = gb.readUEG(); frame_crop_bottom_offset = gb.readUEG(); } var sar_width = 1, sar_height = 1; var fps = 0, fps_fixed = true, fps_num = 0, fps_den = 0; var vui_parameters_present_flag = gb.readBool(); if (vui_parameters_present_flag) { if (gb.readBool()) { // aspect_ratio_info_present_flag var aspect_ratio_idc = gb.readByte(); var sar_w_table = [1, 12, 10, 16, 40, 24, 20, 32, 80, 18, 15, 64, 160, 4, 3, 2]; var sar_h_table = [1, 11, 11, 11, 33, 11, 11, 11, 33, 11, 11, 33, 99, 3, 2, 1]; if (aspect_ratio_idc > 0 && aspect_ratio_idc < 16) { sar_width = sar_w_table[aspect_ratio_idc - 1]; sar_height = sar_h_table[aspect_ratio_idc - 1]; } else if (aspect_ratio_idc === 255) { sar_width = gb.readByte() << 8 | gb.readByte(); sar_height = gb.readByte() << 8 | gb.readByte(); } } if (gb.readBool()) { // overscan_info_present_flag gb.readBool(); // overscan_appropriate_flag } if (gb.readBool()) { // video_signal_type_present_flag gb.readBits(4); // video_format & video_full_range_flag if (gb.readBool()) { // colour_description_present_flag gb.readBits(24); // colour_primaries & transfer_characteristics & matrix_coefficients } } if (gb.readBool()) { // chroma_loc_info_present_flag gb.readUEG(); // chroma_sample_loc_type_top_field gb.readUEG(); // chroma_sample_loc_type_bottom_field } if (gb.readBool()) { // timing_info_present_flag var num_units_in_tick = gb.readBits(32); var time_scale = gb.readBits(32); fps_fixed = gb.readBool(); // fixed_frame_rate_flag fps_num = time_scale; fps_den = num_units_in_tick * 2; fps = fps_num / fps_den; } } var sarScale = 1; if (sar_width !== 1 || sar_height !== 1) { sarScale = sar_width / sar_height; } var crop_unit_x = 0, crop_unit_y = 0; if (chroma_format_idc === 0) { crop_unit_x = 1; crop_unit_y = 2 - frame_mbs_only_flag; } else { var sub_wc = (chroma_format_idc === 3) ? 1 : 2; var sub_hc = (chroma_format_idc === 1) ? 2 : 1; crop_unit_x = sub_wc; crop_unit_y = sub_hc * (2 - frame_mbs_only_flag); } var codec_width = (pic_width_in_mbs_minus1 + 1) * 16; var codec_height = (2 - frame_mbs_only_flag) * ((pic_height_in_map_units_minus1 + 1) * 16); codec_width -= (frame_crop_left_offset + frame_crop_right_offset) * crop_unit_x; codec_height -= (frame_crop_top_offset + frame_crop_bottom_offset) * crop_unit_y; var present_width = Math.ceil(codec_width * sarScale); gb.destroy(); gb = null; return { profile_string: profile_string, level_string: level_string, bit_depth: bit_depth, ref_frames: ref_frames, chroma_format: chroma_format, chroma_format_string: SPSParser.getChromaFormatString(chroma_format), frame_rate: { fixed: fps_fixed, fps: fps, fps_den: fps_den, fps_num: fps_num }, sar_ratio: { width: sar_width, height: sar_height }, codec_size: { width: codec_width, height: codec_height }, present_size: { width: present_width, height: codec_height } }; }; SPSParser._skipScalingList = function (gb, count) { var last_scale = 8, next_scale = 8; var delta_scale = 0; for (var i = 0; i < count; i++) { if (next_scale !== 0) { delta_scale = gb.readSEG(); next_scale = (last_scale + delta_scale + 256) % 256; } last_scale = (next_scale === 0) ? last_scale : next_scale; } }; SPSParser.getProfileString = function (profile_idc) { switch (profile_idc) { case 66: return 'Baseline'; case 77: return 'Main'; case 88: return 'Extended'; case 100: return 'High'; case 110: return 'High10'; case 122: return 'High422'; case 244: return 'High444'; default: return 'Unknown'; } }; SPSParser.getLevelString = function (level_idc) { return (level_idc / 10).toFixed(1); }; SPSParser.getChromaFormatString = function (chroma) { switch (chroma) { case 420: return '4:2:0'; case 422: return '4:2:2'; case 444: return '4:4:4'; default: return 'Unknown'; } }; return SPSParser; }()); /* harmony default export */ __webpack_exports__["default"] = (SPSParser); /***/ }), /***/ "./src/flv.js": /*!********************!*\ !*** ./src/flv.js ***! \********************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utils_polyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils/polyfill.js */ "./src/utils/polyfill.js"); /* harmony import */ var _core_features_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./core/features.js */ "./src/core/features.js"); /* harmony import */ var _io_loader_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./io/loader.js */ "./src/io/loader.js"); /* harmony import */ var _player_flv_player_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./player/flv-player.js */ "./src/player/flv-player.js"); /* harmony import */ var _player_native_player_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./player/native-player.js */ "./src/player/native-player.js"); /* harmony import */ var _player_player_events_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./player/player-events.js */ "./src/player/player-events.js"); /* harmony import */ var _player_player_errors_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./player/player-errors.js */ "./src/player/player-errors.js"); /* harmony import */ var _utils_logging_control_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/logging-control.js */ "./src/utils/logging-control.js"); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // here are all the interfaces // install polyfills _utils_polyfill_js__WEBPACK_IMPORTED_MODULE_0__.default.install(); // factory method function createPlayer(mediaDataSource, optionalConfig) { var mds = mediaDataSource; if (mds == null || typeof mds !== 'object') { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_8__.InvalidArgumentException('MediaDataSource must be an javascript object!'); } if (!mds.hasOwnProperty('type')) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_8__.InvalidArgumentException('MediaDataSource must has type field to indicate video file type!'); } switch (mds.type) { case 'flv': return new _player_flv_player_js__WEBPACK_IMPORTED_MODULE_3__.default(mds, optionalConfig); default: return new _player_native_player_js__WEBPACK_IMPORTED_MODULE_4__.default(mds, optionalConfig); } } // feature detection function isSupported() { return _core_features_js__WEBPACK_IMPORTED_MODULE_1__.default.supportMSEH264Playback(); } function getFeatureList() { return _core_features_js__WEBPACK_IMPORTED_MODULE_1__.default.getFeatureList(); } // interfaces var flvjs = {}; flvjs.createPlayer = createPlayer; flvjs.isSupported = isSupported; flvjs.getFeatureList = getFeatureList; flvjs.BaseLoader = _io_loader_js__WEBPACK_IMPORTED_MODULE_2__.BaseLoader; flvjs.LoaderStatus = _io_loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderStatus; flvjs.LoaderErrors = _io_loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderErrors; flvjs.Events = _player_player_events_js__WEBPACK_IMPORTED_MODULE_5__.default; flvjs.ErrorTypes = _player_player_errors_js__WEBPACK_IMPORTED_MODULE_6__.ErrorTypes; flvjs.ErrorDetails = _player_player_errors_js__WEBPACK_IMPORTED_MODULE_6__.ErrorDetails; flvjs.FlvPlayer = _player_flv_player_js__WEBPACK_IMPORTED_MODULE_3__.default; flvjs.NativePlayer = _player_native_player_js__WEBPACK_IMPORTED_MODULE_4__.default; flvjs.LoggingControl = _utils_logging_control_js__WEBPACK_IMPORTED_MODULE_7__.default; Object.defineProperty(flvjs, 'version', { enumerable: true, get: function () { // replace by webpack.DefinePlugin return "1.6.2"; } }); /* harmony default export */ __webpack_exports__["default"] = (flvjs); /***/ }), /***/ "./src/index.js": /*!**********************!*\ !*** ./src/index.js ***! \**********************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { // entry/index file // make it compatible with browserify's umd wrapper module.exports = __webpack_require__(/*! ./flv.js */ "./src/flv.js").default; /***/ }), /***/ "./src/io/fetch-stream-loader.js": /*!***************************************!*\ !*** ./src/io/fetch-stream-loader.js ***! \***************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utils_browser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/browser.js */ "./src/utils/browser.js"); /* harmony import */ var _loader_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./loader.js */ "./src/io/loader.js"); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); /* fetch + stream IO loader. Currently working on chrome 43+. * fetch provides a better alternative http API to XMLHttpRequest * * fetch spec https://fetch.spec.whatwg.org/ * stream spec https://streams.spec.whatwg.org/ */ var FetchStreamLoader = /** @class */ (function (_super) { __extends(FetchStreamLoader, _super); function FetchStreamLoader(seekHandler, config) { var _this = _super.call(this, 'fetch-stream-loader') || this; _this.TAG = 'FetchStreamLoader'; _this._seekHandler = seekHandler; _this._config = config; _this._needStash = true; _this._requestAbort = false; _this._contentLength = null; _this._receivedLength = 0; return _this; } FetchStreamLoader.isSupported = function () { try { // fetch + stream is broken on Microsoft Edge. Disable before build 15048. // see https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8196907/ // Fixed in Jan 10, 2017. Build 15048+ removed from blacklist. var isWorkWellEdge = _utils_browser_js__WEBPACK_IMPORTED_MODULE_0__.default.msedge && _utils_browser_js__WEBPACK_IMPORTED_MODULE_0__.default.version.minor >= 15048; var browserNotBlacklisted = _utils_browser_js__WEBPACK_IMPORTED_MODULE_0__.default.msedge ? isWorkWellEdge : true; return (self.fetch && self.ReadableStream && browserNotBlacklisted); } catch (e) { return false; } }; FetchStreamLoader.prototype.destroy = function () { if (this.isWorking()) { this.abort(); } _super.prototype.destroy.call(this); }; FetchStreamLoader.prototype.open = function (dataSource, range) { var _this = this; this._dataSource = dataSource; this._range = range; var sourceURL = dataSource.url; if (this._config.reuseRedirectedURL && dataSource.redirectedURL != undefined) { sourceURL = dataSource.redirectedURL; } var seekConfig = this._seekHandler.getConfig(sourceURL, range); var headers = new self.Headers(); if (typeof seekConfig.headers === 'object') { var configHeaders = seekConfig.headers; for (var key in configHeaders) { if (configHeaders.hasOwnProperty(key)) { headers.append(key, configHeaders[key]); } } } var params = { method: 'GET', headers: headers, mode: 'cors', cache: 'default', // The default policy of Fetch API in the whatwg standard // Safari incorrectly indicates 'no-referrer' as default policy, fuck it referrerPolicy: 'no-referrer-when-downgrade' }; // add additional headers if (typeof this._config.headers === 'object') { for (var key in this._config.headers) { headers.append(key, this._config.headers[key]); } } // cors is enabled by default if (dataSource.cors === false) { // no-cors means 'disregard cors policy', which can only be used in ServiceWorker params.mode = 'same-origin'; } // withCredentials is disabled by default if (dataSource.withCredentials) { params.credentials = 'include'; } // referrerPolicy from config if (dataSource.referrerPolicy) { params.referrerPolicy = dataSource.referrerPolicy; } // add abort controller, by wmlgl 2019-5-10 12:21:27 if (self.AbortController) { this._abortController = new self.AbortController(); params.signal = this._abortController.signal; } this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kConnecting; self.fetch(seekConfig.url, params).then(function (res) { if (_this._requestAbort) { _this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kIdle; res.body.cancel(); return; } if (res.ok && (res.status >= 200 && res.status <= 299)) { if (res.url !== seekConfig.url) { if (_this._onURLRedirect) { var redirectedURL = _this._seekHandler.removeURLParameters(res.url); _this._onURLRedirect(redirectedURL); } } var lengthHeader = res.headers.get('Content-Length'); if (lengthHeader != null) { _this._contentLength = parseInt(lengthHeader); if (_this._contentLength !== 0) { if (_this._onContentLengthKnown) { _this._onContentLengthKnown(_this._contentLength); } } } return _this._pump.call(_this, res.body.getReader()); } else { _this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kError; if (_this._onError) { _this._onError(_loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderErrors.HTTP_STATUS_CODE_INVALID, { code: res.status, msg: res.statusText }); } else { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_2__.RuntimeException('FetchStreamLoader: Http code invalid, ' + res.status + ' ' + res.statusText); } } }).catch(function (e) { if (_this._abortController && _this._abortController.signal.aborted) { return; } _this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kError; if (_this._onError) { _this._onError(_loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderErrors.EXCEPTION, { code: -1, msg: e.message }); } else { throw e; } }); }; FetchStreamLoader.prototype.abort = function () { this._requestAbort = true; if (this._status !== _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kBuffering || !_utils_browser_js__WEBPACK_IMPORTED_MODULE_0__.default.chrome) { // Chrome may throw Exception-like things here, avoid using if is buffering if (this._abortController) { try { this._abortController.abort(); } catch (e) { } } } }; FetchStreamLoader.prototype._pump = function (reader) { var _this = this; return reader.read().then(function (result) { if (result.done) { // First check received length if (_this._contentLength !== null && _this._receivedLength < _this._contentLength) { // Report Early-EOF _this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kError; var type = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderErrors.EARLY_EOF; var info = { code: -1, msg: 'Fetch stream meet Early-EOF' }; if (_this._onError) { _this._onError(type, info); } else { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_2__.RuntimeException(info.msg); } } else { // OK. Download complete _this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kComplete; if (_this._onComplete) { _this._onComplete(_this._range.from, _this._range.from + _this._receivedLength - 1); } } } else { if (_this._abortController && _this._abortController.signal.aborted) { _this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kComplete; return; } else if (_this._requestAbort === true) { _this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kComplete; return reader.cancel(); } _this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kBuffering; var chunk = result.value.buffer; var byteStart = _this._range.from + _this._receivedLength; _this._receivedLength += chunk.byteLength; if (_this._onDataArrival) { _this._onDataArrival(chunk, byteStart, _this._receivedLength); } _this._pump(reader); } }).catch(function (e) { if (_this._abortController && _this._abortController.signal.aborted) { _this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kComplete; return; } if (e.code === 11 && _utils_browser_js__WEBPACK_IMPORTED_MODULE_0__.default.msedge) { // InvalidStateError on Microsoft Edge // Workaround: Edge may throw InvalidStateError after ReadableStreamReader.cancel() call // Ignore the unknown exception. // Related issue: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11265202/ return; } _this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kError; var type = 0; var info = null; if ((e.code === 19 || e.message === 'network error') && // NETWORK_ERR (_this._contentLength === null || (_this._contentLength !== null && _this._receivedLength < _this._contentLength))) { type = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderErrors.EARLY_EOF; info = { code: e.code, msg: 'Fetch stream meet Early-EOF' }; } else { type = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderErrors.EXCEPTION; info = { code: e.code, msg: e.message }; } if (_this._onError) { _this._onError(type, info); } else { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_2__.RuntimeException(info.msg); } }); }; return FetchStreamLoader; }(_loader_js__WEBPACK_IMPORTED_MODULE_1__.BaseLoader)); /* harmony default export */ __webpack_exports__["default"] = (FetchStreamLoader); /***/ }), /***/ "./src/io/io-controller.js": /*!*********************************!*\ !*** ./src/io/io-controller.js ***! \*********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/logger.js */ "./src/utils/logger.js"); /* harmony import */ var _speed_sampler_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./speed-sampler.js */ "./src/io/speed-sampler.js"); /* harmony import */ var _loader_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./loader.js */ "./src/io/loader.js"); /* harmony import */ var _fetch_stream_loader_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fetch-stream-loader.js */ "./src/io/fetch-stream-loader.js"); /* harmony import */ var _xhr_moz_chunked_loader_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./xhr-moz-chunked-loader.js */ "./src/io/xhr-moz-chunked-loader.js"); /* harmony import */ var _xhr_range_loader_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./xhr-range-loader.js */ "./src/io/xhr-range-loader.js"); /* harmony import */ var _websocket_loader_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./websocket-loader.js */ "./src/io/websocket-loader.js"); /* harmony import */ var _range_seek_handler_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./range-seek-handler.js */ "./src/io/range-seek-handler.js"); /* harmony import */ var _param_seek_handler_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./param-seek-handler.js */ "./src/io/param-seek-handler.js"); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * DataSource: { * url: string, * filesize: number, * cors: boolean, * withCredentials: boolean * } * */ // Manage IO Loaders var IOController = /** @class */ (function () { function IOController(dataSource, config, extraData) { this.TAG = 'IOController'; this._config = config; this._extraData = extraData; this._stashInitialSize = 1024 * 384; // default initial size: 384KB if (config.stashInitialSize != undefined && config.stashInitialSize > 0) { // apply from config this._stashInitialSize = config.stashInitialSize; } this._stashUsed = 0; this._stashSize = this._stashInitialSize; this._bufferSize = 1024 * 1024 * 3; // initial size: 3MB this._stashBuffer = new ArrayBuffer(this._bufferSize); this._stashByteStart = 0; this._enableStash = true; if (config.enableStashBuffer === false) { this._enableStash = false; } this._loader = null; this._loaderClass = null; this._seekHandler = null; this._dataSource = dataSource; this._isWebSocketURL = /wss?:\/\/(.+?)/.test(dataSource.url); this._refTotalLength = dataSource.filesize ? dataSource.filesize : null; this._totalLength = this._refTotalLength; this._fullRequestFlag = false; this._currentRange = null; this._redirectedURL = null; this._speedNormalized = 0; this._speedSampler = new _speed_sampler_js__WEBPACK_IMPORTED_MODULE_1__.default(); this._speedNormalizeList = [64, 128, 256, 384, 512, 768, 1024, 1536, 2048, 3072, 4096]; this._isEarlyEofReconnecting = false; this._paused = false; this._resumeFrom = 0; this._onDataArrival = null; this._onSeeked = null; this._onError = null; this._onComplete = null; this._onRedirect = null; this._onRecoveredEarlyEof = null; this._selectSeekHandler(); this._selectLoader(); this._createLoader(); } IOController.prototype.destroy = function () { if (this._loader.isWorking()) { this._loader.abort(); } this._loader.destroy(); this._loader = null; this._loaderClass = null; this._dataSource = null; this._stashBuffer = null; this._stashUsed = this._stashSize = this._bufferSize = this._stashByteStart = 0; this._currentRange = null; this._speedSampler = null; this._isEarlyEofReconnecting = false; this._onDataArrival = null; this._onSeeked = null; this._onError = null; this._onComplete = null; this._onRedirect = null; this._onRecoveredEarlyEof = null; this._extraData = null; }; IOController.prototype.isWorking = function () { return this._loader && this._loader.isWorking() && !this._paused; }; IOController.prototype.isPaused = function () { return this._paused; }; Object.defineProperty(IOController.prototype, "status", { get: function () { return this._loader.status; }, enumerable: false, configurable: true }); Object.defineProperty(IOController.prototype, "extraData", { get: function () { return this._extraData; }, set: function (data) { this._extraData = data; }, enumerable: false, configurable: true }); Object.defineProperty(IOController.prototype, "onDataArrival", { // prototype: function onDataArrival(chunks: ArrayBuffer, byteStart: number): number get: function () { return this._onDataArrival; }, set: function (callback) { this._onDataArrival = callback; }, enumerable: false, configurable: true }); Object.defineProperty(IOController.prototype, "onSeeked", { get: function () { return this._onSeeked; }, set: function (callback) { this._onSeeked = callback; }, enumerable: false, configurable: true }); Object.defineProperty(IOController.prototype, "onError", { // prototype: function onError(type: number, info: {code: number, msg: string}): void get: function () { return this._onError; }, set: function (callback) { this._onError = callback; }, enumerable: false, configurable: true }); Object.defineProperty(IOController.prototype, "onComplete", { get: function () { return this._onComplete; }, set: function (callback) { this._onComplete = callback; }, enumerable: false, configurable: true }); Object.defineProperty(IOController.prototype, "onRedirect", { get: function () { return this._onRedirect; }, set: function (callback) { this._onRedirect = callback; }, enumerable: false, configurable: true }); Object.defineProperty(IOController.prototype, "onRecoveredEarlyEof", { get: function () { return this._onRecoveredEarlyEof; }, set: function (callback) { this._onRecoveredEarlyEof = callback; }, enumerable: false, configurable: true }); Object.defineProperty(IOController.prototype, "currentURL", { get: function () { return this._dataSource.url; }, enumerable: false, configurable: true }); Object.defineProperty(IOController.prototype, "hasRedirect", { get: function () { return (this._redirectedURL != null || this._dataSource.redirectedURL != undefined); }, enumerable: false, configurable: true }); Object.defineProperty(IOController.prototype, "currentRedirectedURL", { get: function () { return this._redirectedURL || this._dataSource.redirectedURL; }, enumerable: false, configurable: true }); Object.defineProperty(IOController.prototype, "currentSpeed", { // in KB/s get: function () { if (this._loaderClass === _xhr_range_loader_js__WEBPACK_IMPORTED_MODULE_5__.default) { // SpeedSampler is inaccuracy if loader is RangeLoader return this._loader.currentSpeed; } return this._speedSampler.lastSecondKBps; }, enumerable: false, configurable: true }); Object.defineProperty(IOController.prototype, "loaderType", { get: function () { return this._loader.type; }, enumerable: false, configurable: true }); IOController.prototype._selectSeekHandler = function () { var config = this._config; if (config.seekType === 'range') { this._seekHandler = new _range_seek_handler_js__WEBPACK_IMPORTED_MODULE_7__.default(this._config.rangeLoadZeroStart); } else if (config.seekType === 'param') { var paramStart = config.seekParamStart || 'bstart'; var paramEnd = config.seekParamEnd || 'bend'; this._seekHandler = new _param_seek_handler_js__WEBPACK_IMPORTED_MODULE_8__.default(paramStart, paramEnd); } else if (config.seekType === 'custom') { if (typeof config.customSeekHandler !== 'function') { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_9__.InvalidArgumentException('Custom seekType specified in config but invalid customSeekHandler!'); } this._seekHandler = new config.customSeekHandler(); } else { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_9__.InvalidArgumentException("Invalid seekType in config: " + config.seekType); } }; IOController.prototype._selectLoader = function () { if (this._config.customLoader != null) { this._loaderClass = this._config.customLoader; } else if (this._isWebSocketURL) { this._loaderClass = _websocket_loader_js__WEBPACK_IMPORTED_MODULE_6__.default; } else if (_fetch_stream_loader_js__WEBPACK_IMPORTED_MODULE_3__.default.isSupported()) { this._loaderClass = _fetch_stream_loader_js__WEBPACK_IMPORTED_MODULE_3__.default; } else if (_xhr_moz_chunked_loader_js__WEBPACK_IMPORTED_MODULE_4__.default.isSupported()) { this._loaderClass = _xhr_moz_chunked_loader_js__WEBPACK_IMPORTED_MODULE_4__.default; } else if (_xhr_range_loader_js__WEBPACK_IMPORTED_MODULE_5__.default.isSupported()) { this._loaderClass = _xhr_range_loader_js__WEBPACK_IMPORTED_MODULE_5__.default; } else { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_9__.RuntimeException('Your browser doesn\'t support xhr with arraybuffer responseType!'); } }; IOController.prototype._createLoader = function () { this._loader = new this._loaderClass(this._seekHandler, this._config); if (this._loader.needStashBuffer === false) { this._enableStash = false; } this._loader.onContentLengthKnown = this._onContentLengthKnown.bind(this); this._loader.onURLRedirect = this._onURLRedirect.bind(this); this._loader.onDataArrival = this._onLoaderChunkArrival.bind(this); this._loader.onComplete = this._onLoaderComplete.bind(this); this._loader.onError = this._onLoaderError.bind(this); }; IOController.prototype.open = function (optionalFrom) { this._currentRange = { from: 0, to: -1 }; if (optionalFrom) { this._currentRange.from = optionalFrom; } this._speedSampler.reset(); if (!optionalFrom) { this._fullRequestFlag = true; } this._loader.open(this._dataSource, Object.assign({}, this._currentRange)); }; IOController.prototype.abort = function () { this._loader.abort(); if (this._paused) { this._paused = false; this._resumeFrom = 0; } }; IOController.prototype.pause = function () { if (this.isWorking()) { this._loader.abort(); if (this._stashUsed !== 0) { this._resumeFrom = this._stashByteStart; this._currentRange.to = this._stashByteStart - 1; } else { this._resumeFrom = this._currentRange.to + 1; } this._stashUsed = 0; this._stashByteStart = 0; this._paused = true; } }; IOController.prototype.resume = function () { if (this._paused) { this._paused = false; var bytes = this._resumeFrom; this._resumeFrom = 0; this._internalSeek(bytes, true); } }; IOController.prototype.seek = function (bytes) { this._paused = false; this._stashUsed = 0; this._stashByteStart = 0; this._internalSeek(bytes, true); }; /** * When seeking request is from media seeking, unconsumed stash data should be dropped * However, stash data shouldn't be dropped if seeking requested from http reconnection * * @dropUnconsumed: Ignore and discard all unconsumed data in stash buffer */ IOController.prototype._internalSeek = function (bytes, dropUnconsumed) { if (this._loader.isWorking()) { this._loader.abort(); } // dispatch & flush stash buffer before seek this._flushStashBuffer(dropUnconsumed); this._loader.destroy(); this._loader = null; var requestRange = { from: bytes, to: -1 }; this._currentRange = { from: requestRange.from, to: -1 }; this._speedSampler.reset(); this._stashSize = this._stashInitialSize; this._createLoader(); this._loader.open(this._dataSource, requestRange); if (this._onSeeked) { this._onSeeked(); } }; IOController.prototype.updateUrl = function (url) { if (!url || typeof url !== 'string' || url.length === 0) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_9__.InvalidArgumentException('Url must be a non-empty string!'); } this._dataSource.url = url; // TODO: replace with new url }; IOController.prototype._expandBuffer = function (expectedBytes) { var bufferNewSize = this._stashSize; while (bufferNewSize + 1024 * 1024 * 1 < expectedBytes) { bufferNewSize *= 2; } bufferNewSize += 1024 * 1024 * 1; // bufferSize = stashSize + 1MB if (bufferNewSize === this._bufferSize) { return; } var newBuffer = new ArrayBuffer(bufferNewSize); if (this._stashUsed > 0) { // copy existing data into new buffer var stashOldArray = new Uint8Array(this._stashBuffer, 0, this._stashUsed); var stashNewArray = new Uint8Array(newBuffer, 0, bufferNewSize); stashNewArray.set(stashOldArray, 0); } this._stashBuffer = newBuffer; this._bufferSize = bufferNewSize; }; IOController.prototype._normalizeSpeed = function (input) { var list = this._speedNormalizeList; var last = list.length - 1; var mid = 0; var lbound = 0; var ubound = last; if (input < list[0]) { return list[0]; } // binary search while (lbound <= ubound) { mid = lbound + Math.floor((ubound - lbound) / 2); if (mid === last || (input >= list[mid] && input < list[mid + 1])) { return list[mid]; } else if (list[mid] < input) { lbound = mid + 1; } else { ubound = mid - 1; } } }; IOController.prototype._adjustStashSize = function (normalized) { var stashSizeKB = 0; if (this._config.isLive) { // live stream: always use single normalized speed for size of stashSizeKB stashSizeKB = normalized; } else { if (normalized < 512) { stashSizeKB = normalized; } else if (normalized >= 512 && normalized <= 1024) { stashSizeKB = Math.floor(normalized * 1.5); } else { stashSizeKB = normalized * 2; } } if (stashSizeKB > 8192) { stashSizeKB = 8192; } var bufferSize = stashSizeKB * 1024 + 1024 * 1024 * 1; // stashSize + 1MB if (this._bufferSize < bufferSize) { this._expandBuffer(bufferSize); } this._stashSize = stashSizeKB * 1024; }; IOController.prototype._dispatchChunks = function (chunks, byteStart) { this._currentRange.to = byteStart + chunks.byteLength - 1; return this._onDataArrival(chunks, byteStart); }; IOController.prototype._onURLRedirect = function (redirectedURL) { this._redirectedURL = redirectedURL; if (this._onRedirect) { this._onRedirect(redirectedURL); } }; IOController.prototype._onContentLengthKnown = function (contentLength) { if (contentLength && this._fullRequestFlag) { this._totalLength = contentLength; this._fullRequestFlag = false; } }; IOController.prototype._onLoaderChunkArrival = function (chunk, byteStart, receivedLength) { if (!this._onDataArrival) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_9__.IllegalStateException('IOController: No existing consumer (onDataArrival) callback!'); } if (this._paused) { return; } if (this._isEarlyEofReconnecting) { // Auto-reconnect for EarlyEof succeed, notify to upper-layer by callback this._isEarlyEofReconnecting = false; if (this._onRecoveredEarlyEof) { this._onRecoveredEarlyEof(); } } this._speedSampler.addBytes(chunk.byteLength); // adjust stash buffer size according to network speed dynamically var KBps = this._speedSampler.lastSecondKBps; if (KBps !== 0) { var normalized = this._normalizeSpeed(KBps); if (this._speedNormalized !== normalized) { this._speedNormalized = normalized; this._adjustStashSize(normalized); } } if (!this._enableStash) { // disable stash if (this._stashUsed === 0) { // dispatch chunk directly to consumer; // check ret value (consumed bytes) and stash unconsumed to stashBuffer var consumed = this._dispatchChunks(chunk, byteStart); if (consumed < chunk.byteLength) { // unconsumed data remain. var remain = chunk.byteLength - consumed; if (remain > this._bufferSize) { this._expandBuffer(remain); } var stashArray = new Uint8Array(this._stashBuffer, 0, this._bufferSize); stashArray.set(new Uint8Array(chunk, consumed), 0); this._stashUsed += remain; this._stashByteStart = byteStart + consumed; } } else { // else: Merge chunk into stashBuffer, and dispatch stashBuffer to consumer. if (this._stashUsed + chunk.byteLength > this._bufferSize) { this._expandBuffer(this._stashUsed + chunk.byteLength); } var stashArray = new Uint8Array(this._stashBuffer, 0, this._bufferSize); stashArray.set(new Uint8Array(chunk), this._stashUsed); this._stashUsed += chunk.byteLength; var consumed = this._dispatchChunks(this._stashBuffer.slice(0, this._stashUsed), this._stashByteStart); if (consumed < this._stashUsed && consumed > 0) { // unconsumed data remain var remainArray = new Uint8Array(this._stashBuffer, consumed); stashArray.set(remainArray, 0); } this._stashUsed -= consumed; this._stashByteStart += consumed; } } else { // enable stash if (this._stashUsed === 0 && this._stashByteStart === 0) { // seeked? or init chunk? // This is the first chunk after seek action this._stashByteStart = byteStart; } if (this._stashUsed + chunk.byteLength <= this._stashSize) { // just stash var stashArray = new Uint8Array(this._stashBuffer, 0, this._stashSize); stashArray.set(new Uint8Array(chunk), this._stashUsed); this._stashUsed += chunk.byteLength; } else { // stashUsed + chunkSize > stashSize, size limit exceeded var stashArray = new Uint8Array(this._stashBuffer, 0, this._bufferSize); if (this._stashUsed > 0) { // There're stash datas in buffer // dispatch the whole stashBuffer, and stash remain data // then append chunk to stashBuffer (stash) var buffer = this._stashBuffer.slice(0, this._stashUsed); var consumed = this._dispatchChunks(buffer, this._stashByteStart); if (consumed < buffer.byteLength) { if (consumed > 0) { var remainArray = new Uint8Array(buffer, consumed); stashArray.set(remainArray, 0); this._stashUsed = remainArray.byteLength; this._stashByteStart += consumed; } } else { this._stashUsed = 0; this._stashByteStart += consumed; } if (this._stashUsed + chunk.byteLength > this._bufferSize) { this._expandBuffer(this._stashUsed + chunk.byteLength); stashArray = new Uint8Array(this._stashBuffer, 0, this._bufferSize); } stashArray.set(new Uint8Array(chunk), this._stashUsed); this._stashUsed += chunk.byteLength; } else { // stash buffer empty, but chunkSize > stashSize (oh, holy shit) // dispatch chunk directly and stash remain data var consumed = this._dispatchChunks(chunk, byteStart); if (consumed < chunk.byteLength) { var remain = chunk.byteLength - consumed; if (remain > this._bufferSize) { this._expandBuffer(remain); stashArray = new Uint8Array(this._stashBuffer, 0, this._bufferSize); } stashArray.set(new Uint8Array(chunk, consumed), 0); this._stashUsed += remain; this._stashByteStart = byteStart + consumed; } } } } }; IOController.prototype._flushStashBuffer = function (dropUnconsumed) { if (this._stashUsed > 0) { var buffer = this._stashBuffer.slice(0, this._stashUsed); var consumed = this._dispatchChunks(buffer, this._stashByteStart); var remain = buffer.byteLength - consumed; if (consumed < buffer.byteLength) { if (dropUnconsumed) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, remain + " bytes unconsumed data remain when flush buffer, dropped"); } else { if (consumed > 0) { var stashArray = new Uint8Array(this._stashBuffer, 0, this._bufferSize); var remainArray = new Uint8Array(buffer, consumed); stashArray.set(remainArray, 0); this._stashUsed = remainArray.byteLength; this._stashByteStart += consumed; } return 0; } } this._stashUsed = 0; this._stashByteStart = 0; return remain; } return 0; }; IOController.prototype._onLoaderComplete = function (from, to) { // Force-flush stash buffer, and drop unconsumed data this._flushStashBuffer(true); if (this._onComplete) { this._onComplete(this._extraData); } }; IOController.prototype._onLoaderError = function (type, data) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.e(this.TAG, "Loader error, code = " + data.code + ", msg = " + data.msg); this._flushStashBuffer(false); if (this._isEarlyEofReconnecting) { // Auto-reconnect for EarlyEof failed, throw UnrecoverableEarlyEof error to upper-layer this._isEarlyEofReconnecting = false; type = _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderErrors.UNRECOVERABLE_EARLY_EOF; } switch (type) { case _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderErrors.EARLY_EOF: { if (!this._config.isLive) { // Do internal http reconnect if not live stream if (this._totalLength) { var nextFrom = this._currentRange.to + 1; if (nextFrom < this._totalLength) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Connection lost, trying reconnect...'); this._isEarlyEofReconnecting = true; this._internalSeek(nextFrom, false); } return; } // else: We don't know totalLength, throw UnrecoverableEarlyEof } // live stream: throw UnrecoverableEarlyEof error to upper-layer type = _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderErrors.UNRECOVERABLE_EARLY_EOF; break; } case _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderErrors.UNRECOVERABLE_EARLY_EOF: case _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderErrors.CONNECTING_TIMEOUT: case _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderErrors.HTTP_STATUS_CODE_INVALID: case _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderErrors.EXCEPTION: break; } if (this._onError) { this._onError(type, data); } else { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_9__.RuntimeException('IOException: ' + data.msg); } }; return IOController; }()); /* harmony default export */ __webpack_exports__["default"] = (IOController); /***/ }), /***/ "./src/io/loader.js": /*!**************************!*\ !*** ./src/io/loader.js ***! \**************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "LoaderStatus": function() { return /* binding */ LoaderStatus; }, /* harmony export */ "LoaderErrors": function() { return /* binding */ LoaderErrors; }, /* harmony export */ "BaseLoader": function() { return /* binding */ BaseLoader; } /* harmony export */ }); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var LoaderStatus = { kIdle: 0, kConnecting: 1, kBuffering: 2, kError: 3, kComplete: 4 }; var LoaderErrors = { OK: 'OK', EXCEPTION: 'Exception', HTTP_STATUS_CODE_INVALID: 'HttpStatusCodeInvalid', CONNECTING_TIMEOUT: 'ConnectingTimeout', EARLY_EOF: 'EarlyEof', UNRECOVERABLE_EARLY_EOF: 'UnrecoverableEarlyEof' }; /* Loader has callbacks which have following prototypes: * function onContentLengthKnown(contentLength: number): void * function onURLRedirect(url: string): void * function onDataArrival(chunk: ArrayBuffer, byteStart: number, receivedLength: number): void * function onError(errorType: number, errorInfo: {code: number, msg: string}): void * function onComplete(rangeFrom: number, rangeTo: number): void */ var BaseLoader = /** @class */ (function () { function BaseLoader(typeName) { this._type = typeName || 'undefined'; this._status = LoaderStatus.kIdle; this._needStash = false; // callbacks this._onContentLengthKnown = null; this._onURLRedirect = null; this._onDataArrival = null; this._onError = null; this._onComplete = null; } BaseLoader.prototype.destroy = function () { this._status = LoaderStatus.kIdle; this._onContentLengthKnown = null; this._onURLRedirect = null; this._onDataArrival = null; this._onError = null; this._onComplete = null; }; BaseLoader.prototype.isWorking = function () { return this._status === LoaderStatus.kConnecting || this._status === LoaderStatus.kBuffering; }; Object.defineProperty(BaseLoader.prototype, "type", { get: function () { return this._type; }, enumerable: false, configurable: true }); Object.defineProperty(BaseLoader.prototype, "status", { get: function () { return this._status; }, enumerable: false, configurable: true }); Object.defineProperty(BaseLoader.prototype, "needStashBuffer", { get: function () { return this._needStash; }, enumerable: false, configurable: true }); Object.defineProperty(BaseLoader.prototype, "onContentLengthKnown", { get: function () { return this._onContentLengthKnown; }, set: function (callback) { this._onContentLengthKnown = callback; }, enumerable: false, configurable: true }); Object.defineProperty(BaseLoader.prototype, "onURLRedirect", { get: function () { return this._onURLRedirect; }, set: function (callback) { this._onURLRedirect = callback; }, enumerable: false, configurable: true }); Object.defineProperty(BaseLoader.prototype, "onDataArrival", { get: function () { return this._onDataArrival; }, set: function (callback) { this._onDataArrival = callback; }, enumerable: false, configurable: true }); Object.defineProperty(BaseLoader.prototype, "onError", { get: function () { return this._onError; }, set: function (callback) { this._onError = callback; }, enumerable: false, configurable: true }); Object.defineProperty(BaseLoader.prototype, "onComplete", { get: function () { return this._onComplete; }, set: function (callback) { this._onComplete = callback; }, enumerable: false, configurable: true }); // pure virtual BaseLoader.prototype.open = function (dataSource, range) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_0__.NotImplementedException('Unimplemented abstract function!'); }; BaseLoader.prototype.abort = function () { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_0__.NotImplementedException('Unimplemented abstract function!'); }; return BaseLoader; }()); /***/ }), /***/ "./src/io/param-seek-handler.js": /*!**************************************!*\ !*** ./src/io/param-seek-handler.js ***! \**************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var ParamSeekHandler = /** @class */ (function () { function ParamSeekHandler(paramStart, paramEnd) { this._startName = paramStart; this._endName = paramEnd; } ParamSeekHandler.prototype.getConfig = function (baseUrl, range) { var url = baseUrl; if (range.from !== 0 || range.to !== -1) { var needAnd = true; if (url.indexOf('?') === -1) { url += '?'; needAnd = false; } if (needAnd) { url += '&'; } url += this._startName + "=" + range.from.toString(); if (range.to !== -1) { url += "&" + this._endName + "=" + range.to.toString(); } } return { url: url, headers: {} }; }; ParamSeekHandler.prototype.removeURLParameters = function (seekedURL) { var baseURL = seekedURL.split('?')[0]; var params = undefined; var queryIndex = seekedURL.indexOf('?'); if (queryIndex !== -1) { params = seekedURL.substring(queryIndex + 1); } var resultParams = ''; if (params != undefined && params.length > 0) { var pairs = params.split('&'); for (var i = 0; i < pairs.length; i++) { var pair = pairs[i].split('='); var requireAnd = (i > 0); if (pair[0] !== this._startName && pair[0] !== this._endName) { if (requireAnd) { resultParams += '&'; } resultParams += pairs[i]; } } } return (resultParams.length === 0) ? baseURL : baseURL + '?' + resultParams; }; return ParamSeekHandler; }()); /* harmony default export */ __webpack_exports__["default"] = (ParamSeekHandler); /***/ }), /***/ "./src/io/range-seek-handler.js": /*!**************************************!*\ !*** ./src/io/range-seek-handler.js ***! \**************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var RangeSeekHandler = /** @class */ (function () { function RangeSeekHandler(zeroStart) { this._zeroStart = zeroStart || false; } RangeSeekHandler.prototype.getConfig = function (url, range) { var headers = {}; if (range.from !== 0 || range.to !== -1) { var param = void 0; if (range.to !== -1) { param = "bytes=" + range.from.toString() + "-" + range.to.toString(); } else { param = "bytes=" + range.from.toString() + "-"; } headers['Range'] = param; } else if (this._zeroStart) { headers['Range'] = 'bytes=0-'; } return { url: url, headers: headers }; }; RangeSeekHandler.prototype.removeURLParameters = function (seekedURL) { return seekedURL; }; return RangeSeekHandler; }()); /* harmony default export */ __webpack_exports__["default"] = (RangeSeekHandler); /***/ }), /***/ "./src/io/speed-sampler.js": /*!*********************************!*\ !*** ./src/io/speed-sampler.js ***! \*********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Utility class to calculate realtime network I/O speed var SpeedSampler = /** @class */ (function () { function SpeedSampler() { // milliseconds this._firstCheckpoint = 0; this._lastCheckpoint = 0; this._intervalBytes = 0; this._totalBytes = 0; this._lastSecondBytes = 0; // compatibility detection if (self.performance && self.performance.now) { this._now = self.performance.now.bind(self.performance); } else { this._now = Date.now; } } SpeedSampler.prototype.reset = function () { this._firstCheckpoint = this._lastCheckpoint = 0; this._totalBytes = this._intervalBytes = 0; this._lastSecondBytes = 0; }; SpeedSampler.prototype.addBytes = function (bytes) { if (this._firstCheckpoint === 0) { this._firstCheckpoint = this._now(); this._lastCheckpoint = this._firstCheckpoint; this._intervalBytes += bytes; this._totalBytes += bytes; } else if (this._now() - this._lastCheckpoint < 1000) { this._intervalBytes += bytes; this._totalBytes += bytes; } else { // duration >= 1000 this._lastSecondBytes = this._intervalBytes; this._intervalBytes = bytes; this._totalBytes += bytes; this._lastCheckpoint = this._now(); } }; Object.defineProperty(SpeedSampler.prototype, "currentKBps", { get: function () { this.addBytes(0); var durationSeconds = (this._now() - this._lastCheckpoint) / 1000; if (durationSeconds == 0) durationSeconds = 1; return (this._intervalBytes / durationSeconds) / 1024; }, enumerable: false, configurable: true }); Object.defineProperty(SpeedSampler.prototype, "lastSecondKBps", { get: function () { this.addBytes(0); if (this._lastSecondBytes !== 0) { return this._lastSecondBytes / 1024; } else { // lastSecondBytes === 0 if (this._now() - this._lastCheckpoint >= 500) { // if time interval since last checkpoint has exceeded 500ms // the speed is nearly accurate return this.currentKBps; } else { // We don't know return 0; } } }, enumerable: false, configurable: true }); Object.defineProperty(SpeedSampler.prototype, "averageKBps", { get: function () { var durationSeconds = (this._now() - this._firstCheckpoint) / 1000; return (this._totalBytes / durationSeconds) / 1024; }, enumerable: false, configurable: true }); return SpeedSampler; }()); /* harmony default export */ __webpack_exports__["default"] = (SpeedSampler); /***/ }), /***/ "./src/io/websocket-loader.js": /*!************************************!*\ !*** ./src/io/websocket-loader.js ***! \************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _loader_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./loader.js */ "./src/io/loader.js"); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); // For FLV over WebSocket live stream var WebSocketLoader = /** @class */ (function (_super) { __extends(WebSocketLoader, _super); function WebSocketLoader() { var _this = _super.call(this, 'websocket-loader') || this; _this.TAG = 'WebSocketLoader'; _this._needStash = true; _this._ws = null; _this._requestAbort = false; _this._receivedLength = 0; return _this; } WebSocketLoader.isSupported = function () { try { return (typeof self.WebSocket !== 'undefined'); } catch (e) { return false; } }; WebSocketLoader.prototype.destroy = function () { if (this._ws) { this.abort(); } _super.prototype.destroy.call(this); }; WebSocketLoader.prototype.open = function (dataSource) { try { var ws = this._ws = new self.WebSocket(dataSource.url); ws.binaryType = 'arraybuffer'; ws.onopen = this._onWebSocketOpen.bind(this); ws.onclose = this._onWebSocketClose.bind(this); ws.onmessage = this._onWebSocketMessage.bind(this); ws.onerror = this._onWebSocketError.bind(this); this._status = _loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderStatus.kConnecting; } catch (e) { this._status = _loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderStatus.kError; var info = { code: e.code, msg: e.message }; if (this._onError) { this._onError(_loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderErrors.EXCEPTION, info); } else { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_1__.RuntimeException(info.msg); } } }; WebSocketLoader.prototype.abort = function () { var ws = this._ws; if (ws && (ws.readyState === 0 || ws.readyState === 1)) { // CONNECTING || OPEN this._requestAbort = true; ws.close(); } this._ws = null; this._status = _loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderStatus.kComplete; }; WebSocketLoader.prototype._onWebSocketOpen = function (e) { this._status = _loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderStatus.kBuffering; }; WebSocketLoader.prototype._onWebSocketClose = function (e) { if (this._requestAbort === true) { this._requestAbort = false; return; } this._status = _loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderStatus.kComplete; if (this._onComplete) { this._onComplete(0, this._receivedLength - 1); } }; WebSocketLoader.prototype._onWebSocketMessage = function (e) { var _this = this; if (e.data instanceof ArrayBuffer) { this._dispatchArrayBuffer(e.data); } else if (e.data instanceof Blob) { var reader_1 = new FileReader(); reader_1.onload = function () { _this._dispatchArrayBuffer(reader_1.result); }; reader_1.readAsArrayBuffer(e.data); } else { this._status = _loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderStatus.kError; var info = { code: -1, msg: 'Unsupported WebSocket message type: ' + e.data.constructor.name }; if (this._onError) { this._onError(_loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderErrors.EXCEPTION, info); } else { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_1__.RuntimeException(info.msg); } } }; WebSocketLoader.prototype._dispatchArrayBuffer = function (arraybuffer) { var chunk = arraybuffer; var byteStart = this._receivedLength; this._receivedLength += chunk.byteLength; if (this._onDataArrival) { this._onDataArrival(chunk, byteStart, this._receivedLength); } }; WebSocketLoader.prototype._onWebSocketError = function (e) { this._status = _loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderStatus.kError; var info = { code: e.code, msg: e.message }; if (this._onError) { this._onError(_loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderErrors.EXCEPTION, info); } else { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_1__.RuntimeException(info.msg); } }; return WebSocketLoader; }(_loader_js__WEBPACK_IMPORTED_MODULE_0__.BaseLoader)); /* harmony default export */ __webpack_exports__["default"] = (WebSocketLoader); /***/ }), /***/ "./src/io/xhr-moz-chunked-loader.js": /*!******************************************!*\ !*** ./src/io/xhr-moz-chunked-loader.js ***! \******************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/logger.js */ "./src/utils/logger.js"); /* harmony import */ var _loader_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./loader.js */ "./src/io/loader.js"); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); // For FireFox browser which supports `xhr.responseType = 'moz-chunked-arraybuffer'` var MozChunkedLoader = /** @class */ (function (_super) { __extends(MozChunkedLoader, _super); function MozChunkedLoader(seekHandler, config) { var _this = _super.call(this, 'xhr-moz-chunked-loader') || this; _this.TAG = 'MozChunkedLoader'; _this._seekHandler = seekHandler; _this._config = config; _this._needStash = true; _this._xhr = null; _this._requestAbort = false; _this._contentLength = null; _this._receivedLength = 0; return _this; } MozChunkedLoader.isSupported = function () { try { var xhr = new XMLHttpRequest(); // Firefox 37- requires .open() to be called before setting responseType xhr.open('GET', 'https://example.com', true); xhr.responseType = 'moz-chunked-arraybuffer'; return (xhr.responseType === 'moz-chunked-arraybuffer'); } catch (e) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w('MozChunkedLoader', e.message); return false; } }; MozChunkedLoader.prototype.destroy = function () { if (this.isWorking()) { this.abort(); } if (this._xhr) { this._xhr.onreadystatechange = null; this._xhr.onprogress = null; this._xhr.onloadend = null; this._xhr.onerror = null; this._xhr = null; } _super.prototype.destroy.call(this); }; MozChunkedLoader.prototype.open = function (dataSource, range) { this._dataSource = dataSource; this._range = range; var sourceURL = dataSource.url; if (this._config.reuseRedirectedURL && dataSource.redirectedURL != undefined) { sourceURL = dataSource.redirectedURL; } var seekConfig = this._seekHandler.getConfig(sourceURL, range); this._requestURL = seekConfig.url; var xhr = this._xhr = new XMLHttpRequest(); xhr.open('GET', seekConfig.url, true); xhr.responseType = 'moz-chunked-arraybuffer'; xhr.onreadystatechange = this._onReadyStateChange.bind(this); xhr.onprogress = this._onProgress.bind(this); xhr.onloadend = this._onLoadEnd.bind(this); xhr.onerror = this._onXhrError.bind(this); // cors is auto detected and enabled by xhr // withCredentials is disabled by default if (dataSource.withCredentials) { xhr.withCredentials = true; } if (typeof seekConfig.headers === 'object') { var headers = seekConfig.headers; for (var key in headers) { if (headers.hasOwnProperty(key)) { xhr.setRequestHeader(key, headers[key]); } } } // add additional headers if (typeof this._config.headers === 'object') { var headers = this._config.headers; for (var key in headers) { if (headers.hasOwnProperty(key)) { xhr.setRequestHeader(key, headers[key]); } } } this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kConnecting; xhr.send(); }; MozChunkedLoader.prototype.abort = function () { this._requestAbort = true; if (this._xhr) { this._xhr.abort(); } this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kComplete; }; MozChunkedLoader.prototype._onReadyStateChange = function (e) { var xhr = e.target; if (xhr.readyState === 2) { // HEADERS_RECEIVED if (xhr.responseURL != undefined && xhr.responseURL !== this._requestURL) { if (this._onURLRedirect) { var redirectedURL = this._seekHandler.removeURLParameters(xhr.responseURL); this._onURLRedirect(redirectedURL); } } if (xhr.status !== 0 && (xhr.status < 200 || xhr.status > 299)) { this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kError; if (this._onError) { this._onError(_loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderErrors.HTTP_STATUS_CODE_INVALID, { code: xhr.status, msg: xhr.statusText }); } else { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_2__.RuntimeException('MozChunkedLoader: Http code invalid, ' + xhr.status + ' ' + xhr.statusText); } } else { this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kBuffering; } } }; MozChunkedLoader.prototype._onProgress = function (e) { if (this._status === _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kError) { // Ignore error response return; } if (this._contentLength === null) { if (e.total !== null && e.total !== 0) { this._contentLength = e.total; if (this._onContentLengthKnown) { this._onContentLengthKnown(this._contentLength); } } } var chunk = e.target.response; var byteStart = this._range.from + this._receivedLength; this._receivedLength += chunk.byteLength; if (this._onDataArrival) { this._onDataArrival(chunk, byteStart, this._receivedLength); } }; MozChunkedLoader.prototype._onLoadEnd = function (e) { if (this._requestAbort === true) { this._requestAbort = false; return; } else if (this._status === _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kError) { return; } this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kComplete; if (this._onComplete) { this._onComplete(this._range.from, this._range.from + this._receivedLength - 1); } }; MozChunkedLoader.prototype._onXhrError = function (e) { this._status = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderStatus.kError; var type = 0; var info = null; if (this._contentLength && e.loaded < this._contentLength) { type = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderErrors.EARLY_EOF; info = { code: -1, msg: 'Moz-Chunked stream meet Early-Eof' }; } else { type = _loader_js__WEBPACK_IMPORTED_MODULE_1__.LoaderErrors.EXCEPTION; info = { code: -1, msg: e.constructor.name + ' ' + e.type }; } if (this._onError) { this._onError(type, info); } else { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_2__.RuntimeException(info.msg); } }; return MozChunkedLoader; }(_loader_js__WEBPACK_IMPORTED_MODULE_1__.BaseLoader)); /* harmony default export */ __webpack_exports__["default"] = (MozChunkedLoader); /***/ }), /***/ "./src/io/xhr-range-loader.js": /*!************************************!*\ !*** ./src/io/xhr-range-loader.js ***! \************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/logger.js */ "./src/utils/logger.js"); /* harmony import */ var _speed_sampler_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./speed-sampler.js */ "./src/io/speed-sampler.js"); /* harmony import */ var _loader_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./loader.js */ "./src/io/loader.js"); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); // Universal IO Loader, implemented by adding Range header in xhr's request header var RangeLoader = /** @class */ (function (_super) { __extends(RangeLoader, _super); function RangeLoader(seekHandler, config) { var _this = _super.call(this, 'xhr-range-loader') || this; _this.TAG = 'RangeLoader'; _this._seekHandler = seekHandler; _this._config = config; _this._needStash = false; _this._chunkSizeKBList = [ 128, 256, 384, 512, 768, 1024, 1536, 2048, 3072, 4096, 5120, 6144, 7168, 8192 ]; _this._currentChunkSizeKB = 384; _this._currentSpeedNormalized = 0; _this._zeroSpeedChunkCount = 0; _this._xhr = null; _this._speedSampler = new _speed_sampler_js__WEBPACK_IMPORTED_MODULE_1__.default(); _this._requestAbort = false; _this._waitForTotalLength = false; _this._totalLengthReceived = false; _this._currentRequestURL = null; _this._currentRedirectedURL = null; _this._currentRequestRange = null; _this._totalLength = null; // size of the entire file _this._contentLength = null; // Content-Length of entire request range _this._receivedLength = 0; // total received bytes _this._lastTimeLoaded = 0; // received bytes of current request sub-range return _this; } RangeLoader.isSupported = function () { try { var xhr = new XMLHttpRequest(); xhr.open('GET', 'https://example.com', true); xhr.responseType = 'arraybuffer'; return (xhr.responseType === 'arraybuffer'); } catch (e) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w('RangeLoader', e.message); return false; } }; RangeLoader.prototype.destroy = function () { if (this.isWorking()) { this.abort(); } if (this._xhr) { this._xhr.onreadystatechange = null; this._xhr.onprogress = null; this._xhr.onload = null; this._xhr.onerror = null; this._xhr = null; } _super.prototype.destroy.call(this); }; Object.defineProperty(RangeLoader.prototype, "currentSpeed", { get: function () { return this._speedSampler.lastSecondKBps; }, enumerable: false, configurable: true }); RangeLoader.prototype.open = function (dataSource, range) { this._dataSource = dataSource; this._range = range; this._status = _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderStatus.kConnecting; var useRefTotalLength = false; if (this._dataSource.filesize != undefined && this._dataSource.filesize !== 0) { useRefTotalLength = true; this._totalLength = this._dataSource.filesize; } if (!this._totalLengthReceived && !useRefTotalLength) { // We need total filesize this._waitForTotalLength = true; this._internalOpen(this._dataSource, { from: 0, to: -1 }); } else { // We have filesize, start loading this._openSubRange(); } }; RangeLoader.prototype._openSubRange = function () { var chunkSize = this._currentChunkSizeKB * 1024; var from = this._range.from + this._receivedLength; var to = from + chunkSize; if (this._contentLength != null) { if (to - this._range.from >= this._contentLength) { to = this._range.from + this._contentLength - 1; } } this._currentRequestRange = { from: from, to: to }; this._internalOpen(this._dataSource, this._currentRequestRange); }; RangeLoader.prototype._internalOpen = function (dataSource, range) { this._lastTimeLoaded = 0; var sourceURL = dataSource.url; if (this._config.reuseRedirectedURL) { if (this._currentRedirectedURL != undefined) { sourceURL = this._currentRedirectedURL; } else if (dataSource.redirectedURL != undefined) { sourceURL = dataSource.redirectedURL; } } var seekConfig = this._seekHandler.getConfig(sourceURL, range); this._currentRequestURL = seekConfig.url; var xhr = this._xhr = new XMLHttpRequest(); xhr.open('GET', seekConfig.url, true); xhr.responseType = 'arraybuffer'; xhr.onreadystatechange = this._onReadyStateChange.bind(this); xhr.onprogress = this._onProgress.bind(this); xhr.onload = this._onLoad.bind(this); xhr.onerror = this._onXhrError.bind(this); if (dataSource.withCredentials) { xhr.withCredentials = true; } if (typeof seekConfig.headers === 'object') { var headers = seekConfig.headers; for (var key in headers) { if (headers.hasOwnProperty(key)) { xhr.setRequestHeader(key, headers[key]); } } } // add additional headers if (typeof this._config.headers === 'object') { var headers = this._config.headers; for (var key in headers) { if (headers.hasOwnProperty(key)) { xhr.setRequestHeader(key, headers[key]); } } } xhr.send(); }; RangeLoader.prototype.abort = function () { this._requestAbort = true; this._internalAbort(); this._status = _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderStatus.kComplete; }; RangeLoader.prototype._internalAbort = function () { if (this._xhr) { this._xhr.onreadystatechange = null; this._xhr.onprogress = null; this._xhr.onload = null; this._xhr.onerror = null; this._xhr.abort(); this._xhr = null; } }; RangeLoader.prototype._onReadyStateChange = function (e) { var xhr = e.target; if (xhr.readyState === 2) { // HEADERS_RECEIVED if (xhr.responseURL != undefined) { // if the browser support this property var redirectedURL = this._seekHandler.removeURLParameters(xhr.responseURL); if (xhr.responseURL !== this._currentRequestURL && redirectedURL !== this._currentRedirectedURL) { this._currentRedirectedURL = redirectedURL; if (this._onURLRedirect) { this._onURLRedirect(redirectedURL); } } } if ((xhr.status >= 200 && xhr.status <= 299)) { if (this._waitForTotalLength) { return; } this._status = _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderStatus.kBuffering; } else { this._status = _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderStatus.kError; if (this._onError) { this._onError(_loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderErrors.HTTP_STATUS_CODE_INVALID, { code: xhr.status, msg: xhr.statusText }); } else { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_3__.RuntimeException('RangeLoader: Http code invalid, ' + xhr.status + ' ' + xhr.statusText); } } } }; RangeLoader.prototype._onProgress = function (e) { if (this._status === _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderStatus.kError) { // Ignore error response return; } if (this._contentLength === null) { var openNextRange = false; if (this._waitForTotalLength) { this._waitForTotalLength = false; this._totalLengthReceived = true; openNextRange = true; var total = e.total; this._internalAbort(); if (total != null & total !== 0) { this._totalLength = total; } } // calculate currrent request range's contentLength if (this._range.to === -1) { this._contentLength = this._totalLength - this._range.from; } else { // to !== -1 this._contentLength = this._range.to - this._range.from + 1; } if (openNextRange) { this._openSubRange(); return; } if (this._onContentLengthKnown) { this._onContentLengthKnown(this._contentLength); } } var delta = e.loaded - this._lastTimeLoaded; this._lastTimeLoaded = e.loaded; this._speedSampler.addBytes(delta); }; RangeLoader.prototype._normalizeSpeed = function (input) { var list = this._chunkSizeKBList; var last = list.length - 1; var mid = 0; var lbound = 0; var ubound = last; if (input < list[0]) { return list[0]; } while (lbound <= ubound) { mid = lbound + Math.floor((ubound - lbound) / 2); if (mid === last || (input >= list[mid] && input < list[mid + 1])) { return list[mid]; } else if (list[mid] < input) { lbound = mid + 1; } else { ubound = mid - 1; } } }; RangeLoader.prototype._onLoad = function (e) { if (this._status === _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderStatus.kError) { // Ignore error response return; } if (this._waitForTotalLength) { this._waitForTotalLength = false; return; } this._lastTimeLoaded = 0; var KBps = this._speedSampler.lastSecondKBps; if (KBps === 0) { this._zeroSpeedChunkCount++; if (this._zeroSpeedChunkCount >= 3) { // Try get currentKBps after 3 chunks KBps = this._speedSampler.currentKBps; } } if (KBps !== 0) { var normalized = this._normalizeSpeed(KBps); if (this._currentSpeedNormalized !== normalized) { this._currentSpeedNormalized = normalized; this._currentChunkSizeKB = normalized; } } var chunk = e.target.response; var byteStart = this._range.from + this._receivedLength; this._receivedLength += chunk.byteLength; var reportComplete = false; if (this._contentLength != null && this._receivedLength < this._contentLength) { // continue load next chunk this._openSubRange(); } else { reportComplete = true; } // dispatch received chunk if (this._onDataArrival) { this._onDataArrival(chunk, byteStart, this._receivedLength); } if (reportComplete) { this._status = _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderStatus.kComplete; if (this._onComplete) { this._onComplete(this._range.from, this._range.from + this._receivedLength - 1); } } }; RangeLoader.prototype._onXhrError = function (e) { this._status = _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderStatus.kError; var type = 0; var info = null; if (this._contentLength && this._receivedLength > 0 && this._receivedLength < this._contentLength) { type = _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderErrors.EARLY_EOF; info = { code: -1, msg: 'RangeLoader meet Early-Eof' }; } else { type = _loader_js__WEBPACK_IMPORTED_MODULE_2__.LoaderErrors.EXCEPTION; info = { code: -1, msg: e.constructor.name + ' ' + e.type }; } if (this._onError) { this._onError(type, info); } else { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_3__.RuntimeException(info.msg); } }; return RangeLoader; }(_loader_js__WEBPACK_IMPORTED_MODULE_2__.BaseLoader)); /* harmony default export */ __webpack_exports__["default"] = (RangeLoader); /***/ }), /***/ "./src/player/flv-player.js": /*!**********************************!*\ !*** ./src/player/flv-player.js ***! \**********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! events */ "./node_modules/events/events.js"); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/logger.js */ "./src/utils/logger.js"); /* harmony import */ var _utils_browser_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/browser.js */ "./src/utils/browser.js"); /* harmony import */ var _player_events_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./player-events.js */ "./src/player/player-events.js"); /* harmony import */ var _core_transmuxer_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/transmuxer.js */ "./src/core/transmuxer.js"); /* harmony import */ var _core_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/transmuxing-events.js */ "./src/core/transmuxing-events.js"); /* harmony import */ var _core_mse_controller_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../core/mse-controller.js */ "./src/core/mse-controller.js"); /* harmony import */ var _core_mse_events_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/mse-events.js */ "./src/core/mse-events.js"); /* harmony import */ var _player_errors_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./player-errors.js */ "./src/player/player-errors.js"); /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config.js */ "./src/config.js"); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var FlvPlayer = /** @class */ (function () { function FlvPlayer(mediaDataSource, config) { this.TAG = 'FlvPlayer'; this._type = 'FlvPlayer'; this._emitter = new (events__WEBPACK_IMPORTED_MODULE_0___default())(); this._config = (0,_config_js__WEBPACK_IMPORTED_MODULE_9__.createDefaultConfig)(); if (typeof config === 'object') { Object.assign(this._config, config); } if (mediaDataSource.type.toLowerCase() !== 'flv') { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_10__.InvalidArgumentException('FlvPlayer requires an flv MediaDataSource input!'); } if (mediaDataSource.isLive === true) { this._config.isLive = true; } this.e = { onvLoadedMetadata: this._onvLoadedMetadata.bind(this), onvSeeking: this._onvSeeking.bind(this), onvCanPlay: this._onvCanPlay.bind(this), onvStalled: this._onvStalled.bind(this), onvProgress: this._onvProgress.bind(this) }; if (self.performance && self.performance.now) { this._now = self.performance.now.bind(self.performance); } else { this._now = Date.now; } this._pendingSeekTime = null; // in seconds this._requestSetTime = false; this._seekpointRecord = null; this._progressChecker = null; this._mediaDataSource = mediaDataSource; this._mediaElement = null; this._msectl = null; this._transmuxer = null; this._mseSourceOpened = false; this._hasPendingLoad = false; this._receivedCanPlay = false; this._mediaInfo = null; this._statisticsInfo = null; var chromeNeedIDRFix = (_utils_browser_js__WEBPACK_IMPORTED_MODULE_2__.default.chrome && (_utils_browser_js__WEBPACK_IMPORTED_MODULE_2__.default.version.major < 50 || (_utils_browser_js__WEBPACK_IMPORTED_MODULE_2__.default.version.major === 50 && _utils_browser_js__WEBPACK_IMPORTED_MODULE_2__.default.version.build < 2661))); this._alwaysSeekKeyframe = (chromeNeedIDRFix || _utils_browser_js__WEBPACK_IMPORTED_MODULE_2__.default.msedge || _utils_browser_js__WEBPACK_IMPORTED_MODULE_2__.default.msie) ? true : false; if (this._alwaysSeekKeyframe) { this._config.accurateSeek = false; } } FlvPlayer.prototype.destroy = function () { if (this._progressChecker != null) { window.clearInterval(this._progressChecker); this._progressChecker = null; } if (this._transmuxer) { this.unload(); } if (this._mediaElement) { this.detachMediaElement(); } this.e = null; this._mediaDataSource = null; this._emitter.removeAllListeners(); this._emitter = null; }; FlvPlayer.prototype.on = function (event, listener) { var _this = this; if (event === _player_events_js__WEBPACK_IMPORTED_MODULE_3__.default.MEDIA_INFO) { if (this._mediaInfo != null) { Promise.resolve().then(function () { _this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_3__.default.MEDIA_INFO, _this.mediaInfo); }); } } else if (event === _player_events_js__WEBPACK_IMPORTED_MODULE_3__.default.STATISTICS_INFO) { if (this._statisticsInfo != null) { Promise.resolve().then(function () { _this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_3__.default.STATISTICS_INFO, _this.statisticsInfo); }); } } this._emitter.addListener(event, listener); }; FlvPlayer.prototype.off = function (event, listener) { this._emitter.removeListener(event, listener); }; FlvPlayer.prototype.attachMediaElement = function (mediaElement) { var _this = this; this._mediaElement = mediaElement; mediaElement.addEventListener('loadedmetadata', this.e.onvLoadedMetadata); mediaElement.addEventListener('seeking', this.e.onvSeeking); mediaElement.addEventListener('canplay', this.e.onvCanPlay); mediaElement.addEventListener('stalled', this.e.onvStalled); mediaElement.addEventListener('progress', this.e.onvProgress); this._msectl = new _core_mse_controller_js__WEBPACK_IMPORTED_MODULE_6__.default(this._config); this._msectl.on(_core_mse_events_js__WEBPACK_IMPORTED_MODULE_7__.default.UPDATE_END, this._onmseUpdateEnd.bind(this)); this._msectl.on(_core_mse_events_js__WEBPACK_IMPORTED_MODULE_7__.default.BUFFER_FULL, this._onmseBufferFull.bind(this)); this._msectl.on(_core_mse_events_js__WEBPACK_IMPORTED_MODULE_7__.default.SOURCE_OPEN, function () { _this._mseSourceOpened = true; if (_this._hasPendingLoad) { _this._hasPendingLoad = false; _this.load(); } }); this._msectl.on(_core_mse_events_js__WEBPACK_IMPORTED_MODULE_7__.default.ERROR, function (info) { _this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_3__.default.ERROR, _player_errors_js__WEBPACK_IMPORTED_MODULE_8__.ErrorTypes.MEDIA_ERROR, _player_errors_js__WEBPACK_IMPORTED_MODULE_8__.ErrorDetails.MEDIA_MSE_ERROR, info); }); this._msectl.attachMediaElement(mediaElement); if (this._pendingSeekTime != null) { try { mediaElement.currentTime = this._pendingSeekTime; this._pendingSeekTime = null; } catch (e) { // IE11 may throw InvalidStateError if readyState === 0 // We can defer set currentTime operation after loadedmetadata } } }; FlvPlayer.prototype.detachMediaElement = function () { if (this._mediaElement) { this._msectl.detachMediaElement(); this._mediaElement.removeEventListener('loadedmetadata', this.e.onvLoadedMetadata); this._mediaElement.removeEventListener('seeking', this.e.onvSeeking); this._mediaElement.removeEventListener('canplay', this.e.onvCanPlay); this._mediaElement.removeEventListener('stalled', this.e.onvStalled); this._mediaElement.removeEventListener('progress', this.e.onvProgress); this._mediaElement = null; } if (this._msectl) { this._msectl.destroy(); this._msectl = null; } }; FlvPlayer.prototype.load = function () { var _this = this; if (!this._mediaElement) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_10__.IllegalStateException('HTMLMediaElement must be attached before load()!'); } if (this._transmuxer) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_10__.IllegalStateException('FlvPlayer.load() has been called, please call unload() first!'); } if (this._hasPendingLoad) { return; } if (this._config.deferLoadAfterSourceOpen && this._mseSourceOpened === false) { this._hasPendingLoad = true; return; } if (this._mediaElement.readyState > 0) { this._requestSetTime = true; // IE11 may throw InvalidStateError if readyState === 0 this._mediaElement.currentTime = 0; } this._transmuxer = new _core_transmuxer_js__WEBPACK_IMPORTED_MODULE_4__.default(this._mediaDataSource, this._config); this._transmuxer.on(_core_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.INIT_SEGMENT, function (type, is) { _this._msectl.appendInitSegment(is); }); this._transmuxer.on(_core_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.MEDIA_SEGMENT, function (type, ms) { _this._msectl.appendMediaSegment(ms); // lazyLoad check if (_this._config.lazyLoad && !_this._config.isLive) { var currentTime = _this._mediaElement.currentTime; if (ms.info.endDts >= (currentTime + _this._config.lazyLoadMaxDuration) * 1000) { if (_this._progressChecker == null) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.v(_this.TAG, 'Maximum buffering duration exceeded, suspend transmuxing task'); _this._suspendTransmuxer(); } } } }); this._transmuxer.on(_core_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.LOADING_COMPLETE, function () { _this._msectl.endOfStream(); _this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_3__.default.LOADING_COMPLETE); }); this._transmuxer.on(_core_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.RECOVERED_EARLY_EOF, function () { _this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_3__.default.RECOVERED_EARLY_EOF); }); this._transmuxer.on(_core_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.IO_ERROR, function (detail, info) { _this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_3__.default.ERROR, _player_errors_js__WEBPACK_IMPORTED_MODULE_8__.ErrorTypes.NETWORK_ERROR, detail, info); }); this._transmuxer.on(_core_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.DEMUX_ERROR, function (detail, info) { _this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_3__.default.ERROR, _player_errors_js__WEBPACK_IMPORTED_MODULE_8__.ErrorTypes.MEDIA_ERROR, detail, { code: -1, msg: info }); }); this._transmuxer.on(_core_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.MEDIA_INFO, function (mediaInfo) { _this._mediaInfo = mediaInfo; _this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_3__.default.MEDIA_INFO, Object.assign({}, mediaInfo)); }); this._transmuxer.on(_core_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.METADATA_ARRIVED, function (metadata) { _this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_3__.default.METADATA_ARRIVED, metadata); }); this._transmuxer.on(_core_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.SCRIPTDATA_ARRIVED, function (data) { _this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_3__.default.SCRIPTDATA_ARRIVED, data); }); this._transmuxer.on(_core_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.STATISTICS_INFO, function (statInfo) { _this._statisticsInfo = _this._fillStatisticsInfo(statInfo); _this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_3__.default.STATISTICS_INFO, Object.assign({}, _this._statisticsInfo)); }); this._transmuxer.on(_core_transmuxing_events_js__WEBPACK_IMPORTED_MODULE_5__.default.RECOMMEND_SEEKPOINT, function (milliseconds) { if (_this._mediaElement && !_this._config.accurateSeek) { _this._requestSetTime = true; _this._mediaElement.currentTime = milliseconds / 1000; } }); this._transmuxer.open(); }; FlvPlayer.prototype.unload = function () { if (this._mediaElement) { this._mediaElement.pause(); } if (this._msectl) { this._msectl.seek(0); } if (this._transmuxer) { this._transmuxer.close(); this._transmuxer.destroy(); this._transmuxer = null; } }; FlvPlayer.prototype.play = function () { return this._mediaElement.play(); }; FlvPlayer.prototype.pause = function () { this._mediaElement.pause(); }; Object.defineProperty(FlvPlayer.prototype, "type", { get: function () { return this._type; }, enumerable: false, configurable: true }); Object.defineProperty(FlvPlayer.prototype, "buffered", { get: function () { return this._mediaElement.buffered; }, enumerable: false, configurable: true }); Object.defineProperty(FlvPlayer.prototype, "duration", { get: function () { return this._mediaElement.duration; }, enumerable: false, configurable: true }); Object.defineProperty(FlvPlayer.prototype, "volume", { get: function () { return this._mediaElement.volume; }, set: function (value) { this._mediaElement.volume = value; }, enumerable: false, configurable: true }); Object.defineProperty(FlvPlayer.prototype, "muted", { get: function () { return this._mediaElement.muted; }, set: function (muted) { this._mediaElement.muted = muted; }, enumerable: false, configurable: true }); Object.defineProperty(FlvPlayer.prototype, "currentTime", { get: function () { if (this._mediaElement) { return this._mediaElement.currentTime; } return 0; }, set: function (seconds) { if (this._mediaElement) { this._internalSeek(seconds); } else { this._pendingSeekTime = seconds; } }, enumerable: false, configurable: true }); Object.defineProperty(FlvPlayer.prototype, "mediaInfo", { get: function () { return Object.assign({}, this._mediaInfo); }, enumerable: false, configurable: true }); Object.defineProperty(FlvPlayer.prototype, "statisticsInfo", { get: function () { if (this._statisticsInfo == null) { this._statisticsInfo = {}; } this._statisticsInfo = this._fillStatisticsInfo(this._statisticsInfo); return Object.assign({}, this._statisticsInfo); }, enumerable: false, configurable: true }); FlvPlayer.prototype._fillStatisticsInfo = function (statInfo) { statInfo.playerType = this._type; if (!(this._mediaElement instanceof HTMLVideoElement)) { return statInfo; } var hasQualityInfo = true; var decoded = 0; var dropped = 0; if (this._mediaElement.getVideoPlaybackQuality) { var quality = this._mediaElement.getVideoPlaybackQuality(); decoded = quality.totalVideoFrames; dropped = quality.droppedVideoFrames; } else if (this._mediaElement.webkitDecodedFrameCount != undefined) { decoded = this._mediaElement.webkitDecodedFrameCount; dropped = this._mediaElement.webkitDroppedFrameCount; } else { hasQualityInfo = false; } if (hasQualityInfo) { statInfo.decodedFrames = decoded; statInfo.droppedFrames = dropped; } return statInfo; }; FlvPlayer.prototype._onmseUpdateEnd = function () { if (!this._config.lazyLoad || this._config.isLive) { return; } var buffered = this._mediaElement.buffered; var currentTime = this._mediaElement.currentTime; var currentRangeStart = 0; var currentRangeEnd = 0; for (var i = 0; i < buffered.length; i++) { var start = buffered.start(i); var end = buffered.end(i); if (start <= currentTime && currentTime < end) { currentRangeStart = start; currentRangeEnd = end; break; } } if (currentRangeEnd >= currentTime + this._config.lazyLoadMaxDuration && this._progressChecker == null) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.v(this.TAG, 'Maximum buffering duration exceeded, suspend transmuxing task'); this._suspendTransmuxer(); } }; FlvPlayer.prototype._onmseBufferFull = function () { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.v(this.TAG, 'MSE SourceBuffer is full, suspend transmuxing task'); if (this._progressChecker == null) { this._suspendTransmuxer(); } }; FlvPlayer.prototype._suspendTransmuxer = function () { if (this._transmuxer) { this._transmuxer.pause(); if (this._progressChecker == null) { this._progressChecker = window.setInterval(this._checkProgressAndResume.bind(this), 1000); } } }; FlvPlayer.prototype._checkProgressAndResume = function () { var currentTime = this._mediaElement.currentTime; var buffered = this._mediaElement.buffered; var needResume = false; for (var i = 0; i < buffered.length; i++) { var from = buffered.start(i); var to = buffered.end(i); if (currentTime >= from && currentTime < to) { if (currentTime >= to - this._config.lazyLoadRecoverDuration) { needResume = true; } break; } } if (needResume) { window.clearInterval(this._progressChecker); this._progressChecker = null; if (needResume) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.v(this.TAG, 'Continue loading from paused position'); this._transmuxer.resume(); } } }; FlvPlayer.prototype._isTimepointBuffered = function (seconds) { var buffered = this._mediaElement.buffered; for (var i = 0; i < buffered.length; i++) { var from = buffered.start(i); var to = buffered.end(i); if (seconds >= from && seconds < to) { return true; } } return false; }; FlvPlayer.prototype._internalSeek = function (seconds) { var directSeek = this._isTimepointBuffered(seconds); var directSeekBegin = false; var directSeekBeginTime = 0; if (seconds < 1.0 && this._mediaElement.buffered.length > 0) { var videoBeginTime = this._mediaElement.buffered.start(0); if ((videoBeginTime < 1.0 && seconds < videoBeginTime) || _utils_browser_js__WEBPACK_IMPORTED_MODULE_2__.default.safari) { directSeekBegin = true; // also workaround for Safari: Seek to 0 may cause video stuck, use 0.1 to avoid directSeekBeginTime = _utils_browser_js__WEBPACK_IMPORTED_MODULE_2__.default.safari ? 0.1 : videoBeginTime; } } if (directSeekBegin) { // seek to video begin, set currentTime directly if beginPTS buffered this._requestSetTime = true; this._mediaElement.currentTime = directSeekBeginTime; } else if (directSeek) { // buffered position if (!this._alwaysSeekKeyframe) { this._requestSetTime = true; this._mediaElement.currentTime = seconds; } else { var idr = this._msectl.getNearestKeyframe(Math.floor(seconds * 1000)); this._requestSetTime = true; if (idr != null) { this._mediaElement.currentTime = idr.dts / 1000; } else { this._mediaElement.currentTime = seconds; } } if (this._progressChecker != null) { this._checkProgressAndResume(); } } else { if (this._progressChecker != null) { window.clearInterval(this._progressChecker); this._progressChecker = null; } this._msectl.seek(seconds); this._transmuxer.seek(Math.floor(seconds * 1000)); // in milliseconds // no need to set mediaElement.currentTime if non-accurateSeek, // just wait for the recommend_seekpoint callback if (this._config.accurateSeek) { this._requestSetTime = true; this._mediaElement.currentTime = seconds; } } }; FlvPlayer.prototype._checkAndApplyUnbufferedSeekpoint = function () { if (this._seekpointRecord) { if (this._seekpointRecord.recordTime <= this._now() - 100) { var target = this._mediaElement.currentTime; this._seekpointRecord = null; if (!this._isTimepointBuffered(target)) { if (this._progressChecker != null) { window.clearTimeout(this._progressChecker); this._progressChecker = null; } // .currentTime is consists with .buffered timestamp // Chrome/Edge use DTS, while FireFox/Safari use PTS this._msectl.seek(target); this._transmuxer.seek(Math.floor(target * 1000)); // set currentTime if accurateSeek, or wait for recommend_seekpoint callback if (this._config.accurateSeek) { this._requestSetTime = true; this._mediaElement.currentTime = target; } } } else { window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this), 50); } } }; FlvPlayer.prototype._checkAndResumeStuckPlayback = function (stalled) { var media = this._mediaElement; if (stalled || !this._receivedCanPlay || media.readyState < 2) { // HAVE_CURRENT_DATA var buffered = media.buffered; if (buffered.length > 0 && media.currentTime < buffered.start(0)) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.w(this.TAG, "Playback seems stuck at " + media.currentTime + ", seek to " + buffered.start(0)); this._requestSetTime = true; this._mediaElement.currentTime = buffered.start(0); this._mediaElement.removeEventListener('progress', this.e.onvProgress); } } else { // Playback didn't stuck, remove progress event listener this._mediaElement.removeEventListener('progress', this.e.onvProgress); } }; FlvPlayer.prototype._onvLoadedMetadata = function (e) { if (this._pendingSeekTime != null) { this._mediaElement.currentTime = this._pendingSeekTime; this._pendingSeekTime = null; } }; FlvPlayer.prototype._onvSeeking = function (e) { var target = this._mediaElement.currentTime; var buffered = this._mediaElement.buffered; if (this._requestSetTime) { this._requestSetTime = false; return; } if (target < 1.0 && buffered.length > 0) { // seek to video begin, set currentTime directly if beginPTS buffered var videoBeginTime = buffered.start(0); if ((videoBeginTime < 1.0 && target < videoBeginTime) || _utils_browser_js__WEBPACK_IMPORTED_MODULE_2__.default.safari) { this._requestSetTime = true; // also workaround for Safari: Seek to 0 may cause video stuck, use 0.1 to avoid this._mediaElement.currentTime = _utils_browser_js__WEBPACK_IMPORTED_MODULE_2__.default.safari ? 0.1 : videoBeginTime; return; } } if (this._isTimepointBuffered(target)) { if (this._alwaysSeekKeyframe) { var idr = this._msectl.getNearestKeyframe(Math.floor(target * 1000)); if (idr != null) { this._requestSetTime = true; this._mediaElement.currentTime = idr.dts / 1000; } } if (this._progressChecker != null) { this._checkProgressAndResume(); } return; } this._seekpointRecord = { seekPoint: target, recordTime: this._now() }; window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this), 50); }; FlvPlayer.prototype._onvCanPlay = function (e) { this._receivedCanPlay = true; this._mediaElement.removeEventListener('canplay', this.e.onvCanPlay); }; FlvPlayer.prototype._onvStalled = function (e) { this._checkAndResumeStuckPlayback(true); }; FlvPlayer.prototype._onvProgress = function (e) { this._checkAndResumeStuckPlayback(); }; return FlvPlayer; }()); /* harmony default export */ __webpack_exports__["default"] = (FlvPlayer); /***/ }), /***/ "./src/player/native-player.js": /*!*************************************!*\ !*** ./src/player/native-player.js ***! \*************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! events */ "./node_modules/events/events.js"); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _player_events_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./player-events.js */ "./src/player/player-events.js"); /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config.js */ "./src/config.js"); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Player wrapper for browser's native player (HTMLVideoElement) without MediaSource src. var NativePlayer = /** @class */ (function () { function NativePlayer(mediaDataSource, config) { this.TAG = 'NativePlayer'; this._type = 'NativePlayer'; this._emitter = new (events__WEBPACK_IMPORTED_MODULE_0___default())(); this._config = (0,_config_js__WEBPACK_IMPORTED_MODULE_2__.createDefaultConfig)(); if (typeof config === 'object') { Object.assign(this._config, config); } if (mediaDataSource.type.toLowerCase() === 'flv') { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_3__.InvalidArgumentException('NativePlayer does\'t support flv MediaDataSource input!'); } if (mediaDataSource.hasOwnProperty('segments')) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_3__.InvalidArgumentException("NativePlayer(" + mediaDataSource.type + ") doesn't support multipart playback!"); } this.e = { onvLoadedMetadata: this._onvLoadedMetadata.bind(this) }; this._pendingSeekTime = null; this._statisticsReporter = null; this._mediaDataSource = mediaDataSource; this._mediaElement = null; } NativePlayer.prototype.destroy = function () { if (this._mediaElement) { this.unload(); this.detachMediaElement(); } this.e = null; this._mediaDataSource = null; this._emitter.removeAllListeners(); this._emitter = null; }; NativePlayer.prototype.on = function (event, listener) { var _this = this; if (event === _player_events_js__WEBPACK_IMPORTED_MODULE_1__.default.MEDIA_INFO) { if (this._mediaElement != null && this._mediaElement.readyState !== 0) { // HAVE_NOTHING Promise.resolve().then(function () { _this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_1__.default.MEDIA_INFO, _this.mediaInfo); }); } } else if (event === _player_events_js__WEBPACK_IMPORTED_MODULE_1__.default.STATISTICS_INFO) { if (this._mediaElement != null && this._mediaElement.readyState !== 0) { Promise.resolve().then(function () { _this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_1__.default.STATISTICS_INFO, _this.statisticsInfo); }); } } this._emitter.addListener(event, listener); }; NativePlayer.prototype.off = function (event, listener) { this._emitter.removeListener(event, listener); }; NativePlayer.prototype.attachMediaElement = function (mediaElement) { this._mediaElement = mediaElement; mediaElement.addEventListener('loadedmetadata', this.e.onvLoadedMetadata); if (this._pendingSeekTime != null) { try { mediaElement.currentTime = this._pendingSeekTime; this._pendingSeekTime = null; } catch (e) { // IE11 may throw InvalidStateError if readyState === 0 // Defer set currentTime operation after loadedmetadata } } }; NativePlayer.prototype.detachMediaElement = function () { if (this._mediaElement) { this._mediaElement.src = ''; this._mediaElement.removeAttribute('src'); this._mediaElement.removeEventListener('loadedmetadata', this.e.onvLoadedMetadata); this._mediaElement = null; } if (this._statisticsReporter != null) { window.clearInterval(this._statisticsReporter); this._statisticsReporter = null; } }; NativePlayer.prototype.load = function () { if (!this._mediaElement) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_3__.IllegalStateException('HTMLMediaElement must be attached before load()!'); } this._mediaElement.src = this._mediaDataSource.url; if (this._mediaElement.readyState > 0) { this._mediaElement.currentTime = 0; } this._mediaElement.preload = 'auto'; this._mediaElement.load(); this._statisticsReporter = window.setInterval(this._reportStatisticsInfo.bind(this), this._config.statisticsInfoReportInterval); }; NativePlayer.prototype.unload = function () { if (this._mediaElement) { this._mediaElement.src = ''; this._mediaElement.removeAttribute('src'); } if (this._statisticsReporter != null) { window.clearInterval(this._statisticsReporter); this._statisticsReporter = null; } }; NativePlayer.prototype.play = function () { return this._mediaElement.play(); }; NativePlayer.prototype.pause = function () { this._mediaElement.pause(); }; Object.defineProperty(NativePlayer.prototype, "type", { get: function () { return this._type; }, enumerable: false, configurable: true }); Object.defineProperty(NativePlayer.prototype, "buffered", { get: function () { return this._mediaElement.buffered; }, enumerable: false, configurable: true }); Object.defineProperty(NativePlayer.prototype, "duration", { get: function () { return this._mediaElement.duration; }, enumerable: false, configurable: true }); Object.defineProperty(NativePlayer.prototype, "volume", { get: function () { return this._mediaElement.volume; }, set: function (value) { this._mediaElement.volume = value; }, enumerable: false, configurable: true }); Object.defineProperty(NativePlayer.prototype, "muted", { get: function () { return this._mediaElement.muted; }, set: function (muted) { this._mediaElement.muted = muted; }, enumerable: false, configurable: true }); Object.defineProperty(NativePlayer.prototype, "currentTime", { get: function () { if (this._mediaElement) { return this._mediaElement.currentTime; } return 0; }, set: function (seconds) { if (this._mediaElement) { this._mediaElement.currentTime = seconds; } else { this._pendingSeekTime = seconds; } }, enumerable: false, configurable: true }); Object.defineProperty(NativePlayer.prototype, "mediaInfo", { get: function () { var mediaPrefix = (this._mediaElement instanceof HTMLAudioElement) ? 'audio/' : 'video/'; var info = { mimeType: mediaPrefix + this._mediaDataSource.type }; if (this._mediaElement) { info.duration = Math.floor(this._mediaElement.duration * 1000); if (this._mediaElement instanceof HTMLVideoElement) { info.width = this._mediaElement.videoWidth; info.height = this._mediaElement.videoHeight; } } return info; }, enumerable: false, configurable: true }); Object.defineProperty(NativePlayer.prototype, "statisticsInfo", { get: function () { var info = { playerType: this._type, url: this._mediaDataSource.url }; if (!(this._mediaElement instanceof HTMLVideoElement)) { return info; } var hasQualityInfo = true; var decoded = 0; var dropped = 0; if (this._mediaElement.getVideoPlaybackQuality) { var quality = this._mediaElement.getVideoPlaybackQuality(); decoded = quality.totalVideoFrames; dropped = quality.droppedVideoFrames; } else if (this._mediaElement.webkitDecodedFrameCount != undefined) { decoded = this._mediaElement.webkitDecodedFrameCount; dropped = this._mediaElement.webkitDroppedFrameCount; } else { hasQualityInfo = false; } if (hasQualityInfo) { info.decodedFrames = decoded; info.droppedFrames = dropped; } return info; }, enumerable: false, configurable: true }); NativePlayer.prototype._onvLoadedMetadata = function (e) { if (this._pendingSeekTime != null) { this._mediaElement.currentTime = this._pendingSeekTime; this._pendingSeekTime = null; } this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_1__.default.MEDIA_INFO, this.mediaInfo); }; NativePlayer.prototype._reportStatisticsInfo = function () { this._emitter.emit(_player_events_js__WEBPACK_IMPORTED_MODULE_1__.default.STATISTICS_INFO, this.statisticsInfo); }; return NativePlayer; }()); /* harmony default export */ __webpack_exports__["default"] = (NativePlayer); /***/ }), /***/ "./src/player/player-errors.js": /*!*************************************!*\ !*** ./src/player/player-errors.js ***! \*************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "ErrorTypes": function() { return /* binding */ ErrorTypes; }, /* harmony export */ "ErrorDetails": function() { return /* binding */ ErrorDetails; } /* harmony export */ }); /* harmony import */ var _io_loader_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../io/loader.js */ "./src/io/loader.js"); /* harmony import */ var _demux_demux_errors_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../demux/demux-errors.js */ "./src/demux/demux-errors.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var ErrorTypes = { NETWORK_ERROR: 'NetworkError', MEDIA_ERROR: 'MediaError', OTHER_ERROR: 'OtherError' }; var ErrorDetails = { NETWORK_EXCEPTION: _io_loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderErrors.EXCEPTION, NETWORK_STATUS_CODE_INVALID: _io_loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderErrors.HTTP_STATUS_CODE_INVALID, NETWORK_TIMEOUT: _io_loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderErrors.CONNECTING_TIMEOUT, NETWORK_UNRECOVERABLE_EARLY_EOF: _io_loader_js__WEBPACK_IMPORTED_MODULE_0__.LoaderErrors.UNRECOVERABLE_EARLY_EOF, MEDIA_MSE_ERROR: 'MediaMSEError', MEDIA_FORMAT_ERROR: _demux_demux_errors_js__WEBPACK_IMPORTED_MODULE_1__.default.FORMAT_ERROR, MEDIA_FORMAT_UNSUPPORTED: _demux_demux_errors_js__WEBPACK_IMPORTED_MODULE_1__.default.FORMAT_UNSUPPORTED, MEDIA_CODEC_UNSUPPORTED: _demux_demux_errors_js__WEBPACK_IMPORTED_MODULE_1__.default.CODEC_UNSUPPORTED }; /***/ }), /***/ "./src/player/player-events.js": /*!*************************************!*\ !*** ./src/player/player-events.js ***! \*************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var PlayerEvents = { ERROR: 'error', LOADING_COMPLETE: 'loading_complete', RECOVERED_EARLY_EOF: 'recovered_early_eof', MEDIA_INFO: 'media_info', METADATA_ARRIVED: 'metadata_arrived', SCRIPTDATA_ARRIVED: 'scriptdata_arrived', STATISTICS_INFO: 'statistics_info' }; /* harmony default export */ __webpack_exports__["default"] = (PlayerEvents); /***/ }), /***/ "./src/remux/aac-silent.js": /*!*********************************!*\ !*** ./src/remux/aac-silent.js ***! \*********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * This file is modified from dailymotion's hls.js library (hls.js/src/helper/aac.js) * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var AAC = /** @class */ (function () { function AAC() { } AAC.getSilentFrame = function (codec, channelCount) { if (codec === 'mp4a.40.2') { // handle LC-AAC if (channelCount === 1) { return new Uint8Array([0x00, 0xc8, 0x00, 0x80, 0x23, 0x80]); } else if (channelCount === 2) { return new Uint8Array([0x21, 0x00, 0x49, 0x90, 0x02, 0x19, 0x00, 0x23, 0x80]); } else if (channelCount === 3) { return new Uint8Array([0x00, 0xc8, 0x00, 0x80, 0x20, 0x84, 0x01, 0x26, 0x40, 0x08, 0x64, 0x00, 0x8e]); } else if (channelCount === 4) { return new Uint8Array([0x00, 0xc8, 0x00, 0x80, 0x20, 0x84, 0x01, 0x26, 0x40, 0x08, 0x64, 0x00, 0x80, 0x2c, 0x80, 0x08, 0x02, 0x38]); } else if (channelCount === 5) { return new Uint8Array([0x00, 0xc8, 0x00, 0x80, 0x20, 0x84, 0x01, 0x26, 0x40, 0x08, 0x64, 0x00, 0x82, 0x30, 0x04, 0x99, 0x00, 0x21, 0x90, 0x02, 0x38]); } else if (channelCount === 6) { return new Uint8Array([0x00, 0xc8, 0x00, 0x80, 0x20, 0x84, 0x01, 0x26, 0x40, 0x08, 0x64, 0x00, 0x82, 0x30, 0x04, 0x99, 0x00, 0x21, 0x90, 0x02, 0x00, 0xb2, 0x00, 0x20, 0x08, 0xe0]); } } else { // handle HE-AAC (mp4a.40.5 / mp4a.40.29) if (channelCount === 1) { // ffmpeg -y -f lavfi -i "aevalsrc=0:d=0.05" -c:a libfdk_aac -profile:a aac_he -b:a 4k output.aac && hexdump -v -e '16/1 "0x%x," "\n"' -v output.aac return new Uint8Array([0x1, 0x40, 0x22, 0x80, 0xa3, 0x4e, 0xe6, 0x80, 0xba, 0x8, 0x0, 0x0, 0x0, 0x1c, 0x6, 0xf1, 0xc1, 0xa, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5e]); } else if (channelCount === 2) { // ffmpeg -y -f lavfi -i "aevalsrc=0|0:d=0.05" -c:a libfdk_aac -profile:a aac_he_v2 -b:a 4k output.aac && hexdump -v -e '16/1 "0x%x," "\n"' -v output.aac return new Uint8Array([0x1, 0x40, 0x22, 0x80, 0xa3, 0x5e, 0xe6, 0x80, 0xba, 0x8, 0x0, 0x0, 0x0, 0x0, 0x95, 0x0, 0x6, 0xf1, 0xa1, 0xa, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5e]); } else if (channelCount === 3) { // ffmpeg -y -f lavfi -i "aevalsrc=0|0|0:d=0.05" -c:a libfdk_aac -profile:a aac_he_v2 -b:a 4k output.aac && hexdump -v -e '16/1 "0x%x," "\n"' -v output.aac return new Uint8Array([0x1, 0x40, 0x22, 0x80, 0xa3, 0x5e, 0xe6, 0x80, 0xba, 0x8, 0x0, 0x0, 0x0, 0x0, 0x95, 0x0, 0x6, 0xf1, 0xa1, 0xa, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5e]); } } return null; }; return AAC; }()); /* harmony default export */ __webpack_exports__["default"] = (AAC); /***/ }), /***/ "./src/remux/mp4-generator.js": /*!************************************!*\ !*** ./src/remux/mp4-generator.js ***! \************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * This file is derived from dailymotion's hls.js library (hls.js/src/remux/mp4-generator.js) * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // MP4 boxes generator for ISO BMFF (ISO Base Media File Format, defined in ISO/IEC 14496-12) var MP4 = /** @class */ (function () { function MP4() { } MP4.init = function () { MP4.types = { avc1: [], avcC: [], btrt: [], dinf: [], dref: [], esds: [], ftyp: [], hdlr: [], mdat: [], mdhd: [], mdia: [], mfhd: [], minf: [], moof: [], moov: [], mp4a: [], mvex: [], mvhd: [], sdtp: [], stbl: [], stco: [], stsc: [], stsd: [], stsz: [], stts: [], tfdt: [], tfhd: [], traf: [], trak: [], trun: [], trex: [], tkhd: [], vmhd: [], smhd: [], '.mp3': [] }; for (var name_1 in MP4.types) { if (MP4.types.hasOwnProperty(name_1)) { MP4.types[name_1] = [ name_1.charCodeAt(0), name_1.charCodeAt(1), name_1.charCodeAt(2), name_1.charCodeAt(3) ]; } } var constants = MP4.constants = {}; constants.FTYP = new Uint8Array([ 0x69, 0x73, 0x6F, 0x6D, 0x0, 0x0, 0x0, 0x1, 0x69, 0x73, 0x6F, 0x6D, 0x61, 0x76, 0x63, 0x31 // avc1 ]); constants.STSD_PREFIX = new Uint8Array([ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 // entry_count ]); constants.STTS = new Uint8Array([ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // entry_count ]); constants.STSC = constants.STCO = constants.STTS; constants.STSZ = new Uint8Array([ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // sample_count ]); constants.HDLR_VIDEO = new Uint8Array([ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x69, 0x64, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x56, 0x69, 0x64, 0x65, 0x6F, 0x48, 0x61, 0x6E, 0x64, 0x6C, 0x65, 0x72, 0x00 // name: VideoHandler ]); constants.HDLR_AUDIO = new Uint8Array([ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x6F, 0x75, 0x6E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x6F, 0x75, 0x6E, 0x64, 0x48, 0x61, 0x6E, 0x64, 0x6C, 0x65, 0x72, 0x00 // name: SoundHandler ]); constants.DREF = new Uint8Array([ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0C, 0x75, 0x72, 0x6C, 0x20, 0x00, 0x00, 0x00, 0x01 // version(0) + flags ]); // Sound media header constants.SMHD = new Uint8Array([ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // balance(2) + reserved(2) ]); // video media header constants.VMHD = new Uint8Array([ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ]); }; // Generate a box MP4.box = function (type) { var size = 8; var result = null; var datas = Array.prototype.slice.call(arguments, 1); var arrayCount = datas.length; for (var i = 0; i < arrayCount; i++) { size += datas[i].byteLength; } result = new Uint8Array(size); result[0] = (size >>> 24) & 0xFF; // size result[1] = (size >>> 16) & 0xFF; result[2] = (size >>> 8) & 0xFF; result[3] = (size) & 0xFF; result.set(type, 4); // type var offset = 8; for (var i = 0; i < arrayCount; i++) { // data body result.set(datas[i], offset); offset += datas[i].byteLength; } return result; }; // emit ftyp & moov MP4.generateInitSegment = function (meta) { var ftyp = MP4.box(MP4.types.ftyp, MP4.constants.FTYP); var moov = MP4.moov(meta); var result = new Uint8Array(ftyp.byteLength + moov.byteLength); result.set(ftyp, 0); result.set(moov, ftyp.byteLength); return result; }; // Movie metadata box MP4.moov = function (meta) { var mvhd = MP4.mvhd(meta.timescale, meta.duration); var trak = MP4.trak(meta); var mvex = MP4.mvex(meta); return MP4.box(MP4.types.moov, mvhd, trak, mvex); }; // Movie header box MP4.mvhd = function (timescale, duration) { return MP4.box(MP4.types.mvhd, new Uint8Array([ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (timescale >>> 24) & 0xFF, (timescale >>> 16) & 0xFF, (timescale >>> 8) & 0xFF, (timescale) & 0xFF, (duration >>> 24) & 0xFF, (duration >>> 16) & 0xFF, (duration >>> 8) & 0xFF, (duration) & 0xFF, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF // next_track_ID ])); }; // Track box MP4.trak = function (meta) { return MP4.box(MP4.types.trak, MP4.tkhd(meta), MP4.mdia(meta)); }; // Track header box MP4.tkhd = function (meta) { var trackId = meta.id, duration = meta.duration; var width = meta.presentWidth, height = meta.presentHeight; return MP4.box(MP4.types.tkhd, new Uint8Array([ 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (trackId >>> 24) & 0xFF, (trackId >>> 16) & 0xFF, (trackId >>> 8) & 0xFF, (trackId) & 0xFF, 0x00, 0x00, 0x00, 0x00, (duration >>> 24) & 0xFF, (duration >>> 16) & 0xFF, (duration >>> 8) & 0xFF, (duration) & 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, (width >>> 8) & 0xFF, (width) & 0xFF, 0x00, 0x00, (height >>> 8) & 0xFF, (height) & 0xFF, 0x00, 0x00 ])); }; // Media Box MP4.mdia = function (meta) { return MP4.box(MP4.types.mdia, MP4.mdhd(meta), MP4.hdlr(meta), MP4.minf(meta)); }; // Media header box MP4.mdhd = function (meta) { var timescale = meta.timescale; var duration = meta.duration; return MP4.box(MP4.types.mdhd, new Uint8Array([ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (timescale >>> 24) & 0xFF, (timescale >>> 16) & 0xFF, (timescale >>> 8) & 0xFF, (timescale) & 0xFF, (duration >>> 24) & 0xFF, (duration >>> 16) & 0xFF, (duration >>> 8) & 0xFF, (duration) & 0xFF, 0x55, 0xC4, 0x00, 0x00 // pre_defined = 0 ])); }; // Media handler reference box MP4.hdlr = function (meta) { var data = null; if (meta.type === 'audio') { data = MP4.constants.HDLR_AUDIO; } else { data = MP4.constants.HDLR_VIDEO; } return MP4.box(MP4.types.hdlr, data); }; // Media infomation box MP4.minf = function (meta) { var xmhd = null; if (meta.type === 'audio') { xmhd = MP4.box(MP4.types.smhd, MP4.constants.SMHD); } else { xmhd = MP4.box(MP4.types.vmhd, MP4.constants.VMHD); } return MP4.box(MP4.types.minf, xmhd, MP4.dinf(), MP4.stbl(meta)); }; // Data infomation box MP4.dinf = function () { var result = MP4.box(MP4.types.dinf, MP4.box(MP4.types.dref, MP4.constants.DREF)); return result; }; // Sample table box MP4.stbl = function (meta) { var result = MP4.box(MP4.types.stbl, // type: stbl MP4.stsd(meta), // Sample Description Table MP4.box(MP4.types.stts, MP4.constants.STTS), // Time-To-Sample MP4.box(MP4.types.stsc, MP4.constants.STSC), // Sample-To-Chunk MP4.box(MP4.types.stsz, MP4.constants.STSZ), // Sample size MP4.box(MP4.types.stco, MP4.constants.STCO) // Chunk offset ); return result; }; // Sample description box MP4.stsd = function (meta) { if (meta.type === 'audio') { if (meta.codec === 'mp3') { return MP4.box(MP4.types.stsd, MP4.constants.STSD_PREFIX, MP4.mp3(meta)); } // else: aac -> mp4a return MP4.box(MP4.types.stsd, MP4.constants.STSD_PREFIX, MP4.mp4a(meta)); } else { return MP4.box(MP4.types.stsd, MP4.constants.STSD_PREFIX, MP4.avc1(meta)); } }; MP4.mp3 = function (meta) { var channelCount = meta.channelCount; var sampleRate = meta.audioSampleRate; var data = new Uint8Array([ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, channelCount, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, (sampleRate >>> 8) & 0xFF, (sampleRate) & 0xFF, 0x00, 0x00 ]); return MP4.box(MP4.types['.mp3'], data); }; MP4.mp4a = function (meta) { var channelCount = meta.channelCount; var sampleRate = meta.audioSampleRate; var data = new Uint8Array([ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, channelCount, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, (sampleRate >>> 8) & 0xFF, (sampleRate) & 0xFF, 0x00, 0x00 ]); return MP4.box(MP4.types.mp4a, data, MP4.esds(meta)); }; MP4.esds = function (meta) { var config = meta.config || []; var configSize = config.length; var data = new Uint8Array([ 0x00, 0x00, 0x00, 0x00, 0x03, 0x17 + configSize, 0x00, 0x01, 0x00, 0x04, 0x0F + configSize, 0x40, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05 // descriptor_type ].concat([ configSize ]).concat(config).concat([ 0x06, 0x01, 0x02 // GASpecificConfig ])); return MP4.box(MP4.types.esds, data); }; MP4.avc1 = function (meta) { var avcc = meta.avcc; var width = meta.codecWidth, height = meta.codecHeight; var data = new Uint8Array([ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (width >>> 8) & 0xFF, (width) & 0xFF, (height >>> 8) & 0xFF, (height) & 0xFF, 0x00, 0x48, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0A, 0x78, 0x71, 0x71, 0x2F, 0x66, 0x6C, 0x76, 0x2E, 0x6A, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0xFF, 0xFF // pre_defined = -1 ]); return MP4.box(MP4.types.avc1, data, MP4.box(MP4.types.avcC, avcc)); }; // Movie Extends box MP4.mvex = function (meta) { return MP4.box(MP4.types.mvex, MP4.trex(meta)); }; // Track Extends box MP4.trex = function (meta) { var trackId = meta.id; var data = new Uint8Array([ 0x00, 0x00, 0x00, 0x00, (trackId >>> 24) & 0xFF, (trackId >>> 16) & 0xFF, (trackId >>> 8) & 0xFF, (trackId) & 0xFF, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01 // default_sample_flags ]); return MP4.box(MP4.types.trex, data); }; // Movie fragment box MP4.moof = function (track, baseMediaDecodeTime) { return MP4.box(MP4.types.moof, MP4.mfhd(track.sequenceNumber), MP4.traf(track, baseMediaDecodeTime)); }; MP4.mfhd = function (sequenceNumber) { var data = new Uint8Array([ 0x00, 0x00, 0x00, 0x00, (sequenceNumber >>> 24) & 0xFF, (sequenceNumber >>> 16) & 0xFF, (sequenceNumber >>> 8) & 0xFF, (sequenceNumber) & 0xFF ]); return MP4.box(MP4.types.mfhd, data); }; // Track fragment box MP4.traf = function (track, baseMediaDecodeTime) { var trackId = track.id; // Track fragment header box var tfhd = MP4.box(MP4.types.tfhd, new Uint8Array([ 0x00, 0x00, 0x00, 0x00, (trackId >>> 24) & 0xFF, (trackId >>> 16) & 0xFF, (trackId >>> 8) & 0xFF, (trackId) & 0xFF ])); // Track Fragment Decode Time var tfdt = MP4.box(MP4.types.tfdt, new Uint8Array([ 0x00, 0x00, 0x00, 0x00, (baseMediaDecodeTime >>> 24) & 0xFF, (baseMediaDecodeTime >>> 16) & 0xFF, (baseMediaDecodeTime >>> 8) & 0xFF, (baseMediaDecodeTime) & 0xFF ])); var sdtp = MP4.sdtp(track); var trun = MP4.trun(track, sdtp.byteLength + 16 + 16 + 8 + 16 + 8 + 8); return MP4.box(MP4.types.traf, tfhd, tfdt, trun, sdtp); }; // Sample Dependency Type box MP4.sdtp = function (track) { var samples = track.samples || []; var sampleCount = samples.length; var data = new Uint8Array(4 + sampleCount); // 0~4 bytes: version(0) & flags for (var i = 0; i < sampleCount; i++) { var flags = samples[i].flags; data[i + 4] = (flags.isLeading << 6) // is_leading: 2 (bit) | (flags.dependsOn << 4) // sample_depends_on | (flags.isDependedOn << 2) // sample_is_depended_on | (flags.hasRedundancy); // sample_has_redundancy } return MP4.box(MP4.types.sdtp, data); }; // Track fragment run box MP4.trun = function (track, offset) { var samples = track.samples || []; var sampleCount = samples.length; var dataSize = 12 + 16 * sampleCount; var data = new Uint8Array(dataSize); offset += 8 + dataSize; data.set([ 0x00, 0x00, 0x0F, 0x01, (sampleCount >>> 24) & 0xFF, (sampleCount >>> 16) & 0xFF, (sampleCount >>> 8) & 0xFF, (sampleCount) & 0xFF, (offset >>> 24) & 0xFF, (offset >>> 16) & 0xFF, (offset >>> 8) & 0xFF, (offset) & 0xFF ], 0); for (var i = 0; i < sampleCount; i++) { var duration = samples[i].duration; var size = samples[i].size; var flags = samples[i].flags; var cts = samples[i].cts; data.set([ (duration >>> 24) & 0xFF, (duration >>> 16) & 0xFF, (duration >>> 8) & 0xFF, (duration) & 0xFF, (size >>> 24) & 0xFF, (size >>> 16) & 0xFF, (size >>> 8) & 0xFF, (size) & 0xFF, (flags.isLeading << 2) | flags.dependsOn, (flags.isDependedOn << 6) | (flags.hasRedundancy << 4) | flags.isNonSync, 0x00, 0x00, (cts >>> 24) & 0xFF, (cts >>> 16) & 0xFF, (cts >>> 8) & 0xFF, (cts) & 0xFF ], 12 + 16 * i); } return MP4.box(MP4.types.trun, data); }; MP4.mdat = function (data) { return MP4.box(MP4.types.mdat, data); }; return MP4; }()); MP4.init(); /* harmony default export */ __webpack_exports__["default"] = (MP4); /***/ }), /***/ "./src/remux/mp4-remuxer.js": /*!**********************************!*\ !*** ./src/remux/mp4-remuxer.js ***! \**********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/logger.js */ "./src/utils/logger.js"); /* harmony import */ var _mp4_generator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mp4-generator.js */ "./src/remux/mp4-generator.js"); /* harmony import */ var _aac_silent_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./aac-silent.js */ "./src/remux/aac-silent.js"); /* harmony import */ var _utils_browser_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/browser.js */ "./src/utils/browser.js"); /* harmony import */ var _core_media_segment_info_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/media-segment-info.js */ "./src/core/media-segment-info.js"); /* harmony import */ var _utils_exception_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/exception.js */ "./src/utils/exception.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Fragmented mp4 remuxer var MP4Remuxer = /** @class */ (function () { function MP4Remuxer(config) { this.TAG = 'MP4Remuxer'; this._config = config; this._isLive = (config.isLive === true) ? true : false; this._dtsBase = -1; this._dtsBaseInited = false; this._audioDtsBase = Infinity; this._videoDtsBase = Infinity; this._audioNextDts = undefined; this._videoNextDts = undefined; this._audioStashedLastSample = null; this._videoStashedLastSample = null; this._audioMeta = null; this._videoMeta = null; this._audioSegmentInfoList = new _core_media_segment_info_js__WEBPACK_IMPORTED_MODULE_4__.MediaSegmentInfoList('audio'); this._videoSegmentInfoList = new _core_media_segment_info_js__WEBPACK_IMPORTED_MODULE_4__.MediaSegmentInfoList('video'); this._onInitSegment = null; this._onMediaSegment = null; // Workaround for chrome < 50: Always force first sample as a Random Access Point in media segment // see https://bugs.chromium.org/p/chromium/issues/detail?id=229412 this._forceFirstIDR = (_utils_browser_js__WEBPACK_IMPORTED_MODULE_3__.default.chrome && (_utils_browser_js__WEBPACK_IMPORTED_MODULE_3__.default.version.major < 50 || (_utils_browser_js__WEBPACK_IMPORTED_MODULE_3__.default.version.major === 50 && _utils_browser_js__WEBPACK_IMPORTED_MODULE_3__.default.version.build < 2661))) ? true : false; // Workaround for IE11/Edge: Fill silent aac frame after keyframe-seeking // Make audio beginDts equals with video beginDts, in order to fix seek freeze this._fillSilentAfterSeek = (_utils_browser_js__WEBPACK_IMPORTED_MODULE_3__.default.msedge || _utils_browser_js__WEBPACK_IMPORTED_MODULE_3__.default.msie); // While only FireFox supports 'audio/mp4, codecs="mp3"', use 'audio/mpeg' for chrome, safari, ... this._mp3UseMpegAudio = !_utils_browser_js__WEBPACK_IMPORTED_MODULE_3__.default.firefox; this._fillAudioTimestampGap = this._config.fixAudioTimestampGap; } MP4Remuxer.prototype.destroy = function () { this._dtsBase = -1; this._dtsBaseInited = false; this._audioMeta = null; this._videoMeta = null; this._audioSegmentInfoList.clear(); this._audioSegmentInfoList = null; this._videoSegmentInfoList.clear(); this._videoSegmentInfoList = null; this._onInitSegment = null; this._onMediaSegment = null; }; MP4Remuxer.prototype.bindDataSource = function (producer) { producer.onDataAvailable = this.remux.bind(this); producer.onTrackMetadata = this._onTrackMetadataReceived.bind(this); return this; }; Object.defineProperty(MP4Remuxer.prototype, "onInitSegment", { /* prototype: function onInitSegment(type: string, initSegment: ArrayBuffer): void InitSegment: { type: string, data: ArrayBuffer, codec: string, container: string } */ get: function () { return this._onInitSegment; }, set: function (callback) { this._onInitSegment = callback; }, enumerable: false, configurable: true }); Object.defineProperty(MP4Remuxer.prototype, "onMediaSegment", { /* prototype: function onMediaSegment(type: string, mediaSegment: MediaSegment): void MediaSegment: { type: string, data: ArrayBuffer, sampleCount: int32 info: MediaSegmentInfo } */ get: function () { return this._onMediaSegment; }, set: function (callback) { this._onMediaSegment = callback; }, enumerable: false, configurable: true }); MP4Remuxer.prototype.insertDiscontinuity = function () { this._audioNextDts = this._videoNextDts = undefined; }; MP4Remuxer.prototype.seek = function (originalDts) { this._audioStashedLastSample = null; this._videoStashedLastSample = null; this._videoSegmentInfoList.clear(); this._audioSegmentInfoList.clear(); }; MP4Remuxer.prototype.remux = function (audioTrack, videoTrack) { if (!this._onMediaSegment) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_5__.IllegalStateException('MP4Remuxer: onMediaSegment callback must be specificed!'); } if (!this._dtsBaseInited) { this._calculateDtsBase(audioTrack, videoTrack); } this._remuxVideo(videoTrack); this._remuxAudio(audioTrack); }; MP4Remuxer.prototype._onTrackMetadataReceived = function (type, metadata) { var metabox = null; var container = 'mp4'; var codec = metadata.codec; if (type === 'audio') { this._audioMeta = metadata; if (metadata.codec === 'mp3' && this._mp3UseMpegAudio) { // 'audio/mpeg' for MP3 audio track container = 'mpeg'; codec = ''; metabox = new Uint8Array(); } else { // 'audio/mp4, codecs="codec"' metabox = _mp4_generator_js__WEBPACK_IMPORTED_MODULE_1__.default.generateInitSegment(metadata); } } else if (type === 'video') { this._videoMeta = metadata; metabox = _mp4_generator_js__WEBPACK_IMPORTED_MODULE_1__.default.generateInitSegment(metadata); } else { return; } // dispatch metabox (Initialization Segment) if (!this._onInitSegment) { throw new _utils_exception_js__WEBPACK_IMPORTED_MODULE_5__.IllegalStateException('MP4Remuxer: onInitSegment callback must be specified!'); } this._onInitSegment(type, { type: type, data: metabox.buffer, codec: codec, container: type + "/" + container, mediaDuration: metadata.duration // in timescale 1000 (milliseconds) }); }; MP4Remuxer.prototype._calculateDtsBase = function (audioTrack, videoTrack) { if (this._dtsBaseInited) { return; } if (audioTrack.samples && audioTrack.samples.length) { this._audioDtsBase = audioTrack.samples[0].dts; } if (videoTrack.samples && videoTrack.samples.length) { this._videoDtsBase = videoTrack.samples[0].dts; } this._dtsBase = Math.min(this._audioDtsBase, this._videoDtsBase); this._dtsBaseInited = true; }; MP4Remuxer.prototype.flushStashedSamples = function () { var videoSample = this._videoStashedLastSample; var audioSample = this._audioStashedLastSample; var videoTrack = { type: 'video', id: 1, sequenceNumber: 0, samples: [], length: 0 }; if (videoSample != null) { videoTrack.samples.push(videoSample); videoTrack.length = videoSample.length; } var audioTrack = { type: 'audio', id: 2, sequenceNumber: 0, samples: [], length: 0 }; if (audioSample != null) { audioTrack.samples.push(audioSample); audioTrack.length = audioSample.length; } this._videoStashedLastSample = null; this._audioStashedLastSample = null; this._remuxVideo(videoTrack, true); this._remuxAudio(audioTrack, true); }; MP4Remuxer.prototype._remuxAudio = function (audioTrack, force) { if (this._audioMeta == null) { return; } var track = audioTrack; var samples = track.samples; var dtsCorrection = undefined; var firstDts = -1, lastDts = -1, lastPts = -1; var refSampleDuration = this._audioMeta.refSampleDuration; var mpegRawTrack = this._audioMeta.codec === 'mp3' && this._mp3UseMpegAudio; var firstSegmentAfterSeek = this._dtsBaseInited && this._audioNextDts === undefined; var insertPrefixSilentFrame = false; if (!samples || samples.length === 0) { return; } if (samples.length === 1 && !force) { // If [sample count in current batch] === 1 && (force != true) // Ignore and keep in demuxer's queue return; } // else if (force === true) do remux var offset = 0; var mdatbox = null; var mdatBytes = 0; // calculate initial mdat size if (mpegRawTrack) { // for raw mpeg buffer offset = 0; mdatBytes = track.length; } else { // for fmp4 mdat box offset = 8; // size + type mdatBytes = 8 + track.length; } var lastSample = null; // Pop the lastSample and waiting for stash if (samples.length > 1) { lastSample = samples.pop(); mdatBytes -= lastSample.length; } // Insert [stashed lastSample in the previous batch] to the front if (this._audioStashedLastSample != null) { var sample = this._audioStashedLastSample; this._audioStashedLastSample = null; samples.unshift(sample); mdatBytes += sample.length; } // Stash the lastSample of current batch, waiting for next batch if (lastSample != null) { this._audioStashedLastSample = lastSample; } var firstSampleOriginalDts = samples[0].dts - this._dtsBase; // calculate dtsCorrection if (this._audioNextDts) { dtsCorrection = firstSampleOriginalDts - this._audioNextDts; } else { // this._audioNextDts == undefined if (this._audioSegmentInfoList.isEmpty()) { dtsCorrection = 0; if (this._fillSilentAfterSeek && !this._videoSegmentInfoList.isEmpty()) { if (this._audioMeta.originalCodec !== 'mp3') { insertPrefixSilentFrame = true; } } } else { var lastSample_1 = this._audioSegmentInfoList.getLastSampleBefore(firstSampleOriginalDts); if (lastSample_1 != null) { var distance = (firstSampleOriginalDts - (lastSample_1.originalDts + lastSample_1.duration)); if (distance <= 3) { distance = 0; } var expectedDts = lastSample_1.dts + lastSample_1.duration + distance; dtsCorrection = firstSampleOriginalDts - expectedDts; } else { // lastSample == null, cannot found dtsCorrection = 0; } } } if (insertPrefixSilentFrame) { // align audio segment beginDts to match with current video segment's beginDts var firstSampleDts = firstSampleOriginalDts - dtsCorrection; var videoSegment = this._videoSegmentInfoList.getLastSegmentBefore(firstSampleOriginalDts); if (videoSegment != null && videoSegment.beginDts < firstSampleDts) { var silentUnit = _aac_silent_js__WEBPACK_IMPORTED_MODULE_2__.default.getSilentFrame(this._audioMeta.originalCodec, this._audioMeta.channelCount); if (silentUnit) { var dts = videoSegment.beginDts; var silentFrameDuration = firstSampleDts - videoSegment.beginDts; _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.v(this.TAG, "InsertPrefixSilentAudio: dts: " + dts + ", duration: " + silentFrameDuration); samples.unshift({ unit: silentUnit, dts: dts, pts: dts }); mdatBytes += silentUnit.byteLength; } // silentUnit == null: Cannot generate, skip } else { insertPrefixSilentFrame = false; } } var mp4Samples = []; // Correct dts for each sample, and calculate sample duration. Then output to mp4Samples for (var i = 0; i < samples.length; i++) { var sample = samples[i]; var unit = sample.unit; var originalDts = sample.dts - this._dtsBase; var dts = originalDts; var needFillSilentFrames = false; var silentFrames = null; var sampleDuration = 0; if (originalDts < -0.001) { continue; //pass the first sample with the invalid dts } if (this._audioMeta.codec !== 'mp3') { // for AAC codec, we need to keep dts increase based on refSampleDuration var curRefDts = originalDts; var maxAudioFramesDrift = 3; if (this._audioNextDts) { curRefDts = this._audioNextDts; } dtsCorrection = originalDts - curRefDts; if (dtsCorrection <= -maxAudioFramesDrift * refSampleDuration) { // If we're overlapping by more than maxAudioFramesDrift number of frame, drop this sample _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, "Dropping 1 audio frame (originalDts: " + originalDts + " ms ,curRefDts: " + curRefDts + " ms) due to dtsCorrection: " + dtsCorrection + " ms overlap."); continue; } else if (dtsCorrection >= maxAudioFramesDrift * refSampleDuration && this._fillAudioTimestampGap && !_utils_browser_js__WEBPACK_IMPORTED_MODULE_3__.default.safari) { // Silent frame generation, if large timestamp gap detected && config.fixAudioTimestampGap needFillSilentFrames = true; // We need to insert silent frames to fill timestamp gap var frameCount = Math.floor(dtsCorrection / refSampleDuration); _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Large audio timestamp gap detected, may cause AV sync to drift. ' + 'Silent frames will be generated to avoid unsync.\n' + ("originalDts: " + originalDts + " ms, curRefDts: " + curRefDts + " ms, ") + ("dtsCorrection: " + Math.round(dtsCorrection) + " ms, generate: " + frameCount + " frames")); dts = Math.floor(curRefDts); sampleDuration = Math.floor(curRefDts + refSampleDuration) - dts; var silentUnit = _aac_silent_js__WEBPACK_IMPORTED_MODULE_2__.default.getSilentFrame(this._audioMeta.originalCodec, this._audioMeta.channelCount); if (silentUnit == null) { _utils_logger_js__WEBPACK_IMPORTED_MODULE_0__.default.w(this.TAG, 'Unable to generate silent frame for ' + (this._audioMeta.originalCodec + " with " + this._audioMeta.channelCount + " channels, repeat last frame")); // Repeat last frame silentUnit = unit; } silentFrames = []; for (var j = 0; j < frameCount; j++) { curRefDts = curRefDts + refSampleDuration; var intDts = Math.floor(curRefDts); // change to integer var intDuration = Math.floor(curRefDts + refSampleDuration) - intDts; var frame = { dts: intDts, pts: intDts, cts: 0, unit: silentUnit, size: silentUnit.byteLength, duration: intDuration, originalDts: originalDts, flags: { isLeading: 0, dependsOn: 1, isDependedOn: 0, hasRedundancy: 0 } }; silentFrames.push(frame); mdatBytes += frame.size; ; } this._audioNextDts = curRefDts + refSampleDuration; } else { dts = Math.floor(curRefDts); sampleDuration = Math.floor(curRefDts + refSampleDuration) - dts; this._audioNextDts = curRefDts + refSampleDuration; } } else { // keep the original dts calculate algorithm for mp3 dts = originalDts - dtsCorrection; if (i !== samples.length - 1) { var nextDts = samples[i + 1].dts - this._dtsBase - dtsCorrection; sampleDuration = nextDts - dts; } else { // the last sample if (lastSample != null) { // use stashed sample's dts to calculate sample duration var nextDts = lastSample.dts - this._dtsBase - dtsCorrection; sampleDuration = nextDts - dts; } else if (mp4Samples.length >= 1) { // use second last sample duration sampleDuration = mp4Samples[mp4Samples.length - 1].duration; } else { // the only one sample, use reference sample duration sampleDuration = Math.floor(refSampleDuration); } } this._audioNextDts = dts + sampleDuration; } if (firstDts === -1) { firstDts = dts; } mp4Samples.push({ dts: dts, pts: dts, cts: 0, unit: sample.unit, size: sample.unit.byteLength, duration: sampleDuration, originalDts: originalDts, flags: { isLeading: 0, dependsOn: 1, isDependedOn: 0, hasRedundancy: 0 } }); if (needFillSilentFrames) { // Silent frames should be inserted after wrong-duration frame mp4Samples.push.apply(mp4Samples, silentFrames); } } if (mp4Samples.length === 0) { //no samples need to remux track.samples = []; track.length = 0; return; } // allocate mdatbox if (mpegRawTrack) { // allocate for raw mpeg buffer mdatbox = new Uint8Array(mdatBytes); } else { // allocate for fmp4 mdat box mdatbox = new Uint8Array(mdatBytes); // size field mdatbox[0] = (mdatBytes >>> 24) & 0xFF; mdatbox[1] = (mdatBytes >>> 16) & 0xFF; mdatbox[2] = (mdatBytes >>> 8) & 0xFF; mdatbox[3] = (mdatBytes) & 0xFF; // type field (fourCC) mdatbox.set(_mp4_generator_js__WEBPACK_IMPORTED_MODULE_1__.default.types.mdat, 4); } // Write samples into mdatbox for (var i = 0; i < mp4Samples.length; i++) { var unit = mp4Samples[i].unit; mdatbox.set(unit, offset); offset += unit.byteLength; } var latest = mp4Samples[mp4Samples.length - 1]; lastDts = latest.dts + latest.duration; //this._audioNextDts = lastDts; // fill media segment info & add to info list var info = new _core_media_segment_info_js__WEBPACK_IMPORTED_MODULE_4__.MediaSegmentInfo(); info.beginDts = firstDts; info.endDts = lastDts; info.beginPts = firstDts; info.endPts = lastDts; info.originalBeginDts = mp4Samples[0].originalDts; info.originalEndDts = latest.originalDts + latest.duration; info.firstSample = new _core_media_segment_info_js__WEBPACK_IMPORTED_MODULE_4__.SampleInfo(mp4Samples[0].dts, mp4Samples[0].pts, mp4Samples[0].duration, mp4Samples[0].originalDts, false); info.lastSample = new _core_media_segment_info_js__WEBPACK_IMPORTED_MODULE_4__.SampleInfo(latest.dts, latest.pts, latest.duration, latest.originalDts, false); if (!this._isLive) { this._audioSegmentInfoList.append(info); } track.samples = mp4Samples; track.sequenceNumber++; var moofbox = null; if (mpegRawTrack) { // Generate empty buffer, because useless for raw mpeg moofbox = new Uint8Array(); } else { // Generate moof for fmp4 segment moofbox = _mp4_generator_js__WEBPACK_IMPORTED_MODULE_1__.default.moof(track, firstDts); } track.samples = []; track.length = 0; var segment = { type: 'audio', data: this._mergeBoxes(moofbox, mdatbox).buffer, sampleCount: mp4Samples.length, info: info }; if (mpegRawTrack && firstSegmentAfterSeek) { // For MPEG audio stream in MSE, if seeking occurred, before appending new buffer // We need explicitly set timestampOffset to the desired point in timeline for mpeg SourceBuffer. segment.timestampOffset = firstDts; } this._onMediaSegment('audio', segment); }; MP4Remuxer.prototype._remuxVideo = function (videoTrack, force) { if (this._videoMeta == null) { return; } var track = videoTrack; var samples = track.samples; var dtsCorrection = undefined; var firstDts = -1, lastDts = -1; var firstPts = -1, lastPts = -1; if (!samples || samples.length === 0) { return; } if (samples.length === 1 && !force) { // If [sample count in current batch] === 1 && (force != true) // Ignore and keep in demuxer's queue return; } // else if (force === true) do remux var offset = 8; var mdatbox = null; var mdatBytes = 8 + videoTrack.length; var lastSample = null; // Pop the lastSample and waiting for stash if (samples.length > 1) { lastSample = samples.pop(); mdatBytes -= lastSample.length; } // Insert [stashed lastSample in the previous batch] to the front if (this._videoStashedLastSample != null) { var sample = this._videoStashedLastSample; this._videoStashedLastSample = null; samples.unshift(sample); mdatBytes += sample.length; } // Stash the lastSample of current batch, waiting for next batch if (lastSample != null) { this._videoStashedLastSample = lastSample; } var firstSampleOriginalDts = samples[0].dts - this._dtsBase; // calculate dtsCorrection if (this._videoNextDts) { dtsCorrection = firstSampleOriginalDts - this._videoNextDts; } else { // this._videoNextDts == undefined if (this._videoSegmentInfoList.isEmpty()) { dtsCorrection = 0; } else { var lastSample_2 = this._videoSegmentInfoList.getLastSampleBefore(firstSampleOriginalDts); if (lastSample_2 != null) { var distance = (firstSampleOriginalDts - (lastSample_2.originalDts + lastSample_2.duration)); if (distance <= 3) { distance = 0; } var expectedDts = lastSample_2.dts + lastSample_2.duration + distance; dtsCorrection = firstSampleOriginalDts - expectedDts; } else { // lastSample == null, cannot found dtsCorrection = 0; } } } var info = new _core_media_segment_info_js__WEBPACK_IMPORTED_MODULE_4__.MediaSegmentInfo(); var mp4Samples = []; // Correct dts for each sample, and calculate sample duration. Then output to mp4Samples for (var i = 0; i < samples.length; i++) { var sample = samples[i]; var originalDts = sample.dts - this._dtsBase; var isKeyframe = sample.isKeyframe; var dts = originalDts - dtsCorrection; var cts = sample.cts; var pts = dts + cts; if (firstDts === -1) { firstDts = dts; firstPts = pts; } var sampleDuration = 0; if (i !== samples.length - 1) { var nextDts = samples[i + 1].dts - this._dtsBase - dtsCorrection; sampleDuration = nextDts - dts; } else { // the last sample if (lastSample != null) { // use stashed sample's dts to calculate sample duration var nextDts = lastSample.dts - this._dtsBase - dtsCorrection; sampleDuration = nextDts - dts; } else if (mp4Samples.length >= 1) { // use second last sample duration sampleDuration = mp4Samples[mp4Samples.length - 1].duration; } else { // the only one sample, use reference sample duration sampleDuration = Math.floor(this._videoMeta.refSampleDuration); } } if (isKeyframe) { var syncPoint = new _core_media_segment_info_js__WEBPACK_IMPORTED_MODULE_4__.SampleInfo(dts, pts, sampleDuration, sample.dts, true); syncPoint.fileposition = sample.fileposition; info.appendSyncPoint(syncPoint); } mp4Samples.push({ dts: dts, pts: pts, cts: cts, units: sample.units, size: sample.length, isKeyframe: isKeyframe, duration: sampleDuration, originalDts: originalDts, flags: { isLeading: 0, dependsOn: isKeyframe ? 2 : 1, isDependedOn: isKeyframe ? 1 : 0, hasRedundancy: 0, isNonSync: isKeyframe ? 0 : 1 } }); } // allocate mdatbox mdatbox = new Uint8Array(mdatBytes); mdatbox[0] = (mdatBytes >>> 24) & 0xFF; mdatbox[1] = (mdatBytes >>> 16) & 0xFF; mdatbox[2] = (mdatBytes >>> 8) & 0xFF; mdatbox[3] = (mdatBytes) & 0xFF; mdatbox.set(_mp4_generator_js__WEBPACK_IMPORTED_MODULE_1__.default.types.mdat, 4); // Write samples into mdatbox for (var i = 0; i < mp4Samples.length; i++) { var units = mp4Samples[i].units; while (units.length) { var unit = units.shift(); var data = unit.data; mdatbox.set(data, offset); offset += data.byteLength; } } var latest = mp4Samples[mp4Samples.length - 1]; lastDts = latest.dts + latest.duration; lastPts = latest.pts + latest.duration; this._videoNextDts = lastDts; // fill media segment info & add to info list info.beginDts = firstDts; info.endDts = lastDts; info.beginPts = firstPts; info.endPts = lastPts; info.originalBeginDts = mp4Samples[0].originalDts; info.originalEndDts = latest.originalDts + latest.duration; info.firstSample = new _core_media_segment_info_js__WEBPACK_IMPORTED_MODULE_4__.SampleInfo(mp4Samples[0].dts, mp4Samples[0].pts, mp4Samples[0].duration, mp4Samples[0].originalDts, mp4Samples[0].isKeyframe); info.lastSample = new _core_media_segment_info_js__WEBPACK_IMPORTED_MODULE_4__.SampleInfo(latest.dts, latest.pts, latest.duration, latest.originalDts, latest.isKeyframe); if (!this._isLive) { this._videoSegmentInfoList.append(info); } track.samples = mp4Samples; track.sequenceNumber++; // workaround for chrome < 50: force first sample as a random access point // see https://bugs.chromium.org/p/chromium/issues/detail?id=229412 if (this._forceFirstIDR) { var flags = mp4Samples[0].flags; flags.dependsOn = 2; flags.isNonSync = 0; } var moofbox = _mp4_generator_js__WEBPACK_IMPORTED_MODULE_1__.default.moof(track, firstDts); track.samples = []; track.length = 0; this._onMediaSegment('video', { type: 'video', data: this._mergeBoxes(moofbox, mdatbox).buffer, sampleCount: mp4Samples.length, info: info }); }; MP4Remuxer.prototype._mergeBoxes = function (moof, mdat) { var result = new Uint8Array(moof.byteLength + mdat.byteLength); result.set(moof, 0); result.set(mdat, moof.byteLength); return result; }; return MP4Remuxer; }()); /* harmony default export */ __webpack_exports__["default"] = (MP4Remuxer); /***/ }), /***/ "./src/utils/browser.js": /*!******************************!*\ !*** ./src/utils/browser.js ***! \******************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var Browser = {}; function detect() { // modified from jquery-browser-plugin var ua = self.navigator.userAgent.toLowerCase(); var match = /(edge)\/([\w.]+)/.exec(ua) || /(opr)[\/]([\w.]+)/.exec(ua) || /(chrome)[ \/]([\w.]+)/.exec(ua) || /(iemobile)[\/]([\w.]+)/.exec(ua) || /(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ua) || /(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ua) || /(webkit)[ \/]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || ua.indexOf('trident') >= 0 && /(rv)(?::| )([\w.]+)/.exec(ua) || ua.indexOf('compatible') < 0 && /(firefox)[ \/]([\w.]+)/.exec(ua) || []; var platform_match = /(ipad)/.exec(ua) || /(ipod)/.exec(ua) || /(windows phone)/.exec(ua) || /(iphone)/.exec(ua) || /(kindle)/.exec(ua) || /(android)/.exec(ua) || /(windows)/.exec(ua) || /(mac)/.exec(ua) || /(linux)/.exec(ua) || /(cros)/.exec(ua) || []; var matched = { browser: match[5] || match[3] || match[1] || '', version: match[2] || match[4] || '0', majorVersion: match[4] || match[2] || '0', platform: platform_match[0] || '' }; var browser = {}; if (matched.browser) { browser[matched.browser] = true; var versionArray = matched.majorVersion.split('.'); browser.version = { major: parseInt(matched.majorVersion, 10), string: matched.version }; if (versionArray.length > 1) { browser.version.minor = parseInt(versionArray[1], 10); } if (versionArray.length > 2) { browser.version.build = parseInt(versionArray[2], 10); } } if (matched.platform) { browser[matched.platform] = true; } if (browser.chrome || browser.opr || browser.safari) { browser.webkit = true; } // MSIE. IE11 has 'rv' identifer if (browser.rv || browser.iemobile) { if (browser.rv) { delete browser.rv; } var msie = 'msie'; matched.browser = msie; browser[msie] = true; } // Microsoft Edge if (browser.edge) { delete browser.edge; var msedge = 'msedge'; matched.browser = msedge; browser[msedge] = true; } // Opera 15+ if (browser.opr) { var opera = 'opera'; matched.browser = opera; browser[opera] = true; } // Stock android browsers are marked as Safari if (browser.safari && browser.android) { var android = 'android'; matched.browser = android; browser[android] = true; } browser.name = matched.browser; browser.platform = matched.platform; for (var key in Browser) { if (Browser.hasOwnProperty(key)) { delete Browser[key]; } } Object.assign(Browser, browser); } detect(); /* harmony default export */ __webpack_exports__["default"] = (Browser); /***/ }), /***/ "./src/utils/exception.js": /*!********************************!*\ !*** ./src/utils/exception.js ***! \********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "RuntimeException": function() { return /* binding */ RuntimeException; }, /* harmony export */ "IllegalStateException": function() { return /* binding */ IllegalStateException; }, /* harmony export */ "InvalidArgumentException": function() { return /* binding */ InvalidArgumentException; }, /* harmony export */ "NotImplementedException": function() { return /* binding */ NotImplementedException; } /* harmony export */ }); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var RuntimeException = /** @class */ (function () { function RuntimeException(message) { this._message = message; } Object.defineProperty(RuntimeException.prototype, "name", { get: function () { return 'RuntimeException'; }, enumerable: false, configurable: true }); Object.defineProperty(RuntimeException.prototype, "message", { get: function () { return this._message; }, enumerable: false, configurable: true }); RuntimeException.prototype.toString = function () { return this.name + ': ' + this.message; }; return RuntimeException; }()); var IllegalStateException = /** @class */ (function (_super) { __extends(IllegalStateException, _super); function IllegalStateException(message) { return _super.call(this, message) || this; } Object.defineProperty(IllegalStateException.prototype, "name", { get: function () { return 'IllegalStateException'; }, enumerable: false, configurable: true }); return IllegalStateException; }(RuntimeException)); var InvalidArgumentException = /** @class */ (function (_super) { __extends(InvalidArgumentException, _super); function InvalidArgumentException(message) { return _super.call(this, message) || this; } Object.defineProperty(InvalidArgumentException.prototype, "name", { get: function () { return 'InvalidArgumentException'; }, enumerable: false, configurable: true }); return InvalidArgumentException; }(RuntimeException)); var NotImplementedException = /** @class */ (function (_super) { __extends(NotImplementedException, _super); function NotImplementedException(message) { return _super.call(this, message) || this; } Object.defineProperty(NotImplementedException.prototype, "name", { get: function () { return 'NotImplementedException'; }, enumerable: false, configurable: true }); return NotImplementedException; }(RuntimeException)); /***/ }), /***/ "./src/utils/logger.js": /*!*****************************!*\ !*** ./src/utils/logger.js ***! \*****************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! events */ "./node_modules/events/events.js"); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_0__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var Log = /** @class */ (function () { function Log() { } Log.e = function (tag, msg) { if (!tag || Log.FORCE_GLOBAL_TAG) tag = Log.GLOBAL_TAG; var str = "[" + tag + "] > " + msg; if (Log.ENABLE_CALLBACK) { Log.emitter.emit('log', 'error', str); } if (!Log.ENABLE_ERROR) { return; } if (console.error) { console.error(str); } else if (console.warn) { console.warn(str); } else { console.log(str); } }; Log.i = function (tag, msg) { if (!tag || Log.FORCE_GLOBAL_TAG) tag = Log.GLOBAL_TAG; var str = "[" + tag + "] > " + msg; if (Log.ENABLE_CALLBACK) { Log.emitter.emit('log', 'info', str); } if (!Log.ENABLE_INFO) { return; } if (console.info) { console.info(str); } else { console.log(str); } }; Log.w = function (tag, msg) { if (!tag || Log.FORCE_GLOBAL_TAG) tag = Log.GLOBAL_TAG; var str = "[" + tag + "] > " + msg; if (Log.ENABLE_CALLBACK) { Log.emitter.emit('log', 'warn', str); } if (!Log.ENABLE_WARN) { return; } if (console.warn) { console.warn(str); } else { console.log(str); } }; Log.d = function (tag, msg) { if (!tag || Log.FORCE_GLOBAL_TAG) tag = Log.GLOBAL_TAG; var str = "[" + tag + "] > " + msg; if (Log.ENABLE_CALLBACK) { Log.emitter.emit('log', 'debug', str); } if (!Log.ENABLE_DEBUG) { return; } if (console.debug) { console.debug(str); } else { console.log(str); } }; Log.v = function (tag, msg) { if (!tag || Log.FORCE_GLOBAL_TAG) tag = Log.GLOBAL_TAG; var str = "[" + tag + "] > " + msg; if (Log.ENABLE_CALLBACK) { Log.emitter.emit('log', 'verbose', str); } if (!Log.ENABLE_VERBOSE) { return; } console.log(str); }; return Log; }()); Log.GLOBAL_TAG = 'flv.js'; Log.FORCE_GLOBAL_TAG = false; Log.ENABLE_ERROR = true; Log.ENABLE_INFO = true; Log.ENABLE_WARN = true; Log.ENABLE_DEBUG = true; Log.ENABLE_VERBOSE = true; Log.ENABLE_CALLBACK = false; Log.emitter = new (events__WEBPACK_IMPORTED_MODULE_0___default())(); /* harmony default export */ __webpack_exports__["default"] = (Log); /***/ }), /***/ "./src/utils/logging-control.js": /*!**************************************!*\ !*** ./src/utils/logging-control.js ***! \**************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! events */ "./node_modules/events/events.js"); /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _logger_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./logger.js */ "./src/utils/logger.js"); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var LoggingControl = /** @class */ (function () { function LoggingControl() { } Object.defineProperty(LoggingControl, "forceGlobalTag", { get: function () { return _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.FORCE_GLOBAL_TAG; }, set: function (enable) { _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.FORCE_GLOBAL_TAG = enable; LoggingControl._notifyChange(); }, enumerable: false, configurable: true }); Object.defineProperty(LoggingControl, "globalTag", { get: function () { return _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.GLOBAL_TAG; }, set: function (tag) { _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.GLOBAL_TAG = tag; LoggingControl._notifyChange(); }, enumerable: false, configurable: true }); Object.defineProperty(LoggingControl, "enableAll", { get: function () { return _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_VERBOSE && _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_DEBUG && _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_INFO && _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_WARN && _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_ERROR; }, set: function (enable) { _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_VERBOSE = enable; _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_DEBUG = enable; _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_INFO = enable; _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_WARN = enable; _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_ERROR = enable; LoggingControl._notifyChange(); }, enumerable: false, configurable: true }); Object.defineProperty(LoggingControl, "enableDebug", { get: function () { return _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_DEBUG; }, set: function (enable) { _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_DEBUG = enable; LoggingControl._notifyChange(); }, enumerable: false, configurable: true }); Object.defineProperty(LoggingControl, "enableVerbose", { get: function () { return _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_VERBOSE; }, set: function (enable) { _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_VERBOSE = enable; LoggingControl._notifyChange(); }, enumerable: false, configurable: true }); Object.defineProperty(LoggingControl, "enableInfo", { get: function () { return _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_INFO; }, set: function (enable) { _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_INFO = enable; LoggingControl._notifyChange(); }, enumerable: false, configurable: true }); Object.defineProperty(LoggingControl, "enableWarn", { get: function () { return _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_WARN; }, set: function (enable) { _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_WARN = enable; LoggingControl._notifyChange(); }, enumerable: false, configurable: true }); Object.defineProperty(LoggingControl, "enableError", { get: function () { return _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_ERROR; }, set: function (enable) { _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_ERROR = enable; LoggingControl._notifyChange(); }, enumerable: false, configurable: true }); LoggingControl.getConfig = function () { return { globalTag: _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.GLOBAL_TAG, forceGlobalTag: _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.FORCE_GLOBAL_TAG, enableVerbose: _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_VERBOSE, enableDebug: _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_DEBUG, enableInfo: _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_INFO, enableWarn: _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_WARN, enableError: _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_ERROR, enableCallback: _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_CALLBACK }; }; LoggingControl.applyConfig = function (config) { _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.GLOBAL_TAG = config.globalTag; _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.FORCE_GLOBAL_TAG = config.forceGlobalTag; _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_VERBOSE = config.enableVerbose; _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_DEBUG = config.enableDebug; _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_INFO = config.enableInfo; _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_WARN = config.enableWarn; _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_ERROR = config.enableError; _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_CALLBACK = config.enableCallback; }; LoggingControl._notifyChange = function () { var emitter = LoggingControl.emitter; if (emitter.listenerCount('change') > 0) { var config = LoggingControl.getConfig(); emitter.emit('change', config); } }; LoggingControl.registerListener = function (listener) { LoggingControl.emitter.addListener('change', listener); }; LoggingControl.removeListener = function (listener) { LoggingControl.emitter.removeListener('change', listener); }; LoggingControl.addLogListener = function (listener) { _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.emitter.addListener('log', listener); if (_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.emitter.listenerCount('log') > 0) { _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_CALLBACK = true; LoggingControl._notifyChange(); } }; LoggingControl.removeLogListener = function (listener) { _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.emitter.removeListener('log', listener); if (_logger_js__WEBPACK_IMPORTED_MODULE_1__.default.emitter.listenerCount('log') === 0) { _logger_js__WEBPACK_IMPORTED_MODULE_1__.default.ENABLE_CALLBACK = false; LoggingControl._notifyChange(); } }; return LoggingControl; }()); LoggingControl.emitter = new (events__WEBPACK_IMPORTED_MODULE_0___default())(); /* harmony default export */ __webpack_exports__["default"] = (LoggingControl); /***/ }), /***/ "./src/utils/polyfill.js": /*!*******************************!*\ !*** ./src/utils/polyfill.js ***! \*******************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var Polyfill = /** @class */ (function () { function Polyfill() { } Polyfill.install = function () { // ES6 Object.setPrototypeOf Object.setPrototypeOf = Object.setPrototypeOf || function (obj, proto) { obj.__proto__ = proto; return obj; }; // ES6 Object.assign Object.assign = Object.assign || function (target) { if (target === undefined || target === null) { throw new TypeError('Cannot convert undefined or null to object'); } var output = Object(target); for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; if (source !== undefined && source !== null) { for (var key in source) { if (source.hasOwnProperty(key)) { output[key] = source[key]; } } } } return output; }; // ES6 Promise (missing support in IE11) if (typeof self.Promise !== 'function') { __webpack_require__(/*! es6-promise */ "./node_modules/es6-promise/dist/es6-promise.js").polyfill(); } }; return Polyfill; }()); Polyfill.install(); /* harmony default export */ __webpack_exports__["default"] = (Polyfill); /***/ }), /***/ "./src/utils/utf8-conv.js": /*!********************************!*\ !*** ./src/utils/utf8-conv.js ***! \********************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* * Copyright (C) 2016 Bilibili. All Rights Reserved. * * This file is derived from C++ project libWinTF8 (https://github.com/m13253/libWinTF8) * @author zheng qian * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function checkContinuation(uint8array, start, checkLength) { var array = uint8array; if (start + checkLength < array.length) { while (checkLength--) { if ((array[++start] & 0xC0) !== 0x80) return false; } return true; } else { return false; } } function decodeUTF8(uint8array) { var out = []; var input = uint8array; var i = 0; var length = uint8array.length; while (i < length) { if (input[i] < 0x80) { out.push(String.fromCharCode(input[i])); ++i; continue; } else if (input[i] < 0xC0) { // fallthrough } else if (input[i] < 0xE0) { if (checkContinuation(input, i, 1)) { var ucs4 = (input[i] & 0x1F) << 6 | (input[i + 1] & 0x3F); if (ucs4 >= 0x80) { out.push(String.fromCharCode(ucs4 & 0xFFFF)); i += 2; continue; } } } else if (input[i] < 0xF0) { if (checkContinuation(input, i, 2)) { var ucs4 = (input[i] & 0xF) << 12 | (input[i + 1] & 0x3F) << 6 | input[i + 2] & 0x3F; if (ucs4 >= 0x800 && (ucs4 & 0xF800) !== 0xD800) { out.push(String.fromCharCode(ucs4 & 0xFFFF)); i += 3; continue; } } } else if (input[i] < 0xF8) { if (checkContinuation(input, i, 3)) { var ucs4 = (input[i] & 0x7) << 18 | (input[i + 1] & 0x3F) << 12 | (input[i + 2] & 0x3F) << 6 | (input[i + 3] & 0x3F); if (ucs4 > 0x10000 && ucs4 < 0x110000) { ucs4 -= 0x10000; out.push(String.fromCharCode((ucs4 >>> 10) | 0xD800)); out.push(String.fromCharCode((ucs4 & 0x3FF) | 0xDC00)); i += 4; continue; } } } out.push(String.fromCharCode(0xFFFD)); ++i; } return out.join(''); } /* harmony default export */ __webpack_exports__["default"] = (decodeUTF8); /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = __webpack_modules__; /******/ /************************************************************************/ /******/ /* webpack/runtime/compat get default export */ /******/ !function() { /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function() { return module['default']; } : /******/ function() { return module; }; /******/ __webpack_require__.d(getter, { a: getter }); /******/ return getter; /******/ }; /******/ }(); /******/ /******/ /* webpack/runtime/define property getters */ /******/ !function() { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = function(exports, definition) { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ }(); /******/ /******/ /* webpack/runtime/global */ /******/ !function() { /******/ __webpack_require__.g = (function() { /******/ if (typeof globalThis === 'object') return globalThis; /******/ try { /******/ return this || new Function('return this')(); /******/ } catch (e) { /******/ if (typeof window === 'object') return window; /******/ } /******/ })(); /******/ }(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ !function() { /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } /******/ }(); /******/ /******/ /* webpack/runtime/make namespace object */ /******/ !function() { /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ }(); /******/ /************************************************************************/ /******/ /******/ // module factories are used so entry inlining is disabled /******/ // startup /******/ // Load entry module and return exports /******/ var __webpack_exports__ = __webpack_require__("./src/index.js"); /******/ /******/ return __webpack_exports__; /******/ })() ; }); //# sourceMappingURL=flv.js.map /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/gcoord/dist/gcoord.esm-bundler.js": /*!********************************************************!*\ !*** ./node_modules/gcoord/dist/gcoord.esm-bundler.js ***! \********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return exported; }); /** * @preserve * gcoord 1.0.7, geographic coordinate library * Copyright (c) 2025 Jiulong Hu */ const { sin: sin$1, cos: cos$1, sqrt: sqrt$1, abs: abs$1, PI: PI$1 } = Math; const a = 6378245; const ee = 0.006693421622965823; // roughly check whether coordinates are in China. function isInChinaBbox(lon, lat) { return lon >= 72.004 && lon <= 137.8347 && lat >= 0.8293 && lat <= 55.8271; } function transformLat(x, y) { let ret = -100 + 2 * x + 3 * y + 0.2 * y * y + 0.1 * x * y + 0.2 * sqrt$1(abs$1(x)); ret += ((20 * sin$1(6 * x * PI$1) + 20 * sin$1(2 * x * PI$1)) * 2) / 3; ret += ((20 * sin$1(y * PI$1) + 40 * sin$1((y / 3) * PI$1)) * 2) / 3; ret += ((160 * sin$1((y / 12) * PI$1) + 320 * sin$1((y * PI$1) / 30)) * 2) / 3; return ret; } function transformLon(x, y) { let ret = 300 + x + 2 * y + 0.1 * x * x + 0.1 * x * y + 0.1 * sqrt$1(abs$1(x)); ret += ((20 * sin$1(6 * x * PI$1) + 20 * sin$1(2 * x * PI$1)) * 2) / 3; ret += ((20 * sin$1(x * PI$1) + 40 * sin$1((x / 3) * PI$1)) * 2) / 3; ret += ((150 * sin$1((x / 12) * PI$1) + 300 * sin$1((x / 30) * PI$1)) * 2) / 3; return ret; } function delta(lon, lat) { let dLon = transformLon(lon - 105, lat - 35); let dLat = transformLat(lon - 105, lat - 35); const radLat = (lat / 180) * PI$1; let magic = sin$1(radLat); magic = 1 - ee * magic * magic; const sqrtMagic = sqrt$1(magic); dLon = (dLon * 180) / ((a / sqrtMagic) * cos$1(radLat) * PI$1); dLat = (dLat * 180) / (((a * (1 - ee)) / (magic * sqrtMagic)) * PI$1); return [dLon, dLat]; } function WGS84ToGCJ02(coord) { const [lon, lat] = coord; if (!isInChinaBbox(lon, lat)) return [lon, lat]; const d = delta(lon, lat); return [lon + d[0], lat + d[1]]; } function GCJ02ToWGS84(coord) { const [lon, lat] = coord; if (!isInChinaBbox(lon, lat)) return [lon, lat]; let [wgsLon, wgsLat] = [lon, lat]; let tempPoint = WGS84ToGCJ02([wgsLon, wgsLat]); let dx = tempPoint[0] - lon; let dy = tempPoint[1] - lat; while (abs$1(dx) > 1e-6 || abs$1(dy) > 1e-6) { wgsLon -= dx; wgsLat -= dy; tempPoint = WGS84ToGCJ02([wgsLon, wgsLat]); dx = tempPoint[0] - lon; dy = tempPoint[1] - lat; } return [wgsLon, wgsLat]; } const { sin, cos, atan2, sqrt, PI } = Math; const baiduFactor = (PI * 3000.0) / 180.0; function BD09ToGCJ02(coord) { const [lon, lat] = coord; const x = lon - 0.0065; const y = lat - 0.006; const z = sqrt(x * x + y * y) - 0.00002 * sin(y * baiduFactor); const theta = atan2(y, x) - 0.000003 * cos(x * baiduFactor); const newLon = z * cos(theta); const newLat = z * sin(theta); return [newLon, newLat]; } function GCJ02ToBD09(coord) { const [lon, lat] = coord; const x = lon; const y = lat; const z = sqrt(x * x + y * y) + 0.00002 * sin(y * baiduFactor); const theta = atan2(y, x) + 0.000003 * cos(x * baiduFactor); const newLon = z * cos(theta) + 0.0065; const newLat = z * sin(theta) + 0.006; return [newLon, newLat]; } // https://github.com/Turfjs/turf/blob/master/packages/turf-projection/index.ts const R2D = 180 / Math.PI; const D2R = Math.PI / 180; const A = 6378137.0; const MAXEXTENT = 20037508.342789244; function EPSG3857ToWGS84(xy) { return [ (xy[0] * R2D) / A, (Math.PI * 0.5 - 2.0 * Math.atan(Math.exp(-xy[1] / A))) * R2D, ]; } function WGS84ToEPSG3857(lonLat) { // compensate longitudes passing the 180th meridian // from https://github.com/proj4js/proj4js/blob/master/lib/common/adjust_lon.js const adjusted = Math.abs(lonLat[0]) <= 180 ? lonLat[0] : lonLat[0] - (lonLat[0] < 0 ? -1 : 1) * 360; const xy = [ A * adjusted * D2R, A * Math.log(Math.tan(Math.PI * 0.25 + 0.5 * lonLat[1] * D2R)), ]; // if xy value is beyond maxextent (e.g. poles), return maxextent if (xy[0] > MAXEXTENT) xy[0] = MAXEXTENT; if (xy[0] < -MAXEXTENT) xy[0] = -MAXEXTENT; if (xy[1] > MAXEXTENT) xy[1] = MAXEXTENT; if (xy[1] < -MAXEXTENT) xy[1] = -MAXEXTENT; return xy; } const { abs } = Math; const MCBAND = [12890594.86, 8362377.87, 5591021, 3481989.83, 1678043.12, 0]; const LLBAND = [75, 60, 45, 30, 15, 0]; const MC2LL = [ [ 1.410526172116255e-8, 0.00000898305509648872, -1.9939833816331, 200.9824383106796, -187.2403703815547, 91.6087516669843, -23.38765649603339, 2.57121317296198, -0.03801003308653, 17337981.2, ], [ -7.435856389565537e-9, 0.000008983055097726239, -0.78625201886289, 96.32687599759846, -1.85204757529826, -59.36935905485877, 47.40033549296737, -16.50741931063887, 2.28786674699375, 10260144.86, ], [ -3.030883460898826e-8, 0.00000898305509983578, 0.30071316287616, 59.74293618442277, 7.357984074871, -25.38371002664745, 13.45380521110908, -3.29883767235584, 0.32710905363475, 6856817.37, ], [ -1.981981304930552e-8, 0.000008983055099779535, 0.03278182852591, 40.31678527705744, 0.65659298677277, -4.44255534477492, 0.85341911805263, 0.12923347998204, -0.04625736007561, 4482777.06, ], [ 3.09191371068437e-9, 0.000008983055096812155, 0.00006995724062, 23.10934304144901, -0.00023663490511, -0.6321817810242, -0.00663494467273, 0.03430082397953, -0.00466043876332, 2555164.4, ], [ 2.890871144776878e-9, 0.000008983055095805407, -3.068298e-8, 7.47137025468032, -0.00000353937994, -0.02145144861037, -0.00001234426596, 0.00010322952773, -0.00000323890364, 826088.5, ], ]; const LL2MC = [ [ -0.0015702102444, 111320.7020616939, 1704480524535203, -10338987376042340, 26112667856603880, -35149669176653700, 26595700718403920, -10725012454188240, 1800819912950474, 82.5, ], [ 0.0008277824516172526, 111320.7020463578, 647795574.6671607, -4082003173.641316, 10774905663.51142, -15171875531.51559, 12053065338.62167, -5124939663.577472, 913311935.9512032, 67.5, ], [ 0.00337398766765, 111320.7020202162, 4481351.045890365, -23393751.19931662, 79682215.47186455, -115964993.2797253, 97236711.15602145, -43661946.33752821, 8477230.501135234, 52.5, ], [ 0.00220636496208, 111320.7020209128, 51751.86112841131, 3796837.749470245, 992013.7397791013, -1221952.21711287, 1340652.697009075, -620943.6990984312, 144416.9293806241, 37.5, ], [ -0.0003441963504368392, 111320.7020576856, 278.2353980772752, 2485758.690035394, 6070.750963243378, 54821.18345352118, 9540.606633304236, -2710.55326746645, 1405.483844121726, 22.5, ], [ -0.0003218135878613132, 111320.7020701615, 0.00369383431289, 823725.6402795718, 0.46104986909093, 2351.343141331292, 1.58060784298199, 8.77738589078284, 0.37238884252424, 7.45, ], ]; function transform$1(x, y, factors) { const cc = abs(y) / factors[9]; let xt = factors[0] + factors[1] * abs(x); let yt = factors[2] + factors[3] * cc + factors[4] * Math.pow(cc, 2) + factors[5] * Math.pow(cc, 3) + factors[6] * Math.pow(cc, 4) + factors[7] * Math.pow(cc, 5) + factors[8] * Math.pow(cc, 6); xt *= x < 0 ? -1 : 1; yt *= y < 0 ? -1 : 1; return [xt, yt]; } function BD09toBD09MC(coord) { const [lng, lat] = coord; let factors = []; for (let i = 0; i < LLBAND.length; i++) { if (abs(lat) > LLBAND[i]) { factors = LL2MC[i]; break; } } return transform$1(lng, lat, factors); } function BD09MCtoBD09(coord) { const [x, y] = coord; let factors = []; for (let i = 0; i < MCBAND.length; i++) { if (abs(y) >= MCBAND[i]) { factors = MC2LL[i]; break; } } return transform$1(x, y, factors); } function assert(condition, msg) { if (!condition) throw new Error(msg); } /** * isArray * * @param {*} input variable to validate * @returns {boolean} true/false */ function isArray(input) { return !!input && Object.prototype.toString.call(input) === '[object Array]'; } /** * isNumber * * @param {*} num Number to validate * @returns {boolean} true/false * @example * isNumber(123) * //=true * isNumber('foo') * //=false */ function isNumber(input) { return !isNaN(Number(input)) && input !== null && !isArray(input); } /** * compose */ function compose(...funcs) { const start = funcs.length - 1; /* eslint-disable func-names */ return function (...args) { let i = start; let result = funcs[start].apply(null, args); while (i--) result = funcs[i].call(null, result); return result; }; } /** * Iterate over coordinates in any GeoJSON object, similar to Array.forEach() * https://github.com/Turfjs/turf/blob/master/packages/turf-meta/index.mjs * * @name coordEach * @param {FeatureCollection|Feature|Geometry} geojson any GeoJSON object * @param {Function} callback a method that takes (currentCoord, coordIndex, featureIndex, multiFeatureIndex) * @param {boolean} [excludeWrapCoord=false] whether or not to include the final coordinate of LinearRings that wraps the ring in its iteration. * @returns {void} * @example * let features = featureCollection([ * point([26, 37], {"foo": "bar"}), * point([36, 53], {"hello": "world"}) * ]); * * coordEach(features, function (currentCoord, coordIndex, featureIndex, multiFeatureIndex, geometryIndex) { * //=currentCoord * //=coordIndex * //=featureIndex * //=multiFeatureIndex * //=geometryIndex * }); */ /* eslint-disable no-param-reassign */ function coordEach(geojson, callback, excludeWrapCoord = false) { // Handles null Geometry -- Skips this GeoJSON if (geojson === null) return; /* eslint-disable-next-line */ let j; let k; let l; let geometry; let coords; let stopG; let wrapShrink = 0; let coordIndex = 0; let geometryMaybeCollection; let isGeometryCollection; const { type } = geojson; const isFeatureCollection = type === 'FeatureCollection'; const isFeature = type === 'Feature'; const stop = isFeatureCollection ? geojson.features.length : 1; // This logic may look a little weird. The reason why it is that way // is because it's trying to be fast. GeoJSON supports multiple kinds // of objects at its root: FeatureCollection, Features, Geometries. // This function has the responsibility of handling all of them, and that // means that some of the `for` loops you see below actually just don't apply // to certain inputs. For instance, if you give this just a // Point geometry, then both loops are short-circuited and all we do // is gradually rename the input until it's called 'geometry'. // // This also aims to allocate as few resources as possible: just a // few numbers and booleans, rather than any temporary arrays as would // be required with the normalization approach. for (let featureIndex = 0; featureIndex < stop; featureIndex++) { geometryMaybeCollection = isFeatureCollection ? geojson.features[featureIndex].geometry : isFeature ? geojson.geometry : geojson; isGeometryCollection = geometryMaybeCollection ? geometryMaybeCollection.type === 'GeometryCollection' : false; stopG = isGeometryCollection ? geometryMaybeCollection.geometries.length : 1; for (let geomIndex = 0; geomIndex < stopG; geomIndex++) { let multiFeatureIndex = 0; let geometryIndex = 0; geometry = isGeometryCollection ? geometryMaybeCollection.geometries[geomIndex] : geometryMaybeCollection; // Handles null Geometry -- Skips this geometry if (geometry === null) continue; const geomType = geometry.type; wrapShrink = excludeWrapCoord && (geomType === 'Polygon' || geomType === 'MultiPolygon') ? 1 : 0; switch (geomType) { case null: break; case 'Point': coords = geometry.coordinates; if (callback(coords, coordIndex, featureIndex, multiFeatureIndex, geometryIndex) === false) return false; coordIndex++; multiFeatureIndex++; break; case 'LineString': case 'MultiPoint': coords = geometry.coordinates; for (j = 0; j < coords.length; j++) { if (callback(coords[j], coordIndex, featureIndex, multiFeatureIndex, geometryIndex) === false) return false; coordIndex++; if (geomType === 'MultiPoint') multiFeatureIndex++; } if (geomType === 'LineString') multiFeatureIndex++; break; case 'Polygon': case 'MultiLineString': coords = geometry.coordinates; for (j = 0; j < coords.length; j++) { for (k = 0; k < coords[j].length - wrapShrink; k++) { if (callback(coords[j][k], coordIndex, featureIndex, multiFeatureIndex, geometryIndex) === false) return false; coordIndex++; } if (geomType === 'MultiLineString') multiFeatureIndex++; if (geomType === 'Polygon') geometryIndex++; } if (geomType === 'Polygon') multiFeatureIndex++; break; case 'MultiPolygon': coords = geometry.coordinates; for (j = 0; j < coords.length; j++) { geometryIndex = 0; for (k = 0; k < coords[j].length; k++) { for (l = 0; l < coords[j][k].length - wrapShrink; l++) { if (callback(coords[j][k][l], coordIndex, featureIndex, multiFeatureIndex, geometryIndex) === false) return false; coordIndex++; } geometryIndex++; } multiFeatureIndex++; } break; case 'GeometryCollection': for (j = 0; j < geometry.geometries.length; j++) { if (coordEach(geometry.geometries[j], callback, excludeWrapCoord) === false) return false; } break; default: throw new Error('Unknown Geometry Type'); } } } } var CRSTypes; (function (CRSTypes) { // WGS84 CRSTypes["WGS84"] = "WGS84"; CRSTypes["WGS1984"] = "WGS84"; CRSTypes["EPSG4326"] = "WGS84"; // GCJ02 CRSTypes["GCJ02"] = "GCJ02"; CRSTypes["AMap"] = "GCJ02"; // BD09 CRSTypes["BD09"] = "BD09"; CRSTypes["BD09LL"] = "BD09"; CRSTypes["Baidu"] = "BD09"; CRSTypes["BMap"] = "BD09"; // BD09MC CRSTypes["BD09MC"] = "BD09MC"; CRSTypes["BD09Meter"] = "BD09MC"; // EPSG3857 CRSTypes["EPSG3857"] = "EPSG3857"; CRSTypes["EPSG900913"] = "EPSG3857"; CRSTypes["EPSG102100"] = "EPSG3857"; CRSTypes["WebMercator"] = "EPSG3857"; CRSTypes["WM"] = "EPSG3857"; })(CRSTypes || (CRSTypes = {})); const WGS84 = { to: { [CRSTypes.GCJ02]: WGS84ToGCJ02, [CRSTypes.BD09]: compose(GCJ02ToBD09, WGS84ToGCJ02), [CRSTypes.BD09MC]: compose(BD09toBD09MC, GCJ02ToBD09, WGS84ToGCJ02), [CRSTypes.EPSG3857]: WGS84ToEPSG3857, }, }; const GCJ02 = { to: { [CRSTypes.WGS84]: GCJ02ToWGS84, [CRSTypes.BD09]: GCJ02ToBD09, [CRSTypes.BD09MC]: compose(BD09toBD09MC, GCJ02ToBD09), [CRSTypes.EPSG3857]: compose(WGS84ToEPSG3857, GCJ02ToWGS84), }, }; const BD09 = { to: { [CRSTypes.WGS84]: compose(GCJ02ToWGS84, BD09ToGCJ02), [CRSTypes.GCJ02]: BD09ToGCJ02, [CRSTypes.EPSG3857]: compose(WGS84ToEPSG3857, GCJ02ToWGS84, BD09ToGCJ02), [CRSTypes.BD09MC]: BD09toBD09MC, }, }; const EPSG3857 = { to: { [CRSTypes.WGS84]: EPSG3857ToWGS84, [CRSTypes.GCJ02]: compose(WGS84ToGCJ02, EPSG3857ToWGS84), [CRSTypes.BD09]: compose(GCJ02ToBD09, WGS84ToGCJ02, EPSG3857ToWGS84), [CRSTypes.BD09MC]: compose(BD09toBD09MC, GCJ02ToBD09, WGS84ToGCJ02, EPSG3857ToWGS84), }, }; const BD09MC = { to: { [CRSTypes.WGS84]: compose(GCJ02ToWGS84, BD09ToGCJ02, BD09MCtoBD09), [CRSTypes.GCJ02]: compose(BD09ToGCJ02, BD09MCtoBD09), [CRSTypes.EPSG3857]: compose(WGS84ToEPSG3857, GCJ02ToWGS84, BD09ToGCJ02, BD09MCtoBD09), [CRSTypes.BD09]: BD09MCtoBD09, }, }; const crsMap = { WGS84, GCJ02, BD09, EPSG3857, BD09MC, }; var crsMap$1 = crsMap; /** * transform * * @param {geojson|position|string} input * @returns {geojson|position} output */ /* eslint-disable no-param-reassign */ function transform(input, crsFrom, crsTo) { assert(!!input, 'The args[0] input coordinate is required'); assert(!!crsFrom, 'The args[1] original coordinate system is required'); assert(!!crsTo, 'The args[2] target coordinate system is required'); if (crsFrom === crsTo) return input; const from = crsMap$1[crsFrom]; assert(!!from, `Invalid original coordinate system: ${crsFrom}`); const to = from.to[crsTo]; assert(!!to, `Invalid target coordinate system: ${crsTo}`); const type = typeof input; assert(type === 'string' || type === 'object', `Invalid input coordinate type: ${type}`); if (type === 'string') { try { input = JSON.parse(input); } catch (e) { throw new Error(`Invalid input coordinate: ${input}`); } } let isPosition = false; if (isArray(input)) { assert(input.length >= 2, `Invalid input coordinate: ${input}`); assert(isNumber(input[0]) && isNumber(input[1]), `Invalid input coordinate: ${input}`); input = input.map(Number); isPosition = true; } const convert = to; if (isPosition) return convert(input); // GeoJSON类型直接转换输入 coordEach(input, (coord) => { [coord[0], coord[1]] = convert(coord); }); return input; } const exported = Object.assign(Object.assign({}, CRSTypes), { // 兼容原来gcoord.WGS84的使用方式 CRSTypes, transform }); /***/ }), /***/ "./node_modules/get-proto/Object.getPrototypeOf.js": /*!*********************************************************!*\ !*** ./node_modules/get-proto/Object.getPrototypeOf.js ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $Object = __webpack_require__(/*! es-object-atoms */ "./node_modules/es-object-atoms/index.js"); /** @type {import('./Object.getPrototypeOf')} */ module.exports = $Object.getPrototypeOf || null; /***/ }), /***/ "./node_modules/get-proto/Reflect.getPrototypeOf.js": /*!**********************************************************!*\ !*** ./node_modules/get-proto/Reflect.getPrototypeOf.js ***! \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./Reflect.getPrototypeOf')} */ module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null; /***/ }), /***/ "./node_modules/get-proto/index.js": /*!*****************************************!*\ !*** ./node_modules/get-proto/index.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var reflectGetProto = __webpack_require__(/*! ./Reflect.getPrototypeOf */ "./node_modules/get-proto/Reflect.getPrototypeOf.js"); var originalGetProto = __webpack_require__(/*! ./Object.getPrototypeOf */ "./node_modules/get-proto/Object.getPrototypeOf.js"); var getDunderProto = __webpack_require__(/*! dunder-proto/get */ "./node_modules/dunder-proto/get.js"); /** @type {import('.')} */ module.exports = reflectGetProto ? function getProto(O) { // @ts-expect-error TS can't narrow inside a closure, for some reason return reflectGetProto(O); } : originalGetProto ? function getProto(O) { if (!O || (typeof O !== 'object' && typeof O !== 'function')) { throw new TypeError('getProto: not an object'); } // @ts-expect-error TS can't narrow inside a closure, for some reason return originalGetProto(O); } : getDunderProto ? function getProto(O) { // @ts-expect-error TS can't narrow inside a closure, for some reason return getDunderProto(O); } : null; /***/ }), /***/ "./node_modules/immutable/dist/immutable.es.js": /*!*****************************************************!*\ !*** ./node_modules/immutable/dist/immutable.es.js ***! \*****************************************************/ /*! exports provided: default, Collection, Iterable, List, Map, OrderedMap, OrderedSet, PairSorting, Range, Record, Repeat, Seq, Set, Stack, fromJS, get, getIn, has, hasIn, hash, is, isAssociative, isCollection, isImmutable, isIndexed, isKeyed, isList, isMap, isOrdered, isOrderedMap, isOrderedSet, isPlainObject, isRecord, isSeq, isSet, isStack, isValueObject, merge, mergeDeep, mergeDeepWith, mergeWith, remove, removeIn, set, setIn, update, updateIn, version */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Collection", function() { return Collection; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Iterable", function() { return Iterable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "List", function() { return List; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Map", function() { return Map; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrderedMap", function() { return OrderedMap; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrderedSet", function() { return OrderedSet; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PairSorting", function() { return PairSorting; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Range", function() { return Range; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Record", function() { return Record; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Repeat", function() { return Repeat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Seq", function() { return Seq; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Set", function() { return Set; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Stack", function() { return Stack; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromJS", function() { return fromJS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getIn", function() { return getIn$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "has", function() { return has; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasIn", function() { return hasIn$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hash", function() { return hash; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "is", function() { return is; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAssociative", function() { return isAssociative; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCollection", function() { return isCollection; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isImmutable", function() { return isImmutable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIndexed", function() { return isIndexed; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isKeyed", function() { return isKeyed; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isList", function() { return isList; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMap", function() { return isMap; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isOrdered", function() { return isOrdered; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isOrderedMap", function() { return isOrderedMap; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isOrderedSet", function() { return isOrderedSet; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPlainObject", function() { return isPlainObject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isRecord", function() { return isRecord; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSeq", function() { return isSeq; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSet", function() { return isSet; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isStack", function() { return isStack; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValueObject", function() { return isValueObject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return merge; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeDeep", function() { return mergeDeep$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeDeepWith", function() { return mergeDeepWith$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeWith", function() { return mergeWith; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "remove", function() { return remove; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeIn", function() { return removeIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "set", function() { return set; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setIn", function() { return setIn$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "update", function() { return update$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateIn", function() { return updateIn$1; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; }); /** * MIT License * * Copyright (c) 2014-present, Lee Byron and other contributors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ var DELETE = 'delete'; // Constants describing the size of trie nodes. var SHIFT = 5; // Resulted in best performance after ______? var SIZE = 1 << SHIFT; var MASK = SIZE - 1; // A consistent shared value representing "not set" which equals nothing other // than itself, and nothing that could be provided externally. var NOT_SET = {}; // Boolean references, Rough equivalent of `bool &`. function MakeRef() { return { value: false }; } function SetRef(ref) { if (ref) { ref.value = true; } } // A function which returns a value representing an "owner" for transient writes // to tries. The return value will only ever equal itself, and will not equal // the return of any subsequent call of this function. function OwnerID() {} function ensureSize(iter) { if (iter.size === undefined) { iter.size = iter.__iterate(returnTrue); } return iter.size; } function wrapIndex(iter, index) { // This implements "is array index" which the ECMAString spec defines as: // // A String property name P is an array index if and only if // ToString(ToUint32(P)) is equal to P and ToUint32(P) is not equal // to 2^32−1. // // http://www.ecma-international.org/ecma-262/6.0/#sec-array-exotic-objects if (typeof index !== 'number') { var uint32Index = index >>> 0; // N >>> 0 is shorthand for ToUint32 if ('' + uint32Index !== index || uint32Index === 4294967295) { return NaN; } index = uint32Index; } return index < 0 ? ensureSize(iter) + index : index; } function returnTrue() { return true; } function wholeSlice(begin, end, size) { return ( ((begin === 0 && !isNeg(begin)) || (size !== undefined && begin <= -size)) && (end === undefined || (size !== undefined && end >= size)) ); } function resolveBegin(begin, size) { return resolveIndex(begin, size, 0); } function resolveEnd(end, size) { return resolveIndex(end, size, size); } function resolveIndex(index, size, defaultIndex) { // Sanitize indices using this shorthand for ToInt32(argument) // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32 return index === undefined ? defaultIndex : isNeg(index) ? size === Infinity ? size : Math.max(0, size + index) | 0 : size === undefined || size === index ? index : Math.min(size, index) | 0; } function isNeg(value) { // Account for -0 which is negative, but not less than 0. return value < 0 || (value === 0 && 1 / value === -Infinity); } var IS_COLLECTION_SYMBOL = '@@__IMMUTABLE_ITERABLE__@@'; function isCollection(maybeCollection) { return Boolean(maybeCollection && maybeCollection[IS_COLLECTION_SYMBOL]); } var IS_KEYED_SYMBOL = '@@__IMMUTABLE_KEYED__@@'; function isKeyed(maybeKeyed) { return Boolean(maybeKeyed && maybeKeyed[IS_KEYED_SYMBOL]); } var IS_INDEXED_SYMBOL = '@@__IMMUTABLE_INDEXED__@@'; function isIndexed(maybeIndexed) { return Boolean(maybeIndexed && maybeIndexed[IS_INDEXED_SYMBOL]); } function isAssociative(maybeAssociative) { return isKeyed(maybeAssociative) || isIndexed(maybeAssociative); } var Collection = function Collection(value) { // eslint-disable-next-line no-constructor-return return isCollection(value) ? value : Seq(value); }; var KeyedCollection = /*@__PURE__*/(function (Collection) { function KeyedCollection(value) { // eslint-disable-next-line no-constructor-return return isKeyed(value) ? value : KeyedSeq(value); } if ( Collection ) KeyedCollection.__proto__ = Collection; KeyedCollection.prototype = Object.create( Collection && Collection.prototype ); KeyedCollection.prototype.constructor = KeyedCollection; return KeyedCollection; }(Collection)); var IndexedCollection = /*@__PURE__*/(function (Collection) { function IndexedCollection(value) { // eslint-disable-next-line no-constructor-return return isIndexed(value) ? value : IndexedSeq(value); } if ( Collection ) IndexedCollection.__proto__ = Collection; IndexedCollection.prototype = Object.create( Collection && Collection.prototype ); IndexedCollection.prototype.constructor = IndexedCollection; return IndexedCollection; }(Collection)); var SetCollection = /*@__PURE__*/(function (Collection) { function SetCollection(value) { // eslint-disable-next-line no-constructor-return return isCollection(value) && !isAssociative(value) ? value : SetSeq(value); } if ( Collection ) SetCollection.__proto__ = Collection; SetCollection.prototype = Object.create( Collection && Collection.prototype ); SetCollection.prototype.constructor = SetCollection; return SetCollection; }(Collection)); Collection.Keyed = KeyedCollection; Collection.Indexed = IndexedCollection; Collection.Set = SetCollection; var IS_SEQ_SYMBOL = '@@__IMMUTABLE_SEQ__@@'; function isSeq(maybeSeq) { return Boolean(maybeSeq && maybeSeq[IS_SEQ_SYMBOL]); } var IS_RECORD_SYMBOL = '@@__IMMUTABLE_RECORD__@@'; function isRecord(maybeRecord) { return Boolean(maybeRecord && maybeRecord[IS_RECORD_SYMBOL]); } function isImmutable(maybeImmutable) { return isCollection(maybeImmutable) || isRecord(maybeImmutable); } var IS_ORDERED_SYMBOL = '@@__IMMUTABLE_ORDERED__@@'; function isOrdered(maybeOrdered) { return Boolean(maybeOrdered && maybeOrdered[IS_ORDERED_SYMBOL]); } var ITERATE_KEYS = 0; var ITERATE_VALUES = 1; var ITERATE_ENTRIES = 2; var REAL_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; var FAUX_ITERATOR_SYMBOL = '@@iterator'; var ITERATOR_SYMBOL = REAL_ITERATOR_SYMBOL || FAUX_ITERATOR_SYMBOL; var Iterator = function Iterator(next) { this.next = next; }; Iterator.prototype.toString = function toString () { return '[Iterator]'; }; Iterator.KEYS = ITERATE_KEYS; Iterator.VALUES = ITERATE_VALUES; Iterator.ENTRIES = ITERATE_ENTRIES; Iterator.prototype.inspect = Iterator.prototype.toSource = function () { return this.toString(); }; Iterator.prototype[ITERATOR_SYMBOL] = function () { return this; }; function iteratorValue(type, k, v, iteratorResult) { var value = type === 0 ? k : type === 1 ? v : [k, v]; iteratorResult ? (iteratorResult.value = value) : (iteratorResult = { value: value, done: false, }); return iteratorResult; } function iteratorDone() { return { value: undefined, done: true }; } function hasIterator(maybeIterable) { if (Array.isArray(maybeIterable)) { // IE11 trick as it does not support `Symbol.iterator` return true; } return !!getIteratorFn(maybeIterable); } function isIterator(maybeIterator) { return maybeIterator && typeof maybeIterator.next === 'function'; } function getIterator(iterable) { var iteratorFn = getIteratorFn(iterable); return iteratorFn && iteratorFn.call(iterable); } function getIteratorFn(iterable) { var iteratorFn = iterable && ((REAL_ITERATOR_SYMBOL && iterable[REAL_ITERATOR_SYMBOL]) || iterable[FAUX_ITERATOR_SYMBOL]); if (typeof iteratorFn === 'function') { return iteratorFn; } } function isEntriesIterable(maybeIterable) { var iteratorFn = getIteratorFn(maybeIterable); return iteratorFn && iteratorFn === maybeIterable.entries; } function isKeysIterable(maybeIterable) { var iteratorFn = getIteratorFn(maybeIterable); return iteratorFn && iteratorFn === maybeIterable.keys; } var hasOwnProperty = Object.prototype.hasOwnProperty; function isArrayLike(value) { if (Array.isArray(value) || typeof value === 'string') { return true; } return ( value && typeof value === 'object' && Number.isInteger(value.length) && value.length >= 0 && (value.length === 0 ? // Only {length: 0} is considered Array-like. Object.keys(value).length === 1 : // An object is only Array-like if it has a property where the last value // in the array-like may be found (which could be undefined). value.hasOwnProperty(value.length - 1)) ); } var Seq = /*@__PURE__*/(function (Collection) { function Seq(value) { // eslint-disable-next-line no-constructor-return return value === undefined || value === null ? emptySequence() : isImmutable(value) ? value.toSeq() : seqFromValue(value); } if ( Collection ) Seq.__proto__ = Collection; Seq.prototype = Object.create( Collection && Collection.prototype ); Seq.prototype.constructor = Seq; Seq.prototype.toSeq = function toSeq () { return this; }; Seq.prototype.toString = function toString () { return this.__toString('Seq {', '}'); }; Seq.prototype.cacheResult = function cacheResult () { if (!this._cache && this.__iterateUncached) { this._cache = this.entrySeq().toArray(); this.size = this._cache.length; } return this; }; // abstract __iterateUncached(fn, reverse) Seq.prototype.__iterate = function __iterate (fn, reverse) { var cache = this._cache; if (cache) { var size = cache.length; var i = 0; while (i !== size) { var entry = cache[reverse ? size - ++i : i++]; if (fn(entry[1], entry[0], this) === false) { break; } } return i; } return this.__iterateUncached(fn, reverse); }; // abstract __iteratorUncached(type, reverse) Seq.prototype.__iterator = function __iterator (type, reverse) { var cache = this._cache; if (cache) { var size = cache.length; var i = 0; return new Iterator(function () { if (i === size) { return iteratorDone(); } var entry = cache[reverse ? size - ++i : i++]; return iteratorValue(type, entry[0], entry[1]); }); } return this.__iteratorUncached(type, reverse); }; return Seq; }(Collection)); var KeyedSeq = /*@__PURE__*/(function (Seq) { function KeyedSeq(value) { // eslint-disable-next-line no-constructor-return return value === undefined || value === null ? emptySequence().toKeyedSeq() : isCollection(value) ? isKeyed(value) ? value.toSeq() : value.fromEntrySeq() : isRecord(value) ? value.toSeq() : keyedSeqFromValue(value); } if ( Seq ) KeyedSeq.__proto__ = Seq; KeyedSeq.prototype = Object.create( Seq && Seq.prototype ); KeyedSeq.prototype.constructor = KeyedSeq; KeyedSeq.prototype.toKeyedSeq = function toKeyedSeq () { return this; }; return KeyedSeq; }(Seq)); var IndexedSeq = /*@__PURE__*/(function (Seq) { function IndexedSeq(value) { // eslint-disable-next-line no-constructor-return return value === undefined || value === null ? emptySequence() : isCollection(value) ? isKeyed(value) ? value.entrySeq() : value.toIndexedSeq() : isRecord(value) ? value.toSeq().entrySeq() : indexedSeqFromValue(value); } if ( Seq ) IndexedSeq.__proto__ = Seq; IndexedSeq.prototype = Object.create( Seq && Seq.prototype ); IndexedSeq.prototype.constructor = IndexedSeq; IndexedSeq.of = function of (/*...values*/) { return IndexedSeq(arguments); }; IndexedSeq.prototype.toIndexedSeq = function toIndexedSeq () { return this; }; IndexedSeq.prototype.toString = function toString () { return this.__toString('Seq [', ']'); }; return IndexedSeq; }(Seq)); var SetSeq = /*@__PURE__*/(function (Seq) { function SetSeq(value) { // eslint-disable-next-line no-constructor-return return ( isCollection(value) && !isAssociative(value) ? value : IndexedSeq(value) ).toSetSeq(); } if ( Seq ) SetSeq.__proto__ = Seq; SetSeq.prototype = Object.create( Seq && Seq.prototype ); SetSeq.prototype.constructor = SetSeq; SetSeq.of = function of (/*...values*/) { return SetSeq(arguments); }; SetSeq.prototype.toSetSeq = function toSetSeq () { return this; }; return SetSeq; }(Seq)); Seq.isSeq = isSeq; Seq.Keyed = KeyedSeq; Seq.Set = SetSeq; Seq.Indexed = IndexedSeq; Seq.prototype[IS_SEQ_SYMBOL] = true; // #pragma Root Sequences var ArraySeq = /*@__PURE__*/(function (IndexedSeq) { function ArraySeq(array) { this._array = array; this.size = array.length; } if ( IndexedSeq ) ArraySeq.__proto__ = IndexedSeq; ArraySeq.prototype = Object.create( IndexedSeq && IndexedSeq.prototype ); ArraySeq.prototype.constructor = ArraySeq; ArraySeq.prototype.get = function get (index, notSetValue) { return this.has(index) ? this._array[wrapIndex(this, index)] : notSetValue; }; ArraySeq.prototype.__iterate = function __iterate (fn, reverse) { var array = this._array; var size = array.length; var i = 0; while (i !== size) { var ii = reverse ? size - ++i : i++; if (fn(array[ii], ii, this) === false) { break; } } return i; }; ArraySeq.prototype.__iterator = function __iterator (type, reverse) { var array = this._array; var size = array.length; var i = 0; return new Iterator(function () { if (i === size) { return iteratorDone(); } var ii = reverse ? size - ++i : i++; return iteratorValue(type, ii, array[ii]); }); }; return ArraySeq; }(IndexedSeq)); var ObjectSeq = /*@__PURE__*/(function (KeyedSeq) { function ObjectSeq(object) { var keys = Object.keys(object).concat( Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [] ); this._object = object; this._keys = keys; this.size = keys.length; } if ( KeyedSeq ) ObjectSeq.__proto__ = KeyedSeq; ObjectSeq.prototype = Object.create( KeyedSeq && KeyedSeq.prototype ); ObjectSeq.prototype.constructor = ObjectSeq; ObjectSeq.prototype.get = function get (key, notSetValue) { if (notSetValue !== undefined && !this.has(key)) { return notSetValue; } return this._object[key]; }; ObjectSeq.prototype.has = function has (key) { return hasOwnProperty.call(this._object, key); }; ObjectSeq.prototype.__iterate = function __iterate (fn, reverse) { var object = this._object; var keys = this._keys; var size = keys.length; var i = 0; while (i !== size) { var key = keys[reverse ? size - ++i : i++]; if (fn(object[key], key, this) === false) { break; } } return i; }; ObjectSeq.prototype.__iterator = function __iterator (type, reverse) { var object = this._object; var keys = this._keys; var size = keys.length; var i = 0; return new Iterator(function () { if (i === size) { return iteratorDone(); } var key = keys[reverse ? size - ++i : i++]; return iteratorValue(type, key, object[key]); }); }; return ObjectSeq; }(KeyedSeq)); ObjectSeq.prototype[IS_ORDERED_SYMBOL] = true; var CollectionSeq = /*@__PURE__*/(function (IndexedSeq) { function CollectionSeq(collection) { this._collection = collection; this.size = collection.length || collection.size; } if ( IndexedSeq ) CollectionSeq.__proto__ = IndexedSeq; CollectionSeq.prototype = Object.create( IndexedSeq && IndexedSeq.prototype ); CollectionSeq.prototype.constructor = CollectionSeq; CollectionSeq.prototype.__iterateUncached = function __iterateUncached (fn, reverse) { if (reverse) { return this.cacheResult().__iterate(fn, reverse); } var collection = this._collection; var iterator = getIterator(collection); var iterations = 0; if (isIterator(iterator)) { var step; while (!(step = iterator.next()).done) { if (fn(step.value, iterations++, this) === false) { break; } } } return iterations; }; CollectionSeq.prototype.__iteratorUncached = function __iteratorUncached (type, reverse) { if (reverse) { return this.cacheResult().__iterator(type, reverse); } var collection = this._collection; var iterator = getIterator(collection); if (!isIterator(iterator)) { return new Iterator(iteratorDone); } var iterations = 0; return new Iterator(function () { var step = iterator.next(); return step.done ? step : iteratorValue(type, iterations++, step.value); }); }; return CollectionSeq; }(IndexedSeq)); // # pragma Helper functions var EMPTY_SEQ; function emptySequence() { return EMPTY_SEQ || (EMPTY_SEQ = new ArraySeq([])); } function keyedSeqFromValue(value) { var seq = maybeIndexedSeqFromValue(value); if (seq) { return seq.fromEntrySeq(); } if (typeof value === 'object') { return new ObjectSeq(value); } throw new TypeError( 'Expected Array or collection object of [k, v] entries, or keyed object: ' + value ); } function indexedSeqFromValue(value) { var seq = maybeIndexedSeqFromValue(value); if (seq) { return seq; } throw new TypeError( 'Expected Array or collection object of values: ' + value ); } function seqFromValue(value) { var seq = maybeIndexedSeqFromValue(value); if (seq) { return isEntriesIterable(value) ? seq.fromEntrySeq() : isKeysIterable(value) ? seq.toSetSeq() : seq; } if (typeof value === 'object') { return new ObjectSeq(value); } throw new TypeError( 'Expected Array or collection object of values, or keyed object: ' + value ); } function maybeIndexedSeqFromValue(value) { return isArrayLike(value) ? new ArraySeq(value) : hasIterator(value) ? new CollectionSeq(value) : undefined; } var IS_MAP_SYMBOL = '@@__IMMUTABLE_MAP__@@'; function isMap(maybeMap) { return Boolean(maybeMap && maybeMap[IS_MAP_SYMBOL]); } function isOrderedMap(maybeOrderedMap) { return isMap(maybeOrderedMap) && isOrdered(maybeOrderedMap); } function isValueObject(maybeValue) { return Boolean( maybeValue && typeof maybeValue.equals === 'function' && typeof maybeValue.hashCode === 'function' ); } /** * An extension of the "same-value" algorithm as [described for use by ES6 Map * and Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#Key_equality) * * NaN is considered the same as NaN, however -0 and 0 are considered the same * value, which is different from the algorithm described by * [`Object.is`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is). * * This is extended further to allow Objects to describe the values they * represent, by way of `valueOf` or `equals` (and `hashCode`). * * Note: because of this extension, the key equality of Immutable.Map and the * value equality of Immutable.Set will differ from ES6 Map and Set. * * ### Defining custom values * * The easiest way to describe the value an object represents is by implementing * `valueOf`. For example, `Date` represents a value by returning a unix * timestamp for `valueOf`: * * var date1 = new Date(1234567890000); // Fri Feb 13 2009 ... * var date2 = new Date(1234567890000); * date1.valueOf(); // 1234567890000 * assert( date1 !== date2 ); * assert( Immutable.is( date1, date2 ) ); * * Note: overriding `valueOf` may have other implications if you use this object * where JavaScript expects a primitive, such as implicit string coercion. * * For more complex types, especially collections, implementing `valueOf` may * not be performant. An alternative is to implement `equals` and `hashCode`. * * `equals` takes another object, presumably of similar type, and returns true * if it is equal. Equality is symmetrical, so the same result should be * returned if this and the argument are flipped. * * assert( a.equals(b) === b.equals(a) ); * * `hashCode` returns a 32bit integer number representing the object which will * be used to determine how to store the value object in a Map or Set. You must * provide both or neither methods, one must not exist without the other. * * Also, an important relationship between these methods must be upheld: if two * values are equal, they *must* return the same hashCode. If the values are not * equal, they might have the same hashCode; this is called a hash collision, * and while undesirable for performance reasons, it is acceptable. * * if (a.equals(b)) { * assert( a.hashCode() === b.hashCode() ); * } * * All Immutable collections are Value Objects: they implement `equals()` * and `hashCode()`. */ function is(valueA, valueB) { if (valueA === valueB || (valueA !== valueA && valueB !== valueB)) { return true; } if (!valueA || !valueB) { return false; } if ( typeof valueA.valueOf === 'function' && typeof valueB.valueOf === 'function' ) { valueA = valueA.valueOf(); valueB = valueB.valueOf(); if (valueA === valueB || (valueA !== valueA && valueB !== valueB)) { return true; } if (!valueA || !valueB) { return false; } } return !!( isValueObject(valueA) && isValueObject(valueB) && valueA.equals(valueB) ); } var imul = typeof Math.imul === 'function' && Math.imul(0xffffffff, 2) === -2 ? Math.imul : function imul(a, b) { a |= 0; // int b |= 0; // int var c = a & 0xffff; var d = b & 0xffff; // Shift by 0 fixes the sign on the high part. return (c * d + ((((a >>> 16) * d + c * (b >>> 16)) << 16) >>> 0)) | 0; // int }; // v8 has an optimization for storing 31-bit signed numbers. // Values which have either 00 or 11 as the high order bits qualify. // This function drops the highest order bit in a signed number, maintaining // the sign bit. function smi(i32) { return ((i32 >>> 1) & 0x40000000) | (i32 & 0xbfffffff); } var defaultValueOf = Object.prototype.valueOf; function hash(o) { if (o == null) { return hashNullish(o); } if (typeof o.hashCode === 'function') { // Drop any high bits from accidentally long hash codes. return smi(o.hashCode(o)); } var v = valueOf(o); if (v == null) { return hashNullish(v); } switch (typeof v) { case 'boolean': // The hash values for built-in constants are a 1 value for each 5-byte // shift region expect for the first, which encodes the value. This // reduces the odds of a hash collision for these common values. return v ? 0x42108421 : 0x42108420; case 'number': return hashNumber(v); case 'string': return v.length > STRING_HASH_CACHE_MIN_STRLEN ? cachedHashString(v) : hashString(v); case 'object': case 'function': return hashJSObj(v); case 'symbol': return hashSymbol(v); default: if (typeof v.toString === 'function') { return hashString(v.toString()); } throw new Error('Value type ' + typeof v + ' cannot be hashed.'); } } function hashNullish(nullish) { return nullish === null ? 0x42108422 : /* undefined */ 0x42108423; } // Compress arbitrarily large numbers into smi hashes. function hashNumber(n) { if (n !== n || n === Infinity) { return 0; } var hash = n | 0; if (hash !== n) { hash ^= n * 0xffffffff; } while (n > 0xffffffff) { n /= 0xffffffff; hash ^= n; } return smi(hash); } function cachedHashString(string) { var hashed = stringHashCache[string]; if (hashed === undefined) { hashed = hashString(string); if (STRING_HASH_CACHE_SIZE === STRING_HASH_CACHE_MAX_SIZE) { STRING_HASH_CACHE_SIZE = 0; stringHashCache = {}; } STRING_HASH_CACHE_SIZE++; stringHashCache[string] = hashed; } return hashed; } // http://jsperf.com/hashing-strings function hashString(string) { // This is the hash from JVM // The hash code for a string is computed as // s[0] * 31 ^ (n - 1) + s[1] * 31 ^ (n - 2) + ... + s[n - 1], // where s[i] is the ith character of the string and n is the length of // the string. We "mod" the result to make it between 0 (inclusive) and 2^31 // (exclusive) by dropping high bits. var hashed = 0; for (var ii = 0; ii < string.length; ii++) { hashed = (31 * hashed + string.charCodeAt(ii)) | 0; } return smi(hashed); } function hashSymbol(sym) { var hashed = symbolMap[sym]; if (hashed !== undefined) { return hashed; } hashed = nextHash(); symbolMap[sym] = hashed; return hashed; } function hashJSObj(obj) { var hashed; if (usingWeakMap) { hashed = weakMap.get(obj); if (hashed !== undefined) { return hashed; } } hashed = obj[UID_HASH_KEY]; if (hashed !== undefined) { return hashed; } if (!canDefineProperty) { hashed = obj.propertyIsEnumerable && obj.propertyIsEnumerable[UID_HASH_KEY]; if (hashed !== undefined) { return hashed; } hashed = getIENodeHash(obj); if (hashed !== undefined) { return hashed; } } hashed = nextHash(); if (usingWeakMap) { weakMap.set(obj, hashed); } else if (isExtensible !== undefined && isExtensible(obj) === false) { throw new Error('Non-extensible objects are not allowed as keys.'); } else if (canDefineProperty) { Object.defineProperty(obj, UID_HASH_KEY, { enumerable: false, configurable: false, writable: false, value: hashed, }); } else if ( obj.propertyIsEnumerable !== undefined && obj.propertyIsEnumerable === obj.constructor.prototype.propertyIsEnumerable ) { // Since we can't define a non-enumerable property on the object // we'll hijack one of the less-used non-enumerable properties to // save our hash on it. Since this is a function it will not show up in // `JSON.stringify` which is what we want. obj.propertyIsEnumerable = function () { return this.constructor.prototype.propertyIsEnumerable.apply( this, arguments ); }; obj.propertyIsEnumerable[UID_HASH_KEY] = hashed; } else if (obj.nodeType !== undefined) { // At this point we couldn't get the IE `uniqueID` to use as a hash // and we couldn't use a non-enumerable property to exploit the // dontEnum bug so we simply add the `UID_HASH_KEY` on the node // itself. obj[UID_HASH_KEY] = hashed; } else { throw new Error('Unable to set a non-enumerable property on object.'); } return hashed; } // Get references to ES5 object methods. var isExtensible = Object.isExtensible; // True if Object.defineProperty works as expected. IE8 fails this test. var canDefineProperty = (function () { try { Object.defineProperty({}, '@', {}); return true; } catch (e) { return false; } })(); // IE has a `uniqueID` property on DOM nodes. We can construct the hash from it // and avoid memory leaks from the IE cloneNode bug. function getIENodeHash(node) { if (node && node.nodeType > 0) { switch (node.nodeType) { case 1: // Element return node.uniqueID; case 9: // Document return node.documentElement && node.documentElement.uniqueID; } } } function valueOf(obj) { return obj.valueOf !== defaultValueOf && typeof obj.valueOf === 'function' ? obj.valueOf(obj) : obj; } function nextHash() { var nextHash = ++_objHashUID; if (_objHashUID & 0x40000000) { _objHashUID = 0; } return nextHash; } // If possible, use a WeakMap. var usingWeakMap = typeof WeakMap === 'function'; var weakMap; if (usingWeakMap) { weakMap = new WeakMap(); } var symbolMap = Object.create(null); var _objHashUID = 0; var UID_HASH_KEY = '__immutablehash__'; if (typeof Symbol === 'function') { UID_HASH_KEY = Symbol(UID_HASH_KEY); } var STRING_HASH_CACHE_MIN_STRLEN = 16; var STRING_HASH_CACHE_MAX_SIZE = 255; var STRING_HASH_CACHE_SIZE = 0; var stringHashCache = {}; var ToKeyedSequence = /*@__PURE__*/(function (KeyedSeq) { function ToKeyedSequence(indexed, useKeys) { this._iter = indexed; this._useKeys = useKeys; this.size = indexed.size; } if ( KeyedSeq ) ToKeyedSequence.__proto__ = KeyedSeq; ToKeyedSequence.prototype = Object.create( KeyedSeq && KeyedSeq.prototype ); ToKeyedSequence.prototype.constructor = ToKeyedSequence; ToKeyedSequence.prototype.get = function get (key, notSetValue) { return this._iter.get(key, notSetValue); }; ToKeyedSequence.prototype.has = function has (key) { return this._iter.has(key); }; ToKeyedSequence.prototype.valueSeq = function valueSeq () { return this._iter.valueSeq(); }; ToKeyedSequence.prototype.reverse = function reverse () { var this$1$1 = this; var reversedSequence = reverseFactory(this, true); if (!this._useKeys) { reversedSequence.valueSeq = function () { return this$1$1._iter.toSeq().reverse(); }; } return reversedSequence; }; ToKeyedSequence.prototype.map = function map (mapper, context) { var this$1$1 = this; var mappedSequence = mapFactory(this, mapper, context); if (!this._useKeys) { mappedSequence.valueSeq = function () { return this$1$1._iter.toSeq().map(mapper, context); }; } return mappedSequence; }; ToKeyedSequence.prototype.__iterate = function __iterate (fn, reverse) { var this$1$1 = this; return this._iter.__iterate(function (v, k) { return fn(v, k, this$1$1); }, reverse); }; ToKeyedSequence.prototype.__iterator = function __iterator (type, reverse) { return this._iter.__iterator(type, reverse); }; return ToKeyedSequence; }(KeyedSeq)); ToKeyedSequence.prototype[IS_ORDERED_SYMBOL] = true; var ToIndexedSequence = /*@__PURE__*/(function (IndexedSeq) { function ToIndexedSequence(iter) { this._iter = iter; this.size = iter.size; } if ( IndexedSeq ) ToIndexedSequence.__proto__ = IndexedSeq; ToIndexedSequence.prototype = Object.create( IndexedSeq && IndexedSeq.prototype ); ToIndexedSequence.prototype.constructor = ToIndexedSequence; ToIndexedSequence.prototype.includes = function includes (value) { return this._iter.includes(value); }; ToIndexedSequence.prototype.__iterate = function __iterate (fn, reverse) { var this$1$1 = this; var i = 0; reverse && ensureSize(this); return this._iter.__iterate( function (v) { return fn(v, reverse ? this$1$1.size - ++i : i++, this$1$1); }, reverse ); }; ToIndexedSequence.prototype.__iterator = function __iterator (type, reverse) { var this$1$1 = this; var iterator = this._iter.__iterator(ITERATE_VALUES, reverse); var i = 0; reverse && ensureSize(this); return new Iterator(function () { var step = iterator.next(); return step.done ? step : iteratorValue( type, reverse ? this$1$1.size - ++i : i++, step.value, step ); }); }; return ToIndexedSequence; }(IndexedSeq)); var ToSetSequence = /*@__PURE__*/(function (SetSeq) { function ToSetSequence(iter) { this._iter = iter; this.size = iter.size; } if ( SetSeq ) ToSetSequence.__proto__ = SetSeq; ToSetSequence.prototype = Object.create( SetSeq && SetSeq.prototype ); ToSetSequence.prototype.constructor = ToSetSequence; ToSetSequence.prototype.has = function has (key) { return this._iter.includes(key); }; ToSetSequence.prototype.__iterate = function __iterate (fn, reverse) { var this$1$1 = this; return this._iter.__iterate(function (v) { return fn(v, v, this$1$1); }, reverse); }; ToSetSequence.prototype.__iterator = function __iterator (type, reverse) { var iterator = this._iter.__iterator(ITERATE_VALUES, reverse); return new Iterator(function () { var step = iterator.next(); return step.done ? step : iteratorValue(type, step.value, step.value, step); }); }; return ToSetSequence; }(SetSeq)); var FromEntriesSequence = /*@__PURE__*/(function (KeyedSeq) { function FromEntriesSequence(entries) { this._iter = entries; this.size = entries.size; } if ( KeyedSeq ) FromEntriesSequence.__proto__ = KeyedSeq; FromEntriesSequence.prototype = Object.create( KeyedSeq && KeyedSeq.prototype ); FromEntriesSequence.prototype.constructor = FromEntriesSequence; FromEntriesSequence.prototype.entrySeq = function entrySeq () { return this._iter.toSeq(); }; FromEntriesSequence.prototype.__iterate = function __iterate (fn, reverse) { var this$1$1 = this; return this._iter.__iterate(function (entry) { // Check if entry exists first so array access doesn't throw for holes // in the parent iteration. if (entry) { validateEntry(entry); var indexedCollection = isCollection(entry); return fn( indexedCollection ? entry.get(1) : entry[1], indexedCollection ? entry.get(0) : entry[0], this$1$1 ); } }, reverse); }; FromEntriesSequence.prototype.__iterator = function __iterator (type, reverse) { var iterator = this._iter.__iterator(ITERATE_VALUES, reverse); return new Iterator(function () { while (true) { var step = iterator.next(); if (step.done) { return step; } var entry = step.value; // Check if entry exists first so array access doesn't throw for holes // in the parent iteration. if (entry) { validateEntry(entry); var indexedCollection = isCollection(entry); return iteratorValue( type, indexedCollection ? entry.get(0) : entry[0], indexedCollection ? entry.get(1) : entry[1], step ); } } }); }; return FromEntriesSequence; }(KeyedSeq)); ToIndexedSequence.prototype.cacheResult = ToKeyedSequence.prototype.cacheResult = ToSetSequence.prototype.cacheResult = FromEntriesSequence.prototype.cacheResult = cacheResultThrough; function flipFactory(collection) { var flipSequence = makeSequence(collection); flipSequence._iter = collection; flipSequence.size = collection.size; flipSequence.flip = function () { return collection; }; flipSequence.reverse = function () { var reversedSequence = collection.reverse.apply(this); // super.reverse() reversedSequence.flip = function () { return collection.reverse(); }; return reversedSequence; }; flipSequence.has = function (key) { return collection.includes(key); }; flipSequence.includes = function (key) { return collection.has(key); }; flipSequence.cacheResult = cacheResultThrough; flipSequence.__iterateUncached = function (fn, reverse) { var this$1$1 = this; return collection.__iterate(function (v, k) { return fn(k, v, this$1$1) !== false; }, reverse); }; flipSequence.__iteratorUncached = function (type, reverse) { if (type === ITERATE_ENTRIES) { var iterator = collection.__iterator(type, reverse); return new Iterator(function () { var step = iterator.next(); if (!step.done) { var k = step.value[0]; step.value[0] = step.value[1]; step.value[1] = k; } return step; }); } return collection.__iterator( type === ITERATE_VALUES ? ITERATE_KEYS : ITERATE_VALUES, reverse ); }; return flipSequence; } function mapFactory(collection, mapper, context) { var mappedSequence = makeSequence(collection); mappedSequence.size = collection.size; mappedSequence.has = function (key) { return collection.has(key); }; mappedSequence.get = function (key, notSetValue) { var v = collection.get(key, NOT_SET); return v === NOT_SET ? notSetValue : mapper.call(context, v, key, collection); }; mappedSequence.__iterateUncached = function (fn, reverse) { var this$1$1 = this; return collection.__iterate( function (v, k, c) { return fn(mapper.call(context, v, k, c), k, this$1$1) !== false; }, reverse ); }; mappedSequence.__iteratorUncached = function (type, reverse) { var iterator = collection.__iterator(ITERATE_ENTRIES, reverse); return new Iterator(function () { var step = iterator.next(); if (step.done) { return step; } var entry = step.value; var key = entry[0]; return iteratorValue( type, key, mapper.call(context, entry[1], key, collection), step ); }); }; return mappedSequence; } function reverseFactory(collection, useKeys) { var this$1$1 = this; var reversedSequence = makeSequence(collection); reversedSequence._iter = collection; reversedSequence.size = collection.size; reversedSequence.reverse = function () { return collection; }; if (collection.flip) { reversedSequence.flip = function () { var flipSequence = flipFactory(collection); flipSequence.reverse = function () { return collection.flip(); }; return flipSequence; }; } reversedSequence.get = function (key, notSetValue) { return collection.get(useKeys ? key : -1 - key, notSetValue); }; reversedSequence.has = function (key) { return collection.has(useKeys ? key : -1 - key); }; reversedSequence.includes = function (value) { return collection.includes(value); }; reversedSequence.cacheResult = cacheResultThrough; reversedSequence.__iterate = function (fn, reverse) { var this$1$1 = this; var i = 0; reverse && ensureSize(collection); return collection.__iterate( function (v, k) { return fn(v, useKeys ? k : reverse ? this$1$1.size - ++i : i++, this$1$1); }, !reverse ); }; reversedSequence.__iterator = function (type, reverse) { var i = 0; reverse && ensureSize(collection); var iterator = collection.__iterator(ITERATE_ENTRIES, !reverse); return new Iterator(function () { var step = iterator.next(); if (step.done) { return step; } var entry = step.value; return iteratorValue( type, useKeys ? entry[0] : reverse ? this$1$1.size - ++i : i++, entry[1], step ); }); }; return reversedSequence; } function filterFactory(collection, predicate, context, useKeys) { var filterSequence = makeSequence(collection); if (useKeys) { filterSequence.has = function (key) { var v = collection.get(key, NOT_SET); return v !== NOT_SET && !!predicate.call(context, v, key, collection); }; filterSequence.get = function (key, notSetValue) { var v = collection.get(key, NOT_SET); return v !== NOT_SET && predicate.call(context, v, key, collection) ? v : notSetValue; }; } filterSequence.__iterateUncached = function (fn, reverse) { var this$1$1 = this; var iterations = 0; collection.__iterate(function (v, k, c) { if (predicate.call(context, v, k, c)) { iterations++; return fn(v, useKeys ? k : iterations - 1, this$1$1); } }, reverse); return iterations; }; filterSequence.__iteratorUncached = function (type, reverse) { var iterator = collection.__iterator(ITERATE_ENTRIES, reverse); var iterations = 0; return new Iterator(function () { while (true) { var step = iterator.next(); if (step.done) { return step; } var entry = step.value; var key = entry[0]; var value = entry[1]; if (predicate.call(context, value, key, collection)) { return iteratorValue(type, useKeys ? key : iterations++, value, step); } } }); }; return filterSequence; } function countByFactory(collection, grouper, context) { var groups = Map().asMutable(); collection.__iterate(function (v, k) { groups.update(grouper.call(context, v, k, collection), 0, function (a) { return a + 1; }); }); return groups.asImmutable(); } function groupByFactory(collection, grouper, context) { var isKeyedIter = isKeyed(collection); var groups = (isOrdered(collection) ? OrderedMap() : Map()).asMutable(); collection.__iterate(function (v, k) { groups.update( grouper.call(context, v, k, collection), function (a) { return ((a = a || []), a.push(isKeyedIter ? [k, v] : v), a); } ); }); var coerce = collectionClass(collection); return groups.map(function (arr) { return reify(collection, coerce(arr)); }).asImmutable(); } function partitionFactory(collection, predicate, context) { var isKeyedIter = isKeyed(collection); var groups = [[], []]; collection.__iterate(function (v, k) { groups[predicate.call(context, v, k, collection) ? 1 : 0].push( isKeyedIter ? [k, v] : v ); }); var coerce = collectionClass(collection); return groups.map(function (arr) { return reify(collection, coerce(arr)); }); } function sliceFactory(collection, begin, end, useKeys) { var originalSize = collection.size; if (wholeSlice(begin, end, originalSize)) { return collection; } // begin or end can not be resolved if they were provided as negative numbers and // this collection's size is unknown. In that case, cache first so there is // a known size and these do not resolve to NaN. if (typeof originalSize === 'undefined' && (begin < 0 || end < 0)) { return sliceFactory(collection.toSeq().cacheResult(), begin, end, useKeys); } var resolvedBegin = resolveBegin(begin, originalSize); var resolvedEnd = resolveEnd(end, originalSize); // Note: resolvedEnd is undefined when the original sequence's length is // unknown and this slice did not supply an end and should contain all // elements after resolvedBegin. // In that case, resolvedSize will be NaN and sliceSize will remain undefined. var resolvedSize = resolvedEnd - resolvedBegin; var sliceSize; if (resolvedSize === resolvedSize) { sliceSize = resolvedSize < 0 ? 0 : resolvedSize; } var sliceSeq = makeSequence(collection); // If collection.size is undefined, the size of the realized sliceSeq is // unknown at this point unless the number of items to slice is 0 sliceSeq.size = sliceSize === 0 ? sliceSize : (collection.size && sliceSize) || undefined; if (!useKeys && isSeq(collection) && sliceSize >= 0) { sliceSeq.get = function (index, notSetValue) { index = wrapIndex(this, index); return index >= 0 && index < sliceSize ? collection.get(index + resolvedBegin, notSetValue) : notSetValue; }; } sliceSeq.__iterateUncached = function (fn, reverse) { var this$1$1 = this; if (sliceSize === 0) { return 0; } if (reverse) { return this.cacheResult().__iterate(fn, reverse); } var skipped = 0; var isSkipping = true; var iterations = 0; collection.__iterate(function (v, k) { if (!(isSkipping && (isSkipping = skipped++ < resolvedBegin))) { iterations++; return ( fn(v, useKeys ? k : iterations - 1, this$1$1) !== false && iterations !== sliceSize ); } }); return iterations; }; sliceSeq.__iteratorUncached = function (type, reverse) { if (sliceSize !== 0 && reverse) { return this.cacheResult().__iterator(type, reverse); } // Don't bother instantiating parent iterator if taking 0. if (sliceSize === 0) { return new Iterator(iteratorDone); } var iterator = collection.__iterator(type, reverse); var skipped = 0; var iterations = 0; return new Iterator(function () { while (skipped++ < resolvedBegin) { iterator.next(); } if (++iterations > sliceSize) { return iteratorDone(); } var step = iterator.next(); if (useKeys || type === ITERATE_VALUES || step.done) { return step; } if (type === ITERATE_KEYS) { return iteratorValue(type, iterations - 1, undefined, step); } return iteratorValue(type, iterations - 1, step.value[1], step); }); }; return sliceSeq; } function takeWhileFactory(collection, predicate, context) { var takeSequence = makeSequence(collection); takeSequence.__iterateUncached = function (fn, reverse) { var this$1$1 = this; if (reverse) { return this.cacheResult().__iterate(fn, reverse); } var iterations = 0; collection.__iterate( function (v, k, c) { return predicate.call(context, v, k, c) && ++iterations && fn(v, k, this$1$1); } ); return iterations; }; takeSequence.__iteratorUncached = function (type, reverse) { var this$1$1 = this; if (reverse) { return this.cacheResult().__iterator(type, reverse); } var iterator = collection.__iterator(ITERATE_ENTRIES, reverse); var iterating = true; return new Iterator(function () { if (!iterating) { return iteratorDone(); } var step = iterator.next(); if (step.done) { return step; } var entry = step.value; var k = entry[0]; var v = entry[1]; if (!predicate.call(context, v, k, this$1$1)) { iterating = false; return iteratorDone(); } return type === ITERATE_ENTRIES ? step : iteratorValue(type, k, v, step); }); }; return takeSequence; } function skipWhileFactory(collection, predicate, context, useKeys) { var skipSequence = makeSequence(collection); skipSequence.__iterateUncached = function (fn, reverse) { var this$1$1 = this; if (reverse) { return this.cacheResult().__iterate(fn, reverse); } var isSkipping = true; var iterations = 0; collection.__iterate(function (v, k, c) { if (!(isSkipping && (isSkipping = predicate.call(context, v, k, c)))) { iterations++; return fn(v, useKeys ? k : iterations - 1, this$1$1); } }); return iterations; }; skipSequence.__iteratorUncached = function (type, reverse) { var this$1$1 = this; if (reverse) { return this.cacheResult().__iterator(type, reverse); } var iterator = collection.__iterator(ITERATE_ENTRIES, reverse); var skipping = true; var iterations = 0; return new Iterator(function () { var step; var k; var v; do { step = iterator.next(); if (step.done) { if (useKeys || type === ITERATE_VALUES) { return step; } if (type === ITERATE_KEYS) { return iteratorValue(type, iterations++, undefined, step); } return iteratorValue(type, iterations++, step.value[1], step); } var entry = step.value; k = entry[0]; v = entry[1]; skipping && (skipping = predicate.call(context, v, k, this$1$1)); } while (skipping); return type === ITERATE_ENTRIES ? step : iteratorValue(type, k, v, step); }); }; return skipSequence; } function concatFactory(collection, values) { var isKeyedCollection = isKeyed(collection); var iters = [collection] .concat(values) .map(function (v) { if (!isCollection(v)) { v = isKeyedCollection ? keyedSeqFromValue(v) : indexedSeqFromValue(Array.isArray(v) ? v : [v]); } else if (isKeyedCollection) { v = KeyedCollection(v); } return v; }) .filter(function (v) { return v.size !== 0; }); if (iters.length === 0) { return collection; } if (iters.length === 1) { var singleton = iters[0]; if ( singleton === collection || (isKeyedCollection && isKeyed(singleton)) || (isIndexed(collection) && isIndexed(singleton)) ) { return singleton; } } var concatSeq = new ArraySeq(iters); if (isKeyedCollection) { concatSeq = concatSeq.toKeyedSeq(); } else if (!isIndexed(collection)) { concatSeq = concatSeq.toSetSeq(); } concatSeq = concatSeq.flatten(true); concatSeq.size = iters.reduce(function (sum, seq) { if (sum !== undefined) { var size = seq.size; if (size !== undefined) { return sum + size; } } }, 0); return concatSeq; } function flattenFactory(collection, depth, useKeys) { var flatSequence = makeSequence(collection); flatSequence.__iterateUncached = function (fn, reverse) { if (reverse) { return this.cacheResult().__iterate(fn, reverse); } var iterations = 0; var stopped = false; function flatDeep(iter, currentDepth) { iter.__iterate(function (v, k) { if ((!depth || currentDepth < depth) && isCollection(v)) { flatDeep(v, currentDepth + 1); } else { iterations++; if (fn(v, useKeys ? k : iterations - 1, flatSequence) === false) { stopped = true; } } return !stopped; }, reverse); } flatDeep(collection, 0); return iterations; }; flatSequence.__iteratorUncached = function (type, reverse) { if (reverse) { return this.cacheResult().__iterator(type, reverse); } var iterator = collection.__iterator(type, reverse); var stack = []; var iterations = 0; return new Iterator(function () { while (iterator) { var step = iterator.next(); if (step.done !== false) { iterator = stack.pop(); continue; } var v = step.value; if (type === ITERATE_ENTRIES) { v = v[1]; } if ((!depth || stack.length < depth) && isCollection(v)) { stack.push(iterator); iterator = v.__iterator(type, reverse); } else { return useKeys ? step : iteratorValue(type, iterations++, v, step); } } return iteratorDone(); }); }; return flatSequence; } function flatMapFactory(collection, mapper, context) { var coerce = collectionClass(collection); return collection .toSeq() .map(function (v, k) { return coerce(mapper.call(context, v, k, collection)); }) .flatten(true); } function interposeFactory(collection, separator) { var interposedSequence = makeSequence(collection); interposedSequence.size = collection.size && collection.size * 2 - 1; interposedSequence.__iterateUncached = function (fn, reverse) { var this$1$1 = this; var iterations = 0; collection.__iterate( function (v) { return (!iterations || fn(separator, iterations++, this$1$1) !== false) && fn(v, iterations++, this$1$1) !== false; }, reverse ); return iterations; }; interposedSequence.__iteratorUncached = function (type, reverse) { var iterator = collection.__iterator(ITERATE_VALUES, reverse); var iterations = 0; var step; return new Iterator(function () { if (!step || iterations % 2) { step = iterator.next(); if (step.done) { return step; } } return iterations % 2 ? iteratorValue(type, iterations++, separator) : iteratorValue(type, iterations++, step.value, step); }); }; return interposedSequence; } function sortFactory(collection, comparator, mapper) { if (!comparator) { comparator = defaultComparator; } var isKeyedCollection = isKeyed(collection); var index = 0; var entries = collection .toSeq() .map(function (v, k) { return [k, v, index++, mapper ? mapper(v, k, collection) : v]; }) .valueSeq() .toArray(); entries .sort(function (a, b) { return comparator(a[3], b[3]) || a[2] - b[2]; }) .forEach( isKeyedCollection ? function (v, i) { entries[i].length = 2; } : function (v, i) { entries[i] = v[1]; } ); return isKeyedCollection ? KeyedSeq(entries) : isIndexed(collection) ? IndexedSeq(entries) : SetSeq(entries); } function maxFactory(collection, comparator, mapper) { if (!comparator) { comparator = defaultComparator; } if (mapper) { var entry = collection .toSeq() .map(function (v, k) { return [v, mapper(v, k, collection)]; }) .reduce(function (a, b) { return (maxCompare(comparator, a[1], b[1]) ? b : a); }); return entry && entry[0]; } return collection.reduce(function (a, b) { return (maxCompare(comparator, a, b) ? b : a); }); } function maxCompare(comparator, a, b) { var comp = comparator(b, a); // b is considered the new max if the comparator declares them equal, but // they are not equal and b is in fact a nullish value. return ( (comp === 0 && b !== a && (b === undefined || b === null || b !== b)) || comp > 0 ); } function zipWithFactory(keyIter, zipper, iters, zipAll) { var zipSequence = makeSequence(keyIter); var sizes = new ArraySeq(iters).map(function (i) { return i.size; }); zipSequence.size = zipAll ? sizes.max() : sizes.min(); // Note: this a generic base implementation of __iterate in terms of // __iterator which may be more generically useful in the future. zipSequence.__iterate = function (fn, reverse) { /* generic: var iterator = this.__iterator(ITERATE_ENTRIES, reverse); var step; var iterations = 0; while (!(step = iterator.next()).done) { iterations++; if (fn(step.value[1], step.value[0], this) === false) { break; } } return iterations; */ // indexed: var iterator = this.__iterator(ITERATE_VALUES, reverse); var step; var iterations = 0; while (!(step = iterator.next()).done) { if (fn(step.value, iterations++, this) === false) { break; } } return iterations; }; zipSequence.__iteratorUncached = function (type, reverse) { var iterators = iters.map( function (i) { return ((i = Collection(i)), getIterator(reverse ? i.reverse() : i)); } ); var iterations = 0; var isDone = false; return new Iterator(function () { var steps; if (!isDone) { steps = iterators.map(function (i) { return i.next(); }); isDone = zipAll ? steps.every(function (s) { return s.done; }) : steps.some(function (s) { return s.done; }); } if (isDone) { return iteratorDone(); } return iteratorValue( type, iterations++, zipper.apply( null, steps.map(function (s) { return s.value; }) ) ); }); }; return zipSequence; } // #pragma Helper Functions function reify(iter, seq) { return iter === seq ? iter : isSeq(iter) ? seq : iter.constructor(seq); } function validateEntry(entry) { if (entry !== Object(entry)) { throw new TypeError('Expected [K, V] tuple: ' + entry); } } function collectionClass(collection) { return isKeyed(collection) ? KeyedCollection : isIndexed(collection) ? IndexedCollection : SetCollection; } function makeSequence(collection) { return Object.create( (isKeyed(collection) ? KeyedSeq : isIndexed(collection) ? IndexedSeq : SetSeq ).prototype ); } function cacheResultThrough() { if (this._iter.cacheResult) { this._iter.cacheResult(); this.size = this._iter.size; return this; } return Seq.prototype.cacheResult.call(this); } function defaultComparator(a, b) { if (a === undefined && b === undefined) { return 0; } if (a === undefined) { return 1; } if (b === undefined) { return -1; } return a > b ? 1 : a < b ? -1 : 0; } function arrCopy(arr, offset) { offset = offset || 0; var len = Math.max(0, arr.length - offset); var newArr = new Array(len); for (var ii = 0; ii < len; ii++) { newArr[ii] = arr[ii + offset]; } return newArr; } function invariant(condition, error) { if (!condition) { throw new Error(error); } } function assertNotInfinite(size) { invariant( size !== Infinity, 'Cannot perform this action with an infinite size.' ); } function coerceKeyPath(keyPath) { if (isArrayLike(keyPath) && typeof keyPath !== 'string') { return keyPath; } if (isOrdered(keyPath)) { return keyPath.toArray(); } throw new TypeError( 'Invalid keyPath: expected Ordered Collection or Array: ' + keyPath ); } var toString = Object.prototype.toString; function isPlainObject(value) { // The base prototype's toString deals with Argument objects and native namespaces like Math if ( !value || typeof value !== 'object' || toString.call(value) !== '[object Object]' ) { return false; } var proto = Object.getPrototypeOf(value); if (proto === null) { return true; } // Iteratively going up the prototype chain is needed for cross-realm environments (differing contexts, iframes, etc) var parentProto = proto; var nextProto = Object.getPrototypeOf(proto); while (nextProto !== null) { parentProto = nextProto; nextProto = Object.getPrototypeOf(parentProto); } return parentProto === proto; } /** * Returns true if the value is a potentially-persistent data structure, either * provided by Immutable.js or a plain Array or Object. */ function isDataStructure(value) { return ( typeof value === 'object' && (isImmutable(value) || Array.isArray(value) || isPlainObject(value)) ); } function quoteString(value) { try { return typeof value === 'string' ? JSON.stringify(value) : String(value); } catch (_ignoreError) { return JSON.stringify(value); } } function has(collection, key) { return isImmutable(collection) ? collection.has(key) : isDataStructure(collection) && hasOwnProperty.call(collection, key); } function get(collection, key, notSetValue) { return isImmutable(collection) ? collection.get(key, notSetValue) : !has(collection, key) ? notSetValue : typeof collection.get === 'function' ? collection.get(key) : collection[key]; } function shallowCopy(from) { if (Array.isArray(from)) { return arrCopy(from); } var to = {}; for (var key in from) { if (hasOwnProperty.call(from, key)) { to[key] = from[key]; } } return to; } function remove(collection, key) { if (!isDataStructure(collection)) { throw new TypeError( 'Cannot update non-data-structure value: ' + collection ); } if (isImmutable(collection)) { if (!collection.remove) { throw new TypeError( 'Cannot update immutable value without .remove() method: ' + collection ); } return collection.remove(key); } if (!hasOwnProperty.call(collection, key)) { return collection; } var collectionCopy = shallowCopy(collection); if (Array.isArray(collectionCopy)) { collectionCopy.splice(key, 1); } else { delete collectionCopy[key]; } return collectionCopy; } function set(collection, key, value) { if (!isDataStructure(collection)) { throw new TypeError( 'Cannot update non-data-structure value: ' + collection ); } if (isImmutable(collection)) { if (!collection.set) { throw new TypeError( 'Cannot update immutable value without .set() method: ' + collection ); } return collection.set(key, value); } if (hasOwnProperty.call(collection, key) && value === collection[key]) { return collection; } var collectionCopy = shallowCopy(collection); collectionCopy[key] = value; return collectionCopy; } function updateIn$1(collection, keyPath, notSetValue, updater) { if (!updater) { updater = notSetValue; notSetValue = undefined; } var updatedValue = updateInDeeply( isImmutable(collection), collection, coerceKeyPath(keyPath), 0, notSetValue, updater ); return updatedValue === NOT_SET ? notSetValue : updatedValue; } function updateInDeeply( inImmutable, existing, keyPath, i, notSetValue, updater ) { var wasNotSet = existing === NOT_SET; if (i === keyPath.length) { var existingValue = wasNotSet ? notSetValue : existing; var newValue = updater(existingValue); return newValue === existingValue ? existing : newValue; } if (!wasNotSet && !isDataStructure(existing)) { throw new TypeError( 'Cannot update within non-data-structure value in path [' + keyPath.slice(0, i).map(quoteString) + ']: ' + existing ); } var key = keyPath[i]; var nextExisting = wasNotSet ? NOT_SET : get(existing, key, NOT_SET); var nextUpdated = updateInDeeply( nextExisting === NOT_SET ? inImmutable : isImmutable(nextExisting), nextExisting, keyPath, i + 1, notSetValue, updater ); return nextUpdated === nextExisting ? existing : nextUpdated === NOT_SET ? remove(existing, key) : set( wasNotSet ? (inImmutable ? emptyMap() : {}) : existing, key, nextUpdated ); } function setIn$1(collection, keyPath, value) { return updateIn$1(collection, keyPath, NOT_SET, function () { return value; }); } function setIn(keyPath, v) { return setIn$1(this, keyPath, v); } function removeIn(collection, keyPath) { return updateIn$1(collection, keyPath, function () { return NOT_SET; }); } function deleteIn(keyPath) { return removeIn(this, keyPath); } function update$1(collection, key, notSetValue, updater) { return updateIn$1(collection, [key], notSetValue, updater); } function update(key, notSetValue, updater) { return arguments.length === 1 ? key(this) : update$1(this, key, notSetValue, updater); } function updateIn(keyPath, notSetValue, updater) { return updateIn$1(this, keyPath, notSetValue, updater); } function merge$1() { var iters = [], len = arguments.length; while ( len-- ) iters[ len ] = arguments[ len ]; return mergeIntoKeyedWith(this, iters); } function mergeWith$1(merger) { var iters = [], len = arguments.length - 1; while ( len-- > 0 ) iters[ len ] = arguments[ len + 1 ]; if (typeof merger !== 'function') { throw new TypeError('Invalid merger function: ' + merger); } return mergeIntoKeyedWith(this, iters, merger); } function mergeIntoKeyedWith(collection, collections, merger) { var iters = []; for (var ii = 0; ii < collections.length; ii++) { var collection$1 = KeyedCollection(collections[ii]); if (collection$1.size !== 0) { iters.push(collection$1); } } if (iters.length === 0) { return collection; } if ( collection.toSeq().size === 0 && !collection.__ownerID && iters.length === 1 ) { return collection.constructor(iters[0]); } return collection.withMutations(function (collection) { var mergeIntoCollection = merger ? function (value, key) { update$1(collection, key, NOT_SET, function (oldVal) { return oldVal === NOT_SET ? value : merger(oldVal, value, key); } ); } : function (value, key) { collection.set(key, value); }; for (var ii = 0; ii < iters.length; ii++) { iters[ii].forEach(mergeIntoCollection); } }); } function merge(collection) { var sources = [], len = arguments.length - 1; while ( len-- > 0 ) sources[ len ] = arguments[ len + 1 ]; return mergeWithSources(collection, sources); } function mergeWith(merger, collection) { var sources = [], len = arguments.length - 2; while ( len-- > 0 ) sources[ len ] = arguments[ len + 2 ]; return mergeWithSources(collection, sources, merger); } function mergeDeep$1(collection) { var sources = [], len = arguments.length - 1; while ( len-- > 0 ) sources[ len ] = arguments[ len + 1 ]; return mergeDeepWithSources(collection, sources); } function mergeDeepWith$1(merger, collection) { var sources = [], len = arguments.length - 2; while ( len-- > 0 ) sources[ len ] = arguments[ len + 2 ]; return mergeDeepWithSources(collection, sources, merger); } function mergeDeepWithSources(collection, sources, merger) { return mergeWithSources(collection, sources, deepMergerWith(merger)); } function mergeWithSources(collection, sources, merger) { if (!isDataStructure(collection)) { throw new TypeError( 'Cannot merge into non-data-structure value: ' + collection ); } if (isImmutable(collection)) { return typeof merger === 'function' && collection.mergeWith ? collection.mergeWith.apply(collection, [ merger ].concat( sources )) : collection.merge ? collection.merge.apply(collection, sources) : collection.concat.apply(collection, sources); } var isArray = Array.isArray(collection); var merged = collection; var Collection = isArray ? IndexedCollection : KeyedCollection; var mergeItem = isArray ? function (value) { // Copy on write if (merged === collection) { merged = shallowCopy(merged); } merged.push(value); } : function (value, key) { var hasVal = hasOwnProperty.call(merged, key); var nextVal = hasVal && merger ? merger(merged[key], value, key) : value; if (!hasVal || nextVal !== merged[key]) { // Copy on write if (merged === collection) { merged = shallowCopy(merged); } merged[key] = nextVal; } }; for (var i = 0; i < sources.length; i++) { Collection(sources[i]).forEach(mergeItem); } return merged; } function deepMergerWith(merger) { function deepMerger(oldValue, newValue, key) { return isDataStructure(oldValue) && isDataStructure(newValue) && areMergeable(oldValue, newValue) ? mergeWithSources(oldValue, [newValue], deepMerger) : merger ? merger(oldValue, newValue, key) : newValue; } return deepMerger; } /** * It's unclear what the desired behavior is for merging two collections that * fall into separate categories between keyed, indexed, or set-like, so we only * consider them mergeable if they fall into the same category. */ function areMergeable(oldDataStructure, newDataStructure) { var oldSeq = Seq(oldDataStructure); var newSeq = Seq(newDataStructure); // This logic assumes that a sequence can only fall into one of the three // categories mentioned above (since there's no `isSetLike()` method). return ( isIndexed(oldSeq) === isIndexed(newSeq) && isKeyed(oldSeq) === isKeyed(newSeq) ); } function mergeDeep() { var iters = [], len = arguments.length; while ( len-- ) iters[ len ] = arguments[ len ]; return mergeDeepWithSources(this, iters); } function mergeDeepWith(merger) { var iters = [], len = arguments.length - 1; while ( len-- > 0 ) iters[ len ] = arguments[ len + 1 ]; return mergeDeepWithSources(this, iters, merger); } function mergeIn(keyPath) { var iters = [], len = arguments.length - 1; while ( len-- > 0 ) iters[ len ] = arguments[ len + 1 ]; return updateIn$1(this, keyPath, emptyMap(), function (m) { return mergeWithSources(m, iters); }); } function mergeDeepIn(keyPath) { var iters = [], len = arguments.length - 1; while ( len-- > 0 ) iters[ len ] = arguments[ len + 1 ]; return updateIn$1(this, keyPath, emptyMap(), function (m) { return mergeDeepWithSources(m, iters); } ); } function withMutations(fn) { var mutable = this.asMutable(); fn(mutable); return mutable.wasAltered() ? mutable.__ensureOwner(this.__ownerID) : this; } function asMutable() { return this.__ownerID ? this : this.__ensureOwner(new OwnerID()); } function asImmutable() { return this.__ensureOwner(); } function wasAltered() { return this.__altered; } var Map = /*@__PURE__*/(function (KeyedCollection) { function Map(value) { // eslint-disable-next-line no-constructor-return return value === undefined || value === null ? emptyMap() : isMap(value) && !isOrdered(value) ? value : emptyMap().withMutations(function (map) { var iter = KeyedCollection(value); assertNotInfinite(iter.size); iter.forEach(function (v, k) { return map.set(k, v); }); }); } if ( KeyedCollection ) Map.__proto__ = KeyedCollection; Map.prototype = Object.create( KeyedCollection && KeyedCollection.prototype ); Map.prototype.constructor = Map; Map.of = function of () { var keyValues = [], len = arguments.length; while ( len-- ) keyValues[ len ] = arguments[ len ]; return emptyMap().withMutations(function (map) { for (var i = 0; i < keyValues.length; i += 2) { if (i + 1 >= keyValues.length) { throw new Error('Missing value for key: ' + keyValues[i]); } map.set(keyValues[i], keyValues[i + 1]); } }); }; Map.prototype.toString = function toString () { return this.__toString('Map {', '}'); }; // @pragma Access Map.prototype.get = function get (k, notSetValue) { return this._root ? this._root.get(0, undefined, k, notSetValue) : notSetValue; }; // @pragma Modification Map.prototype.set = function set (k, v) { return updateMap(this, k, v); }; Map.prototype.remove = function remove (k) { return updateMap(this, k, NOT_SET); }; Map.prototype.deleteAll = function deleteAll (keys) { var collection = Collection(keys); if (collection.size === 0) { return this; } return this.withMutations(function (map) { collection.forEach(function (key) { return map.remove(key); }); }); }; Map.prototype.clear = function clear () { if (this.size === 0) { return this; } if (this.__ownerID) { this.size = 0; this._root = null; this.__hash = undefined; this.__altered = true; return this; } return emptyMap(); }; // @pragma Composition Map.prototype.sort = function sort (comparator) { // Late binding return OrderedMap(sortFactory(this, comparator)); }; Map.prototype.sortBy = function sortBy (mapper, comparator) { // Late binding return OrderedMap(sortFactory(this, comparator, mapper)); }; Map.prototype.map = function map (mapper, context) { var this$1$1 = this; return this.withMutations(function (map) { map.forEach(function (value, key) { map.set(key, mapper.call(context, value, key, this$1$1)); }); }); }; // @pragma Mutability Map.prototype.__iterator = function __iterator (type, reverse) { return new MapIterator(this, type, reverse); }; Map.prototype.__iterate = function __iterate (fn, reverse) { var this$1$1 = this; var iterations = 0; this._root && this._root.iterate(function (entry) { iterations++; return fn(entry[1], entry[0], this$1$1); }, reverse); return iterations; }; Map.prototype.__ensureOwner = function __ensureOwner (ownerID) { if (ownerID === this.__ownerID) { return this; } if (!ownerID) { if (this.size === 0) { return emptyMap(); } this.__ownerID = ownerID; this.__altered = false; return this; } return makeMap(this.size, this._root, ownerID, this.__hash); }; return Map; }(KeyedCollection)); Map.isMap = isMap; var MapPrototype = Map.prototype; MapPrototype[IS_MAP_SYMBOL] = true; MapPrototype[DELETE] = MapPrototype.remove; MapPrototype.removeAll = MapPrototype.deleteAll; MapPrototype.setIn = setIn; MapPrototype.removeIn = MapPrototype.deleteIn = deleteIn; MapPrototype.update = update; MapPrototype.updateIn = updateIn; MapPrototype.merge = MapPrototype.concat = merge$1; MapPrototype.mergeWith = mergeWith$1; MapPrototype.mergeDeep = mergeDeep; MapPrototype.mergeDeepWith = mergeDeepWith; MapPrototype.mergeIn = mergeIn; MapPrototype.mergeDeepIn = mergeDeepIn; MapPrototype.withMutations = withMutations; MapPrototype.wasAltered = wasAltered; MapPrototype.asImmutable = asImmutable; MapPrototype['@@transducer/init'] = MapPrototype.asMutable = asMutable; MapPrototype['@@transducer/step'] = function (result, arr) { return result.set(arr[0], arr[1]); }; MapPrototype['@@transducer/result'] = function (obj) { return obj.asImmutable(); }; // #pragma Trie Nodes var ArrayMapNode = function ArrayMapNode(ownerID, entries) { this.ownerID = ownerID; this.entries = entries; }; ArrayMapNode.prototype.get = function get (shift, keyHash, key, notSetValue) { var entries = this.entries; for (var ii = 0, len = entries.length; ii < len; ii++) { if (is(key, entries[ii][0])) { return entries[ii][1]; } } return notSetValue; }; ArrayMapNode.prototype.update = function update (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) { var removed = value === NOT_SET; var entries = this.entries; var idx = 0; var len = entries.length; for (; idx < len; idx++) { if (is(key, entries[idx][0])) { break; } } var exists = idx < len; if (exists ? entries[idx][1] === value : removed) { return this; } SetRef(didAlter); (removed || !exists) && SetRef(didChangeSize); if (removed && entries.length === 1) { return; // undefined } if (!exists && !removed && entries.length >= MAX_ARRAY_MAP_SIZE) { return createNodes(ownerID, entries, key, value); } var isEditable = ownerID && ownerID === this.ownerID; var newEntries = isEditable ? entries : arrCopy(entries); if (exists) { if (removed) { idx === len - 1 ? newEntries.pop() : (newEntries[idx] = newEntries.pop()); } else { newEntries[idx] = [key, value]; } } else { newEntries.push([key, value]); } if (isEditable) { this.entries = newEntries; return this; } return new ArrayMapNode(ownerID, newEntries); }; var BitmapIndexedNode = function BitmapIndexedNode(ownerID, bitmap, nodes) { this.ownerID = ownerID; this.bitmap = bitmap; this.nodes = nodes; }; BitmapIndexedNode.prototype.get = function get (shift, keyHash, key, notSetValue) { if (keyHash === undefined) { keyHash = hash(key); } var bit = 1 << ((shift === 0 ? keyHash : keyHash >>> shift) & MASK); var bitmap = this.bitmap; return (bitmap & bit) === 0 ? notSetValue : this.nodes[popCount(bitmap & (bit - 1))].get( shift + SHIFT, keyHash, key, notSetValue ); }; BitmapIndexedNode.prototype.update = function update (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) { if (keyHash === undefined) { keyHash = hash(key); } var keyHashFrag = (shift === 0 ? keyHash : keyHash >>> shift) & MASK; var bit = 1 << keyHashFrag; var bitmap = this.bitmap; var exists = (bitmap & bit) !== 0; if (!exists && value === NOT_SET) { return this; } var idx = popCount(bitmap & (bit - 1)); var nodes = this.nodes; var node = exists ? nodes[idx] : undefined; var newNode = updateNode( node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter ); if (newNode === node) { return this; } if (!exists && newNode && nodes.length >= MAX_BITMAP_INDEXED_SIZE) { return expandNodes(ownerID, nodes, bitmap, keyHashFrag, newNode); } if ( exists && !newNode && nodes.length === 2 && isLeafNode(nodes[idx ^ 1]) ) { return nodes[idx ^ 1]; } if (exists && newNode && nodes.length === 1 && isLeafNode(newNode)) { return newNode; } var isEditable = ownerID && ownerID === this.ownerID; var newBitmap = exists ? (newNode ? bitmap : bitmap ^ bit) : bitmap | bit; var newNodes = exists ? newNode ? setAt(nodes, idx, newNode, isEditable) : spliceOut(nodes, idx, isEditable) : spliceIn(nodes, idx, newNode, isEditable); if (isEditable) { this.bitmap = newBitmap; this.nodes = newNodes; return this; } return new BitmapIndexedNode(ownerID, newBitmap, newNodes); }; var HashArrayMapNode = function HashArrayMapNode(ownerID, count, nodes) { this.ownerID = ownerID; this.count = count; this.nodes = nodes; }; HashArrayMapNode.prototype.get = function get (shift, keyHash, key, notSetValue) { if (keyHash === undefined) { keyHash = hash(key); } var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK; var node = this.nodes[idx]; return node ? node.get(shift + SHIFT, keyHash, key, notSetValue) : notSetValue; }; HashArrayMapNode.prototype.update = function update (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) { if (keyHash === undefined) { keyHash = hash(key); } var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK; var removed = value === NOT_SET; var nodes = this.nodes; var node = nodes[idx]; if (removed && !node) { return this; } var newNode = updateNode( node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter ); if (newNode === node) { return this; } var newCount = this.count; if (!node) { newCount++; } else if (!newNode) { newCount--; if (newCount < MIN_HASH_ARRAY_MAP_SIZE) { return packNodes(ownerID, nodes, newCount, idx); } } var isEditable = ownerID && ownerID === this.ownerID; var newNodes = setAt(nodes, idx, newNode, isEditable); if (isEditable) { this.count = newCount; this.nodes = newNodes; return this; } return new HashArrayMapNode(ownerID, newCount, newNodes); }; var HashCollisionNode = function HashCollisionNode(ownerID, keyHash, entries) { this.ownerID = ownerID; this.keyHash = keyHash; this.entries = entries; }; HashCollisionNode.prototype.get = function get (shift, keyHash, key, notSetValue) { var entries = this.entries; for (var ii = 0, len = entries.length; ii < len; ii++) { if (is(key, entries[ii][0])) { return entries[ii][1]; } } return notSetValue; }; HashCollisionNode.prototype.update = function update (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) { if (keyHash === undefined) { keyHash = hash(key); } var removed = value === NOT_SET; if (keyHash !== this.keyHash) { if (removed) { return this; } SetRef(didAlter); SetRef(didChangeSize); return mergeIntoNode(this, ownerID, shift, keyHash, [key, value]); } var entries = this.entries; var idx = 0; var len = entries.length; for (; idx < len; idx++) { if (is(key, entries[idx][0])) { break; } } var exists = idx < len; if (exists ? entries[idx][1] === value : removed) { return this; } SetRef(didAlter); (removed || !exists) && SetRef(didChangeSize); if (removed && len === 2) { return new ValueNode(ownerID, this.keyHash, entries[idx ^ 1]); } var isEditable = ownerID && ownerID === this.ownerID; var newEntries = isEditable ? entries : arrCopy(entries); if (exists) { if (removed) { idx === len - 1 ? newEntries.pop() : (newEntries[idx] = newEntries.pop()); } else { newEntries[idx] = [key, value]; } } else { newEntries.push([key, value]); } if (isEditable) { this.entries = newEntries; return this; } return new HashCollisionNode(ownerID, this.keyHash, newEntries); }; var ValueNode = function ValueNode(ownerID, keyHash, entry) { this.ownerID = ownerID; this.keyHash = keyHash; this.entry = entry; }; ValueNode.prototype.get = function get (shift, keyHash, key, notSetValue) { return is(key, this.entry[0]) ? this.entry[1] : notSetValue; }; ValueNode.prototype.update = function update (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) { var removed = value === NOT_SET; var keyMatch = is(key, this.entry[0]); if (keyMatch ? value === this.entry[1] : removed) { return this; } SetRef(didAlter); if (removed) { SetRef(didChangeSize); return; // undefined } if (keyMatch) { if (ownerID && ownerID === this.ownerID) { this.entry[1] = value; return this; } return new ValueNode(ownerID, this.keyHash, [key, value]); } SetRef(didChangeSize); return mergeIntoNode(this, ownerID, shift, hash(key), [key, value]); }; // #pragma Iterators ArrayMapNode.prototype.iterate = HashCollisionNode.prototype.iterate = function (fn, reverse) { var entries = this.entries; for (var ii = 0, maxIndex = entries.length - 1; ii <= maxIndex; ii++) { if (fn(entries[reverse ? maxIndex - ii : ii]) === false) { return false; } } }; BitmapIndexedNode.prototype.iterate = HashArrayMapNode.prototype.iterate = function (fn, reverse) { var nodes = this.nodes; for (var ii = 0, maxIndex = nodes.length - 1; ii <= maxIndex; ii++) { var node = nodes[reverse ? maxIndex - ii : ii]; if (node && node.iterate(fn, reverse) === false) { return false; } } }; // eslint-disable-next-line no-unused-vars ValueNode.prototype.iterate = function (fn, reverse) { return fn(this.entry); }; var MapIterator = /*@__PURE__*/(function (Iterator) { function MapIterator(map, type, reverse) { this._type = type; this._reverse = reverse; this._stack = map._root && mapIteratorFrame(map._root); } if ( Iterator ) MapIterator.__proto__ = Iterator; MapIterator.prototype = Object.create( Iterator && Iterator.prototype ); MapIterator.prototype.constructor = MapIterator; MapIterator.prototype.next = function next () { var type = this._type; var stack = this._stack; while (stack) { var node = stack.node; var index = stack.index++; var maxIndex = (void 0); if (node.entry) { if (index === 0) { return mapIteratorValue(type, node.entry); } } else if (node.entries) { maxIndex = node.entries.length - 1; if (index <= maxIndex) { return mapIteratorValue( type, node.entries[this._reverse ? maxIndex - index : index] ); } } else { maxIndex = node.nodes.length - 1; if (index <= maxIndex) { var subNode = node.nodes[this._reverse ? maxIndex - index : index]; if (subNode) { if (subNode.entry) { return mapIteratorValue(type, subNode.entry); } stack = this._stack = mapIteratorFrame(subNode, stack); } continue; } } stack = this._stack = this._stack.__prev; } return iteratorDone(); }; return MapIterator; }(Iterator)); function mapIteratorValue(type, entry) { return iteratorValue(type, entry[0], entry[1]); } function mapIteratorFrame(node, prev) { return { node: node, index: 0, __prev: prev, }; } function makeMap(size, root, ownerID, hash) { var map = Object.create(MapPrototype); map.size = size; map._root = root; map.__ownerID = ownerID; map.__hash = hash; map.__altered = false; return map; } var EMPTY_MAP; function emptyMap() { return EMPTY_MAP || (EMPTY_MAP = makeMap(0)); } function updateMap(map, k, v) { var newRoot; var newSize; if (!map._root) { if (v === NOT_SET) { return map; } newSize = 1; newRoot = new ArrayMapNode(map.__ownerID, [[k, v]]); } else { var didChangeSize = MakeRef(); var didAlter = MakeRef(); newRoot = updateNode( map._root, map.__ownerID, 0, undefined, k, v, didChangeSize, didAlter ); if (!didAlter.value) { return map; } newSize = map.size + (didChangeSize.value ? (v === NOT_SET ? -1 : 1) : 0); } if (map.__ownerID) { map.size = newSize; map._root = newRoot; map.__hash = undefined; map.__altered = true; return map; } return newRoot ? makeMap(newSize, newRoot) : emptyMap(); } function updateNode( node, ownerID, shift, keyHash, key, value, didChangeSize, didAlter ) { if (!node) { if (value === NOT_SET) { return node; } SetRef(didAlter); SetRef(didChangeSize); return new ValueNode(ownerID, keyHash, [key, value]); } return node.update( ownerID, shift, keyHash, key, value, didChangeSize, didAlter ); } function isLeafNode(node) { return ( node.constructor === ValueNode || node.constructor === HashCollisionNode ); } function mergeIntoNode(node, ownerID, shift, keyHash, entry) { if (node.keyHash === keyHash) { return new HashCollisionNode(ownerID, keyHash, [node.entry, entry]); } var idx1 = (shift === 0 ? node.keyHash : node.keyHash >>> shift) & MASK; var idx2 = (shift === 0 ? keyHash : keyHash >>> shift) & MASK; var newNode; var nodes = idx1 === idx2 ? [mergeIntoNode(node, ownerID, shift + SHIFT, keyHash, entry)] : ((newNode = new ValueNode(ownerID, keyHash, entry)), idx1 < idx2 ? [node, newNode] : [newNode, node]); return new BitmapIndexedNode(ownerID, (1 << idx1) | (1 << idx2), nodes); } function createNodes(ownerID, entries, key, value) { if (!ownerID) { ownerID = new OwnerID(); } var node = new ValueNode(ownerID, hash(key), [key, value]); for (var ii = 0; ii < entries.length; ii++) { var entry = entries[ii]; node = node.update(ownerID, 0, undefined, entry[0], entry[1]); } return node; } function packNodes(ownerID, nodes, count, excluding) { var bitmap = 0; var packedII = 0; var packedNodes = new Array(count); for (var ii = 0, bit = 1, len = nodes.length; ii < len; ii++, bit <<= 1) { var node = nodes[ii]; if (node !== undefined && ii !== excluding) { bitmap |= bit; packedNodes[packedII++] = node; } } return new BitmapIndexedNode(ownerID, bitmap, packedNodes); } function expandNodes(ownerID, nodes, bitmap, including, node) { var count = 0; var expandedNodes = new Array(SIZE); for (var ii = 0; bitmap !== 0; ii++, bitmap >>>= 1) { expandedNodes[ii] = bitmap & 1 ? nodes[count++] : undefined; } expandedNodes[including] = node; return new HashArrayMapNode(ownerID, count + 1, expandedNodes); } function popCount(x) { x -= (x >> 1) & 0x55555555; x = (x & 0x33333333) + ((x >> 2) & 0x33333333); x = (x + (x >> 4)) & 0x0f0f0f0f; x += x >> 8; x += x >> 16; return x & 0x7f; } function setAt(array, idx, val, canEdit) { var newArray = canEdit ? array : arrCopy(array); newArray[idx] = val; return newArray; } function spliceIn(array, idx, val, canEdit) { var newLen = array.length + 1; if (canEdit && idx + 1 === newLen) { array[idx] = val; return array; } var newArray = new Array(newLen); var after = 0; for (var ii = 0; ii < newLen; ii++) { if (ii === idx) { newArray[ii] = val; after = -1; } else { newArray[ii] = array[ii + after]; } } return newArray; } function spliceOut(array, idx, canEdit) { var newLen = array.length - 1; if (canEdit && idx === newLen) { array.pop(); return array; } var newArray = new Array(newLen); var after = 0; for (var ii = 0; ii < newLen; ii++) { if (ii === idx) { after = 1; } newArray[ii] = array[ii + after]; } return newArray; } var MAX_ARRAY_MAP_SIZE = SIZE / 4; var MAX_BITMAP_INDEXED_SIZE = SIZE / 2; var MIN_HASH_ARRAY_MAP_SIZE = SIZE / 4; var IS_LIST_SYMBOL = '@@__IMMUTABLE_LIST__@@'; function isList(maybeList) { return Boolean(maybeList && maybeList[IS_LIST_SYMBOL]); } var List = /*@__PURE__*/(function (IndexedCollection) { function List(value) { var empty = emptyList(); if (value === undefined || value === null) { // eslint-disable-next-line no-constructor-return return empty; } if (isList(value)) { // eslint-disable-next-line no-constructor-return return value; } var iter = IndexedCollection(value); var size = iter.size; if (size === 0) { // eslint-disable-next-line no-constructor-return return empty; } assertNotInfinite(size); if (size > 0 && size < SIZE) { // eslint-disable-next-line no-constructor-return return makeList(0, size, SHIFT, null, new VNode(iter.toArray())); } // eslint-disable-next-line no-constructor-return return empty.withMutations(function (list) { list.setSize(size); iter.forEach(function (v, i) { return list.set(i, v); }); }); } if ( IndexedCollection ) List.__proto__ = IndexedCollection; List.prototype = Object.create( IndexedCollection && IndexedCollection.prototype ); List.prototype.constructor = List; List.of = function of (/*...values*/) { return this(arguments); }; List.prototype.toString = function toString () { return this.__toString('List [', ']'); }; // @pragma Access List.prototype.get = function get (index, notSetValue) { index = wrapIndex(this, index); if (index >= 0 && index < this.size) { index += this._origin; var node = listNodeFor(this, index); return node && node.array[index & MASK]; } return notSetValue; }; // @pragma Modification List.prototype.set = function set (index, value) { return updateList(this, index, value); }; List.prototype.remove = function remove (index) { return !this.has(index) ? this : index === 0 ? this.shift() : index === this.size - 1 ? this.pop() : this.splice(index, 1); }; List.prototype.insert = function insert (index, value) { return this.splice(index, 0, value); }; List.prototype.clear = function clear () { if (this.size === 0) { return this; } if (this.__ownerID) { this.size = this._origin = this._capacity = 0; this._level = SHIFT; this._root = this._tail = this.__hash = undefined; this.__altered = true; return this; } return emptyList(); }; List.prototype.push = function push (/*...values*/) { var values = arguments; var oldSize = this.size; return this.withMutations(function (list) { setListBounds(list, 0, oldSize + values.length); for (var ii = 0; ii < values.length; ii++) { list.set(oldSize + ii, values[ii]); } }); }; List.prototype.pop = function pop () { return setListBounds(this, 0, -1); }; List.prototype.unshift = function unshift (/*...values*/) { var values = arguments; return this.withMutations(function (list) { setListBounds(list, -values.length); for (var ii = 0; ii < values.length; ii++) { list.set(ii, values[ii]); } }); }; List.prototype.shift = function shift () { return setListBounds(this, 1); }; // @pragma Composition List.prototype.concat = function concat (/*...collections*/) { var arguments$1 = arguments; var seqs = []; for (var i = 0; i < arguments.length; i++) { var argument = arguments$1[i]; var seq = IndexedCollection( typeof argument !== 'string' && hasIterator(argument) ? argument : [argument] ); if (seq.size !== 0) { seqs.push(seq); } } if (seqs.length === 0) { return this; } if (this.size === 0 && !this.__ownerID && seqs.length === 1) { return this.constructor(seqs[0]); } return this.withMutations(function (list) { seqs.forEach(function (seq) { return seq.forEach(function (value) { return list.push(value); }); }); }); }; List.prototype.setSize = function setSize (size) { return setListBounds(this, 0, size); }; List.prototype.map = function map (mapper, context) { var this$1$1 = this; return this.withMutations(function (list) { for (var i = 0; i < this$1$1.size; i++) { list.set(i, mapper.call(context, list.get(i), i, this$1$1)); } }); }; // @pragma Iteration List.prototype.slice = function slice (begin, end) { var size = this.size; if (wholeSlice(begin, end, size)) { return this; } return setListBounds( this, resolveBegin(begin, size), resolveEnd(end, size) ); }; List.prototype.__iterator = function __iterator (type, reverse) { var index = reverse ? this.size : 0; var values = iterateList(this, reverse); return new Iterator(function () { var value = values(); return value === DONE ? iteratorDone() : iteratorValue(type, reverse ? --index : index++, value); }); }; List.prototype.__iterate = function __iterate (fn, reverse) { var index = reverse ? this.size : 0; var values = iterateList(this, reverse); var value; while ((value = values()) !== DONE) { if (fn(value, reverse ? --index : index++, this) === false) { break; } } return index; }; List.prototype.__ensureOwner = function __ensureOwner (ownerID) { if (ownerID === this.__ownerID) { return this; } if (!ownerID) { if (this.size === 0) { return emptyList(); } this.__ownerID = ownerID; this.__altered = false; return this; } return makeList( this._origin, this._capacity, this._level, this._root, this._tail, ownerID, this.__hash ); }; return List; }(IndexedCollection)); List.isList = isList; var ListPrototype = List.prototype; ListPrototype[IS_LIST_SYMBOL] = true; ListPrototype[DELETE] = ListPrototype.remove; ListPrototype.merge = ListPrototype.concat; ListPrototype.setIn = setIn; ListPrototype.deleteIn = ListPrototype.removeIn = deleteIn; ListPrototype.update = update; ListPrototype.updateIn = updateIn; ListPrototype.mergeIn = mergeIn; ListPrototype.mergeDeepIn = mergeDeepIn; ListPrototype.withMutations = withMutations; ListPrototype.wasAltered = wasAltered; ListPrototype.asImmutable = asImmutable; ListPrototype['@@transducer/init'] = ListPrototype.asMutable = asMutable; ListPrototype['@@transducer/step'] = function (result, arr) { return result.push(arr); }; ListPrototype['@@transducer/result'] = function (obj) { return obj.asImmutable(); }; var VNode = function VNode(array, ownerID) { this.array = array; this.ownerID = ownerID; }; // TODO: seems like these methods are very similar VNode.prototype.removeBefore = function removeBefore (ownerID, level, index) { if (index === level ? 1 << level : this.array.length === 0) { return this; } var originIndex = (index >>> level) & MASK; if (originIndex >= this.array.length) { return new VNode([], ownerID); } var removingFirst = originIndex === 0; var newChild; if (level > 0) { var oldChild = this.array[originIndex]; newChild = oldChild && oldChild.removeBefore(ownerID, level - SHIFT, index); if (newChild === oldChild && removingFirst) { return this; } } if (removingFirst && !newChild) { return this; } var editable = editableVNode(this, ownerID); if (!removingFirst) { for (var ii = 0; ii < originIndex; ii++) { editable.array[ii] = undefined; } } if (newChild) { editable.array[originIndex] = newChild; } return editable; }; VNode.prototype.removeAfter = function removeAfter (ownerID, level, index) { if (index === (level ? 1 << level : 0) || this.array.length === 0) { return this; } var sizeIndex = ((index - 1) >>> level) & MASK; if (sizeIndex >= this.array.length) { return this; } var newChild; if (level > 0) { var oldChild = this.array[sizeIndex]; newChild = oldChild && oldChild.removeAfter(ownerID, level - SHIFT, index); if (newChild === oldChild && sizeIndex === this.array.length - 1) { return this; } } var editable = editableVNode(this, ownerID); editable.array.splice(sizeIndex + 1); if (newChild) { editable.array[sizeIndex] = newChild; } return editable; }; var DONE = {}; function iterateList(list, reverse) { var left = list._origin; var right = list._capacity; var tailPos = getTailOffset(right); var tail = list._tail; return iterateNodeOrLeaf(list._root, list._level, 0); function iterateNodeOrLeaf(node, level, offset) { return level === 0 ? iterateLeaf(node, offset) : iterateNode(node, level, offset); } function iterateLeaf(node, offset) { var array = offset === tailPos ? tail && tail.array : node && node.array; var from = offset > left ? 0 : left - offset; var to = right - offset; if (to > SIZE) { to = SIZE; } return function () { if (from === to) { return DONE; } var idx = reverse ? --to : from++; return array && array[idx]; }; } function iterateNode(node, level, offset) { var values; var array = node && node.array; var from = offset > left ? 0 : (left - offset) >> level; var to = ((right - offset) >> level) + 1; if (to > SIZE) { to = SIZE; } return function () { while (true) { if (values) { var value = values(); if (value !== DONE) { return value; } values = null; } if (from === to) { return DONE; } var idx = reverse ? --to : from++; values = iterateNodeOrLeaf( array && array[idx], level - SHIFT, offset + (idx << level) ); } }; } } function makeList(origin, capacity, level, root, tail, ownerID, hash) { var list = Object.create(ListPrototype); list.size = capacity - origin; list._origin = origin; list._capacity = capacity; list._level = level; list._root = root; list._tail = tail; list.__ownerID = ownerID; list.__hash = hash; list.__altered = false; return list; } var EMPTY_LIST; function emptyList() { return EMPTY_LIST || (EMPTY_LIST = makeList(0, 0, SHIFT)); } function updateList(list, index, value) { index = wrapIndex(list, index); if (index !== index) { return list; } if (index >= list.size || index < 0) { return list.withMutations(function (list) { index < 0 ? setListBounds(list, index).set(0, value) : setListBounds(list, 0, index + 1).set(index, value); }); } index += list._origin; var newTail = list._tail; var newRoot = list._root; var didAlter = MakeRef(); if (index >= getTailOffset(list._capacity)) { newTail = updateVNode(newTail, list.__ownerID, 0, index, value, didAlter); } else { newRoot = updateVNode( newRoot, list.__ownerID, list._level, index, value, didAlter ); } if (!didAlter.value) { return list; } if (list.__ownerID) { list._root = newRoot; list._tail = newTail; list.__hash = undefined; list.__altered = true; return list; } return makeList(list._origin, list._capacity, list._level, newRoot, newTail); } function updateVNode(node, ownerID, level, index, value, didAlter) { var idx = (index >>> level) & MASK; var nodeHas = node && idx < node.array.length; if (!nodeHas && value === undefined) { return node; } var newNode; if (level > 0) { var lowerNode = node && node.array[idx]; var newLowerNode = updateVNode( lowerNode, ownerID, level - SHIFT, index, value, didAlter ); if (newLowerNode === lowerNode) { return node; } newNode = editableVNode(node, ownerID); newNode.array[idx] = newLowerNode; return newNode; } if (nodeHas && node.array[idx] === value) { return node; } if (didAlter) { SetRef(didAlter); } newNode = editableVNode(node, ownerID); if (value === undefined && idx === newNode.array.length - 1) { newNode.array.pop(); } else { newNode.array[idx] = value; } return newNode; } function editableVNode(node, ownerID) { if (ownerID && node && ownerID === node.ownerID) { return node; } return new VNode(node ? node.array.slice() : [], ownerID); } function listNodeFor(list, rawIndex) { if (rawIndex >= getTailOffset(list._capacity)) { return list._tail; } if (rawIndex < 1 << (list._level + SHIFT)) { var node = list._root; var level = list._level; while (node && level > 0) { node = node.array[(rawIndex >>> level) & MASK]; level -= SHIFT; } return node; } } function setListBounds(list, begin, end) { // Sanitize begin & end using this shorthand for ToInt32(argument) // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32 if (begin !== undefined) { begin |= 0; } if (end !== undefined) { end |= 0; } var owner = list.__ownerID || new OwnerID(); var oldOrigin = list._origin; var oldCapacity = list._capacity; var newOrigin = oldOrigin + begin; var newCapacity = end === undefined ? oldCapacity : end < 0 ? oldCapacity + end : oldOrigin + end; if (newOrigin === oldOrigin && newCapacity === oldCapacity) { return list; } // If it's going to end after it starts, it's empty. if (newOrigin >= newCapacity) { return list.clear(); } var newLevel = list._level; var newRoot = list._root; // New origin might need creating a higher root. var offsetShift = 0; while (newOrigin + offsetShift < 0) { newRoot = new VNode( newRoot && newRoot.array.length ? [undefined, newRoot] : [], owner ); newLevel += SHIFT; offsetShift += 1 << newLevel; } if (offsetShift) { newOrigin += offsetShift; oldOrigin += offsetShift; newCapacity += offsetShift; oldCapacity += offsetShift; } var oldTailOffset = getTailOffset(oldCapacity); var newTailOffset = getTailOffset(newCapacity); // New size might need creating a higher root. while (newTailOffset >= 1 << (newLevel + SHIFT)) { newRoot = new VNode( newRoot && newRoot.array.length ? [newRoot] : [], owner ); newLevel += SHIFT; } // Locate or create the new tail. var oldTail = list._tail; var newTail = newTailOffset < oldTailOffset ? listNodeFor(list, newCapacity - 1) : newTailOffset > oldTailOffset ? new VNode([], owner) : oldTail; // Merge Tail into tree. if ( oldTail && newTailOffset > oldTailOffset && newOrigin < oldCapacity && oldTail.array.length ) { newRoot = editableVNode(newRoot, owner); var node = newRoot; for (var level = newLevel; level > SHIFT; level -= SHIFT) { var idx = (oldTailOffset >>> level) & MASK; node = node.array[idx] = editableVNode(node.array[idx], owner); } node.array[(oldTailOffset >>> SHIFT) & MASK] = oldTail; } // If the size has been reduced, there's a chance the tail needs to be trimmed. if (newCapacity < oldCapacity) { newTail = newTail && newTail.removeAfter(owner, 0, newCapacity); } // If the new origin is within the tail, then we do not need a root. if (newOrigin >= newTailOffset) { newOrigin -= newTailOffset; newCapacity -= newTailOffset; newLevel = SHIFT; newRoot = null; newTail = newTail && newTail.removeBefore(owner, 0, newOrigin); // Otherwise, if the root has been trimmed, garbage collect. } else if (newOrigin > oldOrigin || newTailOffset < oldTailOffset) { offsetShift = 0; // Identify the new top root node of the subtree of the old root. while (newRoot) { var beginIndex = (newOrigin >>> newLevel) & MASK; if ((beginIndex !== newTailOffset >>> newLevel) & MASK) { break; } if (beginIndex) { offsetShift += (1 << newLevel) * beginIndex; } newLevel -= SHIFT; newRoot = newRoot.array[beginIndex]; } // Trim the new sides of the new root. if (newRoot && newOrigin > oldOrigin) { newRoot = newRoot.removeBefore(owner, newLevel, newOrigin - offsetShift); } if (newRoot && newTailOffset < oldTailOffset) { newRoot = newRoot.removeAfter( owner, newLevel, newTailOffset - offsetShift ); } if (offsetShift) { newOrigin -= offsetShift; newCapacity -= offsetShift; } } if (list.__ownerID) { list.size = newCapacity - newOrigin; list._origin = newOrigin; list._capacity = newCapacity; list._level = newLevel; list._root = newRoot; list._tail = newTail; list.__hash = undefined; list.__altered = true; return list; } return makeList(newOrigin, newCapacity, newLevel, newRoot, newTail); } function getTailOffset(size) { return size < SIZE ? 0 : ((size - 1) >>> SHIFT) << SHIFT; } var OrderedMap = /*@__PURE__*/(function (Map) { function OrderedMap(value) { // eslint-disable-next-line no-constructor-return return value === undefined || value === null ? emptyOrderedMap() : isOrderedMap(value) ? value : emptyOrderedMap().withMutations(function (map) { var iter = KeyedCollection(value); assertNotInfinite(iter.size); iter.forEach(function (v, k) { return map.set(k, v); }); }); } if ( Map ) OrderedMap.__proto__ = Map; OrderedMap.prototype = Object.create( Map && Map.prototype ); OrderedMap.prototype.constructor = OrderedMap; OrderedMap.of = function of (/*...values*/) { return this(arguments); }; OrderedMap.prototype.toString = function toString () { return this.__toString('OrderedMap {', '}'); }; // @pragma Access OrderedMap.prototype.get = function get (k, notSetValue) { var index = this._map.get(k); return index !== undefined ? this._list.get(index)[1] : notSetValue; }; // @pragma Modification OrderedMap.prototype.clear = function clear () { if (this.size === 0) { return this; } if (this.__ownerID) { this.size = 0; this._map.clear(); this._list.clear(); this.__altered = true; return this; } return emptyOrderedMap(); }; OrderedMap.prototype.set = function set (k, v) { return updateOrderedMap(this, k, v); }; OrderedMap.prototype.remove = function remove (k) { return updateOrderedMap(this, k, NOT_SET); }; OrderedMap.prototype.__iterate = function __iterate (fn, reverse) { var this$1$1 = this; return this._list.__iterate( function (entry) { return entry && fn(entry[1], entry[0], this$1$1); }, reverse ); }; OrderedMap.prototype.__iterator = function __iterator (type, reverse) { return this._list.fromEntrySeq().__iterator(type, reverse); }; OrderedMap.prototype.__ensureOwner = function __ensureOwner (ownerID) { if (ownerID === this.__ownerID) { return this; } var newMap = this._map.__ensureOwner(ownerID); var newList = this._list.__ensureOwner(ownerID); if (!ownerID) { if (this.size === 0) { return emptyOrderedMap(); } this.__ownerID = ownerID; this.__altered = false; this._map = newMap; this._list = newList; return this; } return makeOrderedMap(newMap, newList, ownerID, this.__hash); }; return OrderedMap; }(Map)); OrderedMap.isOrderedMap = isOrderedMap; OrderedMap.prototype[IS_ORDERED_SYMBOL] = true; OrderedMap.prototype[DELETE] = OrderedMap.prototype.remove; function makeOrderedMap(map, list, ownerID, hash) { var omap = Object.create(OrderedMap.prototype); omap.size = map ? map.size : 0; omap._map = map; omap._list = list; omap.__ownerID = ownerID; omap.__hash = hash; omap.__altered = false; return omap; } var EMPTY_ORDERED_MAP; function emptyOrderedMap() { return ( EMPTY_ORDERED_MAP || (EMPTY_ORDERED_MAP = makeOrderedMap(emptyMap(), emptyList())) ); } function updateOrderedMap(omap, k, v) { var map = omap._map; var list = omap._list; var i = map.get(k); var has = i !== undefined; var newMap; var newList; if (v === NOT_SET) { // removed if (!has) { return omap; } if (list.size >= SIZE && list.size >= map.size * 2) { newList = list.filter(function (entry, idx) { return entry !== undefined && i !== idx; }); newMap = newList .toKeyedSeq() .map(function (entry) { return entry[0]; }) .flip() .toMap(); if (omap.__ownerID) { newMap.__ownerID = newList.__ownerID = omap.__ownerID; } } else { newMap = map.remove(k); newList = i === list.size - 1 ? list.pop() : list.set(i, undefined); } } else if (has) { if (v === list.get(i)[1]) { return omap; } newMap = map; newList = list.set(i, [k, v]); } else { newMap = map.set(k, list.size); newList = list.set(list.size, [k, v]); } if (omap.__ownerID) { omap.size = newMap.size; omap._map = newMap; omap._list = newList; omap.__hash = undefined; omap.__altered = true; return omap; } return makeOrderedMap(newMap, newList); } var IS_STACK_SYMBOL = '@@__IMMUTABLE_STACK__@@'; function isStack(maybeStack) { return Boolean(maybeStack && maybeStack[IS_STACK_SYMBOL]); } var Stack = /*@__PURE__*/(function (IndexedCollection) { function Stack(value) { // eslint-disable-next-line no-constructor-return return value === undefined || value === null ? emptyStack() : isStack(value) ? value : emptyStack().pushAll(value); } if ( IndexedCollection ) Stack.__proto__ = IndexedCollection; Stack.prototype = Object.create( IndexedCollection && IndexedCollection.prototype ); Stack.prototype.constructor = Stack; Stack.of = function of (/*...values*/) { return this(arguments); }; Stack.prototype.toString = function toString () { return this.__toString('Stack [', ']'); }; // @pragma Access Stack.prototype.get = function get (index, notSetValue) { var head = this._head; index = wrapIndex(this, index); while (head && index--) { head = head.next; } return head ? head.value : notSetValue; }; Stack.prototype.peek = function peek () { return this._head && this._head.value; }; // @pragma Modification Stack.prototype.push = function push (/*...values*/) { var arguments$1 = arguments; if (arguments.length === 0) { return this; } var newSize = this.size + arguments.length; var head = this._head; for (var ii = arguments.length - 1; ii >= 0; ii--) { head = { value: arguments$1[ii], next: head, }; } if (this.__ownerID) { this.size = newSize; this._head = head; this.__hash = undefined; this.__altered = true; return this; } return makeStack(newSize, head); }; Stack.prototype.pushAll = function pushAll (iter) { iter = IndexedCollection(iter); if (iter.size === 0) { return this; } if (this.size === 0 && isStack(iter)) { return iter; } assertNotInfinite(iter.size); var newSize = this.size; var head = this._head; iter.__iterate(function (value) { newSize++; head = { value: value, next: head, }; }, /* reverse */ true); if (this.__ownerID) { this.size = newSize; this._head = head; this.__hash = undefined; this.__altered = true; return this; } return makeStack(newSize, head); }; Stack.prototype.pop = function pop () { return this.slice(1); }; Stack.prototype.clear = function clear () { if (this.size === 0) { return this; } if (this.__ownerID) { this.size = 0; this._head = undefined; this.__hash = undefined; this.__altered = true; return this; } return emptyStack(); }; Stack.prototype.slice = function slice (begin, end) { if (wholeSlice(begin, end, this.size)) { return this; } var resolvedBegin = resolveBegin(begin, this.size); var resolvedEnd = resolveEnd(end, this.size); if (resolvedEnd !== this.size) { // super.slice(begin, end); return IndexedCollection.prototype.slice.call(this, begin, end); } var newSize = this.size - resolvedBegin; var head = this._head; while (resolvedBegin--) { head = head.next; } if (this.__ownerID) { this.size = newSize; this._head = head; this.__hash = undefined; this.__altered = true; return this; } return makeStack(newSize, head); }; // @pragma Mutability Stack.prototype.__ensureOwner = function __ensureOwner (ownerID) { if (ownerID === this.__ownerID) { return this; } if (!ownerID) { if (this.size === 0) { return emptyStack(); } this.__ownerID = ownerID; this.__altered = false; return this; } return makeStack(this.size, this._head, ownerID, this.__hash); }; // @pragma Iteration Stack.prototype.__iterate = function __iterate (fn, reverse) { var this$1$1 = this; if (reverse) { return new ArraySeq(this.toArray()).__iterate( function (v, k) { return fn(v, k, this$1$1); }, reverse ); } var iterations = 0; var node = this._head; while (node) { if (fn(node.value, iterations++, this) === false) { break; } node = node.next; } return iterations; }; Stack.prototype.__iterator = function __iterator (type, reverse) { if (reverse) { return new ArraySeq(this.toArray()).__iterator(type, reverse); } var iterations = 0; var node = this._head; return new Iterator(function () { if (node) { var value = node.value; node = node.next; return iteratorValue(type, iterations++, value); } return iteratorDone(); }); }; return Stack; }(IndexedCollection)); Stack.isStack = isStack; var StackPrototype = Stack.prototype; StackPrototype[IS_STACK_SYMBOL] = true; StackPrototype.shift = StackPrototype.pop; StackPrototype.unshift = StackPrototype.push; StackPrototype.unshiftAll = StackPrototype.pushAll; StackPrototype.withMutations = withMutations; StackPrototype.wasAltered = wasAltered; StackPrototype.asImmutable = asImmutable; StackPrototype['@@transducer/init'] = StackPrototype.asMutable = asMutable; StackPrototype['@@transducer/step'] = function (result, arr) { return result.unshift(arr); }; StackPrototype['@@transducer/result'] = function (obj) { return obj.asImmutable(); }; function makeStack(size, head, ownerID, hash) { var map = Object.create(StackPrototype); map.size = size; map._head = head; map.__ownerID = ownerID; map.__hash = hash; map.__altered = false; return map; } var EMPTY_STACK; function emptyStack() { return EMPTY_STACK || (EMPTY_STACK = makeStack(0)); } var IS_SET_SYMBOL = '@@__IMMUTABLE_SET__@@'; function isSet(maybeSet) { return Boolean(maybeSet && maybeSet[IS_SET_SYMBOL]); } function isOrderedSet(maybeOrderedSet) { return isSet(maybeOrderedSet) && isOrdered(maybeOrderedSet); } function deepEqual(a, b) { if (a === b) { return true; } if ( !isCollection(b) || (a.size !== undefined && b.size !== undefined && a.size !== b.size) || (a.__hash !== undefined && b.__hash !== undefined && a.__hash !== b.__hash) || isKeyed(a) !== isKeyed(b) || isIndexed(a) !== isIndexed(b) || isOrdered(a) !== isOrdered(b) ) { return false; } if (a.size === 0 && b.size === 0) { return true; } var notAssociative = !isAssociative(a); if (isOrdered(a)) { var entries = a.entries(); return ( b.every(function (v, k) { var entry = entries.next().value; return entry && is(entry[1], v) && (notAssociative || is(entry[0], k)); }) && entries.next().done ); } var flipped = false; if (a.size === undefined) { if (b.size === undefined) { if (typeof a.cacheResult === 'function') { a.cacheResult(); } } else { flipped = true; var _ = a; a = b; b = _; } } var allEqual = true; var bSize = b.__iterate(function (v, k) { if ( notAssociative ? !a.has(v) : flipped ? !is(v, a.get(k, NOT_SET)) : !is(a.get(k, NOT_SET), v) ) { allEqual = false; return false; } }); return allEqual && a.size === bSize; } function mixin(ctor, methods) { var keyCopier = function (key) { ctor.prototype[key] = methods[key]; }; Object.keys(methods).forEach(keyCopier); Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(methods).forEach(keyCopier); return ctor; } function toJS(value) { if (!value || typeof value !== 'object') { return value; } if (!isCollection(value)) { if (!isDataStructure(value)) { return value; } value = Seq(value); } if (isKeyed(value)) { var result$1 = {}; value.__iterate(function (v, k) { result$1[k] = toJS(v); }); return result$1; } var result = []; value.__iterate(function (v) { result.push(toJS(v)); }); return result; } var Set = /*@__PURE__*/(function (SetCollection) { function Set(value) { // eslint-disable-next-line no-constructor-return return value === undefined || value === null ? emptySet() : isSet(value) && !isOrdered(value) ? value : emptySet().withMutations(function (set) { var iter = SetCollection(value); assertNotInfinite(iter.size); iter.forEach(function (v) { return set.add(v); }); }); } if ( SetCollection ) Set.__proto__ = SetCollection; Set.prototype = Object.create( SetCollection && SetCollection.prototype ); Set.prototype.constructor = Set; Set.of = function of (/*...values*/) { return this(arguments); }; Set.fromKeys = function fromKeys (value) { return this(KeyedCollection(value).keySeq()); }; Set.intersect = function intersect (sets) { sets = Collection(sets).toArray(); return sets.length ? SetPrototype.intersect.apply(Set(sets.pop()), sets) : emptySet(); }; Set.union = function union (sets) { sets = Collection(sets).toArray(); return sets.length ? SetPrototype.union.apply(Set(sets.pop()), sets) : emptySet(); }; Set.prototype.toString = function toString () { return this.__toString('Set {', '}'); }; // @pragma Access Set.prototype.has = function has (value) { return this._map.has(value); }; // @pragma Modification Set.prototype.add = function add (value) { return updateSet(this, this._map.set(value, value)); }; Set.prototype.remove = function remove (value) { return updateSet(this, this._map.remove(value)); }; Set.prototype.clear = function clear () { return updateSet(this, this._map.clear()); }; // @pragma Composition Set.prototype.map = function map (mapper, context) { var this$1$1 = this; // keep track if the set is altered by the map function var didChanges = false; var newMap = updateSet( this, this._map.mapEntries(function (ref) { var v = ref[1]; var mapped = mapper.call(context, v, v, this$1$1); if (mapped !== v) { didChanges = true; } return [mapped, mapped]; }, context) ); return didChanges ? newMap : this; }; Set.prototype.union = function union () { var iters = [], len = arguments.length; while ( len-- ) iters[ len ] = arguments[ len ]; iters = iters.filter(function (x) { return x.size !== 0; }); if (iters.length === 0) { return this; } if (this.size === 0 && !this.__ownerID && iters.length === 1) { return this.constructor(iters[0]); } return this.withMutations(function (set) { for (var ii = 0; ii < iters.length; ii++) { if (typeof iters[ii] === 'string') { set.add(iters[ii]); } else { SetCollection(iters[ii]).forEach(function (value) { return set.add(value); }); } } }); }; Set.prototype.intersect = function intersect () { var iters = [], len = arguments.length; while ( len-- ) iters[ len ] = arguments[ len ]; if (iters.length === 0) { return this; } iters = iters.map(function (iter) { return SetCollection(iter); }); var toRemove = []; this.forEach(function (value) { if (!iters.every(function (iter) { return iter.includes(value); })) { toRemove.push(value); } }); return this.withMutations(function (set) { toRemove.forEach(function (value) { set.remove(value); }); }); }; Set.prototype.subtract = function subtract () { var iters = [], len = arguments.length; while ( len-- ) iters[ len ] = arguments[ len ]; if (iters.length === 0) { return this; } iters = iters.map(function (iter) { return SetCollection(iter); }); var toRemove = []; this.forEach(function (value) { if (iters.some(function (iter) { return iter.includes(value); })) { toRemove.push(value); } }); return this.withMutations(function (set) { toRemove.forEach(function (value) { set.remove(value); }); }); }; Set.prototype.sort = function sort (comparator) { // Late binding return OrderedSet(sortFactory(this, comparator)); }; Set.prototype.sortBy = function sortBy (mapper, comparator) { // Late binding return OrderedSet(sortFactory(this, comparator, mapper)); }; Set.prototype.wasAltered = function wasAltered () { return this._map.wasAltered(); }; Set.prototype.__iterate = function __iterate (fn, reverse) { var this$1$1 = this; return this._map.__iterate(function (k) { return fn(k, k, this$1$1); }, reverse); }; Set.prototype.__iterator = function __iterator (type, reverse) { return this._map.__iterator(type, reverse); }; Set.prototype.__ensureOwner = function __ensureOwner (ownerID) { if (ownerID === this.__ownerID) { return this; } var newMap = this._map.__ensureOwner(ownerID); if (!ownerID) { if (this.size === 0) { return this.__empty(); } this.__ownerID = ownerID; this._map = newMap; return this; } return this.__make(newMap, ownerID); }; return Set; }(SetCollection)); Set.isSet = isSet; var SetPrototype = Set.prototype; SetPrototype[IS_SET_SYMBOL] = true; SetPrototype[DELETE] = SetPrototype.remove; SetPrototype.merge = SetPrototype.concat = SetPrototype.union; SetPrototype.withMutations = withMutations; SetPrototype.asImmutable = asImmutable; SetPrototype['@@transducer/init'] = SetPrototype.asMutable = asMutable; SetPrototype['@@transducer/step'] = function (result, arr) { return result.add(arr); }; SetPrototype['@@transducer/result'] = function (obj) { return obj.asImmutable(); }; SetPrototype.__empty = emptySet; SetPrototype.__make = makeSet; function updateSet(set, newMap) { if (set.__ownerID) { set.size = newMap.size; set._map = newMap; return set; } return newMap === set._map ? set : newMap.size === 0 ? set.__empty() : set.__make(newMap); } function makeSet(map, ownerID) { var set = Object.create(SetPrototype); set.size = map ? map.size : 0; set._map = map; set.__ownerID = ownerID; return set; } var EMPTY_SET; function emptySet() { return EMPTY_SET || (EMPTY_SET = makeSet(emptyMap())); } /** * Returns a lazy seq of nums from start (inclusive) to end * (exclusive), by step, where start defaults to 0, step to 1, and end to * infinity. When start is equal to end, returns empty list. */ var Range = /*@__PURE__*/(function (IndexedSeq) { function Range(start, end, step) { if (!(this instanceof Range)) { // eslint-disable-next-line no-constructor-return return new Range(start, end, step); } invariant(step !== 0, 'Cannot step a Range by 0'); start = start || 0; if (end === undefined) { end = Infinity; } step = step === undefined ? 1 : Math.abs(step); if (end < start) { step = -step; } this._start = start; this._end = end; this._step = step; this.size = Math.max(0, Math.ceil((end - start) / step - 1) + 1); if (this.size === 0) { if (EMPTY_RANGE) { // eslint-disable-next-line no-constructor-return return EMPTY_RANGE; } EMPTY_RANGE = this; } } if ( IndexedSeq ) Range.__proto__ = IndexedSeq; Range.prototype = Object.create( IndexedSeq && IndexedSeq.prototype ); Range.prototype.constructor = Range; Range.prototype.toString = function toString () { if (this.size === 0) { return 'Range []'; } return ( 'Range [ ' + this._start + '...' + this._end + (this._step !== 1 ? ' by ' + this._step : '') + ' ]' ); }; Range.prototype.get = function get (index, notSetValue) { return this.has(index) ? this._start + wrapIndex(this, index) * this._step : notSetValue; }; Range.prototype.includes = function includes (searchValue) { var possibleIndex = (searchValue - this._start) / this._step; return ( possibleIndex >= 0 && possibleIndex < this.size && possibleIndex === Math.floor(possibleIndex) ); }; Range.prototype.slice = function slice (begin, end) { if (wholeSlice(begin, end, this.size)) { return this; } begin = resolveBegin(begin, this.size); end = resolveEnd(end, this.size); if (end <= begin) { return new Range(0, 0); } return new Range( this.get(begin, this._end), this.get(end, this._end), this._step ); }; Range.prototype.indexOf = function indexOf (searchValue) { var offsetValue = searchValue - this._start; if (offsetValue % this._step === 0) { var index = offsetValue / this._step; if (index >= 0 && index < this.size) { return index; } } return -1; }; Range.prototype.lastIndexOf = function lastIndexOf (searchValue) { return this.indexOf(searchValue); }; Range.prototype.__iterate = function __iterate (fn, reverse) { var size = this.size; var step = this._step; var value = reverse ? this._start + (size - 1) * step : this._start; var i = 0; while (i !== size) { if (fn(value, reverse ? size - ++i : i++, this) === false) { break; } value += reverse ? -step : step; } return i; }; Range.prototype.__iterator = function __iterator (type, reverse) { var size = this.size; var step = this._step; var value = reverse ? this._start + (size - 1) * step : this._start; var i = 0; return new Iterator(function () { if (i === size) { return iteratorDone(); } var v = value; value += reverse ? -step : step; return iteratorValue(type, reverse ? size - ++i : i++, v); }); }; Range.prototype.equals = function equals (other) { return other instanceof Range ? this._start === other._start && this._end === other._end && this._step === other._step : deepEqual(this, other); }; return Range; }(IndexedSeq)); var EMPTY_RANGE; function getIn$1(collection, searchKeyPath, notSetValue) { var keyPath = coerceKeyPath(searchKeyPath); var i = 0; while (i !== keyPath.length) { collection = get(collection, keyPath[i++], NOT_SET); if (collection === NOT_SET) { return notSetValue; } } return collection; } function getIn(searchKeyPath, notSetValue) { return getIn$1(this, searchKeyPath, notSetValue); } function hasIn$1(collection, keyPath) { return getIn$1(collection, keyPath, NOT_SET) !== NOT_SET; } function hasIn(searchKeyPath) { return hasIn$1(this, searchKeyPath); } function toObject() { assertNotInfinite(this.size); var object = {}; this.__iterate(function (v, k) { object[k] = v; }); return object; } // Note: all of these methods are deprecated. Collection.isIterable = isCollection; Collection.isKeyed = isKeyed; Collection.isIndexed = isIndexed; Collection.isAssociative = isAssociative; Collection.isOrdered = isOrdered; Collection.Iterator = Iterator; mixin(Collection, { // ### Conversion to other types toArray: function toArray() { assertNotInfinite(this.size); var array = new Array(this.size || 0); var useTuples = isKeyed(this); var i = 0; this.__iterate(function (v, k) { // Keyed collections produce an array of tuples. array[i++] = useTuples ? [k, v] : v; }); return array; }, toIndexedSeq: function toIndexedSeq() { return new ToIndexedSequence(this); }, toJS: function toJS$1() { return toJS(this); }, toKeyedSeq: function toKeyedSeq() { return new ToKeyedSequence(this, true); }, toMap: function toMap() { // Use Late Binding here to solve the circular dependency. return Map(this.toKeyedSeq()); }, toObject: toObject, toOrderedMap: function toOrderedMap() { // Use Late Binding here to solve the circular dependency. return OrderedMap(this.toKeyedSeq()); }, toOrderedSet: function toOrderedSet() { // Use Late Binding here to solve the circular dependency. return OrderedSet(isKeyed(this) ? this.valueSeq() : this); }, toSet: function toSet() { // Use Late Binding here to solve the circular dependency. return Set(isKeyed(this) ? this.valueSeq() : this); }, toSetSeq: function toSetSeq() { return new ToSetSequence(this); }, toSeq: function toSeq() { return isIndexed(this) ? this.toIndexedSeq() : isKeyed(this) ? this.toKeyedSeq() : this.toSetSeq(); }, toStack: function toStack() { // Use Late Binding here to solve the circular dependency. return Stack(isKeyed(this) ? this.valueSeq() : this); }, toList: function toList() { // Use Late Binding here to solve the circular dependency. return List(isKeyed(this) ? this.valueSeq() : this); }, // ### Common JavaScript methods and properties toString: function toString() { return '[Collection]'; }, __toString: function __toString(head, tail) { if (this.size === 0) { return head + tail; } return ( head + ' ' + this.toSeq().map(this.__toStringMapper).join(', ') + ' ' + tail ); }, // ### ES6 Collection methods (ES6 Array and Map) concat: function concat() { var values = [], len = arguments.length; while ( len-- ) values[ len ] = arguments[ len ]; return reify(this, concatFactory(this, values)); }, includes: function includes(searchValue) { return this.some(function (value) { return is(value, searchValue); }); }, entries: function entries() { return this.__iterator(ITERATE_ENTRIES); }, every: function every(predicate, context) { assertNotInfinite(this.size); var returnValue = true; this.__iterate(function (v, k, c) { if (!predicate.call(context, v, k, c)) { returnValue = false; return false; } }); return returnValue; }, filter: function filter(predicate, context) { return reify(this, filterFactory(this, predicate, context, true)); }, partition: function partition(predicate, context) { return partitionFactory(this, predicate, context); }, find: function find(predicate, context, notSetValue) { var entry = this.findEntry(predicate, context); return entry ? entry[1] : notSetValue; }, forEach: function forEach(sideEffect, context) { assertNotInfinite(this.size); return this.__iterate(context ? sideEffect.bind(context) : sideEffect); }, join: function join(separator) { assertNotInfinite(this.size); separator = separator !== undefined ? '' + separator : ','; var joined = ''; var isFirst = true; this.__iterate(function (v) { isFirst ? (isFirst = false) : (joined += separator); joined += v !== null && v !== undefined ? v.toString() : ''; }); return joined; }, keys: function keys() { return this.__iterator(ITERATE_KEYS); }, map: function map(mapper, context) { return reify(this, mapFactory(this, mapper, context)); }, reduce: function reduce$1(reducer, initialReduction, context) { return reduce( this, reducer, initialReduction, context, arguments.length < 2, false ); }, reduceRight: function reduceRight(reducer, initialReduction, context) { return reduce( this, reducer, initialReduction, context, arguments.length < 2, true ); }, reverse: function reverse() { return reify(this, reverseFactory(this, true)); }, slice: function slice(begin, end) { return reify(this, sliceFactory(this, begin, end, true)); }, some: function some(predicate, context) { assertNotInfinite(this.size); var returnValue = false; this.__iterate(function (v, k, c) { if (predicate.call(context, v, k, c)) { returnValue = true; return false; } }); return returnValue; }, sort: function sort(comparator) { return reify(this, sortFactory(this, comparator)); }, values: function values() { return this.__iterator(ITERATE_VALUES); }, // ### More sequential methods butLast: function butLast() { return this.slice(0, -1); }, isEmpty: function isEmpty() { return this.size !== undefined ? this.size === 0 : !this.some(function () { return true; }); }, count: function count(predicate, context) { return ensureSize( predicate ? this.toSeq().filter(predicate, context) : this ); }, countBy: function countBy(grouper, context) { return countByFactory(this, grouper, context); }, equals: function equals(other) { return deepEqual(this, other); }, entrySeq: function entrySeq() { var collection = this; if (collection._cache) { // We cache as an entries array, so we can just return the cache! return new ArraySeq(collection._cache); } var entriesSequence = collection.toSeq().map(entryMapper).toIndexedSeq(); entriesSequence.fromEntrySeq = function () { return collection.toSeq(); }; return entriesSequence; }, filterNot: function filterNot(predicate, context) { return this.filter(not(predicate), context); }, findEntry: function findEntry(predicate, context, notSetValue) { var found = notSetValue; this.__iterate(function (v, k, c) { if (predicate.call(context, v, k, c)) { found = [k, v]; return false; } }); return found; }, findKey: function findKey(predicate, context) { var entry = this.findEntry(predicate, context); return entry && entry[0]; }, findLast: function findLast(predicate, context, notSetValue) { return this.toKeyedSeq().reverse().find(predicate, context, notSetValue); }, findLastEntry: function findLastEntry(predicate, context, notSetValue) { return this.toKeyedSeq() .reverse() .findEntry(predicate, context, notSetValue); }, findLastKey: function findLastKey(predicate, context) { return this.toKeyedSeq().reverse().findKey(predicate, context); }, first: function first(notSetValue) { return this.find(returnTrue, null, notSetValue); }, flatMap: function flatMap(mapper, context) { return reify(this, flatMapFactory(this, mapper, context)); }, flatten: function flatten(depth) { return reify(this, flattenFactory(this, depth, true)); }, fromEntrySeq: function fromEntrySeq() { return new FromEntriesSequence(this); }, get: function get(searchKey, notSetValue) { return this.find(function (_, key) { return is(key, searchKey); }, undefined, notSetValue); }, getIn: getIn, groupBy: function groupBy(grouper, context) { return groupByFactory(this, grouper, context); }, has: function has(searchKey) { return this.get(searchKey, NOT_SET) !== NOT_SET; }, hasIn: hasIn, isSubset: function isSubset(iter) { iter = typeof iter.includes === 'function' ? iter : Collection(iter); return this.every(function (value) { return iter.includes(value); }); }, isSuperset: function isSuperset(iter) { iter = typeof iter.isSubset === 'function' ? iter : Collection(iter); return iter.isSubset(this); }, keyOf: function keyOf(searchValue) { return this.findKey(function (value) { return is(value, searchValue); }); }, keySeq: function keySeq() { return this.toSeq().map(keyMapper).toIndexedSeq(); }, last: function last(notSetValue) { return this.toSeq().reverse().first(notSetValue); }, lastKeyOf: function lastKeyOf(searchValue) { return this.toKeyedSeq().reverse().keyOf(searchValue); }, max: function max(comparator) { return maxFactory(this, comparator); }, maxBy: function maxBy(mapper, comparator) { return maxFactory(this, comparator, mapper); }, min: function min(comparator) { return maxFactory( this, comparator ? neg(comparator) : defaultNegComparator ); }, minBy: function minBy(mapper, comparator) { return maxFactory( this, comparator ? neg(comparator) : defaultNegComparator, mapper ); }, rest: function rest() { return this.slice(1); }, skip: function skip(amount) { return amount === 0 ? this : this.slice(Math.max(0, amount)); }, skipLast: function skipLast(amount) { return amount === 0 ? this : this.slice(0, -Math.max(0, amount)); }, skipWhile: function skipWhile(predicate, context) { return reify(this, skipWhileFactory(this, predicate, context, true)); }, skipUntil: function skipUntil(predicate, context) { return this.skipWhile(not(predicate), context); }, sortBy: function sortBy(mapper, comparator) { return reify(this, sortFactory(this, comparator, mapper)); }, take: function take(amount) { return this.slice(0, Math.max(0, amount)); }, takeLast: function takeLast(amount) { return this.slice(-Math.max(0, amount)); }, takeWhile: function takeWhile(predicate, context) { return reify(this, takeWhileFactory(this, predicate, context)); }, takeUntil: function takeUntil(predicate, context) { return this.takeWhile(not(predicate), context); }, update: function update(fn) { return fn(this); }, valueSeq: function valueSeq() { return this.toIndexedSeq(); }, // ### Hashable Object hashCode: function hashCode() { return this.__hash || (this.__hash = hashCollection(this)); }, // ### Internal // abstract __iterate(fn, reverse) // abstract __iterator(type, reverse) }); var CollectionPrototype = Collection.prototype; CollectionPrototype[IS_COLLECTION_SYMBOL] = true; CollectionPrototype[ITERATOR_SYMBOL] = CollectionPrototype.values; CollectionPrototype.toJSON = CollectionPrototype.toArray; CollectionPrototype.__toStringMapper = quoteString; CollectionPrototype.inspect = CollectionPrototype.toSource = function () { return this.toString(); }; CollectionPrototype.chain = CollectionPrototype.flatMap; CollectionPrototype.contains = CollectionPrototype.includes; mixin(KeyedCollection, { // ### More sequential methods flip: function flip() { return reify(this, flipFactory(this)); }, mapEntries: function mapEntries(mapper, context) { var this$1$1 = this; var iterations = 0; return reify( this, this.toSeq() .map(function (v, k) { return mapper.call(context, [k, v], iterations++, this$1$1); }) .fromEntrySeq() ); }, mapKeys: function mapKeys(mapper, context) { var this$1$1 = this; return reify( this, this.toSeq() .flip() .map(function (k, v) { return mapper.call(context, k, v, this$1$1); }) .flip() ); }, }); var KeyedCollectionPrototype = KeyedCollection.prototype; KeyedCollectionPrototype[IS_KEYED_SYMBOL] = true; KeyedCollectionPrototype[ITERATOR_SYMBOL] = CollectionPrototype.entries; KeyedCollectionPrototype.toJSON = toObject; KeyedCollectionPrototype.__toStringMapper = function (v, k) { return quoteString(k) + ': ' + quoteString(v); }; mixin(IndexedCollection, { // ### Conversion to other types toKeyedSeq: function toKeyedSeq() { return new ToKeyedSequence(this, false); }, // ### ES6 Collection methods (ES6 Array and Map) filter: function filter(predicate, context) { return reify(this, filterFactory(this, predicate, context, false)); }, findIndex: function findIndex(predicate, context) { var entry = this.findEntry(predicate, context); return entry ? entry[0] : -1; }, indexOf: function indexOf(searchValue) { var key = this.keyOf(searchValue); return key === undefined ? -1 : key; }, lastIndexOf: function lastIndexOf(searchValue) { var key = this.lastKeyOf(searchValue); return key === undefined ? -1 : key; }, reverse: function reverse() { return reify(this, reverseFactory(this, false)); }, slice: function slice(begin, end) { return reify(this, sliceFactory(this, begin, end, false)); }, splice: function splice(index, removeNum /*, ...values*/) { var numArgs = arguments.length; removeNum = Math.max(removeNum || 0, 0); if (numArgs === 0 || (numArgs === 2 && !removeNum)) { return this; } // If index is negative, it should resolve relative to the size of the // collection. However size may be expensive to compute if not cached, so // only call count() if the number is in fact negative. index = resolveBegin(index, index < 0 ? this.count() : this.size); var spliced = this.slice(0, index); return reify( this, numArgs === 1 ? spliced : spliced.concat(arrCopy(arguments, 2), this.slice(index + removeNum)) ); }, // ### More collection methods findLastIndex: function findLastIndex(predicate, context) { var entry = this.findLastEntry(predicate, context); return entry ? entry[0] : -1; }, first: function first(notSetValue) { return this.get(0, notSetValue); }, flatten: function flatten(depth) { return reify(this, flattenFactory(this, depth, false)); }, get: function get(index, notSetValue) { index = wrapIndex(this, index); return index < 0 || this.size === Infinity || (this.size !== undefined && index > this.size) ? notSetValue : this.find(function (_, key) { return key === index; }, undefined, notSetValue); }, has: function has(index) { index = wrapIndex(this, index); return ( index >= 0 && (this.size !== undefined ? this.size === Infinity || index < this.size : this.indexOf(index) !== -1) ); }, interpose: function interpose(separator) { return reify(this, interposeFactory(this, separator)); }, interleave: function interleave(/*...collections*/) { var collections = [this].concat(arrCopy(arguments)); var zipped = zipWithFactory(this.toSeq(), IndexedSeq.of, collections); var interleaved = zipped.flatten(true); if (zipped.size) { interleaved.size = zipped.size * collections.length; } return reify(this, interleaved); }, keySeq: function keySeq() { return Range(0, this.size); }, last: function last(notSetValue) { return this.get(-1, notSetValue); }, skipWhile: function skipWhile(predicate, context) { return reify(this, skipWhileFactory(this, predicate, context, false)); }, zip: function zip(/*, ...collections */) { var collections = [this].concat(arrCopy(arguments)); return reify(this, zipWithFactory(this, defaultZipper, collections)); }, zipAll: function zipAll(/*, ...collections */) { var collections = [this].concat(arrCopy(arguments)); return reify(this, zipWithFactory(this, defaultZipper, collections, true)); }, zipWith: function zipWith(zipper /*, ...collections */) { var collections = arrCopy(arguments); collections[0] = this; return reify(this, zipWithFactory(this, zipper, collections)); }, }); var IndexedCollectionPrototype = IndexedCollection.prototype; IndexedCollectionPrototype[IS_INDEXED_SYMBOL] = true; IndexedCollectionPrototype[IS_ORDERED_SYMBOL] = true; mixin(SetCollection, { // ### ES6 Collection methods (ES6 Array and Map) get: function get(value, notSetValue) { return this.has(value) ? value : notSetValue; }, includes: function includes(value) { return this.has(value); }, // ### More sequential methods keySeq: function keySeq() { return this.valueSeq(); }, }); var SetCollectionPrototype = SetCollection.prototype; SetCollectionPrototype.has = CollectionPrototype.includes; SetCollectionPrototype.contains = SetCollectionPrototype.includes; SetCollectionPrototype.keys = SetCollectionPrototype.values; // Mixin subclasses mixin(KeyedSeq, KeyedCollectionPrototype); mixin(IndexedSeq, IndexedCollectionPrototype); mixin(SetSeq, SetCollectionPrototype); // #pragma Helper functions function reduce(collection, reducer, reduction, context, useFirst, reverse) { assertNotInfinite(collection.size); collection.__iterate(function (v, k, c) { if (useFirst) { useFirst = false; reduction = v; } else { reduction = reducer.call(context, reduction, v, k, c); } }, reverse); return reduction; } function keyMapper(v, k) { return k; } function entryMapper(v, k) { return [k, v]; } function not(predicate) { return function () { return !predicate.apply(this, arguments); }; } function neg(predicate) { return function () { return -predicate.apply(this, arguments); }; } function defaultZipper() { return arrCopy(arguments); } function defaultNegComparator(a, b) { return a < b ? 1 : a > b ? -1 : 0; } function hashCollection(collection) { if (collection.size === Infinity) { return 0; } var ordered = isOrdered(collection); var keyed = isKeyed(collection); var h = ordered ? 1 : 0; var size = collection.__iterate( keyed ? ordered ? function (v, k) { h = (31 * h + hashMerge(hash(v), hash(k))) | 0; } : function (v, k) { h = (h + hashMerge(hash(v), hash(k))) | 0; } : ordered ? function (v) { h = (31 * h + hash(v)) | 0; } : function (v) { h = (h + hash(v)) | 0; } ); return murmurHashOfSize(size, h); } function murmurHashOfSize(size, h) { h = imul(h, 0xcc9e2d51); h = imul((h << 15) | (h >>> -15), 0x1b873593); h = imul((h << 13) | (h >>> -13), 5); h = ((h + 0xe6546b64) | 0) ^ size; h = imul(h ^ (h >>> 16), 0x85ebca6b); h = imul(h ^ (h >>> 13), 0xc2b2ae35); h = smi(h ^ (h >>> 16)); return h; } function hashMerge(a, b) { return (a ^ (b + 0x9e3779b9 + (a << 6) + (a >> 2))) | 0; // int } var OrderedSet = /*@__PURE__*/(function (Set) { function OrderedSet(value) { // eslint-disable-next-line no-constructor-return return value === undefined || value === null ? emptyOrderedSet() : isOrderedSet(value) ? value : emptyOrderedSet().withMutations(function (set) { var iter = SetCollection(value); assertNotInfinite(iter.size); iter.forEach(function (v) { return set.add(v); }); }); } if ( Set ) OrderedSet.__proto__ = Set; OrderedSet.prototype = Object.create( Set && Set.prototype ); OrderedSet.prototype.constructor = OrderedSet; OrderedSet.of = function of (/*...values*/) { return this(arguments); }; OrderedSet.fromKeys = function fromKeys (value) { return this(KeyedCollection(value).keySeq()); }; OrderedSet.prototype.toString = function toString () { return this.__toString('OrderedSet {', '}'); }; return OrderedSet; }(Set)); OrderedSet.isOrderedSet = isOrderedSet; var OrderedSetPrototype = OrderedSet.prototype; OrderedSetPrototype[IS_ORDERED_SYMBOL] = true; OrderedSetPrototype.zip = IndexedCollectionPrototype.zip; OrderedSetPrototype.zipWith = IndexedCollectionPrototype.zipWith; OrderedSetPrototype.zipAll = IndexedCollectionPrototype.zipAll; OrderedSetPrototype.__empty = emptyOrderedSet; OrderedSetPrototype.__make = makeOrderedSet; function makeOrderedSet(map, ownerID) { var set = Object.create(OrderedSetPrototype); set.size = map ? map.size : 0; set._map = map; set.__ownerID = ownerID; return set; } var EMPTY_ORDERED_SET; function emptyOrderedSet() { return ( EMPTY_ORDERED_SET || (EMPTY_ORDERED_SET = makeOrderedSet(emptyOrderedMap())) ); } var PairSorting = { LeftThenRight: -1, RightThenLeft: +1, }; function throwOnInvalidDefaultValues(defaultValues) { if (isRecord(defaultValues)) { throw new Error( 'Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.' ); } if (isImmutable(defaultValues)) { throw new Error( 'Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.' ); } if (defaultValues === null || typeof defaultValues !== 'object') { throw new Error( 'Can not call `Record` with a non-object as default values. Use a plain javascript object instead.' ); } } var Record = function Record(defaultValues, name) { var hasInitialized; throwOnInvalidDefaultValues(defaultValues); var RecordType = function Record(values) { var this$1$1 = this; if (values instanceof RecordType) { return values; } if (!(this instanceof RecordType)) { return new RecordType(values); } if (!hasInitialized) { hasInitialized = true; var keys = Object.keys(defaultValues); var indices = (RecordTypePrototype._indices = {}); // Deprecated: left to attempt not to break any external code which // relies on a ._name property existing on record instances. // Use Record.getDescriptiveName() instead RecordTypePrototype._name = name; RecordTypePrototype._keys = keys; RecordTypePrototype._defaultValues = defaultValues; for (var i = 0; i < keys.length; i++) { var propName = keys[i]; indices[propName] = i; if (RecordTypePrototype[propName]) { /* eslint-disable no-console */ typeof console === 'object' && console.warn && console.warn( 'Cannot define ' + recordName(this) + ' with property "' + propName + '" since that property name is part of the Record API.' ); /* eslint-enable no-console */ } else { setProp(RecordTypePrototype, propName); } } } this.__ownerID = undefined; this._values = List().withMutations(function (l) { l.setSize(this$1$1._keys.length); KeyedCollection(values).forEach(function (v, k) { l.set(this$1$1._indices[k], v === this$1$1._defaultValues[k] ? undefined : v); }); }); return this; }; var RecordTypePrototype = (RecordType.prototype = Object.create(RecordPrototype)); RecordTypePrototype.constructor = RecordType; if (name) { RecordType.displayName = name; } // eslint-disable-next-line no-constructor-return return RecordType; }; Record.prototype.toString = function toString () { var str = recordName(this) + ' { '; var keys = this._keys; var k; for (var i = 0, l = keys.length; i !== l; i++) { k = keys[i]; str += (i ? ', ' : '') + k + ': ' + quoteString(this.get(k)); } return str + ' }'; }; Record.prototype.equals = function equals (other) { return ( this === other || (isRecord(other) && recordSeq(this).equals(recordSeq(other))) ); }; Record.prototype.hashCode = function hashCode () { return recordSeq(this).hashCode(); }; // @pragma Access Record.prototype.has = function has (k) { return this._indices.hasOwnProperty(k); }; Record.prototype.get = function get (k, notSetValue) { if (!this.has(k)) { return notSetValue; } var index = this._indices[k]; var value = this._values.get(index); return value === undefined ? this._defaultValues[k] : value; }; // @pragma Modification Record.prototype.set = function set (k, v) { if (this.has(k)) { var newValues = this._values.set( this._indices[k], v === this._defaultValues[k] ? undefined : v ); if (newValues !== this._values && !this.__ownerID) { return makeRecord(this, newValues); } } return this; }; Record.prototype.remove = function remove (k) { return this.set(k); }; Record.prototype.clear = function clear () { var newValues = this._values.clear().setSize(this._keys.length); return this.__ownerID ? this : makeRecord(this, newValues); }; Record.prototype.wasAltered = function wasAltered () { return this._values.wasAltered(); }; Record.prototype.toSeq = function toSeq () { return recordSeq(this); }; Record.prototype.toJS = function toJS$1 () { return toJS(this); }; Record.prototype.entries = function entries () { return this.__iterator(ITERATE_ENTRIES); }; Record.prototype.__iterator = function __iterator (type, reverse) { return recordSeq(this).__iterator(type, reverse); }; Record.prototype.__iterate = function __iterate (fn, reverse) { return recordSeq(this).__iterate(fn, reverse); }; Record.prototype.__ensureOwner = function __ensureOwner (ownerID) { if (ownerID === this.__ownerID) { return this; } var newValues = this._values.__ensureOwner(ownerID); if (!ownerID) { this.__ownerID = ownerID; this._values = newValues; return this; } return makeRecord(this, newValues, ownerID); }; Record.isRecord = isRecord; Record.getDescriptiveName = recordName; var RecordPrototype = Record.prototype; RecordPrototype[IS_RECORD_SYMBOL] = true; RecordPrototype[DELETE] = RecordPrototype.remove; RecordPrototype.deleteIn = RecordPrototype.removeIn = deleteIn; RecordPrototype.getIn = getIn; RecordPrototype.hasIn = CollectionPrototype.hasIn; RecordPrototype.merge = merge$1; RecordPrototype.mergeWith = mergeWith$1; RecordPrototype.mergeIn = mergeIn; RecordPrototype.mergeDeep = mergeDeep; RecordPrototype.mergeDeepWith = mergeDeepWith; RecordPrototype.mergeDeepIn = mergeDeepIn; RecordPrototype.setIn = setIn; RecordPrototype.update = update; RecordPrototype.updateIn = updateIn; RecordPrototype.withMutations = withMutations; RecordPrototype.asMutable = asMutable; RecordPrototype.asImmutable = asImmutable; RecordPrototype[ITERATOR_SYMBOL] = RecordPrototype.entries; RecordPrototype.toJSON = RecordPrototype.toObject = CollectionPrototype.toObject; RecordPrototype.inspect = RecordPrototype.toSource = function () { return this.toString(); }; function makeRecord(likeRecord, values, ownerID) { var record = Object.create(Object.getPrototypeOf(likeRecord)); record._values = values; record.__ownerID = ownerID; return record; } function recordName(record) { return record.constructor.displayName || record.constructor.name || 'Record'; } function recordSeq(record) { return keyedSeqFromValue(record._keys.map(function (k) { return [k, record.get(k)]; })); } function setProp(prototype, name) { try { Object.defineProperty(prototype, name, { get: function () { return this.get(name); }, set: function (value) { invariant(this.__ownerID, 'Cannot set on an immutable record.'); this.set(name, value); }, }); } catch (error) { // Object.defineProperty failed. Probably IE8. } } /** * Returns a lazy Seq of `value` repeated `times` times. When `times` is * undefined, returns an infinite sequence of `value`. */ var Repeat = /*@__PURE__*/(function (IndexedSeq) { function Repeat(value, times) { if (!(this instanceof Repeat)) { // eslint-disable-next-line no-constructor-return return new Repeat(value, times); } this._value = value; this.size = times === undefined ? Infinity : Math.max(0, times); if (this.size === 0) { if (EMPTY_REPEAT) { // eslint-disable-next-line no-constructor-return return EMPTY_REPEAT; } EMPTY_REPEAT = this; } } if ( IndexedSeq ) Repeat.__proto__ = IndexedSeq; Repeat.prototype = Object.create( IndexedSeq && IndexedSeq.prototype ); Repeat.prototype.constructor = Repeat; Repeat.prototype.toString = function toString () { if (this.size === 0) { return 'Repeat []'; } return 'Repeat [ ' + this._value + ' ' + this.size + ' times ]'; }; Repeat.prototype.get = function get (index, notSetValue) { return this.has(index) ? this._value : notSetValue; }; Repeat.prototype.includes = function includes (searchValue) { return is(this._value, searchValue); }; Repeat.prototype.slice = function slice (begin, end) { var size = this.size; return wholeSlice(begin, end, size) ? this : new Repeat( this._value, resolveEnd(end, size) - resolveBegin(begin, size) ); }; Repeat.prototype.reverse = function reverse () { return this; }; Repeat.prototype.indexOf = function indexOf (searchValue) { if (is(this._value, searchValue)) { return 0; } return -1; }; Repeat.prototype.lastIndexOf = function lastIndexOf (searchValue) { if (is(this._value, searchValue)) { return this.size; } return -1; }; Repeat.prototype.__iterate = function __iterate (fn, reverse) { var size = this.size; var i = 0; while (i !== size) { if (fn(this._value, reverse ? size - ++i : i++, this) === false) { break; } } return i; }; Repeat.prototype.__iterator = function __iterator (type, reverse) { var this$1$1 = this; var size = this.size; var i = 0; return new Iterator(function () { return i === size ? iteratorDone() : iteratorValue(type, reverse ? size - ++i : i++, this$1$1._value); } ); }; Repeat.prototype.equals = function equals (other) { return other instanceof Repeat ? is(this._value, other._value) : deepEqual(this, other); }; return Repeat; }(IndexedSeq)); var EMPTY_REPEAT; function fromJS(value, converter) { return fromJSWith( [], converter || defaultConverter, value, '', converter && converter.length > 2 ? [] : undefined, { '': value } ); } function fromJSWith(stack, converter, value, key, keyPath, parentValue) { if ( typeof value !== 'string' && !isImmutable(value) && (isArrayLike(value) || hasIterator(value) || isPlainObject(value)) ) { if (~stack.indexOf(value)) { throw new TypeError('Cannot convert circular structure to Immutable'); } stack.push(value); keyPath && key !== '' && keyPath.push(key); var converted = converter.call( parentValue, key, Seq(value).map(function (v, k) { return fromJSWith(stack, converter, v, k, keyPath, value); } ), keyPath && keyPath.slice() ); stack.pop(); keyPath && keyPath.pop(); return converted; } return value; } function defaultConverter(k, v) { // Effectively the opposite of "Collection.toSeq()" return isIndexed(v) ? v.toList() : isKeyed(v) ? v.toMap() : v.toSet(); } var version = "4.3.7"; var Immutable = { version: version, Collection: Collection, // Note: Iterable is deprecated Iterable: Collection, Seq: Seq, Map: Map, OrderedMap: OrderedMap, List: List, Stack: Stack, Set: Set, OrderedSet: OrderedSet, PairSorting: PairSorting, Record: Record, Range: Range, Repeat: Repeat, is: is, fromJS: fromJS, hash: hash, isImmutable: isImmutable, isCollection: isCollection, isKeyed: isKeyed, isIndexed: isIndexed, isAssociative: isAssociative, isOrdered: isOrdered, isValueObject: isValueObject, isPlainObject: isPlainObject, isSeq: isSeq, isList: isList, isMap: isMap, isOrderedMap: isOrderedMap, isStack: isStack, isSet: isSet, isOrderedSet: isOrderedSet, isRecord: isRecord, get: get, getIn: getIn$1, has: has, hasIn: hasIn$1, merge: merge, mergeDeep: mergeDeep$1, mergeWith: mergeWith, mergeDeepWith: mergeDeepWith$1, remove: remove, removeIn: removeIn, set: set, setIn: setIn$1, update: update$1, updateIn: updateIn$1, }; // Note: Iterable is deprecated var Iterable = Collection; /* harmony default export */ __webpack_exports__["default"] = (Immutable); /***/ }), /***/ "./node_modules/inherits/inherits_browser.js": /*!***************************************************!*\ !*** ./node_modules/inherits/inherits_browser.js ***! \***************************************************/ /*! no static exports found */ /***/ (function(module, exports) { if (typeof Object.create === 'function') { // implementation from standard node.js 'util' module module.exports = function inherits(ctor, superCtor) { if (superCtor) { ctor.super_ = superCtor ctor.prototype = Object.create(superCtor.prototype, { constructor: { value: ctor, enumerable: false, writable: true, configurable: true } }) } }; } else { // old school shim for old browsers module.exports = function inherits(ctor, superCtor) { if (superCtor) { ctor.super_ = superCtor var TempCtor = function () {} TempCtor.prototype = superCtor.prototype ctor.prototype = new TempCtor() ctor.prototype.constructor = ctor } } } /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/ContainerBase/index.js": /*!************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/ContainerBase/index.js ***! \************************************************************************/ /*! exports provided: ContainerIterator, Base, Container */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContainerIterator", function() { return ContainerIterator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Base", function() { return Base; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Container", function() { return Container; }); var __extends = undefined && undefined.t || function() { var extendStatics = function(n, t) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, t) { n.__proto__ = t; } || function(n, t) { for (var r in t) if (Object.prototype.hasOwnProperty.call(t, r)) n[r] = t[r]; }; return extendStatics(n, t); }; return function(n, t) { if (typeof t !== "function" && t !== null) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null"); extendStatics(n, t); function __() { this.constructor = n; } n.prototype = t === null ? Object.create(t) : (__.prototype = t.prototype, new __); }; }(); var ContainerIterator = function() { function ContainerIterator(n) { if (n === void 0) { n = 0; } this.iteratorType = n; } ContainerIterator.prototype.equals = function(n) { return this.o === n.o; }; return ContainerIterator; }(); var Base = function() { function Base() { this.M = 0; } Object.defineProperty(Base.prototype, "length", { get: function() { return this.M; }, enumerable: false, configurable: true }); Base.prototype.size = function() { return this.M; }; Base.prototype.empty = function() { return this.M === 0; }; return Base; }(); var Container = function(n) { __extends(Container, n); function Container() { return n !== null && n.apply(this, arguments) || this; } return Container; }(Base); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/HashContainer/Base/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/HashContainer/Base/index.js ***! \*****************************************************************************/ /*! exports provided: HashContainerIterator, HashContainer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HashContainerIterator", function() { return HashContainerIterator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HashContainer", function() { return HashContainer; }); /* harmony import */ var _ContainerBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../ContainerBase */ "./node_modules/js-sdsl/dist/esm/container/ContainerBase/index.js"); /* harmony import */ var _utils_checkObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../utils/checkObject */ "./node_modules/js-sdsl/dist/esm/utils/checkObject.js"); /* harmony import */ var _utils_throwError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../utils/throwError */ "./node_modules/js-sdsl/dist/esm/utils/throwError.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(t, i) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) { t.__proto__ = i; } || function(t, i) { for (var r in i) if (Object.prototype.hasOwnProperty.call(i, r)) t[r] = i[r]; }; return extendStatics(t, i); }; return function(t, i) { if (typeof i !== "function" && i !== null) throw new TypeError("Class extends value " + String(i) + " is not a constructor or null"); extendStatics(t, i); function __() { this.constructor = t; } t.prototype = i === null ? Object.create(i) : (__.prototype = i.prototype, new __); }; }(); var HashContainerIterator = function(t) { __extends(HashContainerIterator, t); function HashContainerIterator(i, r, e) { var n = t.call(this, e) || this; n.o = i; n.h = r; if (n.iteratorType === 0) { n.pre = function() { if (this.o.L === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } this.o = this.o.L; return this; }; n.next = function() { if (this.o === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } this.o = this.o.m; return this; }; } else { n.pre = function() { if (this.o.m === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } this.o = this.o.m; return this; }; n.next = function() { if (this.o === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } this.o = this.o.L; return this; }; } return n; } return HashContainerIterator; }(_ContainerBase__WEBPACK_IMPORTED_MODULE_0__["ContainerIterator"]); var HashContainer = function(t) { __extends(HashContainer, t); function HashContainer() { var i = t.call(this) || this; i._ = []; i.I = {}; i.HASH_TAG = Symbol("@@HASH_TAG"); Object.setPrototypeOf(i.I, null); i.h = {}; i.h.L = i.h.m = i.H = i.l = i.h; return i; } HashContainer.prototype.G = function(t) { var i = t.L, r = t.m; i.m = r; r.L = i; if (t === this.H) { this.H = r; } if (t === this.l) { this.l = i; } this.M -= 1; }; HashContainer.prototype.v = function(t, i, r) { if (r === undefined) r = Object(_utils_checkObject__WEBPACK_IMPORTED_MODULE_1__["default"])(t); var e; if (r) { var n = t[this.HASH_TAG]; if (n !== undefined) { this._[n].p = i; return this.M; } Object.defineProperty(t, this.HASH_TAG, { value: this._.length, configurable: true }); e = { u: t, p: i, L: this.l, m: this.h }; this._.push(e); } else { var s = this.I[t]; if (s) { s.p = i; return this.M; } e = { u: t, p: i, L: this.l, m: this.h }; this.I[t] = e; } if (this.M === 0) { this.H = e; this.h.m = e; } else { this.l.m = e; } this.l = e; this.h.L = e; return ++this.M; }; HashContainer.prototype.g = function(t, i) { if (i === undefined) i = Object(_utils_checkObject__WEBPACK_IMPORTED_MODULE_1__["default"])(t); if (i) { var r = t[this.HASH_TAG]; if (r === undefined) return this.h; return this._[r]; } else { return this.I[t] || this.h; } }; HashContainer.prototype.clear = function() { var t = this.HASH_TAG; this._.forEach((function(i) { delete i.u[t]; })); this._ = []; this.I = {}; Object.setPrototypeOf(this.I, null); this.M = 0; this.H = this.l = this.h.L = this.h.m = this.h; }; HashContainer.prototype.eraseElementByKey = function(t, i) { var r; if (i === undefined) i = Object(_utils_checkObject__WEBPACK_IMPORTED_MODULE_1__["default"])(t); if (i) { var e = t[this.HASH_TAG]; if (e === undefined) return false; delete t[this.HASH_TAG]; r = this._[e]; delete this._[e]; } else { r = this.I[t]; if (r === undefined) return false; delete this.I[t]; } this.G(r); return true; }; HashContainer.prototype.eraseElementByIterator = function(t) { var i = t.o; if (i === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } this.G(i); return t.next(); }; HashContainer.prototype.eraseElementByPos = function(t) { if (t < 0 || t > this.M - 1) { throw new RangeError; } var i = this.H; while (t--) { i = i.m; } this.G(i); return this.M; }; return HashContainer; }(_ContainerBase__WEBPACK_IMPORTED_MODULE_0__["Container"]); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/HashContainer/HashMap.js": /*!**************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/HashContainer/HashMap.js ***! \**************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Base */ "./node_modules/js-sdsl/dist/esm/container/HashContainer/Base/index.js"); /* harmony import */ var _utils_checkObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/checkObject */ "./node_modules/js-sdsl/dist/esm/utils/checkObject.js"); /* harmony import */ var _utils_throwError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/throwError */ "./node_modules/js-sdsl/dist/esm/utils/throwError.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(t, r) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) { t.__proto__ = r; } || function(t, r) { for (var n in r) if (Object.prototype.hasOwnProperty.call(r, n)) t[n] = r[n]; }; return extendStatics(t, r); }; return function(t, r) { if (typeof r !== "function" && r !== null) throw new TypeError("Class extends value " + String(r) + " is not a constructor or null"); extendStatics(t, r); function __() { this.constructor = t; } t.prototype = r === null ? Object.create(r) : (__.prototype = r.prototype, new __); }; }(); var __generator = undefined && undefined.i || function(t, r) { var n = { label: 0, sent: function() { if (a[0] & 1) throw a[1]; return a[1]; }, trys: [], ops: [] }, e, i, a, s; return s = { next: verb(0), throw: verb(1), return: verb(2) }, typeof Symbol === "function" && (s[Symbol.iterator] = function() { return this; }), s; function verb(t) { return function(r) { return step([ t, r ]); }; } function step(s) { if (e) throw new TypeError("Generator is already executing."); while (n) try { if (e = 1, i && (a = s[0] & 2 ? i["return"] : s[0] ? i["throw"] || ((a = i["return"]) && a.call(i), 0) : i.next) && !(a = a.call(i, s[1])).done) return a; if (i = 0, a) s = [ s[0] & 2, a.value ]; switch (s[0]) { case 0: case 1: a = s; break; case 4: n.label++; return { value: s[1], done: false }; case 5: n.label++; i = s[1]; s = [ 0 ]; continue; case 7: s = n.ops.pop(); n.trys.pop(); continue; default: if (!(a = n.trys, a = a.length > 0 && a[a.length - 1]) && (s[0] === 6 || s[0] === 2)) { n = 0; continue; } if (s[0] === 3 && (!a || s[1] > a[0] && s[1] < a[3])) { n.label = s[1]; break; } if (s[0] === 6 && n.label < a[1]) { n.label = a[1]; a = s; break; } if (a && n.label < a[2]) { n.label = a[2]; n.ops.push(s); break; } if (a[2]) n.ops.pop(); n.trys.pop(); continue; } s = r.call(t, n); } catch (t) { s = [ 6, t ]; i = 0; } finally { e = a = 0; } if (s[0] & 5) throw s[1]; return { value: s[0] ? s[1] : void 0, done: true }; } }; var HashMapIterator = function(t) { __extends(HashMapIterator, t); function HashMapIterator(r, n, e, i) { var a = t.call(this, r, n, i) || this; a.container = e; return a; } Object.defineProperty(HashMapIterator.prototype, "pointer", { get: function() { if (this.o === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } var t = this; return new Proxy([], { get: function(r, n) { if (n === "0") return t.o.u; else if (n === "1") return t.o.p; }, set: function(r, n, e) { if (n !== "1") { throw new TypeError("props must be 1"); } t.o.p = e; return true; } }); }, enumerable: false, configurable: true }); HashMapIterator.prototype.copy = function() { return new HashMapIterator(this.o, this.h, this.container, this.iteratorType); }; return HashMapIterator; }(_Base__WEBPACK_IMPORTED_MODULE_0__["HashContainerIterator"]); var HashMap = function(t) { __extends(HashMap, t); function HashMap(r) { if (r === void 0) { r = []; } var n = t.call(this) || this; var e = n; r.forEach((function(t) { e.setElement(t[0], t[1]); })); return n; } HashMap.prototype.begin = function() { return new HashMapIterator(this.H, this.h, this); }; HashMap.prototype.end = function() { return new HashMapIterator(this.h, this.h, this); }; HashMap.prototype.rBegin = function() { return new HashMapIterator(this.l, this.h, this, 1); }; HashMap.prototype.rEnd = function() { return new HashMapIterator(this.h, this.h, this, 1); }; HashMap.prototype.front = function() { if (this.M === 0) return; return [ this.H.u, this.H.p ]; }; HashMap.prototype.back = function() { if (this.M === 0) return; return [ this.l.u, this.l.p ]; }; HashMap.prototype.setElement = function(t, r, n) { return this.v(t, r, n); }; HashMap.prototype.getElementByKey = function(t, r) { if (r === undefined) r = Object(_utils_checkObject__WEBPACK_IMPORTED_MODULE_1__["default"])(t); if (r) { var n = t[this.HASH_TAG]; return n !== undefined ? this._[n].p : undefined; } var e = this.I[t]; return e ? e.p : undefined; }; HashMap.prototype.getElementByPos = function(t) { if (t < 0 || t > this.M - 1) { throw new RangeError; } var r = this.H; while (t--) { r = r.m; } return [ r.u, r.p ]; }; HashMap.prototype.find = function(t, r) { var n = this.g(t, r); return new HashMapIterator(n, this.h, this); }; HashMap.prototype.forEach = function(t) { var r = 0; var n = this.H; while (n !== this.h) { t([ n.u, n.p ], r++, this); n = n.m; } }; HashMap.prototype[Symbol.iterator] = function() { return function() { var t; return __generator(this, (function(r) { switch (r.label) { case 0: t = this.H; r.label = 1; case 1: if (!(t !== this.h)) return [ 3, 3 ]; return [ 4, [ t.u, t.p ] ]; case 2: r.sent(); t = t.m; return [ 3, 1 ]; case 3: return [ 2 ]; } })); }.bind(this)(); }; return HashMap; }(_Base__WEBPACK_IMPORTED_MODULE_0__["HashContainer"]); /* harmony default export */ __webpack_exports__["default"] = (HashMap); //# sourceMappingURL=HashMap.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/HashContainer/HashSet.js": /*!**************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/HashContainer/HashSet.js ***! \**************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Base */ "./node_modules/js-sdsl/dist/esm/container/HashContainer/Base/index.js"); /* harmony import */ var _utils_throwError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/throwError */ "./node_modules/js-sdsl/dist/esm/utils/throwError.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(t, r) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) { t.__proto__ = r; } || function(t, r) { for (var e in r) if (Object.prototype.hasOwnProperty.call(r, e)) t[e] = r[e]; }; return extendStatics(t, r); }; return function(t, r) { if (typeof r !== "function" && r !== null) throw new TypeError("Class extends value " + String(r) + " is not a constructor or null"); extendStatics(t, r); function __() { this.constructor = t; } t.prototype = r === null ? Object.create(r) : (__.prototype = r.prototype, new __); }; }(); var __generator = undefined && undefined.i || function(t, r) { var e = { label: 0, sent: function() { if (s[0] & 1) throw s[1]; return s[1]; }, trys: [], ops: [] }, n, i, s, a; return a = { next: verb(0), throw: verb(1), return: verb(2) }, typeof Symbol === "function" && (a[Symbol.iterator] = function() { return this; }), a; function verb(t) { return function(r) { return step([ t, r ]); }; } function step(a) { if (n) throw new TypeError("Generator is already executing."); while (e) try { if (n = 1, i && (s = a[0] & 2 ? i["return"] : a[0] ? i["throw"] || ((s = i["return"]) && s.call(i), 0) : i.next) && !(s = s.call(i, a[1])).done) return s; if (i = 0, s) a = [ a[0] & 2, s.value ]; switch (a[0]) { case 0: case 1: s = a; break; case 4: e.label++; return { value: a[1], done: false }; case 5: e.label++; i = a[1]; a = [ 0 ]; continue; case 7: a = e.ops.pop(); e.trys.pop(); continue; default: if (!(s = e.trys, s = s.length > 0 && s[s.length - 1]) && (a[0] === 6 || a[0] === 2)) { e = 0; continue; } if (a[0] === 3 && (!s || a[1] > s[0] && a[1] < s[3])) { e.label = a[1]; break; } if (a[0] === 6 && e.label < s[1]) { e.label = s[1]; s = a; break; } if (s && e.label < s[2]) { e.label = s[2]; e.ops.push(a); break; } if (s[2]) e.ops.pop(); e.trys.pop(); continue; } a = r.call(t, e); } catch (t) { a = [ 6, t ]; i = 0; } finally { n = s = 0; } if (a[0] & 5) throw a[1]; return { value: a[0] ? a[1] : void 0, done: true }; } }; var HashSetIterator = function(t) { __extends(HashSetIterator, t); function HashSetIterator(r, e, n, i) { var s = t.call(this, r, e, i) || this; s.container = n; return s; } Object.defineProperty(HashSetIterator.prototype, "pointer", { get: function() { if (this.o === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_1__["throwIteratorAccessError"])(); } return this.o.u; }, enumerable: false, configurable: true }); HashSetIterator.prototype.copy = function() { return new HashSetIterator(this.o, this.h, this.container, this.iteratorType); }; return HashSetIterator; }(_Base__WEBPACK_IMPORTED_MODULE_0__["HashContainerIterator"]); var HashSet = function(t) { __extends(HashSet, t); function HashSet(r) { if (r === void 0) { r = []; } var e = t.call(this) || this; var n = e; r.forEach((function(t) { n.insert(t); })); return e; } HashSet.prototype.begin = function() { return new HashSetIterator(this.H, this.h, this); }; HashSet.prototype.end = function() { return new HashSetIterator(this.h, this.h, this); }; HashSet.prototype.rBegin = function() { return new HashSetIterator(this.l, this.h, this, 1); }; HashSet.prototype.rEnd = function() { return new HashSetIterator(this.h, this.h, this, 1); }; HashSet.prototype.front = function() { return this.H.u; }; HashSet.prototype.back = function() { return this.l.u; }; HashSet.prototype.insert = function(t, r) { return this.v(t, undefined, r); }; HashSet.prototype.getElementByPos = function(t) { if (t < 0 || t > this.M - 1) { throw new RangeError; } var r = this.H; while (t--) { r = r.m; } return r.u; }; HashSet.prototype.find = function(t, r) { var e = this.g(t, r); return new HashSetIterator(e, this.h, this); }; HashSet.prototype.forEach = function(t) { var r = 0; var e = this.H; while (e !== this.h) { t(e.u, r++, this); e = e.m; } }; HashSet.prototype[Symbol.iterator] = function() { return function() { var t; return __generator(this, (function(r) { switch (r.label) { case 0: t = this.H; r.label = 1; case 1: if (!(t !== this.h)) return [ 3, 3 ]; return [ 4, t.u ]; case 2: r.sent(); t = t.m; return [ 3, 1 ]; case 3: return [ 2 ]; } })); }.bind(this)(); }; return HashSet; }(_Base__WEBPACK_IMPORTED_MODULE_0__["HashContainer"]); /* harmony default export */ __webpack_exports__["default"] = (HashSet); //# sourceMappingURL=HashSet.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/OtherContainer/PriorityQueue.js": /*!*********************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/OtherContainer/PriorityQueue.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ContainerBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ContainerBase */ "./node_modules/js-sdsl/dist/esm/container/ContainerBase/index.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(i, r) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, r) { i.__proto__ = r; } || function(i, r) { for (var t in r) if (Object.prototype.hasOwnProperty.call(r, t)) i[t] = r[t]; }; return extendStatics(i, r); }; return function(i, r) { if (typeof r !== "function" && r !== null) throw new TypeError("Class extends value " + String(r) + " is not a constructor or null"); extendStatics(i, r); function __() { this.constructor = i; } i.prototype = r === null ? Object.create(r) : (__.prototype = r.prototype, new __); }; }(); var __read = undefined && undefined.q || function(i, r) { var t = typeof Symbol === "function" && i[Symbol.iterator]; if (!t) return i; var e = t.call(i), n, u = [], s; try { while ((r === void 0 || r-- > 0) && !(n = e.next()).done) u.push(n.value); } catch (i) { s = { error: i }; } finally { try { if (n && !n.done && (t = e["return"])) t.call(e); } finally { if (s) throw s.error; } } return u; }; var __spreadArray = undefined && undefined.D || function(i, r, t) { if (t || arguments.length === 2) for (var e = 0, n = r.length, u; e < n; e++) { if (u || !(e in r)) { if (!u) u = Array.prototype.slice.call(r, 0, e); u[e] = r[e]; } } return i.concat(u || Array.prototype.slice.call(r)); }; var PriorityQueue = function(i) { __extends(PriorityQueue, i); function PriorityQueue(r, t, e) { if (r === void 0) { r = []; } if (t === void 0) { t = function(i, r) { if (i > r) return -1; if (i < r) return 1; return 0; }; } if (e === void 0) { e = true; } var n = i.call(this) || this; n.$ = t; if (Array.isArray(r)) { n.ii = e ? __spreadArray([], __read(r), false) : r; } else { n.ii = []; var u = n; r.forEach((function(i) { u.ii.push(i); })); } n.M = n.ii.length; var s = n.M >> 1; for (var o = n.M - 1 >> 1; o >= 0; --o) { n.ri(o, s); } return n; } PriorityQueue.prototype.ti = function(i) { var r = this.ii[i]; while (i > 0) { var t = i - 1 >> 1; var e = this.ii[t]; if (this.$(e, r) <= 0) break; this.ii[i] = e; i = t; } this.ii[i] = r; }; PriorityQueue.prototype.ri = function(i, r) { var t = this.ii[i]; while (i < r) { var e = i << 1 | 1; var n = e + 1; var u = this.ii[e]; if (n < this.M && this.$(u, this.ii[n]) > 0) { e = n; u = this.ii[n]; } if (this.$(u, t) >= 0) break; this.ii[i] = u; i = e; } this.ii[i] = t; }; PriorityQueue.prototype.clear = function() { this.M = 0; this.ii.length = 0; }; PriorityQueue.prototype.push = function(i) { this.ii.push(i); this.ti(this.M); this.M += 1; }; PriorityQueue.prototype.pop = function() { if (this.M === 0) return; var i = this.ii[0]; var r = this.ii.pop(); this.M -= 1; if (this.M) { this.ii[0] = r; this.ri(0, this.M >> 1); } return i; }; PriorityQueue.prototype.top = function() { return this.ii[0]; }; PriorityQueue.prototype.find = function(i) { return this.ii.indexOf(i) >= 0; }; PriorityQueue.prototype.remove = function(i) { var r = this.ii.indexOf(i); if (r < 0) return false; if (r === 0) { this.pop(); } else if (r === this.M - 1) { this.ii.pop(); this.M -= 1; } else { this.ii.splice(r, 1, this.ii.pop()); this.M -= 1; this.ti(r); this.ri(r, this.M >> 1); } return true; }; PriorityQueue.prototype.updateItem = function(i) { var r = this.ii.indexOf(i); if (r < 0) return false; this.ti(r); this.ri(r, this.M >> 1); return true; }; PriorityQueue.prototype.toArray = function() { return __spreadArray([], __read(this.ii), false); }; return PriorityQueue; }(_ContainerBase__WEBPACK_IMPORTED_MODULE_0__["Base"]); /* harmony default export */ __webpack_exports__["default"] = (PriorityQueue); //# sourceMappingURL=PriorityQueue.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/OtherContainer/Queue.js": /*!*************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/OtherContainer/Queue.js ***! \*************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ContainerBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ContainerBase */ "./node_modules/js-sdsl/dist/esm/container/ContainerBase/index.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(t, i) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) { t.__proto__ = i; } || function(t, i) { for (var n in i) if (Object.prototype.hasOwnProperty.call(i, n)) t[n] = i[n]; }; return extendStatics(t, i); }; return function(t, i) { if (typeof i !== "function" && i !== null) throw new TypeError("Class extends value " + String(i) + " is not a constructor or null"); extendStatics(t, i); function __() { this.constructor = t; } t.prototype = i === null ? Object.create(i) : (__.prototype = i.prototype, new __); }; }(); var Queue = function(t) { __extends(Queue, t); function Queue(i) { if (i === void 0) { i = []; } var n = t.call(this) || this; n.A = 0; n.tt = []; var e = n; i.forEach((function(t) { e.push(t); })); return n; } Queue.prototype.clear = function() { this.tt = []; this.M = this.A = 0; }; Queue.prototype.push = function(t) { var i = this.tt.length; if (this.A / i > .5 && this.A + this.M >= i && i > 4096) { var n = this.M; for (var e = 0; e < n; ++e) { this.tt[e] = this.tt[this.A + e]; } this.A = 0; this.tt[this.M] = t; } else this.tt[this.A + this.M] = t; return ++this.M; }; Queue.prototype.pop = function() { if (this.M === 0) return; var t = this.tt[this.A++]; this.M -= 1; return t; }; Queue.prototype.front = function() { if (this.M === 0) return; return this.tt[this.A]; }; return Queue; }(_ContainerBase__WEBPACK_IMPORTED_MODULE_0__["Base"]); /* harmony default export */ __webpack_exports__["default"] = (Queue); //# sourceMappingURL=Queue.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/OtherContainer/Stack.js": /*!*************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/OtherContainer/Stack.js ***! \*************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ContainerBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ContainerBase */ "./node_modules/js-sdsl/dist/esm/container/ContainerBase/index.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(t, n) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) { t.__proto__ = n; } || function(t, n) { for (var i in n) if (Object.prototype.hasOwnProperty.call(n, i)) t[i] = n[i]; }; return extendStatics(t, n); }; return function(t, n) { if (typeof n !== "function" && n !== null) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null"); extendStatics(t, n); function __() { this.constructor = t; } t.prototype = n === null ? Object.create(n) : (__.prototype = n.prototype, new __); }; }(); var Stack = function(t) { __extends(Stack, t); function Stack(n) { if (n === void 0) { n = []; } var i = t.call(this) || this; i.nt = []; var r = i; n.forEach((function(t) { r.push(t); })); return i; } Stack.prototype.clear = function() { this.M = 0; this.nt = []; }; Stack.prototype.push = function(t) { this.nt.push(t); this.M += 1; return this.M; }; Stack.prototype.pop = function() { if (this.M === 0) return; this.M -= 1; return this.nt.pop(); }; Stack.prototype.top = function() { return this.nt[this.M - 1]; }; return Stack; }(_ContainerBase__WEBPACK_IMPORTED_MODULE_0__["Base"]); /* harmony default export */ __webpack_exports__["default"] = (Stack); //# sourceMappingURL=Stack.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/RandomIterator.js": /*!********************************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/RandomIterator.js ***! \********************************************************************************************/ /*! exports provided: RandomIterator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RandomIterator", function() { return RandomIterator; }); /* harmony import */ var _ContainerBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../ContainerBase */ "./node_modules/js-sdsl/dist/esm/container/ContainerBase/index.js"); /* harmony import */ var _utils_throwError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../utils/throwError */ "./node_modules/js-sdsl/dist/esm/utils/throwError.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(t, r) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) { t.__proto__ = r; } || function(t, r) { for (var n in r) if (Object.prototype.hasOwnProperty.call(r, n)) t[n] = r[n]; }; return extendStatics(t, r); }; return function(t, r) { if (typeof r !== "function" && r !== null) throw new TypeError("Class extends value " + String(r) + " is not a constructor or null"); extendStatics(t, r); function __() { this.constructor = t; } t.prototype = r === null ? Object.create(r) : (__.prototype = r.prototype, new __); }; }(); var RandomIterator = function(t) { __extends(RandomIterator, t); function RandomIterator(r, n) { var o = t.call(this, n) || this; o.o = r; if (o.iteratorType === 0) { o.pre = function() { if (this.o === 0) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_1__["throwIteratorAccessError"])(); } this.o -= 1; return this; }; o.next = function() { if (this.o === this.container.size()) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_1__["throwIteratorAccessError"])(); } this.o += 1; return this; }; } else { o.pre = function() { if (this.o === this.container.size() - 1) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_1__["throwIteratorAccessError"])(); } this.o += 1; return this; }; o.next = function() { if (this.o === -1) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_1__["throwIteratorAccessError"])(); } this.o -= 1; return this; }; } return o; } Object.defineProperty(RandomIterator.prototype, "pointer", { get: function() { return this.container.getElementByPos(this.o); }, set: function(t) { this.container.setElementByPos(this.o, t); }, enumerable: false, configurable: true }); return RandomIterator; }(_ContainerBase__WEBPACK_IMPORTED_MODULE_0__["ContainerIterator"]); //# sourceMappingURL=RandomIterator.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/index.js": /*!***********************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/index.js ***! \***********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ContainerBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../ContainerBase */ "./node_modules/js-sdsl/dist/esm/container/ContainerBase/index.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(n, t) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, t) { n.__proto__ = t; } || function(n, t) { for (var e in t) if (Object.prototype.hasOwnProperty.call(t, e)) n[e] = t[e]; }; return extendStatics(n, t); }; return function(n, t) { if (typeof t !== "function" && t !== null) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null"); extendStatics(n, t); function __() { this.constructor = n; } n.prototype = t === null ? Object.create(t) : (__.prototype = t.prototype, new __); }; }(); var SequentialContainer = function(n) { __extends(SequentialContainer, n); function SequentialContainer() { return n !== null && n.apply(this, arguments) || this; } return SequentialContainer; }(_ContainerBase__WEBPACK_IMPORTED_MODULE_0__["Container"]); /* harmony default export */ __webpack_exports__["default"] = (SequentialContainer); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Deque.js": /*!******************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Deque.js ***! \******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Base */ "./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/index.js"); /* harmony import */ var _Base_RandomIterator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Base/RandomIterator */ "./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/RandomIterator.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(t, i) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) { t.__proto__ = i; } || function(t, i) { for (var r in i) if (Object.prototype.hasOwnProperty.call(i, r)) t[r] = i[r]; }; return extendStatics(t, i); }; return function(t, i) { if (typeof i !== "function" && i !== null) throw new TypeError("Class extends value " + String(i) + " is not a constructor or null"); extendStatics(t, i); function __() { this.constructor = t; } t.prototype = i === null ? Object.create(i) : (__.prototype = i.prototype, new __); }; }(); var __generator = undefined && undefined.i || function(t, i) { var r = { label: 0, sent: function() { if (h[0] & 1) throw h[1]; return h[1]; }, trys: [], ops: [] }, e, s, h, n; return n = { next: verb(0), throw: verb(1), return: verb(2) }, typeof Symbol === "function" && (n[Symbol.iterator] = function() { return this; }), n; function verb(t) { return function(i) { return step([ t, i ]); }; } function step(n) { if (e) throw new TypeError("Generator is already executing."); while (r) try { if (e = 1, s && (h = n[0] & 2 ? s["return"] : n[0] ? s["throw"] || ((h = s["return"]) && h.call(s), 0) : s.next) && !(h = h.call(s, n[1])).done) return h; if (s = 0, h) n = [ n[0] & 2, h.value ]; switch (n[0]) { case 0: case 1: h = n; break; case 4: r.label++; return { value: n[1], done: false }; case 5: r.label++; s = n[1]; n = [ 0 ]; continue; case 7: n = r.ops.pop(); r.trys.pop(); continue; default: if (!(h = r.trys, h = h.length > 0 && h[h.length - 1]) && (n[0] === 6 || n[0] === 2)) { r = 0; continue; } if (n[0] === 3 && (!h || n[1] > h[0] && n[1] < h[3])) { r.label = n[1]; break; } if (n[0] === 6 && r.label < h[1]) { r.label = h[1]; h = n; break; } if (h && r.label < h[2]) { r.label = h[2]; r.ops.push(n); break; } if (h[2]) r.ops.pop(); r.trys.pop(); continue; } n = i.call(t, r); } catch (t) { n = [ 6, t ]; s = 0; } finally { e = h = 0; } if (n[0] & 5) throw n[1]; return { value: n[0] ? n[1] : void 0, done: true }; } }; var __read = undefined && undefined.q || function(t, i) { var r = typeof Symbol === "function" && t[Symbol.iterator]; if (!r) return t; var e = r.call(t), s, h = [], n; try { while ((i === void 0 || i-- > 0) && !(s = e.next()).done) h.push(s.value); } catch (t) { n = { error: t }; } finally { try { if (s && !s.done && (r = e["return"])) r.call(e); } finally { if (n) throw n.error; } } return h; }; var __spreadArray = undefined && undefined.D || function(t, i, r) { if (r || arguments.length === 2) for (var e = 0, s = i.length, h; e < s; e++) { if (h || !(e in i)) { if (!h) h = Array.prototype.slice.call(i, 0, e); h[e] = i[e]; } } return t.concat(h || Array.prototype.slice.call(i)); }; var DequeIterator = function(t) { __extends(DequeIterator, t); function DequeIterator(i, r, e) { var s = t.call(this, i, e) || this; s.container = r; return s; } DequeIterator.prototype.copy = function() { return new DequeIterator(this.o, this.container, this.iteratorType); }; return DequeIterator; }(_Base_RandomIterator__WEBPACK_IMPORTED_MODULE_1__["RandomIterator"]); var Deque = function(t) { __extends(Deque, t); function Deque(i, r) { if (i === void 0) { i = []; } if (r === void 0) { r = 1 << 12; } var e = t.call(this) || this; e.A = 0; e.S = 0; e.R = 0; e.k = 0; e.C = 0; e.j = []; var s = function() { if (typeof i.length === "number") return i.length; if (typeof i.size === "number") return i.size; if (typeof i.size === "function") return i.size(); throw new TypeError("Cannot get the length or size of the container"); }(); e.B = r; e.C = Math.max(Math.ceil(s / e.B), 1); for (var h = 0; h < e.C; ++h) { e.j.push(new Array(e.B)); } var n = Math.ceil(s / e.B); e.A = e.R = (e.C >> 1) - (n >> 1); e.S = e.k = e.B - s % e.B >> 1; var u = e; i.forEach((function(t) { u.pushBack(t); })); return e; } Deque.prototype.O = function() { var t = []; var i = Math.max(this.C >> 1, 1); for (var r = 0; r < i; ++r) { t[r] = new Array(this.B); } for (var r = this.A; r < this.C; ++r) { t[t.length] = this.j[r]; } for (var r = 0; r < this.R; ++r) { t[t.length] = this.j[r]; } t[t.length] = __spreadArray([], __read(this.j[this.R]), false); this.A = i; this.R = t.length - 1; for (var r = 0; r < i; ++r) { t[t.length] = new Array(this.B); } this.j = t; this.C = t.length; }; Deque.prototype.T = function(t) { var i = this.S + t + 1; var r = i % this.B; var e = r - 1; var s = this.A + (i - r) / this.B; if (r === 0) s -= 1; s %= this.C; if (e < 0) e += this.B; return { curNodeBucketIndex: s, curNodePointerIndex: e }; }; Deque.prototype.clear = function() { this.j = [ new Array(this.B) ]; this.C = 1; this.A = this.R = this.M = 0; this.S = this.k = this.B >> 1; }; Deque.prototype.begin = function() { return new DequeIterator(0, this); }; Deque.prototype.end = function() { return new DequeIterator(this.M, this); }; Deque.prototype.rBegin = function() { return new DequeIterator(this.M - 1, this, 1); }; Deque.prototype.rEnd = function() { return new DequeIterator(-1, this, 1); }; Deque.prototype.front = function() { if (this.M === 0) return; return this.j[this.A][this.S]; }; Deque.prototype.back = function() { if (this.M === 0) return; return this.j[this.R][this.k]; }; Deque.prototype.pushBack = function(t) { if (this.M) { if (this.k < this.B - 1) { this.k += 1; } else if (this.R < this.C - 1) { this.R += 1; this.k = 0; } else { this.R = 0; this.k = 0; } if (this.R === this.A && this.k === this.S) this.O(); } this.M += 1; this.j[this.R][this.k] = t; return this.M; }; Deque.prototype.popBack = function() { if (this.M === 0) return; var t = this.j[this.R][this.k]; if (this.M !== 1) { if (this.k > 0) { this.k -= 1; } else if (this.R > 0) { this.R -= 1; this.k = this.B - 1; } else { this.R = this.C - 1; this.k = this.B - 1; } } this.M -= 1; return t; }; Deque.prototype.pushFront = function(t) { if (this.M) { if (this.S > 0) { this.S -= 1; } else if (this.A > 0) { this.A -= 1; this.S = this.B - 1; } else { this.A = this.C - 1; this.S = this.B - 1; } if (this.A === this.R && this.S === this.k) this.O(); } this.M += 1; this.j[this.A][this.S] = t; return this.M; }; Deque.prototype.popFront = function() { if (this.M === 0) return; var t = this.j[this.A][this.S]; if (this.M !== 1) { if (this.S < this.B - 1) { this.S += 1; } else if (this.A < this.C - 1) { this.A += 1; this.S = 0; } else { this.A = 0; this.S = 0; } } this.M -= 1; return t; }; Deque.prototype.getElementByPos = function(t) { if (t < 0 || t > this.M - 1) { throw new RangeError; } var i = this.T(t), r = i.curNodeBucketIndex, e = i.curNodePointerIndex; return this.j[r][e]; }; Deque.prototype.setElementByPos = function(t, i) { if (t < 0 || t > this.M - 1) { throw new RangeError; } var r = this.T(t), e = r.curNodeBucketIndex, s = r.curNodePointerIndex; this.j[e][s] = i; }; Deque.prototype.insert = function(t, i, r) { if (r === void 0) { r = 1; } if (t < 0 || t > this.M) { throw new RangeError; } if (t === 0) { while (r--) this.pushFront(i); } else if (t === this.M) { while (r--) this.pushBack(i); } else { var e = []; for (var s = t; s < this.M; ++s) { e.push(this.getElementByPos(s)); } this.cut(t - 1); for (var s = 0; s < r; ++s) this.pushBack(i); for (var s = 0; s < e.length; ++s) this.pushBack(e[s]); } return this.M; }; Deque.prototype.cut = function(t) { if (t < 0) { this.clear(); return 0; } var i = this.T(t), r = i.curNodeBucketIndex, e = i.curNodePointerIndex; this.R = r; this.k = e; this.M = t + 1; return this.M; }; Deque.prototype.eraseElementByPos = function(t) { if (t < 0 || t > this.M - 1) { throw new RangeError; } if (t === 0) this.popFront(); else if (t === this.M - 1) this.popBack(); else { var i = []; for (var r = t + 1; r < this.M; ++r) { i.push(this.getElementByPos(r)); } this.cut(t); this.popBack(); var e = this; i.forEach((function(t) { e.pushBack(t); })); } return this.M; }; Deque.prototype.eraseElementByValue = function(t) { if (this.M === 0) return 0; var i = []; for (var r = 0; r < this.M; ++r) { var e = this.getElementByPos(r); if (e !== t) i.push(e); } var s = i.length; for (var r = 0; r < s; ++r) this.setElementByPos(r, i[r]); return this.cut(s - 1); }; Deque.prototype.eraseElementByIterator = function(t) { var i = t.o; this.eraseElementByPos(i); t = t.next(); return t; }; Deque.prototype.find = function(t) { for (var i = 0; i < this.M; ++i) { if (this.getElementByPos(i) === t) { return new DequeIterator(i, this); } } return this.end(); }; Deque.prototype.reverse = function() { var t = 0; var i = this.M - 1; while (t < i) { var r = this.getElementByPos(t); this.setElementByPos(t, this.getElementByPos(i)); this.setElementByPos(i, r); t += 1; i -= 1; } }; Deque.prototype.unique = function() { if (this.M <= 1) { return this.M; } var t = 1; var i = this.getElementByPos(0); for (var r = 1; r < this.M; ++r) { var e = this.getElementByPos(r); if (e !== i) { i = e; this.setElementByPos(t++, e); } } while (this.M > t) this.popBack(); return this.M; }; Deque.prototype.sort = function(t) { var i = []; for (var r = 0; r < this.M; ++r) { i.push(this.getElementByPos(r)); } i.sort(t); for (var r = 0; r < this.M; ++r) this.setElementByPos(r, i[r]); }; Deque.prototype.shrinkToFit = function() { if (this.M === 0) return; var t = []; this.forEach((function(i) { t.push(i); })); this.C = Math.max(Math.ceil(this.M / this.B), 1); this.M = this.A = this.R = this.S = this.k = 0; this.j = []; for (var i = 0; i < this.C; ++i) { this.j.push(new Array(this.B)); } for (var i = 0; i < t.length; ++i) this.pushBack(t[i]); }; Deque.prototype.forEach = function(t) { for (var i = 0; i < this.M; ++i) { t(this.getElementByPos(i), i, this); } }; Deque.prototype[Symbol.iterator] = function() { return function() { var t; return __generator(this, (function(i) { switch (i.label) { case 0: t = 0; i.label = 1; case 1: if (!(t < this.M)) return [ 3, 4 ]; return [ 4, this.getElementByPos(t) ]; case 2: i.sent(); i.label = 3; case 3: ++t; return [ 3, 1 ]; case 4: return [ 2 ]; } })); }.bind(this)(); }; return Deque; }(_Base__WEBPACK_IMPORTED_MODULE_0__["default"]); /* harmony default export */ __webpack_exports__["default"] = (Deque); //# sourceMappingURL=Deque.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/SequentialContainer/LinkList.js": /*!*********************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/SequentialContainer/LinkList.js ***! \*********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Base */ "./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/index.js"); /* harmony import */ var _ContainerBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ContainerBase */ "./node_modules/js-sdsl/dist/esm/container/ContainerBase/index.js"); /* harmony import */ var _utils_throwError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/throwError */ "./node_modules/js-sdsl/dist/esm/utils/throwError.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(t, i) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) { t.__proto__ = i; } || function(t, i) { for (var r in i) if (Object.prototype.hasOwnProperty.call(i, r)) t[r] = i[r]; }; return extendStatics(t, i); }; return function(t, i) { if (typeof i !== "function" && i !== null) throw new TypeError("Class extends value " + String(i) + " is not a constructor or null"); extendStatics(t, i); function __() { this.constructor = t; } t.prototype = i === null ? Object.create(i) : (__.prototype = i.prototype, new __); }; }(); var __generator = undefined && undefined.i || function(t, i) { var r = { label: 0, sent: function() { if (e[0] & 1) throw e[1]; return e[1]; }, trys: [], ops: [] }, n, s, e, h; return h = { next: verb(0), throw: verb(1), return: verb(2) }, typeof Symbol === "function" && (h[Symbol.iterator] = function() { return this; }), h; function verb(t) { return function(i) { return step([ t, i ]); }; } function step(h) { if (n) throw new TypeError("Generator is already executing."); while (r) try { if (n = 1, s && (e = h[0] & 2 ? s["return"] : h[0] ? s["throw"] || ((e = s["return"]) && e.call(s), 0) : s.next) && !(e = e.call(s, h[1])).done) return e; if (s = 0, e) h = [ h[0] & 2, e.value ]; switch (h[0]) { case 0: case 1: e = h; break; case 4: r.label++; return { value: h[1], done: false }; case 5: r.label++; s = h[1]; h = [ 0 ]; continue; case 7: h = r.ops.pop(); r.trys.pop(); continue; default: if (!(e = r.trys, e = e.length > 0 && e[e.length - 1]) && (h[0] === 6 || h[0] === 2)) { r = 0; continue; } if (h[0] === 3 && (!e || h[1] > e[0] && h[1] < e[3])) { r.label = h[1]; break; } if (h[0] === 6 && r.label < e[1]) { r.label = e[1]; e = h; break; } if (e && r.label < e[2]) { r.label = e[2]; r.ops.push(h); break; } if (e[2]) r.ops.pop(); r.trys.pop(); continue; } h = i.call(t, r); } catch (t) { h = [ 6, t ]; s = 0; } finally { n = e = 0; } if (h[0] & 5) throw h[1]; return { value: h[0] ? h[1] : void 0, done: true }; } }; var LinkListIterator = function(t) { __extends(LinkListIterator, t); function LinkListIterator(i, r, n, s) { var e = t.call(this, s) || this; e.o = i; e.h = r; e.container = n; if (e.iteratorType === 0) { e.pre = function() { if (this.o.L === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } this.o = this.o.L; return this; }; e.next = function() { if (this.o === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } this.o = this.o.m; return this; }; } else { e.pre = function() { if (this.o.m === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } this.o = this.o.m; return this; }; e.next = function() { if (this.o === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } this.o = this.o.L; return this; }; } return e; } Object.defineProperty(LinkListIterator.prototype, "pointer", { get: function() { if (this.o === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } return this.o.p; }, set: function(t) { if (this.o === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } this.o.p = t; }, enumerable: false, configurable: true }); LinkListIterator.prototype.copy = function() { return new LinkListIterator(this.o, this.h, this.container, this.iteratorType); }; return LinkListIterator; }(_ContainerBase__WEBPACK_IMPORTED_MODULE_1__["ContainerIterator"]); var LinkList = function(t) { __extends(LinkList, t); function LinkList(i) { if (i === void 0) { i = []; } var r = t.call(this) || this; r.h = {}; r.H = r.l = r.h.L = r.h.m = r.h; var n = r; i.forEach((function(t) { n.pushBack(t); })); return r; } LinkList.prototype.G = function(t) { var i = t.L, r = t.m; i.m = r; r.L = i; if (t === this.H) { this.H = r; } if (t === this.l) { this.l = i; } this.M -= 1; }; LinkList.prototype.F = function(t, i) { var r = i.m; var n = { p: t, L: i, m: r }; i.m = n; r.L = n; if (i === this.h) { this.H = n; } if (r === this.h) { this.l = n; } this.M += 1; }; LinkList.prototype.clear = function() { this.M = 0; this.H = this.l = this.h.L = this.h.m = this.h; }; LinkList.prototype.begin = function() { return new LinkListIterator(this.H, this.h, this); }; LinkList.prototype.end = function() { return new LinkListIterator(this.h, this.h, this); }; LinkList.prototype.rBegin = function() { return new LinkListIterator(this.l, this.h, this, 1); }; LinkList.prototype.rEnd = function() { return new LinkListIterator(this.h, this.h, this, 1); }; LinkList.prototype.front = function() { return this.H.p; }; LinkList.prototype.back = function() { return this.l.p; }; LinkList.prototype.getElementByPos = function(t) { if (t < 0 || t > this.M - 1) { throw new RangeError; } var i = this.H; while (t--) { i = i.m; } return i.p; }; LinkList.prototype.eraseElementByPos = function(t) { if (t < 0 || t > this.M - 1) { throw new RangeError; } var i = this.H; while (t--) { i = i.m; } this.G(i); return this.M; }; LinkList.prototype.eraseElementByValue = function(t) { var i = this.H; while (i !== this.h) { if (i.p === t) { this.G(i); } i = i.m; } return this.M; }; LinkList.prototype.eraseElementByIterator = function(t) { var i = t.o; if (i === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } t = t.next(); this.G(i); return t; }; LinkList.prototype.pushBack = function(t) { this.F(t, this.l); return this.M; }; LinkList.prototype.popBack = function() { if (this.M === 0) return; var t = this.l.p; this.G(this.l); return t; }; LinkList.prototype.pushFront = function(t) { this.F(t, this.h); return this.M; }; LinkList.prototype.popFront = function() { if (this.M === 0) return; var t = this.H.p; this.G(this.H); return t; }; LinkList.prototype.setElementByPos = function(t, i) { if (t < 0 || t > this.M - 1) { throw new RangeError; } var r = this.H; while (t--) { r = r.m; } r.p = i; }; LinkList.prototype.insert = function(t, i, r) { if (r === void 0) { r = 1; } if (t < 0 || t > this.M) { throw new RangeError; } if (r <= 0) return this.M; if (t === 0) { while (r--) this.pushFront(i); } else if (t === this.M) { while (r--) this.pushBack(i); } else { var n = this.H; for (var s = 1; s < t; ++s) { n = n.m; } var e = n.m; this.M += r; while (r--) { n.m = { p: i, L: n }; n.m.L = n; n = n.m; } n.m = e; e.L = n; } return this.M; }; LinkList.prototype.find = function(t) { var i = this.H; while (i !== this.h) { if (i.p === t) { return new LinkListIterator(i, this.h, this); } i = i.m; } return this.end(); }; LinkList.prototype.reverse = function() { if (this.M <= 1) return; var t = this.H; var i = this.l; var r = 0; while (r << 1 < this.M) { var n = t.p; t.p = i.p; i.p = n; t = t.m; i = i.L; r += 1; } }; LinkList.prototype.unique = function() { if (this.M <= 1) { return this.M; } var t = this.H; while (t !== this.h) { var i = t; while (i.m !== this.h && i.p === i.m.p) { i = i.m; this.M -= 1; } t.m = i.m; t.m.L = t; t = t.m; } return this.M; }; LinkList.prototype.sort = function(t) { if (this.M <= 1) return; var i = []; this.forEach((function(t) { i.push(t); })); i.sort(t); var r = this.H; i.forEach((function(t) { r.p = t; r = r.m; })); }; LinkList.prototype.merge = function(t) { var i = this; if (this.M === 0) { t.forEach((function(t) { i.pushBack(t); })); } else { var r = this.H; t.forEach((function(t) { while (r !== i.h && r.p <= t) { r = r.m; } i.F(t, r.L); })); } return this.M; }; LinkList.prototype.forEach = function(t) { var i = this.H; var r = 0; while (i !== this.h) { t(i.p, r++, this); i = i.m; } }; LinkList.prototype[Symbol.iterator] = function() { return function() { var t; return __generator(this, (function(i) { switch (i.label) { case 0: if (this.M === 0) return [ 2 ]; t = this.H; i.label = 1; case 1: if (!(t !== this.h)) return [ 3, 3 ]; return [ 4, t.p ]; case 2: i.sent(); t = t.m; return [ 3, 1 ]; case 3: return [ 2 ]; } })); }.bind(this)(); }; return LinkList; }(_Base__WEBPACK_IMPORTED_MODULE_0__["default"]); /* harmony default export */ __webpack_exports__["default"] = (LinkList); //# sourceMappingURL=LinkList.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Vector.js": /*!*******************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Vector.js ***! \*******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Base */ "./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/index.js"); /* harmony import */ var _Base_RandomIterator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Base/RandomIterator */ "./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/RandomIterator.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(t, r) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) { t.__proto__ = r; } || function(t, r) { for (var e in r) if (Object.prototype.hasOwnProperty.call(r, e)) t[e] = r[e]; }; return extendStatics(t, r); }; return function(t, r) { if (typeof r !== "function" && r !== null) throw new TypeError("Class extends value " + String(r) + " is not a constructor or null"); extendStatics(t, r); function __() { this.constructor = t; } t.prototype = r === null ? Object.create(r) : (__.prototype = r.prototype, new __); }; }(); var __generator = undefined && undefined.i || function(t, r) { var e = { label: 0, sent: function() { if (o[0] & 1) throw o[1]; return o[1]; }, trys: [], ops: [] }, n, i, o, u; return u = { next: verb(0), throw: verb(1), return: verb(2) }, typeof Symbol === "function" && (u[Symbol.iterator] = function() { return this; }), u; function verb(t) { return function(r) { return step([ t, r ]); }; } function step(u) { if (n) throw new TypeError("Generator is already executing."); while (e) try { if (n = 1, i && (o = u[0] & 2 ? i["return"] : u[0] ? i["throw"] || ((o = i["return"]) && o.call(i), 0) : i.next) && !(o = o.call(i, u[1])).done) return o; if (i = 0, o) u = [ u[0] & 2, o.value ]; switch (u[0]) { case 0: case 1: o = u; break; case 4: e.label++; return { value: u[1], done: false }; case 5: e.label++; i = u[1]; u = [ 0 ]; continue; case 7: u = e.ops.pop(); e.trys.pop(); continue; default: if (!(o = e.trys, o = o.length > 0 && o[o.length - 1]) && (u[0] === 6 || u[0] === 2)) { e = 0; continue; } if (u[0] === 3 && (!o || u[1] > o[0] && u[1] < o[3])) { e.label = u[1]; break; } if (u[0] === 6 && e.label < o[1]) { e.label = o[1]; o = u; break; } if (o && e.label < o[2]) { e.label = o[2]; e.ops.push(u); break; } if (o[2]) e.ops.pop(); e.trys.pop(); continue; } u = r.call(t, e); } catch (t) { u = [ 6, t ]; i = 0; } finally { n = o = 0; } if (u[0] & 5) throw u[1]; return { value: u[0] ? u[1] : void 0, done: true }; } }; var __read = undefined && undefined.q || function(t, r) { var e = typeof Symbol === "function" && t[Symbol.iterator]; if (!e) return t; var n = e.call(t), i, o = [], u; try { while ((r === void 0 || r-- > 0) && !(i = n.next()).done) o.push(i.value); } catch (t) { u = { error: t }; } finally { try { if (i && !i.done && (e = n["return"])) e.call(n); } finally { if (u) throw u.error; } } return o; }; var __spreadArray = undefined && undefined.D || function(t, r, e) { if (e || arguments.length === 2) for (var n = 0, i = r.length, o; n < i; n++) { if (o || !(n in r)) { if (!o) o = Array.prototype.slice.call(r, 0, n); o[n] = r[n]; } } return t.concat(o || Array.prototype.slice.call(r)); }; var __values = undefined && undefined.V || function(t) { var r = typeof Symbol === "function" && Symbol.iterator, e = r && t[r], n = 0; if (e) return e.call(t); if (t && typeof t.length === "number") return { next: function() { if (t && n >= t.length) t = void 0; return { value: t && t[n++], done: !t }; } }; throw new TypeError(r ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var VectorIterator = function(t) { __extends(VectorIterator, t); function VectorIterator(r, e, n) { var i = t.call(this, r, n) || this; i.container = e; return i; } VectorIterator.prototype.copy = function() { return new VectorIterator(this.o, this.container, this.iteratorType); }; return VectorIterator; }(_Base_RandomIterator__WEBPACK_IMPORTED_MODULE_1__["RandomIterator"]); var Vector = function(t) { __extends(Vector, t); function Vector(r, e) { if (r === void 0) { r = []; } if (e === void 0) { e = true; } var n = t.call(this) || this; if (Array.isArray(r)) { n.J = e ? __spreadArray([], __read(r), false) : r; n.M = r.length; } else { n.J = []; var i = n; r.forEach((function(t) { i.pushBack(t); })); } return n; } Vector.prototype.clear = function() { this.M = 0; this.J.length = 0; }; Vector.prototype.begin = function() { return new VectorIterator(0, this); }; Vector.prototype.end = function() { return new VectorIterator(this.M, this); }; Vector.prototype.rBegin = function() { return new VectorIterator(this.M - 1, this, 1); }; Vector.prototype.rEnd = function() { return new VectorIterator(-1, this, 1); }; Vector.prototype.front = function() { return this.J[0]; }; Vector.prototype.back = function() { return this.J[this.M - 1]; }; Vector.prototype.getElementByPos = function(t) { if (t < 0 || t > this.M - 1) { throw new RangeError; } return this.J[t]; }; Vector.prototype.eraseElementByPos = function(t) { if (t < 0 || t > this.M - 1) { throw new RangeError; } this.J.splice(t, 1); this.M -= 1; return this.M; }; Vector.prototype.eraseElementByValue = function(t) { var r = 0; for (var e = 0; e < this.M; ++e) { if (this.J[e] !== t) { this.J[r++] = this.J[e]; } } this.M = this.J.length = r; return this.M; }; Vector.prototype.eraseElementByIterator = function(t) { var r = t.o; t = t.next(); this.eraseElementByPos(r); return t; }; Vector.prototype.pushBack = function(t) { this.J.push(t); this.M += 1; return this.M; }; Vector.prototype.popBack = function() { if (this.M === 0) return; this.M -= 1; return this.J.pop(); }; Vector.prototype.setElementByPos = function(t, r) { if (t < 0 || t > this.M - 1) { throw new RangeError; } this.J[t] = r; }; Vector.prototype.insert = function(t, r, e) { var n; if (e === void 0) { e = 1; } if (t < 0 || t > this.M) { throw new RangeError; } (n = this.J).splice.apply(n, __spreadArray([ t, 0 ], __read(new Array(e).fill(r)), false)); this.M += e; return this.M; }; Vector.prototype.find = function(t) { for (var r = 0; r < this.M; ++r) { if (this.J[r] === t) { return new VectorIterator(r, this); } } return this.end(); }; Vector.prototype.reverse = function() { this.J.reverse(); }; Vector.prototype.unique = function() { var t = 1; for (var r = 1; r < this.M; ++r) { if (this.J[r] !== this.J[r - 1]) { this.J[t++] = this.J[r]; } } this.M = this.J.length = t; return this.M; }; Vector.prototype.sort = function(t) { this.J.sort(t); }; Vector.prototype.forEach = function(t) { for (var r = 0; r < this.M; ++r) { t(this.J[r], r, this); } }; Vector.prototype[Symbol.iterator] = function() { return function() { return __generator(this, (function(t) { switch (t.label) { case 0: return [ 5, __values(this.J) ]; case 1: t.sent(); return [ 2 ]; } })); }.bind(this)(); }; return Vector; }(_Base__WEBPACK_IMPORTED_MODULE_0__["default"]); /* harmony default export */ __webpack_exports__["default"] = (Vector); //# sourceMappingURL=Vector.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/TreeIterator.js": /*!************************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/TreeIterator.js ***! \************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ContainerBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../ContainerBase */ "./node_modules/js-sdsl/dist/esm/container/ContainerBase/index.js"); /* harmony import */ var _utils_throwError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../utils/throwError */ "./node_modules/js-sdsl/dist/esm/utils/throwError.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(r, t) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, t) { r.__proto__ = t; } || function(r, t) { for (var e in t) if (Object.prototype.hasOwnProperty.call(t, e)) r[e] = t[e]; }; return extendStatics(r, t); }; return function(r, t) { if (typeof t !== "function" && t !== null) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null"); extendStatics(r, t); function __() { this.constructor = r; } r.prototype = t === null ? Object.create(t) : (__.prototype = t.prototype, new __); }; }(); var TreeIterator = function(r) { __extends(TreeIterator, r); function TreeIterator(t, e, i) { var n = r.call(this, i) || this; n.o = t; n.h = e; if (n.iteratorType === 0) { n.pre = function() { if (this.o === this.h.K) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_1__["throwIteratorAccessError"])(); } this.o = this.o.L(); return this; }; n.next = function() { if (this.o === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_1__["throwIteratorAccessError"])(); } this.o = this.o.m(); return this; }; } else { n.pre = function() { if (this.o === this.h.N) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_1__["throwIteratorAccessError"])(); } this.o = this.o.m(); return this; }; n.next = function() { if (this.o === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_1__["throwIteratorAccessError"])(); } this.o = this.o.L(); return this; }; } return n; } Object.defineProperty(TreeIterator.prototype, "index", { get: function() { var r = this.o; var t = this.h.rr; if (r === this.h) { if (t) { return t.tr - 1; } return 0; } var e = 0; if (r.K) { e += r.K.tr; } while (r !== t) { var i = r.rr; if (r === i.N) { e += 1; if (i.K) { e += i.K.tr; } } r = i; } return e; }, enumerable: false, configurable: true }); return TreeIterator; }(_ContainerBase__WEBPACK_IMPORTED_MODULE_0__["ContainerIterator"]); /* harmony default export */ __webpack_exports__["default"] = (TreeIterator); //# sourceMappingURL=TreeIterator.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/TreeNode.js": /*!********************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/TreeNode.js ***! \********************************************************************************/ /*! exports provided: TreeNode, TreeNodeEnableIndex */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeNode", function() { return TreeNode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeNodeEnableIndex", function() { return TreeNodeEnableIndex; }); var __extends = undefined && undefined.t || function() { var extendStatics = function(e, n) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) { e.__proto__ = n; } || function(e, n) { for (var t in n) if (Object.prototype.hasOwnProperty.call(n, t)) e[t] = n[t]; }; return extendStatics(e, n); }; return function(e, n) { if (typeof n !== "function" && n !== null) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null"); extendStatics(e, n); function __() { this.constructor = e; } e.prototype = n === null ? Object.create(n) : (__.prototype = n.prototype, new __); }; }(); var TreeNode = function() { function TreeNode(e, n) { this.ee = 1; this.u = undefined; this.p = undefined; this.K = undefined; this.N = undefined; this.rr = undefined; this.u = e; this.p = n; } TreeNode.prototype.L = function() { var e = this; if (e.ee === 1 && e.rr.rr === e) { e = e.N; } else if (e.K) { e = e.K; while (e.N) { e = e.N; } } else { var n = e.rr; while (n.K === e) { e = n; n = e.rr; } e = n; } return e; }; TreeNode.prototype.m = function() { var e = this; if (e.N) { e = e.N; while (e.K) { e = e.K; } return e; } else { var n = e.rr; while (n.N === e) { e = n; n = e.rr; } if (e.N !== n) { return n; } else return e; } }; TreeNode.prototype.ne = function() { var e = this.rr; var n = this.N; var t = n.K; if (e.rr === this) e.rr = n; else if (e.K === this) e.K = n; else e.N = n; n.rr = e; n.K = this; this.rr = n; this.N = t; if (t) t.rr = this; return n; }; TreeNode.prototype.te = function() { var e = this.rr; var n = this.K; var t = n.N; if (e.rr === this) e.rr = n; else if (e.K === this) e.K = n; else e.N = n; n.rr = e; n.N = this; this.rr = n; this.K = t; if (t) t.rr = this; return n; }; return TreeNode; }(); var TreeNodeEnableIndex = function(e) { __extends(TreeNodeEnableIndex, e); function TreeNodeEnableIndex() { var n = e !== null && e.apply(this, arguments) || this; n.tr = 1; return n; } TreeNodeEnableIndex.prototype.ne = function() { var n = e.prototype.ne.call(this); this.ie(); n.ie(); return n; }; TreeNodeEnableIndex.prototype.te = function() { var n = e.prototype.te.call(this); this.ie(); n.ie(); return n; }; TreeNodeEnableIndex.prototype.ie = function() { this.tr = 1; if (this.K) { this.tr += this.K.tr; } if (this.N) { this.tr += this.N.tr; } }; return TreeNodeEnableIndex; }(TreeNode); //# sourceMappingURL=TreeNode.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/index.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _TreeNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TreeNode */ "./node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/TreeNode.js"); /* harmony import */ var _ContainerBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../ContainerBase */ "./node_modules/js-sdsl/dist/esm/container/ContainerBase/index.js"); /* harmony import */ var _utils_throwError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../utils/throwError */ "./node_modules/js-sdsl/dist/esm/utils/throwError.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(e, r) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) { e.__proto__ = r; } || function(e, r) { for (var i in r) if (Object.prototype.hasOwnProperty.call(r, i)) e[i] = r[i]; }; return extendStatics(e, r); }; return function(e, r) { if (typeof r !== "function" && r !== null) throw new TypeError("Class extends value " + String(r) + " is not a constructor or null"); extendStatics(e, r); function __() { this.constructor = e; } e.prototype = r === null ? Object.create(r) : (__.prototype = r.prototype, new __); }; }(); var __read = undefined && undefined.q || function(e, r) { var i = typeof Symbol === "function" && e[Symbol.iterator]; if (!i) return e; var t = i.call(e), n, s = [], f; try { while ((r === void 0 || r-- > 0) && !(n = t.next()).done) s.push(n.value); } catch (e) { f = { error: e }; } finally { try { if (n && !n.done && (i = t["return"])) i.call(t); } finally { if (f) throw f.error; } } return s; }; var __values = undefined && undefined.V || function(e) { var r = typeof Symbol === "function" && Symbol.iterator, i = r && e[r], t = 0; if (i) return i.call(e); if (e && typeof e.length === "number") return { next: function() { if (e && t >= e.length) e = void 0; return { value: e && e[t++], done: !e }; } }; throw new TypeError(r ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var TreeContainer = function(e) { __extends(TreeContainer, e); function TreeContainer(r, i) { if (r === void 0) { r = function(e, r) { if (e < r) return -1; if (e > r) return 1; return 0; }; } if (i === void 0) { i = false; } var t = e.call(this) || this; t.W = undefined; t.$ = r; if (i) { t.re = _TreeNode__WEBPACK_IMPORTED_MODULE_0__["TreeNodeEnableIndex"]; t.v = function(e, r, i) { var t = this.se(e, r, i); if (t) { var n = t.rr; while (n !== this.h) { n.tr += 1; n = n.rr; } var s = this.fe(t); if (s) { var f = s, h = f.parentNode, u = f.grandParent, a = f.curNode; h.ie(); u.ie(); a.ie(); } } return this.M; }; t.G = function(e) { var r = this.he(e); while (r !== this.h) { r.tr -= 1; r = r.rr; } }; } else { t.re = _TreeNode__WEBPACK_IMPORTED_MODULE_0__["TreeNode"]; t.v = function(e, r, i) { var t = this.se(e, r, i); if (t) this.fe(t); return this.M; }; t.G = t.he; } t.h = new t.re; return t; } TreeContainer.prototype.U = function(e, r) { var i = this.h; while (e) { var t = this.$(e.u, r); if (t < 0) { e = e.N; } else if (t > 0) { i = e; e = e.K; } else return e; } return i; }; TreeContainer.prototype.X = function(e, r) { var i = this.h; while (e) { var t = this.$(e.u, r); if (t <= 0) { e = e.N; } else { i = e; e = e.K; } } return i; }; TreeContainer.prototype.Y = function(e, r) { var i = this.h; while (e) { var t = this.$(e.u, r); if (t < 0) { i = e; e = e.N; } else if (t > 0) { e = e.K; } else return e; } return i; }; TreeContainer.prototype.Z = function(e, r) { var i = this.h; while (e) { var t = this.$(e.u, r); if (t < 0) { i = e; e = e.N; } else { e = e.K; } } return i; }; TreeContainer.prototype.ue = function(e) { while (true) { var r = e.rr; if (r === this.h) return; if (e.ee === 1) { e.ee = 0; return; } if (e === r.K) { var i = r.N; if (i.ee === 1) { i.ee = 0; r.ee = 1; if (r === this.W) { this.W = r.ne(); } else r.ne(); } else { if (i.N && i.N.ee === 1) { i.ee = r.ee; r.ee = 0; i.N.ee = 0; if (r === this.W) { this.W = r.ne(); } else r.ne(); return; } else if (i.K && i.K.ee === 1) { i.ee = 1; i.K.ee = 0; i.te(); } else { i.ee = 1; e = r; } } } else { var i = r.K; if (i.ee === 1) { i.ee = 0; r.ee = 1; if (r === this.W) { this.W = r.te(); } else r.te(); } else { if (i.K && i.K.ee === 1) { i.ee = r.ee; r.ee = 0; i.K.ee = 0; if (r === this.W) { this.W = r.te(); } else r.te(); return; } else if (i.N && i.N.ee === 1) { i.ee = 1; i.N.ee = 0; i.ne(); } else { i.ee = 1; e = r; } } } } }; TreeContainer.prototype.he = function(e) { var r, i; if (this.M === 1) { this.clear(); return this.h; } var t = e; while (t.K || t.N) { if (t.N) { t = t.N; while (t.K) t = t.K; } else { t = t.K; } r = __read([ t.u, e.u ], 2), e.u = r[0], t.u = r[1]; i = __read([ t.p, e.p ], 2), e.p = i[0], t.p = i[1]; e = t; } if (this.h.K === t) { this.h.K = t.rr; } else if (this.h.N === t) { this.h.N = t.rr; } this.ue(t); var n = t.rr; if (t === n.K) { n.K = undefined; } else n.N = undefined; this.M -= 1; this.W.ee = 0; return n; }; TreeContainer.prototype.ae = function(e, r) { if (e === undefined) return false; var i = this.ae(e.K, r); if (i) return true; if (r(e)) return true; return this.ae(e.N, r); }; TreeContainer.prototype.fe = function(e) { while (true) { var r = e.rr; if (r.ee === 0) return; var i = r.rr; if (r === i.K) { var t = i.N; if (t && t.ee === 1) { t.ee = r.ee = 0; if (i === this.W) return; i.ee = 1; e = i; continue; } else if (e === r.N) { e.ee = 0; if (e.K) e.K.rr = r; if (e.N) e.N.rr = i; r.N = e.K; i.K = e.N; e.K = r; e.N = i; if (i === this.W) { this.W = e; this.h.rr = e; } else { var n = i.rr; if (n.K === i) { n.K = e; } else n.N = e; } e.rr = i.rr; r.rr = e; i.rr = e; i.ee = 1; return { parentNode: r, grandParent: i, curNode: e }; } else { r.ee = 0; if (i === this.W) { this.W = i.te(); } else i.te(); i.ee = 1; } } else { var t = i.K; if (t && t.ee === 1) { t.ee = r.ee = 0; if (i === this.W) return; i.ee = 1; e = i; continue; } else if (e === r.K) { e.ee = 0; if (e.K) e.K.rr = i; if (e.N) e.N.rr = r; i.N = e.K; r.K = e.N; e.K = i; e.N = r; if (i === this.W) { this.W = e; this.h.rr = e; } else { var n = i.rr; if (n.K === i) { n.K = e; } else n.N = e; } e.rr = i.rr; r.rr = e; i.rr = e; i.ee = 1; return { parentNode: r, grandParent: i, curNode: e }; } else { r.ee = 0; if (i === this.W) { this.W = i.ne(); } else i.ne(); i.ee = 1; } } return; } }; TreeContainer.prototype.se = function(e, r, i) { if (this.W === undefined) { this.M += 1; this.W = new this.re(e, r); this.W.ee = 0; this.W.rr = this.h; this.h.rr = this.W; this.h.K = this.W; this.h.N = this.W; return; } var t; var n = this.h.K; var s = this.$(n.u, e); if (s === 0) { n.p = r; return; } else if (s > 0) { n.K = new this.re(e, r); n.K.rr = n; t = n.K; this.h.K = t; } else { var f = this.h.N; var h = this.$(f.u, e); if (h === 0) { f.p = r; return; } else if (h < 0) { f.N = new this.re(e, r); f.N.rr = f; t = f.N; this.h.N = t; } else { if (i !== undefined) { var u = i.o; if (u !== this.h) { var a = this.$(u.u, e); if (a === 0) { u.p = r; return; } else if (a > 0) { var o = u.L(); var l = this.$(o.u, e); if (l === 0) { o.p = r; return; } else if (l < 0) { t = new this.re(e, r); if (o.N === undefined) { o.N = t; t.rr = o; } else { u.K = t; t.rr = u; } } } } } if (t === undefined) { t = this.W; while (true) { var v = this.$(t.u, e); if (v > 0) { if (t.K === undefined) { t.K = new this.re(e, r); t.K.rr = t; t = t.K; break; } t = t.K; } else if (v < 0) { if (t.N === undefined) { t.N = new this.re(e, r); t.N.rr = t; t = t.N; break; } t = t.N; } else { t.p = r; return; } } } } } this.M += 1; return t; }; TreeContainer.prototype.g = function(e, r) { while (e) { var i = this.$(e.u, r); if (i < 0) { e = e.N; } else if (i > 0) { e = e.K; } else return e; } return e || this.h; }; TreeContainer.prototype.clear = function() { this.M = 0; this.W = undefined; this.h.rr = undefined; this.h.K = this.h.N = undefined; }; TreeContainer.prototype.updateKeyByIterator = function(e, r) { var i = e.o; if (i === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } if (this.M === 1) { i.u = r; return true; } if (i === this.h.K) { if (this.$(i.m().u, r) > 0) { i.u = r; return true; } return false; } if (i === this.h.N) { if (this.$(i.L().u, r) < 0) { i.u = r; return true; } return false; } var t = i.L().u; if (this.$(t, r) >= 0) return false; var n = i.m().u; if (this.$(n, r) <= 0) return false; i.u = r; return true; }; TreeContainer.prototype.eraseElementByPos = function(e) { if (e < 0 || e > this.M - 1) { throw new RangeError; } var r = 0; var i = this; this.ae(this.W, (function(t) { if (e === r) { i.G(t); return true; } r += 1; return false; })); return this.M; }; TreeContainer.prototype.eraseElementByKey = function(e) { if (this.M === 0) return false; var r = this.g(this.W, e); if (r === this.h) return false; this.G(r); return true; }; TreeContainer.prototype.eraseElementByIterator = function(e) { var r = e.o; if (r === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } var i = r.N === undefined; var t = e.iteratorType === 0; if (t) { if (i) e.next(); } else { if (!i || r.K === undefined) e.next(); } this.G(r); return e; }; TreeContainer.prototype.forEach = function(e) { var r, i; var t = 0; try { for (var n = __values(this), s = n.next(); !s.done; s = n.next()) { var f = s.value; e(f, t++, this); } } catch (e) { r = { error: e }; } finally { try { if (s && !s.done && (i = n.return)) i.call(n); } finally { if (r) throw r.error; } } }; TreeContainer.prototype.getElementByPos = function(e) { var r, i; if (e < 0 || e > this.M - 1) { throw new RangeError; } var t; var n = 0; try { for (var s = __values(this), f = s.next(); !f.done; f = s.next()) { var h = f.value; if (n === e) { t = h; break; } n += 1; } } catch (e) { r = { error: e }; } finally { try { if (f && !f.done && (i = s.return)) i.call(s); } finally { if (r) throw r.error; } } return t; }; TreeContainer.prototype.getHeight = function() { if (this.M === 0) return 0; var traversal = function(e) { if (!e) return 0; return Math.max(traversal(e.K), traversal(e.N)) + 1; }; return traversal(this.W); }; return TreeContainer; }(_ContainerBase__WEBPACK_IMPORTED_MODULE_1__["Container"]); /* harmony default export */ __webpack_exports__["default"] = (TreeContainer); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/TreeContainer/OrderedMap.js": /*!*****************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/TreeContainer/OrderedMap.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Base */ "./node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/index.js"); /* harmony import */ var _Base_TreeIterator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Base/TreeIterator */ "./node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/TreeIterator.js"); /* harmony import */ var _utils_throwError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/throwError */ "./node_modules/js-sdsl/dist/esm/utils/throwError.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(r, e) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, e) { r.__proto__ = e; } || function(r, e) { for (var t in e) if (Object.prototype.hasOwnProperty.call(e, t)) r[t] = e[t]; }; return extendStatics(r, e); }; return function(r, e) { if (typeof e !== "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); extendStatics(r, e); function __() { this.constructor = r; } r.prototype = e === null ? Object.create(e) : (__.prototype = e.prototype, new __); }; }(); var __generator = undefined && undefined.i || function(r, e) { var t = { label: 0, sent: function() { if (o[0] & 1) throw o[1]; return o[1]; }, trys: [], ops: [] }, n, i, o, a; return a = { next: verb(0), throw: verb(1), return: verb(2) }, typeof Symbol === "function" && (a[Symbol.iterator] = function() { return this; }), a; function verb(r) { return function(e) { return step([ r, e ]); }; } function step(a) { if (n) throw new TypeError("Generator is already executing."); while (t) try { if (n = 1, i && (o = a[0] & 2 ? i["return"] : a[0] ? i["throw"] || ((o = i["return"]) && o.call(i), 0) : i.next) && !(o = o.call(i, a[1])).done) return o; if (i = 0, o) a = [ a[0] & 2, o.value ]; switch (a[0]) { case 0: case 1: o = a; break; case 4: t.label++; return { value: a[1], done: false }; case 5: t.label++; i = a[1]; a = [ 0 ]; continue; case 7: a = t.ops.pop(); t.trys.pop(); continue; default: if (!(o = t.trys, o = o.length > 0 && o[o.length - 1]) && (a[0] === 6 || a[0] === 2)) { t = 0; continue; } if (a[0] === 3 && (!o || a[1] > o[0] && a[1] < o[3])) { t.label = a[1]; break; } if (a[0] === 6 && t.label < o[1]) { t.label = o[1]; o = a; break; } if (o && t.label < o[2]) { t.label = o[2]; t.ops.push(a); break; } if (o[2]) t.ops.pop(); t.trys.pop(); continue; } a = e.call(r, t); } catch (r) { a = [ 6, r ]; i = 0; } finally { n = o = 0; } if (a[0] & 5) throw a[1]; return { value: a[0] ? a[1] : void 0, done: true }; } }; var __values = undefined && undefined.V || function(r) { var e = typeof Symbol === "function" && Symbol.iterator, t = e && r[e], n = 0; if (t) return t.call(r); if (r && typeof r.length === "number") return { next: function() { if (r && n >= r.length) r = void 0; return { value: r && r[n++], done: !r }; } }; throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var OrderedMapIterator = function(r) { __extends(OrderedMapIterator, r); function OrderedMapIterator(e, t, n, i) { var o = r.call(this, e, t, i) || this; o.container = n; return o; } Object.defineProperty(OrderedMapIterator.prototype, "pointer", { get: function() { if (this.o === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } var r = this; return new Proxy([], { get: function(e, t) { if (t === "0") return r.o.u; else if (t === "1") return r.o.p; }, set: function(e, t, n) { if (t !== "1") { throw new TypeError("props must be 1"); } r.o.p = n; return true; } }); }, enumerable: false, configurable: true }); OrderedMapIterator.prototype.copy = function() { return new OrderedMapIterator(this.o, this.h, this.container, this.iteratorType); }; return OrderedMapIterator; }(_Base_TreeIterator__WEBPACK_IMPORTED_MODULE_1__["default"]); var OrderedMap = function(r) { __extends(OrderedMap, r); function OrderedMap(e, t, n) { if (e === void 0) { e = []; } var i = r.call(this, t, n) || this; var o = i; e.forEach((function(r) { o.setElement(r[0], r[1]); })); return i; } OrderedMap.prototype.P = function(r) { return __generator(this, (function(e) { switch (e.label) { case 0: if (r === undefined) return [ 2 ]; return [ 5, __values(this.P(r.K)) ]; case 1: e.sent(); return [ 4, [ r.u, r.p ] ]; case 2: e.sent(); return [ 5, __values(this.P(r.N)) ]; case 3: e.sent(); return [ 2 ]; } })); }; OrderedMap.prototype.begin = function() { return new OrderedMapIterator(this.h.K || this.h, this.h, this); }; OrderedMap.prototype.end = function() { return new OrderedMapIterator(this.h, this.h, this); }; OrderedMap.prototype.rBegin = function() { return new OrderedMapIterator(this.h.N || this.h, this.h, this, 1); }; OrderedMap.prototype.rEnd = function() { return new OrderedMapIterator(this.h, this.h, this, 1); }; OrderedMap.prototype.front = function() { if (this.M === 0) return; var r = this.h.K; return [ r.u, r.p ]; }; OrderedMap.prototype.back = function() { if (this.M === 0) return; var r = this.h.N; return [ r.u, r.p ]; }; OrderedMap.prototype.lowerBound = function(r) { var e = this.U(this.W, r); return new OrderedMapIterator(e, this.h, this); }; OrderedMap.prototype.upperBound = function(r) { var e = this.X(this.W, r); return new OrderedMapIterator(e, this.h, this); }; OrderedMap.prototype.reverseLowerBound = function(r) { var e = this.Y(this.W, r); return new OrderedMapIterator(e, this.h, this); }; OrderedMap.prototype.reverseUpperBound = function(r) { var e = this.Z(this.W, r); return new OrderedMapIterator(e, this.h, this); }; OrderedMap.prototype.setElement = function(r, e, t) { return this.v(r, e, t); }; OrderedMap.prototype.find = function(r) { var e = this.g(this.W, r); return new OrderedMapIterator(e, this.h, this); }; OrderedMap.prototype.getElementByKey = function(r) { var e = this.g(this.W, r); return e.p; }; OrderedMap.prototype.union = function(r) { var e = this; r.forEach((function(r) { e.setElement(r[0], r[1]); })); return this.M; }; OrderedMap.prototype[Symbol.iterator] = function() { return this.P(this.W); }; return OrderedMap; }(_Base__WEBPACK_IMPORTED_MODULE_0__["default"]); /* harmony default export */ __webpack_exports__["default"] = (OrderedMap); //# sourceMappingURL=OrderedMap.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/container/TreeContainer/OrderedSet.js": /*!*****************************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/container/TreeContainer/OrderedSet.js ***! \*****************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Base */ "./node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/index.js"); /* harmony import */ var _Base_TreeIterator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Base/TreeIterator */ "./node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/TreeIterator.js"); /* harmony import */ var _utils_throwError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/throwError */ "./node_modules/js-sdsl/dist/esm/utils/throwError.js"); var __extends = undefined && undefined.t || function() { var extendStatics = function(e, t) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) { e.__proto__ = t; } || function(e, t) { for (var r in t) if (Object.prototype.hasOwnProperty.call(t, r)) e[r] = t[r]; }; return extendStatics(e, t); }; return function(e, t) { if (typeof t !== "function" && t !== null) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null"); extendStatics(e, t); function __() { this.constructor = e; } e.prototype = t === null ? Object.create(t) : (__.prototype = t.prototype, new __); }; }(); var __generator = undefined && undefined.i || function(e, t) { var r = { label: 0, sent: function() { if (o[0] & 1) throw o[1]; return o[1]; }, trys: [], ops: [] }, n, i, o, u; return u = { next: verb(0), throw: verb(1), return: verb(2) }, typeof Symbol === "function" && (u[Symbol.iterator] = function() { return this; }), u; function verb(e) { return function(t) { return step([ e, t ]); }; } function step(u) { if (n) throw new TypeError("Generator is already executing."); while (r) try { if (n = 1, i && (o = u[0] & 2 ? i["return"] : u[0] ? i["throw"] || ((o = i["return"]) && o.call(i), 0) : i.next) && !(o = o.call(i, u[1])).done) return o; if (i = 0, o) u = [ u[0] & 2, o.value ]; switch (u[0]) { case 0: case 1: o = u; break; case 4: r.label++; return { value: u[1], done: false }; case 5: r.label++; i = u[1]; u = [ 0 ]; continue; case 7: u = r.ops.pop(); r.trys.pop(); continue; default: if (!(o = r.trys, o = o.length > 0 && o[o.length - 1]) && (u[0] === 6 || u[0] === 2)) { r = 0; continue; } if (u[0] === 3 && (!o || u[1] > o[0] && u[1] < o[3])) { r.label = u[1]; break; } if (u[0] === 6 && r.label < o[1]) { r.label = o[1]; o = u; break; } if (o && r.label < o[2]) { r.label = o[2]; r.ops.push(u); break; } if (o[2]) r.ops.pop(); r.trys.pop(); continue; } u = t.call(e, r); } catch (e) { u = [ 6, e ]; i = 0; } finally { n = o = 0; } if (u[0] & 5) throw u[1]; return { value: u[0] ? u[1] : void 0, done: true }; } }; var __values = undefined && undefined.V || function(e) { var t = typeof Symbol === "function" && Symbol.iterator, r = t && e[t], n = 0; if (r) return r.call(e); if (e && typeof e.length === "number") return { next: function() { if (e && n >= e.length) e = void 0; return { value: e && e[n++], done: !e }; } }; throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var OrderedSetIterator = function(e) { __extends(OrderedSetIterator, e); function OrderedSetIterator(t, r, n, i) { var o = e.call(this, t, r, i) || this; o.container = n; return o; } Object.defineProperty(OrderedSetIterator.prototype, "pointer", { get: function() { if (this.o === this.h) { Object(_utils_throwError__WEBPACK_IMPORTED_MODULE_2__["throwIteratorAccessError"])(); } return this.o.u; }, enumerable: false, configurable: true }); OrderedSetIterator.prototype.copy = function() { return new OrderedSetIterator(this.o, this.h, this.container, this.iteratorType); }; return OrderedSetIterator; }(_Base_TreeIterator__WEBPACK_IMPORTED_MODULE_1__["default"]); var OrderedSet = function(e) { __extends(OrderedSet, e); function OrderedSet(t, r, n) { if (t === void 0) { t = []; } var i = e.call(this, r, n) || this; var o = i; t.forEach((function(e) { o.insert(e); })); return i; } OrderedSet.prototype.P = function(e) { return __generator(this, (function(t) { switch (t.label) { case 0: if (e === undefined) return [ 2 ]; return [ 5, __values(this.P(e.K)) ]; case 1: t.sent(); return [ 4, e.u ]; case 2: t.sent(); return [ 5, __values(this.P(e.N)) ]; case 3: t.sent(); return [ 2 ]; } })); }; OrderedSet.prototype.begin = function() { return new OrderedSetIterator(this.h.K || this.h, this.h, this); }; OrderedSet.prototype.end = function() { return new OrderedSetIterator(this.h, this.h, this); }; OrderedSet.prototype.rBegin = function() { return new OrderedSetIterator(this.h.N || this.h, this.h, this, 1); }; OrderedSet.prototype.rEnd = function() { return new OrderedSetIterator(this.h, this.h, this, 1); }; OrderedSet.prototype.front = function() { return this.h.K ? this.h.K.u : undefined; }; OrderedSet.prototype.back = function() { return this.h.N ? this.h.N.u : undefined; }; OrderedSet.prototype.insert = function(e, t) { return this.v(e, undefined, t); }; OrderedSet.prototype.find = function(e) { var t = this.g(this.W, e); return new OrderedSetIterator(t, this.h, this); }; OrderedSet.prototype.lowerBound = function(e) { var t = this.U(this.W, e); return new OrderedSetIterator(t, this.h, this); }; OrderedSet.prototype.upperBound = function(e) { var t = this.X(this.W, e); return new OrderedSetIterator(t, this.h, this); }; OrderedSet.prototype.reverseLowerBound = function(e) { var t = this.Y(this.W, e); return new OrderedSetIterator(t, this.h, this); }; OrderedSet.prototype.reverseUpperBound = function(e) { var t = this.Z(this.W, e); return new OrderedSetIterator(t, this.h, this); }; OrderedSet.prototype.union = function(e) { var t = this; e.forEach((function(e) { t.insert(e); })); return this.M; }; OrderedSet.prototype[Symbol.iterator] = function() { return this.P(this.W); }; return OrderedSet; }(_Base__WEBPACK_IMPORTED_MODULE_0__["default"]); /* harmony default export */ __webpack_exports__["default"] = (OrderedSet); //# sourceMappingURL=OrderedSet.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/index.js": /*!************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/index.js ***! \************************************************/ /*! exports provided: Stack, Queue, PriorityQueue, Vector, LinkList, Deque, OrderedSet, OrderedMap, HashSet, HashMap */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _container_OtherContainer_Stack__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./container/OtherContainer/Stack */ "./node_modules/js-sdsl/dist/esm/container/OtherContainer/Stack.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Stack", function() { return _container_OtherContainer_Stack__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _container_OtherContainer_Queue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./container/OtherContainer/Queue */ "./node_modules/js-sdsl/dist/esm/container/OtherContainer/Queue.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Queue", function() { return _container_OtherContainer_Queue__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _container_OtherContainer_PriorityQueue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./container/OtherContainer/PriorityQueue */ "./node_modules/js-sdsl/dist/esm/container/OtherContainer/PriorityQueue.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PriorityQueue", function() { return _container_OtherContainer_PriorityQueue__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _container_SequentialContainer_Vector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./container/SequentialContainer/Vector */ "./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Vector.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Vector", function() { return _container_SequentialContainer_Vector__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _container_SequentialContainer_LinkList__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./container/SequentialContainer/LinkList */ "./node_modules/js-sdsl/dist/esm/container/SequentialContainer/LinkList.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LinkList", function() { return _container_SequentialContainer_LinkList__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _container_SequentialContainer_Deque__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./container/SequentialContainer/Deque */ "./node_modules/js-sdsl/dist/esm/container/SequentialContainer/Deque.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Deque", function() { return _container_SequentialContainer_Deque__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var _container_TreeContainer_OrderedSet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./container/TreeContainer/OrderedSet */ "./node_modules/js-sdsl/dist/esm/container/TreeContainer/OrderedSet.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrderedSet", function() { return _container_TreeContainer_OrderedSet__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _container_TreeContainer_OrderedMap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./container/TreeContainer/OrderedMap */ "./node_modules/js-sdsl/dist/esm/container/TreeContainer/OrderedMap.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrderedMap", function() { return _container_TreeContainer_OrderedMap__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony import */ var _container_HashContainer_HashSet__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./container/HashContainer/HashSet */ "./node_modules/js-sdsl/dist/esm/container/HashContainer/HashSet.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HashSet", function() { return _container_HashContainer_HashSet__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony import */ var _container_HashContainer_HashMap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./container/HashContainer/HashMap */ "./node_modules/js-sdsl/dist/esm/container/HashContainer/HashMap.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HashMap", function() { return _container_HashContainer_HashMap__WEBPACK_IMPORTED_MODULE_9__["default"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/utils/checkObject.js": /*!************************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/utils/checkObject.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return checkObject; }); function checkObject(t) { var e = typeof t; return e === "object" && t !== null || e === "function"; } //# sourceMappingURL=checkObject.js.map /***/ }), /***/ "./node_modules/js-sdsl/dist/esm/utils/throwError.js": /*!***********************************************************!*\ !*** ./node_modules/js-sdsl/dist/esm/utils/throwError.js ***! \***********************************************************/ /*! exports provided: throwIteratorAccessError */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throwIteratorAccessError", function() { return throwIteratorAccessError; }); function throwIteratorAccessError() { throw new RangeError("Iterator access denied!"); } //# sourceMappingURL=throwError.js.map /***/ }), /***/ "./node_modules/math-intrinsics/abs.js": /*!*********************************************!*\ !*** ./node_modules/math-intrinsics/abs.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./abs')} */ module.exports = Math.abs; /***/ }), /***/ "./node_modules/math-intrinsics/floor.js": /*!***********************************************!*\ !*** ./node_modules/math-intrinsics/floor.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./floor')} */ module.exports = Math.floor; /***/ }), /***/ "./node_modules/math-intrinsics/isNaN.js": /*!***********************************************!*\ !*** ./node_modules/math-intrinsics/isNaN.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./isNaN')} */ module.exports = Number.isNaN || function isNaN(a) { return a !== a; }; /***/ }), /***/ "./node_modules/math-intrinsics/max.js": /*!*********************************************!*\ !*** ./node_modules/math-intrinsics/max.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./max')} */ module.exports = Math.max; /***/ }), /***/ "./node_modules/math-intrinsics/min.js": /*!*********************************************!*\ !*** ./node_modules/math-intrinsics/min.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./min')} */ module.exports = Math.min; /***/ }), /***/ "./node_modules/math-intrinsics/pow.js": /*!*********************************************!*\ !*** ./node_modules/math-intrinsics/pow.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./pow')} */ module.exports = Math.pow; /***/ }), /***/ "./node_modules/math-intrinsics/round.js": /*!***********************************************!*\ !*** ./node_modules/math-intrinsics/round.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./round')} */ module.exports = Math.round; /***/ }), /***/ "./node_modules/math-intrinsics/sign.js": /*!**********************************************!*\ !*** ./node_modules/math-intrinsics/sign.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $isNaN = __webpack_require__(/*! ./isNaN */ "./node_modules/math-intrinsics/isNaN.js"); /** @type {import('./sign')} */ module.exports = function sign(number) { if ($isNaN(number) || number === 0) { return number; } return number < 0 ? -1 : +1; }; /***/ }), /***/ "./node_modules/mqtt-packet/constants.js": /*!***********************************************!*\ !*** ./node_modules/mqtt-packet/constants.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(Buffer) {/* Protocol - protocol constants */ const protocol = module.exports /* Command code => mnemonic */ protocol.types = { 0: 'reserved', 1: 'connect', 2: 'connack', 3: 'publish', 4: 'puback', 5: 'pubrec', 6: 'pubrel', 7: 'pubcomp', 8: 'subscribe', 9: 'suback', 10: 'unsubscribe', 11: 'unsuback', 12: 'pingreq', 13: 'pingresp', 14: 'disconnect', 15: 'auth' } /* Mnemonic => Command code */ protocol.codes = {} for (const k in protocol.types) { const v = protocol.types[k] protocol.codes[v] = k } /* Header */ protocol.CMD_SHIFT = 4 protocol.CMD_MASK = 0xF0 protocol.DUP_MASK = 0x08 protocol.QOS_MASK = 0x03 protocol.QOS_SHIFT = 1 protocol.RETAIN_MASK = 0x01 /* Length */ protocol.VARBYTEINT_MASK = 0x7F protocol.VARBYTEINT_FIN_MASK = 0x80 protocol.VARBYTEINT_MAX = 268435455 /* Connack */ protocol.SESSIONPRESENT_MASK = 0x01 protocol.SESSIONPRESENT_HEADER = Buffer.from([protocol.SESSIONPRESENT_MASK]) protocol.CONNACK_HEADER = Buffer.from([protocol.codes.connack << protocol.CMD_SHIFT]) /* Connect */ protocol.USERNAME_MASK = 0x80 protocol.PASSWORD_MASK = 0x40 protocol.WILL_RETAIN_MASK = 0x20 protocol.WILL_QOS_MASK = 0x18 protocol.WILL_QOS_SHIFT = 3 protocol.WILL_FLAG_MASK = 0x04 protocol.CLEAN_SESSION_MASK = 0x02 protocol.CONNECT_HEADER = Buffer.from([protocol.codes.connect << protocol.CMD_SHIFT]) /* Properties */ protocol.properties = { sessionExpiryInterval: 17, willDelayInterval: 24, receiveMaximum: 33, maximumPacketSize: 39, topicAliasMaximum: 34, requestResponseInformation: 25, requestProblemInformation: 23, userProperties: 38, authenticationMethod: 21, authenticationData: 22, payloadFormatIndicator: 1, messageExpiryInterval: 2, contentType: 3, responseTopic: 8, correlationData: 9, maximumQoS: 36, retainAvailable: 37, assignedClientIdentifier: 18, reasonString: 31, wildcardSubscriptionAvailable: 40, subscriptionIdentifiersAvailable: 41, sharedSubscriptionAvailable: 42, serverKeepAlive: 19, responseInformation: 26, serverReference: 28, topicAlias: 35, subscriptionIdentifier: 11 } protocol.propertiesCodes = {} for (const prop in protocol.properties) { const id = protocol.properties[prop] protocol.propertiesCodes[id] = prop } protocol.propertiesTypes = { sessionExpiryInterval: 'int32', willDelayInterval: 'int32', receiveMaximum: 'int16', maximumPacketSize: 'int32', topicAliasMaximum: 'int16', requestResponseInformation: 'byte', requestProblemInformation: 'byte', userProperties: 'pair', authenticationMethod: 'string', authenticationData: 'binary', payloadFormatIndicator: 'byte', messageExpiryInterval: 'int32', contentType: 'string', responseTopic: 'string', correlationData: 'binary', maximumQoS: 'int8', retainAvailable: 'byte', assignedClientIdentifier: 'string', reasonString: 'string', wildcardSubscriptionAvailable: 'byte', subscriptionIdentifiersAvailable: 'byte', sharedSubscriptionAvailable: 'byte', serverKeepAlive: 'int16', responseInformation: 'string', serverReference: 'string', topicAlias: 'int16', subscriptionIdentifier: 'var' } function genHeader (type) { return [0, 1, 2].map(qos => { return [0, 1].map(dup => { return [0, 1].map(retain => { const buf = Buffer.alloc(1) buf.writeUInt8( protocol.codes[type] << protocol.CMD_SHIFT | (dup ? protocol.DUP_MASK : 0) | qos << protocol.QOS_SHIFT | retain, 0, true) return buf }) }) }) } /* Publish */ protocol.PUBLISH_HEADER = genHeader('publish') /* Subscribe */ protocol.SUBSCRIBE_HEADER = genHeader('subscribe') protocol.SUBSCRIBE_OPTIONS_QOS_MASK = 0x03 protocol.SUBSCRIBE_OPTIONS_NL_MASK = 0x01 protocol.SUBSCRIBE_OPTIONS_NL_SHIFT = 2 protocol.SUBSCRIBE_OPTIONS_RAP_MASK = 0x01 protocol.SUBSCRIBE_OPTIONS_RAP_SHIFT = 3 protocol.SUBSCRIBE_OPTIONS_RH_MASK = 0x03 protocol.SUBSCRIBE_OPTIONS_RH_SHIFT = 4 protocol.SUBSCRIBE_OPTIONS_RH = [0x00, 0x10, 0x20] protocol.SUBSCRIBE_OPTIONS_NL = 0x04 protocol.SUBSCRIBE_OPTIONS_RAP = 0x08 protocol.SUBSCRIBE_OPTIONS_QOS = [0x00, 0x01, 0x02] /* Unsubscribe */ protocol.UNSUBSCRIBE_HEADER = genHeader('unsubscribe') /* Confirmations */ protocol.ACKS = { unsuback: genHeader('unsuback'), puback: genHeader('puback'), pubcomp: genHeader('pubcomp'), pubrel: genHeader('pubrel'), pubrec: genHeader('pubrec') } protocol.SUBACK_HEADER = Buffer.from([protocol.codes.suback << protocol.CMD_SHIFT]) /* Protocol versions */ protocol.VERSION3 = Buffer.from([3]) protocol.VERSION4 = Buffer.from([4]) protocol.VERSION5 = Buffer.from([5]) protocol.VERSION131 = Buffer.from([131]) protocol.VERSION132 = Buffer.from([132]) /* QoS */ protocol.QOS = [0, 1, 2].map(qos => { return Buffer.from([qos]) }) /* Empty packets */ protocol.EMPTY = { pingreq: Buffer.from([protocol.codes.pingreq << 4, 0]), pingresp: Buffer.from([protocol.codes.pingresp << 4, 0]), disconnect: Buffer.from([protocol.codes.disconnect << 4, 0]) } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../buffer/index.js */ "./node_modules/buffer/index.js").Buffer)) /***/ }), /***/ "./node_modules/mqtt-packet/generate.js": /*!**********************************************!*\ !*** ./node_modules/mqtt-packet/generate.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(Buffer) {const writeToStream = __webpack_require__(/*! ./writeToStream */ "./node_modules/mqtt-packet/writeToStream.js") const EventEmitter = __webpack_require__(/*! events */ "./node_modules/events/events.js") function generate (packet, opts) { const stream = new Accumulator() writeToStream(packet, stream, opts) return stream.concat() } class Accumulator extends EventEmitter { constructor () { super() this._array = new Array(20) this._i = 0 } write (chunk) { this._array[this._i++] = chunk return true } concat () { let length = 0 const lengths = new Array(this._array.length) const list = this._array let pos = 0 let i for (i = 0; i < list.length && list[i] !== undefined; i++) { if (typeof list[i] !== 'string') lengths[i] = list[i].length else lengths[i] = Buffer.byteLength(list[i]) length += lengths[i] } const result = Buffer.allocUnsafe(length) for (i = 0; i < list.length && list[i] !== undefined; i++) { if (typeof list[i] !== 'string') { list[i].copy(result, pos) pos += lengths[i] } else { result.write(list[i], pos) pos += lengths[i] } } return result } } module.exports = generate /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../buffer/index.js */ "./node_modules/buffer/index.js").Buffer)) /***/ }), /***/ "./node_modules/mqtt-packet/mqtt.js": /*!******************************************!*\ !*** ./node_modules/mqtt-packet/mqtt.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { exports.parser = __webpack_require__(/*! ./parser */ "./node_modules/mqtt-packet/parser.js").parser exports.generate = __webpack_require__(/*! ./generate */ "./node_modules/mqtt-packet/generate.js") exports.writeToStream = __webpack_require__(/*! ./writeToStream */ "./node_modules/mqtt-packet/writeToStream.js") /***/ }), /***/ "./node_modules/mqtt-packet/numbers.js": /*!*********************************************!*\ !*** ./node_modules/mqtt-packet/numbers.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(Buffer) {const max = 65536 const cache = {} // in node 6 Buffer.subarray returns a Uint8Array instead of a Buffer // later versions return a Buffer // alternative is Buffer.slice but that creates a new buffer // creating new buffers takes time // SubOk is only false on node < 8 const SubOk = Buffer.isBuffer(Buffer.from([1, 2]).subarray(0, 1)) function generateBuffer (i) { const buffer = Buffer.allocUnsafe(2) buffer.writeUInt8(i >> 8, 0) buffer.writeUInt8(i & 0x00FF, 0 + 1) return buffer } function generateCache () { for (let i = 0; i < max; i++) { cache[i] = generateBuffer(i) } } function genBufVariableByteInt (num) { const maxLength = 4 // max 4 bytes let digit = 0 let pos = 0 const buffer = Buffer.allocUnsafe(maxLength) do { digit = num % 128 | 0 num = num / 128 | 0 if (num > 0) digit = digit | 0x80 buffer.writeUInt8(digit, pos++) } while (num > 0 && pos < maxLength) if (num > 0) { pos = 0 } return SubOk ? buffer.subarray(0, pos) : buffer.slice(0, pos) } function generate4ByteBuffer (num) { const buffer = Buffer.allocUnsafe(4) buffer.writeUInt32BE(num, 0) return buffer } module.exports = { cache, generateCache, generateNumber: generateBuffer, genBufVariableByteInt, generate4ByteBuffer } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../buffer/index.js */ "./node_modules/buffer/index.js").Buffer)) /***/ }), /***/ "./node_modules/mqtt-packet/packet.js": /*!********************************************!*\ !*** ./node_modules/mqtt-packet/packet.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports) { class Packet { constructor () { this.cmd = null this.retain = false this.qos = 0 this.dup = false this.length = -1 this.topic = null this.payload = null } } module.exports = Packet /***/ }), /***/ "./node_modules/mqtt-packet/parser.js": /*!********************************************!*\ !*** ./node_modules/mqtt-packet/parser.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { const bl = __webpack_require__(/*! bl */ "./node_modules/bl/bl.js") const EventEmitter = __webpack_require__(/*! events */ "./node_modules/events/events.js") const Packet = __webpack_require__(/*! ./packet */ "./node_modules/mqtt-packet/packet.js") const constants = __webpack_require__(/*! ./constants */ "./node_modules/mqtt-packet/constants.js") const debug = __webpack_require__(/*! debug */ "./node_modules/debug/src/browser.js")('mqtt-packet:parser') class Parser extends EventEmitter { constructor () { super() this.parser = this.constructor.parser } static parser (opt) { if (!(this instanceof Parser)) return (new Parser()).parser(opt) this.settings = opt || {} this._states = [ '_parseHeader', '_parseLength', '_parsePayload', '_newPacket' ] this._resetState() return this } _resetState () { debug('_resetState: resetting packet, error, _list, and _stateCounter') this.packet = new Packet() this.error = null this._list = bl() this._stateCounter = 0 } parse (buf) { if (this.error) this._resetState() this._list.append(buf) debug('parse: current state: %s', this._states[this._stateCounter]) while ((this.packet.length !== -1 || this._list.length > 0) && this[this._states[this._stateCounter]]() && !this.error) { this._stateCounter++ debug('parse: state complete. _stateCounter is now: %d', this._stateCounter) debug('parse: packet.length: %d, buffer list length: %d', this.packet.length, this._list.length) if (this._stateCounter >= this._states.length) this._stateCounter = 0 } debug('parse: exited while loop. packet: %d, buffer list length: %d', this.packet.length, this._list.length) return this._list.length } _parseHeader () { // There is at least one byte in the buffer const zero = this._list.readUInt8(0) this.packet.cmd = constants.types[zero >> constants.CMD_SHIFT] this.packet.retain = (zero & constants.RETAIN_MASK) !== 0 this.packet.qos = (zero >> constants.QOS_SHIFT) & constants.QOS_MASK this.packet.dup = (zero & constants.DUP_MASK) !== 0 debug('_parseHeader: packet: %o', this.packet) this._list.consume(1) return true } _parseLength () { // There is at least one byte in the list const result = this._parseVarByteNum(true) if (result) { this.packet.length = result.value this._list.consume(result.bytes) } debug('_parseLength %d', result.value) return !!result } _parsePayload () { debug('_parsePayload: payload %O', this._list) let result = false // Do we have a payload? Do we have enough data to complete the payload? // PINGs have no payload if (this.packet.length === 0 || this._list.length >= this.packet.length) { this._pos = 0 switch (this.packet.cmd) { case 'connect': this._parseConnect() break case 'connack': this._parseConnack() break case 'publish': this._parsePublish() break case 'puback': case 'pubrec': case 'pubrel': case 'pubcomp': this._parseConfirmation() break case 'subscribe': this._parseSubscribe() break case 'suback': this._parseSuback() break case 'unsubscribe': this._parseUnsubscribe() break case 'unsuback': this._parseUnsuback() break case 'pingreq': case 'pingresp': // These are empty, nothing to do break case 'disconnect': this._parseDisconnect() break case 'auth': this._parseAuth() break default: this._emitError(new Error('Not supported')) } result = true } debug('_parsePayload complete result: %s', result) return result } _parseConnect () { debug('_parseConnect') let topic // Will topic let payload // Will payload let password // Password let username // Username const flags = {} const packet = this.packet // Parse protocolId const protocolId = this._parseString() if (protocolId === null) return this._emitError(new Error('Cannot parse protocolId')) if (protocolId !== 'MQTT' && protocolId !== 'MQIsdp') { return this._emitError(new Error('Invalid protocolId')) } packet.protocolId = protocolId // Parse constants version number if (this._pos >= this._list.length) return this._emitError(new Error('Packet too short')) packet.protocolVersion = this._list.readUInt8(this._pos) if (packet.protocolVersion >= 128) { packet.bridgeMode = true packet.protocolVersion = packet.protocolVersion - 128 } if (packet.protocolVersion !== 3 && packet.protocolVersion !== 4 && packet.protocolVersion !== 5) { return this._emitError(new Error('Invalid protocol version')) } this._pos++ if (this._pos >= this._list.length) { return this._emitError(new Error('Packet too short')) } // Parse connect flags flags.username = (this._list.readUInt8(this._pos) & constants.USERNAME_MASK) flags.password = (this._list.readUInt8(this._pos) & constants.PASSWORD_MASK) flags.will = (this._list.readUInt8(this._pos) & constants.WILL_FLAG_MASK) if (flags.will) { packet.will = {} packet.will.retain = (this._list.readUInt8(this._pos) & constants.WILL_RETAIN_MASK) !== 0 packet.will.qos = (this._list.readUInt8(this._pos) & constants.WILL_QOS_MASK) >> constants.WILL_QOS_SHIFT } packet.clean = (this._list.readUInt8(this._pos) & constants.CLEAN_SESSION_MASK) !== 0 this._pos++ // Parse keepalive packet.keepalive = this._parseNum() if (packet.keepalive === -1) return this._emitError(new Error('Packet too short')) // parse properties if (packet.protocolVersion === 5) { const properties = this._parseProperties() if (Object.getOwnPropertyNames(properties).length) { packet.properties = properties } } // Parse clientId const clientId = this._parseString() if (clientId === null) return this._emitError(new Error('Packet too short')) packet.clientId = clientId debug('_parseConnect: packet.clientId: %s', packet.clientId) if (flags.will) { if (packet.protocolVersion === 5) { const willProperties = this._parseProperties() if (Object.getOwnPropertyNames(willProperties).length) { packet.will.properties = willProperties } } // Parse will topic topic = this._parseString() if (topic === null) return this._emitError(new Error('Cannot parse will topic')) packet.will.topic = topic debug('_parseConnect: packet.will.topic: %s', packet.will.topic) // Parse will payload payload = this._parseBuffer() if (payload === null) return this._emitError(new Error('Cannot parse will payload')) packet.will.payload = payload debug('_parseConnect: packet.will.paylaod: %s', packet.will.payload) } // Parse username if (flags.username) { username = this._parseString() if (username === null) return this._emitError(new Error('Cannot parse username')) packet.username = username debug('_parseConnect: packet.username: %s', packet.username) } // Parse password if (flags.password) { password = this._parseBuffer() if (password === null) return this._emitError(new Error('Cannot parse password')) packet.password = password } // need for right parse auth packet and self set up this.settings = packet debug('_parseConnect: complete') return packet } _parseConnack () { debug('_parseConnack') const packet = this.packet if (this._list.length < 1) return null packet.sessionPresent = !!(this._list.readUInt8(this._pos++) & constants.SESSIONPRESENT_MASK) if (this.settings.protocolVersion === 5) { if (this._list.length >= 2) { packet.reasonCode = this._list.readUInt8(this._pos++) } else { packet.reasonCode = 0 } } else { if (this._list.length < 2) return null packet.returnCode = this._list.readUInt8(this._pos++) } if (packet.returnCode === -1 || packet.reasonCode === -1) return this._emitError(new Error('Cannot parse return code')) // mqtt 5 properties if (this.settings.protocolVersion === 5) { const properties = this._parseProperties() if (Object.getOwnPropertyNames(properties).length) { packet.properties = properties } } debug('_parseConnack: complete') } _parsePublish () { debug('_parsePublish') const packet = this.packet packet.topic = this._parseString() if (packet.topic === null) return this._emitError(new Error('Cannot parse topic')) // Parse messageId if (packet.qos > 0) if (!this._parseMessageId()) { return } // Properties mqtt 5 if (this.settings.protocolVersion === 5) { const properties = this._parseProperties() if (Object.getOwnPropertyNames(properties).length) { packet.properties = properties } } packet.payload = this._list.slice(this._pos, packet.length) debug('_parsePublish: payload from buffer list: %o', packet.payload) } _parseSubscribe () { debug('_parseSubscribe') const packet = this.packet let topic let options let qos let rh let rap let nl let subscription if (packet.qos !== 1) { return this._emitError(new Error('Wrong subscribe header')) } packet.subscriptions = [] if (!this._parseMessageId()) { return } // Properties mqtt 5 if (this.settings.protocolVersion === 5) { const properties = this._parseProperties() if (Object.getOwnPropertyNames(properties).length) { packet.properties = properties } } while (this._pos < packet.length) { // Parse topic topic = this._parseString() if (topic === null) return this._emitError(new Error('Cannot parse topic')) if (this._pos >= packet.length) return this._emitError(new Error('Malformed Subscribe Payload')) options = this._parseByte() qos = options & constants.SUBSCRIBE_OPTIONS_QOS_MASK nl = ((options >> constants.SUBSCRIBE_OPTIONS_NL_SHIFT) & constants.SUBSCRIBE_OPTIONS_NL_MASK) !== 0 rap = ((options >> constants.SUBSCRIBE_OPTIONS_RAP_SHIFT) & constants.SUBSCRIBE_OPTIONS_RAP_MASK) !== 0 rh = (options >> constants.SUBSCRIBE_OPTIONS_RH_SHIFT) & constants.SUBSCRIBE_OPTIONS_RH_MASK subscription = { topic, qos } // mqtt 5 options if (this.settings.protocolVersion === 5) { subscription.nl = nl subscription.rap = rap subscription.rh = rh } else if (this.settings.bridgeMode) { subscription.rh = 0 subscription.rap = true subscription.nl = true } // Push pair to subscriptions debug('_parseSubscribe: push subscription `%s` to subscription', subscription) packet.subscriptions.push(subscription) } } _parseSuback () { debug('_parseSuback') const packet = this.packet this.packet.granted = [] if (!this._parseMessageId()) { return } // Properties mqtt 5 if (this.settings.protocolVersion === 5) { const properties = this._parseProperties() if (Object.getOwnPropertyNames(properties).length) { packet.properties = properties } } // Parse granted QoSes while (this._pos < this.packet.length) { this.packet.granted.push(this._list.readUInt8(this._pos++)) } } _parseUnsubscribe () { debug('_parseUnsubscribe') const packet = this.packet packet.unsubscriptions = [] // Parse messageId if (!this._parseMessageId()) { return } // Properties mqtt 5 if (this.settings.protocolVersion === 5) { const properties = this._parseProperties() if (Object.getOwnPropertyNames(properties).length) { packet.properties = properties } } while (this._pos < packet.length) { // Parse topic const topic = this._parseString() if (topic === null) return this._emitError(new Error('Cannot parse topic')) // Push topic to unsubscriptions debug('_parseUnsubscribe: push topic `%s` to unsubscriptions', topic) packet.unsubscriptions.push(topic) } } _parseUnsuback () { debug('_parseUnsuback') const packet = this.packet if (!this._parseMessageId()) return this._emitError(new Error('Cannot parse messageId')) // Properties mqtt 5 if (this.settings.protocolVersion === 5) { const properties = this._parseProperties() if (Object.getOwnPropertyNames(properties).length) { packet.properties = properties } // Parse granted QoSes packet.granted = [] while (this._pos < this.packet.length) { this.packet.granted.push(this._list.readUInt8(this._pos++)) } } } // parse packets like puback, pubrec, pubrel, pubcomp _parseConfirmation () { debug('_parseConfirmation: packet.cmd: `%s`', this.packet.cmd) const packet = this.packet this._parseMessageId() if (this.settings.protocolVersion === 5) { if (packet.length > 2) { // response code packet.reasonCode = this._parseByte() debug('_parseConfirmation: packet.reasonCode `%d`', packet.reasonCode) } else { packet.reasonCode = 0 } if (packet.length > 3) { // properies mqtt 5 const properties = this._parseProperties() if (Object.getOwnPropertyNames(properties).length) { packet.properties = properties } } } return true } // parse disconnect packet _parseDisconnect () { const packet = this.packet debug('_parseDisconnect') if (this.settings.protocolVersion === 5) { // response code if (this._list.length > 0) { packet.reasonCode = this._parseByte() } else { packet.reasonCode = 0 } // properies mqtt 5 const properties = this._parseProperties() if (Object.getOwnPropertyNames(properties).length) { packet.properties = properties } } debug('_parseDisconnect result: true') return true } // parse auth packet _parseAuth () { debug('_parseAuth') const packet = this.packet if (this.settings.protocolVersion !== 5) { return this._emitError(new Error('Not supported auth packet for this version MQTT')) } // response code packet.reasonCode = this._parseByte() // properies mqtt 5 const properties = this._parseProperties() if (Object.getOwnPropertyNames(properties).length) { packet.properties = properties } debug('_parseAuth: result: true') return true } _parseMessageId () { const packet = this.packet packet.messageId = this._parseNum() if (packet.messageId === null) { this._emitError(new Error('Cannot parse messageId')) return false } debug('_parseMessageId: packet.messageId %d', packet.messageId) return true } _parseString (maybeBuffer) { const length = this._parseNum() const end = length + this._pos if (length === -1 || end > this._list.length || end > this.packet.length) return null const result = this._list.toString('utf8', this._pos, end) this._pos += length debug('_parseString: result: %s', result) return result } _parseStringPair () { debug('_parseStringPair') return { name: this._parseString(), value: this._parseString() } } _parseBuffer () { const length = this._parseNum() const end = length + this._pos if (length === -1 || end > this._list.length || end > this.packet.length) return null const result = this._list.slice(this._pos, end) this._pos += length debug('_parseBuffer: result: %o', result) return result } _parseNum () { if (this._list.length - this._pos < 2) return -1 const result = this._list.readUInt16BE(this._pos) this._pos += 2 debug('_parseNum: result: %s', result) return result } _parse4ByteNum () { if (this._list.length - this._pos < 4) return -1 const result = this._list.readUInt32BE(this._pos) this._pos += 4 debug('_parse4ByteNum: result: %s', result) return result } _parseVarByteNum (fullInfoFlag) { debug('_parseVarByteNum') const maxBytes = 4 let bytes = 0 let mul = 1 let value = 0 let result = false let current const padding = this._pos ? this._pos : 0 while (bytes < maxBytes && (padding + bytes) < this._list.length) { current = this._list.readUInt8(padding + bytes++) value += mul * (current & constants.VARBYTEINT_MASK) mul *= 0x80 if ((current & constants.VARBYTEINT_FIN_MASK) === 0) { result = true break } if (this._list.length <= bytes) { break } } if (!result && bytes === maxBytes && this._list.length >= bytes) { this._emitError(new Error('Invalid variable byte integer')) } if (padding) { this._pos += bytes } result = result ? fullInfoFlag ? { bytes, value } : value : false debug('_parseVarByteNum: result: %o', result) return result } _parseByte () { let result if (this._pos < this._list.length) { result = this._list.readUInt8(this._pos) this._pos++ } debug('_parseByte: result: %o', result) return result } _parseByType (type) { debug('_parseByType: type: %s', type) switch (type) { case 'byte': { return this._parseByte() !== 0 } case 'int8': { return this._parseByte() } case 'int16': { return this._parseNum() } case 'int32': { return this._parse4ByteNum() } case 'var': { return this._parseVarByteNum() } case 'string': { return this._parseString() } case 'pair': { return this._parseStringPair() } case 'binary': { return this._parseBuffer() } } } _parseProperties () { debug('_parseProperties') const length = this._parseVarByteNum() const start = this._pos const end = start + length const result = {} while (this._pos < end) { const type = this._parseByte() if (!type) { this._emitError(new Error('Cannot parse property code type')) return false } const name = constants.propertiesCodes[type] if (!name) { this._emitError(new Error('Unknown property')) return false } // user properties process if (name === 'userProperties') { if (!result[name]) { result[name] = Object.create(null) } const currentUserProperty = this._parseByType(constants.propertiesTypes[name]) if (result[name][currentUserProperty.name]) { if (Array.isArray(result[name][currentUserProperty.name])) { result[name][currentUserProperty.name].push(currentUserProperty.value) } else { const currentValue = result[name][currentUserProperty.name] result[name][currentUserProperty.name] = [currentValue] result[name][currentUserProperty.name].push(currentUserProperty.value) } } else { result[name][currentUserProperty.name] = currentUserProperty.value } continue } if (result[name]) { if (Array.isArray(result[name])) { result[name].push(this._parseByType(constants.propertiesTypes[name])) } else { result[name] = [result[name]] result[name].push(this._parseByType(constants.propertiesTypes[name])) } } else { result[name] = this._parseByType(constants.propertiesTypes[name]) } } return result } _newPacket () { debug('_newPacket') if (this.packet) { this._list.consume(this.packet.length) debug('_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d', this.packet.cmd, this.packet.payload, this.packet.length) this.emit('packet', this.packet) } debug('_newPacket: new packet') this.packet = new Packet() this._pos = 0 return true } _emitError (err) { debug('_emitError') this.error = err this.emit('error', err) } } module.exports = Parser /***/ }), /***/ "./node_modules/mqtt-packet/writeToStream.js": /*!***************************************************!*\ !*** ./node_modules/mqtt-packet/writeToStream.js ***! \***************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(Buffer) {const protocol = __webpack_require__(/*! ./constants */ "./node_modules/mqtt-packet/constants.js") const empty = Buffer.allocUnsafe(0) const zeroBuf = Buffer.from([0]) const numbers = __webpack_require__(/*! ./numbers */ "./node_modules/mqtt-packet/numbers.js") const nextTick = __webpack_require__(/*! process-nextick-args */ "./node_modules/process-nextick-args/index.js").nextTick const debug = __webpack_require__(/*! debug */ "./node_modules/debug/src/browser.js")('mqtt-packet:writeToStream') const numCache = numbers.cache const generateNumber = numbers.generateNumber const generateCache = numbers.generateCache const genBufVariableByteInt = numbers.genBufVariableByteInt const generate4ByteBuffer = numbers.generate4ByteBuffer let writeNumber = writeNumberCached let toGenerate = true function generate (packet, stream, opts) { debug('generate called') if (stream.cork) { stream.cork() nextTick(uncork, stream) } if (toGenerate) { toGenerate = false generateCache() } debug('generate: packet.cmd: %s', packet.cmd) switch (packet.cmd) { case 'connect': return connect(packet, stream, opts) case 'connack': return connack(packet, stream, opts) case 'publish': return publish(packet, stream, opts) case 'puback': case 'pubrec': case 'pubrel': case 'pubcomp': return confirmation(packet, stream, opts) case 'subscribe': return subscribe(packet, stream, opts) case 'suback': return suback(packet, stream, opts) case 'unsubscribe': return unsubscribe(packet, stream, opts) case 'unsuback': return unsuback(packet, stream, opts) case 'pingreq': case 'pingresp': return emptyPacket(packet, stream, opts) case 'disconnect': return disconnect(packet, stream, opts) case 'auth': return auth(packet, stream, opts) default: stream.emit('error', new Error('Unknown command')) return false } } /** * Controls numbers cache. * Set to "false" to allocate buffers on-the-flight instead of pre-generated cache */ Object.defineProperty(generate, 'cacheNumbers', { get () { return writeNumber === writeNumberCached }, set (value) { if (value) { if (!numCache || Object.keys(numCache).length === 0) toGenerate = true writeNumber = writeNumberCached } else { toGenerate = false writeNumber = writeNumberGenerated } } }) function uncork (stream) { stream.uncork() } function connect (packet, stream, opts) { const settings = packet || {} const protocolId = settings.protocolId || 'MQTT' let protocolVersion = settings.protocolVersion || 4 const will = settings.will let clean = settings.clean const keepalive = settings.keepalive || 0 const clientId = settings.clientId || '' const username = settings.username const password = settings.password /* mqtt5 new oprions */ const properties = settings.properties if (clean === undefined) clean = true let length = 0 // Must be a string and non-falsy if (!protocolId || (typeof protocolId !== 'string' && !Buffer.isBuffer(protocolId))) { stream.emit('error', new Error('Invalid protocolId')) return false } else length += protocolId.length + 2 // Must be 3 or 4 or 5 if (protocolVersion !== 3 && protocolVersion !== 4 && protocolVersion !== 5) { stream.emit('error', new Error('Invalid protocol version')) return false } else length += 1 // ClientId might be omitted in 3.1.1 and 5, but only if cleanSession is set to 1 if ((typeof clientId === 'string' || Buffer.isBuffer(clientId)) && (clientId || protocolVersion >= 4) && (clientId || clean)) { length += Buffer.byteLength(clientId) + 2 } else { if (protocolVersion < 4) { stream.emit('error', new Error('clientId must be supplied before 3.1.1')) return false } if ((clean * 1) === 0) { stream.emit('error', new Error('clientId must be given if cleanSession set to 0')) return false } } // Must be a two byte number if (typeof keepalive !== 'number' || keepalive < 0 || keepalive > 65535 || keepalive % 1 !== 0) { stream.emit('error', new Error('Invalid keepalive')) return false } else length += 2 // Connect flags length += 1 // Properties if (protocolVersion === 5) { var propertiesData = getProperties(stream, properties) if (!propertiesData) { return false } length += propertiesData.length } // If will exists... if (will) { // It must be an object if (typeof will !== 'object') { stream.emit('error', new Error('Invalid will')) return false } // It must have topic typeof string if (!will.topic || typeof will.topic !== 'string') { stream.emit('error', new Error('Invalid will topic')) return false } else { length += Buffer.byteLength(will.topic) + 2 } // Payload length += 2 // payload length if (will.payload) { if (will.payload.length >= 0) { if (typeof will.payload === 'string') { length += Buffer.byteLength(will.payload) } else { length += will.payload.length } } else { stream.emit('error', new Error('Invalid will payload')) return false } } // will properties var willProperties = {} if (protocolVersion === 5) { willProperties = getProperties(stream, will.properties) if (!willProperties) { return false } length += willProperties.length } } // Username let providedUsername = false if (username != null) { if (isStringOrBuffer(username)) { providedUsername = true length += Buffer.byteLength(username) + 2 } else { stream.emit('error', new Error('Invalid username')) return false } } // Password if (password != null) { if (!providedUsername) { stream.emit('error', new Error('Username is required to use password')) return false } if (isStringOrBuffer(password)) { length += byteLength(password) + 2 } else { stream.emit('error', new Error('Invalid password')) return false } } // Generate header stream.write(protocol.CONNECT_HEADER) // Generate length writeVarByteInt(stream, length) // Generate protocol ID writeStringOrBuffer(stream, protocolId) if (settings.bridgeMode) { protocolVersion += 128 } stream.write( protocolVersion === 131 ? protocol.VERSION131 : protocolVersion === 132 ? protocol.VERSION132 : protocolVersion === 4 ? protocol.VERSION4 : protocolVersion === 5 ? protocol.VERSION5 : protocol.VERSION3 ) // Connect flags let flags = 0 flags |= (username != null) ? protocol.USERNAME_MASK : 0 flags |= (password != null) ? protocol.PASSWORD_MASK : 0 flags |= (will && will.retain) ? protocol.WILL_RETAIN_MASK : 0 flags |= (will && will.qos) ? will.qos << protocol.WILL_QOS_SHIFT : 0 flags |= will ? protocol.WILL_FLAG_MASK : 0 flags |= clean ? protocol.CLEAN_SESSION_MASK : 0 stream.write(Buffer.from([flags])) // Keepalive writeNumber(stream, keepalive) // Properties if (protocolVersion === 5) { propertiesData.write() } // Client ID writeStringOrBuffer(stream, clientId) // Will if (will) { if (protocolVersion === 5) { willProperties.write() } writeString(stream, will.topic) writeStringOrBuffer(stream, will.payload) } // Username and password if (username != null) { writeStringOrBuffer(stream, username) } if (password != null) { writeStringOrBuffer(stream, password) } // This is a small packet that happens only once on a stream // We assume the stream is always free to receive more data after this return true } function connack (packet, stream, opts) { const version = opts ? opts.protocolVersion : 4 const settings = packet || {} const rc = version === 5 ? settings.reasonCode : settings.returnCode const properties = settings.properties let length = 2 // length of rc and sessionHeader // Check return code if (typeof rc !== 'number') { stream.emit('error', new Error('Invalid return code')) return false } // mqtt5 properties let propertiesData = null if (version === 5) { propertiesData = getProperties(stream, properties) if (!propertiesData) { return false } length += propertiesData.length } stream.write(protocol.CONNACK_HEADER) // length writeVarByteInt(stream, length) stream.write(settings.sessionPresent ? protocol.SESSIONPRESENT_HEADER : zeroBuf) stream.write(Buffer.from([rc])) if (propertiesData != null) { propertiesData.write() } return true } function publish (packet, stream, opts) { debug('publish: packet: %o', packet) const version = opts ? opts.protocolVersion : 4 const settings = packet || {} const qos = settings.qos || 0 const retain = settings.retain ? protocol.RETAIN_MASK : 0 const topic = settings.topic const payload = settings.payload || empty const id = settings.messageId const properties = settings.properties let length = 0 // Topic must be a non-empty string or Buffer if (typeof topic === 'string') length += Buffer.byteLength(topic) + 2 else if (Buffer.isBuffer(topic)) length += topic.length + 2 else { stream.emit('error', new Error('Invalid topic')) return false } // Get the payload length if (!Buffer.isBuffer(payload)) length += Buffer.byteLength(payload) else length += payload.length // Message ID must a number if qos > 0 if (qos && typeof id !== 'number') { stream.emit('error', new Error('Invalid messageId')) return false } else if (qos) length += 2 // mqtt5 properties let propertiesData = null if (version === 5) { propertiesData = getProperties(stream, properties) if (!propertiesData) { return false } length += propertiesData.length } // Header stream.write(protocol.PUBLISH_HEADER[qos][settings.dup ? 1 : 0][retain ? 1 : 0]) // Remaining length writeVarByteInt(stream, length) // Topic writeNumber(stream, byteLength(topic)) stream.write(topic) // Message ID if (qos > 0) writeNumber(stream, id) // Properties if (propertiesData != null) { propertiesData.write() } // Payload debug('publish: payload: %o', payload) return stream.write(payload) } /* Puback, pubrec, pubrel and pubcomp */ function confirmation (packet, stream, opts) { const version = opts ? opts.protocolVersion : 4 const settings = packet || {} const type = settings.cmd || 'puback' const id = settings.messageId const dup = (settings.dup && type === 'pubrel') ? protocol.DUP_MASK : 0 let qos = 0 const reasonCode = settings.reasonCode const properties = settings.properties let length = version === 5 ? 3 : 2 if (type === 'pubrel') qos = 1 // Check message ID if (typeof id !== 'number') { stream.emit('error', new Error('Invalid messageId')) return false } // properies mqtt 5 let propertiesData = null if (version === 5) { // Confirm should not add empty property length with no properties (rfc 3.4.2.2.1) if (typeof properties === 'object') { propertiesData = getPropertiesByMaximumPacketSize(stream, properties, opts, length) if (!propertiesData) { return false } length += propertiesData.length } } // Header stream.write(protocol.ACKS[type][qos][dup][0]) // Length writeVarByteInt(stream, length) // Message ID writeNumber(stream, id) // reason code in header if (version === 5) { stream.write(Buffer.from([reasonCode])) } // properies mqtt 5 if (propertiesData !== null) { propertiesData.write() } return true } function subscribe (packet, stream, opts) { debug('subscribe: packet: ') const version = opts ? opts.protocolVersion : 4 const settings = packet || {} const dup = settings.dup ? protocol.DUP_MASK : 0 const id = settings.messageId const subs = settings.subscriptions const properties = settings.properties let length = 0 // Check message ID if (typeof id !== 'number') { stream.emit('error', new Error('Invalid messageId')) return false } else length += 2 // properies mqtt 5 let propertiesData = null if (version === 5) { propertiesData = getProperties(stream, properties) if (!propertiesData) { return false } length += propertiesData.length } // Check subscriptions if (typeof subs === 'object' && subs.length) { for (let i = 0; i < subs.length; i += 1) { const itopic = subs[i].topic const iqos = subs[i].qos if (typeof itopic !== 'string') { stream.emit('error', new Error('Invalid subscriptions - invalid topic')) return false } if (typeof iqos !== 'number') { stream.emit('error', new Error('Invalid subscriptions - invalid qos')) return false } if (version === 5) { const nl = subs[i].nl || false if (typeof nl !== 'boolean') { stream.emit('error', new Error('Invalid subscriptions - invalid No Local')) return false } const rap = subs[i].rap || false if (typeof rap !== 'boolean') { stream.emit('error', new Error('Invalid subscriptions - invalid Retain as Published')) return false } const rh = subs[i].rh || 0 if (typeof rh !== 'number' || rh > 2) { stream.emit('error', new Error('Invalid subscriptions - invalid Retain Handling')) return false } } length += Buffer.byteLength(itopic) + 2 + 1 } } else { stream.emit('error', new Error('Invalid subscriptions')) return false } // Generate header debug('subscribe: writing to stream: %o', protocol.SUBSCRIBE_HEADER) stream.write(protocol.SUBSCRIBE_HEADER[1][dup ? 1 : 0][0]) // Generate length writeVarByteInt(stream, length) // Generate message ID writeNumber(stream, id) // properies mqtt 5 if (propertiesData !== null) { propertiesData.write() } let result = true // Generate subs for (const sub of subs) { const jtopic = sub.topic const jqos = sub.qos const jnl = +sub.nl const jrap = +sub.rap const jrh = sub.rh let joptions // Write topic string writeString(stream, jtopic) // options process joptions = protocol.SUBSCRIBE_OPTIONS_QOS[jqos] if (version === 5) { joptions |= jnl ? protocol.SUBSCRIBE_OPTIONS_NL : 0 joptions |= jrap ? protocol.SUBSCRIBE_OPTIONS_RAP : 0 joptions |= jrh ? protocol.SUBSCRIBE_OPTIONS_RH[jrh] : 0 } // Write options result = stream.write(Buffer.from([joptions])) } return result } function suback (packet, stream, opts) { const version = opts ? opts.protocolVersion : 4 const settings = packet || {} const id = settings.messageId const granted = settings.granted const properties = settings.properties let length = 0 // Check message ID if (typeof id !== 'number') { stream.emit('error', new Error('Invalid messageId')) return false } else length += 2 // Check granted qos vector if (typeof granted === 'object' && granted.length) { for (let i = 0; i < granted.length; i += 1) { if (typeof granted[i] !== 'number') { stream.emit('error', new Error('Invalid qos vector')) return false } length += 1 } } else { stream.emit('error', new Error('Invalid qos vector')) return false } // properies mqtt 5 let propertiesData = null if (version === 5) { propertiesData = getPropertiesByMaximumPacketSize(stream, properties, opts, length) if (!propertiesData) { return false } length += propertiesData.length } // header stream.write(protocol.SUBACK_HEADER) // Length writeVarByteInt(stream, length) // Message ID writeNumber(stream, id) // properies mqtt 5 if (propertiesData !== null) { propertiesData.write() } return stream.write(Buffer.from(granted)) } function unsubscribe (packet, stream, opts) { const version = opts ? opts.protocolVersion : 4 const settings = packet || {} const id = settings.messageId const dup = settings.dup ? protocol.DUP_MASK : 0 const unsubs = settings.unsubscriptions const properties = settings.properties let length = 0 // Check message ID if (typeof id !== 'number') { stream.emit('error', new Error('Invalid messageId')) return false } else { length += 2 } // Check unsubs if (typeof unsubs === 'object' && unsubs.length) { for (let i = 0; i < unsubs.length; i += 1) { if (typeof unsubs[i] !== 'string') { stream.emit('error', new Error('Invalid unsubscriptions')) return false } length += Buffer.byteLength(unsubs[i]) + 2 } } else { stream.emit('error', new Error('Invalid unsubscriptions')) return false } // properies mqtt 5 let propertiesData = null if (version === 5) { propertiesData = getProperties(stream, properties) if (!propertiesData) { return false } length += propertiesData.length } // Header stream.write(protocol.UNSUBSCRIBE_HEADER[1][dup ? 1 : 0][0]) // Length writeVarByteInt(stream, length) // Message ID writeNumber(stream, id) // properies mqtt 5 if (propertiesData !== null) { propertiesData.write() } // Unsubs let result = true for (let j = 0; j < unsubs.length; j++) { result = writeString(stream, unsubs[j]) } return result } function unsuback (packet, stream, opts) { const version = opts ? opts.protocolVersion : 4 const settings = packet || {} const id = settings.messageId const dup = settings.dup ? protocol.DUP_MASK : 0 const granted = settings.granted const properties = settings.properties const type = settings.cmd const qos = 0 let length = 2 // Check message ID if (typeof id !== 'number') { stream.emit('error', new Error('Invalid messageId')) return false } // Check granted if (version === 5) { if (typeof granted === 'object' && granted.length) { for (let i = 0; i < granted.length; i += 1) { if (typeof granted[i] !== 'number') { stream.emit('error', new Error('Invalid qos vector')) return false } length += 1 } } else { stream.emit('error', new Error('Invalid qos vector')) return false } } // properies mqtt 5 let propertiesData = null if (version === 5) { propertiesData = getPropertiesByMaximumPacketSize(stream, properties, opts, length) if (!propertiesData) { return false } length += propertiesData.length } // Header stream.write(protocol.ACKS[type][qos][dup][0]) // Length writeVarByteInt(stream, length) // Message ID writeNumber(stream, id) // properies mqtt 5 if (propertiesData !== null) { propertiesData.write() } // payload if (version === 5) { stream.write(Buffer.from(granted)) } return true } function emptyPacket (packet, stream, opts) { return stream.write(protocol.EMPTY[packet.cmd]) } function disconnect (packet, stream, opts) { const version = opts ? opts.protocolVersion : 4 const settings = packet || {} const reasonCode = settings.reasonCode const properties = settings.properties let length = version === 5 ? 1 : 0 // properies mqtt 5 let propertiesData = null if (version === 5) { propertiesData = getPropertiesByMaximumPacketSize(stream, properties, opts, length) if (!propertiesData) { return false } length += propertiesData.length } // Header stream.write(Buffer.from([protocol.codes.disconnect << 4])) // Length writeVarByteInt(stream, length) // reason code in header if (version === 5) { stream.write(Buffer.from([reasonCode])) } // properies mqtt 5 if (propertiesData !== null) { propertiesData.write() } return true } function auth (packet, stream, opts) { const version = opts ? opts.protocolVersion : 4 const settings = packet || {} const reasonCode = settings.reasonCode const properties = settings.properties let length = version === 5 ? 1 : 0 if (version !== 5) stream.emit('error', new Error('Invalid mqtt version for auth packet')) // properies mqtt 5 const propertiesData = getPropertiesByMaximumPacketSize(stream, properties, opts, length) if (!propertiesData) { return false } length += propertiesData.length // Header stream.write(Buffer.from([protocol.codes.auth << 4])) // Length writeVarByteInt(stream, length) // reason code in header stream.write(Buffer.from([reasonCode])) // properies mqtt 5 if (propertiesData !== null) { propertiesData.write() } return true } /** * writeVarByteInt - write an MQTT style variable byte integer to the buffer * * @param buffer - destination * @param pos - offset * @param length - length (>0) * @returns number of bytes written * * @api private */ const varByteIntCache = {} function writeVarByteInt (stream, num) { if (num > protocol.VARBYTEINT_MAX) { stream.emit('error', new Error(`Invalid variable byte integer: ${num}`)) return false } let buffer = varByteIntCache[num] if (!buffer) { buffer = genBufVariableByteInt(num) if (num < 16384) varByteIntCache[num] = buffer } debug('writeVarByteInt: writing to stream: %o', buffer) return stream.write(buffer) } /** * writeString - write a utf8 string to the buffer * * @param buffer - destination * @param pos - offset * @param string - string to write * @return number of bytes written * * @api private */ function writeString (stream, string) { const strlen = Buffer.byteLength(string) writeNumber(stream, strlen) debug('writeString: %s', string) return stream.write(string, 'utf8') } /** * writeStringPair - write a utf8 string pairs to the buffer * * @param buffer - destination * @param name - string name to write * @param value - string value to write * @return number of bytes written * * @api private */ function writeStringPair (stream, name, value) { writeString(stream, name) writeString(stream, value) } /** * writeNumber - write a two byte number to the buffer * * @param buffer - destination * @param pos - offset * @param number - number to write * @return number of bytes written * * @api private */ function writeNumberCached (stream, number) { debug('writeNumberCached: number: %d', number) debug('writeNumberCached: %o', numCache[number]) return stream.write(numCache[number]) } function writeNumberGenerated (stream, number) { const generatedNumber = generateNumber(number) debug('writeNumberGenerated: %o', generatedNumber) return stream.write(generatedNumber) } function write4ByteNumber (stream, number) { const generated4ByteBuffer = generate4ByteBuffer(number) debug('write4ByteNumber: %o', generated4ByteBuffer) return stream.write(generated4ByteBuffer) } /** * writeStringOrBuffer - write a String or Buffer with the its length prefix * * @param buffer - destination * @param pos - offset * @param toWrite - String or Buffer * @return number of bytes written */ function writeStringOrBuffer (stream, toWrite) { if (typeof toWrite === 'string') { writeString(stream, toWrite) } else if (toWrite) { writeNumber(stream, toWrite.length) stream.write(toWrite) } else writeNumber(stream, 0) } function getProperties (stream, properties) { /* connect properties */ if (typeof properties !== 'object' || properties.length != null) { return { length: 1, write () { writeProperties(stream, {}, 0) } } } let propertiesLength = 0 function getLengthProperty (name, value) { const type = protocol.propertiesTypes[name] let length = 0 switch (type) { case 'byte': { if (typeof value !== 'boolean') { stream.emit('error', new Error(`Invalid ${name}: ${value}`)) return false } length += 1 + 1 break } case 'int8': { if (typeof value !== 'number' || value < 0 || value > 0xff) { stream.emit('error', new Error(`Invalid ${name}: ${value}`)) return false } length += 1 + 1 break } case 'binary': { if (value && value === null) { stream.emit('error', new Error(`Invalid ${name}: ${value}`)) return false } length += 1 + Buffer.byteLength(value) + 2 break } case 'int16': { if (typeof value !== 'number' || value < 0 || value > 0xffff) { stream.emit('error', new Error(`Invalid ${name}: ${value}`)) return false } length += 1 + 2 break } case 'int32': { if (typeof value !== 'number' || value < 0 || value > 0xffffffff) { stream.emit('error', new Error(`Invalid ${name}: ${value}`)) return false } length += 1 + 4 break } case 'var': { // var byte integer is max 24 bits packed in 32 bits if (typeof value !== 'number' || value < 0 || value > 0x0fffffff) { stream.emit('error', new Error(`Invalid ${name}: ${value}`)) return false } length += 1 + Buffer.byteLength(genBufVariableByteInt(value)) break } case 'string': { if (typeof value !== 'string') { stream.emit('error', new Error(`Invalid ${name}: ${value}`)) return false } length += 1 + 2 + Buffer.byteLength(value.toString()) break } case 'pair': { if (typeof value !== 'object') { stream.emit('error', new Error(`Invalid ${name}: ${value}`)) return false } length += Object.getOwnPropertyNames(value).reduce((result, name) => { const currentValue = value[name] if (Array.isArray(currentValue)) { result += currentValue.reduce((currentLength, value) => { currentLength += 1 + 2 + Buffer.byteLength(name.toString()) + 2 + Buffer.byteLength(value.toString()) return currentLength }, 0) } else { result += 1 + 2 + Buffer.byteLength(name.toString()) + 2 + Buffer.byteLength(value[name].toString()) } return result }, 0) break } default: { stream.emit('error', new Error(`Invalid property ${name}: ${value}`)) return false } } return length } if (properties) { for (const propName in properties) { let propLength = 0 let propValueLength = 0 const propValue = properties[propName] if (Array.isArray(propValue)) { for (let valueIndex = 0; valueIndex < propValue.length; valueIndex++) { propValueLength = getLengthProperty(propName, propValue[valueIndex]) if (!propValueLength) { return false } propLength += propValueLength } } else { propValueLength = getLengthProperty(propName, propValue) if (!propValueLength) { return false } propLength = propValueLength } if (!propLength) return false propertiesLength += propLength } } const propertiesLengthLength = Buffer.byteLength(genBufVariableByteInt(propertiesLength)) return { length: propertiesLengthLength + propertiesLength, write () { writeProperties(stream, properties, propertiesLength) } } } function getPropertiesByMaximumPacketSize (stream, properties, opts, length) { const mayEmptyProps = ['reasonString', 'userProperties'] const maximumPacketSize = opts && opts.properties && opts.properties.maximumPacketSize ? opts.properties.maximumPacketSize : 0 let propertiesData = getProperties(stream, properties) if (maximumPacketSize) { while (length + propertiesData.length > maximumPacketSize) { const currentMayEmptyProp = mayEmptyProps.shift() if (currentMayEmptyProp && properties[currentMayEmptyProp]) { delete properties[currentMayEmptyProp] propertiesData = getProperties(stream, properties) } else { return false } } } return propertiesData } function writeProperty (stream, propName, value) { const type = protocol.propertiesTypes[propName] switch (type) { case 'byte': { stream.write(Buffer.from([protocol.properties[propName]])) stream.write(Buffer.from([+value])) break } case 'int8': { stream.write(Buffer.from([protocol.properties[propName]])) stream.write(Buffer.from([value])) break } case 'binary': { stream.write(Buffer.from([protocol.properties[propName]])) writeStringOrBuffer(stream, value) break } case 'int16': { stream.write(Buffer.from([protocol.properties[propName]])) writeNumber(stream, value) break } case 'int32': { stream.write(Buffer.from([protocol.properties[propName]])) write4ByteNumber(stream, value) break } case 'var': { stream.write(Buffer.from([protocol.properties[propName]])) writeVarByteInt(stream, value) break } case 'string': { stream.write(Buffer.from([protocol.properties[propName]])) writeString(stream, value) break } case 'pair': { Object.getOwnPropertyNames(value).forEach(name => { const currentValue = value[name] if (Array.isArray(currentValue)) { currentValue.forEach(value => { stream.write(Buffer.from([protocol.properties[propName]])) writeStringPair(stream, name.toString(), value.toString()) }) } else { stream.write(Buffer.from([protocol.properties[propName]])) writeStringPair(stream, name.toString(), currentValue.toString()) } }) break } default: { stream.emit('error', new Error(`Invalid property ${propName} value: ${value}`)) return false } } } function writeProperties (stream, properties, propertiesLength) { /* write properties to stream */ writeVarByteInt(stream, propertiesLength) for (const propName in properties) { if (Object.prototype.hasOwnProperty.call(properties, propName) && properties[propName] !== null) { const value = properties[propName] if (Array.isArray(value)) { for (let valueIndex = 0; valueIndex < value.length; valueIndex++) { writeProperty(stream, propName, value[valueIndex]) } } else { writeProperty(stream, propName, value) } } } } function byteLength (bufOrString) { if (!bufOrString) return 0 else if (bufOrString instanceof Buffer) return bufOrString.length else return Buffer.byteLength(bufOrString) } function isStringOrBuffer (field) { return typeof field === 'string' || field instanceof Buffer } module.exports = generate /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../buffer/index.js */ "./node_modules/buffer/index.js").Buffer)) /***/ }), /***/ "./node_modules/mqtt/lib/client.js": /*!*****************************************!*\ !*** ./node_modules/mqtt/lib/client.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process, global) { /** * Module dependencies */ const EventEmitter = __webpack_require__(/*! events */ "./node_modules/events/events.js").EventEmitter const Store = __webpack_require__(/*! ./store */ "./node_modules/mqtt/lib/store.js") const TopicAliasRecv = __webpack_require__(/*! ./topic-alias-recv */ "./node_modules/mqtt/lib/topic-alias-recv.js") const TopicAliasSend = __webpack_require__(/*! ./topic-alias-send */ "./node_modules/mqtt/lib/topic-alias-send.js") const mqttPacket = __webpack_require__(/*! mqtt-packet */ "./node_modules/mqtt-packet/mqtt.js") const DefaultMessageIdProvider = __webpack_require__(/*! ./default-message-id-provider */ "./node_modules/mqtt/lib/default-message-id-provider.js") const Writable = __webpack_require__(/*! readable-stream */ "./node_modules/mqtt/node_modules/readable-stream/readable-browser.js").Writable const inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js") const reInterval = __webpack_require__(/*! reinterval */ "./node_modules/reinterval/index.js") const clone = __webpack_require__(/*! rfdc/default */ "./node_modules/rfdc/default.js") const validations = __webpack_require__(/*! ./validations */ "./node_modules/mqtt/lib/validations.js") const xtend = __webpack_require__(/*! xtend */ "./node_modules/xtend/immutable.js") const debug = __webpack_require__(/*! debug */ "./node_modules/debug/src/browser.js")('mqttjs:client') const nextTick = process ? process.nextTick : function (callback) { setTimeout(callback, 0) } const setImmediate = global.setImmediate || function (callback) { // works in node v0.8 nextTick(callback) } const defaultConnectOptions = { keepalive: 60, reschedulePings: true, protocolId: 'MQTT', protocolVersion: 4, reconnectPeriod: 1000, connectTimeout: 30 * 1000, clean: true, resubscribe: true } const errors = { 0: '', 1: 'Unacceptable protocol version', 2: 'Identifier rejected', 3: 'Server unavailable', 4: 'Bad username or password', 5: 'Not authorized', 16: 'No matching subscribers', 17: 'No subscription existed', 128: 'Unspecified error', 129: 'Malformed Packet', 130: 'Protocol Error', 131: 'Implementation specific error', 132: 'Unsupported Protocol Version', 133: 'Client Identifier not valid', 134: 'Bad User Name or Password', 135: 'Not authorized', 136: 'Server unavailable', 137: 'Server busy', 138: 'Banned', 139: 'Server shutting down', 140: 'Bad authentication method', 141: 'Keep Alive timeout', 142: 'Session taken over', 143: 'Topic Filter invalid', 144: 'Topic Name invalid', 145: 'Packet identifier in use', 146: 'Packet Identifier not found', 147: 'Receive Maximum exceeded', 148: 'Topic Alias invalid', 149: 'Packet too large', 150: 'Message rate too high', 151: 'Quota exceeded', 152: 'Administrative action', 153: 'Payload format invalid', 154: 'Retain not supported', 155: 'QoS not supported', 156: 'Use another server', 157: 'Server moved', 158: 'Shared Subscriptions not supported', 159: 'Connection rate exceeded', 160: 'Maximum connect time', 161: 'Subscription Identifiers not supported', 162: 'Wildcard Subscriptions not supported' } function defaultId () { return 'mqttjs_' + Math.random().toString(16).substr(2, 8) } function applyTopicAlias (client, packet) { if (client.options.protocolVersion === 5) { if (packet.cmd === 'publish') { let alias if (packet.properties) { alias = packet.properties.topicAlias } const topic = packet.topic.toString() if (client.topicAliasSend) { if (alias) { if (topic.length !== 0) { // register topic alias debug('applyTopicAlias :: register topic: %s - alias: %d', topic, alias) if (!client.topicAliasSend.put(topic, alias)) { debug('applyTopicAlias :: error out of range. topic: %s - alias: %d', topic, alias) return new Error('Sending Topic Alias out of range') } } } else { if (topic.length !== 0) { if (client.options.autoAssignTopicAlias) { alias = client.topicAliasSend.getAliasByTopic(topic) if (alias) { packet.topic = '' packet.properties = { ...(packet.properties), topicAlias: alias } debug('applyTopicAlias :: auto assign(use) topic: %s - alias: %d', topic, alias) } else { alias = client.topicAliasSend.getLruAlias() client.topicAliasSend.put(topic, alias) packet.properties = { ...(packet.properties), topicAlias: alias } debug('applyTopicAlias :: auto assign topic: %s - alias: %d', topic, alias) } } else if (client.options.autoUseTopicAlias) { alias = client.topicAliasSend.getAliasByTopic(topic) if (alias) { packet.topic = '' packet.properties = { ...(packet.properties), topicAlias: alias } debug('applyTopicAlias :: auto use topic: %s - alias: %d', topic, alias) } } } } } else if (alias) { debug('applyTopicAlias :: error out of range. topic: %s - alias: %d', topic, alias) return new Error('Sending Topic Alias out of range') } } } } function removeTopicAliasAndRecoverTopicName (client, packet) { let alias if (packet.properties) { alias = packet.properties.topicAlias } let topic = packet.topic.toString() if (topic.length === 0) { // restore topic from alias if (typeof alias === 'undefined') { return new Error('Unregistered Topic Alias') } else { topic = client.topicAliasSend.getTopicByAlias(alias) if (typeof topic === 'undefined') { return new Error('Unregistered Topic Alias') } else { packet.topic = topic } } } if (alias) { delete packet.properties.topicAlias } } function sendPacket (client, packet, cb) { debug('sendPacket :: packet: %O', packet) debug('sendPacket :: emitting `packetsend`') client.emit('packetsend', packet) debug('sendPacket :: writing to stream') const result = mqttPacket.writeToStream(packet, client.stream, client.options) debug('sendPacket :: writeToStream result %s', result) if (!result && cb && cb !== nop) { debug('sendPacket :: handle events on `drain` once through callback.') client.stream.once('drain', cb) } else if (cb) { debug('sendPacket :: invoking cb') cb() } } function flush (queue) { if (queue) { debug('flush: queue exists? %b', !!(queue)) Object.keys(queue).forEach(function (messageId) { if (typeof queue[messageId].cb === 'function') { queue[messageId].cb(new Error('Connection closed')) // This is suspicious. Why do we only delete this if we have a callbck? // If this is by-design, then adding no as callback would cause this to get deleted unintentionally. delete queue[messageId] } }) } } function flushVolatile (queue) { if (queue) { debug('flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function') Object.keys(queue).forEach(function (messageId) { if (queue[messageId].volatile && typeof queue[messageId].cb === 'function') { queue[messageId].cb(new Error('Connection closed')) delete queue[messageId] } }) } } function storeAndSend (client, packet, cb, cbStorePut) { debug('storeAndSend :: store packet with cmd %s to outgoingStore', packet.cmd) let storePacket = packet let err if (storePacket.cmd === 'publish') { // The original packet is for sending. // The cloned storePacket is for storing to resend on reconnect. // Topic Alias must not be used after disconnected. storePacket = clone(packet) err = removeTopicAliasAndRecoverTopicName(client, storePacket) if (err) { return cb && cb(err) } } client.outgoingStore.put(storePacket, function storedPacket (err) { if (err) { return cb && cb(err) } cbStorePut() sendPacket(client, packet, cb) }) } function nop (error) { debug('nop ::', error) } /** * MqttClient constructor * * @param {Stream} stream - stream * @param {Object} [options] - connection options * (see Connection#connect) */ function MqttClient (streamBuilder, options) { let k const that = this if (!(this instanceof MqttClient)) { return new MqttClient(streamBuilder, options) } this.options = options || {} // Defaults for (k in defaultConnectOptions) { if (typeof this.options[k] === 'undefined') { this.options[k] = defaultConnectOptions[k] } else { this.options[k] = options[k] } } debug('MqttClient :: options.protocol', options.protocol) debug('MqttClient :: options.protocolVersion', options.protocolVersion) debug('MqttClient :: options.username', options.username) debug('MqttClient :: options.keepalive', options.keepalive) debug('MqttClient :: options.reconnectPeriod', options.reconnectPeriod) debug('MqttClient :: options.rejectUnauthorized', options.rejectUnauthorized) debug('MqttClient :: options.topicAliasMaximum', options.topicAliasMaximum) this.options.clientId = (typeof options.clientId === 'string') ? options.clientId : defaultId() debug('MqttClient :: clientId', this.options.clientId) this.options.customHandleAcks = (options.protocolVersion === 5 && options.customHandleAcks) ? options.customHandleAcks : function () { arguments[3](0) } this.streamBuilder = streamBuilder this.messageIdProvider = (typeof this.options.messageIdProvider === 'undefined') ? new DefaultMessageIdProvider() : this.options.messageIdProvider // Inflight message storages this.outgoingStore = options.outgoingStore || new Store() this.incomingStore = options.incomingStore || new Store() // Should QoS zero messages be queued when the connection is broken? this.queueQoSZero = options.queueQoSZero === undefined ? true : options.queueQoSZero // map of subscribed topics to support reconnection this._resubscribeTopics = {} // map of a subscribe messageId and a topic this.messageIdToTopic = {} // Ping timer, setup in _setupPingTimer this.pingTimer = null // Is the client connected? this.connected = false // Are we disconnecting? this.disconnecting = false // Packet queue this.queue = [] // connack timer this.connackTimer = null // Reconnect timer this.reconnectTimer = null // Is processing store? this._storeProcessing = false // Packet Ids are put into the store during store processing this._packetIdsDuringStoreProcessing = {} // Store processing queue this._storeProcessingQueue = [] // Inflight callbacks this.outgoing = {} // True if connection is first time. this._firstConnection = true if (options.topicAliasMaximum > 0) { if (options.topicAliasMaximum > 0xffff) { debug('MqttClient :: options.topicAliasMaximum is out of range') } else { this.topicAliasRecv = new TopicAliasRecv(options.topicAliasMaximum) } } // Send queued packets this.on('connect', function () { const queue = this.queue function deliver () { const entry = queue.shift() debug('deliver :: entry %o', entry) let packet = null if (!entry) { that._resubscribe() return } packet = entry.packet debug('deliver :: call _sendPacket for %o', packet) let send = true if (packet.messageId && packet.messageId !== 0) { if (!that.messageIdProvider.register(packet.messageId)) { send = false } } if (send) { that._sendPacket( packet, function (err) { if (entry.cb) { entry.cb(err) } deliver() } ) } else { debug('messageId: %d has already used. The message is skipped and removed.', packet.messageId) deliver() } } debug('connect :: sending queued packets') deliver() }) this.on('close', function () { debug('close :: connected set to `false`') this.connected = false debug('close :: clearing connackTimer') clearTimeout(this.connackTimer) debug('close :: clearing ping timer') if (that.pingTimer !== null) { that.pingTimer.clear() that.pingTimer = null } if (this.topicAliasRecv) { this.topicAliasRecv.clear() } debug('close :: calling _setupReconnect') this._setupReconnect() }) EventEmitter.call(this) debug('MqttClient :: setting up stream') this._setupStream() } inherits(MqttClient, EventEmitter) /** * setup the event handlers in the inner stream. * * @api private */ MqttClient.prototype._setupStream = function () { const that = this const writable = new Writable() const parser = mqttPacket.parser(this.options) let completeParse = null const packets = [] debug('_setupStream :: calling method to clear reconnect') this._clearReconnect() debug('_setupStream :: using streamBuilder provided to client to create stream') this.stream = this.streamBuilder(this) parser.on('packet', function (packet) { debug('parser :: on packet push to packets array.') packets.push(packet) }) function nextTickWork () { if (packets.length) { nextTick(work) } else { const done = completeParse completeParse = null done() } } function work () { debug('work :: getting next packet in queue') const packet = packets.shift() if (packet) { debug('work :: packet pulled from queue') that._handlePacket(packet, nextTickWork) } else { debug('work :: no packets in queue') const done = completeParse completeParse = null debug('work :: done flag is %s', !!(done)) if (done) done() } } writable._write = function (buf, enc, done) { completeParse = done debug('writable stream :: parsing buffer') parser.parse(buf) work() } function streamErrorHandler (error) { debug('streamErrorHandler :: error', error.message) // error.code will only be set on NodeJS env, browse don't allow to detect erros on sockets // also emitting errors on browser seems to create issues if (error.code) { // handle error debug('streamErrorHandler :: emitting error') that.emit('error', error) } else { nop(error) } } debug('_setupStream :: pipe stream to writable stream') this.stream.pipe(writable) // Suppress connection errors this.stream.on('error', streamErrorHandler) // Echo stream close this.stream.on('close', function () { debug('(%s)stream :: on close', that.options.clientId) flushVolatile(that.outgoing) debug('stream: emit close to MqttClient') that.emit('close') }) // Send a connect packet debug('_setupStream: sending packet `connect`') const connectPacket = Object.create(this.options) connectPacket.cmd = 'connect' if (this.topicAliasRecv) { if (!connectPacket.properties) { connectPacket.properties = {} } if (this.topicAliasRecv) { connectPacket.properties.topicAliasMaximum = this.topicAliasRecv.max } } // avoid message queue sendPacket(this, connectPacket) // Echo connection errors parser.on('error', this.emit.bind(this, 'error')) // auth if (this.options.properties) { if (!this.options.properties.authenticationMethod && this.options.properties.authenticationData) { that.end(() => this.emit('error', new Error('Packet has no Authentication Method') )) return this } if (this.options.properties.authenticationMethod && this.options.authPacket && typeof this.options.authPacket === 'object') { const authPacket = xtend({ cmd: 'auth', reasonCode: 0 }, this.options.authPacket) sendPacket(this, authPacket) } } // many drain listeners are needed for qos 1 callbacks if the connection is intermittent this.stream.setMaxListeners(1000) clearTimeout(this.connackTimer) this.connackTimer = setTimeout(function () { debug('!!connectTimeout hit!! Calling _cleanUp with force `true`') that._cleanUp(true) }, this.options.connectTimeout) } MqttClient.prototype._handlePacket = function (packet, done) { const options = this.options if (options.protocolVersion === 5 && options.properties && options.properties.maximumPacketSize && options.properties.maximumPacketSize < packet.length) { this.emit('error', new Error('exceeding packets size ' + packet.cmd)) this.end({ reasonCode: 149, properties: { reasonString: 'Maximum packet size was exceeded' } }) return this } debug('_handlePacket :: emitting packetreceive') this.emit('packetreceive', packet) switch (packet.cmd) { case 'publish': this._handlePublish(packet, done) break case 'puback': case 'pubrec': case 'pubcomp': case 'suback': case 'unsuback': this._handleAck(packet) done() break case 'pubrel': this._handlePubrel(packet, done) break case 'connack': this._handleConnack(packet) done() break case 'auth': this._handleAuth(packet) done() break case 'pingresp': this._handlePingresp(packet) done() break case 'disconnect': this._handleDisconnect(packet) done() break default: // do nothing // maybe we should do an error handling // or just log it break } } MqttClient.prototype._checkDisconnecting = function (callback) { if (this.disconnecting) { if (callback && callback !== nop) { callback(new Error('client disconnecting')) } else { this.emit('error', new Error('client disconnecting')) } } return this.disconnecting } /** * publish - publish to * * @param {String} topic - topic to publish to * @param {String, Buffer} message - message to publish * @param {Object} [opts] - publish options, includes: * {Number} qos - qos level to publish on * {Boolean} retain - whether or not to retain the message * {Boolean} dup - whether or not mark a message as duplicate * {Function} cbStorePut - function(){} called when message is put into `outgoingStore` * @param {Function} [callback] - function(err){} * called when publish succeeds or fails * @returns {MqttClient} this - for chaining * @api public * * @example client.publish('topic', 'message'); * @example * client.publish('topic', 'message', {qos: 1, retain: true, dup: true}); * @example client.publish('topic', 'message', console.log); */ MqttClient.prototype.publish = function (topic, message, opts, callback) { debug('publish :: message `%s` to topic `%s`', message, topic) const options = this.options // .publish(topic, payload, cb); if (typeof opts === 'function') { callback = opts opts = null } // default opts const defaultOpts = { qos: 0, retain: false, dup: false } opts = xtend(defaultOpts, opts) if (this._checkDisconnecting(callback)) { return this } const that = this const publishProc = function () { let messageId = 0 if (opts.qos === 1 || opts.qos === 2) { messageId = that._nextId() if (messageId === null) { debug('No messageId left') return false } } const packet = { cmd: 'publish', topic: topic, payload: message, qos: opts.qos, retain: opts.retain, messageId: messageId, dup: opts.dup } if (options.protocolVersion === 5) { packet.properties = opts.properties } debug('publish :: qos', opts.qos) switch (opts.qos) { case 1: case 2: // Add to callbacks that.outgoing[packet.messageId] = { volatile: false, cb: callback || nop } debug('MqttClient:publish: packet cmd: %s', packet.cmd) that._sendPacket(packet, undefined, opts.cbStorePut) break default: debug('MqttClient:publish: packet cmd: %s', packet.cmd) that._sendPacket(packet, callback, opts.cbStorePut) break } return true } if (this._storeProcessing || this._storeProcessingQueue.length > 0 || !publishProc()) { this._storeProcessingQueue.push( { invoke: publishProc, cbStorePut: opts.cbStorePut, callback: callback } ) } return this } /** * subscribe - subscribe to * * @param {String, Array, Object} topic - topic(s) to subscribe to, supports objects in the form {'topic': qos} * @param {Object} [opts] - optional subscription options, includes: * {Number} qos - subscribe qos level * @param {Function} [callback] - function(err, granted){} where: * {Error} err - subscription error (none at the moment!) * {Array} granted - array of {topic: 't', qos: 0} * @returns {MqttClient} this - for chaining * @api public * @example client.subscribe('topic'); * @example client.subscribe('topic', {qos: 1}); * @example client.subscribe({'topic': {qos: 0}, 'topic2': {qos: 1}}, console.log); * @example client.subscribe('topic', console.log); */ MqttClient.prototype.subscribe = function () { const that = this const args = new Array(arguments.length) for (let i = 0; i < arguments.length; i++) { args[i] = arguments[i] } const subs = [] let obj = args.shift() const resubscribe = obj.resubscribe let callback = args.pop() || nop let opts = args.pop() const version = this.options.protocolVersion delete obj.resubscribe if (typeof obj === 'string') { obj = [obj] } if (typeof callback !== 'function') { opts = callback callback = nop } const invalidTopic = validations.validateTopics(obj) if (invalidTopic !== null) { setImmediate(callback, new Error('Invalid topic ' + invalidTopic)) return this } if (this._checkDisconnecting(callback)) { debug('subscribe: discconecting true') return this } const defaultOpts = { qos: 0 } if (version === 5) { defaultOpts.nl = false defaultOpts.rap = false defaultOpts.rh = 0 } opts = xtend(defaultOpts, opts) if (Array.isArray(obj)) { obj.forEach(function (topic) { debug('subscribe: array topic %s', topic) if (!Object.prototype.hasOwnProperty.call(that._resubscribeTopics, topic) || that._resubscribeTopics[topic].qos < opts.qos || resubscribe) { const currentOpts = { topic: topic, qos: opts.qos } if (version === 5) { currentOpts.nl = opts.nl currentOpts.rap = opts.rap currentOpts.rh = opts.rh currentOpts.properties = opts.properties } debug('subscribe: pushing topic `%s` and qos `%s` to subs list', currentOpts.topic, currentOpts.qos) subs.push(currentOpts) } }) } else { Object .keys(obj) .forEach(function (k) { debug('subscribe: object topic %s', k) if (!Object.prototype.hasOwnProperty.call(that._resubscribeTopics, k) || that._resubscribeTopics[k].qos < obj[k].qos || resubscribe) { const currentOpts = { topic: k, qos: obj[k].qos } if (version === 5) { currentOpts.nl = obj[k].nl currentOpts.rap = obj[k].rap currentOpts.rh = obj[k].rh currentOpts.properties = opts.properties } debug('subscribe: pushing `%s` to subs list', currentOpts) subs.push(currentOpts) } }) } if (!subs.length) { callback(null, []) return this } const subscribeProc = function () { const messageId = that._nextId() if (messageId === null) { debug('No messageId left') return false } const packet = { cmd: 'subscribe', subscriptions: subs, qos: 1, retain: false, dup: false, messageId: messageId } if (opts.properties) { packet.properties = opts.properties } // subscriptions to resubscribe to in case of disconnect if (that.options.resubscribe) { debug('subscribe :: resubscribe true') const topics = [] subs.forEach(function (sub) { if (that.options.reconnectPeriod > 0) { const topic = { qos: sub.qos } if (version === 5) { topic.nl = sub.nl || false topic.rap = sub.rap || false topic.rh = sub.rh || 0 topic.properties = sub.properties } that._resubscribeTopics[sub.topic] = topic topics.push(sub.topic) } }) that.messageIdToTopic[packet.messageId] = topics } that.outgoing[packet.messageId] = { volatile: true, cb: function (err, packet) { if (!err) { const granted = packet.granted for (let i = 0; i < granted.length; i += 1) { subs[i].qos = granted[i] } } callback(err, subs) } } debug('subscribe :: call _sendPacket') that._sendPacket(packet) return true } if (this._storeProcessing || this._storeProcessingQueue.length > 0 || !subscribeProc()) { this._storeProcessingQueue.push( { invoke: subscribeProc, callback: callback } ) } return this } /** * unsubscribe - unsubscribe from topic(s) * * @param {String, Array} topic - topics to unsubscribe from * @param {Object} [opts] - optional subscription options, includes: * {Object} properties - properties of unsubscribe packet * @param {Function} [callback] - callback fired on unsuback * @returns {MqttClient} this - for chaining * @api public * @example client.unsubscribe('topic'); * @example client.unsubscribe('topic', console.log); */ MqttClient.prototype.unsubscribe = function () { const that = this const args = new Array(arguments.length) for (let i = 0; i < arguments.length; i++) { args[i] = arguments[i] } let topic = args.shift() let callback = args.pop() || nop let opts = args.pop() if (typeof topic === 'string') { topic = [topic] } if (typeof callback !== 'function') { opts = callback callback = nop } const invalidTopic = validations.validateTopics(topic) if (invalidTopic !== null) { setImmediate(callback, new Error('Invalid topic ' + invalidTopic)) return this } if (that._checkDisconnecting(callback)) { return this } const unsubscribeProc = function () { const messageId = that._nextId() if (messageId === null) { debug('No messageId left') return false } const packet = { cmd: 'unsubscribe', qos: 1, messageId: messageId } if (typeof topic === 'string') { packet.unsubscriptions = [topic] } else if (Array.isArray(topic)) { packet.unsubscriptions = topic } if (that.options.resubscribe) { packet.unsubscriptions.forEach(function (topic) { delete that._resubscribeTopics[topic] }) } if (typeof opts === 'object' && opts.properties) { packet.properties = opts.properties } that.outgoing[packet.messageId] = { volatile: true, cb: callback } debug('unsubscribe: call _sendPacket') that._sendPacket(packet) return true } if (this._storeProcessing || this._storeProcessingQueue.length > 0 || !unsubscribeProc()) { this._storeProcessingQueue.push( { invoke: unsubscribeProc, callback: callback } ) } return this } /** * end - close connection * * @returns {MqttClient} this - for chaining * @param {Boolean} force - do not wait for all in-flight messages to be acked * @param {Object} opts - added to the disconnect packet * @param {Function} cb - called when the client has been closed * * @api public */ MqttClient.prototype.end = function (force, opts, cb) { const that = this debug('end :: (%s)', this.options.clientId) if (force == null || typeof force !== 'boolean') { cb = opts || nop opts = force force = false if (typeof opts !== 'object') { cb = opts opts = null if (typeof cb !== 'function') { cb = nop } } } if (typeof opts !== 'object') { cb = opts opts = null } debug('end :: cb? %s', !!cb) cb = cb || nop function closeStores () { debug('end :: closeStores: closing incoming and outgoing stores') that.disconnected = true that.incomingStore.close(function (e1) { that.outgoingStore.close(function (e2) { debug('end :: closeStores: emitting end') that.emit('end') if (cb) { const err = e1 || e2 debug('end :: closeStores: invoking callback with args') cb(err) } }) }) if (that._deferredReconnect) { that._deferredReconnect() } } function finish () { // defer closesStores of an I/O cycle, // just to make sure things are // ok for websockets debug('end :: (%s) :: finish :: calling _cleanUp with force %s', that.options.clientId, force) that._cleanUp(force, () => { debug('end :: finish :: calling process.nextTick on closeStores') // const boundProcess = nextTick.bind(null, closeStores) nextTick(closeStores.bind(that)) }, opts) } if (this.disconnecting) { cb() return this } this._clearReconnect() this.disconnecting = true if (!force && Object.keys(this.outgoing).length > 0) { // wait 10ms, just to be sure we received all of it debug('end :: (%s) :: calling finish in 10ms once outgoing is empty', that.options.clientId) this.once('outgoingEmpty', setTimeout.bind(null, finish, 10)) } else { debug('end :: (%s) :: immediately calling finish', that.options.clientId) finish() } return this } /** * removeOutgoingMessage - remove a message in outgoing store * the outgoing callback will be called withe Error('Message removed') if the message is removed * * @param {Number} messageId - messageId to remove message * @returns {MqttClient} this - for chaining * @api public * * @example client.removeOutgoingMessage(client.getLastAllocated()); */ MqttClient.prototype.removeOutgoingMessage = function (messageId) { const cb = this.outgoing[messageId] ? this.outgoing[messageId].cb : null delete this.outgoing[messageId] this.outgoingStore.del({ messageId: messageId }, function () { cb(new Error('Message removed')) }) return this } /** * reconnect - connect again using the same options as connect() * * @param {Object} [opts] - optional reconnect options, includes: * {Store} incomingStore - a store for the incoming packets * {Store} outgoingStore - a store for the outgoing packets * if opts is not given, current stores are used * @returns {MqttClient} this - for chaining * * @api public */ MqttClient.prototype.reconnect = function (opts) { debug('client reconnect') const that = this const f = function () { if (opts) { that.options.incomingStore = opts.incomingStore that.options.outgoingStore = opts.outgoingStore } else { that.options.incomingStore = null that.options.outgoingStore = null } that.incomingStore = that.options.incomingStore || new Store() that.outgoingStore = that.options.outgoingStore || new Store() that.disconnecting = false that.disconnected = false that._deferredReconnect = null that._reconnect() } if (this.disconnecting && !this.disconnected) { this._deferredReconnect = f } else { f() } return this } /** * _reconnect - implement reconnection * @api privateish */ MqttClient.prototype._reconnect = function () { debug('_reconnect: emitting reconnect to client') this.emit('reconnect') if (this.connected) { this.end(() => { this._setupStream() }) debug('client already connected. disconnecting first.') } else { debug('_reconnect: calling _setupStream') this._setupStream() } } /** * _setupReconnect - setup reconnect timer */ MqttClient.prototype._setupReconnect = function () { const that = this if (!that.disconnecting && !that.reconnectTimer && (that.options.reconnectPeriod > 0)) { if (!this.reconnecting) { debug('_setupReconnect :: emit `offline` state') this.emit('offline') debug('_setupReconnect :: set `reconnecting` to `true`') this.reconnecting = true } debug('_setupReconnect :: setting reconnectTimer for %d ms', that.options.reconnectPeriod) that.reconnectTimer = setInterval(function () { debug('reconnectTimer :: reconnect triggered!') that._reconnect() }, that.options.reconnectPeriod) } else { debug('_setupReconnect :: doing nothing...') } } /** * _clearReconnect - clear the reconnect timer */ MqttClient.prototype._clearReconnect = function () { debug('_clearReconnect : clearing reconnect timer') if (this.reconnectTimer) { clearInterval(this.reconnectTimer) this.reconnectTimer = null } } /** * _cleanUp - clean up on connection end * @api private */ MqttClient.prototype._cleanUp = function (forced, done) { const opts = arguments[2] if (done) { debug('_cleanUp :: done callback provided for on stream close') this.stream.on('close', done) } debug('_cleanUp :: forced? %s', forced) if (forced) { if ((this.options.reconnectPeriod === 0) && this.options.clean) { flush(this.outgoing) } debug('_cleanUp :: (%s) :: destroying stream', this.options.clientId) this.stream.destroy() } else { const packet = xtend({ cmd: 'disconnect' }, opts) debug('_cleanUp :: (%s) :: call _sendPacket with disconnect packet', this.options.clientId) this._sendPacket( packet, setImmediate.bind( null, this.stream.end.bind(this.stream) ) ) } if (!this.disconnecting) { debug('_cleanUp :: client not disconnecting. Clearing and resetting reconnect.') this._clearReconnect() this._setupReconnect() } if (this.pingTimer !== null) { debug('_cleanUp :: clearing pingTimer') this.pingTimer.clear() this.pingTimer = null } if (done && !this.connected) { debug('_cleanUp :: (%s) :: removing stream `done` callback `close` listener', this.options.clientId) this.stream.removeListener('close', done) done() } } /** * _sendPacket - send or queue a packet * @param {Object} packet - packet options * @param {Function} cb - callback when the packet is sent * @param {Function} cbStorePut - called when message is put into outgoingStore * @api private */ MqttClient.prototype._sendPacket = function (packet, cb, cbStorePut) { debug('_sendPacket :: (%s) :: start', this.options.clientId) cbStorePut = cbStorePut || nop cb = cb || nop const err = applyTopicAlias(this, packet) if (err) { cb(err) return } if (!this.connected) { // allow auth packets to be sent while authenticating with the broker (mqtt5 enhanced auth) if (packet.cmd === 'auth') { this._shiftPingInterval() sendPacket(this, packet, cb) return } debug('_sendPacket :: client not connected. Storing packet offline.') this._storePacket(packet, cb, cbStorePut) return } // When sending a packet, reschedule the ping timer this._shiftPingInterval() switch (packet.cmd) { case 'publish': break case 'pubrel': storeAndSend(this, packet, cb, cbStorePut) return default: sendPacket(this, packet, cb) return } switch (packet.qos) { case 2: case 1: storeAndSend(this, packet, cb, cbStorePut) break /** * no need of case here since it will be caught by default * and jshint comply that before default it must be a break * anyway it will result in -1 evaluation */ case 0: /* falls through */ default: sendPacket(this, packet, cb) break } debug('_sendPacket :: (%s) :: end', this.options.clientId) } /** * _storePacket - queue a packet * @param {Object} packet - packet options * @param {Function} cb - callback when the packet is sent * @param {Function} cbStorePut - called when message is put into outgoingStore * @api private */ MqttClient.prototype._storePacket = function (packet, cb, cbStorePut) { debug('_storePacket :: packet: %o', packet) debug('_storePacket :: cb? %s', !!cb) cbStorePut = cbStorePut || nop let storePacket = packet if (storePacket.cmd === 'publish') { // The original packet is for sending. // The cloned storePacket is for storing to resend on reconnect. // Topic Alias must not be used after disconnected. storePacket = clone(packet) const err = removeTopicAliasAndRecoverTopicName(this, storePacket) if (err) { return cb && cb(err) } } // check that the packet is not a qos of 0, or that the command is not a publish if (((storePacket.qos || 0) === 0 && this.queueQoSZero) || storePacket.cmd !== 'publish') { this.queue.push({ packet: storePacket, cb: cb }) } else if (storePacket.qos > 0) { cb = this.outgoing[storePacket.messageId] ? this.outgoing[storePacket.messageId].cb : null this.outgoingStore.put(storePacket, function (err) { if (err) { return cb && cb(err) } cbStorePut() }) } else if (cb) { cb(new Error('No connection to broker')) } } /** * _setupPingTimer - setup the ping timer * * @api private */ MqttClient.prototype._setupPingTimer = function () { debug('_setupPingTimer :: keepalive %d (seconds)', this.options.keepalive) const that = this if (!this.pingTimer && this.options.keepalive) { this.pingResp = true this.pingTimer = reInterval(function () { that._checkPing() }, this.options.keepalive * 1000) } } /** * _shiftPingInterval - reschedule the ping interval * * @api private */ MqttClient.prototype._shiftPingInterval = function () { if (this.pingTimer && this.options.keepalive && this.options.reschedulePings) { this.pingTimer.reschedule(this.options.keepalive * 1000) } } /** * _checkPing - check if a pingresp has come back, and ping the server again * * @api private */ MqttClient.prototype._checkPing = function () { debug('_checkPing :: checking ping...') if (this.pingResp) { debug('_checkPing :: ping response received. Clearing flag and sending `pingreq`') this.pingResp = false this._sendPacket({ cmd: 'pingreq' }) } else { // do a forced cleanup since socket will be in bad shape debug('_checkPing :: calling _cleanUp with force true') this._cleanUp(true) } } /** * _handlePingresp - handle a pingresp * * @api private */ MqttClient.prototype._handlePingresp = function () { this.pingResp = true } /** * _handleConnack * * @param {Object} packet * @api private */ MqttClient.prototype._handleConnack = function (packet) { debug('_handleConnack') const options = this.options const version = options.protocolVersion const rc = version === 5 ? packet.reasonCode : packet.returnCode clearTimeout(this.connackTimer) delete this.topicAliasSend if (packet.properties) { if (packet.properties.topicAliasMaximum) { if (packet.properties.topicAliasMaximum > 0xffff) { this.emit('error', new Error('topicAliasMaximum from broker is out of range')) return } if (packet.properties.topicAliasMaximum > 0) { this.topicAliasSend = new TopicAliasSend(packet.properties.topicAliasMaximum) } } if (packet.properties.serverKeepAlive && options.keepalive) { options.keepalive = packet.properties.serverKeepAlive this._shiftPingInterval() } if (packet.properties.maximumPacketSize) { if (!options.properties) { options.properties = {} } options.properties.maximumPacketSize = packet.properties.maximumPacketSize } } if (rc === 0) { this.reconnecting = false this._onConnect(packet) } else if (rc > 0) { const err = new Error('Connection refused: ' + errors[rc]) err.code = rc this.emit('error', err) } } MqttClient.prototype._handleAuth = function (packet) { const options = this.options const version = options.protocolVersion const rc = version === 5 ? packet.reasonCode : packet.returnCode if (version !== 5) { const err = new Error('Protocol error: Auth packets are only supported in MQTT 5. Your version:' + version) err.code = rc this.emit('error', err) return } const that = this this.handleAuth(packet, function (err, packet) { if (err) { that.emit('error', err) return } if (rc === 24) { that.reconnecting = false that._sendPacket(packet) } else { const error = new Error('Connection refused: ' + errors[rc]) err.code = rc that.emit('error', error) } }) } /** * @param packet the packet received by the broker * @return the auth packet to be returned to the broker * @api public */ MqttClient.prototype.handleAuth = function (packet, callback) { callback() } /** * _handlePublish * * @param {Object} packet * @api private */ /* those late 2 case should be rewrite to comply with coding style: case 1: case 0: // do not wait sending a puback // no callback passed if (1 === qos) { this._sendPacket({ cmd: 'puback', messageId: messageId }); } // emit the message event for both qos 1 and 0 this.emit('message', topic, message, packet); this.handleMessage(packet, done); break; default: // do nothing but every switch mus have a default // log or throw an error about unknown qos break; for now i just suppressed the warnings */ MqttClient.prototype._handlePublish = function (packet, done) { debug('_handlePublish: packet %o', packet) done = typeof done !== 'undefined' ? done : nop let topic = packet.topic.toString() const message = packet.payload const qos = packet.qos const messageId = packet.messageId const that = this const options = this.options const validReasonCodes = [0, 16, 128, 131, 135, 144, 145, 151, 153] if (this.options.protocolVersion === 5) { let alias if (packet.properties) { alias = packet.properties.topicAlias } if (typeof alias !== 'undefined') { if (topic.length === 0) { if (alias > 0 && alias <= 0xffff) { const gotTopic = this.topicAliasRecv.getTopicByAlias(alias) if (gotTopic) { topic = gotTopic debug('_handlePublish :: topic complemented by alias. topic: %s - alias: %d', topic, alias) } else { debug('_handlePublish :: unregistered topic alias. alias: %d', alias) this.emit('error', new Error('Received unregistered Topic Alias')) return } } else { debug('_handlePublish :: topic alias out of range. alias: %d', alias) this.emit('error', new Error('Received Topic Alias is out of range')) return } } else { if (this.topicAliasRecv.put(topic, alias)) { debug('_handlePublish :: registered topic: %s - alias: %d', topic, alias) } else { debug('_handlePublish :: topic alias out of range. alias: %d', alias) this.emit('error', new Error('Received Topic Alias is out of range')) return } } } } debug('_handlePublish: qos %d', qos) switch (qos) { case 2: { options.customHandleAcks(topic, message, packet, function (error, code) { if (!(error instanceof Error)) { code = error error = null } if (error) { return that.emit('error', error) } if (validReasonCodes.indexOf(code) === -1) { return that.emit('error', new Error('Wrong reason code for pubrec')) } if (code) { that._sendPacket({ cmd: 'pubrec', messageId: messageId, reasonCode: code }, done) } else { that.incomingStore.put(packet, function () { that._sendPacket({ cmd: 'pubrec', messageId: messageId }, done) }) } }) break } case 1: { // emit the message event options.customHandleAcks(topic, message, packet, function (error, code) { if (!(error instanceof Error)) { code = error error = null } if (error) { return that.emit('error', error) } if (validReasonCodes.indexOf(code) === -1) { return that.emit('error', new Error('Wrong reason code for puback')) } if (!code) { that.emit('message', topic, message, packet) } that.handleMessage(packet, function (err) { if (err) { return done && done(err) } that._sendPacket({ cmd: 'puback', messageId: messageId, reasonCode: code }, done) }) }) break } case 0: // emit the message event this.emit('message', topic, message, packet) this.handleMessage(packet, done) break default: // do nothing debug('_handlePublish: unknown QoS. Doing nothing.') // log or throw an error about unknown qos break } } /** * Handle messages with backpressure support, one at a time. * Override at will. * * @param Packet packet the packet * @param Function callback call when finished * @api public */ MqttClient.prototype.handleMessage = function (packet, callback) { callback() } /** * _handleAck * * @param {Object} packet * @api private */ MqttClient.prototype._handleAck = function (packet) { /* eslint no-fallthrough: "off" */ const messageId = packet.messageId const type = packet.cmd let response = null const cb = this.outgoing[messageId] ? this.outgoing[messageId].cb : null const that = this let err // Checking `!cb` happens to work, but it's not technically "correct". // // Why? This code assumes that "no callback" is the same as that "we're not // waiting for responses" (puback, pubrec, pubcomp, suback, or unsuback). // // It would be better to check `if (!this.outgoing[messageId])` here, but // there's no reason to change it and risk (another) regression. // // The only reason this code works is becaues code in MqttClient.publish, // MqttClinet.subscribe, and MqttClient.unsubscribe ensures that we will // have a callback even if the user doesn't pass one in.) if (!cb) { debug('_handleAck :: Server sent an ack in error. Ignoring.') // Server sent an ack in error, ignore it. return } // Process debug('_handleAck :: packet type', type) switch (type) { case 'pubcomp': // same thing as puback for QoS 2 case 'puback': { const pubackRC = packet.reasonCode // Callback - we're done if (pubackRC && pubackRC > 0 && pubackRC !== 16) { err = new Error('Publish error: ' + errors[pubackRC]) err.code = pubackRC cb(err, packet) } delete this.outgoing[messageId] this.outgoingStore.del(packet, cb) this.messageIdProvider.deallocate(messageId) this._invokeStoreProcessingQueue() break } case 'pubrec': { response = { cmd: 'pubrel', qos: 2, messageId: messageId } const pubrecRC = packet.reasonCode if (pubrecRC && pubrecRC > 0 && pubrecRC !== 16) { err = new Error('Publish error: ' + errors[pubrecRC]) err.code = pubrecRC cb(err, packet) } else { this._sendPacket(response) } break } case 'suback': { delete this.outgoing[messageId] this.messageIdProvider.deallocate(messageId) for (let grantedI = 0; grantedI < packet.granted.length; grantedI++) { if ((packet.granted[grantedI] & 0x80) !== 0) { // suback with Failure status const topics = this.messageIdToTopic[messageId] if (topics) { topics.forEach(function (topic) { delete that._resubscribeTopics[topic] }) } } } this._invokeStoreProcessingQueue() cb(null, packet) break } case 'unsuback': { delete this.outgoing[messageId] this.messageIdProvider.deallocate(messageId) this._invokeStoreProcessingQueue() cb(null) break } default: that.emit('error', new Error('unrecognized packet type')) } if (this.disconnecting && Object.keys(this.outgoing).length === 0) { this.emit('outgoingEmpty') } } /** * _handlePubrel * * @param {Object} packet * @api private */ MqttClient.prototype._handlePubrel = function (packet, callback) { debug('handling pubrel packet') callback = typeof callback !== 'undefined' ? callback : nop const messageId = packet.messageId const that = this const comp = { cmd: 'pubcomp', messageId: messageId } that.incomingStore.get(packet, function (err, pub) { if (!err) { that.emit('message', pub.topic, pub.payload, pub) that.handleMessage(pub, function (err) { if (err) { return callback(err) } that.incomingStore.del(pub, nop) that._sendPacket(comp, callback) }) } else { that._sendPacket(comp, callback) } }) } /** * _handleDisconnect * * @param {Object} packet * @api private */ MqttClient.prototype._handleDisconnect = function (packet) { this.emit('disconnect', packet) } /** * _nextId * @return unsigned int */ MqttClient.prototype._nextId = function () { return this.messageIdProvider.allocate() } /** * getLastMessageId * @return unsigned int */ MqttClient.prototype.getLastMessageId = function () { return this.messageIdProvider.getLastAllocated() } /** * _resubscribe * @api private */ MqttClient.prototype._resubscribe = function () { debug('_resubscribe') const _resubscribeTopicsKeys = Object.keys(this._resubscribeTopics) if (!this._firstConnection && (this.options.clean || (this.options.protocolVersion === 5 && !this.connackPacket.sessionPresent)) && _resubscribeTopicsKeys.length > 0) { if (this.options.resubscribe) { if (this.options.protocolVersion === 5) { debug('_resubscribe: protocolVersion 5') for (let topicI = 0; topicI < _resubscribeTopicsKeys.length; topicI++) { const resubscribeTopic = {} resubscribeTopic[_resubscribeTopicsKeys[topicI]] = this._resubscribeTopics[_resubscribeTopicsKeys[topicI]] resubscribeTopic.resubscribe = true this.subscribe(resubscribeTopic, { properties: resubscribeTopic[_resubscribeTopicsKeys[topicI]].properties }) } } else { this._resubscribeTopics.resubscribe = true this.subscribe(this._resubscribeTopics) } } else { this._resubscribeTopics = {} } } this._firstConnection = false } /** * _onConnect * * @api private */ MqttClient.prototype._onConnect = function (packet) { if (this.disconnected) { this.emit('connect', packet) return } const that = this this.connackPacket = packet this.messageIdProvider.clear() this._setupPingTimer() this.connected = true function startStreamProcess () { let outStore = that.outgoingStore.createStream() function clearStoreProcessing () { that._storeProcessing = false that._packetIdsDuringStoreProcessing = {} } that.once('close', remove) outStore.on('error', function (err) { clearStoreProcessing() that._flushStoreProcessingQueue() that.removeListener('close', remove) that.emit('error', err) }) function remove () { outStore.destroy() outStore = null that._flushStoreProcessingQueue() clearStoreProcessing() } function storeDeliver () { // edge case, we wrapped this twice if (!outStore) { return } that._storeProcessing = true const packet = outStore.read(1) let cb if (!packet) { // read when data is available in the future outStore.once('readable', storeDeliver) return } // Skip already processed store packets if (that._packetIdsDuringStoreProcessing[packet.messageId]) { storeDeliver() return } // Avoid unnecessary stream read operations when disconnected if (!that.disconnecting && !that.reconnectTimer) { cb = that.outgoing[packet.messageId] ? that.outgoing[packet.messageId].cb : null that.outgoing[packet.messageId] = { volatile: false, cb: function (err, status) { // Ensure that the original callback passed in to publish gets invoked if (cb) { cb(err, status) } storeDeliver() } } that._packetIdsDuringStoreProcessing[packet.messageId] = true if (that.messageIdProvider.register(packet.messageId)) { that._sendPacket(packet) } else { debug('messageId: %d has already used.', packet.messageId) } } else if (outStore.destroy) { outStore.destroy() } } outStore.on('end', function () { let allProcessed = true for (const id in that._packetIdsDuringStoreProcessing) { if (!that._packetIdsDuringStoreProcessing[id]) { allProcessed = false break } } if (allProcessed) { clearStoreProcessing() that.removeListener('close', remove) that._invokeAllStoreProcessingQueue() that.emit('connect', packet) } else { startStreamProcess() } }) storeDeliver() } // start flowing startStreamProcess() } MqttClient.prototype._invokeStoreProcessingQueue = function () { if (this._storeProcessingQueue.length > 0) { const f = this._storeProcessingQueue[0] if (f && f.invoke()) { this._storeProcessingQueue.shift() return true } } return false } MqttClient.prototype._invokeAllStoreProcessingQueue = function () { while (this._invokeStoreProcessingQueue()) { /* empty */ } } MqttClient.prototype._flushStoreProcessingQueue = function () { for (const f of this._storeProcessingQueue) { if (f.cbStorePut) f.cbStorePut(new Error('Connection closed')) if (f.callback) f.callback(new Error('Connection closed')) } this._storeProcessingQueue.splice(0) } module.exports = MqttClient /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"), __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) /***/ }), /***/ "./node_modules/mqtt/lib/connect/ali.js": /*!**********************************************!*\ !*** ./node_modules/mqtt/lib/connect/ali.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const { Buffer } = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js") const Transform = __webpack_require__(/*! readable-stream */ "./node_modules/mqtt/node_modules/readable-stream/readable-browser.js").Transform const duplexify = __webpack_require__(/*! duplexify */ "./node_modules/mqtt/node_modules/duplexify/index.js") /* global FileReader */ let my let proxy let stream let isInitialized = false function buildProxy () { const proxy = new Transform() proxy._write = function (chunk, encoding, next) { my.sendSocketMessage({ data: chunk.buffer, success: function () { next() }, fail: function () { next(new Error()) } }) } proxy._flush = function socketEnd (done) { my.closeSocket({ success: function () { done() } }) } return proxy } function setDefaultOpts (opts) { if (!opts.hostname) { opts.hostname = 'localhost' } if (!opts.path) { opts.path = '/' } if (!opts.wsOptions) { opts.wsOptions = {} } } function buildUrl (opts, client) { const protocol = opts.protocol === 'alis' ? 'wss' : 'ws' let url = protocol + '://' + opts.hostname + opts.path if (opts.port && opts.port !== 80 && opts.port !== 443) { url = protocol + '://' + opts.hostname + ':' + opts.port + opts.path } if (typeof (opts.transformWsUrl) === 'function') { url = opts.transformWsUrl(url, opts, client) } return url } function bindEventHandler () { if (isInitialized) return isInitialized = true my.onSocketOpen(function () { stream.setReadable(proxy) stream.setWritable(proxy) stream.emit('connect') }) my.onSocketMessage(function (res) { if (typeof res.data === 'string') { const buffer = Buffer.from(res.data, 'base64') proxy.push(buffer) } else { const reader = new FileReader() reader.addEventListener('load', function () { let data = reader.result if (data instanceof ArrayBuffer) data = Buffer.from(data) else data = Buffer.from(data, 'utf8') proxy.push(data) }) reader.readAsArrayBuffer(res.data) } }) my.onSocketClose(function () { stream.end() stream.destroy() }) my.onSocketError(function (res) { stream.destroy(res) }) } function buildStream (client, opts) { opts.hostname = opts.hostname || opts.host if (!opts.hostname) { throw new Error('Could not determine host. Specify host manually.') } const websocketSubProtocol = (opts.protocolId === 'MQIsdp') && (opts.protocolVersion === 3) ? 'mqttv3.1' : 'mqtt' setDefaultOpts(opts) const url = buildUrl(opts, client) my = opts.my my.connectSocket({ url: url, protocols: websocketSubProtocol }) proxy = buildProxy() stream = duplexify.obj() bindEventHandler() return stream } module.exports = buildStream /***/ }), /***/ "./node_modules/mqtt/lib/connect/index.js": /*!************************************************!*\ !*** ./node_modules/mqtt/lib/connect/index.js ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { const MqttClient = __webpack_require__(/*! ../client */ "./node_modules/mqtt/lib/client.js") const Store = __webpack_require__(/*! ../store */ "./node_modules/mqtt/lib/store.js") const url = __webpack_require__(/*! url */ "./node_modules/url/url.js") const xtend = __webpack_require__(/*! xtend */ "./node_modules/xtend/immutable.js") const debug = __webpack_require__(/*! debug */ "./node_modules/debug/src/browser.js")('mqttjs') const protocols = {} // eslint-disable-next-line camelcase if ((typeof process !== 'undefined' && process.title !== 'browser') || typeof __webpack_require__ !== 'function') { protocols.mqtt = __webpack_require__(/*! ./tcp */ "./node_modules/mqtt/lib/connect/tcp.js") protocols.tcp = __webpack_require__(/*! ./tcp */ "./node_modules/mqtt/lib/connect/tcp.js") protocols.ssl = __webpack_require__(/*! ./tls */ "./node_modules/mqtt/lib/connect/tls.js") protocols.tls = __webpack_require__(/*! ./tls */ "./node_modules/mqtt/lib/connect/tls.js") protocols.mqtts = __webpack_require__(/*! ./tls */ "./node_modules/mqtt/lib/connect/tls.js") } else { protocols.wx = __webpack_require__(/*! ./wx */ "./node_modules/mqtt/lib/connect/wx.js") protocols.wxs = __webpack_require__(/*! ./wx */ "./node_modules/mqtt/lib/connect/wx.js") protocols.ali = __webpack_require__(/*! ./ali */ "./node_modules/mqtt/lib/connect/ali.js") protocols.alis = __webpack_require__(/*! ./ali */ "./node_modules/mqtt/lib/connect/ali.js") } protocols.ws = __webpack_require__(/*! ./ws */ "./node_modules/mqtt/lib/connect/ws.js") protocols.wss = __webpack_require__(/*! ./ws */ "./node_modules/mqtt/lib/connect/ws.js") /** * Parse the auth attribute and merge username and password in the options object. * * @param {Object} [opts] option object */ function parseAuthOptions (opts) { let matches if (opts.auth) { matches = opts.auth.match(/^(.+):(.+)$/) if (matches) { opts.username = matches[1] opts.password = matches[2] } else { opts.username = opts.auth } } } /** * connect - connect to an MQTT broker. * * @param {String} [brokerUrl] - url of the broker, optional * @param {Object} opts - see MqttClient#constructor */ function connect (brokerUrl, opts) { debug('connecting to an MQTT broker...') if ((typeof brokerUrl === 'object') && !opts) { opts = brokerUrl brokerUrl = null } opts = opts || {} if (brokerUrl) { // eslint-disable-next-line const parsed = url.parse(brokerUrl, true) if (parsed.port != null) { parsed.port = Number(parsed.port) } opts = xtend(parsed, opts) if (opts.protocol === null) { throw new Error('Missing protocol') } opts.protocol = opts.protocol.replace(/:$/, '') } // merge in the auth options if supplied parseAuthOptions(opts) // support clientId passed in the query string of the url if (opts.query && typeof opts.query.clientId === 'string') { opts.clientId = opts.query.clientId } if (opts.cert && opts.key) { if (opts.protocol) { if (['mqtts', 'wss', 'wxs', 'alis'].indexOf(opts.protocol) === -1) { switch (opts.protocol) { case 'mqtt': opts.protocol = 'mqtts' break case 'ws': opts.protocol = 'wss' break case 'wx': opts.protocol = 'wxs' break case 'ali': opts.protocol = 'alis' break default: throw new Error('Unknown protocol for secure connection: "' + opts.protocol + '"!') } } } else { // A cert and key was provided, however no protocol was specified, so we will throw an error. throw new Error('Missing secure protocol key') } } if (!protocols[opts.protocol]) { const isSecure = ['mqtts', 'wss'].indexOf(opts.protocol) !== -1 opts.protocol = [ 'mqtt', 'mqtts', 'ws', 'wss', 'wx', 'wxs', 'ali', 'alis' ].filter(function (key, index) { if (isSecure && index % 2 === 0) { // Skip insecure protocols when requesting a secure one. return false } return (typeof protocols[key] === 'function') })[0] } if (opts.clean === false && !opts.clientId) { throw new Error('Missing clientId for unclean clients') } if (opts.protocol) { opts.defaultProtocol = opts.protocol } function wrapper (client) { if (opts.servers) { if (!client._reconnectCount || client._reconnectCount === opts.servers.length) { client._reconnectCount = 0 } opts.host = opts.servers[client._reconnectCount].host opts.port = opts.servers[client._reconnectCount].port opts.protocol = (!opts.servers[client._reconnectCount].protocol ? opts.defaultProtocol : opts.servers[client._reconnectCount].protocol) opts.hostname = opts.host client._reconnectCount++ } debug('calling streambuilder for', opts.protocol) return protocols[opts.protocol](client, opts) } const client = new MqttClient(wrapper, opts) client.on('error', function () { /* Automatically set up client error handling */ }) return client } module.exports = connect module.exports.connect = connect module.exports.MqttClient = MqttClient module.exports.Store = Store /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/mqtt/lib/connect/tcp.js": /*!**********************************************!*\ !*** ./node_modules/mqtt/lib/connect/tcp.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const net = __webpack_require__(/*! net */ 12) const debug = __webpack_require__(/*! debug */ "./node_modules/debug/src/browser.js")('mqttjs:tcp') /* variables port and host can be removed since you have all required information in opts object */ function streamBuilder (client, opts) { opts.port = opts.port || 1883 opts.hostname = opts.hostname || opts.host || 'localhost' const port = opts.port const host = opts.hostname debug('port %d and host %s', port, host) return net.createConnection(port, host) } module.exports = streamBuilder /***/ }), /***/ "./node_modules/mqtt/lib/connect/tls.js": /*!**********************************************!*\ !*** ./node_modules/mqtt/lib/connect/tls.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const tls = __webpack_require__(/*! tls */ 13) const net = __webpack_require__(/*! net */ 12) const debug = __webpack_require__(/*! debug */ "./node_modules/debug/src/browser.js")('mqttjs:tls') function buildBuilder (mqttClient, opts) { opts.port = opts.port || 8883 opts.host = opts.hostname || opts.host || 'localhost' if (net.isIP(opts.host) === 0) { opts.servername = opts.host } opts.rejectUnauthorized = opts.rejectUnauthorized !== false delete opts.path debug('port %d host %s rejectUnauthorized %b', opts.port, opts.host, opts.rejectUnauthorized) const connection = tls.connect(opts) /* eslint no-use-before-define: [2, "nofunc"] */ connection.on('secureConnect', function () { if (opts.rejectUnauthorized && !connection.authorized) { connection.emit('error', new Error('TLS not authorized')) } else { connection.removeListener('error', handleTLSerrors) } }) function handleTLSerrors (err) { // How can I get verify this error is a tls error? if (opts.rejectUnauthorized) { mqttClient.emit('error', err) } // close this connection to match the behaviour of net // otherwise all we get is an error from the connection // and close event doesn't fire. This is a work around // to enable the reconnect code to work the same as with // net.createConnection connection.end() } connection.on('error', handleTLSerrors) return connection } module.exports = buildBuilder /***/ }), /***/ "./node_modules/mqtt/lib/connect/ws.js": /*!*********************************************!*\ !*** ./node_modules/mqtt/lib/connect/ws.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { const { Buffer } = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js") const WS = __webpack_require__(/*! ws */ "./node_modules/mqtt/node_modules/ws/browser.js") const debug = __webpack_require__(/*! debug */ "./node_modules/debug/src/browser.js")('mqttjs:ws') const duplexify = __webpack_require__(/*! duplexify */ "./node_modules/mqtt/node_modules/duplexify/index.js") const Transform = __webpack_require__(/*! readable-stream */ "./node_modules/mqtt/node_modules/readable-stream/readable-browser.js").Transform const WSS_OPTIONS = [ 'rejectUnauthorized', 'ca', 'cert', 'key', 'pfx', 'passphrase' ] // eslint-disable-next-line camelcase const IS_BROWSER = (typeof process !== 'undefined' && process.title === 'browser') || typeof __webpack_require__ === 'function' function buildUrl (opts, client) { let url = opts.protocol + '://' + opts.hostname + ':' + opts.port + opts.path if (typeof (opts.transformWsUrl) === 'function') { url = opts.transformWsUrl(url, opts, client) } return url } function setDefaultOpts (opts) { const options = opts if (!opts.hostname) { options.hostname = 'localhost' } if (!opts.port) { if (opts.protocol === 'wss') { options.port = 443 } else { options.port = 80 } } if (!opts.path) { options.path = '/' } if (!opts.wsOptions) { options.wsOptions = {} } if (!IS_BROWSER && opts.protocol === 'wss') { // Add cert/key/ca etc options WSS_OPTIONS.forEach(function (prop) { if (Object.prototype.hasOwnProperty.call(opts, prop) && !Object.prototype.hasOwnProperty.call(opts.wsOptions, prop)) { options.wsOptions[prop] = opts[prop] } }) } return options } function setDefaultBrowserOpts (opts) { const options = setDefaultOpts(opts) if (!options.hostname) { options.hostname = options.host } if (!options.hostname) { // Throwing an error in a Web Worker if no `hostname` is given, because we // can not determine the `hostname` automatically. If connecting to // localhost, please supply the `hostname` as an argument. if (typeof (document) === 'undefined') { throw new Error('Could not determine host. Specify host manually.') } const parsed = new URL(document.URL) options.hostname = parsed.hostname if (!options.port) { options.port = parsed.port } } // objectMode should be defined for logic if (options.objectMode === undefined) { options.objectMode = !(options.binary === true || options.binary === undefined) } return options } function createWebSocket (client, url, opts) { debug('createWebSocket') debug('protocol: ' + opts.protocolId + ' ' + opts.protocolVersion) const websocketSubProtocol = (opts.protocolId === 'MQIsdp') && (opts.protocolVersion === 3) ? 'mqttv3.1' : 'mqtt' debug('creating new Websocket for url: ' + url + ' and protocol: ' + websocketSubProtocol) const socket = new WS(url, [websocketSubProtocol], opts.wsOptions) return socket } function createBrowserWebSocket (client, opts) { const websocketSubProtocol = (opts.protocolId === 'MQIsdp') && (opts.protocolVersion === 3) ? 'mqttv3.1' : 'mqtt' const url = buildUrl(opts, client) /* global WebSocket */ const socket = new WebSocket(url, [websocketSubProtocol]) socket.binaryType = 'arraybuffer' return socket } function streamBuilder (client, opts) { debug('streamBuilder') const options = setDefaultOpts(opts) const url = buildUrl(options, client) const socket = createWebSocket(client, url, options) const webSocketStream = WS.createWebSocketStream(socket, options.wsOptions) webSocketStream.url = url socket.on('close', () => { webSocketStream.destroy() }) return webSocketStream } function browserStreamBuilder (client, opts) { debug('browserStreamBuilder') let stream const options = setDefaultBrowserOpts(opts) // sets the maximum socket buffer size before throttling const bufferSize = options.browserBufferSize || 1024 * 512 const bufferTimeout = opts.browserBufferTimeout || 1000 const coerceToBuffer = !opts.objectMode const socket = createBrowserWebSocket(client, opts) const proxy = buildProxy(opts, socketWriteBrowser, socketEndBrowser) if (!opts.objectMode) { proxy._writev = writev } proxy.on('close', () => { socket.close() }) const eventListenerSupport = (typeof socket.addEventListener !== 'undefined') // was already open when passed in if (socket.readyState === socket.OPEN) { stream = proxy } else { stream = stream = duplexify(undefined, undefined, opts) if (!opts.objectMode) { stream._writev = writev } if (eventListenerSupport) { socket.addEventListener('open', onopen) } else { socket.onopen = onopen } } stream.socket = socket if (eventListenerSupport) { socket.addEventListener('close', onclose) socket.addEventListener('error', onerror) socket.addEventListener('message', onmessage) } else { socket.onclose = onclose socket.onerror = onerror socket.onmessage = onmessage } // methods for browserStreamBuilder function buildProxy (options, socketWrite, socketEnd) { const proxy = new Transform({ objectModeMode: options.objectMode }) proxy._write = socketWrite proxy._flush = socketEnd return proxy } function onopen () { stream.setReadable(proxy) stream.setWritable(proxy) stream.emit('connect') } function onclose () { stream.end() stream.destroy() } function onerror (err) { stream.destroy(err) } function onmessage (event) { let data = event.data if (data instanceof ArrayBuffer) data = Buffer.from(data) else data = Buffer.from(data, 'utf8') proxy.push(data) } // this is to be enabled only if objectMode is false function writev (chunks, cb) { const buffers = new Array(chunks.length) for (let i = 0; i < chunks.length; i++) { if (typeof chunks[i].chunk === 'string') { buffers[i] = Buffer.from(chunks[i], 'utf8') } else { buffers[i] = chunks[i].chunk } } this._write(Buffer.concat(buffers), 'binary', cb) } function socketWriteBrowser (chunk, enc, next) { if (socket.bufferedAmount > bufferSize) { // throttle data until buffered amount is reduced. setTimeout(socketWriteBrowser, bufferTimeout, chunk, enc, next) } if (coerceToBuffer && typeof chunk === 'string') { chunk = Buffer.from(chunk, 'utf8') } try { socket.send(chunk) } catch (err) { return next(err) } next() } function socketEndBrowser (done) { socket.close() done() } // end methods for browserStreamBuilder return stream } if (IS_BROWSER) { module.exports = browserStreamBuilder } else { module.exports = streamBuilder } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/mqtt/lib/connect/wx.js": /*!*********************************************!*\ !*** ./node_modules/mqtt/lib/connect/wx.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; const { Buffer } = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js") const Transform = __webpack_require__(/*! readable-stream */ "./node_modules/mqtt/node_modules/readable-stream/readable-browser.js").Transform const duplexify = __webpack_require__(/*! duplexify */ "./node_modules/mqtt/node_modules/duplexify/index.js") /* global wx */ let socketTask, proxy, stream function buildProxy () { const proxy = new Transform() proxy._write = function (chunk, encoding, next) { socketTask.send({ data: chunk.buffer, success: function () { next() }, fail: function (errMsg) { next(new Error(errMsg)) } }) } proxy._flush = function socketEnd (done) { socketTask.close({ success: function () { done() } }) } return proxy } function setDefaultOpts (opts) { if (!opts.hostname) { opts.hostname = 'localhost' } if (!opts.path) { opts.path = '/' } if (!opts.wsOptions) { opts.wsOptions = {} } } function buildUrl (opts, client) { const protocol = opts.protocol === 'wxs' ? 'wss' : 'ws' let url = protocol + '://' + opts.hostname + opts.path if (opts.port && opts.port !== 80 && opts.port !== 443) { url = protocol + '://' + opts.hostname + ':' + opts.port + opts.path } if (typeof (opts.transformWsUrl) === 'function') { url = opts.transformWsUrl(url, opts, client) } return url } function bindEventHandler () { socketTask.onOpen(function () { stream.setReadable(proxy) stream.setWritable(proxy) stream.emit('connect') }) socketTask.onMessage(function (res) { let data = res.data if (data instanceof ArrayBuffer) data = Buffer.from(data) else data = Buffer.from(data, 'utf8') proxy.push(data) }) socketTask.onClose(function () { stream.end() stream.destroy() }) socketTask.onError(function (res) { stream.destroy(new Error(res.errMsg)) }) } function buildStream (client, opts) { opts.hostname = opts.hostname || opts.host if (!opts.hostname) { throw new Error('Could not determine host. Specify host manually.') } const websocketSubProtocol = (opts.protocolId === 'MQIsdp') && (opts.protocolVersion === 3) ? 'mqttv3.1' : 'mqtt' setDefaultOpts(opts) const url = buildUrl(opts, client) socketTask = wx.connectSocket({ url: url, protocols: [websocketSubProtocol] }) proxy = buildProxy() stream = duplexify.obj() stream._destroy = function (err, cb) { socketTask.close({ success: function () { cb && cb(err) } }) } const destroyRef = stream.destroy stream.destroy = function () { stream.destroy = destroyRef const self = this setTimeout(function () { socketTask.close({ fail: function () { self._destroy(new Error()) } }) }, 0) }.bind(stream) bindEventHandler() return stream } module.exports = buildStream /***/ }), /***/ "./node_modules/mqtt/lib/default-message-id-provider.js": /*!**************************************************************!*\ !*** ./node_modules/mqtt/lib/default-message-id-provider.js ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * DefaultMessageAllocator constructor * @constructor */ function DefaultMessageIdProvider () { if (!(this instanceof DefaultMessageIdProvider)) { return new DefaultMessageIdProvider() } /** * MessageIDs starting with 1 * ensure that nextId is min. 1, see https://github.com/mqttjs/MQTT.js/issues/810 */ this.nextId = Math.max(1, Math.floor(Math.random() * 65535)) } /** * allocate * * Get the next messageId. * @return unsigned int */ DefaultMessageIdProvider.prototype.allocate = function () { // id becomes current state of this.nextId and increments afterwards const id = this.nextId++ // Ensure 16 bit unsigned int (max 65535, nextId got one higher) if (this.nextId === 65536) { this.nextId = 1 } return id } /** * getLastAllocated * Get the last allocated messageId. * @return unsigned int */ DefaultMessageIdProvider.prototype.getLastAllocated = function () { return (this.nextId === 1) ? 65535 : (this.nextId - 1) } /** * register * Register messageId. If success return true, otherwise return false. * @param { unsigned int } - messageId to register, * @return boolean */ DefaultMessageIdProvider.prototype.register = function (messageId) { return true } /** * deallocate * Deallocate messageId. * @param { unsigned int } - messageId to deallocate, */ DefaultMessageIdProvider.prototype.deallocate = function (messageId) { } /** * clear * Deallocate all messageIds. */ DefaultMessageIdProvider.prototype.clear = function () { } module.exports = DefaultMessageIdProvider /***/ }), /***/ "./node_modules/mqtt/lib/store.js": /*!****************************************!*\ !*** ./node_modules/mqtt/lib/store.js ***! \****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Module dependencies */ const xtend = __webpack_require__(/*! xtend */ "./node_modules/xtend/immutable.js") const Readable = __webpack_require__(/*! readable-stream */ "./node_modules/mqtt/node_modules/readable-stream/readable-browser.js").Readable const streamsOpts = { objectMode: true } const defaultStoreOptions = { clean: true } /** * In-memory implementation of the message store * This can actually be saved into files. * * @param {Object} [options] - store options */ function Store (options) { if (!(this instanceof Store)) { return new Store(options) } this.options = options || {} // Defaults this.options = xtend(defaultStoreOptions, options) this._inflights = new Map() } /** * Adds a packet to the store, a packet is * anything that has a messageId property. * */ Store.prototype.put = function (packet, cb) { this._inflights.set(packet.messageId, packet) if (cb) { cb() } return this } /** * Creates a stream with all the packets in the store * */ Store.prototype.createStream = function () { const stream = new Readable(streamsOpts) const values = [] let destroyed = false let i = 0 this._inflights.forEach(function (value, key) { values.push(value) }) stream._read = function () { if (!destroyed && i < values.length) { this.push(values[i++]) } else { this.push(null) } } stream.destroy = function () { if (destroyed) { return } const self = this destroyed = true setTimeout(function () { self.emit('close') }, 0) } return stream } /** * deletes a packet from the store. */ Store.prototype.del = function (packet, cb) { packet = this._inflights.get(packet.messageId) if (packet) { this._inflights.delete(packet.messageId) cb(null, packet) } else if (cb) { cb(new Error('missing packet')) } return this } /** * get a packet from the store. */ Store.prototype.get = function (packet, cb) { packet = this._inflights.get(packet.messageId) if (packet) { cb(null, packet) } else if (cb) { cb(new Error('missing packet')) } return this } /** * Close the store */ Store.prototype.close = function (cb) { if (this.options.clean) { this._inflights = null } if (cb) { cb() } } module.exports = Store /***/ }), /***/ "./node_modules/mqtt/lib/topic-alias-recv.js": /*!***************************************************!*\ !*** ./node_modules/mqtt/lib/topic-alias-recv.js ***! \***************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Topic Alias receiving manager * This holds alias to topic map * @param {Number} [max] - topic alias maximum entries */ function TopicAliasRecv (max) { if (!(this instanceof TopicAliasRecv)) { return new TopicAliasRecv(max) } this.aliasToTopic = {} this.max = max } /** * Insert or update topic - alias entry. * @param {String} [topic] - topic * @param {Number} [alias] - topic alias * @returns {Boolean} - if success return true otherwise false */ TopicAliasRecv.prototype.put = function (topic, alias) { if (alias === 0 || alias > this.max) { return false } this.aliasToTopic[alias] = topic this.length = Object.keys(this.aliasToTopic).length return true } /** * Get topic by alias * @param {String} [topic] - topic * @returns {Number} - if mapped topic exists return topic alias, otherwise return undefined */ TopicAliasRecv.prototype.getTopicByAlias = function (alias) { return this.aliasToTopic[alias] } /** * Clear all entries */ TopicAliasRecv.prototype.clear = function () { this.aliasToTopic = {} } module.exports = TopicAliasRecv /***/ }), /***/ "./node_modules/mqtt/lib/topic-alias-send.js": /*!***************************************************!*\ !*** ./node_modules/mqtt/lib/topic-alias-send.js ***! \***************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Module dependencies */ const LruMap = __webpack_require__(/*! lru-cache */ "./node_modules/mqtt/node_modules/lru-cache/index.js") const NumberAllocator = __webpack_require__(/*! number-allocator */ "./node_modules/number-allocator/index.js").NumberAllocator /** * Topic Alias sending manager * This holds both topic to alias and alias to topic map * @param {Number} [max] - topic alias maximum entries */ function TopicAliasSend (max) { if (!(this instanceof TopicAliasSend)) { return new TopicAliasSend(max) } if (max > 0) { this.aliasToTopic = new LruMap({ max: max }) this.topicToAlias = {} this.numberAllocator = new NumberAllocator(1, max) this.max = max this.length = 0 } } /** * Insert or update topic - alias entry. * @param {String} [topic] - topic * @param {Number} [alias] - topic alias * @returns {Boolean} - if success return true otherwise false */ TopicAliasSend.prototype.put = function (topic, alias) { if (alias === 0 || alias > this.max) { return false } const entry = this.aliasToTopic.get(alias) if (entry) { delete this.topicToAlias[entry] } this.aliasToTopic.set(alias, topic) this.topicToAlias[topic] = alias this.numberAllocator.use(alias) this.length = this.aliasToTopic.length return true } /** * Get topic by alias * @param {Number} [alias] - topic alias * @returns {String} - if mapped topic exists return topic, otherwise return undefined */ TopicAliasSend.prototype.getTopicByAlias = function (alias) { return this.aliasToTopic.get(alias) } /** * Get topic by alias * @param {String} [topic] - topic * @returns {Number} - if mapped topic exists return topic alias, otherwise return undefined */ TopicAliasSend.prototype.getAliasByTopic = function (topic) { const alias = this.topicToAlias[topic] if (typeof alias !== 'undefined') { this.aliasToTopic.get(alias) // LRU update } return alias } /** * Clear all entries */ TopicAliasSend.prototype.clear = function () { this.aliasToTopic.reset() this.topicToAlias = {} this.numberAllocator.clear() this.length = 0 } /** * Get Least Recently Used (LRU) topic alias * @returns {Number} - if vacant alias exists then return it, otherwise then return LRU alias */ TopicAliasSend.prototype.getLruAlias = function () { const alias = this.numberAllocator.firstVacant() if (alias) return alias return this.aliasToTopic.keys()[this.aliasToTopic.length - 1] } module.exports = TopicAliasSend /***/ }), /***/ "./node_modules/mqtt/lib/validations.js": /*!**********************************************!*\ !*** ./node_modules/mqtt/lib/validations.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Validate a topic to see if it's valid or not. * A topic is valid if it follow below rules: * - Rule #1: If any part of the topic is not `+` or `#`, then it must not contain `+` and '#' * - Rule #2: Part `#` must be located at the end of the mailbox * * @param {String} topic - A topic * @returns {Boolean} If the topic is valid, returns true. Otherwise, returns false. */ function validateTopic (topic) { const parts = topic.split('/') for (let i = 0; i < parts.length; i++) { if (parts[i] === '+') { continue } if (parts[i] === '#') { // for Rule #2 return i === parts.length - 1 } if (parts[i].indexOf('+') !== -1 || parts[i].indexOf('#') !== -1) { return false } } return true } /** * Validate an array of topics to see if any of them is valid or not * @param {Array} topics - Array of topics * @returns {String} If the topics is valid, returns null. Otherwise, returns the invalid one */ function validateTopics (topics) { if (topics.length === 0) { return 'empty_topic_list' } for (let i = 0; i < topics.length; i++) { if (!validateTopic(topics[i])) { return topics[i] } } return null } module.exports = { validateTopics: validateTopics } /***/ }), /***/ "./node_modules/mqtt/node_modules/duplexify/index.js": /*!***********************************************************!*\ !*** ./node_modules/mqtt/node_modules/duplexify/index.js ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(Buffer, process) {var stream = __webpack_require__(/*! readable-stream */ "./node_modules/mqtt/node_modules/readable-stream/readable-browser.js") var eos = __webpack_require__(/*! end-of-stream */ "./node_modules/end-of-stream/index.js") var inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js") var shift = __webpack_require__(/*! stream-shift */ "./node_modules/mqtt/node_modules/stream-shift/index.js") var SIGNAL_FLUSH = (Buffer.from && Buffer.from !== Uint8Array.from) ? Buffer.from([0]) : new Buffer([0]) var onuncork = function(self, fn) { if (self._corked) self.once('uncork', fn) else fn() } var autoDestroy = function (self, err) { if (self._autoDestroy) self.destroy(err) } var destroyer = function(self, end) { return function(err) { if (err) autoDestroy(self, err.message === 'premature close' ? null : err) else if (end && !self._ended) self.end() } } var end = function(ws, fn) { if (!ws) return fn() if (ws._writableState && ws._writableState.finished) return fn() if (ws._writableState) return ws.end(fn) ws.end() fn() } var noop = function() {} var toStreams2 = function(rs) { return new (stream.Readable)({objectMode:true, highWaterMark:16}).wrap(rs) } var Duplexify = function(writable, readable, opts) { if (!(this instanceof Duplexify)) return new Duplexify(writable, readable, opts) stream.Duplex.call(this, opts) this._writable = null this._readable = null this._readable2 = null this._autoDestroy = !opts || opts.autoDestroy !== false this._forwardDestroy = !opts || opts.destroy !== false this._forwardEnd = !opts || opts.end !== false this._corked = 1 // start corked this._ondrain = null this._drained = false this._forwarding = false this._unwrite = null this._unread = null this._ended = false this.destroyed = false if (writable) this.setWritable(writable) if (readable) this.setReadable(readable) } inherits(Duplexify, stream.Duplex) Duplexify.obj = function(writable, readable, opts) { if (!opts) opts = {} opts.objectMode = true opts.highWaterMark = 16 return new Duplexify(writable, readable, opts) } Duplexify.prototype.cork = function() { if (++this._corked === 1) this.emit('cork') } Duplexify.prototype.uncork = function() { if (this._corked && --this._corked === 0) this.emit('uncork') } Duplexify.prototype.setWritable = function(writable) { if (this._unwrite) this._unwrite() if (this.destroyed) { if (writable && writable.destroy) writable.destroy() return } if (writable === null || writable === false) { this.end() return } var self = this var unend = eos(writable, {writable:true, readable:false}, destroyer(this, this._forwardEnd)) var ondrain = function() { var ondrain = self._ondrain self._ondrain = null if (ondrain) ondrain() } var clear = function() { self._writable.removeListener('drain', ondrain) unend() } if (this._unwrite) process.nextTick(ondrain) // force a drain on stream reset to avoid livelocks this._writable = writable this._writable.on('drain', ondrain) this._unwrite = clear this.uncork() // always uncork setWritable } Duplexify.prototype.setReadable = function(readable) { if (this._unread) this._unread() if (this.destroyed) { if (readable && readable.destroy) readable.destroy() return } if (readable === null || readable === false) { this.push(null) this.resume() return } var self = this var unend = eos(readable, {writable:false, readable:true}, destroyer(this)) var onreadable = function() { self._forward() } var onend = function() { self.push(null) } var clear = function() { self._readable2.removeListener('readable', onreadable) self._readable2.removeListener('end', onend) unend() } this._drained = true this._readable = readable this._readable2 = readable._readableState ? readable : toStreams2(readable) this._readable2.on('readable', onreadable) this._readable2.on('end', onend) this._unread = clear this._forward() } Duplexify.prototype._read = function() { this._drained = true this._forward() } Duplexify.prototype._forward = function() { if (this._forwarding || !this._readable2 || !this._drained) return this._forwarding = true var data while (this._drained && (data = shift(this._readable2)) !== null) { if (this.destroyed) continue this._drained = this.push(data) } this._forwarding = false } Duplexify.prototype.destroy = function(err, cb) { if (!cb) cb = noop if (this.destroyed) return cb(null) this.destroyed = true var self = this process.nextTick(function() { self._destroy(err) cb(null) }) } Duplexify.prototype._destroy = function(err) { if (err) { var ondrain = this._ondrain this._ondrain = null if (ondrain) ondrain(err) else this.emit('error', err) } if (this._forwardDestroy) { if (this._readable && this._readable.destroy) this._readable.destroy() if (this._writable && this._writable.destroy) this._writable.destroy() } this.emit('close') } Duplexify.prototype._write = function(data, enc, cb) { if (this.destroyed) return if (this._corked) return onuncork(this, this._write.bind(this, data, enc, cb)) if (data === SIGNAL_FLUSH) return this._finish(cb) if (!this._writable) return cb() if (this._writable.write(data) === false) this._ondrain = cb else if (!this.destroyed) cb() } Duplexify.prototype._finish = function(cb) { var self = this this.emit('preend') onuncork(this, function() { end(self._forwardEnd && self._writable, function() { // haxx to not emit prefinish twice if (self._writableState.prefinished === false) self._writableState.prefinished = true self.emit('prefinish') onuncork(self, cb) }) }) } Duplexify.prototype.end = function(data, enc, cb) { if (typeof data === 'function') return this.end(null, null, data) if (typeof enc === 'function') return this.end(data, null, enc) this._ended = true if (data) this.write(data) if (!this._writableState.ending && !this._writableState.destroyed) this.write(SIGNAL_FLUSH) return stream.Writable.prototype.end.call(this, cb) } module.exports = Duplexify /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../buffer/index.js */ "./node_modules/buffer/index.js").Buffer, __webpack_require__(/*! ./../../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/mqtt/node_modules/lru-cache/index.js": /*!***********************************************************!*\ !*** ./node_modules/mqtt/node_modules/lru-cache/index.js ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // A linked list to keep track of recently-used-ness const Yallist = __webpack_require__(/*! yallist */ "./node_modules/mqtt/node_modules/yallist/yallist.js") const MAX = Symbol('max') const LENGTH = Symbol('length') const LENGTH_CALCULATOR = Symbol('lengthCalculator') const ALLOW_STALE = Symbol('allowStale') const MAX_AGE = Symbol('maxAge') const DISPOSE = Symbol('dispose') const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet') const LRU_LIST = Symbol('lruList') const CACHE = Symbol('cache') const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet') const naiveLength = () => 1 // lruList is a yallist where the head is the youngest // item, and the tail is the oldest. the list contains the Hit // objects as the entries. // Each Hit object has a reference to its Yallist.Node. This // never changes. // // cache is a Map (or PseudoMap) that matches the keys to // the Yallist.Node object. class LRUCache { constructor (options) { if (typeof options === 'number') options = { max: options } if (!options) options = {} if (options.max && (typeof options.max !== 'number' || options.max < 0)) throw new TypeError('max must be a non-negative number') // Kind of weird to have a default max of Infinity, but oh well. const max = this[MAX] = options.max || Infinity const lc = options.length || naiveLength this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc this[ALLOW_STALE] = options.stale || false if (options.maxAge && typeof options.maxAge !== 'number') throw new TypeError('maxAge must be a number') this[MAX_AGE] = options.maxAge || 0 this[DISPOSE] = options.dispose this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false this.reset() } // resize the cache when the max changes. set max (mL) { if (typeof mL !== 'number' || mL < 0) throw new TypeError('max must be a non-negative number') this[MAX] = mL || Infinity trim(this) } get max () { return this[MAX] } set allowStale (allowStale) { this[ALLOW_STALE] = !!allowStale } get allowStale () { return this[ALLOW_STALE] } set maxAge (mA) { if (typeof mA !== 'number') throw new TypeError('maxAge must be a non-negative number') this[MAX_AGE] = mA trim(this) } get maxAge () { return this[MAX_AGE] } // resize the cache when the lengthCalculator changes. set lengthCalculator (lC) { if (typeof lC !== 'function') lC = naiveLength if (lC !== this[LENGTH_CALCULATOR]) { this[LENGTH_CALCULATOR] = lC this[LENGTH] = 0 this[LRU_LIST].forEach(hit => { hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) this[LENGTH] += hit.length }) } trim(this) } get lengthCalculator () { return this[LENGTH_CALCULATOR] } get length () { return this[LENGTH] } get itemCount () { return this[LRU_LIST].length } rforEach (fn, thisp) { thisp = thisp || this for (let walker = this[LRU_LIST].tail; walker !== null;) { const prev = walker.prev forEachStep(this, fn, walker, thisp) walker = prev } } forEach (fn, thisp) { thisp = thisp || this for (let walker = this[LRU_LIST].head; walker !== null;) { const next = walker.next forEachStep(this, fn, walker, thisp) walker = next } } keys () { return this[LRU_LIST].toArray().map(k => k.key) } values () { return this[LRU_LIST].toArray().map(k => k.value) } reset () { if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) { this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)) } this[CACHE] = new Map() // hash of items by key this[LRU_LIST] = new Yallist() // list of items in order of use recency this[LENGTH] = 0 // length of items in the list } dump () { return this[LRU_LIST].map(hit => isStale(this, hit) ? false : { k: hit.key, v: hit.value, e: hit.now + (hit.maxAge || 0) }).toArray().filter(h => h) } dumpLru () { return this[LRU_LIST] } set (key, value, maxAge) { maxAge = maxAge || this[MAX_AGE] if (maxAge && typeof maxAge !== 'number') throw new TypeError('maxAge must be a number') const now = maxAge ? Date.now() : 0 const len = this[LENGTH_CALCULATOR](value, key) if (this[CACHE].has(key)) { if (len > this[MAX]) { del(this, this[CACHE].get(key)) return false } const node = this[CACHE].get(key) const item = node.value // dispose of the old one before overwriting // split out into 2 ifs for better coverage tracking if (this[DISPOSE]) { if (!this[NO_DISPOSE_ON_SET]) this[DISPOSE](key, item.value) } item.now = now item.maxAge = maxAge item.value = value this[LENGTH] += len - item.length item.length = len this.get(key) trim(this) return true } const hit = new Entry(key, value, len, now, maxAge) // oversized objects fall out of cache automatically. if (hit.length > this[MAX]) { if (this[DISPOSE]) this[DISPOSE](key, value) return false } this[LENGTH] += hit.length this[LRU_LIST].unshift(hit) this[CACHE].set(key, this[LRU_LIST].head) trim(this) return true } has (key) { if (!this[CACHE].has(key)) return false const hit = this[CACHE].get(key).value return !isStale(this, hit) } get (key) { return get(this, key, true) } peek (key) { return get(this, key, false) } pop () { const node = this[LRU_LIST].tail if (!node) return null del(this, node) return node.value } del (key) { del(this, this[CACHE].get(key)) } load (arr) { // reset the cache this.reset() const now = Date.now() // A previous serialized cache has the most recent items first for (let l = arr.length - 1; l >= 0; l--) { const hit = arr[l] const expiresAt = hit.e || 0 if (expiresAt === 0) // the item was created without expiration in a non aged cache this.set(hit.k, hit.v) else { const maxAge = expiresAt - now // dont add already expired items if (maxAge > 0) { this.set(hit.k, hit.v, maxAge) } } } } prune () { this[CACHE].forEach((value, key) => get(this, key, false)) } } const get = (self, key, doUse) => { const node = self[CACHE].get(key) if (node) { const hit = node.value if (isStale(self, hit)) { del(self, node) if (!self[ALLOW_STALE]) return undefined } else { if (doUse) { if (self[UPDATE_AGE_ON_GET]) node.value.now = Date.now() self[LRU_LIST].unshiftNode(node) } } return hit.value } } const isStale = (self, hit) => { if (!hit || (!hit.maxAge && !self[MAX_AGE])) return false const diff = Date.now() - hit.now return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && (diff > self[MAX_AGE]) } const trim = self => { if (self[LENGTH] > self[MAX]) { for (let walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null;) { // We know that we're about to delete this one, and also // what the next least recently used key will be, so just // go ahead and set it now. const prev = walker.prev del(self, walker) walker = prev } } } const del = (self, node) => { if (node) { const hit = node.value if (self[DISPOSE]) self[DISPOSE](hit.key, hit.value) self[LENGTH] -= hit.length self[CACHE].delete(hit.key) self[LRU_LIST].removeNode(node) } } class Entry { constructor (key, value, length, now, maxAge) { this.key = key this.value = value this.length = length this.now = now this.maxAge = maxAge || 0 } } const forEachStep = (self, fn, node, thisp) => { let hit = node.value if (isStale(self, hit)) { del(self, node) if (!self[ALLOW_STALE]) hit = undefined } if (hit) fn.call(thisp, hit.value, hit.key, self) } module.exports = LRUCache /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/errors-browser.js": /*!**************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/errors-browser.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } var codes = {}; function createErrorType(code, message, Base) { if (!Base) { Base = Error; } function getMessage(arg1, arg2, arg3) { if (typeof message === 'string') { return message; } else { return message(arg1, arg2, arg3); } } var NodeError = /*#__PURE__*/ function (_Base) { _inheritsLoose(NodeError, _Base); function NodeError(arg1, arg2, arg3) { return _Base.call(this, getMessage(arg1, arg2, arg3)) || this; } return NodeError; }(Base); NodeError.prototype.name = Base.name; NodeError.prototype.code = code; codes[code] = NodeError; } // https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js function oneOf(expected, thing) { if (Array.isArray(expected)) { var len = expected.length; expected = expected.map(function (i) { return String(i); }); if (len > 2) { return "one of ".concat(thing, " ").concat(expected.slice(0, len - 1).join(', '), ", or ") + expected[len - 1]; } else if (len === 2) { return "one of ".concat(thing, " ").concat(expected[0], " or ").concat(expected[1]); } else { return "of ".concat(thing, " ").concat(expected[0]); } } else { return "of ".concat(thing, " ").concat(String(expected)); } } // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith function startsWith(str, search, pos) { return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search; } // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith function endsWith(str, search, this_len) { if (this_len === undefined || this_len > str.length) { this_len = str.length; } return str.substring(this_len - search.length, this_len) === search; } // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes function includes(str, search, start) { if (typeof start !== 'number') { start = 0; } if (start + search.length > str.length) { return false; } else { return str.indexOf(search, start) !== -1; } } createErrorType('ERR_INVALID_OPT_VALUE', function (name, value) { return 'The value "' + value + '" is invalid for option "' + name + '"'; }, TypeError); createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) { // determiner: 'must be' or 'must not be' var determiner; if (typeof expected === 'string' && startsWith(expected, 'not ')) { determiner = 'must not be'; expected = expected.replace(/^not /, ''); } else { determiner = 'must be'; } var msg; if (endsWith(name, ' argument')) { // For cases like 'first argument' msg = "The ".concat(name, " ").concat(determiner, " ").concat(oneOf(expected, 'type')); } else { var type = includes(name, '.') ? 'property' : 'argument'; msg = "The \"".concat(name, "\" ").concat(type, " ").concat(determiner, " ").concat(oneOf(expected, 'type')); } msg += ". Received type ".concat(typeof actual); return msg; }, TypeError); createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF'); createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) { return 'The ' + name + ' method is not implemented'; }); createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close'); createErrorType('ERR_STREAM_DESTROYED', function (name) { return 'Cannot call ' + name + ' after a stream was destroyed'; }); createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times'); createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable'); createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end'); createErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError); createErrorType('ERR_UNKNOWN_ENCODING', function (arg) { return 'Unknown encoding: ' + arg; }, TypeError); createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event'); module.exports.codes = codes; /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_duplex.js": /*!******************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/lib/_stream_duplex.js ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // a duplex stream is just a stream that is both readable and writable. // Since JS doesn't have multiple prototypal inheritance, this class // prototypally inherits from Readable, and then parasitically from // Writable. /**/ var objectKeys = Object.keys || function (obj) { var keys = []; for (var key in obj) keys.push(key); return keys; }; /**/ module.exports = Duplex; var Readable = __webpack_require__(/*! ./_stream_readable */ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_readable.js"); var Writable = __webpack_require__(/*! ./_stream_writable */ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_writable.js"); __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js")(Duplex, Readable); { // Allow the keys array to be GC'ed. var keys = objectKeys(Writable.prototype); for (var v = 0; v < keys.length; v++) { var method = keys[v]; if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; } } function Duplex(options) { if (!(this instanceof Duplex)) return new Duplex(options); Readable.call(this, options); Writable.call(this, options); this.allowHalfOpen = true; if (options) { if (options.readable === false) this.readable = false; if (options.writable === false) this.writable = false; if (options.allowHalfOpen === false) { this.allowHalfOpen = false; this.once('end', onend); } } } Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._writableState.highWaterMark; } }); Object.defineProperty(Duplex.prototype, 'writableBuffer', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._writableState && this._writableState.getBuffer(); } }); Object.defineProperty(Duplex.prototype, 'writableLength', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._writableState.length; } }); // the no-half-open enforcer function onend() { // If the writable side ended, then we're ok. if (this._writableState.ended) return; // no more data can be written. // But allow more writes to happen in this tick. process.nextTick(onEndNT, this); } function onEndNT(self) { self.end(); } Object.defineProperty(Duplex.prototype, 'destroyed', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { if (this._readableState === undefined || this._writableState === undefined) { return false; } return this._readableState.destroyed && this._writableState.destroyed; }, set: function set(value) { // we ignore the value if the stream // has not been initialized yet if (this._readableState === undefined || this._writableState === undefined) { return; } // backward compatibility, the user is explicitly // managing destroyed this._readableState.destroyed = value; this._writableState.destroyed = value; } }); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_passthrough.js": /*!***********************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/lib/_stream_passthrough.js ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // a passthrough stream. // basically just the most minimal sort of Transform stream. // Every written chunk gets output as-is. module.exports = PassThrough; var Transform = __webpack_require__(/*! ./_stream_transform */ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_transform.js"); __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js")(PassThrough, Transform); function PassThrough(options) { if (!(this instanceof PassThrough)) return new PassThrough(options); Transform.call(this, options); } PassThrough.prototype._transform = function (chunk, encoding, cb) { cb(null, chunk); }; /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_readable.js": /*!********************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/lib/_stream_readable.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. module.exports = Readable; /**/ var Duplex; /**/ Readable.ReadableState = ReadableState; /**/ var EE = __webpack_require__(/*! events */ "./node_modules/events/events.js").EventEmitter; var EElistenerCount = function EElistenerCount(emitter, type) { return emitter.listeners(type).length; }; /**/ /**/ var Stream = __webpack_require__(/*! ./internal/streams/stream */ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/stream-browser.js"); /**/ var Buffer = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js").Buffer; var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); } function _isUint8Array(obj) { return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; } /**/ var debugUtil = __webpack_require__(/*! util */ 4); var debug; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog('stream'); } else { debug = function debug() {}; } /**/ var BufferList = __webpack_require__(/*! ./internal/streams/buffer_list */ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/buffer_list.js"); var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/destroy.js"); var _require = __webpack_require__(/*! ./internal/streams/state */ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/state.js"), getHighWaterMark = _require.getHighWaterMark; var _require$codes = __webpack_require__(/*! ../errors */ "./node_modules/mqtt/node_modules/readable-stream/errors-browser.js").codes, ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF, ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; // Lazy loaded to improve the startup performance. var StringDecoder; var createReadableStreamAsyncIterator; var from; __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js")(Readable, Stream); var errorOrDestroy = destroyImpl.errorOrDestroy; var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume']; function prependListener(emitter, event, fn) { // Sadly this is not cacheable as some libraries bundle their own // event emitter implementation with them. if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any // userland ones. NEVER DO THIS. This is here only because this code needs // to continue to work with older versions of Node.js that do not include // the prependListener() method. The goal is to eventually remove this hack. if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; } function ReadableState(options, stream, isDuplex) { Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_duplex.js"); options = options || {}; // Duplex streams are both readable and writable, but share // the same options object. // However, some cases require setting options to different // values for the readable and the writable sides of the duplex stream. // These options can be provided separately as readableXXX and writableXXX. if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to // make all the buffer merging and length checks go away this.objectMode = !!options.objectMode; if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer // Note: 0 is a valid value, means "don't call _read preemptively ever" this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); // A linked list is used to store data chunks instead of an array because the // linked list can remove elements from the beginning faster than // array.shift() this.buffer = new BufferList(); this.length = 0; this.pipes = null; this.pipesCount = 0; this.flowing = null; this.ended = false; this.endEmitted = false; this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted // immediately, or on a later tick. We set this to true at first, because // any actions that shouldn't happen until "later" should generally also // not happen before the first read call. this.sync = true; // whenever we return null, then we set a flag to say // that we're awaiting a 'readable' event emission. this.needReadable = false; this.emittedReadable = false; this.readableListening = false; this.resumeScheduled = false; this.paused = true; // Should close be emitted on destroy. Defaults to true. this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'end' (and potentially 'finish') this.autoDestroy = !!options.autoDestroy; // has it been destroyed this.destroyed = false; // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled this.readingMore = false; this.decoder = null; this.encoding = null; if (options.encoding) { if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ "./node_modules/string_decoder/lib/string_decoder.js").StringDecoder; this.decoder = new StringDecoder(options.encoding); this.encoding = options.encoding; } } function Readable(options) { Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_duplex.js"); if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside // the ReadableState constructor, at least with V8 6.5 var isDuplex = this instanceof Duplex; this._readableState = new ReadableState(options, this, isDuplex); // legacy this.readable = true; if (options) { if (typeof options.read === 'function') this._read = options.read; if (typeof options.destroy === 'function') this._destroy = options.destroy; } Stream.call(this); } Object.defineProperty(Readable.prototype, 'destroyed', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { if (this._readableState === undefined) { return false; } return this._readableState.destroyed; }, set: function set(value) { // we ignore the value if the stream // has not been initialized yet if (!this._readableState) { return; } // backward compatibility, the user is explicitly // managing destroyed this._readableState.destroyed = value; } }); Readable.prototype.destroy = destroyImpl.destroy; Readable.prototype._undestroy = destroyImpl.undestroy; Readable.prototype._destroy = function (err, cb) { cb(err); }; // Manually shove something into the read() buffer. // This returns true if the highWaterMark has not been hit yet, // similar to how Writable.write() returns true if you should // write() some more. Readable.prototype.push = function (chunk, encoding) { var state = this._readableState; var skipChunkCheck; if (!state.objectMode) { if (typeof chunk === 'string') { encoding = encoding || state.defaultEncoding; if (encoding !== state.encoding) { chunk = Buffer.from(chunk, encoding); encoding = ''; } skipChunkCheck = true; } } else { skipChunkCheck = true; } return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); }; // Unshift should *always* be something directly out of read() Readable.prototype.unshift = function (chunk) { return readableAddChunk(this, chunk, null, true, false); }; function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { debug('readableAddChunk', chunk); var state = stream._readableState; if (chunk === null) { state.reading = false; onEofChunk(stream, state); } else { var er; if (!skipChunkCheck) er = chunkInvalid(state, chunk); if (er) { errorOrDestroy(stream, er); } else if (state.objectMode || chunk && chunk.length > 0) { if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) { chunk = _uint8ArrayToBuffer(chunk); } if (addToFront) { if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true); } else if (state.ended) { errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF()); } else if (state.destroyed) { return false; } else { state.reading = false; if (state.decoder && !encoding) { chunk = state.decoder.write(chunk); if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state); } else { addChunk(stream, state, chunk, false); } } } else if (!addToFront) { state.reading = false; maybeReadMore(stream, state); } } // We can push more data if we are below the highWaterMark. // Also, if we have no data yet, we can stand some more bytes. // This is to work around cases where hwm=0, such as the repl. return !state.ended && (state.length < state.highWaterMark || state.length === 0); } function addChunk(stream, state, chunk, addToFront) { if (state.flowing && state.length === 0 && !state.sync) { state.awaitDrain = 0; stream.emit('data', chunk); } else { // update the buffer info. state.length += state.objectMode ? 1 : chunk.length; if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); if (state.needReadable) emitReadable(stream); } maybeReadMore(stream, state); } function chunkInvalid(state, chunk) { var er; if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk); } return er; } Readable.prototype.isPaused = function () { return this._readableState.flowing === false; }; // backwards compatibility. Readable.prototype.setEncoding = function (enc) { if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ "./node_modules/string_decoder/lib/string_decoder.js").StringDecoder; var decoder = new StringDecoder(enc); this._readableState.decoder = decoder; // If setEncoding(null), decoder.encoding equals utf8 this._readableState.encoding = this._readableState.decoder.encoding; // Iterate over current buffer to convert already stored Buffers: var p = this._readableState.buffer.head; var content = ''; while (p !== null) { content += decoder.write(p.data); p = p.next; } this._readableState.buffer.clear(); if (content !== '') this._readableState.buffer.push(content); this._readableState.length = content.length; return this; }; // Don't raise the hwm > 1GB var MAX_HWM = 0x40000000; function computeNewHighWaterMark(n) { if (n >= MAX_HWM) { // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE. n = MAX_HWM; } else { // Get the next highest power of 2 to prevent increasing hwm excessively in // tiny amounts n--; n |= n >>> 1; n |= n >>> 2; n |= n >>> 4; n |= n >>> 8; n |= n >>> 16; n++; } return n; } // This function is designed to be inlinable, so please take care when making // changes to the function body. function howMuchToRead(n, state) { if (n <= 0 || state.length === 0 && state.ended) return 0; if (state.objectMode) return 1; if (n !== n) { // Only flow one buffer at a time if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; } // If we're asking for more than the current hwm, then raise the hwm. if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); if (n <= state.length) return n; // Don't have enough if (!state.ended) { state.needReadable = true; return 0; } return state.length; } // you can override either this method, or the async _read(n) below. Readable.prototype.read = function (n) { debug('read', n); n = parseInt(n, 10); var state = this._readableState; var nOrig = n; if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we // already have a bunch of data in the buffer, then just trigger // the 'readable' event and move on. if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) { debug('read: emitReadable', state.length, state.ended); if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); return null; } n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up. if (n === 0 && state.ended) { if (state.length === 0) endReadable(this); return null; } // All the actual chunk generation logic needs to be // *below* the call to _read. The reason is that in certain // synthetic stream cases, such as passthrough streams, _read // may be a completely synchronous operation which may change // the state of the read buffer, providing enough data when // before there was *not* enough. // // So, the steps are: // 1. Figure out what the state of things will be after we do // a read from the buffer. // // 2. If that resulting state will trigger a _read, then call _read. // Note that this may be asynchronous, or synchronous. Yes, it is // deeply ugly to write APIs this way, but that still doesn't mean // that the Readable class should behave improperly, as streams are // designed to be sync/async agnostic. // Take note if the _read call is sync or async (ie, if the read call // has returned yet), so that we know whether or not it's safe to emit // 'readable' etc. // // 3. Actually pull the requested chunks out of the buffer and return. // if we need a readable event, then we need to do some reading. var doRead = state.needReadable; debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some if (state.length === 0 || state.length - n < state.highWaterMark) { doRead = true; debug('length less than watermark', doRead); } // however, if we've ended, then there's no point, and if we're already // reading, then it's unnecessary. if (state.ended || state.reading) { doRead = false; debug('reading or ended', doRead); } else if (doRead) { debug('do read'); state.reading = true; state.sync = true; // if the length is currently zero, then we *need* a readable event. if (state.length === 0) state.needReadable = true; // call internal read method this._read(state.highWaterMark); state.sync = false; // If _read pushed data synchronously, then `reading` will be false, // and we need to re-evaluate how much data we can return to the user. if (!state.reading) n = howMuchToRead(nOrig, state); } var ret; if (n > 0) ret = fromList(n, state);else ret = null; if (ret === null) { state.needReadable = state.length <= state.highWaterMark; n = 0; } else { state.length -= n; state.awaitDrain = 0; } if (state.length === 0) { // If we have nothing in the buffer, then we want to know // as soon as we *do* get something into the buffer. if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick. if (nOrig !== n && state.ended) endReadable(this); } if (ret !== null) this.emit('data', ret); return ret; }; function onEofChunk(stream, state) { debug('onEofChunk'); if (state.ended) return; if (state.decoder) { var chunk = state.decoder.end(); if (chunk && chunk.length) { state.buffer.push(chunk); state.length += state.objectMode ? 1 : chunk.length; } } state.ended = true; if (state.sync) { // if we are sync, wait until next tick to emit the data. // Otherwise we risk emitting data in the flow() // the readable code triggers during a read() call emitReadable(stream); } else { // emit 'readable' now to make sure it gets picked up. state.needReadable = false; if (!state.emittedReadable) { state.emittedReadable = true; emitReadable_(stream); } } } // Don't emit readable right away in sync mode, because this can trigger // another read() call => stack overflow. This way, it might trigger // a nextTick recursion warning, but that's not so bad. function emitReadable(stream) { var state = stream._readableState; debug('emitReadable', state.needReadable, state.emittedReadable); state.needReadable = false; if (!state.emittedReadable) { debug('emitReadable', state.flowing); state.emittedReadable = true; process.nextTick(emitReadable_, stream); } } function emitReadable_(stream) { var state = stream._readableState; debug('emitReadable_', state.destroyed, state.length, state.ended); if (!state.destroyed && (state.length || state.ended)) { stream.emit('readable'); state.emittedReadable = false; } // The stream needs another readable event if // 1. It is not flowing, as the flow mechanism will take // care of it. // 2. It is not ended. // 3. It is below the highWaterMark, so we can schedule // another readable later. state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark; flow(stream); } // at this point, the user has presumably seen the 'readable' event, // and called read() to consume some data. that may have triggered // in turn another _read(n) call, in which case reading = true if // it's in progress. // However, if we're not ended, or reading, and the length < hwm, // then go ahead and try to read some more preemptively. function maybeReadMore(stream, state) { if (!state.readingMore) { state.readingMore = true; process.nextTick(maybeReadMore_, stream, state); } } function maybeReadMore_(stream, state) { // Attempt to read more data if we should. // // The conditions for reading more data are (one of): // - Not enough data buffered (state.length < state.highWaterMark). The loop // is responsible for filling the buffer with enough data if such data // is available. If highWaterMark is 0 and we are not in the flowing mode // we should _not_ attempt to buffer any extra data. We'll get more data // when the stream consumer calls read() instead. // - No data in the buffer, and the stream is in flowing mode. In this mode // the loop below is responsible for ensuring read() is called. Failing to // call read here would abort the flow and there's no other mechanism for // continuing the flow if the stream consumer has just subscribed to the // 'data' event. // // In addition to the above conditions to keep reading data, the following // conditions prevent the data from being read: // - The stream has ended (state.ended). // - There is already a pending 'read' operation (state.reading). This is a // case where the the stream has called the implementation defined _read() // method, but they are processing the call asynchronously and have _not_ // called push() with new data. In this case we skip performing more // read()s. The execution ends in this method again after the _read() ends // up calling push() with more data. while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) { var len = state.length; debug('maybeReadMore read 0'); stream.read(0); if (len === state.length) // didn't get any data, stop spinning. break; } state.readingMore = false; } // abstract method. to be overridden in specific implementation classes. // call cb(er, data) where data is <= n in length. // for virtual (non-string, non-buffer) streams, "length" is somewhat // arbitrary, and perhaps not very meaningful. Readable.prototype._read = function (n) { errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()')); }; Readable.prototype.pipe = function (dest, pipeOpts) { var src = this; var state = this._readableState; switch (state.pipesCount) { case 0: state.pipes = dest; break; case 1: state.pipes = [state.pipes, dest]; break; default: state.pipes.push(dest); break; } state.pipesCount += 1; debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; var endFn = doEnd ? onend : unpipe; if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn); dest.on('unpipe', onunpipe); function onunpipe(readable, unpipeInfo) { debug('onunpipe'); if (readable === src) { if (unpipeInfo && unpipeInfo.hasUnpiped === false) { unpipeInfo.hasUnpiped = true; cleanup(); } } } function onend() { debug('onend'); dest.end(); } // when the dest drains, it reduces the awaitDrain counter // on the source. This would be more elegant with a .once() // handler in flow(), but adding and removing repeatedly is // too slow. var ondrain = pipeOnDrain(src); dest.on('drain', ondrain); var cleanedUp = false; function cleanup() { debug('cleanup'); // cleanup event handlers once the pipe is broken dest.removeListener('close', onclose); dest.removeListener('finish', onfinish); dest.removeListener('drain', ondrain); dest.removeListener('error', onerror); dest.removeListener('unpipe', onunpipe); src.removeListener('end', onend); src.removeListener('end', unpipe); src.removeListener('data', ondata); cleanedUp = true; // if the reader is waiting for a drain event from this // specific writer, then it would cause it to never start // flowing again. // So, if this is awaiting a drain, then we just call it now. // If we don't know, then assume that we are waiting for one. if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); } src.on('data', ondata); function ondata(chunk) { debug('ondata'); var ret = dest.write(chunk); debug('dest.write', ret); if (ret === false) { // If the user unpiped during `dest.write()`, it is possible // to get stuck in a permanently paused state if that write // also returned false. // => Check whether `dest` is still a piping destination. if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { debug('false write response, pause', state.awaitDrain); state.awaitDrain++; } src.pause(); } } // if the dest has an error, then stop piping into it. // however, don't suppress the throwing behavior for this. function onerror(er) { debug('onerror', er); unpipe(); dest.removeListener('error', onerror); if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er); } // Make sure our error handler is attached before userland ones. prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once. function onclose() { dest.removeListener('finish', onfinish); unpipe(); } dest.once('close', onclose); function onfinish() { debug('onfinish'); dest.removeListener('close', onclose); unpipe(); } dest.once('finish', onfinish); function unpipe() { debug('unpipe'); src.unpipe(dest); } // tell the dest that it's being piped to dest.emit('pipe', src); // start the flow if it hasn't been started already. if (!state.flowing) { debug('pipe resume'); src.resume(); } return dest; }; function pipeOnDrain(src) { return function pipeOnDrainFunctionResult() { var state = src._readableState; debug('pipeOnDrain', state.awaitDrain); if (state.awaitDrain) state.awaitDrain--; if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { state.flowing = true; flow(src); } }; } Readable.prototype.unpipe = function (dest) { var state = this._readableState; var unpipeInfo = { hasUnpiped: false }; // if we're not piping anywhere, then do nothing. if (state.pipesCount === 0) return this; // just one destination. most common case. if (state.pipesCount === 1) { // passed in one, but it's not the right one. if (dest && dest !== state.pipes) return this; if (!dest) dest = state.pipes; // got a match. state.pipes = null; state.pipesCount = 0; state.flowing = false; if (dest) dest.emit('unpipe', this, unpipeInfo); return this; } // slow case. multiple pipe destinations. if (!dest) { // remove all. var dests = state.pipes; var len = state.pipesCount; state.pipes = null; state.pipesCount = 0; state.flowing = false; for (var i = 0; i < len; i++) dests[i].emit('unpipe', this, { hasUnpiped: false }); return this; } // try to find the right one. var index = indexOf(state.pipes, dest); if (index === -1) return this; state.pipes.splice(index, 1); state.pipesCount -= 1; if (state.pipesCount === 1) state.pipes = state.pipes[0]; dest.emit('unpipe', this, unpipeInfo); return this; }; // set up data events if they are asked for // Ensure readable listeners eventually get something Readable.prototype.on = function (ev, fn) { var res = Stream.prototype.on.call(this, ev, fn); var state = this._readableState; if (ev === 'data') { // update readableListening so that resume() may be a no-op // a few lines down. This is needed to support once('readable'). state.readableListening = this.listenerCount('readable') > 0; // Try start flowing on next tick if stream isn't explicitly paused if (state.flowing !== false) this.resume(); } else if (ev === 'readable') { if (!state.endEmitted && !state.readableListening) { state.readableListening = state.needReadable = true; state.flowing = false; state.emittedReadable = false; debug('on readable', state.length, state.reading); if (state.length) { emitReadable(this); } else if (!state.reading) { process.nextTick(nReadingNextTick, this); } } } return res; }; Readable.prototype.addListener = Readable.prototype.on; Readable.prototype.removeListener = function (ev, fn) { var res = Stream.prototype.removeListener.call(this, ev, fn); if (ev === 'readable') { // We need to check if there is someone still listening to // readable and reset the state. However this needs to happen // after readable has been emitted but before I/O (nextTick) to // support once('readable', fn) cycles. This means that calling // resume within the same tick will have no // effect. process.nextTick(updateReadableListening, this); } return res; }; Readable.prototype.removeAllListeners = function (ev) { var res = Stream.prototype.removeAllListeners.apply(this, arguments); if (ev === 'readable' || ev === undefined) { // We need to check if there is someone still listening to // readable and reset the state. However this needs to happen // after readable has been emitted but before I/O (nextTick) to // support once('readable', fn) cycles. This means that calling // resume within the same tick will have no // effect. process.nextTick(updateReadableListening, this); } return res; }; function updateReadableListening(self) { var state = self._readableState; state.readableListening = self.listenerCount('readable') > 0; if (state.resumeScheduled && !state.paused) { // flowing needs to be set to true now, otherwise // the upcoming resume will not flow. state.flowing = true; // crude way to check if we should resume } else if (self.listenerCount('data') > 0) { self.resume(); } } function nReadingNextTick(self) { debug('readable nexttick read 0'); self.read(0); } // pause() and resume() are remnants of the legacy readable stream API // If the user uses them, then switch into old mode. Readable.prototype.resume = function () { var state = this._readableState; if (!state.flowing) { debug('resume'); // we flow only if there is no one listening // for readable, but we still have to call // resume() state.flowing = !state.readableListening; resume(this, state); } state.paused = false; return this; }; function resume(stream, state) { if (!state.resumeScheduled) { state.resumeScheduled = true; process.nextTick(resume_, stream, state); } } function resume_(stream, state) { debug('resume', state.reading); if (!state.reading) { stream.read(0); } state.resumeScheduled = false; stream.emit('resume'); flow(stream); if (state.flowing && !state.reading) stream.read(0); } Readable.prototype.pause = function () { debug('call pause flowing=%j', this._readableState.flowing); if (this._readableState.flowing !== false) { debug('pause'); this._readableState.flowing = false; this.emit('pause'); } this._readableState.paused = true; return this; }; function flow(stream) { var state = stream._readableState; debug('flow', state.flowing); while (state.flowing && stream.read() !== null); } // wrap an old-style stream as the async data source. // This is *not* part of the readable stream interface. // It is an ugly unfortunate mess of history. Readable.prototype.wrap = function (stream) { var _this = this; var state = this._readableState; var paused = false; stream.on('end', function () { debug('wrapped end'); if (state.decoder && !state.ended) { var chunk = state.decoder.end(); if (chunk && chunk.length) _this.push(chunk); } _this.push(null); }); stream.on('data', function (chunk) { debug('wrapped data'); if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; var ret = _this.push(chunk); if (!ret) { paused = true; stream.pause(); } }); // proxy all the other methods. // important when wrapping filters and duplexes. for (var i in stream) { if (this[i] === undefined && typeof stream[i] === 'function') { this[i] = function methodWrap(method) { return function methodWrapReturnFunction() { return stream[method].apply(stream, arguments); }; }(i); } } // proxy certain important events. for (var n = 0; n < kProxyEvents.length; n++) { stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); } // when we try to consume some more bytes, simply unpause the // underlying stream. this._read = function (n) { debug('wrapped _read', n); if (paused) { paused = false; stream.resume(); } }; return this; }; if (typeof Symbol === 'function') { Readable.prototype[Symbol.asyncIterator] = function () { if (createReadableStreamAsyncIterator === undefined) { createReadableStreamAsyncIterator = __webpack_require__(/*! ./internal/streams/async_iterator */ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/async_iterator.js"); } return createReadableStreamAsyncIterator(this); }; } Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._readableState.highWaterMark; } }); Object.defineProperty(Readable.prototype, 'readableBuffer', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._readableState && this._readableState.buffer; } }); Object.defineProperty(Readable.prototype, 'readableFlowing', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._readableState.flowing; }, set: function set(state) { if (this._readableState) { this._readableState.flowing = state; } } }); // exposed for testing purposes only. Readable._fromList = fromList; Object.defineProperty(Readable.prototype, 'readableLength', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._readableState.length; } }); // Pluck off n bytes from an array of buffers. // Length is the combined lengths of all the buffers in the list. // This function is designed to be inlinable, so please take care when making // changes to the function body. function fromList(n, state) { // nothing buffered if (state.length === 0) return null; var ret; if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { // read it all, truncate the list if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length); state.buffer.clear(); } else { // read part of list ret = state.buffer.consume(n, state.decoder); } return ret; } function endReadable(stream) { var state = stream._readableState; debug('endReadable', state.endEmitted); if (!state.endEmitted) { state.ended = true; process.nextTick(endReadableNT, state, stream); } } function endReadableNT(state, stream) { debug('endReadableNT', state.endEmitted, state.length); // Check that we didn't get one last unshift. if (!state.endEmitted && state.length === 0) { state.endEmitted = true; stream.readable = false; stream.emit('end'); if (state.autoDestroy) { // In case of duplex streams we need a way to detect // if the writable side is ready for autoDestroy as well var wState = stream._writableState; if (!wState || wState.autoDestroy && wState.finished) { stream.destroy(); } } } } if (typeof Symbol === 'function') { Readable.from = function (iterable, opts) { if (from === undefined) { from = __webpack_require__(/*! ./internal/streams/from */ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/from-browser.js"); } return from(Readable, iterable, opts); }; } function indexOf(xs, x) { for (var i = 0, l = xs.length; i < l; i++) { if (xs[i] === x) return i; } return -1; } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_transform.js": /*!*********************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/lib/_stream_transform.js ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // a transform stream is a readable/writable stream where you do // something with the data. Sometimes it's called a "filter", // but that's not a great name for it, since that implies a thing where // some bits pass through, and others are simply ignored. (That would // be a valid example of a transform, of course.) // // While the output is causally related to the input, it's not a // necessarily symmetric or synchronous transformation. For example, // a zlib stream might take multiple plain-text writes(), and then // emit a single compressed chunk some time in the future. // // Here's how this works: // // The Transform stream has all the aspects of the readable and writable // stream classes. When you write(chunk), that calls _write(chunk,cb) // internally, and returns false if there's a lot of pending writes // buffered up. When you call read(), that calls _read(n) until // there's enough pending readable data buffered up. // // In a transform stream, the written data is placed in a buffer. When // _read(n) is called, it transforms the queued up data, calling the // buffered _write cb's as it consumes chunks. If consuming a single // written chunk would result in multiple output chunks, then the first // outputted bit calls the readcb, and subsequent chunks just go into // the read buffer, and will cause it to emit 'readable' if necessary. // // This way, back-pressure is actually determined by the reading side, // since _read has to be called to start processing a new chunk. However, // a pathological inflate type of transform can cause excessive buffering // here. For example, imagine a stream where every byte of input is // interpreted as an integer from 0-255, and then results in that many // bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in // 1kb of data being output. In this case, you could write a very small // amount of input, and end up with a very large amount of output. In // such a pathological inflating mechanism, there'd be no way to tell // the system to stop doing the transform. A single 4MB write could // cause the system to run out of memory. // // However, even in such a pathological case, only a single written chunk // would be consumed, and then the rest would wait (un-transformed) until // the results of the previous transformed chunk were consumed. module.exports = Transform; var _require$codes = __webpack_require__(/*! ../errors */ "./node_modules/mqtt/node_modules/readable-stream/errors-browser.js").codes, ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING, ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0; var Duplex = __webpack_require__(/*! ./_stream_duplex */ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_duplex.js"); __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js")(Transform, Duplex); function afterTransform(er, data) { var ts = this._transformState; ts.transforming = false; var cb = ts.writecb; if (cb === null) { return this.emit('error', new ERR_MULTIPLE_CALLBACK()); } ts.writechunk = null; ts.writecb = null; if (data != null) // single equals check for both `null` and `undefined` this.push(data); cb(er); var rs = this._readableState; rs.reading = false; if (rs.needReadable || rs.length < rs.highWaterMark) { this._read(rs.highWaterMark); } } function Transform(options) { if (!(this instanceof Transform)) return new Transform(options); Duplex.call(this, options); this._transformState = { afterTransform: afterTransform.bind(this), needTransform: false, transforming: false, writecb: null, writechunk: null, writeencoding: null }; // start out asking for a readable event once data is transformed. this._readableState.needReadable = true; // we have implemented the _read method, and done the other things // that Readable wants before the first _read call, so unset the // sync guard flag. this._readableState.sync = false; if (options) { if (typeof options.transform === 'function') this._transform = options.transform; if (typeof options.flush === 'function') this._flush = options.flush; } // When the writable side finishes, then flush out anything remaining. this.on('prefinish', prefinish); } function prefinish() { var _this = this; if (typeof this._flush === 'function' && !this._readableState.destroyed) { this._flush(function (er, data) { done(_this, er, data); }); } else { done(this, null, null); } } Transform.prototype.push = function (chunk, encoding) { this._transformState.needTransform = false; return Duplex.prototype.push.call(this, chunk, encoding); }; // This is the part where you do stuff! // override this function in implementation classes. // 'chunk' is an input chunk. // // Call `push(newChunk)` to pass along transformed output // to the readable side. You may call 'push' zero or more times. // // Call `cb(err)` when you are done with this chunk. If you pass // an error, then that'll put the hurt on the whole operation. If you // never call cb(), then you'll never get another chunk. Transform.prototype._transform = function (chunk, encoding, cb) { cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()')); }; Transform.prototype._write = function (chunk, encoding, cb) { var ts = this._transformState; ts.writecb = cb; ts.writechunk = chunk; ts.writeencoding = encoding; if (!ts.transforming) { var rs = this._readableState; if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); } }; // Doesn't matter what the args are here. // _transform does all the work. // That we got here means that the readable side wants more data. Transform.prototype._read = function (n) { var ts = this._transformState; if (ts.writechunk !== null && !ts.transforming) { ts.transforming = true; this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); } else { // mark that we need a transform, so that any data that comes in // will get processed, now that we've asked for it. ts.needTransform = true; } }; Transform.prototype._destroy = function (err, cb) { Duplex.prototype._destroy.call(this, err, function (err2) { cb(err2); }); }; function done(stream, er, data) { if (er) return stream.emit('error', er); if (data != null) // single equals check for both `null` and `undefined` stream.push(data); // TODO(BridgeAR): Write a test for these two error cases // if there's nothing in the write buffer, then that means // that nothing more will ever be provided if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0(); if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING(); return stream.push(null); } /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_writable.js": /*!********************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/lib/_stream_writable.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // A bit simpler than readable streams. // Implement an async ._write(chunk, encoding, cb), and it'll handle all // the drain event emission and buffering. module.exports = Writable; /* */ function WriteReq(chunk, encoding, cb) { this.chunk = chunk; this.encoding = encoding; this.callback = cb; this.next = null; } // It seems a linked list but it is not // there will be only 2 of these for each stream function CorkedRequest(state) { var _this = this; this.next = null; this.entry = null; this.finish = function () { onCorkedFinish(_this, state); }; } /* */ /**/ var Duplex; /**/ Writable.WritableState = WritableState; /**/ var internalUtil = { deprecate: __webpack_require__(/*! util-deprecate */ "./node_modules/util-deprecate/browser.js") }; /**/ /**/ var Stream = __webpack_require__(/*! ./internal/streams/stream */ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/stream-browser.js"); /**/ var Buffer = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js").Buffer; var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); } function _isUint8Array(obj) { return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; } var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/destroy.js"); var _require = __webpack_require__(/*! ./internal/streams/state */ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/state.js"), getHighWaterMark = _require.getHighWaterMark; var _require$codes = __webpack_require__(/*! ../errors */ "./node_modules/mqtt/node_modules/readable-stream/errors-browser.js").codes, ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE, ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED, ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES, ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END, ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING; var errorOrDestroy = destroyImpl.errorOrDestroy; __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js")(Writable, Stream); function nop() {} function WritableState(options, stream, isDuplex) { Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_duplex.js"); options = options || {}; // Duplex streams are both readable and writable, but share // the same options object. // However, some cases require setting options to different // values for the readable and the writable sides of the duplex stream, // e.g. options.readableObjectMode vs. options.writableObjectMode, etc. if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream // contains buffers or objects. this.objectMode = !!options.objectMode; if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false // Note: 0 is a valid value, means that we always return false if // the entire buffer is not flushed immediately on write() this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); // if _final has been called this.finalCalled = false; // drain event flag. this.needDrain = false; // at the start of calling end() this.ending = false; // when end() has been called, and returned this.ended = false; // when 'finish' is emitted this.finished = false; // has it been destroyed this.destroyed = false; // should we decode strings into buffers before passing to _write? // this is here so that some node-core streams can optimize string // handling at a lower level. var noDecode = options.decodeStrings === false; this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement // of how much we're waiting to get pushed to some underlying // socket or file. this.length = 0; // a flag to see when we're in the middle of a write. this.writing = false; // when true all writes will be buffered until .uncork() call this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately, // or on a later tick. We set this to true at first, because any // actions that shouldn't happen until "later" should generally also // not happen before the first write call. this.sync = true; // a flag to know if we're processing previously buffered items, which // may call the _write() callback in the same tick, so that we don't // end up in an overlapped onwrite situation. this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb) this.onwrite = function (er) { onwrite(stream, er); }; // the callback that the user supplies to write(chunk,encoding,cb) this.writecb = null; // the amount that is being written when _write is called. this.writelen = 0; this.bufferedRequest = null; this.lastBufferedRequest = null; // number of pending user-supplied write callbacks // this must be 0 before 'finish' can be emitted this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs // This is relevant for synchronous Transform streams this.prefinished = false; // True if the error was already emitted and should not be thrown again this.errorEmitted = false; // Should close be emitted on destroy. Defaults to true. this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'finish' (and potentially 'end') this.autoDestroy = !!options.autoDestroy; // count buffered requests this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always // one allocated and free to use, and we maintain at most two this.corkedRequestsFree = new CorkedRequest(this); } WritableState.prototype.getBuffer = function getBuffer() { var current = this.bufferedRequest; var out = []; while (current) { out.push(current); current = current.next; } return out; }; (function () { try { Object.defineProperty(WritableState.prototype, 'buffer', { get: internalUtil.deprecate(function writableStateBufferGetter() { return this.getBuffer(); }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003') }); } catch (_) {} })(); // Test _writableState for inheritance to account for Duplex streams, // whose prototype chain only points to Readable. var realHasInstance; if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { realHasInstance = Function.prototype[Symbol.hasInstance]; Object.defineProperty(Writable, Symbol.hasInstance, { value: function value(object) { if (realHasInstance.call(this, object)) return true; if (this !== Writable) return false; return object && object._writableState instanceof WritableState; } }); } else { realHasInstance = function realHasInstance(object) { return object instanceof this; }; } function Writable(options) { Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_duplex.js"); // Writable ctor is applied to Duplexes, too. // `realHasInstance` is necessary because using plain `instanceof` // would return false, as no `_writableState` property is attached. // Trying to use the custom `instanceof` for Writable here will also break the // Node.js LazyTransform implementation, which has a non-trivial getter for // `_writableState` that would lead to infinite recursion. // Checking for a Stream.Duplex instance is faster here instead of inside // the WritableState constructor, at least with V8 6.5 var isDuplex = this instanceof Duplex; if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options); this._writableState = new WritableState(options, this, isDuplex); // legacy. this.writable = true; if (options) { if (typeof options.write === 'function') this._write = options.write; if (typeof options.writev === 'function') this._writev = options.writev; if (typeof options.destroy === 'function') this._destroy = options.destroy; if (typeof options.final === 'function') this._final = options.final; } Stream.call(this); } // Otherwise people can pipe Writable streams, which is just wrong. Writable.prototype.pipe = function () { errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE()); }; function writeAfterEnd(stream, cb) { var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb errorOrDestroy(stream, er); process.nextTick(cb, er); } // Checks that a user-supplied chunk is valid, especially for the particular // mode the stream is in. Currently this means that `null` is never accepted // and undefined/non-string values are only allowed in object mode. function validChunk(stream, state, chunk, cb) { var er; if (chunk === null) { er = new ERR_STREAM_NULL_VALUES(); } else if (typeof chunk !== 'string' && !state.objectMode) { er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk); } if (er) { errorOrDestroy(stream, er); process.nextTick(cb, er); return false; } return true; } Writable.prototype.write = function (chunk, encoding, cb) { var state = this._writableState; var ret = false; var isBuf = !state.objectMode && _isUint8Array(chunk); if (isBuf && !Buffer.isBuffer(chunk)) { chunk = _uint8ArrayToBuffer(chunk); } if (typeof encoding === 'function') { cb = encoding; encoding = null; } if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; if (typeof cb !== 'function') cb = nop; if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) { state.pendingcb++; ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb); } return ret; }; Writable.prototype.cork = function () { this._writableState.corked++; }; Writable.prototype.uncork = function () { var state = this._writableState; if (state.corked) { state.corked--; if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); } }; Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { // node::ParseEncoding() requires lower case. if (typeof encoding === 'string') encoding = encoding.toLowerCase(); if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding); this._writableState.defaultEncoding = encoding; return this; }; Object.defineProperty(Writable.prototype, 'writableBuffer', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._writableState && this._writableState.getBuffer(); } }); function decodeChunk(state, chunk, encoding) { if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { chunk = Buffer.from(chunk, encoding); } return chunk; } Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._writableState.highWaterMark; } }); // if we're already writing something, then just put this // in the queue, and wait our turn. Otherwise, call _write // If we return false, then we need a drain event, so set that flag. function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { if (!isBuf) { var newChunk = decodeChunk(state, chunk, encoding); if (chunk !== newChunk) { isBuf = true; encoding = 'buffer'; chunk = newChunk; } } var len = state.objectMode ? 1 : chunk.length; state.length += len; var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false. if (!ret) state.needDrain = true; if (state.writing || state.corked) { var last = state.lastBufferedRequest; state.lastBufferedRequest = { chunk: chunk, encoding: encoding, isBuf: isBuf, callback: cb, next: null }; if (last) { last.next = state.lastBufferedRequest; } else { state.bufferedRequest = state.lastBufferedRequest; } state.bufferedRequestCount += 1; } else { doWrite(stream, state, false, len, chunk, encoding, cb); } return ret; } function doWrite(stream, state, writev, len, chunk, encoding, cb) { state.writelen = len; state.writecb = cb; state.writing = true; state.sync = true; if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); state.sync = false; } function onwriteError(stream, state, sync, er, cb) { --state.pendingcb; if (sync) { // defer the callback if we are being called synchronously // to avoid piling up things on the stack process.nextTick(cb, er); // this can emit finish, and it will always happen // after error process.nextTick(finishMaybe, stream, state); stream._writableState.errorEmitted = true; errorOrDestroy(stream, er); } else { // the caller expect this to happen before if // it is async cb(er); stream._writableState.errorEmitted = true; errorOrDestroy(stream, er); // this can emit finish, but finish must // always follow error finishMaybe(stream, state); } } function onwriteStateUpdate(state) { state.writing = false; state.writecb = null; state.length -= state.writelen; state.writelen = 0; } function onwrite(stream, er) { var state = stream._writableState; var sync = state.sync; var cb = state.writecb; if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK(); onwriteStateUpdate(state); if (er) onwriteError(stream, state, sync, er, cb);else { // Check if we're actually ready to finish, but don't emit yet var finished = needFinish(state) || stream.destroyed; if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { clearBuffer(stream, state); } if (sync) { process.nextTick(afterWrite, stream, state, finished, cb); } else { afterWrite(stream, state, finished, cb); } } } function afterWrite(stream, state, finished, cb) { if (!finished) onwriteDrain(stream, state); state.pendingcb--; cb(); finishMaybe(stream, state); } // Must force callback to be called on nextTick, so that we don't // emit 'drain' before the write() consumer gets the 'false' return // value, and has a chance to attach a 'drain' listener. function onwriteDrain(stream, state) { if (state.length === 0 && state.needDrain) { state.needDrain = false; stream.emit('drain'); } } // if there's something in the buffer waiting, then process it function clearBuffer(stream, state) { state.bufferProcessing = true; var entry = state.bufferedRequest; if (stream._writev && entry && entry.next) { // Fast case, write everything using _writev() var l = state.bufferedRequestCount; var buffer = new Array(l); var holder = state.corkedRequestsFree; holder.entry = entry; var count = 0; var allBuffers = true; while (entry) { buffer[count] = entry; if (!entry.isBuf) allBuffers = false; entry = entry.next; count += 1; } buffer.allBuffers = allBuffers; doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time // as the hot path ends with doWrite state.pendingcb++; state.lastBufferedRequest = null; if (holder.next) { state.corkedRequestsFree = holder.next; holder.next = null; } else { state.corkedRequestsFree = new CorkedRequest(state); } state.bufferedRequestCount = 0; } else { // Slow case, write chunks one-by-one while (entry) { var chunk = entry.chunk; var encoding = entry.encoding; var cb = entry.callback; var len = state.objectMode ? 1 : chunk.length; doWrite(stream, state, false, len, chunk, encoding, cb); entry = entry.next; state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then // it means that we need to wait until it does. // also, that means that the chunk and cb are currently // being processed, so move the buffer counter past them. if (state.writing) { break; } } if (entry === null) state.lastBufferedRequest = null; } state.bufferedRequest = entry; state.bufferProcessing = false; } Writable.prototype._write = function (chunk, encoding, cb) { cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()')); }; Writable.prototype._writev = null; Writable.prototype.end = function (chunk, encoding, cb) { var state = this._writableState; if (typeof chunk === 'function') { cb = chunk; chunk = null; encoding = null; } else if (typeof encoding === 'function') { cb = encoding; encoding = null; } if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks if (state.corked) { state.corked = 1; this.uncork(); } // ignore unnecessary end() calls. if (!state.ending) endWritable(this, state, cb); return this; }; Object.defineProperty(Writable.prototype, 'writableLength', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { return this._writableState.length; } }); function needFinish(state) { return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; } function callFinal(stream, state) { stream._final(function (err) { state.pendingcb--; if (err) { errorOrDestroy(stream, err); } state.prefinished = true; stream.emit('prefinish'); finishMaybe(stream, state); }); } function prefinish(stream, state) { if (!state.prefinished && !state.finalCalled) { if (typeof stream._final === 'function' && !state.destroyed) { state.pendingcb++; state.finalCalled = true; process.nextTick(callFinal, stream, state); } else { state.prefinished = true; stream.emit('prefinish'); } } } function finishMaybe(stream, state) { var need = needFinish(state); if (need) { prefinish(stream, state); if (state.pendingcb === 0) { state.finished = true; stream.emit('finish'); if (state.autoDestroy) { // In case of duplex streams we need a way to detect // if the readable side is ready for autoDestroy as well var rState = stream._readableState; if (!rState || rState.autoDestroy && rState.endEmitted) { stream.destroy(); } } } } return need; } function endWritable(stream, state, cb) { state.ending = true; finishMaybe(stream, state); if (cb) { if (state.finished) process.nextTick(cb);else stream.once('finish', cb); } state.ended = true; stream.writable = false; } function onCorkedFinish(corkReq, state, err) { var entry = corkReq.entry; corkReq.entry = null; while (entry) { var cb = entry.callback; state.pendingcb--; cb(err); entry = entry.next; } // reuse the free corkReq. state.corkedRequestsFree.next = corkReq; } Object.defineProperty(Writable.prototype, 'destroyed', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function get() { if (this._writableState === undefined) { return false; } return this._writableState.destroyed; }, set: function set(value) { // we ignore the value if the stream // has not been initialized yet if (!this._writableState) { return; } // backward compatibility, the user is explicitly // managing destroyed this._writableState.destroyed = value; } }); Writable.prototype.destroy = destroyImpl.destroy; Writable.prototype._undestroy = destroyImpl.undestroy; Writable.prototype._destroy = function (err, cb) { cb(err); }; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/async_iterator.js": /*!***********************************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/async_iterator.js ***! \***********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { var _Object$setPrototypeO; function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } var finished = __webpack_require__(/*! ./end-of-stream */ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"); var kLastResolve = Symbol('lastResolve'); var kLastReject = Symbol('lastReject'); var kError = Symbol('error'); var kEnded = Symbol('ended'); var kLastPromise = Symbol('lastPromise'); var kHandlePromise = Symbol('handlePromise'); var kStream = Symbol('stream'); function createIterResult(value, done) { return { value: value, done: done }; } function readAndResolve(iter) { var resolve = iter[kLastResolve]; if (resolve !== null) { var data = iter[kStream].read(); // we defer if data is null // we can be expecting either 'end' or // 'error' if (data !== null) { iter[kLastPromise] = null; iter[kLastResolve] = null; iter[kLastReject] = null; resolve(createIterResult(data, false)); } } } function onReadable(iter) { // we wait for the next tick, because it might // emit an error with process.nextTick process.nextTick(readAndResolve, iter); } function wrapForNext(lastPromise, iter) { return function (resolve, reject) { lastPromise.then(function () { if (iter[kEnded]) { resolve(createIterResult(undefined, true)); return; } iter[kHandlePromise](resolve, reject); }, reject); }; } var AsyncIteratorPrototype = Object.getPrototypeOf(function () {}); var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = { get stream() { return this[kStream]; }, next: function next() { var _this = this; // if we have detected an error in the meanwhile // reject straight away var error = this[kError]; if (error !== null) { return Promise.reject(error); } if (this[kEnded]) { return Promise.resolve(createIterResult(undefined, true)); } if (this[kStream].destroyed) { // We need to defer via nextTick because if .destroy(err) is // called, the error will be emitted via nextTick, and // we cannot guarantee that there is no error lingering around // waiting to be emitted. return new Promise(function (resolve, reject) { process.nextTick(function () { if (_this[kError]) { reject(_this[kError]); } else { resolve(createIterResult(undefined, true)); } }); }); } // if we have multiple next() calls // we will wait for the previous Promise to finish // this logic is optimized to support for await loops, // where next() is only called once at a time var lastPromise = this[kLastPromise]; var promise; if (lastPromise) { promise = new Promise(wrapForNext(lastPromise, this)); } else { // fast path needed to support multiple this.push() // without triggering the next() queue var data = this[kStream].read(); if (data !== null) { return Promise.resolve(createIterResult(data, false)); } promise = new Promise(this[kHandlePromise]); } this[kLastPromise] = promise; return promise; } }, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () { return this; }), _defineProperty(_Object$setPrototypeO, "return", function _return() { var _this2 = this; // destroy(err, cb) is a private API // we can guarantee we have that here, because we control the // Readable class this is attached to return new Promise(function (resolve, reject) { _this2[kStream].destroy(null, function (err) { if (err) { reject(err); return; } resolve(createIterResult(undefined, true)); }); }); }), _Object$setPrototypeO), AsyncIteratorPrototype); var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) { var _Object$create; var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, { value: stream, writable: true }), _defineProperty(_Object$create, kLastResolve, { value: null, writable: true }), _defineProperty(_Object$create, kLastReject, { value: null, writable: true }), _defineProperty(_Object$create, kError, { value: null, writable: true }), _defineProperty(_Object$create, kEnded, { value: stream._readableState.endEmitted, writable: true }), _defineProperty(_Object$create, kHandlePromise, { value: function value(resolve, reject) { var data = iterator[kStream].read(); if (data) { iterator[kLastPromise] = null; iterator[kLastResolve] = null; iterator[kLastReject] = null; resolve(createIterResult(data, false)); } else { iterator[kLastResolve] = resolve; iterator[kLastReject] = reject; } }, writable: true }), _Object$create)); iterator[kLastPromise] = null; finished(stream, function (err) { if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') { var reject = iterator[kLastReject]; // reject if we are waiting for data in the Promise // returned by next() and store the error if (reject !== null) { iterator[kLastPromise] = null; iterator[kLastResolve] = null; iterator[kLastReject] = null; reject(err); } iterator[kError] = err; return; } var resolve = iterator[kLastResolve]; if (resolve !== null) { iterator[kLastPromise] = null; iterator[kLastResolve] = null; iterator[kLastReject] = null; resolve(createIterResult(undefined, true)); } iterator[kEnded] = true; }); stream.on('readable', onReadable.bind(null, iterator)); return iterator; }; module.exports = createReadableStreamAsyncIterator; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/buffer_list.js": /*!********************************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/buffer_list.js ***! \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } var _require = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js"), Buffer = _require.Buffer; var _require2 = __webpack_require__(/*! util */ 5), inspect = _require2.inspect; var custom = inspect && inspect.custom || 'inspect'; function copyBuffer(src, target, offset) { Buffer.prototype.copy.call(src, target, offset); } module.exports = /*#__PURE__*/function () { function BufferList() { _classCallCheck(this, BufferList); this.head = null; this.tail = null; this.length = 0; } _createClass(BufferList, [{ key: "push", value: function push(v) { var entry = { data: v, next: null }; if (this.length > 0) this.tail.next = entry;else this.head = entry; this.tail = entry; ++this.length; } }, { key: "unshift", value: function unshift(v) { var entry = { data: v, next: this.head }; if (this.length === 0) this.tail = entry; this.head = entry; ++this.length; } }, { key: "shift", value: function shift() { if (this.length === 0) return; var ret = this.head.data; if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; --this.length; return ret; } }, { key: "clear", value: function clear() { this.head = this.tail = null; this.length = 0; } }, { key: "join", value: function join(s) { if (this.length === 0) return ''; var p = this.head; var ret = '' + p.data; while (p = p.next) ret += s + p.data; return ret; } }, { key: "concat", value: function concat(n) { if (this.length === 0) return Buffer.alloc(0); var ret = Buffer.allocUnsafe(n >>> 0); var p = this.head; var i = 0; while (p) { copyBuffer(p.data, ret, i); i += p.data.length; p = p.next; } return ret; } // Consumes a specified amount of bytes or characters from the buffered data. }, { key: "consume", value: function consume(n, hasStrings) { var ret; if (n < this.head.data.length) { // `slice` is the same for buffers and strings. ret = this.head.data.slice(0, n); this.head.data = this.head.data.slice(n); } else if (n === this.head.data.length) { // First chunk is a perfect match. ret = this.shift(); } else { // Result spans more than one buffer. ret = hasStrings ? this._getString(n) : this._getBuffer(n); } return ret; } }, { key: "first", value: function first() { return this.head.data; } // Consumes a specified amount of characters from the buffered data. }, { key: "_getString", value: function _getString(n) { var p = this.head; var c = 1; var ret = p.data; n -= ret.length; while (p = p.next) { var str = p.data; var nb = n > str.length ? str.length : n; if (nb === str.length) ret += str;else ret += str.slice(0, n); n -= nb; if (n === 0) { if (nb === str.length) { ++c; if (p.next) this.head = p.next;else this.head = this.tail = null; } else { this.head = p; p.data = str.slice(nb); } break; } ++c; } this.length -= c; return ret; } // Consumes a specified amount of bytes from the buffered data. }, { key: "_getBuffer", value: function _getBuffer(n) { var ret = Buffer.allocUnsafe(n); var p = this.head; var c = 1; p.data.copy(ret); n -= p.data.length; while (p = p.next) { var buf = p.data; var nb = n > buf.length ? buf.length : n; buf.copy(ret, ret.length - n, 0, nb); n -= nb; if (n === 0) { if (nb === buf.length) { ++c; if (p.next) this.head = p.next;else this.head = this.tail = null; } else { this.head = p; p.data = buf.slice(nb); } break; } ++c; } this.length -= c; return ret; } // Make sure the linked list only shows the minimal necessary information. }, { key: custom, value: function value(_, options) { return inspect(this, _objectSpread(_objectSpread({}, options), {}, { // Only inspect one level. depth: 0, // It should not recurse. customInspect: false })); } }]); return BufferList; }(); /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/destroy.js": /*!****************************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/destroy.js ***! \****************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { // undocumented cb() API, needed for core, not for public API function destroy(err, cb) { var _this = this; var readableDestroyed = this._readableState && this._readableState.destroyed; var writableDestroyed = this._writableState && this._writableState.destroyed; if (readableDestroyed || writableDestroyed) { if (cb) { cb(err); } else if (err) { if (!this._writableState) { process.nextTick(emitErrorNT, this, err); } else if (!this._writableState.errorEmitted) { this._writableState.errorEmitted = true; process.nextTick(emitErrorNT, this, err); } } return this; } // we set destroyed to true before firing error callbacks in order // to make it re-entrance safe in case destroy() is called within callbacks if (this._readableState) { this._readableState.destroyed = true; } // if this is a duplex stream mark the writable part as destroyed as well if (this._writableState) { this._writableState.destroyed = true; } this._destroy(err || null, function (err) { if (!cb && err) { if (!_this._writableState) { process.nextTick(emitErrorAndCloseNT, _this, err); } else if (!_this._writableState.errorEmitted) { _this._writableState.errorEmitted = true; process.nextTick(emitErrorAndCloseNT, _this, err); } else { process.nextTick(emitCloseNT, _this); } } else if (cb) { process.nextTick(emitCloseNT, _this); cb(err); } else { process.nextTick(emitCloseNT, _this); } }); return this; } function emitErrorAndCloseNT(self, err) { emitErrorNT(self, err); emitCloseNT(self); } function emitCloseNT(self) { if (self._writableState && !self._writableState.emitClose) return; if (self._readableState && !self._readableState.emitClose) return; self.emit('close'); } function undestroy() { if (this._readableState) { this._readableState.destroyed = false; this._readableState.reading = false; this._readableState.ended = false; this._readableState.endEmitted = false; } if (this._writableState) { this._writableState.destroyed = false; this._writableState.ended = false; this._writableState.ending = false; this._writableState.finalCalled = false; this._writableState.prefinished = false; this._writableState.finished = false; this._writableState.errorEmitted = false; } } function emitErrorNT(self, err) { self.emit('error', err); } function errorOrDestroy(stream, err) { // We have tests that rely on errors being emitted // in the same tick, so changing this is semver major. // For now when you opt-in to autoDestroy we allow // the error to be emitted nextTick. In a future // semver major update we should change the default to this. var rState = stream._readableState; var wState = stream._writableState; if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err); } module.exports = { destroy: destroy, undestroy: undestroy, errorOrDestroy: errorOrDestroy }; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/end-of-stream.js": /*!**********************************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/end-of-stream.js ***! \**********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Ported from https://github.com/mafintosh/end-of-stream with // permission from the author, Mathias Buus (@mafintosh). var ERR_STREAM_PREMATURE_CLOSE = __webpack_require__(/*! ../../../errors */ "./node_modules/mqtt/node_modules/readable-stream/errors-browser.js").codes.ERR_STREAM_PREMATURE_CLOSE; function once(callback) { var called = false; return function () { if (called) return; called = true; for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } callback.apply(this, args); }; } function noop() {} function isRequest(stream) { return stream.setHeader && typeof stream.abort === 'function'; } function eos(stream, opts, callback) { if (typeof opts === 'function') return eos(stream, null, opts); if (!opts) opts = {}; callback = once(callback || noop); var readable = opts.readable || opts.readable !== false && stream.readable; var writable = opts.writable || opts.writable !== false && stream.writable; var onlegacyfinish = function onlegacyfinish() { if (!stream.writable) onfinish(); }; var writableEnded = stream._writableState && stream._writableState.finished; var onfinish = function onfinish() { writable = false; writableEnded = true; if (!readable) callback.call(stream); }; var readableEnded = stream._readableState && stream._readableState.endEmitted; var onend = function onend() { readable = false; readableEnded = true; if (!writable) callback.call(stream); }; var onerror = function onerror(err) { callback.call(stream, err); }; var onclose = function onclose() { var err; if (readable && !readableEnded) { if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); return callback.call(stream, err); } if (writable && !writableEnded) { if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); return callback.call(stream, err); } }; var onrequest = function onrequest() { stream.req.on('finish', onfinish); }; if (isRequest(stream)) { stream.on('complete', onfinish); stream.on('abort', onclose); if (stream.req) onrequest();else stream.on('request', onrequest); } else if (writable && !stream._writableState) { // legacy streams stream.on('end', onlegacyfinish); stream.on('close', onlegacyfinish); } stream.on('end', onend); stream.on('finish', onfinish); if (opts.error !== false) stream.on('error', onerror); stream.on('close', onclose); return function () { stream.removeListener('complete', onfinish); stream.removeListener('abort', onclose); stream.removeListener('request', onrequest); if (stream.req) stream.req.removeListener('finish', onfinish); stream.removeListener('end', onlegacyfinish); stream.removeListener('close', onlegacyfinish); stream.removeListener('finish', onfinish); stream.removeListener('end', onend); stream.removeListener('error', onerror); stream.removeListener('close', onclose); }; } module.exports = eos; /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/from-browser.js": /*!*********************************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/from-browser.js ***! \*********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = function () { throw new Error('Readable.from is not available in the browser') }; /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/pipeline.js": /*!*****************************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/pipeline.js ***! \*****************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Ported from https://github.com/mafintosh/pump with // permission from the author, Mathias Buus (@mafintosh). var eos; function once(callback) { var called = false; return function () { if (called) return; called = true; callback.apply(void 0, arguments); }; } var _require$codes = __webpack_require__(/*! ../../../errors */ "./node_modules/mqtt/node_modules/readable-stream/errors-browser.js").codes, ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS, ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED; function noop(err) { // Rethrow the error if it exists to avoid swallowing it if (err) throw err; } function isRequest(stream) { return stream.setHeader && typeof stream.abort === 'function'; } function destroyer(stream, reading, writing, callback) { callback = once(callback); var closed = false; stream.on('close', function () { closed = true; }); if (eos === undefined) eos = __webpack_require__(/*! ./end-of-stream */ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"); eos(stream, { readable: reading, writable: writing }, function (err) { if (err) return callback(err); closed = true; callback(); }); var destroyed = false; return function (err) { if (closed) return; if (destroyed) return; destroyed = true; // request.destroy just do .end - .abort is what we want if (isRequest(stream)) return stream.abort(); if (typeof stream.destroy === 'function') return stream.destroy(); callback(err || new ERR_STREAM_DESTROYED('pipe')); }; } function call(fn) { fn(); } function pipe(from, to) { return from.pipe(to); } function popCallback(streams) { if (!streams.length) return noop; if (typeof streams[streams.length - 1] !== 'function') return noop; return streams.pop(); } function pipeline() { for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) { streams[_key] = arguments[_key]; } var callback = popCallback(streams); if (Array.isArray(streams[0])) streams = streams[0]; if (streams.length < 2) { throw new ERR_MISSING_ARGS('streams'); } var error; var destroys = streams.map(function (stream, i) { var reading = i < streams.length - 1; var writing = i > 0; return destroyer(stream, reading, writing, function (err) { if (!error) error = err; if (err) destroys.forEach(call); if (reading) return; destroys.forEach(call); callback(error); }); }); return streams.reduce(pipe); } module.exports = pipeline; /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/state.js": /*!**************************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/state.js ***! \**************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var ERR_INVALID_OPT_VALUE = __webpack_require__(/*! ../../../errors */ "./node_modules/mqtt/node_modules/readable-stream/errors-browser.js").codes.ERR_INVALID_OPT_VALUE; function highWaterMarkFrom(options, isDuplex, duplexKey) { return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null; } function getHighWaterMark(state, options, duplexKey, isDuplex) { var hwm = highWaterMarkFrom(options, isDuplex, duplexKey); if (hwm != null) { if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) { var name = isDuplex ? duplexKey : 'highWaterMark'; throw new ERR_INVALID_OPT_VALUE(name, hwm); } return Math.floor(hwm); } // Default value return state.objectMode ? 16 : 16 * 1024; } module.exports = { getHighWaterMark: getHighWaterMark }; /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/stream-browser.js": /*!***********************************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/stream-browser.js ***! \***********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! events */ "./node_modules/events/events.js").EventEmitter; /***/ }), /***/ "./node_modules/mqtt/node_modules/readable-stream/readable-browser.js": /*!****************************************************************************!*\ !*** ./node_modules/mqtt/node_modules/readable-stream/readable-browser.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(/*! ./lib/_stream_readable.js */ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_readable.js"); exports.Stream = exports; exports.Readable = exports; exports.Writable = __webpack_require__(/*! ./lib/_stream_writable.js */ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_writable.js"); exports.Duplex = __webpack_require__(/*! ./lib/_stream_duplex.js */ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_duplex.js"); exports.Transform = __webpack_require__(/*! ./lib/_stream_transform.js */ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_transform.js"); exports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ "./node_modules/mqtt/node_modules/readable-stream/lib/_stream_passthrough.js"); exports.finished = __webpack_require__(/*! ./lib/internal/streams/end-of-stream.js */ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"); exports.pipeline = __webpack_require__(/*! ./lib/internal/streams/pipeline.js */ "./node_modules/mqtt/node_modules/readable-stream/lib/internal/streams/pipeline.js"); /***/ }), /***/ "./node_modules/mqtt/node_modules/stream-shift/index.js": /*!**************************************************************!*\ !*** ./node_modules/mqtt/node_modules/stream-shift/index.js ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = shift function shift (stream) { var rs = stream._readableState if (!rs) return null return (rs.objectMode || typeof stream._duplexState === 'number') ? stream.read() : stream.read(getStateLength(rs)) } function getStateLength (state) { if (state.buffer.length) { var idx = state.bufferIndex || 0 // Since node 6.3.0 state.buffer is a BufferList not an array if (state.buffer.head) { return state.buffer.head.data.length } else if (state.buffer.length - idx > 0 && state.buffer[idx]) { return state.buffer[idx].length } } return state.length } /***/ }), /***/ "./node_modules/mqtt/node_modules/ws/browser.js": /*!******************************************************!*\ !*** ./node_modules/mqtt/node_modules/ws/browser.js ***! \******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function () { throw new Error( 'ws does not work in the browser. Browser clients must use the native ' + 'WebSocket object' ); }; /***/ }), /***/ "./node_modules/mqtt/node_modules/yallist/iterator.js": /*!************************************************************!*\ !*** ./node_modules/mqtt/node_modules/yallist/iterator.js ***! \************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function (Yallist) { Yallist.prototype[Symbol.iterator] = function* () { for (let walker = this.head; walker; walker = walker.next) { yield walker.value } } } /***/ }), /***/ "./node_modules/mqtt/node_modules/yallist/yallist.js": /*!***********************************************************!*\ !*** ./node_modules/mqtt/node_modules/yallist/yallist.js ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = Yallist Yallist.Node = Node Yallist.create = Yallist function Yallist (list) { var self = this if (!(self instanceof Yallist)) { self = new Yallist() } self.tail = null self.head = null self.length = 0 if (list && typeof list.forEach === 'function') { list.forEach(function (item) { self.push(item) }) } else if (arguments.length > 0) { for (var i = 0, l = arguments.length; i < l; i++) { self.push(arguments[i]) } } return self } Yallist.prototype.removeNode = function (node) { if (node.list !== this) { throw new Error('removing node which does not belong to this list') } var next = node.next var prev = node.prev if (next) { next.prev = prev } if (prev) { prev.next = next } if (node === this.head) { this.head = next } if (node === this.tail) { this.tail = prev } node.list.length-- node.next = null node.prev = null node.list = null return next } Yallist.prototype.unshiftNode = function (node) { if (node === this.head) { return } if (node.list) { node.list.removeNode(node) } var head = this.head node.list = this node.next = head if (head) { head.prev = node } this.head = node if (!this.tail) { this.tail = node } this.length++ } Yallist.prototype.pushNode = function (node) { if (node === this.tail) { return } if (node.list) { node.list.removeNode(node) } var tail = this.tail node.list = this node.prev = tail if (tail) { tail.next = node } this.tail = node if (!this.head) { this.head = node } this.length++ } Yallist.prototype.push = function () { for (var i = 0, l = arguments.length; i < l; i++) { push(this, arguments[i]) } return this.length } Yallist.prototype.unshift = function () { for (var i = 0, l = arguments.length; i < l; i++) { unshift(this, arguments[i]) } return this.length } Yallist.prototype.pop = function () { if (!this.tail) { return undefined } var res = this.tail.value this.tail = this.tail.prev if (this.tail) { this.tail.next = null } else { this.head = null } this.length-- return res } Yallist.prototype.shift = function () { if (!this.head) { return undefined } var res = this.head.value this.head = this.head.next if (this.head) { this.head.prev = null } else { this.tail = null } this.length-- return res } Yallist.prototype.forEach = function (fn, thisp) { thisp = thisp || this for (var walker = this.head, i = 0; walker !== null; i++) { fn.call(thisp, walker.value, i, this) walker = walker.next } } Yallist.prototype.forEachReverse = function (fn, thisp) { thisp = thisp || this for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { fn.call(thisp, walker.value, i, this) walker = walker.prev } } Yallist.prototype.get = function (n) { for (var i = 0, walker = this.head; walker !== null && i < n; i++) { // abort out of the list early if we hit a cycle walker = walker.next } if (i === n && walker !== null) { return walker.value } } Yallist.prototype.getReverse = function (n) { for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { // abort out of the list early if we hit a cycle walker = walker.prev } if (i === n && walker !== null) { return walker.value } } Yallist.prototype.map = function (fn, thisp) { thisp = thisp || this var res = new Yallist() for (var walker = this.head; walker !== null;) { res.push(fn.call(thisp, walker.value, this)) walker = walker.next } return res } Yallist.prototype.mapReverse = function (fn, thisp) { thisp = thisp || this var res = new Yallist() for (var walker = this.tail; walker !== null;) { res.push(fn.call(thisp, walker.value, this)) walker = walker.prev } return res } Yallist.prototype.reduce = function (fn, initial) { var acc var walker = this.head if (arguments.length > 1) { acc = initial } else if (this.head) { walker = this.head.next acc = this.head.value } else { throw new TypeError('Reduce of empty list with no initial value') } for (var i = 0; walker !== null; i++) { acc = fn(acc, walker.value, i) walker = walker.next } return acc } Yallist.prototype.reduceReverse = function (fn, initial) { var acc var walker = this.tail if (arguments.length > 1) { acc = initial } else if (this.tail) { walker = this.tail.prev acc = this.tail.value } else { throw new TypeError('Reduce of empty list with no initial value') } for (var i = this.length - 1; walker !== null; i--) { acc = fn(acc, walker.value, i) walker = walker.prev } return acc } Yallist.prototype.toArray = function () { var arr = new Array(this.length) for (var i = 0, walker = this.head; walker !== null; i++) { arr[i] = walker.value walker = walker.next } return arr } Yallist.prototype.toArrayReverse = function () { var arr = new Array(this.length) for (var i = 0, walker = this.tail; walker !== null; i++) { arr[i] = walker.value walker = walker.prev } return arr } Yallist.prototype.slice = function (from, to) { to = to || this.length if (to < 0) { to += this.length } from = from || 0 if (from < 0) { from += this.length } var ret = new Yallist() if (to < from || to < 0) { return ret } if (from < 0) { from = 0 } if (to > this.length) { to = this.length } for (var i = 0, walker = this.head; walker !== null && i < from; i++) { walker = walker.next } for (; walker !== null && i < to; i++, walker = walker.next) { ret.push(walker.value) } return ret } Yallist.prototype.sliceReverse = function (from, to) { to = to || this.length if (to < 0) { to += this.length } from = from || 0 if (from < 0) { from += this.length } var ret = new Yallist() if (to < from || to < 0) { return ret } if (from < 0) { from = 0 } if (to > this.length) { to = this.length } for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { walker = walker.prev } for (; walker !== null && i > from; i--, walker = walker.prev) { ret.push(walker.value) } return ret } Yallist.prototype.splice = function (start, deleteCount, ...nodes) { if (start > this.length) { start = this.length - 1 } if (start < 0) { start = this.length + start; } for (var i = 0, walker = this.head; walker !== null && i < start; i++) { walker = walker.next } var ret = [] for (var i = 0; walker && i < deleteCount; i++) { ret.push(walker.value) walker = this.removeNode(walker) } if (walker === null) { walker = this.tail } if (walker !== this.head && walker !== this.tail) { walker = walker.prev } for (var i = 0; i < nodes.length; i++) { walker = insert(this, walker, nodes[i]) } return ret; } Yallist.prototype.reverse = function () { var head = this.head var tail = this.tail for (var walker = head; walker !== null; walker = walker.prev) { var p = walker.prev walker.prev = walker.next walker.next = p } this.head = tail this.tail = head return this } function insert (self, node, value) { var inserted = node === self.head ? new Node(value, null, node, self) : new Node(value, node, node.next, self) if (inserted.next === null) { self.tail = inserted } if (inserted.prev === null) { self.head = inserted } self.length++ return inserted } function push (self, item) { self.tail = new Node(item, self.tail, null, self) if (!self.head) { self.head = self.tail } self.length++ } function unshift (self, item) { self.head = new Node(item, null, self.head, self) if (!self.tail) { self.tail = self.head } self.length++ } function Node (value, prev, next, list) { if (!(this instanceof Node)) { return new Node(value, prev, next, list) } this.list = list this.value = value if (prev) { prev.next = this this.prev = prev } else { this.prev = null } if (next) { next.prev = this this.next = next } else { this.next = null } } try { // add if support for Symbol.iterator is present __webpack_require__(/*! ./iterator.js */ "./node_modules/mqtt/node_modules/yallist/iterator.js")(Yallist) } catch (er) {} /***/ }), /***/ "./node_modules/ms/index.js": /*!**********************************!*\ !*** ./node_modules/ms/index.js ***! \**********************************/ /*! no static exports found */ /***/ (function(module, exports) { /** * Helpers. */ var s = 1000; var m = s * 60; var h = m * 60; var d = h * 24; var w = d * 7; var y = d * 365.25; /** * Parse or format the given `val`. * * Options: * * - `long` verbose formatting [false] * * @param {String|Number} val * @param {Object} [options] * @throws {Error} throw an error if val is not a non-empty string or a number * @return {String|Number} * @api public */ module.exports = function(val, options) { options = options || {}; var type = typeof val; if (type === 'string' && val.length > 0) { return parse(val); } else if (type === 'number' && isFinite(val)) { return options.long ? fmtLong(val) : fmtShort(val); } throw new Error( 'val is not a non-empty string or a valid number. val=' + JSON.stringify(val) ); }; /** * Parse the given `str` and return milliseconds. * * @param {String} str * @return {Number} * @api private */ function parse(str) { str = String(str); if (str.length > 100) { return; } var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( str ); if (!match) { return; } var n = parseFloat(match[1]); var type = (match[2] || 'ms').toLowerCase(); switch (type) { case 'years': case 'year': case 'yrs': case 'yr': case 'y': return n * y; case 'weeks': case 'week': case 'w': return n * w; case 'days': case 'day': case 'd': return n * d; case 'hours': case 'hour': case 'hrs': case 'hr': case 'h': return n * h; case 'minutes': case 'minute': case 'mins': case 'min': case 'm': return n * m; case 'seconds': case 'second': case 'secs': case 'sec': case 's': return n * s; case 'milliseconds': case 'millisecond': case 'msecs': case 'msec': case 'ms': return n; default: return undefined; } } /** * Short format for `ms`. * * @param {Number} ms * @return {String} * @api private */ function fmtShort(ms) { var msAbs = Math.abs(ms); if (msAbs >= d) { return Math.round(ms / d) + 'd'; } if (msAbs >= h) { return Math.round(ms / h) + 'h'; } if (msAbs >= m) { return Math.round(ms / m) + 'm'; } if (msAbs >= s) { return Math.round(ms / s) + 's'; } return ms + 'ms'; } /** * Long format for `ms`. * * @param {Number} ms * @return {String} * @api private */ function fmtLong(ms) { var msAbs = Math.abs(ms); if (msAbs >= d) { return plural(ms, msAbs, d, 'day'); } if (msAbs >= h) { return plural(ms, msAbs, h, 'hour'); } if (msAbs >= m) { return plural(ms, msAbs, m, 'minute'); } if (msAbs >= s) { return plural(ms, msAbs, s, 'second'); } return ms + ' ms'; } /** * Pluralization helper. */ function plural(ms, msAbs, n, name) { var isPlural = msAbs >= n * 1.5; return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); } /***/ }), /***/ "./node_modules/node-libs-browser/mock/empty.js": /*!******************************************************!*\ !*** ./node_modules/node-libs-browser/mock/empty.js ***! \******************************************************/ /*! no static exports found */ /***/ (function(module, exports) { /***/ }), /***/ "./node_modules/node-libs-browser/mock/process.js": /*!********************************************************!*\ !*** ./node_modules/node-libs-browser/mock/process.js ***! \********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { exports.nextTick = function nextTick(fn) { var args = Array.prototype.slice.call(arguments); args.shift(); setTimeout(function () { fn.apply(null, args); }, 0); }; exports.platform = exports.arch = exports.execPath = exports.title = 'browser'; exports.pid = 1; exports.browser = true; exports.env = {}; exports.argv = []; exports.binding = function (name) { throw new Error('No such module. (Possibly not yet loaded)') }; (function () { var cwd = '/'; var path; exports.cwd = function () { return cwd }; exports.chdir = function (dir) { if (!path) path = __webpack_require__(/*! path */ "./node_modules/path-browserify/index.js"); cwd = path.resolve(dir, cwd); }; })(); exports.exit = exports.kill = exports.umask = exports.dlopen = exports.uptime = exports.memoryUsage = exports.uvCounters = function() {}; exports.features = {}; /***/ }), /***/ "./node_modules/node-libs-browser/node_modules/punycode/punycode.js": /*!**************************************************************************!*\ !*** ./node_modules/node-libs-browser/node_modules/punycode/punycode.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.1 by @mathias */ ;(function(root) { /** Detect free variables */ var freeExports = true && exports && !exports.nodeType && exports; var freeModule = true && module && !module.nodeType && module; var freeGlobal = typeof global == 'object' && global; if ( freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal ) { root = freeGlobal; } /** * The `punycode` object. * @name punycode * @type Object */ var punycode, /** Highest positive signed 32-bit float value */ maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1 /** Bootstring parameters */ base = 36, tMin = 1, tMax = 26, skew = 38, damp = 700, initialBias = 72, initialN = 128, // 0x80 delimiter = '-', // '\x2D' /** Regular expressions */ regexPunycode = /^xn--/, regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators /** Error messages */ errors = { 'overflow': 'Overflow: input needs wider integers to process', 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', 'invalid-input': 'Invalid input' }, /** Convenience shortcuts */ baseMinusTMin = base - tMin, floor = Math.floor, stringFromCharCode = String.fromCharCode, /** Temporary variable */ key; /*--------------------------------------------------------------------------*/ /** * A generic error utility function. * @private * @param {String} type The error type. * @returns {Error} Throws a `RangeError` with the applicable error message. */ function error(type) { throw new RangeError(errors[type]); } /** * A generic `Array#map` utility function. * @private * @param {Array} array The array to iterate over. * @param {Function} callback The function that gets called for every array * item. * @returns {Array} A new array of values returned by the callback function. */ function map(array, fn) { var length = array.length; var result = []; while (length--) { result[length] = fn(array[length]); } return result; } /** * A simple `Array#map`-like wrapper to work with domain name strings or email * addresses. * @private * @param {String} domain The domain name or email address. * @param {Function} callback The function that gets called for every * character. * @returns {Array} A new string of characters returned by the callback * function. */ function mapDomain(string, fn) { var parts = string.split('@'); var result = ''; if (parts.length > 1) { // In email addresses, only the domain name should be punycoded. Leave // the local part (i.e. everything up to `@`) intact. result = parts[0] + '@'; string = parts[1]; } // Avoid `split(regex)` for IE8 compatibility. See #17. string = string.replace(regexSeparators, '\x2E'); var labels = string.split('.'); var encoded = map(labels, fn).join('.'); return result + encoded; } /** * Creates an array containing the numeric code points of each Unicode * character in the string. While JavaScript uses UCS-2 internally, * this function will convert a pair of surrogate halves (each of which * UCS-2 exposes as separate characters) into a single code point, * matching UTF-16. * @see `punycode.ucs2.encode` * @see * @memberOf punycode.ucs2 * @name decode * @param {String} string The Unicode input string (UCS-2). * @returns {Array} The new array of code points. */ function ucs2decode(string) { var output = [], counter = 0, length = string.length, value, extra; while (counter < length) { value = string.charCodeAt(counter++); if (value >= 0xD800 && value <= 0xDBFF && counter < length) { // high surrogate, and there is a next character extra = string.charCodeAt(counter++); if ((extra & 0xFC00) == 0xDC00) { // low surrogate output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); } else { // unmatched surrogate; only append this code unit, in case the next // code unit is the high surrogate of a surrogate pair output.push(value); counter--; } } else { output.push(value); } } return output; } /** * Creates a string based on an array of numeric code points. * @see `punycode.ucs2.decode` * @memberOf punycode.ucs2 * @name encode * @param {Array} codePoints The array of numeric code points. * @returns {String} The new Unicode string (UCS-2). */ function ucs2encode(array) { return map(array, function(value) { var output = ''; if (value > 0xFFFF) { value -= 0x10000; output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800); value = 0xDC00 | value & 0x3FF; } output += stringFromCharCode(value); return output; }).join(''); } /** * Converts a basic code point into a digit/integer. * @see `digitToBasic()` * @private * @param {Number} codePoint The basic numeric code point value. * @returns {Number} The numeric value of a basic code point (for use in * representing integers) in the range `0` to `base - 1`, or `base` if * the code point does not represent a value. */ function basicToDigit(codePoint) { if (codePoint - 48 < 10) { return codePoint - 22; } if (codePoint - 65 < 26) { return codePoint - 65; } if (codePoint - 97 < 26) { return codePoint - 97; } return base; } /** * Converts a digit/integer into a basic code point. * @see `basicToDigit()` * @private * @param {Number} digit The numeric value of a basic code point. * @returns {Number} The basic code point whose value (when used for * representing integers) is `digit`, which needs to be in the range * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is * used; else, the lowercase form is used. The behavior is undefined * if `flag` is non-zero and `digit` has no uppercase form. */ function digitToBasic(digit, flag) { // 0..25 map to ASCII a..z or A..Z // 26..35 map to ASCII 0..9 return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); } /** * Bias adaptation function as per section 3.4 of RFC 3492. * https://tools.ietf.org/html/rfc3492#section-3.4 * @private */ function adapt(delta, numPoints, firstTime) { var k = 0; delta = firstTime ? floor(delta / damp) : delta >> 1; delta += floor(delta / numPoints); for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { delta = floor(delta / baseMinusTMin); } return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); } /** * Converts a Punycode string of ASCII-only symbols to a string of Unicode * symbols. * @memberOf punycode * @param {String} input The Punycode string of ASCII-only symbols. * @returns {String} The resulting string of Unicode symbols. */ function decode(input) { // Don't use UCS-2 var output = [], inputLength = input.length, out, i = 0, n = initialN, bias = initialBias, basic, j, index, oldi, w, k, digit, t, /** Cached calculation results */ baseMinusT; // Handle the basic code points: let `basic` be the number of input code // points before the last delimiter, or `0` if there is none, then copy // the first basic code points to the output. basic = input.lastIndexOf(delimiter); if (basic < 0) { basic = 0; } for (j = 0; j < basic; ++j) { // if it's not a basic code point if (input.charCodeAt(j) >= 0x80) { error('not-basic'); } output.push(input.charCodeAt(j)); } // Main decoding loop: start just after the last delimiter if any basic code // points were copied; start at the beginning otherwise. for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { // `index` is the index of the next character to be consumed. // Decode a generalized variable-length integer into `delta`, // which gets added to `i`. The overflow checking is easier // if we increase `i` as we go, then subtract off its starting // value at the end to obtain `delta`. for (oldi = i, w = 1, k = base; /* no condition */; k += base) { if (index >= inputLength) { error('invalid-input'); } digit = basicToDigit(input.charCodeAt(index++)); if (digit >= base || digit > floor((maxInt - i) / w)) { error('overflow'); } i += digit * w; t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); if (digit < t) { break; } baseMinusT = base - t; if (w > floor(maxInt / baseMinusT)) { error('overflow'); } w *= baseMinusT; } out = output.length + 1; bias = adapt(i - oldi, out, oldi == 0); // `i` was supposed to wrap around from `out` to `0`, // incrementing `n` each time, so we'll fix that now: if (floor(i / out) > maxInt - n) { error('overflow'); } n += floor(i / out); i %= out; // Insert `n` at position `i` of the output output.splice(i++, 0, n); } return ucs2encode(output); } /** * Converts a string of Unicode symbols (e.g. a domain name label) to a * Punycode string of ASCII-only symbols. * @memberOf punycode * @param {String} input The string of Unicode symbols. * @returns {String} The resulting Punycode string of ASCII-only symbols. */ function encode(input) { var n, delta, handledCPCount, basicLength, bias, j, m, q, k, t, currentValue, output = [], /** `inputLength` will hold the number of code points in `input`. */ inputLength, /** Cached calculation results */ handledCPCountPlusOne, baseMinusT, qMinusT; // Convert the input in UCS-2 to Unicode input = ucs2decode(input); // Cache the length inputLength = input.length; // Initialize the state n = initialN; delta = 0; bias = initialBias; // Handle the basic code points for (j = 0; j < inputLength; ++j) { currentValue = input[j]; if (currentValue < 0x80) { output.push(stringFromCharCode(currentValue)); } } handledCPCount = basicLength = output.length; // `handledCPCount` is the number of code points that have been handled; // `basicLength` is the number of basic code points. // Finish the basic string - if it is not empty - with a delimiter if (basicLength) { output.push(delimiter); } // Main encoding loop: while (handledCPCount < inputLength) { // All non-basic code points < n have been handled already. Find the next // larger one: for (m = maxInt, j = 0; j < inputLength; ++j) { currentValue = input[j]; if (currentValue >= n && currentValue < m) { m = currentValue; } } // Increase `delta` enough to advance the decoder's state to , // but guard against overflow handledCPCountPlusOne = handledCPCount + 1; if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { error('overflow'); } delta += (m - n) * handledCPCountPlusOne; n = m; for (j = 0; j < inputLength; ++j) { currentValue = input[j]; if (currentValue < n && ++delta > maxInt) { error('overflow'); } if (currentValue == n) { // Represent delta as a generalized variable-length integer for (q = delta, k = base; /* no condition */; k += base) { t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); if (q < t) { break; } qMinusT = q - t; baseMinusT = base - t; output.push( stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) ); q = floor(qMinusT / baseMinusT); } output.push(stringFromCharCode(digitToBasic(q, 0))); bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); delta = 0; ++handledCPCount; } } ++delta; ++n; } return output.join(''); } /** * Converts a Punycode string representing a domain name or an email address * to Unicode. Only the Punycoded parts of the input will be converted, i.e. * it doesn't matter if you call it on a string that has already been * converted to Unicode. * @memberOf punycode * @param {String} input The Punycoded domain name or email address to * convert to Unicode. * @returns {String} The Unicode representation of the given Punycode * string. */ function toUnicode(input) { return mapDomain(input, function(string) { return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string; }); } /** * Converts a Unicode string representing a domain name or an email address to * Punycode. Only the non-ASCII parts of the domain name will be converted, * i.e. it doesn't matter if you call it with a domain that's already in * ASCII. * @memberOf punycode * @param {String} input The domain name or email address to convert, as a * Unicode string. * @returns {String} The Punycode representation of the given domain name or * email address. */ function toASCII(input) { return mapDomain(input, function(string) { return regexNonASCII.test(string) ? 'xn--' + encode(string) : string; }); } /*--------------------------------------------------------------------------*/ /** Define the public API */ punycode = { /** * A string representing the current Punycode.js version number. * @memberOf punycode * @type String */ 'version': '1.4.1', /** * An object of methods to convert from JavaScript's internal character * representation (UCS-2) to Unicode code points, and back. * @see * @memberOf punycode * @type Object */ 'ucs2': { 'decode': ucs2decode, 'encode': ucs2encode }, 'decode': decode, 'encode': encode, 'toASCII': toASCII, 'toUnicode': toUnicode }; /** Expose `punycode` */ // Some AMD build optimizers, like r.js, check for specific condition patterns // like the following: if ( true ) { !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return punycode; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} }(this)); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module), __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) /***/ }), /***/ "./node_modules/number-allocator/index.js": /*!************************************************!*\ !*** ./node_modules/number-allocator/index.js ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // Copyright Takatoshi Kondo 2021 // // Distributed under the MIT License const NumberAllocator = __webpack_require__(/*! ./lib/number-allocator.js */ "./node_modules/number-allocator/lib/number-allocator.js") module.exports.NumberAllocator = NumberAllocator /***/ }), /***/ "./node_modules/number-allocator/lib/number-allocator.js": /*!***************************************************************!*\ !*** ./node_modules/number-allocator/lib/number-allocator.js ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Takatoshi Kondo 2021 // // Distributed under the MIT License const SortedSet = __webpack_require__(/*! js-sdsl */ "./node_modules/js-sdsl/dist/esm/index.js").OrderedSet const debugTrace = __webpack_require__(/*! debug */ "./node_modules/debug/src/browser.js")('number-allocator:trace') const debugError = __webpack_require__(/*! debug */ "./node_modules/debug/src/browser.js")('number-allocator:error') /** * Interval constructor * @constructor * @param {Number} low - The lowest value of the interval * @param {Number} high - The highest value of the interval */ function Interval (low, high) { this.low = low this.high = high } Interval.prototype.equals = function (other) { return this.low === other.low && this.high === other.high } Interval.prototype.compare = function (other) { if (this.low < other.low && this.high < other.low) return -1 if (other.low < this.low && other.high < this.low) return 1 return 0 } /** * NumberAllocator constructor. * The all numbers are set to vacant status. * Time Complexity O(1) * @constructor * @param {Number} min - The maximum number of allocatable. The number must be integer. * @param {Number} maxh - The minimum number of allocatable. The number must be integer. */ function NumberAllocator (min, max) { if (!(this instanceof NumberAllocator)) { return new NumberAllocator(min, max) } this.min = min this.max = max this.ss = new SortedSet( [], (lhs, rhs) => { return lhs.compare(rhs) } ) debugTrace('Create') this.clear() } /** * Get the first vacant number. The status of the number is not updated. * Time Complexity O(1) * @return {Number} - The first vacant number. If all numbers are occupied, return null. * When alloc() is called then the same value will be allocated. */ NumberAllocator.prototype.firstVacant = function () { if (this.ss.size() === 0) return null return this.ss.front().low } /** * Allocate the first vacant number. The number become occupied status. * Time Complexity O(1) * @return {Number} - The first vacant number. If all numbers are occupied, return null. */ NumberAllocator.prototype.alloc = function () { if (this.ss.size() === 0) { debugTrace('alloc():empty') return null } const it = this.ss.begin() const low = it.pointer.low const high = it.pointer.high const num = low if (num + 1 <= high) { // x|----| this.ss.updateKeyByIterator(it, new Interval(low + 1, high)) } else { this.ss.eraseElementByPos(0) } debugTrace('alloc():' + num) return num } /** * Use the number. The number become occupied status. * If the number has already been occupied, then return false. * Time Complexity O(logN) : N is the number of intervals (not numbers) * @param {Number} num - The number to request use. * @return {Boolean} - If `num` was not occupied, then return true, otherwise return false. */ NumberAllocator.prototype.use = function (num) { const key = new Interval(num, num) const it = this.ss.lowerBound(key) if (!it.equals(this.ss.end())) { const low = it.pointer.low const high = it.pointer.high if (it.pointer.equals(key)) { // |x| this.ss.eraseElementByIterator(it) debugTrace('use():' + num) return true } // x |-----| if (low > num) return false // |x----| if (low === num) { // x|----| this.ss.updateKeyByIterator(it, new Interval(low + 1, high)) debugTrace('use():' + num) return true } // |----x| if (high === num) { // |----|x this.ss.updateKeyByIterator(it, new Interval(low, high - 1)) debugTrace('use():' + num) return true } // |--x--| // x|--| this.ss.updateKeyByIterator(it, new Interval(num + 1, high)) // |--|x|--| this.ss.insert(new Interval(low, num - 1)) debugTrace('use():' + num) return true } debugTrace('use():failed') return false } /** * Deallocate the number. The number become vacant status. * Time Complexity O(logN) : N is the number of intervals (not numbers) * @param {Number} num - The number to deallocate. The number must be occupied status. * In other words, the number must be allocated by alloc() or occupied be use(). */ NumberAllocator.prototype.free = function (num) { if (num < this.min || num > this.max) { debugError('free():' + num + ' is out of range') return } const key = new Interval(num, num) const it = this.ss.upperBound(key) if (it.equals(this.ss.end())) { // ....v if (it.equals(this.ss.begin())) { // Insert new interval this.ss.insert(key) return } it.pre() const low = it.pointer.high const high = it.pointer.high if (high + 1 === num) { // Concat to left this.ss.updateKeyByIterator(it, new Interval(low, num)) } else { // Insert new interval this.ss.insert(key) } } else { if (it.equals(this.ss.begin())) { // v.... if (num + 1 === it.pointer.low) { // Concat to right const high = it.pointer.high this.ss.updateKeyByIterator(it, new Interval(num, high)) } else { // Insert new interval this.ss.insert(key) } } else { // ..v.. const rLow = it.pointer.low const rHigh = it.pointer.high it.pre() const lLow = it.pointer.low const lHigh = it.pointer.high if (lHigh + 1 === num) { if (num + 1 === rLow) { // Concat to left and right this.ss.eraseElementByIterator(it) this.ss.updateKeyByIterator(it, new Interval(lLow, rHigh)) } else { // Concat to left this.ss.updateKeyByIterator(it, new Interval(lLow, num)) } } else { if (num + 1 === rLow) { // Concat to right this.ss.eraseElementByIterator(it.next()) this.ss.insert(new Interval(num, rHigh)) } else { // Insert new interval this.ss.insert(key) } } } } debugTrace('free():' + num) } /** * Clear all occupied numbers. * The all numbers are set to vacant status. * Time Complexity O(1) */ NumberAllocator.prototype.clear = function () { debugTrace('clear()') this.ss.clear() this.ss.insert(new Interval(this.min, this.max)) } /** * Get the number of intervals. Interval is internal structure of this library. * This function is for debugging. * Time Complexity O(1) * @return {Number} - The number of intervals. */ NumberAllocator.prototype.intervalCount = function () { return this.ss.size() } /** * Dump the internal structor of the library. * This function is for debugging. * Time Complexity O(N) : N is the number of intervals (not numbers) */ NumberAllocator.prototype.dump = function () { console.log('length:' + this.ss.size()) for (const element of this.ss) { console.log(element) } } module.exports = NumberAllocator /***/ }), /***/ "./node_modules/once/once.js": /*!***********************************!*\ !*** ./node_modules/once/once.js ***! \***********************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var wrappy = __webpack_require__(/*! wrappy */ "./node_modules/wrappy/wrappy.js") module.exports = wrappy(once) module.exports.strict = wrappy(onceStrict) once.proto = once(function () { Object.defineProperty(Function.prototype, 'once', { value: function () { return once(this) }, configurable: true }) Object.defineProperty(Function.prototype, 'onceStrict', { value: function () { return onceStrict(this) }, configurable: true }) }) function once (fn) { var f = function () { if (f.called) return f.value f.called = true return f.value = fn.apply(this, arguments) } f.called = false return f } function onceStrict (fn) { var f = function () { if (f.called) throw new Error(f.onceError) f.called = true return f.value = fn.apply(this, arguments) } var name = fn.name || 'Function wrapped with `once`' f.onceError = name + " shouldn't be called more than once" f.called = false return f } /***/ }), /***/ "./node_modules/os-browserify/browser.js": /*!***********************************************!*\ !*** ./node_modules/os-browserify/browser.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports) { exports.endianness = function () { return 'LE' }; exports.hostname = function () { if (typeof location !== 'undefined') { return location.hostname } else return ''; }; exports.loadavg = function () { return [] }; exports.uptime = function () { return 0 }; exports.freemem = function () { return Number.MAX_VALUE; }; exports.totalmem = function () { return Number.MAX_VALUE; }; exports.cpus = function () { return [] }; exports.type = function () { return 'Browser' }; exports.release = function () { if (typeof navigator !== 'undefined') { return navigator.appVersion; } return ''; }; exports.networkInterfaces = exports.getNetworkInterfaces = function () { return {} }; exports.arch = function () { return 'javascript' }; exports.platform = function () { return 'browser' }; exports.tmpdir = exports.tmpDir = function () { return '/tmp'; }; exports.EOL = '\n'; exports.homedir = function () { return '/' }; /***/ }), /***/ "./node_modules/path-browserify/index.js": /*!***********************************************!*\ !*** ./node_modules/path-browserify/index.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1, // backported and transplited with Babel, with backwards-compat fixes // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // resolves . and .. elements in a path array with directory names there // must be no slashes, empty elements, or device names (c:\) in the array // (so also no leading and trailing slashes - it does not distinguish // relative and absolute paths) function normalizeArray(parts, allowAboveRoot) { // if the path tries to go above the root, `up` ends up > 0 var up = 0; for (var i = parts.length - 1; i >= 0; i--) { var last = parts[i]; if (last === '.') { parts.splice(i, 1); } else if (last === '..') { parts.splice(i, 1); up++; } else if (up) { parts.splice(i, 1); up--; } } // if the path is allowed to go above the root, restore leading ..s if (allowAboveRoot) { for (; up--; up) { parts.unshift('..'); } } return parts; } // path.resolve([from ...], to) // posix version exports.resolve = function() { var resolvedPath = '', resolvedAbsolute = false; for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) { var path = (i >= 0) ? arguments[i] : process.cwd(); // Skip empty and invalid entries if (typeof path !== 'string') { throw new TypeError('Arguments to path.resolve must be strings'); } else if (!path) { continue; } resolvedPath = path + '/' + resolvedPath; resolvedAbsolute = path.charAt(0) === '/'; } // At this point the path should be resolved to a full absolute path, but // handle relative paths to be safe (might happen when process.cwd() fails) // Normalize the path resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) { return !!p; }), !resolvedAbsolute).join('/'); return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.'; }; // path.normalize(path) // posix version exports.normalize = function(path) { var isAbsolute = exports.isAbsolute(path), trailingSlash = substr(path, -1) === '/'; // Normalize the path path = normalizeArray(filter(path.split('/'), function(p) { return !!p; }), !isAbsolute).join('/'); if (!path && !isAbsolute) { path = '.'; } if (path && trailingSlash) { path += '/'; } return (isAbsolute ? '/' : '') + path; }; // posix version exports.isAbsolute = function(path) { return path.charAt(0) === '/'; }; // posix version exports.join = function() { var paths = Array.prototype.slice.call(arguments, 0); return exports.normalize(filter(paths, function(p, index) { if (typeof p !== 'string') { throw new TypeError('Arguments to path.join must be strings'); } return p; }).join('/')); }; // path.relative(from, to) // posix version exports.relative = function(from, to) { from = exports.resolve(from).substr(1); to = exports.resolve(to).substr(1); function trim(arr) { var start = 0; for (; start < arr.length; start++) { if (arr[start] !== '') break; } var end = arr.length - 1; for (; end >= 0; end--) { if (arr[end] !== '') break; } if (start > end) return []; return arr.slice(start, end - start + 1); } var fromParts = trim(from.split('/')); var toParts = trim(to.split('/')); var length = Math.min(fromParts.length, toParts.length); var samePartsLength = length; for (var i = 0; i < length; i++) { if (fromParts[i] !== toParts[i]) { samePartsLength = i; break; } } var outputParts = []; for (var i = samePartsLength; i < fromParts.length; i++) { outputParts.push('..'); } outputParts = outputParts.concat(toParts.slice(samePartsLength)); return outputParts.join('/'); }; exports.sep = '/'; exports.delimiter = ':'; exports.dirname = function (path) { if (typeof path !== 'string') path = path + ''; if (path.length === 0) return '.'; var code = path.charCodeAt(0); var hasRoot = code === 47 /*/*/; var end = -1; var matchedSlash = true; for (var i = path.length - 1; i >= 1; --i) { code = path.charCodeAt(i); if (code === 47 /*/*/) { if (!matchedSlash) { end = i; break; } } else { // We saw the first non-path separator matchedSlash = false; } } if (end === -1) return hasRoot ? '/' : '.'; if (hasRoot && end === 1) { // return '//'; // Backwards-compat fix: return '/'; } return path.slice(0, end); }; function basename(path) { if (typeof path !== 'string') path = path + ''; var start = 0; var end = -1; var matchedSlash = true; var i; for (i = path.length - 1; i >= 0; --i) { if (path.charCodeAt(i) === 47 /*/*/) { // If we reached a path separator that was not part of a set of path // separators at the end of the string, stop now if (!matchedSlash) { start = i + 1; break; } } else if (end === -1) { // We saw the first non-path separator, mark this as the end of our // path component matchedSlash = false; end = i + 1; } } if (end === -1) return ''; return path.slice(start, end); } // Uses a mixed approach for backwards-compatibility, as ext behavior changed // in new Node.js versions, so only basename() above is backported here exports.basename = function (path, ext) { var f = basename(path); if (ext && f.substr(-1 * ext.length) === ext) { f = f.substr(0, f.length - ext.length); } return f; }; exports.extname = function (path) { if (typeof path !== 'string') path = path + ''; var startDot = -1; var startPart = 0; var end = -1; var matchedSlash = true; // Track the state of characters (if any) we see before our first dot and // after any path separator we find var preDotState = 0; for (var i = path.length - 1; i >= 0; --i) { var code = path.charCodeAt(i); if (code === 47 /*/*/) { // If we reached a path separator that was not part of a set of path // separators at the end of the string, stop now if (!matchedSlash) { startPart = i + 1; break; } continue; } if (end === -1) { // We saw the first non-path separator, mark this as the end of our // extension matchedSlash = false; end = i + 1; } if (code === 46 /*.*/) { // If this is our first dot, mark it as the start of our extension if (startDot === -1) startDot = i; else if (preDotState !== 1) preDotState = 1; } else if (startDot !== -1) { // We saw a non-dot and non-path separator before our dot, so we should // have a good chance at having a non-empty extension preDotState = -1; } } if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot preDotState === 0 || // The (right-most) trimmed path component is exactly '..' preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { return ''; } return path.slice(startDot, end); }; function filter (xs, f) { if (xs.filter) return xs.filter(f); var res = []; for (var i = 0; i < xs.length; i++) { if (f(xs[i], i, xs)) res.push(xs[i]); } return res; } // String.prototype.substr - negative index don't work in IE8 var substr = 'ab'.substr(-1) === 'b' ? function (str, start, len) { return str.substr(start, len) } : function (str, start, len) { if (start < 0) start = str.length + start; return str.substr(start, len); } ; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/process-nextick-args/index.js": /*!****************************************************!*\ !*** ./node_modules/process-nextick-args/index.js ***! \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { if (typeof process === 'undefined' || !process.version || process.version.indexOf('v0.') === 0 || process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) { module.exports = { nextTick: nextTick }; } else { module.exports = process } function nextTick(fn, arg1, arg2, arg3) { if (typeof fn !== 'function') { throw new TypeError('"callback" argument must be a function'); } var len = arguments.length; var args, i; switch (len) { case 0: case 1: return process.nextTick(fn); case 2: return process.nextTick(function afterTickOne() { fn.call(null, arg1); }); case 3: return process.nextTick(function afterTickTwo() { fn.call(null, arg1, arg2); }); case 4: return process.nextTick(function afterTickThree() { fn.call(null, arg1, arg2, arg3); }); default: args = new Array(len - 1); i = 0; while (i < args.length) { args[i++] = arguments[i]; } return process.nextTick(function afterTick() { fn.apply(null, args); }); } } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/readable-stream/duplex-browser.js": /*!********************************************************!*\ !*** ./node_modules/readable-stream/duplex-browser.js ***! \********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! ./lib/_stream_duplex.js */ "./node_modules/readable-stream/lib/_stream_duplex.js"); /***/ }), /***/ "./node_modules/readable-stream/lib/_stream_duplex.js": /*!************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_duplex.js ***! \************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // a duplex stream is just a stream that is both readable and writable. // Since JS doesn't have multiple prototypal inheritance, this class // prototypally inherits from Readable, and then parasitically from // Writable. /**/ var pna = __webpack_require__(/*! process-nextick-args */ "./node_modules/process-nextick-args/index.js"); /**/ /**/ var objectKeys = Object.keys || function (obj) { var keys = []; for (var key in obj) { keys.push(key); }return keys; }; /**/ module.exports = Duplex; /**/ var util = Object.create(__webpack_require__(/*! core-util-is */ "./node_modules/core-util-is/lib/util.js")); util.inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"); /**/ var Readable = __webpack_require__(/*! ./_stream_readable */ "./node_modules/readable-stream/lib/_stream_readable.js"); var Writable = __webpack_require__(/*! ./_stream_writable */ "./node_modules/readable-stream/lib/_stream_writable.js"); util.inherits(Duplex, Readable); { // avoid scope creep, the keys array can then be collected var keys = objectKeys(Writable.prototype); for (var v = 0; v < keys.length; v++) { var method = keys[v]; if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; } } function Duplex(options) { if (!(this instanceof Duplex)) return new Duplex(options); Readable.call(this, options); Writable.call(this, options); if (options && options.readable === false) this.readable = false; if (options && options.writable === false) this.writable = false; this.allowHalfOpen = true; if (options && options.allowHalfOpen === false) this.allowHalfOpen = false; this.once('end', onend); } Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function () { return this._writableState.highWaterMark; } }); // the no-half-open enforcer function onend() { // if we allow half-open state, or if the writable side ended, // then we're ok. if (this.allowHalfOpen || this._writableState.ended) return; // no more data can be written. // But allow more writes to happen in this tick. pna.nextTick(onEndNT, this); } function onEndNT(self) { self.end(); } Object.defineProperty(Duplex.prototype, 'destroyed', { get: function () { if (this._readableState === undefined || this._writableState === undefined) { return false; } return this._readableState.destroyed && this._writableState.destroyed; }, set: function (value) { // we ignore the value if the stream // has not been initialized yet if (this._readableState === undefined || this._writableState === undefined) { return; } // backward compatibility, the user is explicitly // managing destroyed this._readableState.destroyed = value; this._writableState.destroyed = value; } }); Duplex.prototype._destroy = function (err, cb) { this.push(null); this.end(); pna.nextTick(cb, err); }; /***/ }), /***/ "./node_modules/readable-stream/lib/_stream_passthrough.js": /*!*****************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_passthrough.js ***! \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // a passthrough stream. // basically just the most minimal sort of Transform stream. // Every written chunk gets output as-is. module.exports = PassThrough; var Transform = __webpack_require__(/*! ./_stream_transform */ "./node_modules/readable-stream/lib/_stream_transform.js"); /**/ var util = Object.create(__webpack_require__(/*! core-util-is */ "./node_modules/core-util-is/lib/util.js")); util.inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"); /**/ util.inherits(PassThrough, Transform); function PassThrough(options) { if (!(this instanceof PassThrough)) return new PassThrough(options); Transform.call(this, options); } PassThrough.prototype._transform = function (chunk, encoding, cb) { cb(null, chunk); }; /***/ }), /***/ "./node_modules/readable-stream/lib/_stream_readable.js": /*!**************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_readable.js ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. /**/ var pna = __webpack_require__(/*! process-nextick-args */ "./node_modules/process-nextick-args/index.js"); /**/ module.exports = Readable; /**/ var isArray = __webpack_require__(/*! isarray */ "./node_modules/isarray/index.js"); /**/ /**/ var Duplex; /**/ Readable.ReadableState = ReadableState; /**/ var EE = __webpack_require__(/*! events */ "./node_modules/events/events.js").EventEmitter; var EElistenerCount = function (emitter, type) { return emitter.listeners(type).length; }; /**/ /**/ var Stream = __webpack_require__(/*! ./internal/streams/stream */ "./node_modules/readable-stream/lib/internal/streams/stream-browser.js"); /**/ /**/ var Buffer = __webpack_require__(/*! safe-buffer */ "./node_modules/safe-buffer/index.js").Buffer; var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); } function _isUint8Array(obj) { return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; } /**/ /**/ var util = Object.create(__webpack_require__(/*! core-util-is */ "./node_modules/core-util-is/lib/util.js")); util.inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"); /**/ /**/ var debugUtil = __webpack_require__(/*! util */ 2); var debug = void 0; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog('stream'); } else { debug = function () {}; } /**/ var BufferList = __webpack_require__(/*! ./internal/streams/BufferList */ "./node_modules/readable-stream/lib/internal/streams/BufferList.js"); var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ "./node_modules/readable-stream/lib/internal/streams/destroy.js"); var StringDecoder; util.inherits(Readable, Stream); var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume']; function prependListener(emitter, event, fn) { // Sadly this is not cacheable as some libraries bundle their own // event emitter implementation with them. if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any // userland ones. NEVER DO THIS. This is here only because this code needs // to continue to work with older versions of Node.js that do not include // the prependListener() method. The goal is to eventually remove this hack. if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; } function ReadableState(options, stream) { Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "./node_modules/readable-stream/lib/_stream_duplex.js"); options = options || {}; // Duplex streams are both readable and writable, but share // the same options object. // However, some cases require setting options to different // values for the readable and the writable sides of the duplex stream. // These options can be provided separately as readableXXX and writableXXX. var isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to // make all the buffer merging and length checks go away this.objectMode = !!options.objectMode; if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer // Note: 0 is a valid value, means "don't call _read preemptively ever" var hwm = options.highWaterMark; var readableHwm = options.readableHighWaterMark; var defaultHwm = this.objectMode ? 16 : 16 * 1024; if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm; // cast to ints. this.highWaterMark = Math.floor(this.highWaterMark); // A linked list is used to store data chunks instead of an array because the // linked list can remove elements from the beginning faster than // array.shift() this.buffer = new BufferList(); this.length = 0; this.pipes = null; this.pipesCount = 0; this.flowing = null; this.ended = false; this.endEmitted = false; this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted // immediately, or on a later tick. We set this to true at first, because // any actions that shouldn't happen until "later" should generally also // not happen before the first read call. this.sync = true; // whenever we return null, then we set a flag to say // that we're awaiting a 'readable' event emission. this.needReadable = false; this.emittedReadable = false; this.readableListening = false; this.resumeScheduled = false; // has it been destroyed this.destroyed = false; // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled this.readingMore = false; this.decoder = null; this.encoding = null; if (options.encoding) { if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ "./node_modules/string_decoder/lib/string_decoder.js").StringDecoder; this.decoder = new StringDecoder(options.encoding); this.encoding = options.encoding; } } function Readable(options) { Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "./node_modules/readable-stream/lib/_stream_duplex.js"); if (!(this instanceof Readable)) return new Readable(options); this._readableState = new ReadableState(options, this); // legacy this.readable = true; if (options) { if (typeof options.read === 'function') this._read = options.read; if (typeof options.destroy === 'function') this._destroy = options.destroy; } Stream.call(this); } Object.defineProperty(Readable.prototype, 'destroyed', { get: function () { if (this._readableState === undefined) { return false; } return this._readableState.destroyed; }, set: function (value) { // we ignore the value if the stream // has not been initialized yet if (!this._readableState) { return; } // backward compatibility, the user is explicitly // managing destroyed this._readableState.destroyed = value; } }); Readable.prototype.destroy = destroyImpl.destroy; Readable.prototype._undestroy = destroyImpl.undestroy; Readable.prototype._destroy = function (err, cb) { this.push(null); cb(err); }; // Manually shove something into the read() buffer. // This returns true if the highWaterMark has not been hit yet, // similar to how Writable.write() returns true if you should // write() some more. Readable.prototype.push = function (chunk, encoding) { var state = this._readableState; var skipChunkCheck; if (!state.objectMode) { if (typeof chunk === 'string') { encoding = encoding || state.defaultEncoding; if (encoding !== state.encoding) { chunk = Buffer.from(chunk, encoding); encoding = ''; } skipChunkCheck = true; } } else { skipChunkCheck = true; } return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); }; // Unshift should *always* be something directly out of read() Readable.prototype.unshift = function (chunk) { return readableAddChunk(this, chunk, null, true, false); }; function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { var state = stream._readableState; if (chunk === null) { state.reading = false; onEofChunk(stream, state); } else { var er; if (!skipChunkCheck) er = chunkInvalid(state, chunk); if (er) { stream.emit('error', er); } else if (state.objectMode || chunk && chunk.length > 0) { if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) { chunk = _uint8ArrayToBuffer(chunk); } if (addToFront) { if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true); } else if (state.ended) { stream.emit('error', new Error('stream.push() after EOF')); } else { state.reading = false; if (state.decoder && !encoding) { chunk = state.decoder.write(chunk); if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state); } else { addChunk(stream, state, chunk, false); } } } else if (!addToFront) { state.reading = false; } } return needMoreData(state); } function addChunk(stream, state, chunk, addToFront) { if (state.flowing && state.length === 0 && !state.sync) { stream.emit('data', chunk); stream.read(0); } else { // update the buffer info. state.length += state.objectMode ? 1 : chunk.length; if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); if (state.needReadable) emitReadable(stream); } maybeReadMore(stream, state); } function chunkInvalid(state, chunk) { var er; if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { er = new TypeError('Invalid non-string/buffer chunk'); } return er; } // if it's past the high water mark, we can push in some more. // Also, if we have no data yet, we can stand some // more bytes. This is to work around cases where hwm=0, // such as the repl. Also, if the push() triggered a // readable event, and the user called read(largeNumber) such that // needReadable was set, then we ought to push more, so that another // 'readable' event will be triggered. function needMoreData(state) { return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0); } Readable.prototype.isPaused = function () { return this._readableState.flowing === false; }; // backwards compatibility. Readable.prototype.setEncoding = function (enc) { if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ "./node_modules/string_decoder/lib/string_decoder.js").StringDecoder; this._readableState.decoder = new StringDecoder(enc); this._readableState.encoding = enc; return this; }; // Don't raise the hwm > 8MB var MAX_HWM = 0x800000; function computeNewHighWaterMark(n) { if (n >= MAX_HWM) { n = MAX_HWM; } else { // Get the next highest power of 2 to prevent increasing hwm excessively in // tiny amounts n--; n |= n >>> 1; n |= n >>> 2; n |= n >>> 4; n |= n >>> 8; n |= n >>> 16; n++; } return n; } // This function is designed to be inlinable, so please take care when making // changes to the function body. function howMuchToRead(n, state) { if (n <= 0 || state.length === 0 && state.ended) return 0; if (state.objectMode) return 1; if (n !== n) { // Only flow one buffer at a time if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; } // If we're asking for more than the current hwm, then raise the hwm. if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); if (n <= state.length) return n; // Don't have enough if (!state.ended) { state.needReadable = true; return 0; } return state.length; } // you can override either this method, or the async _read(n) below. Readable.prototype.read = function (n) { debug('read', n); n = parseInt(n, 10); var state = this._readableState; var nOrig = n; if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we // already have a bunch of data in the buffer, then just trigger // the 'readable' event and move on. if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) { debug('read: emitReadable', state.length, state.ended); if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); return null; } n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up. if (n === 0 && state.ended) { if (state.length === 0) endReadable(this); return null; } // All the actual chunk generation logic needs to be // *below* the call to _read. The reason is that in certain // synthetic stream cases, such as passthrough streams, _read // may be a completely synchronous operation which may change // the state of the read buffer, providing enough data when // before there was *not* enough. // // So, the steps are: // 1. Figure out what the state of things will be after we do // a read from the buffer. // // 2. If that resulting state will trigger a _read, then call _read. // Note that this may be asynchronous, or synchronous. Yes, it is // deeply ugly to write APIs this way, but that still doesn't mean // that the Readable class should behave improperly, as streams are // designed to be sync/async agnostic. // Take note if the _read call is sync or async (ie, if the read call // has returned yet), so that we know whether or not it's safe to emit // 'readable' etc. // // 3. Actually pull the requested chunks out of the buffer and return. // if we need a readable event, then we need to do some reading. var doRead = state.needReadable; debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some if (state.length === 0 || state.length - n < state.highWaterMark) { doRead = true; debug('length less than watermark', doRead); } // however, if we've ended, then there's no point, and if we're already // reading, then it's unnecessary. if (state.ended || state.reading) { doRead = false; debug('reading or ended', doRead); } else if (doRead) { debug('do read'); state.reading = true; state.sync = true; // if the length is currently zero, then we *need* a readable event. if (state.length === 0) state.needReadable = true; // call internal read method this._read(state.highWaterMark); state.sync = false; // If _read pushed data synchronously, then `reading` will be false, // and we need to re-evaluate how much data we can return to the user. if (!state.reading) n = howMuchToRead(nOrig, state); } var ret; if (n > 0) ret = fromList(n, state);else ret = null; if (ret === null) { state.needReadable = true; n = 0; } else { state.length -= n; } if (state.length === 0) { // If we have nothing in the buffer, then we want to know // as soon as we *do* get something into the buffer. if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick. if (nOrig !== n && state.ended) endReadable(this); } if (ret !== null) this.emit('data', ret); return ret; }; function onEofChunk(stream, state) { if (state.ended) return; if (state.decoder) { var chunk = state.decoder.end(); if (chunk && chunk.length) { state.buffer.push(chunk); state.length += state.objectMode ? 1 : chunk.length; } } state.ended = true; // emit 'readable' now to make sure it gets picked up. emitReadable(stream); } // Don't emit readable right away in sync mode, because this can trigger // another read() call => stack overflow. This way, it might trigger // a nextTick recursion warning, but that's not so bad. function emitReadable(stream) { var state = stream._readableState; state.needReadable = false; if (!state.emittedReadable) { debug('emitReadable', state.flowing); state.emittedReadable = true; if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream); } } function emitReadable_(stream) { debug('emit readable'); stream.emit('readable'); flow(stream); } // at this point, the user has presumably seen the 'readable' event, // and called read() to consume some data. that may have triggered // in turn another _read(n) call, in which case reading = true if // it's in progress. // However, if we're not ended, or reading, and the length < hwm, // then go ahead and try to read some more preemptively. function maybeReadMore(stream, state) { if (!state.readingMore) { state.readingMore = true; pna.nextTick(maybeReadMore_, stream, state); } } function maybeReadMore_(stream, state) { var len = state.length; while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) { debug('maybeReadMore read 0'); stream.read(0); if (len === state.length) // didn't get any data, stop spinning. break;else len = state.length; } state.readingMore = false; } // abstract method. to be overridden in specific implementation classes. // call cb(er, data) where data is <= n in length. // for virtual (non-string, non-buffer) streams, "length" is somewhat // arbitrary, and perhaps not very meaningful. Readable.prototype._read = function (n) { this.emit('error', new Error('_read() is not implemented')); }; Readable.prototype.pipe = function (dest, pipeOpts) { var src = this; var state = this._readableState; switch (state.pipesCount) { case 0: state.pipes = dest; break; case 1: state.pipes = [state.pipes, dest]; break; default: state.pipes.push(dest); break; } state.pipesCount += 1; debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; var endFn = doEnd ? onend : unpipe; if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn); dest.on('unpipe', onunpipe); function onunpipe(readable, unpipeInfo) { debug('onunpipe'); if (readable === src) { if (unpipeInfo && unpipeInfo.hasUnpiped === false) { unpipeInfo.hasUnpiped = true; cleanup(); } } } function onend() { debug('onend'); dest.end(); } // when the dest drains, it reduces the awaitDrain counter // on the source. This would be more elegant with a .once() // handler in flow(), but adding and removing repeatedly is // too slow. var ondrain = pipeOnDrain(src); dest.on('drain', ondrain); var cleanedUp = false; function cleanup() { debug('cleanup'); // cleanup event handlers once the pipe is broken dest.removeListener('close', onclose); dest.removeListener('finish', onfinish); dest.removeListener('drain', ondrain); dest.removeListener('error', onerror); dest.removeListener('unpipe', onunpipe); src.removeListener('end', onend); src.removeListener('end', unpipe); src.removeListener('data', ondata); cleanedUp = true; // if the reader is waiting for a drain event from this // specific writer, then it would cause it to never start // flowing again. // So, if this is awaiting a drain, then we just call it now. // If we don't know, then assume that we are waiting for one. if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); } // If the user pushes more data while we're writing to dest then we'll end up // in ondata again. However, we only want to increase awaitDrain once because // dest will only emit one 'drain' event for the multiple writes. // => Introduce a guard on increasing awaitDrain. var increasedAwaitDrain = false; src.on('data', ondata); function ondata(chunk) { debug('ondata'); increasedAwaitDrain = false; var ret = dest.write(chunk); if (false === ret && !increasedAwaitDrain) { // If the user unpiped during `dest.write()`, it is possible // to get stuck in a permanently paused state if that write // also returned false. // => Check whether `dest` is still a piping destination. if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { debug('false write response, pause', state.awaitDrain); state.awaitDrain++; increasedAwaitDrain = true; } src.pause(); } } // if the dest has an error, then stop piping into it. // however, don't suppress the throwing behavior for this. function onerror(er) { debug('onerror', er); unpipe(); dest.removeListener('error', onerror); if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er); } // Make sure our error handler is attached before userland ones. prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once. function onclose() { dest.removeListener('finish', onfinish); unpipe(); } dest.once('close', onclose); function onfinish() { debug('onfinish'); dest.removeListener('close', onclose); unpipe(); } dest.once('finish', onfinish); function unpipe() { debug('unpipe'); src.unpipe(dest); } // tell the dest that it's being piped to dest.emit('pipe', src); // start the flow if it hasn't been started already. if (!state.flowing) { debug('pipe resume'); src.resume(); } return dest; }; function pipeOnDrain(src) { return function () { var state = src._readableState; debug('pipeOnDrain', state.awaitDrain); if (state.awaitDrain) state.awaitDrain--; if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { state.flowing = true; flow(src); } }; } Readable.prototype.unpipe = function (dest) { var state = this._readableState; var unpipeInfo = { hasUnpiped: false }; // if we're not piping anywhere, then do nothing. if (state.pipesCount === 0) return this; // just one destination. most common case. if (state.pipesCount === 1) { // passed in one, but it's not the right one. if (dest && dest !== state.pipes) return this; if (!dest) dest = state.pipes; // got a match. state.pipes = null; state.pipesCount = 0; state.flowing = false; if (dest) dest.emit('unpipe', this, unpipeInfo); return this; } // slow case. multiple pipe destinations. if (!dest) { // remove all. var dests = state.pipes; var len = state.pipesCount; state.pipes = null; state.pipesCount = 0; state.flowing = false; for (var i = 0; i < len; i++) { dests[i].emit('unpipe', this, { hasUnpiped: false }); }return this; } // try to find the right one. var index = indexOf(state.pipes, dest); if (index === -1) return this; state.pipes.splice(index, 1); state.pipesCount -= 1; if (state.pipesCount === 1) state.pipes = state.pipes[0]; dest.emit('unpipe', this, unpipeInfo); return this; }; // set up data events if they are asked for // Ensure readable listeners eventually get something Readable.prototype.on = function (ev, fn) { var res = Stream.prototype.on.call(this, ev, fn); if (ev === 'data') { // Start flowing on next tick if stream isn't explicitly paused if (this._readableState.flowing !== false) this.resume(); } else if (ev === 'readable') { var state = this._readableState; if (!state.endEmitted && !state.readableListening) { state.readableListening = state.needReadable = true; state.emittedReadable = false; if (!state.reading) { pna.nextTick(nReadingNextTick, this); } else if (state.length) { emitReadable(this); } } } return res; }; Readable.prototype.addListener = Readable.prototype.on; function nReadingNextTick(self) { debug('readable nexttick read 0'); self.read(0); } // pause() and resume() are remnants of the legacy readable stream API // If the user uses them, then switch into old mode. Readable.prototype.resume = function () { var state = this._readableState; if (!state.flowing) { debug('resume'); state.flowing = true; resume(this, state); } return this; }; function resume(stream, state) { if (!state.resumeScheduled) { state.resumeScheduled = true; pna.nextTick(resume_, stream, state); } } function resume_(stream, state) { if (!state.reading) { debug('resume read 0'); stream.read(0); } state.resumeScheduled = false; state.awaitDrain = 0; stream.emit('resume'); flow(stream); if (state.flowing && !state.reading) stream.read(0); } Readable.prototype.pause = function () { debug('call pause flowing=%j', this._readableState.flowing); if (false !== this._readableState.flowing) { debug('pause'); this._readableState.flowing = false; this.emit('pause'); } return this; }; function flow(stream) { var state = stream._readableState; debug('flow', state.flowing); while (state.flowing && stream.read() !== null) {} } // wrap an old-style stream as the async data source. // This is *not* part of the readable stream interface. // It is an ugly unfortunate mess of history. Readable.prototype.wrap = function (stream) { var _this = this; var state = this._readableState; var paused = false; stream.on('end', function () { debug('wrapped end'); if (state.decoder && !state.ended) { var chunk = state.decoder.end(); if (chunk && chunk.length) _this.push(chunk); } _this.push(null); }); stream.on('data', function (chunk) { debug('wrapped data'); if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; var ret = _this.push(chunk); if (!ret) { paused = true; stream.pause(); } }); // proxy all the other methods. // important when wrapping filters and duplexes. for (var i in stream) { if (this[i] === undefined && typeof stream[i] === 'function') { this[i] = function (method) { return function () { return stream[method].apply(stream, arguments); }; }(i); } } // proxy certain important events. for (var n = 0; n < kProxyEvents.length; n++) { stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); } // when we try to consume some more bytes, simply unpause the // underlying stream. this._read = function (n) { debug('wrapped _read', n); if (paused) { paused = false; stream.resume(); } }; return this; }; Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function () { return this._readableState.highWaterMark; } }); // exposed for testing purposes only. Readable._fromList = fromList; // Pluck off n bytes from an array of buffers. // Length is the combined lengths of all the buffers in the list. // This function is designed to be inlinable, so please take care when making // changes to the function body. function fromList(n, state) { // nothing buffered if (state.length === 0) return null; var ret; if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { // read it all, truncate the list if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length); state.buffer.clear(); } else { // read part of list ret = fromListPartial(n, state.buffer, state.decoder); } return ret; } // Extracts only enough buffered data to satisfy the amount requested. // This function is designed to be inlinable, so please take care when making // changes to the function body. function fromListPartial(n, list, hasStrings) { var ret; if (n < list.head.data.length) { // slice is the same for buffers and strings ret = list.head.data.slice(0, n); list.head.data = list.head.data.slice(n); } else if (n === list.head.data.length) { // first chunk is a perfect match ret = list.shift(); } else { // result spans more than one buffer ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list); } return ret; } // Copies a specified amount of characters from the list of buffered data // chunks. // This function is designed to be inlinable, so please take care when making // changes to the function body. function copyFromBufferString(n, list) { var p = list.head; var c = 1; var ret = p.data; n -= ret.length; while (p = p.next) { var str = p.data; var nb = n > str.length ? str.length : n; if (nb === str.length) ret += str;else ret += str.slice(0, n); n -= nb; if (n === 0) { if (nb === str.length) { ++c; if (p.next) list.head = p.next;else list.head = list.tail = null; } else { list.head = p; p.data = str.slice(nb); } break; } ++c; } list.length -= c; return ret; } // Copies a specified amount of bytes from the list of buffered data chunks. // This function is designed to be inlinable, so please take care when making // changes to the function body. function copyFromBuffer(n, list) { var ret = Buffer.allocUnsafe(n); var p = list.head; var c = 1; p.data.copy(ret); n -= p.data.length; while (p = p.next) { var buf = p.data; var nb = n > buf.length ? buf.length : n; buf.copy(ret, ret.length - n, 0, nb); n -= nb; if (n === 0) { if (nb === buf.length) { ++c; if (p.next) list.head = p.next;else list.head = list.tail = null; } else { list.head = p; p.data = buf.slice(nb); } break; } ++c; } list.length -= c; return ret; } function endReadable(stream) { var state = stream._readableState; // If we get here before consuming all the bytes, then that is a // bug in node. Should never happen. if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream'); if (!state.endEmitted) { state.ended = true; pna.nextTick(endReadableNT, state, stream); } } function endReadableNT(state, stream) { // Check that we didn't get one last unshift. if (!state.endEmitted && state.length === 0) { state.endEmitted = true; stream.readable = false; stream.emit('end'); } } function indexOf(xs, x) { for (var i = 0, l = xs.length; i < l; i++) { if (xs[i] === x) return i; } return -1; } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/readable-stream/lib/_stream_transform.js": /*!***************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_transform.js ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // a transform stream is a readable/writable stream where you do // something with the data. Sometimes it's called a "filter", // but that's not a great name for it, since that implies a thing where // some bits pass through, and others are simply ignored. (That would // be a valid example of a transform, of course.) // // While the output is causally related to the input, it's not a // necessarily symmetric or synchronous transformation. For example, // a zlib stream might take multiple plain-text writes(), and then // emit a single compressed chunk some time in the future. // // Here's how this works: // // The Transform stream has all the aspects of the readable and writable // stream classes. When you write(chunk), that calls _write(chunk,cb) // internally, and returns false if there's a lot of pending writes // buffered up. When you call read(), that calls _read(n) until // there's enough pending readable data buffered up. // // In a transform stream, the written data is placed in a buffer. When // _read(n) is called, it transforms the queued up data, calling the // buffered _write cb's as it consumes chunks. If consuming a single // written chunk would result in multiple output chunks, then the first // outputted bit calls the readcb, and subsequent chunks just go into // the read buffer, and will cause it to emit 'readable' if necessary. // // This way, back-pressure is actually determined by the reading side, // since _read has to be called to start processing a new chunk. However, // a pathological inflate type of transform can cause excessive buffering // here. For example, imagine a stream where every byte of input is // interpreted as an integer from 0-255, and then results in that many // bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in // 1kb of data being output. In this case, you could write a very small // amount of input, and end up with a very large amount of output. In // such a pathological inflating mechanism, there'd be no way to tell // the system to stop doing the transform. A single 4MB write could // cause the system to run out of memory. // // However, even in such a pathological case, only a single written chunk // would be consumed, and then the rest would wait (un-transformed) until // the results of the previous transformed chunk were consumed. module.exports = Transform; var Duplex = __webpack_require__(/*! ./_stream_duplex */ "./node_modules/readable-stream/lib/_stream_duplex.js"); /**/ var util = Object.create(__webpack_require__(/*! core-util-is */ "./node_modules/core-util-is/lib/util.js")); util.inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"); /**/ util.inherits(Transform, Duplex); function afterTransform(er, data) { var ts = this._transformState; ts.transforming = false; var cb = ts.writecb; if (!cb) { return this.emit('error', new Error('write callback called multiple times')); } ts.writechunk = null; ts.writecb = null; if (data != null) // single equals check for both `null` and `undefined` this.push(data); cb(er); var rs = this._readableState; rs.reading = false; if (rs.needReadable || rs.length < rs.highWaterMark) { this._read(rs.highWaterMark); } } function Transform(options) { if (!(this instanceof Transform)) return new Transform(options); Duplex.call(this, options); this._transformState = { afterTransform: afterTransform.bind(this), needTransform: false, transforming: false, writecb: null, writechunk: null, writeencoding: null }; // start out asking for a readable event once data is transformed. this._readableState.needReadable = true; // we have implemented the _read method, and done the other things // that Readable wants before the first _read call, so unset the // sync guard flag. this._readableState.sync = false; if (options) { if (typeof options.transform === 'function') this._transform = options.transform; if (typeof options.flush === 'function') this._flush = options.flush; } // When the writable side finishes, then flush out anything remaining. this.on('prefinish', prefinish); } function prefinish() { var _this = this; if (typeof this._flush === 'function') { this._flush(function (er, data) { done(_this, er, data); }); } else { done(this, null, null); } } Transform.prototype.push = function (chunk, encoding) { this._transformState.needTransform = false; return Duplex.prototype.push.call(this, chunk, encoding); }; // This is the part where you do stuff! // override this function in implementation classes. // 'chunk' is an input chunk. // // Call `push(newChunk)` to pass along transformed output // to the readable side. You may call 'push' zero or more times. // // Call `cb(err)` when you are done with this chunk. If you pass // an error, then that'll put the hurt on the whole operation. If you // never call cb(), then you'll never get another chunk. Transform.prototype._transform = function (chunk, encoding, cb) { throw new Error('_transform() is not implemented'); }; Transform.prototype._write = function (chunk, encoding, cb) { var ts = this._transformState; ts.writecb = cb; ts.writechunk = chunk; ts.writeencoding = encoding; if (!ts.transforming) { var rs = this._readableState; if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); } }; // Doesn't matter what the args are here. // _transform does all the work. // That we got here means that the readable side wants more data. Transform.prototype._read = function (n) { var ts = this._transformState; if (ts.writechunk !== null && ts.writecb && !ts.transforming) { ts.transforming = true; this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); } else { // mark that we need a transform, so that any data that comes in // will get processed, now that we've asked for it. ts.needTransform = true; } }; Transform.prototype._destroy = function (err, cb) { var _this2 = this; Duplex.prototype._destroy.call(this, err, function (err2) { cb(err2); _this2.emit('close'); }); }; function done(stream, er, data) { if (er) return stream.emit('error', er); if (data != null) // single equals check for both `null` and `undefined` stream.push(data); // if there's nothing in the write buffer, then that means // that nothing more will ever be provided if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0'); if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming'); return stream.push(null); } /***/ }), /***/ "./node_modules/readable-stream/lib/_stream_writable.js": /*!**************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_writable.js ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process, global) {// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // A bit simpler than readable streams. // Implement an async ._write(chunk, encoding, cb), and it'll handle all // the drain event emission and buffering. /**/ var pna = __webpack_require__(/*! process-nextick-args */ "./node_modules/process-nextick-args/index.js"); /**/ module.exports = Writable; /* */ function WriteReq(chunk, encoding, cb) { this.chunk = chunk; this.encoding = encoding; this.callback = cb; this.next = null; } // It seems a linked list but it is not // there will be only 2 of these for each stream function CorkedRequest(state) { var _this = this; this.next = null; this.entry = null; this.finish = function () { onCorkedFinish(_this, state); }; } /* */ /**/ var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick; /**/ /**/ var Duplex; /**/ Writable.WritableState = WritableState; /**/ var util = Object.create(__webpack_require__(/*! core-util-is */ "./node_modules/core-util-is/lib/util.js")); util.inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"); /**/ /**/ var internalUtil = { deprecate: __webpack_require__(/*! util-deprecate */ "./node_modules/util-deprecate/browser.js") }; /**/ /**/ var Stream = __webpack_require__(/*! ./internal/streams/stream */ "./node_modules/readable-stream/lib/internal/streams/stream-browser.js"); /**/ /**/ var Buffer = __webpack_require__(/*! safe-buffer */ "./node_modules/safe-buffer/index.js").Buffer; var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); } function _isUint8Array(obj) { return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; } /**/ var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ "./node_modules/readable-stream/lib/internal/streams/destroy.js"); util.inherits(Writable, Stream); function nop() {} function WritableState(options, stream) { Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "./node_modules/readable-stream/lib/_stream_duplex.js"); options = options || {}; // Duplex streams are both readable and writable, but share // the same options object. // However, some cases require setting options to different // values for the readable and the writable sides of the duplex stream. // These options can be provided separately as readableXXX and writableXXX. var isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream // contains buffers or objects. this.objectMode = !!options.objectMode; if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false // Note: 0 is a valid value, means that we always return false if // the entire buffer is not flushed immediately on write() var hwm = options.highWaterMark; var writableHwm = options.writableHighWaterMark; var defaultHwm = this.objectMode ? 16 : 16 * 1024; if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm; // cast to ints. this.highWaterMark = Math.floor(this.highWaterMark); // if _final has been called this.finalCalled = false; // drain event flag. this.needDrain = false; // at the start of calling end() this.ending = false; // when end() has been called, and returned this.ended = false; // when 'finish' is emitted this.finished = false; // has it been destroyed this.destroyed = false; // should we decode strings into buffers before passing to _write? // this is here so that some node-core streams can optimize string // handling at a lower level. var noDecode = options.decodeStrings === false; this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement // of how much we're waiting to get pushed to some underlying // socket or file. this.length = 0; // a flag to see when we're in the middle of a write. this.writing = false; // when true all writes will be buffered until .uncork() call this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately, // or on a later tick. We set this to true at first, because any // actions that shouldn't happen until "later" should generally also // not happen before the first write call. this.sync = true; // a flag to know if we're processing previously buffered items, which // may call the _write() callback in the same tick, so that we don't // end up in an overlapped onwrite situation. this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb) this.onwrite = function (er) { onwrite(stream, er); }; // the callback that the user supplies to write(chunk,encoding,cb) this.writecb = null; // the amount that is being written when _write is called. this.writelen = 0; this.bufferedRequest = null; this.lastBufferedRequest = null; // number of pending user-supplied write callbacks // this must be 0 before 'finish' can be emitted this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs // This is relevant for synchronous Transform streams this.prefinished = false; // True if the error was already emitted and should not be thrown again this.errorEmitted = false; // count buffered requests this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always // one allocated and free to use, and we maintain at most two this.corkedRequestsFree = new CorkedRequest(this); } WritableState.prototype.getBuffer = function getBuffer() { var current = this.bufferedRequest; var out = []; while (current) { out.push(current); current = current.next; } return out; }; (function () { try { Object.defineProperty(WritableState.prototype, 'buffer', { get: internalUtil.deprecate(function () { return this.getBuffer(); }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003') }); } catch (_) {} })(); // Test _writableState for inheritance to account for Duplex streams, // whose prototype chain only points to Readable. var realHasInstance; if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { realHasInstance = Function.prototype[Symbol.hasInstance]; Object.defineProperty(Writable, Symbol.hasInstance, { value: function (object) { if (realHasInstance.call(this, object)) return true; if (this !== Writable) return false; return object && object._writableState instanceof WritableState; } }); } else { realHasInstance = function (object) { return object instanceof this; }; } function Writable(options) { Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "./node_modules/readable-stream/lib/_stream_duplex.js"); // Writable ctor is applied to Duplexes, too. // `realHasInstance` is necessary because using plain `instanceof` // would return false, as no `_writableState` property is attached. // Trying to use the custom `instanceof` for Writable here will also break the // Node.js LazyTransform implementation, which has a non-trivial getter for // `_writableState` that would lead to infinite recursion. if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) { return new Writable(options); } this._writableState = new WritableState(options, this); // legacy. this.writable = true; if (options) { if (typeof options.write === 'function') this._write = options.write; if (typeof options.writev === 'function') this._writev = options.writev; if (typeof options.destroy === 'function') this._destroy = options.destroy; if (typeof options.final === 'function') this._final = options.final; } Stream.call(this); } // Otherwise people can pipe Writable streams, which is just wrong. Writable.prototype.pipe = function () { this.emit('error', new Error('Cannot pipe, not readable')); }; function writeAfterEnd(stream, cb) { var er = new Error('write after end'); // TODO: defer error events consistently everywhere, not just the cb stream.emit('error', er); pna.nextTick(cb, er); } // Checks that a user-supplied chunk is valid, especially for the particular // mode the stream is in. Currently this means that `null` is never accepted // and undefined/non-string values are only allowed in object mode. function validChunk(stream, state, chunk, cb) { var valid = true; var er = false; if (chunk === null) { er = new TypeError('May not write null values to stream'); } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { er = new TypeError('Invalid non-string/buffer chunk'); } if (er) { stream.emit('error', er); pna.nextTick(cb, er); valid = false; } return valid; } Writable.prototype.write = function (chunk, encoding, cb) { var state = this._writableState; var ret = false; var isBuf = !state.objectMode && _isUint8Array(chunk); if (isBuf && !Buffer.isBuffer(chunk)) { chunk = _uint8ArrayToBuffer(chunk); } if (typeof encoding === 'function') { cb = encoding; encoding = null; } if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; if (typeof cb !== 'function') cb = nop; if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) { state.pendingcb++; ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb); } return ret; }; Writable.prototype.cork = function () { var state = this._writableState; state.corked++; }; Writable.prototype.uncork = function () { var state = this._writableState; if (state.corked) { state.corked--; if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); } }; Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { // node::ParseEncoding() requires lower case. if (typeof encoding === 'string') encoding = encoding.toLowerCase(); if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding); this._writableState.defaultEncoding = encoding; return this; }; function decodeChunk(state, chunk, encoding) { if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { chunk = Buffer.from(chunk, encoding); } return chunk; } Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { // making it explicit this property is not enumerable // because otherwise some prototype manipulation in // userland will fail enumerable: false, get: function () { return this._writableState.highWaterMark; } }); // if we're already writing something, then just put this // in the queue, and wait our turn. Otherwise, call _write // If we return false, then we need a drain event, so set that flag. function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { if (!isBuf) { var newChunk = decodeChunk(state, chunk, encoding); if (chunk !== newChunk) { isBuf = true; encoding = 'buffer'; chunk = newChunk; } } var len = state.objectMode ? 1 : chunk.length; state.length += len; var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false. if (!ret) state.needDrain = true; if (state.writing || state.corked) { var last = state.lastBufferedRequest; state.lastBufferedRequest = { chunk: chunk, encoding: encoding, isBuf: isBuf, callback: cb, next: null }; if (last) { last.next = state.lastBufferedRequest; } else { state.bufferedRequest = state.lastBufferedRequest; } state.bufferedRequestCount += 1; } else { doWrite(stream, state, false, len, chunk, encoding, cb); } return ret; } function doWrite(stream, state, writev, len, chunk, encoding, cb) { state.writelen = len; state.writecb = cb; state.writing = true; state.sync = true; if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); state.sync = false; } function onwriteError(stream, state, sync, er, cb) { --state.pendingcb; if (sync) { // defer the callback if we are being called synchronously // to avoid piling up things on the stack pna.nextTick(cb, er); // this can emit finish, and it will always happen // after error pna.nextTick(finishMaybe, stream, state); stream._writableState.errorEmitted = true; stream.emit('error', er); } else { // the caller expect this to happen before if // it is async cb(er); stream._writableState.errorEmitted = true; stream.emit('error', er); // this can emit finish, but finish must // always follow error finishMaybe(stream, state); } } function onwriteStateUpdate(state) { state.writing = false; state.writecb = null; state.length -= state.writelen; state.writelen = 0; } function onwrite(stream, er) { var state = stream._writableState; var sync = state.sync; var cb = state.writecb; onwriteStateUpdate(state); if (er) onwriteError(stream, state, sync, er, cb);else { // Check if we're actually ready to finish, but don't emit yet var finished = needFinish(state); if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { clearBuffer(stream, state); } if (sync) { /**/ asyncWrite(afterWrite, stream, state, finished, cb); /**/ } else { afterWrite(stream, state, finished, cb); } } } function afterWrite(stream, state, finished, cb) { if (!finished) onwriteDrain(stream, state); state.pendingcb--; cb(); finishMaybe(stream, state); } // Must force callback to be called on nextTick, so that we don't // emit 'drain' before the write() consumer gets the 'false' return // value, and has a chance to attach a 'drain' listener. function onwriteDrain(stream, state) { if (state.length === 0 && state.needDrain) { state.needDrain = false; stream.emit('drain'); } } // if there's something in the buffer waiting, then process it function clearBuffer(stream, state) { state.bufferProcessing = true; var entry = state.bufferedRequest; if (stream._writev && entry && entry.next) { // Fast case, write everything using _writev() var l = state.bufferedRequestCount; var buffer = new Array(l); var holder = state.corkedRequestsFree; holder.entry = entry; var count = 0; var allBuffers = true; while (entry) { buffer[count] = entry; if (!entry.isBuf) allBuffers = false; entry = entry.next; count += 1; } buffer.allBuffers = allBuffers; doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time // as the hot path ends with doWrite state.pendingcb++; state.lastBufferedRequest = null; if (holder.next) { state.corkedRequestsFree = holder.next; holder.next = null; } else { state.corkedRequestsFree = new CorkedRequest(state); } state.bufferedRequestCount = 0; } else { // Slow case, write chunks one-by-one while (entry) { var chunk = entry.chunk; var encoding = entry.encoding; var cb = entry.callback; var len = state.objectMode ? 1 : chunk.length; doWrite(stream, state, false, len, chunk, encoding, cb); entry = entry.next; state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then // it means that we need to wait until it does. // also, that means that the chunk and cb are currently // being processed, so move the buffer counter past them. if (state.writing) { break; } } if (entry === null) state.lastBufferedRequest = null; } state.bufferedRequest = entry; state.bufferProcessing = false; } Writable.prototype._write = function (chunk, encoding, cb) { cb(new Error('_write() is not implemented')); }; Writable.prototype._writev = null; Writable.prototype.end = function (chunk, encoding, cb) { var state = this._writableState; if (typeof chunk === 'function') { cb = chunk; chunk = null; encoding = null; } else if (typeof encoding === 'function') { cb = encoding; encoding = null; } if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks if (state.corked) { state.corked = 1; this.uncork(); } // ignore unnecessary end() calls. if (!state.ending) endWritable(this, state, cb); }; function needFinish(state) { return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; } function callFinal(stream, state) { stream._final(function (err) { state.pendingcb--; if (err) { stream.emit('error', err); } state.prefinished = true; stream.emit('prefinish'); finishMaybe(stream, state); }); } function prefinish(stream, state) { if (!state.prefinished && !state.finalCalled) { if (typeof stream._final === 'function') { state.pendingcb++; state.finalCalled = true; pna.nextTick(callFinal, stream, state); } else { state.prefinished = true; stream.emit('prefinish'); } } } function finishMaybe(stream, state) { var need = needFinish(state); if (need) { prefinish(stream, state); if (state.pendingcb === 0) { state.finished = true; stream.emit('finish'); } } return need; } function endWritable(stream, state, cb) { state.ending = true; finishMaybe(stream, state); if (cb) { if (state.finished) pna.nextTick(cb);else stream.once('finish', cb); } state.ended = true; stream.writable = false; } function onCorkedFinish(corkReq, state, err) { var entry = corkReq.entry; corkReq.entry = null; while (entry) { var cb = entry.callback; state.pendingcb--; cb(err); entry = entry.next; } // reuse the free corkReq. state.corkedRequestsFree.next = corkReq; } Object.defineProperty(Writable.prototype, 'destroyed', { get: function () { if (this._writableState === undefined) { return false; } return this._writableState.destroyed; }, set: function (value) { // we ignore the value if the stream // has not been initialized yet if (!this._writableState) { return; } // backward compatibility, the user is explicitly // managing destroyed this._writableState.destroyed = value; } }); Writable.prototype.destroy = destroyImpl.destroy; Writable.prototype._undestroy = destroyImpl.undestroy; Writable.prototype._destroy = function (err, cb) { this.end(); cb(err); }; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"), __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) /***/ }), /***/ "./node_modules/readable-stream/lib/internal/streams/BufferList.js": /*!*************************************************************************!*\ !*** ./node_modules/readable-stream/lib/internal/streams/BufferList.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Buffer = __webpack_require__(/*! safe-buffer */ "./node_modules/safe-buffer/index.js").Buffer; var util = __webpack_require__(/*! util */ 3); function copyBuffer(src, target, offset) { src.copy(target, offset); } module.exports = function () { function BufferList() { _classCallCheck(this, BufferList); this.head = null; this.tail = null; this.length = 0; } BufferList.prototype.push = function push(v) { var entry = { data: v, next: null }; if (this.length > 0) this.tail.next = entry;else this.head = entry; this.tail = entry; ++this.length; }; BufferList.prototype.unshift = function unshift(v) { var entry = { data: v, next: this.head }; if (this.length === 0) this.tail = entry; this.head = entry; ++this.length; }; BufferList.prototype.shift = function shift() { if (this.length === 0) return; var ret = this.head.data; if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; --this.length; return ret; }; BufferList.prototype.clear = function clear() { this.head = this.tail = null; this.length = 0; }; BufferList.prototype.join = function join(s) { if (this.length === 0) return ''; var p = this.head; var ret = '' + p.data; while (p = p.next) { ret += s + p.data; }return ret; }; BufferList.prototype.concat = function concat(n) { if (this.length === 0) return Buffer.alloc(0); var ret = Buffer.allocUnsafe(n >>> 0); var p = this.head; var i = 0; while (p) { copyBuffer(p.data, ret, i); i += p.data.length; p = p.next; } return ret; }; return BufferList; }(); if (util && util.inspect && util.inspect.custom) { module.exports.prototype[util.inspect.custom] = function () { var obj = util.inspect({ length: this.length }); return this.constructor.name + ' ' + obj; }; } /***/ }), /***/ "./node_modules/readable-stream/lib/internal/streams/destroy.js": /*!**********************************************************************!*\ !*** ./node_modules/readable-stream/lib/internal/streams/destroy.js ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /**/ var pna = __webpack_require__(/*! process-nextick-args */ "./node_modules/process-nextick-args/index.js"); /**/ // undocumented cb() API, needed for core, not for public API function destroy(err, cb) { var _this = this; var readableDestroyed = this._readableState && this._readableState.destroyed; var writableDestroyed = this._writableState && this._writableState.destroyed; if (readableDestroyed || writableDestroyed) { if (cb) { cb(err); } else if (err) { if (!this._writableState) { pna.nextTick(emitErrorNT, this, err); } else if (!this._writableState.errorEmitted) { this._writableState.errorEmitted = true; pna.nextTick(emitErrorNT, this, err); } } return this; } // we set destroyed to true before firing error callbacks in order // to make it re-entrance safe in case destroy() is called within callbacks if (this._readableState) { this._readableState.destroyed = true; } // if this is a duplex stream mark the writable part as destroyed as well if (this._writableState) { this._writableState.destroyed = true; } this._destroy(err || null, function (err) { if (!cb && err) { if (!_this._writableState) { pna.nextTick(emitErrorNT, _this, err); } else if (!_this._writableState.errorEmitted) { _this._writableState.errorEmitted = true; pna.nextTick(emitErrorNT, _this, err); } } else if (cb) { cb(err); } }); return this; } function undestroy() { if (this._readableState) { this._readableState.destroyed = false; this._readableState.reading = false; this._readableState.ended = false; this._readableState.endEmitted = false; } if (this._writableState) { this._writableState.destroyed = false; this._writableState.ended = false; this._writableState.ending = false; this._writableState.finalCalled = false; this._writableState.prefinished = false; this._writableState.finished = false; this._writableState.errorEmitted = false; } } function emitErrorNT(self, err) { self.emit('error', err); } module.exports = { destroy: destroy, undestroy: undestroy }; /***/ }), /***/ "./node_modules/readable-stream/lib/internal/streams/stream-browser.js": /*!*****************************************************************************!*\ !*** ./node_modules/readable-stream/lib/internal/streams/stream-browser.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! events */ "./node_modules/events/events.js").EventEmitter; /***/ }), /***/ "./node_modules/readable-stream/passthrough.js": /*!*****************************************************!*\ !*** ./node_modules/readable-stream/passthrough.js ***! \*****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! ./readable */ "./node_modules/readable-stream/readable-browser.js").PassThrough /***/ }), /***/ "./node_modules/readable-stream/readable-browser.js": /*!**********************************************************!*\ !*** ./node_modules/readable-stream/readable-browser.js ***! \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(/*! ./lib/_stream_readable.js */ "./node_modules/readable-stream/lib/_stream_readable.js"); exports.Stream = exports; exports.Readable = exports; exports.Writable = __webpack_require__(/*! ./lib/_stream_writable.js */ "./node_modules/readable-stream/lib/_stream_writable.js"); exports.Duplex = __webpack_require__(/*! ./lib/_stream_duplex.js */ "./node_modules/readable-stream/lib/_stream_duplex.js"); exports.Transform = __webpack_require__(/*! ./lib/_stream_transform.js */ "./node_modules/readable-stream/lib/_stream_transform.js"); exports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ "./node_modules/readable-stream/lib/_stream_passthrough.js"); /***/ }), /***/ "./node_modules/readable-stream/transform.js": /*!***************************************************!*\ !*** ./node_modules/readable-stream/transform.js ***! \***************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! ./readable */ "./node_modules/readable-stream/readable-browser.js").Transform /***/ }), /***/ "./node_modules/readable-stream/writable-browser.js": /*!**********************************************************!*\ !*** ./node_modules/readable-stream/writable-browser.js ***! \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! ./lib/_stream_writable.js */ "./node_modules/readable-stream/lib/_stream_writable.js"); /***/ }), /***/ "./node_modules/reinterval/index.js": /*!******************************************!*\ !*** ./node_modules/reinterval/index.js ***! \******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; function ReInterval (callback, interval, args) { var self = this; this._callback = callback; this._args = args; this._interval = setInterval(callback, interval, this._args); this.reschedule = function (interval) { // if no interval entered, use the interval passed in on creation if (!interval) interval = self._interval; if (self._interval) clearInterval(self._interval); self._interval = setInterval(self._callback, interval, self._args); }; this.clear = function () { if (self._interval) { clearInterval(self._interval); self._interval = undefined; } }; this.destroy = function () { if (self._interval) { clearInterval(self._interval); } self._callback = undefined; self._interval = undefined; self._args = undefined; }; } function reInterval () { if (typeof arguments[0] !== 'function') throw new Error('callback needed'); if (typeof arguments[1] !== 'number') throw new Error('interval needed'); var args; if (arguments.length > 0) { args = new Array(arguments.length - 2); for (var i = 0; i < args.length; i++) { args[i] = arguments[i + 2]; } } return new ReInterval(arguments[0], arguments[1], args); } module.exports = reInterval; /***/ }), /***/ "./node_modules/rfdc/default.js": /*!**************************************!*\ !*** ./node_modules/rfdc/default.js ***! \**************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = __webpack_require__(/*! ./index.js */ "./node_modules/rfdc/index.js")() /***/ }), /***/ "./node_modules/rfdc/index.js": /*!************************************!*\ !*** ./node_modules/rfdc/index.js ***! \************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(Buffer) { module.exports = rfdc function copyBuffer (cur) { if (cur instanceof Buffer) { return Buffer.from(cur) } return new cur.constructor(cur.buffer.slice(), cur.byteOffset, cur.length) } function rfdc (opts) { opts = opts || {} if (opts.circles) return rfdcCircles(opts) const constructorHandlers = new Map() constructorHandlers.set(Date, (o) => new Date(o)) constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn))) constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn))) if (opts.constructorHandlers) { for (const handler of opts.constructorHandlers) { constructorHandlers.set(handler[0], handler[1]) } } let handler = null return opts.proto ? cloneProto : clone function cloneArray (a, fn) { const keys = Object.keys(a) const a2 = new Array(keys.length) for (let i = 0; i < keys.length; i++) { const k = keys[i] const cur = a[k] if (typeof cur !== 'object' || cur === null) { a2[k] = cur } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) { a2[k] = handler(cur, fn) } else if (ArrayBuffer.isView(cur)) { a2[k] = copyBuffer(cur) } else { a2[k] = fn(cur) } } return a2 } function clone (o) { if (typeof o !== 'object' || o === null) return o if (Array.isArray(o)) return cloneArray(o, clone) if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) { return handler(o, clone) } const o2 = {} for (const k in o) { if (Object.hasOwnProperty.call(o, k) === false) continue const cur = o[k] if (typeof cur !== 'object' || cur === null) { o2[k] = cur } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) { o2[k] = handler(cur, clone) } else if (ArrayBuffer.isView(cur)) { o2[k] = copyBuffer(cur) } else { o2[k] = clone(cur) } } return o2 } function cloneProto (o) { if (typeof o !== 'object' || o === null) return o if (Array.isArray(o)) return cloneArray(o, cloneProto) if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) { return handler(o, cloneProto) } const o2 = {} for (const k in o) { const cur = o[k] if (typeof cur !== 'object' || cur === null) { o2[k] = cur } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) { o2[k] = handler(cur, cloneProto) } else if (ArrayBuffer.isView(cur)) { o2[k] = copyBuffer(cur) } else { o2[k] = cloneProto(cur) } } return o2 } } function rfdcCircles (opts) { const refs = [] const refsNew = [] const constructorHandlers = new Map() constructorHandlers.set(Date, (o) => new Date(o)) constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn))) constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn))) if (opts.constructorHandlers) { for (const handler of opts.constructorHandlers) { constructorHandlers.set(handler[0], handler[1]) } } let handler = null return opts.proto ? cloneProto : clone function cloneArray (a, fn) { const keys = Object.keys(a) const a2 = new Array(keys.length) for (let i = 0; i < keys.length; i++) { const k = keys[i] const cur = a[k] if (typeof cur !== 'object' || cur === null) { a2[k] = cur } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) { a2[k] = handler(cur, fn) } else if (ArrayBuffer.isView(cur)) { a2[k] = copyBuffer(cur) } else { const index = refs.indexOf(cur) if (index !== -1) { a2[k] = refsNew[index] } else { a2[k] = fn(cur) } } } return a2 } function clone (o) { if (typeof o !== 'object' || o === null) return o if (Array.isArray(o)) return cloneArray(o, clone) if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) { return handler(o, clone) } const o2 = {} refs.push(o) refsNew.push(o2) for (const k in o) { if (Object.hasOwnProperty.call(o, k) === false) continue const cur = o[k] if (typeof cur !== 'object' || cur === null) { o2[k] = cur } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) { o2[k] = handler(cur, clone) } else if (ArrayBuffer.isView(cur)) { o2[k] = copyBuffer(cur) } else { const i = refs.indexOf(cur) if (i !== -1) { o2[k] = refsNew[i] } else { o2[k] = clone(cur) } } } refs.pop() refsNew.pop() return o2 } function cloneProto (o) { if (typeof o !== 'object' || o === null) return o if (Array.isArray(o)) return cloneArray(o, cloneProto) if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) { return handler(o, cloneProto) } const o2 = {} refs.push(o) refsNew.push(o2) for (const k in o) { const cur = o[k] if (typeof cur !== 'object' || cur === null) { o2[k] = cur } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) { o2[k] = handler(cur, cloneProto) } else if (ArrayBuffer.isView(cur)) { o2[k] = copyBuffer(cur) } else { const i = refs.indexOf(cur) if (i !== -1) { o2[k] = refsNew[i] } else { o2[k] = cloneProto(cur) } } } refs.pop() refsNew.pop() return o2 } } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../buffer/index.js */ "./node_modules/buffer/index.js").Buffer)) /***/ }), /***/ "./node_modules/safe-buffer/index.js": /*!*******************************************!*\ !*** ./node_modules/safe-buffer/index.js ***! \*******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* eslint-disable node/no-deprecated-api */ var buffer = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js") var Buffer = buffer.Buffer // alternative to using Object.keys for old browsers function copyProps (src, dst) { for (var key in src) { dst[key] = src[key] } } if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { module.exports = buffer } else { // Copy properties from require('buffer') copyProps(buffer, exports) exports.Buffer = SafeBuffer } function SafeBuffer (arg, encodingOrOffset, length) { return Buffer(arg, encodingOrOffset, length) } // Copy static methods from Buffer copyProps(Buffer, SafeBuffer) SafeBuffer.from = function (arg, encodingOrOffset, length) { if (typeof arg === 'number') { throw new TypeError('Argument must not be a number') } return Buffer(arg, encodingOrOffset, length) } SafeBuffer.alloc = function (size, fill, encoding) { if (typeof size !== 'number') { throw new TypeError('Argument must be a number') } var buf = Buffer(size) if (fill !== undefined) { if (typeof encoding === 'string') { buf.fill(fill, encoding) } else { buf.fill(fill) } } else { buf.fill(0) } return buf } SafeBuffer.allocUnsafe = function (size) { if (typeof size !== 'number') { throw new TypeError('Argument must be a number') } return Buffer(size) } SafeBuffer.allocUnsafeSlow = function (size) { if (typeof size !== 'number') { throw new TypeError('Argument must be a number') } return buffer.SlowBuffer(size) } /***/ }), /***/ "./node_modules/sass/sass.dart.js": /*!****************************************!*\ !*** ./node_modules/sass/sass.dart.js ***! \****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process, __dirname, __filename, Buffer) {// Because of vitejs/vite#12340, there's no way to reliably detect whether we're // running as a (possibly bundled/polyfilled) ESM module or as a CommonJS // module. In order to work everywhere, we have to provide the load function via // a side channel on the global object. We write it as a stack so that multiple // cli_pkg packages can depend on one another without clobbering their exports. if (!globalThis._cliPkgExports) { globalThis._cliPkgExports = []; } let _cliPkgExports = {}; globalThis._cliPkgExports.push(_cliPkgExports); _cliPkgExports.load = function(_cliPkgRequires, _cliPkgExportParam) { var dartNodeIsActuallyNode = typeof process !== "undefined" && (process.versions || {}).hasOwnProperty('node'); // make sure to keep this as 'var' // we don't want block scoping var self = dartNodeIsActuallyNode ? Object.create(globalThis) : globalThis; self.scheduleImmediate = typeof setImmediate !== "undefined" ? function (cb) { setImmediate(cb); } : function(cb) { setTimeout(cb, 0); }; // CommonJS globals. if (true) { } self.exports = _cliPkgExportParam || _cliPkgExports; // Node.js specific exports, check to see if they exist & or polyfilled if (typeof process !== "undefined") { self.process = process; } if (true) { self.__dirname = __dirname; } if (true) { self.__filename = __filename; } if (typeof Buffer !== "undefined") { self.Buffer = Buffer; } // if we're running in a browser, Dart supports most of this out of box // make sure we only run these in Node.js environment if (dartNodeIsActuallyNode) { // This line is to: // 1) Prevent Webpack from bundling. // 2) In Webpack on Node.js, make sure we're using the native Node.js require, which is available via __non_webpack_require__ // https://github.com/mbullington/node_preamble.dart/issues/18#issuecomment-527305561 var url = ( true ? require : undefined)("url"); // Setting `self.location=` in Electron throws a `TypeError`, so we define it // as a property instead to be safe. Object.defineProperty(self, "location", { value: { get href() { if (url.pathToFileURL) { return url.pathToFileURL(process.cwd()).href + "/"; } else { // This isn't really a correct transformation, but it's the best we have // for versions of Node <10.12.0 which introduced `url.pathToFileURL()`. // For example, it will fail for paths that contain characters that need // to be escaped in URLs. return "file://" + (function() { var cwd = process.cwd(); if (process.platform != "win32") return cwd; return "/" + cwd.replace(/\\/g, "/"); })() + "/" } } } }); (function() { function computeCurrentScript() { try { throw new Error(); } catch(e) { var stack = e.stack; var re = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"); var lastMatch = null; do { var match = re.exec(stack); if (match != null) lastMatch = match; } while (match != null); return lastMatch[1]; } } // Setting `self.document=` isn't known to throw an error anywhere like // `self.location=` does on Electron, but it's better to be future-proof // just in case.. var cachedCurrentScript = null; Object.defineProperty(self, "document", { value: { get currentScript() { if (cachedCurrentScript == null) { cachedCurrentScript = {src: computeCurrentScript()}; } return cachedCurrentScript; } } }); })(); self.dartDeferredLibraryLoader = function(uri, successCallback, errorCallback) { try { load(uri); successCallback(); } catch (error) { errorCallback(error); } }; } self.immutable = _cliPkgRequires.immutable; self.chokidar = _cliPkgRequires.chokidar; self.readline = _cliPkgRequires.readline; self.fs = _cliPkgRequires.fs; self.stream = _cliPkgRequires.stream; self.util = _cliPkgRequires.util; // Generated by dart2js (NullSafetyMode.sound, trust primitives, omit checks, lax runtime type, csp, deferred-serialization, intern-composite-values), the Dart to JavaScript compiler version: 3.1.5. // The code supports the following hooks: // dartPrint(message): // if this function is defined it is called instead of the Dart [print] // method. // // dartMainRunner(main, args): // if this function is defined, the Dart [main] method will not be invoked // directly. Instead, a closure that will invoke [main], and its arguments // [args] is passed to [dartMainRunner]. // // dartDeferredLibraryLoader(uri, successCallback, errorCallback, loadId, loadPriority): // if this function is defined, it will be called when a deferred library // is loaded. It should load and eval the javascript of `uri`, and call // successCallback. If it fails to do so, it should call errorCallback with // an error. The loadId argument is the deferred import that resulted in // this uri being loaded. The loadPriority argument is the priority the // library should be loaded with as specified in the code via the // load-priority annotation (0: normal, 1: high). // // dartCallInstrumentation(id, qualifiedName): // if this function is defined, it will be called at each entry of a // method or constructor. Used only when compiling programs with // --experiment-call-instrumentation. (function dartProgram() { function copyProperties(from, to) { var keys = Object.keys(from); for (var i = 0; i < keys.length; i++) { var key = keys[i]; to[key] = from[key]; } } function mixinPropertiesHard(from, to) { var keys = Object.keys(from); for (var i = 0; i < keys.length; i++) { var key = keys[i]; if (!to.hasOwnProperty(key)) to[key] = from[key]; } } function mixinPropertiesEasy(from, to) { Object.assign(to, from); } var supportsDirectProtoAccess = function() { var cls = function() { }; cls.prototype = {p: {}}; var object = new cls(); if (!(Object.getPrototypeOf(object) && Object.getPrototypeOf(object).p === cls.prototype.p)) return false; try { if (typeof navigator != "undefined" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome/") >= 0) return true; if (typeof version == "function" && version.length == 0) { var v = version(); if (/^\d+\.\d+\.\d+\.\d+$/.test(v)) return true; } } catch (_) { } return false; }(); function inherit(cls, sup) { cls.prototype.constructor = cls; cls.prototype["$is" + cls.name] = cls; if (sup != null) { if (supportsDirectProtoAccess) { Object.setPrototypeOf(cls.prototype, sup.prototype); return; } var clsPrototype = Object.create(sup.prototype); copyProperties(cls.prototype, clsPrototype); cls.prototype = clsPrototype; } } function inheritMany(sup, classes) { for (var i = 0; i < classes.length; i++) inherit(classes[i], sup); } function mixinEasy(cls, mixin) { mixinPropertiesEasy(mixin.prototype, cls.prototype); cls.prototype.constructor = cls; } function mixinHard(cls, mixin) { mixinPropertiesHard(mixin.prototype, cls.prototype); cls.prototype.constructor = cls; } function lazyOld(holder, name, getterName, initializer) { var uninitializedSentinel = holder; holder[name] = uninitializedSentinel; holder[getterName] = function() { holder[getterName] = function() { A.throwCyclicInit(name); }; var result; var sentinelInProgress = initializer; try { if (holder[name] === uninitializedSentinel) { result = holder[name] = sentinelInProgress; result = holder[name] = initializer(); } else result = holder[name]; } finally { if (result === sentinelInProgress) holder[name] = null; holder[getterName] = function() { return this[name]; }; } return result; }; } function lazy(holder, name, getterName, initializer) { var uninitializedSentinel = holder; holder[name] = uninitializedSentinel; holder[getterName] = function() { if (holder[name] === uninitializedSentinel) holder[name] = initializer(); holder[getterName] = function() { return this[name]; }; return holder[name]; }; } function lazyFinal(holder, name, getterName, initializer) { var uninitializedSentinel = holder; holder[name] = uninitializedSentinel; holder[getterName] = function() { if (holder[name] === uninitializedSentinel) { var value = initializer(); if (holder[name] !== uninitializedSentinel) A.throwLateFieldADI(name); holder[name] = value; } var finalValue = holder[name]; holder[getterName] = function() { return finalValue; }; return finalValue; }; } function makeConstList(list) { list.immutable$list = Array; list.fixed$length = Array; return list; } function convertToFastObject(properties) { function t() { } t.prototype = properties; new t(); return properties; } function convertAllToFastObject(arrayOfObjects) { for (var i = 0; i < arrayOfObjects.length; ++i) convertToFastObject(arrayOfObjects[i]); } var functionCounter = 0; function instanceTearOffGetter(isIntercepted, parameters) { var cache = null; return isIntercepted ? function(receiver) { if (cache === null) cache = A.closureFromTearOff(parameters); return new cache(receiver, this); } : function() { if (cache === null) cache = A.closureFromTearOff(parameters); return new cache(this, null); }; } function staticTearOffGetter(parameters) { var cache = null; return function() { if (cache === null) cache = A.closureFromTearOff(parameters).prototype; return cache; }; } var typesOffset = 0; function tearOffParameters(container, isStatic, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, needsDirectAccess) { if (typeof funType == "number") funType += typesOffset; return {co: container, iS: isStatic, iI: isIntercepted, rC: requiredParameterCount, dV: optionalParameterDefaultValues, cs: callNames, fs: funsOrNames, fT: funType, aI: applyIndex || 0, nDA: needsDirectAccess}; } function installStaticTearOff(holder, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) { var parameters = tearOffParameters(holder, true, false, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, false); var getterFunction = staticTearOffGetter(parameters); holder[getterName] = getterFunction; } function installInstanceTearOff(prototype, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, needsDirectAccess) { isIntercepted = !!isIntercepted; var parameters = tearOffParameters(prototype, false, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, !!needsDirectAccess); var getterFunction = instanceTearOffGetter(isIntercepted, parameters); prototype[getterName] = getterFunction; } function setOrUpdateInterceptorsByTag(newTags) { var tags = init.interceptorsByTag; if (!tags) { init.interceptorsByTag = newTags; return; } copyProperties(newTags, tags); } function setOrUpdateLeafTags(newTags) { var tags = init.leafTags; if (!tags) { init.leafTags = newTags; return; } copyProperties(newTags, tags); } function updateTypes(newTypes) { var types = init.types; var length = types.length; types.push.apply(types, newTypes); return length; } function updateHolder(holder, newHolder) { copyProperties(newHolder, holder); return holder; } var hunkHelpers = function() { var mkInstance = function(isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) { return function(container, getterName, name, funType) { return installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex, false); }; }, mkStatic = function(requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) { return function(container, getterName, name, funType) { return installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex); }; }; 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, lazyOld: lazyOld, updateHolder: updateHolder, convertToFastObject: convertToFastObject, updateTypes: updateTypes, setOrUpdateInterceptorsByTag: setOrUpdateInterceptorsByTag, setOrUpdateLeafTags: setOrUpdateLeafTags}; }(); function initializeDeferredHunk(hunk) { typesOffset = init.types.length; hunk(hunkHelpers, init, holders, $); } var A = {JS_CONST: function JS_CONST() { }, CastIterable_CastIterable(source, $S, $T) { if ($S._eval$1("EfficientLengthIterable<0>")._is(source)) return new A._EfficientLengthCastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("_EfficientLengthCastIterable<1,2>")); return new A.CastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastIterable<1,2>")); }, LateError$localNI(localName) { return new A.LateError("Local '" + localName + "' has not been initialized."); }, hexDigitValue(char) { var letter, digit = char ^ 48; if (digit <= 9) return digit; letter = char | 32; if (97 <= letter && letter <= 102) return letter - 87; return -1; }, SystemHash_combine(hash, value) { hash = hash + value & 536870911; hash = hash + ((hash & 524287) << 10) & 536870911; return hash ^ hash >>> 6; }, SystemHash_finish(hash) { hash = hash + ((hash & 67108863) << 3) & 536870911; hash ^= hash >>> 11; return hash + ((hash & 16383) << 15) & 536870911; }, checkNotNullable(value, $name, $T) { return value; }, isToStringVisiting(object) { var t1, i; for (t1 = $.toStringVisiting.length, i = 0; i < t1; ++i) if (object === $.toStringVisiting[i]) return true; return false; }, SubListIterable$(_iterable, _start, _endOrLength, $E) { A.RangeError_checkNotNegative(_start, "start"); if (_endOrLength != null) { A.RangeError_checkNotNegative(_endOrLength, "end"); if (_start > _endOrLength) A.throwExpression(A.RangeError$range(_start, 0, _endOrLength, "start", null)); } return new A.SubListIterable(_iterable, _start, _endOrLength, $E._eval$1("SubListIterable<0>")); }, MappedIterable_MappedIterable(iterable, $function, $S, $T) { if (type$.EfficientLengthIterable_dynamic._is(iterable)) return new A.EfficientLengthMappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>")); return new A.MappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("MappedIterable<1,2>")); }, TakeIterable_TakeIterable(iterable, takeCount, $E) { var _s9_ = "takeCount"; A.ArgumentError_checkNotNull(takeCount, _s9_); A.RangeError_checkNotNegative(takeCount, _s9_); if (type$.EfficientLengthIterable_dynamic._is(iterable)) return new A.EfficientLengthTakeIterable(iterable, takeCount, $E._eval$1("EfficientLengthTakeIterable<0>")); return new A.TakeIterable(iterable, takeCount, $E._eval$1("TakeIterable<0>")); }, SkipIterable_SkipIterable(iterable, count, $E) { var _s5_ = "count"; if (type$.EfficientLengthIterable_dynamic._is(iterable)) { A.ArgumentError_checkNotNull(count, _s5_); A.RangeError_checkNotNegative(count, _s5_); return new A.EfficientLengthSkipIterable(iterable, count, $E._eval$1("EfficientLengthSkipIterable<0>")); } A.ArgumentError_checkNotNull(count, _s5_); A.RangeError_checkNotNegative(count, _s5_); return new A.SkipIterable(iterable, count, $E._eval$1("SkipIterable<0>")); }, FollowedByIterable_FollowedByIterable$firstEfficient(first, second, $E) { if ($E._eval$1("EfficientLengthIterable<0>")._is(second)) return new A.EfficientLengthFollowedByIterable(first, second, $E._eval$1("EfficientLengthFollowedByIterable<0>")); return new A.FollowedByIterable(first, second, $E._eval$1("FollowedByIterable<0>")); }, IterableElementError_noElement() { return new A.StateError("No element"); }, IterableElementError_tooMany() { return new A.StateError("Too many elements"); }, IterableElementError_tooFew() { return new A.StateError("Too few elements"); }, Sort_sort(a, compare) { A.Sort__doSort(a, 0, J.get$length$asx(a) - 1, compare); }, Sort__doSort(a, left, right, compare) { if (right - left <= 32) A.Sort__insertionSort(a, left, right, compare); else A.Sort__dualPivotQuicksort(a, left, right, compare); }, Sort__insertionSort(a, left, right, compare) { var i, t1, el, j, j0; for (i = left + 1, t1 = J.getInterceptor$asx(a); i <= right; ++i) { el = t1.$index(a, i); j = i; while (true) { if (!(j > left && compare.call$2(t1.$index(a, j - 1), el) > 0)) break; j0 = j - 1; t1.$indexSet(a, j, t1.$index(a, j0)); j = j0; } t1.$indexSet(a, j, el); } }, Sort__dualPivotQuicksort(a, left, right, compare) { var t0, less, great, k, ak, comp, great0, less0, pivots_are_equal, t2, sixth = B.JSInt_methods._tdivFast$1(right - left + 1, 6), index1 = left + sixth, index5 = right - sixth, index3 = B.JSInt_methods._tdivFast$1(left + right, 2), index2 = index3 - sixth, index4 = index3 + sixth, t1 = J.getInterceptor$asx(a), el1 = t1.$index(a, index1), el2 = t1.$index(a, index2), el3 = t1.$index(a, index3), el4 = t1.$index(a, index4), el5 = t1.$index(a, index5); if (compare.call$2(el1, el2) > 0) { t0 = el2; el2 = el1; el1 = t0; } if (compare.call$2(el4, el5) > 0) { t0 = el5; el5 = el4; el4 = t0; } if (compare.call$2(el1, el3) > 0) { t0 = el3; el3 = el1; el1 = t0; } if (compare.call$2(el2, el3) > 0) { t0 = el3; el3 = el2; el2 = t0; } if (compare.call$2(el1, el4) > 0) { t0 = el4; el4 = el1; el1 = t0; } if (compare.call$2(el3, el4) > 0) { t0 = el4; el4 = el3; el3 = t0; } if (compare.call$2(el2, el5) > 0) { t0 = el5; el5 = el2; el2 = t0; } if (compare.call$2(el2, el3) > 0) { t0 = el3; el3 = el2; el2 = t0; } if (compare.call$2(el4, el5) > 0) { t0 = el5; el5 = el4; el4 = t0; } t1.$indexSet(a, index1, el1); t1.$indexSet(a, index3, el3); t1.$indexSet(a, index5, el5); t1.$indexSet(a, index2, t1.$index(a, left)); t1.$indexSet(a, index4, t1.$index(a, right)); less = left + 1; great = right - 1; if (J.$eq$(compare.call$2(el2, el4), 0)) { for (k = less; k <= great; ++k) { ak = t1.$index(a, k); comp = compare.call$2(ak, el2); if (comp === 0) continue; if (comp < 0) { if (k !== less) { t1.$indexSet(a, k, t1.$index(a, less)); t1.$indexSet(a, less, ak); } ++less; } else for (; true;) { comp = compare.call$2(t1.$index(a, great), el2); if (comp > 0) { --great; continue; } else { great0 = great - 1; if (comp < 0) { t1.$indexSet(a, k, t1.$index(a, less)); less0 = less + 1; t1.$indexSet(a, less, t1.$index(a, great)); t1.$indexSet(a, great, ak); great = great0; less = less0; break; } else { t1.$indexSet(a, k, t1.$index(a, great)); t1.$indexSet(a, great, ak); great = great0; break; } } } } pivots_are_equal = true; } else { for (k = less; k <= great; ++k) { ak = t1.$index(a, k); if (compare.call$2(ak, el2) < 0) { if (k !== less) { t1.$indexSet(a, k, t1.$index(a, less)); t1.$indexSet(a, less, ak); } ++less; } else if (compare.call$2(ak, el4) > 0) for (; true;) if (compare.call$2(t1.$index(a, great), el4) > 0) { --great; if (great < k) break; continue; } else { great0 = great - 1; if (compare.call$2(t1.$index(a, great), el2) < 0) { t1.$indexSet(a, k, t1.$index(a, less)); less0 = less + 1; t1.$indexSet(a, less, t1.$index(a, great)); t1.$indexSet(a, great, ak); less = less0; } else { t1.$indexSet(a, k, t1.$index(a, great)); t1.$indexSet(a, great, ak); } great = great0; break; } } pivots_are_equal = false; } t2 = less - 1; t1.$indexSet(a, left, t1.$index(a, t2)); t1.$indexSet(a, t2, el2); t2 = great + 1; t1.$indexSet(a, right, t1.$index(a, t2)); t1.$indexSet(a, t2, el4); A.Sort__doSort(a, left, less - 2, compare); A.Sort__doSort(a, great + 2, right, compare); if (pivots_are_equal) return; if (less < index1 && great > index5) { for (; J.$eq$(compare.call$2(t1.$index(a, less), el2), 0);) ++less; for (; J.$eq$(compare.call$2(t1.$index(a, great), el4), 0);) --great; for (k = less; k <= great; ++k) { ak = t1.$index(a, k); if (compare.call$2(ak, el2) === 0) { if (k !== less) { t1.$indexSet(a, k, t1.$index(a, less)); t1.$indexSet(a, less, ak); } ++less; } else if (compare.call$2(ak, el4) === 0) for (; true;) if (compare.call$2(t1.$index(a, great), el4) === 0) { --great; if (great < k) break; continue; } else { great0 = great - 1; if (compare.call$2(t1.$index(a, great), el2) < 0) { t1.$indexSet(a, k, t1.$index(a, less)); less0 = less + 1; t1.$indexSet(a, less, t1.$index(a, great)); t1.$indexSet(a, great, ak); less = less0; } else { t1.$indexSet(a, k, t1.$index(a, great)); t1.$indexSet(a, great, ak); } great = great0; break; } } A.Sort__doSort(a, less, great, compare); } else A.Sort__doSort(a, less, great, compare); }, _CastIterableBase: function _CastIterableBase() { }, CastIterator: function CastIterator(t0, t1) { this._source = t0; this.$ti = t1; }, CastIterable: function CastIterable(t0, t1) { this._source = t0; this.$ti = t1; }, _EfficientLengthCastIterable: function _EfficientLengthCastIterable(t0, t1) { this._source = t0; this.$ti = t1; }, _CastListBase: function _CastListBase() { }, _CastListBase_sort_closure: function _CastListBase_sort_closure(t0, t1) { this.$this = t0; this.compare = t1; }, CastList: function CastList(t0, t1) { this._source = t0; this.$ti = t1; }, CastSet: function CastSet(t0, t1, t2) { this._source = t0; this._emptySet = t1; this.$ti = t2; }, CastMap: function CastMap(t0, t1) { this._source = t0; this.$ti = t1; }, CastMap_forEach_closure: function CastMap_forEach_closure(t0, t1) { this.$this = t0; this.f = t1; }, CastMap_entries_closure: function CastMap_entries_closure(t0) { this.$this = t0; }, LateError: function LateError(t0) { this._message = t0; }, CodeUnits: function CodeUnits(t0) { this._string = t0; }, nullFuture_closure: function nullFuture_closure() { }, SentinelValue: function SentinelValue() { }, EfficientLengthIterable: function EfficientLengthIterable() { }, ListIterable: function ListIterable() { }, SubListIterable: function SubListIterable(t0, t1, t2, t3) { var _ = this; _.__internal$_iterable = t0; _.__internal$_start = t1; _._endOrLength = t2; _.$ti = t3; }, ListIterator: function ListIterator(t0, t1) { var _ = this; _.__internal$_iterable = t0; _.__internal$_length = t1; _.__internal$_index = 0; _.__internal$_current = null; }, MappedIterable: function MappedIterable(t0, t1, t2) { this.__internal$_iterable = t0; this._f = t1; this.$ti = t2; }, EfficientLengthMappedIterable: function EfficientLengthMappedIterable(t0, t1, t2) { this.__internal$_iterable = t0; this._f = t1; this.$ti = t2; }, MappedIterator: function MappedIterator(t0, t1) { this.__internal$_current = null; this._iterator = t0; this._f = t1; }, MappedListIterable: function MappedListIterable(t0, t1, t2) { this._source = t0; this._f = t1; this.$ti = t2; }, WhereIterable: function WhereIterable(t0, t1, t2) { this.__internal$_iterable = t0; this._f = t1; this.$ti = t2; }, WhereIterator: function WhereIterator(t0, t1) { this._iterator = t0; this._f = t1; }, ExpandIterable: function ExpandIterable(t0, t1, t2) { this.__internal$_iterable = t0; this._f = t1; this.$ti = t2; }, ExpandIterator: function ExpandIterator(t0, t1, t2) { var _ = this; _._iterator = t0; _._f = t1; _._currentExpansion = t2; _.__internal$_current = null; }, TakeIterable: function TakeIterable(t0, t1, t2) { this.__internal$_iterable = t0; this._takeCount = t1; this.$ti = t2; }, EfficientLengthTakeIterable: function EfficientLengthTakeIterable(t0, t1, t2) { this.__internal$_iterable = t0; this._takeCount = t1; this.$ti = t2; }, TakeIterator: function TakeIterator(t0, t1) { this._iterator = t0; this._remaining = t1; }, SkipIterable: function SkipIterable(t0, t1, t2) { this.__internal$_iterable = t0; this._skipCount = t1; this.$ti = t2; }, EfficientLengthSkipIterable: function EfficientLengthSkipIterable(t0, t1, t2) { this.__internal$_iterable = t0; this._skipCount = t1; this.$ti = t2; }, SkipIterator: function SkipIterator(t0, t1) { this._iterator = t0; this._skipCount = t1; }, SkipWhileIterable: function SkipWhileIterable(t0, t1, t2) { this.__internal$_iterable = t0; this._f = t1; this.$ti = t2; }, SkipWhileIterator: function SkipWhileIterator(t0, t1) { this._iterator = t0; this._f = t1; this._hasSkipped = false; }, EmptyIterable: function EmptyIterable(t0) { this.$ti = t0; }, EmptyIterator: function EmptyIterator() { }, FollowedByIterable: function FollowedByIterable(t0, t1, t2) { this.__internal$_first = t0; this._second = t1; this.$ti = t2; }, EfficientLengthFollowedByIterable: function EfficientLengthFollowedByIterable(t0, t1, t2) { this.__internal$_first = t0; this._second = t1; this.$ti = t2; }, FollowedByIterator: function FollowedByIterator(t0, t1) { this._currentIterator = t0; this._nextIterable = t1; }, WhereTypeIterable: function WhereTypeIterable(t0, t1) { this._source = t0; this.$ti = t1; }, WhereTypeIterator: function WhereTypeIterator(t0, t1) { this._source = t0; this.$ti = t1; }, FixedLengthListMixin: function FixedLengthListMixin() { }, UnmodifiableListMixin: function UnmodifiableListMixin() { }, UnmodifiableListBase: function UnmodifiableListBase() { }, ReversedListIterable: function ReversedListIterable(t0, t1) { this._source = t0; this.$ti = t1; }, Symbol: function Symbol(t0) { this.__internal$_name = t0; }, __CastListBase__CastIterableBase_ListMixin: function __CastListBase__CastIterableBase_ListMixin() { }, ConstantMap_ConstantMap$from(other, $K, $V) { var allStrings, k, object, index, index0, map, keys = A.List_List$from(other.get$keys(other), true, $K), t1 = keys.length, _i = 0; while (true) { if (!(_i < t1)) { allStrings = true; break; } k = keys[_i]; if (typeof k != "string" || "__proto__" === k) { allStrings = false; break; } ++_i; } if (allStrings) { object = {}; for (index = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i, index = index0) { k = keys[_i]; other.$index(0, k); index0 = index + 1; object[k] = index; } 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>")); map.$keys = keys; return map; } return new A.ConstantMapView(A.LinkedHashMap_LinkedHashMap$from(other, $K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantMapView<1,2>")); }, ConstantMap__throwUnmodifiable() { throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable Map")); }, ConstantSet__throwUnmodifiable() { throw A.wrapException(A.UnsupportedError$("Cannot modify constant Set")); }, instantiate1(f, T1) { var t1 = new A.Instantiation1(f, T1._eval$1("Instantiation1<0>")); t1.Instantiation$1(f); return t1; }, unminifyOrTag(rawClassName) { var preserved = init.mangledGlobalNames[rawClassName]; if (preserved != null) return preserved; return rawClassName; }, isJsIndexable(object, record) { var result; if (record != null) { result = record.x; if (result != null) return result; } return type$.JavaScriptIndexingBehavior_dynamic._is(object); }, S(value) { var result; if (typeof value == "string") return value; if (typeof value == "number") { if (value !== 0) return "" + value; } else if (true === value) return "true"; else if (false === value) return "false"; else if (value == null) return "null"; result = J.toString$0$(value); return result; }, JSInvocationMirror$(_memberName, _internalName, _kind, _arguments, _namedArgumentNames, _typeArgumentCount) { return new A.JSInvocationMirror(_memberName, _kind, _arguments, _namedArgumentNames, _typeArgumentCount); }, Primitives_objectHashCode(object) { var hash, property = $.Primitives__identityHashCodeProperty; if (property == null) property = $.Primitives__identityHashCodeProperty = Symbol("identityHashCode"); hash = object[property]; if (hash == null) { hash = Math.random() * 0x3fffffff | 0; object[property] = hash; } return hash; }, Primitives_parseInt(source, radix) { var decimalMatch, maxCharCode, digitsPart, t1, i, _null = null, match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source); if (match == null) return _null; decimalMatch = match[3]; if (radix == null) { if (decimalMatch != null) return parseInt(source, 10); if (match[2] != null) return parseInt(source, 16); return _null; } if (radix < 2 || radix > 36) throw A.wrapException(A.RangeError$range(radix, 2, 36, "radix", _null)); if (radix === 10 && decimalMatch != null) return parseInt(source, 10); if (radix < 10 || decimalMatch == null) { maxCharCode = radix <= 10 ? 47 + radix : 86 + radix; digitsPart = match[1]; for (t1 = digitsPart.length, i = 0; i < t1; ++i) if ((digitsPart.charCodeAt(i) | 32) > maxCharCode) return _null; } return parseInt(source, radix); }, Primitives_parseDouble(source) { var result, trimmed; if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s*$/.test(source)) return null; result = parseFloat(source); if (isNaN(result)) { trimmed = B.JSString_methods.trim$0(source); if (trimmed === "NaN" || trimmed === "+NaN" || trimmed === "-NaN") return result; return null; } return result; }, Primitives_objectTypeName(object) { return A.Primitives__objectTypeNameNewRti(object); }, Primitives__objectTypeNameNewRti(object) { var interceptor, dispatchName, $constructor, constructorName; if (object instanceof A.Object) return A._rtiToString(A.instanceType(object), null); interceptor = J.getInterceptor$(object); if (interceptor === B.Interceptor_methods || interceptor === B.JavaScriptObject_methods || type$.UnknownJavaScriptObject._is(object)) { dispatchName = B.C_JS_CONST(object); if (dispatchName !== "Object" && dispatchName !== "") return dispatchName; $constructor = object.constructor; if (typeof $constructor == "function") { constructorName = $constructor.name; if (typeof constructorName == "string" && constructorName !== "Object" && constructorName !== "") return constructorName; } } return A._rtiToString(A.instanceType(object), null); }, Primitives_safeToString(object) { if (object == null || typeof object == "number" || A._isBool(object)) return J.toString$0$(object); if (typeof object == "string") return JSON.stringify(object); if (object instanceof A.Closure) return object.toString$0(0); if (object instanceof A._Record) return object._toString$1(true); return "Instance of '" + A.Primitives_objectTypeName(object) + "'"; }, Primitives_currentUri() { if (!!self.location) return self.location.href; return null; }, Primitives__fromCharCodeApply(array) { var result, i, i0, chunkEnd, end = array.length; if (end <= 500) return String.fromCharCode.apply(null, array); for (result = "", i = 0; i < end; i = i0) { i0 = i + 500; chunkEnd = i0 < end ? i0 : end; result += String.fromCharCode.apply(null, array.slice(i, chunkEnd)); } return result; }, Primitives_stringFromCodePoints(codePoints) { var t1, _i, i, a = A._setArrayType([], type$.JSArray_int); for (t1 = codePoints.length, _i = 0; _i < codePoints.length; codePoints.length === t1 || (0, A.throwConcurrentModificationError)(codePoints), ++_i) { i = codePoints[_i]; if (!A._isInt(i)) throw A.wrapException(A.argumentErrorValue(i)); if (i <= 65535) a.push(i); else if (i <= 1114111) { a.push(55296 + (B.JSInt_methods._shrOtherPositive$1(i - 65536, 10) & 1023)); a.push(56320 + (i & 1023)); } else throw A.wrapException(A.argumentErrorValue(i)); } return A.Primitives__fromCharCodeApply(a); }, Primitives_stringFromCharCodes(charCodes) { var t1, _i, i; for (t1 = charCodes.length, _i = 0; _i < t1; ++_i) { i = charCodes[_i]; if (!A._isInt(i)) throw A.wrapException(A.argumentErrorValue(i)); if (i < 0) throw A.wrapException(A.argumentErrorValue(i)); if (i > 65535) return A.Primitives_stringFromCodePoints(charCodes); } return A.Primitives__fromCharCodeApply(charCodes); }, Primitives_stringFromNativeUint8List(charCodes, start, end) { var i, result, i0, chunkEnd; if (end <= 500 && start === 0 && end === charCodes.length) return String.fromCharCode.apply(null, charCodes); for (i = start, result = ""; i < end; i = i0) { i0 = i + 500; chunkEnd = i0 < end ? i0 : end; result += String.fromCharCode.apply(null, charCodes.subarray(i, chunkEnd)); } return result; }, Primitives_stringFromCharCode(charCode) { var bits; if (0 <= charCode) { if (charCode <= 65535) return String.fromCharCode(charCode); if (charCode <= 1114111) { bits = charCode - 65536; return String.fromCharCode((B.JSInt_methods._shrOtherPositive$1(bits, 10) | 55296) >>> 0, bits & 1023 | 56320); } } throw A.wrapException(A.RangeError$range(charCode, 0, 1114111, null, null)); }, Primitives_lazyAsJsDate(receiver) { if (receiver.date === void 0) receiver.date = new Date(receiver._core$_value); return receiver.date; }, Primitives_getYear(receiver) { var t1 = A.Primitives_lazyAsJsDate(receiver).getFullYear() + 0; return t1; }, Primitives_getMonth(receiver) { var t1 = A.Primitives_lazyAsJsDate(receiver).getMonth() + 1; return t1; }, Primitives_getDay(receiver) { var t1 = A.Primitives_lazyAsJsDate(receiver).getDate() + 0; return t1; }, Primitives_getHours(receiver) { var t1 = A.Primitives_lazyAsJsDate(receiver).getHours() + 0; return t1; }, Primitives_getMinutes(receiver) { var t1 = A.Primitives_lazyAsJsDate(receiver).getMinutes() + 0; return t1; }, Primitives_getSeconds(receiver) { var t1 = A.Primitives_lazyAsJsDate(receiver).getSeconds() + 0; return t1; }, Primitives_getMilliseconds(receiver) { var t1 = A.Primitives_lazyAsJsDate(receiver).getMilliseconds() + 0; return t1; }, Primitives_functionNoSuchMethod($function, positionalArguments, namedArguments) { var $arguments, namedArgumentList, t1 = {}; t1.argumentCount = 0; $arguments = []; namedArgumentList = []; t1.argumentCount = positionalArguments.length; B.JSArray_methods.addAll$1($arguments, positionalArguments); t1.names = ""; if (namedArguments != null && namedArguments.__js_helper$_length !== 0) namedArguments.forEach$1(0, new A.Primitives_functionNoSuchMethod_closure(t1, namedArgumentList, $arguments)); return J.noSuchMethod$1$($function, new A.JSInvocationMirror(B.Symbol_call, 0, $arguments, namedArgumentList, 0)); }, Primitives_applyFunction($function, positionalArguments, namedArguments) { var t1, argumentCount, jsStub; if (Array.isArray(positionalArguments)) t1 = namedArguments == null || namedArguments.__js_helper$_length === 0; else t1 = false; if (t1) { argumentCount = positionalArguments.length; if (argumentCount === 0) { if (!!$function.call$0) return $function.call$0(); } else if (argumentCount === 1) { if (!!$function.call$1) return $function.call$1(positionalArguments[0]); } else if (argumentCount === 2) { if (!!$function.call$2) return $function.call$2(positionalArguments[0], positionalArguments[1]); } else if (argumentCount === 3) { if (!!$function.call$3) return $function.call$3(positionalArguments[0], positionalArguments[1], positionalArguments[2]); } else if (argumentCount === 4) { if (!!$function.call$4) return $function.call$4(positionalArguments[0], positionalArguments[1], positionalArguments[2], positionalArguments[3]); } else if (argumentCount === 5) if (!!$function.call$5) return $function.call$5(positionalArguments[0], positionalArguments[1], positionalArguments[2], positionalArguments[3], positionalArguments[4]); jsStub = $function["call" + "$" + argumentCount]; if (jsStub != null) return jsStub.apply($function, positionalArguments); } return A.Primitives__generalApplyFunction($function, positionalArguments, namedArguments); }, Primitives__generalApplyFunction($function, positionalArguments, namedArguments) { var defaultValuesClosure, t1, defaultValues, interceptor, jsFunction, maxArguments, missingDefaults, keys, _i, defaultValue, used, t2, $arguments = Array.isArray(positionalArguments) ? positionalArguments : A.List_List$of(positionalArguments, true, type$.dynamic), argumentCount = $arguments.length, requiredParameterCount = $function.$requiredArgCount; if (argumentCount < requiredParameterCount) return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); defaultValuesClosure = $function.$defaultValues; t1 = defaultValuesClosure == null; defaultValues = !t1 ? defaultValuesClosure() : null; interceptor = J.getInterceptor$($function); jsFunction = interceptor["call*"]; if (typeof jsFunction == "string") jsFunction = interceptor[jsFunction]; if (t1) { if (namedArguments != null && namedArguments.__js_helper$_length !== 0) return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); if (argumentCount === requiredParameterCount) return jsFunction.apply($function, $arguments); return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); } if (Array.isArray(defaultValues)) { if (namedArguments != null && namedArguments.__js_helper$_length !== 0) return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); maxArguments = requiredParameterCount + defaultValues.length; if (argumentCount > maxArguments) return A.Primitives_functionNoSuchMethod($function, $arguments, null); if (argumentCount < maxArguments) { missingDefaults = defaultValues.slice(argumentCount - requiredParameterCount); if ($arguments === positionalArguments) $arguments = A.List_List$of($arguments, true, type$.dynamic); B.JSArray_methods.addAll$1($arguments, missingDefaults); } return jsFunction.apply($function, $arguments); } else { if (argumentCount > requiredParameterCount) return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); if ($arguments === positionalArguments) $arguments = A.List_List$of($arguments, true, type$.dynamic); keys = Object.keys(defaultValues); if (namedArguments == null) for (t1 = keys.length, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i) { defaultValue = defaultValues[keys[_i]]; if (B.C__Required === defaultValue) return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); B.JSArray_methods.add$1($arguments, defaultValue); } else { for (t1 = keys.length, used = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i) { t2 = keys[_i]; if (namedArguments.containsKey$1(t2)) { ++used; B.JSArray_methods.add$1($arguments, namedArguments.$index(0, t2)); } else { defaultValue = defaultValues[t2]; if (B.C__Required === defaultValue) return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); B.JSArray_methods.add$1($arguments, defaultValue); } } if (used !== namedArguments.__js_helper$_length) return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments); } return jsFunction.apply($function, $arguments); } }, diagnoseIndexError(indexable, index) { var $length, _s5_ = "index"; if (!A._isInt(index)) return new A.ArgumentError(true, index, _s5_, null); $length = J.get$length$asx(indexable); if (index < 0 || index >= $length) return A.IndexError$withLength(index, $length, indexable, null, _s5_); return A.RangeError$value(index, _s5_, null); }, diagnoseRangeError(start, end, $length) { if (start < 0 || start > $length) return A.RangeError$range(start, 0, $length, "start", null); if (end != null) if (end < start || end > $length) return A.RangeError$range(end, start, $length, "end", null); return new A.ArgumentError(true, end, "end", null); }, argumentErrorValue(object) { return new A.ArgumentError(true, object, null, null); }, checkNum(value) { return value; }, wrapException(ex) { return A.initializeExceptionWrapper(new Error(), ex); }, initializeExceptionWrapper(wrapper, ex) { var t1; if (ex == null) ex = new A.TypeError(); wrapper.dartException = ex; t1 = A.toStringWrapper; if ("defineProperty" in Object) { Object.defineProperty(wrapper, "message", {get: t1}); wrapper.name = ""; } else wrapper.toString = t1; return wrapper; }, toStringWrapper() { return J.toString$0$(this.dartException); }, throwExpression(ex) { throw A.wrapException(ex); }, throwExpressionWithWrapper(ex, wrapper) { throw A.initializeExceptionWrapper(wrapper, ex); }, throwConcurrentModificationError(collection) { throw A.wrapException(A.ConcurrentModificationError$(collection)); }, TypeErrorDecoder_extractPattern(message) { var match, $arguments, argumentsExpr, expr, method, receiver; message = A.quoteStringForRegExp(message.replace(String({}), "$receiver$")); match = message.match(/\\\$[a-zA-Z]+\\\$/g); if (match == null) match = A._setArrayType([], type$.JSArray_String); $arguments = match.indexOf("\\$arguments\\$"); argumentsExpr = match.indexOf("\\$argumentsExpr\\$"); expr = match.indexOf("\\$expr\\$"); method = match.indexOf("\\$method\\$"); receiver = match.indexOf("\\$receiver\\$"); 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); }, TypeErrorDecoder_provokeCallErrorOn(expression) { return function($expr$) { var $argumentsExpr$ = "$arguments$"; try { $expr$.$method$($argumentsExpr$); } catch (e) { return e.message; } }(expression); }, TypeErrorDecoder_provokePropertyErrorOn(expression) { return function($expr$) { try { $expr$.$method$; } catch (e) { return e.message; } }(expression); }, JsNoSuchMethodError$(_message, match) { var t1 = match == null, t2 = t1 ? null : match.method; return new A.JsNoSuchMethodError(_message, t2, t1 ? null : match.receiver); }, unwrapException(ex) { if (ex == null) return new A.NullThrownFromJavaScriptException(ex); if (ex instanceof A.ExceptionAndStackTrace) return A.saveStackTrace(ex, ex.dartException); if (typeof ex !== "object") return ex; if ("dartException" in ex) return A.saveStackTrace(ex, ex.dartException); return A._unwrapNonDartException(ex); }, saveStackTrace(ex, error) { if (type$.Error._is(error)) if (error.$thrownJsError == null) error.$thrownJsError = ex; return error; }, _unwrapNonDartException(ex) { var message, number, ieErrorCode, t1, nsme, notClosure, nullCall, nullLiteralCall, undefCall, undefLiteralCall, nullProperty, undefProperty, undefLiteralProperty, match, _null = null; if (!("message" in ex)) return ex; message = ex.message; if ("number" in ex && typeof ex.number == "number") { number = ex.number; ieErrorCode = number & 65535; if ((B.JSInt_methods._shrOtherPositive$1(number, 16) & 8191) === 10) switch (ieErrorCode) { case 438: return A.saveStackTrace(ex, A.JsNoSuchMethodError$(A.S(message) + " (Error " + ieErrorCode + ")", _null)); case 445: case 5007: t1 = A.S(message); return A.saveStackTrace(ex, new A.NullError(t1 + " (Error " + ieErrorCode + ")", _null)); } } if (ex instanceof TypeError) { nsme = $.$get$TypeErrorDecoder_noSuchMethodPattern(); notClosure = $.$get$TypeErrorDecoder_notClosurePattern(); nullCall = $.$get$TypeErrorDecoder_nullCallPattern(); nullLiteralCall = $.$get$TypeErrorDecoder_nullLiteralCallPattern(); undefCall = $.$get$TypeErrorDecoder_undefinedCallPattern(); undefLiteralCall = $.$get$TypeErrorDecoder_undefinedLiteralCallPattern(); nullProperty = $.$get$TypeErrorDecoder_nullPropertyPattern(); $.$get$TypeErrorDecoder_nullLiteralPropertyPattern(); undefProperty = $.$get$TypeErrorDecoder_undefinedPropertyPattern(); undefLiteralProperty = $.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern(); match = nsme.matchTypeError$1(message); if (match != null) return A.saveStackTrace(ex, A.JsNoSuchMethodError$(message, match)); else { match = notClosure.matchTypeError$1(message); if (match != null) { match.method = "call"; return A.saveStackTrace(ex, A.JsNoSuchMethodError$(message, match)); } else { match = nullCall.matchTypeError$1(message); if (match == null) { match = nullLiteralCall.matchTypeError$1(message); if (match == null) { match = undefCall.matchTypeError$1(message); if (match == null) { match = undefLiteralCall.matchTypeError$1(message); if (match == null) { match = nullProperty.matchTypeError$1(message); if (match == null) { match = nullLiteralCall.matchTypeError$1(message); if (match == null) { match = undefProperty.matchTypeError$1(message); if (match == null) { match = undefLiteralProperty.matchTypeError$1(message); t1 = match != null; } else t1 = true; } else t1 = true; } else t1 = true; } else t1 = true; } else t1 = true; } else t1 = true; } else t1 = true; if (t1) return A.saveStackTrace(ex, new A.NullError(message, match == null ? _null : match.method)); } } return A.saveStackTrace(ex, new A.UnknownJsTypeError(typeof message == "string" ? message : "")); } if (ex instanceof RangeError) { if (typeof message == "string" && message.indexOf("call stack") !== -1) return new A.StackOverflowError(); message = function(ex) { try { return String(ex); } catch (e) { } return null; }(ex); return A.saveStackTrace(ex, new A.ArgumentError(false, _null, _null, typeof message == "string" ? message.replace(/^RangeError:\s*/, "") : message)); } if (typeof InternalError == "function" && ex instanceof InternalError) if (typeof message == "string" && message === "too much recursion") return new A.StackOverflowError(); return ex; }, getTraceFromException(exception) { var trace; if (exception instanceof A.ExceptionAndStackTrace) return exception.stackTrace; if (exception == null) return new A._StackTrace(exception); trace = exception.$cachedTrace; if (trace != null) return trace; return exception.$cachedTrace = new A._StackTrace(exception); }, objectHashCode(object) { if (object == null) return J.get$hashCode$(object); if (typeof object == "object") return A.Primitives_objectHashCode(object); return J.get$hashCode$(object); }, constantHashCode(key) { if (typeof key == "number") return B.JSNumber_methods.get$hashCode(key); if (key instanceof A._Type) return A.Primitives_objectHashCode(key); if (key instanceof A._Record) return key.get$hashCode(key); if (key instanceof A.Symbol) return key.get$hashCode(key); return A.objectHashCode(key); }, fillLiteralMap(keyValuePairs, result) { var index, index0, index1, $length = keyValuePairs.length; for (index = 0; index < $length; index = index1) { index0 = index + 1; index1 = index0 + 1; result.$indexSet(0, keyValuePairs[index], keyValuePairs[index0]); } return result; }, fillLiteralSet(values, result) { var index, $length = values.length; for (index = 0; index < $length; ++index) result.add$1(0, values[index]); return result; }, invokeClosure(closure, numberOfArguments, arg1, arg2, arg3, arg4) { switch (numberOfArguments) { case 0: return closure.call$0(); case 1: return closure.call$1(arg1); case 2: return closure.call$2(arg1, arg2); case 3: return closure.call$3(arg1, arg2, arg3); case 4: return closure.call$4(arg1, arg2, arg3, arg4); } throw A.wrapException(new A._Exception("Unsupported number of arguments for wrapped closure")); }, convertDartClosureToJS(closure, arity) { var $function; if (closure == null) return null; $function = closure.$identity; if (!!$function) return $function; $function = function(closure, arity, invoke) { return function(a1, a2, a3, a4) { return invoke(closure, arity, a1, a2, a3, a4); }; }(closure, arity, A.invokeClosure); closure.$identity = $function; return $function; }, Closure_fromTearOff(parameters) { var $prototype, $constructor, t2, trampoline, applyTrampoline, i, stub, stub0, stubName, stubCallName, container = parameters.co, isStatic = parameters.iS, isIntercepted = parameters.iI, needsDirectAccess = parameters.nDA, applyTrampolineIndex = parameters.aI, funsOrNames = parameters.fs, callNames = parameters.cs, $name = funsOrNames[0], callName = callNames[0], $function = container[$name], t1 = parameters.fT; t1.toString; $prototype = isStatic ? Object.create(new A.StaticClosure().constructor.prototype) : Object.create(new A.BoundClosure(null, null).constructor.prototype); $prototype.$initialize = $prototype.constructor; if (isStatic) $constructor = function static_tear_off() { this.$initialize(); }; else $constructor = function tear_off(a, b) { this.$initialize(a, b); }; $prototype.constructor = $constructor; $constructor.prototype = $prototype; $prototype.$_name = $name; $prototype.$_target = $function; t2 = !isStatic; if (t2) trampoline = A.Closure_forwardCallTo($name, $function, isIntercepted, needsDirectAccess); else { $prototype.$static_name = $name; trampoline = $function; } $prototype.$signature = A.Closure__computeSignatureFunctionNewRti(t1, isStatic, isIntercepted); $prototype[callName] = trampoline; for (applyTrampoline = trampoline, i = 1; i < funsOrNames.length; ++i) { stub = funsOrNames[i]; if (typeof stub == "string") { stub0 = container[stub]; stubName = stub; stub = stub0; } else stubName = ""; stubCallName = callNames[i]; if (stubCallName != null) { if (t2) stub = A.Closure_forwardCallTo(stubName, stub, isIntercepted, needsDirectAccess); $prototype[stubCallName] = stub; } if (i === applyTrampolineIndex) applyTrampoline = stub; } $prototype["call*"] = applyTrampoline; $prototype.$requiredArgCount = parameters.rC; $prototype.$defaultValues = parameters.dV; return $constructor; }, Closure__computeSignatureFunctionNewRti(functionType, isStatic, isIntercepted) { if (typeof functionType == "number") return functionType; if (typeof functionType == "string") { if (isStatic) throw A.wrapException("Cannot compute signature for static tearoff."); return function(recipe, evalOnReceiver) { return function() { return evalOnReceiver(this, recipe); }; }(functionType, A.BoundClosure_evalRecipe); } throw A.wrapException("Error in functionType of tearoff"); }, Closure_cspForwardCall(arity, needsDirectAccess, stubName, $function) { var getReceiver = A.BoundClosure_receiverOf; switch (needsDirectAccess ? -1 : arity) { case 0: return function(entry, receiverOf) { return function() { return receiverOf(this)[entry](); }; }(stubName, getReceiver); case 1: return function(entry, receiverOf) { return function(a) { return receiverOf(this)[entry](a); }; }(stubName, getReceiver); case 2: return function(entry, receiverOf) { return function(a, b) { return receiverOf(this)[entry](a, b); }; }(stubName, getReceiver); case 3: return function(entry, receiverOf) { return function(a, b, c) { return receiverOf(this)[entry](a, b, c); }; }(stubName, getReceiver); case 4: return function(entry, receiverOf) { return function(a, b, c, d) { return receiverOf(this)[entry](a, b, c, d); }; }(stubName, getReceiver); case 5: return function(entry, receiverOf) { return function(a, b, c, d, e) { return receiverOf(this)[entry](a, b, c, d, e); }; }(stubName, getReceiver); default: return function(f, receiverOf) { return function() { return f.apply(receiverOf(this), arguments); }; }($function, getReceiver); } }, Closure_forwardCallTo(stubName, $function, isIntercepted, needsDirectAccess) { var arity, t1; if (isIntercepted) return A.Closure_forwardInterceptedCallTo(stubName, $function, needsDirectAccess); arity = $function.length; t1 = A.Closure_cspForwardCall(arity, needsDirectAccess, stubName, $function); return t1; }, Closure_cspForwardInterceptedCall(arity, needsDirectAccess, stubName, $function) { var getReceiver = A.BoundClosure_receiverOf, getInterceptor = A.BoundClosure_interceptorOf; switch (needsDirectAccess ? -1 : arity) { case 0: throw A.wrapException(new A.RuntimeError("Intercepted function with no arguments.")); case 1: return function(entry, interceptorOf, receiverOf) { return function() { return interceptorOf(this)[entry](receiverOf(this)); }; }(stubName, getInterceptor, getReceiver); case 2: return function(entry, interceptorOf, receiverOf) { return function(a) { return interceptorOf(this)[entry](receiverOf(this), a); }; }(stubName, getInterceptor, getReceiver); case 3: return function(entry, interceptorOf, receiverOf) { return function(a, b) { return interceptorOf(this)[entry](receiverOf(this), a, b); }; }(stubName, getInterceptor, getReceiver); case 4: return function(entry, interceptorOf, receiverOf) { return function(a, b, c) { return interceptorOf(this)[entry](receiverOf(this), a, b, c); }; }(stubName, getInterceptor, getReceiver); case 5: return function(entry, interceptorOf, receiverOf) { return function(a, b, c, d) { return interceptorOf(this)[entry](receiverOf(this), a, b, c, d); }; }(stubName, getInterceptor, getReceiver); case 6: return function(entry, interceptorOf, receiverOf) { return function(a, b, c, d, e) { return interceptorOf(this)[entry](receiverOf(this), a, b, c, d, e); }; }(stubName, getInterceptor, getReceiver); default: return function(f, interceptorOf, receiverOf) { return function() { var a = [receiverOf(this)]; Array.prototype.push.apply(a, arguments); return f.apply(interceptorOf(this), a); }; }($function, getInterceptor, getReceiver); } }, Closure_forwardInterceptedCallTo(stubName, $function, needsDirectAccess) { var arity, t1; if ($.BoundClosure__interceptorFieldNameCache == null) $.BoundClosure__interceptorFieldNameCache = A.BoundClosure__computeFieldNamed("interceptor"); if ($.BoundClosure__receiverFieldNameCache == null) $.BoundClosure__receiverFieldNameCache = A.BoundClosure__computeFieldNamed("receiver"); arity = $function.length; t1 = A.Closure_cspForwardInterceptedCall(arity, needsDirectAccess, stubName, $function); return t1; }, closureFromTearOff(parameters) { return A.Closure_fromTearOff(parameters); }, BoundClosure_evalRecipe(closure, recipe) { return A._Universe_evalInEnvironment(init.typeUniverse, A.instanceType(closure._receiver), recipe); }, BoundClosure_receiverOf(closure) { return closure._receiver; }, BoundClosure_interceptorOf(closure) { return closure._interceptor; }, BoundClosure__computeFieldNamed(fieldName) { var t1, i, $name, template = new A.BoundClosure("receiver", "interceptor"), names = J.JSArray_markFixedList(Object.getOwnPropertyNames(template)); for (t1 = names.length, i = 0; i < t1; ++i) { $name = names[i]; if (template[$name] === fieldName) return $name; } throw A.wrapException(A.ArgumentError$("Field name " + fieldName + " not found.", null)); }, throwCyclicInit(staticName) { throw A.wrapException(new A._CyclicInitializationError(staticName)); }, getIsolateAffinityTag($name) { return init.getIsolateTag($name); }, LinkedHashMapKeyIterator$(_map, _modifications) { var t1 = new A.LinkedHashMapKeyIterator(_map, _modifications); t1._cell = _map._first; return t1; }, defineProperty(obj, property, value) { Object.defineProperty(obj, property, {value: value, enumerable: false, writable: true, configurable: true}); }, lookupAndCacheInterceptor(obj) { var interceptor, interceptorClass, altTag, mark, t1, tag = $.getTagFunction.call$1(obj), record = $.dispatchRecordsForInstanceTags[tag]; if (record != null) { Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true}); return record.i; } interceptor = $.interceptorsForUncacheableTags[tag]; if (interceptor != null) return interceptor; interceptorClass = init.interceptorsByTag[tag]; if (interceptorClass == null) { altTag = $.alternateTagFunction.call$2(obj, tag); if (altTag != null) { record = $.dispatchRecordsForInstanceTags[altTag]; if (record != null) { Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true}); return record.i; } interceptor = $.interceptorsForUncacheableTags[altTag]; if (interceptor != null) return interceptor; interceptorClass = init.interceptorsByTag[altTag]; tag = altTag; } } if (interceptorClass == null) return null; interceptor = interceptorClass.prototype; mark = tag[0]; if (mark === "!") { record = A.makeLeafDispatchRecord(interceptor); $.dispatchRecordsForInstanceTags[tag] = record; Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true}); return record.i; } if (mark === "~") { $.interceptorsForUncacheableTags[tag] = interceptor; return interceptor; } if (mark === "-") { t1 = A.makeLeafDispatchRecord(interceptor); Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true}); return t1.i; } if (mark === "+") return A.patchInteriorProto(obj, interceptor); if (mark === "*") throw A.wrapException(A.UnimplementedError$(tag)); if (init.leafTags[tag] === true) { t1 = A.makeLeafDispatchRecord(interceptor); Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true}); return t1.i; } else return A.patchInteriorProto(obj, interceptor); }, patchInteriorProto(obj, interceptor) { var proto = Object.getPrototypeOf(obj); Object.defineProperty(proto, init.dispatchPropertyName, {value: J.makeDispatchRecord(interceptor, proto, null, null), enumerable: false, writable: true, configurable: true}); return interceptor; }, makeLeafDispatchRecord(interceptor) { return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScriptIndexingBehavior); }, makeDefaultDispatchRecord(tag, interceptorClass, proto) { var interceptor = interceptorClass.prototype; if (init.leafTags[tag] === true) return A.makeLeafDispatchRecord(interceptor); else return J.makeDispatchRecord(interceptor, proto, null, null); }, initNativeDispatch() { if (true === $.initNativeDispatchFlag) return; $.initNativeDispatchFlag = true; A.initNativeDispatchContinue(); }, initNativeDispatchContinue() { var map, tags, fun, i, tag, proto, record, interceptorClass; $.dispatchRecordsForInstanceTags = Object.create(null); $.interceptorsForUncacheableTags = Object.create(null); A.initHooks(); map = init.interceptorsByTag; tags = Object.getOwnPropertyNames(map); if (typeof window != "undefined") { window; fun = function() { }; for (i = 0; i < tags.length; ++i) { tag = tags[i]; proto = $.prototypeForTagFunction.call$1(tag); if (proto != null) { record = A.makeDefaultDispatchRecord(tag, map[tag], proto); if (record != null) { Object.defineProperty(proto, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true}); fun.prototype = proto; } } } } for (i = 0; i < tags.length; ++i) { tag = tags[i]; if (/^[A-Za-z_]/.test(tag)) { interceptorClass = map[tag]; map["!" + tag] = interceptorClass; map["~" + tag] = interceptorClass; map["-" + tag] = interceptorClass; map["+" + tag] = interceptorClass; map["*" + tag] = interceptorClass; } } }, initHooks() { var transformers, i, transformer, getTag, getUnknownTag, prototypeForTag, hooks = B.C_JS_CONST0(); 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))))))); if (typeof dartNativeDispatchHooksTransformer != "undefined") { transformers = dartNativeDispatchHooksTransformer; if (typeof transformers == "function") transformers = [transformers]; if (Array.isArray(transformers)) for (i = 0; i < transformers.length; ++i) { transformer = transformers[i]; if (typeof transformer == "function") hooks = transformer(hooks) || hooks; } } getTag = hooks.getTag; getUnknownTag = hooks.getUnknownTag; prototypeForTag = hooks.prototypeForTag; $.getTagFunction = new A.initHooks_closure(getTag); $.alternateTagFunction = new A.initHooks_closure0(getUnknownTag); $.prototypeForTagFunction = new A.initHooks_closure1(prototypeForTag); }, applyHooksTransformer(transformer, hooks) { return transformer(hooks) || hooks; }, _RecordN__equalValues(a, b) { var i; for (i = 0; i < a.length; ++i) if (!J.$eq$(a[i], b[i])) return false; return true; }, createRecordTypePredicate(shape, fieldRtis) { var $length = fieldRtis.length, $function = init.rttc["" + $length + ";" + shape]; if ($function == null) return null; if ($length === 0) return $function; if ($length === $function.length) return $function.apply(null, fieldRtis); return $function(fieldRtis); }, JSSyntaxRegExp_makeNative(source, multiLine, caseSensitive, unicode, dotAll, global) { var m = multiLine ? "m" : "", i = caseSensitive ? "" : "i", u = unicode ? "u" : "", s = dotAll ? "s" : "", g = global ? "g" : "", regexp = function(source, modifiers) { try { return new RegExp(source, modifiers); } catch (e) { return e; } }(source, m + i + u + s + g); if (regexp instanceof RegExp) return regexp; throw A.wrapException(A.FormatException$("Illegal RegExp pattern (" + String(regexp) + ")", source, null)); }, stringContainsUnchecked(receiver, other, startIndex) { var t1; if (typeof other == "string") return receiver.indexOf(other, startIndex) >= 0; else if (other instanceof A.JSSyntaxRegExp) { t1 = B.JSString_methods.substring$1(receiver, startIndex); return other._nativeRegExp.test(t1); } else { t1 = J.allMatches$1$s(other, B.JSString_methods.substring$1(receiver, startIndex)); return !t1.get$isEmpty(t1); } }, escapeReplacement(replacement) { if (replacement.indexOf("$", 0) >= 0) return replacement.replace(/\$/g, "$$$$"); return replacement; }, stringReplaceFirstRE(receiver, regexp, replacement, startIndex) { var match = regexp._execGlobal$2(receiver, startIndex); if (match == null) return receiver; return A.stringReplaceRangeUnchecked(receiver, match._match.index, match.get$end(match), replacement); }, quoteStringForRegExp(string) { if (/[[\]{}()*+?.\\^$|]/.test(string)) return string.replace(/[[\]{}()*+?.\\^$|]/g, "\\$&"); return string; }, stringReplaceAllUnchecked(receiver, pattern, replacement) { var nativeRegexp; if (typeof pattern == "string") return A.stringReplaceAllUncheckedString(receiver, pattern, replacement); if (pattern instanceof A.JSSyntaxRegExp) { nativeRegexp = pattern.get$_nativeGlobalVersion(); nativeRegexp.lastIndex = 0; return receiver.replace(nativeRegexp, A.escapeReplacement(replacement)); } return A.stringReplaceAllGeneral(receiver, pattern, replacement); }, stringReplaceAllGeneral(receiver, pattern, replacement) { var t1, startIndex, t2, match; for (t1 = J.allMatches$1$s(pattern, receiver), t1 = t1.get$iterator(t1), startIndex = 0, t2 = ""; t1.moveNext$0();) { match = t1.get$current(t1); t2 = t2 + receiver.substring(startIndex, match.get$start(match)) + replacement; startIndex = match.get$end(match); } t1 = t2 + receiver.substring(startIndex); return t1.charCodeAt(0) == 0 ? t1 : t1; }, stringReplaceAllUncheckedString(receiver, pattern, replacement) { var $length, t1, i; if (pattern === "") { if (receiver === "") return replacement; $length = receiver.length; t1 = "" + replacement; for (i = 0; i < $length; ++i) t1 = t1 + receiver[i] + replacement; return t1.charCodeAt(0) == 0 ? t1 : t1; } if (receiver.indexOf(pattern, 0) < 0) return receiver; if (receiver.length < 500 || replacement.indexOf("$", 0) >= 0) return receiver.split(pattern).join(replacement); return receiver.replace(new RegExp(A.quoteStringForRegExp(pattern), "g"), A.escapeReplacement(replacement)); }, stringReplaceFirstUnchecked(receiver, pattern, replacement, startIndex) { var index, t1, matches, match; if (typeof pattern == "string") { index = receiver.indexOf(pattern, startIndex); if (index < 0) return receiver; return A.stringReplaceRangeUnchecked(receiver, index, index + pattern.length, replacement); } if (pattern instanceof A.JSSyntaxRegExp) return startIndex === 0 ? receiver.replace(pattern._nativeRegExp, A.escapeReplacement(replacement)) : A.stringReplaceFirstRE(receiver, pattern, replacement, startIndex); t1 = J.allMatches$2$s(pattern, receiver, startIndex); matches = t1.get$iterator(t1); if (!matches.moveNext$0()) return receiver; match = matches.get$current(matches); return B.JSString_methods.replaceRange$3(receiver, match.get$start(match), match.get$end(match), replacement); }, stringReplaceRangeUnchecked(receiver, start, end, replacement) { return receiver.substring(0, start) + replacement + receiver.substring(end); }, _Record_2: function _Record_2(t0, t1) { this._0 = t0; this._1 = t1; }, _Record_2_forImport: function _Record_2_forImport(t0, t1) { this._0 = t0; this._1 = t1; }, _Record_2_imports_modules: function _Record_2_imports_modules(t0, t1) { this._0 = t0; this._1 = t1; }, _Record_2_loadedUrls_stylesheet: function _Record_2_loadedUrls_stylesheet(t0, t1) { this._0 = t0; this._1 = t1; }, _Record_2_sourceMap: function _Record_2_sourceMap(t0, t1) { this._0 = t0; this._1 = t1; }, _Record_3: function _Record_3(t0, t1, t2) { this._0 = t0; this._1 = t1; this._2 = t2; }, _Record_3_importer_isDependency: function _Record_3_importer_isDependency(t0, t1, t2) { this._0 = t0; this._1 = t1; this._2 = t2; }, _Record_3_originalUrl: function _Record_3_originalUrl(t0, t1, t2) { this._0 = t0; this._1 = t1; this._2 = t2; }, _Record_4: function _Record_4(t0) { this._values = t0; }, _Record_4_baseImporter_baseUrl_forImport: function _Record_4_baseImporter_baseUrl_forImport(t0) { this._values = t0; }, _Record_5_named_namedNodes_positional_positionalNodes_separator: function _Record_5_named_namedNodes_positional_positionalNodes_separator(t0) { this._values = t0; }, ConstantMapView: function ConstantMapView(t0, t1) { this._map = t0; this.$ti = t1; }, ConstantMap: function ConstantMap() { }, ConstantStringMap: function ConstantStringMap(t0, t1, t2) { this._jsIndex = t0; this._values = t1; this.$ti = t2; }, _KeysOrValues: function _KeysOrValues(t0, t1) { this._elements = t0; this.$ti = t1; }, _KeysOrValuesOrElementsIterator: function _KeysOrValuesOrElementsIterator(t0, t1) { var _ = this; _._elements = t0; _.__js_helper$_length = t1; _.__js_helper$_index = 0; _.__js_helper$_current = null; }, ConstantSet: function ConstantSet() { }, ConstantStringSet: function ConstantStringSet(t0, t1, t2) { this._jsIndex = t0; this.__js_helper$_length = t1; this.$ti = t2; }, GeneralConstantSet: function GeneralConstantSet(t0, t1) { this._elements = t0; this.$ti = t1; }, Instantiation: function Instantiation() { }, Instantiation1: function Instantiation1(t0, t1) { this._genericClosure = t0; this.$ti = t1; }, JSInvocationMirror: function JSInvocationMirror(t0, t1, t2, t3, t4) { var _ = this; _.__js_helper$_memberName = t0; _.__js_helper$_kind = t1; _._arguments = t2; _._namedArgumentNames = t3; _._typeArgumentCount = t4; }, Primitives_functionNoSuchMethod_closure: function Primitives_functionNoSuchMethod_closure(t0, t1, t2) { this._box_0 = t0; this.namedArgumentList = t1; this.$arguments = t2; }, TypeErrorDecoder: function TypeErrorDecoder(t0, t1, t2, t3, t4, t5) { var _ = this; _._pattern = t0; _._arguments = t1; _._argumentsExpr = t2; _._expr = t3; _._method = t4; _._receiver = t5; }, NullError: function NullError(t0, t1) { this.__js_helper$_message = t0; this._method = t1; }, JsNoSuchMethodError: function JsNoSuchMethodError(t0, t1, t2) { this.__js_helper$_message = t0; this._method = t1; this._receiver = t2; }, UnknownJsTypeError: function UnknownJsTypeError(t0) { this.__js_helper$_message = t0; }, NullThrownFromJavaScriptException: function NullThrownFromJavaScriptException(t0) { this._irritant = t0; }, ExceptionAndStackTrace: function ExceptionAndStackTrace(t0, t1) { this.dartException = t0; this.stackTrace = t1; }, _StackTrace: function _StackTrace(t0) { this._exception = t0; this._trace = null; }, Closure: function Closure() { }, Closure0Args: function Closure0Args() { }, Closure2Args: function Closure2Args() { }, TearOffClosure: function TearOffClosure() { }, StaticClosure: function StaticClosure() { }, BoundClosure: function BoundClosure(t0, t1) { this._receiver = t0; this._interceptor = t1; }, _CyclicInitializationError: function _CyclicInitializationError(t0) { this.variableName = t0; }, RuntimeError: function RuntimeError(t0) { this.message = t0; }, _Required: function _Required() { }, JsLinkedHashMap: function JsLinkedHashMap(t0) { var _ = this; _.__js_helper$_length = 0; _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null; _._modifications = 0; _.$ti = t0; }, JsLinkedHashMap_values_closure: function JsLinkedHashMap_values_closure(t0) { this.$this = t0; }, JsLinkedHashMap_addAll_closure: function JsLinkedHashMap_addAll_closure(t0) { this.$this = t0; }, LinkedHashMapCell: function LinkedHashMapCell(t0, t1) { var _ = this; _.hashMapCellKey = t0; _.hashMapCellValue = t1; _._previous = _._next = null; }, LinkedHashMapKeyIterable: function LinkedHashMapKeyIterable(t0, t1) { this.__js_helper$_map = t0; this.$ti = t1; }, LinkedHashMapKeyIterator: function LinkedHashMapKeyIterator(t0, t1) { var _ = this; _.__js_helper$_map = t0; _._modifications = t1; _.__js_helper$_current = _._cell = null; }, JsIdentityLinkedHashMap: function JsIdentityLinkedHashMap(t0) { var _ = this; _.__js_helper$_length = 0; _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null; _._modifications = 0; _.$ti = t0; }, JsConstantLinkedHashMap: function JsConstantLinkedHashMap(t0) { var _ = this; _.__js_helper$_length = 0; _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null; _._modifications = 0; _.$ti = t0; }, initHooks_closure: function initHooks_closure(t0) { this.getTag = t0; }, initHooks_closure0: function initHooks_closure0(t0) { this.getUnknownTag = t0; }, initHooks_closure1: function initHooks_closure1(t0) { this.prototypeForTag = t0; }, _Record: function _Record() { }, _Record2: function _Record2() { }, _Record3: function _Record3() { }, _RecordN: function _RecordN() { }, JSSyntaxRegExp: function JSSyntaxRegExp(t0, t1) { var _ = this; _.pattern = t0; _._nativeRegExp = t1; _._nativeAnchoredRegExp = _._nativeGlobalRegExp = null; }, _MatchImplementation: function _MatchImplementation(t0) { this._match = t0; }, _AllMatchesIterable: function _AllMatchesIterable(t0, t1, t2) { this._re = t0; this.__js_helper$_string = t1; this._start = t2; }, _AllMatchesIterator: function _AllMatchesIterator(t0, t1, t2) { var _ = this; _._regExp = t0; _.__js_helper$_string = t1; _._nextIndex = t2; _.__js_helper$_current = null; }, StringMatch: function StringMatch(t0, t1) { this.start = t0; this.pattern = t1; }, _StringAllMatchesIterable: function _StringAllMatchesIterable(t0, t1, t2) { this._input = t0; this._pattern = t1; this.__js_helper$_index = t2; }, _StringAllMatchesIterator: function _StringAllMatchesIterator(t0, t1, t2) { var _ = this; _._input = t0; _._pattern = t1; _.__js_helper$_index = t2; _.__js_helper$_current = null; }, throwLateFieldADI(fieldName) { A.throwExpressionWithWrapper(new A.LateError("Field '" + fieldName + "' has been assigned during initialization."), new Error()); }, throwUnnamedLateFieldNI() { A.throwExpressionWithWrapper(new A.LateError("Field '' has not been initialized."), new Error()); }, throwUnnamedLateFieldAI() { A.throwExpressionWithWrapper(new A.LateError("Field '' has already been initialized."), new Error()); }, throwUnnamedLateFieldADI() { A.throwExpressionWithWrapper(new A.LateError("Field '' has been assigned during initialization."), new Error()); }, _Cell$() { var t1 = new A._Cell(""); return t1._value = t1; }, _Cell$named(_name) { var t1 = new A._Cell(_name); return t1._value = t1; }, _InitializedCell$(_initializer) { var t1 = new A._InitializedCell(_initializer); return t1._value = t1; }, _Cell: function _Cell(t0) { this.__late_helper$_name = t0; this._value = null; }, _InitializedCell: function _InitializedCell(t0) { this._value = null; this._initializer = t0; }, _ensureNativeList(list) { return list; }, NativeInt8List__create1(arg) { return new Int8Array(arg); }, _checkValidIndex(index, list, $length) { if (index >>> 0 !== index || index >= $length) throw A.wrapException(A.diagnoseIndexError(list, index)); }, _checkValidRange(start, end, $length) { var t1; if (!(start >>> 0 !== start)) if (end == null) t1 = start > $length; else t1 = end >>> 0 !== end || start > end || end > $length; else t1 = true; if (t1) throw A.wrapException(A.diagnoseRangeError(start, end, $length)); if (end == null) return $length; return end; }, NativeByteBuffer: function NativeByteBuffer() { }, NativeTypedData: function NativeTypedData() { }, NativeByteData: function NativeByteData() { }, NativeTypedArray: function NativeTypedArray() { }, NativeTypedArrayOfDouble: function NativeTypedArrayOfDouble() { }, NativeTypedArrayOfInt: function NativeTypedArrayOfInt() { }, NativeFloat32List: function NativeFloat32List() { }, NativeFloat64List: function NativeFloat64List() { }, NativeInt16List: function NativeInt16List() { }, NativeInt32List: function NativeInt32List() { }, NativeInt8List: function NativeInt8List() { }, NativeUint16List: function NativeUint16List() { }, NativeUint32List: function NativeUint32List() { }, NativeUint8ClampedList: function NativeUint8ClampedList() { }, NativeUint8List: function NativeUint8List() { }, _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin() { }, _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin() { }, _NativeTypedArrayOfInt_NativeTypedArray_ListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin() { }, _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin() { }, Rti__getQuestionFromStar(universe, rti) { var question = rti._precomputed1; return question == null ? rti._precomputed1 = A._Universe__lookupQuestionRti(universe, rti._primary, true) : question; }, Rti__getFutureFromFutureOr(universe, rti) { var future = rti._precomputed1; return future == null ? rti._precomputed1 = A._Universe__lookupInterfaceRti(universe, "Future", [rti._primary]) : future; }, Rti__isUnionOfFunctionType(rti) { var kind = rti._kind; if (kind === 6 || kind === 7 || kind === 8) return A.Rti__isUnionOfFunctionType(rti._primary); return kind === 12 || kind === 13; }, Rti__getCanonicalRecipe(rti) { return rti._canonicalRecipe; }, pairwiseIsTest(fieldRtis, values) { var i, $length = values.length; for (i = 0; i < $length; ++i) if (!fieldRtis[i]._is(values[i])) return false; return true; }, findType(recipe) { return A._Universe_eval(init.typeUniverse, recipe, false); }, instantiatedGenericFunctionType(genericFunctionRti, instantiationRti) { var t1, cache, key, probe, rti; if (genericFunctionRti == null) return null; t1 = instantiationRti._rest; cache = genericFunctionRti._bindCache; if (cache == null) cache = genericFunctionRti._bindCache = new Map(); key = instantiationRti._canonicalRecipe; probe = cache.get(key); if (probe != null) return probe; rti = A._substitute(init.typeUniverse, genericFunctionRti._primary, t1, 0); cache.set(key, rti); return rti; }, _substitute(universe, rti, typeArguments, depth) { var baseType, substitutedBaseType, interfaceTypeArguments, substitutedInterfaceTypeArguments, base, substitutedBase, $arguments, substitutedArguments, returnType, substitutedReturnType, functionParameters, substitutedFunctionParameters, bounds, substitutedBounds, index, argument, kind = rti._kind; switch (kind) { case 5: case 1: case 2: case 3: case 4: return rti; case 6: baseType = rti._primary; substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth); if (substitutedBaseType === baseType) return rti; return A._Universe__lookupStarRti(universe, substitutedBaseType, true); case 7: baseType = rti._primary; substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth); if (substitutedBaseType === baseType) return rti; return A._Universe__lookupQuestionRti(universe, substitutedBaseType, true); case 8: baseType = rti._primary; substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth); if (substitutedBaseType === baseType) return rti; return A._Universe__lookupFutureOrRti(universe, substitutedBaseType, true); case 9: interfaceTypeArguments = rti._rest; substitutedInterfaceTypeArguments = A._substituteArray(universe, interfaceTypeArguments, typeArguments, depth); if (substitutedInterfaceTypeArguments === interfaceTypeArguments) return rti; return A._Universe__lookupInterfaceRti(universe, rti._primary, substitutedInterfaceTypeArguments); case 10: base = rti._primary; substitutedBase = A._substitute(universe, base, typeArguments, depth); $arguments = rti._rest; substitutedArguments = A._substituteArray(universe, $arguments, typeArguments, depth); if (substitutedBase === base && substitutedArguments === $arguments) return rti; return A._Universe__lookupBindingRti(universe, substitutedBase, substitutedArguments); case 12: returnType = rti._primary; substitutedReturnType = A._substitute(universe, returnType, typeArguments, depth); functionParameters = rti._rest; substitutedFunctionParameters = A._substituteFunctionParameters(universe, functionParameters, typeArguments, depth); if (substitutedReturnType === returnType && substitutedFunctionParameters === functionParameters) return rti; return A._Universe__lookupFunctionRti(universe, substitutedReturnType, substitutedFunctionParameters); case 13: bounds = rti._rest; depth += bounds.length; substitutedBounds = A._substituteArray(universe, bounds, typeArguments, depth); base = rti._primary; substitutedBase = A._substitute(universe, base, typeArguments, depth); if (substitutedBounds === bounds && substitutedBase === base) return rti; return A._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, true); case 14: index = rti._primary; if (index < depth) return rti; argument = typeArguments[index - depth]; if (argument == null) return rti; return argument; default: throw A.wrapException(A.AssertionError$("Attempted to substitute unexpected RTI kind " + kind)); } }, _substituteArray(universe, rtiArray, typeArguments, depth) { var changed, i, rti, substitutedRti, $length = rtiArray.length, result = A._Utils_newArrayOrEmpty($length); for (changed = false, i = 0; i < $length; ++i) { rti = rtiArray[i]; substitutedRti = A._substitute(universe, rti, typeArguments, depth); if (substitutedRti !== rti) changed = true; result[i] = substitutedRti; } return changed ? result : rtiArray; }, _substituteNamed(universe, namedArray, typeArguments, depth) { var changed, i, t1, t2, rti, substitutedRti, $length = namedArray.length, result = A._Utils_newArrayOrEmpty($length); for (changed = false, i = 0; i < $length; i += 3) { t1 = namedArray[i]; t2 = namedArray[i + 1]; rti = namedArray[i + 2]; substitutedRti = A._substitute(universe, rti, typeArguments, depth); if (substitutedRti !== rti) changed = true; result.splice(i, 3, t1, t2, substitutedRti); } return changed ? result : namedArray; }, _substituteFunctionParameters(universe, functionParameters, typeArguments, depth) { var result, requiredPositional = functionParameters._requiredPositional, substitutedRequiredPositional = A._substituteArray(universe, requiredPositional, typeArguments, depth), optionalPositional = functionParameters._optionalPositional, substitutedOptionalPositional = A._substituteArray(universe, optionalPositional, typeArguments, depth), named = functionParameters._named, substitutedNamed = A._substituteNamed(universe, named, typeArguments, depth); if (substitutedRequiredPositional === requiredPositional && substitutedOptionalPositional === optionalPositional && substitutedNamed === named) return functionParameters; result = new A._FunctionParameters(); result._requiredPositional = substitutedRequiredPositional; result._optionalPositional = substitutedOptionalPositional; result._named = substitutedNamed; return result; }, _setArrayType(target, rti) { target[init.arrayRti] = rti; return target; }, closureFunctionType(closure) { var t1, signature = closure.$signature; if (signature != null) { if (typeof signature == "number") return A.getTypeFromTypesTable(signature); t1 = closure.$signature(); return t1; } return null; }, instanceOrFunctionType(object, testRti) { var rti; if (A.Rti__isUnionOfFunctionType(testRti)) if (object instanceof A.Closure) { rti = A.closureFunctionType(object); if (rti != null) return rti; } return A.instanceType(object); }, instanceType(object) { if (object instanceof A.Object) return A._instanceType(object); if (Array.isArray(object)) return A._arrayInstanceType(object); return A._instanceTypeFromConstructor(J.getInterceptor$(object)); }, _arrayInstanceType(object) { var rti = object[init.arrayRti], defaultRti = type$.JSArray_dynamic; if (rti == null) return defaultRti; if (rti.constructor !== defaultRti.constructor) return defaultRti; return rti; }, _instanceType(object) { var rti = object.$ti; return rti != null ? rti : A._instanceTypeFromConstructor(object); }, _instanceTypeFromConstructor(instance) { var $constructor = instance.constructor, probe = $constructor.$ccache; if (probe != null) return probe; return A._instanceTypeFromConstructorMiss(instance, $constructor); }, _instanceTypeFromConstructorMiss(instance, $constructor) { var effectiveConstructor = instance instanceof A.Closure ? Object.getPrototypeOf(Object.getPrototypeOf(instance)).constructor : $constructor, rti = A._Universe_findErasedType(init.typeUniverse, effectiveConstructor.name); $constructor.$ccache = rti; return rti; }, getTypeFromTypesTable(index) { var rti, table = init.types, type = table[index]; if (typeof type == "string") { rti = A._Universe_eval(init.typeUniverse, type, false); table[index] = rti; return rti; } return type; }, getRuntimeTypeOfDartObject(object) { return A.createRuntimeType(A._instanceType(object)); }, getRuntimeTypeOfClosure(closure) { var rti = A.closureFunctionType(closure); return A.createRuntimeType(rti == null ? A.instanceType(closure) : rti); }, _structuralTypeOf(object) { var functionRti; if (object instanceof A._Record) return A.evaluateRtiForRecord(object.$recipe, object._getFieldValues$0()); functionRti = object instanceof A.Closure ? A.closureFunctionType(object) : null; if (functionRti != null) return functionRti; if (type$.TrustedGetRuntimeType._is(object)) return J.get$runtimeType$(object)._rti; if (Array.isArray(object)) return A._arrayInstanceType(object); return A.instanceType(object); }, createRuntimeType(rti) { var t1 = rti._cachedRuntimeType; return t1 == null ? rti._cachedRuntimeType = A._createRuntimeType(rti) : t1; }, _createRuntimeType(rti) { var starErasedRti, t1, s = rti._canonicalRecipe, starErasedRecipe = s.replace(/\*/g, ""); if (starErasedRecipe === s) return rti._cachedRuntimeType = new A._Type(rti); starErasedRti = A._Universe_eval(init.typeUniverse, starErasedRecipe, true); t1 = starErasedRti._cachedRuntimeType; return t1 == null ? starErasedRti._cachedRuntimeType = A._createRuntimeType(starErasedRti) : t1; }, evaluateRtiForRecord(recordRecipe, valuesList) { var bindings, i, values = valuesList, $length = values.length; if ($length === 0) return type$.Record_0; bindings = A._Universe_evalInEnvironment(init.typeUniverse, A._structuralTypeOf(values[0]), "@<0>"); for (i = 1; i < $length; ++i) bindings = A._Universe_bind(init.typeUniverse, bindings, A._structuralTypeOf(values[i])); return A._Universe_evalInEnvironment(init.typeUniverse, bindings, recordRecipe); }, typeLiteral(recipe) { return A.createRuntimeType(A._Universe_eval(init.typeUniverse, recipe, false)); }, _installSpecializedIsTest(object) { var t1, unstarred, isFn, $name, predicate, testRti = this; if (testRti === type$.Object) return A._finishIsFn(testRti, object, A._isObject); if (!A.isStrongTopType(testRti)) if (!(testRti === type$.legacy_Object)) t1 = false; else t1 = true; else t1 = true; if (t1) return A._finishIsFn(testRti, object, A._isTop); t1 = testRti._kind; if (t1 === 7) return A._finishIsFn(testRti, object, A._generalNullableIsTestImplementation); if (t1 === 1) return A._finishIsFn(testRti, object, A._isNever); unstarred = t1 === 6 ? testRti._primary : testRti; t1 = unstarred._kind; if (t1 === 8) return A._finishIsFn(testRti, object, A._isFutureOr); if (unstarred === type$.int) isFn = A._isInt; else if (unstarred === type$.double || unstarred === type$.num) isFn = A._isNum; else if (unstarred === type$.String) isFn = A._isString; else isFn = unstarred === type$.bool ? A._isBool : null; if (isFn != null) return A._finishIsFn(testRti, object, isFn); if (t1 === 9) { $name = unstarred._primary; if (unstarred._rest.every(A.isTopType)) { testRti._specializedTestResource = "$is" + $name; if ($name === "List") return A._finishIsFn(testRti, object, A._isListTestViaProperty); return A._finishIsFn(testRti, object, A._isTestViaProperty); } } else if (t1 === 11) { predicate = A.createRecordTypePredicate(unstarred._primary, unstarred._rest); return A._finishIsFn(testRti, object, predicate == null ? A._isNever : predicate); } return A._finishIsFn(testRti, object, A._generalIsTestImplementation); }, _finishIsFn(testRti, object, isFn) { testRti._is = isFn; return testRti._is(object); }, _installSpecializedAsCheck(object) { var t1, testRti = this, asFn = A._generalAsCheckImplementation; if (!A.isStrongTopType(testRti)) if (!(testRti === type$.legacy_Object)) t1 = false; else t1 = true; else t1 = true; if (t1) asFn = A._asTop; else if (testRti === type$.Object) asFn = A._asObject; else { t1 = A.isNullable(testRti); if (t1) asFn = A._generalNullableAsCheckImplementation; } testRti._as = asFn; return testRti._as(object); }, _nullIs(testRti) { var t1, kind = testRti._kind; if (!A.isStrongTopType(testRti)) if (!(testRti === type$.legacy_Object)) if (!(testRti === type$.legacy_Never)) if (kind !== 7) if (!(kind === 6 && A._nullIs(testRti._primary))) t1 = kind === 8 && A._nullIs(testRti._primary) || testRti === type$.Null || testRti === type$.JSNull; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; return t1; }, _generalIsTestImplementation(object) { var testRti = this; if (object == null) return A._nullIs(testRti); return A._isSubtype(init.typeUniverse, A.instanceOrFunctionType(object, testRti), null, testRti, null); }, _generalNullableIsTestImplementation(object) { if (object == null) return true; return this._primary._is(object); }, _isTestViaProperty(object) { var tag, testRti = this; if (object == null) return A._nullIs(testRti); tag = testRti._specializedTestResource; if (object instanceof A.Object) return !!object[tag]; return !!J.getInterceptor$(object)[tag]; }, _isListTestViaProperty(object) { var tag, testRti = this; if (object == null) return A._nullIs(testRti); if (typeof object != "object") return false; if (Array.isArray(object)) return true; tag = testRti._specializedTestResource; if (object instanceof A.Object) return !!object[tag]; return !!J.getInterceptor$(object)[tag]; }, _generalAsCheckImplementation(object) { var t1, testRti = this; if (object == null) { t1 = A.isNullable(testRti); if (t1) return object; } else if (testRti._is(object)) return object; A._failedAsCheck(object, testRti); }, _generalNullableAsCheckImplementation(object) { var testRti = this; if (object == null) return object; else if (testRti._is(object)) return object; A._failedAsCheck(object, testRti); }, _failedAsCheck(object, testRti) { throw A.wrapException(A._TypeError$fromMessage(A._Error_compose(object, A._rtiToString(testRti, null)))); }, _Error_compose(object, checkedTypeDescription) { return A.Error_safeToString(object) + ": type '" + A._rtiToString(A._structuralTypeOf(object), null) + "' is not a subtype of type '" + checkedTypeDescription + "'"; }, _TypeError$fromMessage(message) { return new A._TypeError("TypeError: " + message); }, _TypeError__TypeError$forType(object, type) { return new A._TypeError("TypeError: " + A._Error_compose(object, type)); }, _isFutureOr(object) { var testRti = this, unstarred = testRti._kind === 6 ? testRti._primary : testRti; return unstarred._primary._is(object) || A.Rti__getFutureFromFutureOr(init.typeUniverse, unstarred)._is(object); }, _isObject(object) { return object != null; }, _asObject(object) { if (object != null) return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "Object")); }, _isTop(object) { return true; }, _asTop(object) { return object; }, _isNever(object) { return false; }, _isBool(object) { return true === object || false === object; }, _asBool(object) { if (true === object) return true; if (false === object) return false; throw A.wrapException(A._TypeError__TypeError$forType(object, "bool")); }, _asBoolS(object) { if (true === object) return true; if (false === object) return false; if (object == null) return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "bool")); }, _asBoolQ(object) { if (true === object) return true; if (false === object) return false; if (object == null) return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "bool?")); }, _asDouble(object) { if (typeof object == "number") return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "double")); }, _asDoubleS(object) { if (typeof object == "number") return object; if (object == null) return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "double")); }, _asDoubleQ(object) { if (typeof object == "number") return object; if (object == null) return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "double?")); }, _isInt(object) { return typeof object == "number" && Math.floor(object) === object; }, _asInt(object) { if (typeof object == "number" && Math.floor(object) === object) return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "int")); }, _asIntS(object) { if (typeof object == "number" && Math.floor(object) === object) return object; if (object == null) return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "int")); }, _asIntQ(object) { if (typeof object == "number" && Math.floor(object) === object) return object; if (object == null) return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "int?")); }, _isNum(object) { return typeof object == "number"; }, _asNum(object) { if (typeof object == "number") return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "num")); }, _asNumS(object) { if (typeof object == "number") return object; if (object == null) return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "num")); }, _asNumQ(object) { if (typeof object == "number") return object; if (object == null) return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "num?")); }, _isString(object) { return typeof object == "string"; }, _asString(object) { if (typeof object == "string") return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "String")); }, _asStringS(object) { if (typeof object == "string") return object; if (object == null) return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "String")); }, _asStringQ(object) { if (typeof object == "string") return object; if (object == null) return object; throw A.wrapException(A._TypeError__TypeError$forType(object, "String?")); }, _rtiArrayToString(array, genericContext) { var s, sep, i; for (s = "", sep = "", i = 0; i < array.length; ++i, sep = ", ") s += sep + A._rtiToString(array[i], genericContext); return s; }, _recordRtiToString(recordType, genericContext) { var fieldCount, names, namesIndex, s, comma, i, partialShape = recordType._primary, fields = recordType._rest; if ("" === partialShape) return "(" + A._rtiArrayToString(fields, genericContext) + ")"; fieldCount = fields.length; names = partialShape.split(","); namesIndex = names.length - fieldCount; for (s = "(", comma = "", i = 0; i < fieldCount; ++i, comma = ", ") { s += comma; if (namesIndex === 0) s += "{"; s += A._rtiToString(fields[i], genericContext); if (namesIndex >= 0) s += " " + names[namesIndex]; ++namesIndex; } return s + "})"; }, _functionRtiToString(functionType, genericContext, bounds) { var boundsLength, outerContextLength, offset, i, t1, t2, typeParametersText, typeSep, boundRti, kind, t3, parameters, requiredPositional, requiredPositionalLength, optionalPositional, optionalPositionalLength, named, namedLength, returnTypeText, argumentsText, sep, _s2_ = ", "; if (bounds != null) { boundsLength = bounds.length; if (genericContext == null) { genericContext = A._setArrayType([], type$.JSArray_String); outerContextLength = null; } else outerContextLength = genericContext.length; offset = genericContext.length; for (i = boundsLength; i > 0; --i) genericContext.push("T" + (offset + i)); for (t1 = type$.nullable_Object, t2 = type$.legacy_Object, typeParametersText = "<", typeSep = "", i = 0; i < boundsLength; ++i, typeSep = _s2_) { typeParametersText = B.JSString_methods.$add(typeParametersText + typeSep, genericContext[genericContext.length - 1 - i]); boundRti = bounds[i]; kind = boundRti._kind; if (!(kind === 2 || kind === 3 || kind === 4 || kind === 5 || boundRti === t1)) if (!(boundRti === t2)) t3 = false; else t3 = true; else t3 = true; if (!t3) typeParametersText += " extends " + A._rtiToString(boundRti, genericContext); } typeParametersText += ">"; } else { typeParametersText = ""; outerContextLength = null; } t1 = functionType._primary; parameters = functionType._rest; requiredPositional = parameters._requiredPositional; requiredPositionalLength = requiredPositional.length; optionalPositional = parameters._optionalPositional; optionalPositionalLength = optionalPositional.length; named = parameters._named; namedLength = named.length; returnTypeText = A._rtiToString(t1, genericContext); for (argumentsText = "", sep = "", i = 0; i < requiredPositionalLength; ++i, sep = _s2_) argumentsText += sep + A._rtiToString(requiredPositional[i], genericContext); if (optionalPositionalLength > 0) { argumentsText += sep + "["; for (sep = "", i = 0; i < optionalPositionalLength; ++i, sep = _s2_) argumentsText += sep + A._rtiToString(optionalPositional[i], genericContext); argumentsText += "]"; } if (namedLength > 0) { argumentsText += sep + "{"; for (sep = "", i = 0; i < namedLength; i += 3, sep = _s2_) { argumentsText += sep; if (named[i + 1]) argumentsText += "required "; argumentsText += A._rtiToString(named[i + 2], genericContext) + " " + named[i]; } argumentsText += "}"; } if (outerContextLength != null) { genericContext.toString; genericContext.length = outerContextLength; } return typeParametersText + "(" + argumentsText + ") => " + returnTypeText; }, _rtiToString(rti, genericContext) { var s, questionArgument, argumentKind, $name, $arguments, t1, kind = rti._kind; if (kind === 5) return "erased"; if (kind === 2) return "dynamic"; if (kind === 3) return "void"; if (kind === 1) return "Never"; if (kind === 4) return "any"; if (kind === 6) { s = A._rtiToString(rti._primary, genericContext); return s; } if (kind === 7) { questionArgument = rti._primary; s = A._rtiToString(questionArgument, genericContext); argumentKind = questionArgument._kind; return (argumentKind === 12 || argumentKind === 13 ? "(" + s + ")" : s) + "?"; } if (kind === 8) return "FutureOr<" + A._rtiToString(rti._primary, genericContext) + ">"; if (kind === 9) { $name = A._unminifyOrTag(rti._primary); $arguments = rti._rest; return $arguments.length > 0 ? $name + ("<" + A._rtiArrayToString($arguments, genericContext) + ">") : $name; } if (kind === 11) return A._recordRtiToString(rti, genericContext); if (kind === 12) return A._functionRtiToString(rti, genericContext, null); if (kind === 13) return A._functionRtiToString(rti._primary, genericContext, rti._rest); if (kind === 14) { t1 = rti._primary; return genericContext[genericContext.length - 1 - t1]; } return "?"; }, _unminifyOrTag(rawClassName) { var preserved = init.mangledGlobalNames[rawClassName]; if (preserved != null) return preserved; return rawClassName; }, _Universe_findRule(universe, targetType) { var rule = universe.tR[targetType]; for (; typeof rule == "string";) rule = universe.tR[rule]; return rule; }, _Universe_findErasedType(universe, cls) { var $length, erased, $arguments, i, $interface, t1 = universe.eT, probe = t1[cls]; if (probe == null) return A._Universe_eval(universe, cls, false); else if (typeof probe == "number") { $length = probe; erased = A._Universe__lookupTerminalRti(universe, 5, "#"); $arguments = A._Utils_newArrayOrEmpty($length); for (i = 0; i < $length; ++i) $arguments[i] = erased; $interface = A._Universe__lookupInterfaceRti(universe, cls, $arguments); t1[cls] = $interface; return $interface; } else return probe; }, _Universe_addRules(universe, rules) { return A._Utils_objectAssign(universe.tR, rules); }, _Universe_addErasedTypes(universe, types) { return A._Utils_objectAssign(universe.eT, types); }, _Universe_eval(universe, recipe, normalize) { var rti, t1 = universe.eC, probe = t1.get(recipe); if (probe != null) return probe; rti = A._Parser_parse(A._Parser_create(universe, null, recipe, normalize)); t1.set(recipe, rti); return rti; }, _Universe_evalInEnvironment(universe, environment, recipe) { var probe, rti, cache = environment._evalCache; if (cache == null) cache = environment._evalCache = new Map(); probe = cache.get(recipe); if (probe != null) return probe; rti = A._Parser_parse(A._Parser_create(universe, environment, recipe, true)); cache.set(recipe, rti); return rti; }, _Universe_bind(universe, environment, argumentsRti) { var argumentsRecipe, probe, rti, cache = environment._bindCache; if (cache == null) cache = environment._bindCache = new Map(); argumentsRecipe = argumentsRti._canonicalRecipe; probe = cache.get(argumentsRecipe); if (probe != null) return probe; rti = A._Universe__lookupBindingRti(universe, environment, argumentsRti._kind === 10 ? argumentsRti._rest : [argumentsRti]); cache.set(argumentsRecipe, rti); return rti; }, _Universe__installTypeTests(universe, rti) { rti._as = A._installSpecializedAsCheck; rti._is = A._installSpecializedIsTest; return rti; }, _Universe__lookupTerminalRti(universe, kind, key) { var rti, t1, probe = universe.eC.get(key); if (probe != null) return probe; rti = new A.Rti(null, null); rti._kind = kind; rti._canonicalRecipe = key; t1 = A._Universe__installTypeTests(universe, rti); universe.eC.set(key, t1); return t1; }, _Universe__lookupStarRti(universe, baseType, normalize) { var t1, key = baseType._canonicalRecipe + "*", probe = universe.eC.get(key); if (probe != null) return probe; t1 = A._Universe__createStarRti(universe, baseType, key, normalize); universe.eC.set(key, t1); return t1; }, _Universe__createStarRti(universe, baseType, key, normalize) { var baseKind, t1, rti; if (normalize) { baseKind = baseType._kind; if (!A.isStrongTopType(baseType)) t1 = baseType === type$.Null || baseType === type$.JSNull || baseKind === 7 || baseKind === 6; else t1 = true; if (t1) return baseType; } rti = new A.Rti(null, null); rti._kind = 6; rti._primary = baseType; rti._canonicalRecipe = key; return A._Universe__installTypeTests(universe, rti); }, _Universe__lookupQuestionRti(universe, baseType, normalize) { var t1, key = baseType._canonicalRecipe + "?", probe = universe.eC.get(key); if (probe != null) return probe; t1 = A._Universe__createQuestionRti(universe, baseType, key, normalize); universe.eC.set(key, t1); return t1; }, _Universe__createQuestionRti(universe, baseType, key, normalize) { var baseKind, t1, starArgument, rti; if (normalize) { baseKind = baseType._kind; if (!A.isStrongTopType(baseType)) if (!(baseType === type$.Null || baseType === type$.JSNull)) if (baseKind !== 7) t1 = baseKind === 8 && A.isNullable(baseType._primary); else t1 = true; else t1 = true; else t1 = true; if (t1) return baseType; else if (baseKind === 1 || baseType === type$.legacy_Never) return type$.Null; else if (baseKind === 6) { starArgument = baseType._primary; if (starArgument._kind === 8 && A.isNullable(starArgument._primary)) return starArgument; else return A.Rti__getQuestionFromStar(universe, baseType); } } rti = new A.Rti(null, null); rti._kind = 7; rti._primary = baseType; rti._canonicalRecipe = key; return A._Universe__installTypeTests(universe, rti); }, _Universe__lookupFutureOrRti(universe, baseType, normalize) { var t1, key = baseType._canonicalRecipe + "/", probe = universe.eC.get(key); if (probe != null) return probe; t1 = A._Universe__createFutureOrRti(universe, baseType, key, normalize); universe.eC.set(key, t1); return t1; }, _Universe__createFutureOrRti(universe, baseType, key, normalize) { var t1, t2, rti; if (normalize) { t1 = baseType._kind; if (!A.isStrongTopType(baseType)) if (!(baseType === type$.legacy_Object)) t2 = false; else t2 = true; else t2 = true; if (t2 || baseType === type$.Object) return baseType; else if (t1 === 1) return A._Universe__lookupInterfaceRti(universe, "Future", [baseType]); else if (baseType === type$.Null || baseType === type$.JSNull) return type$.nullable_Future_Null; } rti = new A.Rti(null, null); rti._kind = 8; rti._primary = baseType; rti._canonicalRecipe = key; return A._Universe__installTypeTests(universe, rti); }, _Universe__lookupGenericFunctionParameterRti(universe, index) { var rti, t1, key = "" + index + "^", probe = universe.eC.get(key); if (probe != null) return probe; rti = new A.Rti(null, null); rti._kind = 14; rti._primary = index; rti._canonicalRecipe = key; t1 = A._Universe__installTypeTests(universe, rti); universe.eC.set(key, t1); return t1; }, _Universe__canonicalRecipeJoin($arguments) { var s, sep, i, $length = $arguments.length; for (s = "", sep = "", i = 0; i < $length; ++i, sep = ",") s += sep + $arguments[i]._canonicalRecipe; return s; }, _Universe__canonicalRecipeJoinNamed($arguments) { var s, sep, i, t1, nameSep, $length = $arguments.length; for (s = "", sep = "", i = 0; i < $length; i += 3, sep = ",") { t1 = $arguments[i]; nameSep = $arguments[i + 1] ? "!" : ":"; s += sep + t1 + nameSep + $arguments[i + 2]._canonicalRecipe; } return s; }, _Universe__lookupInterfaceRti(universe, $name, $arguments) { var probe, rti, t1, s = $name; if ($arguments.length > 0) s += "<" + A._Universe__canonicalRecipeJoin($arguments) + ">"; probe = universe.eC.get(s); if (probe != null) return probe; rti = new A.Rti(null, null); rti._kind = 9; rti._primary = $name; rti._rest = $arguments; if ($arguments.length > 0) rti._precomputed1 = $arguments[0]; rti._canonicalRecipe = s; t1 = A._Universe__installTypeTests(universe, rti); universe.eC.set(s, t1); return t1; }, _Universe__lookupBindingRti(universe, base, $arguments) { var newBase, newArguments, key, probe, rti, t1; if (base._kind === 10) { newBase = base._primary; newArguments = base._rest.concat($arguments); } else { newArguments = $arguments; newBase = base; } key = newBase._canonicalRecipe + (";<" + A._Universe__canonicalRecipeJoin(newArguments) + ">"); probe = universe.eC.get(key); if (probe != null) return probe; rti = new A.Rti(null, null); rti._kind = 10; rti._primary = newBase; rti._rest = newArguments; rti._canonicalRecipe = key; t1 = A._Universe__installTypeTests(universe, rti); universe.eC.set(key, t1); return t1; }, _Universe__lookupRecordRti(universe, partialShapeTag, fields) { var rti, t1, key = "+" + (partialShapeTag + "(" + A._Universe__canonicalRecipeJoin(fields) + ")"), probe = universe.eC.get(key); if (probe != null) return probe; rti = new A.Rti(null, null); rti._kind = 11; rti._primary = partialShapeTag; rti._rest = fields; rti._canonicalRecipe = key; t1 = A._Universe__installTypeTests(universe, rti); universe.eC.set(key, t1); return t1; }, _Universe__lookupFunctionRti(universe, returnType, parameters) { var sep, key, probe, rti, t1, s = returnType._canonicalRecipe, requiredPositional = parameters._requiredPositional, requiredPositionalLength = requiredPositional.length, optionalPositional = parameters._optionalPositional, optionalPositionalLength = optionalPositional.length, named = parameters._named, namedLength = named.length, recipe = "(" + A._Universe__canonicalRecipeJoin(requiredPositional); if (optionalPositionalLength > 0) { sep = requiredPositionalLength > 0 ? "," : ""; recipe += sep + "[" + A._Universe__canonicalRecipeJoin(optionalPositional) + "]"; } if (namedLength > 0) { sep = requiredPositionalLength > 0 ? "," : ""; recipe += sep + "{" + A._Universe__canonicalRecipeJoinNamed(named) + "}"; } key = s + (recipe + ")"); probe = universe.eC.get(key); if (probe != null) return probe; rti = new A.Rti(null, null); rti._kind = 12; rti._primary = returnType; rti._rest = parameters; rti._canonicalRecipe = key; t1 = A._Universe__installTypeTests(universe, rti); universe.eC.set(key, t1); return t1; }, _Universe__lookupGenericFunctionRti(universe, baseFunctionType, bounds, normalize) { var t1, key = baseFunctionType._canonicalRecipe + ("<" + A._Universe__canonicalRecipeJoin(bounds) + ">"), probe = universe.eC.get(key); if (probe != null) return probe; t1 = A._Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize); universe.eC.set(key, t1); return t1; }, _Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize) { var $length, typeArguments, count, i, bound, substitutedBase, substitutedBounds, rti; if (normalize) { $length = bounds.length; typeArguments = A._Utils_newArrayOrEmpty($length); for (count = 0, i = 0; i < $length; ++i) { bound = bounds[i]; if (bound._kind === 1) { typeArguments[i] = bound; ++count; } } if (count > 0) { substitutedBase = A._substitute(universe, baseFunctionType, typeArguments, 0); substitutedBounds = A._substituteArray(universe, bounds, typeArguments, 0); return A._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, bounds !== substitutedBounds); } } rti = new A.Rti(null, null); rti._kind = 13; rti._primary = baseFunctionType; rti._rest = bounds; rti._canonicalRecipe = key; return A._Universe__installTypeTests(universe, rti); }, _Parser_create(universe, environment, recipe, normalize) { return {u: universe, e: environment, r: recipe, s: [], p: 0, n: normalize}; }, _Parser_parse(parser) { var t2, i, ch, t3, array, end, item, source = parser.r, t1 = parser.s; for (t2 = source.length, i = 0; i < t2;) { ch = source.charCodeAt(i); if (ch >= 48 && ch <= 57) i = A._Parser_handleDigit(i + 1, ch, source, t1); else if ((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36 || ch === 124) i = A._Parser_handleIdentifier(parser, i, source, t1, false); else if (ch === 46) i = A._Parser_handleIdentifier(parser, i, source, t1, true); else { ++i; switch (ch) { case 44: break; case 58: t1.push(false); break; case 33: t1.push(true); break; case 59: t1.push(A._Parser_toType(parser.u, parser.e, t1.pop())); break; case 94: t1.push(A._Universe__lookupGenericFunctionParameterRti(parser.u, t1.pop())); break; case 35: t1.push(A._Universe__lookupTerminalRti(parser.u, 5, "#")); break; case 64: t1.push(A._Universe__lookupTerminalRti(parser.u, 2, "@")); break; case 126: t1.push(A._Universe__lookupTerminalRti(parser.u, 3, "~")); break; case 60: t1.push(parser.p); parser.p = t1.length; break; case 62: A._Parser_handleTypeArguments(parser, t1); break; case 38: A._Parser_handleExtendedOperations(parser, t1); break; case 42: t3 = parser.u; t1.push(A._Universe__lookupStarRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n)); break; case 63: t3 = parser.u; t1.push(A._Universe__lookupQuestionRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n)); break; case 47: t3 = parser.u; t1.push(A._Universe__lookupFutureOrRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n)); break; case 40: t1.push(-3); t1.push(parser.p); parser.p = t1.length; break; case 41: A._Parser_handleArguments(parser, t1); break; case 91: t1.push(parser.p); parser.p = t1.length; break; case 93: array = t1.splice(parser.p); A._Parser_toTypes(parser.u, parser.e, array); parser.p = t1.pop(); t1.push(array); t1.push(-1); break; case 123: t1.push(parser.p); parser.p = t1.length; break; case 125: array = t1.splice(parser.p); A._Parser_toTypesNamed(parser.u, parser.e, array); parser.p = t1.pop(); t1.push(array); t1.push(-2); break; case 43: end = source.indexOf("(", i); t1.push(source.substring(i, end)); t1.push(-4); t1.push(parser.p); parser.p = t1.length; i = end + 1; break; default: throw "Bad character " + ch; } } } item = t1.pop(); return A._Parser_toType(parser.u, parser.e, item); }, _Parser_handleDigit(i, digit, source, stack) { var t1, ch, value = digit - 48; for (t1 = source.length; i < t1; ++i) { ch = source.charCodeAt(i); if (!(ch >= 48 && ch <= 57)) break; value = value * 10 + (ch - 48); } stack.push(value); return i; }, _Parser_handleIdentifier(parser, start, source, stack, hasPeriod) { var t1, ch, t2, string, environment, recipe, i = start + 1; for (t1 = source.length; i < t1; ++i) { ch = source.charCodeAt(i); if (ch === 46) { if (hasPeriod) break; hasPeriod = true; } else { if (!((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36 || ch === 124)) t2 = ch >= 48 && ch <= 57; else t2 = true; if (!t2) break; } } string = source.substring(start, i); if (hasPeriod) { t1 = parser.u; environment = parser.e; if (environment._kind === 10) environment = environment._primary; recipe = A._Universe_findRule(t1, environment._primary)[string]; if (recipe == null) A.throwExpression('No "' + string + '" in "' + A.Rti__getCanonicalRecipe(environment) + '"'); stack.push(A._Universe_evalInEnvironment(t1, environment, recipe)); } else stack.push(string); return i; }, _Parser_handleTypeArguments(parser, stack) { var base, t1 = parser.u, $arguments = A._Parser_collectArray(parser, stack), head = stack.pop(); if (typeof head == "string") stack.push(A._Universe__lookupInterfaceRti(t1, head, $arguments)); else { base = A._Parser_toType(t1, parser.e, head); switch (base._kind) { case 12: stack.push(A._Universe__lookupGenericFunctionRti(t1, base, $arguments, parser.n)); break; default: stack.push(A._Universe__lookupBindingRti(t1, base, $arguments)); break; } } }, _Parser_handleArguments(parser, stack) { var optionalPositional, named, requiredPositional, returnType, parameters, _null = null, t1 = parser.u, head = stack.pop(); if (typeof head == "number") switch (head) { case -1: optionalPositional = stack.pop(); named = _null; break; case -2: named = stack.pop(); optionalPositional = _null; break; default: stack.push(head); named = _null; optionalPositional = named; break; } else { stack.push(head); named = _null; optionalPositional = named; } requiredPositional = A._Parser_collectArray(parser, stack); head = stack.pop(); switch (head) { case -3: head = stack.pop(); if (optionalPositional == null) optionalPositional = t1.sEA; if (named == null) named = t1.sEA; returnType = A._Parser_toType(t1, parser.e, head); parameters = new A._FunctionParameters(); parameters._requiredPositional = requiredPositional; parameters._optionalPositional = optionalPositional; parameters._named = named; stack.push(A._Universe__lookupFunctionRti(t1, returnType, parameters)); return; case -4: stack.push(A._Universe__lookupRecordRti(t1, stack.pop(), requiredPositional)); return; default: throw A.wrapException(A.AssertionError$("Unexpected state under `()`: " + A.S(head))); } }, _Parser_handleExtendedOperations(parser, stack) { var $top = stack.pop(); if (0 === $top) { stack.push(A._Universe__lookupTerminalRti(parser.u, 1, "0&")); return; } if (1 === $top) { stack.push(A._Universe__lookupTerminalRti(parser.u, 4, "1&")); return; } throw A.wrapException(A.AssertionError$("Unexpected extended operation " + A.S($top))); }, _Parser_collectArray(parser, stack) { var array = stack.splice(parser.p); A._Parser_toTypes(parser.u, parser.e, array); parser.p = stack.pop(); return array; }, _Parser_toType(universe, environment, item) { if (typeof item == "string") return A._Universe__lookupInterfaceRti(universe, item, universe.sEA); else if (typeof item == "number") { environment.toString; return A._Parser_indexToType(universe, environment, item); } else return item; }, _Parser_toTypes(universe, environment, items) { var i, $length = items.length; for (i = 0; i < $length; ++i) items[i] = A._Parser_toType(universe, environment, items[i]); }, _Parser_toTypesNamed(universe, environment, items) { var i, $length = items.length; for (i = 2; i < $length; i += 3) items[i] = A._Parser_toType(universe, environment, items[i]); }, _Parser_indexToType(universe, environment, index) { var typeArguments, len, kind = environment._kind; if (kind === 10) { if (index === 0) return environment._primary; typeArguments = environment._rest; len = typeArguments.length; if (index <= len) return typeArguments[index - 1]; index -= len; environment = environment._primary; kind = environment._kind; } else if (index === 0) return environment; if (kind !== 9) throw A.wrapException(A.AssertionError$("Indexed base must be an interface type")); typeArguments = environment._rest; if (index <= typeArguments.length) return typeArguments[index - 1]; throw A.wrapException(A.AssertionError$("Bad index " + index + " for " + environment.toString$0(0))); }, _isSubtype(universe, s, sEnv, t, tEnv) { var t1, sKind, leftTypeVariable, tKind, t2, sBounds, tBounds, sLength, i, sBound, tBound; if (s === t) return true; if (!A.isStrongTopType(t)) if (!(t === type$.legacy_Object)) t1 = false; else t1 = true; else t1 = true; if (t1) return true; sKind = s._kind; if (sKind === 4) return true; if (A.isStrongTopType(s)) return false; if (s._kind !== 1) t1 = false; else t1 = true; if (t1) return true; leftTypeVariable = sKind === 14; if (leftTypeVariable) if (A._isSubtype(universe, sEnv[s._primary], sEnv, t, tEnv)) return true; tKind = t._kind; t1 = s === type$.Null || s === type$.JSNull; if (t1) { if (tKind === 8) return A._isSubtype(universe, s, sEnv, t._primary, tEnv); return t === type$.Null || t === type$.JSNull || tKind === 7 || tKind === 6; } if (t === type$.Object) { if (sKind === 8) return A._isSubtype(universe, s._primary, sEnv, t, tEnv); if (sKind === 6) return A._isSubtype(universe, s._primary, sEnv, t, tEnv); return sKind !== 7; } if (sKind === 6) return A._isSubtype(universe, s._primary, sEnv, t, tEnv); if (tKind === 6) { t1 = A.Rti__getQuestionFromStar(universe, t); return A._isSubtype(universe, s, sEnv, t1, tEnv); } if (sKind === 8) { if (!A._isSubtype(universe, s._primary, sEnv, t, tEnv)) return false; return A._isSubtype(universe, A.Rti__getFutureFromFutureOr(universe, s), sEnv, t, tEnv); } if (sKind === 7) { t1 = A._isSubtype(universe, type$.Null, sEnv, t, tEnv); return t1 && A._isSubtype(universe, s._primary, sEnv, t, tEnv); } if (tKind === 8) { if (A._isSubtype(universe, s, sEnv, t._primary, tEnv)) return true; return A._isSubtype(universe, s, sEnv, A.Rti__getFutureFromFutureOr(universe, t), tEnv); } if (tKind === 7) { t1 = A._isSubtype(universe, s, sEnv, type$.Null, tEnv); return t1 || A._isSubtype(universe, s, sEnv, t._primary, tEnv); } if (leftTypeVariable) return false; t1 = sKind !== 12; if ((!t1 || sKind === 13) && t === type$.Function) return true; t2 = sKind === 11; if (t2 && t === type$.Record) return true; if (tKind === 13) { if (s === type$.JavaScriptFunction) return true; if (sKind !== 13) return false; sBounds = s._rest; tBounds = t._rest; sLength = sBounds.length; if (sLength !== tBounds.length) return false; sEnv = sEnv == null ? sBounds : sBounds.concat(sEnv); tEnv = tEnv == null ? tBounds : tBounds.concat(tEnv); for (i = 0; i < sLength; ++i) { sBound = sBounds[i]; tBound = tBounds[i]; if (!A._isSubtype(universe, sBound, sEnv, tBound, tEnv) || !A._isSubtype(universe, tBound, tEnv, sBound, sEnv)) return false; } return A._isFunctionSubtype(universe, s._primary, sEnv, t._primary, tEnv); } if (tKind === 12) { if (s === type$.JavaScriptFunction) return true; if (t1) return false; return A._isFunctionSubtype(universe, s, sEnv, t, tEnv); } if (sKind === 9) { if (tKind !== 9) return false; return A._isInterfaceSubtype(universe, s, sEnv, t, tEnv); } if (t2 && tKind === 11) return A._isRecordSubtype(universe, s, sEnv, t, tEnv); return false; }, _isFunctionSubtype(universe, s, sEnv, t, tEnv) { var sParameters, tParameters, sRequiredPositional, tRequiredPositional, sRequiredPositionalLength, tRequiredPositionalLength, requiredPositionalDelta, sOptionalPositional, tOptionalPositional, sOptionalPositionalLength, tOptionalPositionalLength, i, t1, sNamed, tNamed, sNamedLength, tNamedLength, sIndex, tIndex, tName, sName, sIsRequired; if (!A._isSubtype(universe, s._primary, sEnv, t._primary, tEnv)) return false; sParameters = s._rest; tParameters = t._rest; sRequiredPositional = sParameters._requiredPositional; tRequiredPositional = tParameters._requiredPositional; sRequiredPositionalLength = sRequiredPositional.length; tRequiredPositionalLength = tRequiredPositional.length; if (sRequiredPositionalLength > tRequiredPositionalLength) return false; requiredPositionalDelta = tRequiredPositionalLength - sRequiredPositionalLength; sOptionalPositional = sParameters._optionalPositional; tOptionalPositional = tParameters._optionalPositional; sOptionalPositionalLength = sOptionalPositional.length; tOptionalPositionalLength = tOptionalPositional.length; if (sRequiredPositionalLength + sOptionalPositionalLength < tRequiredPositionalLength + tOptionalPositionalLength) return false; for (i = 0; i < sRequiredPositionalLength; ++i) { t1 = sRequiredPositional[i]; if (!A._isSubtype(universe, tRequiredPositional[i], tEnv, t1, sEnv)) return false; } for (i = 0; i < requiredPositionalDelta; ++i) { t1 = sOptionalPositional[i]; if (!A._isSubtype(universe, tRequiredPositional[sRequiredPositionalLength + i], tEnv, t1, sEnv)) return false; } for (i = 0; i < tOptionalPositionalLength; ++i) { t1 = sOptionalPositional[requiredPositionalDelta + i]; if (!A._isSubtype(universe, tOptionalPositional[i], tEnv, t1, sEnv)) return false; } sNamed = sParameters._named; tNamed = tParameters._named; sNamedLength = sNamed.length; tNamedLength = tNamed.length; for (sIndex = 0, tIndex = 0; tIndex < tNamedLength; tIndex += 3) { tName = tNamed[tIndex]; for (; true;) { if (sIndex >= sNamedLength) return false; sName = sNamed[sIndex]; sIndex += 3; if (tName < sName) return false; sIsRequired = sNamed[sIndex - 2]; if (sName < tName) { if (sIsRequired) return false; continue; } t1 = tNamed[tIndex + 1]; if (sIsRequired && !t1) return false; t1 = sNamed[sIndex - 1]; if (!A._isSubtype(universe, tNamed[tIndex + 2], tEnv, t1, sEnv)) return false; break; } } for (; sIndex < sNamedLength;) { if (sNamed[sIndex + 1]) return false; sIndex += 3; } return true; }, _isInterfaceSubtype(universe, s, sEnv, t, tEnv) { var rule, recipes, $length, supertypeArgs, i, t1, t2, sName = s._primary, tName = t._primary; for (; sName !== tName;) { rule = universe.tR[sName]; if (rule == null) return false; if (typeof rule == "string") { sName = rule; continue; } recipes = rule[tName]; if (recipes == null) return false; $length = recipes.length; supertypeArgs = $length > 0 ? new Array($length) : init.typeUniverse.sEA; for (i = 0; i < $length; ++i) supertypeArgs[i] = A._Universe_evalInEnvironment(universe, s, recipes[i]); return A._areArgumentsSubtypes(universe, supertypeArgs, null, sEnv, t._rest, tEnv); } t1 = s._rest; t2 = t._rest; return A._areArgumentsSubtypes(universe, t1, null, sEnv, t2, tEnv); }, _areArgumentsSubtypes(universe, sArgs, sVariances, sEnv, tArgs, tEnv) { var i, t1, t2, $length = sArgs.length; for (i = 0; i < $length; ++i) { t1 = sArgs[i]; t2 = tArgs[i]; if (!A._isSubtype(universe, t1, sEnv, t2, tEnv)) return false; } return true; }, _isRecordSubtype(universe, s, sEnv, t, tEnv) { var i, sFields = s._rest, tFields = t._rest, sCount = sFields.length; if (sCount !== tFields.length) return false; if (s._primary !== t._primary) return false; for (i = 0; i < sCount; ++i) if (!A._isSubtype(universe, sFields[i], sEnv, tFields[i], tEnv)) return false; return true; }, isNullable(t) { var t1, kind = t._kind; if (!(t === type$.Null || t === type$.JSNull)) if (!A.isStrongTopType(t)) if (kind !== 7) if (!(kind === 6 && A.isNullable(t._primary))) t1 = kind === 8 && A.isNullable(t._primary); else t1 = true; else t1 = true; else t1 = true; else t1 = true; return t1; }, isTopType(t) { var t1; if (!A.isStrongTopType(t)) if (!(t === type$.legacy_Object)) t1 = false; else t1 = true; else t1 = true; return t1; }, isStrongTopType(t) { var kind = t._kind; return kind === 2 || kind === 3 || kind === 4 || kind === 5 || t === type$.nullable_Object; }, _Utils_objectAssign(o, other) { var i, key, keys = Object.keys(other), $length = keys.length; for (i = 0; i < $length; ++i) { key = keys[i]; o[key] = other[key]; } }, _Utils_newArrayOrEmpty($length) { return $length > 0 ? new Array($length) : init.typeUniverse.sEA; }, Rti: function Rti(t0, t1) { var _ = this; _._as = t0; _._is = t1; _._cachedRuntimeType = _._specializedTestResource = _._precomputed1 = null; _._kind = 0; _._canonicalRecipe = _._bindCache = _._evalCache = _._rest = _._primary = null; }, _FunctionParameters: function _FunctionParameters() { this._named = this._optionalPositional = this._requiredPositional = null; }, _Type: function _Type(t0) { this._rti = t0; }, _Error: function _Error() { }, _TypeError: function _TypeError(t0) { this.__rti$_message = t0; }, _AsyncRun__initializeScheduleImmediate() { var div, span, t1 = {}; if (self.scheduleImmediate != null) return A.async__AsyncRun__scheduleImmediateJsOverride$closure(); if (self.MutationObserver != null && self.document != null) { div = self.document.createElement("div"); span = self.document.createElement("span"); t1.storedCallback = null; new self.MutationObserver(A.convertDartClosureToJS(new A._AsyncRun__initializeScheduleImmediate_internalCallback(t1), 1)).observe(div, {childList: true}); return new A._AsyncRun__initializeScheduleImmediate_closure(t1, div, span); } else if (self.setImmediate != null) return A.async__AsyncRun__scheduleImmediateWithSetImmediate$closure(); return A.async__AsyncRun__scheduleImmediateWithTimer$closure(); }, _AsyncRun__scheduleImmediateJsOverride(callback) { self.scheduleImmediate(A.convertDartClosureToJS(new A._AsyncRun__scheduleImmediateJsOverride_internalCallback(callback), 0)); }, _AsyncRun__scheduleImmediateWithSetImmediate(callback) { self.setImmediate(A.convertDartClosureToJS(new A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(callback), 0)); }, _AsyncRun__scheduleImmediateWithTimer(callback) { A.Timer__createTimer(B.Duration_0, callback); }, Timer__createTimer(duration, callback) { var milliseconds = B.JSInt_methods._tdivFast$1(duration._duration, 1000); return A._TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback); }, _TimerImpl$(milliseconds, callback) { var t1 = new A._TimerImpl(true); t1._TimerImpl$2(milliseconds, callback); return t1; }, _TimerImpl$periodic(milliseconds, callback) { var t1 = new A._TimerImpl(false); t1._TimerImpl$periodic$2(milliseconds, callback); return t1; }, _makeAsyncAwaitCompleter($T) { return new A._AsyncAwaitCompleter(new A._Future($.Zone__current, $T._eval$1("_Future<0>")), $T._eval$1("_AsyncAwaitCompleter<0>")); }, _asyncStartSync(bodyFunction, completer) { bodyFunction.call$2(0, null); completer.isSync = true; return completer._future; }, _asyncAwait(object, bodyFunction) { A._awaitOnObject(object, bodyFunction); }, _asyncReturn(object, completer) { completer.complete$1(object); }, _asyncRethrow(object, completer) { completer.completeError$2(A.unwrapException(object), A.getTraceFromException(object)); }, _awaitOnObject(object, bodyFunction) { var t1, future, thenCallback = new A._awaitOnObject_closure(bodyFunction), errorCallback = new A._awaitOnObject_closure0(bodyFunction); if (object instanceof A._Future) object._thenAwait$1$2(thenCallback, errorCallback, type$.dynamic); else { t1 = type$.dynamic; if (object instanceof A._Future) object.then$1$2$onError(0, thenCallback, errorCallback, t1); else { future = new A._Future($.Zone__current, type$._Future_dynamic); future._state = 8; future._resultOrListeners = object; future._thenAwait$1$2(thenCallback, errorCallback, t1); } } }, _wrapJsFunctionForAsync($function) { var $protected = function(fn, ERROR) { return function(errorCode, result) { while (true) try { fn(errorCode, result); break; } catch (error) { result = error; errorCode = ERROR; } }; }($function, 1); return $.Zone__current.registerBinaryCallback$3$1(new A._wrapJsFunctionForAsync_closure($protected), type$.void, type$.int, type$.dynamic); }, _SyncStarIterator__terminatedBody(_1, _2, _3) { return 0; }, AsyncError$(error, stackTrace) { var t1 = A.checkNotNullable(error, "error", type$.Object); return new A.AsyncError(t1, stackTrace == null ? A.AsyncError_defaultStackTrace(error) : stackTrace); }, AsyncError_defaultStackTrace(error) { var stackTrace; if (type$.Error._is(error)) { stackTrace = error.get$stackTrace(); if (stackTrace != null) return stackTrace; } return B._StringStackTrace_3uE; }, Future_Future$value(value, $T) { var t1; $T._as(value); t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>")); t1._asyncComplete$1(value); return t1; }, Future_Future$error(error, stackTrace, $T) { var t1, replacement; A.checkNotNullable(error, "error", type$.Object); t1 = $.Zone__current; if (t1 !== B.C__RootZone) { replacement = t1.errorCallback$2(error, stackTrace); if (replacement != null) { error = replacement.error; stackTrace = replacement.stackTrace; } } if (stackTrace == null) stackTrace = A.AsyncError_defaultStackTrace(error); t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>")); t1._asyncCompleteError$2(error, stackTrace); return t1; }, Future_wait(futures, eagerError, $T) { var error, stackTrace, handleError, future, pos, e, st, t1, t2, exception, _box_0 = {}, cleanUp = null, _future = new A._Future($.Zone__current, $T._eval$1("_Future>")); _box_0.values = null; _box_0.remaining = 0; error = A._Cell$named("error"); stackTrace = A._Cell$named("stackTrace"); handleError = new A.Future_wait_handleError(_box_0, cleanUp, eagerError, _future, error, stackTrace); try { for (t1 = J.get$iterator$ax(futures), t2 = type$.Null; t1.moveNext$0();) { future = t1.get$current(t1); pos = _box_0.remaining; J.then$1$2$onError$x(future, new A.Future_wait_closure(_box_0, pos, _future, cleanUp, eagerError, error, stackTrace, $T), handleError, t2); ++_box_0.remaining; } t1 = _box_0.remaining; if (t1 === 0) { t1 = _future; t1._completeWithValue$1(A._setArrayType([], $T._eval$1("JSArray<0>"))); return t1; } _box_0.values = A.List_List$filled(t1, null, false, $T._eval$1("0?")); } catch (exception) { e = A.unwrapException(exception); st = A.getTraceFromException(exception); if (_box_0.remaining === 0 || eagerError) return A.Future_Future$error(e, st, $T._eval$1("List<0>")); else { error._value = e; stackTrace._value = st; } } return _future; }, _Future$zoneValue(value, _zone, $T) { var t1 = new A._Future(_zone, $T._eval$1("_Future<0>")); t1._state = 8; t1._resultOrListeners = value; return t1; }, _Future__chainCoreFutureSync(source, target) { var t1, listeners; for (; t1 = source._state, (t1 & 4) !== 0;) source = source._resultOrListeners; if ((t1 & 24) !== 0) { listeners = target._removeListeners$0(); target._cloneResult$1(source); A._Future__propagateToListeners(target, listeners); } else { listeners = target._resultOrListeners; target._setChained$1(source); source._prependListeners$1(listeners); } }, _Future__chainCoreFutureAsync(source, target) { var t2, listeners, _box_0 = {}, t1 = _box_0.source = source; for (; t2 = t1._state, (t2 & 4) !== 0;) { t1 = t1._resultOrListeners; _box_0.source = t1; } if ((t2 & 24) === 0) { listeners = target._resultOrListeners; target._setChained$1(t1); _box_0.source._prependListeners$1(listeners); return; } if ((t2 & 16) === 0 && target._resultOrListeners == null) { target._cloneResult$1(t1); return; } target._state ^= 2; target._zone.scheduleMicrotask$1(new A._Future__chainCoreFutureAsync_closure(_box_0, target)); }, _Future__propagateToListeners(source, listeners) { var _box_0, t2, t3, hasError, nextListener, nextListener0, sourceResult, t4, zone, oldZone, result, current, _box_1 = {}, t1 = _box_1.source = source; for (; true;) { _box_0 = {}; t2 = t1._state; t3 = (t2 & 16) === 0; hasError = !t3; if (listeners == null) { if (hasError && (t2 & 1) === 0) { t2 = t1._resultOrListeners; t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace); } return; } _box_0.listener = listeners; nextListener = listeners._nextListener; for (t1 = listeners; nextListener != null; t1 = nextListener, nextListener = nextListener0) { t1._nextListener = null; A._Future__propagateToListeners(_box_1.source, t1); _box_0.listener = nextListener; nextListener0 = nextListener._nextListener; } t2 = _box_1.source; sourceResult = t2._resultOrListeners; _box_0.listenerHasError = hasError; _box_0.listenerValueOrError = sourceResult; if (t3) { t4 = t1.state; t4 = (t4 & 1) !== 0 || (t4 & 15) === 8; } else t4 = true; if (t4) { zone = t1.result._zone; if (hasError) { t1 = t2._zone; t1 = !(t1 === zone || t1.get$errorZone() === zone.get$errorZone()); } else t1 = false; if (t1) { t1 = _box_1.source; t2 = t1._resultOrListeners; t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace); return; } oldZone = $.Zone__current; if (oldZone !== zone) $.Zone__current = zone; else oldZone = null; t1 = _box_0.listener.state; if ((t1 & 15) === 8) new A._Future__propagateToListeners_handleWhenCompleteCallback(_box_0, _box_1, hasError).call$0(); else if (t3) { if ((t1 & 1) !== 0) new A._Future__propagateToListeners_handleValueCallback(_box_0, sourceResult).call$0(); } else if ((t1 & 2) !== 0) new A._Future__propagateToListeners_handleError(_box_1, _box_0).call$0(); if (oldZone != null) $.Zone__current = oldZone; t1 = _box_0.listenerValueOrError; if (t1 instanceof A._Future) { t2 = _box_0.listener.$ti; t2 = t2._eval$1("Future<2>")._is(t1) || !t2._rest[1]._is(t1); } else t2 = false; if (t2) { result = _box_0.listener.result; if ((t1._state & 24) !== 0) { current = result._resultOrListeners; result._resultOrListeners = null; listeners = result._reverseListeners$1(current); result._state = t1._state & 30 | result._state & 1; result._resultOrListeners = t1._resultOrListeners; _box_1.source = t1; continue; } else A._Future__chainCoreFutureSync(t1, result); return; } } result = _box_0.listener.result; current = result._resultOrListeners; result._resultOrListeners = null; listeners = result._reverseListeners$1(current); t1 = _box_0.listenerHasError; t2 = _box_0.listenerValueOrError; if (!t1) { result._state = 8; result._resultOrListeners = t2; } else { result._state = result._state & 1 | 16; result._resultOrListeners = t2; } _box_1.source = result; t1 = result; } }, _registerErrorHandler(errorHandler, zone) { if (type$.dynamic_Function_Object_StackTrace._is(errorHandler)) return zone.registerBinaryCallback$3$1(errorHandler, type$.dynamic, type$.Object, type$.StackTrace); if (type$.dynamic_Function_Object._is(errorHandler)) return zone.registerUnaryCallback$2$1(errorHandler, type$.dynamic, type$.Object); throw A.wrapException(A.ArgumentError$value(errorHandler, "onError", string$.Error_)); }, _microtaskLoop() { var entry, next; for (entry = $._nextCallback; entry != null; entry = $._nextCallback) { $._lastPriorityCallback = null; next = entry.next; $._nextCallback = next; if (next == null) $._lastCallback = null; entry.callback.call$0(); } }, _startMicrotaskLoop() { $._isInCallbackLoop = true; try { A._microtaskLoop(); } finally { $._lastPriorityCallback = null; $._isInCallbackLoop = false; if ($._nextCallback != null) $.$get$_AsyncRun__scheduleImmediateClosure().call$1(A.async___startMicrotaskLoop$closure()); } }, _scheduleAsyncCallback(callback) { var newEntry = new A._AsyncCallbackEntry(callback), lastCallback = $._lastCallback; if (lastCallback == null) { $._nextCallback = $._lastCallback = newEntry; if (!$._isInCallbackLoop) $.$get$_AsyncRun__scheduleImmediateClosure().call$1(A.async___startMicrotaskLoop$closure()); } else $._lastCallback = lastCallback.next = newEntry; }, _schedulePriorityAsyncCallback(callback) { var entry, lastPriorityCallback, next, t1 = $._nextCallback; if (t1 == null) { A._scheduleAsyncCallback(callback); $._lastPriorityCallback = $._lastCallback; return; } entry = new A._AsyncCallbackEntry(callback); lastPriorityCallback = $._lastPriorityCallback; if (lastPriorityCallback == null) { entry.next = t1; $._nextCallback = $._lastPriorityCallback = entry; } else { next = lastPriorityCallback.next; entry.next = next; $._lastPriorityCallback = lastPriorityCallback.next = entry; if (next == null) $._lastCallback = entry; } }, scheduleMicrotask(callback) { var t1, _null = null, currentZone = $.Zone__current; if (B.C__RootZone === currentZone) { A._rootScheduleMicrotask(_null, _null, B.C__RootZone, callback); return; } if (B.C__RootZone === currentZone.get$_scheduleMicrotask().zone) t1 = B.C__RootZone.get$errorZone() === currentZone.get$errorZone(); else t1 = false; if (t1) { A._rootScheduleMicrotask(_null, _null, currentZone, currentZone.registerCallback$1$1(callback, type$.void)); return; } t1 = $.Zone__current; t1.scheduleMicrotask$1(t1.bindCallbackGuarded$1(callback)); }, Stream_Stream$fromFuture(future, $T) { var _null = null, t1 = $T._eval$1("_SyncStreamController<0>"), controller = new A._SyncStreamController(_null, _null, _null, _null, t1); future.then$1$2$onError(0, new A.Stream_Stream$fromFuture_closure(controller, $T), new A.Stream_Stream$fromFuture_closure0(controller), type$.Null); return new A._ControllerStream(controller, t1._eval$1("_ControllerStream<1>")); }, StreamIterator_StreamIterator(stream) { return new A._StreamIterator(A.checkNotNullable(stream, "stream", type$.Object)); }, StreamController_StreamController(onCancel, onListen, onPause, onResume, sync, $T) { 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>")); }, _runGuarded(notificationHandler) { var e, s, exception; if (notificationHandler == null) return; try { notificationHandler.call$0(); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); $.Zone__current.handleUncaughtError$2(e, s); } }, _ControllerSubscription$(_controller, onData, onError, onDone, cancelOnError, $T) { var t1 = $.Zone__current, t2 = cancelOnError ? 1 : 0, t3 = A._BufferingStreamSubscription__registerDataHandler(t1, onData, $T), t4 = A._BufferingStreamSubscription__registerErrorHandler(t1, onError), t5 = onDone == null ? A.async___nullDoneHandler$closure() : onDone; return new A._ControllerSubscription(_controller, t3, t4, t1.registerCallback$1$1(t5, type$.void), t1, t2, $T._eval$1("_ControllerSubscription<0>")); }, _AddStreamState_makeErrorHandler(controller) { return new A._AddStreamState_makeErrorHandler_closure(controller); }, _BufferingStreamSubscription__registerDataHandler(zone, handleData, $T) { var t1 = handleData == null ? A.async___nullDataHandler$closure() : handleData; return zone.registerUnaryCallback$2$1(t1, type$.void, $T); }, _BufferingStreamSubscription__registerErrorHandler(zone, handleError) { if (handleError == null) handleError = A.async___nullErrorHandler$closure(); if (type$.void_Function_Object_StackTrace._is(handleError)) return zone.registerBinaryCallback$3$1(handleError, type$.dynamic, type$.Object, type$.StackTrace); if (type$.void_Function_Object._is(handleError)) return zone.registerUnaryCallback$2$1(handleError, type$.dynamic, type$.Object); throw A.wrapException(A.ArgumentError$("handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace.", null)); }, _nullDataHandler(value) { }, _nullErrorHandler(error, stackTrace) { $.Zone__current.handleUncaughtError$2(error, stackTrace); }, _nullDoneHandler() { }, Timer_Timer(duration, callback) { var t1 = $.Zone__current; if (t1 === B.C__RootZone) return t1.createTimer$2(duration, callback); return t1.createTimer$2(duration, t1.bindCallbackGuarded$1(callback)); }, _rootHandleUncaughtError($self, $parent, zone, error, stackTrace) { A._rootHandleError(error, stackTrace); }, _rootHandleError(error, stackTrace) { A._schedulePriorityAsyncCallback(new A._rootHandleError_closure(error, stackTrace)); }, _rootRun($self, $parent, zone, f) { var old, t1 = $.Zone__current; if (t1 === zone) return f.call$0(); $.Zone__current = zone; old = t1; try { t1 = f.call$0(); return t1; } finally { $.Zone__current = old; } }, _rootRunUnary($self, $parent, zone, f, arg) { var old, t1 = $.Zone__current; if (t1 === zone) return f.call$1(arg); $.Zone__current = zone; old = t1; try { t1 = f.call$1(arg); return t1; } finally { $.Zone__current = old; } }, _rootRunBinary($self, $parent, zone, f, arg1, arg2) { var old, t1 = $.Zone__current; if (t1 === zone) return f.call$2(arg1, arg2); $.Zone__current = zone; old = t1; try { t1 = f.call$2(arg1, arg2); return t1; } finally { $.Zone__current = old; } }, _rootRegisterCallback($self, $parent, zone, f) { return f; }, _rootRegisterUnaryCallback($self, $parent, zone, f) { return f; }, _rootRegisterBinaryCallback($self, $parent, zone, f) { return f; }, _rootErrorCallback($self, $parent, zone, error, stackTrace) { return null; }, _rootScheduleMicrotask($self, $parent, zone, f) { var t1, t2; if (B.C__RootZone !== zone) { t1 = B.C__RootZone.get$errorZone(); t2 = zone.get$errorZone(); f = t1 !== t2 ? zone.bindCallbackGuarded$1(f) : zone.bindCallback$1$1(f, type$.void); } A._scheduleAsyncCallback(f); }, _rootCreateTimer($self, $parent, zone, duration, callback) { return A.Timer__createTimer(duration, B.C__RootZone !== zone ? zone.bindCallback$1$1(callback, type$.void) : callback); }, _rootCreatePeriodicTimer($self, $parent, zone, duration, callback) { var milliseconds; if (B.C__RootZone !== zone) callback = zone.bindUnaryCallback$2$1(callback, type$.void, type$.Timer); milliseconds = B.JSInt_methods._tdivFast$1(duration._duration, 1000); return A._TimerImpl$periodic(milliseconds < 0 ? 0 : milliseconds, callback); }, _rootPrint($self, $parent, zone, line) { A.printString(line); }, _printToZone(line) { $.Zone__current.print$1(line); }, _rootFork($self, $parent, zone, specification, zoneValues) { var valueMap, t1, handleUncaughtError; $.printToZone = A.async___printToZone$closure(); if (specification == null) specification = B._ZoneSpecification_ALf; if (zoneValues == null) valueMap = zone.get$_async$_map(); else { t1 = type$.nullable_Object; valueMap = A.HashMap_HashMap$from(zoneValues, t1, t1); } 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); handleUncaughtError = specification.handleUncaughtError; if (handleUncaughtError != null) t1._handleUncaughtError = new A._ZoneFunction(t1, handleUncaughtError); return t1; }, runZoned(body, zoneValues, $R) { A.checkNotNullable(body, "body", $R._eval$1("0()")); return A._runZoned(body, zoneValues, null, $R); }, _runZoned(body, zoneValues, specification, $R) { return $.Zone__current.fork$2$specification$zoneValues(specification, zoneValues).run$1$1(0, body, $R); }, _AsyncRun__initializeScheduleImmediate_internalCallback: function _AsyncRun__initializeScheduleImmediate_internalCallback(t0) { this._box_0 = t0; }, _AsyncRun__initializeScheduleImmediate_closure: function _AsyncRun__initializeScheduleImmediate_closure(t0, t1, t2) { this._box_0 = t0; this.div = t1; this.span = t2; }, _AsyncRun__scheduleImmediateJsOverride_internalCallback: function _AsyncRun__scheduleImmediateJsOverride_internalCallback(t0) { this.callback = t0; }, _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback: function _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(t0) { this.callback = t0; }, _TimerImpl: function _TimerImpl(t0) { this._once = t0; this._handle = null; this._tick = 0; }, _TimerImpl_internalCallback: function _TimerImpl_internalCallback(t0, t1) { this.$this = t0; this.callback = t1; }, _TimerImpl$periodic_closure: function _TimerImpl$periodic_closure(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.milliseconds = t1; _.start = t2; _.callback = t3; }, _AsyncAwaitCompleter: function _AsyncAwaitCompleter(t0, t1) { this._future = t0; this.isSync = false; this.$ti = t1; }, _awaitOnObject_closure: function _awaitOnObject_closure(t0) { this.bodyFunction = t0; }, _awaitOnObject_closure0: function _awaitOnObject_closure0(t0) { this.bodyFunction = t0; }, _wrapJsFunctionForAsync_closure: function _wrapJsFunctionForAsync_closure(t0) { this.$protected = t0; }, _SyncStarIterator: function _SyncStarIterator(t0) { var _ = this; _._body = t0; _._suspendedBodies = _._nestedIterator = _._datum = _._async$_current = null; }, _SyncStarIterable: function _SyncStarIterable(t0, t1) { this._outerHelper = t0; this.$ti = t1; }, AsyncError: function AsyncError(t0, t1) { this.error = t0; this.stackTrace = t1; }, Future_wait_handleError: function Future_wait_handleError(t0, t1, t2, t3, t4, t5) { var _ = this; _._box_0 = t0; _.cleanUp = t1; _.eagerError = t2; _._future = t3; _.error = t4; _.stackTrace = t5; }, Future_wait_closure: function Future_wait_closure(t0, t1, t2, t3, t4, t5, t6, t7) { var _ = this; _._box_0 = t0; _.pos = t1; _._future = t2; _.cleanUp = t3; _.eagerError = t4; _.error = t5; _.stackTrace = t6; _.T = t7; }, _Completer: function _Completer() { }, _AsyncCompleter: function _AsyncCompleter(t0, t1) { this.future = t0; this.$ti = t1; }, _SyncCompleter: function _SyncCompleter(t0, t1) { this.future = t0; this.$ti = t1; }, _FutureListener: function _FutureListener(t0, t1, t2, t3, t4) { var _ = this; _._nextListener = null; _.result = t0; _.state = t1; _.callback = t2; _.errorCallback = t3; _.$ti = t4; }, _Future: function _Future(t0, t1) { var _ = this; _._state = 0; _._zone = t0; _._resultOrListeners = null; _.$ti = t1; }, _Future__addListener_closure: function _Future__addListener_closure(t0, t1) { this.$this = t0; this.listener = t1; }, _Future__prependListeners_closure: function _Future__prependListeners_closure(t0, t1) { this._box_0 = t0; this.$this = t1; }, _Future__chainForeignFuture_closure: function _Future__chainForeignFuture_closure(t0) { this.$this = t0; }, _Future__chainForeignFuture_closure0: function _Future__chainForeignFuture_closure0(t0) { this.$this = t0; }, _Future__chainForeignFuture_closure1: function _Future__chainForeignFuture_closure1(t0, t1, t2) { this.$this = t0; this.e = t1; this.s = t2; }, _Future__chainCoreFutureAsync_closure: function _Future__chainCoreFutureAsync_closure(t0, t1) { this._box_0 = t0; this.target = t1; }, _Future__asyncCompleteWithValue_closure: function _Future__asyncCompleteWithValue_closure(t0, t1) { this.$this = t0; this.value = t1; }, _Future__asyncCompleteError_closure: function _Future__asyncCompleteError_closure(t0, t1, t2) { this.$this = t0; this.error = t1; this.stackTrace = t2; }, _Future__propagateToListeners_handleWhenCompleteCallback: function _Future__propagateToListeners_handleWhenCompleteCallback(t0, t1, t2) { this._box_0 = t0; this._box_1 = t1; this.hasError = t2; }, _Future__propagateToListeners_handleWhenCompleteCallback_closure: function _Future__propagateToListeners_handleWhenCompleteCallback_closure(t0) { this.originalSource = t0; }, _Future__propagateToListeners_handleValueCallback: function _Future__propagateToListeners_handleValueCallback(t0, t1) { this._box_0 = t0; this.sourceResult = t1; }, _Future__propagateToListeners_handleError: function _Future__propagateToListeners_handleError(t0, t1) { this._box_1 = t0; this._box_0 = t1; }, _AsyncCallbackEntry: function _AsyncCallbackEntry(t0) { this.callback = t0; this.next = null; }, Stream: function Stream() { }, Stream_Stream$fromFuture_closure: function Stream_Stream$fromFuture_closure(t0, t1) { this.controller = t0; this.T = t1; }, Stream_Stream$fromFuture_closure0: function Stream_Stream$fromFuture_closure0(t0) { this.controller = t0; }, Stream_length_closure: function Stream_length_closure(t0, t1) { this._box_0 = t0; this.$this = t1; }, Stream_length_closure0: function Stream_length_closure0(t0, t1) { this._box_0 = t0; this.future = t1; }, _StreamController: function _StreamController() { }, _StreamController__subscribe_closure: function _StreamController__subscribe_closure(t0) { this.$this = t0; }, _StreamController__recordCancel_complete: function _StreamController__recordCancel_complete(t0) { this.$this = t0; }, _SyncStreamControllerDispatch: function _SyncStreamControllerDispatch() { }, _AsyncStreamControllerDispatch: function _AsyncStreamControllerDispatch() { }, _AsyncStreamController: function _AsyncStreamController(t0, t1, t2, t3, t4) { var _ = this; _._varData = null; _._state = 0; _._doneFuture = null; _.onListen = t0; _.onPause = t1; _.onResume = t2; _.onCancel = t3; _.$ti = t4; }, _SyncStreamController: function _SyncStreamController(t0, t1, t2, t3, t4) { var _ = this; _._varData = null; _._state = 0; _._doneFuture = null; _.onListen = t0; _.onPause = t1; _.onResume = t2; _.onCancel = t3; _.$ti = t4; }, _ControllerStream: function _ControllerStream(t0, t1) { this._controller = t0; this.$ti = t1; }, _ControllerSubscription: function _ControllerSubscription(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _._controller = t0; _._onData = t1; _._onError = t2; _._onDone = t3; _._zone = t4; _._state = t5; _._pending = _._cancelFuture = null; _.$ti = t6; }, _AddStreamState: function _AddStreamState() { }, _AddStreamState_makeErrorHandler_closure: function _AddStreamState_makeErrorHandler_closure(t0) { this.controller = t0; }, _AddStreamState_cancel_closure: function _AddStreamState_cancel_closure(t0) { this.$this = t0; }, _StreamControllerAddStreamState: function _StreamControllerAddStreamState(t0, t1, t2) { this.varData = t0; this.addStreamFuture = t1; this.addSubscription = t2; }, _BufferingStreamSubscription: function _BufferingStreamSubscription() { }, _BufferingStreamSubscription__sendError_sendError: function _BufferingStreamSubscription__sendError_sendError(t0, t1, t2) { this.$this = t0; this.error = t1; this.stackTrace = t2; }, _BufferingStreamSubscription__sendDone_sendDone: function _BufferingStreamSubscription__sendDone_sendDone(t0) { this.$this = t0; }, _StreamImpl: function _StreamImpl() { }, _DelayedEvent: function _DelayedEvent() { }, _DelayedData: function _DelayedData(t0) { this.value = t0; this.next = null; }, _DelayedError: function _DelayedError(t0, t1) { this.error = t0; this.stackTrace = t1; this.next = null; }, _DelayedDone: function _DelayedDone() { }, _PendingEvents: function _PendingEvents() { this._state = 0; this.lastPendingEvent = this.firstPendingEvent = null; }, _PendingEvents_schedule_closure: function _PendingEvents_schedule_closure(t0, t1) { this.$this = t0; this.dispatch = t1; }, _StreamIterator: function _StreamIterator(t0) { this._subscription = null; this._stateData = t0; this._async$_hasValue = false; }, _ForwardingStream: function _ForwardingStream() { }, _ForwardingStreamSubscription: function _ForwardingStreamSubscription(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _._stream = t0; _._subscription = null; _._onData = t1; _._onError = t2; _._onDone = t3; _._zone = t4; _._state = t5; _._pending = _._cancelFuture = null; _.$ti = t6; }, _ExpandStream: function _ExpandStream(t0, t1, t2) { this._expand = t0; this._async$_source = t1; this.$ti = t2; }, _ZoneFunction: function _ZoneFunction(t0, t1) { this.zone = t0; this.$function = t1; }, _ZoneSpecification: function _ZoneSpecification(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) { var _ = this; _.handleUncaughtError = t0; _.run = t1; _.runUnary = t2; _.runBinary = t3; _.registerCallback = t4; _.registerUnaryCallback = t5; _.registerBinaryCallback = t6; _.errorCallback = t7; _.scheduleMicrotask = t8; _.createTimer = t9; _.createPeriodicTimer = t10; _.print = t11; _.fork = t12; }, _ZoneDelegate: function _ZoneDelegate(t0) { this._delegationTarget = t0; }, _Zone: function _Zone() { }, _CustomZone: function _CustomZone(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) { var _ = this; _._run = t0; _._runUnary = t1; _._runBinary = t2; _._registerCallback = t3; _._registerUnaryCallback = t4; _._registerBinaryCallback = t5; _._errorCallback = t6; _._scheduleMicrotask = t7; _._createTimer = t8; _._createPeriodicTimer = t9; _._print = t10; _._fork = t11; _._handleUncaughtError = t12; _._delegateCache = null; _.parent = t13; _._async$_map = t14; }, _CustomZone_bindCallback_closure: function _CustomZone_bindCallback_closure(t0, t1, t2) { this.$this = t0; this.registered = t1; this.R = t2; }, _CustomZone_bindUnaryCallback_closure: function _CustomZone_bindUnaryCallback_closure(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.registered = t1; _.T = t2; _.R = t3; }, _CustomZone_bindCallbackGuarded_closure: function _CustomZone_bindCallbackGuarded_closure(t0, t1) { this.$this = t0; this.registered = t1; }, _rootHandleError_closure: function _rootHandleError_closure(t0, t1) { this.error = t0; this.stackTrace = t1; }, _RootZone: function _RootZone() { }, _RootZone_bindCallback_closure: function _RootZone_bindCallback_closure(t0, t1, t2) { this.$this = t0; this.f = t1; this.R = t2; }, _RootZone_bindUnaryCallback_closure: function _RootZone_bindUnaryCallback_closure(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.f = t1; _.T = t2; _.R = t3; }, _RootZone_bindCallbackGuarded_closure: function _RootZone_bindCallbackGuarded_closure(t0, t1) { this.$this = t0; this.f = t1; }, HashMap_HashMap($K, $V) { return new A._HashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_HashMap<1,2>")); }, _HashMap__getTableEntry(table, key) { var entry = table[key]; return entry === table ? null : entry; }, _HashMap__setTableEntry(table, key, value) { if (value == null) table[key] = table; else table[key] = value; }, _HashMap__newHashTable() { var table = Object.create(null); A._HashMap__setTableEntry(table, "", table); delete table[""]; return table; }, LinkedHashMap_LinkedHashMap(equals, hashCode, isValidKey, $K, $V) { if (isValidKey == null) if (hashCode == null) { if (equals == null) return new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>")); hashCode = A.collection___defaultHashCode$closure(); } else { if (A.core__identityHashCode$closure() === hashCode && A.core__identical$closure() === equals) return new A.JsIdentityLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsIdentityLinkedHashMap<1,2>")); if (equals == null) equals = A.collection___defaultEquals$closure(); } else { if (hashCode == null) hashCode = A.collection___defaultHashCode$closure(); if (equals == null) equals = A.collection___defaultEquals$closure(); } return A._LinkedCustomHashMap$(equals, hashCode, isValidKey, $K, $V); }, LinkedHashMap_LinkedHashMap$_literal(keyValuePairs, $K, $V) { return A.fillLiteralMap(keyValuePairs, new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"))); }, LinkedHashMap_LinkedHashMap$_empty($K, $V) { return new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>")); }, _LinkedCustomHashMap$(_equals, _hashCode, validKey, $K, $V) { var t1 = validKey != null ? validKey : new A._LinkedCustomHashMap_closure($K); return new A._LinkedCustomHashMap(_equals, _hashCode, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedCustomHashMap<1,2>")); }, LinkedHashSet_LinkedHashSet($E) { return new A._LinkedHashSet($E._eval$1("_LinkedHashSet<0>")); }, LinkedHashSet_LinkedHashSet$_empty($E) { return new A._LinkedHashSet($E._eval$1("_LinkedHashSet<0>")); }, LinkedHashSet_LinkedHashSet$_literal(values, $E) { return A.fillLiteralSet(values, new A._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"))); }, _LinkedHashSet__newHashTable() { var table = Object.create(null); table[""] = table; delete table[""]; return table; }, _LinkedHashSetIterator$(_set, _modifications) { var t1 = new A._LinkedHashSetIterator(_set, _modifications); t1._collection$_cell = _set._collection$_first; return t1; }, UnmodifiableListView$(source, $E) { return new A.UnmodifiableListView(source, $E._eval$1("UnmodifiableListView<0>")); }, _defaultEquals(a, b) { return J.$eq$(a, b); }, _defaultHashCode(a) { return J.get$hashCode$(a); }, HashMap_HashMap$from(other, $K, $V) { var result = A.HashMap_HashMap($K, $V); other.forEach$1(0, new A.HashMap_HashMap$from_closure(result, $K, $V)); return result; }, LinkedHashMap_LinkedHashMap$from(other, $K, $V) { var result = A.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V); other.forEach$1(0, new A.LinkedHashMap_LinkedHashMap$from_closure(result, $K, $V)); return result; }, LinkedHashMap_LinkedHashMap$of(other, $K, $V) { var t1 = A.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V); t1.addAll$1(0, other); return t1; }, LinkedHashSet_LinkedHashSet$from(elements, $E) { var t1, _i, result = A.LinkedHashSet_LinkedHashSet($E); for (t1 = elements.length, _i = 0; _i < elements.length; elements.length === t1 || (0, A.throwConcurrentModificationError)(elements), ++_i) result.add$1(0, $E._as(elements[_i])); return result; }, LinkedHashSet_LinkedHashSet$of(elements, $E) { var t1 = A.LinkedHashSet_LinkedHashSet($E); t1.addAll$1(0, elements); return t1; }, ListBase__compareAny(a, b) { var t1 = type$.Comparable_dynamic; return J.compareTo$1$ns(t1._as(a), t1._as(b)); }, MapBase_mapToString(m) { var result, t1 = {}; if (A.isToStringVisiting(m)) return "{...}"; result = new A.StringBuffer(""); try { $.toStringVisiting.push(m); result._contents += "{"; t1.first = true; m.forEach$1(0, new A.MapBase_mapToString_closure(t1, result)); result._contents += "}"; } finally { $.toStringVisiting.pop(); } t1 = result._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, MapBase__fillMapWithIterables(map, keys, values) { var keyIterator = keys.get$iterator(keys), valueIterator = values.get$iterator(values), hasNextKey = keyIterator.moveNext$0(), hasNextValue = valueIterator.moveNext$0(); while (true) { if (!(hasNextKey && hasNextValue)) break; map.$indexSet(0, keyIterator.get$current(keyIterator), valueIterator.get$current(valueIterator)); hasNextKey = keyIterator.moveNext$0(); hasNextValue = valueIterator.moveNext$0(); } if (hasNextKey || hasNextValue) throw A.wrapException(A.ArgumentError$("Iterables do not have same length.", null)); }, ListQueue$($E) { return new A.ListQueue(A.List_List$filled(A.ListQueue__calculateCapacity(null), null, false, $E._eval$1("0?")), $E._eval$1("ListQueue<0>")); }, ListQueue__calculateCapacity(initialCapacity) { return 8; }, ListQueue__nextPowerOf2(number) { var nextNumber; number = (number << 1 >>> 0) - 1; for (; true; number = nextNumber) { nextNumber = (number & number - 1) >>> 0; if (nextNumber === 0) return number; } }, _ListQueueIterator$(queue) { return new A._ListQueueIterator(queue, queue._tail, queue._modificationCount, queue._head); }, _UnmodifiableSetMixin__throwUnmodifiable() { throw A.wrapException(A.UnsupportedError$("Cannot change an unmodifiable set")); }, _HashMap: function _HashMap(t0) { var _ = this; _._collection$_length = 0; _._collection$_keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null; _.$ti = t0; }, _HashMap_values_closure: function _HashMap_values_closure(t0) { this.$this = t0; }, _HashMap_addAll_closure: function _HashMap_addAll_closure(t0) { this.$this = t0; }, _IdentityHashMap: function _IdentityHashMap(t0) { var _ = this; _._collection$_length = 0; _._collection$_keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null; _.$ti = t0; }, _HashMapKeyIterable: function _HashMapKeyIterable(t0, t1) { this._map = t0; this.$ti = t1; }, _HashMapKeyIterator: function _HashMapKeyIterator(t0, t1) { var _ = this; _._map = t0; _._collection$_keys = t1; _._offset = 0; _._collection$_current = null; }, _LinkedCustomHashMap: function _LinkedCustomHashMap(t0, t1, t2, t3) { var _ = this; _._equals = t0; _._hashCode = t1; _._validKey = t2; _.__js_helper$_length = 0; _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null; _._modifications = 0; _.$ti = t3; }, _LinkedCustomHashMap_closure: function _LinkedCustomHashMap_closure(t0) { this.K = t0; }, _LinkedHashSet: function _LinkedHashSet(t0) { var _ = this; _._collection$_length = 0; _._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null; _._collection$_modifications = 0; _.$ti = t0; }, _LinkedIdentityHashSet: function _LinkedIdentityHashSet(t0) { var _ = this; _._collection$_length = 0; _._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null; _._collection$_modifications = 0; _.$ti = t0; }, _LinkedHashSetCell: function _LinkedHashSetCell(t0) { this._element = t0; this._collection$_previous = this._collection$_next = null; }, _LinkedHashSetIterator: function _LinkedHashSetIterator(t0, t1) { var _ = this; _._set = t0; _._collection$_modifications = t1; _._collection$_current = _._collection$_cell = null; }, UnmodifiableListView: function UnmodifiableListView(t0, t1) { this._collection$_source = t0; this.$ti = t1; }, HashMap_HashMap$from_closure: function HashMap_HashMap$from_closure(t0, t1, t2) { this.result = t0; this.K = t1; this.V = t2; }, LinkedHashMap_LinkedHashMap$from_closure: function LinkedHashMap_LinkedHashMap$from_closure(t0, t1, t2) { this.result = t0; this.K = t1; this.V = t2; }, ListBase: function ListBase() { }, MapBase: function MapBase() { }, MapBase_addAll_closure: function MapBase_addAll_closure(t0) { this.$this = t0; }, MapBase_entries_closure: function MapBase_entries_closure(t0) { this.$this = t0; }, MapBase_mapToString_closure: function MapBase_mapToString_closure(t0, t1) { this._box_0 = t0; this.result = t1; }, UnmodifiableMapBase: function UnmodifiableMapBase() { }, _MapBaseValueIterable: function _MapBaseValueIterable(t0, t1) { this._map = t0; this.$ti = t1; }, _MapBaseValueIterator: function _MapBaseValueIterator(t0, t1) { this._collection$_keys = t0; this._map = t1; this._collection$_current = null; }, _UnmodifiableMapMixin: function _UnmodifiableMapMixin() { }, MapView: function MapView() { }, UnmodifiableMapView: function UnmodifiableMapView(t0, t1) { this._map = t0; this.$ti = t1; }, ListQueue: function ListQueue(t0, t1) { var _ = this; _._table = t0; _._modificationCount = _._tail = _._head = 0; _.$ti = t1; }, _ListQueueIterator: function _ListQueueIterator(t0, t1, t2, t3) { var _ = this; _._queue = t0; _._collection$_end = t1; _._modificationCount = t2; _._collection$_position = t3; _._collection$_current = null; }, SetBase: function SetBase() { }, _SetBase: function _SetBase() { }, _UnmodifiableSetMixin: function _UnmodifiableSetMixin() { }, UnmodifiableSetView: function UnmodifiableSetView(t0, t1) { this._collection$_source = t0; this.$ti = t1; }, _UnmodifiableMapView_MapView__UnmodifiableMapMixin: function _UnmodifiableMapView_MapView__UnmodifiableMapMixin() { }, _UnmodifiableSetView_SetBase__UnmodifiableSetMixin: function _UnmodifiableSetView_SetBase__UnmodifiableSetMixin() { }, Utf8Decoder__convertIntercepted(allowMalformed, codeUnits, start, end) { var casted, result; if (codeUnits instanceof Uint8Array) { casted = codeUnits; end = casted.length; if (end - start < 15) return null; result = A.Utf8Decoder__convertInterceptedUint8List(allowMalformed, casted, start, end); if (result != null && allowMalformed) if (result.indexOf("\ufffd") >= 0) return null; return result; } return null; }, Utf8Decoder__convertInterceptedUint8List(allowMalformed, codeUnits, start, end) { var decoder = allowMalformed ? $.$get$Utf8Decoder__decoderNonfatal() : $.$get$Utf8Decoder__decoder(); if (decoder == null) return null; if (0 === start && end === codeUnits.length) return A.Utf8Decoder__useTextDecoder(decoder, codeUnits); return A.Utf8Decoder__useTextDecoder(decoder, codeUnits.subarray(start, A.RangeError_checkValidRange(start, end, codeUnits.length))); }, Utf8Decoder__useTextDecoder(decoder, codeUnits) { var t1, exception; try { t1 = decoder.decode(codeUnits); return t1; } catch (exception) { } return null; }, Base64Codec__checkPadding(source, sourceIndex, sourceEnd, firstPadding, paddingCount, $length) { if (B.JSInt_methods.$mod($length, 4) !== 0) throw A.wrapException(A.FormatException$("Invalid base64 padding, padded length must be multiple of four, is " + $length, source, sourceEnd)); if (firstPadding + paddingCount !== $length) throw A.wrapException(A.FormatException$("Invalid base64 padding, '=' not at the end", source, sourceIndex)); if (paddingCount > 2) throw A.wrapException(A.FormatException$("Invalid base64 padding, more than two '=' characters", source, sourceIndex)); }, _Base64Encoder_encodeChunk(alphabet, bytes, start, end, isLast, output, outputIndex, state) { var t1, i, byteOr, byte, outputIndex0, outputIndex1, bits = state >>> 2, expectedChars = 3 - (state & 3); for (t1 = J.getInterceptor$asx(bytes), i = start, byteOr = 0; i < end; ++i) { byte = t1.$index(bytes, i); byteOr = (byteOr | byte) >>> 0; bits = (bits << 8 | byte) & 16777215; --expectedChars; if (expectedChars === 0) { outputIndex0 = outputIndex + 1; output[outputIndex] = alphabet.charCodeAt(bits >>> 18 & 63); outputIndex = outputIndex0 + 1; output[outputIndex0] = alphabet.charCodeAt(bits >>> 12 & 63); outputIndex0 = outputIndex + 1; output[outputIndex] = alphabet.charCodeAt(bits >>> 6 & 63); outputIndex = outputIndex0 + 1; output[outputIndex0] = alphabet.charCodeAt(bits & 63); bits = 0; expectedChars = 3; } } if (byteOr >= 0 && byteOr <= 255) { if (isLast && expectedChars < 3) { outputIndex0 = outputIndex + 1; outputIndex1 = outputIndex0 + 1; if (3 - expectedChars === 1) { output[outputIndex] = alphabet.charCodeAt(bits >>> 2 & 63); output[outputIndex0] = alphabet.charCodeAt(bits << 4 & 63); output[outputIndex1] = 61; output[outputIndex1 + 1] = 61; } else { output[outputIndex] = alphabet.charCodeAt(bits >>> 10 & 63); output[outputIndex0] = alphabet.charCodeAt(bits >>> 4 & 63); output[outputIndex1] = alphabet.charCodeAt(bits << 2 & 63); output[outputIndex1 + 1] = 61; } return 0; } return (bits << 2 | 3 - expectedChars) >>> 0; } for (i = start; i < end;) { byte = t1.$index(bytes, i); if (byte < 0 || byte > 255) break; ++i; } 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)); }, JsonUnsupportedObjectError$(unsupportedObject, cause, partialResult) { return new A.JsonUnsupportedObjectError(unsupportedObject, cause); }, _defaultToEncodable(object) { return object.toJson$0(); }, _JsonStringStringifier$(_sink, _toEncodable) { return new A._JsonStringStringifier(_sink, [], A.convert___defaultToEncodable$closure()); }, _JsonStringStringifier_stringify(object, toEncodable, indent) { var t1, output = new A.StringBuffer(""), stringifier = A._JsonStringStringifier$(output, toEncodable); stringifier.writeObject$1(object); t1 = output._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, _Utf8Decoder_errorDescription(state) { switch (state) { case 65: return "Missing extension byte"; case 67: return "Unexpected extension byte"; case 69: return "Invalid UTF-8 byte"; case 71: return "Overlong encoding"; case 73: return "Out of unicode range"; case 75: return "Encoded surrogate"; case 77: return "Unfinished UTF-8 octet sequence"; default: return ""; } }, _Utf8Decoder__makeUint8List(codeUnits, start, end) { var t1, i, b, $length = end - start, bytes = new Uint8Array($length); for (t1 = J.getInterceptor$asx(codeUnits), i = 0; i < $length; ++i) { b = t1.$index(codeUnits, start + i); bytes[i] = (b & 4294967040) >>> 0 !== 0 ? 255 : b; } return bytes; }, Utf8Decoder__decoder_closure: function Utf8Decoder__decoder_closure() { }, Utf8Decoder__decoderNonfatal_closure: function Utf8Decoder__decoderNonfatal_closure() { }, AsciiCodec: function AsciiCodec() { }, _UnicodeSubsetEncoder: function _UnicodeSubsetEncoder() { }, AsciiEncoder: function AsciiEncoder(t0) { this._subsetMask = t0; }, Base64Codec: function Base64Codec() { }, Base64Encoder: function Base64Encoder() { }, _Base64Encoder: function _Base64Encoder(t0) { this._convert$_state = 0; this._alphabet = t0; }, _Base64EncoderSink: function _Base64EncoderSink() { }, _Utf8Base64EncoderSink: function _Utf8Base64EncoderSink(t0, t1) { this._sink = t0; this._encoder = t1; }, ByteConversionSink: function ByteConversionSink() { }, Codec: function Codec() { }, Converter: function Converter() { }, Encoding: function Encoding() { }, JsonUnsupportedObjectError: function JsonUnsupportedObjectError(t0, t1) { this.unsupportedObject = t0; this.cause = t1; }, JsonCyclicError: function JsonCyclicError(t0, t1) { this.unsupportedObject = t0; this.cause = t1; }, JsonCodec: function JsonCodec() { }, JsonEncoder: function JsonEncoder(t0) { this._toEncodable = t0; }, _JsonStringifier: function _JsonStringifier() { }, _JsonStringifier_writeMap_closure: function _JsonStringifier_writeMap_closure(t0, t1) { this._box_0 = t0; this.keyValueList = t1; }, _JsonStringStringifier: function _JsonStringStringifier(t0, t1, t2) { this._sink = t0; this._seen = t1; this._toEncodable = t2; }, StringConversionSink: function StringConversionSink() { }, _StringSinkConversionSink: function _StringSinkConversionSink(t0) { this._stringSink = t0; }, _StringCallbackSink: function _StringCallbackSink(t0, t1) { this._convert$_callback = t0; this._stringSink = t1; }, _Utf8StringSinkAdapter: function _Utf8StringSinkAdapter(t0, t1, t2) { this._decoder = t0; this._sink = t1; this._stringSink = t2; }, Utf8Codec: function Utf8Codec() { }, Utf8Encoder: function Utf8Encoder() { }, _Utf8Encoder: function _Utf8Encoder(t0) { this._bufferIndex = 0; this._buffer = t0; }, Utf8Decoder: function Utf8Decoder(t0) { this._allowMalformed = t0; }, _Utf8Decoder: function _Utf8Decoder(t0) { this.allowMalformed = t0; this._convert$_state = 16; this._charOrIndex = 0; }, identityHashCode(object) { return A.objectHashCode(object); }, Function_apply($function, positionalArguments) { return A.Primitives_applyFunction($function, positionalArguments, null); }, Expando$() { return new A.Expando(new WeakMap()); }, Expando__checkType(object) { if (A._isBool(object) || typeof object == "number" || typeof object == "string" || object instanceof A._Record) A.Expando__badExpandoKey(object); }, Expando__badExpandoKey(object) { throw A.wrapException(A.ArgumentError$value(object, "object", "Expandos are not allowed on strings, numbers, bools, records or null")); }, int_parse(source, radix) { var value = A.Primitives_parseInt(source, radix); if (value != null) return value; throw A.wrapException(A.FormatException$(source, null, null)); }, double_parse(source) { var value = A.Primitives_parseDouble(source); if (value != null) return value; throw A.wrapException(A.FormatException$("Invalid double", source, null)); }, Error__throw(error, stackTrace) { error = A.wrapException(error); error.stack = stackTrace.toString$0(0); throw error; throw A.wrapException("unreachable"); }, List_List$filled($length, fill, growable, $E) { var i, result = growable ? J.JSArray_JSArray$growable($length, $E) : J.JSArray_JSArray$fixed($length, $E); if ($length !== 0 && fill != null) for (i = 0; i < result.length; ++i) result[i] = fill; return result; }, List_List$from(elements, growable, $E) { var t1, list = A._setArrayType([], $E._eval$1("JSArray<0>")); for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();) list.push(t1.get$current(t1)); if (growable) return list; return J.JSArray_markFixedList(list); }, List_List$of(elements, growable, $E) { var t1; if (growable) return A.List_List$_of(elements, $E); t1 = J.JSArray_markFixedList(A.List_List$_of(elements, $E)); return t1; }, List_List$_of(elements, $E) { var list, t1; if (Array.isArray(elements)) return A._setArrayType(elements.slice(0), $E._eval$1("JSArray<0>")); list = A._setArrayType([], $E._eval$1("JSArray<0>")); for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();) list.push(t1.get$current(t1)); return list; }, List_List$unmodifiable(elements, $E) { return J.JSArray_markUnmodifiableList(A.List_List$from(elements, false, $E)); }, String_String$fromCharCodes(charCodes, start, end) { var array, len; if (Array.isArray(charCodes)) { array = charCodes; len = array.length; end = A.RangeError_checkValidRange(start, end, len); return A.Primitives_stringFromCharCodes(start > 0 || end < len ? array.slice(start, end) : array); } if (type$.NativeUint8List._is(charCodes)) return A.Primitives_stringFromNativeUint8List(charCodes, start, A.RangeError_checkValidRange(start, end, charCodes.length)); return A.String__stringFromIterable(charCodes, start, end); }, String_String$fromCharCode(charCode) { return A.Primitives_stringFromCharCode(charCode); }, String__stringFromIterable(charCodes, start, end) { var t1, it, i, list, _null = null; if (start < 0) throw A.wrapException(A.RangeError$range(start, 0, J.get$length$asx(charCodes), _null, _null)); t1 = end == null; if (!t1 && end < start) throw A.wrapException(A.RangeError$range(end, start, J.get$length$asx(charCodes), _null, _null)); it = J.get$iterator$ax(charCodes); for (i = 0; i < start; ++i) if (!it.moveNext$0()) throw A.wrapException(A.RangeError$range(start, 0, i, _null, _null)); list = []; if (t1) for (; it.moveNext$0();) list.push(it.get$current(it)); else for (i = start; i < end; ++i) { if (!it.moveNext$0()) throw A.wrapException(A.RangeError$range(end, start, i, _null, _null)); list.push(it.get$current(it)); } return A.Primitives_stringFromCharCodes(list); }, RegExp_RegExp(source, multiLine) { return new A.JSSyntaxRegExp(source, A.JSSyntaxRegExp_makeNative(source, multiLine, true, false, false, false)); }, identical(a, b) { return a == null ? b == null : a === b; }, StringBuffer__writeAll(string, objects, separator) { var iterator = J.get$iterator$ax(objects); if (!iterator.moveNext$0()) return string; if (separator.length === 0) { do string += A.S(iterator.get$current(iterator)); while (iterator.moveNext$0()); } else { string += A.S(iterator.get$current(iterator)); for (; iterator.moveNext$0();) string = string + separator + A.S(iterator.get$current(iterator)); } return string; }, NoSuchMethodError_NoSuchMethodError$withInvocation(receiver, invocation) { return new A.NoSuchMethodError(receiver, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments()); }, Uri_base() { var cachedUri, uri, current = A.Primitives_currentUri(); if (current == null) throw A.wrapException(A.UnsupportedError$("'Uri.base' is not supported")); cachedUri = $.Uri__cachedBaseUri; if (cachedUri != null && current === $.Uri__cachedBaseString) return cachedUri; uri = A.Uri_parse(current); $.Uri__cachedBaseUri = uri; $.Uri__cachedBaseString = current; return uri; }, _Uri__uriEncode(canonicalTable, text, encoding, spaceToPlus) { var t1, bytes, i, t2, byte, _s16_ = "0123456789ABCDEF"; if (encoding === B.C_Utf8Codec) { t1 = $.$get$_Uri__needsNoEncoding(); t1 = t1._nativeRegExp.test(text); } else t1 = false; if (t1) return text; bytes = encoding.get$encoder().convert$1(text); for (t1 = bytes.length, i = 0, t2 = ""; i < t1; ++i) { byte = bytes[i]; if (byte < 128 && (canonicalTable[byte >>> 4] & 1 << (byte & 15)) !== 0) t2 += A.Primitives_stringFromCharCode(byte); else t2 = spaceToPlus && byte === 32 ? t2 + "+" : t2 + "%" + _s16_[byte >>> 4 & 15] + _s16_[byte & 15]; } return t2.charCodeAt(0) == 0 ? t2 : t2; }, StackTrace_current() { var stackTrace, exception; if ($.$get$_hasErrorStackProperty()) return A.getTraceFromException(new Error()); try { throw A.wrapException(""); } catch (exception) { stackTrace = A.getTraceFromException(exception); return stackTrace; } }, DateTime__fourDigits(n) { var absN = Math.abs(n), sign = n < 0 ? "-" : ""; if (absN >= 1000) return "" + n; if (absN >= 100) return sign + "0" + absN; if (absN >= 10) return sign + "00" + absN; return sign + "000" + absN; }, DateTime__threeDigits(n) { if (n >= 100) return "" + n; if (n >= 10) return "0" + n; return "00" + n; }, DateTime__twoDigits(n) { if (n >= 10) return "" + n; return "0" + n; }, Duration$(milliseconds) { return new A.Duration(1000 * milliseconds); }, Error_safeToString(object) { if (typeof object == "number" || A._isBool(object) || object == null) return J.toString$0$(object); if (typeof object == "string") return JSON.stringify(object); return A.Primitives_safeToString(object); }, Error_throwWithStackTrace(error, stackTrace) { A.checkNotNullable(error, "error", type$.Object); A.checkNotNullable(stackTrace, "stackTrace", type$.StackTrace); A.Error__throw(error, stackTrace); }, AssertionError$(message) { return new A.AssertionError(message); }, ArgumentError$(message, $name) { return new A.ArgumentError(false, null, $name, message); }, ArgumentError$value(value, $name, message) { return new A.ArgumentError(true, value, $name, message); }, ArgumentError_checkNotNull(argument, $name) { return argument; }, RangeError$(message) { var _null = null; return new A.RangeError(_null, _null, false, _null, _null, message); }, RangeError$value(value, $name, message) { return new A.RangeError(null, null, true, value, $name, message == null ? "Value not in range" : message); }, RangeError$range(invalidValue, minValue, maxValue, $name, message) { return new A.RangeError(minValue, maxValue, true, invalidValue, $name, message == null ? "Invalid value" : message); }, RangeError_checkValueInInterval(value, minValue, maxValue, $name) { if (value < minValue || value > maxValue) throw A.wrapException(A.RangeError$range(value, minValue, maxValue, $name, null)); return value; }, RangeError_checkValidRange(start, end, $length) { if (0 > start || start > $length) throw A.wrapException(A.RangeError$range(start, 0, $length, "start", null)); if (end != null) { if (start > end || end > $length) throw A.wrapException(A.RangeError$range(end, start, $length, "end", null)); return end; } return $length; }, RangeError_checkNotNegative(value, $name) { if (value < 0) throw A.wrapException(A.RangeError$range(value, 0, null, $name, null)); return value; }, IndexError$withLength(invalidValue, $length, indexable, message, $name) { return new A.IndexError($length, true, invalidValue, $name, "Index out of range"); }, IndexError_check(index, $length, indexable, message, $name) { if (0 > index || index >= $length) throw A.wrapException(A.IndexError$withLength(index, $length, indexable, message, $name == null ? "index" : $name)); return index; }, UnsupportedError$(message) { return new A.UnsupportedError(message); }, UnimplementedError$(message) { return new A.UnimplementedError(message); }, StateError$(message) { return new A.StateError(message); }, ConcurrentModificationError$(modifiedObject) { return new A.ConcurrentModificationError(modifiedObject); }, FormatException$(message, source, offset) { return new A.FormatException(message, source, offset); }, Iterable_Iterable$generate(count, generator, $E) { if (count <= 0) return new A.EmptyIterable($E._eval$1("EmptyIterable<0>")); return new A._GeneratorIterable(count, generator, $E._eval$1("_GeneratorIterable<0>")); }, Iterable_iterableToShortString(iterable, leftDelimiter, rightDelimiter) { var parts, t1; if (A.isToStringVisiting(iterable)) { if (leftDelimiter === "(" && rightDelimiter === ")") return "(...)"; return leftDelimiter + "..." + rightDelimiter; } parts = A._setArrayType([], type$.JSArray_String); $.toStringVisiting.push(iterable); try { A._iterablePartsToStrings(iterable, parts); } finally { $.toStringVisiting.pop(); } t1 = A.StringBuffer__writeAll(leftDelimiter, parts, ", ") + rightDelimiter; return t1.charCodeAt(0) == 0 ? t1 : t1; }, Iterable_iterableToFullString(iterable, leftDelimiter, rightDelimiter) { var buffer, t1; if (A.isToStringVisiting(iterable)) return leftDelimiter + "..." + rightDelimiter; buffer = new A.StringBuffer(leftDelimiter); $.toStringVisiting.push(iterable); try { t1 = buffer; t1._contents = A.StringBuffer__writeAll(t1._contents, iterable, ", "); } finally { $.toStringVisiting.pop(); } buffer._contents += rightDelimiter; t1 = buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, _iterablePartsToStrings(iterable, parts) { var next, ultimateString, penultimateString, penultimate, ultimate, ultimate0, elision, it = iterable.get$iterator(iterable), $length = 0, count = 0; while (true) { if (!($length < 80 || count < 3)) break; if (!it.moveNext$0()) return; next = A.S(it.get$current(it)); parts.push(next); $length += next.length + 2; ++count; } if (!it.moveNext$0()) { if (count <= 5) return; ultimateString = parts.pop(); penultimateString = parts.pop(); } else { penultimate = it.get$current(it); ++count; if (!it.moveNext$0()) { if (count <= 4) { parts.push(A.S(penultimate)); return; } ultimateString = A.S(penultimate); penultimateString = parts.pop(); $length += ultimateString.length + 2; } else { ultimate = it.get$current(it); ++count; for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) { ultimate0 = it.get$current(it); ++count; if (count > 100) { while (true) { if (!($length > 75 && count > 3)) break; $length -= parts.pop().length + 2; --count; } parts.push("..."); return; } } penultimateString = A.S(penultimate); ultimateString = A.S(ultimate); $length += ultimateString.length + penultimateString.length + 4; } } if (count > parts.length + 2) { $length += 5; elision = "..."; } else elision = null; while (true) { if (!($length > 80 && parts.length > 3)) break; $length -= parts.pop().length + 2; if (elision == null) { $length += 5; elision = "..."; } } if (elision != null) parts.push(elision); parts.push(penultimateString); parts.push(ultimateString); }, Map_castFrom(source, $K, $V, K2, V2) { 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>")); }, Object_hash(object1, object2, object3, object4) { var t1; if (B.C_SentinelValue === object3) { t1 = J.get$hashCode$(object1); object2 = J.get$hashCode$(object2); return A.SystemHash_finish(A.SystemHash_combine(A.SystemHash_combine($.$get$_hashSeed(), t1), object2)); } if (B.C_SentinelValue === object4) { t1 = J.get$hashCode$(object1); object2 = J.get$hashCode$(object2); object3 = J.get$hashCode$(object3); return A.SystemHash_finish(A.SystemHash_combine(A.SystemHash_combine(A.SystemHash_combine($.$get$_hashSeed(), t1), object2), object3)); } t1 = J.get$hashCode$(object1); object2 = J.get$hashCode$(object2); object3 = J.get$hashCode$(object3); object4 = J.get$hashCode$(object4); object4 = A.SystemHash_finish(A.SystemHash_combine(A.SystemHash_combine(A.SystemHash_combine(A.SystemHash_combine($.$get$_hashSeed(), t1), object2), object3), object4)); return object4; }, Object_hashAll(objects) { var t1, _i, hash = $.$get$_hashSeed(); for (t1 = objects.length, _i = 0; _i < objects.length; objects.length === t1 || (0, A.throwConcurrentModificationError)(objects), ++_i) hash = A.SystemHash_combine(hash, J.get$hashCode$(objects[_i])); return A.SystemHash_finish(hash); }, print(object) { var line = A.S(object), toZone = $.printToZone; if (toZone == null) A.printString(line); else toZone.call$1(line); }, Set_Set$unmodifiable(elements, $E) { return new A.UnmodifiableSetView(A.LinkedHashSet_LinkedHashSet$of(elements, $E), $E._eval$1("UnmodifiableSetView<0>")); }, Set_castFrom(source, newSet, $S, $T) { return new A.CastSet(source, newSet, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastSet<1,2>")); }, _combineSurrogatePair(start, end) { return 65536 + ((start & 1023) << 10) + (end & 1023); }, Uri_Uri$dataFromString($content, encoding, mimeType) { var encodingName, t1, buffer = new A.StringBuffer(""), indices = A._setArrayType([-1], type$.JSArray_int); if (encoding == null) encodingName = null; else encodingName = "utf-8"; if (encoding == null) encoding = B.C_AsciiCodec; A.UriData__writeUri(mimeType, encodingName, null, buffer, indices); indices.push(buffer._contents.length); buffer._contents += ","; A.UriData__uriEncodeBytes(B.List_oFp, encoding.encode$1($content), buffer); t1 = buffer._contents; return new A.UriData(t1.charCodeAt(0) == 0 ? t1 : t1, indices, null).get$uri(); }, Uri_parse(uri) { var delta, indices, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, isSimple, scheme, t1, t2, schemeAuth, queryStart0, pathStart0, userInfoStart, userInfo, host, portNumber, port, path, query, _null = null, end = uri.length; if (end >= 5) { delta = ((uri.charCodeAt(4) ^ 58) * 3 | uri.charCodeAt(0) ^ 100 | uri.charCodeAt(1) ^ 97 | uri.charCodeAt(2) ^ 116 | uri.charCodeAt(3) ^ 97) >>> 0; if (delta === 0) return A.UriData__parse(end < end ? B.JSString_methods.substring$2(uri, 0, end) : uri, 5, _null).get$uri(); else if (delta === 32) return A.UriData__parse(B.JSString_methods.substring$2(uri, 5, end), 0, _null).get$uri(); } indices = A.List_List$filled(8, 0, false, type$.int); indices[0] = 0; indices[1] = -1; indices[2] = -1; indices[7] = -1; indices[3] = 0; indices[4] = 0; indices[5] = end; indices[6] = end; if (A._scan(uri, 0, end, 0, indices) >= 14) indices[7] = end; schemeEnd = indices[1]; if (schemeEnd >= 0) if (A._scan(uri, 0, schemeEnd, 20, indices) === 20) indices[7] = schemeEnd; hostStart = indices[2] + 1; portStart = indices[3]; pathStart = indices[4]; queryStart = indices[5]; fragmentStart = indices[6]; if (fragmentStart < queryStart) queryStart = fragmentStart; if (pathStart < hostStart) pathStart = queryStart; else if (pathStart <= schemeEnd) pathStart = schemeEnd + 1; if (portStart < hostStart) portStart = pathStart; isSimple = indices[7] < 0; if (isSimple) if (hostStart > schemeEnd + 3) { scheme = _null; isSimple = false; } else { t1 = portStart > 0; if (t1 && portStart + 1 === pathStart) { scheme = _null; isSimple = false; } else { if (!B.JSString_methods.startsWith$2(uri, "\\", pathStart)) if (hostStart > 0) t2 = B.JSString_methods.startsWith$2(uri, "\\", hostStart - 1) || B.JSString_methods.startsWith$2(uri, "\\", hostStart - 2); else t2 = false; else t2 = true; if (t2) { scheme = _null; isSimple = false; } else { if (!(queryStart < end && queryStart === pathStart + 2 && B.JSString_methods.startsWith$2(uri, "..", pathStart))) t2 = queryStart > pathStart + 2 && B.JSString_methods.startsWith$2(uri, "/..", queryStart - 3); else t2 = true; if (t2) { scheme = _null; isSimple = false; } else { if (schemeEnd === 4) if (B.JSString_methods.startsWith$2(uri, "file", 0)) { if (hostStart <= 0) { if (!B.JSString_methods.startsWith$2(uri, "/", pathStart)) { schemeAuth = "file:///"; delta = 3; } else { schemeAuth = "file://"; delta = 2; } uri = schemeAuth + B.JSString_methods.substring$2(uri, pathStart, end); schemeEnd -= 0; t1 = delta - 0; queryStart += t1; fragmentStart += t1; end = uri.length; hostStart = 7; portStart = 7; pathStart = 7; } else if (pathStart === queryStart) { ++fragmentStart; queryStart0 = queryStart + 1; uri = B.JSString_methods.replaceRange$3(uri, pathStart, queryStart, "/"); ++end; queryStart = queryStart0; } scheme = "file"; } else if (B.JSString_methods.startsWith$2(uri, "http", 0)) { if (t1 && portStart + 3 === pathStart && B.JSString_methods.startsWith$2(uri, "80", portStart + 1)) { fragmentStart -= 3; pathStart0 = pathStart - 3; queryStart -= 3; uri = B.JSString_methods.replaceRange$3(uri, portStart, pathStart, ""); end -= 3; pathStart = pathStart0; } scheme = "http"; } else scheme = _null; else if (schemeEnd === 5 && B.JSString_methods.startsWith$2(uri, "https", 0)) { if (t1 && portStart + 4 === pathStart && B.JSString_methods.startsWith$2(uri, "443", portStart + 1)) { fragmentStart -= 4; pathStart0 = pathStart - 4; queryStart -= 4; uri = B.JSString_methods.replaceRange$3(uri, portStart, pathStart, ""); end -= 3; pathStart = pathStart0; } scheme = "https"; } else scheme = _null; isSimple = true; } } } } else scheme = _null; if (isSimple) { if (end < uri.length) { uri = B.JSString_methods.substring$2(uri, 0, end); schemeEnd -= 0; hostStart -= 0; portStart -= 0; pathStart -= 0; queryStart -= 0; fragmentStart -= 0; } return new A._SimpleUri(uri, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme); } if (scheme == null) if (schemeEnd > 0) scheme = A._Uri__makeScheme(uri, 0, schemeEnd); else { if (schemeEnd === 0) A._Uri__fail(uri, 0, "Invalid empty scheme"); scheme = ""; } if (hostStart > 0) { userInfoStart = schemeEnd + 3; userInfo = userInfoStart < hostStart ? A._Uri__makeUserInfo(uri, userInfoStart, hostStart - 1) : ""; host = A._Uri__makeHost(uri, hostStart, portStart, false); t1 = portStart + 1; if (t1 < pathStart) { portNumber = A.Primitives_parseInt(B.JSString_methods.substring$2(uri, t1, pathStart), _null); port = A._Uri__makePort(portNumber == null ? A.throwExpression(A.FormatException$("Invalid port", uri, t1)) : portNumber, scheme); } else port = _null; } else { port = _null; host = port; userInfo = ""; } path = A._Uri__makePath(uri, pathStart, queryStart, _null, scheme, host != null); query = queryStart < fragmentStart ? A._Uri__makeQuery(uri, queryStart + 1, fragmentStart, _null) : _null; return A._Uri$_internal(scheme, userInfo, host, port, path, query, fragmentStart < end ? A._Uri__makeFragment(uri, fragmentStart + 1, end) : _null); }, Uri_decodeComponent(encodedComponent) { return A._Uri__uriDecode(encodedComponent, 0, encodedComponent.length, B.C_Utf8Codec, false); }, Uri__parseIPv4Address(host, start, end) { var i, partStart, partIndex, char, part, partIndex0, _s43_ = "IPv4 address should contain exactly 4 parts", _s37_ = "each part must be in the range 0..255", error = new A.Uri__parseIPv4Address_error(host), result = new Uint8Array(4); for (i = start, partStart = i, partIndex = 0; i < end; ++i) { char = host.charCodeAt(i); if (char !== 46) { if ((char ^ 48) > 9) error.call$2("invalid character", i); } else { if (partIndex === 3) error.call$2(_s43_, i); part = A.int_parse(B.JSString_methods.substring$2(host, partStart, i), null); if (part > 255) error.call$2(_s37_, partStart); partIndex0 = partIndex + 1; result[partIndex] = part; partStart = i + 1; partIndex = partIndex0; } } if (partIndex !== 3) error.call$2(_s43_, end); part = A.int_parse(B.JSString_methods.substring$2(host, partStart, end), null); if (part > 255) error.call$2(_s37_, partStart); result[partIndex] = part; return result; }, Uri_parseIPv6Address(host, start, end) { var parts, i, partStart, wildcardSeen, seenDot, char, atEnd, t1, last, bytes, wildCardLength, index, value, j, _null = null, error = new A.Uri_parseIPv6Address_error(host), parseHex = new A.Uri_parseIPv6Address_parseHex(error, host); if (host.length < 2) error.call$2("address is too short", _null); parts = A._setArrayType([], type$.JSArray_int); for (i = start, partStart = i, wildcardSeen = false, seenDot = false; i < end; ++i) { char = host.charCodeAt(i); if (char === 58) { if (i === start) { ++i; if (host.charCodeAt(i) !== 58) error.call$2("invalid start colon.", i); partStart = i; } if (i === partStart) { if (wildcardSeen) error.call$2("only one wildcard `::` is allowed", i); parts.push(-1); wildcardSeen = true; } else parts.push(parseHex.call$2(partStart, i)); partStart = i + 1; } else if (char === 46) seenDot = true; } if (parts.length === 0) error.call$2("too few parts", _null); atEnd = partStart === end; t1 = B.JSArray_methods.get$last(parts); if (atEnd && t1 !== -1) error.call$2("expected a part after last `:`", end); if (!atEnd) if (!seenDot) parts.push(parseHex.call$2(partStart, end)); else { last = A.Uri__parseIPv4Address(host, partStart, end); parts.push((last[0] << 8 | last[1]) >>> 0); parts.push((last[2] << 8 | last[3]) >>> 0); } if (wildcardSeen) { if (parts.length > 7) error.call$2("an address with a wildcard must have less than 7 parts", _null); } else if (parts.length !== 8) error.call$2("an address without a wildcard must contain exactly 8 parts", _null); bytes = new Uint8Array(16); for (t1 = parts.length, wildCardLength = 9 - t1, i = 0, index = 0; i < t1; ++i) { value = parts[i]; if (value === -1) for (j = 0; j < wildCardLength; ++j) { bytes[index] = 0; bytes[index + 1] = 0; index += 2; } else { bytes[index] = B.JSInt_methods._shrOtherPositive$1(value, 8); bytes[index + 1] = value & 255; index += 2; } } return bytes; }, _Uri$_internal(scheme, _userInfo, _host, _port, path, _query, _fragment) { return new A._Uri(scheme, _userInfo, _host, _port, path, _query, _fragment); }, _Uri__Uri(host, path, pathSegments, scheme) { var userInfo, query, fragment, port, isFile, t1, hasAuthority, t2, _null = null; scheme = scheme == null ? "" : A._Uri__makeScheme(scheme, 0, scheme.length); userInfo = A._Uri__makeUserInfo(_null, 0, 0); host = A._Uri__makeHost(host, 0, host == null ? 0 : host.length, false); query = A._Uri__makeQuery(_null, 0, 0, _null); fragment = A._Uri__makeFragment(_null, 0, 0); port = A._Uri__makePort(_null, scheme); isFile = scheme === "file"; if (host == null) t1 = userInfo.length !== 0 || port != null || isFile; else t1 = false; if (t1) host = ""; t1 = host == null; hasAuthority = !t1; path = A._Uri__makePath(path, 0, path == null ? 0 : path.length, pathSegments, scheme, hasAuthority); t2 = scheme.length === 0; if (t2 && t1 && !B.JSString_methods.startsWith$1(path, "/")) path = A._Uri__normalizeRelativePath(path, !t2 || hasAuthority); else path = A._Uri__removeDotSegments(path); return A._Uri$_internal(scheme, userInfo, t1 && B.JSString_methods.startsWith$1(path, "//") ? "" : host, port, path, query, fragment); }, _Uri__defaultPort(scheme) { if (scheme === "http") return 80; if (scheme === "https") return 443; return 0; }, _Uri__fail(uri, index, message) { throw A.wrapException(A.FormatException$(message, uri, index)); }, _Uri__Uri$file(path, windows) { return windows ? A._Uri__makeWindowsFileUrl(path, false) : A._Uri__makeFileUri(path, false); }, _Uri__checkNonWindowsPathReservedCharacters(segments, argumentError) { var t1, _i, segment, t2, t3; for (t1 = segments.length, _i = 0; _i < t1; ++_i) { segment = segments[_i]; t2 = J.getInterceptor$asx(segment); t3 = t2.get$length(segment); if (0 > t3) A.throwExpression(A.RangeError$range(0, 0, t2.get$length(segment), null, null)); if (A.stringContainsUnchecked(segment, "/", 0)) { t1 = A.UnsupportedError$("Illegal path character " + A.S(segment)); throw A.wrapException(t1); } } }, _Uri__checkWindowsPathReservedCharacters(segments, argumentError, firstSegment) { var t1, t2, t3, t4, t5, _null = null; for (t1 = A.SubListIterable$(segments, firstSegment, _null, A._arrayInstanceType(segments)._precomputed1), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; if (t3 == null) t3 = t2._as(t3); t4 = A.RegExp_RegExp('["*/:<>?\\\\|]', false); t5 = t3.length; if (A.stringContainsUnchecked(t3, t4, 0)) if (argumentError) throw A.wrapException(A.ArgumentError$("Illegal character in path", _null)); else throw A.wrapException(A.UnsupportedError$("Illegal character in path: " + t3)); } }, _Uri__checkWindowsDriveLetter(charCode, argumentError) { var t1, _s21_ = "Illegal drive letter "; if (!(65 <= charCode && charCode <= 90)) t1 = 97 <= charCode && charCode <= 122; else t1 = true; if (t1) return; if (argumentError) throw A.wrapException(A.ArgumentError$(_s21_ + A.String_String$fromCharCode(charCode), null)); else throw A.wrapException(A.UnsupportedError$(_s21_ + A.String_String$fromCharCode(charCode))); }, _Uri__makeFileUri(path, slashTerminated) { var _null = null, segments = A._setArrayType(path.split("/"), type$.JSArray_String); if (B.JSString_methods.startsWith$1(path, "/")) return A._Uri__Uri(_null, _null, segments, "file"); else return A._Uri__Uri(_null, _null, segments, _null); }, _Uri__makeWindowsFileUrl(path, slashTerminated) { var t1, pathSegments, pathStart, hostPart, _s1_ = "\\", _null = null, _s4_ = "file"; if (B.JSString_methods.startsWith$1(path, "\\\\?\\")) if (B.JSString_methods.startsWith$2(path, "UNC\\", 4)) path = B.JSString_methods.replaceRange$3(path, 0, 7, _s1_); else { path = B.JSString_methods.substring$1(path, 4); if (path.length < 3 || path.charCodeAt(1) !== 58 || path.charCodeAt(2) !== 92) throw A.wrapException(A.ArgumentError$value(path, "path", "Windows paths with \\\\?\\ prefix must be absolute")); } else path = A.stringReplaceAllUnchecked(path, "/", _s1_); t1 = path.length; if (t1 > 1 && path.charCodeAt(1) === 58) { A._Uri__checkWindowsDriveLetter(path.charCodeAt(0), true); if (t1 === 2 || path.charCodeAt(2) !== 92) throw A.wrapException(A.ArgumentError$value(path, "path", "Windows paths with drive letter must be absolute")); pathSegments = A._setArrayType(path.split(_s1_), type$.JSArray_String); A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 1); return A._Uri__Uri(_null, _null, pathSegments, _s4_); } if (B.JSString_methods.startsWith$1(path, _s1_)) if (B.JSString_methods.startsWith$2(path, _s1_, 1)) { pathStart = B.JSString_methods.indexOf$2(path, _s1_, 2); t1 = pathStart < 0; hostPart = t1 ? B.JSString_methods.substring$1(path, 2) : B.JSString_methods.substring$2(path, 2, pathStart); pathSegments = A._setArrayType((t1 ? "" : B.JSString_methods.substring$1(path, pathStart + 1)).split(_s1_), type$.JSArray_String); A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0); return A._Uri__Uri(hostPart, _null, pathSegments, _s4_); } else { pathSegments = A._setArrayType(path.split(_s1_), type$.JSArray_String); A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0); return A._Uri__Uri(_null, _null, pathSegments, _s4_); } else { pathSegments = A._setArrayType(path.split(_s1_), type$.JSArray_String); A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0); return A._Uri__Uri(_null, _null, pathSegments, _null); } }, _Uri__makePort(port, scheme) { if (port != null && port === A._Uri__defaultPort(scheme)) return null; return port; }, _Uri__makeHost(host, start, end, strictIPv6) { var t1, t2, index, zoneIDstart, zoneID, i; if (host == null) return null; if (start === end) return ""; if (host.charCodeAt(start) === 91) { t1 = end - 1; if (host.charCodeAt(t1) !== 93) A._Uri__fail(host, start, "Missing end `]` to match `[` in host"); t2 = start + 1; index = A._Uri__checkZoneID(host, t2, t1); if (index < t1) { zoneIDstart = index + 1; zoneID = A._Uri__normalizeZoneID(host, B.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, t1, "%25"); } else zoneID = ""; A.Uri_parseIPv6Address(host, t2, index); return B.JSString_methods.substring$2(host, start, index).toLowerCase() + zoneID + "]"; } for (i = start; i < end; ++i) if (host.charCodeAt(i) === 58) { index = B.JSString_methods.indexOf$2(host, "%", start); index = index >= start && index < end ? index : end; if (index < end) { zoneIDstart = index + 1; zoneID = A._Uri__normalizeZoneID(host, B.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, end, "%25"); } else zoneID = ""; A.Uri_parseIPv6Address(host, start, index); return "[" + B.JSString_methods.substring$2(host, start, index) + zoneID + "]"; } return A._Uri__normalizeRegName(host, start, end); }, _Uri__checkZoneID(host, start, end) { var index = B.JSString_methods.indexOf$2(host, "%", start); return index >= start && index < end ? index : end; }, _Uri__normalizeZoneID(host, start, end, prefix) { var index, sectionStart, isNormalized, char, replacement, t1, t2, tail, sourceLength, slice, buffer = prefix !== "" ? new A.StringBuffer(prefix) : null; for (index = start, sectionStart = index, isNormalized = true; index < end;) { char = host.charCodeAt(index); if (char === 37) { replacement = A._Uri__normalizeEscape(host, index, true); t1 = replacement == null; if (t1 && isNormalized) { index += 3; continue; } if (buffer == null) buffer = new A.StringBuffer(""); t2 = buffer._contents += B.JSString_methods.substring$2(host, sectionStart, index); if (t1) replacement = B.JSString_methods.substring$2(host, index, index + 3); else if (replacement === "%") A._Uri__fail(host, index, "ZoneID should not contain % anymore"); buffer._contents = t2 + replacement; index += 3; sectionStart = index; isNormalized = true; } else if (char < 127 && (B.List_M1A[char >>> 4] & 1 << (char & 15)) !== 0) { if (isNormalized && 65 <= char && 90 >= char) { if (buffer == null) buffer = new A.StringBuffer(""); if (sectionStart < index) { buffer._contents += B.JSString_methods.substring$2(host, sectionStart, index); sectionStart = index; } isNormalized = false; } ++index; } else { if ((char & 64512) === 55296 && index + 1 < end) { tail = host.charCodeAt(index + 1); if ((tail & 64512) === 56320) { char = (char & 1023) << 10 | tail & 1023 | 65536; sourceLength = 2; } else sourceLength = 1; } else sourceLength = 1; slice = B.JSString_methods.substring$2(host, sectionStart, index); if (buffer == null) { buffer = new A.StringBuffer(""); t1 = buffer; } else t1 = buffer; t1._contents += slice; t1._contents += A._Uri__escapeChar(char); index += sourceLength; sectionStart = index; } } if (buffer == null) return B.JSString_methods.substring$2(host, start, end); if (sectionStart < end) buffer._contents += B.JSString_methods.substring$2(host, sectionStart, end); t1 = buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, _Uri__normalizeRegName(host, start, end) { var index, sectionStart, buffer, isNormalized, char, replacement, t1, slice, t2, sourceLength, tail; for (index = start, sectionStart = index, buffer = null, isNormalized = true; index < end;) { char = host.charCodeAt(index); if (char === 37) { replacement = A._Uri__normalizeEscape(host, index, true); t1 = replacement == null; if (t1 && isNormalized) { index += 3; continue; } if (buffer == null) buffer = new A.StringBuffer(""); slice = B.JSString_methods.substring$2(host, sectionStart, index); t2 = buffer._contents += !isNormalized ? slice.toLowerCase() : slice; if (t1) { replacement = B.JSString_methods.substring$2(host, index, index + 3); sourceLength = 3; } else if (replacement === "%") { replacement = "%25"; sourceLength = 1; } else sourceLength = 3; buffer._contents = t2 + replacement; index += sourceLength; sectionStart = index; isNormalized = true; } else if (char < 127 && (B.List_ejq[char >>> 4] & 1 << (char & 15)) !== 0) { if (isNormalized && 65 <= char && 90 >= char) { if (buffer == null) buffer = new A.StringBuffer(""); if (sectionStart < index) { buffer._contents += B.JSString_methods.substring$2(host, sectionStart, index); sectionStart = index; } isNormalized = false; } ++index; } else if (char <= 93 && (B.List_YmH[char >>> 4] & 1 << (char & 15)) !== 0) A._Uri__fail(host, index, "Invalid character"); else { if ((char & 64512) === 55296 && index + 1 < end) { tail = host.charCodeAt(index + 1); if ((tail & 64512) === 56320) { char = (char & 1023) << 10 | tail & 1023 | 65536; sourceLength = 2; } else sourceLength = 1; } else sourceLength = 1; slice = B.JSString_methods.substring$2(host, sectionStart, index); if (!isNormalized) slice = slice.toLowerCase(); if (buffer == null) { buffer = new A.StringBuffer(""); t1 = buffer; } else t1 = buffer; t1._contents += slice; t1._contents += A._Uri__escapeChar(char); index += sourceLength; sectionStart = index; } } if (buffer == null) return B.JSString_methods.substring$2(host, start, end); if (sectionStart < end) { slice = B.JSString_methods.substring$2(host, sectionStart, end); buffer._contents += !isNormalized ? slice.toLowerCase() : slice; } t1 = buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, _Uri__makeScheme(scheme, start, end) { var i, containsUpperCase, codeUnit; if (start === end) return ""; if (!A._Uri__isAlphabeticCharacter(scheme.charCodeAt(start))) A._Uri__fail(scheme, start, "Scheme not starting with alphabetic character"); for (i = start, containsUpperCase = false; i < end; ++i) { codeUnit = scheme.charCodeAt(i); if (!(codeUnit < 128 && (B.List_MMm[codeUnit >>> 4] & 1 << (codeUnit & 15)) !== 0)) A._Uri__fail(scheme, i, "Illegal scheme character"); if (65 <= codeUnit && codeUnit <= 90) containsUpperCase = true; } scheme = B.JSString_methods.substring$2(scheme, start, end); return A._Uri__canonicalizeScheme(containsUpperCase ? scheme.toLowerCase() : scheme); }, _Uri__canonicalizeScheme(scheme) { if (scheme === "http") return "http"; if (scheme === "file") return "file"; if (scheme === "https") return "https"; if (scheme === "package") return "package"; return scheme; }, _Uri__makeUserInfo(userInfo, start, end) { if (userInfo == null) return ""; return A._Uri__normalizeOrSubstring(userInfo, start, end, B.List_OL3, false, false); }, _Uri__makePath(path, start, end, pathSegments, scheme, hasAuthority) { var result, isFile = scheme === "file", ensureLeadingSlash = isFile || hasAuthority; if (path == null) { if (pathSegments == null) return isFile ? "/" : ""; result = new A.MappedListIterable(pathSegments, new A._Uri__makePath_closure(), A._arrayInstanceType(pathSegments)._eval$1("MappedListIterable<1,String>")).join$1(0, "/"); } else if (pathSegments != null) throw A.wrapException(A.ArgumentError$("Both path and pathSegments specified", null)); else result = A._Uri__normalizeOrSubstring(path, start, end, B.List_XRg, true, true); if (result.length === 0) { if (isFile) return "/"; } else if (ensureLeadingSlash && !B.JSString_methods.startsWith$1(result, "/")) result = "/" + result; return A._Uri__normalizePath(result, scheme, hasAuthority); }, _Uri__normalizePath(path, scheme, hasAuthority) { var t1 = scheme.length === 0; if (t1 && !hasAuthority && !B.JSString_methods.startsWith$1(path, "/") && !B.JSString_methods.startsWith$1(path, "\\")) return A._Uri__normalizeRelativePath(path, !t1 || hasAuthority); return A._Uri__removeDotSegments(path); }, _Uri__makeQuery(query, start, end, queryParameters) { if (query != null) return A._Uri__normalizeOrSubstring(query, start, end, B.List_oFp, true, false); return null; }, _Uri__makeFragment(fragment, start, end) { if (fragment == null) return null; return A._Uri__normalizeOrSubstring(fragment, start, end, B.List_oFp, true, false); }, _Uri__normalizeEscape(source, index, lowerCase) { var firstDigit, secondDigit, firstDigitValue, secondDigitValue, value, t1 = index + 2; if (t1 >= source.length) return "%"; firstDigit = source.charCodeAt(index + 1); secondDigit = source.charCodeAt(t1); firstDigitValue = A.hexDigitValue(firstDigit); secondDigitValue = A.hexDigitValue(secondDigit); if (firstDigitValue < 0 || secondDigitValue < 0) return "%"; value = firstDigitValue * 16 + secondDigitValue; if (value < 127 && (B.List_M1A[B.JSInt_methods._shrOtherPositive$1(value, 4)] & 1 << (value & 15)) !== 0) return A.Primitives_stringFromCharCode(lowerCase && 65 <= value && 90 >= value ? (value | 32) >>> 0 : value); if (firstDigit >= 97 || secondDigit >= 97) return B.JSString_methods.substring$2(source, index, index + 3).toUpperCase(); return null; }, _Uri__escapeChar(char) { var codeUnits, flag, encodedBytes, index, byte, _s16_ = "0123456789ABCDEF"; if (char < 128) { codeUnits = new Uint8Array(3); codeUnits[0] = 37; codeUnits[1] = _s16_.charCodeAt(char >>> 4); codeUnits[2] = _s16_.charCodeAt(char & 15); } else { if (char > 2047) if (char > 65535) { flag = 240; encodedBytes = 4; } else { flag = 224; encodedBytes = 3; } else { flag = 192; encodedBytes = 2; } codeUnits = new Uint8Array(3 * encodedBytes); for (index = 0; --encodedBytes, encodedBytes >= 0; flag = 128) { byte = B.JSInt_methods._shrReceiverPositive$1(char, 6 * encodedBytes) & 63 | flag; codeUnits[index] = 37; codeUnits[index + 1] = _s16_.charCodeAt(byte >>> 4); codeUnits[index + 2] = _s16_.charCodeAt(byte & 15); index += 3; } } return A.String_String$fromCharCodes(codeUnits, 0, null); }, _Uri__normalizeOrSubstring(component, start, end, charTable, escapeDelimiters, replaceBackslash) { var t1 = A._Uri__normalize(component, start, end, charTable, escapeDelimiters, replaceBackslash); return t1 == null ? B.JSString_methods.substring$2(component, start, end) : t1; }, _Uri__normalize(component, start, end, charTable, escapeDelimiters, replaceBackslash) { var t1, index, sectionStart, buffer, char, replacement, sourceLength, t2, tail, t3, _null = null; for (t1 = !escapeDelimiters, index = start, sectionStart = index, buffer = _null; index < end;) { char = component.charCodeAt(index); if (char < 127 && (charTable[char >>> 4] & 1 << (char & 15)) !== 0) ++index; else { if (char === 37) { replacement = A._Uri__normalizeEscape(component, index, false); if (replacement == null) { index += 3; continue; } if ("%" === replacement) { replacement = "%25"; sourceLength = 1; } else sourceLength = 3; } else if (char === 92 && replaceBackslash) { replacement = "/"; sourceLength = 1; } else if (t1 && char <= 93 && (B.List_YmH[char >>> 4] & 1 << (char & 15)) !== 0) { A._Uri__fail(component, index, "Invalid character"); sourceLength = _null; replacement = sourceLength; } else { if ((char & 64512) === 55296) { t2 = index + 1; if (t2 < end) { tail = component.charCodeAt(t2); if ((tail & 64512) === 56320) { char = (char & 1023) << 10 | tail & 1023 | 65536; sourceLength = 2; } else sourceLength = 1; } else sourceLength = 1; } else sourceLength = 1; replacement = A._Uri__escapeChar(char); } if (buffer == null) { buffer = new A.StringBuffer(""); t2 = buffer; } else t2 = buffer; t3 = t2._contents += B.JSString_methods.substring$2(component, sectionStart, index); t2._contents = t3 + A.S(replacement); index += sourceLength; sectionStart = index; } } if (buffer == null) return _null; if (sectionStart < end) buffer._contents += B.JSString_methods.substring$2(component, sectionStart, end); t1 = buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, _Uri__mayContainDotSegments(path) { if (B.JSString_methods.startsWith$1(path, ".")) return true; return B.JSString_methods.indexOf$1(path, "/.") !== -1; }, _Uri__removeDotSegments(path) { var output, t1, t2, appendSlash, _i, segment; if (!A._Uri__mayContainDotSegments(path)) return path; output = A._setArrayType([], type$.JSArray_String); for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) { segment = t1[_i]; if (J.$eq$(segment, "..")) { if (output.length !== 0) { output.pop(); if (output.length === 0) output.push(""); } appendSlash = true; } else if ("." === segment) appendSlash = true; else { output.push(segment); appendSlash = false; } } if (appendSlash) output.push(""); return B.JSArray_methods.join$1(output, "/"); }, _Uri__normalizeRelativePath(path, allowScheme) { var output, t1, t2, appendSlash, _i, segment; if (!A._Uri__mayContainDotSegments(path)) return !allowScheme ? A._Uri__escapeScheme(path) : path; output = A._setArrayType([], type$.JSArray_String); for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) { segment = t1[_i]; if (".." === segment) if (output.length !== 0 && B.JSArray_methods.get$last(output) !== "..") { output.pop(); appendSlash = true; } else { output.push(".."); appendSlash = false; } else if ("." === segment) appendSlash = true; else { output.push(segment); appendSlash = false; } } t1 = output.length; if (t1 !== 0) t1 = t1 === 1 && output[0].length === 0; else t1 = true; if (t1) return "./"; if (appendSlash || B.JSArray_methods.get$last(output) === "..") output.push(""); if (!allowScheme) output[0] = A._Uri__escapeScheme(output[0]); return B.JSArray_methods.join$1(output, "/"); }, _Uri__escapeScheme(path) { var i, char, t1 = path.length; if (t1 >= 2 && A._Uri__isAlphabeticCharacter(path.charCodeAt(0))) for (i = 1; i < t1; ++i) { char = path.charCodeAt(i); if (char === 58) return B.JSString_methods.substring$2(path, 0, i) + "%3A" + B.JSString_methods.substring$1(path, i + 1); if (char > 127 || (B.List_MMm[char >>> 4] & 1 << (char & 15)) === 0) break; } return path; }, _Uri__packageNameEnd(uri, path) { if (uri.isScheme$1("package") && uri._host == null) return A._skipPackageNameChars(path, 0, path.length); return -1; }, _Uri__toWindowsFilePath(uri) { var hasDriveLetter, t2, host, segments = uri.get$pathSegments(), t1 = segments.length; if (t1 > 0 && J.get$length$asx(segments[0]) === 2 && J.codeUnitAt$1$s(segments[0], 1) === 58) { A._Uri__checkWindowsDriveLetter(J.codeUnitAt$1$s(segments[0], 0), false); A._Uri__checkWindowsPathReservedCharacters(segments, false, 1); hasDriveLetter = true; } else { A._Uri__checkWindowsPathReservedCharacters(segments, false, 0); hasDriveLetter = false; } t2 = uri.get$hasAbsolutePath() && !hasDriveLetter ? "" + "\\" : ""; if (uri.get$hasAuthority()) { host = uri.get$host(); if (host.length !== 0) t2 = t2 + "\\" + host + "\\"; } t2 = A.StringBuffer__writeAll(t2, segments, "\\"); t1 = hasDriveLetter && t1 === 1 ? t2 + "\\" : t2; return t1.charCodeAt(0) == 0 ? t1 : t1; }, _Uri__hexCharPairToByte(s, pos) { var byte, i, charCode; for (byte = 0, i = 0; i < 2; ++i) { charCode = s.charCodeAt(pos + i); if (48 <= charCode && charCode <= 57) byte = byte * 16 + charCode - 48; else { charCode |= 32; if (97 <= charCode && charCode <= 102) byte = byte * 16 + charCode - 87; else throw A.wrapException(A.ArgumentError$("Invalid URL encoding", null)); } } return byte; }, _Uri__uriDecode(text, start, end, encoding, plusToSpace) { var simple, codeUnit, t1, bytes, i = start; while (true) { if (!(i < end)) { simple = true; break; } codeUnit = text.charCodeAt(i); if (codeUnit <= 127) if (codeUnit !== 37) t1 = false; else t1 = true; else t1 = true; if (t1) { simple = false; break; } ++i; } if (simple) { if (B.C_Utf8Codec !== encoding) t1 = false; else t1 = true; if (t1) return B.JSString_methods.substring$2(text, start, end); else bytes = new A.CodeUnits(B.JSString_methods.substring$2(text, start, end)); } else { bytes = A._setArrayType([], type$.JSArray_int); for (t1 = text.length, i = start; i < end; ++i) { codeUnit = text.charCodeAt(i); if (codeUnit > 127) throw A.wrapException(A.ArgumentError$("Illegal percent encoding in URI", null)); if (codeUnit === 37) { if (i + 3 > t1) throw A.wrapException(A.ArgumentError$("Truncated URI", null)); bytes.push(A._Uri__hexCharPairToByte(text, i + 1)); i += 2; } else bytes.push(codeUnit); } } return B.Utf8Decoder_false.convert$1(bytes); }, _Uri__isAlphabeticCharacter(codeUnit) { var lowerCase = codeUnit | 32; return 97 <= lowerCase && lowerCase <= 122; }, UriData__writeUri(mimeType, charsetName, parameters, buffer, indices) { var t1, slashIndex; if (mimeType != null) t1 = 10 === mimeType.length && A._caseInsensitiveCompareStart("text/plain", mimeType, 0) >= 0; else t1 = true; if (t1) mimeType = ""; if (mimeType.length === 0 || mimeType === "application/octet-stream") t1 = buffer._contents += mimeType; else { slashIndex = A.UriData__validateMimeType(mimeType); if (slashIndex < 0) throw A.wrapException(A.ArgumentError$value(mimeType, "mimeType", "Invalid MIME type")); t1 = buffer._contents += A._Uri__uriEncode(B.List_yzX, B.JSString_methods.substring$2(mimeType, 0, slashIndex), B.C_Utf8Codec, false); buffer._contents = t1 + "/"; t1 = buffer._contents += A._Uri__uriEncode(B.List_yzX, B.JSString_methods.substring$1(mimeType, slashIndex + 1), B.C_Utf8Codec, false); } if (charsetName != null) { indices.push(t1.length); indices.push(buffer._contents.length + 8); buffer._contents += ";charset="; buffer._contents += A._Uri__uriEncode(B.List_yzX, charsetName, B.C_Utf8Codec, false); } }, UriData__validateMimeType(mimeType) { var t1, slashIndex, i; for (t1 = mimeType.length, slashIndex = -1, i = 0; i < t1; ++i) { if (mimeType.charCodeAt(i) !== 47) continue; if (slashIndex < 0) { slashIndex = i; continue; } return -1; } return slashIndex; }, UriData__parse(text, start, sourceUri) { var t1, i, slashIndex, char, equalsIndex, lastSeparator, t2, data, _s17_ = "Invalid MIME type", indices = A._setArrayType([start - 1], type$.JSArray_int); for (t1 = text.length, i = start, slashIndex = -1, char = null; i < t1; ++i) { char = text.charCodeAt(i); if (char === 44 || char === 59) break; if (char === 47) { if (slashIndex < 0) { slashIndex = i; continue; } throw A.wrapException(A.FormatException$(_s17_, text, i)); } } if (slashIndex < 0 && i > start) throw A.wrapException(A.FormatException$(_s17_, text, i)); for (; char !== 44;) { indices.push(i); ++i; for (equalsIndex = -1; i < t1; ++i) { char = text.charCodeAt(i); if (char === 61) { if (equalsIndex < 0) equalsIndex = i; } else if (char === 59 || char === 44) break; } if (equalsIndex >= 0) indices.push(equalsIndex); else { lastSeparator = B.JSArray_methods.get$last(indices); if (char !== 44 || i !== lastSeparator + 7 || !B.JSString_methods.startsWith$2(text, "base64", lastSeparator + 1)) throw A.wrapException(A.FormatException$("Expecting '='", text, i)); break; } } indices.push(i); t2 = i + 1; if ((indices.length & 1) === 1) text = B.C_Base64Codec.normalize$3(text, t2, t1); else { data = A._Uri__normalize(text, t2, t1, B.List_oFp, true, false); if (data != null) text = B.JSString_methods.replaceRange$3(text, t2, t1, data); } return new A.UriData(text, indices, sourceUri); }, UriData__uriEncodeBytes(canonicalTable, bytes, buffer) { var t1, byteOr, i, byte, _s16_ = "0123456789ABCDEF"; for (t1 = J.getInterceptor$asx(bytes), byteOr = 0, i = 0; i < t1.get$length(bytes); ++i) { byte = t1.$index(bytes, i); byteOr |= byte; if (byte < 128 && (canonicalTable[B.JSInt_methods._shrOtherPositive$1(byte, 4)] & 1 << (byte & 15)) !== 0) buffer._contents += A.Primitives_stringFromCharCode(byte); else { buffer._contents += A.Primitives_stringFromCharCode(37); buffer._contents += A.Primitives_stringFromCharCode(_s16_.charCodeAt(B.JSInt_methods._shrOtherPositive$1(byte, 4))); buffer._contents += A.Primitives_stringFromCharCode(_s16_.charCodeAt(byte & 15)); } } if ((byteOr & 4294967040) >>> 0 !== 0) for (i = 0; i < t1.get$length(bytes); ++i) { byte = t1.$index(bytes, i); if (byte < 0 || byte > 255) throw A.wrapException(A.ArgumentError$value(byte, "non-byte value", null)); } }, _createTables() { var _i, t1, t2, t3, b, _s77_ = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=", _s1_ = ".", _s1_0 = ":", _s1_1 = "/", _s1_2 = "\\", _s1_3 = "?", _s1_4 = "#", _s2_ = "/\\", tables = J.JSArray_JSArray$allocateGrowable(22, type$.Uint8List); for (_i = 0; _i < 22; ++_i) tables[_i] = new Uint8Array(96); t1 = new A._createTables_build(tables); t2 = new A._createTables_setChars(); t3 = new A._createTables_setRange(); b = t1.call$2(0, 225); t2.call$3(b, _s77_, 1); t2.call$3(b, _s1_, 14); t2.call$3(b, _s1_0, 34); t2.call$3(b, _s1_1, 3); t2.call$3(b, _s1_2, 227); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(14, 225); t2.call$3(b, _s77_, 1); t2.call$3(b, _s1_, 15); t2.call$3(b, _s1_0, 34); t2.call$3(b, _s2_, 234); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(15, 225); t2.call$3(b, _s77_, 1); t2.call$3(b, "%", 225); t2.call$3(b, _s1_0, 34); t2.call$3(b, _s1_1, 9); t2.call$3(b, _s1_2, 233); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(1, 225); t2.call$3(b, _s77_, 1); t2.call$3(b, _s1_0, 34); t2.call$3(b, _s1_1, 10); t2.call$3(b, _s1_2, 234); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(2, 235); t2.call$3(b, _s77_, 139); t2.call$3(b, _s1_1, 131); t2.call$3(b, _s1_2, 131); t2.call$3(b, _s1_, 146); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(3, 235); t2.call$3(b, _s77_, 11); t2.call$3(b, _s1_1, 68); t2.call$3(b, _s1_2, 68); t2.call$3(b, _s1_, 18); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(4, 229); t2.call$3(b, _s77_, 5); t3.call$3(b, "AZ", 229); t2.call$3(b, _s1_0, 102); t2.call$3(b, "@", 68); t2.call$3(b, "[", 232); t2.call$3(b, _s1_1, 138); t2.call$3(b, _s1_2, 138); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(5, 229); t2.call$3(b, _s77_, 5); t3.call$3(b, "AZ", 229); t2.call$3(b, _s1_0, 102); t2.call$3(b, "@", 68); t2.call$3(b, _s1_1, 138); t2.call$3(b, _s1_2, 138); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(6, 231); t3.call$3(b, "19", 7); t2.call$3(b, "@", 68); t2.call$3(b, _s1_1, 138); t2.call$3(b, _s1_2, 138); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(7, 231); t3.call$3(b, "09", 7); t2.call$3(b, "@", 68); t2.call$3(b, _s1_1, 138); t2.call$3(b, _s1_2, 138); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); t2.call$3(t1.call$2(8, 8), "]", 5); b = t1.call$2(9, 235); t2.call$3(b, _s77_, 11); t2.call$3(b, _s1_, 16); t2.call$3(b, _s2_, 234); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(16, 235); t2.call$3(b, _s77_, 11); t2.call$3(b, _s1_, 17); t2.call$3(b, _s2_, 234); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(17, 235); t2.call$3(b, _s77_, 11); t2.call$3(b, _s1_1, 9); t2.call$3(b, _s1_2, 233); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(10, 235); t2.call$3(b, _s77_, 11); t2.call$3(b, _s1_, 18); t2.call$3(b, _s1_1, 10); t2.call$3(b, _s1_2, 234); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(18, 235); t2.call$3(b, _s77_, 11); t2.call$3(b, _s1_, 19); t2.call$3(b, _s2_, 234); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(19, 235); t2.call$3(b, _s77_, 11); t2.call$3(b, _s2_, 234); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(11, 235); t2.call$3(b, _s77_, 11); t2.call$3(b, _s1_1, 10); t2.call$3(b, _s1_2, 234); t2.call$3(b, _s1_3, 172); t2.call$3(b, _s1_4, 205); b = t1.call$2(12, 236); t2.call$3(b, _s77_, 12); t2.call$3(b, _s1_3, 12); t2.call$3(b, _s1_4, 205); b = t1.call$2(13, 237); t2.call$3(b, _s77_, 13); t2.call$3(b, _s1_3, 13); t3.call$3(t1.call$2(20, 245), "az", 21); b = t1.call$2(21, 245); t3.call$3(b, "az", 21); t3.call$3(b, "09", 21); t2.call$3(b, "+-.", 21); return tables; }, _scan(uri, start, end, state, indices) { var i, table, char, transition, tables = $.$get$_scannerTables(); for (i = start; i < end; ++i) { table = tables[state]; char = uri.charCodeAt(i) ^ 96; transition = table[char > 95 ? 31 : char]; state = transition & 31; indices[transition >>> 5] = i; } return state; }, _SimpleUri__packageNameEnd(uri) { if (uri._schemeEnd === 7 && B.JSString_methods.startsWith$1(uri._uri, "package") && uri._hostStart <= 0) return A._skipPackageNameChars(uri._uri, uri._pathStart, uri._queryStart); return -1; }, _skipPackageNameChars(source, start, end) { var i, dots, char; for (i = start, dots = 0; i < end; ++i) { char = source.charCodeAt(i); if (char === 47) return dots !== 0 ? i : -1; if (char === 37 || char === 58) return -1; dots |= char ^ 46; } return -1; }, _caseInsensitiveCompareStart(prefix, string, start) { var t1, result, i, stringChar, delta, lowerChar; for (t1 = prefix.length, result = 0, i = 0; i < t1; ++i) { stringChar = string.charCodeAt(start + i); delta = prefix.charCodeAt(i) ^ stringChar; if (delta !== 0) { if (delta === 32) { lowerChar = stringChar | delta; if (97 <= lowerChar && lowerChar <= 122) { result = 32; continue; } } return -1; } } return result; }, NoSuchMethodError_toString_closure: function NoSuchMethodError_toString_closure(t0, t1) { this._box_0 = t0; this.sb = t1; }, DateTime: function DateTime(t0, t1) { this._core$_value = t0; this.isUtc = t1; }, Duration: function Duration(t0) { this._duration = t0; }, _Enum: function _Enum() { }, Error: function Error() { }, AssertionError: function AssertionError(t0) { this.message = t0; }, TypeError: function TypeError() { }, ArgumentError: function ArgumentError(t0, t1, t2, t3) { var _ = this; _._hasValue = t0; _.invalidValue = t1; _.name = t2; _.message = t3; }, RangeError: function RangeError(t0, t1, t2, t3, t4, t5) { var _ = this; _.start = t0; _.end = t1; _._hasValue = t2; _.invalidValue = t3; _.name = t4; _.message = t5; }, IndexError: function IndexError(t0, t1, t2, t3, t4) { var _ = this; _.length = t0; _._hasValue = t1; _.invalidValue = t2; _.name = t3; _.message = t4; }, NoSuchMethodError: function NoSuchMethodError(t0, t1, t2, t3) { var _ = this; _._core$_receiver = t0; _._memberName = t1; _._core$_arguments = t2; _._namedArguments = t3; }, UnsupportedError: function UnsupportedError(t0) { this.message = t0; }, UnimplementedError: function UnimplementedError(t0) { this.message = t0; }, StateError: function StateError(t0) { this.message = t0; }, ConcurrentModificationError: function ConcurrentModificationError(t0) { this.modifiedObject = t0; }, OutOfMemoryError: function OutOfMemoryError() { }, StackOverflowError: function StackOverflowError() { }, _Exception: function _Exception(t0) { this.message = t0; }, FormatException: function FormatException(t0, t1, t2) { this.message = t0; this.source = t1; this.offset = t2; }, Iterable: function Iterable() { }, _GeneratorIterable: function _GeneratorIterable(t0, t1, t2) { this.length = t0; this._generator = t1; this.$ti = t2; }, MapEntry: function MapEntry(t0, t1, t2) { this.key = t0; this.value = t1; this.$ti = t2; }, Null: function Null() { }, Object: function Object() { }, _StringStackTrace: function _StringStackTrace(t0) { this._stackTrace = t0; }, Runes: function Runes(t0) { this.string = t0; }, RuneIterator: function RuneIterator(t0) { var _ = this; _.string = t0; _._nextPosition = _._position = 0; _._currentCodePoint = -1; }, StringBuffer: function StringBuffer(t0) { this._contents = t0; }, Uri__parseIPv4Address_error: function Uri__parseIPv4Address_error(t0) { this.host = t0; }, Uri_parseIPv6Address_error: function Uri_parseIPv6Address_error(t0) { this.host = t0; }, Uri_parseIPv6Address_parseHex: function Uri_parseIPv6Address_parseHex(t0, t1) { this.error = t0; this.host = t1; }, _Uri: function _Uri(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.scheme = t0; _._userInfo = t1; _._host = t2; _._port = t3; _.path = t4; _._query = t5; _._fragment = t6; _.___Uri_hashCode_FI = _.___Uri_pathSegments_FI = _.___Uri__text_FI = $; }, _Uri__makePath_closure: function _Uri__makePath_closure() { }, UriData: function UriData(t0, t1, t2) { this._text = t0; this._separatorIndices = t1; this._uriCache = t2; }, _createTables_build: function _createTables_build(t0) { this.tables = t0; }, _createTables_setChars: function _createTables_setChars() { }, _createTables_setRange: function _createTables_setRange() { }, _SimpleUri: function _SimpleUri(t0, t1, t2, t3, t4, t5, t6, t7) { var _ = this; _._uri = t0; _._schemeEnd = t1; _._hostStart = t2; _._portStart = t3; _._pathStart = t4; _._queryStart = t5; _._fragmentStart = t6; _._schemeCache = t7; _._hashCodeCache = null; }, _DataUri: function _DataUri(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.scheme = t0; _._userInfo = t1; _._host = t2; _._port = t3; _.path = t4; _._query = t5; _._fragment = t6; _.___Uri_hashCode_FI = _.___Uri_pathSegments_FI = _.___Uri__text_FI = $; }, Expando: function Expando(t0) { this._jsWeakMap = t0; }, _convertDartFunctionFast(f) { var ret, existing = f.$dart_jsFunction; if (existing != null) return existing; ret = function(_call, f) { return function() { return _call(f, Array.prototype.slice.apply(arguments)); }; }(A._callDartFunctionFast, f); ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f; f.$dart_jsFunction = ret; return ret; }, _convertDartFunctionFastCaptureThis(f) { var ret, existing = f._$dart_jsFunctionCaptureThis; if (existing != null) return existing; ret = function(_call, f) { return function() { return _call(f, this, Array.prototype.slice.apply(arguments)); }; }(A._callDartFunctionFastCaptureThis, f); ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f; f._$dart_jsFunctionCaptureThis = ret; return ret; }, _callDartFunctionFast(callback, $arguments) { return A.Function_apply(callback, $arguments); }, _callDartFunctionFastCaptureThis(callback, $self, $arguments) { var t1 = [$self]; B.JSArray_methods.addAll$1(t1, $arguments); return A.Function_apply(callback, t1); }, allowInterop(f) { if (typeof f == "function") return f; else return A._convertDartFunctionFast(f); }, allowInteropCaptureThis(f) { if (typeof f == "function") throw A.wrapException(A.ArgumentError$("Function is already a JS function so cannot capture this.", null)); else return A._convertDartFunctionFastCaptureThis(f); }, _noJsifyRequired(o) { 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); }, jsify0(object) { if (A._noJsifyRequired(object)) return object; return new A.jsify__convert(new A._IdentityHashMap(type$._IdentityHashMap_of_nullable_Object_and_nullable_Object)).call$1(object); }, callConstructor(constr, $arguments) { var args, factoryFunction; if ($arguments instanceof Array) switch ($arguments.length) { case 0: return new constr(); case 1: return new constr($arguments[0]); case 2: return new constr($arguments[0], $arguments[1]); case 3: return new constr($arguments[0], $arguments[1], $arguments[2]); case 4: return new constr($arguments[0], $arguments[1], $arguments[2], $arguments[3]); } args = [null]; B.JSArray_methods.addAll$1(args, $arguments); factoryFunction = constr.bind.apply(constr, args); String(factoryFunction); return new factoryFunction(); }, jsify__convert: function jsify__convert(t0) { this._convertedObjects = t0; }, max(a, b) { return Math.max(a, b); }, pow(x, exponent) { return Math.pow(x, exponent); }, Random_Random() { return B.C__JSRandom; }, _JSRandom: function _JSRandom() { }, ArgParser: function ArgParser(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _._arg_parser$_options = t0; _._aliases = t1; _.options = t2; _.commands = t3; _._optionsAndSeparators = t4; _.allowTrailingOptions = t5; _.usageLineLength = t6; }, ArgParser__addOption_closure: function ArgParser__addOption_closure(t0) { this.$this = t0; }, ArgParserException$(message, commands) { return new A.ArgParserException(commands == null ? B.List_empty : A.List_List$unmodifiable(commands, type$.String), message, null, null); }, ArgParserException: function ArgParserException(t0, t1, t2, t3) { var _ = this; _.commands = t0; _.message = t1; _.source = t2; _.offset = t3; }, ArgResults: function ArgResults(t0, t1, t2, t3) { var _ = this; _._parser = t0; _._parsed = t1; _.name = t2; _.rest = t3; }, Option: function Option(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) { var _ = this; _.name = t0; _.abbr = t1; _.help = t2; _.valueHelp = t3; _.allowed = t4; _.allowedHelp = t5; _.defaultsTo = t6; _.negatable = t7; _.callback = t8; _.type = t9; _.splitCommas = t10; _.mandatory = t11; _.hide = t12; }, OptionType: function OptionType(t0) { this.name = t0; }, Parser$(_commandName, _grammar, _args, _parent, rest) { var t1 = A._setArrayType([], type$.JSArray_String); if (rest != null) B.JSArray_methods.addAll$1(t1, rest); return new A.Parser0(_commandName, _parent, _grammar, _args, t1, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic)); }, _isLetterOrDigit(codeUnit) { var t1; if (!(codeUnit >= 65 && codeUnit <= 90)) if (!(codeUnit >= 97 && codeUnit <= 122)) t1 = codeUnit >= 48 && codeUnit <= 57; else t1 = true; else t1 = true; return t1; }, Parser0: function Parser0(t0, t1, t2, t3, t4, t5) { var _ = this; _._commandName = t0; _._parser$_parent = t1; _._grammar = t2; _._args = t3; _._parser$_rest = t4; _._results = t5; }, Parser_parse_closure: function Parser_parse_closure(t0) { this.$this = t0; }, Parser__setOption_closure: function Parser__setOption_closure() { }, _Usage: function _Usage(t0, t1, t2) { var _ = this; _._usage$_optionsAndSeparators = t0; _._usage$_buffer = t1; _._currentColumn = 0; _.___Usage__columnWidths_FI = $; _._newlinesNeeded = 0; _.lineLength = t2; }, _Usage__writeOption_closure: function _Usage__writeOption_closure() { }, _Usage__buildAllowedList_closure: function _Usage__buildAllowedList_closure(t0) { this.option = t0; }, ErrorResult: function ErrorResult(t0, t1) { this.error = t0; this.stackTrace = t1; }, ValueResult: function ValueResult(t0, t1) { this.value = t0; this.$ti = t1; }, StreamCompleter: function StreamCompleter(t0, t1) { this._stream_completer$_stream = t0; this.$ti = t1; }, _CompleterStream: function _CompleterStream(t0) { this._sourceStream = this._stream_completer$_controller = null; this.$ti = t0; }, StreamGroup: function StreamGroup(t0, t1, t2) { var _ = this; _.__StreamGroup__controller_A = $; _._closed = false; _._stream_group$_state = t0; _._subscriptions = t1; _.$ti = t2; }, StreamGroup_add_closure: function StreamGroup_add_closure() { }, StreamGroup_add_closure0: function StreamGroup_add_closure0(t0, t1) { this.$this = t0; this.stream = t1; }, StreamGroup__onListen_closure: function StreamGroup__onListen_closure() { }, StreamGroup__onCancel_closure: function StreamGroup__onCancel_closure(t0) { this.$this = t0; }, StreamGroup__listenToStream_closure: function StreamGroup__listenToStream_closure(t0, t1) { this.$this = t0; this.stream = t1; }, _StreamGroupState: function _StreamGroupState(t0) { this.name = t0; }, StreamQueue: function StreamQueue(t0, t1, t2, t3) { var _ = this; _._stream_queue$_source = t0; _._stream_queue$_subscription = null; _._isDone = false; _._eventsReceived = 0; _._eventQueue = t1; _._requestQueue = t2; _.$ti = t3; }, StreamQueue__ensureListening_closure: function StreamQueue__ensureListening_closure(t0) { this.$this = t0; }, StreamQueue__ensureListening_closure1: function StreamQueue__ensureListening_closure1(t0) { this.$this = t0; }, StreamQueue__ensureListening_closure0: function StreamQueue__ensureListening_closure0(t0) { this.$this = t0; }, _NextRequest: function _NextRequest(t0, t1) { this._completer = t0; this.$ti = t1; }, isNodeJs() { var t1 = self.process; if (t1 == null) t1 = null; else { t1 = J.get$release$x(t1); t1 = t1 == null ? null : J.get$name$x(t1); } return J.$eq$(t1, "node"); }, isBrowser() { return !A.isNodeJs() && self.document != null && typeof self.document.querySelector == "function"; }, wrapJSExceptions(callback) { var error, error0, error1, error2, t1, exception; if (!$.$get$_isStrictMode()) return callback.call$0(); try { t1 = callback.call$0(); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (typeof t1 == "string") { error = t1; throw A.wrapException(error); } else if (A._isBool(t1)) { error0 = t1; throw A.wrapException(error0); } else if (typeof t1 == "number") { error1 = t1; throw A.wrapException(error1); } else { error2 = t1; if (typeof error2 == "symbol" || typeof error2 == "bigint" || error2 == null) throw A.wrapException(error2.toString()); throw exception; } } }, _isStrictMode_closure: function _isStrictMode_closure() { }, Repl: function Repl(t0, t1, t2, t3) { var _ = this; _.prompt = t0; _.continuation = t1; _.validator = t2; _.__Repl__adapter_A = $; _.history = t3; }, alwaysValid_closure: function alwaysValid_closure() { }, ReplAdapter: function ReplAdapter(t0) { this.repl = t0; this.rl = null; }, ReplAdapter_runAsync_closure: function ReplAdapter_runAsync_closure(t0, t1, t2, t3) { var _ = this; _._box_0 = t0; _.$this = t1; _.rl = t2; _.runController = t3; }, ReplAdapter_runAsync__closure: function ReplAdapter_runAsync__closure(t0) { this.lineController = t0; }, Stdin: function Stdin() { }, Stdout: function Stdout() { }, ReadlineModule: function ReadlineModule() { }, ReadlineOptions: function ReadlineOptions() { }, ReadlineInterface: function ReadlineInterface() { }, EmptyUnmodifiableSet: function EmptyUnmodifiableSet(t0) { this.$ti = t0; }, _EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin: function _EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin() { }, DefaultEquality: function DefaultEquality() { }, IterableEquality: function IterableEquality() { }, ListEquality: function ListEquality() { }, _MapEntry: function _MapEntry(t0, t1, t2) { this.equality = t0; this.key = t1; this.value = t2; }, MapEquality: function MapEquality() { }, QueueList$(initialCapacity, $E) { 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>")); }, QueueList_QueueList$from(source, $E) { var $length, queue, t1; if (type$.List_dynamic._is(source)) { $length = J.get$length$asx(source); queue = A.QueueList$($length + 1, $E); J.setRange$4$ax(queue._queue_list$_table, 0, $length, source, 0); queue._queue_list$_tail = $length; return queue; } else { t1 = A.QueueList$(null, $E); t1.addAll$1(0, source); return t1; } }, QueueList__computeInitialCapacity(initialCapacity) { if (initialCapacity == null || initialCapacity < 8) return 8; ++initialCapacity; if ((initialCapacity & initialCapacity - 1) >>> 0 === 0) return initialCapacity; return A.QueueList__nextPowerOf2(initialCapacity); }, QueueList__nextPowerOf2(number) { var nextNumber; number = (number << 1 >>> 0) - 1; for (; true; number = nextNumber) { nextNumber = (number & number - 1) >>> 0; if (nextNumber === 0) return number; } }, QueueList: function QueueList(t0, t1, t2, t3) { var _ = this; _._queue_list$_table = t0; _._queue_list$_head = t1; _._queue_list$_tail = t2; _.$ti = t3; }, _CastQueueList: function _CastQueueList(t0, t1, t2, t3, t4) { var _ = this; _._queue_list$_delegate = t0; _._queue_list$_table = t1; _._queue_list$_head = t2; _._queue_list$_tail = t3; _.$ti = t4; }, _QueueList_Object_ListMixin: function _QueueList_Object_ListMixin() { }, UnionSet: function UnionSet(t0, t1) { this._sets = t0; this.$ti = t1; }, UnionSet__iterable_closure: function UnionSet__iterable_closure(t0) { this.$this = t0; }, UnionSet_contains_closure: function UnionSet_contains_closure(t0, t1) { this.$this = t0; this.element = t1; }, _UnionSet_SetBase_UnmodifiableSetMixin: function _UnionSet_SetBase_UnmodifiableSetMixin() { }, UnmodifiableSetMixin__throw() { throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable Set")); }, UnmodifiableSetView0: function UnmodifiableSetView0(t0, t1) { this._base = t0; this.$ti = t1; }, UnmodifiableSetMixin: function UnmodifiableSetMixin() { }, _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin: function _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin() { }, _DelegatingIterableBase: function _DelegatingIterableBase() { }, DelegatingSet: function DelegatingSet(t0, t1) { this._base = t0; this.$ti = t1; }, MapKeySet: function MapKeySet(t0, t1) { this._baseMap = t0; this.$ti = t1; }, MapKeySet_difference_closure: function MapKeySet_difference_closure(t0, t1) { this.$this = t0; this.other = t1; }, _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin: function _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin() { }, BufferModule: function BufferModule() { }, BufferConstants: function BufferConstants() { }, Buffer: function Buffer() { }, ConsoleModule: function ConsoleModule() { }, Console: function Console() { }, EventEmitter: function EventEmitter() { }, fs() { var t1 = $._fs; return t1 == null ? $._fs = self.fs : t1; }, FS: function FS() { }, FSConstants: function FSConstants() { }, FSWatcher: function FSWatcher() { }, ReadStream: function ReadStream() { }, ReadStreamOptions: function ReadStreamOptions() { }, WriteStream: function WriteStream() { }, WriteStreamOptions: function WriteStreamOptions() { }, FileOptions: function FileOptions() { }, StatOptions: function StatOptions() { }, MkdirOptions: function MkdirOptions() { }, RmdirOptions: function RmdirOptions() { }, WatchOptions: function WatchOptions() { }, WatchFileOptions: function WatchFileOptions() { }, Stats: function Stats() { }, Promise: function Promise() { }, Date: function Date() { }, JsError: function JsError() { }, Atomics: function Atomics() { }, Modules: function Modules() { }, Module: function Module() { }, Net: function Net() { }, Socket: function Socket() { }, NetAddress: function NetAddress() { }, NetServer: function NetServer() { }, NodeJsError: function NodeJsError() { }, JsAssertionError: function JsAssertionError() { }, JsRangeError: function JsRangeError() { }, JsReferenceError: function JsReferenceError() { }, JsSyntaxError: function JsSyntaxError() { }, JsTypeError: function JsTypeError() { }, JsSystemError: function JsSystemError() { }, Process: function Process() { }, CPUUsage: function CPUUsage() { }, Release: function Release() { }, StreamModule: function StreamModule() { }, Readable: function Readable() { }, Writable: function Writable() { }, Duplex: function Duplex() { }, Transform: function Transform() { }, WritableOptions: function WritableOptions() { }, ReadableOptions: function ReadableOptions() { }, Immediate: function Immediate() { }, Timeout: function Timeout() { }, TTY: function TTY() { }, TTYReadStream: function TTYReadStream() { }, TTYWriteStream: function TTYWriteStream() { }, jsify(dartObject) { if (A._isBasicType(dartObject)) return dartObject; return A.jsify0(dartObject); }, _isBasicType(value) { var t1 = false; if (t1) return true; return false; }, promiseToFuture(promise, $T) { var t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>")), completer = new A._SyncCompleter(t1, $T._eval$1("_SyncCompleter<0>")); J.then$2$x(promise, A.allowInterop(new A.promiseToFuture_closure(completer)), A.allowInterop(new A.promiseToFuture_closure0(completer))); return t1; }, futureToPromise(future, $T) { return new self.Promise(A.allowInterop(new A.futureToPromise_closure(future, $T))); }, Util: function Util() { }, promiseToFuture_closure: function promiseToFuture_closure(t0) { this.completer = t0; }, promiseToFuture_closure0: function promiseToFuture_closure0(t0) { this.completer = t0; }, futureToPromise_closure: function futureToPromise_closure(t0, t1) { this.future = t0; this.T = t1; }, futureToPromise__closure: function futureToPromise__closure(t0, t1) { this.resolve = t0; this.T = t1; }, Context_Context(style) { return new A.Context(style, "."); }, _parseUri(uri) { if (typeof uri == "string") return A.Uri_parse(uri); if (type$.Uri._is(uri)) return uri; throw A.wrapException(A.ArgumentError$value(uri, "uri", "Value must be a String or a Uri")); }, _validateArgList(method, args) { var numArgs, i, numArgs0, message, t1, t2, t3, t4; for (numArgs = args.length, i = 1; i < numArgs; ++i) { if (args[i] == null || args[i - 1] != null) continue; for (; numArgs >= 1; numArgs = numArgs0) { numArgs0 = numArgs - 1; if (args[numArgs0] != null) break; } message = new A.StringBuffer(""); t1 = "" + (method + "("); message._contents = t1; t2 = A._arrayInstanceType(args); t3 = t2._eval$1("SubListIterable<1>"); t4 = new A.SubListIterable(args, 0, numArgs, t3); t4.SubListIterable$3(args, 0, numArgs, t2._precomputed1); t3 = t1 + new A.MappedListIterable(t4, new A._validateArgList_closure(), t3._eval$1("MappedListIterable")).join$1(0, ", "); message._contents = t3; message._contents = t3 + ("): part " + (i - 1) + " was null, but part " + i + " was not."); throw A.wrapException(A.ArgumentError$(message.toString$0(0), null)); } }, Context: function Context(t0, t1) { this.style = t0; this._context$_current = t1; }, Context_joinAll_closure: function Context_joinAll_closure() { }, Context_split_closure: function Context_split_closure() { }, _validateArgList_closure: function _validateArgList_closure() { }, _PathDirection: function _PathDirection(t0) { this.name = t0; }, _PathRelation: function _PathRelation(t0) { this.name = t0; }, InternalStyle: function InternalStyle() { }, ParsedPath_ParsedPath$parse(path, style) { var t1, parts, separators, start, i, root = style.getRoot$1(path), isRootRelative = style.isRootRelative$1(path); if (root != null) path = B.JSString_methods.substring$1(path, root.length); t1 = type$.JSArray_String; parts = A._setArrayType([], t1); separators = A._setArrayType([], t1); t1 = path.length; if (t1 !== 0 && style.isSeparator$1(path.charCodeAt(0))) { separators.push(path[0]); start = 1; } else { separators.push(""); start = 0; } for (i = start; i < t1; ++i) if (style.isSeparator$1(path.charCodeAt(i))) { parts.push(B.JSString_methods.substring$2(path, start, i)); separators.push(path[i]); start = i + 1; } if (start < t1) { parts.push(B.JSString_methods.substring$1(path, start)); separators.push(""); } return new A.ParsedPath(style, root, isRootRelative, parts, separators); }, ParsedPath: function ParsedPath(t0, t1, t2, t3, t4) { var _ = this; _.style = t0; _.root = t1; _.isRootRelative = t2; _.parts = t3; _.separators = t4; }, ParsedPath__splitExtension_closure: function ParsedPath__splitExtension_closure() { }, ParsedPath__splitExtension_closure0: function ParsedPath__splitExtension_closure0() { }, PathException$(message) { return new A.PathException(message); }, PathException: function PathException(t0) { this.message = t0; }, PathMap__create(context, $V) { var t1 = {}; t1.context = context; t1.context = $.$get$context(); 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); }, PathMap: function PathMap(t0, t1) { this._map = t0; this.$ti = t1; }, PathMap__create_closure: function PathMap__create_closure(t0) { this._box_0 = t0; }, PathMap__create_closure0: function PathMap__create_closure0(t0) { this._box_0 = t0; }, PathMap__create_closure1: function PathMap__create_closure1() { }, Style__getPlatformStyle() { if (A.Uri_base().get$scheme() !== "file") return $.$get$Style_url(); var t1 = A.Uri_base(); if (!B.JSString_methods.endsWith$1(t1.get$path(t1), "/")) return $.$get$Style_url(); if (A._Uri__Uri(null, "a/b", null, null).toFilePath$0() === "a\\b") return $.$get$Style_windows(); return $.$get$Style_posix(); }, Style: function Style() { }, PosixStyle: function PosixStyle(t0, t1, t2) { this.separatorPattern = t0; this.needsSeparatorPattern = t1; this.rootPattern = t2; }, UrlStyle: function UrlStyle(t0, t1, t2, t3) { var _ = this; _.separatorPattern = t0; _.needsSeparatorPattern = t1; _.rootPattern = t2; _.relativeRootPattern = t3; }, WindowsStyle: function WindowsStyle(t0, t1, t2, t3) { var _ = this; _.separatorPattern = t0; _.needsSeparatorPattern = t1; _.rootPattern = t2; _.relativeRootPattern = t3; }, WindowsStyle_absolutePathToUri_closure: function WindowsStyle_absolutePathToUri_closure() { }, Version$_(major, minor, patch, preRelease, build, _text) { var t1 = preRelease == null ? A._setArrayType([], type$.JSArray_Object) : A.Version__splitParts(preRelease), t2 = build == null ? A._setArrayType([], type$.JSArray_Object) : A.Version__splitParts(build); if (major < 0) A.throwExpression(A.ArgumentError$("Major version must be non-negative.", null)); if (minor < 0) A.throwExpression(A.ArgumentError$("Minor version must be non-negative.", null)); if (patch < 0) A.throwExpression(A.ArgumentError$("Patch version must be non-negative.", null)); return new A.Version(major, minor, patch, t1, t2, _text); }, Version___parse_tearOff(text) { return A.Version_Version$parse(text); }, Version_Version$parse(text) { var major, minor, patch, preRelease, build, t1, exception, _null = null, _s17_ = 'Could not parse "', match = $.$get$completeVersion().firstMatch$1(text); if (match == null) throw A.wrapException(A.FormatException$(_s17_ + text + '".', _null, _null)); try { t1 = match._match[1]; t1.toString; major = A.int_parse(t1, _null); t1 = match._match[2]; t1.toString; minor = A.int_parse(t1, _null); t1 = match._match[3]; t1.toString; patch = A.int_parse(t1, _null); preRelease = match._match[5]; build = match._match[8]; t1 = A.Version$_(major, minor, patch, preRelease, build, text); return t1; } catch (exception) { if (type$.FormatException._is(A.unwrapException(exception))) throw A.wrapException(A.FormatException$(_s17_ + text + '".', _null, _null)); else throw exception; } }, Version__splitParts(text) { var t1 = type$.MappedListIterable_String_Object; 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")); }, Version: function Version(t0, t1, t2, t3, t4, t5) { var _ = this; _.major = t0; _.minor = t1; _.patch = t2; _.preRelease = t3; _.build = t4; _._version$_text = t5; }, Version__splitParts_closure: function Version__splitParts_closure() { }, VersionRange: function VersionRange(t0, t1, t2, t3) { var _ = this; _.min = t0; _.max = t1; _.includeMin = t2; _.includeMax = t3; }, CssMediaQuery_parseList(contents, interpolationMap, logger) { var t1 = A.SpanScanner$(contents, null); return new A.MediaQueryParser(t1, logger, interpolationMap).parse$0(); }, CssMediaQuery$type(type, conditions, modifier) { return new A.CssMediaQuery(modifier, type, true, conditions == null ? B.List_empty : A.List_List$unmodifiable(conditions, type$.String)); }, CssMediaQuery$condition(conditions, conjunction) { var t1 = A.List_List$unmodifiable(conditions, type$.String); if (t1.length > 1 && conjunction == null) A.throwExpression(A.ArgumentError$(string$.If_con, null)); return new A.CssMediaQuery(null, null, conjunction !== false, t1); }, CssMediaQuery: function CssMediaQuery(t0, t1, t2, t3) { var _ = this; _.modifier = t0; _.type = t1; _.conjunction = t2; _.conditions = t3; }, _SingletonCssMediaQueryMergeResult: function _SingletonCssMediaQueryMergeResult(t0) { this._name = t0; }, MediaQuerySuccessfulMergeResult: function MediaQuerySuccessfulMergeResult(t0) { this.query = t0; }, ModifiableCssAtRule$($name, span, childless, value) { var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode); return new A.ModifiableCssAtRule($name, value, childless, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1); }, ModifiableCssAtRule: function ModifiableCssAtRule(t0, t1, t2, t3, t4, t5) { var _ = this; _.name = t0; _.value = t1; _.isChildless = t2; _.span = t3; _.children = t4; _._children = t5; _._indexInParent = _._parent = null; _.isGroupEnd = false; }, ModifiableCssComment: function ModifiableCssComment(t0, t1) { var _ = this; _.text = t0; _.span = t1; _._indexInParent = _._parent = null; _.isGroupEnd = false; }, ModifiableCssDeclaration$($name, value, span, parsedAsCustomProperty, valueSpanForMap) { var t2, t1 = valueSpanForMap == null ? value.span : valueSpanForMap; if (parsedAsCustomProperty) if (!J.startsWith$1$s($name.value, "--")) A.throwExpression(A.ArgumentError$(string$.parsed, null)); else { t2 = value.value; if (!(t2 instanceof A.SassString)) A.throwExpression(A.ArgumentError$(string$.If_par + value.toString$0(0) + "` of type " + A.getRuntimeTypeOfDartObject(t2).toString$0(0) + ").", null)); } return new A.ModifiableCssDeclaration($name, value, parsedAsCustomProperty, t1, span); }, ModifiableCssDeclaration: function ModifiableCssDeclaration(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.value = t1; _.parsedAsCustomProperty = t2; _.valueSpanForMap = t3; _.span = t4; _._indexInParent = _._parent = null; _.isGroupEnd = false; }, ModifiableCssImport: function ModifiableCssImport(t0, t1, t2) { var _ = this; _.url = t0; _.modifiers = t1; _.span = t2; _._indexInParent = _._parent = null; _.isGroupEnd = false; }, ModifiableCssKeyframeBlock$(selector, span) { var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode); return new A.ModifiableCssKeyframeBlock(selector, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1); }, ModifiableCssKeyframeBlock: function ModifiableCssKeyframeBlock(t0, t1, t2, t3) { var _ = this; _.selector = t0; _.span = t1; _.children = t2; _._children = t3; _._indexInParent = _._parent = null; _.isGroupEnd = false; }, ModifiableCssMediaRule$(queries, span) { var t1 = A.List_List$unmodifiable(queries, type$.CssMediaQuery), t2 = A._setArrayType([], type$.JSArray_ModifiableCssNode); if (J.get$isEmpty$asx(queries)) A.throwExpression(A.ArgumentError$value(queries, "queries", "may not be empty.")); return new A.ModifiableCssMediaRule(t1, span, new A.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2); }, ModifiableCssMediaRule: function ModifiableCssMediaRule(t0, t1, t2, t3) { var _ = this; _.queries = t0; _.span = t1; _.children = t2; _._children = t3; _._indexInParent = _._parent = null; _.isGroupEnd = false; }, ModifiableCssNode: function ModifiableCssNode() { }, ModifiableCssNode_hasFollowingSibling_closure: function ModifiableCssNode_hasFollowingSibling_closure() { }, ModifiableCssParentNode: function ModifiableCssParentNode() { }, ModifiableCssStyleRule$(_selector, span, originalSelector) { var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode); return new A.ModifiableCssStyleRule(_selector, originalSelector, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1); }, ModifiableCssStyleRule: function ModifiableCssStyleRule(t0, t1, t2, t3, t4) { var _ = this; _._style_rule$_selector = t0; _.originalSelector = t1; _.span = t2; _.children = t3; _._children = t4; _._indexInParent = _._parent = null; _.isGroupEnd = false; }, ModifiableCssStylesheet$(span) { var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode); return new A.ModifiableCssStylesheet(span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1); }, ModifiableCssStylesheet: function ModifiableCssStylesheet(t0, t1, t2) { var _ = this; _.span = t0; _.children = t1; _._children = t2; _._indexInParent = _._parent = null; _.isGroupEnd = false; }, ModifiableCssSupportsRule$(condition, span) { var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode); return new A.ModifiableCssSupportsRule(condition, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1); }, ModifiableCssSupportsRule: function ModifiableCssSupportsRule(t0, t1, t2, t3) { var _ = this; _.condition = t0; _.span = t1; _.children = t2; _._children = t3; _._indexInParent = _._parent = null; _.isGroupEnd = false; }, CssNode: function CssNode() { }, CssParentNode: function CssParentNode() { }, _IsInvisibleVisitor: function _IsInvisibleVisitor(t0, t1) { this.includeBogus = t0; this.includeComments = t1; }, __IsInvisibleVisitor_Object_EveryCssVisitor: function __IsInvisibleVisitor_Object_EveryCssVisitor() { }, CssStylesheet: function CssStylesheet(t0, t1) { this.children = t0; this.span = t1; }, CssValue: function CssValue(t0, t1, t2) { this.value = t0; this.span = t1; this.$ti = t2; }, _FakeAstNode: function _FakeAstNode(t0) { this._callback = t0; }, Argument: function Argument(t0, t1, t2) { this.name = t0; this.defaultValue = t1; this.span = t2; }, ArgumentDeclaration_ArgumentDeclaration$parse(contents, url) { return A.ScssParser$(contents, null, url).parseArgumentDeclaration$0(); }, ArgumentDeclaration: function ArgumentDeclaration(t0, t1, t2) { this.$arguments = t0; this.restArgument = t1; this.span = t2; }, ArgumentDeclaration_verify_closure: function ArgumentDeclaration_verify_closure() { }, ArgumentDeclaration_verify_closure0: function ArgumentDeclaration_verify_closure0() { }, ArgumentInvocation$empty(span) { return new A.ArgumentInvocation(B.List_empty9, B.Map_empty6, null, null, span); }, ArgumentInvocation: function ArgumentInvocation(t0, t1, t2, t3, t4) { var _ = this; _.positional = t0; _.named = t1; _.rest = t2; _.keywordRest = t3; _.span = t4; }, AtRootQuery: function AtRootQuery(t0, t1, t2, t3) { var _ = this; _.include = t0; _.names = t1; _._all = t2; _._at_root_query$_rule = t3; }, ConfiguredVariable: function ConfiguredVariable(t0, t1, t2, t3) { var _ = this; _.name = t0; _.expression = t1; _.isGuarded = t2; _.span = t3; }, _IsCalculationSafeVisitor: function _IsCalculationSafeVisitor() { }, _IsCalculationSafeVisitor_visitListExpression_closure: function _IsCalculationSafeVisitor_visitListExpression_closure(t0) { this.$this = t0; }, BinaryOperationExpression: function BinaryOperationExpression(t0, t1, t2, t3) { var _ = this; _.operator = t0; _.left = t1; _.right = t2; _.allowsSlash = t3; }, BinaryOperator: function BinaryOperator(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.operator = t1; _.precedence = t2; _.isAssociative = t3; _._name = t4; }, BooleanExpression: function BooleanExpression(t0, t1) { this.value = t0; this.span = t1; }, ColorExpression: function ColorExpression(t0, t1) { this.value = t0; this.span = t1; }, FunctionExpression: function FunctionExpression(t0, t1, t2, t3) { var _ = this; _.namespace = t0; _.originalName = t1; _.$arguments = t2; _.span = t3; }, IfExpression: function IfExpression(t0, t1) { this.$arguments = t0; this.span = t1; }, InterpolatedFunctionExpression: function InterpolatedFunctionExpression(t0, t1, t2) { this.name = t0; this.$arguments = t1; this.span = t2; }, ListExpression: function ListExpression(t0, t1, t2, t3) { var _ = this; _.contents = t0; _.separator = t1; _.hasBrackets = t2; _.span = t3; }, ListExpression_toString_closure: function ListExpression_toString_closure(t0) { this.$this = t0; }, ListExpression__elementNeedsParens_closure: function ListExpression__elementNeedsParens_closure(t0) { this._0_0 = t0; }, MapExpression: function MapExpression(t0, t1) { this.pairs = t0; this.span = t1; }, NullExpression: function NullExpression(t0) { this.span = t0; }, NumberExpression: function NumberExpression(t0, t1, t2) { this.value = t0; this.unit = t1; this.span = t2; }, ParenthesizedExpression: function ParenthesizedExpression(t0, t1) { this.expression = t0; this.span = t1; }, SelectorExpression: function SelectorExpression(t0) { this.span = t0; }, StringExpression_quoteText(text) { var t1, quote = A.StringExpression__bestQuote(A._setArrayType([text], type$.JSArray_String)), buffer = new A.StringBuffer(""); buffer._contents = "" + A.Primitives_stringFromCharCode(quote); A.StringExpression__quoteInnerText(text, quote, buffer, true); t1 = buffer._contents += A.Primitives_stringFromCharCode(quote); return t1.charCodeAt(0) == 0 ? t1 : t1; }, StringExpression__quoteInnerText(text, quote, buffer, $static) { var t1, t2, i, _1_0, _0_0, t3, t4; for (t1 = text.length, t2 = t1 - 1, i = 0; i < t1; ++i) { _1_0 = text.charCodeAt(i); if (_1_0 === 10 || _1_0 === 13 || _1_0 === 12) { buffer.writeCharCode$1(92); buffer.writeCharCode$1(97); if (i !== t2) { _0_0 = text.charCodeAt(i + 1); if (!(_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12)) if (!(_0_0 >= 48 && _0_0 <= 57)) if (!(_0_0 >= 97 && _0_0 <= 102)) t3 = _0_0 >= 65 && _0_0 <= 70; else t3 = true; else t3 = true; else t3 = true; if (t3) buffer.writeCharCode$1(32); } continue; } if (92 === _1_0) { t3 = _1_0; t4 = true; } else { t3 = null; t4 = false; } if (!t4) { if (_1_0 === quote) { t3 = _1_0; t4 = true; } else t4 = false; if (!t4) if (35 === _1_0) if ($static) if (i < t2) if (text.charCodeAt(i + 1) === 123) { t3 = _1_0; t4 = true; } else t4 = false; else t4 = false; else t4 = false; else t4 = false; else t4 = true; } else t4 = true; if (t4) { buffer.writeCharCode$1(92); buffer.writeCharCode$1(t3); continue; } buffer.writeCharCode$1(_1_0); } }, StringExpression__bestQuote(strings) { var t1, containsDoubleQuote, t2, t3, t4; for (t1 = J.get$iterator$ax(strings), containsDoubleQuote = false; t1.moveNext$0();) for (t2 = new A.CodeUnits(t1.get$current(t1)), t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t4 = t2.__internal$_current; if (t4 == null) t4 = t3._as(t4); if (t4 === 39) return 34; if (t4 === 34) containsDoubleQuote = true; } return containsDoubleQuote ? 39 : 34; }, StringExpression: function StringExpression(t0, t1) { this.text = t0; this.hasQuotes = t1; }, SupportsExpression: function SupportsExpression(t0) { this.condition = t0; }, UnaryOperationExpression: function UnaryOperationExpression(t0, t1, t2) { this.operator = t0; this.operand = t1; this.span = t2; }, UnaryOperator: function UnaryOperator(t0, t1, t2) { this.name = t0; this.operator = t1; this._name = t2; }, ValueExpression: function ValueExpression(t0, t1) { this.value = t0; this.span = t1; }, VariableExpression: function VariableExpression(t0, t1, t2) { this.namespace = t0; this.name = t1; this.span = t2; }, DynamicImport: function DynamicImport(t0, t1) { this.urlString = t0; this.span = t1; }, StaticImport: function StaticImport(t0, t1, t2) { this.url = t0; this.modifiers = t1; this.span = t2; }, Interpolation$(contents, span) { var t1 = new A.Interpolation(A.List_List$unmodifiable(contents, type$.Object), span); t1.Interpolation$2(contents, span); return t1; }, Interpolation: function Interpolation(t0, t1) { this.contents = t0; this.span = t1; }, Interpolation_asPlain_closure: function Interpolation_asPlain_closure(t0) { this._0_0 = t0; }, Interpolation_asPlain_closure0: function Interpolation_asPlain_closure0(t0) { this._0_0 = t0; }, Interpolation_initialPlain_closure: function Interpolation_initialPlain_closure(t0) { this._0_0 = t0; }, Interpolation_toString_closure: function Interpolation_toString_closure() { }, AtRootRule$(children, span, query) { var t1 = A.List_List$unmodifiable(children, type$.Statement), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure()); return new A.AtRootRule(query, span, t1, t2); }, AtRootRule: function AtRootRule(t0, t1, t2, t3) { var _ = this; _.query = t0; _.span = t1; _.children = t2; _.hasDeclarations = t3; }, AtRule$($name, span, children, value) { var t1 = children == null ? null : A.List_List$unmodifiable(children, type$.Statement), t2 = t1 == null ? null : B.JSArray_methods.any$1(t1, new A.ParentStatement_closure()); return new A.AtRule($name, value, span, t1, t2 === true); }, AtRule: function AtRule(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.value = t1; _.span = t2; _.children = t3; _.hasDeclarations = t4; }, CallableDeclaration: function CallableDeclaration() { }, ContentBlock$($arguments, children, span) { var t1 = A.List_List$unmodifiable(children, type$.Statement), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure()); return new A.ContentBlock("@content", $arguments, span, t1, t2); }, ContentBlock: function ContentBlock(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.$arguments = t1; _.span = t2; _.children = t3; _.hasDeclarations = t4; }, ContentRule: function ContentRule(t0, t1) { this.$arguments = t0; this.span = t1; }, DebugRule: function DebugRule(t0, t1) { this.expression = t0; this.span = t1; }, Declaration$($name, value, span) { return new A.Declaration($name, value, span, null, false); }, Declaration$nested($name, children, span, value) { var t1 = A.List_List$unmodifiable(children, type$.Statement), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure()); return new A.Declaration($name, value, span, t1, t2); }, Declaration: function Declaration(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.value = t1; _.span = t2; _.children = t3; _.hasDeclarations = t4; }, EachRule$(variables, list, children, span) { var t1 = A.List_List$unmodifiable(variables, type$.String), t2 = A.List_List$unmodifiable(children, type$.Statement), t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure()); return new A.EachRule(t1, list, span, t2, t3); }, EachRule: function EachRule(t0, t1, t2, t3, t4) { var _ = this; _.variables = t0; _.list = t1; _.span = t2; _.children = t3; _.hasDeclarations = t4; }, EachRule_toString_closure: function EachRule_toString_closure() { }, ErrorRule: function ErrorRule(t0, t1) { this.expression = t0; this.span = t1; }, ExtendRule: function ExtendRule(t0, t1, t2) { this.selector = t0; this.isOptional = t1; this.span = t2; }, ForRule$(variable, from, to, children, span, exclusive) { var t1 = A.List_List$unmodifiable(children, type$.Statement), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure()); return new A.ForRule(variable, from, to, exclusive, span, t1, t2); }, ForRule: function ForRule(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.variable = t0; _.from = t1; _.to = t2; _.isExclusive = t3; _.span = t4; _.children = t5; _.hasDeclarations = t6; }, ForwardRule: function ForwardRule(t0, t1, t2, t3, t4, t5, t6, t7) { var _ = this; _.url = t0; _.shownMixinsAndFunctions = t1; _.shownVariables = t2; _.hiddenMixinsAndFunctions = t3; _.hiddenVariables = t4; _.prefix = t5; _.configuration = t6; _.span = t7; }, FunctionRule$($name, $arguments, children, span, comment) { var t1 = A.List_List$unmodifiable(children, type$.Statement), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure()); return new A.FunctionRule($name, $arguments, span, t1, t2); }, FunctionRule: function FunctionRule(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.$arguments = t1; _.span = t2; _.children = t3; _.hasDeclarations = t4; }, IfClause$(expression, children) { var t1 = A.List_List$unmodifiable(children, type$.Statement); return new A.IfClause(expression, t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure())); }, ElseClause$(children) { var t1 = A.List_List$unmodifiable(children, type$.Statement); return new A.ElseClause(t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure())); }, IfRule: function IfRule(t0, t1, t2) { this.clauses = t0; this.lastClause = t1; this.span = t2; }, IfRule_toString_closure: function IfRule_toString_closure() { }, IfRuleClause: function IfRuleClause() { }, IfRuleClause$__closure: function IfRuleClause$__closure() { }, IfRuleClause$___closure: function IfRuleClause$___closure() { }, IfClause: function IfClause(t0, t1, t2) { this.expression = t0; this.children = t1; this.hasDeclarations = t2; }, ElseClause: function ElseClause(t0, t1) { this.children = t0; this.hasDeclarations = t1; }, ImportRule: function ImportRule(t0, t1) { this.imports = t0; this.span = t1; }, IncludeRule: function IncludeRule(t0, t1, t2, t3, t4) { var _ = this; _.namespace = t0; _.name = t1; _.$arguments = t2; _.content = t3; _.span = t4; }, LoudComment: function LoudComment(t0) { this.text = t0; }, MediaRule$(query, children, span) { var t1 = A.List_List$unmodifiable(children, type$.Statement), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure()); return new A.MediaRule(query, span, t1, t2); }, MediaRule: function MediaRule(t0, t1, t2, t3) { var _ = this; _.query = t0; _.span = t1; _.children = t2; _.hasDeclarations = t3; }, MixinRule$($name, $arguments, children, span, comment) { var t1 = A.List_List$unmodifiable(children, type$.Statement), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure()); return new A.MixinRule($name, $arguments, span, t1, t2); }, MixinRule: function MixinRule(t0, t1, t2, t3, t4) { var _ = this; _.__MixinRule_hasContent_FI = $; _.name = t0; _.$arguments = t1; _.span = t2; _.children = t3; _.hasDeclarations = t4; }, _HasContentVisitor: function _HasContentVisitor() { }, __HasContentVisitor_Object_StatementSearchVisitor: function __HasContentVisitor_Object_StatementSearchVisitor() { }, ParentStatement: function ParentStatement() { }, ParentStatement_closure: function ParentStatement_closure() { }, ParentStatement__closure: function ParentStatement__closure() { }, ReturnRule: function ReturnRule(t0, t1) { this.expression = t0; this.span = t1; }, SilentComment: function SilentComment(t0, t1) { this.text = t0; this.span = t1; }, StyleRule$(selector, children, span) { var t1 = A.List_List$unmodifiable(children, type$.Statement), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure()); return new A.StyleRule(selector, span, t1, t2); }, StyleRule: function StyleRule(t0, t1, t2, t3) { var _ = this; _.selector = t0; _.span = t1; _.children = t2; _.hasDeclarations = t3; }, Stylesheet$(children, span) { var t1 = A._setArrayType([], type$.JSArray_UseRule), t2 = A._setArrayType([], type$.JSArray_ForwardRule), t3 = A.List_List$unmodifiable(children, type$.Statement), t4 = B.JSArray_methods.any$1(t3, new A.ParentStatement_closure()); t1 = new A.Stylesheet(span, false, t1, t2, t3, t4); t1.Stylesheet$internal$3$plainCss(children, span, false); return t1; }, Stylesheet$internal(children, span, plainCss) { var t1 = A._setArrayType([], type$.JSArray_UseRule), t2 = A._setArrayType([], type$.JSArray_ForwardRule), t3 = A.List_List$unmodifiable(children, type$.Statement), t4 = B.JSArray_methods.any$1(t3, new A.ParentStatement_closure()); t1 = new A.Stylesheet(span, plainCss, t1, t2, t3, t4); t1.Stylesheet$internal$3$plainCss(children, span, plainCss); return t1; }, Stylesheet_Stylesheet$parse(contents, syntax, logger, url) { var error, stackTrace, url0, t1, exception, t2; try { switch (syntax) { case B.Syntax_Sass_sass: t1 = A.SpanScanner$(contents, url); t1 = new A.SassParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, logger, null).parse$0(); return t1; case B.Syntax_SCSS_scss: t1 = A.ScssParser$(contents, logger, url).parse$0(); return t1; case B.Syntax_CSS_css: t1 = A.SpanScanner$(contents, url); t1 = new A.CssParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, logger, null).parse$0(); return t1; default: t1 = A.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + ".", null); throw A.wrapException(t1); } } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = error; t2 = J.getInterceptor$z(t1); t1 = A.SourceSpanException.prototype.get$span.call(t2, t1); url0 = t1.get$sourceUrl(t1); if (url0 == null || J.toString$0$(url0) === "stdin") throw exception; t1 = type$.Uri; throw A.wrapException(A.throwWithTrace(error.withLoadedUrls$1(A.Set_Set$unmodifiable(A.LinkedHashSet_LinkedHashSet$_literal([url0], t1), t1)), error, stackTrace)); } else throw exception; } }, Stylesheet: function Stylesheet(t0, t1, t2, t3, t4, t5) { var _ = this; _.span = t0; _.plainCss = t1; _._uses = t2; _._forwards = t3; _.children = t4; _.hasDeclarations = t5; }, SupportsRule$(condition, children, span) { var t1 = A.List_List$unmodifiable(children, type$.Statement), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure()); return new A.SupportsRule(condition, span, t1, t2); }, SupportsRule: function SupportsRule(t0, t1, t2, t3) { var _ = this; _.condition = t0; _.span = t1; _.children = t2; _.hasDeclarations = t3; }, UseRule: function UseRule(t0, t1, t2, t3) { var _ = this; _.url = t0; _.namespace = t1; _.configuration = t2; _.span = t3; }, VariableDeclaration$($name, expression, span, comment, global, guarded, namespace) { if (namespace != null && global) A.throwExpression(A.ArgumentError$(string$.Other_, null)); return new A.VariableDeclaration(namespace, $name, expression, guarded, global, span); }, VariableDeclaration: function VariableDeclaration(t0, t1, t2, t3, t4, t5) { var _ = this; _.namespace = t0; _.name = t1; _.expression = t2; _.isGuarded = t3; _.isGlobal = t4; _.span = t5; }, WarnRule: function WarnRule(t0, t1) { this.expression = t0; this.span = t1; }, WhileRule$(condition, children, span) { var t1 = A.List_List$unmodifiable(children, type$.Statement), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure()); return new A.WhileRule(condition, span, t1, t2); }, WhileRule: function WhileRule(t0, t1, t2, t3) { var _ = this; _.condition = t0; _.span = t1; _.children = t2; _.hasDeclarations = t3; }, SupportsAnything: function SupportsAnything(t0, t1) { this.contents = t0; this.span = t1; }, SupportsDeclaration: function SupportsDeclaration(t0, t1, t2) { this.name = t0; this.value = t1; this.span = t2; }, SupportsFunction: function SupportsFunction(t0, t1, t2) { this.name = t0; this.$arguments = t1; this.span = t2; }, SupportsInterpolation: function SupportsInterpolation(t0, t1) { this.expression = t0; this.span = t1; }, SupportsNegation: function SupportsNegation(t0, t1) { this.condition = t0; this.span = t1; }, SupportsOperation$(left, right, operator, span) { var lowerOperator = operator.toLowerCase(); if (lowerOperator !== "and" && lowerOperator !== "or") A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".')); return new A.SupportsOperation(left, right, operator, span); }, SupportsOperation: function SupportsOperation(t0, t1, t2, t3) { var _ = this; _.left = t0; _.right = t1; _.operator = t2; _.span = t3; }, Selector: function Selector() { }, _IsInvisibleVisitor0: function _IsInvisibleVisitor0(t0) { this.includeBogus = t0; }, _IsBogusVisitor: function _IsBogusVisitor(t0) { this.includeLeadingCombinator = t0; }, _IsBogusVisitor_visitComplexSelector_closure: function _IsBogusVisitor_visitComplexSelector_closure(t0) { this.$this = t0; }, _IsUselessVisitor: function _IsUselessVisitor() { }, _IsUselessVisitor_visitComplexSelector_closure: function _IsUselessVisitor_visitComplexSelector_closure(t0) { this.$this = t0; }, __IsBogusVisitor_Object_AnySelectorVisitor: function __IsBogusVisitor_Object_AnySelectorVisitor() { }, __IsInvisibleVisitor_Object_AnySelectorVisitor: function __IsInvisibleVisitor_Object_AnySelectorVisitor() { }, __IsUselessVisitor_Object_AnySelectorVisitor: function __IsUselessVisitor_Object_AnySelectorVisitor() { }, AttributeSelector: function AttributeSelector(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.op = t1; _.value = t2; _.modifier = t3; _.span = t4; }, AttributeOperator: function AttributeOperator(t0, t1) { this._attribute$_text = t0; this._name = t1; }, ClassSelector: function ClassSelector(t0, t1) { this.name = t0; this.span = t1; }, Combinator: function Combinator(t0, t1) { this._combinator$_text = t0; this._name = t1; }, ComplexSelector$(leadingCombinators, components, span, lineBreak) { var t1 = A.List_List$unmodifiable(leadingCombinators, type$.CssValue_Combinator), t2 = A.List_List$unmodifiable(components, type$.ComplexSelectorComponent); if (t1.length === 0 && t2.length === 0) A.throwExpression(A.ArgumentError$(string$.leadin, null)); return new A.ComplexSelector(t1, t2, lineBreak, span); }, ComplexSelector: function ComplexSelector(t0, t1, t2, t3) { var _ = this; _.leadingCombinators = t0; _.components = t1; _.lineBreak = t2; _.__ComplexSelector_specificity_FI = $; _.span = t3; }, ComplexSelector_specificity_closure: function ComplexSelector_specificity_closure() { }, ComplexSelector_singleCompound_closure: function ComplexSelector_singleCompound_closure(t0) { this._0_0 = t0; }, ComplexSelector_withAdditionalCombinators_closure: function ComplexSelector_withAdditionalCombinators_closure(t0) { this._0_0 = t0; }, ComplexSelector_concatenate_closure: function ComplexSelector_concatenate_closure(t0) { this._0_0 = t0; }, ComplexSelectorComponent: function ComplexSelectorComponent(t0, t1, t2) { this.selector = t0; this.combinators = t1; this.span = t2; }, ComplexSelectorComponent_toString_closure: function ComplexSelectorComponent_toString_closure() { }, CompoundSelector$(components, span) { var t1 = A.List_List$unmodifiable(components, type$.SimpleSelector); if (t1.length === 0) A.throwExpression(A.ArgumentError$("components may not be empty.", null)); return new A.CompoundSelector(t1, span); }, CompoundSelector: function CompoundSelector(t0, t1) { this.components = t0; this.__CompoundSelector_specificity_FI = $; this.span = t1; }, CompoundSelector_specificity_closure: function CompoundSelector_specificity_closure() { }, IDSelector: function IDSelector(t0, t1) { this.name = t0; this.span = t1; }, IDSelector_unify_closure: function IDSelector_unify_closure(t0) { this.$this = t0; }, SelectorList$(components, span) { var t1 = A.List_List$unmodifiable(components, type$.ComplexSelector); if (t1.length === 0) A.throwExpression(A.ArgumentError$("components may not be empty.", null)); return new A.SelectorList(t1, span); }, SelectorList_SelectorList$parse(contents, allowParent, allowPlaceholder, interpolationMap, logger) { return A.SelectorParser$(contents, allowParent, allowPlaceholder, interpolationMap, logger, null).parse$0(); }, SelectorList: function SelectorList(t0, t1) { this.components = t0; this.span = t1; }, SelectorList_asSassList_closure: function SelectorList_asSassList_closure() { }, SelectorList_resolveParentSelectors_closure: function SelectorList_resolveParentSelectors_closure(t0, t1, t2) { this.$this = t0; this.implicitParent = t1; this.parent = t2; }, SelectorList_resolveParentSelectors__closure: function SelectorList_resolveParentSelectors__closure(t0) { this.complex = t0; }, SelectorList_resolveParentSelectors__closure0: function SelectorList_resolveParentSelectors__closure0(t0) { this.complex = t0; }, SelectorList__resolveParentSelectorsCompound_closure: function SelectorList__resolveParentSelectorsCompound_closure() { }, SelectorList__resolveParentSelectorsCompound_closure0: function SelectorList__resolveParentSelectorsCompound_closure0(t0) { this.parent = t0; }, SelectorList__resolveParentSelectorsCompound__closure: function SelectorList__resolveParentSelectorsCompound__closure(t0) { this._0_0 = t0; }, SelectorList__resolveParentSelectorsCompound_closure1: function SelectorList__resolveParentSelectorsCompound_closure1(t0, t1, t2) { this.parentSelector = t0; this.resolvedSimples = t1; this.component = t2; }, SelectorList_withAdditionalCombinators_closure: function SelectorList_withAdditionalCombinators_closure(t0) { this.combinators = t0; }, _ParentSelectorVisitor: function _ParentSelectorVisitor() { }, __ParentSelectorVisitor_Object_SelectorSearchVisitor: function __ParentSelectorVisitor_Object_SelectorSearchVisitor() { }, ParentSelector: function ParentSelector(t0, t1) { this.suffix = t0; this.span = t1; }, PlaceholderSelector: function PlaceholderSelector(t0, t1) { this.name = t0; this.span = t1; }, PseudoSelector$($name, span, argument, element, selector) { var t1 = !element, t2 = t1 && !A.PseudoSelector__isFakePseudoElement($name); return new A.PseudoSelector($name, A.unvendor($name), t2, t1, argument, selector, span); }, PseudoSelector__isFakePseudoElement($name) { switch ($name.charCodeAt(0)) { case 97: case 65: return A.equalsIgnoreCase($name, "after"); case 98: case 66: return A.equalsIgnoreCase($name, "before"); case 102: case 70: return A.equalsIgnoreCase($name, "first-line") || A.equalsIgnoreCase($name, "first-letter"); default: return false; } }, PseudoSelector: function PseudoSelector(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.name = t0; _.normalizedName = t1; _.isClass = t2; _.isSyntacticClass = t3; _.argument = t4; _.selector = t5; _.__PseudoSelector_specificity_FI = $; _.span = t6; }, PseudoSelector_specificity_closure: function PseudoSelector_specificity_closure(t0) { this.$this = t0; }, PseudoSelector_specificity__closure: function PseudoSelector_specificity__closure() { }, PseudoSelector_specificity__closure0: function PseudoSelector_specificity__closure0() { }, PseudoSelector_unify_closure: function PseudoSelector_unify_closure() { }, QualifiedName: function QualifiedName(t0, t1) { this.name = t0; this.namespace = t1; }, SimpleSelector: function SimpleSelector() { }, SimpleSelector_isSuperselector_closure: function SimpleSelector_isSuperselector_closure(t0) { this.$this = t0; }, SimpleSelector_isSuperselector__closure: function SimpleSelector_isSuperselector__closure(t0) { this.$this = t0; }, TypeSelector: function TypeSelector(t0, t1) { this.name = t0; this.span = t1; }, UniversalSelector: function UniversalSelector(t0, t1) { this.namespace = t0; this.span = t1; }, UniversalSelector_unify_closure: function UniversalSelector_unify_closure(t0) { this._0_0 = t0; }, UniversalSelector_unify_closure0: function UniversalSelector_unify_closure0(t0) { this._0_0 = t0; }, compileAsync(path, charset, fatalDeprecations, futureDeprecations, importCache, logger, quietDeps, sourceMap, style, syntax, verbose) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult), $async$returnValue, t3, t0, stylesheet, result, t1, t2; var $async$compileAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = type$.Deprecation; t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1); t2.addAll$1(0, fatalDeprecations); t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1); t3.addAll$1(0, futureDeprecations); logger = new A.DeprecationHandlingLogger(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, t2, t3, !verbose); t1 = syntax === A.Syntax_forPath(path); $async$goto = t1 ? 3 : 5; break; case 3: // then t1 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null); t2 = A.isNodeJs() ? self.process : null; if (!J.$eq$(t2 == null ? null : J.get$platform$x(t2), "win32")) { t2 = A.isNodeJs() ? self.process : null; t2 = J.$eq$(t2 == null ? null : J.get$platform$x(t2), "darwin"); } else t2 = true; if (t2) { t2 = $.$get$context(); t3 = A._realCasePath(A.absolute(t2.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null)); t0 = t3; t3 = t2; t2 = t0; } else { t2 = $.$get$context(); t3 = t2.canonicalize$1(0, path); t0 = t3; t3 = t2; t2 = t0; } $async$goto = 6; return A._asyncAwait(importCache.importCanonical$3$originalUrl(new A.FilesystemImporter(t1), t3.toUri$1(t2), t3.toUri$1(path)), $async$compileAsync); case 6: // returning from await. t3 = $async$result; t3.toString; stylesheet = t3; // goto join $async$goto = 4; break; case 5: // else t1 = A.readFile(path); stylesheet = A.Stylesheet_Stylesheet$parse(t1, syntax, logger, $.$get$context().toUri$1(path)); case 4: // join $async$goto = 7; return A._asyncAwait(A._compileStylesheet0(stylesheet, logger, importCache, null, new A.FilesystemImporter(A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null)), null, style, true, null, null, quietDeps, sourceMap, charset), $async$compileAsync); case 7: // returning from await. result = $async$result; logger.summarize$1$js(false); $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$compileAsync, $async$completer); }, compileStringAsync(source, charset, fatalDeprecations, futureDeprecations, importCache, importer, logger, quietDeps, sourceMap, style, syntax, verbose) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult), $async$returnValue, t3, stylesheet, result, t1, t2; var $async$compileStringAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = type$.Deprecation; t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1); t2.addAll$1(0, fatalDeprecations); t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1); t3.addAll$1(0, futureDeprecations); logger = new A.DeprecationHandlingLogger(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, t2, t3, !verbose); stylesheet = A.Stylesheet_Stylesheet$parse(source, syntax, logger, null); $async$goto = 3; return A._asyncAwait(A._compileStylesheet0(stylesheet, logger, importCache, null, importer, null, style, true, null, null, quietDeps, sourceMap, charset), $async$compileStringAsync); case 3: // returning from await. result = $async$result; logger.summarize$1$js(false); $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$compileStringAsync, $async$completer); }, _compileStylesheet0(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult), $async$returnValue, serializeResult, resultSourceMap, $async$temp1; var $async$_compileStylesheet0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$temp1 = A; $async$goto = 3; return A._asyncAwait(A._EvaluateVisitor$0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet0); case 3: // returning from await. serializeResult = $async$temp1.serialize($async$result._1, charset, indentWidth, false, lineFeed, sourceMap, style, true); resultSourceMap = serializeResult._1; if (resultSourceMap != null && true) A.mapInPlace(resultSourceMap.urls, new A._compileStylesheet_closure0(stylesheet, importCache)); $async$returnValue = new A.CompileResult(serializeResult); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_compileStylesheet0, $async$completer); }, _compileStylesheet_closure0: function _compileStylesheet_closure0(t0, t1) { this.stylesheet = t0; this.importCache = t1; }, AsyncEnvironment$() { var t1 = type$.String, t2 = type$.Module_AsyncCallable, t3 = type$.AstNode, t4 = type$.int, t5 = type$.AsyncCallable, t6 = type$.JSArray_Map_String_AsyncCallable; 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); }, AsyncEnvironment$_(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) { var t1 = type$.String, t2 = type$.int; 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); }, _EnvironmentModule__EnvironmentModule0(environment, css, preModuleComments, extensionStore, forwarded) { var t1, t2, t3, t4, t5, t6, module, comments, result, t7; if (forwarded == null) forwarded = B.Set_empty2; t1 = type$.dynamic; t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); 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();) { t6 = t4.get$current(t4); module = t6._0; comments = t6._1; result = A.List_List$from(comments, false, t5); result.fixed$length = Array; result.immutable$list = Array; t1.$indexSet(0, module, result); } t1 = A.ConstantMap_ConstantMap$from(t1, t2, t3); t2 = A._EnvironmentModule__makeModulesByVariable0(forwarded); 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); 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); t5 = type$.Map_String_AsyncCallable; t6 = type$.AsyncCallable; 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); 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); 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()); 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())); }, _EnvironmentModule__makeModulesByVariable0(forwarded) { var modulesByVariable, t1, t2, t3, t4, t5; if (forwarded.get$isEmpty(forwarded)) return B.Map_empty8; modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_AsyncCallable); for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) { t2 = t1.get$current(t1); if (t2 instanceof A._EnvironmentModule0) { for (t3 = t2._async_environment$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); t5 = t4.get$variables(); A.setAll(modulesByVariable, t5.get$keys(t5), t4); } A.setAll(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._async_environment$_environment._async_environment$_variables)), t2); } else { t3 = t2.get$variables(); A.setAll(modulesByVariable, t3.get$keys(t3), t2); } } return modulesByVariable; }, _EnvironmentModule__memberMap0(localMap, otherMaps, $V) { var t1, t2, t3; localMap = new A.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0>")); if (otherMaps.get$isEmpty(otherMaps)) return localMap; t1 = A._setArrayType([], $V._eval$1("JSArray>")); for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) { t3 = t2.get$current(t2); if (t3.get$isNotEmpty(t3)) t1.push(t3); } t1.push(localMap); if (t1.length === 1) return localMap; return A.MergedMapView$(t1, type$.String, $V); }, _EnvironmentModule$_0(_environment, css, preModuleComments, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) { return new A._EnvironmentModule0(_environment._async_environment$_allModules, variables, variableNodes, functions, mixins, extensionStore, css, preModuleComments, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable); }, AsyncEnvironment: function AsyncEnvironment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) { var _ = this; _._async_environment$_modules = t0; _._async_environment$_namespaceNodes = t1; _._async_environment$_globalModules = t2; _._async_environment$_importedModules = t3; _._async_environment$_forwardedModules = t4; _._async_environment$_nestedForwardedModules = t5; _._async_environment$_allModules = t6; _._async_environment$_variables = t7; _._async_environment$_variableNodes = t8; _._async_environment$_variableIndices = t9; _._async_environment$_functions = t10; _._async_environment$_functionIndices = t11; _._async_environment$_mixins = t12; _._async_environment$_mixinIndices = t13; _._async_environment$_content = t14; _._async_environment$_inMixin = false; _._async_environment$_inSemiGlobalScope = true; _._async_environment$_lastVariableIndex = _._async_environment$_lastVariableName = null; }, AsyncEnvironment__getVariableFromGlobalModule_closure: function AsyncEnvironment__getVariableFromGlobalModule_closure(t0) { this.name = t0; }, AsyncEnvironment_setVariable_closure: function AsyncEnvironment_setVariable_closure(t0, t1) { this.$this = t0; this.name = t1; }, AsyncEnvironment_setVariable_closure0: function AsyncEnvironment_setVariable_closure0(t0) { this.name = t0; }, AsyncEnvironment_setVariable_closure1: function AsyncEnvironment_setVariable_closure1(t0, t1) { this.$this = t0; this.name = t1; }, AsyncEnvironment__getFunctionFromGlobalModule_closure: function AsyncEnvironment__getFunctionFromGlobalModule_closure(t0) { this.name = t0; }, AsyncEnvironment__getMixinFromGlobalModule_closure: function AsyncEnvironment__getMixinFromGlobalModule_closure(t0) { this.name = t0; }, AsyncEnvironment_toModule_closure: function AsyncEnvironment_toModule_closure() { }, AsyncEnvironment_toDummyModule_closure: function AsyncEnvironment_toDummyModule_closure() { }, _EnvironmentModule0: function _EnvironmentModule0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) { var _ = this; _.upstream = t0; _.variables = t1; _.variableNodes = t2; _.functions = t3; _.mixins = t4; _.extensionStore = t5; _.css = t6; _.preModuleComments = t7; _.transitivelyContainsCss = t8; _.transitivelyContainsExtensions = t9; _._async_environment$_environment = t10; _._async_environment$_modulesByVariable = t11; }, _EnvironmentModule__EnvironmentModule_closure5: function _EnvironmentModule__EnvironmentModule_closure5() { }, _EnvironmentModule__EnvironmentModule_closure6: function _EnvironmentModule__EnvironmentModule_closure6() { }, _EnvironmentModule__EnvironmentModule_closure7: function _EnvironmentModule__EnvironmentModule_closure7() { }, _EnvironmentModule__EnvironmentModule_closure8: function _EnvironmentModule__EnvironmentModule_closure8() { }, _EnvironmentModule__EnvironmentModule_closure9: function _EnvironmentModule__EnvironmentModule_closure9() { }, _EnvironmentModule__EnvironmentModule_closure10: function _EnvironmentModule__EnvironmentModule_closure10() { }, AsyncImportCache__toImporters(importers, loadPaths, packageConfig) { var t1, t2, t3, t4, _i, path, _null = null, sassPath = A.getEnvironmentVariable("SASS_PATH"); if (A.isBrowser()) { t1 = A._setArrayType([], type$.JSArray_AsyncImporter_2); return t1; } t1 = A._setArrayType([], type$.JSArray_AsyncImporter_2); for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) { t3 = t2.get$current(t2); t1.push(new A.FilesystemImporter($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null))); } if (sassPath != null) { t2 = A.isNodeJs() ? self.process : _null; t3 = sassPath.split(J.$eq$(t2 == null ? _null : J.get$platform$x(t2), "win32") ? ";" : ":"); t4 = t3.length; _i = 0; for (; _i < t4; ++_i) { path = t3[_i]; t1.push(new A.FilesystemImporter($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null))); } } return t1; }, AsyncImportCache: function AsyncImportCache(t0, t1, t2, t3, t4, t5) { var _ = this; _._async_import_cache$_importers = t0; _._async_import_cache$_logger = t1; _._async_import_cache$_canonicalizeCache = t2; _._async_import_cache$_relativeCanonicalizeCache = t3; _._async_import_cache$_importCache = t4; _._async_import_cache$_resultsCache = t5; }, AsyncImportCache_canonicalize_closure: function AsyncImportCache_canonicalize_closure(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.baseImporter = t1; _.baseUrl = t2; _.url = t3; _.forImport = t4; }, AsyncImportCache_canonicalize_closure0: function AsyncImportCache_canonicalize_closure0(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.url = t1; _.baseUrl = t2; _.forImport = t3; }, AsyncImportCache__canonicalize_closure: function AsyncImportCache__canonicalize_closure(t0, t1) { this.importer = t0; this.resolved = t1; }, AsyncImportCache__canonicalize__closure: function AsyncImportCache__canonicalize__closure(t0, t1) { this.importer = t0; this.resolved = t1; }, AsyncImportCache__canonicalize_closure0: function AsyncImportCache__canonicalize_closure0(t0, t1) { this.importer = t0; this.resolved = t1; }, AsyncImportCache_importCanonical_closure: function AsyncImportCache_importCanonical_closure(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.importer = t1; _.canonicalUrl = t2; _.originalUrl = t3; _.quiet = t4; }, AsyncImportCache_humanize_closure: function AsyncImportCache_humanize_closure(t0) { this.canonicalUrl = t0; }, AsyncImportCache_humanize_closure0: function AsyncImportCache_humanize_closure0() { }, AsyncImportCache_humanize_closure1: function AsyncImportCache_humanize_closure1() { }, AsyncImportCache_humanize_closure2: function AsyncImportCache_humanize_closure2(t0) { this.canonicalUrl = t0; }, AsyncBuiltInCallable$mixin($name, $arguments, callback, url) { return new A.AsyncBuiltInCallable($name, A.ScssParser$("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new A.AsyncBuiltInCallable$mixin_closure(callback), false); }, AsyncBuiltInCallable: function AsyncBuiltInCallable(t0, t1, t2, t3) { var _ = this; _.name = t0; _._async_built_in$_arguments = t1; _._async_built_in$_callback = t2; _.acceptsContent = t3; }, AsyncBuiltInCallable$mixin_closure: function AsyncBuiltInCallable$mixin_closure(t0) { this.callback = t0; }, BuiltInCallable$function($name, $arguments, callback, url) { return new A.BuiltInCallable($name, A._setArrayType([new A._Record_2(A.ScssParser$("@function " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), callback)], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value), false); }, BuiltInCallable$mixin($name, $arguments, callback, acceptsContent, url) { return new A.BuiltInCallable($name, A._setArrayType([new A._Record_2(A.ScssParser$("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new A.BuiltInCallable$mixin_closure(callback))], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value), acceptsContent); }, BuiltInCallable$overloadedFunction($name, overloads) { var t2, t3, t4, t5, t6, args, callback, t1 = A._setArrayType([], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value); 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; t3.moveNext$0();) { t6 = t3.get$current(t3); args = t6._0; callback = t6._1; t6 = A.SpanScanner$(t4 + args + ") {", null); t1.push(new A._Record_2(new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t2, t5), t6, B.StderrLogger_false, null).parseArgumentDeclaration$0(), callback)); } return new A.BuiltInCallable($name, t1, false); }, BuiltInCallable: function BuiltInCallable(t0, t1, t2) { this.name = t0; this._overloads = t1; this.acceptsContent = t2; }, BuiltInCallable$mixin_closure: function BuiltInCallable$mixin_closure(t0) { this.callback = t0; }, PlainCssCallable: function PlainCssCallable(t0) { this.name = t0; }, UserDefinedCallable: function UserDefinedCallable(t0, t1, t2, t3) { var _ = this; _.declaration = t0; _.environment = t1; _.inDependency = t2; _.$ti = t3; }, _compileStylesheet(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) { var serializeResult = A.serialize(A._EvaluateVisitor$(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet)._1, charset, indentWidth, false, lineFeed, sourceMap, style, true), resultSourceMap = serializeResult._1; if (resultSourceMap != null && true) A.mapInPlace(resultSourceMap.urls, new A._compileStylesheet_closure(stylesheet, importCache)); return new A.CompileResult(serializeResult); }, _compileStylesheet_closure: function _compileStylesheet_closure(t0, t1) { this.stylesheet = t0; this.importCache = t1; }, CompileResult: function CompileResult(t0) { this._serialize = t0; }, Configuration: function Configuration(t0, t1) { this._configuration$_values = t0; this.__originalConfiguration = t1; }, ExplicitConfiguration: function ExplicitConfiguration(t0, t1, t2) { this.nodeWithSpan = t0; this._configuration$_values = t1; this.__originalConfiguration = t2; }, ConfiguredValue: function ConfiguredValue(t0, t1, t2) { this.value = t0; this.configurationSpan = t1; this.assignmentNode = t2; }, Deprecation_fromId(id) { return A.IterableExtension_firstWhereOrNull(B.List_GN8, new A.Deprecation_fromId_closure(id)); }, Deprecation_forVersion(version) { var t2, _i, deprecation, $self, t3, t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.Deprecation); for (t2 = new A.VersionRange(null, version, false, true).get$allows(), _i = 0; _i < 16; ++_i) { deprecation = B.List_GN8[_i]; $self = deprecation._deprecatedIn; t3 = $self == null ? null : A.Version___parse_tearOff($self); t3 = t3 == null ? null : t2.call$1(t3); if (t3 == null ? false : t3) t1.add$1(0, deprecation); } return t1; }, Deprecation: function Deprecation(t0, t1, t2, t3, t4) { var _ = this; _.id = t0; _._deprecatedIn = t1; _.description = t2; _.isFuture = t3; _._name = t4; }, Deprecation_fromId_closure: function Deprecation_fromId_closure(t0) { this.id = t0; }, Environment$() { var t1 = type$.String, t2 = type$.Module_Callable, t3 = type$.AstNode, t4 = type$.int, t5 = type$.Callable, t6 = type$.JSArray_Map_String_Callable; 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); }, Environment$_(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) { var t1 = type$.String, t2 = type$.int; 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); }, _EnvironmentModule__EnvironmentModule(environment, css, preModuleComments, extensionStore, forwarded) { var t1, t2, t3, t4, t5, t6, module, comments, result, t7; if (forwarded == null) forwarded = B.Set_empty0; t1 = type$.dynamic; t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); 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();) { t6 = t4.get$current(t4); module = t6._0; comments = t6._1; result = A.List_List$from(comments, false, t5); result.fixed$length = Array; result.immutable$list = Array; t1.$indexSet(0, module, result); } t1 = A.ConstantMap_ConstantMap$from(t1, t2, t3); t2 = A._EnvironmentModule__makeModulesByVariable(forwarded); 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); 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); t5 = type$.Map_String_Callable; t6 = type$.Callable; t7 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure1(), t5), t6); t6 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure2(), t5), t6); 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()); 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())); }, _EnvironmentModule__makeModulesByVariable(forwarded) { var modulesByVariable, t1, t2, t3, t4, t5; if (forwarded.get$isEmpty(forwarded)) return B.Map_empty1; modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_Callable); for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) { t2 = t1.get$current(t1); if (t2 instanceof A._EnvironmentModule) { for (t3 = t2._modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); t5 = t4.get$variables(); A.setAll(modulesByVariable, t5.get$keys(t5), t4); } A.setAll(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._environment$_environment._variables)), t2); } else { t3 = t2.get$variables(); A.setAll(modulesByVariable, t3.get$keys(t3), t2); } } return modulesByVariable; }, _EnvironmentModule__memberMap(localMap, otherMaps, $V) { var t1, t2, t3; localMap = new A.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0>")); if (otherMaps.get$isEmpty(otherMaps)) return localMap; t1 = A._setArrayType([], $V._eval$1("JSArray>")); for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) { t3 = t2.get$current(t2); if (t3.get$isNotEmpty(t3)) t1.push(t3); } t1.push(localMap); if (t1.length === 1) return localMap; return A.MergedMapView$(t1, type$.String, $V); }, _EnvironmentModule$_(_environment, css, preModuleComments, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) { return new A._EnvironmentModule(_environment._allModules, variables, variableNodes, functions, mixins, extensionStore, css, preModuleComments, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable); }, Environment: function Environment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) { var _ = this; _._environment$_modules = t0; _._namespaceNodes = t1; _._globalModules = t2; _._importedModules = t3; _._forwardedModules = t4; _._nestedForwardedModules = t5; _._allModules = t6; _._variables = t7; _._variableNodes = t8; _._variableIndices = t9; _._functions = t10; _._functionIndices = t11; _._mixins = t12; _._mixinIndices = t13; _._content = t14; _._inMixin = false; _._inSemiGlobalScope = true; _._lastVariableIndex = _._lastVariableName = null; }, Environment__getVariableFromGlobalModule_closure: function Environment__getVariableFromGlobalModule_closure(t0) { this.name = t0; }, Environment_setVariable_closure: function Environment_setVariable_closure(t0, t1) { this.$this = t0; this.name = t1; }, Environment_setVariable_closure0: function Environment_setVariable_closure0(t0) { this.name = t0; }, Environment_setVariable_closure1: function Environment_setVariable_closure1(t0, t1) { this.$this = t0; this.name = t1; }, Environment__getFunctionFromGlobalModule_closure: function Environment__getFunctionFromGlobalModule_closure(t0) { this.name = t0; }, Environment__getMixinFromGlobalModule_closure: function Environment__getMixinFromGlobalModule_closure(t0) { this.name = t0; }, Environment_toModule_closure: function Environment_toModule_closure() { }, Environment_toDummyModule_closure: function Environment_toDummyModule_closure() { }, _EnvironmentModule: function _EnvironmentModule(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) { var _ = this; _.upstream = t0; _.variables = t1; _.variableNodes = t2; _.functions = t3; _.mixins = t4; _.extensionStore = t5; _.css = t6; _.preModuleComments = t7; _.transitivelyContainsCss = t8; _.transitivelyContainsExtensions = t9; _._environment$_environment = t10; _._modulesByVariable = t11; }, _EnvironmentModule__EnvironmentModule_closure: function _EnvironmentModule__EnvironmentModule_closure() { }, _EnvironmentModule__EnvironmentModule_closure0: function _EnvironmentModule__EnvironmentModule_closure0() { }, _EnvironmentModule__EnvironmentModule_closure1: function _EnvironmentModule__EnvironmentModule_closure1() { }, _EnvironmentModule__EnvironmentModule_closure2: function _EnvironmentModule__EnvironmentModule_closure2() { }, _EnvironmentModule__EnvironmentModule_closure3: function _EnvironmentModule__EnvironmentModule_closure3() { }, _EnvironmentModule__EnvironmentModule_closure4: function _EnvironmentModule__EnvironmentModule_closure4() { }, SassException$(message, span, loadedUrls) { return new A.SassException(loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span); }, MultiSpanSassException$(message, span, primaryLabel, secondarySpans, loadedUrls) { var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String); return new A.MultiSpanSassException(primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span); }, SassRuntimeException$(message, span, trace, loadedUrls) { return new A.SassRuntimeException(trace, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span); }, MultiSpanSassRuntimeException$(message, span, primaryLabel, secondarySpans, trace, loadedUrls) { var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String); return new A.MultiSpanSassRuntimeException(trace, primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span); }, SassFormatException$(message, span, loadedUrls) { return new A.SassFormatException(loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span); }, MultiSpanSassFormatException$(message, span, primaryLabel, secondarySpans, loadedUrls) { var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String); return new A.MultiSpanSassFormatException(primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span); }, SassScriptException$(message, argumentName) { return new A.SassScriptException(argumentName == null ? message : "$" + argumentName + ": " + message); }, MultiSpanSassScriptException$(message, primaryLabel, secondarySpans) { var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String); return new A.MultiSpanSassScriptException(primaryLabel, t1, message); }, SassException: function SassException(t0, t1, t2) { this.loadedUrls = t0; this._span_exception$_message = t1; this._span = t2; }, MultiSpanSassException: function MultiSpanSassException(t0, t1, t2, t3, t4) { var _ = this; _.primaryLabel = t0; _.secondarySpans = t1; _.loadedUrls = t2; _._span_exception$_message = t3; _._span = t4; }, SassRuntimeException: function SassRuntimeException(t0, t1, t2, t3) { var _ = this; _.trace = t0; _.loadedUrls = t1; _._span_exception$_message = t2; _._span = t3; }, MultiSpanSassRuntimeException: function MultiSpanSassRuntimeException(t0, t1, t2, t3, t4, t5) { var _ = this; _.trace = t0; _.primaryLabel = t1; _.secondarySpans = t2; _.loadedUrls = t3; _._span_exception$_message = t4; _._span = t5; }, SassFormatException: function SassFormatException(t0, t1, t2) { this.loadedUrls = t0; this._span_exception$_message = t1; this._span = t2; }, MultiSpanSassFormatException: function MultiSpanSassFormatException(t0, t1, t2, t3, t4) { var _ = this; _.primaryLabel = t0; _.secondarySpans = t1; _.loadedUrls = t2; _._span_exception$_message = t3; _._span = t4; }, SassScriptException: function SassScriptException(t0) { this.message = t0; }, MultiSpanSassScriptException: function MultiSpanSassScriptException(t0, t1, t2) { this.primaryLabel = t0; this.secondarySpans = t1; this.message = t2; }, compileStylesheet(options, graph, source, destination, ifModified) { return A.compileStylesheet$body(options, graph, source, destination, ifModified); }, compileStylesheet$body(options, graph, source, destination, ifModified) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_int_and_String_and_nullable_String), $async$returnValue, $async$handler = 2, $async$currentError, error, stackTrace, message, error0, stackTrace0, path, message0, exception, t1, $async$exception; var $async$compileStylesheet = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start $async$handler = 4; $async$goto = 7; return A._asyncAwait(A._compileStylesheetWithoutErrorHandling(options, graph, source, destination, ifModified), $async$compileStylesheet); case 7: // returning from await. $async$handler = 2; // goto after finally $async$goto = 6; break; case 4: // catch $async$handler = 3; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (t1 instanceof A.SassException) { error = t1; stackTrace = A.getTraceFromException($async$exception); if (destination != null && !options.get$emitErrorCss()) A._tryDelete(destination); message = J.toString$1$color$(error, options.get$color()); if (A._asBool(options._options.$index(0, "trace"))) { t1 = A.getTrace(error); if (t1 == null) t1 = stackTrace; } else t1 = null; $async$returnValue = A._getErrorWithStackTrace(65, message, t1); // goto return $async$goto = 1; break; } else if (t1 instanceof A.FileSystemException) { error0 = t1; stackTrace0 = A.getTraceFromException($async$exception); path = error0.path; message0 = path == null ? error0.message : "Error reading " + $.$get$context().relative$2$from(path, null) + ": " + error0.message + "."; if (A._asBool(options._options.$index(0, "trace"))) { t1 = A.getTrace(error0); if (t1 == null) t1 = stackTrace0; } else t1 = null; $async$returnValue = A._getErrorWithStackTrace(66, message0, t1); // goto return $async$goto = 1; break; } else throw $async$exception; // goto after finally $async$goto = 6; break; case 3: // uncaught // goto rethrow $async$goto = 2; break; case 6: // after finally $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$compileStylesheet, $async$completer); }, _compileStylesheetWithoutErrorHandling(options, graph, source, destination, ifModified) { return A._compileStylesheetWithoutErrorHandling$body(options, graph, source, destination, ifModified); }, _compileStylesheetWithoutErrorHandling$body(options, graph, source, destination, ifModified) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$returnValue, $async$handler = 2, $async$currentError, syntax, result, importCache, error, exception, t1, t2, t3, t4, t5, t6, t7, t8, t9, result0, t10, t11, t12, t13, logger, stylesheet, t0, css, buffer, sourceName, destinationName, nowStr, timestamp, process, importer, $async$exception; var $async$_compileStylesheetWithoutErrorHandling = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start importer = new A.FilesystemImporter(A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null)); if (ifModified) try { if (source != null && destination != null && !graph.modifiedSince$3($.$get$context().toUri$1(source), A.modificationTime(destination), importer)) { // goto return $async$goto = 1; break; } } catch (exception) { if (!(A.unwrapException(exception) instanceof A.FileSystemException)) throw exception; } syntax = null; if (A._asBoolQ(options._ifParsed$1("indented")) === true) syntax = B.Syntax_Sass_sass; else if (source != null) syntax = A.Syntax_forPath(source); else syntax = B.Syntax_SCSS_scss; result = null; $async$handler = 4; t1 = options._options; $async$goto = A._asBool(t1.$index(0, "async")) ? 7 : 9; break; case 7: // then t2 = type$.List_String._as(t1.$index(0, "load-path")); t3 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color()); t4 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl; t5 = type$.Uri; t2 = A.AsyncImportCache__toImporters(null, t2, null); importCache = new A.AsyncImportCache(t2, t3, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t4), A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_4_Uri_and_AsyncImporter_baseImporter_and_nullable_Uri_baseUrl_and_bool_forImport, t4), A.LinkedHashMap_LinkedHashMap$_empty(t5, type$.nullable_Stylesheet), A.LinkedHashMap_LinkedHashMap$_empty(t5, type$.ImporterResult)); $async$goto = source == null ? 10 : 12; break; case 10: // then $async$goto = 13; return A._asyncAwait(A.readStdin(), $async$_compileStylesheetWithoutErrorHandling); case 13: // returning from await. t2 = $async$result; t3 = syntax; t4 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color()); t5 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null); t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0; t7 = A._asBool(t1.$index(0, "quiet-deps")); t8 = A._asBool(t1.$index(0, "verbose")); t9 = options.get$emitSourceMap(); $async$goto = 14; return A._asyncAwait(A.compileStringAsync(t2, A._asBool(t1.$index(0, "charset")), options.get$fatalDeprecations(), options.get$futureDeprecations(), importCache, new A.FilesystemImporter(t5), t4, t7, t9, t6, t3, t8), $async$_compileStylesheetWithoutErrorHandling); case 14: // returning from await. result0 = $async$result; // goto join $async$goto = 11; break; case 12: // else t2 = syntax; t3 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color()); t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0; t5 = A._asBool(t1.$index(0, "quiet-deps")); t6 = A._asBool(t1.$index(0, "verbose")); t7 = options.get$emitSourceMap(); $async$goto = 15; return A._asyncAwait(A.compileAsync(source, A._asBool(t1.$index(0, "charset")), options.get$fatalDeprecations(), options.get$futureDeprecations(), importCache, t3, t5, t7, t4, t2, t6), $async$_compileStylesheetWithoutErrorHandling); case 15: // returning from await. result0 = $async$result; case 11: // join result = result0; // goto join $async$goto = 8; break; case 9: // else $async$goto = source == null ? 16 : 18; break; case 16: // then $async$goto = 19; return A._asyncAwait(A.readStdin(), $async$_compileStylesheetWithoutErrorHandling); case 19: // returning from await. t2 = $async$result; t3 = syntax; t4 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color()); t5 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null); t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0; t7 = A._asBool(t1.$index(0, "quiet-deps")); t8 = A._asBool(t1.$index(0, "verbose")); t9 = options.get$emitSourceMap(); t1 = A._asBool(t1.$index(0, "charset")); t10 = options.get$fatalDeprecations(); t11 = options.get$futureDeprecations(); t12 = type$.Deprecation; t13 = A.LinkedHashSet_LinkedHashSet$_empty(t12); t13.addAll$1(0, t10); t10 = A.LinkedHashSet_LinkedHashSet$_empty(t12); t10.addAll$1(0, t11); logger = new A.DeprecationHandlingLogger(A.LinkedHashMap_LinkedHashMap$_empty(t12, type$.int), t4, t13, t10, !t8); stylesheet = A.Stylesheet_Stylesheet$parse(t2, t3 == null ? B.Syntax_SCSS_scss : t3, logger, null); result0 = A._compileStylesheet(stylesheet, logger, graph.importCache, null, new A.FilesystemImporter(t5), null, t6, true, null, null, t7, t9, t1); logger.summarize$1$js(false); // goto join $async$goto = 17; break; case 18: // else t2 = syntax; t3 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color()); importCache = graph.importCache; t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0; t5 = A._asBool(t1.$index(0, "quiet-deps")); t6 = A._asBool(t1.$index(0, "verbose")); t7 = options.get$emitSourceMap(); t1 = A._asBool(t1.$index(0, "charset")); t8 = options.get$fatalDeprecations(); t9 = options.get$futureDeprecations(); t10 = type$.Deprecation; t11 = A.LinkedHashSet_LinkedHashSet$_empty(t10); t11.addAll$1(0, t8); t8 = A.LinkedHashSet_LinkedHashSet$_empty(t10); t8.addAll$1(0, t9); logger = new A.DeprecationHandlingLogger(A.LinkedHashMap_LinkedHashMap$_empty(t10, type$.int), t3, t11, t8, !t6); t3 = t2 == null || t2 === A.Syntax_forPath(source); if (t3) { t2 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null); t3 = A.isNodeJs() ? self.process : null; if (!J.$eq$(t3 == null ? null : J.get$platform$x(t3), "win32")) { t3 = A.isNodeJs() ? self.process : null; t3 = J.$eq$(t3 == null ? null : J.get$platform$x(t3), "darwin"); } else t3 = true; if (t3) { t3 = $.$get$context(); t6 = A._realCasePath(A.absolute(t3.normalize$1(source), null, null, null, null, null, null, null, null, null, null, null, null, null, null)); t0 = t6; t6 = t3; t3 = t0; } else { t3 = $.$get$context(); t6 = t3.canonicalize$1(0, source); t0 = t6; t6 = t3; t3 = t0; } t6 = importCache.importCanonical$3$originalUrl(new A.FilesystemImporter(t2), t6.toUri$1(t3), t6.toUri$1(source)); t6.toString; stylesheet = t6; } else { t3 = A.readFile(source); if (t2 == null) t2 = A.Syntax_forPath(source); stylesheet = A.Stylesheet_Stylesheet$parse(t3, t2, logger, $.$get$context().toUri$1(source)); } result0 = A._compileStylesheet(stylesheet, logger, importCache, null, new A.FilesystemImporter(A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null)), null, t4, true, null, null, t5, t7, t1); logger.summarize$1$js(false); case 17: // join result = result0; case 8: // join $async$handler = 2; // goto after finally $async$goto = 6; break; case 4: // catch $async$handler = 3; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (t1 instanceof A.SassException) { error = t1; if (options.get$emitErrorCss()) if (destination == null) A.print(error.toCssString$0()); else { A.ensureDir($.$get$context().dirname$1(destination)); A.writeFile(destination, error.toCssString$0() + "\n"); } throw $async$exception; } else throw $async$exception; // goto after finally $async$goto = 6; break; case 3: // uncaught // goto rethrow $async$goto = 2; break; case 6: // after finally css = result._serialize._0 + A._writeSourceMap(options, result._serialize._1, destination); if (destination == null) { if (css.length !== 0) A.print(css); } else { A.ensureDir($.$get$context().dirname$1(destination)); A.writeFile(destination, css + "\n"); } t1 = options._options; if (!A._asBool(t1.$index(0, "quiet"))) t1 = !A._asBool(t1.$index(0, "update")) && !A._asBool(t1.$index(0, "watch")); else t1 = true; if (t1) { // goto return $async$goto = 1; break; } buffer = new A.StringBuffer(""); if (source == null) sourceName = "stdin"; else { t1 = $.$get$context(); sourceName = t1.prettyUri$1(t1.toUri$1(source)); } destination.toString; t1 = $.$get$context(); destinationName = t1.prettyUri$1(t1.toUri$1(destination)); nowStr = new A.DateTime(Date.now(), false).toString$0(0); timestamp = B.JSString_methods.substring$2(nowStr, 0, nowStr.length - 7); t1 = options.get$color() ? buffer._contents = "" + "\x1b[90m" : ""; t1 = buffer._contents = t1 + ("[" + timestamp + "] "); if (options.get$color()) t1 = buffer._contents = t1 + "\x1b[32m"; t1 += "Compiled " + sourceName + " to " + destinationName + "."; buffer._contents = t1; if (options.get$color()) buffer._contents = t1 + "\x1b[0m"; process = A.isNodeJs() ? self.process : null; if (process != null) t1 = true; else { process = null; t1 = false; } if (t1) { t1 = J.get$stdout$x(process); J.write$1$x(t1, buffer.toString$0(0) + "\n"); } else { t1 = self.console; J.log$1$x(t1, buffer); } case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_compileStylesheetWithoutErrorHandling, $async$completer); }, _writeSourceMap(options, sourceMap, destination) { var t1, sourceMapText, url, sourceMapPath, t2, escapedUrl; if (sourceMap == null) return ""; if (destination != null) { t1 = $.$get$context(); sourceMap.targetUrl = t1.toUri$1(A.ParsedPath_ParsedPath$parse(destination, t1.style).get$basename()).toString$0(0); } A.mapInPlace(sourceMap.urls, new A._writeSourceMap_closure(options, destination)); t1 = options._options; sourceMapText = B.C_JsonCodec.encode$2$toEncodable(sourceMap.toJson$1$includeSourceContents(A._asBool(t1.$index(0, "embed-sources"))), null); if (A._asBool(t1.$index(0, "embed-source-map"))) url = A.Uri_Uri$dataFromString(sourceMapText, B.C_Utf8Codec, "application/json"); else { destination.toString; sourceMapPath = destination + ".map"; t2 = $.$get$context(); A.ensureDir(t2.dirname$1(sourceMapPath)); A.writeFile(sourceMapPath, sourceMapText); url = t2.toUri$1(t2.relative$2$from(sourceMapPath, t2.dirname$1(destination))); } t2 = url.toString$0(0); escapedUrl = A.stringReplaceAllUnchecked(t2, "*/", "%2A/"); t1 = (J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0) === B.OutputStyle_1 ? "" : "\n\n"; return t1 + ("/*# sourceMappingURL=" + escapedUrl + " */"); }, _tryDelete(path) { var exception; try { A.deleteFile(path); } catch (exception) { if (!(A.unwrapException(exception) instanceof A.FileSystemException)) throw exception; } }, _getErrorWithStackTrace(exitCode, error, stackTrace) { 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); }, _writeSourceMap_closure: function _writeSourceMap_closure(t0, t1) { this.options = t0; this.destination = t1; }, compileStylesheets(options, graph, sourcesToDestinations, ifModified) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.bool), $async$returnValue, _1_4, source, destination, t2, t3, _i, t4, printedError, errorWithStackTrace, code, error, stackTrace, buffer, t1, $async$temp1; var $async$compileStylesheets = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = type$.nullable_String; t1 = A.List_List$of(A.MapExtensions_get_pairs(sourcesToDestinations, t1, t1), true, type$.Record_2_nullable_String_and_nullable_String); _1_4 = A._InitializedCell$(new A.compileStylesheets_closure(t1)); if (t1.length === 1) { source = _1_4._readFinal$0()._0; destination = _1_4._readFinal$0()._1; t2 = true; } else { source = null; destination = null; t2 = false; } $async$goto = t2 ? 4 : 5; break; case 4: // then $async$temp1 = A; $async$goto = 6; return A._asyncAwait(A.compileStylesheet(options, graph, source, destination, ifModified), $async$compileStylesheets); case 6: // returning from await. t1 = $async$temp1._setArrayType([$async$result], type$.JSArray_nullable_Record_3_int_and_String_and_nullable_String); // goto break $label0$0 $async$goto = 3; break; case 5: // join t2 = A._setArrayType([], type$.JSArray_Future_nullable_Record_3_int_and_String_and_nullable_String); for (t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, A.throwConcurrentModificationError)(t1), ++_i) { t4 = t1[_i]; source = t4._0; destination = t4._1; t2.push(A.compileStylesheet(options, graph, source, destination, ifModified)); } $async$goto = 7; return A._asyncAwait(A.Future_wait(t2, A._asBool(options._options.$index(0, "stop-on-error")), type$.nullable_Record_3_int_and_String_and_nullable_String), $async$compileStylesheets); case 7: // returning from await. t1 = $async$result; // goto break $label0$0 $async$goto = 3; break; case 3: // break $label0$0 for (t1 = J.get$iterator$ax(t1), printedError = false; t1.moveNext$0();) { errorWithStackTrace = t1.get$current(t1); if (errorWithStackTrace == null) continue; code = errorWithStackTrace._0; error = errorWithStackTrace._1; stackTrace = errorWithStackTrace._2; t2 = self.process; if (t2 == null) t2 = null; else { t2 = J.get$release$x(t2); t2 = t2 == null ? null : J.get$name$x(t2); } t2 = J.$eq$(t2, "node") ? self.process : null; t2 = t2 == null ? null : J.get$exitCode$x(t2); if (t2 == null) t2 = 0; t2 = Math.max(t2, code); t3 = self.process; if (t3 == null) t3 = null; else { t3 = J.get$release$x(t3); t3 = t3 == null ? null : J.get$name$x(t3); } t3 = J.$eq$(t3, "node") ? self.process : null; if (t3 != null) J.set$exitCode$x(t3, t2); buffer = new A.StringBuffer(""); t2 = (printedError ? buffer._contents = "" + "\n" : "") + error; buffer._contents = t2; if (stackTrace != null) { t2 += "\n"; buffer._contents = t2; t2 += "\n"; buffer._contents = t2; buffer._contents = t2 + stackTrace; } A.printError(buffer); printedError = true; } $async$returnValue = !printedError; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$compileStylesheets, $async$completer); }, compileStylesheets_closure: function compileStylesheets_closure(t0) { this._1_0 = t0; }, ExecutableOptions__separator(text) { var t1 = $.$get$ExecutableOptions__separatorBar(), t2 = B.JSString_methods.$mul(t1, 3), t3 = A.hasTerminal() ? "\x1b[1m" : "", t4 = A.hasTerminal() ? "\x1b[0m" : ""; return t2 + " " + t3 + text + t4 + " " + B.JSString_methods.$mul(t1, 35 - text.length); }, ExecutableOptions__fail(message) { return A.throwExpression(A.UsageException$(message)); }, ExecutableOptions_ExecutableOptions$parse(args) { var options, error, t1, t2, exception; try { t1 = $.$get$ExecutableOptions__parser(); t2 = A.ListQueue$(type$.String); t2.addAll$1(0, args); t2 = A.Parser$(null, t1, t2, null, null).parse$0(); if (t2.wasParsed$1("poll") && !A._asBool(t2.$index(0, "watch"))) A.ExecutableOptions__fail("--poll may not be passed without --watch."); options = new A.ExecutableOptions(t2); if (A._asBool(options._options.$index(0, "help"))) A.ExecutableOptions__fail("Compile Sass to CSS."); return options; } catch (exception) { t1 = A.unwrapException(exception); if (type$.FormatException._is(t1)) { error = t1; A.ExecutableOptions__fail(J.get$message$x(error)); } else throw exception; } }, UsageException$(message) { return new A.UsageException(message); }, ExecutableOptions: function ExecutableOptions(t0) { var _ = this; _._options = t0; _.__ExecutableOptions_interactive_FI = $; _._sourcesToDestinations = null; _.__ExecutableOptions__sourceDirectoriesToDestinations_F = $; _._fatalDeprecations = null; }, ExecutableOptions__parser_closure: function ExecutableOptions__parser_closure() { }, ExecutableOptions__parser__closure: function ExecutableOptions__parser__closure(t0) { this._0_0 = t0; }, ExecutableOptions__parser__closure0: function ExecutableOptions__parser__closure0(t0) { this._1_0 = t0; }, ExecutableOptions_interactive_closure: function ExecutableOptions_interactive_closure(t0) { this.$this = t0; }, ExecutableOptions_emitErrorCss_closure: function ExecutableOptions_emitErrorCss_closure() { }, ExecutableOptions_fatalDeprecations_closure: function ExecutableOptions_fatalDeprecations_closure(t0) { this.$this = t0; }, UsageException: function UsageException(t0) { this.message = t0; }, watch(options, graph) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$returnValue, t1, t2, t3, t4, t5, t6, dirWatcher, sourcesToDestinations; var $async$watch = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start options._ensureSources$0(); t1 = options.__ExecutableOptions__sourceDirectoriesToDestinations_F; t1 === $ && A.throwUnnamedLateFieldNI(); t2 = type$.String; t1 = t1.cast$2$0(0, t2, t2); t1 = A.List_List$of(t1.get$keys(t1), true, t2); 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();) { t4 = t3.get$current(t3); t1.push($.$get$context().dirname$1(t4)); } t3 = options._options; B.JSArray_methods.addAll$1(t1, type$.List_String._as(t3.$index(0, "load-path"))); t4 = A._asBool(t3.$index(0, "poll")); t5 = type$.Stream_WatchEvent; t6 = A.PathMap__create(null, t5); t5 = new A.StreamGroup(B._StreamGroupState_dormant, A.LinkedHashMap_LinkedHashMap$_empty(t5, type$.nullable_StreamSubscription_WatchEvent), type$.StreamGroup_WatchEvent); t5.__StreamGroup__controller_A = A.StreamController_StreamController(t5.get$_onCancel(), t5.get$_onListen(), t5.get$_onPause(), t5.get$_onResume(), true, type$.WatchEvent); dirWatcher = new A.MultiDirWatcher(new A.PathMap(t6, type$.PathMap_Stream_WatchEvent), t5, t4); $async$goto = 3; 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); case 3: // returning from await. options._ensureSources$0(); sourcesToDestinations = options._sourcesToDestinations.cast$2$0(0, t2, t2); for (t1 = J.get$iterator$ax(sourcesToDestinations.get$keys(sourcesToDestinations)); t1.moveNext$0();) { t2 = t1.get$current(t1); t4 = $.$get$context(); t5 = t4.absolute$15(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null); t6 = self.process; if (t6 == null) t6 = null; else { t6 = J.get$release$x(t6); t6 = t6 == null ? null : J.get$name$x(t6); } t6 = J.$eq$(t6, "node") ? self.process : null; if (!J.$eq$(t6 == null ? null : J.get$platform$x(t6), "win32")) { t6 = self.process; if (t6 == null) t6 = null; else { t6 = J.get$release$x(t6); t6 = t6 == null ? null : J.get$name$x(t6); } t6 = J.$eq$(t6, "node") ? self.process : null; t6 = J.$eq$(t6 == null ? null : J.get$platform$x(t6), "darwin"); } else t6 = true; graph.addCanonical$4$recanonicalize(new A.FilesystemImporter(t5), t4.toUri$1(t6 ? A._realCasePath(t4.absolute$15(t4.normalize$1(t2), null, null, null, null, null, null, null, null, null, null, null, null, null, null)) : t4.canonicalize$1(0, t2)), t4.toUri$1(t2), false); } $async$goto = 4; return A._asyncAwait(A.compileStylesheets(options, graph, sourcesToDestinations, true), $async$watch); case 4: // returning from await. if (!$async$result && A._asBool(t3.$index(0, "stop-on-error"))) { t1 = dirWatcher._group.__StreamGroup__controller_A; t1 === $ && A.throwUnnamedLateFieldNI(); new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$1(0, null).cancel$0(); // goto return $async$goto = 1; break; } A.print("Sass is watching for changes. Press Ctrl-C to stop.\n"); $async$goto = 5; return A._asyncAwait(new A._Watcher(options, graph).watch$1(0, dirWatcher), $async$watch); case 5: // returning from await. case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$watch, $async$completer); }, watch_closure: function watch_closure(t0) { this.dirWatcher = t0; }, _Watcher: function _Watcher(t0, t1) { this._watch$_options = t0; this._graph = t1; }, _Watcher__debounceEvents_closure: function _Watcher__debounceEvents_closure() { }, _Watcher__debounceEvents__closure: function _Watcher__debounceEvents__closure(t0) { this._0_0 = t0; }, _Watcher__debounceEvents__closure0: function _Watcher__debounceEvents__closure0(t0) { this._0_0 = t0; }, _Watcher__debounceEvents__closure1: function _Watcher__debounceEvents__closure1(t0) { this._1_0 = t0; }, EmptyExtensionStore: function EmptyExtensionStore() { }, Extension: function Extension(t0, t1, t2, t3, t4) { var _ = this; _.extender = t0; _.target = t1; _.mediaContext = t2; _.isOptional = t3; _.span = t4; }, Extender: function Extender(t0, t1) { this.selector = t0; this.isOriginal = t1; this._extension = null; }, ExtensionStore__extendOrReplace(selector, source, targets, mode, span) { var t1, t2, t3, t4, t5, t6, t7, t8, _i, complex, compound, t9, t10, t11, _i0, simple, t12, _i1, t13, t14, extender = A.ExtensionStore$_mode(mode); if (!selector.accept$1(B._IsInvisibleVisitor_true)) extender._originals.addAll$1(0, selector.components); 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) { complex = t1[_i]; compound = complex.get$singleCompound(); if (compound == null) throw A.wrapException(A.SassScriptException$("Can't extend complex selector " + A.S(complex) + ".", null)); t9 = A.LinkedHashMap_LinkedHashMap$_empty(t7, t8); for (t10 = compound.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0) { simple = t10[_i0]; t12 = A.LinkedHashMap_LinkedHashMap$_empty(t5, t6); for (_i1 = 0; _i1 < t4; ++_i1) { complex = t3[_i1]; complex.get$specificity(); t13 = new A.Extender(complex, false); t14 = new A.Extension(t13, simple, null, true, span); t13._extension = t14; t12.$indexSet(0, complex, t14); } t9.$indexSet(0, simple, t12); } selector = extender._extendList$2(selector, t9); } return selector; }, ExtensionStore$() { var t1 = type$.SimpleSelector; 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); }, ExtensionStore$_mode(_mode) { var t1 = type$.SimpleSelector; 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); }, ExtensionStore: function ExtensionStore(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _._selectors = t0; _._extensions = t1; _._extensionsByExtender = t2; _._mediaContexts = t3; _._sourceSpecificity = t4; _._originals = t5; _._mode = t6; }, ExtensionStore_extensionsWhereTarget_closure: function ExtensionStore_extensionsWhereTarget_closure() { }, ExtensionStore__registerSelector_closure: function ExtensionStore__registerSelector_closure() { }, ExtensionStore__registerSelector_closure0: function ExtensionStore__registerSelector_closure0(t0) { this._0_0 = t0; }, ExtensionStore_addExtension_closure: function ExtensionStore_addExtension_closure() { }, ExtensionStore_addExtension_closure0: function ExtensionStore_addExtension_closure0() { }, ExtensionStore_addExtension_closure1: function ExtensionStore_addExtension_closure1(t0) { this.complex = t0; }, ExtensionStore__simpleSelectors_closure: function ExtensionStore__simpleSelectors_closure(t0) { this._0_0 = t0; }, ExtensionStore__extendExistingExtensions_closure: function ExtensionStore__extendExistingExtensions_closure() { }, ExtensionStore__extendExistingExtensions_closure0: function ExtensionStore__extendExistingExtensions_closure0() { }, ExtensionStore_addExtensions_closure: function ExtensionStore_addExtensions_closure() { }, ExtensionStore__extendComplex_closure: function ExtensionStore__extendComplex_closure(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.complex = t2; }, ExtensionStore__extendComplex__closure: function ExtensionStore__extendComplex__closure(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.complex = t2; }, ExtensionStore__extendCompound_closure: function ExtensionStore__extendCompound_closure() { }, ExtensionStore__extendCompound_closure0: function ExtensionStore__extendCompound_closure0() { }, ExtensionStore__extendCompound_closure1: function ExtensionStore__extendCompound_closure1(t0) { this.original = t0; }, ExtensionStore__extendSimple_withoutPseudo: function ExtensionStore__extendSimple_withoutPseudo(t0, t1, t2) { this.$this = t0; this.extensions = t1; this.targetsUsed = t2; }, ExtensionStore__extendSimple_closure: function ExtensionStore__extendSimple_closure(t0, t1) { this.$this = t0; this.withoutPseudo = t1; }, ExtensionStore__extendSimple_closure0: function ExtensionStore__extendSimple_closure0() { }, ExtensionStore__extendPseudo_closure: function ExtensionStore__extendPseudo_closure() { }, ExtensionStore__extendPseudo_closure0: function ExtensionStore__extendPseudo_closure0() { }, ExtensionStore__extendPseudo_closure1: function ExtensionStore__extendPseudo_closure1() { }, ExtensionStore__extendPseudo_closure2: function ExtensionStore__extendPseudo_closure2(t0) { this.pseudo = t0; }, ExtensionStore__extendPseudo_closure3: function ExtensionStore__extendPseudo_closure3(t0, t1) { this.pseudo = t0; this.selector = t1; }, ExtensionStore__trim_closure: function ExtensionStore__trim_closure(t0, t1) { this._box_0 = t0; this.complex1 = t1; }, ExtensionStore__trim_closure0: function ExtensionStore__trim_closure0(t0, t1) { this._box_0 = t0; this.complex1 = t1; }, ExtensionStore_clone_closure: function ExtensionStore_clone_closure(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.newSelectors = t1; _.oldToNewSelectors = t2; _.newMediaContexts = t3; }, unifyComplex(complexes, span) { var t2, trailingCombinator, leadingCombinator, unifiedBase, t3, _0_6, newLeadingCombinator, t4, base, _1_1, newTrailingCombinator, _i, t5, t6, t7, t8, _null = null, t1 = J.getInterceptor$asx(complexes); if (t1.get$length(complexes) === 1) return complexes; for (t2 = t1.get$iterator(complexes), trailingCombinator = _null, leadingCombinator = trailingCombinator, unifiedBase = leadingCombinator; t2.moveNext$0();) { t3 = t2.get$current(t2); if (t3.accept$1(B.C__IsUselessVisitor)) return _null; _0_6 = A._InitializedCell$(new A.unifyComplex_closure(t3)); t3 = t3.components; if (t3.length === 1) if (J.get$length$asx(_0_6._readFinal$0()) === 1) { newLeadingCombinator = J.$index$asx(_0_6._readFinal$0(), 0); t4 = true; } else { newLeadingCombinator = _null; t4 = false; } else { newLeadingCombinator = _null; t4 = false; } if (t4) if (leadingCombinator == null) leadingCombinator = newLeadingCombinator; else if (!leadingCombinator.$eq(0, newLeadingCombinator)) return _null; base = B.JSArray_methods.get$last(t3); _1_1 = A._InitializedCell$(new A.unifyComplex_closure0(base)); if (J.get$length$asx(_1_1._readFinal$0()) === 1) { newTrailingCombinator = J.$index$asx(_1_1._readFinal$0(), 0); t3 = true; } else { newTrailingCombinator = _null; t3 = false; } if (t3) { if (trailingCombinator != null && !trailingCombinator.$eq(0, newTrailingCombinator)) return _null; trailingCombinator = newTrailingCombinator; } if (unifiedBase == null) unifiedBase = base.selector.components; else for (t3 = base.selector.components, t4 = t3.length, _i = 0; _i < t4; ++_i) { unifiedBase = t3[_i].unify$1(unifiedBase); if (unifiedBase == null) return _null; } } t2 = type$.JSArray_ComplexSelector; t3 = A._setArrayType([], t2); for (t4 = t1.get$iterator(complexes); t4.moveNext$0();) { t5 = t4.get$current(t4); t6 = t5.components; t7 = t6.length; if (t7 > 1) { t8 = t5.leadingCombinators; t3.push(A.ComplexSelector$(t8, B.JSArray_methods.take$1(t6, t7 - 1), t5.span, t5.lineBreak)); } } t4 = leadingCombinator == null ? B.List_empty1 : A._setArrayType([leadingCombinator], type$.JSArray_CssValue_Combinator); unifiedBase.toString; t5 = A.CompoundSelector$(unifiedBase, span); t6 = trailingCombinator == null ? B.List_empty1 : A._setArrayType([trailingCombinator], type$.JSArray_CssValue_Combinator); base = A.ComplexSelector$(t4, A._setArrayType([new A.ComplexSelectorComponent(t5, A.List_List$unmodifiable(t6, type$.CssValue_Combinator), span)], type$.JSArray_ComplexSelectorComponent), span, t1.any$1(complexes, new A.unifyComplex_closure1())); if (t3.length === 0) t1 = A._setArrayType([base], t2); else { t1 = A.List_List$of(A.IterableExtension_get_exceptLast(t3), true, type$.ComplexSelector); t1.push(B.JSArray_methods.get$last(t3).concatenate$2(base, span)); } return A.weave(t1, span, false); }, unifyCompound(compound1, compound2) { var t1, t2, _i, unified, result = compound2.components; for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i, result = unified) { unified = t1[_i].unify$1(result); if (unified == null) return null; } return A.CompoundSelector$(result, compound1.span); }, unifyUniversalAndElement(selector1, selector2) { var namespace, $name, t1, _0_0 = A._namespaceAndName(selector1, "selector1"), namespace1 = _0_0._0, name1 = _0_0._1, _1_0 = A._namespaceAndName(selector2, "selector2"), namespace2 = _1_0._0, name2 = _1_0._1; if (namespace1 == namespace2 || namespace2 === "*") namespace = namespace1; else { if (namespace1 !== "*") return null; namespace = namespace2; } if (name1 == name2 || name2 == null) $name = name1; else { if (!(name1 == null || name1 === "*")) return null; $name = name2; } t1 = selector1.span; return $name == null ? new A.UniversalSelector(namespace, t1) : new A.TypeSelector(new A.QualifiedName($name, namespace), t1); }, _namespaceAndName(selector, $name) { var namespace, t1, name0, _null = null, _0_4 = A._InitializedCell$(new A._namespaceAndName_closure(selector)); $label0$0: { if (selector instanceof A.UniversalSelector) { namespace = selector.namespace; t1 = true; } else { namespace = _null; t1 = false; } if (t1) { t1 = new A._Record_2(namespace, _null); break $label0$0; } if (selector instanceof A.TypeSelector) { name0 = _0_4._readFinal$0().name; namespace = _0_4._readFinal$0().namespace; t1 = true; } else { namespace = _null; name0 = namespace; t1 = false; } if (t1) { t1 = new A._Record_2(namespace, name0); break $label0$0; } t1 = A.throwExpression(A.ArgumentError$value(selector, $name, string$.must_b)); } return t1; }, weave(complexes, span, forceLineBreak) { var complex, t2, prefixes, t3, t4, t5, t6, i, t7, t8, _i, t9, t10, _i0, parentPrefix, t11, t12, t1 = J.getInterceptor$asx(complexes); if (t1.get$length(complexes) === 1) { complex = t1.$index(complexes, 0); t2 = true; } else { complex = null; t2 = false; } if (t2) { if (!forceLineBreak || complex.lineBreak) return complexes; return A._setArrayType([A.ComplexSelector$(complex.leadingCombinators, complex.components, complex.span, true)], type$.JSArray_ComplexSelector); } t2 = type$.JSArray_ComplexSelector; prefixes = A._setArrayType([t1.get$first(complexes)], t2); for (t1 = t1.skip$1(complexes, 1), t1 = new A.ListIterator(t1, t1.get$length(t1)), t3 = type$.ComplexSelectorComponent, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t5 = t1.__internal$_current; if (t5 == null) t5 = t4._as(t5); t6 = t5.components; if (t6.length === 1) { for (i = 0; i < prefixes.length; ++i) prefixes[i] = prefixes[i].concatenate$3$forceLineBreak(t5, span, forceLineBreak); continue; } t7 = A._setArrayType([], t2); for (t8 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t8 || (0, A.throwConcurrentModificationError)(prefixes), ++_i) { t9 = A._weaveParents(prefixes[_i], t5, span); if (t9 == null) t9 = B.List_empty2; t10 = t9.length; _i0 = 0; for (; _i0 < t9.length; t9.length === t10 || (0, A.throwConcurrentModificationError)(t9), ++_i0) { parentPrefix = t9[_i0]; t11 = B.JSArray_methods.get$last(t6); t12 = A.List_List$of(parentPrefix.components, true, t3); t12.push(t11); t11 = parentPrefix.lineBreak || forceLineBreak; t7.push(A.ComplexSelector$(parentPrefix.leadingCombinators, t12, span, t11)); } } prefixes = t7; } return prefixes; }, _weaveParents(prefix, base, span) { var t1, queue1, queue2, trailingCombinators, _0_0, _0_1, _0_3, rootish1, rootish2, rootish, t2, t3, rootish_case_0, rootish_case_1, groups1, groups2, lcs, choices, t4, _i, group, t5, t6, t7, _i0, chunk, t8, t9, _null = null, leadingCombinators = A._mergeLeadingCombinators(prefix.leadingCombinators, base.leadingCombinators); if (leadingCombinators == null) return _null; t1 = type$.ComplexSelectorComponent; queue1 = A.QueueList_QueueList$from(prefix.components, t1); queue2 = A.QueueList_QueueList$from(A.IterableExtension_get_exceptLast(base.components), t1); trailingCombinators = A._mergeTrailingCombinators(queue1, queue2, span, _null); if (trailingCombinators == null) return _null; $label0$0: { _0_0 = new A._Record_2(A._firstIfRootish(queue1), A._firstIfRootish(queue2)); _0_1 = A._InitializedCell$(new A._weaveParents_closure(_0_0)); _0_3 = A._InitializedCell$(new A._weaveParents_closure0(_0_0)); if (_0_1._readFinal$0() != null) { rootish1 = _0_1._readFinal$0(); t1 = true; } else { rootish1 = _null; t1 = false; } if (t1) if (_0_3._readFinal$0() != null) { rootish2 = _0_3._readFinal$0(); t1 = true; } else { rootish2 = _null; t1 = false; } else { rootish2 = _null; t1 = false; } if (t1) { rootish = A.unifyCompound(rootish1.selector, rootish2.selector); if (rootish == null) return _null; t1 = rootish1.combinators; t2 = rootish1.span; t3 = type$.CssValue_Combinator; queue1.addFirst$1(new A.ComplexSelectorComponent(rootish, A.List_List$unmodifiable(t1, t3), t2)); queue2.addFirst$1(new A.ComplexSelectorComponent(rootish, A.List_List$unmodifiable(rootish2.combinators, t3), t2)); break $label0$0; } if (_0_1._readFinal$0() != null) { rootish_case_0 = _0_1._readFinal$0(); t1 = true; } else { rootish_case_0 = _null; t1 = false; } if (t1) if (_0_3._readFinal$0() == null) { t1 = rootish_case_0; t2 = true; } else { t1 = _null; t2 = false; } else { t1 = _null; t2 = false; } if (!t2) if (_0_1._readFinal$0() == null) { if (_0_3._readFinal$0() != null) { rootish_case_1 = _0_3._readFinal$0(); t2 = true; } else { rootish_case_1 = _null; t2 = false; } if (t2) { t1 = rootish_case_1; t2 = true; } else t2 = false; } else t2 = false; else t2 = true; if (t2) { queue1.addFirst$1(t1); queue2.addFirst$1(t1); } } groups1 = A._groupSelectors(queue1); groups2 = A._groupSelectors(queue2); t1 = type$.List_ComplexSelectorComponent; lcs = A.longestCommonSubsequence(groups2, groups1, new A._weaveParents_closure1(span), t1); choices = A._setArrayType([], type$.JSArray_List_Iterable_ComplexSelectorComponent); 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) { group = lcs[_i]; t5 = A._setArrayType([], t3); for (t6 = A._chunks(groups1, groups2, new A._weaveParents_closure2(group), t1), t7 = t6.length, _i0 = 0; _i0 < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i0) { chunk = t6[_i0]; t8 = A._setArrayType([], t4); for (t9 = J.get$iterator$ax(chunk); t9.moveNext$0();) B.JSArray_methods.addAll$1(t8, t9.get$current(t9)); t5.push(t8); } choices.push(t5); choices.push(A._setArrayType([group], t3)); groups1.removeFirst$0(); groups2.removeFirst$0(); } t2 = A._setArrayType([], t3); for (t1 = A._chunks(groups1, groups2, new A._weaveParents_closure3(), t1), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, A.throwConcurrentModificationError)(t1), ++_i) { chunk = t1[_i]; t5 = A._setArrayType([], t4); for (t6 = J.get$iterator$ax(chunk); t6.moveNext$0();) B.JSArray_methods.addAll$1(t5, t6.get$current(t6)); t2.push(t5); } choices.push(t2); B.JSArray_methods.addAll$1(choices, trailingCombinators); t1 = A._setArrayType([], type$.JSArray_ComplexSelector); for (t2 = J.get$iterator$ax(A.paths(new A.WhereIterable(choices, new A._weaveParents_closure4(), type$.WhereIterable_List_Iterable_ComplexSelectorComponent), type$.Iterable_ComplexSelectorComponent)), t3 = !prefix.lineBreak, t5 = base.lineBreak; t2.moveNext$0();) { t6 = t2.get$current(t2); t7 = A._setArrayType([], t4); for (t6 = J.get$iterator$ax(t6); t6.moveNext$0();) B.JSArray_methods.addAll$1(t7, t6.get$current(t6)); t1.push(A.ComplexSelector$(leadingCombinators, t7, span, !t3 || t5)); } return t1; }, _firstIfRootish(queue) { var first, t1, t2, _i, simple, t3; if (queue.get$length(queue) >= 1) { first = queue.$index(0, 0); t1 = true; } else { first = null; t1 = false; } if (t1) for (t1 = first.selector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) { simple = t1[_i]; if (simple instanceof A.PseudoSelector) if (simple.isClass) t3 = $._rootishPseudoClasses.contains$1(0, simple.normalizedName); else t3 = false; else t3 = false; if (t3) { queue.removeFirst$0(); return first; } } return null; }, _mergeLeadingCombinators(combinators1, combinators2) { var t1, t2, combinators, _null = null, _0_0 = new A._Record_2(combinators1, combinators2), _0_1 = A._InitializedCell$(new A._mergeLeadingCombinators_closure(_0_0)), _0_4 = A._InitializedCell$(new A._mergeLeadingCombinators_closure0(_0_0)), _0_7 = A._InitializedCell$(new A._mergeLeadingCombinators_closure1(_0_1)), _0_11 = A._InitializedCell$(new A._mergeLeadingCombinators_closure2(_0_4)); $label0$0: { if (_0_1._readFinal$0() == null || _0_4._readFinal$0() == null) { t1 = _null; break $label0$0; } t1 = type$.List_CssValue_Combinator; if (!(t1._is(_0_1._readFinal$0()) && _0_7._readFinal$0() > 1)) t2 = t1._is(_0_4._readFinal$0()) && _0_11._readFinal$0() > 1; else t2 = true; if (t2) { t1 = _null; break $label0$0; } if (t1._is(_0_1._readFinal$0())) if (_0_7._readFinal$0() <= 0) { combinators = _0_4._readFinal$0(); t2 = true; } else { combinators = _null; t2 = false; } else { combinators = _null; t2 = false; } if (!t2) { combinators = _0_1._readFinal$0(); t1 = t1._is(_0_4._readFinal$0()) && _0_11._readFinal$0() <= 0; } else t1 = true; if (t1) { t1 = combinators; break $label0$0; } t1 = B.C_ListEquality.equals$2(0, combinators1, combinators2) ? combinators1 : _null; break $label0$0; } return t1; }, _mergeTrailingCombinators(components1, components2, span, result) { var _0_1, last, t1, _1_1, t2, t3, _4_0, _4_1, _4_3, _4_4, _4_5, _4_9, _4_6, _4_7, _4_10, component1, component2, t4, t5, choices, _2_0, unified, followingComponents, nextComponents, followingComponents0, next, following, _3_0, siblingComponents_case_0, siblingComponents_case_1, combinator1, combinator2, combinator_case_0, combinatorComponents_case_0, descendantComponents_case_0, combinator_case_1, descendantComponents_case_1, combinatorComponents_case_1, _null = null; if (result == null) result = A.QueueList$(_null, type$.List_List_ComplexSelectorComponent); _0_1 = A._InitializedCell$(new A._mergeTrailingCombinators_closure(components1)); $label0$0: { if (_0_1._readFinal$0() >= 1) { last = components1.$index(0, _0_1._readFinal$0() - 1); t1 = true; } else { last = _null; t1 = false; } if (t1) { t1 = last.combinators; break $label0$0; } t1 = B.List_empty1; break $label0$0; } _1_1 = A._InitializedCell$(new A._mergeTrailingCombinators_closure0(components2)); $label1$1: { if (_1_1._readFinal$0() >= 1) { last = components2.$index(0, _1_1._readFinal$0() - 1); t2 = true; } else { last = _null; t2 = false; } if (t2) { t2 = last.combinators; break $label1$1; } t2 = B.List_empty1; break $label1$1; } t3 = t1.length; if (t3 === 0 && t2.length === 0) return result; if (t3 > 1 || t2.length > 1) return _null; $label2$2: { t3 = A.IterableExtension_get_firstOrNull(t1); t3 = t3 == null ? _null : t3.value; t2 = A.IterableExtension_get_firstOrNull(t2); _4_0 = new A._Record_4([t3, t2 == null ? _null : t2.value, components1, components2]); _4_1 = A._InitializedCell$(new A._mergeTrailingCombinators_closure1(_4_0)); _4_3 = A._InitializedCell$(new A._mergeTrailingCombinators_closure2(_4_1)); _4_4 = A._InitializedCell$(new A._mergeTrailingCombinators_closure3(_4_0)); _4_5 = A._InitializedCell$(new A._mergeTrailingCombinators_closure4(_4_4)); _4_9 = A._InitializedCell$(new A._mergeTrailingCombinators_closure5(_4_4)); _4_6 = A._InitializedCell$(new A._mergeTrailingCombinators_closure6(_4_0)); _4_7 = A._InitializedCell$(new A._mergeTrailingCombinators_closure7(_4_0)); _4_10 = A._InitializedCell$(new A._mergeTrailingCombinators_closure8(_4_1)); if (_4_3._readFinal$0() && _4_5._readFinal$0()) { component1 = components1.removeLast$0(0); component2 = components2.removeLast$0(0); t2 = component1.selector; t3 = component2.selector; if (A.compoundIsSuperselector(t2, t3, _null)) result.addFirst$1(A._setArrayType([A._setArrayType([component2], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent)); else { t4 = type$.JSArray_ComplexSelectorComponent; t5 = type$.JSArray_List_ComplexSelectorComponent; if (A.compoundIsSuperselector(t3, t2, _null)) result.addFirst$1(A._setArrayType([A._setArrayType([component1], t4)], t5)); else { choices = A._setArrayType([A._setArrayType([component1, component2], t4), A._setArrayType([component2, component1], t4)], t5); _2_0 = A.unifyCompound(t2, t3); if (_2_0 != null) { unified = _2_0; t2 = true; } else { unified = _null; t2 = false; } if (t2) choices.push(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)], t4)); result.addFirst$1(choices); } } break $label2$2; } if (_4_3._readFinal$0()) if (_4_9._readFinal$0()) { followingComponents = _4_6._readFinal$0(); nextComponents = _4_7._readFinal$0(); nextComponents = nextComponents; t2 = true; } else { nextComponents = _null; followingComponents = nextComponents; t2 = false; } else { nextComponents = _null; followingComponents = nextComponents; t2 = false; } if (!t2) if (_4_10._readFinal$0()) if (_4_5._readFinal$0()) { nextComponents = _4_6._readFinal$0(); followingComponents0 = _4_7._readFinal$0(); followingComponents = followingComponents0; t2 = true; } else t2 = false; else t2 = false; else t2 = true; if (t2) { next = nextComponents.removeLast$0(0); following = followingComponents.removeLast$0(0); t1 = following.selector; t2 = next.selector; t3 = type$.JSArray_ComplexSelectorComponent; t4 = type$.JSArray_List_ComplexSelectorComponent; if (A.compoundIsSuperselector(t1, t2, _null)) result.addFirst$1(A._setArrayType([A._setArrayType([next], t3)], t4)); else { t4 = A._setArrayType([A._setArrayType([following, next], t3)], t4); _3_0 = A.unifyCompound(t1, t2); if (_3_0 != null) { unified = _3_0; t1 = true; } else { unified = _null; t1 = false; } if (t1) t4.push(A._setArrayType([new A.ComplexSelectorComponent(unified, A.List_List$unmodifiable(next.combinators, type$.CssValue_Combinator), span)], t3)); result.addFirst$1(t4); } break $label2$2; } if (B.Combinator_Cht === _4_1._readFinal$0()) if (_4_9._readFinal$0() || _4_5._readFinal$0()) { siblingComponents_case_0 = _4_7._readFinal$0(); t2 = siblingComponents_case_0; t3 = true; } else { t2 = _null; t3 = false; } else { t2 = _null; t3 = false; } if (!t3) if (_4_10._readFinal$0() || _4_3._readFinal$0()) if (B.Combinator_Cht === _4_4._readFinal$0()) { siblingComponents_case_1 = _4_6._readFinal$0(); t2 = siblingComponents_case_1; t3 = true; } else t3 = false; else t3 = false; else t3 = true; if (t3) { result.addFirst$1(A._setArrayType([A._setArrayType([t2.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent)); break $label2$2; } if (_4_1._readFinal$0() != null) { combinator1 = _4_1._readFinal$0(); t2 = true; } else { combinator1 = _null; t2 = false; } if (t2) { if (_4_4._readFinal$0() != null) { combinator2 = _4_4._readFinal$0(); t2 = true; } else { combinator2 = _null; t2 = false; } t2 = t2 && combinator1 == combinator2; } else t2 = false; if (t2) { unified = A.unifyCompound(components1.removeLast$0(0).selector, components2.removeLast$0(0).selector); if (unified == null) return _null; 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)); break $label2$2; } if (_4_1._readFinal$0() != null) { combinator_case_0 = _4_1._readFinal$0(); t1 = true; } else { combinator_case_0 = _null; t1 = false; } if (t1) if (_4_4._readFinal$0() == null) { combinatorComponents_case_0 = _4_6._readFinal$0(); descendantComponents_case_0 = _4_7._readFinal$0(); t1 = descendantComponents_case_0; t2 = true; t4 = t2; t2 = combinatorComponents_case_0; t3 = t1; t1 = combinator_case_0; } else { t3 = _null; t2 = t3; t1 = t2; t4 = false; } else { t3 = _null; t2 = t3; t1 = t2; t4 = false; } if (!t4) if (_4_1._readFinal$0() == null) { if (_4_4._readFinal$0() != null) { combinator_case_1 = _4_4._readFinal$0(); t4 = true; } else { combinator_case_1 = _null; t4 = false; } if (t4) { descendantComponents_case_1 = _4_6._readFinal$0(); combinatorComponents_case_1 = _4_7._readFinal$0(); t1 = combinatorComponents_case_1; t2 = true; t4 = t2; t2 = t1; t1 = combinator_case_1; t3 = descendantComponents_case_1; } else t4 = false; } else t4 = false; else t4 = true; if (t4) { if (t1 === B.Combinator_Cht) { t1 = A.IterableExtension_get_lastOrNull(t3); t1 = t1 == null ? _null : A.compoundIsSuperselector(t1.selector, t2.get$last(t2).selector, _null); t1 = t1 === true; } else t1 = false; if (t1) t3.removeLast$0(0); result.addFirst$1(A._setArrayType([A._setArrayType([t2.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent)); break $label2$2; } return _null; } return A._mergeTrailingCombinators(components1, components2, span, result); }, _mustUnify(complex1, complex2) { var t2, t3, t4, t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector); for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();) 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();) t1.add$1(0, t3.get$current(t3)); if (t1._collection$_length === 0) return false; return J.any$1$ax(complex2, new A._mustUnify_closure(t1)); }, _isUnique(simple) { var t1; if (!(simple instanceof A.IDSelector)) t1 = simple instanceof A.PseudoSelector && !simple.isClass; else t1 = true; return t1; }, _chunks(queue1, queue2, done, $T) { var chunk2, _0_0, _0_1, _0_4, _0_5, _0_7, chunk, t2, t1 = $T._eval$1("JSArray<0>"), chunk1 = A._setArrayType([], t1); for (; !done.call$1(queue1);) chunk1.push(queue1.removeFirst$0()); chunk2 = A._setArrayType([], t1); for (; !done.call$1(queue2);) chunk2.push(queue2.removeFirst$0()); _0_0 = new A._Record_2(chunk1, chunk2); _0_1 = A._InitializedCell$(new A._chunks_closure(_0_0, $T)); _0_4 = A._InitializedCell$(new A._chunks_closure0(_0_1)); _0_5 = A._InitializedCell$(new A._chunks_closure1(_0_0, $T)); _0_7 = A._InitializedCell$(new A._chunks_closure2(_0_5)); $label0$0: { if (_0_4._readFinal$0() && _0_7._readFinal$0()) { t1 = A._setArrayType([], $T._eval$1("JSArray>")); break $label0$0; } if (_0_4._readFinal$0()) { chunk = _0_5._readFinal$0(); t1 = true; } else { chunk = null; t1 = false; } if (!t1) { chunk = _0_1._readFinal$0(); t1 = _0_7._readFinal$0(); t1 = t1; } else t1 = true; if (t1) { t1 = A._setArrayType([chunk], $T._eval$1("JSArray>")); break $label0$0; } t1 = A.List_List$of(chunk1, true, $T); B.JSArray_methods.addAll$1(t1, chunk2); t2 = A.List_List$of(chunk2, true, $T); B.JSArray_methods.addAll$1(t2, chunk1); t2 = A._setArrayType([t1, t2], $T._eval$1("JSArray>")); t1 = t2; break $label0$0; } return t1; }, paths(choices, $T) { return J.fold$2$ax(choices, A._setArrayType([A._setArrayType([], $T._eval$1("JSArray<0>"))], $T._eval$1("JSArray>")), new A.paths_closure($T)); }, _groupSelectors(complex) { var t2, t3, t4, groups = A.QueueList$(null, type$.List_ComplexSelectorComponent), t1 = type$.JSArray_ComplexSelectorComponent, group = A._setArrayType([], t1); for (t2 = new A.ListIterator(complex, complex.get$length(complex)), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t4 = t2.__internal$_current; if (t4 == null) t4 = t3._as(t4); group.push(t4); if (t4.combinators.length === 0) { groups._queue_list$_add$1(group); group = A._setArrayType([], t1); } } if (group.length !== 0) groups._queue_list$_add$1(group); return groups; }, listIsSuperselector(list1, list2) { return B.JSArray_methods.every$1(list2, new A.listIsSuperselector_closure(list1)); }, _complexIsParentSuperselector(complex1, complex2) { var t1, base, t2; if (J.get$length$asx(complex1) > J.get$length$asx(complex2)) return false; t1 = $.$get$bogusSpan(); base = new A.ComplexSelectorComponent(A.CompoundSelector$(A._setArrayType([new A.PlaceholderSelector("", t1)], type$.JSArray_SimpleSelector), t1), A.List_List$unmodifiable(B.List_empty1, type$.CssValue_Combinator), t1); t1 = type$.ComplexSelectorComponent; t2 = A.List_List$of(complex1, true, t1); t2.push(base); t1 = A.List_List$of(complex2, true, t1); t1.push(base); return A.complexIsSuperselector(t2, t1); }, complexIsSuperselector(complex1, complex2) { var t1, t2, t3, i1, i2, previousCombinator, remaining1, t4, remaining2, component1, t5, parents, endOfSubselector, component2, combinator1; if (B.JSArray_methods.get$last(complex1).combinators.length !== 0) return false; if (B.JSArray_methods.get$last(complex2).combinators.length !== 0) return false; for (t1 = type$.JSArray_ComplexSelectorComponent, t2 = A._arrayInstanceType(complex2), t3 = t2._precomputed1, t2 = t2._eval$1("SubListIterable<1>"), i1 = 0, i2 = 0, previousCombinator = null; true; previousCombinator = combinator1) { remaining1 = complex1.length - i1; t4 = complex2.length; remaining2 = t4 - i2; if (remaining1 === 0 || remaining2 === 0) return false; if (remaining1 > remaining2) return false; component1 = complex1[i1]; t5 = component1.combinators; if (t5.length > 1) return false; if (remaining1 === 1) { parents = B.JSArray_methods.sublist$2(complex2, i2, t4 - 1); if (B.JSArray_methods.any$1(parents, new A.complexIsSuperselector_closure())) return false; return A.compoundIsSuperselector(component1.selector, B.JSArray_methods.get$last(complex2).selector, parents); } for (t4 = component1.selector, endOfSubselector = i2, parents = null; true;) { component2 = complex2[endOfSubselector]; if (component2.combinators.length > 1) return false; if (A.compoundIsSuperselector(t4, component2.selector, parents)) break; ++endOfSubselector; if (endOfSubselector === complex2.length - 1) return false; if (parents == null) parents = A._setArrayType([], t1); parents.push(component2); } if (!A._compatibleWithPreviousCombinator(previousCombinator, parents == null ? B.List_empty0 : parents)) return false; component2 = complex2[endOfSubselector]; combinator1 = A.IterableExtension_get_firstOrNull(t5); if (!A._isSupercombinator(combinator1, A.IterableExtension_get_firstOrNull(component2.combinators))) return false; ++i1; i2 = endOfSubselector + 1; if (complex1.length - i1 === 1) { t4 = combinator1 == null; if (J.$eq$(t4 ? null : combinator1.value, B.Combinator_Htt)) { t4 = complex2.length - 1; t5 = new A.SubListIterable(complex2, 0, t4, t2); t5.SubListIterable$3(complex2, 0, t4, t3); if (!t5.skip$1(0, i2).every$1(0, new A.complexIsSuperselector_closure0(combinator1))) return false; } else if (!t4) if (complex2.length - i2 > 1) return false; } } }, _compatibleWithPreviousCombinator(previous, parents) { if (parents.length === 0) return true; if (previous == null) return true; if (previous.value !== B.Combinator_Htt) return false; return B.JSArray_methods.every$1(parents, new A._compatibleWithPreviousCombinator_closure()); }, _isSupercombinator(combinator1, combinator2) { var t1, t2; if (!J.$eq$(combinator1, combinator2)) { t1 = combinator1 == null; if (t1) t2 = J.$eq$(combinator2 == null ? null : combinator2.value, B.Combinator_Cht); else t2 = false; if (!t2) if (J.$eq$(t1 ? null : combinator1.value, B.Combinator_Htt)) t1 = J.$eq$(combinator2 == null ? null : combinator2.value, B.Combinator_4QF); else t1 = false; else t1 = true; } else t1 = true; return t1; }, compoundIsSuperselector(compound1, compound2, parents) { var t2, pseudo1, index1, pseudo2, index2, t3, t4, t5, _i, simple1, _null = null, _0_0 = new A._Record_2(A._findPseudoElementIndexed(compound1), A._findPseudoElementIndexed(compound2)), _0_1 = A._InitializedCell$(new A.compoundIsSuperselector_closure(_0_0)), _0_5 = A._InitializedCell$(new A.compoundIsSuperselector_closure0(_0_0)), t1 = type$.Record_2_nullable_Object_and_nullable_Object; if (t1._is(_0_1._readFinal$0())) { t2 = type$.PseudoSelector; pseudo1 = t2._as(_0_1._readFinal$0()._0); index1 = A._asInt(_0_1._readFinal$0()._1); if (t1._is(_0_5._readFinal$0())) { pseudo2 = t2._as(_0_5._readFinal$0()._0); index2 = A._asInt(_0_5._readFinal$0()._1); t1 = true; } else { index2 = _null; pseudo2 = index2; t1 = false; } } else { index2 = _null; pseudo2 = index2; index1 = pseudo2; pseudo1 = index1; t1 = false; } if (t1) { if (pseudo1.isSuperselector$1(pseudo2)) { t1 = compound1.components; t2 = type$.int; t3 = A._arrayInstanceType(t1)._precomputed1; t4 = compound2.components; t5 = A._arrayInstanceType(t4)._precomputed1; 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); } else t1 = false; return t1; } if (!(_0_1._readFinal$0() != null && true)) t1 = _0_5._readFinal$0() != null && true; else t1 = true; if (t1) return false; for (t1 = compound1.components, t2 = t1.length, t3 = compound2.components, _i = 0; _i < t2; ++_i) { simple1 = t1[_i]; if (simple1 instanceof A.PseudoSelector && simple1.selector != null && true) { if (!A._selectorPseudoIsSuperselector(simple1, compound2, parents)) return false; } else if (!B.JSArray_methods.any$1(t3, simple1.get$isSuperselector())) return false; } return true; }, _findPseudoElementIndexed(compound) { var t1, t2, i, simple; for (t1 = compound.components, t2 = t1.length, i = 0; i < t2; ++i) { simple = t1[i]; if (simple instanceof A.PseudoSelector && !simple.isClass) return new A._Record_2(simple, i); } return null; }, _compoundComponentsIsSuperselector(compound1, compound2, parents) { var t1; if (compound1.get$length(compound1) === 0) return true; if (compound2.get$length(compound2) === 0) compound2 = A._setArrayType([new A.UniversalSelector("*", $.$get$bogusSpan())], type$.JSArray_SimpleSelector); t1 = $.$get$bogusSpan(); return A.compoundIsSuperselector(A.CompoundSelector$(compound1, t1), A.CompoundSelector$(compound2, t1), parents); }, _selectorPseudoIsSuperselector(pseudo1, compound2, parents) { var selector1 = pseudo1.selector; if (selector1 == null) throw A.wrapException(A.ArgumentError$("Selector " + pseudo1.toString$0(0) + " must have a selector argument.", null)); switch (pseudo1.normalizedName) { case "is": case "matches": case "any": case "where": 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)); case "has": case "host": case "host-context": return A._selectorPseudoArgs(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure1(selector1)); case "slotted": return A._selectorPseudoArgs(compound2, pseudo1.name, false).any$1(0, new A._selectorPseudoIsSuperselector_closure2(selector1)); case "not": return B.JSArray_methods.every$1(selector1.components, new A._selectorPseudoIsSuperselector_closure3(compound2, pseudo1)); case "current": return A._selectorPseudoArgs(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure4(selector1)); case "nth-child": case "nth-last-child": return B.JSArray_methods.any$1(compound2.components, new A._selectorPseudoIsSuperselector_closure5(pseudo1, selector1)); default: throw A.wrapException("unreachable"); } }, _selectorPseudoArgs(compound, $name, isClass) { var t1 = type$.WhereTypeIterable_PseudoSelector; return A.IterableNullableExtension_whereNotNull(new A.MappedIterable(new A.WhereIterable(new A.WhereTypeIterable(compound.components, t1), new A._selectorPseudoArgs_closure(isClass, $name), t1._eval$1("WhereIterable")), new A._selectorPseudoArgs_closure0(), t1._eval$1("MappedIterable")), type$.SelectorList); }, unifyComplex_closure: function unifyComplex_closure(t0) { this._0_0 = t0; }, unifyComplex_closure0: function unifyComplex_closure0(t0) { this._1_0 = t0; }, unifyComplex_closure1: function unifyComplex_closure1() { }, _namespaceAndName_closure: function _namespaceAndName_closure(t0) { this._0_0 = t0; }, _weaveParents_closure: function _weaveParents_closure(t0) { this._0_0 = t0; }, _weaveParents_closure0: function _weaveParents_closure0(t0) { this._0_0 = t0; }, _weaveParents_closure1: function _weaveParents_closure1(t0) { this.span = t0; }, _weaveParents_closure2: function _weaveParents_closure2(t0) { this.group = t0; }, _weaveParents_closure3: function _weaveParents_closure3() { }, _weaveParents_closure4: function _weaveParents_closure4() { }, _mergeLeadingCombinators_closure: function _mergeLeadingCombinators_closure(t0) { this._0_0 = t0; }, _mergeLeadingCombinators_closure0: function _mergeLeadingCombinators_closure0(t0) { this._0_0 = t0; }, _mergeLeadingCombinators_closure1: function _mergeLeadingCombinators_closure1(t0) { this._0_1 = t0; }, _mergeLeadingCombinators_closure2: function _mergeLeadingCombinators_closure2(t0) { this._0_4 = t0; }, _mergeTrailingCombinators_closure: function _mergeTrailingCombinators_closure(t0) { this._0_0 = t0; }, _mergeTrailingCombinators_closure0: function _mergeTrailingCombinators_closure0(t0) { this._1_0 = t0; }, _mergeTrailingCombinators_closure1: function _mergeTrailingCombinators_closure1(t0) { this._4_0 = t0; }, _mergeTrailingCombinators_closure2: function _mergeTrailingCombinators_closure2(t0) { this._4_1 = t0; }, _mergeTrailingCombinators_closure3: function _mergeTrailingCombinators_closure3(t0) { this._4_0 = t0; }, _mergeTrailingCombinators_closure4: function _mergeTrailingCombinators_closure4(t0) { this._4_4 = t0; }, _mergeTrailingCombinators_closure6: function _mergeTrailingCombinators_closure6(t0) { this._4_0 = t0; }, _mergeTrailingCombinators_closure7: function _mergeTrailingCombinators_closure7(t0) { this._4_0 = t0; }, _mergeTrailingCombinators_closure5: function _mergeTrailingCombinators_closure5(t0) { this._4_4 = t0; }, _mergeTrailingCombinators_closure8: function _mergeTrailingCombinators_closure8(t0) { this._4_1 = t0; }, _mustUnify_closure: function _mustUnify_closure(t0) { this.uniqueSelectors = t0; }, _mustUnify__closure: function _mustUnify__closure(t0) { this.uniqueSelectors = t0; }, _chunks_closure: function _chunks_closure(t0, t1) { this._0_0 = t0; this.T = t1; }, _chunks_closure0: function _chunks_closure0(t0) { this._0_1 = t0; }, _chunks_closure1: function _chunks_closure1(t0, t1) { this._0_0 = t0; this.T = t1; }, _chunks_closure2: function _chunks_closure2(t0) { this._0_5 = t0; }, paths_closure: function paths_closure(t0) { this.T = t0; }, paths__closure: function paths__closure(t0, t1) { this.paths = t0; this.T = t1; }, paths___closure: function paths___closure(t0, t1) { this.option = t0; this.T = t1; }, listIsSuperselector_closure: function listIsSuperselector_closure(t0) { this.list1 = t0; }, listIsSuperselector__closure: function listIsSuperselector__closure(t0) { this.complex1 = t0; }, complexIsSuperselector_closure: function complexIsSuperselector_closure() { }, complexIsSuperselector_closure0: function complexIsSuperselector_closure0(t0) { this.combinator1 = t0; }, _compatibleWithPreviousCombinator_closure: function _compatibleWithPreviousCombinator_closure() { }, compoundIsSuperselector_closure: function compoundIsSuperselector_closure(t0) { this._0_0 = t0; }, compoundIsSuperselector_closure0: function compoundIsSuperselector_closure0(t0) { this._0_0 = t0; }, _selectorPseudoIsSuperselector_closure: function _selectorPseudoIsSuperselector_closure(t0) { this.selector1 = t0; }, _selectorPseudoIsSuperselector_closure0: function _selectorPseudoIsSuperselector_closure0(t0, t1) { this.parents = t0; this.compound2 = t1; }, _selectorPseudoIsSuperselector_closure1: function _selectorPseudoIsSuperselector_closure1(t0) { this.selector1 = t0; }, _selectorPseudoIsSuperselector_closure2: function _selectorPseudoIsSuperselector_closure2(t0) { this.selector1 = t0; }, _selectorPseudoIsSuperselector_closure3: function _selectorPseudoIsSuperselector_closure3(t0, t1) { this.compound2 = t0; this.pseudo1 = t1; }, _selectorPseudoIsSuperselector__closure: function _selectorPseudoIsSuperselector__closure(t0, t1) { this.complex = t0; this.pseudo1 = t1; }, _selectorPseudoIsSuperselector___closure0: function _selectorPseudoIsSuperselector___closure0(t0) { this.simple2 = t0; }, _selectorPseudoIsSuperselector___closure1: function _selectorPseudoIsSuperselector___closure1(t0) { this.simple2 = t0; }, _selectorPseudoIsSuperselector___closure: function _selectorPseudoIsSuperselector___closure(t0) { this._0_0 = t0; }, _selectorPseudoIsSuperselector_closure4: function _selectorPseudoIsSuperselector_closure4(t0) { this.selector1 = t0; }, _selectorPseudoIsSuperselector_closure5: function _selectorPseudoIsSuperselector_closure5(t0, t1) { this.pseudo1 = t0; this.selector1 = t1; }, _selectorPseudoArgs_closure: function _selectorPseudoArgs_closure(t0, t1) { this.isClass = t0; this.name = t1; }, _selectorPseudoArgs_closure0: function _selectorPseudoArgs_closure0() { }, MergedExtension_merge(left, right) { var t2, t3, t4, t1 = left.extender.selector; if (!t1.$eq(0, right.extender.selector) || !left.target.$eq(0, right.target)) throw A.wrapException(A.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension.", null)); t2 = left.mediaContext; t3 = t2 == null; if (!t3) { t4 = right.mediaContext; t4 = t4 != null && !B.C_ListEquality.equals$2(0, t2, t4); } else t4 = false; if (t4) throw A.wrapException(A.SassException$("From " + left.span.message$1(0, "") + string$.x0aYou_m, right.span, null)); if (right.isOptional && right.mediaContext == null) return left; if (left.isOptional && t3) return right; if (t3) t2 = right.mediaContext; t1.get$specificity(); t1 = new A.Extender(t1, false); return t1._extension = new A.MergedExtension(left, right, t1, left.target, t2, true, left.span); }, MergedExtension: function MergedExtension(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.left = t0; _.right = t1; _.extender = t2; _.target = t3; _.mediaContext = t4; _.isOptional = t5; _.span = t6; }, ExtendMode: function ExtendMode(t0, t1) { this.name = t0; this._name = t1; }, globalFunctions_closure: function globalFunctions_closure() { }, _updateComponents($arguments, adjust, change, scale) { var keywords, alpha, red, green, blue, hue, saturation, lightness, whiteness, blackness, hasRgb, hasSL, hasWB, t2, t3, t4, t5, _null = null, t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"), argumentList = type$.SassArgumentList._as(t1.$index($arguments, 1)); if (argumentList._list$_contents.length !== 0) throw A.wrapException(A.SassScriptException$(string$.Only_op, _null)); argumentList._wereKeywordsAccessed = true; keywords = A.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, type$.String, type$.Value); t1 = new A._updateComponents_getParam(keywords, scale, change); alpha = t1.call$3$checkUnitless("alpha", 1, true); red = t1.call$2("red", 255); green = t1.call$2("green", 255); blue = t1.call$2("blue", 255); hue = scale ? _null : A.NullableExtension_andThen(keywords.remove$1(0, "hue"), new A._updateComponents_closure()); saturation = t1.call$3$checkPercent("saturation", 100, true); lightness = t1.call$3$checkPercent("lightness", 100, true); whiteness = t1.call$3$assertPercent("whiteness", 100, true); blackness = t1.call$3$assertPercent("blackness", 100, true); t1 = keywords.__js_helper$_length; if (t1 !== 0) throw A.wrapException(A.SassScriptException$("No " + A.pluralize("argument", t1, _null) + " named " + A.toSentence(keywords.get$keys(keywords).map$1$1(0, new A._updateComponents_closure0(), type$.Object), "or") + ".", _null)); hasRgb = red != null || green != null || blue != null; hasSL = saturation != null || lightness != null; hasWB = whiteness != null || blackness != null; if (hasRgb) t1 = hasSL || hasWB || hue != null; else t1 = false; if (t1) throw A.wrapException(A.SassScriptException$(string$.RGB_pa + (hasWB ? "HWB" : "HSL") + " parameters.", _null)); if (hasSL && hasWB) throw A.wrapException(A.SassScriptException$(string$.HSL_pa, _null)); t1 = new A._updateComponents_updateValue(change, adjust); t2 = new A._updateComponents_updateRgb(t1); if (hasRgb) { t3 = t2.call$2(color.get$red(color), red); t4 = t2.call$2(color.get$green(color), green); t2 = t2.call$2(color.get$blue(color), blue); return color.changeRgb$4$alpha$blue$green$red(t1.call$3(color._alpha, alpha, 1), t2, t4, t3); } else if (hasWB) { if (change) t2 = hue; else { t2 = color.get$hue(color); t2 += hue == null ? 0 : hue; } t3 = t1.call$3(color.get$whiteness(color), whiteness, 100); t4 = t1.call$3(color.get$blackness(color), blackness, 100); t5 = color._alpha; t1 = t1.call$3(t5, alpha, 1); if (t2 == null) t2 = color.get$hue(color); if (t3 == null) t3 = color.get$whiteness(color); if (t4 == null) t4 = color.get$blackness(color); return A.SassColor_SassColor$hwb(t2, t3, t4, t1 == null ? t5 : t1); } else { t2 = hue == null; if (!t2 || hasSL) { if (change) t2 = hue; else { t3 = color.get$hue(color); t3 += t2 ? 0 : hue; t2 = t3; } t3 = t1.call$3(color.get$saturation(color), saturation, 100); t4 = t1.call$3(color.get$lightness(color), lightness, 100); return color.changeHsl$4$alpha$hue$lightness$saturation(t1.call$3(color._alpha, alpha, 1), t2, t4, t3); } else if (alpha != null) return color.changeAlpha$1(t1.call$3(color._alpha, alpha, 1)); else return color; } }, _functionString($name, $arguments) { return new A.SassString($name + "(" + J.map$1$1$ax($arguments, new A._functionString_closure(), type$.String).join$1(0, ", ") + ")", false); }, _removedColorFunction($name, argument, negative) { return A.BuiltInCallable$function($name, "$color, $amount", new A._removedColorFunction_closure($name, argument, negative), "sass:color"); }, _rgb($name, $arguments) { var t2, red, green, blue, t3, t4, t1 = J.getInterceptor$asx($arguments), alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null; if (!t1.$index($arguments, 0).get$isSpecialNumber()) if (!t1.$index($arguments, 1).get$isSpecialNumber()) if (!t1.$index($arguments, 2).get$isSpecialNumber()) { t2 = alpha == null ? null : alpha.get$isSpecialNumber(); t2 = t2 === true; } else t2 = true; else t2 = true; else t2 = true; if (t2) return A._functionString($name, $arguments); red = t1.$index($arguments, 0).assertNumber$1("red"); green = t1.$index($arguments, 1).assertNumber$1("green"); blue = t1.$index($arguments, 2).assertNumber$1("blue"); t1 = A.fuzzyRound(A._percentageOrUnitless(red, 255, "red")); t2 = A.fuzzyRound(A._percentageOrUnitless(green, 255, "green")); t3 = A.fuzzyRound(A._percentageOrUnitless(blue, 255, "blue")); t4 = A.NullableExtension_andThen(alpha, new A._rgb_closure()); return A.SassColor$rgbInternal(t1, t2, t3, t4 == null ? 1 : t4, B._ColorFormatEnum_rgbFunction); }, _rgbTwoArg($name, $arguments) { var t2, color, t1 = J.getInterceptor$asx($arguments); if (!t1.$index($arguments, 0).get$isVar()) t2 = !(t1.$index($arguments, 0) instanceof A.SassColor) && t1.$index($arguments, 1).get$isVar(); else t2 = true; if (t2) return A._functionString($name, $arguments); else if (t1.$index($arguments, 1).get$isSpecialNumber()) { color = t1.$index($arguments, 0).assertColor$1("color"); return new A.SassString($name + "(" + color.get$red(color) + ", " + color.get$green(color) + ", " + color.get$blue(color) + ", " + A.serializeValue(t1.$index($arguments, 1), false, true) + ")", false); } return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(A._percentageOrUnitless(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha")); }, _hsl($name, $arguments) { var t2, hue, saturation, lightness, t3, _s10_ = "saturation", _s9_ = "lightness", t1 = J.getInterceptor$asx($arguments), alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null; if (!t1.$index($arguments, 0).get$isSpecialNumber()) if (!t1.$index($arguments, 1).get$isSpecialNumber()) if (!t1.$index($arguments, 2).get$isSpecialNumber()) { t2 = alpha == null ? null : alpha.get$isSpecialNumber(); t2 = t2 === true; } else t2 = true; else t2 = true; else t2 = true; if (t2) return A._functionString($name, $arguments); hue = A._angleValue(t1.$index($arguments, 0), "hue"); saturation = t1.$index($arguments, 1).assertNumber$1(_s10_); lightness = t1.$index($arguments, 2).assertNumber$1(_s9_); A._checkPercent(saturation, _s10_); A._checkPercent(lightness, _s9_); t1 = B.JSNumber_methods.clamp$2(saturation._number$_value, 0, 100); t2 = B.JSNumber_methods.clamp$2(lightness._number$_value, 0, 100); t3 = A.NullableExtension_andThen(alpha, new A._hsl_closure()); return A.SassColor$hslInternal(hue, t1, t2, t3 == null ? 1 : t3, B._ColorFormatEnum_hslFunction); }, _angleValue(angleValue, $name) { var t1, t2, angle = angleValue.assertNumber$1($name); if (angle.compatibleWithUnit$1("deg")) return angle.coerceValueToUnit$1("deg"); t1 = angle.toString$0(0); t2 = angle.unitSuggestion$1($name); A.EvaluationContext_current().warn$2(0, "$" + $name + ": Passing a unit other than deg (" + t1 + string$.x29x20is_d + t2 + string$.x0a_See_, B.Deprecation_8WR); return angle._number$_value; }, _checkPercent(number, $name) { var t1, t2; if (number.hasUnit$1("%")) return; t1 = number.toString$0(0); t2 = number.unitSuggestion$2($name, "%"); A.EvaluationContext_current().warn$2(0, "$" + $name + ": Passing a number without unit % (" + t1 + string$.x29x20is_d + t2 + string$.x0a_Morex3a, B.Deprecation_8WR); }, _hwb($arguments) { var t2, t3, _s9_ = "whiteness", _s9_0 = "blackness", t1 = J.getInterceptor$asx($arguments), alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null, hue = A._angleValue(t1.$index($arguments, 0), "hue"), whiteness = t1.$index($arguments, 1).assertNumber$1(_s9_), blackness = t1.$index($arguments, 2).assertNumber$1(_s9_0); whiteness.assertUnit$2("%", _s9_); blackness.assertUnit$2("%", _s9_0); t1 = whiteness.valueInRange$3(0, 100, _s9_); t2 = blackness.valueInRange$3(0, 100, _s9_0); t3 = A.NullableExtension_andThen(alpha, new A._hwb_closure()); return A.SassColor_SassColor$hwb(hue, t1, t2, t3 == null ? 1 : t3); }, _parseChannels($name, argumentNames, channels) { var list, t1, channels0, alphaFromSlashList, isCommaSeparated, isBracketed, buffer, _0_4, text, _1_0, _1_2, channel3, alpha, _null = null, _s17_ = "$channels must be"; if (channels.get$isVar()) return A._functionString($name, A._setArrayType([channels], type$.JSArray_Value)); if (channels.get$separator(channels) === B.ListSeparator_zg9) { list = channels.get$asList(); t1 = list.length; if (t1 !== 2) throw A.wrapException(A.SassScriptException$(string$.Only_2 + t1 + " " + A.pluralize("was", t1, "were") + " passed.", _null)); channels0 = list[0]; alphaFromSlashList = list[1]; if (!alphaFromSlashList.get$isSpecialNumber()) alphaFromSlashList.assertNumber$1("alpha"); if (list[0].get$isVar()) return A._functionString($name, A._setArrayType([channels], type$.JSArray_Value)); } else { alphaFromSlashList = _null; channels0 = channels; } isCommaSeparated = channels0.get$separator(channels0) === B.ListSeparator_rXA; isBracketed = channels0.get$hasBrackets(); if (isCommaSeparated || isBracketed) { buffer = new A.StringBuffer(_s17_); if (isBracketed) { t1 = _s17_ + " an unbracketed"; buffer._contents = t1; } else t1 = _s17_; if (isCommaSeparated) { t1 += isBracketed ? "," : " a"; buffer._contents = t1; t1 = buffer._contents = t1 + " space-separated"; } buffer._contents = t1 + " list."; throw A.wrapException(A.SassScriptException$(buffer.toString$0(0), _null)); } list = channels0.get$asList(); _0_4 = A._InitializedCell$(new A._parseChannels_closure(list)); if (list.length >= 2) if (_0_4._readFinal$0() instanceof A.SassString) { text = _0_4._readFinal$0()._string$_text; t1 = !_0_4._readFinal$0()._hasQuotes && A.equalsIgnoreCase(text, "from"); } else t1 = false; else t1 = false; if (t1) return A._functionString($name, A._setArrayType([channels], type$.JSArray_Value)); t1 = list.length; if (t1 > 3) throw A.wrapException(A.SassScriptException$("Only 3 elements allowed, but " + t1 + " were passed.", _null)); else if (t1 < 3) { if (!B.JSArray_methods.any$1(list, new A._parseChannels_closure0())) if (list.length !== 0) { t1 = B.JSArray_methods.get$last(list); if (t1 instanceof A.SassString) if (t1._hasQuotes) { t1 = t1._string$_text; t1 = A.startsWithIgnoreCase(t1, "var(") && B.JSString_methods.contains$1(t1, "/"); } else t1 = false; else t1 = false; } else t1 = false; else t1 = true; if (t1) return A._functionString($name, A._setArrayType([channels], type$.JSArray_Value)); else throw A.wrapException(A.SassScriptException$("Missing element " + argumentNames[list.length] + ".", _null)); } if (alphaFromSlashList != null) { t1 = A.List_List$of(list, true, type$.Value); t1.push(alphaFromSlashList); return t1; } _1_0 = list[2]; _1_2 = A._InitializedCell$(new A._parseChannels_closure1(_1_0)); $label0$0: { if (_1_0 instanceof A.SassNumber) if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_2._readFinal$0())) { t1 = type$.SassNumber; channel3 = t1._as(_1_2._readFinal$0()._0); alpha = t1._as(_1_2._readFinal$0()._1); t1 = true; } else { alpha = _null; channel3 = alpha; t1 = false; } else { alpha = _null; channel3 = alpha; t1 = false; } if (t1) { t1 = A._setArrayType([list[0], list[1], channel3, alpha], type$.JSArray_Value); break $label0$0; } if (_1_0 instanceof A.SassString) if (!_1_0._hasQuotes) t1 = B.JSString_methods.contains$1(_1_0._string$_text, "/"); else t1 = false; else t1 = false; if (t1) { t1 = A._functionString($name, A._setArrayType([channels0], type$.JSArray_Value)); break $label0$0; } t1 = list; break $label0$0; } return t1; }, _percentageOrUnitless(number, max, $name) { var value; if (!number.get$hasUnits()) value = number._number$_value; else if (number.hasUnit$1("%")) value = max * number._number$_value / 100; else throw A.wrapException(A.SassScriptException$("$" + $name + ": Expected " + number.toString$0(0) + ' to have unit "%" or no units.', null)); return B.JSNumber_methods.clamp$2(value, 0, max); }, _mixColors(color1, color2, weight) { var weightScale, normalizedWeight, t1, t2, alphaDistance, t3, weight1, weight2; A._checkPercent(weight, "weight"); weightScale = weight.valueInRange$3(0, 100, "weight") / 100; normalizedWeight = weightScale * 2 - 1; t1 = color1._alpha; t2 = color2._alpha; alphaDistance = t1 - t2; t3 = normalizedWeight * alphaDistance; weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2; weight2 = 1 - weight1; return A.SassColor$rgb(A.fuzzyRound(color1.get$red(color1) * weight1 + color2.get$red(color2) * weight2), A.fuzzyRound(color1.get$green(color1) * weight1 + color2.get$green(color2) * weight2), A.fuzzyRound(color1.get$blue(color1) * weight1 + color2.get$blue(color2) * weight2), t1 * weightScale + t2 * (1 - weightScale)); }, _opacify($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"); return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1)); }, _transparentize($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"); return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1)); }, _function4($name, $arguments, callback) { return A.BuiltInCallable$function($name, $arguments, callback, "sass:color"); }, global_closure0: function global_closure0() { }, global_closure1: function global_closure1() { }, global_closure2: function global_closure2() { }, global_closure3: function global_closure3() { }, global_closure4: function global_closure4() { }, global_closure5: function global_closure5() { }, global_closure6: function global_closure6() { }, global_closure7: function global_closure7() { }, global_closure8: function global_closure8() { }, global_closure9: function global_closure9() { }, global_closure10: function global_closure10() { }, global_closure11: function global_closure11() { }, global_closure12: function global_closure12() { }, global_closure13: function global_closure13() { }, global_closure14: function global_closure14() { }, global_closure15: function global_closure15() { }, global_closure16: function global_closure16() { }, global_closure17: function global_closure17() { }, global_closure18: function global_closure18() { }, global_closure19: function global_closure19() { }, global_closure20: function global_closure20() { }, global_closure21: function global_closure21() { }, global_closure22: function global_closure22() { }, global_closure23: function global_closure23() { }, global_closure24: function global_closure24() { }, global_closure25: function global_closure25() { }, global__closure: function global__closure() { }, global_closure26: function global_closure26() { }, module_closure1: function module_closure1() { }, module_closure2: function module_closure2() { }, module_closure3: function module_closure3() { }, module_closure4: function module_closure4() { }, module_closure5: function module_closure5() { }, module_closure6: function module_closure6() { }, module_closure7: function module_closure7() { }, module_closure8: function module_closure8() { }, module__closure1: function module__closure1() { }, module_closure9: function module_closure9() { }, _red_closure: function _red_closure() { }, _green_closure: function _green_closure() { }, _blue_closure: function _blue_closure() { }, _mix_closure: function _mix_closure() { }, _hue_closure: function _hue_closure() { }, _saturation_closure: function _saturation_closure() { }, _lightness_closure: function _lightness_closure() { }, _complement_closure: function _complement_closure() { }, _adjust_closure: function _adjust_closure() { }, _scale_closure: function _scale_closure() { }, _change_closure: function _change_closure() { }, _ieHexStr_closure: function _ieHexStr_closure() { }, _ieHexStr_closure_hexString: function _ieHexStr_closure_hexString() { }, _updateComponents_getParam: function _updateComponents_getParam(t0, t1, t2) { this.keywords = t0; this.scale = t1; this.change = t2; }, _updateComponents_closure: function _updateComponents_closure() { }, _updateComponents_closure0: function _updateComponents_closure0() { }, _updateComponents_updateValue: function _updateComponents_updateValue(t0, t1) { this.change = t0; this.adjust = t1; }, _updateComponents_updateRgb: function _updateComponents_updateRgb(t0) { this.updateValue = t0; }, _functionString_closure: function _functionString_closure() { }, _removedColorFunction_closure: function _removedColorFunction_closure(t0, t1, t2) { this.name = t0; this.argument = t1; this.negative = t2; }, _rgb_closure: function _rgb_closure() { }, _hsl_closure: function _hsl_closure() { }, _hwb_closure: function _hwb_closure() { }, _parseChannels_closure: function _parseChannels_closure(t0) { this._0_0 = t0; }, _parseChannels_closure0: function _parseChannels_closure0() { }, _parseChannels_closure1: function _parseChannels_closure1(t0) { this._1_0 = t0; }, _function3($name, $arguments, callback) { return A.BuiltInCallable$function($name, $arguments, callback, "sass:list"); }, _length_closure0: function _length_closure0() { }, _nth_closure: function _nth_closure() { }, _setNth_closure: function _setNth_closure() { }, _join_closure: function _join_closure() { }, _join__closure: function _join__closure(t0) { this._0_0 = t0; }, _join__closure0: function _join__closure0(t0) { this._0_1 = t0; }, _join__closure1: function _join__closure1(t0) { this._0_0 = t0; }, _append_closure0: function _append_closure0() { }, _zip_closure: function _zip_closure() { }, _zip__closure: function _zip__closure() { }, _zip__closure0: function _zip__closure0(t0) { this._box_0 = t0; }, _zip__closure1: function _zip__closure1(t0) { this._box_0 = t0; }, _index_closure0: function _index_closure0() { }, _separator_closure: function _separator_closure() { }, _isBracketed_closure: function _isBracketed_closure() { }, _slash_closure: function _slash_closure() { }, _modify(map, keys, modify, addNesting) { var keyIterator = J.get$iterator$ax(keys); return keyIterator.moveNext$0() ? new A._modify_modifyNestedMap(keyIterator, modify, addNesting).call$1(map) : modify.call$1(map); }, _deepMergeImpl(map1, map2) { var t2, t3, result, key, value, _1_0, _1_1, _1_3, resultMap, valueMap, merged, _null = null, t1 = map1._map$_contents; if (t1.get$isEmpty(t1)) return map2; t2 = map2._map$_contents; if (t2.get$isEmpty(t2)) return map1; t3 = type$.Value; result = A.LinkedHashMap_LinkedHashMap$of(t1, t3, t3); for (t1 = A.MapExtensions_get_pairs(t2, t3, t3), t1 = t1.get$iterator(t1); t1.moveNext$0();) { t2 = t1.get$current(t1); key = t2._0; value = t2._1; t2 = result.$index(0, key); t2 = t2 == null ? _null : t2.tryMap$0(); _1_0 = new A._Record_2(t2, value.tryMap$0()); _1_1 = A._InitializedCell$(new A._deepMergeImpl_closure(_1_0)); _1_3 = A._InitializedCell$(new A._deepMergeImpl_closure0(_1_0)); if (_1_1._readFinal$0() != null) { resultMap = _1_1._readFinal$0(); t2 = true; } else { resultMap = _null; t2 = false; } if (t2) if (_1_3._readFinal$0() != null) { valueMap = _1_3._readFinal$0(); t2 = true; } else { valueMap = _null; t2 = false; } else { valueMap = _null; t2 = false; } if (t2) { merged = A._deepMergeImpl(resultMap, valueMap); if (merged === resultMap) continue; result.$indexSet(0, key, merged); } else result.$indexSet(0, key, value); } return new A.SassMap(A.ConstantMap_ConstantMap$from(result, t3, t3)); }, _function2($name, $arguments, callback) { return A.BuiltInCallable$function($name, $arguments, callback, "sass:map"); }, _get_closure: function _get_closure() { }, _set_closure: function _set_closure() { }, _set__closure1: function _set__closure1(t0) { this.$arguments = t0; }, _set_closure0: function _set_closure0() { }, _set__closure: function _set__closure(t0) { this._0_0 = t0; }, _set__closure0: function _set__closure0(t0) { this._box_0 = t0; }, _merge_closure: function _merge_closure() { }, _merge_closure0: function _merge_closure0() { }, _merge__closure: function _merge__closure(t0) { this._0_0 = t0; }, _merge__closure0: function _merge__closure0(t0) { this.map2 = t0; }, _deepMerge_closure: function _deepMerge_closure() { }, _deepRemove_closure: function _deepRemove_closure() { }, _deepRemove__closure: function _deepRemove__closure(t0) { this.keys = t0; }, _remove_closure: function _remove_closure() { }, _remove_closure0: function _remove_closure0() { }, _keys_closure: function _keys_closure() { }, _values_closure: function _values_closure() { }, _hasKey_closure: function _hasKey_closure() { }, _modify_modifyNestedMap: function _modify_modifyNestedMap(t0, t1, t2) { this.keyIterator = t0; this.modify = t1; this.addNesting = t2; }, _deepMergeImpl_closure: function _deepMergeImpl_closure(t0) { this._1_0 = t0; }, _deepMergeImpl_closure0: function _deepMergeImpl_closure0(t0) { this._1_0 = t0; }, _singleArgumentMathFunc($name, mathFunc) { return A.BuiltInCallable$function($name, "$number", new A._singleArgumentMathFunc_closure(mathFunc), "sass:math"); }, _numberFunction($name, transform) { return A.BuiltInCallable$function($name, "$number", new A._numberFunction_closure(transform), "sass:math"); }, _function1($name, $arguments, callback) { return A.BuiltInCallable$function($name, $arguments, callback, "sass:math"); }, global_closure: function global_closure() { }, module_closure0: function module_closure0() { }, _ceil_closure: function _ceil_closure() { }, _clamp_closure: function _clamp_closure() { }, _floor_closure: function _floor_closure() { }, _max_closure: function _max_closure() { }, _min_closure: function _min_closure() { }, _round_closure: function _round_closure() { }, _hypot_closure: function _hypot_closure() { }, _hypot__closure: function _hypot__closure() { }, _log_closure: function _log_closure() { }, _pow_closure: function _pow_closure() { }, _atan2_closure: function _atan2_closure() { }, _compatible_closure: function _compatible_closure() { }, _isUnitless_closure: function _isUnitless_closure() { }, _unit_closure: function _unit_closure() { }, _percentage_closure: function _percentage_closure() { }, _randomFunction_closure: function _randomFunction_closure() { }, _div_closure: function _div_closure() { }, _singleArgumentMathFunc_closure: function _singleArgumentMathFunc_closure(t0) { this.mathFunc = t0; }, _numberFunction_closure: function _numberFunction_closure(t0) { this.transform = t0; }, _function5($name, $arguments, callback) { return A.BuiltInCallable$function($name, $arguments, callback, "sass:meta"); }, global_closure27: function global_closure27() { }, global_closure28: function global_closure28() { }, global_closure29: function global_closure29() { }, global_closure30: function global_closure30() { }, local_closure: function local_closure() { }, local_closure0: function local_closure0() { }, local__closure0: function local__closure0() { }, local_closure1: function local_closure1() { }, local__closure: function local__closure(t0) { this._0_0 = t0; }, _prependParent(compound) { var t1, type, rest, _null = null, span = A.EvaluationContext_current().get$currentCallableSpan(), _0_0 = compound.components, _0_3 = A._InitializedCell$(new A._prependParent_closure(_0_0)), _0_4 = A._InitializedCell$(new A._prependParent_closure0(_0_0)); $label0$0: { if (_0_3._readFinal$0() && _0_4._readFinal$0() instanceof A.UniversalSelector) { t1 = _null; break $label0$0; } if (_0_3._readFinal$0()) if (_0_4._readFinal$0() instanceof A.TypeSelector) t1 = _0_4._readFinal$0().name.namespace != null; else t1 = false; else t1 = false; if (t1) { t1 = _null; break $label0$0; } if (_0_3._readFinal$0()) if (_0_4._readFinal$0() instanceof A.TypeSelector) { type = _0_4._readFinal$0(); rest = B.JSArray_methods.sublist$1(_0_0, 1); t1 = true; } else { rest = _null; type = rest; t1 = false; } else { rest = _null; type = rest; t1 = false; } if (t1) { t1 = A._setArrayType([new A.ParentSelector(type.name.name, span)], type$.JSArray_SimpleSelector); B.JSArray_methods.addAll$1(t1, rest); t1 = A.CompoundSelector$(t1, span); break $label0$0; } t1 = A._setArrayType([new A.ParentSelector(_null, span)], type$.JSArray_SimpleSelector); B.JSArray_methods.addAll$1(t1, _0_0); t1 = A.CompoundSelector$(t1, span); break $label0$0; } return t1; }, _function0($name, $arguments, callback) { return A.BuiltInCallable$function($name, $arguments, callback, "sass:selector"); }, _nest_closure: function _nest_closure() { }, _nest__closure: function _nest__closure(t0) { this._box_0 = t0; }, _nest__closure0: function _nest__closure0() { }, _append_closure: function _append_closure() { }, _append__closure: function _append__closure() { }, _append__closure0: function _append__closure0(t0) { this.span = t0; }, _append___closure: function _append___closure(t0, t1) { this.parent = t0; this.span = t1; }, _extend_closure: function _extend_closure() { }, _replace_closure: function _replace_closure() { }, _unify_closure: function _unify_closure() { }, _isSuperselector_closure: function _isSuperselector_closure() { }, _simpleSelectors_closure: function _simpleSelectors_closure() { }, _simpleSelectors__closure: function _simpleSelectors__closure() { }, _parse_closure: function _parse_closure() { }, _prependParent_closure: function _prependParent_closure(t0) { this._0_0 = t0; }, _prependParent_closure0: function _prependParent_closure0(t0) { this._0_0 = t0; }, _codepointForIndex(index, lengthInCodepoints, allowNegative) { var result; if (index === 0) return 0; if (index > 0) return Math.min(index - 1, lengthInCodepoints); result = lengthInCodepoints + index; if (result < 0 && !allowNegative) return 0; return result; }, _function($name, $arguments, callback) { return A.BuiltInCallable$function($name, $arguments, callback, "sass:string"); }, module_closure: function module_closure() { }, module__closure: function module__closure(t0) { this.string = t0; }, module__closure0: function module__closure0(t0) { this.string = t0; }, _unquote_closure: function _unquote_closure() { }, _quote_closure: function _quote_closure() { }, _length_closure: function _length_closure() { }, _insert_closure: function _insert_closure() { }, _index_closure: function _index_closure() { }, _slice_closure: function _slice_closure() { }, _toUpperCase_closure: function _toUpperCase_closure() { }, _toLowerCase_closure: function _toLowerCase_closure() { }, _uniqueId_closure: function _uniqueId_closure() { }, ImportCache$(loadPaths, logger) { var t1 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl, t2 = type$.Uri, t3 = A.ImportCache__toImporters(null, loadPaths, null); return new A.ImportCache(t3, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_4_Uri_and_Importer_baseImporter_and_nullable_Uri_baseUrl_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.nullable_Stylesheet), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.ImporterResult)); }, ImportCache__toImporters(importers, loadPaths, packageConfig) { var t1, t2, t3, t4, _i, path, _null = null, sassPath = A.getEnvironmentVariable("SASS_PATH"); if (A.isBrowser()) { t1 = A._setArrayType([], type$.JSArray_Importer_2); return t1; } t1 = A._setArrayType([], type$.JSArray_Importer_2); for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) { t3 = t2.get$current(t2); t1.push(new A.FilesystemImporter($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null))); } if (sassPath != null) { t2 = A.isNodeJs() ? self.process : _null; t3 = sassPath.split(J.$eq$(t2 == null ? _null : J.get$platform$x(t2), "win32") ? ";" : ":"); t4 = t3.length; _i = 0; for (; _i < t4; ++_i) { path = t3[_i]; t1.push(new A.FilesystemImporter($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null))); } } return t1; }, ImportCache: function ImportCache(t0, t1, t2, t3, t4, t5) { var _ = this; _._importers = t0; _._logger = t1; _._canonicalizeCache = t2; _._relativeCanonicalizeCache = t3; _._importCache = t4; _._resultsCache = t5; }, ImportCache_canonicalize_closure: function ImportCache_canonicalize_closure(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.baseImporter = t1; _.baseUrl = t2; _.url = t3; _.forImport = t4; }, ImportCache_canonicalize_closure0: function ImportCache_canonicalize_closure0(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.url = t1; _.baseUrl = t2; _.forImport = t3; }, ImportCache__canonicalize_closure: function ImportCache__canonicalize_closure(t0, t1) { this.importer = t0; this.resolved = t1; }, ImportCache__canonicalize__closure: function ImportCache__canonicalize__closure(t0, t1) { this.importer = t0; this.resolved = t1; }, ImportCache__canonicalize_closure0: function ImportCache__canonicalize_closure0(t0, t1) { this.importer = t0; this.resolved = t1; }, ImportCache_importCanonical_closure: function ImportCache_importCanonical_closure(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.importer = t1; _.canonicalUrl = t2; _.originalUrl = t3; _.quiet = t4; }, ImportCache_humanize_closure: function ImportCache_humanize_closure(t0) { this.canonicalUrl = t0; }, ImportCache_humanize_closure0: function ImportCache_humanize_closure0() { }, ImportCache_humanize_closure1: function ImportCache_humanize_closure1() { }, ImportCache_humanize_closure2: function ImportCache_humanize_closure2(t0) { this.canonicalUrl = t0; }, ImportCache_clearCanonicalize_closure: function ImportCache_clearCanonicalize_closure(t0) { this.url = t0; }, Importer: function Importer() { }, AsyncImporter: function AsyncImporter() { }, FilesystemImporter: function FilesystemImporter(t0) { this._loadPath = t0; }, FilesystemImporter_canonicalize_closure: function FilesystemImporter_canonicalize_closure() { }, NoOpImporter: function NoOpImporter() { }, ImporterResult: function ImporterResult(t0, t1, t2) { this.contents = t0; this._sourceMapUrl = t1; this.syntax = t2; }, fromImport() { var t1 = A._asBoolQ($.Zone__current.$index(0, B.Symbol__inImportRule)); return t1 === true; }, withContainingUrl(url, callback, $T) { var t1 = url == null ? B.Symbol__none : url, t2 = type$.nullable_Object; return A.runZoned(callback, A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__containingUrl, t1], t2, t2), $T); }, resolveImportPath(path) { var t1, extension = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]; if (extension === ".sass" || extension === ".scss" || extension === ".css") { t1 = A.fromImport() ? new A.resolveImportPath_closure(path, extension).call$0() : null; return t1 == null ? A._exactlyOne(A._tryPath(path)) : t1; } t1 = A.fromImport() ? new A.resolveImportPath_closure0(path).call$0() : null; if (t1 == null) t1 = A._exactlyOne(A._tryPathWithExtensions(path)); return t1 == null ? A._tryPathAsDirectory(path) : t1; }, _tryPathWithExtensions(path) { var result = A._tryPath(path + ".sass"); B.JSArray_methods.addAll$1(result, A._tryPath(path + ".scss")); return result.length !== 0 ? result : A._tryPath(path + ".css"); }, _tryPath(path) { var t1 = $.$get$context(), partial = A.join(t1.dirname$1(path), "_" + A.ParsedPath_ParsedPath$parse(path, t1.style).get$basename(), null); t1 = A._setArrayType([], type$.JSArray_String); if (A.fileExists(partial)) t1.push(partial); if (A.fileExists(path)) t1.push(path); return t1; }, _tryPathAsDirectory(path) { var t1; if (!A.dirExists(path)) return null; t1 = A.fromImport() ? new A._tryPathAsDirectory_closure(path).call$0() : null; return t1 == null ? A._exactlyOne(A._tryPathWithExtensions(A.join(path, "index", null))) : t1; }, _exactlyOne(paths) { var t1, path, _0_1 = A._InitializedCell$(new A._exactlyOne_closure(paths)); $label0$0: { if (_0_1._readFinal$0() <= 0) { t1 = null; break $label0$0; } if (J.$eq$(_0_1._readFinal$0(), 1)) { path = paths[0]; t1 = true; } else { path = null; t1 = false; } if (t1) { t1 = path; break $label0$0; } t1 = A.throwExpression(string$.It_s_n + B.JSArray_methods.map$1$1(paths, new A._exactlyOne_closure0(), type$.String).join$1(0, "\n")); } return t1; }, resolveImportPath_closure: function resolveImportPath_closure(t0, t1) { this.path = t0; this.extension = t1; }, resolveImportPath_closure0: function resolveImportPath_closure0(t0) { this.path = t0; }, _tryPathAsDirectory_closure: function _tryPathAsDirectory_closure(t0) { this.path = t0; }, _exactlyOne_closure: function _exactlyOne_closure(t0) { this._0_0 = t0; }, _exactlyOne_closure0: function _exactlyOne_closure0() { }, InterpolationBuffer: function InterpolationBuffer(t0, t1) { this._interpolation_buffer$_text = t0; this._interpolation_buffer$_contents = t1; }, InterpolationBuffer_addInterpolation_closure: function InterpolationBuffer_addInterpolation_closure(t0) { this._0_0 = t0; }, InterpolationMap$(_interpolation, targetLocations) { var t1 = A.List_List$unmodifiable(targetLocations, type$.SourceLocation), t2 = _interpolation.contents.length, expectedLocations = Math.max(0, t2 - 1); if (t1.length !== expectedLocations) A.throwExpression(A.ArgumentError$("InterpolationMap must have " + A.S(expectedLocations) + string$.x20targe + t2 + " components.", null)); return new A.InterpolationMap(_interpolation, t1); }, InterpolationMap: function InterpolationMap(t0, t1) { this._interpolation = t0; this._targetLocations = t1; }, InterpolationMap_mapException_closure: function InterpolationMap_mapException_closure() { }, InterpolationMap_mapSpan_closure: function InterpolationMap_mapSpan_closure(t0) { this._0_0 = t0; }, InterpolationMap_mapSpan_closure0: function InterpolationMap_mapSpan_closure0(t0) { this._0_0 = t0; }, _realCasePath(path) { var prefix, _null = null, t1 = A.isNodeJs() ? self.process : _null; if (!J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) { t1 = A.isNodeJs() ? self.process : _null; t1 = J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "darwin"); } else t1 = true; if (!t1) return path; t1 = A.isNodeJs() ? self.process : _null; if (J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) { prefix = B.JSString_methods.substring$2(path, 0, $.$get$context().style.rootLength$1(path)); t1 = prefix.length; if (t1 !== 0 && A.CharacterExtension_get_isAlphabetic(prefix.charCodeAt(0))) path = prefix.toUpperCase() + B.JSString_methods.substring$1(path, t1); } return new A._realCasePath_helper().call$1(path); }, _realCasePath_helper: function _realCasePath_helper() { }, _realCasePath_helper_closure: function _realCasePath_helper_closure(t0, t1, t2) { this.helper = t0; this.dirname = t1; this.path = t2; }, _realCasePath_helper__closure: function _realCasePath_helper__closure(t0) { this.basename = t0; }, printError(message) { var t1, process = A.isNodeJs() ? self.process : null; if (process != null) t1 = true; else { process = null; t1 = false; } if (t1) { t1 = J.get$stderr$x(process); J.write$1$x(t1, A.S(message == null ? "" : message) + "\n"); } else { t1 = self.console; J.error$1$x(t1, message == null ? "" : message); } }, readFile(path) { var contents, sourceFile, t1, i; if (!A.isNodeJs()) throw A.wrapException(A.UnsupportedError$("readFile() is only supported on Node.js")); contents = A._asString(A._readFile(path, "utf8")); if (!B.JSString_methods.contains$1(contents, "\ufffd")) return contents; sourceFile = A.SourceFile$fromString(contents, $.$get$context().toUri$1(path)); for (t1 = contents.length, i = 0; i < t1; ++i) { if (contents.charCodeAt(i) !== 65533) continue; throw A.wrapException(A.SassException$("Invalid UTF-8.", A.FileLocation$_(sourceFile, i).pointSpan$0(), null)); } return contents; }, _readFile(path, encoding) { return A._systemErrorToFileSystemException(new A._readFile_closure(path, encoding)); }, writeFile(path, contents) { if (!A.isNodeJs()) throw A.wrapException(A.UnsupportedError$("writeFile() is only supported on Node.js")); return A._systemErrorToFileSystemException(new A.writeFile_closure(path, contents)); }, deleteFile(path) { if (!A.isNodeJs()) throw A.wrapException(A.UnsupportedError$("deleteFile() is only supported on Node.js")); return A._systemErrorToFileSystemException(new A.deleteFile_closure(path)); }, readStdin() { return A.readStdin$body(); }, readStdin$body() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.String), $async$returnValue, t3, completer, sink, t1, t2; var $async$readStdin = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = {}; t2 = A.isNodeJs() ? self.process : null; if (t2 == null) throw A.wrapException(A.UnsupportedError$("readStdin() is only supported on Node.js")); t3 = new A._Future($.Zone__current, type$._Future_String); completer = new A._AsyncCompleter(t3, type$._AsyncCompleter_String); t1.contents = null; sink = new A._StringCallbackSink(new A.readStdin_closure(t1, completer), new A.StringBuffer("")).asUtf8Sink$1(false); t1 = J.getInterceptor$x(t2); J.on$2$x(t1.get$stdin(t2), "data", A.allowInterop(new A.readStdin_closure0(sink))); J.on$2$x(t1.get$stdin(t2), "end", A.allowInterop(new A.readStdin_closure1(sink))); J.on$2$x(t1.get$stdin(t2), "error", A.allowInterop(new A.readStdin_closure2(completer))); $async$returnValue = t3; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$readStdin, $async$completer); }, fileExists(path) { if (!A.isNodeJs()) throw A.wrapException(A.UnsupportedError$(string$.fileEx)); return A._systemErrorToFileSystemException(new A.fileExists_closure(path)); }, dirExists(path) { if (!A.isNodeJs()) throw A.wrapException(A.UnsupportedError$("dirExists() is only supported on Node.js")); return A._systemErrorToFileSystemException(new A.dirExists_closure(path)); }, ensureDir(path) { if (!A.isNodeJs()) throw A.wrapException(A.UnsupportedError$("ensureDir() is only supported on Node.js")); return A._systemErrorToFileSystemException(new A.ensureDir_closure(path)); }, listDir(path, recursive) { if (!A.isNodeJs()) throw A.wrapException(A.UnsupportedError$("listDir() is only supported on Node.js")); return A._systemErrorToFileSystemException(new A.listDir_closure(recursive, path)); }, modificationTime(path) { if (!A.isNodeJs()) throw A.wrapException(A.UnsupportedError$("modificationTime() is only supported on Node.js")); return A._systemErrorToFileSystemException(new A.modificationTime_closure(path)); }, getEnvironmentVariable($name) { var t1 = A.isNodeJs() ? self.process : null, env = t1 == null ? null : J.get$env$x(t1); if (env == null) t1 = null; else t1 = A._asStringQ(env[$name]); return t1; }, _systemErrorToFileSystemException(callback) { var error, t1, exception, t2; try { t1 = callback.call$0(); return t1; } catch (exception) { error = A.unwrapException(exception); if (!type$.JsSystemError._is(error)) throw exception; t1 = error; t2 = J.getInterceptor$x(t1); 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))); } }, hasTerminal() { var t1 = A.isNodeJs() ? self.process : null; return J.$eq$(t1 == null ? null : J.get$isTTY$x(J.get$stdout$x(t1)), true); }, isWindows() { var t1 = A.isNodeJs() ? self.process : null; return J.$eq$(t1 == null ? null : J.get$platform$x(t1), "win32"); }, watchDir(path, poll) { var watcher, t2, t3, t1 = {}; if (!A.isNodeJs()) throw A.wrapException(A.UnsupportedError$("watchDir() is only supported on Node.js")); watcher = J.watch$2$x(self.chokidar, path, {disableGlobbing: true, usePolling: poll}); t1.controller = null; t2 = J.getInterceptor$x(watcher); t2.on$2(watcher, "add", A.allowInterop(new A.watchDir_closure(t1))); t2.on$2(watcher, "change", A.allowInterop(new A.watchDir_closure0(t1))); t2.on$2(watcher, "unlink", A.allowInterop(new A.watchDir_closure1(t1))); t2.on$2(watcher, "error", A.allowInterop(new A.watchDir_closure2(t1))); t3 = new A._Future($.Zone__current, type$._Future_Stream_WatchEvent); t2.on$2(watcher, "ready", A.allowInterop(new A.watchDir_closure3(t1, watcher, new A._AsyncCompleter(t3, type$._AsyncCompleter_Stream_WatchEvent)))); return t3; }, FileSystemException: function FileSystemException(t0, t1) { this.message = t0; this.path = t1; }, _readFile_closure: function _readFile_closure(t0, t1) { this.path = t0; this.encoding = t1; }, writeFile_closure: function writeFile_closure(t0, t1) { this.path = t0; this.contents = t1; }, deleteFile_closure: function deleteFile_closure(t0) { this.path = t0; }, readStdin_closure: function readStdin_closure(t0, t1) { this._box_0 = t0; this.completer = t1; }, readStdin_closure0: function readStdin_closure0(t0) { this.sink = t0; }, readStdin_closure1: function readStdin_closure1(t0) { this.sink = t0; }, readStdin_closure2: function readStdin_closure2(t0) { this.completer = t0; }, fileExists_closure: function fileExists_closure(t0) { this.path = t0; }, dirExists_closure: function dirExists_closure(t0) { this.path = t0; }, ensureDir_closure: function ensureDir_closure(t0) { this.path = t0; }, listDir_closure: function listDir_closure(t0, t1) { this.recursive = t0; this.path = t1; }, listDir__closure: function listDir__closure(t0) { this.path = t0; }, listDir__closure0: function listDir__closure0() { }, listDir_closure_list: function listDir_closure_list() { }, listDir__list_closure: function listDir__list_closure(t0, t1) { this.parent = t0; this.list = t1; }, modificationTime_closure: function modificationTime_closure(t0) { this.path = t0; }, watchDir_closure: function watchDir_closure(t0) { this._box_0 = t0; }, watchDir_closure0: function watchDir_closure0(t0) { this._box_0 = t0; }, watchDir_closure1: function watchDir_closure1(t0) { this._box_0 = t0; }, watchDir_closure2: function watchDir_closure2(t0) { this._box_0 = t0; }, watchDir_closure3: function watchDir_closure3(t0, t1, t2) { this._box_0 = t0; this.watcher = t1; this.completer = t2; }, watchDir__closure: function watchDir__closure(t0) { this.watcher = t0; }, JSArray0: function JSArray0() { }, Chokidar: function Chokidar() { }, ChokidarOptions: function ChokidarOptions() { }, ChokidarWatcher: function ChokidarWatcher() { }, JSFunction: function JSFunction() { }, ImmutableList: function ImmutableList() { }, ImmutableMap: function ImmutableMap() { }, NodeImporterResult: function NodeImporterResult() { }, RenderContext: function RenderContext() { }, RenderContextOptions: function RenderContextOptions() { }, RenderContextResult: function RenderContextResult() { }, RenderContextResultStats: function RenderContextResultStats() { }, JSClass: function JSClass() { }, JSUrl: function JSUrl() { }, jsThrow0(error) { return type$.Never._as($.$get$_jsThrow0().call$1(error)); }, _PropertyDescriptor: function _PropertyDescriptor() { }, WarnForDeprecation_warnForDeprecation(_this, deprecation, message, span, trace) { var $self, t1; if (_this instanceof A.DeprecationHandlingLogger) { $self = _this; t1 = true; } else { $self = null; t1 = false; } if (t1) $self.warnForDeprecation$4$span$trace(deprecation, message, span, trace); else if (!deprecation.isFuture) _this.warn$4$deprecation$span$trace(0, message, true, span, trace); }, _QuietLogger: function _QuietLogger() { }, DeprecationHandlingLogger: function DeprecationHandlingLogger(t0, t1, t2, t3, t4) { var _ = this; _._warningCounts = t0; _._inner = t1; _.fatalDeprecations = t2; _.futureDeprecations = t3; _.limitRepetition = t4; }, DeprecationHandlingLogger_warnForDeprecation_closure: function DeprecationHandlingLogger_warnForDeprecation_closure(t0) { this._0_0 = t0; }, DeprecationHandlingLogger_warnForDeprecation_closure0: function DeprecationHandlingLogger_warnForDeprecation_closure0(t0) { this._0_0 = t0; }, DeprecationHandlingLogger_summarize_closure: function DeprecationHandlingLogger_summarize_closure() { }, DeprecationHandlingLogger_summarize_closure0: function DeprecationHandlingLogger_summarize_closure0() { }, StderrLogger: function StderrLogger(t0) { this.color = t0; }, TrackingLogger: function TrackingLogger(t0) { this._tracking$_logger = t0; this._emittedDebug = this._emittedWarning = false; }, BuiltInModule$($name, functions, mixins, variables, $T) { var t1 = A._Uri__Uri(null, $name, null, "sass"), t2 = A.BuiltInModule__callableMap(functions, $T), t3 = A.BuiltInModule__callableMap(mixins, $T), t4 = variables == null ? B.Map_empty5 : new A.UnmodifiableMapView(variables, type$.UnmodifiableMapView_String_Value); return new A.BuiltInModule(t1, t2, t3, t4, $T._eval$1("BuiltInModule<0>")); }, BuiltInModule__callableMap(callables, $T) { var t2, _i, callable, t1 = type$.String; if (callables == null) t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T); else { t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T); for (t2 = callables.length, _i = 0; _i < callables.length; callables.length === t2 || (0, A.throwConcurrentModificationError)(callables), ++_i) { callable = callables[_i]; t1.$indexSet(0, J.get$name$x(callable), callable); } t1 = new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>")); } return new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>")); }, BuiltInModule: function BuiltInModule(t0, t1, t2, t3, t4) { var _ = this; _.url = t0; _.functions = t1; _.mixins = t2; _.variables = t3; _.$ti = t4; }, ForwardedModuleView_ifNecessary(inner, rule, $T) { var t1; if (rule.prefix == null) if (rule.shownMixinsAndFunctions == null) if (rule.shownVariables == null) { t1 = rule.hiddenMixinsAndFunctions; if (t1 == null) t1 = null; else { t1 = t1._base; t1 = t1.get$isEmpty(t1); } if (t1 === true) { t1 = rule.hiddenVariables; if (t1 == null) t1 = null; else { t1 = t1._base; t1 = t1.get$isEmpty(t1); } t1 = t1 === true; } else t1 = false; } else t1 = false; else t1 = false; else t1 = false; if (t1) return inner; else return A.ForwardedModuleView$(inner, rule, $T); }, ForwardedModuleView$(_inner, _rule, $T) { var t1 = _rule.prefix, t2 = _rule.shownVariables, t3 = _rule.hiddenVariables, t4 = _rule.shownMixinsAndFunctions, t5 = _rule.hiddenMixinsAndFunctions; 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>")); }, ForwardedModuleView__forwardedMap(map, prefix, safelist, blocklist, $V) { var t2, t1 = prefix == null; if (t1) if (safelist == null) if (blocklist != null) { t2 = blocklist._base; t2 = t2.get$isEmpty(t2); } else t2 = true; else t2 = false; else t2 = false; if (t2) return map; if (!t1) map = new A.PrefixedMapView(map, prefix, $V._eval$1("PrefixedMapView<0>")); if (safelist != null) 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>")); else { if (blocklist != null) { t1 = blocklist._base; t1 = t1.get$isNotEmpty(t1); } else t1 = false; if (t1) map = A.LimitedMapView$blocklist(map, blocklist, type$.String, $V); } return map; }, ForwardedModuleView: function ForwardedModuleView(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _._forwarded_view$_inner = t0; _._rule = t1; _.variables = t2; _.variableNodes = t3; _.functions = t4; _.mixins = t5; _.$ti = t6; }, ShadowedModuleView_ifNecessary(inner, functions, mixins, variables, $T) { 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; }, ShadowedModuleView__shadowedMap(map, blocklist, $V) { var t1 = A.ShadowedModuleView__needsBlocklist(map, blocklist); return !t1 ? map : A.LimitedMapView$blocklist(map, blocklist, type$.String, $V); }, ShadowedModuleView__needsBlocklist(map, blocklist) { return map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey()); }, ShadowedModuleView: function ShadowedModuleView(t0, t1, t2, t3, t4, t5) { var _ = this; _._shadowed_view$_inner = t0; _.variables = t1; _.variableNodes = t2; _.functions = t3; _.mixins = t4; _.$ti = t5; }, AtRootQueryParser$(contents, logger, url) { var t1 = A.SpanScanner$(contents, url); return new A.AtRootQueryParser(t1, logger, null); }, AtRootQueryParser: function AtRootQueryParser(t0, t1, t2) { this.scanner = t0; this.logger = t1; this._interpolationMap = t2; }, AtRootQueryParser_parse_closure: function AtRootQueryParser_parse_closure(t0) { this.$this = t0; }, _disallowedFunctionNames_closure: function _disallowedFunctionNames_closure() { }, CssParser: function CssParser(t0, t1, t2, t3) { var _ = this; _._isUseAllowed = true; _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = _._stylesheet$_inMixin = false; _._globalVariables = t0; _.lastSilentComment = null; _.scanner = t1; _.logger = t2; _._interpolationMap = t3; }, KeyframeSelectorParser$(contents, interpolationMap, logger) { var t1 = A.SpanScanner$(contents, null); return new A.KeyframeSelectorParser(t1, logger, interpolationMap); }, KeyframeSelectorParser: function KeyframeSelectorParser(t0, t1, t2) { this.scanner = t0; this.logger = t1; this._interpolationMap = t2; }, KeyframeSelectorParser_parse_closure: function KeyframeSelectorParser_parse_closure(t0) { this.$this = t0; }, MediaQueryParser: function MediaQueryParser(t0, t1, t2) { this.scanner = t0; this.logger = t1; this._interpolationMap = t2; }, MediaQueryParser_parse_closure: function MediaQueryParser_parse_closure(t0) { this.$this = t0; }, Parser_isIdentifier(text) { var t1, t2, exception, logger = null; try { t1 = logger; t2 = A.SpanScanner$(text, null); new A.Parser(t2, t1 == null ? B.StderrLogger_false : t1, null)._parseIdentifier$0(); return true; } catch (exception) { if (type$.SassFormatException._is(A.unwrapException(exception))) return false; else throw exception; } }, Parser: function Parser(t0, t1, t2) { this.scanner = t0; this.logger = t1; this._interpolationMap = t2; }, Parser__parseIdentifier_closure: function Parser__parseIdentifier_closure(t0) { this.$this = t0; }, Parser_escape_closure: function Parser_escape_closure() { }, Parser_scanIdentChar_matches: function Parser_scanIdentChar_matches(t0, t1) { this.caseSensitive = t0; this.char = t1; }, Parser_spanFrom_closure: function Parser_spanFrom_closure(t0, t1) { this.$this = t0; this.span = t1; }, SassParser: function SassParser(t0, t1, t2, t3) { var _ = this; _._currentIndentation = 0; _._spaces = _._nextIndentationEnd = _._nextIndentation = null; _._isUseAllowed = true; _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = _._stylesheet$_inMixin = false; _._globalVariables = t0; _.lastSilentComment = null; _.scanner = t1; _.logger = t2; _._interpolationMap = t3; }, SassParser_styleRuleSelector_closure: function SassParser_styleRuleSelector_closure() { }, SassParser_children_closure: function SassParser_children_closure(t0, t1, t2) { this.$this = t0; this.child = t1; this.children = t2; }, SassParser__peekIndentation_closure: function SassParser__peekIndentation_closure() { }, SassParser__peekIndentation_closure0: function SassParser__peekIndentation_closure0() { }, ScssParser$(contents, logger, url) { var t1 = A.SpanScanner$(contents, url), t2 = logger == null ? B.StderrLogger_false : logger; return new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2, null); }, ScssParser: function ScssParser(t0, t1, t2, t3) { var _ = this; _._isUseAllowed = true; _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = _._stylesheet$_inMixin = false; _._globalVariables = t0; _.lastSilentComment = null; _.scanner = t1; _.logger = t2; _._interpolationMap = t3; }, SelectorParser$(contents, allowParent, allowPlaceholder, interpolationMap, logger, url) { var t1 = A.SpanScanner$(contents, url); return new A.SelectorParser(allowParent, allowPlaceholder, t1, logger == null ? B.StderrLogger_false : logger, interpolationMap); }, SelectorParser: function SelectorParser(t0, t1, t2, t3, t4) { var _ = this; _._allowParent = t0; _._allowPlaceholder = t1; _.scanner = t2; _.logger = t3; _._interpolationMap = t4; }, SelectorParser_parse_closure: function SelectorParser_parse_closure(t0) { this.$this = t0; }, SelectorParser_parseCompoundSelector_closure: function SelectorParser_parseCompoundSelector_closure(t0) { this.$this = t0; }, StylesheetParser: function StylesheetParser() { }, StylesheetParser_parse_closure: function StylesheetParser_parse_closure(t0) { this.$this = t0; }, StylesheetParser_parse__closure: function StylesheetParser_parse__closure(t0) { this.$this = t0; }, StylesheetParser_parse__closure0: function StylesheetParser_parse__closure0() { }, StylesheetParser_parseArgumentDeclaration_closure: function StylesheetParser_parseArgumentDeclaration_closure(t0) { this.$this = t0; }, StylesheetParser_parseVariableDeclaration_closure: function StylesheetParser_parseVariableDeclaration_closure(t0) { this.$this = t0; }, StylesheetParser_parseUseRule_closure: function StylesheetParser_parseUseRule_closure(t0) { this.$this = t0; }, StylesheetParser__parseSingleProduction_closure: function StylesheetParser__parseSingleProduction_closure(t0, t1, t2) { this.$this = t0; this.production = t1; this.T = t2; }, StylesheetParser__statement_closure: function StylesheetParser__statement_closure(t0) { this.$this = t0; }, StylesheetParser_variableDeclarationWithoutNamespace_closure: function StylesheetParser_variableDeclarationWithoutNamespace_closure(t0, t1) { this.$this = t0; this.start = t1; }, StylesheetParser_variableDeclarationWithoutNamespace_closure0: function StylesheetParser_variableDeclarationWithoutNamespace_closure0(t0) { this.declaration = t0; }, StylesheetParser__declarationOrBuffer_closure: function StylesheetParser__declarationOrBuffer_closure(t0) { this.name = t0; }, StylesheetParser__declarationOrBuffer_closure0: function StylesheetParser__declarationOrBuffer_closure0(t0, t1) { this._box_0 = t0; this.name = t1; }, StylesheetParser__styleRule_closure: function StylesheetParser__styleRule_closure(t0, t1, t2, t3) { var _ = this; _._box_0 = t0; _.$this = t1; _.wasInStyleRule = t2; _.start = t3; }, StylesheetParser__propertyOrVariableDeclaration_closure: function StylesheetParser__propertyOrVariableDeclaration_closure(t0) { this._box_0 = t0; }, StylesheetParser__propertyOrVariableDeclaration_closure0: function StylesheetParser__propertyOrVariableDeclaration_closure0(t0, t1) { this._box_0 = t0; this.value = t1; }, StylesheetParser__atRootRule_closure: function StylesheetParser__atRootRule_closure(t0) { this.query = t0; }, StylesheetParser__atRootRule_closure0: function StylesheetParser__atRootRule_closure0() { }, StylesheetParser__eachRule_closure: function StylesheetParser__eachRule_closure(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.wasInControlDirective = t1; _.variables = t2; _.list = t3; }, StylesheetParser__functionRule_closure: function StylesheetParser__functionRule_closure(t0, t1, t2) { this.name = t0; this.$arguments = t1; this.precedingComment = t2; }, StylesheetParser__forRule_closure: function StylesheetParser__forRule_closure(t0, t1) { this._box_0 = t0; this.$this = t1; }, StylesheetParser__forRule_closure0: function StylesheetParser__forRule_closure0(t0, t1, t2, t3, t4, t5) { var _ = this; _._box_0 = t0; _.$this = t1; _.wasInControlDirective = t2; _.variable = t3; _.from = t4; _.to = t5; }, StylesheetParser__memberList_closure: function StylesheetParser__memberList_closure(t0, t1, t2) { this.$this = t0; this.variables = t1; this.identifiers = t2; }, StylesheetParser__includeRule_closure: function StylesheetParser__includeRule_closure(t0) { this.contentArguments_ = t0; }, StylesheetParser_mediaRule_closure: function StylesheetParser_mediaRule_closure(t0) { this.query = t0; }, StylesheetParser__mixinRule_closure: function StylesheetParser__mixinRule_closure(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.name = t1; _.$arguments = t2; _.precedingComment = t3; }, StylesheetParser_mozDocumentRule_closure: function StylesheetParser_mozDocumentRule_closure(t0, t1, t2, t3) { var _ = this; _._box_0 = t0; _.$this = t1; _.name = t2; _.value = t3; }, StylesheetParser_supportsRule_closure: function StylesheetParser_supportsRule_closure(t0) { this.condition = t0; }, StylesheetParser__whileRule_closure: function StylesheetParser__whileRule_closure(t0, t1, t2) { this.$this = t0; this.wasInControlDirective = t1; this.condition = t2; }, StylesheetParser_unknownAtRule_closure: function StylesheetParser_unknownAtRule_closure(t0, t1) { this._box_0 = t0; this.name = t1; }, StylesheetParser__expression_resetState: function StylesheetParser__expression_resetState(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.start = t2; }, StylesheetParser__expression_resolveOneOperation: function StylesheetParser__expression_resolveOneOperation(t0, t1) { this._box_0 = t0; this.$this = t1; }, StylesheetParser__expression_resolveOperations: function StylesheetParser__expression_resolveOperations(t0, t1) { this._box_0 = t0; this.resolveOneOperation = t1; }, StylesheetParser__expression_addSingleExpression: function StylesheetParser__expression_addSingleExpression(t0, t1, t2, t3) { var _ = this; _._box_0 = t0; _.$this = t1; _.resetState = t2; _.resolveOperations = t3; }, StylesheetParser__expression_addOperator: function StylesheetParser__expression_addOperator(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.resolveOneOperation = t2; }, StylesheetParser__expression_resolveSpaceExpressions: function StylesheetParser__expression_resolveSpaceExpressions(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.resolveOperations = t2; }, StylesheetParser__expression_closure: function StylesheetParser__expression_closure(t0) { this._3_0 = t0; }, StylesheetParser__expression_closure0: function StylesheetParser__expression_closure0(t0) { this._3_0 = t0; }, StylesheetParser__expression_closure1: function StylesheetParser__expression_closure1(t0) { this._3_0 = t0; }, StylesheetParser_expressionUntilComma_closure: function StylesheetParser_expressionUntilComma_closure(t0) { this.$this = t0; }, StylesheetParser__isHexColor_closure: function StylesheetParser__isHexColor_closure(t0) { this._0_0 = t0; }, StylesheetParser__isHexColor_closure0: function StylesheetParser__isHexColor_closure0() { }, StylesheetParser__unicodeRange_closure: function StylesheetParser__unicodeRange_closure() { }, StylesheetParser__unicodeRange_closure0: function StylesheetParser__unicodeRange_closure0() { }, StylesheetParser_identifierLike_closure: function StylesheetParser_identifierLike_closure(t0) { this._2_0 = t0; }, StylesheetParser_identifierLike_closure0: function StylesheetParser_identifierLike_closure0(t0) { this._2_0 = t0; }, StylesheetParser_namespacedExpression_closure: function StylesheetParser_namespacedExpression_closure(t0, t1) { this.$this = t0; this.start = t1; }, StylesheetParser_trySpecialFunction_closure: function StylesheetParser_trySpecialFunction_closure() { }, StylesheetParser__tryUrlContents_closure: function StylesheetParser__tryUrlContents_closure(t0) { this._0_0 = t0; }, StylesheetParser__interpolatedDeclarationValue_closure: function StylesheetParser__interpolatedDeclarationValue_closure(t0) { this._1_0 = t0; }, StylesheetParser__interpolatedDeclarationValue_closure0: function StylesheetParser__interpolatedDeclarationValue_closure0(t0) { this._1_0 = t0; }, StylesheetParser__interpolatedDeclarationValue_closure1: function StylesheetParser__interpolatedDeclarationValue_closure1(t0) { this._1_0 = t0; }, StylesheetParser__interpolatedDeclarationValue_closure2: function StylesheetParser__interpolatedDeclarationValue_closure2(t0) { this._1_0 = t0; }, StylesheetParser__interpolatedDeclarationValue_closure3: function StylesheetParser__interpolatedDeclarationValue_closure3(t0) { this._1_0 = t0; }, StylesheetParser__expressionUntilComparison_closure: function StylesheetParser__expressionUntilComparison_closure(t0) { this.$this = t0; }, StylesheetParser__supportsConditionInParens_closure: function StylesheetParser__supportsConditionInParens_closure(t0) { this._0_0 = t0; }, StylesheetParser__publicIdentifier_closure: function StylesheetParser__publicIdentifier_closure(t0, t1) { this.$this = t0; this.start = t1; }, StylesheetNode$_(_stylesheet, importer, canonicalUrl, allUpstream) { var t1 = new A.StylesheetNode(_stylesheet, importer, canonicalUrl, allUpstream._1, allUpstream._0, A.LinkedHashSet_LinkedHashSet$_empty(type$.StylesheetNode)); t1.StylesheetNode$_$4(_stylesheet, importer, canonicalUrl, allUpstream); return t1; }, StylesheetGraph: function StylesheetGraph(t0, t1, t2) { this._nodes = t0; this.importCache = t1; this._transitiveModificationTimes = t2; }, StylesheetGraph_modifiedSince_transitiveModificationTime: function StylesheetGraph_modifiedSince_transitiveModificationTime(t0) { this.$this = t0; }, StylesheetGraph_modifiedSince_transitiveModificationTime_closure: function StylesheetGraph_modifiedSince_transitiveModificationTime_closure(t0, t1) { this.node = t0; this.transitiveModificationTime = t1; }, StylesheetGraph__add_closure: function StylesheetGraph__add_closure(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.url = t1; _.baseImporter = t2; _.baseUrl = t3; }, StylesheetGraph_addCanonical_closure: function StylesheetGraph_addCanonical_closure(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.importer = t1; _.canonicalUrl = t2; _.originalUrl = t3; }, StylesheetGraph_reload_closure: function StylesheetGraph_reload_closure(t0, t1, t2) { this.$this = t0; this.node = t1; this.canonicalUrl = t2; }, StylesheetGraph__nodeFor_closure: function StylesheetGraph__nodeFor_closure(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.url = t1; _.baseImporter = t2; _.baseUrl = t3; _.forImport = t4; }, StylesheetGraph__nodeFor_closure0: function StylesheetGraph__nodeFor_closure0(t0, t1) { this._box_0 = t0; this.$this = t1; }, StylesheetNode: function StylesheetNode(t0, t1, t2, t3, t4, t5) { var _ = this; _._stylesheet = t0; _.importer = t1; _.canonicalUrl = t2; _._upstream = t3; _._upstreamImports = t4; _._downstream = t5; }, Syntax_forPath(path) { var t1, _0_0 = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]; $label0$0: { if (".sass" === _0_0) { t1 = B.Syntax_Sass_sass; break $label0$0; } if (".css" === _0_0) { t1 = B.Syntax_CSS_css; break $label0$0; } t1 = B.Syntax_SCSS_scss; break $label0$0; } return t1; }, Syntax: function Syntax(t0, t1) { this._syntax$_name = t0; this._name = t1; }, Box: function Box(t0, t1) { this._box$_inner = t0; this.$ti = t1; }, ModifiableBox: function ModifiableBox(t0, t1) { this.value = t0; this.$ti = t1; }, LazyFileSpan: function LazyFileSpan(t0) { this._builder = t0; this._lazy_file_span$_span = null; }, LimitedMapView$blocklist(_map, blocklist, $K, $V) { var t2, key, t1 = A.LinkedHashSet_LinkedHashSet$_empty($K); for (t2 = J.get$iterator$ax(_map.get$keys(_map)); t2.moveNext$0();) { key = t2.get$current(t2); if (!blocklist.contains$1(0, key)) t1.add$1(0, key); } return new A.LimitedMapView(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView<1,2>")); }, LimitedMapView: function LimitedMapView(t0, t1, t2) { this._limited_map_view$_map = t0; this._limited_map_view$_keys = t1; this.$ti = t2; }, MapExtensions_get_pairs(_this, $K, $V) { 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)")); }, MapExtensions_get_pairs_closure: function MapExtensions_get_pairs_closure(t0, t1) { this.K = t0; this.V = t1; }, MergedMapView$(maps, $K, $V) { var t1 = $K._eval$1("@<0>")._bind$1($V); t1 = new A.MergedMapView(A.LinkedHashMap_LinkedHashMap$_empty($K, t1._eval$1("Map<1,2>")), t1._eval$1("MergedMapView<1,2>")); t1.MergedMapView$1(maps, $K, $V); return t1; }, MergedMapView: function MergedMapView(t0, t1) { this._mapsByKey = t0; this.$ti = t1; }, MultiDirWatcher: function MultiDirWatcher(t0, t1, t2) { this._watchers = t0; this._group = t1; this._poll = t2; }, MultiDirWatcher_watch_closure: function MultiDirWatcher_watch_closure(t0) { this._0_0 = t0; }, MultiSpan: function MultiSpan(t0, t1, t2) { this._multi_span$_primary = t0; this.primaryLabel = t1; this.secondarySpans = t2; }, NoSourceMapBuffer: function NoSourceMapBuffer(t0) { this._no_source_map_buffer$_buffer = t0; }, PrefixedMapView: function PrefixedMapView(t0, t1, t2) { this._prefixed_map_view$_map = t0; this._prefix = t1; this.$ti = t2; }, _PrefixedKeys: function _PrefixedKeys(t0) { this._view = t0; }, _PrefixedKeys_iterator_closure: function _PrefixedKeys_iterator_closure(t0) { this.$this = t0; }, PublicMemberMapView: function PublicMemberMapView(t0, t1) { this._public_member_map_view$_inner = t0; this.$ti = t1; }, SourceMapBuffer: function SourceMapBuffer(t0, t1) { var _ = this; _._source_map_buffer$_buffer = t0; _._entries = t1; _._column = _._line = 0; _._inSpan = false; }, SourceMapBuffer_buildSourceMap_closure: function SourceMapBuffer_buildSourceMap_closure(t0, t1) { this._box_0 = t0; this.prefixLength = t1; }, UnprefixedMapView: function UnprefixedMapView(t0, t1, t2) { this._unprefixed_map_view$_map = t0; this._unprefixed_map_view$_prefix = t1; this.$ti = t2; }, _UnprefixedKeys: function _UnprefixedKeys(t0) { this._unprefixed_map_view$_view = t0; }, _UnprefixedKeys_iterator_closure: function _UnprefixedKeys_iterator_closure(t0) { this.$this = t0; }, _UnprefixedKeys_iterator_closure0: function _UnprefixedKeys_iterator_closure0(t0) { this.$this = t0; }, toSentence(iter, conjunction) { if (iter.get$length(iter) === 1) return J.toString$0$(iter.get$first(iter)); return A.IterableExtension_get_exceptLast(iter).join$1(0, ", ") + (" " + conjunction + " " + A.S(iter.get$last(iter))); }, indent(string, indentation) { 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"); }, pluralize($name, number, plural) { if (number === 1) return $name; if (plural != null) return plural; return $name + "s"; }, trimAscii(string, excludeEscape) { var t1, start = A._firstNonWhitespace(string); if (start == null) t1 = ""; else { t1 = A._lastNonWhitespace(string, true); t1.toString; t1 = B.JSString_methods.substring$2(string, start, t1 + 1); } return t1; }, trimAsciiRight(string, excludeEscape) { var end = A._lastNonWhitespace(string, excludeEscape); return end == null ? "" : B.JSString_methods.substring$2(string, 0, end + 1); }, _firstNonWhitespace(string) { var t1, i, t2; for (t1 = string.length, i = 0; i < t1; ++i) { t2 = string.charCodeAt(i); if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12)) return i; } return null; }, _lastNonWhitespace(string, excludeEscape) { var i, i0, codeUnit; for (i = string.length - 1, i0 = i; i0 >= 0; --i0) { codeUnit = string.charCodeAt(i0); if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12)) if (excludeEscape && i0 !== 0 && i0 !== i && codeUnit === 92) return i0 + 1; else return i0; } return null; }, isPublic(member) { var start = member.charCodeAt(0); return start !== 45 && start !== 95; }, flattenVertically(iterable, $T) { var result, t1 = iterable.$ti._eval$1("@")._bind$1($T._eval$1("QueueList<0>"))._eval$1("MappedListIterable<1,2>"), queues = A.List_List$of(new A.MappedListIterable(iterable, new A.flattenVertically_closure($T), t1), true, t1._eval$1("ListIterable.E")); if (queues.length === 1) return B.JSArray_methods.get$first(queues); result = A._setArrayType([], $T._eval$1("JSArray<0>")); for (; queues.length !== 0;) { if (!!queues.fixed$length) A.throwExpression(A.UnsupportedError$("removeWhere")); B.JSArray_methods._removeWhere$2(queues, new A.flattenVertically_closure0(result, $T), true); } return result; }, codepointIndexToCodeUnitIndex(string, codepointIndex) { var codeUnitIndex, i, codeUnitIndex0; for (codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) { codeUnitIndex0 = codeUnitIndex + 1; codeUnitIndex = string.charCodeAt(codeUnitIndex) >>> 10 === 54 ? codeUnitIndex0 + 1 : codeUnitIndex0; } return codeUnitIndex; }, codeUnitIndexToCodepointIndex(string, codeUnitIndex) { var codepointIndex, i; for (codepointIndex = 0, i = 0; i < codeUnitIndex; i = (string.charCodeAt(i) >>> 10 === 54 ? i + 1 : i) + 1) ++codepointIndex; return codepointIndex; }, frameForSpan(span, member, url) { var t2, t3, t1 = url == null ? span.get$sourceUrl(span) : url; if (t1 == null) t1 = $.$get$_noSourceUrl(); t2 = span.get$start(span); t2 = t2.file.getLine$1(t2.offset); t3 = span.get$start(span); return new A.Frame(t1, t2 + 1, t3.file.getColumn$1(t3.offset) + 1, member); }, declarationName(span) { var text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null); return A.trimAsciiRight(B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":")), false); }, unvendor($name) { var i, t1 = $name.length; if (t1 < 2) return $name; if ($name.charCodeAt(0) !== 45) return $name; if ($name.charCodeAt(1) === 45) return $name; for (i = 2; i < t1; ++i) if ($name.charCodeAt(i) === 45) return B.JSString_methods.substring$1($name, i + 1); return $name; }, equalsIgnoreCase(string1, string2) { var t1, i; if (string1 === string2) return true; if (string1 == null || false) return false; t1 = string1.length; if (t1 !== string2.length) return false; for (i = 0; i < t1; ++i) if (!A.characterEqualsIgnoreCase(string1.charCodeAt(i), string2.charCodeAt(i))) return false; return true; }, startsWithIgnoreCase(string, prefix) { var i, t1 = prefix.length; if (string.length < t1) return false; for (i = 0; i < t1; ++i) if (!A.characterEqualsIgnoreCase(string.charCodeAt(i), prefix.charCodeAt(i))) return false; return true; }, mapInPlace(list, $function) { var i; for (i = 0; i < list.length; ++i) list[i] = $function.call$1(list[i]); }, longestCommonSubsequence(list1, list2, select, $T) { var t1, _i, selections, i, i0, j, selection, j0, _length = list1.get$length(list1) + 1, lengths = J.JSArray_JSArray$allocateFixed(_length, type$.List_int); for (t1 = type$.int, _i = 0; _i < _length; ++_i) 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); _length = list1.get$length(list1); selections = J.JSArray_JSArray$allocateFixed(_length, $T._eval$1("List<0?>")); for (t1 = $T._eval$1("0?"), _i = 0; _i < _length; ++_i) 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); for (i = 0; i < (list1._queue_list$_tail - list1._queue_list$_head & J.get$length$asx(list1._queue_list$_table) - 1) >>> 0; i = i0) 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) { selection = select.call$2(list1.$index(0, i), list2.$index(0, j)); selections[i][j] = selection; t1 = lengths[i0]; j0 = j + 1; t1[j0] = selection == null ? Math.max(t1[j], lengths[i][j0]) : lengths[i][j] + 1; } return new A.longestCommonSubsequence_backtrack(selections, lengths, $T).call$2(list1.get$length(list1) - 1, list2.get$length(list2) - 1); }, removeFirstWhere(list, test, orElse) { var i; for (i = 0; i < list.length; ++i) { if (!test.call$1(list[i])) continue; B.JSArray_methods.removeAt$1(list, i); return; } orElse.call$0(); }, mapAddAll2(destination, source, K1, K2, $V) { source.forEach$1(0, new A.mapAddAll2_closure(destination, K1, K2, $V)); }, setAll(map, keys, value) { var t1; for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();) map.$indexSet(0, t1.get$current(t1), value); }, rotateSlice(list, start, end) { var i, next, element = list.$index(0, end - 1); for (i = start; i < end; ++i, element = next) { next = list.$index(0, i); list.$indexSet(0, i, element); } }, mapAsync(iterable, callback, $E, $F) { return A.mapAsync$body(iterable, callback, $E, $F, $F._eval$1("Iterable<0>")); }, mapAsync$body(iterable, callback, $E, $F, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, t2, _i, t1, $async$temp1; var $async$mapAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = A._setArrayType([], $F._eval$1("JSArray<0>")); t2 = iterable.length, _i = 0; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } $async$temp1 = t1; $async$goto = 6; return A._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync); case 6: // returning from await. $async$temp1.push($async$result); case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = t1; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$mapAsync, $async$completer); }, putIfAbsentAsync(map, key, ifAbsent, $K, $V) { return A.putIfAbsentAsync$body(map, key, ifAbsent, $K, $V, $V); }, putIfAbsentAsync$body(map, key, ifAbsent, $K, $V, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, t1, value; var $async$putIfAbsentAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if (map.containsKey$1(key)) { t1 = map.$index(0, key); $async$returnValue = t1 == null ? $V._as(t1) : t1; // goto return $async$goto = 1; break; } $async$goto = 3; return A._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync); case 3: // returning from await. value = $async$result; map.$indexSet(0, key, value); $async$returnValue = value; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$putIfAbsentAsync, $async$completer); }, copyMapOfMap(map, K1, K2, $V) { var t3, key, child, t1 = K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1,2>"), t2 = A.LinkedHashMap_LinkedHashMap$_empty(K1, t1); for (t1 = A.MapExtensions_get_pairs(map, K1, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) { t3 = t1.get$current(t1); key = t3._0; child = t3._1; t3 = A.LinkedHashMap_LinkedHashMap(null, null, null, K2, $V); t3.addAll$1(0, child); t2.$indexSet(0, key, t3); } return t2; }, copyMapOfList(map, $K, $E) { var t3, key, list, t1 = $E._eval$1("List<0>"), t2 = A.LinkedHashMap_LinkedHashMap$_empty($K, t1); for (t1 = A.MapExtensions_get_pairs(map, $K, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) { t3 = t1.get$current(t1); key = t3._0; list = t3._1; t2.$indexSet(0, key, J.toList$0$ax(list)); } return t2; }, consumeEscapedCharacter(scanner) { var _1_0, value, i, next, t1; scanner.expectChar$1(92); _1_0 = scanner.peekChar$0(); if (_1_0 == null) return 65533; if (_1_0 === 10 || _1_0 === 13 || _1_0 === 12) scanner.error$1(0, "Expected escape sequence."); if (A.CharacterExtension_get_isHex(_1_0)) { for (value = 0, i = 0; i < 6; ++i) { next = scanner.peekChar$0(); if (next != null) { if (!(next >= 48 && next <= 57)) if (!(next >= 97 && next <= 102)) t1 = next >= 65 && next <= 70; else t1 = true; else t1 = true; t1 = !t1; } else t1 = true; if (t1) break; value = (value << 4 >>> 0) + A.asHex(scanner.readChar$0()); } t1 = scanner.peekChar$0(); if (t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12) scanner.readChar$0(); $label0$1: { if (0 !== value) t1 = value >= 55296 && value <= 57343 || value >= 1114111; else t1 = true; if (t1) { t1 = 65533; break $label0$1; } t1 = value; break $label0$1; } return t1; } return scanner.readChar$0(); }, throwWithTrace(error, originalError, trace) { var t1 = A.getTrace(originalError); A.attachTrace(error, t1 == null ? trace : t1); throw A.wrapException(error); }, attachTrace(error, trace) { var t1; if (trace.toString$0(0).length === 0) return; t1 = $.$get$_traces(); A.Expando__checkType(error); if (t1._jsWeakMap.get(error) == null) t1.$indexSet(0, error, trace); }, getTrace(error) { var t1; if (typeof error == "string" || typeof error == "number" || A._isBool(error)) t1 = null; else { t1 = $.$get$_traces(); A.Expando__checkType(error); t1 = t1._jsWeakMap.get(error); } return t1; }, indent_closure: function indent_closure(t0) { this.indentation = t0; }, flattenVertically_closure: function flattenVertically_closure(t0) { this.T = t0; }, flattenVertically_closure0: function flattenVertically_closure0(t0, t1) { this.result = t0; this.T = t1; }, longestCommonSubsequence_backtrack: function longestCommonSubsequence_backtrack(t0, t1, t2) { this.selections = t0; this.lengths = t1; this.T = t2; }, mapAddAll2_closure: function mapAddAll2_closure(t0, t1, t2, t3) { var _ = this; _.destination = t0; _.K1 = t1; _.K2 = t2; _.V = t3; }, SassApiValue_assertSelector(_this, allowParent, $name) { var error, stackTrace, t1, exception, string = _this._selectorString$1($name); try { t1 = A.SelectorList_SelectorList$parse(string, allowParent, true, null, null); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (type$.SassFormatException._is(t1)) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""); A.throwWithTrace(new A.SassScriptException($name == null ? t1 : "$" + $name + ": " + t1), error, stackTrace); } else throw exception; } }, SassApiValue_assertCompoundSelector(_this, $name) { var error, stackTrace, t1, exception, allowParent = false, string = _this._selectorString$1($name); try { t1 = A.SelectorParser$(string, allowParent, true, null, null, null).parseCompoundSelector$0(); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (type$.SassFormatException._is(t1)) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""); A.throwWithTrace(new A.SassScriptException("$" + $name + ": " + t1), error, stackTrace); } else throw exception; } }, Value: function Value() { }, SassArgumentList$(contents, keywords, separator) { var t1 = type$.Value; t1 = new A.SassArgumentList(A.ConstantMap_ConstantMap$from(keywords, type$.String, t1), A.List_List$unmodifiable(contents, t1), separator, false); t1.SassList$3$brackets(contents, separator, false); return t1; }, SassArgumentList: function SassArgumentList(t0, t1, t2, t3) { var _ = this; _._keywords = t0; _._wereKeywordsAccessed = false; _._list$_contents = t1; _._separator = t2; _._hasBrackets = t3; }, SassBoolean: function SassBoolean(t0) { this.value = t0; }, SassCalculation_calc(argument) { var value, t1, _0_0 = A.SassCalculation__simplify(argument); $label0$0: { if (_0_0 instanceof A.SassNumber) { value = _0_0; t1 = true; } else { value = null; t1 = false; } if (t1) { t1 = value; break $label0$0; } if (_0_0 instanceof A.SassCalculation) { value = _0_0; t1 = true; } else { value = null; t1 = false; } if (t1) { t1 = value; break $label0$0; } t1 = new A.SassCalculation("calc", A.List_List$unmodifiable([_0_0], type$.Object)); break $label0$0; } return t1; }, SassCalculation_min($arguments) { var minimum, _i, arg, t2, args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object), t1 = args.length; if (t1 === 0) throw A.wrapException(A.ArgumentError$("min() must have at least one argument.", null)); for (minimum = null, _i = 0; _i < t1; ++_i) { arg = args[_i]; if (arg instanceof A.SassNumber) t2 = minimum != null && !minimum.isComparableTo$1(arg); else t2 = true; if (t2) { minimum = null; break; } else if (minimum == null || minimum.greaterThan$1(arg).value) minimum = arg; } if (minimum != null) return minimum; A.SassCalculation__verifyCompatibleNumbers(args); return new A.SassCalculation("min", args); }, SassCalculation_max($arguments) { var maximum, _i, arg, t2, args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object), t1 = args.length; if (t1 === 0) throw A.wrapException(A.ArgumentError$("max() must have at least one argument.", null)); for (maximum = null, _i = 0; _i < t1; ++_i) { arg = args[_i]; if (arg instanceof A.SassNumber) t2 = maximum != null && !maximum.isComparableTo$1(arg); else t2 = true; if (t2) { maximum = null; break; } else if (maximum == null || maximum.lessThan$1(arg).value) maximum = arg; } if (maximum != null) return maximum; A.SassCalculation__verifyCompatibleNumbers(args); return new A.SassCalculation("max", args); }, SassCalculation_hypot($arguments) { var first, subtotal, i, number, value, t2, t3, args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object), t1 = args.length; if (t1 === 0) throw A.wrapException(A.ArgumentError$("hypot() must have at least one argument.", null)); A.SassCalculation__verifyCompatibleNumbers(args); first = B.JSArray_methods.get$first(args); if (!(first instanceof A.SassNumber) || first.hasUnit$1("%")) return new A.SassCalculation("hypot", args); for (subtotal = 0, i = 0; i < t1;) { number = args[i]; if (!(number instanceof A.SassNumber) || !number.hasCompatibleUnits$1(first)) return new A.SassCalculation("hypot", args); ++i; value = number.convertValueToMatch$3(first, "numbers[" + i + "]", "numbers[1]"); subtotal += value * value; } t1 = Math.sqrt(subtotal); t2 = J.getInterceptor$x(first); t3 = t2.get$numeratorUnits(first); return A.SassNumber_SassNumber$withUnits(t1, t2.get$denominatorUnits(first), t3); }, SassCalculation_abs(argument) { var t1, t2; argument = A.SassCalculation__simplify(argument); if (!(argument instanceof A.SassNumber)) return new A.SassCalculation("abs", A._setArrayType([argument], type$.JSArray_Object)); if (argument.hasUnit$1("%")) { t1 = argument.toString$0(0); t2 = argument.toString$0(0); A.EvaluationContext_current().warn$2(0, string$.Passinp + t1 + ")\nTo emit a CSS abs() now: abs(#{" + t2 + string$.x7d__Mor, B.Deprecation_043); } return A.SassNumber_SassNumber(Math.abs(argument._number$_value), null).coerceToMatch$1(argument); }, SassCalculation_exp(argument) { argument = A.SassCalculation__simplify(argument); if (!(argument instanceof A.SassNumber)) return new A.SassCalculation("exp", A._setArrayType([argument], type$.JSArray_Object)); argument.assertNoUnits$0(); return A.pow0(A.SassNumber_SassNumber(2.718281828459045, null), argument); }, SassCalculation_sign(argument) { var _0_2, t1, t2, arg; argument = A.SassCalculation__simplify(argument); _0_2 = A._InitializedCell$(new A.SassCalculation_sign_closure(argument)); $label0$0: { t1 = argument instanceof A.SassNumber; if (t1) t2 = isNaN(_0_2._readFinal$0()) || 0 === _0_2._readFinal$0(); else t2 = false; if (t2) { t1 = argument; break $label0$0; } if (t1) { t1 = !argument.hasUnit$1("%"); arg = argument; } else { arg = null; t1 = false; } if (t1) { t1 = A.SassNumber_SassNumber(J.get$sign$in(arg._number$_value), null).coerceToMatch$1(argument); break $label0$0; } t1 = new A.SassCalculation("sign", A._setArrayType([argument], type$.JSArray_Object)); break $label0$0; } return t1; }, SassCalculation_clamp(min, value, max) { var t1, args; if (value == null && max != null) throw A.wrapException(A.ArgumentError$("If value is null, max must also be null.", null)); min = A.SassCalculation__simplify(min); value = A.NullableExtension_andThen(value, A.calculation_SassCalculation__simplify$closure()); max = A.NullableExtension_andThen(max, A.calculation_SassCalculation__simplify$closure()); if (min instanceof A.SassNumber && value instanceof A.SassNumber && max instanceof A.SassNumber && min.hasCompatibleUnits$1(value) && min.hasCompatibleUnits$1(max)) { if (value.lessThanOrEquals$1(min).value) return min; if (value.greaterThanOrEquals$1(max).value) return max; return value; } t1 = [min]; if (value != null) t1.push(value); if (max != null) t1.push(max); args = A.List_List$unmodifiable(t1, type$.Object); A.SassCalculation__verifyCompatibleNumbers(args); A.SassCalculation__verifyLength(args, 3); return new A.SassCalculation("clamp", args); }, SassCalculation_pow(base, exponent) { var t1 = A._setArrayType([base], type$.JSArray_Object); if (exponent != null) t1.push(exponent); A.SassCalculation__verifyLength(t1, 2); base = A.SassCalculation__simplify(base); exponent = A.NullableExtension_andThen(exponent, A.calculation_SassCalculation__simplify$closure()); if (!(base instanceof A.SassNumber) || !(exponent instanceof A.SassNumber)) return new A.SassCalculation("pow", t1); base.assertNoUnits$0(); exponent.assertNoUnits$0(); return A.pow0(base, exponent); }, SassCalculation_log(number, base) { var t1, t2; number = A.SassCalculation__simplify(number); base = A.NullableExtension_andThen(base, A.calculation_SassCalculation__simplify$closure()); t1 = A._setArrayType([number], type$.JSArray_Object); t2 = base != null; if (t2) t1.push(base); if (number instanceof A.SassNumber) t2 = t2 && !(base instanceof A.SassNumber); else t2 = true; if (t2) return new A.SassCalculation("log", t1); number.assertNoUnits$0(); if (base instanceof A.SassNumber) { base.assertNoUnits$0(); return A.log(number, base); } return A.log(number, null); }, SassCalculation_atan2(y, x) { var t1; y = A.SassCalculation__simplify(y); x = A.NullableExtension_andThen(x, A.calculation_SassCalculation__simplify$closure()); t1 = A._setArrayType([y], type$.JSArray_Object); if (x != null) t1.push(x); A.SassCalculation__verifyLength(t1, 2); A.SassCalculation__verifyCompatibleNumbers(t1); if (!(y instanceof A.SassNumber) || !(x instanceof A.SassNumber) || y.hasUnit$1("%") || x.hasUnit$1("%") || !y.hasCompatibleUnits$1(x)) return new A.SassCalculation("atan2", t1); 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)); }, SassCalculation_rem(dividend, modulus) { var t1, result; dividend = A.SassCalculation__simplify(dividend); modulus = A.NullableExtension_andThen(modulus, A.calculation_SassCalculation__simplify$closure()); t1 = A._setArrayType([dividend], type$.JSArray_Object); if (modulus != null) t1.push(modulus); A.SassCalculation__verifyLength(t1, 2); A.SassCalculation__verifyCompatibleNumbers(t1); if (!(dividend instanceof A.SassNumber) || !(modulus instanceof A.SassNumber) || !dividend.hasCompatibleUnits$1(modulus)) return new A.SassCalculation("rem", t1); result = dividend.modulo$1(modulus); t1 = modulus._number$_value; if (A.DoubleWithSignedZero_get_signIncludingZero(t1) !== A.DoubleWithSignedZero_get_signIncludingZero(dividend._number$_value)) { if (t1 == 1 / 0 || t1 == -1 / 0) return dividend; if (result._number$_value === 0) return result.unaryMinus$0(); return result.minus$1(modulus); } return result; }, SassCalculation_mod(dividend, modulus) { var t1; dividend = A.SassCalculation__simplify(dividend); modulus = A.NullableExtension_andThen(modulus, A.calculation_SassCalculation__simplify$closure()); t1 = A._setArrayType([dividend], type$.JSArray_Object); if (modulus != null) t1.push(modulus); A.SassCalculation__verifyLength(t1, 2); A.SassCalculation__verifyCompatibleNumbers(t1); if (!(dividend instanceof A.SassNumber) || !(modulus instanceof A.SassNumber) || !dividend.hasCompatibleUnits$1(modulus)) return new A.SassCalculation("mod", t1); return dividend.modulo$1(modulus); }, SassCalculation_round(strategyOrNumber, numberOrStep, step) { var number, t1, t2, strategy, rest, _null = null, _s5_ = "round", _0_0 = new A._Record_3(A.SassCalculation__simplify(strategyOrNumber), A.NullableExtension_andThen(numberOrStep, A.calculation_SassCalculation__simplify$closure()), A.NullableExtension_andThen(step, A.calculation_SassCalculation__simplify$closure())), _0_1 = A._InitializedCell$(new A.SassCalculation_round_closure(_0_0)), _0_2 = A._InitializedCell$(new A.SassCalculation_round_closure0(_0_0)), _0_4 = A._InitializedCell$(new A.SassCalculation_round_closure1(_0_2)), _0_5 = A._InitializedCell$(new A.SassCalculation_round_closure2(_0_0)), _0_6 = A._InitializedCell$(new A.SassCalculation_round_closure3(_0_5)), _0_8 = A._InitializedCell$(new A.SassCalculation_round_closure4(_0_1)), _0_10 = A._InitializedCell$(new A.SassCalculation_round_closure5(_0_8)), _0_12 = A._InitializedCell$(new A.SassCalculation_round_closure6(_0_8)), _0_14 = A._InitializedCell$(new A.SassCalculation_round_closure7(_0_8)), _0_16 = A._InitializedCell$(new A.SassCalculation_round_closure8(_0_8)); if (_0_1._readFinal$0() instanceof A.SassNumber) { number = _0_1._readFinal$0(); t1 = _0_4._readFinal$0() && _0_6._readFinal$0(); } else { number = _null; t1 = false; } if (t1) { t1 = B.JSNumber_methods.round$0(number._number$_value); t2 = number.get$numeratorUnits(number); return A.SassNumber_SassNumber$withUnits(t1, number.get$denominatorUnits(number), t2); } if (_0_1._readFinal$0() instanceof A.SassNumber) { number = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.SassNumber) { step = _0_2._readFinal$0(); t1 = _0_6._readFinal$0() && !number.hasCompatibleUnits$1(step); } else { step = _null; t1 = false; } } else { step = _null; number = step; t1 = false; } if (t1) { t1 = type$.JSArray_Object; A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([number, step], t1)); return new A.SassCalculation(_s5_, A._setArrayType([number, step], t1)); } if (_0_1._readFinal$0() instanceof A.SassNumber) { number = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.SassNumber) { step = _0_2._readFinal$0(); t1 = _0_6._readFinal$0(); t1 = t1; } else { step = _null; t1 = false; } } else { step = _null; number = step; t1 = false; } if (t1) { A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([number, step], type$.JSArray_Object)); return A.SassCalculation__roundWithStep("nearest", number, step); } if (_0_1._readFinal$0() instanceof A.SassString) if (_0_10._readFinal$0() || _0_12._readFinal$0() || _0_14._readFinal$0() || _0_16._readFinal$0()) { strategy = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.SassNumber) { number = _0_2._readFinal$0(); if (_0_5._readFinal$0() instanceof A.SassNumber) { step = _0_5._readFinal$0(); t1 = !number.hasCompatibleUnits$1(step); } else { step = _null; t1 = false; } } else { step = _null; number = step; t1 = false; } } else { step = _null; number = step; strategy = number; t1 = false; } else { step = _null; number = step; strategy = number; t1 = false; } if (t1) { t1 = type$.JSArray_Object; A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([number, step], t1)); return new A.SassCalculation(_s5_, A._setArrayType([strategy, number, step], t1)); } if (_0_1._readFinal$0() instanceof A.SassString) if (_0_10._readFinal$0() || _0_12._readFinal$0() || _0_14._readFinal$0() || _0_16._readFinal$0()) { strategy = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.SassNumber) { number = _0_2._readFinal$0(); if (_0_5._readFinal$0() instanceof A.SassNumber) { step = _0_5._readFinal$0(); t1 = true; } else { step = _null; t1 = false; } } else { step = _null; number = step; t1 = false; } } else { step = _null; number = step; strategy = number; t1 = false; } else { step = _null; number = step; strategy = number; t1 = false; } if (t1) { A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([number, step], type$.JSArray_Object)); return A.SassCalculation__roundWithStep(strategy._string$_text, number, step); } if (_0_1._readFinal$0() instanceof A.SassString) if (_0_10._readFinal$0() || _0_12._readFinal$0() || _0_14._readFinal$0() || _0_16._readFinal$0()) { strategy = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.SassString) { rest = _0_2._readFinal$0(); t1 = _0_6._readFinal$0(); t1 = t1; } else { rest = _null; t1 = false; } } else { rest = _null; strategy = rest; t1 = false; } else { rest = _null; strategy = rest; t1 = false; } if (t1) return new A.SassCalculation(_s5_, A._setArrayType([strategy, rest], type$.JSArray_Object)); if (_0_1._readFinal$0() instanceof A.SassString) if (_0_10._readFinal$0() || _0_12._readFinal$0() || _0_14._readFinal$0() || _0_16._readFinal$0()) t1 = _0_2._readFinal$0() != null && true && _0_6._readFinal$0(); else t1 = false; else t1 = false; if (t1) throw A.wrapException(A.SassScriptException$(string$.If_str, _null)); if (_0_1._readFinal$0() instanceof A.SassString) t1 = (_0_10._readFinal$0() || _0_12._readFinal$0() || _0_14._readFinal$0() || _0_16._readFinal$0()) && _0_4._readFinal$0() && _0_6._readFinal$0(); else t1 = false; if (t1) throw A.wrapException(A.SassScriptException$(string$.Number, _null)); if (_0_1._readFinal$0() instanceof A.SassString) { rest = _0_1._readFinal$0(); t1 = _0_4._readFinal$0() && _0_6._readFinal$0(); } else { rest = _null; t1 = false; } if (t1) return new A.SassCalculation(_s5_, A._setArrayType([rest], type$.JSArray_Object)); number = _0_1._readFinal$0(); if (_0_4._readFinal$0() && _0_6._readFinal$0()) throw A.wrapException(A.SassScriptException$("Single argument " + A.S(number) + " expected to be simplifiable.", _null)); number = _0_1._readFinal$0(); if (_0_2._readFinal$0() != null) { step = _0_2._readFinal$0(); t1 = true; } else { step = _null; t1 = false; } t1 = t1 && _0_6._readFinal$0(); if (t1) return new A.SassCalculation(_s5_, A._setArrayType([number, step], type$.JSArray_Object)); if (_0_1._readFinal$0() instanceof A.SassString) t1 = _0_10._readFinal$0() || _0_12._readFinal$0() || _0_14._readFinal$0() || _0_16._readFinal$0(); else t1 = false; if (!t1) t1 = _0_1._readFinal$0() instanceof A.SassString && _0_1._readFinal$0().get$isVar(); else t1 = true; if (t1) { strategy = _0_1._readFinal$0(); if (_0_2._readFinal$0() != null) { number = _0_2._readFinal$0(); t1 = true; } else { number = _null; t1 = false; } if (t1) if (_0_5._readFinal$0() != null) { step = _0_5._readFinal$0(); t1 = true; } else { step = _null; t1 = false; } else { step = _null; t1 = false; } } else { step = _null; number = step; strategy = number; t1 = false; } if (t1) return new A.SassCalculation(_s5_, A._setArrayType([strategy, number, step], type$.JSArray_Object)); if (_0_2._readFinal$0() != null && true && _0_5._readFinal$0() != null && true) throw A.wrapException(A.SassScriptException$(A.S(strategyOrNumber) + string$.x20must_b, _null)); if (_0_4._readFinal$0()) _0_5._readFinal$0(); t1 = A.SassScriptException$("Invalid parameters.", _null); throw A.wrapException(t1); }, SassCalculation_operateInternal(operator, left, right, inLegacySassFunction, simplify) { var t1; if (!simplify) return new A.CalculationOperation(operator, left, right); left = A.SassCalculation__simplify(left); right = A.SassCalculation__simplify(right); if (B.CalculationOperator_IyK === operator || B.CalculationOperator_2bx === operator) { if (left instanceof A.SassNumber) if (right instanceof A.SassNumber) t1 = inLegacySassFunction ? left.isComparableTo$1(right) : left.hasCompatibleUnits$1(right); else t1 = false; else t1 = false; if (t1) return operator === B.CalculationOperator_IyK ? left.plus$1(right) : left.minus$1(right); A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([left, right], type$.JSArray_Object)); if (right instanceof A.SassNumber) { t1 = right._number$_value; t1 = t1 < 0 && !A.fuzzyEquals(t1, 0); } else t1 = false; if (t1) { right = right.times$1(A.SassNumber_SassNumber(-1, null)); operator = operator === B.CalculationOperator_IyK ? B.CalculationOperator_2bx : B.CalculationOperator_IyK; } return new A.CalculationOperation(operator, left, right); } else if (left instanceof A.SassNumber && right instanceof A.SassNumber) return operator === B.CalculationOperator_jFr ? left.times$1(right) : left.dividedBy$1(right); else return new A.CalculationOperation(operator, left, right); }, SassCalculation__roundWithStep(strategy, number, step) { var t1, t2, _0_0, _0_2, _0_1, _0_6, _0_8, _0_9, _0_11, _0_13, stepWithNumberUnit; if (!A.LinkedHashSet_LinkedHashSet$_literal(["nearest", "up", "down", "to-zero"], type$.String).contains$1(0, strategy)) throw A.wrapException(A.ArgumentError$(strategy + string$.x20must_b, null)); t1 = number._number$_value; if (t1 == 1 / 0 || t1 == -1 / 0) { t2 = step._number$_value; t2 = t2 == 1 / 0 || t2 == -1 / 0; } else t2 = false; if (!t2) { t2 = step._number$_value; t2 = t2 === 0 || isNaN(t1) || isNaN(t2); } else t2 = true; if (t2) { t1 = number.get$numeratorUnits(number); return A.SassNumber_SassNumber$withUnits(0 / 0, number.get$denominatorUnits(number), t1); } if (t1 == 1 / 0 || t1 == -1 / 0) return number; t2 = step._number$_value; if (t2 == 1 / 0 || t2 == -1 / 0) { _0_0 = new A._Record_2(strategy, t1); _0_2 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure(_0_0)); _0_1 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure0(_0_0)); _0_6 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure1(_0_1)); _0_8 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure2(_0_1)); _0_9 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure3(_0_2)); _0_11 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure4(_0_1)); _0_13 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure5(_0_1)); $label0$0: { if (0 === _0_2._readFinal$0()) { t1 = number; break $label0$0; } if ((_0_6._readFinal$0() || _0_8._readFinal$0()) && _0_9._readFinal$0()) { t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits(0, number.get$denominatorUnits(number), t1); break $label0$0; } if (_0_6._readFinal$0() || _0_8._readFinal$0()) { t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits(-0.0, number.get$denominatorUnits(number), t1); break $label0$0; } if (_0_11._readFinal$0() && _0_9._readFinal$0()) { t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits(1 / 0, number.get$denominatorUnits(number), t1); break $label0$0; } if (_0_11._readFinal$0()) { t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits(-0.0, number.get$denominatorUnits(number), t1); break $label0$0; } if (_0_13._readFinal$0() && _0_2._readFinal$0() < 0) { t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits(-1 / 0, number.get$denominatorUnits(number), t1); break $label0$0; } if (_0_13._readFinal$0()) { t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits(0, number.get$denominatorUnits(number), t1); break $label0$0; } t1 = A.throwExpression(A.UnsupportedError$("Invalid argument: " + strategy + ".")); } return t1; } stepWithNumberUnit = step.convertValueToMatch$1(number); $label1$1: { if ("nearest" === strategy) { t1 = B.JSNumber_methods.round$0(t1 / stepWithNumberUnit); t2 = number.get$numeratorUnits(number); t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2); t1 = t2; break $label1$1; } if ("up" === strategy) { t1 /= stepWithNumberUnit; t1 = t2 < 0 ? B.JSNumber_methods.floor$0(t1) : B.JSNumber_methods.ceil$0(t1); t2 = number.get$numeratorUnits(number); t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2); t1 = t2; break $label1$1; } if ("down" === strategy) { t1 /= stepWithNumberUnit; t1 = t2 < 0 ? B.JSNumber_methods.ceil$0(t1) : B.JSNumber_methods.floor$0(t1); t2 = number.get$numeratorUnits(number); t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2); t1 = t2; break $label1$1; } if ("to-zero" === strategy) { t2 = t1 / stepWithNumberUnit; if (t1 < 0) { t1 = B.JSNumber_methods.ceil$0(t2); t2 = number.get$numeratorUnits(number); t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2); t1 = t2; } else { t1 = B.JSNumber_methods.floor$0(t2); t2 = number.get$numeratorUnits(number); t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2); t1 = t2; } break $label1$1; } t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits(0 / 0, number.get$denominatorUnits(number), t1); break $label1$1; } return t1; }, SassCalculation__simplify(arg) { var t1, text, t2, value, _null = null, _s32_ = " can't be used in a calculation.", _0_11 = A._InitializedCell$(new A.SassCalculation__simplify_closure(arg)), _0_12 = A._InitializedCell$(new A.SassCalculation__simplify_closure0(arg)), _0_15 = A._InitializedCell$(new A.SassCalculation__simplify_closure1(_0_12)), _0_16 = A._InitializedCell$(new A.SassCalculation__simplify_closure2(_0_12)); $label0$0: { if (arg instanceof A.SassNumber || arg instanceof A.CalculationOperation) { t1 = arg; break $label0$0; } t1 = arg instanceof A.SassString; if (t1 && !arg._hasQuotes) { t1 = arg; break $label0$0; } if (t1) A.throwExpression(A.SassScriptException$("Quoted string " + arg.toString$0(0) + _s32_, _null)); t1 = arg instanceof A.SassCalculation; if (t1) if (_0_11._readFinal$0()) if (_0_15._readFinal$0()) if (_0_16._readFinal$0() instanceof A.SassString) if (!_0_16._readFinal$0()._hasQuotes) { text = _0_16._readFinal$0()._string$_text; t2 = A.SassCalculation__needsParentheses(text); } else { text = _null; t2 = false; } else { text = _null; t2 = false; } else { text = _null; t2 = false; } else { text = _null; t2 = false; } else { text = _null; t2 = false; } if (t2) { t1 = new A.SassString("(" + A.S(text) + ")", false); break $label0$0; } if (t1) if (_0_11._readFinal$0()) if (_0_15._readFinal$0()) { value = _0_16._readFinal$0(); t2 = true; } else { value = _null; t2 = false; } else { value = _null; t2 = false; } else { value = _null; t2 = false; } if (t2) { t1 = value; break $label0$0; } if (t1) { t1 = arg; break $label0$0; } if (arg instanceof A.Value) A.throwExpression(A.SassScriptException$("Value " + arg.toString$0(0) + _s32_, _null)); t1 = A.throwExpression(A.ArgumentError$("Unexpected calculation argument " + A.S(arg) + ".", _null)); } return t1; }, SassCalculation__needsParentheses(text) { var t1, couldBeVar, second, third, fourth, i, t2, first = text.charCodeAt(0); if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47 || first === 42) return true; t1 = text.length; couldBeVar = t1 >= 4 && A.characterEqualsIgnoreCase(first, 118); if (t1 < 2) return false; second = text.charCodeAt(1); if (second === 32 || second === 9 || second === 10 || second === 13 || second === 12 || second === 47 || second === 42) return true; couldBeVar = couldBeVar && A.characterEqualsIgnoreCase(second, 97); if (t1 < 3) return false; third = text.charCodeAt(2); if (third === 32 || third === 9 || third === 10 || third === 13 || third === 12 || third === 47 || third === 42) return true; couldBeVar = couldBeVar && A.characterEqualsIgnoreCase(third, 114); if (t1 < 4) return false; fourth = text.charCodeAt(3); if (couldBeVar && fourth === 40) return true; if (fourth === 32 || fourth === 9 || fourth === 10 || fourth === 13 || fourth === 12 || fourth === 47 || fourth === 42) return true; for (i = 4; i < t1; ++i) { t2 = text.charCodeAt(i); if (t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || t2 === 47 || t2 === 42) return true; } return false; }, SassCalculation__verifyCompatibleNumbers(args) { var t1, _i, t2, arg, i, number1, j, number2; for (t1 = args.length, _i = 0; t2 = args.length, _i < t2; args.length === t1 || (0, A.throwConcurrentModificationError)(args), ++_i) { arg = args[_i]; if (arg instanceof A.SassNumber && arg.get$hasComplexUnits()) throw A.wrapException(A.SassScriptException$("Number " + A.S(arg) + " isn't compatible with CSS calculations.", null)); } for (t1 = t2, i = 0; i < t1 - 1; ++i) { number1 = args[i]; if (!(number1 instanceof A.SassNumber)) continue; for (j = i + 1; t1 = args.length, j < t1; ++j) { number2 = args[j]; if (!(number2 instanceof A.SassNumber)) continue; if (number1.hasPossiblyCompatibleUnits$1(number2)) continue; throw A.wrapException(A.SassScriptException$(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", null)); } } }, SassCalculation__verifyLength(args, expectedLength) { var t1; if (args.length === expectedLength) return; if (B.JSArray_methods.any$1(args, new A.SassCalculation__verifyLength_closure())) return; t1 = args.length; throw A.wrapException(A.SassScriptException$("" + expectedLength + " arguments required, but only " + t1 + " " + A.pluralize("was", t1, "were") + " passed.", null)); }, SassCalculation__singleArgument($name, argument, mathFunc, forbidUnits) { argument = A.SassCalculation__simplify(argument); if (!(argument instanceof A.SassNumber)) return new A.SassCalculation($name, A._setArrayType([argument], type$.JSArray_Object)); if (forbidUnits) argument.assertNoUnits$0(); return mathFunc.call$1(argument); }, SassCalculation: function SassCalculation(t0, t1) { this.name = t0; this.$arguments = t1; }, SassCalculation_sign_closure: function SassCalculation_sign_closure(t0) { this._0_0 = t0; }, SassCalculation_round_closure: function SassCalculation_round_closure(t0) { this._0_0 = t0; }, SassCalculation_round_closure0: function SassCalculation_round_closure0(t0) { this._0_0 = t0; }, SassCalculation_round_closure1: function SassCalculation_round_closure1(t0) { this._0_2 = t0; }, SassCalculation_round_closure2: function SassCalculation_round_closure2(t0) { this._0_0 = t0; }, SassCalculation_round_closure3: function SassCalculation_round_closure3(t0) { this._0_5 = t0; }, SassCalculation_round_closure4: function SassCalculation_round_closure4(t0) { this._0_1 = t0; }, SassCalculation_round_closure5: function SassCalculation_round_closure5(t0) { this._0_8 = t0; }, SassCalculation_round_closure6: function SassCalculation_round_closure6(t0) { this._0_8 = t0; }, SassCalculation_round_closure7: function SassCalculation_round_closure7(t0) { this._0_8 = t0; }, SassCalculation_round_closure8: function SassCalculation_round_closure8(t0) { this._0_8 = t0; }, SassCalculation__roundWithStep_closure0: function SassCalculation__roundWithStep_closure0(t0) { this._0_0 = t0; }, SassCalculation__roundWithStep_closure: function SassCalculation__roundWithStep_closure(t0) { this._0_0 = t0; }, SassCalculation__roundWithStep_closure1: function SassCalculation__roundWithStep_closure1(t0) { this._0_1 = t0; }, SassCalculation__roundWithStep_closure2: function SassCalculation__roundWithStep_closure2(t0) { this._0_1 = t0; }, SassCalculation__roundWithStep_closure3: function SassCalculation__roundWithStep_closure3(t0) { this._0_2 = t0; }, SassCalculation__roundWithStep_closure4: function SassCalculation__roundWithStep_closure4(t0) { this._0_1 = t0; }, SassCalculation__roundWithStep_closure5: function SassCalculation__roundWithStep_closure5(t0) { this._0_1 = t0; }, SassCalculation__simplify_closure: function SassCalculation__simplify_closure(t0) { this._0_0 = t0; }, SassCalculation__simplify_closure0: function SassCalculation__simplify_closure0(t0) { this._0_0 = t0; }, SassCalculation__simplify_closure1: function SassCalculation__simplify_closure1(t0) { this._0_12 = t0; }, SassCalculation__simplify_closure2: function SassCalculation__simplify_closure2(t0) { this._0_12 = t0; }, SassCalculation__verifyLength_closure: function SassCalculation__verifyLength_closure() { }, CalculationOperation: function CalculationOperation(t0, t1, t2) { this._operator = t0; this._left = t1; this._right = t2; }, CalculationOperator: function CalculationOperator(t0, t1, t2, t3) { var _ = this; _.name = t0; _.operator = t1; _.precedence = t2; _._name = t3; }, SassColor$rgb(red, green, blue, alpha) { var _null = null, t1 = new A.SassColor(red, green, blue, _null, _null, _null, A.fuzzyAssertRange(A.SassColor__handleNullAlpha(alpha), 0, 1, "alpha"), _null); A.RangeError_checkValueInInterval(t1.get$red(t1), 0, 255, "red"); A.RangeError_checkValueInInterval(t1.get$green(t1), 0, 255, "green"); A.RangeError_checkValueInInterval(t1.get$blue(t1), 0, 255, "blue"); return t1; }, SassColor$rgbInternal(_red, _green, _blue, alpha, format) { var t1 = new A.SassColor(_red, _green, _blue, null, null, null, A.fuzzyAssertRange(alpha, 0, 1, "alpha"), format); A.RangeError_checkValueInInterval(t1.get$red(t1), 0, 255, "red"); A.RangeError_checkValueInInterval(t1.get$green(t1), 0, 255, "green"); A.RangeError_checkValueInInterval(t1.get$blue(t1), 0, 255, "blue"); return t1; }, SassColor$hslInternal(hue, saturation, lightness, alpha, format) { return new A.SassColor(null, null, null, B.JSNumber_methods.$mod(hue, 360), A.fuzzyAssertRange(saturation, 0, 100, "saturation"), A.fuzzyAssertRange(lightness, 0, 100, "lightness"), A.fuzzyAssertRange(alpha, 0, 1, "alpha"), format); }, SassColor_SassColor$hwb(hue, whiteness, blackness, alpha) { var t2, t1 = {}, scaledHue = B.JSNumber_methods.$mod(hue, 360) / 360, scaledWhiteness = t1.scaledWhiteness = A.fuzzyAssertRange(whiteness, 0, 100, "whiteness") / 100, scaledBlackness = A.fuzzyAssertRange(blackness, 0, 100, "blackness") / 100, sum = scaledWhiteness + scaledBlackness; if (sum > 1) { t2 = t1.scaledWhiteness = scaledWhiteness / sum; scaledBlackness /= sum; } else t2 = scaledWhiteness; t2 = new A.SassColor_SassColor$hwb_toRgb(t1, 1 - t2 - scaledBlackness); return A.SassColor$rgb(t2.call$1(scaledHue + 0.3333333333333333), t2.call$1(scaledHue), t2.call$1(scaledHue - 0.3333333333333333), alpha); }, SassColor__handleNullAlpha(alpha) { return alpha; }, SassColor__hueToRgb(m1, m2, hue) { var t1; if (hue < 0) ++hue; if (hue > 1) --hue; $label0$0: { if (hue < 0.16666666666666666) { t1 = m1 + (m2 - m1) * hue * 6; break $label0$0; } if (hue < 0.5) { t1 = m2; break $label0$0; } if (hue < 0.6666666666666666) { t1 = m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6; break $label0$0; } t1 = m1; break $label0$0; } return t1; }, SassColor: function SassColor(t0, t1, t2, t3, t4, t5, t6, t7) { var _ = this; _._red = t0; _._green = t1; _._blue = t2; _._hue = t3; _._saturation = t4; _._lightness = t5; _._alpha = t6; _.format = t7; }, SassColor_SassColor$hwb_toRgb: function SassColor_SassColor$hwb_toRgb(t0, t1) { this._box_0 = t0; this.factor = t1; }, _ColorFormatEnum: function _ColorFormatEnum(t0) { this._color$_name = t0; }, SpanColorFormat: function SpanColorFormat(t0) { this._color$_span = t0; }, SassFunction: function SassFunction(t0) { this.callable = t0; }, SassList$(contents, _separator, brackets) { var t1 = new A.SassList(A.List_List$unmodifiable(contents, type$.Value), _separator, brackets); t1.SassList$3$brackets(contents, _separator, brackets); return t1; }, SassList: function SassList(t0, t1, t2) { this._list$_contents = t0; this._separator = t1; this._hasBrackets = t2; }, SassList_isBlank_closure: function SassList_isBlank_closure() { }, ListSeparator: function ListSeparator(t0, t1, t2) { this._list$_name = t0; this.separator = t1; this._name = t2; }, SassMap: function SassMap(t0) { this._map$_contents = t0; }, SassMixin: function SassMixin(t0) { this.callable = t0; }, _SassNull: function _SassNull() { }, conversionFactor(unit1, unit2) { var _0_0, innerMap, t1; if (unit1 === unit2) return 1; _0_0 = B.Map_nfuzN.$index(0, unit1); if (_0_0 != null) { innerMap = _0_0; t1 = true; } else { innerMap = null; t1 = false; } if (t1) return innerMap.$index(0, unit2); return null; }, SassNumber_SassNumber(value, unit) { return unit == null ? new A.UnitlessSassNumber(value, null) : new A.SingleUnitSassNumber(unit, value, null); }, SassNumber_SassNumber$withUnits(value, denominatorUnits, numeratorUnits) { var t1, unit, numerators, denominators, unsimplifiedDenominators, valueDouble, _i, denominator, simplifiedAway, i, factor, _1_0, _1_1, _1_2, _1_7, _null = null, _0_0 = new A._Record_2(numeratorUnits, denominatorUnits), _0_1 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure(_0_0)), _0_3 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure0(_0_1)), _0_4 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure1(_0_1)), _0_6 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure2(_0_4)), _0_7 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure3(_0_0)), _0_8 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure4(_0_7)), _0_10 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure5(_0_7)); if (_0_3._readFinal$0() || _0_6._readFinal$0()) t1 = _0_8._readFinal$0() || _0_10._readFinal$0(); else t1 = false; if (t1) return new A.UnitlessSassNumber(value, _null); if (type$.List_String._is(_0_1._readFinal$0())) if (J.$eq$(_0_4._readFinal$0(), 1)) { unit = J.$index$asx(_0_1._readFinal$0(), 0); t1 = _0_8._readFinal$0() || _0_10._readFinal$0(); } else { unit = _null; t1 = false; } else { unit = _null; t1 = false; } if (t1) return new A.SingleUnitSassNumber(unit, value, _null); if (_0_1._readFinal$0() != null) { numerators = _0_1._readFinal$0(); t1 = true; } else { numerators = _null; t1 = false; } if (t1) t1 = _0_8._readFinal$0() || _0_10._readFinal$0(); else t1 = false; if (t1) return new A.ComplexSassNumber(A.List_List$unmodifiable(numerators, type$.String), B.List_empty, value, _null); if (_0_3._readFinal$0() || _0_6._readFinal$0()) if (_0_7._readFinal$0() != null) { denominators = _0_7._readFinal$0(); t1 = true; } else { denominators = _null; t1 = false; } else { denominators = _null; t1 = false; } if (t1) return new A.ComplexSassNumber(B.List_empty, A.List_List$unmodifiable(denominators, type$.String), value, _null); numerators = J.toList$0$ax(numeratorUnits); denominatorUnits.toString; unsimplifiedDenominators = J.toList$0$ax(denominatorUnits); denominators = A._setArrayType([], type$.JSArray_String); for (t1 = unsimplifiedDenominators.length, valueDouble = value, _i = 0; _i < unsimplifiedDenominators.length; unsimplifiedDenominators.length === t1 || (0, A.throwConcurrentModificationError)(unsimplifiedDenominators), ++_i) { denominator = unsimplifiedDenominators[_i]; i = 0; while (true) { if (!(i < numerators.length)) { simplifiedAway = false; break; } c$0: { factor = A.conversionFactor(denominator, numerators[i]); if (factor == null) break c$0; valueDouble *= factor; B.JSArray_methods.removeAt$1(numerators, i); simplifiedAway = true; break; } ++i; } if (!simplifiedAway) denominators.push(denominator); } _1_0 = new A._Record_2(numerators, denominators); _1_1 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure6(_1_0)); _1_2 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure7(_1_1)); _1_7 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure8(_1_0)); $label0$1: { if (_1_2._readFinal$0() <= 0 && _1_7._readFinal$0()) { t1 = new A.UnitlessSassNumber(valueDouble, _null); break $label0$1; } if (J.$eq$(_1_2._readFinal$0(), 1)) { unit = J.$index$asx(_1_1._readFinal$0(), 0); t1 = _1_7._readFinal$0(); t1 = t1; } else { unit = _null; t1 = false; } if (t1) { t1 = new A.SingleUnitSassNumber(unit, valueDouble, _null); break $label0$1; } t1 = type$.String; t1 = new A.ComplexSassNumber(A.List_List$unmodifiable(numerators, t1), A.List_List$unmodifiable(denominators, t1), valueDouble, _null); break $label0$1; } return t1; }, SassNumber: function SassNumber() { }, SassNumber_SassNumber$withUnits_closure0: function SassNumber_SassNumber$withUnits_closure0(t0) { this._0_1 = t0; }, SassNumber_SassNumber$withUnits_closure: function SassNumber_SassNumber$withUnits_closure(t0) { this._0_0 = t0; }, SassNumber_SassNumber$withUnits_closure1: function SassNumber_SassNumber$withUnits_closure1(t0) { this._0_1 = t0; }, SassNumber_SassNumber$withUnits_closure2: function SassNumber_SassNumber$withUnits_closure2(t0) { this._0_4 = t0; }, SassNumber_SassNumber$withUnits_closure4: function SassNumber_SassNumber$withUnits_closure4(t0) { this._0_7 = t0; }, SassNumber_SassNumber$withUnits_closure3: function SassNumber_SassNumber$withUnits_closure3(t0) { this._0_0 = t0; }, SassNumber_SassNumber$withUnits_closure5: function SassNumber_SassNumber$withUnits_closure5(t0) { this._0_7 = t0; }, SassNumber_SassNumber$withUnits_closure6: function SassNumber_SassNumber$withUnits_closure6(t0) { this._1_0 = t0; }, SassNumber_SassNumber$withUnits_closure7: function SassNumber_SassNumber$withUnits_closure7(t0) { this._1_1 = t0; }, SassNumber_SassNumber$withUnits_closure8: function SassNumber_SassNumber$withUnits_closure8(t0) { this._1_0 = t0; }, SassNumber__coerceOrConvertValue_compatibilityException: function SassNumber__coerceOrConvertValue_compatibilityException(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.$this = t0; _.other = t1; _.otherName = t2; _.otherHasUnits = t3; _.name = t4; _.newNumerators = t5; _.newDenominators = t6; }, SassNumber__coerceOrConvertValue_closure: function SassNumber__coerceOrConvertValue_closure(t0, t1) { this._box_0 = t0; this.newNumerator = t1; }, SassNumber__coerceOrConvertValue_closure0: function SassNumber__coerceOrConvertValue_closure0(t0) { this.compatibilityException = t0; }, SassNumber__coerceOrConvertValue_closure1: function SassNumber__coerceOrConvertValue_closure1(t0, t1) { this._box_0 = t0; this.newDenominator = t1; }, SassNumber__coerceOrConvertValue_closure2: function SassNumber__coerceOrConvertValue_closure2(t0) { this.compatibilityException = t0; }, SassNumber_plus_closure: function SassNumber_plus_closure() { }, SassNumber_minus_closure: function SassNumber_minus_closure() { }, SassNumber_multiplyUnits_closure: function SassNumber_multiplyUnits_closure(t0) { this._0_0 = t0; }, SassNumber_multiplyUnits_closure0: function SassNumber_multiplyUnits_closure0(t0) { this._0_0 = t0; }, SassNumber_multiplyUnits_closure1: function SassNumber_multiplyUnits_closure1(t0) { this._0_0 = t0; }, SassNumber_multiplyUnits_closure2: function SassNumber_multiplyUnits_closure2(t0) { this._0_3 = t0; }, SassNumber_multiplyUnits_closure3: function SassNumber_multiplyUnits_closure3(t0) { this._0_0 = t0; }, SassNumber_multiplyUnits_closure4: function SassNumber_multiplyUnits_closure4(t0) { this._0_7 = t0; }, SassNumber_multiplyUnits_closure5: function SassNumber_multiplyUnits_closure5(t0) { this._0_1 = t0; }, SassNumber_multiplyUnits_closure6: function SassNumber_multiplyUnits_closure6(t0) { this._0_2 = t0; }, SassNumber_multiplyUnits_closure7: function SassNumber_multiplyUnits_closure7(t0, t1) { this._box_0 = t0; this.numerator = t1; }, SassNumber_multiplyUnits_closure8: function SassNumber_multiplyUnits_closure8(t0, t1) { this.newNumerators = t0; this.numerator = t1; }, SassNumber_multiplyUnits_closure9: function SassNumber_multiplyUnits_closure9(t0, t1) { this._box_0 = t0; this.numerator = t1; }, SassNumber_multiplyUnits_closure10: function SassNumber_multiplyUnits_closure10(t0, t1) { this.newNumerators = t0; this.numerator = t1; }, SassNumber__areAnyConvertible_closure: function SassNumber__areAnyConvertible_closure(t0) { this.units2 = t0; }, SassNumber__unitString_closure: function SassNumber__unitString_closure(t0) { this._0_0 = t0; }, SassNumber__unitString_closure0: function SassNumber__unitString_closure0(t0) { this._0_0 = t0; }, SassNumber__unitString_closure1: function SassNumber__unitString_closure1(t0) { this._0_5 = t0; }, SassNumber__unitString_closure2: function SassNumber__unitString_closure2(t0) { this._0_6 = t0; }, SassNumber__canonicalizeUnitList_closure: function SassNumber__canonicalizeUnitList_closure() { }, SassNumber__canonicalMultiplier_closure: function SassNumber__canonicalMultiplier_closure(t0) { this.$this = t0; }, SassNumber_unitSuggestion_closure: function SassNumber_unitSuggestion_closure() { }, SassNumber_unitSuggestion_closure0: function SassNumber_unitSuggestion_closure0() { }, ComplexSassNumber: function ComplexSassNumber(t0, t1, t2, t3) { var _ = this; _._numeratorUnits = t0; _._denominatorUnits = t1; _._number$_value = t2; _.hashCache = null; _.asSlash = t3; }, SingleUnitSassNumber: function SingleUnitSassNumber(t0, t1, t2) { var _ = this; _._unit = t0; _._number$_value = t1; _.hashCache = null; _.asSlash = t2; }, SingleUnitSassNumber__coerceToUnit_closure: function SingleUnitSassNumber__coerceToUnit_closure(t0, t1) { this.$this = t0; this.unit = t1; }, SingleUnitSassNumber__coerceValueToUnit_closure: function SingleUnitSassNumber__coerceValueToUnit_closure(t0) { this.$this = t0; }, SingleUnitSassNumber_multiplyUnits_closure: function SingleUnitSassNumber_multiplyUnits_closure(t0, t1) { this._box_0 = t0; this.$this = t1; }, SingleUnitSassNumber_multiplyUnits_closure0: function SingleUnitSassNumber_multiplyUnits_closure0(t0, t1) { this._box_0 = t0; this.$this = t1; }, UnitlessSassNumber: function UnitlessSassNumber(t0, t1) { this._number$_value = t0; this.hashCache = null; this.asSlash = t1; }, SassString$(_text, quotes) { return new A.SassString(_text, quotes); }, SassString: function SassString(t0, t1) { var _ = this; _._string$_text = t0; _._hasQuotes = t1; _.__SassString__sassLength_FI = $; _._hashCache = null; }, AnySelectorVisitor: function AnySelectorVisitor() { }, AnySelectorVisitor_visitComplexSelector_closure: function AnySelectorVisitor_visitComplexSelector_closure(t0) { this.$this = t0; }, AnySelectorVisitor_visitCompoundSelector_closure: function AnySelectorVisitor_visitCompoundSelector_closure(t0) { this.$this = t0; }, _EvaluateVisitor$0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) { var t1 = type$.Uri, t2 = type$.Module_AsyncCallable, t3 = A._setArrayType([], type$.JSArray_Record_2_String_and_AstNode); 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); t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap); return t1; }, _EvaluateVisitor0: function _EvaluateVisitor0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) { var _ = this; _._async_evaluate$_importCache = t0; _._async_evaluate$_nodeImporter = t1; _._async_evaluate$_builtInFunctions = t2; _._async_evaluate$_builtInModules = t3; _._async_evaluate$_modules = t4; _._async_evaluate$_moduleConfigurations = t5; _._async_evaluate$_moduleNodes = t6; _._async_evaluate$_logger = t7; _._async_evaluate$_warningsEmitted = t8; _._async_evaluate$_quietDeps = t9; _._async_evaluate$_sourceMap = t10; _._async_evaluate$_environment = t11; _._async_evaluate$_declarationName = _._async_evaluate$__parent = _._async_evaluate$_mediaQuerySources = _._async_evaluate$_mediaQueries = _._async_evaluate$_styleRuleIgnoringAtRoot = null; _._async_evaluate$_member = "root stylesheet"; _._async_evaluate$_importSpan = _._async_evaluate$_callableNode = _._async_evaluate$_currentCallable = null; _._async_evaluate$_inSupportsDeclaration = _._async_evaluate$_inKeyframes = _._async_evaluate$_atRootExcludingStyleRule = _._async_evaluate$_inUnknownAtRule = _._async_evaluate$_inFunction = false; _._async_evaluate$_loadedUrls = t12; _._async_evaluate$_activeModules = t13; _._async_evaluate$_stack = t14; _._async_evaluate$_importer = null; _._async_evaluate$_inDependency = false; _._async_evaluate$__extensionStore = _._async_evaluate$_preModuleComments = _._async_evaluate$_outOfOrderImports = _._async_evaluate$__endOfImports = _._async_evaluate$__root = _._async_evaluate$__stylesheet = null; _._async_evaluate$_configuration = t15; }, _EvaluateVisitor_closure12: function _EvaluateVisitor_closure12(t0) { this.$this = t0; }, _EvaluateVisitor_closure13: function _EvaluateVisitor_closure13(t0) { this.$this = t0; }, _EvaluateVisitor_closure14: function _EvaluateVisitor_closure14(t0) { this.$this = t0; }, _EvaluateVisitor_closure15: function _EvaluateVisitor_closure15(t0) { this.$this = t0; }, _EvaluateVisitor_closure16: function _EvaluateVisitor_closure16(t0) { this.$this = t0; }, _EvaluateVisitor_closure17: function _EvaluateVisitor_closure17(t0) { this.$this = t0; }, _EvaluateVisitor_closure18: function _EvaluateVisitor_closure18(t0) { this.$this = t0; }, _EvaluateVisitor_closure19: function _EvaluateVisitor_closure19(t0) { this.$this = t0; }, _EvaluateVisitor_closure20: function _EvaluateVisitor_closure20(t0) { this.$this = t0; }, _EvaluateVisitor__closure6: function _EvaluateVisitor__closure6(t0, t1, t2) { this.$this = t0; this.name = t1; this.module = t2; }, _EvaluateVisitor_closure21: function _EvaluateVisitor_closure21(t0) { this.$this = t0; }, _EvaluateVisitor__closure5: function _EvaluateVisitor__closure5(t0, t1, t2) { this.$this = t0; this.name = t1; this.module = t2; }, _EvaluateVisitor_closure22: function _EvaluateVisitor_closure22(t0) { this.$this = t0; }, _EvaluateVisitor_closure23: function _EvaluateVisitor_closure23(t0) { this.$this = t0; }, _EvaluateVisitor__closure3: function _EvaluateVisitor__closure3(t0, t1, t2) { this.values = t0; this.span = t1; this.callableNode = t2; }, _EvaluateVisitor__closure4: function _EvaluateVisitor__closure4(t0) { this.$this = t0; }, _EvaluateVisitor_closure24: function _EvaluateVisitor_closure24(t0) { this.$this = t0; }, _EvaluateVisitor_run_closure0: function _EvaluateVisitor_run_closure0(t0, t1, t2) { this.$this = t0; this.node = t1; this.importer = t2; }, _EvaluateVisitor_run__closure0: function _EvaluateVisitor_run__closure0(t0, t1, t2) { this.$this = t0; this.importer = t1; this.node = t2; }, _EvaluateVisitor__loadModule_closure1: function _EvaluateVisitor__loadModule_closure1(t0, t1) { this._box_1 = t0; this.callback = t1; }, _EvaluateVisitor__loadModule_closure2: function _EvaluateVisitor__loadModule_closure2(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.$this = t0; _.url = t1; _.nodeWithSpan = t2; _.baseUrl = t3; _.namesInErrors = t4; _.configuration = t5; _.callback = t6; }, _EvaluateVisitor__loadModule__closure1: function _EvaluateVisitor__loadModule__closure1(t0, t1) { this.$this = t0; this.message = t1; }, _EvaluateVisitor__loadModule__closure2: function _EvaluateVisitor__loadModule__closure2(t0, t1, t2) { this._box_0 = t0; this.callback = t1; this.firstLoad = t2; }, _EvaluateVisitor__execute_closure0: function _EvaluateVisitor__execute_closure0(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.$this = t0; _.importer = t1; _.stylesheet = t2; _.extensionStore = t3; _.configuration = t4; _.css = t5; _.preModuleComments = t6; }, _EvaluateVisitor__combineCss_closure1: function _EvaluateVisitor__combineCss_closure1() { }, _EvaluateVisitor__combineCss_closure2: function _EvaluateVisitor__combineCss_closure2(t0) { this.selectors = t0; }, _EvaluateVisitor__combineCss_visitModule0: function _EvaluateVisitor__combineCss_visitModule0(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.seen = t1; _.clone = t2; _.css = t3; _.imports = t4; _.sorted = t5; }, _EvaluateVisitor__extendModules_closure1: function _EvaluateVisitor__extendModules_closure1(t0) { this.originalSelectors = t0; }, _EvaluateVisitor__extendModules_closure2: function _EvaluateVisitor__extendModules_closure2() { }, _EvaluateVisitor_visitAtRootRule_closure1: function _EvaluateVisitor_visitAtRootRule_closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitAtRootRule_closure2: function _EvaluateVisitor_visitAtRootRule_closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__scopeForAtRoot_closure5: function _EvaluateVisitor__scopeForAtRoot_closure5(t0, t1, t2) { this.$this = t0; this.newParent = t1; this.node = t2; }, _EvaluateVisitor__scopeForAtRoot_closure6: function _EvaluateVisitor__scopeForAtRoot_closure6(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor__scopeForAtRoot_closure7: function _EvaluateVisitor__scopeForAtRoot_closure7(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor__scopeForAtRoot__closure0: function _EvaluateVisitor__scopeForAtRoot__closure0(t0, t1) { this.innerScope = t0; this.callback = t1; }, _EvaluateVisitor__scopeForAtRoot_closure8: function _EvaluateVisitor__scopeForAtRoot_closure8(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor__scopeForAtRoot_closure9: function _EvaluateVisitor__scopeForAtRoot_closure9() { }, _EvaluateVisitor__scopeForAtRoot_closure10: function _EvaluateVisitor__scopeForAtRoot_closure10(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor_visitContentRule_closure0: function _EvaluateVisitor_visitContentRule_closure0(t0, t1) { this.$this = t0; this.content = t1; }, _EvaluateVisitor_visitDeclaration_closure0: function _EvaluateVisitor_visitDeclaration_closure0(t0, t1) { this._box_0 = t0; this.$this = t1; }, _EvaluateVisitor_visitEachRule_closure2: function _EvaluateVisitor_visitEachRule_closure2(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.nodeWithSpan = t2; }, _EvaluateVisitor_visitEachRule_closure3: function _EvaluateVisitor_visitEachRule_closure3(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.nodeWithSpan = t2; }, _EvaluateVisitor_visitEachRule_closure4: function _EvaluateVisitor_visitEachRule_closure4(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.list = t1; _.setVariables = t2; _.node = t3; }, _EvaluateVisitor_visitEachRule__closure0: function _EvaluateVisitor_visitEachRule__closure0(t0, t1, t2) { this.$this = t0; this.setVariables = t1; this.node = t2; }, _EvaluateVisitor_visitEachRule___closure0: function _EvaluateVisitor_visitEachRule___closure0(t0) { this.$this = t0; }, _EvaluateVisitor_visitAtRule_closure2: function _EvaluateVisitor_visitAtRule_closure2(t0) { this.$this = t0; }, _EvaluateVisitor_visitAtRule_closure3: function _EvaluateVisitor_visitAtRule_closure3(t0, t1, t2) { this.$this = t0; this.name = t1; this.children = t2; }, _EvaluateVisitor_visitAtRule__closure0: function _EvaluateVisitor_visitAtRule__closure0(t0, t1) { this.$this = t0; this.children = t1; }, _EvaluateVisitor_visitAtRule_closure4: function _EvaluateVisitor_visitAtRule_closure4() { }, _EvaluateVisitor_visitForRule_closure4: function _EvaluateVisitor_visitForRule_closure4(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitForRule_closure5: function _EvaluateVisitor_visitForRule_closure5(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitForRule_closure6: function _EvaluateVisitor_visitForRule_closure6(t0) { this.fromNumber = t0; }, _EvaluateVisitor_visitForRule_closure7: function _EvaluateVisitor_visitForRule_closure7(t0, t1) { this.toNumber = t0; this.fromNumber = t1; }, _EvaluateVisitor_visitForRule_closure8: function _EvaluateVisitor_visitForRule_closure8(t0, t1, t2, t3, t4, t5) { var _ = this; _._box_0 = t0; _.$this = t1; _.node = t2; _.from = t3; _.direction = t4; _.fromNumber = t5; }, _EvaluateVisitor_visitForRule__closure0: function _EvaluateVisitor_visitForRule__closure0(t0) { this.$this = t0; }, _EvaluateVisitor_visitForwardRule_closure1: function _EvaluateVisitor_visitForwardRule_closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitForwardRule_closure2: function _EvaluateVisitor_visitForwardRule_closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__registerCommentsForModule_closure0: function _EvaluateVisitor__registerCommentsForModule_closure0() { }, _EvaluateVisitor_visitIfRule_closure0: function _EvaluateVisitor_visitIfRule_closure0(t0) { this.$this = t0; }, _EvaluateVisitor_visitIfRule__closure0: function _EvaluateVisitor_visitIfRule__closure0(t0, t1) { this.$this = t0; this.clause = t1; }, _EvaluateVisitor_visitIfRule___closure0: function _EvaluateVisitor_visitIfRule___closure0(t0) { this.$this = t0; }, _EvaluateVisitor__visitDynamicImport_closure0: function _EvaluateVisitor__visitDynamicImport_closure0(t0, t1) { this.$this = t0; this.$import = t1; }, _EvaluateVisitor__visitDynamicImport__closure3: function _EvaluateVisitor__visitDynamicImport__closure3(t0) { this.$this = t0; }, _EvaluateVisitor__visitDynamicImport__closure4: function _EvaluateVisitor__visitDynamicImport__closure4() { }, _EvaluateVisitor__visitDynamicImport__closure5: function _EvaluateVisitor__visitDynamicImport__closure5() { }, _EvaluateVisitor__visitDynamicImport__closure6: function _EvaluateVisitor__visitDynamicImport__closure6(t0, t1, t2, t3, t4) { var _ = this; _._box_0 = t0; _.$this = t1; _.loadsUserDefinedModules = t2; _.environment = t3; _.children = t4; }, _EvaluateVisitor__applyMixin_closure3: function _EvaluateVisitor__applyMixin_closure3(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.$arguments = t1; _.mixin = t2; _.nodeWithSpanWithoutContent = t3; }, _EvaluateVisitor__applyMixin__closure2: function _EvaluateVisitor__applyMixin__closure2(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.$arguments = t1; _.mixin = t2; _.nodeWithSpanWithoutContent = t3; }, _EvaluateVisitor__applyMixin_closure2: function _EvaluateVisitor__applyMixin_closure2(t0) { this._1_0 = t0; }, _EvaluateVisitor__applyMixin_closure4: function _EvaluateVisitor__applyMixin_closure4(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.contentCallable = t1; _.mixin = t2; _.nodeWithSpanWithoutContent = t3; }, _EvaluateVisitor__applyMixin__closure1: function _EvaluateVisitor__applyMixin__closure1(t0, t1, t2) { this.$this = t0; this.mixin = t1; this.nodeWithSpanWithoutContent = t2; }, _EvaluateVisitor__applyMixin___closure0: function _EvaluateVisitor__applyMixin___closure0(t0, t1, t2) { this.$this = t0; this.mixin = t1; this.nodeWithSpanWithoutContent = t2; }, _EvaluateVisitor__applyMixin____closure0: function _EvaluateVisitor__applyMixin____closure0(t0, t1) { this.$this = t0; this.statement = t1; }, _EvaluateVisitor_visitIncludeRule_closure2: function _EvaluateVisitor_visitIncludeRule_closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitIncludeRule_closure3: function _EvaluateVisitor_visitIncludeRule_closure3(t0) { this.$this = t0; }, _EvaluateVisitor_visitIncludeRule_closure4: function _EvaluateVisitor_visitIncludeRule_closure4(t0) { this.node = t0; }, _EvaluateVisitor_visitMediaRule_closure2: function _EvaluateVisitor_visitMediaRule_closure2(t0, t1) { this.$this = t0; this.queries = t1; }, _EvaluateVisitor_visitMediaRule_closure3: function _EvaluateVisitor_visitMediaRule_closure3(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.mergedQueries = t1; _.queries = t2; _.mergedSources = t3; _.node = t4; }, _EvaluateVisitor_visitMediaRule__closure0: function _EvaluateVisitor_visitMediaRule__closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitMediaRule___closure0: function _EvaluateVisitor_visitMediaRule___closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitMediaRule_closure4: function _EvaluateVisitor_visitMediaRule_closure4(t0) { this.mergedSources = t0; }, _EvaluateVisitor_visitStyleRule_closure4: function _EvaluateVisitor_visitStyleRule_closure4(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitStyleRule_closure5: function _EvaluateVisitor_visitStyleRule_closure5() { }, _EvaluateVisitor_visitStyleRule_closure6: function _EvaluateVisitor_visitStyleRule_closure6(t0, t1, t2) { this.$this = t0; this.rule = t1; this.node = t2; }, _EvaluateVisitor_visitStyleRule__closure0: function _EvaluateVisitor_visitStyleRule__closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitStyleRule_closure7: function _EvaluateVisitor_visitStyleRule_closure7() { }, _EvaluateVisitor_visitStyleRule_closure8: function _EvaluateVisitor_visitStyleRule_closure8() { }, _EvaluateVisitor_visitSupportsRule_closure1: function _EvaluateVisitor_visitSupportsRule_closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitSupportsRule__closure0: function _EvaluateVisitor_visitSupportsRule__closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitSupportsRule_closure2: function _EvaluateVisitor_visitSupportsRule_closure2() { }, _EvaluateVisitor__visitSupportsCondition_closure0: function _EvaluateVisitor__visitSupportsCondition_closure0(t0, t1) { this._box_0 = t0; this.$this = t1; }, _EvaluateVisitor_visitVariableDeclaration_closure2: function _EvaluateVisitor_visitVariableDeclaration_closure2(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.node = t2; }, _EvaluateVisitor_visitVariableDeclaration_closure3: function _EvaluateVisitor_visitVariableDeclaration_closure3(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitVariableDeclaration_closure4: function _EvaluateVisitor_visitVariableDeclaration_closure4(t0, t1, t2) { this.$this = t0; this.node = t1; this.value = t2; }, _EvaluateVisitor_visitUseRule_closure0: function _EvaluateVisitor_visitUseRule_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitWarnRule_closure0: function _EvaluateVisitor_visitWarnRule_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitWhileRule_closure0: function _EvaluateVisitor_visitWhileRule_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitWhileRule__closure0: function _EvaluateVisitor_visitWhileRule__closure0(t0) { this.$this = t0; }, _EvaluateVisitor_visitBinaryOperationExpression_closure0: function _EvaluateVisitor_visitBinaryOperationExpression_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__slash_closure1: function _EvaluateVisitor__slash_closure1(t0) { this._1_0 = t0; }, _EvaluateVisitor__slash_closure2: function _EvaluateVisitor__slash_closure2(t0) { this._1_0 = t0; }, _EvaluateVisitor__slash_recommendation0: function _EvaluateVisitor__slash_recommendation0() { }, _EvaluateVisitor_visitVariableExpression_closure0: function _EvaluateVisitor_visitVariableExpression_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitUnaryOperationExpression_closure0: function _EvaluateVisitor_visitUnaryOperationExpression_closure0(t0, t1) { this.node = t0; this.operand = t1; }, _EvaluateVisitor_visitListExpression_closure0: function _EvaluateVisitor_visitListExpression_closure0(t0) { this.$this = t0; }, _EvaluateVisitor_visitFunctionExpression_closure2: function _EvaluateVisitor_visitFunctionExpression_closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitFunctionExpression_closure3: function _EvaluateVisitor_visitFunctionExpression_closure3() { }, _EvaluateVisitor_visitFunctionExpression_closure4: function _EvaluateVisitor_visitFunctionExpression_closure4(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.node = t2; }, _EvaluateVisitor__checkCalculationArguments_check0: function _EvaluateVisitor__checkCalculationArguments_check0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__visitCalculationExpression_closure0: function _EvaluateVisitor__visitCalculationExpression_closure0(t0, t1, t2, t3) { var _ = this; _._box_0 = t0; _.$this = t1; _.node = t2; _.inLegacySassFunction = t3; }, _EvaluateVisitor__checkAdjacentCalculationValues_closure0: function _EvaluateVisitor__checkAdjacentCalculationValues_closure0(t0) { this._0_0 = t0; }, _EvaluateVisitor_visitInterpolatedFunctionExpression_closure0: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure0(t0, t1, t2) { this.$this = t0; this.node = t1; this.$function = t2; }, _EvaluateVisitor__runUserDefinedCallable_closure0: function _EvaluateVisitor__runUserDefinedCallable_closure0(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.callable = t1; _.evaluated = t2; _.nodeWithSpan = t3; _.run = t4; _.V = t5; }, _EvaluateVisitor__runUserDefinedCallable__closure0: function _EvaluateVisitor__runUserDefinedCallable__closure0(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.evaluated = t1; _.callable = t2; _.nodeWithSpan = t3; _.run = t4; _.V = t5; }, _EvaluateVisitor__runUserDefinedCallable___closure0: function _EvaluateVisitor__runUserDefinedCallable___closure0(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.evaluated = t1; _.callable = t2; _.nodeWithSpan = t3; _.run = t4; _.V = t5; }, _EvaluateVisitor__runUserDefinedCallable____closure0: function _EvaluateVisitor__runUserDefinedCallable____closure0() { }, _EvaluateVisitor__runFunctionCallable_closure0: function _EvaluateVisitor__runFunctionCallable_closure0(t0, t1) { this.$this = t0; this.callable = t1; }, _EvaluateVisitor__runBuiltInCallable_closure2: function _EvaluateVisitor__runBuiltInCallable_closure2(t0, t1, t2) { this._box_0 = t0; this.evaluated = t1; this.namedSet = t2; }, _EvaluateVisitor__runBuiltInCallable_closure3: function _EvaluateVisitor__runBuiltInCallable_closure3(t0, t1) { this._box_0 = t0; this.evaluated = t1; }, _EvaluateVisitor__runBuiltInCallable_closure4: function _EvaluateVisitor__runBuiltInCallable_closure4() { }, _EvaluateVisitor__evaluateArguments_closure3: function _EvaluateVisitor__evaluateArguments_closure3() { }, _EvaluateVisitor__evaluateArguments_closure4: function _EvaluateVisitor__evaluateArguments_closure4(t0, t1) { this.$this = t0; this.restNodeForSpan = t1; }, _EvaluateVisitor__evaluateArguments_closure5: function _EvaluateVisitor__evaluateArguments_closure5(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.named = t1; _.restNodeForSpan = t2; _.namedNodes = t3; }, _EvaluateVisitor__evaluateArguments_closure6: function _EvaluateVisitor__evaluateArguments_closure6() { }, _EvaluateVisitor__evaluateMacroArguments_closure3: function _EvaluateVisitor__evaluateMacroArguments_closure3(t0) { this.restArgs = t0; }, _EvaluateVisitor__evaluateMacroArguments_closure4: function _EvaluateVisitor__evaluateMacroArguments_closure4(t0, t1, t2) { this.$this = t0; this.restNodeForSpan = t1; this.restArgs = t2; }, _EvaluateVisitor__evaluateMacroArguments_closure5: function _EvaluateVisitor__evaluateMacroArguments_closure5(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.named = t1; _.restNodeForSpan = t2; _.restArgs = t3; }, _EvaluateVisitor__evaluateMacroArguments_closure6: function _EvaluateVisitor__evaluateMacroArguments_closure6(t0, t1, t2) { this.$this = t0; this.keywordRestNodeForSpan = t1; this.keywordRestArgs = t2; }, _EvaluateVisitor__addRestMap_closure0: function _EvaluateVisitor__addRestMap_closure0(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.values = t1; _.convert = t2; _.expressionNode = t3; _.map = t4; _.nodeWithSpan = t5; }, _EvaluateVisitor__verifyArguments_closure0: function _EvaluateVisitor__verifyArguments_closure0(t0, t1, t2) { this.$arguments = t0; this.positional = t1; this.named = t2; }, _EvaluateVisitor_visitCssAtRule_closure1: function _EvaluateVisitor_visitCssAtRule_closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssAtRule_closure2: function _EvaluateVisitor_visitCssAtRule_closure2() { }, _EvaluateVisitor_visitCssKeyframeBlock_closure1: function _EvaluateVisitor_visitCssKeyframeBlock_closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssKeyframeBlock_closure2: function _EvaluateVisitor_visitCssKeyframeBlock_closure2() { }, _EvaluateVisitor_visitCssMediaRule_closure2: function _EvaluateVisitor_visitCssMediaRule_closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssMediaRule_closure3: function _EvaluateVisitor_visitCssMediaRule_closure3(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.mergedQueries = t1; _.node = t2; _.mergedSources = t3; }, _EvaluateVisitor_visitCssMediaRule__closure0: function _EvaluateVisitor_visitCssMediaRule__closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssMediaRule___closure0: function _EvaluateVisitor_visitCssMediaRule___closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssMediaRule_closure4: function _EvaluateVisitor_visitCssMediaRule_closure4(t0) { this.mergedSources = t0; }, _EvaluateVisitor_visitCssStyleRule_closure2: function _EvaluateVisitor_visitCssStyleRule_closure2(t0, t1, t2) { this.$this = t0; this.rule = t1; this.node = t2; }, _EvaluateVisitor_visitCssStyleRule__closure0: function _EvaluateVisitor_visitCssStyleRule__closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssStyleRule_closure3: function _EvaluateVisitor_visitCssStyleRule_closure3() { }, _EvaluateVisitor_visitCssStyleRule_closure4: function _EvaluateVisitor_visitCssStyleRule_closure4(t0) { this._0_0 = t0; }, _EvaluateVisitor_visitCssSupportsRule_closure1: function _EvaluateVisitor_visitCssSupportsRule_closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssSupportsRule__closure0: function _EvaluateVisitor_visitCssSupportsRule__closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssSupportsRule_closure2: function _EvaluateVisitor_visitCssSupportsRule_closure2() { }, _EvaluateVisitor__performInterpolationHelper_closure0: function _EvaluateVisitor__performInterpolationHelper_closure0(t0) { this.interpolation = t0; }, _EvaluateVisitor__serialize_closure0: function _EvaluateVisitor__serialize_closure0(t0, t1) { this.value = t0; this.quote = t1; }, _EvaluateVisitor__expressionNode_closure0: function _EvaluateVisitor__expressionNode_closure0(t0, t1) { this.$this = t0; this.expression = t1; }, _EvaluateVisitor__withoutSlash_recommendation0: function _EvaluateVisitor__withoutSlash_recommendation0() { }, _EvaluateVisitor__stackFrame_closure0: function _EvaluateVisitor__stackFrame_closure0(t0) { this.$this = t0; }, _ImportedCssVisitor0: function _ImportedCssVisitor0(t0) { this._async_evaluate$_visitor = t0; }, _ImportedCssVisitor_visitCssAtRule_closure0: function _ImportedCssVisitor_visitCssAtRule_closure0() { }, _ImportedCssVisitor_visitCssMediaRule_closure0: function _ImportedCssVisitor_visitCssMediaRule_closure0(t0) { this.hasBeenMerged = t0; }, _ImportedCssVisitor_visitCssStyleRule_closure0: function _ImportedCssVisitor_visitCssStyleRule_closure0() { }, _ImportedCssVisitor_visitCssSupportsRule_closure0: function _ImportedCssVisitor_visitCssSupportsRule_closure0() { }, _EvaluationContext0: function _EvaluationContext0(t0, t1) { this._async_evaluate$_visitor = t0; this._async_evaluate$_defaultWarnNodeWithSpan = t1; }, cloneCssStylesheet(stylesheet, extensionStore) { var _0_0 = extensionStore.clone$0(); return new A._Record_2(new A._CloneCssVisitor(_0_0._1)._visitChildren$2(A.ModifiableCssStylesheet$(stylesheet.get$span(stylesheet)), stylesheet), _0_0._0); }, _CloneCssVisitor: function _CloneCssVisitor(t0) { this._oldToNewSelectors = t0; }, _EvaluateVisitor$(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) { var t1 = type$.Uri, t2 = type$.Module_Callable, t3 = A._setArrayType([], type$.JSArray_Record_2_String_and_AstNode); 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); t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap(functions, importCache, logger, nodeImporter, quietDeps, sourceMap); return t1; }, Evaluator: function Evaluator(t0, t1) { this._visitor = t0; this._importer = t1; }, _EvaluateVisitor: function _EvaluateVisitor(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) { var _ = this; _._evaluate$_importCache = t0; _._nodeImporter = t1; _._builtInFunctions = t2; _._builtInModules = t3; _._modules = t4; _._moduleConfigurations = t5; _._moduleNodes = t6; _._evaluate$_logger = t7; _._warningsEmitted = t8; _._quietDeps = t9; _._sourceMap = t10; _._environment = t11; _._declarationName = _.__parent = _._mediaQuerySources = _._mediaQueries = _._styleRuleIgnoringAtRoot = null; _._member = "root stylesheet"; _._importSpan = _._callableNode = _._currentCallable = null; _._inSupportsDeclaration = _._inKeyframes = _._atRootExcludingStyleRule = _._inUnknownAtRule = _._inFunction = false; _._loadedUrls = t12; _._activeModules = t13; _._stack = t14; _._importer = null; _._inDependency = false; _.__extensionStore = _._preModuleComments = _._outOfOrderImports = _.__endOfImports = _.__root = _.__stylesheet = null; _._configuration = t15; }, _EvaluateVisitor_closure: function _EvaluateVisitor_closure(t0) { this.$this = t0; }, _EvaluateVisitor_closure0: function _EvaluateVisitor_closure0(t0) { this.$this = t0; }, _EvaluateVisitor_closure1: function _EvaluateVisitor_closure1(t0) { this.$this = t0; }, _EvaluateVisitor_closure2: function _EvaluateVisitor_closure2(t0) { this.$this = t0; }, _EvaluateVisitor_closure3: function _EvaluateVisitor_closure3(t0) { this.$this = t0; }, _EvaluateVisitor_closure4: function _EvaluateVisitor_closure4(t0) { this.$this = t0; }, _EvaluateVisitor_closure5: function _EvaluateVisitor_closure5(t0) { this.$this = t0; }, _EvaluateVisitor_closure6: function _EvaluateVisitor_closure6(t0) { this.$this = t0; }, _EvaluateVisitor_closure7: function _EvaluateVisitor_closure7(t0) { this.$this = t0; }, _EvaluateVisitor__closure2: function _EvaluateVisitor__closure2(t0, t1, t2) { this.$this = t0; this.name = t1; this.module = t2; }, _EvaluateVisitor_closure8: function _EvaluateVisitor_closure8(t0) { this.$this = t0; }, _EvaluateVisitor__closure1: function _EvaluateVisitor__closure1(t0, t1, t2) { this.$this = t0; this.name = t1; this.module = t2; }, _EvaluateVisitor_closure9: function _EvaluateVisitor_closure9(t0) { this.$this = t0; }, _EvaluateVisitor_closure10: function _EvaluateVisitor_closure10(t0) { this.$this = t0; }, _EvaluateVisitor__closure: function _EvaluateVisitor__closure(t0, t1, t2) { this.values = t0; this.span = t1; this.callableNode = t2; }, _EvaluateVisitor__closure0: function _EvaluateVisitor__closure0(t0) { this.$this = t0; }, _EvaluateVisitor_closure11: function _EvaluateVisitor_closure11(t0) { this.$this = t0; }, _EvaluateVisitor_run_closure: function _EvaluateVisitor_run_closure(t0, t1, t2) { this.$this = t0; this.node = t1; this.importer = t2; }, _EvaluateVisitor_run__closure: function _EvaluateVisitor_run__closure(t0, t1, t2) { this.$this = t0; this.importer = t1; this.node = t2; }, _EvaluateVisitor_runExpression_closure: function _EvaluateVisitor_runExpression_closure(t0, t1, t2) { this.$this = t0; this.importer = t1; this.expression = t2; }, _EvaluateVisitor_runExpression__closure: function _EvaluateVisitor_runExpression__closure(t0, t1) { this.$this = t0; this.expression = t1; }, _EvaluateVisitor_runExpression___closure: function _EvaluateVisitor_runExpression___closure(t0, t1) { this.$this = t0; this.expression = t1; }, _EvaluateVisitor_runStatement_closure: function _EvaluateVisitor_runStatement_closure(t0, t1, t2) { this.$this = t0; this.importer = t1; this.statement = t2; }, _EvaluateVisitor_runStatement__closure: function _EvaluateVisitor_runStatement__closure(t0, t1) { this.$this = t0; this.statement = t1; }, _EvaluateVisitor_runStatement___closure: function _EvaluateVisitor_runStatement___closure(t0, t1) { this.$this = t0; this.statement = t1; }, _EvaluateVisitor__loadModule_closure: function _EvaluateVisitor__loadModule_closure(t0, t1) { this._box_1 = t0; this.callback = t1; }, _EvaluateVisitor__loadModule_closure0: function _EvaluateVisitor__loadModule_closure0(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.$this = t0; _.url = t1; _.nodeWithSpan = t2; _.baseUrl = t3; _.namesInErrors = t4; _.configuration = t5; _.callback = t6; }, _EvaluateVisitor__loadModule__closure: function _EvaluateVisitor__loadModule__closure(t0, t1) { this.$this = t0; this.message = t1; }, _EvaluateVisitor__loadModule__closure0: function _EvaluateVisitor__loadModule__closure0(t0, t1, t2) { this._box_0 = t0; this.callback = t1; this.firstLoad = t2; }, _EvaluateVisitor__execute_closure: function _EvaluateVisitor__execute_closure(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.$this = t0; _.importer = t1; _.stylesheet = t2; _.extensionStore = t3; _.configuration = t4; _.css = t5; _.preModuleComments = t6; }, _EvaluateVisitor__combineCss_closure: function _EvaluateVisitor__combineCss_closure() { }, _EvaluateVisitor__combineCss_closure0: function _EvaluateVisitor__combineCss_closure0(t0) { this.selectors = t0; }, _EvaluateVisitor__combineCss_visitModule: function _EvaluateVisitor__combineCss_visitModule(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.seen = t1; _.clone = t2; _.css = t3; _.imports = t4; _.sorted = t5; }, _EvaluateVisitor__extendModules_closure: function _EvaluateVisitor__extendModules_closure(t0) { this.originalSelectors = t0; }, _EvaluateVisitor__extendModules_closure0: function _EvaluateVisitor__extendModules_closure0() { }, _EvaluateVisitor_visitAtRootRule_closure: function _EvaluateVisitor_visitAtRootRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitAtRootRule_closure0: function _EvaluateVisitor_visitAtRootRule_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__scopeForAtRoot_closure: function _EvaluateVisitor__scopeForAtRoot_closure(t0, t1, t2) { this.$this = t0; this.newParent = t1; this.node = t2; }, _EvaluateVisitor__scopeForAtRoot_closure0: function _EvaluateVisitor__scopeForAtRoot_closure0(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor__scopeForAtRoot_closure1: function _EvaluateVisitor__scopeForAtRoot_closure1(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor__scopeForAtRoot__closure: function _EvaluateVisitor__scopeForAtRoot__closure(t0, t1) { this.innerScope = t0; this.callback = t1; }, _EvaluateVisitor__scopeForAtRoot_closure2: function _EvaluateVisitor__scopeForAtRoot_closure2(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor__scopeForAtRoot_closure3: function _EvaluateVisitor__scopeForAtRoot_closure3() { }, _EvaluateVisitor__scopeForAtRoot_closure4: function _EvaluateVisitor__scopeForAtRoot_closure4(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor_visitContentRule_closure: function _EvaluateVisitor_visitContentRule_closure(t0, t1) { this.$this = t0; this.content = t1; }, _EvaluateVisitor_visitDeclaration_closure: function _EvaluateVisitor_visitDeclaration_closure(t0, t1) { this._box_0 = t0; this.$this = t1; }, _EvaluateVisitor_visitEachRule_closure: function _EvaluateVisitor_visitEachRule_closure(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.nodeWithSpan = t2; }, _EvaluateVisitor_visitEachRule_closure0: function _EvaluateVisitor_visitEachRule_closure0(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.nodeWithSpan = t2; }, _EvaluateVisitor_visitEachRule_closure1: function _EvaluateVisitor_visitEachRule_closure1(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.list = t1; _.setVariables = t2; _.node = t3; }, _EvaluateVisitor_visitEachRule__closure: function _EvaluateVisitor_visitEachRule__closure(t0, t1, t2) { this.$this = t0; this.setVariables = t1; this.node = t2; }, _EvaluateVisitor_visitEachRule___closure: function _EvaluateVisitor_visitEachRule___closure(t0) { this.$this = t0; }, _EvaluateVisitor_visitAtRule_closure: function _EvaluateVisitor_visitAtRule_closure(t0) { this.$this = t0; }, _EvaluateVisitor_visitAtRule_closure0: function _EvaluateVisitor_visitAtRule_closure0(t0, t1, t2) { this.$this = t0; this.name = t1; this.children = t2; }, _EvaluateVisitor_visitAtRule__closure: function _EvaluateVisitor_visitAtRule__closure(t0, t1) { this.$this = t0; this.children = t1; }, _EvaluateVisitor_visitAtRule_closure1: function _EvaluateVisitor_visitAtRule_closure1() { }, _EvaluateVisitor_visitForRule_closure: function _EvaluateVisitor_visitForRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitForRule_closure0: function _EvaluateVisitor_visitForRule_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitForRule_closure1: function _EvaluateVisitor_visitForRule_closure1(t0) { this.fromNumber = t0; }, _EvaluateVisitor_visitForRule_closure2: function _EvaluateVisitor_visitForRule_closure2(t0, t1) { this.toNumber = t0; this.fromNumber = t1; }, _EvaluateVisitor_visitForRule_closure3: function _EvaluateVisitor_visitForRule_closure3(t0, t1, t2, t3, t4, t5) { var _ = this; _._box_0 = t0; _.$this = t1; _.node = t2; _.from = t3; _.direction = t4; _.fromNumber = t5; }, _EvaluateVisitor_visitForRule__closure: function _EvaluateVisitor_visitForRule__closure(t0) { this.$this = t0; }, _EvaluateVisitor_visitForwardRule_closure: function _EvaluateVisitor_visitForwardRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitForwardRule_closure0: function _EvaluateVisitor_visitForwardRule_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__registerCommentsForModule_closure: function _EvaluateVisitor__registerCommentsForModule_closure() { }, _EvaluateVisitor_visitIfRule_closure: function _EvaluateVisitor_visitIfRule_closure(t0) { this.$this = t0; }, _EvaluateVisitor_visitIfRule__closure: function _EvaluateVisitor_visitIfRule__closure(t0, t1) { this.$this = t0; this.clause = t1; }, _EvaluateVisitor_visitIfRule___closure: function _EvaluateVisitor_visitIfRule___closure(t0) { this.$this = t0; }, _EvaluateVisitor__visitDynamicImport_closure: function _EvaluateVisitor__visitDynamicImport_closure(t0, t1) { this.$this = t0; this.$import = t1; }, _EvaluateVisitor__visitDynamicImport__closure: function _EvaluateVisitor__visitDynamicImport__closure(t0) { this.$this = t0; }, _EvaluateVisitor__visitDynamicImport__closure0: function _EvaluateVisitor__visitDynamicImport__closure0() { }, _EvaluateVisitor__visitDynamicImport__closure1: function _EvaluateVisitor__visitDynamicImport__closure1() { }, _EvaluateVisitor__visitDynamicImport__closure2: function _EvaluateVisitor__visitDynamicImport__closure2(t0, t1, t2, t3, t4) { var _ = this; _._box_0 = t0; _.$this = t1; _.loadsUserDefinedModules = t2; _.environment = t3; _.children = t4; }, _EvaluateVisitor__applyMixin_closure0: function _EvaluateVisitor__applyMixin_closure0(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.$arguments = t1; _.mixin = t2; _.nodeWithSpanWithoutContent = t3; }, _EvaluateVisitor__applyMixin__closure0: function _EvaluateVisitor__applyMixin__closure0(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.$arguments = t1; _.mixin = t2; _.nodeWithSpanWithoutContent = t3; }, _EvaluateVisitor__applyMixin_closure: function _EvaluateVisitor__applyMixin_closure(t0) { this._1_0 = t0; }, _EvaluateVisitor__applyMixin_closure1: function _EvaluateVisitor__applyMixin_closure1(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.contentCallable = t1; _.mixin = t2; _.nodeWithSpanWithoutContent = t3; }, _EvaluateVisitor__applyMixin__closure: function _EvaluateVisitor__applyMixin__closure(t0, t1, t2) { this.$this = t0; this.mixin = t1; this.nodeWithSpanWithoutContent = t2; }, _EvaluateVisitor__applyMixin___closure: function _EvaluateVisitor__applyMixin___closure(t0, t1, t2) { this.$this = t0; this.mixin = t1; this.nodeWithSpanWithoutContent = t2; }, _EvaluateVisitor__applyMixin____closure: function _EvaluateVisitor__applyMixin____closure(t0, t1) { this.$this = t0; this.statement = t1; }, _EvaluateVisitor_visitIncludeRule_closure: function _EvaluateVisitor_visitIncludeRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitIncludeRule_closure0: function _EvaluateVisitor_visitIncludeRule_closure0(t0) { this.$this = t0; }, _EvaluateVisitor_visitIncludeRule_closure1: function _EvaluateVisitor_visitIncludeRule_closure1(t0) { this.node = t0; }, _EvaluateVisitor_visitMediaRule_closure: function _EvaluateVisitor_visitMediaRule_closure(t0, t1) { this.$this = t0; this.queries = t1; }, _EvaluateVisitor_visitMediaRule_closure0: function _EvaluateVisitor_visitMediaRule_closure0(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.mergedQueries = t1; _.queries = t2; _.mergedSources = t3; _.node = t4; }, _EvaluateVisitor_visitMediaRule__closure: function _EvaluateVisitor_visitMediaRule__closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitMediaRule___closure: function _EvaluateVisitor_visitMediaRule___closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitMediaRule_closure1: function _EvaluateVisitor_visitMediaRule_closure1(t0) { this.mergedSources = t0; }, _EvaluateVisitor_visitStyleRule_closure: function _EvaluateVisitor_visitStyleRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitStyleRule_closure0: function _EvaluateVisitor_visitStyleRule_closure0() { }, _EvaluateVisitor_visitStyleRule_closure1: function _EvaluateVisitor_visitStyleRule_closure1(t0, t1, t2) { this.$this = t0; this.rule = t1; this.node = t2; }, _EvaluateVisitor_visitStyleRule__closure: function _EvaluateVisitor_visitStyleRule__closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitStyleRule_closure2: function _EvaluateVisitor_visitStyleRule_closure2() { }, _EvaluateVisitor_visitStyleRule_closure3: function _EvaluateVisitor_visitStyleRule_closure3() { }, _EvaluateVisitor_visitSupportsRule_closure: function _EvaluateVisitor_visitSupportsRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitSupportsRule__closure: function _EvaluateVisitor_visitSupportsRule__closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitSupportsRule_closure0: function _EvaluateVisitor_visitSupportsRule_closure0() { }, _EvaluateVisitor__visitSupportsCondition_closure: function _EvaluateVisitor__visitSupportsCondition_closure(t0, t1) { this._box_0 = t0; this.$this = t1; }, _EvaluateVisitor_visitVariableDeclaration_closure: function _EvaluateVisitor_visitVariableDeclaration_closure(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.node = t2; }, _EvaluateVisitor_visitVariableDeclaration_closure0: function _EvaluateVisitor_visitVariableDeclaration_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitVariableDeclaration_closure1: function _EvaluateVisitor_visitVariableDeclaration_closure1(t0, t1, t2) { this.$this = t0; this.node = t1; this.value = t2; }, _EvaluateVisitor_visitUseRule_closure: function _EvaluateVisitor_visitUseRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitWarnRule_closure: function _EvaluateVisitor_visitWarnRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitWhileRule_closure: function _EvaluateVisitor_visitWhileRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitWhileRule__closure: function _EvaluateVisitor_visitWhileRule__closure(t0) { this.$this = t0; }, _EvaluateVisitor_visitBinaryOperationExpression_closure: function _EvaluateVisitor_visitBinaryOperationExpression_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__slash_closure: function _EvaluateVisitor__slash_closure(t0) { this._1_0 = t0; }, _EvaluateVisitor__slash_closure0: function _EvaluateVisitor__slash_closure0(t0) { this._1_0 = t0; }, _EvaluateVisitor__slash_recommendation: function _EvaluateVisitor__slash_recommendation() { }, _EvaluateVisitor_visitVariableExpression_closure: function _EvaluateVisitor_visitVariableExpression_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitUnaryOperationExpression_closure: function _EvaluateVisitor_visitUnaryOperationExpression_closure(t0, t1) { this.node = t0; this.operand = t1; }, _EvaluateVisitor_visitListExpression_closure: function _EvaluateVisitor_visitListExpression_closure(t0) { this.$this = t0; }, _EvaluateVisitor_visitFunctionExpression_closure: function _EvaluateVisitor_visitFunctionExpression_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitFunctionExpression_closure0: function _EvaluateVisitor_visitFunctionExpression_closure0() { }, _EvaluateVisitor_visitFunctionExpression_closure1: function _EvaluateVisitor_visitFunctionExpression_closure1(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.node = t2; }, _EvaluateVisitor__checkCalculationArguments_check: function _EvaluateVisitor__checkCalculationArguments_check(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__visitCalculationExpression_closure: function _EvaluateVisitor__visitCalculationExpression_closure(t0, t1, t2, t3) { var _ = this; _._box_0 = t0; _.$this = t1; _.node = t2; _.inLegacySassFunction = t3; }, _EvaluateVisitor__checkAdjacentCalculationValues_closure: function _EvaluateVisitor__checkAdjacentCalculationValues_closure(t0) { this._0_0 = t0; }, _EvaluateVisitor_visitInterpolatedFunctionExpression_closure: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure(t0, t1, t2) { this.$this = t0; this.node = t1; this.$function = t2; }, _EvaluateVisitor__runUserDefinedCallable_closure: function _EvaluateVisitor__runUserDefinedCallable_closure(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.callable = t1; _.evaluated = t2; _.nodeWithSpan = t3; _.run = t4; _.V = t5; }, _EvaluateVisitor__runUserDefinedCallable__closure: function _EvaluateVisitor__runUserDefinedCallable__closure(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.evaluated = t1; _.callable = t2; _.nodeWithSpan = t3; _.run = t4; _.V = t5; }, _EvaluateVisitor__runUserDefinedCallable___closure: function _EvaluateVisitor__runUserDefinedCallable___closure(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.evaluated = t1; _.callable = t2; _.nodeWithSpan = t3; _.run = t4; _.V = t5; }, _EvaluateVisitor__runUserDefinedCallable____closure: function _EvaluateVisitor__runUserDefinedCallable____closure() { }, _EvaluateVisitor__runFunctionCallable_closure: function _EvaluateVisitor__runFunctionCallable_closure(t0, t1) { this.$this = t0; this.callable = t1; }, _EvaluateVisitor__runBuiltInCallable_closure: function _EvaluateVisitor__runBuiltInCallable_closure(t0, t1, t2) { this._box_0 = t0; this.evaluated = t1; this.namedSet = t2; }, _EvaluateVisitor__runBuiltInCallable_closure0: function _EvaluateVisitor__runBuiltInCallable_closure0(t0, t1) { this._box_0 = t0; this.evaluated = t1; }, _EvaluateVisitor__runBuiltInCallable_closure1: function _EvaluateVisitor__runBuiltInCallable_closure1() { }, _EvaluateVisitor__evaluateArguments_closure: function _EvaluateVisitor__evaluateArguments_closure() { }, _EvaluateVisitor__evaluateArguments_closure0: function _EvaluateVisitor__evaluateArguments_closure0(t0, t1) { this.$this = t0; this.restNodeForSpan = t1; }, _EvaluateVisitor__evaluateArguments_closure1: function _EvaluateVisitor__evaluateArguments_closure1(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.named = t1; _.restNodeForSpan = t2; _.namedNodes = t3; }, _EvaluateVisitor__evaluateArguments_closure2: function _EvaluateVisitor__evaluateArguments_closure2() { }, _EvaluateVisitor__evaluateMacroArguments_closure: function _EvaluateVisitor__evaluateMacroArguments_closure(t0) { this.restArgs = t0; }, _EvaluateVisitor__evaluateMacroArguments_closure0: function _EvaluateVisitor__evaluateMacroArguments_closure0(t0, t1, t2) { this.$this = t0; this.restNodeForSpan = t1; this.restArgs = t2; }, _EvaluateVisitor__evaluateMacroArguments_closure1: function _EvaluateVisitor__evaluateMacroArguments_closure1(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.named = t1; _.restNodeForSpan = t2; _.restArgs = t3; }, _EvaluateVisitor__evaluateMacroArguments_closure2: function _EvaluateVisitor__evaluateMacroArguments_closure2(t0, t1, t2) { this.$this = t0; this.keywordRestNodeForSpan = t1; this.keywordRestArgs = t2; }, _EvaluateVisitor__addRestMap_closure: function _EvaluateVisitor__addRestMap_closure(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.values = t1; _.convert = t2; _.expressionNode = t3; _.map = t4; _.nodeWithSpan = t5; }, _EvaluateVisitor__verifyArguments_closure: function _EvaluateVisitor__verifyArguments_closure(t0, t1, t2) { this.$arguments = t0; this.positional = t1; this.named = t2; }, _EvaluateVisitor_visitCssAtRule_closure: function _EvaluateVisitor_visitCssAtRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssAtRule_closure0: function _EvaluateVisitor_visitCssAtRule_closure0() { }, _EvaluateVisitor_visitCssKeyframeBlock_closure: function _EvaluateVisitor_visitCssKeyframeBlock_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssKeyframeBlock_closure0: function _EvaluateVisitor_visitCssKeyframeBlock_closure0() { }, _EvaluateVisitor_visitCssMediaRule_closure: function _EvaluateVisitor_visitCssMediaRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssMediaRule_closure0: function _EvaluateVisitor_visitCssMediaRule_closure0(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.mergedQueries = t1; _.node = t2; _.mergedSources = t3; }, _EvaluateVisitor_visitCssMediaRule__closure: function _EvaluateVisitor_visitCssMediaRule__closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssMediaRule___closure: function _EvaluateVisitor_visitCssMediaRule___closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssMediaRule_closure1: function _EvaluateVisitor_visitCssMediaRule_closure1(t0) { this.mergedSources = t0; }, _EvaluateVisitor_visitCssStyleRule_closure: function _EvaluateVisitor_visitCssStyleRule_closure(t0, t1, t2) { this.$this = t0; this.rule = t1; this.node = t2; }, _EvaluateVisitor_visitCssStyleRule__closure: function _EvaluateVisitor_visitCssStyleRule__closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssStyleRule_closure0: function _EvaluateVisitor_visitCssStyleRule_closure0() { }, _EvaluateVisitor_visitCssStyleRule_closure1: function _EvaluateVisitor_visitCssStyleRule_closure1(t0) { this._0_0 = t0; }, _EvaluateVisitor_visitCssSupportsRule_closure: function _EvaluateVisitor_visitCssSupportsRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssSupportsRule__closure: function _EvaluateVisitor_visitCssSupportsRule__closure(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssSupportsRule_closure0: function _EvaluateVisitor_visitCssSupportsRule_closure0() { }, _EvaluateVisitor__performInterpolationHelper_closure: function _EvaluateVisitor__performInterpolationHelper_closure(t0) { this.interpolation = t0; }, _EvaluateVisitor__serialize_closure: function _EvaluateVisitor__serialize_closure(t0, t1) { this.value = t0; this.quote = t1; }, _EvaluateVisitor__expressionNode_closure: function _EvaluateVisitor__expressionNode_closure(t0, t1) { this.$this = t0; this.expression = t1; }, _EvaluateVisitor__withoutSlash_recommendation: function _EvaluateVisitor__withoutSlash_recommendation() { }, _EvaluateVisitor__stackFrame_closure: function _EvaluateVisitor__stackFrame_closure(t0) { this.$this = t0; }, _ImportedCssVisitor: function _ImportedCssVisitor(t0) { this._visitor = t0; }, _ImportedCssVisitor_visitCssAtRule_closure: function _ImportedCssVisitor_visitCssAtRule_closure() { }, _ImportedCssVisitor_visitCssMediaRule_closure: function _ImportedCssVisitor_visitCssMediaRule_closure(t0) { this.hasBeenMerged = t0; }, _ImportedCssVisitor_visitCssStyleRule_closure: function _ImportedCssVisitor_visitCssStyleRule_closure() { }, _ImportedCssVisitor_visitCssSupportsRule_closure: function _ImportedCssVisitor_visitCssSupportsRule_closure() { }, _EvaluationContext: function _EvaluationContext(t0, t1) { this._visitor = t0; this._defaultWarnNodeWithSpan = t1; }, EveryCssVisitor: function EveryCssVisitor() { }, EveryCssVisitor_visitCssAtRule_closure: function EveryCssVisitor_visitCssAtRule_closure(t0) { this.$this = t0; }, EveryCssVisitor_visitCssKeyframeBlock_closure: function EveryCssVisitor_visitCssKeyframeBlock_closure(t0) { this.$this = t0; }, EveryCssVisitor_visitCssMediaRule_closure: function EveryCssVisitor_visitCssMediaRule_closure(t0) { this.$this = t0; }, EveryCssVisitor_visitCssStyleRule_closure: function EveryCssVisitor_visitCssStyleRule_closure(t0) { this.$this = t0; }, EveryCssVisitor_visitCssStylesheet_closure: function EveryCssVisitor_visitCssStylesheet_closure(t0) { this.$this = t0; }, EveryCssVisitor_visitCssSupportsRule_closure: function EveryCssVisitor_visitCssSupportsRule_closure(t0) { this.$this = t0; }, expressionToCalc(expression) { var t1 = A._setArrayType([B.C__MakeExpressionCalculationSafe.visitBinaryOperationExpression$1(expression)], type$.JSArray_Expression), t2 = expression.get$span(expression), t3 = type$.Expression; return new A.FunctionExpression(null, "calc", new A.ArgumentInvocation(A.List_List$unmodifiable(t1, t3), A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t3), null, null, t2), expression.get$span(expression)); }, _MakeExpressionCalculationSafe: function _MakeExpressionCalculationSafe() { }, __MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor: function __MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor() { }, _FindDependenciesVisitor: function _FindDependenciesVisitor(t0, t1, t2, t3, t4) { var _ = this; _._find_dependencies$_uses = t0; _._find_dependencies$_forwards = t1; _._metaLoadCss = t2; _._imports = t3; _._metaNamespaces = t4; }, _FindDependenciesVisitor_visitIncludeRule_closure: function _FindDependenciesVisitor_visitIncludeRule_closure(t0) { this._0_0 = t0; }, _FindDependenciesVisitor_visitIncludeRule_closure0: function _FindDependenciesVisitor_visitIncludeRule_closure0(t0) { this._0_4 = t0; }, DependencyReport: function DependencyReport(t0, t1, t2, t3) { var _ = this; _.uses = t0; _.forwards = t1; _.metaLoadCss = t2; _.imports = t3; }, __FindDependenciesVisitor_Object_RecursiveStatementVisitor: function __FindDependenciesVisitor_Object_RecursiveStatementVisitor() { }, RecursiveStatementVisitor: function RecursiveStatementVisitor() { }, ReplaceExpressionVisitor: function ReplaceExpressionVisitor() { }, ReplaceExpressionVisitor_visitListExpression_closure: function ReplaceExpressionVisitor_visitListExpression_closure(t0) { this.$this = t0; }, ReplaceExpressionVisitor_visitArgumentInvocation_closure: function ReplaceExpressionVisitor_visitArgumentInvocation_closure(t0) { this.$this = t0; }, ReplaceExpressionVisitor_visitInterpolation_closure: function ReplaceExpressionVisitor_visitInterpolation_closure(t0) { this.$this = t0; }, SelectorSearchVisitor: function SelectorSearchVisitor() { }, SelectorSearchVisitor_visitComplexSelector_closure: function SelectorSearchVisitor_visitComplexSelector_closure(t0) { this.$this = t0; }, SelectorSearchVisitor_visitCompoundSelector_closure: function SelectorSearchVisitor_visitCompoundSelector_closure(t0) { this.$this = t0; }, serialize(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) { var t1, css, t2, prefix, visitor = A._SerializeVisitor$(2, inspect, lineFeed, true, sourceMap, style, true); node.accept$1(visitor); t1 = visitor._serialize$_buffer; css = t1.toString$0(0); if (charset) { t2 = new A.CodeUnits(css); t2 = t2.any$1(t2, new A.serialize_closure()); } else t2 = false; if (t2) prefix = style === B.OutputStyle_1 ? "\ufeff" : '@charset "UTF-8";\n'; else prefix = ""; t1 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null; return new A._Record_2_sourceMap(prefix + css, t1); }, serializeValue(value, inspect, quote) { var visitor = A._SerializeVisitor$(null, inspect, null, quote, false, null, true); value.accept$1(visitor); return visitor._serialize$_buffer.toString$0(0); }, serializeSelector(selector, inspect) { var visitor = A._SerializeVisitor$(null, true, null, true, false, null, true); selector.accept$1(visitor); return visitor._serialize$_buffer.toString$0(0); }, _SerializeVisitor$(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) { var t1 = sourceMap ? new A.SourceMapBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Entry)) : new A.NoSourceMapBuffer(new A.StringBuffer("")), t2 = style == null ? B.OutputStyle_0 : style, t3 = indentWidth == null ? 2 : indentWidth; A.RangeError_checkValueInInterval(t3, 0, 10, "indentWidth"); return new A._SerializeVisitor(t1, t2, inspect, quote, 32, t3, B.LineFeed_lf); }, serialize_closure: function serialize_closure() { }, _SerializeVisitor: function _SerializeVisitor(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _._serialize$_buffer = t0; _._indentation = 0; _._style = t1; _._inspect = t2; _._quote = t3; _._indentCharacter = t4; _._indentWidth = t5; _._serialize$_lineFeed = t6; }, _SerializeVisitor_visitCssComment_closure: function _SerializeVisitor_visitCssComment_closure(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssAtRule_closure: function _SerializeVisitor_visitCssAtRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssMediaRule_closure: function _SerializeVisitor_visitCssMediaRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssImport_closure: function _SerializeVisitor_visitCssImport_closure(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssImport__closure: function _SerializeVisitor_visitCssImport__closure(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssKeyframeBlock_closure: function _SerializeVisitor_visitCssKeyframeBlock_closure(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssStyleRule_closure: function _SerializeVisitor_visitCssStyleRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssSupportsRule_closure: function _SerializeVisitor_visitCssSupportsRule_closure(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssDeclaration_closure: function _SerializeVisitor_visitCssDeclaration_closure(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssDeclaration_closure0: function _SerializeVisitor_visitCssDeclaration_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor__writeCalculationValue_closure: function _SerializeVisitor__writeCalculationValue_closure(t0) { this._2_0 = t0; }, _SerializeVisitor_visitList_closure: function _SerializeVisitor_visitList_closure() { }, _SerializeVisitor_visitList_closure0: function _SerializeVisitor_visitList_closure0(t0, t1) { this.$this = t0; this.value = t1; }, _SerializeVisitor_visitList_closure1: function _SerializeVisitor_visitList_closure1(t0) { this.$this = t0; }, _SerializeVisitor_visitMap_closure: function _SerializeVisitor_visitMap_closure(t0) { this.$this = t0; }, _SerializeVisitor__visitQuotedString_closure: function _SerializeVisitor__visitQuotedString_closure(t0) { this._1_0 = t0; }, _SerializeVisitor__visitQuotedString_closure0: function _SerializeVisitor__visitQuotedString_closure0(t0) { this._1_0 = t0; }, _SerializeVisitor_visitSelectorList_closure: function _SerializeVisitor_visitSelectorList_closure() { }, _SerializeVisitor_visitPseudoSelector_closure: function _SerializeVisitor_visitPseudoSelector_closure(t0) { this._0_0 = t0; }, _SerializeVisitor__write_closure: function _SerializeVisitor__write_closure(t0, t1) { this.$this = t0; this.value = t1; }, _SerializeVisitor__visitChildren_closure: function _SerializeVisitor__visitChildren_closure(t0, t1) { this.$this = t0; this.child = t1; }, _SerializeVisitor__visitChildren_closure0: function _SerializeVisitor__visitChildren_closure0(t0, t1) { this.$this = t0; this.child = t1; }, OutputStyle: function OutputStyle(t0) { this._name = t0; }, LineFeed: function LineFeed(t0) { this._name = t0; }, StatementSearchVisitor: function StatementSearchVisitor() { }, StatementSearchVisitor_visitIfRule_closure: function StatementSearchVisitor_visitIfRule_closure(t0) { this.$this = t0; }, StatementSearchVisitor_visitIfRule__closure0: function StatementSearchVisitor_visitIfRule__closure0(t0) { this.$this = t0; }, StatementSearchVisitor_visitIfRule_closure0: function StatementSearchVisitor_visitIfRule_closure0(t0) { this.$this = t0; }, StatementSearchVisitor_visitIfRule__closure: function StatementSearchVisitor_visitIfRule__closure(t0) { this.$this = t0; }, StatementSearchVisitor_visitChildren_closure: function StatementSearchVisitor_visitChildren_closure(t0) { this.$this = t0; }, Entry: function Entry(t0, t1, t2) { this.source = t0; this.target = t1; this.identifierName = t2; }, SingleMapping_SingleMapping$fromEntries(entries) { var lines, t1, t2, urls, names, files, targetEntries, t3, t4, lineNum, _i, sourceEntry, t5, t6, sourceUrl, t7, urlId, sourceEntries = J.toList$0$ax(entries); B.JSArray_methods.sort$0(sourceEntries); lines = A._setArrayType([], type$.JSArray_TargetLineEntry); t1 = type$.String; t2 = type$.int; urls = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); names = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); files = A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.SourceFile); targetEntries = A._Cell$(); for (t2 = sourceEntries.length, t3 = type$.JSArray_TargetEntry, t4 = targetEntries.__late_helper$_name, lineNum = null, _i = 0; _i < sourceEntries.length; sourceEntries.length === t2 || (0, A.throwConcurrentModificationError)(sourceEntries), ++_i) { sourceEntry = sourceEntries[_i]; if (lineNum == null || sourceEntry.target.line > lineNum) { lineNum = sourceEntry.target.line; t5 = A._setArrayType([], t3); targetEntries._value = t5; lines.push(new A.TargetLineEntry(lineNum, t5)); } t5 = sourceEntry.source; t6 = t5.file; sourceUrl = t6.url; t7 = sourceUrl == null ? "" : sourceUrl.toString$0(0); urlId = urls.putIfAbsent$2(t7, new A.SingleMapping_SingleMapping$fromEntries_closure(urls)); files.putIfAbsent$2(urlId, new A.SingleMapping_SingleMapping$fromEntries_closure0(sourceEntry)); t7 = targetEntries._value; if (t7 === targetEntries) A.throwExpression(A.LateError$localNI(t4)); t5 = t5.offset; J.add$1$ax(t7, new A.TargetEntry(sourceEntry.target.column, urlId, t6.getLine$1(t5), t6.getColumn$1(t5), null)); } t2 = urls.get$values(urls); t2 = A.MappedIterable_MappedIterable(t2, new A.SingleMapping_SingleMapping$fromEntries_closure1(files), A._instanceType(t2)._eval$1("Iterable.E"), type$.nullable_SourceFile); t2 = A.List_List$of(t2, true, A._instanceType(t2)._eval$1("Iterable.E")); t3 = urls.$ti._eval$1("LinkedHashMapKeyIterable<1>"); t4 = names.$ti._eval$1("LinkedHashMapKeyIterable<1>"); 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)); }, Mapping: function Mapping() { }, SingleMapping: function SingleMapping(t0, t1, t2, t3, t4, t5) { var _ = this; _.urls = t0; _.names = t1; _.files = t2; _.lines = t3; _.targetUrl = t4; _.sourceRoot = null; _.extensions = t5; }, SingleMapping_SingleMapping$fromEntries_closure: function SingleMapping_SingleMapping$fromEntries_closure(t0) { this.urls = t0; }, SingleMapping_SingleMapping$fromEntries_closure0: function SingleMapping_SingleMapping$fromEntries_closure0(t0) { this.sourceEntry = t0; }, SingleMapping_SingleMapping$fromEntries_closure1: function SingleMapping_SingleMapping$fromEntries_closure1(t0) { this.files = t0; }, SingleMapping_toJson_closure: function SingleMapping_toJson_closure() { }, SingleMapping_toJson_closure0: function SingleMapping_toJson_closure0(t0) { this.result = t0; }, TargetLineEntry: function TargetLineEntry(t0, t1) { this.line = t0; this.entries = t1; }, TargetEntry: function TargetEntry(t0, t1, t2, t3, t4) { var _ = this; _.column = t0; _.sourceUrlId = t1; _.sourceLine = t2; _.sourceColumn = t3; _.sourceNameId = t4; }, SourceFile$fromString(text, url) { var t1 = new A.CodeUnits(text), t2 = A._setArrayType([0], type$.JSArray_int), t3 = typeof url == "string" ? A.Uri_parse(url) : type$.nullable_Uri._as(url); t2 = new A.SourceFile(t3, t2, new Uint32Array(A._ensureNativeList(t1.toList$0(t1)))); t2.SourceFile$decoded$2$url(t1, url); return t2; }, SourceFile$decoded(decodedChars, url) { var t1 = A._setArrayType([0], type$.JSArray_int), t2 = typeof url == "string" ? A.Uri_parse(url) : type$.nullable_Uri._as(url); t1 = new A.SourceFile(t2, t1, new Uint32Array(A._ensureNativeList(J.toList$0$ax(decodedChars)))); t1.SourceFile$decoded$2$url(decodedChars, url); return t1; }, FileLocation$_(file, offset) { if (offset < 0) A.throwExpression(A.RangeError$("Offset may not be negative, was " + offset + ".")); else if (offset > file._decodedChars.length) A.throwExpression(A.RangeError$("Offset " + offset + string$.x20must_n + file.get$length(file) + ".")); return new A.FileLocation(file, offset); }, _FileSpan$(file, _start, _end) { if (_end < _start) A.throwExpression(A.ArgumentError$("End " + _end + " must come after start " + _start + ".", null)); else if (_end > file._decodedChars.length) A.throwExpression(A.RangeError$("End " + _end + string$.x20must_n + file.get$length(file) + ".")); else if (_start < 0) A.throwExpression(A.RangeError$("Start may not be negative, was " + _start + ".")); return new A._FileSpan(file, _start, _end); }, FileSpanExtension_subspan(_this, start, end) { var t1, startOffset, t2; A.RangeError_checkValidRange(start, end, _this.get$length(_this)); if (start === 0) t1 = end == null || end === _this.get$length(_this); else t1 = false; if (t1) return _this; startOffset = _this.get$start(_this).offset; t1 = _this.get$file(_this); t2 = end == null ? _this.get$end(_this).offset : startOffset + end; return t1.span$2(0, startOffset + start, t2); }, SourceFile: function SourceFile(t0, t1, t2) { var _ = this; _.url = t0; _._lineStarts = t1; _._decodedChars = t2; _._cachedLine = null; }, FileLocation: function FileLocation(t0, t1) { this.file = t0; this.offset = t1; }, _FileSpan: function _FileSpan(t0, t1, t2) { this.file = t0; this._file$_start = t1; this._end = t2; }, Highlighter$(span, color) { var t1 = A.Highlighter__collateLines(A._setArrayType([A._Highlight$(span, null, true)], type$.JSArray__Highlight)), t2 = new A.Highlighter_closure(color).call$0(), t3 = B.JSInt_methods.toString$0(B.JSArray_methods.get$last(t1).number + 1), t4 = A.Highlighter__contiguous(t1) ? 0 : 3, t5 = A._arrayInstanceType(t1); 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("")); }, Highlighter$multiple(primarySpan, primaryLabel, secondarySpans, color, primaryColor, secondaryColor) { var t2, t3, t4, t5, t6, t1 = A._setArrayType([A._Highlight$(primarySpan, primaryLabel, true)], type$.JSArray__Highlight); for (t2 = secondarySpans.get$entries(secondarySpans), t2 = t2.get$iterator(t2); t2.moveNext$0();) { t3 = t2.get$current(t2); t1.push(A._Highlight$(t3.key, t3.value, false)); } t1 = A.Highlighter__collateLines(t1); if (color) t2 = primaryColor == null ? "\x1b[31m" : primaryColor; else t2 = null; if (color) t3 = "\x1b[34m"; else t3 = null; t4 = B.JSInt_methods.toString$0(B.JSArray_methods.get$last(t1).number + 1); t5 = A.Highlighter__contiguous(t1) ? 0 : 3; t6 = A._arrayInstanceType(t1); 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("")); }, Highlighter__contiguous(lines) { var i, thisLine, nextLine; for (i = 0; i < lines.length - 1;) { thisLine = lines[i]; ++i; nextLine = lines[i]; if (thisLine.number + 1 !== nextLine.number && J.$eq$(thisLine.url, nextLine.url)) return false; } return true; }, Highlighter__collateLines(highlights) { var t1, t2, t3, highlightsByUrl = A.groupBy(highlights, new A.Highlighter__collateLines_closure(), type$._Highlight, type$.Object); for (t1 = highlightsByUrl.get$values(highlightsByUrl), t1 = new A.MappedIterator(J.get$iterator$ax(t1.__internal$_iterable), t1._f), t2 = A._instanceType(t1)._rest[1]; t1.moveNext$0();) { t3 = t1.__internal$_current; if (t3 == null) t3 = t2._as(t3); J.sort$1$ax(t3, new A.Highlighter__collateLines_closure0()); } t1 = highlightsByUrl.get$entries(highlightsByUrl); t2 = A._instanceType(t1)._eval$1("ExpandIterable"); return A.List_List$of(new A.ExpandIterable(t1, new A.Highlighter__collateLines_closure1(), t2), true, t2._eval$1("Iterable.E")); }, _Highlight$(span, label, primary) { var t2, t1 = new A._Highlight_closure(span).call$0(); if (label == null) t2 = null; else t2 = A.stringReplaceAllUnchecked(label, "\r\n", "\n"); return new A._Highlight(t1, primary, t2); }, _Highlight__normalizeNewlines(span) { var endOffset, t1, i, t2, t3, t4, text = span.get$text(); if (!B.JSString_methods.contains$1(text, "\r\n")) return span; endOffset = span.get$end(span).get$offset(); for (t1 = text.length - 1, i = 0; i < t1; ++i) if (text.charCodeAt(i) === 13 && text.charCodeAt(i + 1) === 10) --endOffset; t1 = span.get$start(span); t2 = span.get$sourceUrl(span); t3 = span.get$end(span).get$line(); t2 = A.SourceLocation$(endOffset, span.get$end(span).get$column(), t3, t2); t3 = A.stringReplaceAllUnchecked(text, "\r\n", "\n"); t4 = span.get$context(span); return A.SourceSpanWithContext$(t1, t2, t3, A.stringReplaceAllUnchecked(t4, "\r\n", "\n")); }, _Highlight__normalizeTrailingNewline(span) { var context, text, start, end, t1, t2, t3; if (!B.JSString_methods.endsWith$1(span.get$context(span), "\n")) return span; if (B.JSString_methods.endsWith$1(span.get$text(), "\n\n")) return span; context = B.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1); text = span.get$text(); start = span.get$start(span); end = span.get$end(span); if (B.JSString_methods.endsWith$1(span.get$text(), "\n")) { t1 = A.findLineStart(span.get$context(span), span.get$text(), span.get$start(span).get$column()); t1.toString; t1 = t1 + span.get$start(span).get$column() + span.get$length(span) === span.get$context(span).length; } else t1 = false; if (t1) { text = B.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1); if (text.length === 0) end = start; else { t1 = span.get$end(span).get$offset(); t2 = span.get$sourceUrl(span); t3 = span.get$end(span).get$line(); end = A.SourceLocation$(t1 - 1, A._Highlight__lastLineLength(context), t3 - 1, t2); start = span.get$start(span).get$offset() === span.get$end(span).get$offset() ? end : span.get$start(span); } } return A.SourceSpanWithContext$(start, end, text, context); }, _Highlight__normalizeEndOfLine(span) { var text, t1, t2, t3, t4; if (span.get$end(span).get$column() !== 0) return span; if (span.get$end(span).get$line() === span.get$start(span).get$line()) return span; text = B.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1); t1 = span.get$start(span); t2 = span.get$end(span).get$offset(); t3 = span.get$sourceUrl(span); t4 = span.get$end(span).get$line(); t3 = A.SourceLocation$(t2 - 1, text.length - B.JSString_methods.lastIndexOf$1(text, "\n") - 1, t4 - 1, t3); 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)); }, _Highlight__lastLineLength(text) { var t1 = text.length; if (t1 === 0) return 0; else if (text.charCodeAt(t1 - 1) === 10) return t1 === 1 ? 0 : t1 - B.JSString_methods.lastIndexOf$2(text, "\n", t1 - 2) - 1; else return t1 - B.JSString_methods.lastIndexOf$1(text, "\n") - 1; }, Highlighter: function Highlighter(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _._lines = t0; _._primaryColor = t1; _._secondaryColor = t2; _._paddingBeforeSidebar = t3; _._maxMultilineSpans = t4; _._multipleFiles = t5; _._highlighter$_buffer = t6; }, Highlighter_closure: function Highlighter_closure(t0) { this.color = t0; }, Highlighter$__closure: function Highlighter$__closure() { }, Highlighter$___closure: function Highlighter$___closure() { }, Highlighter$__closure0: function Highlighter$__closure0() { }, Highlighter__collateLines_closure: function Highlighter__collateLines_closure() { }, Highlighter__collateLines_closure0: function Highlighter__collateLines_closure0() { }, Highlighter__collateLines_closure1: function Highlighter__collateLines_closure1() { }, Highlighter__collateLines__closure: function Highlighter__collateLines__closure(t0) { this.line = t0; }, Highlighter_highlight_closure: function Highlighter_highlight_closure() { }, Highlighter__writeFileStart_closure: function Highlighter__writeFileStart_closure(t0) { this.$this = t0; }, Highlighter__writeMultilineHighlights_closure: function Highlighter__writeMultilineHighlights_closure(t0, t1, t2) { this.$this = t0; this.startLine = t1; this.line = t2; }, Highlighter__writeMultilineHighlights_closure0: function Highlighter__writeMultilineHighlights_closure0(t0, t1) { this.$this = t0; this.highlight = t1; }, Highlighter__writeMultilineHighlights_closure1: function Highlighter__writeMultilineHighlights_closure1(t0) { this.$this = t0; }, Highlighter__writeMultilineHighlights_closure2: function Highlighter__writeMultilineHighlights_closure2(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _._box_0 = t0; _.$this = t1; _.current = t2; _.startLine = t3; _.line = t4; _.highlight = t5; _.endLine = t6; }, Highlighter__writeMultilineHighlights__closure: function Highlighter__writeMultilineHighlights__closure(t0, t1) { this._box_0 = t0; this.$this = t1; }, Highlighter__writeMultilineHighlights__closure0: function Highlighter__writeMultilineHighlights__closure0(t0, t1) { this.$this = t0; this.vertical = t1; }, Highlighter__writeHighlightedText_closure: function Highlighter__writeHighlightedText_closure(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.text = t1; _.startColumn = t2; _.endColumn = t3; }, Highlighter__writeIndicator_closure: function Highlighter__writeIndicator_closure(t0, t1, t2) { this.$this = t0; this.line = t1; this.highlight = t2; }, Highlighter__writeIndicator_closure0: function Highlighter__writeIndicator_closure0(t0, t1, t2) { this.$this = t0; this.line = t1; this.highlight = t2; }, Highlighter__writeIndicator_closure1: function Highlighter__writeIndicator_closure1(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.coversWholeLine = t1; _.line = t2; _.highlight = t3; }, Highlighter__writeLabel_closure: function Highlighter__writeLabel_closure(t0, t1) { this.$this = t0; this.lines = t1; }, Highlighter__writeLabel_closure0: function Highlighter__writeLabel_closure0(t0, t1) { this.$this = t0; this.text = t1; }, Highlighter__writeSidebar_closure: function Highlighter__writeSidebar_closure(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.end = t2; }, _Highlight: function _Highlight(t0, t1, t2) { this.span = t0; this.isPrimary = t1; this.label = t2; }, _Highlight_closure: function _Highlight_closure(t0) { this.span = t0; }, _Line: function _Line(t0, t1, t2, t3) { var _ = this; _.text = t0; _.number = t1; _.url = t2; _.highlights = t3; }, SourceLocation$(offset, column, line, sourceUrl) { var t1 = line == null, t2 = t1 ? 0 : line, t3 = column == null, t4 = t3 ? offset : column; if (offset < 0) A.throwExpression(A.RangeError$("Offset may not be negative, was " + offset + ".")); else if (!t1 && line < 0) A.throwExpression(A.RangeError$("Line may not be negative, was " + A.S(line) + ".")); else if (!t3 && column < 0) A.throwExpression(A.RangeError$("Column may not be negative, was " + A.S(column) + ".")); return new A.SourceLocation(sourceUrl, offset, t2, t4); }, SourceLocation: function SourceLocation(t0, t1, t2, t3) { var _ = this; _.sourceUrl = t0; _.offset = t1; _.line = t2; _.column = t3; }, SourceLocationMixin: function SourceLocationMixin() { }, SourceSpanExtension_messageMultiple(_this, message, label, secondarySpans, color, primaryColor, secondaryColor) { var t2, t1 = _this.get$start(_this); t1 = t1.file.getLine$1(t1.offset); t2 = _this.get$start(_this); t2 = "" + ("line " + (t1 + 1) + ", column " + (t2.file.getColumn$1(t2.offset) + 1)); if (_this.get$sourceUrl(_this) != null) { t1 = _this.get$sourceUrl(_this); t1 = t2 + (" of " + $.$get$context().prettyUri$1(t1)); } else t1 = t2; t1 = t1 + (": " + message + "\n") + A.Highlighter$multiple(_this, label, secondarySpans, color, primaryColor, secondaryColor).highlight$0(); return t1.charCodeAt(0) == 0 ? t1 : t1; }, SourceSpanBase: function SourceSpanBase() { }, SourceSpanException: function SourceSpanException() { }, SourceSpanFormatException: function SourceSpanFormatException(t0, t1, t2) { this.source = t0; this._span_exception$_message = t1; this._span = t2; }, MultiSourceSpanException: function MultiSourceSpanException() { }, MultiSourceSpanFormatException: function MultiSourceSpanFormatException(t0, t1, t2, t3) { var _ = this; _.primaryLabel = t0; _.secondarySpans = t1; _._span_exception$_message = t2; _._span = t3; }, SourceSpanMixin: function SourceSpanMixin() { }, SourceSpanWithContext$(start, end, text, _context) { var t1 = new A.SourceSpanWithContext(_context, start, end, text); t1.SourceSpanBase$3(start, end, text); if (!B.JSString_methods.contains$1(_context, text)) A.throwExpression(A.ArgumentError$('The context line "' + _context + '" must contain "' + text + '".', null)); if (A.findLineStart(_context, text, start.get$column()) == null) A.throwExpression(A.ArgumentError$('The span text "' + text + '" must start at column ' + (start.get$column() + 1) + ' in a line within "' + _context + '".', null)); return t1; }, SourceSpanWithContext: function SourceSpanWithContext(t0, t1, t2, t3) { var _ = this; _._context = t0; _.start = t1; _.end = t2; _.text = t3; }, Chain_Chain$parse(chain) { var t1, t2, _s51_ = string$.x3d_____; if (chain.length === 0) return new A.Chain(A.List_List$unmodifiable(A._setArrayType([], type$.JSArray_Trace), type$.Trace)); t1 = $.$get$vmChainGap(); if (B.JSString_methods.contains$1(chain, t1)) { t1 = B.JSString_methods.split$1(chain, t1); t2 = A._arrayInstanceType(t1); 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)); } if (!B.JSString_methods.contains$1(chain, _s51_)) return new A.Chain(A.List_List$unmodifiable(A._setArrayType([A.Trace_Trace$parse(chain)], type$.JSArray_Trace), type$.Trace)); 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)); }, Chain: function Chain(t0) { this.traces = t0; }, Chain_Chain$parse_closure: function Chain_Chain$parse_closure() { }, Chain_toTrace_closure: function Chain_toTrace_closure() { }, Chain_toString_closure0: function Chain_toString_closure0() { }, Chain_toString__closure0: function Chain_toString__closure0() { }, Chain_toString_closure: function Chain_toString_closure(t0) { this.longest = t0; }, Chain_toString__closure: function Chain_toString__closure(t0) { this.longest = t0; }, Frame___parseVM_tearOff(frame) { return A.Frame_Frame$parseVM(frame); }, Frame_Frame$parseVM(frame) { return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseVM_closure(frame)); }, Frame___parseV8_tearOff(frame) { return A.Frame_Frame$parseV8(frame); }, Frame_Frame$parseV8(frame) { return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseV8_closure(frame)); }, Frame_Frame$_parseFirefoxEval(frame) { return A.Frame__catchFormatException(frame, new A.Frame_Frame$_parseFirefoxEval_closure(frame)); }, Frame___parseFirefox_tearOff(frame) { return A.Frame_Frame$parseFirefox(frame); }, Frame_Frame$parseFirefox(frame) { return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFirefox_closure(frame)); }, Frame___parseFriendly_tearOff(frame) { return A.Frame_Frame$parseFriendly(frame); }, Frame_Frame$parseFriendly(frame) { return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFriendly_closure(frame)); }, Frame__uriOrPathToUri(uriOrPath) { if (B.JSString_methods.contains$1(uriOrPath, $.$get$Frame__uriRegExp())) return A.Uri_parse(uriOrPath); else if (B.JSString_methods.contains$1(uriOrPath, $.$get$Frame__windowsRegExp())) return A._Uri__Uri$file(uriOrPath, true); else if (B.JSString_methods.startsWith$1(uriOrPath, "/")) return A._Uri__Uri$file(uriOrPath, false); if (B.JSString_methods.contains$1(uriOrPath, "\\")) return $.$get$windows().toUri$1(uriOrPath); return A.Uri_parse(uriOrPath); }, Frame__catchFormatException(text, body) { var t1, exception; try { t1 = body.call$0(); return t1; } catch (exception) { if (type$.FormatException._is(A.unwrapException(exception))) return new A.UnparsedFrame(A._Uri__Uri(null, "unparsed", null, null), text); else throw exception; } }, Frame: function Frame(t0, t1, t2, t3) { var _ = this; _.uri = t0; _.line = t1; _.column = t2; _.member = t3; }, Frame_Frame$parseVM_closure: function Frame_Frame$parseVM_closure(t0) { this.frame = t0; }, Frame_Frame$parseV8_closure: function Frame_Frame$parseV8_closure(t0) { this.frame = t0; }, Frame_Frame$parseV8_closure_parseLocation: function Frame_Frame$parseV8_closure_parseLocation(t0) { this.frame = t0; }, Frame_Frame$_parseFirefoxEval_closure: function Frame_Frame$_parseFirefoxEval_closure(t0) { this.frame = t0; }, Frame_Frame$parseFirefox_closure: function Frame_Frame$parseFirefox_closure(t0) { this.frame = t0; }, Frame_Frame$parseFriendly_closure: function Frame_Frame$parseFriendly_closure(t0) { this.frame = t0; }, LazyTrace: function LazyTrace(t0) { this._thunk = t0; this.__LazyTrace__trace_FI = $; }, LazyTrace_terse_closure: function LazyTrace_terse_closure(t0) { this.$this = t0; }, Trace_Trace$from(trace) { if (type$.Trace._is(trace)) return trace; if (trace instanceof A.Chain) return trace.toTrace$0(); return new A.LazyTrace(new A.Trace_Trace$from_closure(trace)); }, Trace_Trace$parse(trace) { var error, t1, exception; try { if (trace.length === 0) { t1 = A.Trace$(A._setArrayType([], type$.JSArray_Frame), null); return t1; } if (B.JSString_methods.contains$1(trace, $.$get$_v8Trace())) { t1 = A.Trace$parseV8(trace); return t1; } if (B.JSString_methods.contains$1(trace, "\tat ")) { t1 = A.Trace$parseJSCore(trace); return t1; } if (B.JSString_methods.contains$1(trace, $.$get$_firefoxSafariTrace()) || B.JSString_methods.contains$1(trace, $.$get$_firefoxEvalTrace())) { t1 = A.Trace$parseFirefox(trace); return t1; } if (B.JSString_methods.contains$1(trace, string$.x3d_____)) { t1 = A.Chain_Chain$parse(trace).toTrace$0(); return t1; } if (B.JSString_methods.contains$1(trace, $.$get$_friendlyTrace())) { t1 = A.Trace$parseFriendly(trace); return t1; } t1 = A.Trace$parseVM(trace); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (type$.FormatException._is(t1)) { error = t1; throw A.wrapException(A.FormatException$(J.get$message$x(error) + "\nStack trace:\n" + trace, null, null)); } else throw exception; } }, Trace___parseVM_tearOff(trace) { return A.Trace$parseVM(trace); }, Trace$parseVM(trace) { var t1 = A.List_List$unmodifiable(A.Trace__parseVM(trace), type$.Frame); return new A.Trace(t1, new A._StringStackTrace(trace)); }, Trace__parseVM(trace) { var $frames, t1 = B.JSString_methods.trim$0(trace), t2 = $.$get$vmChainGap(), t3 = type$.WhereIterable_String, lines = new A.WhereIterable(A._setArrayType(A.stringReplaceAllUnchecked(t1, t2, "").split("\n"), type$.JSArray_String), new A.Trace__parseVM_closure(), t3); if (!lines.get$iterator(lines).moveNext$0()) return A._setArrayType([], type$.JSArray_Frame); t1 = A.TakeIterable_TakeIterable(lines, lines.get$length(lines) - 1, t3._eval$1("Iterable.E")); t1 = A.MappedIterable_MappedIterable(t1, A.frame_Frame___parseVM_tearOff$closure(), A._instanceType(t1)._eval$1("Iterable.E"), type$.Frame); $frames = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E")); if (!J.endsWith$1$s(lines.get$last(lines), ".da")) B.JSArray_methods.add$1($frames, A.Frame_Frame$parseVM(lines.get$last(lines))); return $frames; }, Trace$parseV8(trace) { 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()), t2 = type$.Frame; t2 = A.List_List$unmodifiable(A.MappedIterable_MappedIterable(t1, A.frame_Frame___parseV8_tearOff$closure(), t1.$ti._eval$1("Iterable.E"), t2), t2); return new A.Trace(t2, new A._StringStackTrace(trace)); }, Trace$parseJSCore(trace) { 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); return new A.Trace(t1, new A._StringStackTrace(trace)); }, Trace$parseFirefox(trace) { 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); return new A.Trace(t1, new A._StringStackTrace(trace)); }, Trace___parseFriendly_tearOff(trace) { return A.Trace$parseFriendly(trace); }, Trace$parseFriendly(trace) { 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); t1 = A.List_List$unmodifiable(t1, type$.Frame); return new A.Trace(t1, new A._StringStackTrace(trace)); }, Trace$($frames, original) { var t1 = A.List_List$unmodifiable($frames, type$.Frame); return new A.Trace(t1, new A._StringStackTrace(original == null ? "" : original)); }, Trace: function Trace(t0, t1) { this.frames = t0; this.original = t1; }, Trace_Trace$from_closure: function Trace_Trace$from_closure(t0) { this.trace = t0; }, Trace__parseVM_closure: function Trace__parseVM_closure() { }, Trace$parseV8_closure: function Trace$parseV8_closure() { }, Trace$parseJSCore_closure: function Trace$parseJSCore_closure() { }, Trace$parseFirefox_closure: function Trace$parseFirefox_closure() { }, Trace$parseFriendly_closure: function Trace$parseFriendly_closure() { }, Trace_terse_closure: function Trace_terse_closure() { }, Trace_foldFrames_closure: function Trace_foldFrames_closure(t0) { this.oldPredicate = t0; }, Trace_foldFrames_closure0: function Trace_foldFrames_closure0(t0) { this._box_0 = t0; }, Trace_toString_closure0: function Trace_toString_closure0() { }, Trace_toString_closure: function Trace_toString_closure(t0) { this.longest = t0; }, UnparsedFrame: function UnparsedFrame(t0, t1) { this.uri = t0; this.member = t1; }, TransformByHandlers_transformByHandlers(_this, onData, onDone, $S, $T) { var _null = null, t1 = {}, controller = A.StreamController_StreamController(_null, _null, _null, _null, true, $T); t1.subscription = null; controller.onListen = new A.TransformByHandlers_transformByHandlers_closure(t1, _this, onData, controller, A.instantiate1(A.from_handlers__TransformByHandlers__defaultHandleError$closure(), $T), onDone, $S); return controller.get$stream(); }, TransformByHandlers__defaultHandleError(error, stackTrace, sink) { sink.addError$2(error, stackTrace); }, TransformByHandlers_transformByHandlers_closure: function TransformByHandlers_transformByHandlers_closure(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _._box_1 = t0; _._this = t1; _.handleData = t2; _.controller = t3; _.handleError = t4; _.handleDone = t5; _.S = t6; }, TransformByHandlers_transformByHandlers__closure: function TransformByHandlers_transformByHandlers__closure(t0, t1, t2) { this.handleData = t0; this.controller = t1; this.S = t2; }, TransformByHandlers_transformByHandlers__closure1: function TransformByHandlers_transformByHandlers__closure1(t0, t1) { this.handleError = t0; this.controller = t1; }, TransformByHandlers_transformByHandlers__closure0: function TransformByHandlers_transformByHandlers__closure0(t0, t1, t2) { this._box_0 = t0; this.handleDone = t1; this.controller = t2; }, TransformByHandlers_transformByHandlers__closure2: function TransformByHandlers_transformByHandlers__closure2(t0, t1) { this._box_1 = t0; this._box_0 = t1; }, RateLimit__debounceAggregate(_this, duration, collect, leading, trailing, $T, $S) { var t1 = {}; t1.soFar = t1.timer = null; t1.emittedLatestAsLeading = t1.shouldClose = t1.hasPending = false; 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); }, _collect($event, soFar, $T) { var t1 = soFar == null ? A._setArrayType([], $T._eval$1("JSArray<0>")) : soFar; J.add$1$ax(t1, $event); return t1; }, RateLimit__debounceAggregate_closure: function RateLimit__debounceAggregate_closure(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _._box_0 = t0; _.S = t1; _.collect = t2; _.leading = t3; _.duration = t4; _.trailing = t5; _.T = t6; }, RateLimit__debounceAggregate_closure_emit: function RateLimit__debounceAggregate_closure_emit(t0, t1, t2) { this._box_0 = t0; this.sink = t1; this.S = t2; }, RateLimit__debounceAggregate__closure: function RateLimit__debounceAggregate__closure(t0, t1, t2, t3) { var _ = this; _._box_0 = t0; _.trailing = t1; _.emit = t2; _.sink = t3; }, RateLimit__debounceAggregate_closure0: function RateLimit__debounceAggregate_closure0(t0, t1, t2) { this._box_0 = t0; this.trailing = t1; this.S = t2; }, StringScannerException$(message, span, source) { return new A.StringScannerException(source, message, span); }, StringScannerException: function StringScannerException(t0, t1, t2) { this.source = t0; this._span_exception$_message = t1; this._span = t2; }, LineScanner$(string) { return new A.LineScanner(null, string); }, LineScanner: function LineScanner(t0, t1) { var _ = this; _._line_scanner$_column = _._line_scanner$_line = 0; _.sourceUrl = t0; _.string = t1; _._string_scanner$_position = 0; _._lastMatchPosition = _._lastMatch = null; }, SpanScanner$(string, sourceUrl) { var t2, t1 = A.SourceFile$fromString(string, sourceUrl); if (sourceUrl == null) t2 = null; else t2 = typeof sourceUrl == "string" ? A.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl); return new A.SpanScanner(t1, t2, string); }, SpanScanner: function SpanScanner(t0, t1, t2) { var _ = this; _._sourceFile = t0; _.sourceUrl = t1; _.string = t2; _._string_scanner$_position = 0; _._lastMatchPosition = _._lastMatch = null; }, _SpanScannerState: function _SpanScannerState(t0, t1) { this._scanner = t0; this.position = t1; }, StringScanner$(string, position, sourceUrl) { var t1; if (sourceUrl == null) t1 = null; else t1 = typeof sourceUrl == "string" ? A.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl); return new A.StringScanner(t1, string); }, StringScanner: function StringScanner(t0, t1) { var _ = this; _.sourceUrl = t0; _.string = t1; _._string_scanner$_position = 0; _._lastMatchPosition = _._lastMatch = null; }, AsciiGlyphSet: function AsciiGlyphSet() { }, UnicodeGlyphSet: function UnicodeGlyphSet() { }, WatchEvent: function WatchEvent(t0, t1) { this.type = t0; this.path = t1; }, ChangeType: function ChangeType(t0) { this._watch_event$_name = t0; }, AnySelectorVisitor0: function AnySelectorVisitor0() { }, AnySelectorVisitor_visitComplexSelector_closure0: function AnySelectorVisitor_visitComplexSelector_closure0(t0) { this.$this = t0; }, AnySelectorVisitor_visitCompoundSelector_closure0: function AnySelectorVisitor_visitCompoundSelector_closure0(t0) { this.$this = t0; }, SupportsAnything0: function SupportsAnything0(t0, t1) { this.contents = t0; this.span = t1; }, Argument0: function Argument0(t0, t1, t2) { this.name = t0; this.defaultValue = t1; this.span = t2; }, ArgumentDeclaration_ArgumentDeclaration$parse0(contents, url) { return A.ScssParser$0(contents, null, url).parseArgumentDeclaration$0(); }, ArgumentDeclaration0: function ArgumentDeclaration0(t0, t1, t2) { this.$arguments = t0; this.restArgument = t1; this.span = t2; }, ArgumentDeclaration_verify_closure1: function ArgumentDeclaration_verify_closure1() { }, ArgumentDeclaration_verify_closure2: function ArgumentDeclaration_verify_closure2() { }, ArgumentInvocation$empty0(span) { return new A.ArgumentInvocation0(B.List_empty20, B.Map_empty14, null, null, span); }, ArgumentInvocation0: function ArgumentInvocation0(t0, t1, t2, t3, t4) { var _ = this; _.positional = t0; _.named = t1; _.rest = t2; _.keywordRest = t3; _.span = t4; }, argumentListClass_closure: function argumentListClass_closure() { }, argumentListClass__closure: function argumentListClass__closure() { }, argumentListClass__closure0: function argumentListClass__closure0() { }, SassArgumentList$0(contents, keywords, separator) { var t1 = type$.Value_2; t1 = new A.SassArgumentList0(A.ConstantMap_ConstantMap$from(keywords, type$.String, t1), A.List_List$unmodifiable(contents, t1), separator, false); t1.SassList$3$brackets0(contents, separator, false); return t1; }, SassArgumentList0: function SassArgumentList0(t0, t1, t2, t3) { var _ = this; _._argument_list$_keywords = t0; _._argument_list$_wereKeywordsAccessed = false; _._list1$_contents = t1; _._list1$_separator = t2; _._list1$_hasBrackets = t3; }, JSArray1: function JSArray1() { }, AsyncImporter0: function AsyncImporter0() { }, JSToDartAsyncImporter: function JSToDartAsyncImporter(t0, t1, t2) { this._async0$_canonicalize = t0; this._load = t1; this._nonCanonicalSchemes = t2; }, JSToDartAsyncImporter_canonicalize_closure: function JSToDartAsyncImporter_canonicalize_closure(t0, t1) { this.$this = t0; this.url = t1; }, JSToDartAsyncImporter_load_closure: function JSToDartAsyncImporter_load_closure(t0, t1) { this.$this = t0; this.url = t1; }, AsyncBuiltInCallable$mixin0($name, $arguments, callback, url) { return new A.AsyncBuiltInCallable0($name, A.ScssParser$0("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new A.AsyncBuiltInCallable$mixin_closure0(callback), false); }, AsyncBuiltInCallable0: function AsyncBuiltInCallable0(t0, t1, t2, t3) { var _ = this; _.name = t0; _._async_built_in0$_arguments = t1; _._async_built_in0$_callback = t2; _.acceptsContent = t3; }, AsyncBuiltInCallable$mixin_closure0: function AsyncBuiltInCallable$mixin_closure0(t0) { this.callback = t0; }, compileAsync0(path, charset, fatalDeprecations, functions, futureDeprecations, importCache, indentWidth, lineFeed, logger, nodeImporter, quietDeps, sourceMap, style, syntax, useSpaces, verbose) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult_2), $async$returnValue, t2, t3, t4, t0, stylesheet, result, t1; var $async$compileAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = type$.Deprecation_2; logger = new A.DeprecationHandlingLogger0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashSet_LinkedHashSet$_empty(t1), !verbose); t1 = nodeImporter == null; if (t1) t2 = syntax == null || syntax === A.Syntax_forPath0(path); else t2 = false; $async$goto = t2 ? 3 : 5; break; case 3: // then if (importCache == null) importCache = A.AsyncImportCache$none(logger); t2 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null); t3 = A.isNodeJs() ? self.process : null; if (!J.$eq$(t3 == null ? null : J.get$platform$x(t3), "win32")) { t3 = A.isNodeJs() ? self.process : null; t3 = J.$eq$(t3 == null ? null : J.get$platform$x(t3), "darwin"); } else t3 = true; if (t3) { t3 = $.$get$context(); t4 = A._realCasePath0(A.absolute(t3.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null)); t0 = t4; t4 = t3; t3 = t0; } else { t3 = $.$get$context(); t4 = t3.canonicalize$1(0, path); t0 = t4; t4 = t3; t3 = t0; } $async$goto = 6; return A._asyncAwait(importCache.importCanonical$3$originalUrl(new A.FilesystemImporter0(t2), t4.toUri$1(t3), t4.toUri$1(path)), $async$compileAsync0); case 6: // returning from await. t4 = $async$result; t4.toString; stylesheet = t4; // goto join $async$goto = 4; break; case 5: // else t2 = A.readFile0(path); t3 = syntax == null ? A.Syntax_forPath0(path) : syntax; stylesheet = A.Stylesheet_Stylesheet$parse0(t2, t3, logger, $.$get$context().toUri$1(path)); case 4: // join $async$goto = 7; return A._asyncAwait(A._compileStylesheet2(stylesheet, logger, importCache, nodeImporter, new A.FilesystemImporter0(A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null)), functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset), $async$compileAsync0); case 7: // returning from await. result = $async$result; logger.summarize$1$js(!t1); $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$compileAsync0, $async$completer); }, compileStringAsync0(source, charset, functions, importCache, importer, indentWidth, lineFeed, logger, nodeImporter, quietDeps, sourceMap, style, syntax, url, useSpaces, verbose) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult_2), $async$returnValue, stylesheet, result, t1; var $async$compileStringAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = type$.Deprecation_2; logger = new A.DeprecationHandlingLogger0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashSet_LinkedHashSet$_empty(t1), !verbose); stylesheet = A.Stylesheet_Stylesheet$parse0(source, syntax == null ? B.Syntax_SCSS_scss0 : syntax, logger, url); if (importer == null) t1 = A.isBrowser() ? new A.NoOpImporter0() : new A.FilesystemImporter0(A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null)); else t1 = importer; $async$goto = 3; return A._asyncAwait(A._compileStylesheet2(stylesheet, logger, importCache, nodeImporter, t1, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset), $async$compileStringAsync0); case 3: // returning from await. result = $async$result; logger.summarize$1$js(nodeImporter != null); $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$compileStringAsync0, $async$completer); }, _compileStylesheet2(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult_2), $async$returnValue, evaluateResult, serializeResult, resultSourceMap; var $async$_compileStylesheet2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait(A._EvaluateVisitor$2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet2); case 3: // returning from await. evaluateResult = $async$result; serializeResult = A.serialize0(evaluateResult._1, charset, indentWidth, false, lineFeed, sourceMap, style, useSpaces); resultSourceMap = serializeResult._1; if (resultSourceMap != null && importCache != null) A.mapInPlace0(resultSourceMap.urls, new A._compileStylesheet_closure2(stylesheet, importCache)); $async$returnValue = new A.CompileResult0(evaluateResult, serializeResult); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_compileStylesheet2, $async$completer); }, _compileStylesheet_closure2: function _compileStylesheet_closure2(t0, t1) { this.stylesheet = t0; this.importCache = t1; }, AsyncEnvironment$0() { var t1 = type$.String, t2 = type$.Module_AsyncCallable_2, t3 = type$.AstNode_2, t4 = type$.int, t5 = type$.AsyncCallable_2, t6 = type$.JSArray_Map_String_AsyncCallable_2; 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); }, AsyncEnvironment$_0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) { var t1 = type$.String, t2 = type$.int; 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); }, _EnvironmentModule__EnvironmentModule2(environment, css, preModuleComments, extensionStore, forwarded) { var t1, t2, t3, t4, t5, t6, module, comments, result, t7; if (forwarded == null) forwarded = B.Set_empty6; t1 = type$.dynamic; t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); 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();) { t6 = t4.get$current(t4); module = t6._0; comments = t6._1; result = A.List_List$from(comments, false, t5); result.fixed$length = Array; result.immutable$list = Array; t1.$indexSet(0, module, result); } t1 = A.ConstantMap_ConstantMap$from(t1, t2, t3); t2 = A._EnvironmentModule__makeModulesByVariable2(forwarded); 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); 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); t5 = type$.Map_String_AsyncCallable_2; t6 = type$.AsyncCallable_2; 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); 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); 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()); 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())); }, _EnvironmentModule__makeModulesByVariable2(forwarded) { var modulesByVariable, t1, t2, t3, t4, t5; if (forwarded.get$isEmpty(forwarded)) return B.Map_empty16; modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_AsyncCallable_2); for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) { t2 = t1.get$current(t1); if (t2 instanceof A._EnvironmentModule2) { for (t3 = t2._async_environment0$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); t5 = t4.get$variables(); A.setAll0(modulesByVariable, t5.get$keys(t5), t4); } A.setAll0(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._async_environment0$_environment._async_environment0$_variables)), t2); } else { t3 = t2.get$variables(); A.setAll0(modulesByVariable, t3.get$keys(t3), t2); } } return modulesByVariable; }, _EnvironmentModule__memberMap2(localMap, otherMaps, $V) { var t1, t2, t3; localMap = new A.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0>")); if (otherMaps.get$isEmpty(otherMaps)) return localMap; t1 = A._setArrayType([], $V._eval$1("JSArray>")); for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) { t3 = t2.get$current(t2); if (t3.get$isNotEmpty(t3)) t1.push(t3); } t1.push(localMap); if (t1.length === 1) return localMap; return A.MergedMapView$0(t1, type$.String, $V); }, _EnvironmentModule$_2(_environment, css, preModuleComments, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) { return new A._EnvironmentModule2(_environment._async_environment0$_allModules, variables, variableNodes, functions, mixins, extensionStore, css, preModuleComments, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable); }, AsyncEnvironment0: function AsyncEnvironment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) { var _ = this; _._async_environment0$_modules = t0; _._async_environment0$_namespaceNodes = t1; _._async_environment0$_globalModules = t2; _._async_environment0$_importedModules = t3; _._async_environment0$_forwardedModules = t4; _._async_environment0$_nestedForwardedModules = t5; _._async_environment0$_allModules = t6; _._async_environment0$_variables = t7; _._async_environment0$_variableNodes = t8; _._async_environment0$_variableIndices = t9; _._async_environment0$_functions = t10; _._async_environment0$_functionIndices = t11; _._async_environment0$_mixins = t12; _._async_environment0$_mixinIndices = t13; _._async_environment0$_content = t14; _._async_environment0$_inMixin = false; _._async_environment0$_inSemiGlobalScope = true; _._async_environment0$_lastVariableIndex = _._async_environment0$_lastVariableName = null; }, AsyncEnvironment__getVariableFromGlobalModule_closure0: function AsyncEnvironment__getVariableFromGlobalModule_closure0(t0) { this.name = t0; }, AsyncEnvironment_setVariable_closure2: function AsyncEnvironment_setVariable_closure2(t0, t1) { this.$this = t0; this.name = t1; }, AsyncEnvironment_setVariable_closure3: function AsyncEnvironment_setVariable_closure3(t0) { this.name = t0; }, AsyncEnvironment_setVariable_closure4: function AsyncEnvironment_setVariable_closure4(t0, t1) { this.$this = t0; this.name = t1; }, AsyncEnvironment__getFunctionFromGlobalModule_closure0: function AsyncEnvironment__getFunctionFromGlobalModule_closure0(t0) { this.name = t0; }, AsyncEnvironment__getMixinFromGlobalModule_closure0: function AsyncEnvironment__getMixinFromGlobalModule_closure0(t0) { this.name = t0; }, AsyncEnvironment_toModule_closure0: function AsyncEnvironment_toModule_closure0() { }, AsyncEnvironment_toDummyModule_closure0: function AsyncEnvironment_toDummyModule_closure0() { }, _EnvironmentModule2: function _EnvironmentModule2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) { var _ = this; _.upstream = t0; _.variables = t1; _.variableNodes = t2; _.functions = t3; _.mixins = t4; _.extensionStore = t5; _.css = t6; _.preModuleComments = t7; _.transitivelyContainsCss = t8; _.transitivelyContainsExtensions = t9; _._async_environment0$_environment = t10; _._async_environment0$_modulesByVariable = t11; }, _EnvironmentModule__EnvironmentModule_closure17: function _EnvironmentModule__EnvironmentModule_closure17() { }, _EnvironmentModule__EnvironmentModule_closure18: function _EnvironmentModule__EnvironmentModule_closure18() { }, _EnvironmentModule__EnvironmentModule_closure19: function _EnvironmentModule__EnvironmentModule_closure19() { }, _EnvironmentModule__EnvironmentModule_closure20: function _EnvironmentModule__EnvironmentModule_closure20() { }, _EnvironmentModule__EnvironmentModule_closure21: function _EnvironmentModule__EnvironmentModule_closure21() { }, _EnvironmentModule__EnvironmentModule_closure22: function _EnvironmentModule__EnvironmentModule_closure22() { }, _EvaluateVisitor$2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) { var t4, t1 = type$.Uri, t2 = type$.Module_AsyncCallable_2, t3 = A._setArrayType([], type$.JSArray_Record_2_String_and_AstNode_2); if (nodeImporter == null) t4 = importCache == null ? A.AsyncImportCache$none(logger) : importCache; else t4 = null; 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); t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap); return t1; }, _EvaluateVisitor2: function _EvaluateVisitor2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) { var _ = this; _._async_evaluate0$_importCache = t0; _._async_evaluate0$_nodeImporter = t1; _._async_evaluate0$_builtInFunctions = t2; _._async_evaluate0$_builtInModules = t3; _._async_evaluate0$_modules = t4; _._async_evaluate0$_moduleConfigurations = t5; _._async_evaluate0$_moduleNodes = t6; _._async_evaluate0$_logger = t7; _._async_evaluate0$_warningsEmitted = t8; _._async_evaluate0$_quietDeps = t9; _._async_evaluate0$_sourceMap = t10; _._async_evaluate0$_environment = t11; _._async_evaluate0$_declarationName = _._async_evaluate0$__parent = _._async_evaluate0$_mediaQuerySources = _._async_evaluate0$_mediaQueries = _._async_evaluate0$_styleRuleIgnoringAtRoot = null; _._async_evaluate0$_member = "root stylesheet"; _._async_evaluate0$_importSpan = _._async_evaluate0$_callableNode = _._async_evaluate0$_currentCallable = null; _._async_evaluate0$_inSupportsDeclaration = _._async_evaluate0$_inKeyframes = _._async_evaluate0$_atRootExcludingStyleRule = _._async_evaluate0$_inUnknownAtRule = _._async_evaluate0$_inFunction = false; _._async_evaluate0$_loadedUrls = t12; _._async_evaluate0$_activeModules = t13; _._async_evaluate0$_stack = t14; _._async_evaluate0$_importer = null; _._async_evaluate0$_inDependency = false; _._async_evaluate0$__extensionStore = _._async_evaluate0$_preModuleComments = _._async_evaluate0$_outOfOrderImports = _._async_evaluate0$__endOfImports = _._async_evaluate0$__root = _._async_evaluate0$__stylesheet = null; _._async_evaluate0$_configuration = t15; }, _EvaluateVisitor_closure38: function _EvaluateVisitor_closure38(t0) { this.$this = t0; }, _EvaluateVisitor_closure39: function _EvaluateVisitor_closure39(t0) { this.$this = t0; }, _EvaluateVisitor_closure40: function _EvaluateVisitor_closure40(t0) { this.$this = t0; }, _EvaluateVisitor_closure41: function _EvaluateVisitor_closure41(t0) { this.$this = t0; }, _EvaluateVisitor_closure42: function _EvaluateVisitor_closure42(t0) { this.$this = t0; }, _EvaluateVisitor_closure43: function _EvaluateVisitor_closure43(t0) { this.$this = t0; }, _EvaluateVisitor_closure44: function _EvaluateVisitor_closure44(t0) { this.$this = t0; }, _EvaluateVisitor_closure45: function _EvaluateVisitor_closure45(t0) { this.$this = t0; }, _EvaluateVisitor_closure46: function _EvaluateVisitor_closure46(t0) { this.$this = t0; }, _EvaluateVisitor__closure14: function _EvaluateVisitor__closure14(t0, t1, t2) { this.$this = t0; this.name = t1; this.module = t2; }, _EvaluateVisitor_closure47: function _EvaluateVisitor_closure47(t0) { this.$this = t0; }, _EvaluateVisitor__closure13: function _EvaluateVisitor__closure13(t0, t1, t2) { this.$this = t0; this.name = t1; this.module = t2; }, _EvaluateVisitor_closure48: function _EvaluateVisitor_closure48(t0) { this.$this = t0; }, _EvaluateVisitor_closure49: function _EvaluateVisitor_closure49(t0) { this.$this = t0; }, _EvaluateVisitor__closure11: function _EvaluateVisitor__closure11(t0, t1, t2) { this.values = t0; this.span = t1; this.callableNode = t2; }, _EvaluateVisitor__closure12: function _EvaluateVisitor__closure12(t0) { this.$this = t0; }, _EvaluateVisitor_closure50: function _EvaluateVisitor_closure50(t0) { this.$this = t0; }, _EvaluateVisitor_run_closure2: function _EvaluateVisitor_run_closure2(t0, t1, t2) { this.$this = t0; this.node = t1; this.importer = t2; }, _EvaluateVisitor_run__closure2: function _EvaluateVisitor_run__closure2(t0, t1, t2) { this.$this = t0; this.importer = t1; this.node = t2; }, _EvaluateVisitor__loadModule_closure5: function _EvaluateVisitor__loadModule_closure5(t0, t1) { this._box_1 = t0; this.callback = t1; }, _EvaluateVisitor__loadModule_closure6: function _EvaluateVisitor__loadModule_closure6(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.$this = t0; _.url = t1; _.nodeWithSpan = t2; _.baseUrl = t3; _.namesInErrors = t4; _.configuration = t5; _.callback = t6; }, _EvaluateVisitor__loadModule__closure5: function _EvaluateVisitor__loadModule__closure5(t0, t1) { this.$this = t0; this.message = t1; }, _EvaluateVisitor__loadModule__closure6: function _EvaluateVisitor__loadModule__closure6(t0, t1, t2) { this._box_0 = t0; this.callback = t1; this.firstLoad = t2; }, _EvaluateVisitor__execute_closure2: function _EvaluateVisitor__execute_closure2(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.$this = t0; _.importer = t1; _.stylesheet = t2; _.extensionStore = t3; _.configuration = t4; _.css = t5; _.preModuleComments = t6; }, _EvaluateVisitor__combineCss_closure5: function _EvaluateVisitor__combineCss_closure5() { }, _EvaluateVisitor__combineCss_closure6: function _EvaluateVisitor__combineCss_closure6(t0) { this.selectors = t0; }, _EvaluateVisitor__combineCss_visitModule2: function _EvaluateVisitor__combineCss_visitModule2(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.seen = t1; _.clone = t2; _.css = t3; _.imports = t4; _.sorted = t5; }, _EvaluateVisitor__extendModules_closure5: function _EvaluateVisitor__extendModules_closure5(t0) { this.originalSelectors = t0; }, _EvaluateVisitor__extendModules_closure6: function _EvaluateVisitor__extendModules_closure6() { }, _EvaluateVisitor_visitAtRootRule_closure5: function _EvaluateVisitor_visitAtRootRule_closure5(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitAtRootRule_closure6: function _EvaluateVisitor_visitAtRootRule_closure6(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__scopeForAtRoot_closure17: function _EvaluateVisitor__scopeForAtRoot_closure17(t0, t1, t2) { this.$this = t0; this.newParent = t1; this.node = t2; }, _EvaluateVisitor__scopeForAtRoot_closure18: function _EvaluateVisitor__scopeForAtRoot_closure18(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor__scopeForAtRoot_closure19: function _EvaluateVisitor__scopeForAtRoot_closure19(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor__scopeForAtRoot__closure2: function _EvaluateVisitor__scopeForAtRoot__closure2(t0, t1) { this.innerScope = t0; this.callback = t1; }, _EvaluateVisitor__scopeForAtRoot_closure20: function _EvaluateVisitor__scopeForAtRoot_closure20(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor__scopeForAtRoot_closure21: function _EvaluateVisitor__scopeForAtRoot_closure21() { }, _EvaluateVisitor__scopeForAtRoot_closure22: function _EvaluateVisitor__scopeForAtRoot_closure22(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor_visitContentRule_closure2: function _EvaluateVisitor_visitContentRule_closure2(t0, t1) { this.$this = t0; this.content = t1; }, _EvaluateVisitor_visitDeclaration_closure2: function _EvaluateVisitor_visitDeclaration_closure2(t0, t1) { this._box_0 = t0; this.$this = t1; }, _EvaluateVisitor_visitEachRule_closure8: function _EvaluateVisitor_visitEachRule_closure8(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.nodeWithSpan = t2; }, _EvaluateVisitor_visitEachRule_closure9: function _EvaluateVisitor_visitEachRule_closure9(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.nodeWithSpan = t2; }, _EvaluateVisitor_visitEachRule_closure10: function _EvaluateVisitor_visitEachRule_closure10(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.list = t1; _.setVariables = t2; _.node = t3; }, _EvaluateVisitor_visitEachRule__closure2: function _EvaluateVisitor_visitEachRule__closure2(t0, t1, t2) { this.$this = t0; this.setVariables = t1; this.node = t2; }, _EvaluateVisitor_visitEachRule___closure2: function _EvaluateVisitor_visitEachRule___closure2(t0) { this.$this = t0; }, _EvaluateVisitor_visitAtRule_closure8: function _EvaluateVisitor_visitAtRule_closure8(t0) { this.$this = t0; }, _EvaluateVisitor_visitAtRule_closure9: function _EvaluateVisitor_visitAtRule_closure9(t0, t1, t2) { this.$this = t0; this.name = t1; this.children = t2; }, _EvaluateVisitor_visitAtRule__closure2: function _EvaluateVisitor_visitAtRule__closure2(t0, t1) { this.$this = t0; this.children = t1; }, _EvaluateVisitor_visitAtRule_closure10: function _EvaluateVisitor_visitAtRule_closure10() { }, _EvaluateVisitor_visitForRule_closure14: function _EvaluateVisitor_visitForRule_closure14(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitForRule_closure15: function _EvaluateVisitor_visitForRule_closure15(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitForRule_closure16: function _EvaluateVisitor_visitForRule_closure16(t0) { this.fromNumber = t0; }, _EvaluateVisitor_visitForRule_closure17: function _EvaluateVisitor_visitForRule_closure17(t0, t1) { this.toNumber = t0; this.fromNumber = t1; }, _EvaluateVisitor_visitForRule_closure18: function _EvaluateVisitor_visitForRule_closure18(t0, t1, t2, t3, t4, t5) { var _ = this; _._box_0 = t0; _.$this = t1; _.node = t2; _.from = t3; _.direction = t4; _.fromNumber = t5; }, _EvaluateVisitor_visitForRule__closure2: function _EvaluateVisitor_visitForRule__closure2(t0) { this.$this = t0; }, _EvaluateVisitor_visitForwardRule_closure5: function _EvaluateVisitor_visitForwardRule_closure5(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitForwardRule_closure6: function _EvaluateVisitor_visitForwardRule_closure6(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__registerCommentsForModule_closure2: function _EvaluateVisitor__registerCommentsForModule_closure2() { }, _EvaluateVisitor_visitIfRule_closure2: function _EvaluateVisitor_visitIfRule_closure2(t0) { this.$this = t0; }, _EvaluateVisitor_visitIfRule__closure2: function _EvaluateVisitor_visitIfRule__closure2(t0, t1) { this.$this = t0; this.clause = t1; }, _EvaluateVisitor_visitIfRule___closure2: function _EvaluateVisitor_visitIfRule___closure2(t0) { this.$this = t0; }, _EvaluateVisitor__visitDynamicImport_closure2: function _EvaluateVisitor__visitDynamicImport_closure2(t0, t1) { this.$this = t0; this.$import = t1; }, _EvaluateVisitor__visitDynamicImport__closure11: function _EvaluateVisitor__visitDynamicImport__closure11(t0) { this.$this = t0; }, _EvaluateVisitor__visitDynamicImport__closure12: function _EvaluateVisitor__visitDynamicImport__closure12() { }, _EvaluateVisitor__visitDynamicImport__closure13: function _EvaluateVisitor__visitDynamicImport__closure13() { }, _EvaluateVisitor__visitDynamicImport__closure14: function _EvaluateVisitor__visitDynamicImport__closure14(t0, t1, t2, t3, t4) { var _ = this; _._box_0 = t0; _.$this = t1; _.loadsUserDefinedModules = t2; _.environment = t3; _.children = t4; }, _EvaluateVisitor__applyMixin_closure9: function _EvaluateVisitor__applyMixin_closure9(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.$arguments = t1; _.mixin = t2; _.nodeWithSpanWithoutContent = t3; }, _EvaluateVisitor__applyMixin__closure6: function _EvaluateVisitor__applyMixin__closure6(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.$arguments = t1; _.mixin = t2; _.nodeWithSpanWithoutContent = t3; }, _EvaluateVisitor__applyMixin_closure8: function _EvaluateVisitor__applyMixin_closure8(t0) { this._1_0 = t0; }, _EvaluateVisitor__applyMixin_closure10: function _EvaluateVisitor__applyMixin_closure10(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.contentCallable = t1; _.mixin = t2; _.nodeWithSpanWithoutContent = t3; }, _EvaluateVisitor__applyMixin__closure5: function _EvaluateVisitor__applyMixin__closure5(t0, t1, t2) { this.$this = t0; this.mixin = t1; this.nodeWithSpanWithoutContent = t2; }, _EvaluateVisitor__applyMixin___closure2: function _EvaluateVisitor__applyMixin___closure2(t0, t1, t2) { this.$this = t0; this.mixin = t1; this.nodeWithSpanWithoutContent = t2; }, _EvaluateVisitor__applyMixin____closure2: function _EvaluateVisitor__applyMixin____closure2(t0, t1) { this.$this = t0; this.statement = t1; }, _EvaluateVisitor_visitIncludeRule_closure8: function _EvaluateVisitor_visitIncludeRule_closure8(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitIncludeRule_closure9: function _EvaluateVisitor_visitIncludeRule_closure9(t0) { this.$this = t0; }, _EvaluateVisitor_visitIncludeRule_closure10: function _EvaluateVisitor_visitIncludeRule_closure10(t0) { this.node = t0; }, _EvaluateVisitor_visitMediaRule_closure8: function _EvaluateVisitor_visitMediaRule_closure8(t0, t1) { this.$this = t0; this.queries = t1; }, _EvaluateVisitor_visitMediaRule_closure9: function _EvaluateVisitor_visitMediaRule_closure9(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.mergedQueries = t1; _.queries = t2; _.mergedSources = t3; _.node = t4; }, _EvaluateVisitor_visitMediaRule__closure2: function _EvaluateVisitor_visitMediaRule__closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitMediaRule___closure2: function _EvaluateVisitor_visitMediaRule___closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitMediaRule_closure10: function _EvaluateVisitor_visitMediaRule_closure10(t0) { this.mergedSources = t0; }, _EvaluateVisitor_visitStyleRule_closure14: function _EvaluateVisitor_visitStyleRule_closure14(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitStyleRule_closure15: function _EvaluateVisitor_visitStyleRule_closure15() { }, _EvaluateVisitor_visitStyleRule_closure16: function _EvaluateVisitor_visitStyleRule_closure16(t0, t1, t2) { this.$this = t0; this.rule = t1; this.node = t2; }, _EvaluateVisitor_visitStyleRule__closure2: function _EvaluateVisitor_visitStyleRule__closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitStyleRule_closure17: function _EvaluateVisitor_visitStyleRule_closure17() { }, _EvaluateVisitor_visitStyleRule_closure18: function _EvaluateVisitor_visitStyleRule_closure18() { }, _EvaluateVisitor_visitSupportsRule_closure5: function _EvaluateVisitor_visitSupportsRule_closure5(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitSupportsRule__closure2: function _EvaluateVisitor_visitSupportsRule__closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitSupportsRule_closure6: function _EvaluateVisitor_visitSupportsRule_closure6() { }, _EvaluateVisitor__visitSupportsCondition_closure2: function _EvaluateVisitor__visitSupportsCondition_closure2(t0, t1) { this._box_0 = t0; this.$this = t1; }, _EvaluateVisitor_visitVariableDeclaration_closure8: function _EvaluateVisitor_visitVariableDeclaration_closure8(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.node = t2; }, _EvaluateVisitor_visitVariableDeclaration_closure9: function _EvaluateVisitor_visitVariableDeclaration_closure9(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitVariableDeclaration_closure10: function _EvaluateVisitor_visitVariableDeclaration_closure10(t0, t1, t2) { this.$this = t0; this.node = t1; this.value = t2; }, _EvaluateVisitor_visitUseRule_closure2: function _EvaluateVisitor_visitUseRule_closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitWarnRule_closure2: function _EvaluateVisitor_visitWarnRule_closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitWhileRule_closure2: function _EvaluateVisitor_visitWhileRule_closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitWhileRule__closure2: function _EvaluateVisitor_visitWhileRule__closure2(t0) { this.$this = t0; }, _EvaluateVisitor_visitBinaryOperationExpression_closure2: function _EvaluateVisitor_visitBinaryOperationExpression_closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__slash_closure5: function _EvaluateVisitor__slash_closure5(t0) { this._1_0 = t0; }, _EvaluateVisitor__slash_closure6: function _EvaluateVisitor__slash_closure6(t0) { this._1_0 = t0; }, _EvaluateVisitor__slash_recommendation2: function _EvaluateVisitor__slash_recommendation2() { }, _EvaluateVisitor_visitVariableExpression_closure2: function _EvaluateVisitor_visitVariableExpression_closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitUnaryOperationExpression_closure2: function _EvaluateVisitor_visitUnaryOperationExpression_closure2(t0, t1) { this.node = t0; this.operand = t1; }, _EvaluateVisitor_visitListExpression_closure2: function _EvaluateVisitor_visitListExpression_closure2(t0) { this.$this = t0; }, _EvaluateVisitor_visitFunctionExpression_closure8: function _EvaluateVisitor_visitFunctionExpression_closure8(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitFunctionExpression_closure9: function _EvaluateVisitor_visitFunctionExpression_closure9() { }, _EvaluateVisitor_visitFunctionExpression_closure10: function _EvaluateVisitor_visitFunctionExpression_closure10(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.node = t2; }, _EvaluateVisitor__checkCalculationArguments_check2: function _EvaluateVisitor__checkCalculationArguments_check2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__visitCalculationExpression_closure2: function _EvaluateVisitor__visitCalculationExpression_closure2(t0, t1, t2, t3) { var _ = this; _._box_0 = t0; _.$this = t1; _.node = t2; _.inLegacySassFunction = t3; }, _EvaluateVisitor__checkAdjacentCalculationValues_closure2: function _EvaluateVisitor__checkAdjacentCalculationValues_closure2(t0) { this._0_0 = t0; }, _EvaluateVisitor_visitInterpolatedFunctionExpression_closure2: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure2(t0, t1, t2) { this.$this = t0; this.node = t1; this.$function = t2; }, _EvaluateVisitor__runUserDefinedCallable_closure2: function _EvaluateVisitor__runUserDefinedCallable_closure2(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.callable = t1; _.evaluated = t2; _.nodeWithSpan = t3; _.run = t4; _.V = t5; }, _EvaluateVisitor__runUserDefinedCallable__closure2: function _EvaluateVisitor__runUserDefinedCallable__closure2(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.evaluated = t1; _.callable = t2; _.nodeWithSpan = t3; _.run = t4; _.V = t5; }, _EvaluateVisitor__runUserDefinedCallable___closure2: function _EvaluateVisitor__runUserDefinedCallable___closure2(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.evaluated = t1; _.callable = t2; _.nodeWithSpan = t3; _.run = t4; _.V = t5; }, _EvaluateVisitor__runUserDefinedCallable____closure2: function _EvaluateVisitor__runUserDefinedCallable____closure2() { }, _EvaluateVisitor__runFunctionCallable_closure2: function _EvaluateVisitor__runFunctionCallable_closure2(t0, t1) { this.$this = t0; this.callable = t1; }, _EvaluateVisitor__runBuiltInCallable_closure8: function _EvaluateVisitor__runBuiltInCallable_closure8(t0, t1, t2) { this._box_0 = t0; this.evaluated = t1; this.namedSet = t2; }, _EvaluateVisitor__runBuiltInCallable_closure9: function _EvaluateVisitor__runBuiltInCallable_closure9(t0, t1) { this._box_0 = t0; this.evaluated = t1; }, _EvaluateVisitor__runBuiltInCallable_closure10: function _EvaluateVisitor__runBuiltInCallable_closure10() { }, _EvaluateVisitor__evaluateArguments_closure11: function _EvaluateVisitor__evaluateArguments_closure11() { }, _EvaluateVisitor__evaluateArguments_closure12: function _EvaluateVisitor__evaluateArguments_closure12(t0, t1) { this.$this = t0; this.restNodeForSpan = t1; }, _EvaluateVisitor__evaluateArguments_closure13: function _EvaluateVisitor__evaluateArguments_closure13(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.named = t1; _.restNodeForSpan = t2; _.namedNodes = t3; }, _EvaluateVisitor__evaluateArguments_closure14: function _EvaluateVisitor__evaluateArguments_closure14() { }, _EvaluateVisitor__evaluateMacroArguments_closure11: function _EvaluateVisitor__evaluateMacroArguments_closure11(t0) { this.restArgs = t0; }, _EvaluateVisitor__evaluateMacroArguments_closure12: function _EvaluateVisitor__evaluateMacroArguments_closure12(t0, t1, t2) { this.$this = t0; this.restNodeForSpan = t1; this.restArgs = t2; }, _EvaluateVisitor__evaluateMacroArguments_closure13: function _EvaluateVisitor__evaluateMacroArguments_closure13(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.named = t1; _.restNodeForSpan = t2; _.restArgs = t3; }, _EvaluateVisitor__evaluateMacroArguments_closure14: function _EvaluateVisitor__evaluateMacroArguments_closure14(t0, t1, t2) { this.$this = t0; this.keywordRestNodeForSpan = t1; this.keywordRestArgs = t2; }, _EvaluateVisitor__addRestMap_closure2: function _EvaluateVisitor__addRestMap_closure2(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.values = t1; _.convert = t2; _.expressionNode = t3; _.map = t4; _.nodeWithSpan = t5; }, _EvaluateVisitor__verifyArguments_closure2: function _EvaluateVisitor__verifyArguments_closure2(t0, t1, t2) { this.$arguments = t0; this.positional = t1; this.named = t2; }, _EvaluateVisitor_visitCssAtRule_closure5: function _EvaluateVisitor_visitCssAtRule_closure5(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssAtRule_closure6: function _EvaluateVisitor_visitCssAtRule_closure6() { }, _EvaluateVisitor_visitCssKeyframeBlock_closure5: function _EvaluateVisitor_visitCssKeyframeBlock_closure5(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssKeyframeBlock_closure6: function _EvaluateVisitor_visitCssKeyframeBlock_closure6() { }, _EvaluateVisitor_visitCssMediaRule_closure8: function _EvaluateVisitor_visitCssMediaRule_closure8(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssMediaRule_closure9: function _EvaluateVisitor_visitCssMediaRule_closure9(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.mergedQueries = t1; _.node = t2; _.mergedSources = t3; }, _EvaluateVisitor_visitCssMediaRule__closure2: function _EvaluateVisitor_visitCssMediaRule__closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssMediaRule___closure2: function _EvaluateVisitor_visitCssMediaRule___closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssMediaRule_closure10: function _EvaluateVisitor_visitCssMediaRule_closure10(t0) { this.mergedSources = t0; }, _EvaluateVisitor_visitCssStyleRule_closure8: function _EvaluateVisitor_visitCssStyleRule_closure8(t0, t1, t2) { this.$this = t0; this.rule = t1; this.node = t2; }, _EvaluateVisitor_visitCssStyleRule__closure2: function _EvaluateVisitor_visitCssStyleRule__closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssStyleRule_closure9: function _EvaluateVisitor_visitCssStyleRule_closure9() { }, _EvaluateVisitor_visitCssStyleRule_closure10: function _EvaluateVisitor_visitCssStyleRule_closure10(t0) { this._0_0 = t0; }, _EvaluateVisitor_visitCssSupportsRule_closure5: function _EvaluateVisitor_visitCssSupportsRule_closure5(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssSupportsRule__closure2: function _EvaluateVisitor_visitCssSupportsRule__closure2(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssSupportsRule_closure6: function _EvaluateVisitor_visitCssSupportsRule_closure6() { }, _EvaluateVisitor__performInterpolationHelper_closure2: function _EvaluateVisitor__performInterpolationHelper_closure2(t0) { this.interpolation = t0; }, _EvaluateVisitor__serialize_closure2: function _EvaluateVisitor__serialize_closure2(t0, t1) { this.value = t0; this.quote = t1; }, _EvaluateVisitor__expressionNode_closure2: function _EvaluateVisitor__expressionNode_closure2(t0, t1) { this.$this = t0; this.expression = t1; }, _EvaluateVisitor__withoutSlash_recommendation2: function _EvaluateVisitor__withoutSlash_recommendation2() { }, _EvaluateVisitor__stackFrame_closure2: function _EvaluateVisitor__stackFrame_closure2(t0) { this.$this = t0; }, _ImportedCssVisitor2: function _ImportedCssVisitor2(t0) { this._async_evaluate0$_visitor = t0; }, _ImportedCssVisitor_visitCssAtRule_closure2: function _ImportedCssVisitor_visitCssAtRule_closure2() { }, _ImportedCssVisitor_visitCssMediaRule_closure2: function _ImportedCssVisitor_visitCssMediaRule_closure2(t0) { this.hasBeenMerged = t0; }, _ImportedCssVisitor_visitCssStyleRule_closure2: function _ImportedCssVisitor_visitCssStyleRule_closure2() { }, _ImportedCssVisitor_visitCssSupportsRule_closure2: function _ImportedCssVisitor_visitCssSupportsRule_closure2() { }, _EvaluationContext2: function _EvaluationContext2(t0, t1) { this._async_evaluate0$_visitor = t0; this._async_evaluate0$_defaultWarnNodeWithSpan = t1; }, JSToDartAsyncFileImporter: function JSToDartAsyncFileImporter(t0) { this._findFileUrl = t0; }, JSToDartAsyncFileImporter_canonicalize_closure: function JSToDartAsyncFileImporter_canonicalize_closure(t0, t1) { this.$this = t0; this.url = t1; }, AsyncImportCache$(importers, loadPaths, logger, packageConfig) { var t1 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2, t2 = type$.Uri, t3 = A.AsyncImportCache__toImporters0(importers, loadPaths, packageConfig); return new A.AsyncImportCache0(t3, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_4_Uri_and_AsyncImporter_baseImporter_and_nullable_Uri_baseUrl_and_bool_forImport_2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.ImporterResult_2)); }, AsyncImportCache$none(logger) { var t1 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2, t2 = type$.Uri; return new A.AsyncImportCache0(B.List_empty25, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_4_Uri_and_AsyncImporter_baseImporter_and_nullable_Uri_baseUrl_and_bool_forImport_2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.ImporterResult_2)); }, AsyncImportCache__toImporters0(importers, loadPaths, packageConfig) { var t1, t2, t3, t4, _i, path, _null = null, sassPath = A.getEnvironmentVariable0("SASS_PATH"); if (A.isBrowser()) { t1 = A._setArrayType([], type$.JSArray_AsyncImporter); if (importers != null) B.JSArray_methods.addAll$1(t1, importers); return t1; } t1 = A._setArrayType([], type$.JSArray_AsyncImporter); if (importers != null) B.JSArray_methods.addAll$1(t1, importers); if (loadPaths != null) for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) { t3 = t2.get$current(t2); t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null))); } if (sassPath != null) { t2 = A.isNodeJs() ? self.process : _null; t3 = sassPath.split(J.$eq$(t2 == null ? _null : J.get$platform$x(t2), "win32") ? ";" : ":"); t4 = t3.length; _i = 0; for (; _i < t4; ++_i) { path = t3[_i]; t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null))); } } return t1; }, AsyncImportCache0: function AsyncImportCache0(t0, t1, t2, t3, t4, t5) { var _ = this; _._async_import_cache0$_importers = t0; _._async_import_cache0$_logger = t1; _._async_import_cache0$_canonicalizeCache = t2; _._async_import_cache0$_relativeCanonicalizeCache = t3; _._async_import_cache0$_importCache = t4; _._async_import_cache0$_resultsCache = t5; }, AsyncImportCache_canonicalize_closure1: function AsyncImportCache_canonicalize_closure1(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.baseImporter = t1; _.baseUrl = t2; _.url = t3; _.forImport = t4; }, AsyncImportCache_canonicalize_closure2: function AsyncImportCache_canonicalize_closure2(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.url = t1; _.baseUrl = t2; _.forImport = t3; }, AsyncImportCache__canonicalize_closure1: function AsyncImportCache__canonicalize_closure1(t0, t1) { this.importer = t0; this.resolved = t1; }, AsyncImportCache__canonicalize__closure0: function AsyncImportCache__canonicalize__closure0(t0, t1) { this.importer = t0; this.resolved = t1; }, AsyncImportCache__canonicalize_closure2: function AsyncImportCache__canonicalize_closure2(t0, t1) { this.importer = t0; this.resolved = t1; }, AsyncImportCache_importCanonical_closure0: function AsyncImportCache_importCanonical_closure0(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.importer = t1; _.canonicalUrl = t2; _.originalUrl = t3; _.quiet = t4; }, AsyncImportCache_humanize_closure3: function AsyncImportCache_humanize_closure3(t0) { this.canonicalUrl = t0; }, AsyncImportCache_humanize_closure4: function AsyncImportCache_humanize_closure4() { }, AsyncImportCache_humanize_closure5: function AsyncImportCache_humanize_closure5() { }, AsyncImportCache_humanize_closure6: function AsyncImportCache_humanize_closure6(t0) { this.canonicalUrl = t0; }, AtRootQueryParser$0(contents, logger, url) { var t1 = A.SpanScanner$(contents, url); return new A.AtRootQueryParser0(t1, logger, null); }, AtRootQueryParser0: function AtRootQueryParser0(t0, t1, t2) { this.scanner = t0; this.logger = t1; this._parser0$_interpolationMap = t2; }, AtRootQueryParser_parse_closure0: function AtRootQueryParser_parse_closure0(t0) { this.$this = t0; }, AtRootQuery0: function AtRootQuery0(t0, t1, t2, t3) { var _ = this; _.include = t0; _.names = t1; _._at_root_query0$_all = t2; _._at_root_query0$_rule = t3; }, AtRootRule$0(children, span, query) { var t1 = A.List_List$unmodifiable(children, type$.Statement_2), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0()); return new A.AtRootRule0(query, span, t1, t2); }, AtRootRule0: function AtRootRule0(t0, t1, t2, t3) { var _ = this; _.query = t0; _.span = t1; _.children = t2; _.hasDeclarations = t3; }, ModifiableCssAtRule$0($name, span, childless, value) { var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2); return new A.ModifiableCssAtRule0($name, value, childless, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1); }, ModifiableCssAtRule0: function ModifiableCssAtRule0(t0, t1, t2, t3, t4, t5) { var _ = this; _.name = t0; _.value = t1; _.isChildless = t2; _.span = t3; _.children = t4; _._node$_children = t5; _._node$_indexInParent = _._node$_parent = null; _.isGroupEnd = false; }, AtRule$0($name, span, children, value) { var t1 = children == null ? null : A.List_List$unmodifiable(children, type$.Statement_2), t2 = t1 == null ? null : B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0()); return new A.AtRule0($name, value, span, t1, t2 === true); }, AtRule0: function AtRule0(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.value = t1; _.span = t2; _.children = t3; _.hasDeclarations = t4; }, AttributeSelector0: function AttributeSelector0(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.op = t1; _.value = t2; _.modifier = t3; _.span = t4; }, AttributeOperator0: function AttributeOperator0(t0, t1) { this._attribute0$_text = t0; this._name = t1; }, BinaryOperationExpression0: function BinaryOperationExpression0(t0, t1, t2, t3) { var _ = this; _.operator = t0; _.left = t1; _.right = t2; _.allowsSlash = t3; }, BinaryOperator0: function BinaryOperator0(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.operator = t1; _.precedence = t2; _.isAssociative = t3; _._name = t4; }, BooleanExpression0: function BooleanExpression0(t0, t1) { this.value = t0; this.span = t1; }, booleanClass_closure: function booleanClass_closure() { }, booleanClass__closure: function booleanClass__closure() { }, legacyBooleanClass_closure: function legacyBooleanClass_closure() { }, legacyBooleanClass__closure: function legacyBooleanClass__closure() { }, legacyBooleanClass__closure0: function legacyBooleanClass__closure0() { }, SassBoolean0: function SassBoolean0(t0) { this.value = t0; }, Box0: function Box0(t0, t1) { this._box0$_inner = t0; this.$ti = t1; }, ModifiableBox0: function ModifiableBox0(t0, t1) { this.value = t0; this.$ti = t1; }, BuiltInCallable$function0($name, $arguments, callback, url) { return new A.BuiltInCallable0($name, A._setArrayType([new A._Record_2(A.ScssParser$0("@function " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), callback)], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2), false); }, BuiltInCallable$mixin0($name, $arguments, callback, acceptsContent, url) { return new A.BuiltInCallable0($name, A._setArrayType([new A._Record_2(A.ScssParser$0("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new A.BuiltInCallable$mixin_closure0(callback))], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2), acceptsContent); }, BuiltInCallable$overloadedFunction0($name, overloads) { var t2, t3, t4, t5, t6, args, callback, t1 = A._setArrayType([], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2); 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; t3.moveNext$0();) { t6 = t3.get$current(t3); args = t6._0; callback = t6._1; t6 = A.SpanScanner$(t4 + args + ") {", null); t1.push(new A._Record_2(new A.ScssParser0(A.LinkedHashMap_LinkedHashMap$_empty(t2, t5), t6, B.StderrLogger_false0, null).parseArgumentDeclaration$0(), callback)); } return new A.BuiltInCallable0($name, t1, false); }, BuiltInCallable0: function BuiltInCallable0(t0, t1, t2) { this.name = t0; this._built_in$_overloads = t1; this.acceptsContent = t2; }, BuiltInCallable$mixin_closure0: function BuiltInCallable$mixin_closure0(t0) { this.callback = t0; }, BuiltInModule$0($name, functions, mixins, variables, $T) { var t1 = A._Uri__Uri(null, $name, null, "sass"), t2 = A.BuiltInModule__callableMap0(functions, $T), t3 = A.BuiltInModule__callableMap0(mixins, $T), t4 = variables == null ? B.Map_empty13 : new A.UnmodifiableMapView(variables, type$.UnmodifiableMapView_String_Value_2); return new A.BuiltInModule0(t1, t2, t3, t4, $T._eval$1("BuiltInModule0<0>")); }, BuiltInModule__callableMap0(callables, $T) { var t2, _i, callable, t1 = type$.String; if (callables == null) t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T); else { t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T); for (t2 = callables.length, _i = 0; _i < callables.length; callables.length === t2 || (0, A.throwConcurrentModificationError)(callables), ++_i) { callable = callables[_i]; t1.$indexSet(0, J.get$name$x(callable), callable); } t1 = new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>")); } return new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>")); }, BuiltInModule0: function BuiltInModule0(t0, t1, t2, t3, t4) { var _ = this; _.url = t0; _.functions = t1; _.mixins = t2; _.variables = t3; _.$ti = t4; }, _assertCalculationValue(arg) { var t1; $label0$0: { if (!(arg instanceof A.SassNumber0)) t1 = arg instanceof A.SassString0 && !arg._string0$_hasQuotes || arg instanceof A.SassCalculation0 || arg instanceof A.CalculationOperation0 || arg instanceof A.CalculationInterpolation; else t1 = true; if (t1) { t1 = null; break $label0$0; } t1 = A.jsThrow0(new self.Error("Argument `" + A.S(arg) + "` must be one of SassNumber, unquoted SassString, SassCalculation, CalculationOperation, CalculationInterpolation")); } return t1; }, _isValidClampArg(arg) { var t1; $label0$0: { if (!(arg instanceof A.CalculationInterpolation)) t1 = arg instanceof A.SassString0 && !arg._string0$_hasQuotes; else t1 = true; if (t1) { t1 = true; break $label0$0; } t1 = false; break $label0$0; } return t1; }, calculationClass_closure: function calculationClass_closure() { }, calculationClass__closure: function calculationClass__closure() { }, calculationClass__closure0: function calculationClass__closure0() { }, calculationClass__closure1: function calculationClass__closure1() { }, calculationClass__closure2: function calculationClass__closure2() { }, calculationClass__closure3: function calculationClass__closure3() { }, calculationClass__closure4: function calculationClass__closure4() { }, calculationClass__closure5: function calculationClass__closure5() { }, calculationOperationClass_closure: function calculationOperationClass_closure() { }, calculationOperationClass__closure: function calculationOperationClass__closure() { }, calculationOperationClass___closure: function calculationOperationClass___closure(t0) { this.strOperator = t0; }, calculationOperationClass__closure0: function calculationOperationClass__closure0() { }, calculationOperationClass__closure1: function calculationOperationClass__closure1() { }, calculationOperationClass__closure2: function calculationOperationClass__closure2() { }, calculationOperationClass__closure3: function calculationOperationClass__closure3() { }, calculationOperationClass__closure4: function calculationOperationClass__closure4() { }, calculationInterpolationClass_closure: function calculationInterpolationClass_closure() { }, calculationInterpolationClass__closure: function calculationInterpolationClass__closure() { }, calculationInterpolationClass__closure0: function calculationInterpolationClass__closure0() { }, calculationInterpolationClass__closure1: function calculationInterpolationClass__closure1() { }, calculationInterpolationClass__closure2: function calculationInterpolationClass__closure2() { }, SassCalculation_calc0(argument) { var value, t1, _0_0 = A.SassCalculation__simplify0(argument); $label0$0: { if (_0_0 instanceof A.SassNumber0) { value = _0_0; t1 = true; } else { value = null; t1 = false; } if (t1) { t1 = value; break $label0$0; } if (_0_0 instanceof A.SassCalculation0) { value = _0_0; t1 = true; } else { value = null; t1 = false; } if (t1) { t1 = value; break $label0$0; } t1 = new A.SassCalculation0("calc", A.List_List$unmodifiable([_0_0], type$.Object)); break $label0$0; } return t1; }, SassCalculation_min0($arguments) { var minimum, _i, arg, t2, args = A.List_List$unmodifiable(J.map$1$1$ax($arguments, A.calculation0_SassCalculation__simplify$closure(), type$.dynamic), type$.Object), t1 = args.length; if (t1 === 0) throw A.wrapException(A.ArgumentError$("min() must have at least one argument.", null)); for (minimum = null, _i = 0; _i < t1; ++_i) { arg = args[_i]; if (arg instanceof A.SassNumber0) t2 = minimum != null && !minimum.isComparableTo$1(arg); else t2 = true; if (t2) { minimum = null; break; } else if (minimum == null || minimum.greaterThan$1(arg).value) minimum = arg; } if (minimum != null) return minimum; A.SassCalculation__verifyCompatibleNumbers0(args); return new A.SassCalculation0("min", args); }, SassCalculation_max0($arguments) { var maximum, _i, arg, t2, args = A.List_List$unmodifiable(J.map$1$1$ax($arguments, A.calculation0_SassCalculation__simplify$closure(), type$.dynamic), type$.Object), t1 = args.length; if (t1 === 0) throw A.wrapException(A.ArgumentError$("max() must have at least one argument.", null)); for (maximum = null, _i = 0; _i < t1; ++_i) { arg = args[_i]; if (arg instanceof A.SassNumber0) t2 = maximum != null && !maximum.isComparableTo$1(arg); else t2 = true; if (t2) { maximum = null; break; } else if (maximum == null || maximum.lessThan$1(arg).value) maximum = arg; } if (maximum != null) return maximum; A.SassCalculation__verifyCompatibleNumbers0(args); return new A.SassCalculation0("max", args); }, SassCalculation_hypot0($arguments) { var first, subtotal, i, number, value, t2, t3, args = A.List_List$unmodifiable(B.JSArray_methods.map$1$1($arguments, A.calculation0_SassCalculation__simplify$closure(), type$.dynamic), type$.Object), t1 = args.length; if (t1 === 0) throw A.wrapException(A.ArgumentError$("hypot() must have at least one argument.", null)); A.SassCalculation__verifyCompatibleNumbers0(args); first = B.JSArray_methods.get$first(args); if (!(first instanceof A.SassNumber0) || first.hasUnit$1("%")) return new A.SassCalculation0("hypot", args); for (subtotal = 0, i = 0; i < t1;) { number = args[i]; if (!(number instanceof A.SassNumber0) || !number.hasCompatibleUnits$1(first)) return new A.SassCalculation0("hypot", args); ++i; value = number.convertValueToMatch$3(first, "numbers[" + i + "]", "numbers[1]"); subtotal += value * value; } t1 = Math.sqrt(subtotal); t2 = J.getInterceptor$x(first); t3 = t2.get$numeratorUnits(first); return A.SassNumber_SassNumber$withUnits0(t1, t2.get$denominatorUnits(first), t3); }, SassCalculation_abs0(argument) { var t1, t2; argument = A.SassCalculation__simplify0(argument); if (!(argument instanceof A.SassNumber0)) return new A.SassCalculation0("abs", A._setArrayType([argument], type$.JSArray_Object)); if (argument.hasUnit$1("%")) { t1 = argument.toString$0(0); t2 = argument.toString$0(0); A.EvaluationContext_current0().warn$2(0, string$.Passinp + t1 + ")\nTo emit a CSS abs() now: abs(#{" + t2 + string$.x7d__Mor, B.Deprecation_la6); } return A.SassNumber_SassNumber0(Math.abs(argument._number1$_value), null).coerceToMatch$1(argument); }, SassCalculation_exp0(argument) { argument = A.SassCalculation__simplify0(argument); if (!(argument instanceof A.SassNumber0)) return new A.SassCalculation0("exp", A._setArrayType([argument], type$.JSArray_Object)); argument.assertNoUnits$0(); return A.pow1(A.SassNumber_SassNumber0(2.718281828459045, null), argument); }, SassCalculation_sign0(argument) { var _0_2, t1, t2, arg; argument = A.SassCalculation__simplify0(argument); _0_2 = A._InitializedCell$(new A.SassCalculation_sign_closure0(argument)); $label0$0: { t1 = argument instanceof A.SassNumber0; if (t1) t2 = isNaN(_0_2._readFinal$0()) || 0 === _0_2._readFinal$0(); else t2 = false; if (t2) { t1 = argument; break $label0$0; } if (t1) { t1 = !argument.hasUnit$1("%"); arg = argument; } else { arg = null; t1 = false; } if (t1) { t1 = A.SassNumber_SassNumber0(J.get$sign$in(arg._number1$_value), null).coerceToMatch$1(argument); break $label0$0; } t1 = new A.SassCalculation0("sign", A._setArrayType([argument], type$.JSArray_Object)); break $label0$0; } return t1; }, SassCalculation_clamp0(min, value, max) { var t1, args; if (value == null && max != null) throw A.wrapException(A.ArgumentError$("If value is null, max must also be null.", null)); min = A.SassCalculation__simplify0(min); value = A.NullableExtension_andThen0(value, A.calculation0_SassCalculation__simplify$closure()); max = A.NullableExtension_andThen0(max, A.calculation0_SassCalculation__simplify$closure()); if (min instanceof A.SassNumber0 && value instanceof A.SassNumber0 && max instanceof A.SassNumber0 && min.hasCompatibleUnits$1(value) && min.hasCompatibleUnits$1(max)) { if (value.lessThanOrEquals$1(min).value) return min; if (value.greaterThanOrEquals$1(max).value) return max; return value; } t1 = [min]; if (value != null) t1.push(value); if (max != null) t1.push(max); args = A.List_List$unmodifiable(t1, type$.Object); A.SassCalculation__verifyCompatibleNumbers0(args); A.SassCalculation__verifyLength0(args, 3); return new A.SassCalculation0("clamp", args); }, SassCalculation_pow0(base, exponent) { var t1 = A._setArrayType([base], type$.JSArray_Object); if (exponent != null) t1.push(exponent); A.SassCalculation__verifyLength0(t1, 2); base = A.SassCalculation__simplify0(base); exponent = A.NullableExtension_andThen0(exponent, A.calculation0_SassCalculation__simplify$closure()); if (!(base instanceof A.SassNumber0) || !(exponent instanceof A.SassNumber0)) return new A.SassCalculation0("pow", t1); base.assertNoUnits$0(); exponent.assertNoUnits$0(); return A.pow1(base, exponent); }, SassCalculation_log0(number, base) { var t1, t2; number = A.SassCalculation__simplify0(number); base = A.NullableExtension_andThen0(base, A.calculation0_SassCalculation__simplify$closure()); t1 = A._setArrayType([number], type$.JSArray_Object); t2 = base != null; if (t2) t1.push(base); if (number instanceof A.SassNumber0) t2 = t2 && !(base instanceof A.SassNumber0); else t2 = true; if (t2) return new A.SassCalculation0("log", t1); number.assertNoUnits$0(); if (base instanceof A.SassNumber0) { base.assertNoUnits$0(); return A.log0(number, base); } return A.log0(number, null); }, SassCalculation_atan20(y, x) { var t1; y = A.SassCalculation__simplify0(y); x = A.NullableExtension_andThen0(x, A.calculation0_SassCalculation__simplify$closure()); t1 = A._setArrayType([y], type$.JSArray_Object); if (x != null) t1.push(x); A.SassCalculation__verifyLength0(t1, 2); A.SassCalculation__verifyCompatibleNumbers0(t1); if (!(y instanceof A.SassNumber0) || !(x instanceof A.SassNumber0) || y.hasUnit$1("%") || x.hasUnit$1("%") || !y.hasCompatibleUnits$1(x)) return new A.SassCalculation0("atan2", t1); 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)); }, SassCalculation_rem0(dividend, modulus) { var t1, result; dividend = A.SassCalculation__simplify0(dividend); modulus = A.NullableExtension_andThen0(modulus, A.calculation0_SassCalculation__simplify$closure()); t1 = A._setArrayType([dividend], type$.JSArray_Object); if (modulus != null) t1.push(modulus); A.SassCalculation__verifyLength0(t1, 2); A.SassCalculation__verifyCompatibleNumbers0(t1); if (!(dividend instanceof A.SassNumber0) || !(modulus instanceof A.SassNumber0) || !dividend.hasCompatibleUnits$1(modulus)) return new A.SassCalculation0("rem", t1); result = dividend.modulo$1(modulus); t1 = modulus._number1$_value; if (A.DoubleWithSignedZero_get_signIncludingZero0(t1) !== A.DoubleWithSignedZero_get_signIncludingZero0(dividend._number1$_value)) { if (t1 == 1 / 0 || t1 == -1 / 0) return dividend; if (result._number1$_value === 0) return result.unaryMinus$0(); return result.minus$1(modulus); } return result; }, SassCalculation_mod0(dividend, modulus) { var t1; dividend = A.SassCalculation__simplify0(dividend); modulus = A.NullableExtension_andThen0(modulus, A.calculation0_SassCalculation__simplify$closure()); t1 = A._setArrayType([dividend], type$.JSArray_Object); if (modulus != null) t1.push(modulus); A.SassCalculation__verifyLength0(t1, 2); A.SassCalculation__verifyCompatibleNumbers0(t1); if (!(dividend instanceof A.SassNumber0) || !(modulus instanceof A.SassNumber0) || !dividend.hasCompatibleUnits$1(modulus)) return new A.SassCalculation0("mod", t1); return dividend.modulo$1(modulus); }, SassCalculation_round0(strategyOrNumber, numberOrStep, step) { var number, t1, t2, strategy, rest, _null = null, _s5_ = "round", _0_0 = new A._Record_3(A.SassCalculation__simplify0(strategyOrNumber), A.NullableExtension_andThen0(numberOrStep, A.calculation0_SassCalculation__simplify$closure()), A.NullableExtension_andThen0(step, A.calculation0_SassCalculation__simplify$closure())), _0_1 = A._InitializedCell$(new A.SassCalculation_round_closure9(_0_0)), _0_2 = A._InitializedCell$(new A.SassCalculation_round_closure10(_0_0)), _0_4 = A._InitializedCell$(new A.SassCalculation_round_closure11(_0_2)), _0_5 = A._InitializedCell$(new A.SassCalculation_round_closure12(_0_0)), _0_6 = A._InitializedCell$(new A.SassCalculation_round_closure13(_0_5)), _0_8 = A._InitializedCell$(new A.SassCalculation_round_closure14(_0_1)), _0_10 = A._InitializedCell$(new A.SassCalculation_round_closure15(_0_8)), _0_12 = A._InitializedCell$(new A.SassCalculation_round_closure16(_0_8)), _0_14 = A._InitializedCell$(new A.SassCalculation_round_closure17(_0_8)), _0_16 = A._InitializedCell$(new A.SassCalculation_round_closure18(_0_8)); if (_0_1._readFinal$0() instanceof A.SassNumber0) { number = _0_1._readFinal$0(); t1 = _0_4._readFinal$0() && _0_6._readFinal$0(); } else { number = _null; t1 = false; } if (t1) { t1 = B.JSNumber_methods.round$0(number._number1$_value); t2 = number.get$numeratorUnits(number); return A.SassNumber_SassNumber$withUnits0(t1, number.get$denominatorUnits(number), t2); } if (_0_1._readFinal$0() instanceof A.SassNumber0) { number = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.SassNumber0) { step = _0_2._readFinal$0(); t1 = _0_6._readFinal$0() && !number.hasCompatibleUnits$1(step); } else { step = _null; t1 = false; } } else { step = _null; number = step; t1 = false; } if (t1) { t1 = type$.JSArray_Object; A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([number, step], t1)); return new A.SassCalculation0(_s5_, A._setArrayType([number, step], t1)); } if (_0_1._readFinal$0() instanceof A.SassNumber0) { number = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.SassNumber0) { step = _0_2._readFinal$0(); t1 = _0_6._readFinal$0(); t1 = t1; } else { step = _null; t1 = false; } } else { step = _null; number = step; t1 = false; } if (t1) { A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([number, step], type$.JSArray_Object)); return A.SassCalculation__roundWithStep0("nearest", number, step); } if (_0_1._readFinal$0() instanceof A.SassString0) if (_0_10._readFinal$0() || _0_12._readFinal$0() || _0_14._readFinal$0() || _0_16._readFinal$0()) { strategy = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.SassNumber0) { number = _0_2._readFinal$0(); if (_0_5._readFinal$0() instanceof A.SassNumber0) { step = _0_5._readFinal$0(); t1 = !number.hasCompatibleUnits$1(step); } else { step = _null; t1 = false; } } else { step = _null; number = step; t1 = false; } } else { step = _null; number = step; strategy = number; t1 = false; } else { step = _null; number = step; strategy = number; t1 = false; } if (t1) { t1 = type$.JSArray_Object; A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([number, step], t1)); return new A.SassCalculation0(_s5_, A._setArrayType([strategy, number, step], t1)); } if (_0_1._readFinal$0() instanceof A.SassString0) if (_0_10._readFinal$0() || _0_12._readFinal$0() || _0_14._readFinal$0() || _0_16._readFinal$0()) { strategy = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.SassNumber0) { number = _0_2._readFinal$0(); if (_0_5._readFinal$0() instanceof A.SassNumber0) { step = _0_5._readFinal$0(); t1 = true; } else { step = _null; t1 = false; } } else { step = _null; number = step; t1 = false; } } else { step = _null; number = step; strategy = number; t1 = false; } else { step = _null; number = step; strategy = number; t1 = false; } if (t1) { A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([number, step], type$.JSArray_Object)); return A.SassCalculation__roundWithStep0(strategy._string0$_text, number, step); } if (_0_1._readFinal$0() instanceof A.SassString0) if (_0_10._readFinal$0() || _0_12._readFinal$0() || _0_14._readFinal$0() || _0_16._readFinal$0()) { strategy = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.SassString0) { rest = _0_2._readFinal$0(); t1 = _0_6._readFinal$0(); t1 = t1; } else { rest = _null; t1 = false; } } else { rest = _null; strategy = rest; t1 = false; } else { rest = _null; strategy = rest; t1 = false; } if (t1) return new A.SassCalculation0(_s5_, A._setArrayType([strategy, rest], type$.JSArray_Object)); if (_0_1._readFinal$0() instanceof A.SassString0) if (_0_10._readFinal$0() || _0_12._readFinal$0() || _0_14._readFinal$0() || _0_16._readFinal$0()) t1 = _0_2._readFinal$0() != null && true && _0_6._readFinal$0(); else t1 = false; else t1 = false; if (t1) throw A.wrapException(A.SassScriptException$0(string$.If_str, _null)); if (_0_1._readFinal$0() instanceof A.SassString0) t1 = (_0_10._readFinal$0() || _0_12._readFinal$0() || _0_14._readFinal$0() || _0_16._readFinal$0()) && _0_4._readFinal$0() && _0_6._readFinal$0(); else t1 = false; if (t1) throw A.wrapException(A.SassScriptException$0(string$.Number, _null)); if (_0_1._readFinal$0() instanceof A.SassString0) { rest = _0_1._readFinal$0(); t1 = _0_4._readFinal$0() && _0_6._readFinal$0(); } else { rest = _null; t1 = false; } if (t1) return new A.SassCalculation0(_s5_, A._setArrayType([rest], type$.JSArray_Object)); number = _0_1._readFinal$0(); if (_0_4._readFinal$0() && _0_6._readFinal$0()) throw A.wrapException(A.SassScriptException$0("Single argument " + A.S(number) + " expected to be simplifiable.", _null)); number = _0_1._readFinal$0(); if (_0_2._readFinal$0() != null) { step = _0_2._readFinal$0(); t1 = true; } else { step = _null; t1 = false; } t1 = t1 && _0_6._readFinal$0(); if (t1) return new A.SassCalculation0(_s5_, A._setArrayType([number, step], type$.JSArray_Object)); if (_0_1._readFinal$0() instanceof A.SassString0) t1 = _0_10._readFinal$0() || _0_12._readFinal$0() || _0_14._readFinal$0() || _0_16._readFinal$0(); else t1 = false; if (!t1) t1 = _0_1._readFinal$0() instanceof A.SassString0 && _0_1._readFinal$0().get$isVar(); else t1 = true; if (t1) { strategy = _0_1._readFinal$0(); if (_0_2._readFinal$0() != null) { number = _0_2._readFinal$0(); t1 = true; } else { number = _null; t1 = false; } if (t1) if (_0_5._readFinal$0() != null) { step = _0_5._readFinal$0(); t1 = true; } else { step = _null; t1 = false; } else { step = _null; t1 = false; } } else { step = _null; number = step; strategy = number; t1 = false; } if (t1) return new A.SassCalculation0(_s5_, A._setArrayType([strategy, number, step], type$.JSArray_Object)); if (_0_2._readFinal$0() != null && true && _0_5._readFinal$0() != null && true) throw A.wrapException(A.SassScriptException$0(A.S(strategyOrNumber) + string$.x20must_b, _null)); if (_0_4._readFinal$0()) _0_5._readFinal$0(); t1 = A.SassScriptException$0("Invalid parameters.", _null); throw A.wrapException(t1); }, SassCalculation_operateInternal0(operator, left, right, inLegacySassFunction, simplify) { var t1; if (!simplify) return new A.CalculationOperation0(operator, left, right); left = A.SassCalculation__simplify0(left); right = A.SassCalculation__simplify0(right); if (B.CalculationOperator_IyK0 === operator || B.CalculationOperator_2bx0 === operator) { if (left instanceof A.SassNumber0) if (right instanceof A.SassNumber0) t1 = inLegacySassFunction ? left.isComparableTo$1(right) : left.hasCompatibleUnits$1(right); else t1 = false; else t1 = false; if (t1) return operator === B.CalculationOperator_IyK0 ? left.plus$1(right) : left.minus$1(right); A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([left, right], type$.JSArray_Object)); if (right instanceof A.SassNumber0) { t1 = right._number1$_value; t1 = t1 < 0 && !A.fuzzyEquals0(t1, 0); } else t1 = false; if (t1) { right = right.times$1(A.SassNumber_SassNumber0(-1, null)); operator = operator === B.CalculationOperator_IyK0 ? B.CalculationOperator_2bx0 : B.CalculationOperator_IyK0; } return new A.CalculationOperation0(operator, left, right); } else if (left instanceof A.SassNumber0 && right instanceof A.SassNumber0) return operator === B.CalculationOperator_jFr0 ? left.times$1(right) : left.dividedBy$1(right); else return new A.CalculationOperation0(operator, left, right); }, SassCalculation__roundWithStep0(strategy, number, step) { var t1, t2, _0_0, _0_2, _0_1, _0_6, _0_8, _0_9, _0_11, _0_13, stepWithNumberUnit; if (!A.LinkedHashSet_LinkedHashSet$_literal(["nearest", "up", "down", "to-zero"], type$.String).contains$1(0, strategy)) throw A.wrapException(A.ArgumentError$(strategy + string$.x20must_b, null)); t1 = number._number1$_value; if (t1 == 1 / 0 || t1 == -1 / 0) { t2 = step._number1$_value; t2 = t2 == 1 / 0 || t2 == -1 / 0; } else t2 = false; if (!t2) { t2 = step._number1$_value; t2 = t2 === 0 || isNaN(t1) || isNaN(t2); } else t2 = true; if (t2) { t1 = number.get$numeratorUnits(number); return A.SassNumber_SassNumber$withUnits0(0 / 0, number.get$denominatorUnits(number), t1); } if (t1 == 1 / 0 || t1 == -1 / 0) return number; t2 = step._number1$_value; if (t2 == 1 / 0 || t2 == -1 / 0) { _0_0 = new A._Record_2(strategy, t1); _0_2 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure6(_0_0)); _0_1 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure7(_0_0)); _0_6 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure8(_0_1)); _0_8 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure9(_0_1)); _0_9 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure10(_0_2)); _0_11 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure11(_0_1)); _0_13 = A._InitializedCell$(new A.SassCalculation__roundWithStep_closure12(_0_1)); $label0$0: { if (0 === _0_2._readFinal$0()) { t1 = number; break $label0$0; } if ((_0_6._readFinal$0() || _0_8._readFinal$0()) && _0_9._readFinal$0()) { t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits0(0, number.get$denominatorUnits(number), t1); break $label0$0; } if (_0_6._readFinal$0() || _0_8._readFinal$0()) { t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits0(-0.0, number.get$denominatorUnits(number), t1); break $label0$0; } if (_0_11._readFinal$0() && _0_9._readFinal$0()) { t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits0(1 / 0, number.get$denominatorUnits(number), t1); break $label0$0; } if (_0_11._readFinal$0()) { t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits0(-0.0, number.get$denominatorUnits(number), t1); break $label0$0; } if (_0_13._readFinal$0() && _0_2._readFinal$0() < 0) { t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits0(-1 / 0, number.get$denominatorUnits(number), t1); break $label0$0; } if (_0_13._readFinal$0()) { t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits0(0, number.get$denominatorUnits(number), t1); break $label0$0; } t1 = A.throwExpression(A.UnsupportedError$("Invalid argument: " + strategy + ".")); } return t1; } stepWithNumberUnit = step.convertValueToMatch$1(number); $label1$1: { if ("nearest" === strategy) { t1 = B.JSNumber_methods.round$0(t1 / stepWithNumberUnit); t2 = number.get$numeratorUnits(number); t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2); t1 = t2; break $label1$1; } if ("up" === strategy) { t1 /= stepWithNumberUnit; t1 = t2 < 0 ? B.JSNumber_methods.floor$0(t1) : B.JSNumber_methods.ceil$0(t1); t2 = number.get$numeratorUnits(number); t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2); t1 = t2; break $label1$1; } if ("down" === strategy) { t1 /= stepWithNumberUnit; t1 = t2 < 0 ? B.JSNumber_methods.ceil$0(t1) : B.JSNumber_methods.floor$0(t1); t2 = number.get$numeratorUnits(number); t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2); t1 = t2; break $label1$1; } if ("to-zero" === strategy) { t2 = t1 / stepWithNumberUnit; if (t1 < 0) { t1 = B.JSNumber_methods.ceil$0(t2); t2 = number.get$numeratorUnits(number); t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2); t1 = t2; } else { t1 = B.JSNumber_methods.floor$0(t2); t2 = number.get$numeratorUnits(number); t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2); t1 = t2; } break $label1$1; } t1 = number.get$numeratorUnits(number); t1 = A.SassNumber_SassNumber$withUnits0(0 / 0, number.get$denominatorUnits(number), t1); break $label1$1; } return t1; }, SassCalculation__simplify0(arg) { var t1, text, t2, value, _null = null, _s32_ = " can't be used in a calculation.", _0_11 = A._InitializedCell$(new A.SassCalculation__simplify_closure3(arg)), _0_12 = A._InitializedCell$(new A.SassCalculation__simplify_closure4(arg)), _0_15 = A._InitializedCell$(new A.SassCalculation__simplify_closure5(_0_12)), _0_16 = A._InitializedCell$(new A.SassCalculation__simplify_closure6(_0_12)); $label0$0: { if (arg instanceof A.SassNumber0 || arg instanceof A.CalculationOperation0) { t1 = arg; break $label0$0; } if (arg instanceof A.CalculationInterpolation) { t1 = new A.SassString0("(" + arg._calculation0$_value + ")", false); break $label0$0; } t1 = arg instanceof A.SassString0; if (t1 && !arg._string0$_hasQuotes) { t1 = arg; break $label0$0; } if (t1) A.throwExpression(A.SassScriptException$0("Quoted string " + arg.toString$0(0) + _s32_, _null)); t1 = arg instanceof A.SassCalculation0; if (t1) if (_0_11._readFinal$0()) if (_0_15._readFinal$0()) if (_0_16._readFinal$0() instanceof A.SassString0) if (!_0_16._readFinal$0()._string0$_hasQuotes) { text = _0_16._readFinal$0()._string0$_text; t2 = A.SassCalculation__needsParentheses0(text); } else { text = _null; t2 = false; } else { text = _null; t2 = false; } else { text = _null; t2 = false; } else { text = _null; t2 = false; } else { text = _null; t2 = false; } if (t2) { t1 = new A.SassString0("(" + A.S(text) + ")", false); break $label0$0; } if (t1) if (_0_11._readFinal$0()) if (_0_15._readFinal$0()) { value = _0_16._readFinal$0(); t2 = true; } else { value = _null; t2 = false; } else { value = _null; t2 = false; } else { value = _null; t2 = false; } if (t2) { t1 = value; break $label0$0; } if (t1) { t1 = arg; break $label0$0; } if (arg instanceof A.Value0) A.throwExpression(A.SassScriptException$0("Value " + arg.toString$0(0) + _s32_, _null)); t1 = A.throwExpression(A.ArgumentError$("Unexpected calculation argument " + A.S(arg) + ".", _null)); } return t1; }, SassCalculation__needsParentheses0(text) { var t1, couldBeVar, second, third, fourth, i, t2, first = text.charCodeAt(0); if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47 || first === 42) return true; t1 = text.length; couldBeVar = t1 >= 4 && A.characterEqualsIgnoreCase0(first, 118); if (t1 < 2) return false; second = text.charCodeAt(1); if (second === 32 || second === 9 || second === 10 || second === 13 || second === 12 || second === 47 || second === 42) return true; couldBeVar = couldBeVar && A.characterEqualsIgnoreCase0(second, 97); if (t1 < 3) return false; third = text.charCodeAt(2); if (third === 32 || third === 9 || third === 10 || third === 13 || third === 12 || third === 47 || third === 42) return true; couldBeVar = couldBeVar && A.characterEqualsIgnoreCase0(third, 114); if (t1 < 4) return false; fourth = text.charCodeAt(3); if (couldBeVar && fourth === 40) return true; if (fourth === 32 || fourth === 9 || fourth === 10 || fourth === 13 || fourth === 12 || fourth === 47 || fourth === 42) return true; for (i = 4; i < t1; ++i) { t2 = text.charCodeAt(i); if (t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || t2 === 47 || t2 === 42) return true; } return false; }, SassCalculation__verifyCompatibleNumbers0(args) { var t1, _i, t2, arg, i, number1, j, number2; for (t1 = args.length, _i = 0; t2 = args.length, _i < t2; args.length === t1 || (0, A.throwConcurrentModificationError)(args), ++_i) { arg = args[_i]; if (arg instanceof A.SassNumber0 && arg.get$hasComplexUnits()) throw A.wrapException(A.SassScriptException$0("Number " + A.S(arg) + " isn't compatible with CSS calculations.", null)); } for (t1 = t2, i = 0; i < t1 - 1; ++i) { number1 = args[i]; if (!(number1 instanceof A.SassNumber0)) continue; for (j = i + 1; t1 = args.length, j < t1; ++j) { number2 = args[j]; if (!(number2 instanceof A.SassNumber0)) continue; if (number1.hasPossiblyCompatibleUnits$1(number2)) continue; throw A.wrapException(A.SassScriptException$0(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", null)); } } }, SassCalculation__verifyLength0(args, expectedLength) { var t1; if (args.length === expectedLength) return; if (B.JSArray_methods.any$1(args, new A.SassCalculation__verifyLength_closure0())) return; t1 = args.length; throw A.wrapException(A.SassScriptException$0("" + expectedLength + " arguments required, but only " + t1 + " " + A.pluralize0("was", t1, "were") + " passed.", null)); }, SassCalculation__singleArgument0($name, argument, mathFunc, forbidUnits) { argument = A.SassCalculation__simplify0(argument); if (!(argument instanceof A.SassNumber0)) return new A.SassCalculation0($name, A._setArrayType([argument], type$.JSArray_Object)); if (forbidUnits) argument.assertNoUnits$0(); return mathFunc.call$1(argument); }, SassCalculation0: function SassCalculation0(t0, t1) { this.name = t0; this.$arguments = t1; }, SassCalculation_sign_closure0: function SassCalculation_sign_closure0(t0) { this._0_0 = t0; }, SassCalculation_round_closure9: function SassCalculation_round_closure9(t0) { this._0_0 = t0; }, SassCalculation_round_closure10: function SassCalculation_round_closure10(t0) { this._0_0 = t0; }, SassCalculation_round_closure11: function SassCalculation_round_closure11(t0) { this._0_2 = t0; }, SassCalculation_round_closure12: function SassCalculation_round_closure12(t0) { this._0_0 = t0; }, SassCalculation_round_closure13: function SassCalculation_round_closure13(t0) { this._0_5 = t0; }, SassCalculation_round_closure14: function SassCalculation_round_closure14(t0) { this._0_1 = t0; }, SassCalculation_round_closure15: function SassCalculation_round_closure15(t0) { this._0_8 = t0; }, SassCalculation_round_closure16: function SassCalculation_round_closure16(t0) { this._0_8 = t0; }, SassCalculation_round_closure17: function SassCalculation_round_closure17(t0) { this._0_8 = t0; }, SassCalculation_round_closure18: function SassCalculation_round_closure18(t0) { this._0_8 = t0; }, SassCalculation__roundWithStep_closure7: function SassCalculation__roundWithStep_closure7(t0) { this._0_0 = t0; }, SassCalculation__roundWithStep_closure6: function SassCalculation__roundWithStep_closure6(t0) { this._0_0 = t0; }, SassCalculation__roundWithStep_closure8: function SassCalculation__roundWithStep_closure8(t0) { this._0_1 = t0; }, SassCalculation__roundWithStep_closure9: function SassCalculation__roundWithStep_closure9(t0) { this._0_1 = t0; }, SassCalculation__roundWithStep_closure10: function SassCalculation__roundWithStep_closure10(t0) { this._0_2 = t0; }, SassCalculation__roundWithStep_closure11: function SassCalculation__roundWithStep_closure11(t0) { this._0_1 = t0; }, SassCalculation__roundWithStep_closure12: function SassCalculation__roundWithStep_closure12(t0) { this._0_1 = t0; }, SassCalculation__simplify_closure3: function SassCalculation__simplify_closure3(t0) { this._0_0 = t0; }, SassCalculation__simplify_closure4: function SassCalculation__simplify_closure4(t0) { this._0_0 = t0; }, SassCalculation__simplify_closure5: function SassCalculation__simplify_closure5(t0) { this._0_12 = t0; }, SassCalculation__simplify_closure6: function SassCalculation__simplify_closure6(t0) { this._0_12 = t0; }, SassCalculation__verifyLength_closure0: function SassCalculation__verifyLength_closure0() { }, CalculationOperation0: function CalculationOperation0(t0, t1, t2) { this._calculation0$_operator = t0; this._calculation0$_left = t1; this._calculation0$_right = t2; }, CalculationOperator0: function CalculationOperator0(t0, t1, t2, t3) { var _ = this; _.name = t0; _.operator = t1; _.precedence = t2; _._name = t3; }, CalculationInterpolation: function CalculationInterpolation(t0) { this._calculation0$_value = t0; }, CallableDeclaration0: function CallableDeclaration0() { }, Chokidar0: function Chokidar0() { }, ChokidarOptions0: function ChokidarOptions0() { }, ChokidarWatcher0: function ChokidarWatcher0() { }, ClassSelector0: function ClassSelector0(t0, t1) { this.name = t0; this.span = t1; }, cloneCssStylesheet0(stylesheet, extensionStore) { var _0_0 = extensionStore.clone$0(); 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); }, _CloneCssVisitor0: function _CloneCssVisitor0(t0) { this._clone_css$_oldToNewSelectors = t0; }, ColorExpression0: function ColorExpression0(t0, t1) { this.value = t0; this.span = t1; }, _updateComponents0($arguments, adjust, change, scale) { var keywords, alpha, red, green, blue, hue, saturation, lightness, whiteness, blackness, hasRgb, hasSL, hasWB, t2, t3, t4, _null = null, t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"), argumentList = type$.SassArgumentList_2._as(t1.$index($arguments, 1)); if (argumentList._list1$_contents.length !== 0) throw A.wrapException(A.SassScriptException$0(string$.Only_op, _null)); argumentList._argument_list$_wereKeywordsAccessed = true; keywords = A.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, type$.String, type$.Value_2); t1 = new A._updateComponents_getParam0(keywords, scale, change); alpha = t1.call$3$checkUnitless("alpha", 1, true); red = t1.call$2("red", 255); green = t1.call$2("green", 255); blue = t1.call$2("blue", 255); hue = scale ? _null : A.NullableExtension_andThen0(keywords.remove$1(0, "hue"), new A._updateComponents_closure1()); saturation = t1.call$3$checkPercent("saturation", 100, true); lightness = t1.call$3$checkPercent("lightness", 100, true); whiteness = t1.call$3$assertPercent("whiteness", 100, true); blackness = t1.call$3$assertPercent("blackness", 100, true); t1 = keywords.__js_helper$_length; if (t1 !== 0) throw A.wrapException(A.SassScriptException$0("No " + A.pluralize0("argument", t1, _null) + " named " + A.toSentence0(keywords.get$keys(keywords).map$1$1(0, new A._updateComponents_closure2(), type$.Object), "or") + ".", _null)); hasRgb = red != null || green != null || blue != null; hasSL = saturation != null || lightness != null; hasWB = whiteness != null || blackness != null; if (hasRgb) t1 = hasSL || hasWB || hue != null; else t1 = false; if (t1) throw A.wrapException(A.SassScriptException$0(string$.RGB_pa + (hasWB ? "HWB" : "HSL") + " parameters.", _null)); if (hasSL && hasWB) throw A.wrapException(A.SassScriptException$0(string$.HSL_pa, _null)); t1 = new A._updateComponents_updateValue0(change, adjust); t2 = new A._updateComponents_updateRgb0(t1); if (hasRgb) { t3 = t2.call$2(color.get$red(color), red); t4 = t2.call$2(color.get$green(color), green); t2 = t2.call$2(color.get$blue(color), blue); return color.changeRgb$4$alpha$blue$green$red(t1.call$3(color._color1$_alpha, alpha, 1), t2, t4, t3); } else if (hasWB) { if (change) t2 = hue; else { t2 = color.get$hue(color); t2 += hue == null ? 0 : hue; } t3 = t1.call$3(color.get$whiteness(color), whiteness, 100); t4 = t1.call$3(color.get$blackness(color), blackness, 100); return color.changeHwb$4$alpha$blackness$hue$whiteness(t1.call$3(color._color1$_alpha, alpha, 1), t4, t2, t3); } else { t2 = hue == null; if (!t2 || hasSL) { if (change) t2 = hue; else { t3 = color.get$hue(color); t3 += t2 ? 0 : hue; t2 = t3; } t3 = t1.call$3(color.get$saturation(color), saturation, 100); t4 = t1.call$3(color.get$lightness(color), lightness, 100); return color.changeHsl$4$alpha$hue$lightness$saturation(t1.call$3(color._color1$_alpha, alpha, 1), t2, t4, t3); } else if (alpha != null) return color.changeAlpha$1(t1.call$3(color._color1$_alpha, alpha, 1)); else return color; } }, _functionString0($name, $arguments) { return new A.SassString0($name + "(" + J.map$1$1$ax($arguments, new A._functionString_closure0(), type$.String).join$1(0, ", ") + ")", false); }, _removedColorFunction0($name, argument, negative) { return A.BuiltInCallable$function0($name, "$color, $amount", new A._removedColorFunction_closure0($name, argument, negative), "sass:color"); }, _rgb0($name, $arguments) { var t2, red, green, blue, t3, t4, t1 = J.getInterceptor$asx($arguments), alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null; if (!t1.$index($arguments, 0).get$isSpecialNumber()) if (!t1.$index($arguments, 1).get$isSpecialNumber()) if (!t1.$index($arguments, 2).get$isSpecialNumber()) { t2 = alpha == null ? null : alpha.get$isSpecialNumber(); t2 = t2 === true; } else t2 = true; else t2 = true; else t2 = true; if (t2) return A._functionString0($name, $arguments); red = t1.$index($arguments, 0).assertNumber$1("red"); green = t1.$index($arguments, 1).assertNumber$1("green"); blue = t1.$index($arguments, 2).assertNumber$1("blue"); t1 = A.fuzzyRound0(A._percentageOrUnitless0(red, 255, "red")); t2 = A.fuzzyRound0(A._percentageOrUnitless0(green, 255, "green")); t3 = A.fuzzyRound0(A._percentageOrUnitless0(blue, 255, "blue")); t4 = A.NullableExtension_andThen0(alpha, new A._rgb_closure0()); return A.SassColor$rgbInternal0(t1, t2, t3, t4 == null ? 1 : t4, B._ColorFormatEnum_rgbFunction0); }, _rgbTwoArg0($name, $arguments) { var t2, color, t1 = J.getInterceptor$asx($arguments); if (!t1.$index($arguments, 0).get$isVar()) t2 = !(t1.$index($arguments, 0) instanceof A.SassColor0) && t1.$index($arguments, 1).get$isVar(); else t2 = true; if (t2) return A._functionString0($name, $arguments); else if (t1.$index($arguments, 1).get$isSpecialNumber()) { color = t1.$index($arguments, 0).assertColor$1("color"); return new A.SassString0($name + "(" + color.get$red(color) + ", " + color.get$green(color) + ", " + color.get$blue(color) + ", " + A.serializeValue0(t1.$index($arguments, 1), false, true) + ")", false); } return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(A._percentageOrUnitless0(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha")); }, _hsl0($name, $arguments) { var t2, hue, saturation, lightness, t3, _s10_ = "saturation", _s9_ = "lightness", t1 = J.getInterceptor$asx($arguments), alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null; if (!t1.$index($arguments, 0).get$isSpecialNumber()) if (!t1.$index($arguments, 1).get$isSpecialNumber()) if (!t1.$index($arguments, 2).get$isSpecialNumber()) { t2 = alpha == null ? null : alpha.get$isSpecialNumber(); t2 = t2 === true; } else t2 = true; else t2 = true; else t2 = true; if (t2) return A._functionString0($name, $arguments); hue = A._angleValue0(t1.$index($arguments, 0), "hue"); saturation = t1.$index($arguments, 1).assertNumber$1(_s10_); lightness = t1.$index($arguments, 2).assertNumber$1(_s9_); A._checkPercent0(saturation, _s10_); A._checkPercent0(lightness, _s9_); t1 = B.JSNumber_methods.clamp$2(saturation._number1$_value, 0, 100); t2 = B.JSNumber_methods.clamp$2(lightness._number1$_value, 0, 100); t3 = A.NullableExtension_andThen0(alpha, new A._hsl_closure0()); return A.SassColor$hslInternal0(hue, t1, t2, t3 == null ? 1 : t3, B._ColorFormatEnum_hslFunction0); }, _angleValue0(angleValue, $name) { var t1, t2, angle = angleValue.assertNumber$1($name); if (angle.compatibleWithUnit$1("deg")) return angle.coerceValueToUnit$1("deg"); t1 = angle.toString$0(0); t2 = angle.unitSuggestion$1($name); A.EvaluationContext_current0().warn$2(0, "$" + $name + ": Passing a unit other than deg (" + t1 + string$.x29x20is_d + t2 + string$.x0a_See_, B.Deprecation_0bn); return angle._number1$_value; }, _checkPercent0(number, $name) { var t1, t2; if (number.hasUnit$1("%")) return; t1 = number.toString$0(0); t2 = number.unitSuggestion$2($name, "%"); A.EvaluationContext_current0().warn$2(0, "$" + $name + ": Passing a number without unit % (" + t1 + string$.x29x20is_d + t2 + string$.x0a_Morex3a, B.Deprecation_0bn); }, _hwb0($arguments) { var t2, t3, _s9_ = "whiteness", _s9_0 = "blackness", t1 = J.getInterceptor$asx($arguments), alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null, hue = A._angleValue0(t1.$index($arguments, 0), "hue"), whiteness = t1.$index($arguments, 1).assertNumber$1(_s9_), blackness = t1.$index($arguments, 2).assertNumber$1(_s9_0); whiteness.assertUnit$2("%", _s9_); blackness.assertUnit$2("%", _s9_0); t1 = whiteness.valueInRange$3(0, 100, _s9_); t2 = blackness.valueInRange$3(0, 100, _s9_0); t3 = A.NullableExtension_andThen0(alpha, new A._hwb_closure0()); return A.SassColor_SassColor$hwb0(hue, t1, t2, t3 == null ? 1 : t3); }, _parseChannels0($name, argumentNames, channels) { var list, t1, channels0, alphaFromSlashList, isCommaSeparated, isBracketed, buffer, _0_4, text, _1_0, _1_2, channel3, alpha, _null = null, _s17_ = "$channels must be"; if (channels.get$isVar()) return A._functionString0($name, A._setArrayType([channels], type$.JSArray_Value_2)); if (channels.get$separator(channels) === B.ListSeparator_zg90) { list = channels.get$asList(); t1 = list.length; if (t1 !== 2) throw A.wrapException(A.SassScriptException$0(string$.Only_2 + t1 + " " + A.pluralize0("was", t1, "were") + " passed.", _null)); channels0 = list[0]; alphaFromSlashList = list[1]; if (!alphaFromSlashList.get$isSpecialNumber()) alphaFromSlashList.assertNumber$1("alpha"); if (list[0].get$isVar()) return A._functionString0($name, A._setArrayType([channels], type$.JSArray_Value_2)); } else { alphaFromSlashList = _null; channels0 = channels; } isCommaSeparated = channels0.get$separator(channels0) === B.ListSeparator_rXA0; isBracketed = channels0.get$hasBrackets(); if (isCommaSeparated || isBracketed) { buffer = new A.StringBuffer(_s17_); if (isBracketed) { t1 = _s17_ + " an unbracketed"; buffer._contents = t1; } else t1 = _s17_; if (isCommaSeparated) { t1 += isBracketed ? "," : " a"; buffer._contents = t1; t1 = buffer._contents = t1 + " space-separated"; } buffer._contents = t1 + " list."; throw A.wrapException(A.SassScriptException$0(buffer.toString$0(0), _null)); } list = channels0.get$asList(); _0_4 = A._InitializedCell$(new A._parseChannels_closure2(list)); if (list.length >= 2) if (_0_4._readFinal$0() instanceof A.SassString0) { text = _0_4._readFinal$0()._string0$_text; t1 = !_0_4._readFinal$0()._string0$_hasQuotes && A.equalsIgnoreCase0(text, "from"); } else t1 = false; else t1 = false; if (t1) return A._functionString0($name, A._setArrayType([channels], type$.JSArray_Value_2)); t1 = list.length; if (t1 > 3) throw A.wrapException(A.SassScriptException$0("Only 3 elements allowed, but " + t1 + " were passed.", _null)); else if (t1 < 3) { if (!B.JSArray_methods.any$1(list, new A._parseChannels_closure3())) if (list.length !== 0) { t1 = B.JSArray_methods.get$last(list); if (t1 instanceof A.SassString0) if (t1._string0$_hasQuotes) { t1 = t1._string0$_text; t1 = A.startsWithIgnoreCase0(t1, "var(") && B.JSString_methods.contains$1(t1, "/"); } else t1 = false; else t1 = false; } else t1 = false; else t1 = true; if (t1) return A._functionString0($name, A._setArrayType([channels], type$.JSArray_Value_2)); else throw A.wrapException(A.SassScriptException$0("Missing element " + argumentNames[list.length] + ".", _null)); } if (alphaFromSlashList != null) { t1 = A.List_List$of(list, true, type$.Value_2); t1.push(alphaFromSlashList); return t1; } _1_0 = list[2]; _1_2 = A._InitializedCell$(new A._parseChannels_closure4(_1_0)); $label0$0: { if (_1_0 instanceof A.SassNumber0) if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_2._readFinal$0())) { t1 = type$.SassNumber_2; channel3 = t1._as(_1_2._readFinal$0()._0); alpha = t1._as(_1_2._readFinal$0()._1); t1 = true; } else { alpha = _null; channel3 = alpha; t1 = false; } else { alpha = _null; channel3 = alpha; t1 = false; } if (t1) { t1 = A._setArrayType([list[0], list[1], channel3, alpha], type$.JSArray_Value_2); break $label0$0; } if (_1_0 instanceof A.SassString0) if (!_1_0._string0$_hasQuotes) t1 = B.JSString_methods.contains$1(_1_0._string0$_text, "/"); else t1 = false; else t1 = false; if (t1) { t1 = A._functionString0($name, A._setArrayType([channels0], type$.JSArray_Value_2)); break $label0$0; } t1 = list; break $label0$0; } return t1; }, _percentageOrUnitless0(number, max, $name) { var value; if (!number.get$hasUnits()) value = number._number1$_value; else if (number.hasUnit$1("%")) value = max * number._number1$_value / 100; else throw A.wrapException(A.SassScriptException$0("$" + $name + ": Expected " + number.toString$0(0) + ' to have unit "%" or no units.', null)); return B.JSNumber_methods.clamp$2(value, 0, max); }, _mixColors0(color1, color2, weight) { var weightScale, normalizedWeight, t1, t2, alphaDistance, t3, weight1, weight2; A._checkPercent0(weight, "weight"); weightScale = weight.valueInRange$3(0, 100, "weight") / 100; normalizedWeight = weightScale * 2 - 1; t1 = color1._color1$_alpha; t2 = color2._color1$_alpha; alphaDistance = t1 - t2; t3 = normalizedWeight * alphaDistance; weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2; weight2 = 1 - weight1; return A.SassColor$rgb0(A.fuzzyRound0(color1.get$red(color1) * weight1 + color2.get$red(color2) * weight2), A.fuzzyRound0(color1.get$green(color1) * weight1 + color2.get$green(color2) * weight2), A.fuzzyRound0(color1.get$blue(color1) * weight1 + color2.get$blue(color2) * weight2), t1 * weightScale + t2 * (1 - weightScale)); }, _opacify0($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"); return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._color1$_alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1)); }, _transparentize0($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"); return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._color1$_alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1)); }, _function11($name, $arguments, callback) { return A.BuiltInCallable$function0($name, $arguments, callback, "sass:color"); }, global_closure32: function global_closure32() { }, global_closure33: function global_closure33() { }, global_closure34: function global_closure34() { }, global_closure35: function global_closure35() { }, global_closure36: function global_closure36() { }, global_closure37: function global_closure37() { }, global_closure38: function global_closure38() { }, global_closure39: function global_closure39() { }, global_closure40: function global_closure40() { }, global_closure41: function global_closure41() { }, global_closure42: function global_closure42() { }, global_closure43: function global_closure43() { }, global_closure44: function global_closure44() { }, global_closure45: function global_closure45() { }, global_closure46: function global_closure46() { }, global_closure47: function global_closure47() { }, global_closure48: function global_closure48() { }, global_closure49: function global_closure49() { }, global_closure50: function global_closure50() { }, global_closure51: function global_closure51() { }, global_closure52: function global_closure52() { }, global_closure53: function global_closure53() { }, global_closure54: function global_closure54() { }, global_closure55: function global_closure55() { }, global_closure56: function global_closure56() { }, global_closure57: function global_closure57() { }, global__closure0: function global__closure0() { }, global_closure58: function global_closure58() { }, module_closure12: function module_closure12() { }, module_closure13: function module_closure13() { }, module_closure14: function module_closure14() { }, module_closure15: function module_closure15() { }, module_closure16: function module_closure16() { }, module_closure17: function module_closure17() { }, module_closure18: function module_closure18() { }, module_closure19: function module_closure19() { }, module__closure4: function module__closure4() { }, module_closure20: function module_closure20() { }, _red_closure0: function _red_closure0() { }, _green_closure0: function _green_closure0() { }, _blue_closure0: function _blue_closure0() { }, _mix_closure0: function _mix_closure0() { }, _hue_closure0: function _hue_closure0() { }, _saturation_closure0: function _saturation_closure0() { }, _lightness_closure0: function _lightness_closure0() { }, _complement_closure0: function _complement_closure0() { }, _adjust_closure0: function _adjust_closure0() { }, _scale_closure0: function _scale_closure0() { }, _change_closure0: function _change_closure0() { }, _ieHexStr_closure0: function _ieHexStr_closure0() { }, _ieHexStr_closure_hexString0: function _ieHexStr_closure_hexString0() { }, _updateComponents_getParam0: function _updateComponents_getParam0(t0, t1, t2) { this.keywords = t0; this.scale = t1; this.change = t2; }, _updateComponents_closure1: function _updateComponents_closure1() { }, _updateComponents_closure2: function _updateComponents_closure2() { }, _updateComponents_updateValue0: function _updateComponents_updateValue0(t0, t1) { this.change = t0; this.adjust = t1; }, _updateComponents_updateRgb0: function _updateComponents_updateRgb0(t0) { this.updateValue = t0; }, _functionString_closure0: function _functionString_closure0() { }, _removedColorFunction_closure0: function _removedColorFunction_closure0(t0, t1, t2) { this.name = t0; this.argument = t1; this.negative = t2; }, _rgb_closure0: function _rgb_closure0() { }, _hsl_closure0: function _hsl_closure0() { }, _hwb_closure0: function _hwb_closure0() { }, _parseChannels_closure2: function _parseChannels_closure2(t0) { this._0_0 = t0; }, _parseChannels_closure3: function _parseChannels_closure3() { }, _parseChannels_closure4: function _parseChannels_closure4(t0) { this._1_0 = t0; }, colorClass_closure: function colorClass_closure() { }, colorClass__closure: function colorClass__closure() { }, colorClass__closure0: function colorClass__closure0() { }, colorClass__closure1: function colorClass__closure1() { }, colorClass__closure2: function colorClass__closure2() { }, colorClass__closure3: function colorClass__closure3() { }, colorClass__closure4: function colorClass__closure4() { }, colorClass__closure5: function colorClass__closure5() { }, colorClass__closure6: function colorClass__closure6() { }, colorClass__closure7: function colorClass__closure7() { }, colorClass__closure8: function colorClass__closure8() { }, colorClass__closure9: function colorClass__closure9() { }, _Channels: function _Channels() { }, _NodeSassColor: function _NodeSassColor() { }, legacyColorClass_closure: function legacyColorClass_closure() { }, legacyColorClass_closure0: function legacyColorClass_closure0() { }, legacyColorClass_closure1: function legacyColorClass_closure1() { }, legacyColorClass_closure2: function legacyColorClass_closure2() { }, legacyColorClass_closure3: function legacyColorClass_closure3() { }, legacyColorClass_closure4: function legacyColorClass_closure4() { }, legacyColorClass_closure5: function legacyColorClass_closure5() { }, legacyColorClass_closure6: function legacyColorClass_closure6() { }, legacyColorClass_closure7: function legacyColorClass_closure7() { }, SassColor$rgb0(red, green, blue, alpha) { var _null = null, t1 = new A.SassColor0(red, green, blue, _null, _null, _null, A.fuzzyAssertRange0(A.SassColor__handleNullAlpha0(alpha), 0, 1, "alpha"), _null); A.RangeError_checkValueInInterval(t1.get$red(t1), 0, 255, "red"); A.RangeError_checkValueInInterval(t1.get$green(t1), 0, 255, "green"); A.RangeError_checkValueInInterval(t1.get$blue(t1), 0, 255, "blue"); return t1; }, SassColor$rgbInternal0(_red, _green, _blue, alpha, format) { var t1 = new A.SassColor0(_red, _green, _blue, null, null, null, A.fuzzyAssertRange0(alpha, 0, 1, "alpha"), format); A.RangeError_checkValueInInterval(t1.get$red(t1), 0, 255, "red"); A.RangeError_checkValueInInterval(t1.get$green(t1), 0, 255, "green"); A.RangeError_checkValueInInterval(t1.get$blue(t1), 0, 255, "blue"); return t1; }, SassColor$hsl(hue, saturation, lightness, alpha) { var _null = null, t1 = A.SassColor__handleNullAlpha0(alpha); return new A.SassColor0(_null, _null, _null, B.JSNumber_methods.$mod(hue, 360), A.fuzzyAssertRange0(saturation, 0, 100, "saturation"), A.fuzzyAssertRange0(lightness, 0, 100, "lightness"), A.fuzzyAssertRange0(t1, 0, 1, "alpha"), _null); }, SassColor$hslInternal0(hue, saturation, lightness, alpha, format) { return new A.SassColor0(null, null, null, B.JSNumber_methods.$mod(hue, 360), A.fuzzyAssertRange0(saturation, 0, 100, "saturation"), A.fuzzyAssertRange0(lightness, 0, 100, "lightness"), A.fuzzyAssertRange0(alpha, 0, 1, "alpha"), format); }, SassColor_SassColor$hwb0(hue, whiteness, blackness, alpha) { var t2, t1 = {}, scaledHue = B.JSNumber_methods.$mod(hue, 360) / 360, scaledWhiteness = t1.scaledWhiteness = A.fuzzyAssertRange0(whiteness, 0, 100, "whiteness") / 100, scaledBlackness = A.fuzzyAssertRange0(blackness, 0, 100, "blackness") / 100, sum = scaledWhiteness + scaledBlackness; if (sum > 1) { t2 = t1.scaledWhiteness = scaledWhiteness / sum; scaledBlackness /= sum; } else t2 = scaledWhiteness; t2 = new A.SassColor_SassColor$hwb_toRgb0(t1, 1 - t2 - scaledBlackness); return A.SassColor$rgb0(t2.call$1(scaledHue + 0.3333333333333333), t2.call$1(scaledHue), t2.call$1(scaledHue - 0.3333333333333333), alpha); }, SassColor__handleNullAlpha0(alpha) { if (alpha != null) return alpha; A.EvaluationContext_current0().warn$2(0, "Passing null for alpha in the JS API is deprecated.\nTo preserve current behavior, pass 1 or undefined instead.\nMore info: https://sass-lang.com/d/null-alpha", B.Deprecation_UZD); return 1; }, SassColor__hueToRgb0(m1, m2, hue) { var t1; if (hue < 0) ++hue; if (hue > 1) --hue; $label0$0: { if (hue < 0.16666666666666666) { t1 = m1 + (m2 - m1) * hue * 6; break $label0$0; } if (hue < 0.5) { t1 = m2; break $label0$0; } if (hue < 0.6666666666666666) { t1 = m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6; break $label0$0; } t1 = m1; break $label0$0; } return t1; }, SassColor0: function SassColor0(t0, t1, t2, t3, t4, t5, t6, t7) { var _ = this; _._color1$_red = t0; _._color1$_green = t1; _._color1$_blue = t2; _._color1$_hue = t3; _._color1$_saturation = t4; _._color1$_lightness = t5; _._color1$_alpha = t6; _.format = t7; }, SassColor_SassColor$hwb_toRgb0: function SassColor_SassColor$hwb_toRgb0(t0, t1) { this._box_0 = t0; this.factor = t1; }, _ColorFormatEnum0: function _ColorFormatEnum0(t0) { this._color1$_name = t0; }, SpanColorFormat0: function SpanColorFormat0(t0) { this._color1$_span = t0; }, Combinator0: function Combinator0(t0, t1) { this._combinator0$_text = t0; this._name = t1; }, ModifiableCssComment0: function ModifiableCssComment0(t0, t1) { var _ = this; _.text = t0; _.span = t1; _._node$_indexInParent = _._node$_parent = null; _.isGroupEnd = false; }, compile0(path, options) { var color, ascii, result, error, stackTrace, t1, color0, ascii0, t2, t3, t4, t5, t6, t7, t8, t9, t10, exception, _null = null; if (!A.isNodeJs()) A.jsThrow(new self.Error("The compile() method is only available in Node.js.")); t1 = options == null; color0 = t1 ? _null : J.get$alertColor$x(options); color = color0 == null ? A.hasTerminal0() : color0; ascii0 = t1 ? _null : J.get$alertAscii$x(options); ascii = ascii0 == null ? $._glyphs === B.C_AsciiGlyphSet : ascii0; try { t2 = t1 ? _null : J.get$loadPaths$x(options); t3 = t1 ? _null : J.get$quietDeps$x(options); if (t3 == null) t3 = false; t4 = A._parseOutputStyle0(t1 ? _null : J.get$style$x(options)); t5 = t1 ? _null : J.get$verbose$x(options); if (t5 == null) t5 = false; t6 = t1 ? _null : J.get$charset$x(options); if (t6 == null) t6 = true; t7 = t1 ? _null : J.get$sourceMap$x(options); if (t7 == null) t7 = false; t8 = t1 ? _null : J.get$logger$x(options); t9 = ascii; if (t9 == null) t9 = $._glyphs === B.C_AsciiGlyphSet; t9 = new A.JSToDartLogger(t8, new A.StderrLogger0(color), t9); if (t1) t8 = _null; else { t8 = J.get$importers$x(options); t8 = t8 == null ? _null : J.map$1$1$ax(t8, A.compile___parseImporter$closure(), type$.Importer); } t10 = A._parseFunctions0(t1 ? _null : J.get$functions$x(options), false); result = A.compile(path, t6, _null, new A.CastList(t10, A._arrayInstanceType(t10)._eval$1("CastList<1,Callable>")), _null, A.ImportCache$0(t8, t2, t9, _null), _null, _null, t9, _null, t3, t7, t4, _null, true, t5); t1 = t1 ? _null : J.get$sourceMapIncludeSources$x(options); if (t1 == null) t1 = false; t1 = A._convertResult(result, t1); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException0) { error = t1; stackTrace = A.getTraceFromException(exception); A.throwNodeException(error, ascii, color, stackTrace); } else throw exception; } }, compileString0(text, options) { var result, error, stackTrace, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, exception, _null = null, t1 = options == null, color0 = t1 ? _null : J.get$alertColor$x(options), color = color0 == null ? A.hasTerminal0() : color0, ascii0 = t1 ? _null : J.get$alertAscii$x(options), ascii = ascii0 == null ? $._glyphs === B.C_AsciiGlyphSet : ascii0; try { t2 = A.parseSyntax(t1 ? _null : J.get$syntax$x(options)); t3 = t1 ? _null : A.NullableExtension_andThen0(J.get$url$x(options), A.utils1__jsToDartUrl$closure()); t4 = t1 ? _null : J.get$loadPaths$x(options); t5 = t1 ? _null : J.get$quietDeps$x(options); if (t5 == null) t5 = false; t6 = A._parseOutputStyle0(t1 ? _null : J.get$style$x(options)); t7 = t1 ? _null : J.get$verbose$x(options); if (t7 == null) t7 = false; t8 = t1 ? _null : J.get$charset$x(options); if (t8 == null) t8 = true; t9 = t1 ? _null : J.get$sourceMap$x(options); if (t9 == null) t9 = false; t10 = t1 ? _null : J.get$logger$x(options); t11 = ascii; if (t11 == null) t11 = $._glyphs === B.C_AsciiGlyphSet; t11 = new A.JSToDartLogger(t10, new A.StderrLogger0(color), t11); if (t1) t10 = _null; else { t10 = J.get$importers$x(options); t10 = t10 == null ? _null : J.map$1$1$ax(t10, A.compile___parseImporter$closure(), type$.Importer); } t12 = t1 ? _null : A.NullableExtension_andThen0(J.get$importer$x(options), A.compile___parseImporter$closure()); if (t12 == null) t12 = (t1 ? _null : J.get$url$x(options)) == null ? new A.NoOpImporter0() : _null; t13 = A._parseFunctions0(t1 ? _null : J.get$functions$x(options), false); result = A.compileString(text, t8, _null, new A.CastList(t13, A._arrayInstanceType(t13)._eval$1("CastList<1,Callable>")), _null, A.ImportCache$0(t10, t4, t11, _null), t12, _null, _null, t11, _null, t5, t9, t6, t2, t3, true, t7); t1 = t1 ? _null : J.get$sourceMapIncludeSources$x(options); if (t1 == null) t1 = false; t1 = A._convertResult(result, t1); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException0) { error = t1; stackTrace = A.getTraceFromException(exception); A.throwNodeException(error, ascii, color, stackTrace); } else throw exception; } }, compileAsync1(path, options) { var t1, color, ascii; if (!A.isNodeJs()) A.jsThrow(new self.Error("The compileAsync() method is only available in Node.js.")); t1 = options == null; color = t1 ? null : J.get$alertColor$x(options); if (color == null) color = A.hasTerminal0(); ascii = t1 ? null : J.get$alertAscii$x(options); if (ascii == null) ascii = $._glyphs === B.C_AsciiGlyphSet; return A._wrapAsyncSassExceptions(A.futureToPromise0(new A.compileAsync_closure(path, color, options, ascii).call$0()), ascii, color); }, compileStringAsync1(text, options) { var ascii, t1 = options == null, color = t1 ? null : J.get$alertColor$x(options); if (color == null) color = A.hasTerminal0(); ascii = t1 ? null : J.get$alertAscii$x(options); if (ascii == null) ascii = $._glyphs === B.C_AsciiGlyphSet; return A._wrapAsyncSassExceptions(A.futureToPromise0(new A.compileStringAsync_closure(text, options, color, ascii).call$0()), ascii, color); }, _convertResult(result, includeSourceContents) { var loadedUrls, t1 = result._compile_result$_serialize, t2 = t1._1, sourceMap = t2 == null ? null : t2.toJson$1$includeSourceContents(includeSourceContents); if (type$.Map_String_dynamic._is(sourceMap) && !sourceMap.containsKey$1("sources")) sourceMap.$indexSet(0, "sources", A._setArrayType([], type$.JSArray_String)); loadedUrls = A.toJSArray(result._evaluate._0.map$1$1(0, A.utils1__dartToJSUrl$closure(), type$.nullable_Object)); t1 = t1._0; return sourceMap == null ? {css: t1, loadedUrls: loadedUrls} : {css: t1, sourceMap: A.jsify(sourceMap), loadedUrls: loadedUrls}; }, _wrapAsyncSassExceptions(promise, ascii, color) { return J.then$2$x(promise, null, A.allowInterop(new A._wrapAsyncSassExceptions_closure(color, ascii))); }, _parseOutputStyle0(style) { var t1; $label0$0: { if (style == null || "expanded" === style) { t1 = B.OutputStyle_00; break $label0$0; } if ("compressed" === style) { t1 = B.OutputStyle_10; break $label0$0; } t1 = A.jsThrow(new self.Error('Unknown output style "' + A.S(style) + '".')); } return t1; }, _parseAsyncImporter(importer) { var t1, canonicalize, load, _0_0, findFileUrl, t2; if (importer == null) A.jsThrow(new self.Error("Importers may not be null.")); type$.JSImporter._as(importer); t1 = J.getInterceptor$x(importer); canonicalize = t1.get$canonicalize(importer); load = t1.get$load(importer); _0_0 = t1.get$findFileUrl(importer); if (_0_0 != null) { findFileUrl = _0_0; t2 = true; } else { findFileUrl = null; t2 = false; } if (t2) if (canonicalize != null || load != null) A.jsThrow(new self.Error(string$.An_impa)); else return new A.JSToDartAsyncFileImporter(findFileUrl); else if (canonicalize == null || load == null) A.jsThrow(new self.Error(string$.An_impu)); else { t1 = A._normalizeNonCanonicalSchemes(t1.get$nonCanonicalScheme(importer)); t1 = t1 == null ? B.Set_empty7 : A.Set_Set$unmodifiable(t1, type$.String); t1.forEach$1(0, A.utils2__validateUrlScheme$closure()); return new A.JSToDartAsyncImporter(canonicalize, load, t1); } }, _parseImporter0(importer) { var t1, canonicalize, load, _0_0, findFileUrl, t2; if (importer == null) A.jsThrow(new self.Error("Importers may not be null.")); type$.JSImporter._as(importer); t1 = J.getInterceptor$x(importer); canonicalize = t1.get$canonicalize(importer); load = t1.get$load(importer); _0_0 = t1.get$findFileUrl(importer); if (_0_0 != null) { findFileUrl = _0_0; t2 = true; } else { findFileUrl = null; t2 = false; } if (t2) if (canonicalize != null || load != null) A.jsThrow(new self.Error(string$.An_impa)); else return new A.JSToDartFileImporter(findFileUrl); else if (canonicalize == null || load == null) A.jsThrow(new self.Error(string$.An_impu)); else { t1 = A._normalizeNonCanonicalSchemes(t1.get$nonCanonicalScheme(importer)); t1 = t1 == null ? B.Set_empty7 : A.Set_Set$unmodifiable(t1, type$.String); t1.forEach$1(0, A.utils2__validateUrlScheme$closure()); return new A.JSToDartImporter(canonicalize, load, t1); } }, _normalizeNonCanonicalSchemes(schemes) { var scheme, t1, schemes0; $label0$0: { if (typeof schemes == "string") { scheme = schemes; t1 = true; } else { scheme = null; t1 = false; } if (t1) { t1 = A._setArrayType([scheme], type$.JSArray_String); break $label0$0; } if (type$.List_dynamic._is(schemes)) { schemes0 = schemes; t1 = true; } else { schemes0 = null; t1 = false; } if (t1) { t1 = J.cast$1$0$ax(schemes0, type$.String); break $label0$0; } if (schemes == null) { t1 = null; break $label0$0; } t1 = A.jsThrow(new self.Error('nonCanonicalScheme must be a string or list of strings, was "' + A.S(schemes) + '"')); } return t1; }, _simplifyValue(value) { var t1, t2, _0_0, _0_1, _0_3, _0_4, _0_5, _0_8, _0_10, first, min, max, args, _null = null; $label1$1: { if (value instanceof A.SassCalculation0) { t1 = value.$arguments; t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object>"); _0_0 = new A._Record_2(value.name, A.List_List$of(new A.MappedListIterable(t1, A.compile___simplifyCalcArg$closure(), t2), true, t2._eval$1("ListIterable.E"))); _0_1 = A._InitializedCell$(new A._simplifyValue_closure(_0_0)); _0_3 = A._InitializedCell$(new A._simplifyValue_closure0(_0_1)); _0_4 = A._InitializedCell$(new A._simplifyValue_closure1(_0_0)); _0_5 = A._InitializedCell$(new A._simplifyValue_closure2(_0_4)); _0_8 = A._InitializedCell$(new A._simplifyValue_closure3(_0_4)); _0_10 = A._InitializedCell$(new A._simplifyValue_closure4(_0_1)); $label0$0: { if (_0_3._readFinal$0()) if (J.$eq$(_0_5._readFinal$0(), 1)) { first = _0_8._readFinal$0(); t1 = true; } else { first = _null; t1 = false; } else { first = _null; t1 = false; } if (t1) { type$.Value_2._as(first); t1 = first; break $label0$0; } if (_0_3._readFinal$0()) A.throwExpression(A.ArgumentError$("calc() requires exactly one argument.", _null)); if (_0_10._readFinal$0()) if (J.$eq$(_0_5._readFinal$0(), 3)) { min = _0_8._readFinal$0(); value = J.$index$asx(_0_4._readFinal$0(), 1); max = J.$index$asx(_0_4._readFinal$0(), 2); max = max; t1 = true; } else { max = _null; value = max; min = value; t1 = false; } else { max = _null; value = max; min = value; t1 = false; } if (t1) { t1 = A.SassCalculation_clamp0(min, value, max); break $label0$0; } if (_0_10._readFinal$0()) A.throwExpression(A.ArgumentError$("clamp() requires exactly 3 arguments.", _null)); if ("min" === _0_1._readFinal$0()) { args = _0_4._readFinal$0(); t1 = true; } else { args = _null; t1 = false; } if (t1) { t1 = A.SassCalculation_min0(args); break $label0$0; } if ("max" === _0_1._readFinal$0()) { args = _0_4._readFinal$0(); t1 = true; } else { args = _null; t1 = false; } if (t1) { t1 = A.SassCalculation_max0(args); break $label0$0; } t1 = A.throwExpression(A.ArgumentError$('"' + _0_1._readFinal$0() + '" is not a recognized calculation type.', _null)); } break $label1$1; } t1 = value; break $label1$1; } return t1; }, _simplifyCalcArg(value) { var t1; $label0$0: { if (value instanceof A.SassCalculation0) { t1 = A._simplifyValue(value); break $label0$0; } if (value instanceof A.CalculationOperation0) { t1 = A.SassCalculation_operateInternal0(value._calculation0$_operator, A._simplifyCalcArg(value._calculation0$_left), A._simplifyCalcArg(value._calculation0$_right), false, true); break $label0$0; } t1 = value; break $label0$0; } return t1; }, _parseFunctions0(functions, asynch) { var result; if (functions == null) return B.List_empty24; result = A._setArrayType([], type$.JSArray_AsyncCallable_2); A.jsForEach(functions, new A._parseFunctions_closure0(asynch, result)); return result; }, compileAsync_closure: function compileAsync_closure(t0, t1, t2, t3) { var _ = this; _.path = t0; _.color = t1; _.options = t2; _.ascii = t3; }, compileAsync__closure: function compileAsync__closure() { }, compileStringAsync_closure: function compileStringAsync_closure(t0, t1, t2, t3) { var _ = this; _.text = t0; _.options = t1; _.color = t2; _.ascii = t3; }, compileStringAsync__closure: function compileStringAsync__closure() { }, compileStringAsync__closure0: function compileStringAsync__closure0() { }, _wrapAsyncSassExceptions_closure: function _wrapAsyncSassExceptions_closure(t0, t1) { this.color = t0; this.ascii = t1; }, _simplifyValue_closure: function _simplifyValue_closure(t0) { this._0_0 = t0; }, _simplifyValue_closure0: function _simplifyValue_closure0(t0) { this._0_1 = t0; }, _simplifyValue_closure1: function _simplifyValue_closure1(t0) { this._0_0 = t0; }, _simplifyValue_closure2: function _simplifyValue_closure2(t0) { this._0_4 = t0; }, _simplifyValue_closure3: function _simplifyValue_closure3(t0) { this._0_4 = t0; }, _simplifyValue_closure4: function _simplifyValue_closure4(t0) { this._0_1 = t0; }, _parseFunctions_closure0: function _parseFunctions_closure0(t0, t1) { this.asynch = t0; this.result = t1; }, _parseFunctions__closure2: function _parseFunctions__closure2(t0, t1) { this.callback = t0; this.callable = t1; }, _parseFunctions___closure6: function _parseFunctions___closure6(t0, t1) { this.callback = t0; this.$arguments = t1; }, _parseFunctions__closure3: function _parseFunctions__closure3(t0, t1) { this.callback = t0; this.callable = t1; }, _parseFunctions___closure5: function _parseFunctions___closure5(t0, t1) { this.callback = t0; this.$arguments = t1; }, compile(path, charset, fatalDeprecations, functions, futureDeprecations, importCache, indentWidth, lineFeed, logger, nodeImporter, quietDeps, sourceMap, style, syntax, useSpaces, verbose) { var t2, t3, t4, t0, stylesheet, result, _null = null, t1 = type$.Deprecation_2; logger = new A.DeprecationHandlingLogger0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashSet_LinkedHashSet$_empty(t1), !verbose); t1 = nodeImporter == null; if (t1) t2 = syntax == null || syntax === A.Syntax_forPath0(path); else t2 = false; if (t2) { if (importCache == null) importCache = A.ImportCache$none(logger); t2 = A.absolute(".", _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null); t3 = A.isNodeJs() ? self.process : _null; if (!J.$eq$(t3 == null ? _null : J.get$platform$x(t3), "win32")) { t3 = A.isNodeJs() ? self.process : _null; t3 = J.$eq$(t3 == null ? _null : J.get$platform$x(t3), "darwin"); } else t3 = true; if (t3) { t3 = $.$get$context(); t4 = A._realCasePath0(A.absolute(t3.normalize$1(path), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)); t0 = t4; t4 = t3; t3 = t0; } else { t3 = $.$get$context(); t4 = t3.canonicalize$1(0, path); t0 = t4; t4 = t3; t3 = t0; } t4 = importCache.importCanonical$3$originalUrl(new A.FilesystemImporter0(t2), t4.toUri$1(t3), t4.toUri$1(path)); t4.toString; stylesheet = t4; } else { t2 = A.readFile0(path); t3 = syntax == null ? A.Syntax_forPath0(path) : syntax; stylesheet = A.Stylesheet_Stylesheet$parse0(t2, t3, logger, $.$get$context().toUri$1(path)); } result = A._compileStylesheet1(stylesheet, logger, importCache, nodeImporter, new A.FilesystemImporter0(A.absolute(".", _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)), functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset); logger.summarize$1$js(!t1); return result; }, compileString(source, charset, fatalDeprecations, functions, futureDeprecations, importCache, importer, indentWidth, lineFeed, logger, nodeImporter, quietDeps, sourceMap, style, syntax, url, useSpaces, verbose) { var stylesheet, result, _null = null, t1 = type$.Deprecation_2; logger = new A.DeprecationHandlingLogger0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashSet_LinkedHashSet$_empty(t1), !verbose); stylesheet = A.Stylesheet_Stylesheet$parse0(source, syntax == null ? B.Syntax_SCSS_scss0 : syntax, logger, url); if (importer == null) t1 = A.isBrowser() ? new A.NoOpImporter0() : new A.FilesystemImporter0(A.absolute(".", _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)); else t1 = importer; result = A._compileStylesheet1(stylesheet, logger, importCache, nodeImporter, t1, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset); logger.summarize$1$js(nodeImporter != null); return result; }, _compileStylesheet1(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) { var evaluateResult = A._EvaluateVisitor$1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet), serializeResult = A.serialize0(evaluateResult._1, charset, indentWidth, false, lineFeed, sourceMap, style, useSpaces), resultSourceMap = serializeResult._1; if (resultSourceMap != null && importCache != null) A.mapInPlace0(resultSourceMap.urls, new A._compileStylesheet_closure1(stylesheet, importCache)); return new A.CompileResult0(evaluateResult, serializeResult); }, _compileStylesheet_closure1: function _compileStylesheet_closure1(t0, t1) { this.stylesheet = t0; this.importCache = t1; }, CompileOptions: function CompileOptions() { }, CompileStringOptions: function CompileStringOptions() { }, NodeCompileResult: function NodeCompileResult() { }, CompileResult0: function CompileResult0(t0, t1) { this._evaluate = t0; this._compile_result$_serialize = t1; }, ComplexSassNumber0: function ComplexSassNumber0(t0, t1, t2, t3) { var _ = this; _._complex0$_numeratorUnits = t0; _._complex0$_denominatorUnits = t1; _._number1$_value = t2; _.hashCache = null; _.asSlash = t3; }, ComplexSelector$0(leadingCombinators, components, span, lineBreak) { var t1 = A.List_List$unmodifiable(leadingCombinators, type$.CssValue_Combinator_2), t2 = A.List_List$unmodifiable(components, type$.ComplexSelectorComponent_2); if (t1.length === 0 && t2.length === 0) A.throwExpression(A.ArgumentError$(string$.leadin, null)); return new A.ComplexSelector0(t1, t2, lineBreak, span); }, ComplexSelector0: function ComplexSelector0(t0, t1, t2, t3) { var _ = this; _.leadingCombinators = t0; _.components = t1; _.lineBreak = t2; _._complex$__ComplexSelector_specificity_FI = $; _.span = t3; }, ComplexSelector_specificity_closure0: function ComplexSelector_specificity_closure0() { }, ComplexSelector_singleCompound_closure0: function ComplexSelector_singleCompound_closure0(t0) { this._0_0 = t0; }, ComplexSelector_withAdditionalCombinators_closure0: function ComplexSelector_withAdditionalCombinators_closure0(t0) { this._0_0 = t0; }, ComplexSelector_concatenate_closure0: function ComplexSelector_concatenate_closure0(t0) { this._0_0 = t0; }, ComplexSelectorComponent0: function ComplexSelectorComponent0(t0, t1, t2) { this.selector = t0; this.combinators = t1; this.span = t2; }, ComplexSelectorComponent_toString_closure0: function ComplexSelectorComponent_toString_closure0() { }, CompoundSelector$0(components, span) { var t1 = A.List_List$unmodifiable(components, type$.SimpleSelector_2); if (t1.length === 0) A.throwExpression(A.ArgumentError$("components may not be empty.", null)); return new A.CompoundSelector0(t1, span); }, CompoundSelector0: function CompoundSelector0(t0, t1) { this.components = t0; this._compound$__CompoundSelector_specificity_FI = $; this.span = t1; }, CompoundSelector_specificity_closure0: function CompoundSelector_specificity_closure0() { }, Configuration0: function Configuration0(t0, t1) { this._configuration0$_values = t0; this._configuration0$__originalConfiguration = t1; }, ExplicitConfiguration0: function ExplicitConfiguration0(t0, t1, t2) { this.nodeWithSpan = t0; this._configuration0$_values = t1; this._configuration0$__originalConfiguration = t2; }, ConfiguredValue0: function ConfiguredValue0(t0, t1, t2) { this.value = t0; this.configurationSpan = t1; this.assignmentNode = t2; }, ConfiguredVariable0: function ConfiguredVariable0(t0, t1, t2, t3) { var _ = this; _.name = t0; _.expression = t1; _.isGuarded = t2; _.span = t3; }, ContentBlock$0($arguments, children, span) { var t1 = A.List_List$unmodifiable(children, type$.Statement_2), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0()); return new A.ContentBlock0("@content", $arguments, span, t1, t2); }, ContentBlock0: function ContentBlock0(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.$arguments = t1; _.span = t2; _.children = t3; _.hasDeclarations = t4; }, ContentRule0: function ContentRule0(t0, t1) { this.$arguments = t0; this.span = t1; }, _disallowedFunctionNames_closure0: function _disallowedFunctionNames_closure0() { }, CssParser0: function CssParser0(t0, t1, t2, t3) { var _ = this; _._stylesheet0$_isUseAllowed = true; _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = _._stylesheet0$_inMixin = false; _._stylesheet0$_globalVariables = t0; _.lastSilentComment = null; _.scanner = t1; _.logger = t2; _._parser0$_interpolationMap = t3; }, DebugRule0: function DebugRule0(t0, t1) { this.expression = t0; this.span = t1; }, ModifiableCssDeclaration$0($name, value, span, parsedAsCustomProperty, valueSpanForMap) { var t2, t1 = valueSpanForMap == null ? value.span : valueSpanForMap; if (parsedAsCustomProperty) if (!J.startsWith$1$s($name.value, "--")) A.throwExpression(A.ArgumentError$(string$.parsed, null)); else { t2 = value.value; if (!(t2 instanceof A.SassString0)) A.throwExpression(A.ArgumentError$(string$.If_par + value.toString$0(0) + "` of type " + A.getRuntimeTypeOfDartObject(t2).toString$0(0) + ").", null)); } return new A.ModifiableCssDeclaration0($name, value, parsedAsCustomProperty, t1, span); }, ModifiableCssDeclaration0: function ModifiableCssDeclaration0(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.value = t1; _.parsedAsCustomProperty = t2; _.valueSpanForMap = t3; _.span = t4; _._node$_indexInParent = _._node$_parent = null; _.isGroupEnd = false; }, Declaration$0($name, value, span) { return new A.Declaration0($name, value, span, null, false); }, Declaration$nested0($name, children, span, value) { var t1 = A.List_List$unmodifiable(children, type$.Statement_2), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0()); return new A.Declaration0($name, value, span, t1, t2); }, Declaration0: function Declaration0(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.value = t1; _.span = t2; _.children = t3; _.hasDeclarations = t4; }, SupportsDeclaration0: function SupportsDeclaration0(t0, t1, t2) { this.name = t0; this.value = t1; this.span = t2; }, Deprecation0: function Deprecation0(t0, t1, t2) { this.id = t0; this.isFuture = t1; this._name = t2; }, DeprecationHandlingLogger0: function DeprecationHandlingLogger0(t0, t1, t2, t3, t4) { var _ = this; _._deprecation_handling$_warningCounts = t0; _._deprecation_handling$_inner = t1; _.fatalDeprecations = t2; _.futureDeprecations = t3; _.limitRepetition = t4; }, DeprecationHandlingLogger_warnForDeprecation_closure1: function DeprecationHandlingLogger_warnForDeprecation_closure1(t0) { this._0_0 = t0; }, DeprecationHandlingLogger_warnForDeprecation_closure2: function DeprecationHandlingLogger_warnForDeprecation_closure2(t0) { this._0_0 = t0; }, DeprecationHandlingLogger_summarize_closure1: function DeprecationHandlingLogger_summarize_closure1() { }, DeprecationHandlingLogger_summarize_closure2: function DeprecationHandlingLogger_summarize_closure2() { }, DynamicImport0: function DynamicImport0(t0, t1) { this.urlString = t0; this.span = t1; }, EachRule$0(variables, list, children, span) { var t1 = A.List_List$unmodifiable(variables, type$.String), t2 = A.List_List$unmodifiable(children, type$.Statement_2), t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure0()); return new A.EachRule0(t1, list, span, t2, t3); }, EachRule0: function EachRule0(t0, t1, t2, t3, t4) { var _ = this; _.variables = t0; _.list = t1; _.span = t2; _.children = t3; _.hasDeclarations = t4; }, EachRule_toString_closure0: function EachRule_toString_closure0() { }, EmptyExtensionStore0: function EmptyExtensionStore0() { }, Environment$0() { var t1 = type$.String, t2 = type$.Module_Callable_2, t3 = type$.AstNode_2, t4 = type$.int, t5 = type$.Callable_2, t6 = type$.JSArray_Map_String_Callable_2; 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); }, Environment$_0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) { var t1 = type$.String, t2 = type$.int; 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); }, _EnvironmentModule__EnvironmentModule1(environment, css, preModuleComments, extensionStore, forwarded) { var t1, t2, t3, t4, t5, t6, module, comments, result, t7; if (forwarded == null) forwarded = B.Set_empty4; t1 = type$.dynamic; t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); 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();) { t6 = t4.get$current(t4); module = t6._0; comments = t6._1; result = A.List_List$from(comments, false, t5); result.fixed$length = Array; result.immutable$list = Array; t1.$indexSet(0, module, result); } t1 = A.ConstantMap_ConstantMap$from(t1, t2, t3); t2 = A._EnvironmentModule__makeModulesByVariable1(forwarded); 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); 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); t5 = type$.Map_String_Callable_2; t6 = type$.Callable_2; t7 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure13(), t5), t6); t6 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure14(), t5), t6); 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()); 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())); }, _EnvironmentModule__makeModulesByVariable1(forwarded) { var modulesByVariable, t1, t2, t3, t4, t5; if (forwarded.get$isEmpty(forwarded)) return B.Map_empty10; modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_Callable_2); for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) { t2 = t1.get$current(t1); if (t2 instanceof A._EnvironmentModule1) { for (t3 = t2._environment0$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); t5 = t4.get$variables(); A.setAll0(modulesByVariable, t5.get$keys(t5), t4); } A.setAll0(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._environment0$_environment._environment0$_variables)), t2); } else { t3 = t2.get$variables(); A.setAll0(modulesByVariable, t3.get$keys(t3), t2); } } return modulesByVariable; }, _EnvironmentModule__memberMap1(localMap, otherMaps, $V) { var t1, t2, t3; localMap = new A.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0>")); if (otherMaps.get$isEmpty(otherMaps)) return localMap; t1 = A._setArrayType([], $V._eval$1("JSArray>")); for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) { t3 = t2.get$current(t2); if (t3.get$isNotEmpty(t3)) t1.push(t3); } t1.push(localMap); if (t1.length === 1) return localMap; return A.MergedMapView$0(t1, type$.String, $V); }, _EnvironmentModule$_1(_environment, css, preModuleComments, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) { return new A._EnvironmentModule1(_environment._environment0$_allModules, variables, variableNodes, functions, mixins, extensionStore, css, preModuleComments, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable); }, Environment0: function Environment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) { var _ = this; _._environment0$_modules = t0; _._environment0$_namespaceNodes = t1; _._environment0$_globalModules = t2; _._environment0$_importedModules = t3; _._environment0$_forwardedModules = t4; _._environment0$_nestedForwardedModules = t5; _._environment0$_allModules = t6; _._environment0$_variables = t7; _._environment0$_variableNodes = t8; _._environment0$_variableIndices = t9; _._environment0$_functions = t10; _._environment0$_functionIndices = t11; _._environment0$_mixins = t12; _._environment0$_mixinIndices = t13; _._environment0$_content = t14; _._environment0$_inMixin = false; _._environment0$_inSemiGlobalScope = true; _._environment0$_lastVariableIndex = _._environment0$_lastVariableName = null; }, Environment__getVariableFromGlobalModule_closure0: function Environment__getVariableFromGlobalModule_closure0(t0) { this.name = t0; }, Environment_setVariable_closure2: function Environment_setVariable_closure2(t0, t1) { this.$this = t0; this.name = t1; }, Environment_setVariable_closure3: function Environment_setVariable_closure3(t0) { this.name = t0; }, Environment_setVariable_closure4: function Environment_setVariable_closure4(t0, t1) { this.$this = t0; this.name = t1; }, Environment__getFunctionFromGlobalModule_closure0: function Environment__getFunctionFromGlobalModule_closure0(t0) { this.name = t0; }, Environment__getMixinFromGlobalModule_closure0: function Environment__getMixinFromGlobalModule_closure0(t0) { this.name = t0; }, Environment_toModule_closure0: function Environment_toModule_closure0() { }, Environment_toDummyModule_closure0: function Environment_toDummyModule_closure0() { }, _EnvironmentModule1: function _EnvironmentModule1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) { var _ = this; _.upstream = t0; _.variables = t1; _.variableNodes = t2; _.functions = t3; _.mixins = t4; _.extensionStore = t5; _.css = t6; _.preModuleComments = t7; _.transitivelyContainsCss = t8; _.transitivelyContainsExtensions = t9; _._environment0$_environment = t10; _._environment0$_modulesByVariable = t11; }, _EnvironmentModule__EnvironmentModule_closure11: function _EnvironmentModule__EnvironmentModule_closure11() { }, _EnvironmentModule__EnvironmentModule_closure12: function _EnvironmentModule__EnvironmentModule_closure12() { }, _EnvironmentModule__EnvironmentModule_closure13: function _EnvironmentModule__EnvironmentModule_closure13() { }, _EnvironmentModule__EnvironmentModule_closure14: function _EnvironmentModule__EnvironmentModule_closure14() { }, _EnvironmentModule__EnvironmentModule_closure15: function _EnvironmentModule__EnvironmentModule_closure15() { }, _EnvironmentModule__EnvironmentModule_closure16: function _EnvironmentModule__EnvironmentModule_closure16() { }, ErrorRule0: function ErrorRule0(t0, t1) { this.expression = t0; this.span = t1; }, _EvaluateVisitor$1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) { var t4, t1 = type$.Uri, t2 = type$.Module_Callable_2, t3 = A._setArrayType([], type$.JSArray_Record_2_String_and_AstNode_2); if (nodeImporter == null) t4 = importCache == null ? A.ImportCache$none(logger) : importCache; else t4 = null; 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); t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap); return t1; }, _EvaluateVisitor1: function _EvaluateVisitor1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) { var _ = this; _._evaluate0$_importCache = t0; _._evaluate0$_nodeImporter = t1; _._evaluate0$_builtInFunctions = t2; _._evaluate0$_builtInModules = t3; _._evaluate0$_modules = t4; _._evaluate0$_moduleConfigurations = t5; _._evaluate0$_moduleNodes = t6; _._evaluate0$_logger = t7; _._evaluate0$_warningsEmitted = t8; _._evaluate0$_quietDeps = t9; _._evaluate0$_sourceMap = t10; _._evaluate0$_environment = t11; _._evaluate0$_declarationName = _._evaluate0$__parent = _._evaluate0$_mediaQuerySources = _._evaluate0$_mediaQueries = _._evaluate0$_styleRuleIgnoringAtRoot = null; _._evaluate0$_member = "root stylesheet"; _._evaluate0$_importSpan = _._evaluate0$_callableNode = _._evaluate0$_currentCallable = null; _._evaluate0$_inSupportsDeclaration = _._evaluate0$_inKeyframes = _._evaluate0$_atRootExcludingStyleRule = _._evaluate0$_inUnknownAtRule = _._evaluate0$_inFunction = false; _._evaluate0$_loadedUrls = t12; _._evaluate0$_activeModules = t13; _._evaluate0$_stack = t14; _._evaluate0$_importer = null; _._evaluate0$_inDependency = false; _._evaluate0$__extensionStore = _._evaluate0$_preModuleComments = _._evaluate0$_outOfOrderImports = _._evaluate0$__endOfImports = _._evaluate0$__root = _._evaluate0$__stylesheet = null; _._evaluate0$_configuration = t15; }, _EvaluateVisitor_closure25: function _EvaluateVisitor_closure25(t0) { this.$this = t0; }, _EvaluateVisitor_closure26: function _EvaluateVisitor_closure26(t0) { this.$this = t0; }, _EvaluateVisitor_closure27: function _EvaluateVisitor_closure27(t0) { this.$this = t0; }, _EvaluateVisitor_closure28: function _EvaluateVisitor_closure28(t0) { this.$this = t0; }, _EvaluateVisitor_closure29: function _EvaluateVisitor_closure29(t0) { this.$this = t0; }, _EvaluateVisitor_closure30: function _EvaluateVisitor_closure30(t0) { this.$this = t0; }, _EvaluateVisitor_closure31: function _EvaluateVisitor_closure31(t0) { this.$this = t0; }, _EvaluateVisitor_closure32: function _EvaluateVisitor_closure32(t0) { this.$this = t0; }, _EvaluateVisitor_closure33: function _EvaluateVisitor_closure33(t0) { this.$this = t0; }, _EvaluateVisitor__closure10: function _EvaluateVisitor__closure10(t0, t1, t2) { this.$this = t0; this.name = t1; this.module = t2; }, _EvaluateVisitor_closure34: function _EvaluateVisitor_closure34(t0) { this.$this = t0; }, _EvaluateVisitor__closure9: function _EvaluateVisitor__closure9(t0, t1, t2) { this.$this = t0; this.name = t1; this.module = t2; }, _EvaluateVisitor_closure35: function _EvaluateVisitor_closure35(t0) { this.$this = t0; }, _EvaluateVisitor_closure36: function _EvaluateVisitor_closure36(t0) { this.$this = t0; }, _EvaluateVisitor__closure7: function _EvaluateVisitor__closure7(t0, t1, t2) { this.values = t0; this.span = t1; this.callableNode = t2; }, _EvaluateVisitor__closure8: function _EvaluateVisitor__closure8(t0) { this.$this = t0; }, _EvaluateVisitor_closure37: function _EvaluateVisitor_closure37(t0) { this.$this = t0; }, _EvaluateVisitor_run_closure1: function _EvaluateVisitor_run_closure1(t0, t1, t2) { this.$this = t0; this.node = t1; this.importer = t2; }, _EvaluateVisitor_run__closure1: function _EvaluateVisitor_run__closure1(t0, t1, t2) { this.$this = t0; this.importer = t1; this.node = t2; }, _EvaluateVisitor__loadModule_closure3: function _EvaluateVisitor__loadModule_closure3(t0, t1) { this._box_1 = t0; this.callback = t1; }, _EvaluateVisitor__loadModule_closure4: function _EvaluateVisitor__loadModule_closure4(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.$this = t0; _.url = t1; _.nodeWithSpan = t2; _.baseUrl = t3; _.namesInErrors = t4; _.configuration = t5; _.callback = t6; }, _EvaluateVisitor__loadModule__closure3: function _EvaluateVisitor__loadModule__closure3(t0, t1) { this.$this = t0; this.message = t1; }, _EvaluateVisitor__loadModule__closure4: function _EvaluateVisitor__loadModule__closure4(t0, t1, t2) { this._box_0 = t0; this.callback = t1; this.firstLoad = t2; }, _EvaluateVisitor__execute_closure1: function _EvaluateVisitor__execute_closure1(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.$this = t0; _.importer = t1; _.stylesheet = t2; _.extensionStore = t3; _.configuration = t4; _.css = t5; _.preModuleComments = t6; }, _EvaluateVisitor__combineCss_closure3: function _EvaluateVisitor__combineCss_closure3() { }, _EvaluateVisitor__combineCss_closure4: function _EvaluateVisitor__combineCss_closure4(t0) { this.selectors = t0; }, _EvaluateVisitor__combineCss_visitModule1: function _EvaluateVisitor__combineCss_visitModule1(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.seen = t1; _.clone = t2; _.css = t3; _.imports = t4; _.sorted = t5; }, _EvaluateVisitor__extendModules_closure3: function _EvaluateVisitor__extendModules_closure3(t0) { this.originalSelectors = t0; }, _EvaluateVisitor__extendModules_closure4: function _EvaluateVisitor__extendModules_closure4() { }, _EvaluateVisitor_visitAtRootRule_closure3: function _EvaluateVisitor_visitAtRootRule_closure3(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitAtRootRule_closure4: function _EvaluateVisitor_visitAtRootRule_closure4(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__scopeForAtRoot_closure11: function _EvaluateVisitor__scopeForAtRoot_closure11(t0, t1, t2) { this.$this = t0; this.newParent = t1; this.node = t2; }, _EvaluateVisitor__scopeForAtRoot_closure12: function _EvaluateVisitor__scopeForAtRoot_closure12(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor__scopeForAtRoot_closure13: function _EvaluateVisitor__scopeForAtRoot_closure13(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor__scopeForAtRoot__closure1: function _EvaluateVisitor__scopeForAtRoot__closure1(t0, t1) { this.innerScope = t0; this.callback = t1; }, _EvaluateVisitor__scopeForAtRoot_closure14: function _EvaluateVisitor__scopeForAtRoot_closure14(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor__scopeForAtRoot_closure15: function _EvaluateVisitor__scopeForAtRoot_closure15() { }, _EvaluateVisitor__scopeForAtRoot_closure16: function _EvaluateVisitor__scopeForAtRoot_closure16(t0, t1) { this.$this = t0; this.innerScope = t1; }, _EvaluateVisitor_visitContentRule_closure1: function _EvaluateVisitor_visitContentRule_closure1(t0, t1) { this.$this = t0; this.content = t1; }, _EvaluateVisitor_visitDeclaration_closure1: function _EvaluateVisitor_visitDeclaration_closure1(t0, t1) { this._box_0 = t0; this.$this = t1; }, _EvaluateVisitor_visitEachRule_closure5: function _EvaluateVisitor_visitEachRule_closure5(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.nodeWithSpan = t2; }, _EvaluateVisitor_visitEachRule_closure6: function _EvaluateVisitor_visitEachRule_closure6(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.nodeWithSpan = t2; }, _EvaluateVisitor_visitEachRule_closure7: function _EvaluateVisitor_visitEachRule_closure7(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.list = t1; _.setVariables = t2; _.node = t3; }, _EvaluateVisitor_visitEachRule__closure1: function _EvaluateVisitor_visitEachRule__closure1(t0, t1, t2) { this.$this = t0; this.setVariables = t1; this.node = t2; }, _EvaluateVisitor_visitEachRule___closure1: function _EvaluateVisitor_visitEachRule___closure1(t0) { this.$this = t0; }, _EvaluateVisitor_visitAtRule_closure5: function _EvaluateVisitor_visitAtRule_closure5(t0) { this.$this = t0; }, _EvaluateVisitor_visitAtRule_closure6: function _EvaluateVisitor_visitAtRule_closure6(t0, t1, t2) { this.$this = t0; this.name = t1; this.children = t2; }, _EvaluateVisitor_visitAtRule__closure1: function _EvaluateVisitor_visitAtRule__closure1(t0, t1) { this.$this = t0; this.children = t1; }, _EvaluateVisitor_visitAtRule_closure7: function _EvaluateVisitor_visitAtRule_closure7() { }, _EvaluateVisitor_visitForRule_closure9: function _EvaluateVisitor_visitForRule_closure9(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitForRule_closure10: function _EvaluateVisitor_visitForRule_closure10(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitForRule_closure11: function _EvaluateVisitor_visitForRule_closure11(t0) { this.fromNumber = t0; }, _EvaluateVisitor_visitForRule_closure12: function _EvaluateVisitor_visitForRule_closure12(t0, t1) { this.toNumber = t0; this.fromNumber = t1; }, _EvaluateVisitor_visitForRule_closure13: function _EvaluateVisitor_visitForRule_closure13(t0, t1, t2, t3, t4, t5) { var _ = this; _._box_0 = t0; _.$this = t1; _.node = t2; _.from = t3; _.direction = t4; _.fromNumber = t5; }, _EvaluateVisitor_visitForRule__closure1: function _EvaluateVisitor_visitForRule__closure1(t0) { this.$this = t0; }, _EvaluateVisitor_visitForwardRule_closure3: function _EvaluateVisitor_visitForwardRule_closure3(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitForwardRule_closure4: function _EvaluateVisitor_visitForwardRule_closure4(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__registerCommentsForModule_closure1: function _EvaluateVisitor__registerCommentsForModule_closure1() { }, _EvaluateVisitor_visitIfRule_closure1: function _EvaluateVisitor_visitIfRule_closure1(t0) { this.$this = t0; }, _EvaluateVisitor_visitIfRule__closure1: function _EvaluateVisitor_visitIfRule__closure1(t0, t1) { this.$this = t0; this.clause = t1; }, _EvaluateVisitor_visitIfRule___closure1: function _EvaluateVisitor_visitIfRule___closure1(t0) { this.$this = t0; }, _EvaluateVisitor__visitDynamicImport_closure1: function _EvaluateVisitor__visitDynamicImport_closure1(t0, t1) { this.$this = t0; this.$import = t1; }, _EvaluateVisitor__visitDynamicImport__closure7: function _EvaluateVisitor__visitDynamicImport__closure7(t0) { this.$this = t0; }, _EvaluateVisitor__visitDynamicImport__closure8: function _EvaluateVisitor__visitDynamicImport__closure8() { }, _EvaluateVisitor__visitDynamicImport__closure9: function _EvaluateVisitor__visitDynamicImport__closure9() { }, _EvaluateVisitor__visitDynamicImport__closure10: function _EvaluateVisitor__visitDynamicImport__closure10(t0, t1, t2, t3, t4) { var _ = this; _._box_0 = t0; _.$this = t1; _.loadsUserDefinedModules = t2; _.environment = t3; _.children = t4; }, _EvaluateVisitor__applyMixin_closure6: function _EvaluateVisitor__applyMixin_closure6(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.$arguments = t1; _.mixin = t2; _.nodeWithSpanWithoutContent = t3; }, _EvaluateVisitor__applyMixin__closure4: function _EvaluateVisitor__applyMixin__closure4(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.$arguments = t1; _.mixin = t2; _.nodeWithSpanWithoutContent = t3; }, _EvaluateVisitor__applyMixin_closure5: function _EvaluateVisitor__applyMixin_closure5(t0) { this._1_0 = t0; }, _EvaluateVisitor__applyMixin_closure7: function _EvaluateVisitor__applyMixin_closure7(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.contentCallable = t1; _.mixin = t2; _.nodeWithSpanWithoutContent = t3; }, _EvaluateVisitor__applyMixin__closure3: function _EvaluateVisitor__applyMixin__closure3(t0, t1, t2) { this.$this = t0; this.mixin = t1; this.nodeWithSpanWithoutContent = t2; }, _EvaluateVisitor__applyMixin___closure1: function _EvaluateVisitor__applyMixin___closure1(t0, t1, t2) { this.$this = t0; this.mixin = t1; this.nodeWithSpanWithoutContent = t2; }, _EvaluateVisitor__applyMixin____closure1: function _EvaluateVisitor__applyMixin____closure1(t0, t1) { this.$this = t0; this.statement = t1; }, _EvaluateVisitor_visitIncludeRule_closure5: function _EvaluateVisitor_visitIncludeRule_closure5(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitIncludeRule_closure6: function _EvaluateVisitor_visitIncludeRule_closure6(t0) { this.$this = t0; }, _EvaluateVisitor_visitIncludeRule_closure7: function _EvaluateVisitor_visitIncludeRule_closure7(t0) { this.node = t0; }, _EvaluateVisitor_visitMediaRule_closure5: function _EvaluateVisitor_visitMediaRule_closure5(t0, t1) { this.$this = t0; this.queries = t1; }, _EvaluateVisitor_visitMediaRule_closure6: function _EvaluateVisitor_visitMediaRule_closure6(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.mergedQueries = t1; _.queries = t2; _.mergedSources = t3; _.node = t4; }, _EvaluateVisitor_visitMediaRule__closure1: function _EvaluateVisitor_visitMediaRule__closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitMediaRule___closure1: function _EvaluateVisitor_visitMediaRule___closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitMediaRule_closure7: function _EvaluateVisitor_visitMediaRule_closure7(t0) { this.mergedSources = t0; }, _EvaluateVisitor_visitStyleRule_closure9: function _EvaluateVisitor_visitStyleRule_closure9(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitStyleRule_closure10: function _EvaluateVisitor_visitStyleRule_closure10() { }, _EvaluateVisitor_visitStyleRule_closure11: function _EvaluateVisitor_visitStyleRule_closure11(t0, t1, t2) { this.$this = t0; this.rule = t1; this.node = t2; }, _EvaluateVisitor_visitStyleRule__closure1: function _EvaluateVisitor_visitStyleRule__closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitStyleRule_closure12: function _EvaluateVisitor_visitStyleRule_closure12() { }, _EvaluateVisitor_visitStyleRule_closure13: function _EvaluateVisitor_visitStyleRule_closure13() { }, _EvaluateVisitor_visitSupportsRule_closure3: function _EvaluateVisitor_visitSupportsRule_closure3(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitSupportsRule__closure1: function _EvaluateVisitor_visitSupportsRule__closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitSupportsRule_closure4: function _EvaluateVisitor_visitSupportsRule_closure4() { }, _EvaluateVisitor__visitSupportsCondition_closure1: function _EvaluateVisitor__visitSupportsCondition_closure1(t0, t1) { this._box_0 = t0; this.$this = t1; }, _EvaluateVisitor_visitVariableDeclaration_closure5: function _EvaluateVisitor_visitVariableDeclaration_closure5(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.node = t2; }, _EvaluateVisitor_visitVariableDeclaration_closure6: function _EvaluateVisitor_visitVariableDeclaration_closure6(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitVariableDeclaration_closure7: function _EvaluateVisitor_visitVariableDeclaration_closure7(t0, t1, t2) { this.$this = t0; this.node = t1; this.value = t2; }, _EvaluateVisitor_visitUseRule_closure1: function _EvaluateVisitor_visitUseRule_closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitWarnRule_closure1: function _EvaluateVisitor_visitWarnRule_closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitWhileRule_closure1: function _EvaluateVisitor_visitWhileRule_closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitWhileRule__closure1: function _EvaluateVisitor_visitWhileRule__closure1(t0) { this.$this = t0; }, _EvaluateVisitor_visitBinaryOperationExpression_closure1: function _EvaluateVisitor_visitBinaryOperationExpression_closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__slash_closure3: function _EvaluateVisitor__slash_closure3(t0) { this._1_0 = t0; }, _EvaluateVisitor__slash_closure4: function _EvaluateVisitor__slash_closure4(t0) { this._1_0 = t0; }, _EvaluateVisitor__slash_recommendation1: function _EvaluateVisitor__slash_recommendation1() { }, _EvaluateVisitor_visitVariableExpression_closure1: function _EvaluateVisitor_visitVariableExpression_closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitUnaryOperationExpression_closure1: function _EvaluateVisitor_visitUnaryOperationExpression_closure1(t0, t1) { this.node = t0; this.operand = t1; }, _EvaluateVisitor_visitListExpression_closure1: function _EvaluateVisitor_visitListExpression_closure1(t0) { this.$this = t0; }, _EvaluateVisitor_visitFunctionExpression_closure5: function _EvaluateVisitor_visitFunctionExpression_closure5(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitFunctionExpression_closure6: function _EvaluateVisitor_visitFunctionExpression_closure6() { }, _EvaluateVisitor_visitFunctionExpression_closure7: function _EvaluateVisitor_visitFunctionExpression_closure7(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.node = t2; }, _EvaluateVisitor__checkCalculationArguments_check1: function _EvaluateVisitor__checkCalculationArguments_check1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor__visitCalculationExpression_closure1: function _EvaluateVisitor__visitCalculationExpression_closure1(t0, t1, t2, t3) { var _ = this; _._box_0 = t0; _.$this = t1; _.node = t2; _.inLegacySassFunction = t3; }, _EvaluateVisitor__checkAdjacentCalculationValues_closure1: function _EvaluateVisitor__checkAdjacentCalculationValues_closure1(t0) { this._0_0 = t0; }, _EvaluateVisitor_visitInterpolatedFunctionExpression_closure1: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure1(t0, t1, t2) { this.$this = t0; this.node = t1; this.$function = t2; }, _EvaluateVisitor__runUserDefinedCallable_closure1: function _EvaluateVisitor__runUserDefinedCallable_closure1(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.callable = t1; _.evaluated = t2; _.nodeWithSpan = t3; _.run = t4; _.V = t5; }, _EvaluateVisitor__runUserDefinedCallable__closure1: function _EvaluateVisitor__runUserDefinedCallable__closure1(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.evaluated = t1; _.callable = t2; _.nodeWithSpan = t3; _.run = t4; _.V = t5; }, _EvaluateVisitor__runUserDefinedCallable___closure1: function _EvaluateVisitor__runUserDefinedCallable___closure1(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.evaluated = t1; _.callable = t2; _.nodeWithSpan = t3; _.run = t4; _.V = t5; }, _EvaluateVisitor__runUserDefinedCallable____closure1: function _EvaluateVisitor__runUserDefinedCallable____closure1() { }, _EvaluateVisitor__runFunctionCallable_closure1: function _EvaluateVisitor__runFunctionCallable_closure1(t0, t1) { this.$this = t0; this.callable = t1; }, _EvaluateVisitor__runBuiltInCallable_closure5: function _EvaluateVisitor__runBuiltInCallable_closure5(t0, t1, t2) { this._box_0 = t0; this.evaluated = t1; this.namedSet = t2; }, _EvaluateVisitor__runBuiltInCallable_closure6: function _EvaluateVisitor__runBuiltInCallable_closure6(t0, t1) { this._box_0 = t0; this.evaluated = t1; }, _EvaluateVisitor__runBuiltInCallable_closure7: function _EvaluateVisitor__runBuiltInCallable_closure7() { }, _EvaluateVisitor__evaluateArguments_closure7: function _EvaluateVisitor__evaluateArguments_closure7() { }, _EvaluateVisitor__evaluateArguments_closure8: function _EvaluateVisitor__evaluateArguments_closure8(t0, t1) { this.$this = t0; this.restNodeForSpan = t1; }, _EvaluateVisitor__evaluateArguments_closure9: function _EvaluateVisitor__evaluateArguments_closure9(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.named = t1; _.restNodeForSpan = t2; _.namedNodes = t3; }, _EvaluateVisitor__evaluateArguments_closure10: function _EvaluateVisitor__evaluateArguments_closure10() { }, _EvaluateVisitor__evaluateMacroArguments_closure7: function _EvaluateVisitor__evaluateMacroArguments_closure7(t0) { this.restArgs = t0; }, _EvaluateVisitor__evaluateMacroArguments_closure8: function _EvaluateVisitor__evaluateMacroArguments_closure8(t0, t1, t2) { this.$this = t0; this.restNodeForSpan = t1; this.restArgs = t2; }, _EvaluateVisitor__evaluateMacroArguments_closure9: function _EvaluateVisitor__evaluateMacroArguments_closure9(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.named = t1; _.restNodeForSpan = t2; _.restArgs = t3; }, _EvaluateVisitor__evaluateMacroArguments_closure10: function _EvaluateVisitor__evaluateMacroArguments_closure10(t0, t1, t2) { this.$this = t0; this.keywordRestNodeForSpan = t1; this.keywordRestArgs = t2; }, _EvaluateVisitor__addRestMap_closure1: function _EvaluateVisitor__addRestMap_closure1(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.values = t1; _.convert = t2; _.expressionNode = t3; _.map = t4; _.nodeWithSpan = t5; }, _EvaluateVisitor__verifyArguments_closure1: function _EvaluateVisitor__verifyArguments_closure1(t0, t1, t2) { this.$arguments = t0; this.positional = t1; this.named = t2; }, _EvaluateVisitor_visitCssAtRule_closure3: function _EvaluateVisitor_visitCssAtRule_closure3(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssAtRule_closure4: function _EvaluateVisitor_visitCssAtRule_closure4() { }, _EvaluateVisitor_visitCssKeyframeBlock_closure3: function _EvaluateVisitor_visitCssKeyframeBlock_closure3(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssKeyframeBlock_closure4: function _EvaluateVisitor_visitCssKeyframeBlock_closure4() { }, _EvaluateVisitor_visitCssMediaRule_closure5: function _EvaluateVisitor_visitCssMediaRule_closure5(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssMediaRule_closure6: function _EvaluateVisitor_visitCssMediaRule_closure6(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.mergedQueries = t1; _.node = t2; _.mergedSources = t3; }, _EvaluateVisitor_visitCssMediaRule__closure1: function _EvaluateVisitor_visitCssMediaRule__closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssMediaRule___closure1: function _EvaluateVisitor_visitCssMediaRule___closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssMediaRule_closure7: function _EvaluateVisitor_visitCssMediaRule_closure7(t0) { this.mergedSources = t0; }, _EvaluateVisitor_visitCssStyleRule_closure5: function _EvaluateVisitor_visitCssStyleRule_closure5(t0, t1, t2) { this.$this = t0; this.rule = t1; this.node = t2; }, _EvaluateVisitor_visitCssStyleRule__closure1: function _EvaluateVisitor_visitCssStyleRule__closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssStyleRule_closure6: function _EvaluateVisitor_visitCssStyleRule_closure6() { }, _EvaluateVisitor_visitCssStyleRule_closure7: function _EvaluateVisitor_visitCssStyleRule_closure7(t0) { this._0_0 = t0; }, _EvaluateVisitor_visitCssSupportsRule_closure3: function _EvaluateVisitor_visitCssSupportsRule_closure3(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssSupportsRule__closure1: function _EvaluateVisitor_visitCssSupportsRule__closure1(t0, t1) { this.$this = t0; this.node = t1; }, _EvaluateVisitor_visitCssSupportsRule_closure4: function _EvaluateVisitor_visitCssSupportsRule_closure4() { }, _EvaluateVisitor__performInterpolationHelper_closure1: function _EvaluateVisitor__performInterpolationHelper_closure1(t0) { this.interpolation = t0; }, _EvaluateVisitor__serialize_closure1: function _EvaluateVisitor__serialize_closure1(t0, t1) { this.value = t0; this.quote = t1; }, _EvaluateVisitor__expressionNode_closure1: function _EvaluateVisitor__expressionNode_closure1(t0, t1) { this.$this = t0; this.expression = t1; }, _EvaluateVisitor__withoutSlash_recommendation1: function _EvaluateVisitor__withoutSlash_recommendation1() { }, _EvaluateVisitor__stackFrame_closure1: function _EvaluateVisitor__stackFrame_closure1(t0) { this.$this = t0; }, _ImportedCssVisitor1: function _ImportedCssVisitor1(t0) { this._evaluate0$_visitor = t0; }, _ImportedCssVisitor_visitCssAtRule_closure1: function _ImportedCssVisitor_visitCssAtRule_closure1() { }, _ImportedCssVisitor_visitCssMediaRule_closure1: function _ImportedCssVisitor_visitCssMediaRule_closure1(t0) { this.hasBeenMerged = t0; }, _ImportedCssVisitor_visitCssStyleRule_closure1: function _ImportedCssVisitor_visitCssStyleRule_closure1() { }, _ImportedCssVisitor_visitCssSupportsRule_closure1: function _ImportedCssVisitor_visitCssSupportsRule_closure1() { }, _EvaluationContext1: function _EvaluationContext1(t0, t1) { this._evaluate0$_visitor = t0; this._evaluate0$_defaultWarnNodeWithSpan = t1; }, EveryCssVisitor0: function EveryCssVisitor0() { }, EveryCssVisitor_visitCssAtRule_closure0: function EveryCssVisitor_visitCssAtRule_closure0(t0) { this.$this = t0; }, EveryCssVisitor_visitCssKeyframeBlock_closure0: function EveryCssVisitor_visitCssKeyframeBlock_closure0(t0) { this.$this = t0; }, EveryCssVisitor_visitCssMediaRule_closure0: function EveryCssVisitor_visitCssMediaRule_closure0(t0) { this.$this = t0; }, EveryCssVisitor_visitCssStyleRule_closure0: function EveryCssVisitor_visitCssStyleRule_closure0(t0) { this.$this = t0; }, EveryCssVisitor_visitCssStylesheet_closure0: function EveryCssVisitor_visitCssStylesheet_closure0(t0) { this.$this = t0; }, EveryCssVisitor_visitCssSupportsRule_closure0: function EveryCssVisitor_visitCssSupportsRule_closure0(t0) { this.$this = t0; }, throwNodeException(exception, ascii, color, trace) { var wasAscii, jsException, t1, trace0; trace = trace; wasAscii = $._glyphs === B.C_AsciiGlyphSet; $._glyphs = ascii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet; try { t1 = A.callConstructor($.$get$exceptionClass(), [exception, B.JSString_methods.replaceFirst$2(exception.toString$1$color(0, color), "Error: ", "")]); jsException = type$._NodeException._as(t1); trace0 = A.getTrace0(exception); trace = trace0 == null ? trace : trace0; if (trace != null) A.attachJsStack(jsException, trace); A.jsThrow(jsException); } finally { $._glyphs = wasAscii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet; } }, _NodeException: function _NodeException() { }, exceptionClass_closure: function exceptionClass_closure() { }, exceptionClass__closure: function exceptionClass__closure() { }, exceptionClass__closure0: function exceptionClass__closure0() { }, exceptionClass__closure1: function exceptionClass__closure1() { }, SassException$0(message, span, loadedUrls) { return new A.SassException0(loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span); }, MultiSpanSassException$0(message, span, primaryLabel, secondarySpans, loadedUrls) { var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String); return new A.MultiSpanSassException0(primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span); }, SassRuntimeException$0(message, span, trace, loadedUrls) { return new A.SassRuntimeException0(trace, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span); }, MultiSpanSassRuntimeException$0(message, span, primaryLabel, secondarySpans, trace, loadedUrls) { var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String); return new A.MultiSpanSassRuntimeException0(trace, primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span); }, SassFormatException$0(message, span, loadedUrls) { return new A.SassFormatException0(loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span); }, MultiSpanSassFormatException$0(message, span, primaryLabel, secondarySpans, loadedUrls) { var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String); return new A.MultiSpanSassFormatException0(primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span); }, SassScriptException$0(message, argumentName) { return new A.SassScriptException0(argumentName == null ? message : "$" + argumentName + ": " + message); }, MultiSpanSassScriptException$0(message, primaryLabel, secondarySpans) { var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String); return new A.MultiSpanSassScriptException0(primaryLabel, t1, message); }, SassException0: function SassException0(t0, t1, t2) { this.loadedUrls = t0; this._span_exception$_message = t1; this._span = t2; }, MultiSpanSassException0: function MultiSpanSassException0(t0, t1, t2, t3, t4) { var _ = this; _.primaryLabel = t0; _.secondarySpans = t1; _.loadedUrls = t2; _._span_exception$_message = t3; _._span = t4; }, SassRuntimeException0: function SassRuntimeException0(t0, t1, t2, t3) { var _ = this; _.trace = t0; _.loadedUrls = t1; _._span_exception$_message = t2; _._span = t3; }, MultiSpanSassRuntimeException0: function MultiSpanSassRuntimeException0(t0, t1, t2, t3, t4, t5) { var _ = this; _.trace = t0; _.primaryLabel = t1; _.secondarySpans = t2; _.loadedUrls = t3; _._span_exception$_message = t4; _._span = t5; }, SassFormatException0: function SassFormatException0(t0, t1, t2) { this.loadedUrls = t0; this._span_exception$_message = t1; this._span = t2; }, MultiSpanSassFormatException0: function MultiSpanSassFormatException0(t0, t1, t2, t3, t4) { var _ = this; _.primaryLabel = t0; _.secondarySpans = t1; _.loadedUrls = t2; _._span_exception$_message = t3; _._span = t4; }, SassScriptException0: function SassScriptException0(t0) { this.message = t0; }, MultiSpanSassScriptException0: function MultiSpanSassScriptException0(t0, t1, t2) { this.primaryLabel = t0; this.secondarySpans = t1; this.message = t2; }, Exports: function Exports() { }, LoggerNamespace: function LoggerNamespace() { }, _IsCalculationSafeVisitor0: function _IsCalculationSafeVisitor0() { }, _IsCalculationSafeVisitor_visitListExpression_closure0: function _IsCalculationSafeVisitor_visitListExpression_closure0(t0) { this.$this = t0; }, expressionToCalc0(expression) { var t1 = A._setArrayType([B.C__MakeExpressionCalculationSafe0.visitBinaryOperationExpression$1(expression)], type$.JSArray_Expression_2), t2 = expression.get$span(expression), t3 = type$.Expression_2; return new A.FunctionExpression0(null, "calc", new A.ArgumentInvocation0(A.List_List$unmodifiable(t1, t3), A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t3), null, null, t2), expression.get$span(expression)); }, _MakeExpressionCalculationSafe0: function _MakeExpressionCalculationSafe0() { }, __MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0: function __MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0() { }, ExtendRule0: function ExtendRule0(t0, t1, t2) { this.selector = t0; this.isOptional = t1; this.span = t2; }, Extension0: function Extension0(t0, t1, t2, t3, t4) { var _ = this; _.extender = t0; _.target = t1; _.mediaContext = t2; _.isOptional = t3; _.span = t4; }, Extender0: function Extender0(t0, t1) { this.selector = t0; this.isOriginal = t1; this._extension$_extension = null; }, ExtensionStore__extendOrReplace0(selector, source, targets, mode, span) { var t1, t2, t3, t4, t5, t6, t7, t8, _i, complex, compound, t9, t10, t11, _i0, simple, t12, _i1, t13, t14, extender = A.ExtensionStore$_mode0(mode); if (!selector.accept$1(B._IsInvisibleVisitor_true0)) extender._extension_store$_originals.addAll$1(0, selector.components); 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) { complex = t1[_i]; compound = complex.get$singleCompound(); if (compound == null) throw A.wrapException(A.SassScriptException$0("Can't extend complex selector " + A.S(complex) + ".", null)); t9 = A.LinkedHashMap_LinkedHashMap$_empty(t7, t8); for (t10 = compound.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0) { simple = t10[_i0]; t12 = A.LinkedHashMap_LinkedHashMap$_empty(t5, t6); for (_i1 = 0; _i1 < t4; ++_i1) { complex = t3[_i1]; complex.get$specificity(); t13 = new A.Extender0(complex, false); t14 = new A.Extension0(t13, simple, null, true, span); t13._extension$_extension = t14; t12.$indexSet(0, complex, t14); } t9.$indexSet(0, simple, t12); } selector = extender._extension_store$_extendList$2(selector, t9); } return selector; }, ExtensionStore$0() { var t1 = type$.SimpleSelector_2; 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); }, ExtensionStore$_mode0(_mode) { var t1 = type$.SimpleSelector_2; 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); }, ExtensionStore0: function ExtensionStore0(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _._extension_store$_selectors = t0; _._extension_store$_extensions = t1; _._extension_store$_extensionsByExtender = t2; _._extension_store$_mediaContexts = t3; _._extension_store$_sourceSpecificity = t4; _._extension_store$_originals = t5; _._extension_store$_mode = t6; }, ExtensionStore_extensionsWhereTarget_closure0: function ExtensionStore_extensionsWhereTarget_closure0() { }, ExtensionStore__registerSelector_closure1: function ExtensionStore__registerSelector_closure1() { }, ExtensionStore__registerSelector_closure2: function ExtensionStore__registerSelector_closure2(t0) { this._0_0 = t0; }, ExtensionStore_addExtension_closure2: function ExtensionStore_addExtension_closure2() { }, ExtensionStore_addExtension_closure3: function ExtensionStore_addExtension_closure3() { }, ExtensionStore_addExtension_closure4: function ExtensionStore_addExtension_closure4(t0) { this.complex = t0; }, ExtensionStore__simpleSelectors_closure0: function ExtensionStore__simpleSelectors_closure0(t0) { this._0_0 = t0; }, ExtensionStore__extendExistingExtensions_closure1: function ExtensionStore__extendExistingExtensions_closure1() { }, ExtensionStore__extendExistingExtensions_closure2: function ExtensionStore__extendExistingExtensions_closure2() { }, ExtensionStore_addExtensions_closure0: function ExtensionStore_addExtensions_closure0() { }, ExtensionStore__extendComplex_closure0: function ExtensionStore__extendComplex_closure0(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.complex = t2; }, ExtensionStore__extendComplex__closure0: function ExtensionStore__extendComplex__closure0(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.complex = t2; }, ExtensionStore__extendCompound_closure2: function ExtensionStore__extendCompound_closure2() { }, ExtensionStore__extendCompound_closure3: function ExtensionStore__extendCompound_closure3() { }, ExtensionStore__extendCompound_closure4: function ExtensionStore__extendCompound_closure4(t0) { this.original = t0; }, ExtensionStore__extendSimple_withoutPseudo0: function ExtensionStore__extendSimple_withoutPseudo0(t0, t1, t2) { this.$this = t0; this.extensions = t1; this.targetsUsed = t2; }, ExtensionStore__extendSimple_closure1: function ExtensionStore__extendSimple_closure1(t0, t1) { this.$this = t0; this.withoutPseudo = t1; }, ExtensionStore__extendSimple_closure2: function ExtensionStore__extendSimple_closure2() { }, ExtensionStore__extendPseudo_closure4: function ExtensionStore__extendPseudo_closure4() { }, ExtensionStore__extendPseudo_closure5: function ExtensionStore__extendPseudo_closure5() { }, ExtensionStore__extendPseudo_closure6: function ExtensionStore__extendPseudo_closure6() { }, ExtensionStore__extendPseudo_closure7: function ExtensionStore__extendPseudo_closure7(t0) { this.pseudo = t0; }, ExtensionStore__extendPseudo_closure8: function ExtensionStore__extendPseudo_closure8(t0, t1) { this.pseudo = t0; this.selector = t1; }, ExtensionStore__trim_closure1: function ExtensionStore__trim_closure1(t0, t1) { this._box_0 = t0; this.complex1 = t1; }, ExtensionStore__trim_closure2: function ExtensionStore__trim_closure2(t0, t1) { this._box_0 = t0; this.complex1 = t1; }, ExtensionStore_clone_closure0: function ExtensionStore_clone_closure0(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.newSelectors = t1; _.oldToNewSelectors = t2; _.newMediaContexts = t3; }, FiberClass: function FiberClass() { }, Fiber: function Fiber() { }, JSToDartFileImporter: function JSToDartFileImporter(t0) { this._file0$_findFileUrl = t0; }, JSToDartFileImporter_canonicalize_closure: function JSToDartFileImporter_canonicalize_closure(t0, t1) { this.$this = t0; this.url = t1; }, FilesystemImporter$(loadPath) { var _null = null; return new A.FilesystemImporter0(A.absolute(loadPath, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)); }, FilesystemImporter0: function FilesystemImporter0(t0) { this._filesystem$_loadPath = t0; }, FilesystemImporter_canonicalize_closure0: function FilesystemImporter_canonicalize_closure0() { }, ForRule$0(variable, from, to, children, span, exclusive) { var t1 = A.List_List$unmodifiable(children, type$.Statement_2), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0()); return new A.ForRule0(variable, from, to, exclusive, span, t1, t2); }, ForRule0: function ForRule0(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.variable = t0; _.from = t1; _.to = t2; _.isExclusive = t3; _.span = t4; _.children = t5; _.hasDeclarations = t6; }, ForwardRule0: function ForwardRule0(t0, t1, t2, t3, t4, t5, t6, t7) { var _ = this; _.url = t0; _.shownMixinsAndFunctions = t1; _.shownVariables = t2; _.hiddenMixinsAndFunctions = t3; _.hiddenVariables = t4; _.prefix = t5; _.configuration = t6; _.span = t7; }, ForwardedModuleView_ifNecessary0(inner, rule, $T) { var t1; if (rule.prefix == null) if (rule.shownMixinsAndFunctions == null) if (rule.shownVariables == null) { t1 = rule.hiddenMixinsAndFunctions; if (t1 == null) t1 = null; else { t1 = t1._base; t1 = t1.get$isEmpty(t1); } if (t1 === true) { t1 = rule.hiddenVariables; if (t1 == null) t1 = null; else { t1 = t1._base; t1 = t1.get$isEmpty(t1); } t1 = t1 === true; } else t1 = false; } else t1 = false; else t1 = false; else t1 = false; if (t1) return inner; else return A.ForwardedModuleView$0(inner, rule, $T); }, ForwardedModuleView$0(_inner, _rule, $T) { var t1 = _rule.prefix, t2 = _rule.shownVariables, t3 = _rule.hiddenVariables, t4 = _rule.shownMixinsAndFunctions, t5 = _rule.hiddenMixinsAndFunctions; 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>")); }, ForwardedModuleView__forwardedMap0(map, prefix, safelist, blocklist, $V) { var t2, t1 = prefix == null; if (t1) if (safelist == null) if (blocklist != null) { t2 = blocklist._base; t2 = t2.get$isEmpty(t2); } else t2 = true; else t2 = false; else t2 = false; if (t2) return map; if (!t1) map = new A.PrefixedMapView0(map, prefix, $V._eval$1("PrefixedMapView0<0>")); if (safelist != null) 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>")); else { if (blocklist != null) { t1 = blocklist._base; t1 = t1.get$isNotEmpty(t1); } else t1 = false; if (t1) map = A.LimitedMapView$blocklist0(map, blocklist, type$.String, $V); } return map; }, ForwardedModuleView0: function ForwardedModuleView0(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _._forwarded_view0$_inner = t0; _._forwarded_view0$_rule = t1; _.variables = t2; _.variableNodes = t3; _.functions = t4; _.mixins = t5; _.$ti = t6; }, FunctionExpression0: function FunctionExpression0(t0, t1, t2, t3) { var _ = this; _.namespace = t0; _.originalName = t1; _.$arguments = t2; _.span = t3; }, JSFunction0: function JSFunction0() { }, SupportsFunction0: function SupportsFunction0(t0, t1, t2) { this.name = t0; this.$arguments = t1; this.span = t2; }, functionClass_closure: function functionClass_closure() { }, functionClass__closure: function functionClass__closure() { }, functionClass__closure0: function functionClass__closure0() { }, SassFunction0: function SassFunction0(t0) { this.callable = t0; }, FunctionRule$0($name, $arguments, children, span, comment) { var t1 = A.List_List$unmodifiable(children, type$.Statement_2), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0()); return new A.FunctionRule0($name, $arguments, span, t1, t2); }, FunctionRule0: function FunctionRule0(t0, t1, t2, t3, t4) { var _ = this; _.name = t0; _.$arguments = t1; _.span = t2; _.children = t3; _.hasDeclarations = t4; }, unifyComplex0(complexes, span) { var t2, trailingCombinator, leadingCombinator, unifiedBase, t3, _0_6, newLeadingCombinator, t4, base, _1_1, newTrailingCombinator, _i, t5, t6, t7, t8, _null = null, t1 = J.getInterceptor$asx(complexes); if (t1.get$length(complexes) === 1) return complexes; for (t2 = t1.get$iterator(complexes), trailingCombinator = _null, leadingCombinator = trailingCombinator, unifiedBase = leadingCombinator; t2.moveNext$0();) { t3 = t2.get$current(t2); if (t3.accept$1(B.C__IsUselessVisitor0)) return _null; _0_6 = A._InitializedCell$(new A.unifyComplex_closure2(t3)); t3 = t3.components; if (t3.length === 1) if (J.get$length$asx(_0_6._readFinal$0()) === 1) { newLeadingCombinator = J.$index$asx(_0_6._readFinal$0(), 0); t4 = true; } else { newLeadingCombinator = _null; t4 = false; } else { newLeadingCombinator = _null; t4 = false; } if (t4) if (leadingCombinator == null) leadingCombinator = newLeadingCombinator; else if (!leadingCombinator.$eq(0, newLeadingCombinator)) return _null; base = B.JSArray_methods.get$last(t3); _1_1 = A._InitializedCell$(new A.unifyComplex_closure3(base)); if (J.get$length$asx(_1_1._readFinal$0()) === 1) { newTrailingCombinator = J.$index$asx(_1_1._readFinal$0(), 0); t3 = true; } else { newTrailingCombinator = _null; t3 = false; } if (t3) { if (trailingCombinator != null && !trailingCombinator.$eq(0, newTrailingCombinator)) return _null; trailingCombinator = newTrailingCombinator; } if (unifiedBase == null) unifiedBase = base.selector.components; else for (t3 = base.selector.components, t4 = t3.length, _i = 0; _i < t4; ++_i) { unifiedBase = t3[_i].unify$1(unifiedBase); if (unifiedBase == null) return _null; } } t2 = type$.JSArray_ComplexSelector_2; t3 = A._setArrayType([], t2); for (t4 = t1.get$iterator(complexes); t4.moveNext$0();) { t5 = t4.get$current(t4); t6 = t5.components; t7 = t6.length; if (t7 > 1) { t8 = t5.leadingCombinators; t3.push(A.ComplexSelector$0(t8, B.JSArray_methods.take$1(t6, t7 - 1), t5.span, t5.lineBreak)); } } t4 = leadingCombinator == null ? B.List_empty14 : A._setArrayType([leadingCombinator], type$.JSArray_CssValue_Combinator_2); unifiedBase.toString; t5 = A.CompoundSelector$0(unifiedBase, span); t6 = trailingCombinator == null ? B.List_empty14 : A._setArrayType([trailingCombinator], type$.JSArray_CssValue_Combinator_2); base = A.ComplexSelector$0(t4, A._setArrayType([new A.ComplexSelectorComponent0(t5, A.List_List$unmodifiable(t6, type$.CssValue_Combinator_2), span)], type$.JSArray_ComplexSelectorComponent_2), span, t1.any$1(complexes, new A.unifyComplex_closure4())); if (t3.length === 0) t1 = A._setArrayType([base], t2); else { t1 = A.List_List$of(A.IterableExtension_get_exceptLast0(t3), true, type$.ComplexSelector_2); t1.push(B.JSArray_methods.get$last(t3).concatenate$2(base, span)); } return A.weave0(t1, span, false); }, unifyCompound0(compound1, compound2) { var t1, t2, _i, unified, result = compound2.components; for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i, result = unified) { unified = t1[_i].unify$1(result); if (unified == null) return null; } return A.CompoundSelector$0(result, compound1.span); }, unifyUniversalAndElement0(selector1, selector2) { var namespace, $name, t1, _0_0 = A._namespaceAndName0(selector1, "selector1"), namespace1 = _0_0._0, name1 = _0_0._1, _1_0 = A._namespaceAndName0(selector2, "selector2"), namespace2 = _1_0._0, name2 = _1_0._1; if (namespace1 == namespace2 || namespace2 === "*") namespace = namespace1; else { if (namespace1 !== "*") return null; namespace = namespace2; } if (name1 == name2 || name2 == null) $name = name1; else { if (!(name1 == null || name1 === "*")) return null; $name = name2; } t1 = selector1.span; return $name == null ? new A.UniversalSelector0(namespace, t1) : new A.TypeSelector0(new A.QualifiedName0($name, namespace), t1); }, _namespaceAndName0(selector, $name) { var namespace, t1, name0, _null = null, _0_4 = A._InitializedCell$(new A._namespaceAndName_closure0(selector)); $label0$0: { if (selector instanceof A.UniversalSelector0) { namespace = selector.namespace; t1 = true; } else { namespace = _null; t1 = false; } if (t1) { t1 = new A._Record_2(namespace, _null); break $label0$0; } if (selector instanceof A.TypeSelector0) { name0 = _0_4._readFinal$0().name; namespace = _0_4._readFinal$0().namespace; t1 = true; } else { namespace = _null; name0 = namespace; t1 = false; } if (t1) { t1 = new A._Record_2(namespace, name0); break $label0$0; } t1 = A.throwExpression(A.ArgumentError$value(selector, $name, string$.must_b)); } return t1; }, weave0(complexes, span, forceLineBreak) { var complex, t2, prefixes, t3, t4, t5, t6, i, t7, t8, _i, t9, t10, _i0, parentPrefix, t11, t12, t1 = J.getInterceptor$asx(complexes); if (t1.get$length(complexes) === 1) { complex = t1.$index(complexes, 0); t2 = true; } else { complex = null; t2 = false; } if (t2) { if (!forceLineBreak || complex.lineBreak) return complexes; return A._setArrayType([A.ComplexSelector$0(complex.leadingCombinators, complex.components, complex.span, true)], type$.JSArray_ComplexSelector_2); } t2 = type$.JSArray_ComplexSelector_2; prefixes = A._setArrayType([t1.get$first(complexes)], t2); for (t1 = t1.skip$1(complexes, 1), t1 = new A.ListIterator(t1, t1.get$length(t1)), t3 = type$.ComplexSelectorComponent_2, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t5 = t1.__internal$_current; if (t5 == null) t5 = t4._as(t5); t6 = t5.components; if (t6.length === 1) { for (i = 0; i < prefixes.length; ++i) prefixes[i] = prefixes[i].concatenate$3$forceLineBreak(t5, span, forceLineBreak); continue; } t7 = A._setArrayType([], t2); for (t8 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t8 || (0, A.throwConcurrentModificationError)(prefixes), ++_i) { t9 = A._weaveParents0(prefixes[_i], t5, span); if (t9 == null) t9 = B.List_empty15; t10 = t9.length; _i0 = 0; for (; _i0 < t9.length; t9.length === t10 || (0, A.throwConcurrentModificationError)(t9), ++_i0) { parentPrefix = t9[_i0]; t11 = B.JSArray_methods.get$last(t6); t12 = A.List_List$of(parentPrefix.components, true, t3); t12.push(t11); t11 = parentPrefix.lineBreak || forceLineBreak; t7.push(A.ComplexSelector$0(parentPrefix.leadingCombinators, t12, span, t11)); } } prefixes = t7; } return prefixes; }, _weaveParents0(prefix, base, span) { var t1, queue1, queue2, trailingCombinators, _0_0, _0_1, _0_3, rootish1, rootish2, rootish, t2, t3, rootish_case_0, rootish_case_1, groups1, groups2, lcs, choices, t4, _i, group, t5, t6, t7, _i0, chunk, t8, t9, _null = null, leadingCombinators = A._mergeLeadingCombinators0(prefix.leadingCombinators, base.leadingCombinators); if (leadingCombinators == null) return _null; t1 = type$.ComplexSelectorComponent_2; queue1 = A.QueueList_QueueList$from(prefix.components, t1); queue2 = A.QueueList_QueueList$from(A.IterableExtension_get_exceptLast0(base.components), t1); trailingCombinators = A._mergeTrailingCombinators0(queue1, queue2, span, _null); if (trailingCombinators == null) return _null; $label0$0: { _0_0 = new A._Record_2(A._firstIfRootish0(queue1), A._firstIfRootish0(queue2)); _0_1 = A._InitializedCell$(new A._weaveParents_closure5(_0_0)); _0_3 = A._InitializedCell$(new A._weaveParents_closure6(_0_0)); if (_0_1._readFinal$0() != null) { rootish1 = _0_1._readFinal$0(); t1 = true; } else { rootish1 = _null; t1 = false; } if (t1) if (_0_3._readFinal$0() != null) { rootish2 = _0_3._readFinal$0(); t1 = true; } else { rootish2 = _null; t1 = false; } else { rootish2 = _null; t1 = false; } if (t1) { rootish = A.unifyCompound0(rootish1.selector, rootish2.selector); if (rootish == null) return _null; t1 = rootish1.combinators; t2 = rootish1.span; t3 = type$.CssValue_Combinator_2; queue1.addFirst$1(new A.ComplexSelectorComponent0(rootish, A.List_List$unmodifiable(t1, t3), t2)); queue2.addFirst$1(new A.ComplexSelectorComponent0(rootish, A.List_List$unmodifiable(rootish2.combinators, t3), t2)); break $label0$0; } if (_0_1._readFinal$0() != null) { rootish_case_0 = _0_1._readFinal$0(); t1 = true; } else { rootish_case_0 = _null; t1 = false; } if (t1) if (_0_3._readFinal$0() == null) { t1 = rootish_case_0; t2 = true; } else { t1 = _null; t2 = false; } else { t1 = _null; t2 = false; } if (!t2) if (_0_1._readFinal$0() == null) { if (_0_3._readFinal$0() != null) { rootish_case_1 = _0_3._readFinal$0(); t2 = true; } else { rootish_case_1 = _null; t2 = false; } if (t2) { t1 = rootish_case_1; t2 = true; } else t2 = false; } else t2 = false; else t2 = true; if (t2) { queue1.addFirst$1(t1); queue2.addFirst$1(t1); } } groups1 = A._groupSelectors0(queue1); groups2 = A._groupSelectors0(queue2); t1 = type$.List_ComplexSelectorComponent_2; lcs = A.longestCommonSubsequence0(groups2, groups1, new A._weaveParents_closure7(span), t1); choices = A._setArrayType([], type$.JSArray_List_Iterable_ComplexSelectorComponent_2); 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) { group = lcs[_i]; t5 = A._setArrayType([], t3); for (t6 = A._chunks0(groups1, groups2, new A._weaveParents_closure8(group), t1), t7 = t6.length, _i0 = 0; _i0 < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i0) { chunk = t6[_i0]; t8 = A._setArrayType([], t4); for (t9 = J.get$iterator$ax(chunk); t9.moveNext$0();) B.JSArray_methods.addAll$1(t8, t9.get$current(t9)); t5.push(t8); } choices.push(t5); choices.push(A._setArrayType([group], t3)); groups1.removeFirst$0(); groups2.removeFirst$0(); } t2 = A._setArrayType([], t3); for (t1 = A._chunks0(groups1, groups2, new A._weaveParents_closure9(), t1), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, A.throwConcurrentModificationError)(t1), ++_i) { chunk = t1[_i]; t5 = A._setArrayType([], t4); for (t6 = J.get$iterator$ax(chunk); t6.moveNext$0();) B.JSArray_methods.addAll$1(t5, t6.get$current(t6)); t2.push(t5); } choices.push(t2); B.JSArray_methods.addAll$1(choices, trailingCombinators); t1 = A._setArrayType([], type$.JSArray_ComplexSelector_2); for (t2 = J.get$iterator$ax(A.paths0(new A.WhereIterable(choices, new A._weaveParents_closure10(), type$.WhereIterable_List_Iterable_ComplexSelectorComponent_2), type$.Iterable_ComplexSelectorComponent_2)), t3 = !prefix.lineBreak, t5 = base.lineBreak; t2.moveNext$0();) { t6 = t2.get$current(t2); t7 = A._setArrayType([], t4); for (t6 = J.get$iterator$ax(t6); t6.moveNext$0();) B.JSArray_methods.addAll$1(t7, t6.get$current(t6)); t1.push(A.ComplexSelector$0(leadingCombinators, t7, span, !t3 || t5)); } return t1; }, _firstIfRootish0(queue) { var first, t1, t2, _i, simple, t3; if (queue.get$length(queue) >= 1) { first = queue.$index(0, 0); t1 = true; } else { first = null; t1 = false; } if (t1) for (t1 = first.selector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) { simple = t1[_i]; if (simple instanceof A.PseudoSelector0) if (simple.isClass) t3 = $._rootishPseudoClasses0.contains$1(0, simple.normalizedName); else t3 = false; else t3 = false; if (t3) { queue.removeFirst$0(); return first; } } return null; }, _mergeLeadingCombinators0(combinators1, combinators2) { var t1, t2, combinators, _null = null, _0_0 = new A._Record_2(combinators1, combinators2), _0_1 = A._InitializedCell$(new A._mergeLeadingCombinators_closure3(_0_0)), _0_4 = A._InitializedCell$(new A._mergeLeadingCombinators_closure4(_0_0)), _0_7 = A._InitializedCell$(new A._mergeLeadingCombinators_closure5(_0_1)), _0_11 = A._InitializedCell$(new A._mergeLeadingCombinators_closure6(_0_4)); $label0$0: { if (_0_1._readFinal$0() == null || _0_4._readFinal$0() == null) { t1 = _null; break $label0$0; } t1 = type$.List_CssValue_Combinator_2; if (!(t1._is(_0_1._readFinal$0()) && _0_7._readFinal$0() > 1)) t2 = t1._is(_0_4._readFinal$0()) && _0_11._readFinal$0() > 1; else t2 = true; if (t2) { t1 = _null; break $label0$0; } if (t1._is(_0_1._readFinal$0())) if (_0_7._readFinal$0() <= 0) { combinators = _0_4._readFinal$0(); t2 = true; } else { combinators = _null; t2 = false; } else { combinators = _null; t2 = false; } if (!t2) { combinators = _0_1._readFinal$0(); t1 = t1._is(_0_4._readFinal$0()) && _0_11._readFinal$0() <= 0; } else t1 = true; if (t1) { t1 = combinators; break $label0$0; } t1 = B.C_ListEquality.equals$2(0, combinators1, combinators2) ? combinators1 : _null; break $label0$0; } return t1; }, _mergeTrailingCombinators0(components1, components2, span, result) { var _0_1, last, t1, _1_1, t2, t3, _4_0, _4_1, _4_3, _4_4, _4_5, _4_9, _4_6, _4_7, _4_10, component1, component2, t4, t5, choices, _2_0, unified, followingComponents, nextComponents, followingComponents0, next, following, _3_0, siblingComponents_case_0, siblingComponents_case_1, combinator1, combinator2, combinator_case_0, combinatorComponents_case_0, descendantComponents_case_0, combinator_case_1, descendantComponents_case_1, combinatorComponents_case_1, _null = null; if (result == null) result = A.QueueList$(_null, type$.List_List_ComplexSelectorComponent_2); _0_1 = A._InitializedCell$(new A._mergeTrailingCombinators_closure9(components1)); $label0$0: { if (_0_1._readFinal$0() >= 1) { last = components1.$index(0, _0_1._readFinal$0() - 1); t1 = true; } else { last = _null; t1 = false; } if (t1) { t1 = last.combinators; break $label0$0; } t1 = B.List_empty14; break $label0$0; } _1_1 = A._InitializedCell$(new A._mergeTrailingCombinators_closure10(components2)); $label1$1: { if (_1_1._readFinal$0() >= 1) { last = components2.$index(0, _1_1._readFinal$0() - 1); t2 = true; } else { last = _null; t2 = false; } if (t2) { t2 = last.combinators; break $label1$1; } t2 = B.List_empty14; break $label1$1; } t3 = t1.length; if (t3 === 0 && t2.length === 0) return result; if (t3 > 1 || t2.length > 1) return _null; $label2$2: { t3 = A.IterableExtension_get_firstOrNull(t1); t3 = t3 == null ? _null : t3.value; t2 = A.IterableExtension_get_firstOrNull(t2); _4_0 = new A._Record_4([t3, t2 == null ? _null : t2.value, components1, components2]); _4_1 = A._InitializedCell$(new A._mergeTrailingCombinators_closure11(_4_0)); _4_3 = A._InitializedCell$(new A._mergeTrailingCombinators_closure12(_4_1)); _4_4 = A._InitializedCell$(new A._mergeTrailingCombinators_closure13(_4_0)); _4_5 = A._InitializedCell$(new A._mergeTrailingCombinators_closure14(_4_4)); _4_9 = A._InitializedCell$(new A._mergeTrailingCombinators_closure15(_4_4)); _4_6 = A._InitializedCell$(new A._mergeTrailingCombinators_closure16(_4_0)); _4_7 = A._InitializedCell$(new A._mergeTrailingCombinators_closure17(_4_0)); _4_10 = A._InitializedCell$(new A._mergeTrailingCombinators_closure18(_4_1)); if (_4_3._readFinal$0() && _4_5._readFinal$0()) { component1 = components1.removeLast$0(0); component2 = components2.removeLast$0(0); t2 = component1.selector; t3 = component2.selector; if (A.compoundIsSuperselector0(t2, t3, _null)) result.addFirst$1(A._setArrayType([A._setArrayType([component2], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2)); else { t4 = type$.JSArray_ComplexSelectorComponent_2; t5 = type$.JSArray_List_ComplexSelectorComponent_2; if (A.compoundIsSuperselector0(t3, t2, _null)) result.addFirst$1(A._setArrayType([A._setArrayType([component1], t4)], t5)); else { choices = A._setArrayType([A._setArrayType([component1, component2], t4), A._setArrayType([component2, component1], t4)], t5); _2_0 = A.unifyCompound0(t2, t3); if (_2_0 != null) { unified = _2_0; t2 = true; } else { unified = _null; t2 = false; } if (t2) choices.push(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)], t4)); result.addFirst$1(choices); } } break $label2$2; } if (_4_3._readFinal$0()) if (_4_9._readFinal$0()) { followingComponents = _4_6._readFinal$0(); nextComponents = _4_7._readFinal$0(); nextComponents = nextComponents; t2 = true; } else { nextComponents = _null; followingComponents = nextComponents; t2 = false; } else { nextComponents = _null; followingComponents = nextComponents; t2 = false; } if (!t2) if (_4_10._readFinal$0()) if (_4_5._readFinal$0()) { nextComponents = _4_6._readFinal$0(); followingComponents0 = _4_7._readFinal$0(); followingComponents = followingComponents0; t2 = true; } else t2 = false; else t2 = false; else t2 = true; if (t2) { next = nextComponents.removeLast$0(0); following = followingComponents.removeLast$0(0); t1 = following.selector; t2 = next.selector; t3 = type$.JSArray_ComplexSelectorComponent_2; t4 = type$.JSArray_List_ComplexSelectorComponent_2; if (A.compoundIsSuperselector0(t1, t2, _null)) result.addFirst$1(A._setArrayType([A._setArrayType([next], t3)], t4)); else { t4 = A._setArrayType([A._setArrayType([following, next], t3)], t4); _3_0 = A.unifyCompound0(t1, t2); if (_3_0 != null) { unified = _3_0; t1 = true; } else { unified = _null; t1 = false; } if (t1) t4.push(A._setArrayType([new A.ComplexSelectorComponent0(unified, A.List_List$unmodifiable(next.combinators, type$.CssValue_Combinator_2), span)], t3)); result.addFirst$1(t4); } break $label2$2; } if (B.Combinator_Cht0 === _4_1._readFinal$0()) if (_4_9._readFinal$0() || _4_5._readFinal$0()) { siblingComponents_case_0 = _4_7._readFinal$0(); t2 = siblingComponents_case_0; t3 = true; } else { t2 = _null; t3 = false; } else { t2 = _null; t3 = false; } if (!t3) if (_4_10._readFinal$0() || _4_3._readFinal$0()) if (B.Combinator_Cht0 === _4_4._readFinal$0()) { siblingComponents_case_1 = _4_6._readFinal$0(); t2 = siblingComponents_case_1; t3 = true; } else t3 = false; else t3 = false; else t3 = true; if (t3) { result.addFirst$1(A._setArrayType([A._setArrayType([t2.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2)); break $label2$2; } if (_4_1._readFinal$0() != null) { combinator1 = _4_1._readFinal$0(); t2 = true; } else { combinator1 = _null; t2 = false; } if (t2) { if (_4_4._readFinal$0() != null) { combinator2 = _4_4._readFinal$0(); t2 = true; } else { combinator2 = _null; t2 = false; } t2 = t2 && combinator1 == combinator2; } else t2 = false; if (t2) { unified = A.unifyCompound0(components1.removeLast$0(0).selector, components2.removeLast$0(0).selector); if (unified == null) return _null; 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)); break $label2$2; } if (_4_1._readFinal$0() != null) { combinator_case_0 = _4_1._readFinal$0(); t1 = true; } else { combinator_case_0 = _null; t1 = false; } if (t1) if (_4_4._readFinal$0() == null) { combinatorComponents_case_0 = _4_6._readFinal$0(); descendantComponents_case_0 = _4_7._readFinal$0(); t1 = descendantComponents_case_0; t2 = true; t4 = t2; t2 = combinatorComponents_case_0; t3 = t1; t1 = combinator_case_0; } else { t3 = _null; t2 = t3; t1 = t2; t4 = false; } else { t3 = _null; t2 = t3; t1 = t2; t4 = false; } if (!t4) if (_4_1._readFinal$0() == null) { if (_4_4._readFinal$0() != null) { combinator_case_1 = _4_4._readFinal$0(); t4 = true; } else { combinator_case_1 = _null; t4 = false; } if (t4) { descendantComponents_case_1 = _4_6._readFinal$0(); combinatorComponents_case_1 = _4_7._readFinal$0(); t1 = combinatorComponents_case_1; t2 = true; t4 = t2; t2 = t1; t1 = combinator_case_1; t3 = descendantComponents_case_1; } else t4 = false; } else t4 = false; else t4 = true; if (t4) { if (t1 === B.Combinator_Cht0) { t1 = A.IterableExtension_get_lastOrNull(t3); t1 = t1 == null ? _null : A.compoundIsSuperselector0(t1.selector, t2.get$last(t2).selector, _null); t1 = t1 === true; } else t1 = false; if (t1) t3.removeLast$0(0); result.addFirst$1(A._setArrayType([A._setArrayType([t2.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2)); break $label2$2; } return _null; } return A._mergeTrailingCombinators0(components1, components2, span, result); }, _mustUnify0(complex1, complex2) { var t2, t3, t4, t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector_2); for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();) 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();) t1.add$1(0, t3.get$current(t3)); if (t1._collection$_length === 0) return false; return J.any$1$ax(complex2, new A._mustUnify_closure0(t1)); }, _isUnique0(simple) { var t1; if (!(simple instanceof A.IDSelector0)) t1 = simple instanceof A.PseudoSelector0 && !simple.isClass; else t1 = true; return t1; }, _chunks0(queue1, queue2, done, $T) { var chunk2, _0_0, _0_1, _0_4, _0_5, _0_7, chunk, t2, t1 = $T._eval$1("JSArray<0>"), chunk1 = A._setArrayType([], t1); for (; !done.call$1(queue1);) chunk1.push(queue1.removeFirst$0()); chunk2 = A._setArrayType([], t1); for (; !done.call$1(queue2);) chunk2.push(queue2.removeFirst$0()); _0_0 = new A._Record_2(chunk1, chunk2); _0_1 = A._InitializedCell$(new A._chunks_closure3(_0_0, $T)); _0_4 = A._InitializedCell$(new A._chunks_closure4(_0_1)); _0_5 = A._InitializedCell$(new A._chunks_closure5(_0_0, $T)); _0_7 = A._InitializedCell$(new A._chunks_closure6(_0_5)); $label0$0: { if (_0_4._readFinal$0() && _0_7._readFinal$0()) { t1 = A._setArrayType([], $T._eval$1("JSArray>")); break $label0$0; } if (_0_4._readFinal$0()) { chunk = _0_5._readFinal$0(); t1 = true; } else { chunk = null; t1 = false; } if (!t1) { chunk = _0_1._readFinal$0(); t1 = _0_7._readFinal$0(); t1 = t1; } else t1 = true; if (t1) { t1 = A._setArrayType([chunk], $T._eval$1("JSArray>")); break $label0$0; } t1 = A.List_List$of(chunk1, true, $T); B.JSArray_methods.addAll$1(t1, chunk2); t2 = A.List_List$of(chunk2, true, $T); B.JSArray_methods.addAll$1(t2, chunk1); t2 = A._setArrayType([t1, t2], $T._eval$1("JSArray>")); t1 = t2; break $label0$0; } return t1; }, paths0(choices, $T) { return J.fold$2$ax(choices, A._setArrayType([A._setArrayType([], $T._eval$1("JSArray<0>"))], $T._eval$1("JSArray>")), new A.paths_closure0($T)); }, _groupSelectors0(complex) { var t2, t3, t4, groups = A.QueueList$(null, type$.List_ComplexSelectorComponent_2), t1 = type$.JSArray_ComplexSelectorComponent_2, group = A._setArrayType([], t1); for (t2 = new A.ListIterator(complex, complex.get$length(complex)), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t4 = t2.__internal$_current; if (t4 == null) t4 = t3._as(t4); group.push(t4); if (t4.combinators.length === 0) { groups._queue_list$_add$1(group); group = A._setArrayType([], t1); } } if (group.length !== 0) groups._queue_list$_add$1(group); return groups; }, listIsSuperselector0(list1, list2) { return B.JSArray_methods.every$1(list2, new A.listIsSuperselector_closure0(list1)); }, _complexIsParentSuperselector0(complex1, complex2) { var t1, base, t2; if (J.get$length$asx(complex1) > J.get$length$asx(complex2)) return false; t1 = $.$get$bogusSpan0(); base = new A.ComplexSelectorComponent0(A.CompoundSelector$0(A._setArrayType([new A.PlaceholderSelector0("", t1)], type$.JSArray_SimpleSelector_2), t1), A.List_List$unmodifiable(B.List_empty14, type$.CssValue_Combinator_2), t1); t1 = type$.ComplexSelectorComponent_2; t2 = A.List_List$of(complex1, true, t1); t2.push(base); t1 = A.List_List$of(complex2, true, t1); t1.push(base); return A.complexIsSuperselector0(t2, t1); }, complexIsSuperselector0(complex1, complex2) { var t1, t2, t3, i1, i2, previousCombinator, remaining1, t4, remaining2, component1, t5, parents, endOfSubselector, component2, combinator1; if (B.JSArray_methods.get$last(complex1).combinators.length !== 0) return false; if (B.JSArray_methods.get$last(complex2).combinators.length !== 0) return false; for (t1 = type$.JSArray_ComplexSelectorComponent_2, t2 = A._arrayInstanceType(complex2), t3 = t2._precomputed1, t2 = t2._eval$1("SubListIterable<1>"), i1 = 0, i2 = 0, previousCombinator = null; true; previousCombinator = combinator1) { remaining1 = complex1.length - i1; t4 = complex2.length; remaining2 = t4 - i2; if (remaining1 === 0 || remaining2 === 0) return false; if (remaining1 > remaining2) return false; component1 = complex1[i1]; t5 = component1.combinators; if (t5.length > 1) return false; if (remaining1 === 1) { parents = B.JSArray_methods.sublist$2(complex2, i2, t4 - 1); if (B.JSArray_methods.any$1(parents, new A.complexIsSuperselector_closure1())) return false; return A.compoundIsSuperselector0(component1.selector, B.JSArray_methods.get$last(complex2).selector, parents); } for (t4 = component1.selector, endOfSubselector = i2, parents = null; true;) { component2 = complex2[endOfSubselector]; if (component2.combinators.length > 1) return false; if (A.compoundIsSuperselector0(t4, component2.selector, parents)) break; ++endOfSubselector; if (endOfSubselector === complex2.length - 1) return false; if (parents == null) parents = A._setArrayType([], t1); parents.push(component2); } if (!A._compatibleWithPreviousCombinator0(previousCombinator, parents == null ? B.List_empty13 : parents)) return false; component2 = complex2[endOfSubselector]; combinator1 = A.IterableExtension_get_firstOrNull(t5); if (!A._isSupercombinator0(combinator1, A.IterableExtension_get_firstOrNull(component2.combinators))) return false; ++i1; i2 = endOfSubselector + 1; if (complex1.length - i1 === 1) { t4 = combinator1 == null; if (J.$eq$(t4 ? null : combinator1.value, B.Combinator_Htt0)) { t4 = complex2.length - 1; t5 = new A.SubListIterable(complex2, 0, t4, t2); t5.SubListIterable$3(complex2, 0, t4, t3); if (!t5.skip$1(0, i2).every$1(0, new A.complexIsSuperselector_closure2(combinator1))) return false; } else if (!t4) if (complex2.length - i2 > 1) return false; } } }, _compatibleWithPreviousCombinator0(previous, parents) { if (parents.length === 0) return true; if (previous == null) return true; if (previous.value !== B.Combinator_Htt0) return false; return B.JSArray_methods.every$1(parents, new A._compatibleWithPreviousCombinator_closure0()); }, _isSupercombinator0(combinator1, combinator2) { var t1, t2; if (!J.$eq$(combinator1, combinator2)) { t1 = combinator1 == null; if (t1) t2 = J.$eq$(combinator2 == null ? null : combinator2.value, B.Combinator_Cht0); else t2 = false; if (!t2) if (J.$eq$(t1 ? null : combinator1.value, B.Combinator_Htt0)) t1 = J.$eq$(combinator2 == null ? null : combinator2.value, B.Combinator_4QF0); else t1 = false; else t1 = true; } else t1 = true; return t1; }, compoundIsSuperselector0(compound1, compound2, parents) { var t2, pseudo1, index1, pseudo2, index2, t3, t4, t5, _i, simple1, _null = null, _0_0 = new A._Record_2(A._findPseudoElementIndexed0(compound1), A._findPseudoElementIndexed0(compound2)), _0_1 = A._InitializedCell$(new A.compoundIsSuperselector_closure1(_0_0)), _0_5 = A._InitializedCell$(new A.compoundIsSuperselector_closure2(_0_0)), t1 = type$.Record_2_nullable_Object_and_nullable_Object; if (t1._is(_0_1._readFinal$0())) { t2 = type$.PseudoSelector_2; pseudo1 = t2._as(_0_1._readFinal$0()._0); index1 = A._asInt(_0_1._readFinal$0()._1); if (t1._is(_0_5._readFinal$0())) { pseudo2 = t2._as(_0_5._readFinal$0()._0); index2 = A._asInt(_0_5._readFinal$0()._1); t1 = true; } else { index2 = _null; pseudo2 = index2; t1 = false; } } else { index2 = _null; pseudo2 = index2; index1 = pseudo2; pseudo1 = index1; t1 = false; } if (t1) { if (pseudo1.isSuperselector$1(pseudo2)) { t1 = compound1.components; t2 = type$.int; t3 = A._arrayInstanceType(t1)._precomputed1; t4 = compound2.components; t5 = A._arrayInstanceType(t4)._precomputed1; 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); } else t1 = false; return t1; } if (!(_0_1._readFinal$0() != null && true)) t1 = _0_5._readFinal$0() != null && true; else t1 = true; if (t1) return false; for (t1 = compound1.components, t2 = t1.length, t3 = compound2.components, _i = 0; _i < t2; ++_i) { simple1 = t1[_i]; if (simple1 instanceof A.PseudoSelector0 && simple1.selector != null && true) { if (!A._selectorPseudoIsSuperselector0(simple1, compound2, parents)) return false; } else if (!B.JSArray_methods.any$1(t3, simple1.get$isSuperselector())) return false; } return true; }, _findPseudoElementIndexed0(compound) { var t1, t2, i, simple; for (t1 = compound.components, t2 = t1.length, i = 0; i < t2; ++i) { simple = t1[i]; if (simple instanceof A.PseudoSelector0 && !simple.isClass) return new A._Record_2(simple, i); } return null; }, _compoundComponentsIsSuperselector0(compound1, compound2, parents) { var t1; if (compound1.get$length(compound1) === 0) return true; if (compound2.get$length(compound2) === 0) compound2 = A._setArrayType([new A.UniversalSelector0("*", $.$get$bogusSpan0())], type$.JSArray_SimpleSelector_2); t1 = $.$get$bogusSpan0(); return A.compoundIsSuperselector0(A.CompoundSelector$0(compound1, t1), A.CompoundSelector$0(compound2, t1), parents); }, _selectorPseudoIsSuperselector0(pseudo1, compound2, parents) { var selector1 = pseudo1.selector; if (selector1 == null) throw A.wrapException(A.ArgumentError$("Selector " + pseudo1.toString$0(0) + " must have a selector argument.", null)); switch (pseudo1.normalizedName) { case "is": case "matches": case "any": case "where": 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)); case "has": case "host": case "host-context": return A._selectorPseudoArgs0(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure8(selector1)); case "slotted": return A._selectorPseudoArgs0(compound2, pseudo1.name, false).any$1(0, new A._selectorPseudoIsSuperselector_closure9(selector1)); case "not": return B.JSArray_methods.every$1(selector1.components, new A._selectorPseudoIsSuperselector_closure10(compound2, pseudo1)); case "current": return A._selectorPseudoArgs0(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure11(selector1)); case "nth-child": case "nth-last-child": return B.JSArray_methods.any$1(compound2.components, new A._selectorPseudoIsSuperselector_closure12(pseudo1, selector1)); default: throw A.wrapException("unreachable"); } }, _selectorPseudoArgs0(compound, $name, isClass) { var t1 = type$.WhereTypeIterable_PseudoSelector_2; return A.IterableNullableExtension_whereNotNull(new A.MappedIterable(new A.WhereIterable(new A.WhereTypeIterable(compound.components, t1), new A._selectorPseudoArgs_closure1(isClass, $name), t1._eval$1("WhereIterable")), new A._selectorPseudoArgs_closure2(), t1._eval$1("MappedIterable")), type$.SelectorList_2); }, unifyComplex_closure2: function unifyComplex_closure2(t0) { this._0_0 = t0; }, unifyComplex_closure3: function unifyComplex_closure3(t0) { this._1_0 = t0; }, unifyComplex_closure4: function unifyComplex_closure4() { }, _namespaceAndName_closure0: function _namespaceAndName_closure0(t0) { this._0_0 = t0; }, _weaveParents_closure5: function _weaveParents_closure5(t0) { this._0_0 = t0; }, _weaveParents_closure6: function _weaveParents_closure6(t0) { this._0_0 = t0; }, _weaveParents_closure7: function _weaveParents_closure7(t0) { this.span = t0; }, _weaveParents_closure8: function _weaveParents_closure8(t0) { this.group = t0; }, _weaveParents_closure9: function _weaveParents_closure9() { }, _weaveParents_closure10: function _weaveParents_closure10() { }, _mergeLeadingCombinators_closure3: function _mergeLeadingCombinators_closure3(t0) { this._0_0 = t0; }, _mergeLeadingCombinators_closure4: function _mergeLeadingCombinators_closure4(t0) { this._0_0 = t0; }, _mergeLeadingCombinators_closure5: function _mergeLeadingCombinators_closure5(t0) { this._0_1 = t0; }, _mergeLeadingCombinators_closure6: function _mergeLeadingCombinators_closure6(t0) { this._0_4 = t0; }, _mergeTrailingCombinators_closure9: function _mergeTrailingCombinators_closure9(t0) { this._0_0 = t0; }, _mergeTrailingCombinators_closure10: function _mergeTrailingCombinators_closure10(t0) { this._1_0 = t0; }, _mergeTrailingCombinators_closure11: function _mergeTrailingCombinators_closure11(t0) { this._4_0 = t0; }, _mergeTrailingCombinators_closure12: function _mergeTrailingCombinators_closure12(t0) { this._4_1 = t0; }, _mergeTrailingCombinators_closure13: function _mergeTrailingCombinators_closure13(t0) { this._4_0 = t0; }, _mergeTrailingCombinators_closure14: function _mergeTrailingCombinators_closure14(t0) { this._4_4 = t0; }, _mergeTrailingCombinators_closure16: function _mergeTrailingCombinators_closure16(t0) { this._4_0 = t0; }, _mergeTrailingCombinators_closure17: function _mergeTrailingCombinators_closure17(t0) { this._4_0 = t0; }, _mergeTrailingCombinators_closure15: function _mergeTrailingCombinators_closure15(t0) { this._4_4 = t0; }, _mergeTrailingCombinators_closure18: function _mergeTrailingCombinators_closure18(t0) { this._4_1 = t0; }, _mustUnify_closure0: function _mustUnify_closure0(t0) { this.uniqueSelectors = t0; }, _mustUnify__closure0: function _mustUnify__closure0(t0) { this.uniqueSelectors = t0; }, _chunks_closure3: function _chunks_closure3(t0, t1) { this._0_0 = t0; this.T = t1; }, _chunks_closure4: function _chunks_closure4(t0) { this._0_1 = t0; }, _chunks_closure5: function _chunks_closure5(t0, t1) { this._0_0 = t0; this.T = t1; }, _chunks_closure6: function _chunks_closure6(t0) { this._0_5 = t0; }, paths_closure0: function paths_closure0(t0) { this.T = t0; }, paths__closure0: function paths__closure0(t0, t1) { this.paths = t0; this.T = t1; }, paths___closure0: function paths___closure0(t0, t1) { this.option = t0; this.T = t1; }, listIsSuperselector_closure0: function listIsSuperselector_closure0(t0) { this.list1 = t0; }, listIsSuperselector__closure0: function listIsSuperselector__closure0(t0) { this.complex1 = t0; }, complexIsSuperselector_closure1: function complexIsSuperselector_closure1() { }, complexIsSuperselector_closure2: function complexIsSuperselector_closure2(t0) { this.combinator1 = t0; }, _compatibleWithPreviousCombinator_closure0: function _compatibleWithPreviousCombinator_closure0() { }, compoundIsSuperselector_closure1: function compoundIsSuperselector_closure1(t0) { this._0_0 = t0; }, compoundIsSuperselector_closure2: function compoundIsSuperselector_closure2(t0) { this._0_0 = t0; }, _selectorPseudoIsSuperselector_closure6: function _selectorPseudoIsSuperselector_closure6(t0) { this.selector1 = t0; }, _selectorPseudoIsSuperselector_closure7: function _selectorPseudoIsSuperselector_closure7(t0, t1) { this.parents = t0; this.compound2 = t1; }, _selectorPseudoIsSuperselector_closure8: function _selectorPseudoIsSuperselector_closure8(t0) { this.selector1 = t0; }, _selectorPseudoIsSuperselector_closure9: function _selectorPseudoIsSuperselector_closure9(t0) { this.selector1 = t0; }, _selectorPseudoIsSuperselector_closure10: function _selectorPseudoIsSuperselector_closure10(t0, t1) { this.compound2 = t0; this.pseudo1 = t1; }, _selectorPseudoIsSuperselector__closure0: function _selectorPseudoIsSuperselector__closure0(t0, t1) { this.complex = t0; this.pseudo1 = t1; }, _selectorPseudoIsSuperselector___closure3: function _selectorPseudoIsSuperselector___closure3(t0) { this.simple2 = t0; }, _selectorPseudoIsSuperselector___closure4: function _selectorPseudoIsSuperselector___closure4(t0) { this.simple2 = t0; }, _selectorPseudoIsSuperselector___closure2: function _selectorPseudoIsSuperselector___closure2(t0) { this._0_0 = t0; }, _selectorPseudoIsSuperselector_closure11: function _selectorPseudoIsSuperselector_closure11(t0) { this.selector1 = t0; }, _selectorPseudoIsSuperselector_closure12: function _selectorPseudoIsSuperselector_closure12(t0, t1) { this.pseudo1 = t0; this.selector1 = t1; }, _selectorPseudoArgs_closure1: function _selectorPseudoArgs_closure1(t0, t1) { this.isClass = t0; this.name = t1; }, _selectorPseudoArgs_closure2: function _selectorPseudoArgs_closure2() { }, globalFunctions_closure0: function globalFunctions_closure0() { }, IDSelector0: function IDSelector0(t0, t1) { this.name = t0; this.span = t1; }, IDSelector_unify_closure0: function IDSelector_unify_closure0(t0) { this.$this = t0; }, IfExpression0: function IfExpression0(t0, t1) { this.$arguments = t0; this.span = t1; }, IfClause$0(expression, children) { var t1 = A.List_List$unmodifiable(children, type$.Statement_2); return new A.IfClause0(expression, t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure0())); }, ElseClause$0(children) { var t1 = A.List_List$unmodifiable(children, type$.Statement_2); return new A.ElseClause0(t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure0())); }, IfRule0: function IfRule0(t0, t1, t2) { this.clauses = t0; this.lastClause = t1; this.span = t2; }, IfRule_toString_closure0: function IfRule_toString_closure0() { }, IfRuleClause0: function IfRuleClause0() { }, IfRuleClause$__closure0: function IfRuleClause$__closure0() { }, IfRuleClause$___closure0: function IfRuleClause$___closure0() { }, IfClause0: function IfClause0(t0, t1, t2) { this.expression = t0; this.children = t1; this.hasDeclarations = t2; }, ElseClause0: function ElseClause0(t0, t1) { this.children = t0; this.hasDeclarations = t1; }, jsToDartList(list) { return self.immutable.isOrderedMap(list) ? J.toArray$0$x(type$.ImmutableList._as(list)) : type$.List_dynamic._as(list); }, dartMapToImmutableMap(dartMap) { var t1, t2, key, value, immutableMap = J.asMutable$0$x(new self.immutable.OrderedMap()); for (t1 = A.MapExtensions_get_pairs0(dartMap, type$.Object, type$.nullable_Object), t1 = t1.get$iterator(t1); t1.moveNext$0();) { t2 = t1.get$current(t1); key = t2._0; value = t2._1; immutableMap = J.$set$2$x(immutableMap, key, value); } return J.asImmutable$0$x(immutableMap); }, immutableMapToDartMap(immutableMap) { var dartMap = A.LinkedHashMap_LinkedHashMap$_empty(type$.Object, type$.nullable_Object); J.forEach$1$ax(immutableMap, A.allowInterop(new A.immutableMapToDartMap_closure(dartMap))); return dartMap; }, ImmutableList0: function ImmutableList0() { }, ImmutableMap0: function ImmutableMap0() { }, immutableMapToDartMap_closure: function immutableMapToDartMap_closure(t0) { this.dartMap = t0; }, NodeImporter__addSassPath(includePaths) { return new A._SyncStarIterable(A.NodeImporter__addSassPath$body(includePaths), type$._SyncStarIterable_String); }, NodeImporter__addSassPath$body($async$includePaths) { return function() { var includePaths = $async$includePaths; var $async$goto = 0, $async$handler = 2, $async$currentError, sassPath, t1; return function $async$NodeImporter__addSassPath($async$iterator, $async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return $async$iterator._yieldStar$1(includePaths); case 3: // after yield sassPath = A.getEnvironmentVariable0("SASS_PATH"); if (sassPath == null) { // goto return $async$goto = 1; break; } t1 = A.isNodeJs() ? self.process : null; $async$goto = 4; return $async$iterator._yieldStar$1(A._setArrayType(sassPath.split(J.$eq$(t1 == null ? null : J.get$platform$x(t1), "win32") ? ";" : ":"), type$.JSArray_String)); case 4: // after yield case 1: // return return 0; case 2: // rethrow return $async$iterator._datum = $async$currentError, 3; } }; }; }, NodeImporter: function NodeImporter(t0, t1, t2) { this._implementation$_options = t0; this._includePaths = t1; this._implementation$_importers = t2; }, NodeImporter_load_closure: function NodeImporter_load_closure(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.importer = t1; _.forImport = t2; _.url = t3; _.previousString = t4; }, NodeImporter__tryPath_closure: function NodeImporter__tryPath_closure(t0) { this.path = t0; }, NodeImporter__tryPath_closure0: function NodeImporter__tryPath_closure0() { }, NodeImporter__callImporterAsync_closure: function NodeImporter__callImporterAsync_closure(t0, t1, t2, t3, t4, t5) { var _ = this; _.$this = t0; _.importer = t1; _.forImport = t2; _.url = t3; _.previousString = t4; _.completer = t5; }, ModifiableCssImport0: function ModifiableCssImport0(t0, t1, t2) { var _ = this; _.url = t0; _.modifiers = t1; _.span = t2; _._node$_indexInParent = _._node$_parent = null; _.isGroupEnd = false; }, ImportCache$0(importers, loadPaths, logger, packageConfig) { var t1 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2, t2 = type$.Uri, t3 = A.ImportCache__toImporters0(importers, loadPaths, packageConfig); return new A.ImportCache0(t3, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_4_Uri_and_Importer_baseImporter_and_nullable_Uri_baseUrl_and_bool_forImport_2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.ImporterResult_2)); }, ImportCache$none(logger) { var t1 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2, t2 = type$.Uri; return new A.ImportCache0(B.List_empty23, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_4_Uri_and_Importer_baseImporter_and_nullable_Uri_baseUrl_and_bool_forImport_2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.ImporterResult_2)); }, ImportCache__toImporters0(importers, loadPaths, packageConfig) { var t1, t2, t3, t4, _i, path, _null = null, sassPath = A.getEnvironmentVariable0("SASS_PATH"); if (A.isBrowser()) { t1 = A._setArrayType([], type$.JSArray_Importer); if (importers != null) B.JSArray_methods.addAll$1(t1, importers); return t1; } t1 = A._setArrayType([], type$.JSArray_Importer); if (importers != null) B.JSArray_methods.addAll$1(t1, importers); if (loadPaths != null) for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) { t3 = t2.get$current(t2); t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null))); } if (sassPath != null) { t2 = A.isNodeJs() ? self.process : _null; t3 = sassPath.split(J.$eq$(t2 == null ? _null : J.get$platform$x(t2), "win32") ? ";" : ":"); t4 = t3.length; _i = 0; for (; _i < t4; ++_i) { path = t3[_i]; t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null))); } } return t1; }, ImportCache0: function ImportCache0(t0, t1, t2, t3, t4, t5) { var _ = this; _._import_cache$_importers = t0; _._import_cache$_logger = t1; _._import_cache$_canonicalizeCache = t2; _._import_cache$_relativeCanonicalizeCache = t3; _._import_cache$_importCache = t4; _._import_cache$_resultsCache = t5; }, ImportCache_canonicalize_closure1: function ImportCache_canonicalize_closure1(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.baseImporter = t1; _.baseUrl = t2; _.url = t3; _.forImport = t4; }, ImportCache_canonicalize_closure2: function ImportCache_canonicalize_closure2(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.url = t1; _.baseUrl = t2; _.forImport = t3; }, ImportCache__canonicalize_closure1: function ImportCache__canonicalize_closure1(t0, t1) { this.importer = t0; this.resolved = t1; }, ImportCache__canonicalize__closure0: function ImportCache__canonicalize__closure0(t0, t1) { this.importer = t0; this.resolved = t1; }, ImportCache__canonicalize_closure2: function ImportCache__canonicalize_closure2(t0, t1) { this.importer = t0; this.resolved = t1; }, ImportCache_importCanonical_closure0: function ImportCache_importCanonical_closure0(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.importer = t1; _.canonicalUrl = t2; _.originalUrl = t3; _.quiet = t4; }, ImportCache_humanize_closure3: function ImportCache_humanize_closure3(t0) { this.canonicalUrl = t0; }, ImportCache_humanize_closure4: function ImportCache_humanize_closure4() { }, ImportCache_humanize_closure5: function ImportCache_humanize_closure5() { }, ImportCache_humanize_closure6: function ImportCache_humanize_closure6(t0) { this.canonicalUrl = t0; }, ImportRule0: function ImportRule0(t0, t1) { this.imports = t0; this.span = t1; }, JSImporter: function JSImporter() { }, CanonicalizeContext: function CanonicalizeContext() { }, JSImporterResult: function JSImporterResult() { }, Importer0: function Importer0() { }, NodeImporterResult0: function NodeImporterResult0() { }, IncludeRule0: function IncludeRule0(t0, t1, t2, t3, t4) { var _ = this; _.namespace = t0; _.name = t1; _.$arguments = t2; _.content = t3; _.span = t4; }, InterpolatedFunctionExpression0: function InterpolatedFunctionExpression0(t0, t1, t2) { this.name = t0; this.$arguments = t1; this.span = t2; }, Interpolation$0(contents, span) { var t1 = new A.Interpolation0(A.List_List$unmodifiable(contents, type$.Object), span); t1.Interpolation$20(contents, span); return t1; }, Interpolation0: function Interpolation0(t0, t1) { this.contents = t0; this.span = t1; }, Interpolation_asPlain_closure1: function Interpolation_asPlain_closure1(t0) { this._0_0 = t0; }, Interpolation_asPlain_closure2: function Interpolation_asPlain_closure2(t0) { this._0_0 = t0; }, Interpolation_initialPlain_closure0: function Interpolation_initialPlain_closure0(t0) { this._0_0 = t0; }, Interpolation_toString_closure0: function Interpolation_toString_closure0() { }, SupportsInterpolation0: function SupportsInterpolation0(t0, t1) { this.expression = t0; this.span = t1; }, InterpolationBuffer0: function InterpolationBuffer0(t0, t1) { this._interpolation_buffer0$_text = t0; this._interpolation_buffer0$_contents = t1; }, InterpolationBuffer_addInterpolation_closure0: function InterpolationBuffer_addInterpolation_closure0(t0) { this._0_0 = t0; }, InterpolationMap$0(_interpolation, targetLocations) { var t1 = A.List_List$unmodifiable(targetLocations, type$.SourceLocation), t2 = _interpolation.contents.length, expectedLocations = Math.max(0, t2 - 1); if (t1.length !== expectedLocations) A.throwExpression(A.ArgumentError$("InterpolationMap must have " + A.S(expectedLocations) + string$.x20targe + t2 + " components.", null)); return new A.InterpolationMap0(_interpolation, t1); }, InterpolationMap0: function InterpolationMap0(t0, t1) { this._interpolation_map$_interpolation = t0; this._interpolation_map$_targetLocations = t1; }, InterpolationMap_mapException_closure0: function InterpolationMap_mapException_closure0() { }, InterpolationMap_mapSpan_closure1: function InterpolationMap_mapSpan_closure1(t0) { this._0_0 = t0; }, InterpolationMap_mapSpan_closure2: function InterpolationMap_mapSpan_closure2(t0) { this._0_0 = t0; }, _realCasePath0(path) { var prefix, _null = null, t1 = A.isNodeJs() ? self.process : _null; if (!J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) { t1 = A.isNodeJs() ? self.process : _null; t1 = J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "darwin"); } else t1 = true; if (!t1) return path; t1 = A.isNodeJs() ? self.process : _null; if (J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) { prefix = B.JSString_methods.substring$2(path, 0, $.$get$context().style.rootLength$1(path)); t1 = prefix.length; if (t1 !== 0 && A.CharacterExtension_get_isAlphabetic0(prefix.charCodeAt(0))) path = prefix.toUpperCase() + B.JSString_methods.substring$1(path, t1); } return new A._realCasePath_helper0().call$1(path); }, _realCasePath_helper0: function _realCasePath_helper0() { }, _realCasePath_helper_closure0: function _realCasePath_helper_closure0(t0, t1, t2) { this.helper = t0; this.dirname = t1; this.path = t2; }, _realCasePath_helper__closure0: function _realCasePath_helper__closure0(t0) { this.basename = t0; }, printError0(message) { var t1, process = A.isNodeJs() ? self.process : null; if (process != null) t1 = true; else { process = null; t1 = false; } if (t1) { t1 = J.get$stderr$x(process); J.write$1$x(t1, A.S(message) + "\n"); } else { t1 = self.console; J.error$1$x(t1, message); } }, readFile0(path) { var contents, sourceFile, t1, i; if (!A.isNodeJs()) throw A.wrapException(A.UnsupportedError$("readFile() is only supported on Node.js")); contents = A._asString(A._readFile0(path, "utf8")); if (!B.JSString_methods.contains$1(contents, "\ufffd")) return contents; sourceFile = A.SourceFile$fromString(contents, $.$get$context().toUri$1(path)); for (t1 = contents.length, i = 0; i < t1; ++i) { if (contents.charCodeAt(i) !== 65533) continue; throw A.wrapException(A.SassException$0("Invalid UTF-8.", A.FileLocation$_(sourceFile, i).pointSpan$0(), null)); } return contents; }, _readFile0(path, encoding) { return A._systemErrorToFileSystemException0(new A._readFile_closure0(path, encoding)); }, fileExists0(path) { if (!A.isNodeJs()) throw A.wrapException(A.UnsupportedError$(string$.fileEx)); return A._systemErrorToFileSystemException0(new A.fileExists_closure0(path)); }, dirExists0(path) { if (!A.isNodeJs()) throw A.wrapException(A.UnsupportedError$("dirExists() is only supported on Node.js")); return A._systemErrorToFileSystemException0(new A.dirExists_closure0(path)); }, listDir0(path) { if (!A.isNodeJs()) throw A.wrapException(A.UnsupportedError$("listDir() is only supported on Node.js")); return A._systemErrorToFileSystemException0(new A.listDir_closure0(false, path)); }, getEnvironmentVariable0($name) { var t1 = A.isNodeJs() ? self.process : null, env = t1 == null ? null : J.get$env$x(t1); if (env == null) t1 = null; else t1 = A._asStringQ(env[$name]); return t1; }, _systemErrorToFileSystemException0(callback) { var error, t1, exception, t2; try { t1 = callback.call$0(); return t1; } catch (exception) { error = A.unwrapException(exception); if (!type$.JsSystemError._is(error)) throw exception; t1 = error; t2 = J.getInterceptor$x(t1); 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))); } }, hasTerminal0() { var t1 = A.isNodeJs() ? self.process : null; return J.$eq$(t1 == null ? null : J.get$isTTY$x(J.get$stdout$x(t1)), true); }, FileSystemException0: function FileSystemException0(t0, t1) { this.message = t0; this.path = t1; }, _readFile_closure0: function _readFile_closure0(t0, t1) { this.path = t0; this.encoding = t1; }, fileExists_closure0: function fileExists_closure0(t0) { this.path = t0; }, dirExists_closure0: function dirExists_closure0(t0) { this.path = t0; }, listDir_closure0: function listDir_closure0(t0, t1) { this.recursive = t0; this.path = t1; }, listDir__closure1: function listDir__closure1(t0) { this.path = t0; }, listDir__closure2: function listDir__closure2() { }, listDir_closure_list0: function listDir_closure_list0() { }, listDir__list_closure0: function listDir__list_closure0(t0, t1) { this.parent = t0; this.list = t1; }, main() { J.set$compile$x(self.exports, A.allowInteropNamed("sass.compile", A.compile__compile$closure())); J.set$compileString$x(self.exports, A.allowInteropNamed("sass.compileString", A.compile__compileString$closure())); J.set$compileAsync$x(self.exports, A.allowInteropNamed("sass.compileAsync", A.compile__compileAsync$closure())); J.set$compileStringAsync$x(self.exports, A.allowInteropNamed("sass.compileStringAsync", A.compile__compileStringAsync$closure())); J.set$Value$x(self.exports, $.$get$valueClass()); J.set$SassBoolean$x(self.exports, $.$get$booleanClass()); J.set$SassArgumentList$x(self.exports, $.$get$argumentListClass()); J.set$SassCalculation$x(self.exports, $.$get$calculationClass()); J.set$CalculationOperation$x(self.exports, $.$get$calculationOperationClass()); J.set$CalculationInterpolation$x(self.exports, $.$get$calculationInterpolationClass()); J.set$SassColor$x(self.exports, $.$get$colorClass()); J.set$SassFunction$x(self.exports, $.$get$functionClass()); J.set$SassMixin$x(self.exports, $.$get$mixinClass()); J.set$SassList$x(self.exports, $.$get$listClass()); J.set$SassMap$x(self.exports, $.$get$mapClass()); J.set$SassNumber$x(self.exports, $.$get$numberClass()); J.set$SassString$x(self.exports, $.$get$stringClass()); J.set$sassNull$x(self.exports, B.C__SassNull0); J.set$sassTrue$x(self.exports, B.SassBoolean_true0); J.set$sassFalse$x(self.exports, B.SassBoolean_false0); J.set$Exception$x(self.exports, $.$get$exceptionClass()); 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())}}); J.set$info$x(self.exports, "dart-sass\t1.69.5\t(Sass Compiler)\t[Dart]\ndart2js\t3.1.5\t(Dart Compiler)\t[Dart]"); A.updateSourceSpanPrototype(); J.set$render$x(self.exports, A.allowInteropNamed("sass.render", A.legacy__render$closure())); J.set$renderSync$x(self.exports, A.allowInteropNamed("sass.renderSync", A.legacy__renderSync$closure())); 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}); J.set$NULL$x(self.exports, B.C__SassNull0); J.set$TRUE$x(self.exports, B.SassBoolean_true0); J.set$FALSE$x(self.exports, B.SassBoolean_false0); }, main_closure: function main_closure() { }, main_closure0: function main_closure0() { }, JSToDartLogger: function JSToDartLogger(t0, t1, t2) { this._node = t0; this._fallback = t1; this._ascii = t2; }, JSToDartLogger_warn_closure: function JSToDartLogger_warn_closure(t0, t1, t2, t3, t4) { var _ = this; _.$this = t0; _.message = t1; _.span = t2; _.trace = t3; _.deprecation = t4; }, JSToDartLogger_debug_closure: function JSToDartLogger_debug_closure(t0, t1, t2) { this.$this = t0; this.message = t1; this.span = t2; }, ModifiableCssKeyframeBlock$0(selector, span) { var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2); return new A.ModifiableCssKeyframeBlock0(selector, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1); }, ModifiableCssKeyframeBlock0: function ModifiableCssKeyframeBlock0(t0, t1, t2, t3) { var _ = this; _.selector = t0; _.span = t1; _.children = t2; _._node$_children = t3; _._node$_indexInParent = _._node$_parent = null; _.isGroupEnd = false; }, KeyframeSelectorParser$0(contents, interpolationMap, logger) { var t1 = A.SpanScanner$(contents, null); return new A.KeyframeSelectorParser0(t1, logger, interpolationMap); }, KeyframeSelectorParser0: function KeyframeSelectorParser0(t0, t1, t2) { this.scanner = t0; this.logger = t1; this._parser0$_interpolationMap = t2; }, KeyframeSelectorParser_parse_closure0: function KeyframeSelectorParser_parse_closure0(t0) { this.$this = t0; }, LazyFileSpan0: function LazyFileSpan0(t0) { this._lazy_file_span0$_builder = t0; this._lazy_file_span0$_span = null; }, render(options, callback) { var _0_0, fiber, t1; if (!A.isNodeJs()) A.jsThrow(new self.Error("The render() method is only available in Node.js.")); _0_0 = J.get$fiber$x(options); if (_0_0 != null) { fiber = _0_0; t1 = true; } else { fiber = null; t1 = false; } if (t1) J.run$0$x(fiber.call$1(A.allowInterop(new A.render_closure(callback, options)))); else A._renderAsync(options).then$1$2$onError(0, new A.render_closure0(callback), new A.render_closure1(callback), type$.Null); }, _renderAsync(options) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.RenderResult), $async$returnValue, data, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, result, start, t1, file, _0_0; var $async$_renderAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start start = new A.DateTime(Date.now(), false); t1 = J.getInterceptor$x(options); file = A.NullableExtension_andThen0(t1.get$file(options), A.path__absolute$closure()); _0_0 = t1.get$data(options); if (_0_0 != null) { data = _0_0; t2 = true; } else { data = null; t2 = false; } $async$goto = t2 ? 3 : 5; break; case 3: // then t2 = A._parseImporter(options, start); t3 = A._parseFunctions(options, start, true); t4 = t1.get$indentedSyntax(options); t4 = !J.$eq$(t4, false) && t4 != null ? B.Syntax_Sass_sass0 : null; t5 = A._parseOutputStyle(t1.get$outputStyle(options)); t6 = J.$eq$(t1.get$indentType(options), "tab"); t7 = A._parseIndentWidth(t1.get$indentWidth(options)); t8 = A._parseLineFeed(t1.get$linefeed(options)); t9 = file == null ? "stdin" : $.$get$context().toUri$1(file).toString$0(0); t10 = t1.get$quietDeps(options); if (t10 == null) t10 = false; t11 = t1.get$verbose(options); if (t11 == null) t11 = false; t12 = t1.get$charset(options); if (t12 == null) t12 = true; t13 = A._enableSourceMaps(options); t1 = t1.get$logger(options); t14 = A.hasTerminal0(); t15 = $._glyphs; $async$goto = 6; return A._asyncAwait(A.compileStringAsync0(data, t12, t3, null, null, t7, t8, new A.JSToDartLogger(t1, new A.StderrLogger0(t14), t15 === B.C_AsciiGlyphSet), t2, t10, t13, t5, t4, t9, !t6, t11), $async$_renderAsync); case 6: // returning from await. result = $async$result; // goto join $async$goto = 4; break; case 5: // else $async$goto = file != null ? 7 : 9; break; case 7: // then t2 = A._parseImporter(options, start); t3 = A._parseFunctions(options, start, true); t4 = t1.get$indentedSyntax(options); t4 = !J.$eq$(t4, false) && t4 != null ? B.Syntax_Sass_sass0 : null; t5 = A._parseOutputStyle(t1.get$outputStyle(options)); t6 = J.$eq$(t1.get$indentType(options), "tab"); t7 = A._parseIndentWidth(t1.get$indentWidth(options)); t8 = A._parseLineFeed(t1.get$linefeed(options)); t9 = t1.get$quietDeps(options); if (t9 == null) t9 = false; t10 = t1.get$verbose(options); if (t10 == null) t10 = false; t11 = t1.get$charset(options); if (t11 == null) t11 = true; t12 = A._enableSourceMaps(options); t1 = t1.get$logger(options); t13 = A.hasTerminal0(); t14 = $._glyphs; $async$goto = 10; return A._asyncAwait(A.compileAsync0(file, t11, null, t3, null, null, t7, t8, new A.JSToDartLogger(t1, new A.StderrLogger0(t13), t14 === B.C_AsciiGlyphSet), t2, t9, t12, t5, t4, !t6, t10), $async$_renderAsync); case 10: // returning from await. result = $async$result; // goto join $async$goto = 8; break; case 9: // else throw A.wrapException(A.ArgumentError$(string$.Either, null)); case 8: // join case 4: // join $async$returnValue = A._newRenderResult(options, result, start); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_renderAsync, $async$completer); }, renderSync(options) { var start, result, file, data, _0_0, error, stackTrace, error0, stackTrace0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, exception, _null = null; if (!A.isNodeJs()) A.jsThrow(new self.Error("The renderSync() method is only available in Node.js.")); try { start = new A.DateTime(Date.now(), false); result = null; t1 = J.getInterceptor$x(options); file = A.NullableExtension_andThen0(t1.get$file(options), A.path__absolute$closure()); data = null; _0_0 = t1.get$data(options); if (_0_0 != null) { data = _0_0; t2 = true; } else t2 = false; if (t2) { t2 = data; t3 = A._parseImporter(options, start); t4 = A._parseFunctions(options, start, false); t5 = t1.get$indentedSyntax(options); t5 = !J.$eq$(t5, false) && t5 != null ? B.Syntax_Sass_sass0 : _null; t6 = A._parseOutputStyle(t1.get$outputStyle(options)); t7 = J.$eq$(t1.get$indentType(options), "tab"); t8 = A._parseIndentWidth(t1.get$indentWidth(options)); t9 = A._parseLineFeed(t1.get$linefeed(options)); t10 = file == null ? "stdin" : $.$get$context().toUri$1(file).toString$0(0); t11 = t1.get$quietDeps(options); if (t11 == null) t11 = false; t12 = t1.get$verbose(options); if (t12 == null) t12 = false; t13 = t1.get$charset(options); if (t13 == null) t13 = true; t14 = A._enableSourceMaps(options); t1 = t1.get$logger(options); t15 = A.hasTerminal0(); t16 = $._glyphs; result = A.compileString(t2, t13, _null, new A.CastList(t4, A._arrayInstanceType(t4)._eval$1("CastList<1,Callable>")), _null, _null, _null, t8, t9, new A.JSToDartLogger(t1, new A.StderrLogger0(t15), t16 === B.C_AsciiGlyphSet), t3, t11, t14, t6, t5, t10, !t7, t12); } else if (file != null) { t2 = A._parseImporter(options, start); t3 = A._parseFunctions(options, start, false); t4 = t1.get$indentedSyntax(options); t4 = !J.$eq$(t4, false) && t4 != null ? B.Syntax_Sass_sass0 : _null; t5 = A._parseOutputStyle(t1.get$outputStyle(options)); t6 = J.$eq$(t1.get$indentType(options), "tab"); t7 = A._parseIndentWidth(t1.get$indentWidth(options)); t8 = A._parseLineFeed(t1.get$linefeed(options)); t9 = t1.get$quietDeps(options); if (t9 == null) t9 = false; t10 = t1.get$verbose(options); if (t10 == null) t10 = false; t11 = t1.get$charset(options); if (t11 == null) t11 = true; t12 = A._enableSourceMaps(options); t1 = t1.get$logger(options); t13 = A.hasTerminal0(); t14 = $._glyphs; result = A.compile(file, t11, _null, new A.CastList(t3, A._arrayInstanceType(t3)._eval$1("CastList<1,Callable>")), _null, _null, t7, t8, new A.JSToDartLogger(t1, new A.StderrLogger0(t13), t14 === B.C_AsciiGlyphSet), t2, t9, t12, t5, t4, !t6, t10); } else { t1 = A.ArgumentError$(string$.Either, _null); throw A.wrapException(t1); } t1 = A._newRenderResult(options, result, start); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException0) { error = t1; stackTrace = A.getTraceFromException(exception); A.jsThrow(A._wrapException(error, stackTrace)); } else { error0 = t1; stackTrace0 = A.getTraceFromException(exception); t1 = J.toString$0$(error0); t2 = A.getTrace0(error0); A.jsThrow(A._newRenderError(t1, t2 == null ? stackTrace0 : t2, _null, _null, _null, 3)); } } }, _wrapException(exception, stackTrace) { var url, t2, t3, t4, t5, t1 = A.SourceSpanException.prototype.get$span.call(exception, exception), _0_0 = t1.get$sourceUrl(t1); $label0$0: { if (_0_0 == null) { t1 = "stdin"; break $label0$0; } if ("file" === _0_0.get$scheme()) { url = _0_0; t1 = true; } else { url = null; t1 = false; } if (t1) { t1 = $.$get$context().style.pathFromUri$1(A._parseUri(url)); break $label0$0; } t1 = _0_0.toString$0(0); break $label0$0; } t2 = B.JSString_methods.replaceFirst$2(exception.toString$0(0), "Error: ", ""); t3 = A.getTrace0(exception); if (t3 == null) t3 = stackTrace; t4 = A.SourceSpanException.prototype.get$span.call(exception, exception); t4 = t4.get$start(t4); t4 = t4.file.getLine$1(t4.offset); t5 = A.SourceSpanException.prototype.get$span.call(exception, exception); t5 = t5.get$start(t5); return A._newRenderError(t2, t3, t5.file.getColumn$1(t5.offset) + 1, t1, t4 + 1, 1); }, _parseFunctions(options, start, asynch) { var result, functions = J.get$functions$x(options); if (functions == null) return B.List_empty24; result = A._setArrayType([], type$.JSArray_AsyncCallable_2); A.jsForEach(functions, new A._parseFunctions_closure(options, start, result, asynch)); return result; }, _parseImporter(options, start) { var t2, importers, t3, contextOptions, _1_0, t4, _box_0 = {}, t1 = J.getInterceptor$x(options), _0_0 = t1.get$importer(options); $label0$0: { if (_0_0 == null) { t2 = A._setArrayType([], type$.JSArray_JSFunction); break $label0$0; } if (type$.List_nullable_Object._is(_0_0)) { importers = _0_0; t2 = true; } else { importers = null; t2 = false; } if (t2) { t2 = J.cast$1$0$ax(importers, type$.JSFunction); break $label0$0; } t2 = A._setArrayType([type$.JSFunction._as(_0_0)], type$.JSArray_JSFunction); break $label0$0; } t3 = J.getInterceptor$asx(t2); contextOptions = t3.get$isNotEmpty(t2) ? A._contextOptions(options, start) : new A.Object(); _box_0.fiber = null; _1_0 = t1.get$fiber(options); if (_1_0 != null) { _box_0.fiber = _1_0; t4 = true; } else t4 = false; if (t4) { t2 = t3.map$1$1(t2, new A._parseImporter_closure(_box_0), type$.JSFunction); importers = A.List_List$of(t2, true, t2.$ti._eval$1("ListIterable.E")); } else importers = t2; t1 = t1.get$includePaths(options); if (t1 == null) t1 = []; t2 = type$.String; 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)); }, _contextOptions(options, start) { var includePaths, t3, t4, t5, t6, t7, t1 = J.getInterceptor$x(options), t2 = t1.get$includePaths(options); if (t2 == null) t2 = []; includePaths = A.List_List$from(t2, true, type$.String); t2 = t1.get$file(options); t3 = t1.get$data(options); t4 = A._setArrayType([A.current()], type$.JSArray_String); B.JSArray_methods.addAll$1(t4, includePaths); t5 = A.isNodeJs() ? self.process : null; t4 = B.JSArray_methods.join$1(t4, J.$eq$(t5 == null ? null : J.get$platform$x(t5), "win32") ? ";" : ":"); t5 = J.$eq$(t1.get$indentType(options), "tab") ? 1 : 0; t6 = A._parseIndentWidth(t1.get$indentWidth(options)); if (t6 == null) t6 = 2; t7 = A._parseLineFeed(t1.get$linefeed(options)); t1 = t1.get$file(options); if (t1 == null) t1 = "data"; return {file: t2, data: t3, includePaths: t4, precision: 10, style: 1, indentType: t5, indentWidth: t6, linefeed: t7.text, result: {stats: {start: start._core$_value, entry: t1}}}; }, _parseOutputStyle(style) { var t1; $label0$0: { if (style == null || "expanded" === style) { t1 = B.OutputStyle_00; break $label0$0; } if ("compressed" === style) { t1 = B.OutputStyle_10; break $label0$0; } t1 = A.jsThrow(new self.Error('Unknown output style "' + A.S(style) + '".')); } return t1; }, _parseIndentWidth(width) { var t1; $label0$0: { if (width == null) { t1 = null; break $label0$0; } if (A._isInt(width)) { t1 = width; break $label0$0; } t1 = A.int_parse(J.toString$0$(width), null); break $label0$0; } return t1; }, _parseLineFeed(str) { var t1; $label0$0: { if ("cr" === str) { t1 = B.LineFeed_oyU; break $label0$0; } if ("crlf" === str) { t1 = B.LineFeed_gg4; break $label0$0; } if ("lfcr" === str) { t1 = B.LineFeed_t2a; break $label0$0; } t1 = B.LineFeed_SsD; break $label0$0; } return t1; }, _newRenderResult(options, result, start) { var t3, sourceMapOption, sourceMapPath, t4, sourceMapDir, outFile, _0_0, file, t5, sourceMapDirUrl, i, source, t6, buffer, indices, url, t7, t8, _null = null, t1 = Date.now(), t2 = result._compile_result$_serialize, css = t2._0, sourceMapBytes = type$.Null._as(self.undefined); if (A._enableSourceMaps(options)) { t3 = J.getInterceptor$x(options); sourceMapOption = t3.get$sourceMap(options); if (typeof sourceMapOption == "string") sourceMapPath = sourceMapOption; else { t4 = t3.get$outFile(options); t4.toString; sourceMapPath = J.$add$ansx(t4, ".map"); } t4 = $.$get$context(); sourceMapDir = t4.dirname$1(sourceMapPath); t2 = t2._1; t2.toString; t2.sourceRoot = t3.get$sourceMapRoot(options); outFile = t3.get$outFile(options); if (outFile == null) { _0_0 = t3.get$file(options); $label0$0: { if (_0_0 != null) { file = _0_0; t5 = true; } else { file = _null; t5 = false; } if (t5) { t5 = t4.toUri$1(t4.withoutExtension$1(file) + ".css").toString$0(0); break $label0$0; } t5 = t2.targetUrl = "stdin.css"; break $label0$0; } t2.targetUrl = t5; } else t2.targetUrl = t4.toUri$1(t4.relative$2$from(outFile, sourceMapDir)).toString$0(0); sourceMapDirUrl = t4.toUri$1(sourceMapDir).toString$0(0); for (t4 = t2.urls, i = 0; i < t4.length; ++i) { source = t4[i]; if (source === "stdin") continue; t5 = $.$get$url(); t6 = t5.style; if (t6.rootLength$1(source) <= 0 || t6.isRootRelative$1(source)) continue; t4[i] = t5.relative$2$from(source, sourceMapDirUrl); } t4 = t3.get$sourceMapContents(options); sourceMapBytes = self.Buffer.from(B.C_JsonCodec.encode$2$toEncodable(t2.toJson$1$includeSourceContents(!J.$eq$(t4, false) && t4 != null), _null), "utf8"); t2 = t3.get$omitSourceMapUrl(options); if (!(!J.$eq$(t2, false) && t2 != null)) { t2 = t3.get$sourceMapEmbed(options); if (!J.$eq$(t2, false) && t2 != null) { buffer = new A.StringBuffer(""); indices = A._setArrayType([-1], type$.JSArray_int); A.UriData__writeUri("application/json", _null, _null, buffer, indices); indices.push(buffer._contents.length); t2 = buffer._contents += ";base64,"; indices.push(t2.length - 1); t2 = B.C_Base64Encoder.startChunkedConversion$1(new A._StringSinkConversionSink(buffer)); t3 = sourceMapBytes.length; A.RangeError_checkValidRange(0, t3, t3); t2._convert$_add$4(sourceMapBytes, 0, t3, true); t2 = buffer._contents; url = new A.UriData(t2.charCodeAt(0) == 0 ? t2 : t2, indices, _null).get$uri(); } else { if (outFile == null) t2 = sourceMapPath; else { t2 = $.$get$context(); t2 = t2.relative$2$from(sourceMapPath, t2.dirname$1(outFile)); } url = $.$get$context().toUri$1(t2); } t2 = url.toString$0(0); css += "\n\n/*# sourceMappingURL=" + A.stringReplaceAllUnchecked(t2, "*/", "%2A/") + " */"; } } t2 = self.Buffer.from(css, "utf8"); t3 = J.get$file$x(options); if (t3 == null) t3 = "data"; t4 = start._core$_value; t1 = new A.DateTime(t1, false)._core$_value; t5 = B.JSInt_methods._tdivFast$1(A.Duration$(t1 - t4)._duration, 1000); t6 = A._setArrayType([], type$.JSArray_String); for (t7 = result._evaluate._0, t7 = t7.get$iterator(t7); t7.moveNext$0();) { t8 = t7.get$current(t7); t6.push(t8.get$scheme() === "file" ? $.$get$context().style.pathFromUri$1(A._parseUri(t8)) : t8.toString$0(0)); } return {css: t2, map: sourceMapBytes, stats: {entry: t3, start: t4, end: t1, duration: t5, includedFiles: t6}}; }, _enableSourceMaps(options) { var t2, t1 = J.getInterceptor$x(options); if (typeof t1.get$sourceMap(options) != "string") { t2 = t1.get$sourceMap(options); t1 = !J.$eq$(t2, false) && t2 != null && t1.get$outFile(options) != null; } else t1 = true; return t1; }, _newRenderError(message, stackTrace, column, file, line, $status) { var error = new self.Error(message); error.formatted = "Error: " + message; if (line != null) error.line = line; if (column != null) error.column = column; if (file != null) error.file = file; error.status = $status; A.attachJsStack(error, stackTrace); return error; }, render_closure: function render_closure(t0, t1) { this.callback = t0; this.options = t1; }, render_closure0: function render_closure0(t0) { this.callback = t0; }, render_closure1: function render_closure1(t0) { this.callback = t0; }, _parseFunctions_closure: function _parseFunctions_closure(t0, t1, t2, t3) { var _ = this; _.options = t0; _.start = t1; _.result = t2; _.asynch = t3; }, _parseFunctions__closure: function _parseFunctions__closure(t0, t1, t2) { this._box_0 = t0; this.callback = t1; this.context = t2; }, _parseFunctions___closure2: function _parseFunctions___closure2(t0) { this.currentFiber = t0; }, _parseFunctions____closure: function _parseFunctions____closure(t0, t1) { this.currentFiber = t0; this.result = t1; }, _parseFunctions___closure3: function _parseFunctions___closure3(t0, t1, t2) { this.callback = t0; this.context = t1; this.jsArguments = t2; }, _parseFunctions___closure4: function _parseFunctions___closure4(t0) { this._box_0 = t0; }, _parseFunctions__closure0: function _parseFunctions__closure0(t0, t1) { this.callback = t0; this.context = t1; }, _parseFunctions___closure1: function _parseFunctions___closure1(t0, t1, t2) { this.callback = t0; this.context = t1; this.$arguments = t2; }, _parseFunctions__closure1: function _parseFunctions__closure1(t0, t1) { this.callback = t0; this.context = t1; }, _parseFunctions___closure: function _parseFunctions___closure(t0) { this.completer = t0; }, _parseFunctions___closure0: function _parseFunctions___closure0(t0, t1, t2) { this.callback = t0; this.context = t1; this.jsArguments = t2; }, _parseImporter_closure: function _parseImporter_closure(t0) { this._box_0 = t0; }, _parseImporter__closure: function _parseImporter__closure(t0, t1) { this._box_0 = t0; this.importer = t1; }, _parseImporter___closure: function _parseImporter___closure(t0) { this.currentFiber = t0; }, _parseImporter____closure: function _parseImporter____closure(t0, t1) { this.currentFiber = t0; this.result = t1; }, _parseImporter___closure0: function _parseImporter___closure0(t0) { this._box_0 = t0; }, LimitedMapView$blocklist0(_map, blocklist, $K, $V) { var t2, key, t1 = A.LinkedHashSet_LinkedHashSet$_empty($K); for (t2 = J.get$iterator$ax(_map.get$keys(_map)); t2.moveNext$0();) { key = t2.get$current(t2); if (!blocklist.contains$1(0, key)) t1.add$1(0, key); } return new A.LimitedMapView0(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView0<1,2>")); }, LimitedMapView0: function LimitedMapView0(t0, t1, t2) { this._limited_map_view0$_map = t0; this._limited_map_view0$_keys = t1; this.$ti = t2; }, ListExpression0: function ListExpression0(t0, t1, t2, t3) { var _ = this; _.contents = t0; _.separator = t1; _.hasBrackets = t2; _.span = t3; }, ListExpression_toString_closure0: function ListExpression_toString_closure0(t0) { this.$this = t0; }, ListExpression__elementNeedsParens_closure0: function ListExpression__elementNeedsParens_closure0(t0) { this._0_0 = t0; }, _function10($name, $arguments, callback) { return A.BuiltInCallable$function0($name, $arguments, callback, "sass:list"); }, _length_closure2: function _length_closure2() { }, _nth_closure0: function _nth_closure0() { }, _setNth_closure0: function _setNth_closure0() { }, _join_closure0: function _join_closure0() { }, _join__closure2: function _join__closure2(t0) { this._0_0 = t0; }, _join__closure3: function _join__closure3(t0) { this._0_1 = t0; }, _join__closure4: function _join__closure4(t0) { this._0_0 = t0; }, _append_closure2: function _append_closure2() { }, _zip_closure0: function _zip_closure0() { }, _zip__closure2: function _zip__closure2() { }, _zip__closure3: function _zip__closure3(t0) { this._box_0 = t0; }, _zip__closure4: function _zip__closure4(t0) { this._box_0 = t0; }, _index_closure2: function _index_closure2() { }, _separator_closure0: function _separator_closure0() { }, _isBracketed_closure0: function _isBracketed_closure0() { }, _slash_closure0: function _slash_closure0() { }, SelectorList$0(components, span) { var t1 = A.List_List$unmodifiable(components, type$.ComplexSelector_2); if (t1.length === 0) A.throwExpression(A.ArgumentError$("components may not be empty.", null)); return new A.SelectorList0(t1, span); }, SelectorList_SelectorList$parse0(contents, allowParent, allowPlaceholder, interpolationMap, logger) { return A.SelectorParser$0(contents, allowParent, allowPlaceholder, interpolationMap, logger, null).parse$0(); }, SelectorList0: function SelectorList0(t0, t1) { this.components = t0; this.span = t1; }, SelectorList_asSassList_closure0: function SelectorList_asSassList_closure0() { }, SelectorList_resolveParentSelectors_closure0: function SelectorList_resolveParentSelectors_closure0(t0, t1, t2) { this.$this = t0; this.implicitParent = t1; this.parent = t2; }, SelectorList_resolveParentSelectors__closure1: function SelectorList_resolveParentSelectors__closure1(t0) { this.complex = t0; }, SelectorList_resolveParentSelectors__closure2: function SelectorList_resolveParentSelectors__closure2(t0) { this.complex = t0; }, SelectorList__resolveParentSelectorsCompound_closure2: function SelectorList__resolveParentSelectorsCompound_closure2() { }, SelectorList__resolveParentSelectorsCompound_closure3: function SelectorList__resolveParentSelectorsCompound_closure3(t0) { this.parent = t0; }, SelectorList__resolveParentSelectorsCompound__closure0: function SelectorList__resolveParentSelectorsCompound__closure0(t0) { this._0_0 = t0; }, SelectorList__resolveParentSelectorsCompound_closure4: function SelectorList__resolveParentSelectorsCompound_closure4(t0, t1, t2) { this.parentSelector = t0; this.resolvedSimples = t1; this.component = t2; }, SelectorList_withAdditionalCombinators_closure0: function SelectorList_withAdditionalCombinators_closure0(t0) { this.combinators = t0; }, _ParentSelectorVisitor0: function _ParentSelectorVisitor0() { }, __ParentSelectorVisitor_Object_SelectorSearchVisitor0: function __ParentSelectorVisitor_Object_SelectorSearchVisitor0() { }, listClass_closure: function listClass_closure() { }, listClass__closure: function listClass__closure() { }, listClass__closure0: function listClass__closure0() { }, _ConstructorOptions: function _ConstructorOptions() { }, _NodeSassList: function _NodeSassList() { }, legacyListClass_closure: function legacyListClass_closure() { }, legacyListClass__closure: function legacyListClass__closure() { }, legacyListClass_closure0: function legacyListClass_closure0() { }, legacyListClass_closure1: function legacyListClass_closure1() { }, legacyListClass_closure2: function legacyListClass_closure2() { }, legacyListClass_closure3: function legacyListClass_closure3() { }, legacyListClass_closure4: function legacyListClass_closure4() { }, SassList$0(contents, _separator, brackets) { var t1 = new A.SassList0(A.List_List$unmodifiable(contents, type$.Value_2), _separator, brackets); t1.SassList$3$brackets0(contents, _separator, brackets); return t1; }, SassList0: function SassList0(t0, t1, t2) { this._list1$_contents = t0; this._list1$_separator = t1; this._list1$_hasBrackets = t2; }, SassList_isBlank_closure0: function SassList_isBlank_closure0() { }, ListSeparator0: function ListSeparator0(t0, t1, t2) { this._list1$_name = t0; this.separator = t1; this._name = t2; }, JSLogger: function JSLogger() { }, WarnOptions: function WarnOptions() { }, DebugOptions: function DebugOptions() { }, WarnForDeprecation_warnForDeprecation0(_this, deprecation, message, span, trace) { var $self, t1; if (_this instanceof A.DeprecationHandlingLogger0) { $self = _this; t1 = true; } else { $self = null; t1 = false; } if (t1) $self.warnForDeprecation$4$span$trace(deprecation, message, span, trace); else if (!deprecation.isFuture) _this.warn$4$deprecation$span$trace(0, message, true, span, trace); }, _QuietLogger0: function _QuietLogger0() { }, LoudComment0: function LoudComment0(t0) { this.text = t0; }, MapExpression0: function MapExpression0(t0, t1) { this.pairs = t0; this.span = t1; }, _modify0(map, keys, modify, addNesting) { var keyIterator = J.get$iterator$ax(keys); return keyIterator.moveNext$0() ? new A._modify_modifyNestedMap0(keyIterator, modify, addNesting).call$1(map) : modify.call$1(map); }, _deepMergeImpl0(map1, map2) { var t2, t3, result, key, value, _1_0, _1_1, _1_3, resultMap, valueMap, merged, _null = null, t1 = map1._map0$_contents; if (t1.get$isEmpty(t1)) return map2; t2 = map2._map0$_contents; if (t2.get$isEmpty(t2)) return map1; t3 = type$.Value_2; result = A.LinkedHashMap_LinkedHashMap$of(t1, t3, t3); for (t1 = A.MapExtensions_get_pairs0(t2, t3, t3), t1 = t1.get$iterator(t1); t1.moveNext$0();) { t2 = t1.get$current(t1); key = t2._0; value = t2._1; t2 = result.$index(0, key); t2 = t2 == null ? _null : t2.tryMap$0(); _1_0 = new A._Record_2(t2, value.tryMap$0()); _1_1 = A._InitializedCell$(new A._deepMergeImpl_closure1(_1_0)); _1_3 = A._InitializedCell$(new A._deepMergeImpl_closure2(_1_0)); if (_1_1._readFinal$0() != null) { resultMap = _1_1._readFinal$0(); t2 = true; } else { resultMap = _null; t2 = false; } if (t2) if (_1_3._readFinal$0() != null) { valueMap = _1_3._readFinal$0(); t2 = true; } else { valueMap = _null; t2 = false; } else { valueMap = _null; t2 = false; } if (t2) { merged = A._deepMergeImpl0(resultMap, valueMap); if (merged === resultMap) continue; result.$indexSet(0, key, merged); } else result.$indexSet(0, key, value); } return new A.SassMap0(A.ConstantMap_ConstantMap$from(result, t3, t3)); }, _function9($name, $arguments, callback) { return A.BuiltInCallable$function0($name, $arguments, callback, "sass:map"); }, _get_closure0: function _get_closure0() { }, _set_closure1: function _set_closure1() { }, _set__closure4: function _set__closure4(t0) { this.$arguments = t0; }, _set_closure2: function _set_closure2() { }, _set__closure2: function _set__closure2(t0) { this._0_0 = t0; }, _set__closure3: function _set__closure3(t0) { this._box_0 = t0; }, _merge_closure1: function _merge_closure1() { }, _merge_closure2: function _merge_closure2() { }, _merge__closure1: function _merge__closure1(t0) { this._0_0 = t0; }, _merge__closure2: function _merge__closure2(t0) { this.map2 = t0; }, _deepMerge_closure0: function _deepMerge_closure0() { }, _deepRemove_closure0: function _deepRemove_closure0() { }, _deepRemove__closure0: function _deepRemove__closure0(t0) { this.keys = t0; }, _remove_closure1: function _remove_closure1() { }, _remove_closure2: function _remove_closure2() { }, _keys_closure0: function _keys_closure0() { }, _values_closure0: function _values_closure0() { }, _hasKey_closure0: function _hasKey_closure0() { }, _modify_modifyNestedMap0: function _modify_modifyNestedMap0(t0, t1, t2) { this.keyIterator = t0; this.modify = t1; this.addNesting = t2; }, _deepMergeImpl_closure1: function _deepMergeImpl_closure1(t0) { this._1_0 = t0; }, _deepMergeImpl_closure2: function _deepMergeImpl_closure2(t0) { this._1_0 = t0; }, MapExtensions_get_pairs0(_this, $K, $V) { 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)")); }, MapExtensions_get_pairs_closure0: function MapExtensions_get_pairs_closure0(t0, t1) { this.K = t0; this.V = t1; }, mapClass_closure: function mapClass_closure() { }, mapClass__closure: function mapClass__closure() { }, mapClass__closure0: function mapClass__closure0() { }, mapClass__closure1: function mapClass__closure1() { }, _NodeSassMap: function _NodeSassMap() { }, legacyMapClass_closure: function legacyMapClass_closure() { }, legacyMapClass__closure: function legacyMapClass__closure() { }, legacyMapClass__closure0: function legacyMapClass__closure0() { }, legacyMapClass_closure0: function legacyMapClass_closure0() { }, legacyMapClass_closure1: function legacyMapClass_closure1() { }, legacyMapClass_closure2: function legacyMapClass_closure2() { }, legacyMapClass_closure3: function legacyMapClass_closure3() { }, legacyMapClass_closure4: function legacyMapClass_closure4() { }, SassMap0: function SassMap0(t0) { this._map0$_contents = t0; }, _singleArgumentMathFunc0($name, mathFunc) { return A.BuiltInCallable$function0($name, "$number", new A._singleArgumentMathFunc_closure0(mathFunc), "sass:math"); }, _numberFunction0($name, transform) { return A.BuiltInCallable$function0($name, "$number", new A._numberFunction_closure0(transform), "sass:math"); }, _function8($name, $arguments, callback) { return A.BuiltInCallable$function0($name, $arguments, callback, "sass:math"); }, global_closure31: function global_closure31() { }, module_closure11: function module_closure11() { }, _ceil_closure0: function _ceil_closure0() { }, _clamp_closure0: function _clamp_closure0() { }, _floor_closure0: function _floor_closure0() { }, _max_closure0: function _max_closure0() { }, _min_closure0: function _min_closure0() { }, _round_closure0: function _round_closure0() { }, _hypot_closure0: function _hypot_closure0() { }, _hypot__closure0: function _hypot__closure0() { }, _log_closure0: function _log_closure0() { }, _pow_closure0: function _pow_closure0() { }, _atan2_closure0: function _atan2_closure0() { }, _compatible_closure0: function _compatible_closure0() { }, _isUnitless_closure0: function _isUnitless_closure0() { }, _unit_closure0: function _unit_closure0() { }, _percentage_closure0: function _percentage_closure0() { }, _randomFunction_closure0: function _randomFunction_closure0() { }, _div_closure0: function _div_closure0() { }, _singleArgumentMathFunc_closure0: function _singleArgumentMathFunc_closure0(t0) { this.mathFunc = t0; }, _numberFunction_closure0: function _numberFunction_closure0(t0) { this.transform = t0; }, CssMediaQuery_parseList0(contents, interpolationMap, logger) { var t1 = A.SpanScanner$(contents, null); return new A.MediaQueryParser0(t1, logger, interpolationMap).parse$0(); }, CssMediaQuery$type0(type, conditions, modifier) { return new A.CssMediaQuery0(modifier, type, true, conditions == null ? B.List_empty : A.List_List$unmodifiable(conditions, type$.String)); }, CssMediaQuery$condition0(conditions, conjunction) { var t1 = A.List_List$unmodifiable(conditions, type$.String); if (t1.length > 1 && conjunction == null) A.throwExpression(A.ArgumentError$(string$.If_con, null)); return new A.CssMediaQuery0(null, null, conjunction !== false, t1); }, CssMediaQuery0: function CssMediaQuery0(t0, t1, t2, t3) { var _ = this; _.modifier = t0; _.type = t1; _.conjunction = t2; _.conditions = t3; }, _SingletonCssMediaQueryMergeResult0: function _SingletonCssMediaQueryMergeResult0(t0) { this._name = t0; }, MediaQuerySuccessfulMergeResult0: function MediaQuerySuccessfulMergeResult0(t0) { this.query = t0; }, MediaQueryParser0: function MediaQueryParser0(t0, t1, t2) { this.scanner = t0; this.logger = t1; this._parser0$_interpolationMap = t2; }, MediaQueryParser_parse_closure0: function MediaQueryParser_parse_closure0(t0) { this.$this = t0; }, ModifiableCssMediaRule$0(queries, span) { var t1 = A.List_List$unmodifiable(queries, type$.CssMediaQuery_2), t2 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2); if (J.get$isEmpty$asx(queries)) A.throwExpression(A.ArgumentError$value(queries, "queries", "may not be empty.")); return new A.ModifiableCssMediaRule0(t1, span, new A.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2); }, ModifiableCssMediaRule0: function ModifiableCssMediaRule0(t0, t1, t2, t3) { var _ = this; _.queries = t0; _.span = t1; _.children = t2; _._node$_children = t3; _._node$_indexInParent = _._node$_parent = null; _.isGroupEnd = false; }, MediaRule$0(query, children, span) { var t1 = A.List_List$unmodifiable(children, type$.Statement_2), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0()); return new A.MediaRule0(query, span, t1, t2); }, MediaRule0: function MediaRule0(t0, t1, t2, t3) { var _ = this; _.query = t0; _.span = t1; _.children = t2; _.hasDeclarations = t3; }, MergedExtension_merge0(left, right) { var t2, t3, t4, t1 = left.extender.selector; if (!t1.$eq(0, right.extender.selector) || !left.target.$eq(0, right.target)) throw A.wrapException(A.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension.", null)); t2 = left.mediaContext; t3 = t2 == null; if (!t3) { t4 = right.mediaContext; t4 = t4 != null && !B.C_ListEquality.equals$2(0, t2, t4); } else t4 = false; if (t4) throw A.wrapException(A.SassException$0("From " + left.span.message$1(0, "") + string$.x0aYou_m, right.span, null)); if (right.isOptional && right.mediaContext == null) return left; if (left.isOptional && t3) return right; if (t3) t2 = right.mediaContext; t1.get$specificity(); t1 = new A.Extender0(t1, false); return t1._extension$_extension = new A.MergedExtension0(left, right, t1, left.target, t2, true, left.span); }, MergedExtension0: function MergedExtension0(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.left = t0; _.right = t1; _.extender = t2; _.target = t3; _.mediaContext = t4; _.isOptional = t5; _.span = t6; }, MergedMapView$0(maps, $K, $V) { var t1 = $K._eval$1("@<0>")._bind$1($V); t1 = new A.MergedMapView0(A.LinkedHashMap_LinkedHashMap$_empty($K, t1._eval$1("Map<1,2>")), t1._eval$1("MergedMapView0<1,2>")); t1.MergedMapView$10(maps, $K, $V); return t1; }, MergedMapView0: function MergedMapView0(t0, t1) { this._merged_map_view$_mapsByKey = t0; this.$ti = t1; }, _function12($name, $arguments, callback) { return A.BuiltInCallable$function0($name, $arguments, callback, "sass:meta"); }, global_closure59: function global_closure59() { }, global_closure60: function global_closure60() { }, global_closure61: function global_closure61() { }, global_closure62: function global_closure62() { }, local_closure2: function local_closure2() { }, local_closure3: function local_closure3() { }, local__closure2: function local__closure2() { }, local_closure4: function local_closure4() { }, local__closure1: function local__closure1(t0) { this._0_0 = t0; }, mixinClass_closure: function mixinClass_closure() { }, mixinClass__closure: function mixinClass__closure() { }, mixinClass__closure0: function mixinClass__closure0() { }, SassMixin0: function SassMixin0(t0) { this.callable = t0; }, MixinRule$0($name, $arguments, children, span, comment) { var t1 = A.List_List$unmodifiable(children, type$.Statement_2), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0()); return new A.MixinRule0($name, $arguments, span, t1, t2); }, MixinRule0: function MixinRule0(t0, t1, t2, t3, t4) { var _ = this; _._mixin_rule$__MixinRule_hasContent_FI = $; _.name = t0; _.$arguments = t1; _.span = t2; _.children = t3; _.hasDeclarations = t4; }, _HasContentVisitor0: function _HasContentVisitor0() { }, __HasContentVisitor_Object_StatementSearchVisitor0: function __HasContentVisitor_Object_StatementSearchVisitor0() { }, ExtendMode0: function ExtendMode0(t0, t1) { this.name = t0; this._name = t1; }, MultiSpan0: function MultiSpan0(t0, t1, t2) { this._multi_span0$_primary = t0; this.primaryLabel = t1; this.secondarySpans = t2; }, SupportsNegation0: function SupportsNegation0(t0, t1) { this.condition = t0; this.span = t1; }, NoOpImporter0: function NoOpImporter0() { }, NoSourceMapBuffer0: function NoSourceMapBuffer0(t0) { this._no_source_map_buffer0$_buffer = t0; }, _FakeAstNode0: function _FakeAstNode0(t0) { this._node0$_callback = t0; }, CssNode0: function CssNode0() { }, CssParentNode0: function CssParentNode0() { }, _IsInvisibleVisitor1: function _IsInvisibleVisitor1(t0, t1) { this.includeBogus = t0; this.includeComments = t1; }, __IsInvisibleVisitor_Object_EveryCssVisitor0: function __IsInvisibleVisitor_Object_EveryCssVisitor0() { }, ModifiableCssNode0: function ModifiableCssNode0() { }, ModifiableCssNode_hasFollowingSibling_closure0: function ModifiableCssNode_hasFollowingSibling_closure0() { }, ModifiableCssParentNode0: function ModifiableCssParentNode0() { }, NullExpression0: function NullExpression0(t0) { this.span = t0; }, legacyNullClass_closure: function legacyNullClass_closure() { }, legacyNullClass__closure: function legacyNullClass__closure() { }, _SassNull0: function _SassNull0() { }, NumberExpression0: function NumberExpression0(t0, t1, t2) { this.value = t0; this.unit = t1; this.span = t2; }, numberClass_closure: function numberClass_closure() { }, numberClass__closure: function numberClass__closure() { }, numberClass__closure0: function numberClass__closure0() { }, numberClass__closure1: function numberClass__closure1() { }, numberClass__closure2: function numberClass__closure2() { }, numberClass__closure3: function numberClass__closure3() { }, numberClass__closure4: function numberClass__closure4() { }, numberClass__closure5: function numberClass__closure5() { }, numberClass__closure6: function numberClass__closure6() { }, numberClass__closure7: function numberClass__closure7() { }, numberClass__closure8: function numberClass__closure8() { }, numberClass__closure9: function numberClass__closure9() { }, numberClass__closure10: function numberClass__closure10() { }, numberClass__closure11: function numberClass__closure11() { }, numberClass__closure12: function numberClass__closure12() { }, numberClass__closure13: function numberClass__closure13() { }, numberClass__closure14: function numberClass__closure14() { }, numberClass__closure15: function numberClass__closure15() { }, numberClass__closure16: function numberClass__closure16() { }, numberClass__closure17: function numberClass__closure17() { }, numberClass__closure18: function numberClass__closure18() { }, numberClass__closure19: function numberClass__closure19() { }, _ConstructorOptions0: function _ConstructorOptions0() { }, _parseNumber(value, unit) { var invalidUnit, operands, t1, numerator, denominator, numeratorUnits, denominatorUnits; if (unit == null || unit.length === 0) return A.SassNumber_SassNumber0(value, null); if (!J.contains$1$asx(unit, "*") && !B.JSString_methods.contains$1(unit, "/")) return A.SassNumber_SassNumber0(value, unit); invalidUnit = new A.ArgumentError(true, unit, "unit", "is invalid."); operands = unit.split("/"); t1 = operands.length; if (t1 > 2) throw A.wrapException(invalidUnit); numerator = operands[0]; denominator = t1 === 1 ? null : operands[1]; t1 = type$.JSArray_String; numeratorUnits = numerator.length === 0 ? A._setArrayType([], t1) : A._setArrayType(numerator.split("*"), t1); if (B.JSArray_methods.any$1(numeratorUnits, new A._parseNumber_closure())) throw A.wrapException(invalidUnit); denominatorUnits = denominator == null ? A._setArrayType([], t1) : A._setArrayType(denominator.split("*"), t1); if (B.JSArray_methods.any$1(denominatorUnits, new A._parseNumber_closure0())) throw A.wrapException(invalidUnit); return A.SassNumber_SassNumber$withUnits0(value, denominatorUnits, numeratorUnits); }, _NodeSassNumber: function _NodeSassNumber() { }, legacyNumberClass_closure: function legacyNumberClass_closure() { }, legacyNumberClass_closure0: function legacyNumberClass_closure0() { }, legacyNumberClass_closure1: function legacyNumberClass_closure1() { }, legacyNumberClass_closure2: function legacyNumberClass_closure2() { }, legacyNumberClass_closure3: function legacyNumberClass_closure3() { }, _parseNumber_closure: function _parseNumber_closure() { }, _parseNumber_closure0: function _parseNumber_closure0() { }, conversionFactor0(unit1, unit2) { var _0_0, innerMap, t1; if (unit1 === unit2) return 1; _0_0 = B.Map_nfuzN.$index(0, unit1); if (_0_0 != null) { innerMap = _0_0; t1 = true; } else { innerMap = null; t1 = false; } if (t1) return innerMap.$index(0, unit2); return null; }, SassNumber_SassNumber0(value, unit) { return unit == null ? new A.UnitlessSassNumber0(value, null) : new A.SingleUnitSassNumber0(unit, value, null); }, SassNumber_SassNumber$withUnits0(value, denominatorUnits, numeratorUnits) { var t1, unit, numerators, denominators, unsimplifiedDenominators, valueDouble, _i, denominator, simplifiedAway, i, factor, _1_0, _1_1, _1_2, _1_7, _null = null, _0_0 = new A._Record_2(numeratorUnits, denominatorUnits), _0_1 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure9(_0_0)), _0_3 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure10(_0_1)), _0_4 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure11(_0_1)), _0_6 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure12(_0_4)), _0_7 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure13(_0_0)), _0_8 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure14(_0_7)), _0_10 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure15(_0_7)); if (_0_3._readFinal$0() || _0_6._readFinal$0()) t1 = _0_8._readFinal$0() || _0_10._readFinal$0(); else t1 = false; if (t1) return new A.UnitlessSassNumber0(value, _null); if (type$.List_String._is(_0_1._readFinal$0())) if (J.$eq$(_0_4._readFinal$0(), 1)) { unit = J.$index$asx(_0_1._readFinal$0(), 0); t1 = _0_8._readFinal$0() || _0_10._readFinal$0(); } else { unit = _null; t1 = false; } else { unit = _null; t1 = false; } if (t1) return new A.SingleUnitSassNumber0(unit, value, _null); if (_0_1._readFinal$0() != null) { numerators = _0_1._readFinal$0(); t1 = true; } else { numerators = _null; t1 = false; } if (t1) t1 = _0_8._readFinal$0() || _0_10._readFinal$0(); else t1 = false; if (t1) return new A.ComplexSassNumber0(A.List_List$unmodifiable(numerators, type$.String), B.List_empty, value, _null); if (_0_3._readFinal$0() || _0_6._readFinal$0()) if (_0_7._readFinal$0() != null) { denominators = _0_7._readFinal$0(); t1 = true; } else { denominators = _null; t1 = false; } else { denominators = _null; t1 = false; } if (t1) return new A.ComplexSassNumber0(B.List_empty, A.List_List$unmodifiable(denominators, type$.String), value, _null); numeratorUnits.toString; numerators = J.toList$0$ax(numeratorUnits); denominatorUnits.toString; unsimplifiedDenominators = J.toList$0$ax(denominatorUnits); denominators = A._setArrayType([], type$.JSArray_String); for (t1 = unsimplifiedDenominators.length, valueDouble = value, _i = 0; _i < unsimplifiedDenominators.length; unsimplifiedDenominators.length === t1 || (0, A.throwConcurrentModificationError)(unsimplifiedDenominators), ++_i) { denominator = unsimplifiedDenominators[_i]; i = 0; while (true) { if (!(i < numerators.length)) { simplifiedAway = false; break; } c$0: { factor = A.conversionFactor0(denominator, numerators[i]); if (factor == null) break c$0; valueDouble *= factor; B.JSArray_methods.removeAt$1(numerators, i); simplifiedAway = true; break; } ++i; } if (!simplifiedAway) denominators.push(denominator); } _1_0 = new A._Record_2(numerators, denominators); _1_1 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure16(_1_0)); _1_2 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure17(_1_1)); _1_7 = A._InitializedCell$(new A.SassNumber_SassNumber$withUnits_closure18(_1_0)); $label0$1: { if (_1_2._readFinal$0() <= 0 && _1_7._readFinal$0()) { t1 = new A.UnitlessSassNumber0(valueDouble, _null); break $label0$1; } if (J.$eq$(_1_2._readFinal$0(), 1)) { unit = J.$index$asx(_1_1._readFinal$0(), 0); t1 = _1_7._readFinal$0(); t1 = t1; } else { unit = _null; t1 = false; } if (t1) { t1 = new A.SingleUnitSassNumber0(unit, valueDouble, _null); break $label0$1; } t1 = type$.String; t1 = new A.ComplexSassNumber0(A.List_List$unmodifiable(numerators, t1), A.List_List$unmodifiable(denominators, t1), valueDouble, _null); break $label0$1; } return t1; }, SassNumber0: function SassNumber0() { }, SassNumber_SassNumber$withUnits_closure10: function SassNumber_SassNumber$withUnits_closure10(t0) { this._0_1 = t0; }, SassNumber_SassNumber$withUnits_closure9: function SassNumber_SassNumber$withUnits_closure9(t0) { this._0_0 = t0; }, SassNumber_SassNumber$withUnits_closure11: function SassNumber_SassNumber$withUnits_closure11(t0) { this._0_1 = t0; }, SassNumber_SassNumber$withUnits_closure12: function SassNumber_SassNumber$withUnits_closure12(t0) { this._0_4 = t0; }, SassNumber_SassNumber$withUnits_closure14: function SassNumber_SassNumber$withUnits_closure14(t0) { this._0_7 = t0; }, SassNumber_SassNumber$withUnits_closure13: function SassNumber_SassNumber$withUnits_closure13(t0) { this._0_0 = t0; }, SassNumber_SassNumber$withUnits_closure15: function SassNumber_SassNumber$withUnits_closure15(t0) { this._0_7 = t0; }, SassNumber_SassNumber$withUnits_closure16: function SassNumber_SassNumber$withUnits_closure16(t0) { this._1_0 = t0; }, SassNumber_SassNumber$withUnits_closure17: function SassNumber_SassNumber$withUnits_closure17(t0) { this._1_1 = t0; }, SassNumber_SassNumber$withUnits_closure18: function SassNumber_SassNumber$withUnits_closure18(t0) { this._1_0 = t0; }, SassNumber__coerceOrConvertValue_compatibilityException0: function SassNumber__coerceOrConvertValue_compatibilityException0(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.$this = t0; _.other = t1; _.otherName = t2; _.otherHasUnits = t3; _.name = t4; _.newNumerators = t5; _.newDenominators = t6; }, SassNumber__coerceOrConvertValue_closure3: function SassNumber__coerceOrConvertValue_closure3(t0, t1) { this._box_0 = t0; this.newNumerator = t1; }, SassNumber__coerceOrConvertValue_closure4: function SassNumber__coerceOrConvertValue_closure4(t0) { this.compatibilityException = t0; }, SassNumber__coerceOrConvertValue_closure5: function SassNumber__coerceOrConvertValue_closure5(t0, t1) { this._box_0 = t0; this.newDenominator = t1; }, SassNumber__coerceOrConvertValue_closure6: function SassNumber__coerceOrConvertValue_closure6(t0) { this.compatibilityException = t0; }, SassNumber_plus_closure0: function SassNumber_plus_closure0() { }, SassNumber_minus_closure0: function SassNumber_minus_closure0() { }, SassNumber_multiplyUnits_closure11: function SassNumber_multiplyUnits_closure11(t0) { this._0_0 = t0; }, SassNumber_multiplyUnits_closure12: function SassNumber_multiplyUnits_closure12(t0) { this._0_0 = t0; }, SassNumber_multiplyUnits_closure13: function SassNumber_multiplyUnits_closure13(t0) { this._0_0 = t0; }, SassNumber_multiplyUnits_closure14: function SassNumber_multiplyUnits_closure14(t0) { this._0_3 = t0; }, SassNumber_multiplyUnits_closure15: function SassNumber_multiplyUnits_closure15(t0) { this._0_0 = t0; }, SassNumber_multiplyUnits_closure16: function SassNumber_multiplyUnits_closure16(t0) { this._0_7 = t0; }, SassNumber_multiplyUnits_closure17: function SassNumber_multiplyUnits_closure17(t0) { this._0_1 = t0; }, SassNumber_multiplyUnits_closure18: function SassNumber_multiplyUnits_closure18(t0) { this._0_2 = t0; }, SassNumber_multiplyUnits_closure19: function SassNumber_multiplyUnits_closure19(t0, t1) { this._box_0 = t0; this.numerator = t1; }, SassNumber_multiplyUnits_closure20: function SassNumber_multiplyUnits_closure20(t0, t1) { this.newNumerators = t0; this.numerator = t1; }, SassNumber_multiplyUnits_closure21: function SassNumber_multiplyUnits_closure21(t0, t1) { this._box_0 = t0; this.numerator = t1; }, SassNumber_multiplyUnits_closure22: function SassNumber_multiplyUnits_closure22(t0, t1) { this.newNumerators = t0; this.numerator = t1; }, SassNumber__areAnyConvertible_closure0: function SassNumber__areAnyConvertible_closure0(t0) { this.units2 = t0; }, SassNumber__unitString_closure3: function SassNumber__unitString_closure3(t0) { this._0_0 = t0; }, SassNumber__unitString_closure4: function SassNumber__unitString_closure4(t0) { this._0_0 = t0; }, SassNumber__unitString_closure5: function SassNumber__unitString_closure5(t0) { this._0_5 = t0; }, SassNumber__unitString_closure6: function SassNumber__unitString_closure6(t0) { this._0_6 = t0; }, SassNumber__canonicalizeUnitList_closure0: function SassNumber__canonicalizeUnitList_closure0() { }, SassNumber__canonicalMultiplier_closure0: function SassNumber__canonicalMultiplier_closure0(t0) { this.$this = t0; }, SassNumber_unitSuggestion_closure1: function SassNumber_unitSuggestion_closure1() { }, SassNumber_unitSuggestion_closure2: function SassNumber_unitSuggestion_closure2() { }, SupportsOperation$0(left, right, operator, span) { var lowerOperator = operator.toLowerCase(); if (lowerOperator !== "and" && lowerOperator !== "or") A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".')); return new A.SupportsOperation0(left, right, operator, span); }, SupportsOperation0: function SupportsOperation0(t0, t1, t2, t3) { var _ = this; _.left = t0; _.right = t1; _.operator = t2; _.span = t3; }, ParentSelector0: function ParentSelector0(t0, t1) { this.suffix = t0; this.span = t1; }, ParentStatement0: function ParentStatement0() { }, ParentStatement_closure0: function ParentStatement_closure0() { }, ParentStatement__closure0: function ParentStatement__closure0() { }, ParenthesizedExpression0: function ParenthesizedExpression0(t0, t1) { this.expression = t0; this.span = t1; }, Parser_isIdentifier0(text) { var t1, t2, exception, logger = null; try { t1 = logger; t2 = A.SpanScanner$(text, null); new A.Parser1(t2, t1 == null ? B.StderrLogger_false0 : t1, null)._parser0$_parseIdentifier$0(); return true; } catch (exception) { if (type$.SassFormatException_2._is(A.unwrapException(exception))) return false; else throw exception; } }, Parser1: function Parser1(t0, t1, t2) { this.scanner = t0; this.logger = t1; this._parser0$_interpolationMap = t2; }, Parser__parseIdentifier_closure0: function Parser__parseIdentifier_closure0(t0) { this.$this = t0; }, Parser_escape_closure0: function Parser_escape_closure0() { }, Parser_scanIdentChar_matches0: function Parser_scanIdentChar_matches0(t0, t1) { this.caseSensitive = t0; this.char = t1; }, Parser_spanFrom_closure0: function Parser_spanFrom_closure0(t0, t1) { this.$this = t0; this.span = t1; }, PlaceholderSelector0: function PlaceholderSelector0(t0, t1) { this.name = t0; this.span = t1; }, PlainCssCallable0: function PlainCssCallable0(t0) { this.name = t0; }, PrefixedMapView0: function PrefixedMapView0(t0, t1, t2) { this._prefixed_map_view0$_map = t0; this._prefixed_map_view0$_prefix = t1; this.$ti = t2; }, _PrefixedKeys0: function _PrefixedKeys0(t0) { this._prefixed_map_view0$_view = t0; }, _PrefixedKeys_iterator_closure0: function _PrefixedKeys_iterator_closure0(t0) { this.$this = t0; }, PseudoSelector$0($name, span, argument, element, selector) { var t1 = !element, t2 = t1 && !A.PseudoSelector__isFakePseudoElement0($name); return new A.PseudoSelector0($name, A.unvendor0($name), t2, t1, argument, selector, span); }, PseudoSelector__isFakePseudoElement0($name) { switch ($name.charCodeAt(0)) { case 97: case 65: return A.equalsIgnoreCase0($name, "after"); case 98: case 66: return A.equalsIgnoreCase0($name, "before"); case 102: case 70: return A.equalsIgnoreCase0($name, "first-line") || A.equalsIgnoreCase0($name, "first-letter"); default: return false; } }, PseudoSelector0: function PseudoSelector0(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _.name = t0; _.normalizedName = t1; _.isClass = t2; _.isSyntacticClass = t3; _.argument = t4; _.selector = t5; _._pseudo$__PseudoSelector_specificity_FI = $; _.span = t6; }, PseudoSelector_specificity_closure0: function PseudoSelector_specificity_closure0(t0) { this.$this = t0; }, PseudoSelector_specificity__closure1: function PseudoSelector_specificity__closure1() { }, PseudoSelector_specificity__closure2: function PseudoSelector_specificity__closure2() { }, PseudoSelector_unify_closure0: function PseudoSelector_unify_closure0() { }, PublicMemberMapView0: function PublicMemberMapView0(t0, t1) { this._public_member_map_view0$_inner = t0; this.$ti = t1; }, QualifiedName0: function QualifiedName0(t0, t1) { this.name = t0; this.namespace = t1; }, createJSClass($name, $constructor) { return type$.JSClass._as(A.allowInteropCaptureThisNamed($name, $constructor)); }, JSClassExtension_injectSuperclass(_this, superclass) { var t1 = J.getInterceptor$x(superclass), t2 = J.getInterceptor$x(_this); self.Object.setPrototypeOf(t1.get$$prototype(superclass), J.get$$prototype$x(type$.JSClass._as(self.Object.getPrototypeOf(t2.get$$prototype(_this)).constructor))); self.Object.setPrototypeOf(t2.get$$prototype(_this), self.Object.create(t1.get$$prototype(superclass))); }, JSClassExtension_setCustomInspect(_this, inspect) { if (self.util == null) return; J.get$$prototype$x(_this)[self.util.inspect.custom] = A.allowInteropCaptureThis(new A.JSClassExtension_setCustomInspect_closure(inspect)); }, JSClassExtension_get_defineStaticMethod(_this) { return new A.JSClassExtension_get_defineStaticMethod_closure(_this); }, JSClassExtension_get_defineMethod(_this) { return new A.JSClassExtension_get_defineMethod_closure(_this); }, JSClassExtension_defineMethods(_this, methods) { methods.forEach$1(0, A.JSClassExtension_get_defineMethod(_this)); }, JSClassExtension_get_defineGetter(_this) { return new A.JSClassExtension_get_defineGetter_closure(_this); }, JSClass0: function JSClass0() { }, JSClassExtension_setCustomInspect_closure: function JSClassExtension_setCustomInspect_closure(t0) { this.inspect = t0; }, JSClassExtension_get_defineStaticMethod_closure: function JSClassExtension_get_defineStaticMethod_closure(t0) { this._this = t0; }, JSClassExtension_get_defineMethod_closure: function JSClassExtension_get_defineMethod_closure(t0) { this._this = t0; }, JSClassExtension_get_defineGetter_closure: function JSClassExtension_get_defineGetter_closure(t0) { this._this = t0; }, RenderContext0: function RenderContext0() { }, RenderContextOptions0: function RenderContextOptions0() { }, RenderContextResult0: function RenderContextResult0() { }, RenderContextResultStats0: function RenderContextResultStats0() { }, RenderOptions: function RenderOptions() { }, RenderResult: function RenderResult() { }, RenderResultStats: function RenderResultStats() { }, ReplaceExpressionVisitor0: function ReplaceExpressionVisitor0() { }, ReplaceExpressionVisitor_visitListExpression_closure0: function ReplaceExpressionVisitor_visitListExpression_closure0(t0) { this.$this = t0; }, ReplaceExpressionVisitor_visitArgumentInvocation_closure0: function ReplaceExpressionVisitor_visitArgumentInvocation_closure0(t0) { this.$this = t0; }, ReplaceExpressionVisitor_visitInterpolation_closure0: function ReplaceExpressionVisitor_visitInterpolation_closure0(t0) { this.$this = t0; }, ImporterResult$(contents, sourceMapUrl, syntax) { if ((sourceMapUrl == null ? null : sourceMapUrl.get$scheme()) === "") A.throwExpression(A.ArgumentError$value(sourceMapUrl, "sourceMapUrl", "must be absolute")); return new A.ImporterResult0(contents, sourceMapUrl, syntax); }, ImporterResult0: function ImporterResult0(t0, t1, t2) { this.contents = t0; this._result$_sourceMapUrl = t1; this.syntax = t2; }, ReturnRule0: function ReturnRule0(t0, t1) { this.expression = t0; this.span = t1; }, SassParser0: function SassParser0(t0, t1, t2, t3) { var _ = this; _._sass0$_currentIndentation = 0; _._sass0$_spaces = _._sass0$_nextIndentationEnd = _._sass0$_nextIndentation = null; _._stylesheet0$_isUseAllowed = true; _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = _._stylesheet0$_inMixin = false; _._stylesheet0$_globalVariables = t0; _.lastSilentComment = null; _.scanner = t1; _.logger = t2; _._parser0$_interpolationMap = t3; }, SassParser_styleRuleSelector_closure0: function SassParser_styleRuleSelector_closure0() { }, SassParser_children_closure0: function SassParser_children_closure0(t0, t1, t2) { this.$this = t0; this.child = t1; this.children = t2; }, SassParser__peekIndentation_closure1: function SassParser__peekIndentation_closure1() { }, SassParser__peekIndentation_closure2: function SassParser__peekIndentation_closure2() { }, _translateReturnValue(val) { if (val instanceof A._Future) return A.futureToPromise(val, type$.dynamic); else return val; }, main2() { new Uint8Array(0); A.main(); J.set$cli_pkg_main_0_$x(self.exports, A._wrapMain(A.sass__main$closure())); }, _wrapMain(main) { if (type$.dynamic_Function._is(main)) return A.allowInterop(new A._wrapMain_closure(main)); else return A.allowInterop(new A._wrapMain_closure0(main)); }, _Exports: function _Exports() { }, _wrapMain_closure: function _wrapMain_closure(t0) { this.main = t0; }, _wrapMain_closure0: function _wrapMain_closure0(t0) { this.main = t0; }, ScssParser$0(contents, logger, url) { var t1 = A.SpanScanner$(contents, url), t2 = logger == null ? B.StderrLogger_false0 : logger; return new A.ScssParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2, null); }, ScssParser0: function ScssParser0(t0, t1, t2, t3) { var _ = this; _._stylesheet0$_isUseAllowed = true; _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = _._stylesheet0$_inMixin = false; _._stylesheet0$_globalVariables = t0; _.lastSilentComment = null; _.scanner = t1; _.logger = t2; _._parser0$_interpolationMap = t3; }, Selector0: function Selector0() { }, _IsInvisibleVisitor2: function _IsInvisibleVisitor2(t0) { this.includeBogus = t0; }, _IsBogusVisitor0: function _IsBogusVisitor0(t0) { this.includeLeadingCombinator = t0; }, _IsBogusVisitor_visitComplexSelector_closure0: function _IsBogusVisitor_visitComplexSelector_closure0(t0) { this.$this = t0; }, _IsUselessVisitor0: function _IsUselessVisitor0() { }, _IsUselessVisitor_visitComplexSelector_closure0: function _IsUselessVisitor_visitComplexSelector_closure0(t0) { this.$this = t0; }, __IsBogusVisitor_Object_AnySelectorVisitor0: function __IsBogusVisitor_Object_AnySelectorVisitor0() { }, __IsInvisibleVisitor_Object_AnySelectorVisitor0: function __IsInvisibleVisitor_Object_AnySelectorVisitor0() { }, __IsUselessVisitor_Object_AnySelectorVisitor0: function __IsUselessVisitor_Object_AnySelectorVisitor0() { }, SelectorExpression0: function SelectorExpression0(t0) { this.span = t0; }, _prependParent0(compound) { var t1, type, rest, _null = null, span = A.EvaluationContext_current0().get$currentCallableSpan(), _0_0 = compound.components, _0_3 = A._InitializedCell$(new A._prependParent_closure1(_0_0)), _0_4 = A._InitializedCell$(new A._prependParent_closure2(_0_0)); $label0$0: { if (_0_3._readFinal$0() && _0_4._readFinal$0() instanceof A.UniversalSelector0) { t1 = _null; break $label0$0; } if (_0_3._readFinal$0()) if (_0_4._readFinal$0() instanceof A.TypeSelector0) t1 = _0_4._readFinal$0().name.namespace != null; else t1 = false; else t1 = false; if (t1) { t1 = _null; break $label0$0; } if (_0_3._readFinal$0()) if (_0_4._readFinal$0() instanceof A.TypeSelector0) { type = _0_4._readFinal$0(); rest = B.JSArray_methods.sublist$1(_0_0, 1); t1 = true; } else { rest = _null; type = rest; t1 = false; } else { rest = _null; type = rest; t1 = false; } if (t1) { t1 = A._setArrayType([new A.ParentSelector0(type.name.name, span)], type$.JSArray_SimpleSelector_2); B.JSArray_methods.addAll$1(t1, rest); t1 = A.CompoundSelector$0(t1, span); break $label0$0; } t1 = A._setArrayType([new A.ParentSelector0(_null, span)], type$.JSArray_SimpleSelector_2); B.JSArray_methods.addAll$1(t1, _0_0); t1 = A.CompoundSelector$0(t1, span); break $label0$0; } return t1; }, _function7($name, $arguments, callback) { return A.BuiltInCallable$function0($name, $arguments, callback, "sass:selector"); }, _nest_closure0: function _nest_closure0() { }, _nest__closure1: function _nest__closure1(t0) { this._box_0 = t0; }, _nest__closure2: function _nest__closure2() { }, _append_closure1: function _append_closure1() { }, _append__closure1: function _append__closure1() { }, _append__closure2: function _append__closure2(t0) { this.span = t0; }, _append___closure0: function _append___closure0(t0, t1) { this.parent = t0; this.span = t1; }, _extend_closure0: function _extend_closure0() { }, _replace_closure0: function _replace_closure0() { }, _unify_closure0: function _unify_closure0() { }, _isSuperselector_closure0: function _isSuperselector_closure0() { }, _simpleSelectors_closure0: function _simpleSelectors_closure0() { }, _simpleSelectors__closure0: function _simpleSelectors__closure0() { }, _parse_closure0: function _parse_closure0() { }, _prependParent_closure1: function _prependParent_closure1(t0) { this._0_0 = t0; }, _prependParent_closure2: function _prependParent_closure2(t0) { this._0_0 = t0; }, SelectorParser$0(contents, allowParent, allowPlaceholder, interpolationMap, logger, url) { var t1 = A.SpanScanner$(contents, url); return new A.SelectorParser0(allowParent, allowPlaceholder, t1, logger == null ? B.StderrLogger_false0 : logger, interpolationMap); }, SelectorParser0: function SelectorParser0(t0, t1, t2, t3, t4) { var _ = this; _._selector$_allowParent = t0; _._selector$_allowPlaceholder = t1; _.scanner = t2; _.logger = t3; _._parser0$_interpolationMap = t4; }, SelectorParser_parse_closure0: function SelectorParser_parse_closure0(t0) { this.$this = t0; }, SelectorParser_parseCompoundSelector_closure0: function SelectorParser_parseCompoundSelector_closure0(t0) { this.$this = t0; }, SelectorSearchVisitor0: function SelectorSearchVisitor0() { }, SelectorSearchVisitor_visitComplexSelector_closure0: function SelectorSearchVisitor_visitComplexSelector_closure0(t0) { this.$this = t0; }, SelectorSearchVisitor_visitCompoundSelector_closure0: function SelectorSearchVisitor_visitCompoundSelector_closure0(t0) { this.$this = t0; }, serialize0(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) { var t1, css, t2, prefix, visitor = A._SerializeVisitor$0(indentWidth == null ? 2 : indentWidth, inspect, lineFeed, true, sourceMap, style, useSpaces); node.accept$1(visitor); t1 = visitor._serialize0$_buffer; css = t1.toString$0(0); if (charset) { t2 = new A.CodeUnits(css); t2 = t2.any$1(t2, new A.serialize_closure0()); } else t2 = false; if (t2) prefix = style === B.OutputStyle_10 ? "\ufeff" : '@charset "UTF-8";\n'; else prefix = ""; t1 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null; return new A._Record_2_sourceMap(prefix + css, t1); }, serializeValue0(value, inspect, quote) { var visitor = A._SerializeVisitor$0(null, inspect, null, quote, false, null, true); value.accept$1(visitor); return visitor._serialize0$_buffer.toString$0(0); }, serializeSelector0(selector, inspect) { var visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true); selector.accept$1(visitor); return visitor._serialize0$_buffer.toString$0(0); }, _SerializeVisitor$0(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) { var t1 = sourceMap ? new A.SourceMapBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Entry)) : new A.NoSourceMapBuffer0(new A.StringBuffer("")), t2 = style == null ? B.OutputStyle_00 : style, t3 = useSpaces ? 32 : 9, t4 = indentWidth == null ? 2 : indentWidth, t5 = lineFeed == null ? B.LineFeed_SsD : lineFeed; A.RangeError_checkValueInInterval(t4, 0, 10, "indentWidth"); return new A._SerializeVisitor0(t1, t2, inspect, quote, t3, t4, t5); }, serialize_closure0: function serialize_closure0() { }, _SerializeVisitor0: function _SerializeVisitor0(t0, t1, t2, t3, t4, t5, t6) { var _ = this; _._serialize0$_buffer = t0; _._serialize0$_indentation = 0; _._serialize0$_style = t1; _._serialize0$_inspect = t2; _._serialize0$_quote = t3; _._serialize0$_indentCharacter = t4; _._serialize0$_indentWidth = t5; _._lineFeed = t6; }, _SerializeVisitor_visitCssComment_closure0: function _SerializeVisitor_visitCssComment_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssAtRule_closure0: function _SerializeVisitor_visitCssAtRule_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssMediaRule_closure0: function _SerializeVisitor_visitCssMediaRule_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssImport_closure0: function _SerializeVisitor_visitCssImport_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssImport__closure0: function _SerializeVisitor_visitCssImport__closure0(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssKeyframeBlock_closure0: function _SerializeVisitor_visitCssKeyframeBlock_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssStyleRule_closure0: function _SerializeVisitor_visitCssStyleRule_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssSupportsRule_closure0: function _SerializeVisitor_visitCssSupportsRule_closure0(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssDeclaration_closure1: function _SerializeVisitor_visitCssDeclaration_closure1(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor_visitCssDeclaration_closure2: function _SerializeVisitor_visitCssDeclaration_closure2(t0, t1) { this.$this = t0; this.node = t1; }, _SerializeVisitor__writeCalculationValue_closure0: function _SerializeVisitor__writeCalculationValue_closure0(t0) { this._2_0 = t0; }, _SerializeVisitor_visitList_closure2: function _SerializeVisitor_visitList_closure2() { }, _SerializeVisitor_visitList_closure3: function _SerializeVisitor_visitList_closure3(t0, t1) { this.$this = t0; this.value = t1; }, _SerializeVisitor_visitList_closure4: function _SerializeVisitor_visitList_closure4(t0) { this.$this = t0; }, _SerializeVisitor_visitMap_closure0: function _SerializeVisitor_visitMap_closure0(t0) { this.$this = t0; }, _SerializeVisitor__visitQuotedString_closure1: function _SerializeVisitor__visitQuotedString_closure1(t0) { this._1_0 = t0; }, _SerializeVisitor__visitQuotedString_closure2: function _SerializeVisitor__visitQuotedString_closure2(t0) { this._1_0 = t0; }, _SerializeVisitor_visitSelectorList_closure0: function _SerializeVisitor_visitSelectorList_closure0() { }, _SerializeVisitor_visitPseudoSelector_closure0: function _SerializeVisitor_visitPseudoSelector_closure0(t0) { this._0_0 = t0; }, _SerializeVisitor__write_closure0: function _SerializeVisitor__write_closure0(t0, t1) { this.$this = t0; this.value = t1; }, _SerializeVisitor__visitChildren_closure1: function _SerializeVisitor__visitChildren_closure1(t0, t1) { this.$this = t0; this.child = t1; }, _SerializeVisitor__visitChildren_closure2: function _SerializeVisitor__visitChildren_closure2(t0, t1) { this.$this = t0; this.child = t1; }, OutputStyle0: function OutputStyle0(t0) { this._name = t0; }, LineFeed0: function LineFeed0(t0, t1, t2) { this.name = t0; this.text = t1; this._name = t2; }, ShadowedModuleView_ifNecessary0(inner, functions, mixins, variables, $T) { 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; }, ShadowedModuleView__shadowedMap0(map, blocklist, $V) { var t1 = A.ShadowedModuleView__needsBlocklist0(map, blocklist); return !t1 ? map : A.LimitedMapView$blocklist0(map, blocklist, type$.String, $V); }, ShadowedModuleView__needsBlocklist0(map, blocklist) { return map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey()); }, ShadowedModuleView0: function ShadowedModuleView0(t0, t1, t2, t3, t4, t5) { var _ = this; _._shadowed_view0$_inner = t0; _.variables = t1; _.variableNodes = t2; _.functions = t3; _.mixins = t4; _.$ti = t5; }, SilentComment0: function SilentComment0(t0, t1) { this.text = t0; this.span = t1; }, SimpleSelector0: function SimpleSelector0() { }, SimpleSelector_isSuperselector_closure0: function SimpleSelector_isSuperselector_closure0(t0) { this.$this = t0; }, SimpleSelector_isSuperselector__closure0: function SimpleSelector_isSuperselector__closure0(t0) { this.$this = t0; }, SingleUnitSassNumber0: function SingleUnitSassNumber0(t0, t1, t2) { var _ = this; _._single_unit$_unit = t0; _._number1$_value = t1; _.hashCache = null; _.asSlash = t2; }, SingleUnitSassNumber__coerceToUnit_closure0: function SingleUnitSassNumber__coerceToUnit_closure0(t0, t1) { this.$this = t0; this.unit = t1; }, SingleUnitSassNumber__coerceValueToUnit_closure0: function SingleUnitSassNumber__coerceValueToUnit_closure0(t0) { this.$this = t0; }, SingleUnitSassNumber_multiplyUnits_closure1: function SingleUnitSassNumber_multiplyUnits_closure1(t0, t1) { this._box_0 = t0; this.$this = t1; }, SingleUnitSassNumber_multiplyUnits_closure2: function SingleUnitSassNumber_multiplyUnits_closure2(t0, t1) { this._box_0 = t0; this.$this = t1; }, SourceMapBuffer0: function SourceMapBuffer0(t0, t1) { var _ = this; _._source_map_buffer0$_buffer = t0; _._source_map_buffer0$_entries = t1; _._source_map_buffer0$_column = _._source_map_buffer0$_line = 0; _._source_map_buffer0$_inSpan = false; }, SourceMapBuffer_buildSourceMap_closure0: function SourceMapBuffer_buildSourceMap_closure0(t0, t1) { this._box_0 = t0; this.prefixLength = t1; }, updateSourceSpanPrototype() { var t3, t4, _i, t5, span = A.SourceFile$fromString("", null).span$1(0, 0), t1 = type$.SourceSpan, t2 = type$.String; for (t1 = [span, new A.MultiSpan0(span, "", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t1, t2))], t3 = type$.JSClass, t4 = type$.Function, _i = 0; _i < 2; ++_i) { t5 = t3._as(t1[_i].constructor); A.LinkedHashMap_LinkedHashMap$_literal(["start", new A.updateSourceSpanPrototype_closure(), "end", new A.updateSourceSpanPrototype_closure0(), "url", new A.updateSourceSpanPrototype_closure1(), "text", new A.updateSourceSpanPrototype_closure2(), "context", new A.updateSourceSpanPrototype_closure3()], t2, t4).forEach$1(0, A.JSClassExtension_get_defineGetter(t5)); } t1 = t3._as(A.FileLocation$_(span.file, span._file$_start).constructor); A.LinkedHashMap_LinkedHashMap$_literal(["line", new A.updateSourceSpanPrototype_closure4(), "column", new A.updateSourceSpanPrototype_closure5()], t2, t4).forEach$1(0, A.JSClassExtension_get_defineGetter(t1)); }, updateSourceSpanPrototype_closure: function updateSourceSpanPrototype_closure() { }, updateSourceSpanPrototype_closure0: function updateSourceSpanPrototype_closure0() { }, updateSourceSpanPrototype_closure1: function updateSourceSpanPrototype_closure1() { }, updateSourceSpanPrototype_closure2: function updateSourceSpanPrototype_closure2() { }, updateSourceSpanPrototype_closure3: function updateSourceSpanPrototype_closure3() { }, updateSourceSpanPrototype_closure4: function updateSourceSpanPrototype_closure4() { }, updateSourceSpanPrototype_closure5: function updateSourceSpanPrototype_closure5() { }, StatementSearchVisitor0: function StatementSearchVisitor0() { }, StatementSearchVisitor_visitIfRule_closure1: function StatementSearchVisitor_visitIfRule_closure1(t0) { this.$this = t0; }, StatementSearchVisitor_visitIfRule__closure2: function StatementSearchVisitor_visitIfRule__closure2(t0) { this.$this = t0; }, StatementSearchVisitor_visitIfRule_closure2: function StatementSearchVisitor_visitIfRule_closure2(t0) { this.$this = t0; }, StatementSearchVisitor_visitIfRule__closure1: function StatementSearchVisitor_visitIfRule__closure1(t0) { this.$this = t0; }, StatementSearchVisitor_visitChildren_closure0: function StatementSearchVisitor_visitChildren_closure0(t0) { this.$this = t0; }, StaticImport0: function StaticImport0(t0, t1, t2) { this.url = t0; this.modifiers = t1; this.span = t2; }, StderrLogger0: function StderrLogger0(t0) { this.color = t0; }, StringExpression_quoteText0(text) { var t1, quote = A.StringExpression__bestQuote0(A._setArrayType([text], type$.JSArray_String)), buffer = new A.StringBuffer(""); buffer._contents = "" + A.Primitives_stringFromCharCode(quote); A.StringExpression__quoteInnerText0(text, quote, buffer, true); t1 = buffer._contents += A.Primitives_stringFromCharCode(quote); return t1.charCodeAt(0) == 0 ? t1 : t1; }, StringExpression__quoteInnerText0(text, quote, buffer, $static) { var t1, t2, i, _1_0, _0_0, t3, t4; for (t1 = text.length, t2 = t1 - 1, i = 0; i < t1; ++i) { _1_0 = text.charCodeAt(i); if (_1_0 === 10 || _1_0 === 13 || _1_0 === 12) { buffer.writeCharCode$1(92); buffer.writeCharCode$1(97); if (i !== t2) { _0_0 = text.charCodeAt(i + 1); if (!(_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12)) if (!(_0_0 >= 48 && _0_0 <= 57)) if (!(_0_0 >= 97 && _0_0 <= 102)) t3 = _0_0 >= 65 && _0_0 <= 70; else t3 = true; else t3 = true; else t3 = true; if (t3) buffer.writeCharCode$1(32); } continue; } if (92 === _1_0) { t3 = _1_0; t4 = true; } else { t3 = null; t4 = false; } if (!t4) { if (_1_0 === quote) { t3 = _1_0; t4 = true; } else t4 = false; if (!t4) if (35 === _1_0) if ($static) if (i < t2) if (text.charCodeAt(i + 1) === 123) { t3 = _1_0; t4 = true; } else t4 = false; else t4 = false; else t4 = false; else t4 = false; else t4 = true; } else t4 = true; if (t4) { buffer.writeCharCode$1(92); buffer.writeCharCode$1(t3); continue; } buffer.writeCharCode$1(_1_0); } }, StringExpression__bestQuote0(strings) { var t1, containsDoubleQuote, t2, t3, t4; for (t1 = J.get$iterator$ax(strings), containsDoubleQuote = false; t1.moveNext$0();) for (t2 = new A.CodeUnits(t1.get$current(t1)), t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t4 = t2.__internal$_current; if (t4 == null) t4 = t3._as(t4); if (t4 === 39) return 34; if (t4 === 34) containsDoubleQuote = true; } return containsDoubleQuote ? 39 : 34; }, StringExpression0: function StringExpression0(t0, t1) { this.text = t0; this.hasQuotes = t1; }, _codepointForIndex0(index, lengthInCodepoints, allowNegative) { var result; if (index === 0) return 0; if (index > 0) return Math.min(index - 1, lengthInCodepoints); result = lengthInCodepoints + index; if (result < 0 && !allowNegative) return 0; return result; }, _function6($name, $arguments, callback) { return A.BuiltInCallable$function0($name, $arguments, callback, "sass:string"); }, module_closure10: function module_closure10() { }, module__closure2: function module__closure2(t0) { this.string = t0; }, module__closure3: function module__closure3(t0) { this.string = t0; }, _unquote_closure0: function _unquote_closure0() { }, _quote_closure0: function _quote_closure0() { }, _length_closure1: function _length_closure1() { }, _insert_closure0: function _insert_closure0() { }, _index_closure1: function _index_closure1() { }, _slice_closure0: function _slice_closure0() { }, _toUpperCase_closure0: function _toUpperCase_closure0() { }, _toLowerCase_closure0: function _toLowerCase_closure0() { }, _uniqueId_closure0: function _uniqueId_closure0() { }, stringClass_closure: function stringClass_closure() { }, stringClass__closure: function stringClass__closure() { }, stringClass__closure0: function stringClass__closure0() { }, stringClass__closure1: function stringClass__closure1() { }, stringClass__closure2: function stringClass__closure2() { }, stringClass__closure3: function stringClass__closure3() { }, _ConstructorOptions1: function _ConstructorOptions1() { }, _NodeSassString: function _NodeSassString() { }, legacyStringClass_closure: function legacyStringClass_closure() { }, legacyStringClass_closure0: function legacyStringClass_closure0() { }, legacyStringClass_closure1: function legacyStringClass_closure1() { }, SassString$0(_text, quotes) { return new A.SassString0(_text, quotes); }, SassString0: function SassString0(t0, t1) { var _ = this; _._string0$_text = t0; _._string0$_hasQuotes = t1; _._string0$__SassString__sassLength_FI = $; _._string0$_hashCache = null; }, ModifiableCssStyleRule$0(_selector, span, originalSelector) { var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2); return new A.ModifiableCssStyleRule0(_selector, originalSelector, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1); }, ModifiableCssStyleRule0: function ModifiableCssStyleRule0(t0, t1, t2, t3, t4) { var _ = this; _._style_rule0$_selector = t0; _.originalSelector = t1; _.span = t2; _.children = t3; _._node$_children = t4; _._node$_indexInParent = _._node$_parent = null; _.isGroupEnd = false; }, StyleRule$0(selector, children, span) { var t1 = A.List_List$unmodifiable(children, type$.Statement_2), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0()); return new A.StyleRule0(selector, span, t1, t2); }, StyleRule0: function StyleRule0(t0, t1, t2, t3) { var _ = this; _.selector = t0; _.span = t1; _.children = t2; _.hasDeclarations = t3; }, CssStylesheet0: function CssStylesheet0(t0, t1) { this.children = t0; this.span = t1; }, ModifiableCssStylesheet$0(span) { var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2); return new A.ModifiableCssStylesheet0(span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1); }, ModifiableCssStylesheet0: function ModifiableCssStylesheet0(t0, t1, t2) { var _ = this; _.span = t0; _.children = t1; _._node$_children = t2; _._node$_indexInParent = _._node$_parent = null; _.isGroupEnd = false; }, StylesheetParser0: function StylesheetParser0() { }, StylesheetParser_parse_closure0: function StylesheetParser_parse_closure0(t0) { this.$this = t0; }, StylesheetParser_parse__closure1: function StylesheetParser_parse__closure1(t0) { this.$this = t0; }, StylesheetParser_parse__closure2: function StylesheetParser_parse__closure2() { }, StylesheetParser_parseArgumentDeclaration_closure0: function StylesheetParser_parseArgumentDeclaration_closure0(t0) { this.$this = t0; }, StylesheetParser__parseSingleProduction_closure0: function StylesheetParser__parseSingleProduction_closure0(t0, t1, t2) { this.$this = t0; this.production = t1; this.T = t2; }, StylesheetParser_parseSignature_closure: function StylesheetParser_parseSignature_closure(t0, t1) { this.$this = t0; this.requireParens = t1; }, StylesheetParser__statement_closure0: function StylesheetParser__statement_closure0(t0) { this.$this = t0; }, StylesheetParser_variableDeclarationWithoutNamespace_closure1: function StylesheetParser_variableDeclarationWithoutNamespace_closure1(t0, t1) { this.$this = t0; this.start = t1; }, StylesheetParser_variableDeclarationWithoutNamespace_closure2: function StylesheetParser_variableDeclarationWithoutNamespace_closure2(t0) { this.declaration = t0; }, StylesheetParser__declarationOrBuffer_closure1: function StylesheetParser__declarationOrBuffer_closure1(t0) { this.name = t0; }, StylesheetParser__declarationOrBuffer_closure2: function StylesheetParser__declarationOrBuffer_closure2(t0, t1) { this._box_0 = t0; this.name = t1; }, StylesheetParser__styleRule_closure0: function StylesheetParser__styleRule_closure0(t0, t1, t2, t3) { var _ = this; _._box_0 = t0; _.$this = t1; _.wasInStyleRule = t2; _.start = t3; }, StylesheetParser__propertyOrVariableDeclaration_closure1: function StylesheetParser__propertyOrVariableDeclaration_closure1(t0) { this._box_0 = t0; }, StylesheetParser__propertyOrVariableDeclaration_closure2: function StylesheetParser__propertyOrVariableDeclaration_closure2(t0, t1) { this._box_0 = t0; this.value = t1; }, StylesheetParser__atRootRule_closure1: function StylesheetParser__atRootRule_closure1(t0) { this.query = t0; }, StylesheetParser__atRootRule_closure2: function StylesheetParser__atRootRule_closure2() { }, StylesheetParser__eachRule_closure0: function StylesheetParser__eachRule_closure0(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.wasInControlDirective = t1; _.variables = t2; _.list = t3; }, StylesheetParser__functionRule_closure0: function StylesheetParser__functionRule_closure0(t0, t1, t2) { this.name = t0; this.$arguments = t1; this.precedingComment = t2; }, StylesheetParser__forRule_closure1: function StylesheetParser__forRule_closure1(t0, t1) { this._box_0 = t0; this.$this = t1; }, StylesheetParser__forRule_closure2: function StylesheetParser__forRule_closure2(t0, t1, t2, t3, t4, t5) { var _ = this; _._box_0 = t0; _.$this = t1; _.wasInControlDirective = t2; _.variable = t3; _.from = t4; _.to = t5; }, StylesheetParser__memberList_closure0: function StylesheetParser__memberList_closure0(t0, t1, t2) { this.$this = t0; this.variables = t1; this.identifiers = t2; }, StylesheetParser__includeRule_closure0: function StylesheetParser__includeRule_closure0(t0) { this.contentArguments_ = t0; }, StylesheetParser_mediaRule_closure0: function StylesheetParser_mediaRule_closure0(t0) { this.query = t0; }, StylesheetParser__mixinRule_closure0: function StylesheetParser__mixinRule_closure0(t0, t1, t2, t3) { var _ = this; _.$this = t0; _.name = t1; _.$arguments = t2; _.precedingComment = t3; }, StylesheetParser_mozDocumentRule_closure0: function StylesheetParser_mozDocumentRule_closure0(t0, t1, t2, t3) { var _ = this; _._box_0 = t0; _.$this = t1; _.name = t2; _.value = t3; }, StylesheetParser_supportsRule_closure0: function StylesheetParser_supportsRule_closure0(t0) { this.condition = t0; }, StylesheetParser__whileRule_closure0: function StylesheetParser__whileRule_closure0(t0, t1, t2) { this.$this = t0; this.wasInControlDirective = t1; this.condition = t2; }, StylesheetParser_unknownAtRule_closure0: function StylesheetParser_unknownAtRule_closure0(t0, t1) { this._box_0 = t0; this.name = t1; }, StylesheetParser__expression_resetState0: function StylesheetParser__expression_resetState0(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.start = t2; }, StylesheetParser__expression_resolveOneOperation0: function StylesheetParser__expression_resolveOneOperation0(t0, t1) { this._box_0 = t0; this.$this = t1; }, StylesheetParser__expression_resolveOperations0: function StylesheetParser__expression_resolveOperations0(t0, t1) { this._box_0 = t0; this.resolveOneOperation = t1; }, StylesheetParser__expression_addSingleExpression0: function StylesheetParser__expression_addSingleExpression0(t0, t1, t2, t3) { var _ = this; _._box_0 = t0; _.$this = t1; _.resetState = t2; _.resolveOperations = t3; }, StylesheetParser__expression_addOperator0: function StylesheetParser__expression_addOperator0(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.resolveOneOperation = t2; }, StylesheetParser__expression_resolveSpaceExpressions0: function StylesheetParser__expression_resolveSpaceExpressions0(t0, t1, t2) { this._box_0 = t0; this.$this = t1; this.resolveOperations = t2; }, StylesheetParser__expression_closure2: function StylesheetParser__expression_closure2(t0) { this._3_0 = t0; }, StylesheetParser__expression_closure3: function StylesheetParser__expression_closure3(t0) { this._3_0 = t0; }, StylesheetParser__expression_closure4: function StylesheetParser__expression_closure4(t0) { this._3_0 = t0; }, StylesheetParser_expressionUntilComma_closure0: function StylesheetParser_expressionUntilComma_closure0(t0) { this.$this = t0; }, StylesheetParser__isHexColor_closure1: function StylesheetParser__isHexColor_closure1(t0) { this._0_0 = t0; }, StylesheetParser__isHexColor_closure2: function StylesheetParser__isHexColor_closure2() { }, StylesheetParser__unicodeRange_closure1: function StylesheetParser__unicodeRange_closure1() { }, StylesheetParser__unicodeRange_closure2: function StylesheetParser__unicodeRange_closure2() { }, StylesheetParser_identifierLike_closure1: function StylesheetParser_identifierLike_closure1(t0) { this._2_0 = t0; }, StylesheetParser_identifierLike_closure2: function StylesheetParser_identifierLike_closure2(t0) { this._2_0 = t0; }, StylesheetParser_namespacedExpression_closure0: function StylesheetParser_namespacedExpression_closure0(t0, t1) { this.$this = t0; this.start = t1; }, StylesheetParser_trySpecialFunction_closure0: function StylesheetParser_trySpecialFunction_closure0() { }, StylesheetParser__tryUrlContents_closure0: function StylesheetParser__tryUrlContents_closure0(t0) { this._0_0 = t0; }, StylesheetParser__interpolatedDeclarationValue_closure4: function StylesheetParser__interpolatedDeclarationValue_closure4(t0) { this._1_0 = t0; }, StylesheetParser__interpolatedDeclarationValue_closure5: function StylesheetParser__interpolatedDeclarationValue_closure5(t0) { this._1_0 = t0; }, StylesheetParser__interpolatedDeclarationValue_closure6: function StylesheetParser__interpolatedDeclarationValue_closure6(t0) { this._1_0 = t0; }, StylesheetParser__interpolatedDeclarationValue_closure7: function StylesheetParser__interpolatedDeclarationValue_closure7(t0) { this._1_0 = t0; }, StylesheetParser__interpolatedDeclarationValue_closure8: function StylesheetParser__interpolatedDeclarationValue_closure8(t0) { this._1_0 = t0; }, StylesheetParser__expressionUntilComparison_closure0: function StylesheetParser__expressionUntilComparison_closure0(t0) { this.$this = t0; }, StylesheetParser__supportsConditionInParens_closure0: function StylesheetParser__supportsConditionInParens_closure0(t0) { this._0_0 = t0; }, StylesheetParser__publicIdentifier_closure0: function StylesheetParser__publicIdentifier_closure0(t0, t1) { this.$this = t0; this.start = t1; }, Stylesheet$internal0(children, span, plainCss) { var t1 = A._setArrayType([], type$.JSArray_UseRule_2), t2 = A._setArrayType([], type$.JSArray_ForwardRule_2), t3 = A.List_List$unmodifiable(children, type$.Statement_2), t4 = B.JSArray_methods.any$1(t3, new A.ParentStatement_closure0()); t1 = new A.Stylesheet0(span, plainCss, t1, t2, t3, t4); t1.Stylesheet$internal$3$plainCss0(children, span, plainCss); return t1; }, Stylesheet_Stylesheet$parse0(contents, syntax, logger, url) { var error, stackTrace, url0, t1, exception, t2; try { switch (syntax) { case B.Syntax_Sass_sass0: t1 = A.SpanScanner$(contents, url); t1 = new A.SassParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, logger, null).parse$0(); return t1; case B.Syntax_SCSS_scss0: t1 = A.ScssParser$0(contents, logger, url).parse$0(); return t1; case B.Syntax_CSS_css0: t1 = A.SpanScanner$(contents, url); t1 = new A.CssParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, logger, null).parse$0(); return t1; default: t1 = A.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + ".", null); throw A.wrapException(t1); } } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException0) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = error; t2 = J.getInterceptor$z(t1); t1 = A.SourceSpanException.prototype.get$span.call(t2, t1); url0 = t1.get$sourceUrl(t1); if (url0 == null || J.toString$0$(url0) === "stdin") throw exception; t1 = type$.Uri; throw A.wrapException(A.throwWithTrace0(error.withLoadedUrls$1(A.Set_Set$unmodifiable(A.LinkedHashSet_LinkedHashSet$_literal([url0], t1), t1)), error, stackTrace)); } else throw exception; } }, Stylesheet0: function Stylesheet0(t0, t1, t2, t3, t4, t5) { var _ = this; _.span = t0; _.plainCss = t1; _._stylesheet1$_uses = t2; _._stylesheet1$_forwards = t3; _.children = t4; _.hasDeclarations = t5; }, SupportsExpression0: function SupportsExpression0(t0) { this.condition = t0; }, ModifiableCssSupportsRule$0(condition, span) { var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2); return new A.ModifiableCssSupportsRule0(condition, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1); }, ModifiableCssSupportsRule0: function ModifiableCssSupportsRule0(t0, t1, t2, t3) { var _ = this; _.condition = t0; _.span = t1; _.children = t2; _._node$_children = t3; _._node$_indexInParent = _._node$_parent = null; _.isGroupEnd = false; }, SupportsRule$0(condition, children, span) { var t1 = A.List_List$unmodifiable(children, type$.Statement_2), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0()); return new A.SupportsRule0(condition, span, t1, t2); }, SupportsRule0: function SupportsRule0(t0, t1, t2, t3) { var _ = this; _.condition = t0; _.span = t1; _.children = t2; _.hasDeclarations = t3; }, JSToDartImporter: function JSToDartImporter(t0, t1, t2) { this._sync$_canonicalize = t0; this._sync$_load = t1; this._sync$_nonCanonicalSchemes = t2; }, JSToDartImporter_canonicalize_closure: function JSToDartImporter_canonicalize_closure(t0, t1) { this.$this = t0; this.url = t1; }, JSToDartImporter_load_closure: function JSToDartImporter_load_closure(t0, t1) { this.$this = t0; this.url = t1; }, Syntax_forPath0(path) { var t1, _0_0 = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]; $label0$0: { if (".sass" === _0_0) { t1 = B.Syntax_Sass_sass0; break $label0$0; } if (".css" === _0_0) { t1 = B.Syntax_CSS_css0; break $label0$0; } t1 = B.Syntax_SCSS_scss0; break $label0$0; } return t1; }, Syntax0: function Syntax0(t0, t1) { this._syntax0$_name = t0; this._name = t1; }, TypeSelector0: function TypeSelector0(t0, t1) { this.name = t0; this.span = t1; }, Types: function Types() { }, UnaryOperationExpression0: function UnaryOperationExpression0(t0, t1, t2) { this.operator = t0; this.operand = t1; this.span = t2; }, UnaryOperator0: function UnaryOperator0(t0, t1, t2) { this.name = t0; this.operator = t1; this._name = t2; }, UnitlessSassNumber0: function UnitlessSassNumber0(t0, t1) { this._number1$_value = t0; this.hashCache = null; this.asSlash = t1; }, UniversalSelector0: function UniversalSelector0(t0, t1) { this.namespace = t0; this.span = t1; }, UniversalSelector_unify_closure1: function UniversalSelector_unify_closure1(t0) { this._0_0 = t0; }, UniversalSelector_unify_closure2: function UniversalSelector_unify_closure2(t0) { this._0_0 = t0; }, UnprefixedMapView0: function UnprefixedMapView0(t0, t1, t2) { this._unprefixed_map_view0$_map = t0; this._unprefixed_map_view0$_prefix = t1; this.$ti = t2; }, _UnprefixedKeys0: function _UnprefixedKeys0(t0) { this._unprefixed_map_view0$_view = t0; }, _UnprefixedKeys_iterator_closure1: function _UnprefixedKeys_iterator_closure1(t0) { this.$this = t0; }, _UnprefixedKeys_iterator_closure2: function _UnprefixedKeys_iterator_closure2(t0) { this.$this = t0; }, JSUrl0: function JSUrl0() { }, UseRule0: function UseRule0(t0, t1, t2, t3) { var _ = this; _.url = t0; _.namespace = t1; _.configuration = t2; _.span = t3; }, UserDefinedCallable0: function UserDefinedCallable0(t0, t1, t2, t3) { var _ = this; _.declaration = t0; _.environment = t1; _.inDependency = t2; _.$ti = t3; }, fromImport0() { var t1 = A._asBoolQ($.Zone__current.$index(0, B.Symbol__inImportRule)); return t1 === true; }, containingUrl() { var t1, url, _0_0 = $.Zone__current.$index(0, B.Symbol__containingUrl); $label0$0: { if (_0_0 == null) A.throwExpression(A.StateError$("containingUrl may only be accessed within a call to canonicalize().")); if (B.Symbol__none.$eq(0, _0_0)) { t1 = null; break $label0$0; } if (type$.Uri._is(_0_0)) { url = _0_0; t1 = true; } else { url = null; t1 = false; } if (t1) { t1 = url; break $label0$0; } t1 = A.throwExpression(A.StateError$("Unexpected Zone.current[#_containingUrl] value " + A.S(_0_0) + ".")); } return t1; }, withContainingUrl0(url, callback, $T) { var t1 = url == null ? B.Symbol__none : url, t2 = type$.nullable_Object; return A.runZoned(callback, A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__containingUrl, t1], t2, t2), $T); }, resolveImportPath0(path) { var t1, extension = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]; if (extension === ".sass" || extension === ".scss" || extension === ".css") { t1 = A.fromImport0() ? new A.resolveImportPath_closure1(path, extension).call$0() : null; return t1 == null ? A._exactlyOne0(A._tryPath0(path)) : t1; } t1 = A.fromImport0() ? new A.resolveImportPath_closure2(path).call$0() : null; if (t1 == null) t1 = A._exactlyOne0(A._tryPathWithExtensions0(path)); return t1 == null ? A._tryPathAsDirectory0(path) : t1; }, _tryPathWithExtensions0(path) { var result = A._tryPath0(path + ".sass"); B.JSArray_methods.addAll$1(result, A._tryPath0(path + ".scss")); return result.length !== 0 ? result : A._tryPath0(path + ".css"); }, _tryPath0(path) { var t1 = $.$get$context(), partial = A.join(t1.dirname$1(path), "_" + A.ParsedPath_ParsedPath$parse(path, t1.style).get$basename(), null); t1 = A._setArrayType([], type$.JSArray_String); if (A.fileExists0(partial)) t1.push(partial); if (A.fileExists0(path)) t1.push(path); return t1; }, _tryPathAsDirectory0(path) { var t1; if (!A.dirExists0(path)) return null; t1 = A.fromImport0() ? new A._tryPathAsDirectory_closure0(path).call$0() : null; return t1 == null ? A._exactlyOne0(A._tryPathWithExtensions0(A.join(path, "index", null))) : t1; }, _exactlyOne0(paths) { var t1, path, _0_1 = A._InitializedCell$(new A._exactlyOne_closure1(paths)); $label0$0: { if (_0_1._readFinal$0() <= 0) { t1 = null; break $label0$0; } if (J.$eq$(_0_1._readFinal$0(), 1)) { path = paths[0]; t1 = true; } else { path = null; t1 = false; } if (t1) { t1 = path; break $label0$0; } t1 = A.throwExpression(string$.It_s_n + B.JSArray_methods.map$1$1(paths, new A._exactlyOne_closure2(), type$.String).join$1(0, "\n")); } return t1; }, resolveImportPath_closure1: function resolveImportPath_closure1(t0, t1) { this.path = t0; this.extension = t1; }, resolveImportPath_closure2: function resolveImportPath_closure2(t0) { this.path = t0; }, _tryPathAsDirectory_closure0: function _tryPathAsDirectory_closure0(t0) { this.path = t0; }, _exactlyOne_closure1: function _exactlyOne_closure1(t0) { this._0_0 = t0; }, _exactlyOne_closure2: function _exactlyOne_closure2() { }, jsThrow(error) { return type$.Never._as($.$get$_jsThrow().call$1(error)); }, attachJsStack(error, trace) { var traceString = trace.toString$0(0), firstRealLine = B.JSString_methods.indexOf$1(traceString, "\n at"); if (firstRealLine !== -1) traceString = B.JSString_methods.substring$1(traceString, firstRealLine + 1); error.stack = "Error: " + A.S(J.get$message$x(error)) + "\n" + traceString; }, jsForEach(object, callback) { var t1, t2; for (t1 = J.get$iterator$ax(self.Object.keys(object)); t1.moveNext$0();) { t2 = t1.get$current(t1); callback.call$2(t2, object[t2]); } }, jsType(value) { var typeOf = A._asString(new self.Function("value", "return typeof value").call$1(value)); 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)); }, defineGetter(object, $name, get, value) { self.Object.defineProperty(object, $name, get == null ? {value: value, enumerable: false} : {get: A.allowInteropCaptureThis(get), enumerable: false}); }, allowInteropNamed($name, $function) { $function = A.allowInterop($function); A.defineGetter($function, "name", null, $name); A._hideDartProperties($function); return $function; }, allowInteropCaptureThisNamed($name, $function) { $function = A.allowInteropCaptureThis($function); A.defineGetter($function, "name", null, $name); A._hideDartProperties($function); return $function; }, _hideDartProperties(object) { var t1, t2, t3, t4; for (t1 = J.cast$1$0$ax(self.Object.getOwnPropertyNames(object), type$.String), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; if (t3 == null) t3 = t2._as(t3); if (B.JSString_methods.startsWith$1(t3, "_")) { t4 = {value: object[t3], enumerable: false}; self.Object.defineProperty(object, t3, t4); } } }, futureToPromise0(future) { return new self.Promise(A.allowInterop(new A.futureToPromise_closure0(future))); }, jsToDartUrl(url) { return A.Uri_parse(J.toString$0$(url)); }, dartToJSUrl(url) { return new self.URL(url.toString$0(0)); }, toJSArray(iterable) { var t1, t2, array = new self.Array(); for (t1 = J.get$iterator$ax(iterable), t2 = J.getInterceptor$x(array); t1.moveNext$0();) t2.push$1(array, t1.get$current(t1)); return array; }, objectToMap(object) { var map = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.nullable_Object); A.jsForEach(object, new A.objectToMap_closure(map)); return map; }, jsToDartSeparator(separator) { var t1; $label0$0: { if (" " === separator) { t1 = B.ListSeparator_EVt0; break $label0$0; } if ("," === separator) { t1 = B.ListSeparator_rXA0; break $label0$0; } if ("/" === separator) { t1 = B.ListSeparator_zg90; break $label0$0; } if (separator == null) { t1 = B.ListSeparator_undecided_null_undecided0; break $label0$0; } t1 = A.jsThrow(new self.Error('Unknown separator "' + separator + '".')); } return t1; }, parseSyntax(syntax) { var t1; $label0$0: { if (syntax == null || "scss" === syntax) { t1 = B.Syntax_SCSS_scss0; break $label0$0; } if ("indented" === syntax) { t1 = B.Syntax_Sass_sass0; break $label0$0; } if ("css" === syntax) { t1 = B.Syntax_CSS_css0; break $label0$0; } t1 = A.jsThrow(new self.Error('Unknown syntax "' + A.S(syntax) + '".')); } return t1; }, _PropertyDescriptor0: function _PropertyDescriptor0() { }, futureToPromise_closure0: function futureToPromise_closure0(t0) { this.future = t0; }, futureToPromise__closure0: function futureToPromise__closure0(t0) { this.resolve = t0; }, futureToPromise__closure1: function futureToPromise__closure1(t0) { this.reject = t0; }, objectToMap_closure: function objectToMap_closure(t0) { this.map = t0; }, toSentence0(iter, conjunction) { if (iter.get$length(iter) === 1) return J.toString$0$(iter.get$first(iter)); return A.IterableExtension_get_exceptLast0(iter).join$1(0, ", ") + (" " + conjunction + " " + A.S(iter.get$last(iter))); }, indent0(string, indentation) { 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"); }, pluralize0($name, number, plural) { if (number === 1) return $name; if (plural != null) return plural; return $name + "s"; }, trimAscii0(string, excludeEscape) { var t1, start = A._firstNonWhitespace0(string); if (start == null) t1 = ""; else { t1 = A._lastNonWhitespace0(string, true); t1.toString; t1 = B.JSString_methods.substring$2(string, start, t1 + 1); } return t1; }, trimAsciiRight0(string, excludeEscape) { var end = A._lastNonWhitespace0(string, excludeEscape); return end == null ? "" : B.JSString_methods.substring$2(string, 0, end + 1); }, _firstNonWhitespace0(string) { var t1, i, t2; for (t1 = string.length, i = 0; i < t1; ++i) { t2 = string.charCodeAt(i); if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12)) return i; } return null; }, _lastNonWhitespace0(string, excludeEscape) { var i, i0, codeUnit; for (i = string.length - 1, i0 = i; i0 >= 0; --i0) { codeUnit = string.charCodeAt(i0); if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12)) if (excludeEscape && i0 !== 0 && i0 !== i && codeUnit === 92) return i0 + 1; else return i0; } return null; }, isPublic0(member) { var start = member.charCodeAt(0); return start !== 45 && start !== 95; }, flattenVertically0(iterable, $T) { var result, t1 = iterable.$ti._eval$1("@")._bind$1($T._eval$1("QueueList<0>"))._eval$1("MappedListIterable<1,2>"), queues = A.List_List$of(new A.MappedListIterable(iterable, new A.flattenVertically_closure1($T), t1), true, t1._eval$1("ListIterable.E")); if (queues.length === 1) return B.JSArray_methods.get$first(queues); result = A._setArrayType([], $T._eval$1("JSArray<0>")); for (; queues.length !== 0;) { if (!!queues.fixed$length) A.throwExpression(A.UnsupportedError$("removeWhere")); B.JSArray_methods._removeWhere$2(queues, new A.flattenVertically_closure2(result, $T), true); } return result; }, codepointIndexToCodeUnitIndex0(string, codepointIndex) { var codeUnitIndex, i, codeUnitIndex0; for (codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) { codeUnitIndex0 = codeUnitIndex + 1; codeUnitIndex = string.charCodeAt(codeUnitIndex) >>> 10 === 54 ? codeUnitIndex0 + 1 : codeUnitIndex0; } return codeUnitIndex; }, codeUnitIndexToCodepointIndex0(string, codeUnitIndex) { var codepointIndex, i; for (codepointIndex = 0, i = 0; i < codeUnitIndex; i = (string.charCodeAt(i) >>> 10 === 54 ? i + 1 : i) + 1) ++codepointIndex; return codepointIndex; }, frameForSpan0(span, member, url) { var t2, t3, t1 = url == null ? span.get$sourceUrl(span) : url; if (t1 == null) t1 = $.$get$_noSourceUrl0(); t2 = span.get$start(span); t2 = t2.file.getLine$1(t2.offset); t3 = span.get$start(span); return new A.Frame(t1, t2 + 1, t3.file.getColumn$1(t3.offset) + 1, member); }, declarationName0(span) { var text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null); return A.trimAsciiRight0(B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":")), false); }, unvendor0($name) { var i, t1 = $name.length; if (t1 < 2) return $name; if ($name.charCodeAt(0) !== 45) return $name; if ($name.charCodeAt(1) === 45) return $name; for (i = 2; i < t1; ++i) if ($name.charCodeAt(i) === 45) return B.JSString_methods.substring$1($name, i + 1); return $name; }, equalsIgnoreCase0(string1, string2) { var t1, i; if (string1 === string2) return true; if (string1 == null || false) return false; t1 = string1.length; if (t1 !== string2.length) return false; for (i = 0; i < t1; ++i) if (!A.characterEqualsIgnoreCase0(string1.charCodeAt(i), string2.charCodeAt(i))) return false; return true; }, startsWithIgnoreCase0(string, prefix) { var i, t1 = prefix.length; if (string.length < t1) return false; for (i = 0; i < t1; ++i) if (!A.characterEqualsIgnoreCase0(string.charCodeAt(i), prefix.charCodeAt(i))) return false; return true; }, mapInPlace0(list, $function) { var i; for (i = 0; i < list.length; ++i) list[i] = $function.call$1(list[i]); }, longestCommonSubsequence0(list1, list2, select, $T) { var t1, _i, selections, i, i0, j, selection, j0, _length = list1.get$length(list1) + 1, lengths = J.JSArray_JSArray$allocateFixed(_length, type$.List_int); for (t1 = type$.int, _i = 0; _i < _length; ++_i) 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); _length = list1.get$length(list1); selections = J.JSArray_JSArray$allocateFixed(_length, $T._eval$1("List<0?>")); for (t1 = $T._eval$1("0?"), _i = 0; _i < _length; ++_i) 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); for (i = 0; i < (list1._queue_list$_tail - list1._queue_list$_head & J.get$length$asx(list1._queue_list$_table) - 1) >>> 0; i = i0) 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) { selection = select.call$2(list1.$index(0, i), list2.$index(0, j)); selections[i][j] = selection; t1 = lengths[i0]; j0 = j + 1; t1[j0] = selection == null ? Math.max(t1[j], lengths[i][j0]) : lengths[i][j] + 1; } return new A.longestCommonSubsequence_backtrack0(selections, lengths, $T).call$2(list1.get$length(list1) - 1, list2.get$length(list2) - 1); }, removeFirstWhere0(list, test, orElse) { var i; for (i = 0; i < list.length; ++i) { if (!test.call$1(list[i])) continue; B.JSArray_methods.removeAt$1(list, i); return; } orElse.call$0(); }, mapAddAll20(destination, source, K1, K2, $V) { source.forEach$1(0, new A.mapAddAll2_closure0(destination, K1, K2, $V)); }, setAll0(map, keys, value) { var t1; for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();) map.$indexSet(0, t1.get$current(t1), value); }, rotateSlice0(list, start, end) { var i, next, element = list.$index(0, end - 1); for (i = start; i < end; ++i, element = next) { next = list.$index(0, i); list.$indexSet(0, i, element); } }, mapAsync0(iterable, callback, $E, $F) { return A.mapAsync$body0(iterable, callback, $E, $F, $F._eval$1("Iterable<0>")); }, mapAsync$body0(iterable, callback, $E, $F, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, t2, _i, t1, $async$temp1; var $async$mapAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = A._setArrayType([], $F._eval$1("JSArray<0>")); t2 = iterable.length, _i = 0; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } $async$temp1 = t1; $async$goto = 6; return A._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync0); case 6: // returning from await. $async$temp1.push($async$result); case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = t1; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$mapAsync0, $async$completer); }, putIfAbsentAsync0(map, key, ifAbsent, $K, $V) { return A.putIfAbsentAsync$body0(map, key, ifAbsent, $K, $V, $V); }, putIfAbsentAsync$body0(map, key, ifAbsent, $K, $V, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, t1, value; var $async$putIfAbsentAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if (map.containsKey$1(key)) { t1 = map.$index(0, key); $async$returnValue = t1 == null ? $V._as(t1) : t1; // goto return $async$goto = 1; break; } $async$goto = 3; return A._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync0); case 3: // returning from await. value = $async$result; map.$indexSet(0, key, value); $async$returnValue = value; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$putIfAbsentAsync0, $async$completer); }, copyMapOfMap0(map, K1, K2, $V) { var t3, key, child, t1 = K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1,2>"), t2 = A.LinkedHashMap_LinkedHashMap$_empty(K1, t1); for (t1 = A.MapExtensions_get_pairs0(map, K1, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) { t3 = t1.get$current(t1); key = t3._0; child = t3._1; t3 = A.LinkedHashMap_LinkedHashMap(null, null, null, K2, $V); t3.addAll$1(0, child); t2.$indexSet(0, key, t3); } return t2; }, copyMapOfList0(map, $K, $E) { var t3, key, list, t1 = $E._eval$1("List<0>"), t2 = A.LinkedHashMap_LinkedHashMap$_empty($K, t1); for (t1 = A.MapExtensions_get_pairs0(map, $K, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) { t3 = t1.get$current(t1); key = t3._0; list = t3._1; t2.$indexSet(0, key, J.toList$0$ax(list)); } return t2; }, consumeEscapedCharacter0(scanner) { var _1_0, value, i, next, t1; scanner.expectChar$1(92); _1_0 = scanner.peekChar$0(); if (_1_0 == null) return 65533; if (_1_0 === 10 || _1_0 === 13 || _1_0 === 12) scanner.error$1(0, "Expected escape sequence."); if (A.CharacterExtension_get_isHex0(_1_0)) { for (value = 0, i = 0; i < 6; ++i) { next = scanner.peekChar$0(); if (next != null) { if (!(next >= 48 && next <= 57)) if (!(next >= 97 && next <= 102)) t1 = next >= 65 && next <= 70; else t1 = true; else t1 = true; t1 = !t1; } else t1 = true; if (t1) break; value = (value << 4 >>> 0) + A.asHex0(scanner.readChar$0()); } t1 = scanner.peekChar$0(); if (t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12) scanner.readChar$0(); $label0$1: { if (0 !== value) t1 = value >= 55296 && value <= 57343 || value >= 1114111; else t1 = true; if (t1) { t1 = 65533; break $label0$1; } t1 = value; break $label0$1; } return t1; } return scanner.readChar$0(); }, throwWithTrace0(error, originalError, trace) { var t1 = A.getTrace0(originalError); A.attachTrace0(error, t1 == null ? trace : t1); throw A.wrapException(error); }, attachTrace0(error, trace) { var t1; if (typeof error == "string" || typeof error == "number" || A._isBool(error)) return; if (trace.toString$0(0).length === 0) return; t1 = $.$get$_traces0(); A.Expando__checkType(error); if (t1._jsWeakMap.get(error) == null) t1.$indexSet(0, error, trace); }, getTrace0(error) { var t1; if (typeof error == "string" || typeof error == "number" || A._isBool(error)) t1 = null; else { t1 = $.$get$_traces0(); A.Expando__checkType(error); t1 = t1._jsWeakMap.get(error); } return t1; }, parseSignature(signature, requireParens) { var error, stackTrace, t1, exception, t2; try { t1 = A.ScssParser$0(signature, null, null).parseSignature$1$requireParens(requireParens); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (type$.SassFormatException_2._is(t1)) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = error._span_exception$_message; t2 = J.get$span$z(error); A.throwWithTrace0(new A.SassFormatException0(B.Set_empty, 'Invalid signature "' + signature + '": ' + t1, t2), error, stackTrace); } else throw exception; } }, indent_closure0: function indent_closure0(t0) { this.indentation = t0; }, flattenVertically_closure1: function flattenVertically_closure1(t0) { this.T = t0; }, flattenVertically_closure2: function flattenVertically_closure2(t0, t1) { this.result = t0; this.T = t1; }, longestCommonSubsequence_backtrack0: function longestCommonSubsequence_backtrack0(t0, t1, t2) { this.selections = t0; this.lengths = t1; this.T = t2; }, mapAddAll2_closure0: function mapAddAll2_closure0(t0, t1, t2, t3) { var _ = this; _.destination = t0; _.K1 = t1; _.K2 = t2; _.V = t3; }, CssValue0: function CssValue0(t0, t1, t2) { this.value = t0; this.span = t1; this.$ti = t2; }, ValueExpression0: function ValueExpression0(t0, t1) { this.value = t0; this.span = t1; }, valueClass_closure: function valueClass_closure() { }, valueClass__closure: function valueClass__closure() { }, valueClass__closure0: function valueClass__closure0() { }, valueClass__closure1: function valueClass__closure1() { }, valueClass__closure2: function valueClass__closure2() { }, valueClass__closure3: function valueClass__closure3() { }, valueClass__closure4: function valueClass__closure4() { }, valueClass__closure5: function valueClass__closure5() { }, valueClass__closure6: function valueClass__closure6() { }, valueClass__closure7: function valueClass__closure7() { }, valueClass__closure8: function valueClass__closure8() { }, valueClass__closure9: function valueClass__closure9() { }, valueClass__closure10: function valueClass__closure10() { }, valueClass__closure11: function valueClass__closure11() { }, valueClass__closure12: function valueClass__closure12() { }, valueClass__closure13: function valueClass__closure13() { }, valueClass__closure14: function valueClass__closure14() { }, valueClass__closure15: function valueClass__closure15() { }, valueClass__closure16: function valueClass__closure16() { }, valueClass__closure17: function valueClass__closure17() { }, valueClass__closure18: function valueClass__closure18() { }, SassApiValue_assertSelector0(_this, allowParent, $name) { var error, stackTrace, t1, exception, string = _this._value$_selectorString$1($name); try { t1 = A.SelectorList_SelectorList$parse0(string, allowParent, true, null, null); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (type$.SassFormatException_2._is(t1)) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""); A.throwWithTrace0(new A.SassScriptException0($name == null ? t1 : "$" + $name + ": " + t1), error, stackTrace); } else throw exception; } }, SassApiValue_assertCompoundSelector0(_this, $name) { var error, stackTrace, t1, exception, allowParent = false, string = _this._value$_selectorString$1($name); try { t1 = A.SelectorParser$0(string, allowParent, true, null, null, null).parseCompoundSelector$0(); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (type$.SassFormatException_2._is(t1)) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""); A.throwWithTrace0(new A.SassScriptException0("$" + $name + ": " + t1), error, stackTrace); } else throw exception; } }, Value0: function Value0() { }, VariableExpression0: function VariableExpression0(t0, t1, t2) { this.namespace = t0; this.name = t1; this.span = t2; }, VariableDeclaration$0($name, expression, span, comment, global, guarded, namespace) { if (namespace != null && global) A.throwExpression(A.ArgumentError$(string$.Other_, null)); return new A.VariableDeclaration0(namespace, $name, expression, guarded, global, span); }, VariableDeclaration0: function VariableDeclaration0(t0, t1, t2, t3, t4, t5) { var _ = this; _.namespace = t0; _.name = t1; _.expression = t2; _.isGuarded = t3; _.isGlobal = t4; _.span = t5; }, WarnRule0: function WarnRule0(t0, t1) { this.expression = t0; this.span = t1; }, WhileRule$0(condition, children, span) { var t1 = A.List_List$unmodifiable(children, type$.Statement_2), t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0()); return new A.WhileRule0(condition, span, t1, t2); }, WhileRule0: function WhileRule0(t0, t1, t2, t3) { var _ = this; _.condition = t0; _.span = t1; _.children = t2; _.hasDeclarations = t3; }, AsyncCallable_AsyncCallable$fromSignature(signature, callback, requireParens) { var _0_0 = A.parseSignature(signature, requireParens); return new A.AsyncBuiltInCallable0(_0_0._0, _0_0._1, callback, false); }, Callable_Callable$fromSignature(signature, callback, requireParens) { var _0_0 = A.parseSignature(signature, requireParens); 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); }, printString(string) { if (typeof dartPrint == "function") { dartPrint(string); return; } if (typeof console == "object" && typeof console.log != "undefined") { console.log(string); return; } if (typeof print == "function") { print(string); return; } throw "Unable to print message: " + String(string); }, mergeMaps(map1, map2, $K, $V) { var result = A.LinkedHashMap_LinkedHashMap$of(map1, $K, $V); result.addAll$1(0, map2); return result; }, groupBy(values, key, $S, $T) { var t1, t2, _i, element, t3, t4, map = A.LinkedHashMap_LinkedHashMap$_empty($T, $S._eval$1("List<0>")); for (t1 = values.length, t2 = $S._eval$1("JSArray<0>"), _i = 0; _i < values.length; values.length === t1 || (0, A.throwConcurrentModificationError)(values), ++_i) { element = values[_i]; t3 = key.call$1(element); t4 = map.$index(0, t3); if (t4 == null) { t4 = A._setArrayType([], t2); map.$indexSet(0, t3, t4); t3 = t4; } else t3 = t4; J.add$1$ax(t3, element); } return map; }, minBy(values, orderBy) { var t1, t2, minValue, minOrderBy, element, elementOrderBy; for (t1 = new A.MappedIterator(J.get$iterator$ax(values.__internal$_iterable), values._f), t2 = A._instanceType(t1)._rest[1], minValue = null, minOrderBy = null; t1.moveNext$0();) { element = t1.__internal$_current; if (element == null) element = t2._as(element); elementOrderBy = orderBy.call$1(element); if (minOrderBy == null || A.defaultCompare(elementOrderBy, minOrderBy) < 0) { minOrderBy = elementOrderBy; minValue = element; } } return minValue; }, IterableExtension_firstWhereOrNull(_this, test) { var t1, element; for (t1 = J.get$iterator$ax(_this); t1.moveNext$0();) { element = t1.get$current(t1); if (test.call$1(element)) return element; } return null; }, IterableExtension_get_firstOrNull(_this) { var iterator = J.get$iterator$ax(_this); if (iterator.moveNext$0()) return iterator.get$current(iterator); return null; }, IterableExtension_get_lastOrNull(_this) { if (_this.get$length(_this) === 0) return null; return _this.get$last(_this); }, IterableExtension_get_singleOrNull(_this) { var result, iterator = J.get$iterator$ax(_this); if (iterator.moveNext$0()) { result = iterator.get$current(iterator); if (!iterator.moveNext$0()) return result; } return null; }, IterableNullableExtension_whereNotNull(_this, $T) { return new A._SyncStarIterable(A.IterableNullableExtension_whereNotNull$body(_this, $T), $T._eval$1("_SyncStarIterable<0>")); }, IterableNullableExtension_whereNotNull$body($async$_this, $async$$T) { return function() { var _this = $async$_this, $T = $async$$T; var $async$goto = 0, $async$handler = 1, $async$currentError, t1, element; return function $async$IterableNullableExtension_whereNotNull($async$iterator, $async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start t1 = J.get$iterator$ax(_this); case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } element = t1.get$current(t1); $async$goto = element != null ? 4 : 5; break; case 4: // then $async$goto = 6; return $async$iterator._async$_current = element, 1; case 6: // after yield case 5: // join // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return 0; case 1: // rethrow return $async$iterator._datum = $async$currentError, 3; } }; }; }, IterableIntegerExtension_get_maxOrNull(_this) { var value, t1, newValue, iterator = new A.ListIterator(_this, _this.get$length(_this)); if (iterator.moveNext$0()) { value = iterator.__internal$_current; if (value == null) value = A._instanceType(iterator)._precomputed1._as(value); for (t1 = A._instanceType(iterator)._precomputed1; iterator.moveNext$0();) { newValue = iterator.__internal$_current; if (newValue == null) newValue = t1._as(newValue); if (newValue > value) value = newValue; } return value; } return null; }, IterableIntegerExtension_get_max(_this) { var t1 = A.IterableIntegerExtension_get_maxOrNull(_this); return t1 == null ? A.throwExpression(A.StateError$("No element")) : t1; }, IterableIntegerExtension_get_sum(_this) { var t1, t2, result, t3; for (t1 = new A.MappedIterator(J.get$iterator$ax(_this.__internal$_iterable), _this._f), t2 = A._instanceType(t1)._rest[1], result = 0; t1.moveNext$0();) { t3 = t1.__internal$_current; result += t3 == null ? t2._as(t3) : t3; } return result; }, ListExtensions_mapIndexed(_this, convert, $E, $R) { return new A._SyncStarIterable(A.ListExtensions_mapIndexed$body(_this, convert, $E, $R), $R._eval$1("_SyncStarIterable<0>")); }, ListExtensions_mapIndexed$body($async$_this, $async$convert, $async$$E, $async$$R) { return function() { var _this = $async$_this, convert = $async$convert, $E = $async$$E, $R = $async$$R; var $async$goto = 0, $async$handler = 1, $async$currentError, t1, index; return function $async$ListExtensions_mapIndexed($async$iterator, $async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start t1 = _this.length, index = 0; case 2: // for condition if (!(index < t1)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return $async$iterator._async$_current = convert.call$2(index, _this[index]), 1; case 5: // after yield case 3: // for update ++index; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return 0; case 1: // rethrow return $async$iterator._datum = $async$currentError, 3; } }; }; }, ListExtensions_elementAtOrNull(_this, index) { var t1 = J.getInterceptor$asx(_this); return index < t1.get$length(_this) ? t1.$index(_this, index) : null; }, defaultCompare(value1, value2) { return J.compareTo$1$ns(type$.Comparable_nullable_Object._as(value1), value2); }, current() { var exception, t1, path, lastIndex, uri = null; try { uri = A.Uri_base(); } catch (exception) { if (type$.Exception._is(A.unwrapException(exception))) { t1 = $._current; if (t1 != null) return t1; throw exception; } else throw exception; } if (J.$eq$(uri, $._currentUriBase)) { t1 = $._current; t1.toString; return t1; } $._currentUriBase = uri; if ($.$get$Style_platform() === $.$get$Style_url()) t1 = $._current = uri.resolve$1(".").toString$0(0); else { path = uri.toFilePath$0(); lastIndex = path.length - 1; t1 = $._current = lastIndex === 0 ? path : B.JSString_methods.substring$2(path, 0, lastIndex); } return t1; }, absolute(part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15) { return $.$get$context().absolute$15(part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15); }, join(part1, part2, part3) { var _null = null; return $.$get$context().join$16(0, part1, part2, part3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null); }, prettyUri(uri) { return $.$get$context().prettyUri$1(uri); }, isAlphabetic(char) { var t1; if (!(char >= 65 && char <= 90)) t1 = char >= 97 && char <= 122; else t1 = true; return t1; }, isDriveLetter(path, index) { var t1 = path.length, t2 = index + 2; if (t1 < t2) return false; if (!A.isAlphabetic(path.charCodeAt(index))) return false; if (path.charCodeAt(index + 1) !== 58) return false; if (t1 === t2) return true; return path.charCodeAt(t2) === 47; }, main0(args) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.dynamic), t1; var $async$main0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start A.printError("sass --embedded is unavailable in pure JS mode."); t1 = A.isNodeJs() ? self.process : null; if (t1 != null) J.set$exitCode$x(t1, 1); // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$main0, $async$completer); }, EvaluationContext_current() { var context, t1, _0_0 = $.Zone__current.$index(0, B.Symbol__evaluationContext); if (type$.EvaluationContext._is(_0_0)) { context = _0_0; t1 = true; } else { context = null; t1 = false; } if (t1) return context; else throw A.wrapException(A.StateError$(string$.No_Sass)); }, repl(options) { return A.repl$body(options); }, repl$body(options) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$handler = 1, $async$currentError, $async$next = [], repl, logger, evaluator, line, declaration, error, stackTrace, t4, t5, t6, t7, t8, line0, toZone, exception, t1, t2, t3, repl0; var $async$repl = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start t1 = A._setArrayType([], type$.JSArray_String); t2 = B.JSString_methods.$mul(" ", 3); t3 = $.$get$alwaysValid(); repl0 = new A.Repl(">> ", t2, t3, t1); repl0.__Repl__adapter_A = new A.ReplAdapter(repl0); repl = repl0; t1 = options._options; logger = new A.TrackingLogger(A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color())); t2 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null); evaluator = new A.Evaluator(A._EvaluateVisitor$(null, A.ImportCache$(type$.List_String._as(t1.$index(0, "load-path")), logger), logger, null, false, false), new A.FilesystemImporter(t2)); t2 = repl.__Repl__adapter_A; t2 === $ && A.throwUnnamedLateFieldNI(); t2 = new A._StreamIterator(A.checkNotNullable(t2.runAsync$0(), "stream", type$.Object)); $async$handler = 2; t1 = type$.Expression, t3 = type$.String, t4 = type$.VariableDeclaration; case 5: // for condition $async$goto = 7; return A._asyncAwait(t2.moveNext$0(), $async$repl); case 7: // returning from await. if (!$async$result) { // goto after for $async$goto = 6; break; } line = t2.get$current(t2); if (J.trim$0$s(line).length === 0) { // goto for condition $async$goto = 5; break; } try { if (J.startsWith$1$s(line, "@")) { t5 = evaluator; t6 = logger; t7 = A.SpanScanner$(line, null); if (t6 == null) t6 = B.StderrLogger_false; t6 = new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t7, t6, null).parseUseRule$0(); t5._visitor.runStatement$2(t5._importer, t6); // goto for condition $async$goto = 5; break; } t5 = A.SpanScanner$(line, null); if (new A.Parser(t5, B.StderrLogger_false, null)._isVariableDeclarationLike$0()) { t5 = logger; t6 = A.SpanScanner$(line, null); if (t5 == null) t5 = B.StderrLogger_false; declaration = new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t6, t5, null).parseVariableDeclaration$0(); t5 = evaluator; t5._visitor.runStatement$2(t5._importer, declaration); t5 = evaluator; t6 = declaration.name; t7 = declaration.span; t8 = declaration.namespace; line0 = t5._visitor.runExpression$2(t5._importer, new A.VariableExpression(t8, t6, t7)).toString$0(0); toZone = $.printToZone; if (toZone == null) A.printString(line0); else toZone.call$1(line0); } else { t5 = evaluator; t6 = logger; t7 = A.SpanScanner$(line, null); if (t6 == null) t6 = B.StderrLogger_false; t6 = new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t7, t6, null); t6 = t6._parseSingleProduction$1$1(t6.get$_expression(), t1); line0 = t5._visitor.runExpression$2(t5._importer, t6).toString$0(0); toZone = $.printToZone; if (toZone == null) A.printString(line0); else toZone.call$1(line0); } } catch (exception) { t5 = A.unwrapException(exception); if (t5 instanceof A.SassException) { error = t5; stackTrace = A.getTraceFromException(exception); t5 = error; t6 = typeof t5 != "string"; if (!t6 || typeof t5 == "number" || A._isBool(t5)) t5 = null; else { t7 = $.$get$_traces(); if (A._isBool(t5) || typeof t5 == "number" || !t6 || t5 instanceof A._Record) A.Expando__badExpandoKey(t5); t5 = t7._jsWeakMap.get(t5); } if (t5 == null) t5 = stackTrace; A._logError(error, t5, line, repl, options, logger); } else throw exception; } // goto for condition $async$goto = 5; break; case 6: // after for $async$next.push(4); // goto finally $async$goto = 3; break; case 2: // uncaught $async$next = [1]; case 3: // finally $async$handler = 1; $async$goto = 8; return A._asyncAwait(t2.cancel$0(), $async$repl); case 8: // returning from await. // goto the next finally handler $async$goto = $async$next.pop(); break; case 4: // after finally // implicit return return A._asyncReturn(null, $async$completer); case 1: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$repl, $async$completer); }, _logError(error, stackTrace, line, repl, options, logger) { var t2, spacesBeforeError, t3, t1 = A.SourceSpanException.prototype.get$span.call(error, error); if (t1.get$sourceUrl(t1) == null) if (!A._asBool(options._options.$index(0, "quiet"))) t1 = logger._emittedDebug || logger._emittedWarning; else t1 = false; else t1 = true; if (t1) { A.print(error.toString$1$color(0, options.get$color())); return; } t1 = options.get$color() ? "" + "\x1b[31m" : ""; t2 = A.SourceSpanException.prototype.get$span.call(error, error); t2 = t2.get$start(t2); spacesBeforeError = repl.prompt.length + t2.file.getColumn$1(t2.offset); if (options.get$color()) { t2 = A.SourceSpanException.prototype.get$span.call(error, error); t2 = t2.get$start(t2); t2 = t2.file.getColumn$1(t2.offset) < line.length; } else t2 = false; if (t2) t1 = t1 + ("\x1b[1F\x1b[" + spacesBeforeError + "C") + (A.SourceSpanException.prototype.get$span.call(error, error).get$text() + "\n"); t2 = B.JSString_methods.$mul(" ", spacesBeforeError); t3 = A.SourceSpanException.prototype.get$span.call(error, error); t3 = t1 + t2 + (B.JSString_methods.$mul("^", Math.max(1, t3.get$length(t3))) + "\n"); t1 = options.get$color() ? t3 + "\x1b[0m" : t3; t1 += "Error: " + error._span_exception$_message + "\n"; if (A._asBool(options._options.$index(0, "trace"))) t1 += A.Trace_Trace$from(stackTrace).get$terse().toString$0(0); A.print(B.JSString_methods.trimRight$0(t1.charCodeAt(0) == 0 ? t1 : t1)); }, CharacterExtension_get_isAlphabetic(_this) { var t1; if (!(_this >= 97 && _this <= 122)) t1 = _this >= 65 && _this <= 90; else t1 = true; return t1; }, CharacterExtension_get_isHex(_this) { var t1; if (!(_this >= 48 && _this <= 57)) if (!(_this >= 97 && _this <= 102)) t1 = _this >= 65 && _this <= 70; else t1 = true; else t1 = true; return t1; }, asHex(character) { var t1; $label0$0: { if (character <= 57) { t1 = character - 48; break $label0$0; } if (character <= 70) { t1 = 10 + character - 65; break $label0$0; } t1 = 10 + character - 97; break $label0$0; } return t1; }, hexCharFor(number) { return number < 10 ? 48 + number : 87 + number; }, opposite(character) { var t1; $label0$0: { if (40 === character) { t1 = 41; break $label0$0; } if (123 === character) { t1 = 125; break $label0$0; } if (91 === character) { t1 = 93; break $label0$0; } t1 = A.throwExpression(A.ArgumentError$('"' + A.String_String$fromCharCode(character) + "\" isn't a brace-like character.", null)); } return t1; }, characterEqualsIgnoreCase(character1, character2) { var upperCase1; if (character1 === character2) return true; if ((character1 ^ character2) >>> 0 !== 32) return false; upperCase1 = (character1 & 4294967263) >>> 0; return upperCase1 >= 65 && upperCase1 <= 90; }, IterableExtension_search(_this, callback) { var t1, _0_0, value, t2; for (t1 = J.get$iterator$ax(_this); t1.moveNext$0();) { _0_0 = callback.call$1(t1.get$current(t1)); if (_0_0 != null) { value = _0_0; t2 = true; } else { value = null; t2 = false; } if (t2) return value; } return null; }, IterableExtension_get_exceptLast(_this) { var t1 = J.getInterceptor$asx(_this), size = t1.get$length(_this) - 1; if (size < 0) throw A.wrapException(A.StateError$("Iterable may not be empty")); return t1.take$1(_this, size); }, NullableExtension_andThen(_this, fn) { return _this == null ? null : fn.call$1(_this); }, SetExtension_removeNull(_this, $T) { _this.remove$1(0, null); return A.Set_castFrom(_this, _this.get$_newSimilarSet(), A._instanceType(_this)._precomputed1, $T); }, fuzzyEquals(number1, number2) { var t1; if (number1 === number2) return true; if (Math.abs(number1 - number2) <= $.$get$_epsilon()) { t1 = $.$get$_inverseEpsilon(); t1 = B.JSNumber_methods.round$0(number1 * t1) === B.JSNumber_methods.round$0(number2 * t1); } else t1 = false; return t1; }, fuzzyHashCode(number) { if (!isFinite(number)) return B.JSNumber_methods.get$hashCode(number); return B.JSInt_methods.get$hashCode(B.JSNumber_methods.round$0(number * $.$get$_inverseEpsilon())); }, fuzzyLessThan(number1, number2) { return number1 < number2 && !A.fuzzyEquals(number1, number2); }, fuzzyLessThanOrEquals(number1, number2) { return number1 < number2 || A.fuzzyEquals(number1, number2); }, fuzzyGreaterThan(number1, number2) { return number1 > number2 && !A.fuzzyEquals(number1, number2); }, fuzzyGreaterThanOrEquals(number1, number2) { return number1 > number2 || A.fuzzyEquals(number1, number2); }, fuzzyAsInt(number) { var rounded; if (number == 1 / 0 || number == -1 / 0 || isNaN(number)) return null; rounded = B.JSNumber_methods.round$0(number); return A.fuzzyEquals(number, rounded) ? rounded : null; }, fuzzyRound(number) { var t1; if (number > 0) { t1 = B.JSNumber_methods.$mod(number, 1); return t1 < 0.5 && !A.fuzzyEquals(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number); } else { t1 = B.JSNumber_methods.$mod(number, 1); return t1 < 0.5 || A.fuzzyEquals(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number); } }, fuzzyCheckRange(number, min, max) { if (A.fuzzyEquals(number, min)) return min; if (A.fuzzyEquals(number, max)) return max; if (number > min && number < max) return number; return null; }, fuzzyAssertRange(number, min, max, $name) { var result = A.fuzzyCheckRange(number, min, max); if (result != null) return result; throw A.wrapException(A.RangeError$range(number, min, max, $name, "must be between " + min + " and " + max)); }, moduloLikeSass(num1, num2) { var result; if (num1 == 1 / 0 || num1 == -1 / 0) return 0 / 0; if (num2 == 1 / 0 || num2 == -1 / 0) return A.DoubleWithSignedZero_get_signIncludingZero(num1) === J.get$sign$in(num2) ? num1 : 0 / 0; if (num2 > 0) return B.JSNumber_methods.$mod(num1, num2); if (num2 === 0) return 0 / 0; result = B.JSNumber_methods.$mod(num1, num2); return result === 0 ? 0 : result + num2; }, sqrt(number) { number.assertNoUnits$1("number"); return A.SassNumber_SassNumber(Math.sqrt(number._number$_value), null); }, sin(number) { return A.SassNumber_SassNumber(Math.sin(number.coerceValueToUnit$2("rad", "number")), null); }, cos(number) { return A.SassNumber_SassNumber(Math.cos(number.coerceValueToUnit$2("rad", "number")), null); }, tan(number) { return A.SassNumber_SassNumber(Math.tan(number.coerceValueToUnit$2("rad", "number")), null); }, atan(number) { number.assertNoUnits$1("number"); return A.SassNumber_SassNumber$withUnits(Math.atan(number._number$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String)); }, asin(number) { number.assertNoUnits$1("number"); return A.SassNumber_SassNumber$withUnits(Math.asin(number._number$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String)); }, acos(number) { number.assertNoUnits$1("number"); return A.SassNumber_SassNumber$withUnits(Math.acos(number._number$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String)); }, log(number, base) { if (base != null) return A.SassNumber_SassNumber(Math.log(number._number$_value) / Math.log(base._number$_value), null); return A.SassNumber_SassNumber(Math.log(number._number$_value), null); }, pow0(base, exponent) { base.assertNoUnits$1("base"); exponent.assertNoUnits$1("exponent"); return A.SassNumber_SassNumber(Math.pow(base._number$_value, exponent._number$_value), null); }, DoubleWithSignedZero_get_signIncludingZero(_this) { if (_this === -0.0) return -1; if (_this === 0) return 1; return J.get$sign$in(_this); }, SpanExtensions_trimLeft(_this) { var t5, t1 = _this._file$_start, t2 = _this._end, t3 = _this.file._decodedChars, t4 = t3.length, start = 0; while (true) { t5 = A.String_String$fromCharCodes(new Uint32Array(t3.subarray(t1, A._checkValidRange(t1, t2, t4))), 0, null).charCodeAt(start); if (!(t5 === 32 || t5 === 9 || t5 === 10 || t5 === 13 || t5 === 12)) break; ++start; } return A.FileSpanExtension_subspan(_this, start, null); }, SpanExtensions_trimRight(_this) { var t1, end = _this.get$text().length - 1; while (true) { t1 = _this.get$text().charCodeAt(end); if (!(t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12)) break; --end; } return A.FileSpanExtension_subspan(_this, 0, end + 1); }, encodeVlq(value) { var res, signBit, digit, t1; if (value < $.$get$minInt32() || value > $.$get$maxInt32()) throw A.wrapException(A.ArgumentError$("expected 32 bit int, got: " + value, null)); res = A._setArrayType([], type$.JSArray_String); if (value < 0) { value = -value; signBit = 1; } else signBit = 0; value = value << 1 | signBit; do { digit = value & 31; value = value >>> 5; t1 = value > 0; res.push(string$.ABCDEF[t1 ? digit | 32 : digit]); } while (t1); return res; }, isAllTheSame(iter) { var firstValue, t1, t2, value; if (iter.get$length(iter) === 0) return true; firstValue = iter.get$first(iter); for (t1 = A.SubListIterable$(iter, 1, null, iter.$ti._eval$1("ListIterable.E")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { value = t1.__internal$_current; if (!J.$eq$(value == null ? t2._as(value) : value, firstValue)) return false; } return true; }, replaceFirstNull(list, element) { var index = B.JSArray_methods.indexOf$1(list, null); if (index < 0) throw A.wrapException(A.ArgumentError$(A.S(list) + " contains no null elements.", null)); list[index] = element; }, replaceWithNull(list, element) { var index = B.JSArray_methods.indexOf$1(list, element); if (index < 0) throw A.wrapException(A.ArgumentError$(A.S(list) + " contains no elements matching " + element.toString$0(0) + ".", null)); list[index] = null; }, countCodeUnits(string, codeUnit) { var t1, t2, count, t3; for (t1 = new A.CodeUnits(string), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1, count = 0; t1.moveNext$0();) { t3 = t1.__internal$_current; if ((t3 == null ? t2._as(t3) : t3) === codeUnit) ++count; } return count; }, findLineStart(context, text, column) { var beginningOfLine, index, lineStart; if (text.length === 0) for (beginningOfLine = 0; true;) { index = B.JSString_methods.indexOf$2(context, "\n", beginningOfLine); if (index === -1) return context.length - beginningOfLine >= column ? beginningOfLine : null; if (index - beginningOfLine >= column) return beginningOfLine; beginningOfLine = index + 1; } index = B.JSString_methods.indexOf$1(context, text); for (; index !== -1;) { lineStart = index === 0 ? 0 : B.JSString_methods.lastIndexOf$2(context, "\n", index - 1) + 1; if (column === index - lineStart) return lineStart; index = B.JSString_methods.indexOf$2(context, text, index + 1); } return null; }, validateErrorArgs(string, match, position, $length) { var t2, t1 = position != null; if (t1) if (position < 0) throw A.wrapException(A.RangeError$("position must be greater than or equal to 0.")); else if (position > string.length) throw A.wrapException(A.RangeError$("position must be less than or equal to the string length.")); t2 = $length != null; if (t2 && $length < 0) throw A.wrapException(A.RangeError$("length must be greater than or equal to 0.")); if (t1 && t2 && position + $length > string.length) throw A.wrapException(A.RangeError$("position plus length must not go beyond the end of the string.")); }, CharacterExtension_get_isAlphabetic0(_this) { var t1; if (!(_this >= 97 && _this <= 122)) t1 = _this >= 65 && _this <= 90; else t1 = true; return t1; }, CharacterExtension_get_isHex0(_this) { var t1; if (!(_this >= 48 && _this <= 57)) if (!(_this >= 97 && _this <= 102)) t1 = _this >= 65 && _this <= 70; else t1 = true; else t1 = true; return t1; }, asHex0(character) { var t1; $label0$0: { if (character <= 57) { t1 = character - 48; break $label0$0; } if (character <= 70) { t1 = 10 + character - 65; break $label0$0; } t1 = 10 + character - 97; break $label0$0; } return t1; }, hexCharFor0(number) { return number < 10 ? 48 + number : 87 + number; }, opposite0(character) { var t1; $label0$0: { if (40 === character) { t1 = 41; break $label0$0; } if (123 === character) { t1 = 125; break $label0$0; } if (91 === character) { t1 = 93; break $label0$0; } t1 = A.throwExpression(A.ArgumentError$('"' + A.String_String$fromCharCode(character) + "\" isn't a brace-like character.", null)); } return t1; }, characterEqualsIgnoreCase0(character1, character2) { var upperCase1; if (character1 === character2) return true; if ((character1 ^ character2) >>> 0 !== 32) return false; upperCase1 = (character1 & 4294967263) >>> 0; return upperCase1 >= 65 && upperCase1 <= 90; }, EvaluationContext_current0() { var context, t1, _0_0 = $.Zone__current.$index(0, B.Symbol__evaluationContext); if (type$.EvaluationContext_2._is(_0_0)) { context = _0_0; t1 = true; } else { context = null; t1 = false; } if (t1) return context; else throw A.wrapException(A.StateError$(string$.No_Sass)); }, IterableExtension_search0(_this, callback) { var t1, _0_0, value, t2; for (t1 = J.get$iterator$ax(_this); t1.moveNext$0();) { _0_0 = callback.call$1(t1.get$current(t1)); if (_0_0 != null) { value = _0_0; t2 = true; } else { value = null; t2 = false; } if (t2) return value; } return null; }, IterableExtension_get_exceptLast0(_this) { var t1 = J.getInterceptor$asx(_this), size = t1.get$length(_this) - 1; if (size < 0) throw A.wrapException(A.StateError$("Iterable may not be empty")); return t1.take$1(_this, size); }, NullableExtension_andThen0(_this, fn) { return _this == null ? null : fn.call$1(_this); }, fuzzyEquals0(number1, number2) { var t1; if (number1 === number2) return true; if (Math.abs(number1 - number2) <= $.$get$_epsilon0()) { t1 = $.$get$_inverseEpsilon0(); t1 = B.JSNumber_methods.round$0(number1 * t1) === B.JSNumber_methods.round$0(number2 * t1); } else t1 = false; return t1; }, fuzzyHashCode0(number) { if (!isFinite(number)) return B.JSNumber_methods.get$hashCode(number); return B.JSInt_methods.get$hashCode(B.JSNumber_methods.round$0(number * $.$get$_inverseEpsilon0())); }, fuzzyLessThan0(number1, number2) { return number1 < number2 && !A.fuzzyEquals0(number1, number2); }, fuzzyLessThanOrEquals0(number1, number2) { return number1 < number2 || A.fuzzyEquals0(number1, number2); }, fuzzyGreaterThan0(number1, number2) { return number1 > number2 && !A.fuzzyEquals0(number1, number2); }, fuzzyGreaterThanOrEquals0(number1, number2) { return number1 > number2 || A.fuzzyEquals0(number1, number2); }, fuzzyIsInt(number) { if (number == 1 / 0 || number == -1 / 0 || isNaN(number)) return false; return A.fuzzyEquals0(number, B.JSNumber_methods.round$0(number)); }, fuzzyAsInt0(number) { var rounded; if (number == 1 / 0 || number == -1 / 0 || isNaN(number)) return null; rounded = B.JSNumber_methods.round$0(number); return A.fuzzyEquals0(number, rounded) ? rounded : null; }, fuzzyRound0(number) { var t1; if (number > 0) { t1 = B.JSNumber_methods.$mod(number, 1); return t1 < 0.5 && !A.fuzzyEquals0(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number); } else { t1 = B.JSNumber_methods.$mod(number, 1); return t1 < 0.5 || A.fuzzyEquals0(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number); } }, fuzzyCheckRange0(number, min, max) { if (A.fuzzyEquals0(number, min)) return min; if (A.fuzzyEquals0(number, max)) return max; if (number > min && number < max) return number; return null; }, fuzzyAssertRange0(number, min, max, $name) { var result = A.fuzzyCheckRange0(number, min, max); if (result != null) return result; throw A.wrapException(A.RangeError$range(number, min, max, $name, "must be between " + min + " and " + max)); }, moduloLikeSass0(num1, num2) { var result; if (num1 == 1 / 0 || num1 == -1 / 0) return 0 / 0; if (num2 == 1 / 0 || num2 == -1 / 0) return A.DoubleWithSignedZero_get_signIncludingZero0(num1) === J.get$sign$in(num2) ? num1 : 0 / 0; if (num2 > 0) return B.JSNumber_methods.$mod(num1, num2); if (num2 === 0) return 0 / 0; result = B.JSNumber_methods.$mod(num1, num2); return result === 0 ? 0 : result + num2; }, sqrt0(number) { number.assertNoUnits$1("number"); return A.SassNumber_SassNumber0(Math.sqrt(number._number1$_value), null); }, sin0(number) { return A.SassNumber_SassNumber0(Math.sin(number.coerceValueToUnit$2("rad", "number")), null); }, cos0(number) { return A.SassNumber_SassNumber0(Math.cos(number.coerceValueToUnit$2("rad", "number")), null); }, tan0(number) { return A.SassNumber_SassNumber0(Math.tan(number.coerceValueToUnit$2("rad", "number")), null); }, atan0(number) { number.assertNoUnits$1("number"); return A.SassNumber_SassNumber$withUnits0(Math.atan(number._number1$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String)); }, asin0(number) { number.assertNoUnits$1("number"); return A.SassNumber_SassNumber$withUnits0(Math.asin(number._number1$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String)); }, acos0(number) { number.assertNoUnits$1("number"); return A.SassNumber_SassNumber$withUnits0(Math.acos(number._number1$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String)); }, log0(number, base) { if (base != null) return A.SassNumber_SassNumber0(Math.log(number._number1$_value) / Math.log(base._number1$_value), null); return A.SassNumber_SassNumber0(Math.log(number._number1$_value), null); }, pow1(base, exponent) { base.assertNoUnits$1("base"); exponent.assertNoUnits$1("exponent"); return A.SassNumber_SassNumber0(Math.pow(base._number1$_value, exponent._number1$_value), null); }, DoubleWithSignedZero_get_signIncludingZero0(_this) { if (_this === -0.0) return -1; if (_this === 0) return 1; return J.get$sign$in(_this); }, main1(args) { return A.main$body(args); }, main$body(args) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$returnValue, $async$handler = 2, $async$currentError, options, graph, error, error0, stackTrace, buffer, rest, t1, t2, t3, exception, $async$exception, $async$temp1; var $async$main1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start if (args.length >= 1) if ("--embedded" === args[0]) { rest = B.JSArray_methods.sublist$1(args, 1); t1 = true; } else { rest = null; t1 = false; } else { rest = null; t1 = false; } if (t1) { A.main0(rest); // goto return $async$goto = 1; break; } options = null; $async$handler = 4; options = A.ExecutableOptions_ExecutableOptions$parse(args); t1 = options._options; $._glyphs = !(t1.wasParsed$1("unicode") ? A._asBool(t1.$index(0, "unicode")) : $._glyphs !== B.C_AsciiGlyphSet) ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet; $async$goto = A._asBool(options._options.$index(0, "version")) ? 7 : 8; break; case 7: // then $async$temp1 = A; $async$goto = 9; return A._asyncAwait(A._loadVersion(), $async$main1); case 9: // returning from await. $async$temp1.print($async$result); t1 = A.isNodeJs() ? self.process : null; if (t1 != null) J.set$exitCode$x(t1, 0); // goto return $async$goto = 1; break; case 8: // join $async$goto = options.get$interactive() ? 10 : 11; break; case 10: // then $async$goto = 12; return A._asyncAwait(A.repl(options), $async$main1); case 12: // returning from await. // goto return $async$goto = 1; break; case 11: // join t1 = type$.List_String._as(options._options.$index(0, "load-path")); t2 = options; t2 = A._asBool(t2._options.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(t2.get$color()); t3 = type$.Uri; graph = new A.StylesheetGraph(A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.StylesheetNode), A.ImportCache$(t1, new A.DeprecationHandlingLogger(A.LinkedHashMap_LinkedHashMap$_empty(type$.Deprecation, type$.int), t2, options.get$fatalDeprecations(), options.get$futureDeprecations(), false)), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.DateTime)); $async$goto = A._asBool(options._options.$index(0, "watch")) ? 13 : 14; break; case 13: // then $async$goto = 15; return A._asyncAwait(A.watch(options, graph), $async$main1); case 15: // returning from await. // goto return $async$goto = 1; break; case 14: // join t1 = options; t2 = options; t2._ensureSources$0(); t2 = t2._sourcesToDestinations; t2.toString; $async$goto = 16; return A._asyncAwait(A.compileStylesheets(t1, graph, t2, A._asBool(options._options.$index(0, "update"))), $async$main1); case 16: // returning from await. $async$handler = 2; // goto after finally $async$goto = 6; break; case 4: // catch $async$handler = 3; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (t1 instanceof A.UsageException) { error = t1; A.print(error.message + "\n"); A.print("Usage: sass [output.css]\n sass : : \n"); t1 = $.$get$ExecutableOptions__parser(); A.print(new A._Usage(t1._optionsAndSeparators, new A.StringBuffer(""), t1.usageLineLength).generate$0()); t1 = A.isNodeJs() ? self.process : null; if (t1 != null) J.set$exitCode$x(t1, 64); } else { error0 = t1; stackTrace = A.getTraceFromException($async$exception); buffer = new A.StringBuffer(""); t1 = options; t1 = t1 == null ? null : t1.get$color(); if (t1 === true) buffer._contents += "\x1b[31m\x1b[1m"; buffer._contents += "Unexpected exception:"; t1 = options; t1 = t1 == null ? null : t1.get$color(); if (t1 === true) buffer._contents += "\x1b[0m"; buffer._contents += "\n"; buffer._contents += A.S(error0) + "\n"; buffer._contents += "\n"; buffer._contents += "\n"; t1 = A.getTrace(error0); buffer._contents += B.JSString_methods.trimRight$0(A.Trace_Trace$from(t1 == null ? stackTrace : t1).get$terse().toString$0(0)); A.printError(buffer); t1 = A.isNodeJs() ? self.process : null; if (t1 != null) J.set$exitCode$x(t1, 255); } // goto after finally $async$goto = 6; break; case 3: // uncaught // goto rethrow $async$goto = 2; break; case 6: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$main1, $async$completer); }, _loadVersion() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.String), $async$returnValue; var $async$_loadVersion = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$returnValue = "1.69.5 compiled with dart2js 3.1.5"; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_loadVersion, $async$completer); }, SpanExtensions_trimLeft0(_this) { var t5, t1 = _this._file$_start, t2 = _this._end, t3 = _this.file._decodedChars, t4 = t3.length, start = 0; while (true) { t5 = A.String_String$fromCharCodes(new Uint32Array(t3.subarray(t1, A._checkValidRange(t1, t2, t4))), 0, null).charCodeAt(start); if (!(t5 === 32 || t5 === 9 || t5 === 10 || t5 === 13 || t5 === 12)) break; ++start; } return A.FileSpanExtension_subspan(_this, start, null); }, SpanExtensions_trimRight0(_this) { var t1, end = _this.get$text().length - 1; while (true) { t1 = _this.get$text().charCodeAt(end); if (!(t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12)) break; --end; } return A.FileSpanExtension_subspan(_this, 0, end + 1); }, validateUrlScheme(scheme) { var t1 = $.$get$_urlSchemeRegExp(); if (!t1._nativeRegExp.test(scheme)) A.jsThrow(new self.Error('"' + scheme + '" isn\'t a valid URL scheme (for example "file").')); }, unwrapValue(object) { var value; if (object != null) { if (object instanceof A.Value0) return object; value = object.dartValue; if (value != null && value instanceof A.Value0) return value; if (object instanceof self.Error) throw A.wrapException(object); } throw A.wrapException(A.S(object) + " must be a Sass value type."); }, wrapValue(value) { var t1; $label0$0: { if (value instanceof A.SassColor0) { t1 = A.callConstructor($.$get$legacyColorClass(), [null, null, null, null, value]); break $label0$0; } if (value instanceof A.SassList0) { t1 = A.callConstructor($.$get$legacyListClass(), [null, null, value]); break $label0$0; } if (value instanceof A.SassMap0) { t1 = A.callConstructor($.$get$legacyMapClass(), [null, value]); break $label0$0; } if (value instanceof A.SassNumber0) { t1 = A.callConstructor($.$get$legacyNumberClass(), [null, null, value]); break $label0$0; } if (value instanceof A.SassString0) { t1 = A.callConstructor($.$get$legacyStringClass(), [null, value]); break $label0$0; } t1 = value; break $label0$0; } return t1; } }, J = { makeDispatchRecord(interceptor, proto, extension, indexability) { return {i: interceptor, p: proto, e: extension, x: indexability}; }, getNativeInterceptor(object) { var proto, objectProto, $constructor, interceptor, t1, record = object[init.dispatchPropertyName]; if (record == null) if ($.initNativeDispatchFlag == null) { A.initNativeDispatch(); record = object[init.dispatchPropertyName]; } if (record != null) { proto = record.p; if (false === proto) return record.i; if (true === proto) return object; objectProto = Object.getPrototypeOf(object); if (proto === objectProto) return record.i; if (record.e === objectProto) throw A.wrapException(A.UnimplementedError$("Return interceptor for " + A.S(proto(object, record)))); } $constructor = object.constructor; if ($constructor == null) interceptor = null; else { t1 = $._JS_INTEROP_INTERCEPTOR_TAG; if (t1 == null) t1 = $._JS_INTEROP_INTERCEPTOR_TAG = init.getIsolateTag("_$dart_js"); interceptor = $constructor[t1]; } if (interceptor != null) return interceptor; interceptor = A.lookupAndCacheInterceptor(object); if (interceptor != null) return interceptor; if (typeof object == "function") return B.JavaScriptFunction_methods; proto = Object.getPrototypeOf(object); if (proto == null) return B.PlainJavaScriptObject_methods; if (proto === Object.prototype) return B.PlainJavaScriptObject_methods; if (typeof $constructor == "function") { t1 = $._JS_INTEROP_INTERCEPTOR_TAG; if (t1 == null) t1 = $._JS_INTEROP_INTERCEPTOR_TAG = init.getIsolateTag("_$dart_js"); Object.defineProperty($constructor, t1, {value: B.UnknownJavaScriptObject_methods, enumerable: false, writable: true, configurable: true}); return B.UnknownJavaScriptObject_methods; } return B.UnknownJavaScriptObject_methods; }, JSArray_JSArray$fixed($length, $E) { if ($length < 0 || $length > 4294967295) throw A.wrapException(A.RangeError$range($length, 0, 4294967295, "length", null)); return J.JSArray_JSArray$markFixed(new Array($length), $E); }, JSArray_JSArray$allocateFixed($length, $E) { if ($length > 4294967295) throw A.wrapException(A.RangeError$range($length, 0, 4294967295, "length", null)); return J.JSArray_JSArray$markFixed(new Array($length), $E); }, JSArray_JSArray$growable($length, $E) { if ($length < 0) throw A.wrapException(A.ArgumentError$("Length must be a non-negative integer: " + $length, null)); return A._setArrayType(new Array($length), $E._eval$1("JSArray<0>")); }, JSArray_JSArray$allocateGrowable($length, $E) { if ($length < 0) throw A.wrapException(A.ArgumentError$("Length must be a non-negative integer: " + $length, null)); return A._setArrayType(new Array($length), $E._eval$1("JSArray<0>")); }, JSArray_JSArray$markFixed(allocation, $E) { return J.JSArray_markFixedList(A._setArrayType(allocation, $E._eval$1("JSArray<0>"))); }, JSArray_markFixedList(list) { list.fixed$length = Array; return list; }, JSArray_markUnmodifiableList(list) { list.fixed$length = Array; list.immutable$list = Array; return list; }, JSArray__compareAny(a, b) { return J.compareTo$1$ns(a, b); }, JSString__isWhitespace(codeUnit) { if (codeUnit < 256) switch (codeUnit) { case 9: case 10: case 11: case 12: case 13: case 32: case 133: case 160: return true; default: return false; } switch (codeUnit) { case 5760: case 8192: case 8193: case 8194: case 8195: case 8196: case 8197: case 8198: case 8199: case 8200: case 8201: case 8202: case 8232: case 8233: case 8239: case 8287: case 12288: case 65279: return true; default: return false; } }, JSString__skipLeadingWhitespace(string, index) { var t1, codeUnit; for (t1 = string.length; index < t1;) { codeUnit = string.charCodeAt(index); if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit)) break; ++index; } return index; }, JSString__skipTrailingWhitespace(string, index) { var index0, codeUnit; for (; index > 0; index = index0) { index0 = index - 1; codeUnit = string.charCodeAt(index0); if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit)) break; } return index; }, getInterceptor$(receiver) { if (typeof receiver == "number") { if (Math.floor(receiver) == receiver) return J.JSInt.prototype; return J.JSNumNotInt.prototype; } if (typeof receiver == "string") return J.JSString.prototype; if (receiver == null) return J.JSNull.prototype; if (typeof receiver == "boolean") return J.JSBool.prototype; if (Array.isArray(receiver)) return J.JSArray.prototype; if (typeof receiver != "object") { if (typeof receiver == "function") return J.JavaScriptFunction.prototype; return receiver; } if (receiver instanceof A.Object) return receiver; return J.getNativeInterceptor(receiver); }, getInterceptor$ansx(receiver) { if (typeof receiver == "number") return J.JSNumber.prototype; if (typeof receiver == "string") return J.JSString.prototype; if (receiver == null) return receiver; if (Array.isArray(receiver)) return J.JSArray.prototype; if (typeof receiver != "object") { if (typeof receiver == "function") return J.JavaScriptFunction.prototype; return receiver; } if (receiver instanceof A.Object) return receiver; return J.getNativeInterceptor(receiver); }, getInterceptor$asx(receiver) { if (typeof receiver == "string") return J.JSString.prototype; if (receiver == null) return receiver; if (Array.isArray(receiver)) return J.JSArray.prototype; if (typeof receiver != "object") { if (typeof receiver == "function") return J.JavaScriptFunction.prototype; return receiver; } if (receiver instanceof A.Object) return receiver; return J.getNativeInterceptor(receiver); }, getInterceptor$ax(receiver) { if (receiver == null) return receiver; if (Array.isArray(receiver)) return J.JSArray.prototype; if (typeof receiver != "object") { if (typeof receiver == "function") return J.JavaScriptFunction.prototype; return receiver; } if (receiver instanceof A.Object) return receiver; return J.getNativeInterceptor(receiver); }, getInterceptor$in(receiver) { if (typeof receiver == "number") { if (Math.floor(receiver) == receiver) return J.JSInt.prototype; return J.JSNumNotInt.prototype; } if (receiver == null) return receiver; if (!(receiver instanceof A.Object)) return J.UnknownJavaScriptObject.prototype; return receiver; }, getInterceptor$n(receiver) { if (typeof receiver == "number") return J.JSNumber.prototype; if (receiver == null) return receiver; if (!(receiver instanceof A.Object)) return J.UnknownJavaScriptObject.prototype; return receiver; }, getInterceptor$ns(receiver) { if (typeof receiver == "number") return J.JSNumber.prototype; if (typeof receiver == "string") return J.JSString.prototype; if (receiver == null) return receiver; if (!(receiver instanceof A.Object)) return J.UnknownJavaScriptObject.prototype; return receiver; }, getInterceptor$s(receiver) { if (typeof receiver == "string") return J.JSString.prototype; if (receiver == null) return receiver; if (!(receiver instanceof A.Object)) return J.UnknownJavaScriptObject.prototype; return receiver; }, getInterceptor$x(receiver) { if (receiver == null) return receiver; if (typeof receiver != "object") { if (typeof receiver == "function") return J.JavaScriptFunction.prototype; return receiver; } if (receiver instanceof A.Object) return receiver; return J.getNativeInterceptor(receiver); }, getInterceptor$z(receiver) { if (receiver == null) return receiver; if (!(receiver instanceof A.Object)) return J.UnknownJavaScriptObject.prototype; return receiver; }, set$CalculationInterpolation$x(receiver, value) { return J.getInterceptor$x(receiver).set$CalculationInterpolation(receiver, value); }, set$CalculationOperation$x(receiver, value) { return J.getInterceptor$x(receiver).set$CalculationOperation(receiver, value); }, set$Exception$x(receiver, value) { return J.getInterceptor$x(receiver).set$Exception(receiver, value); }, set$FALSE$x(receiver, value) { return J.getInterceptor$x(receiver).set$FALSE(receiver, value); }, set$Logger$x(receiver, value) { return J.getInterceptor$x(receiver).set$Logger(receiver, value); }, set$NULL$x(receiver, value) { return J.getInterceptor$x(receiver).set$NULL(receiver, value); }, set$SassArgumentList$x(receiver, value) { return J.getInterceptor$x(receiver).set$SassArgumentList(receiver, value); }, set$SassBoolean$x(receiver, value) { return J.getInterceptor$x(receiver).set$SassBoolean(receiver, value); }, set$SassCalculation$x(receiver, value) { return J.getInterceptor$x(receiver).set$SassCalculation(receiver, value); }, set$SassColor$x(receiver, value) { return J.getInterceptor$x(receiver).set$SassColor(receiver, value); }, set$SassFunction$x(receiver, value) { return J.getInterceptor$x(receiver).set$SassFunction(receiver, value); }, set$SassList$x(receiver, value) { return J.getInterceptor$x(receiver).set$SassList(receiver, value); }, set$SassMap$x(receiver, value) { return J.getInterceptor$x(receiver).set$SassMap(receiver, value); }, set$SassMixin$x(receiver, value) { return J.getInterceptor$x(receiver).set$SassMixin(receiver, value); }, set$SassNumber$x(receiver, value) { return J.getInterceptor$x(receiver).set$SassNumber(receiver, value); }, set$SassString$x(receiver, value) { return J.getInterceptor$x(receiver).set$SassString(receiver, value); }, set$TRUE$x(receiver, value) { return J.getInterceptor$x(receiver).set$TRUE(receiver, value); }, set$Value$x(receiver, value) { return J.getInterceptor$x(receiver).set$Value(receiver, value); }, set$cli_pkg_main_0_$x(receiver, value) { return J.getInterceptor$x(receiver).set$cli_pkg_main_0_(receiver, value); }, set$compile$x(receiver, value) { return J.getInterceptor$x(receiver).set$compile(receiver, value); }, set$compileAsync$x(receiver, value) { return J.getInterceptor$x(receiver).set$compileAsync(receiver, value); }, set$compileString$x(receiver, value) { return J.getInterceptor$x(receiver).set$compileString(receiver, value); }, set$compileStringAsync$x(receiver, value) { return J.getInterceptor$x(receiver).set$compileStringAsync(receiver, value); }, set$context$x(receiver, value) { return J.getInterceptor$x(receiver).set$context(receiver, value); }, set$dartValue$x(receiver, value) { return J.getInterceptor$x(receiver).set$dartValue(receiver, value); }, set$exitCode$x(receiver, value) { return J.getInterceptor$x(receiver).set$exitCode(receiver, value); }, set$info$x(receiver, value) { return J.getInterceptor$x(receiver).set$info(receiver, value); }, set$length$asx(receiver, value) { return J.getInterceptor$asx(receiver).set$length(receiver, value); }, set$render$x(receiver, value) { return J.getInterceptor$x(receiver).set$render(receiver, value); }, set$renderSync$x(receiver, value) { return J.getInterceptor$x(receiver).set$renderSync(receiver, value); }, set$sassFalse$x(receiver, value) { return J.getInterceptor$x(receiver).set$sassFalse(receiver, value); }, set$sassNull$x(receiver, value) { return J.getInterceptor$x(receiver).set$sassNull(receiver, value); }, set$sassTrue$x(receiver, value) { return J.getInterceptor$x(receiver).set$sassTrue(receiver, value); }, set$types$x(receiver, value) { return J.getInterceptor$x(receiver).set$types(receiver, value); }, get$$prototype$x(receiver) { return J.getInterceptor$x(receiver).get$$prototype(receiver); }, get$_dartException$x(receiver) { return J.getInterceptor$x(receiver).get$_dartException(receiver); }, get$alertAscii$x(receiver) { return J.getInterceptor$x(receiver).get$alertAscii(receiver); }, get$alertColor$x(receiver) { return J.getInterceptor$x(receiver).get$alertColor(receiver); }, get$blue$x(receiver) { return J.getInterceptor$x(receiver).get$blue(receiver); }, get$brackets$x(receiver) { return J.getInterceptor$x(receiver).get$brackets(receiver); }, get$charset$x(receiver) { return J.getInterceptor$x(receiver).get$charset(receiver); }, get$code$x(receiver) { return J.getInterceptor$x(receiver).get$code(receiver); }, get$current$x(receiver) { return J.getInterceptor$x(receiver).get$current(receiver); }, get$dartValue$x(receiver) { return J.getInterceptor$x(receiver).get$dartValue(receiver); }, get$debug$x(receiver) { return J.getInterceptor$x(receiver).get$debug(receiver); }, get$denominatorUnits$x(receiver) { return J.getInterceptor$x(receiver).get$denominatorUnits(receiver); }, get$end$z(receiver) { return J.getInterceptor$z(receiver).get$end(receiver); }, get$env$x(receiver) { return J.getInterceptor$x(receiver).get$env(receiver); }, get$exitCode$x(receiver) { return J.getInterceptor$x(receiver).get$exitCode(receiver); }, get$fiber$x(receiver) { return J.getInterceptor$x(receiver).get$fiber(receiver); }, get$file$x(receiver) { return J.getInterceptor$x(receiver).get$file(receiver); }, get$first$ax(receiver) { return J.getInterceptor$ax(receiver).get$first(receiver); }, get$functions$x(receiver) { return J.getInterceptor$x(receiver).get$functions(receiver); }, get$green$x(receiver) { return J.getInterceptor$x(receiver).get$green(receiver); }, get$hashCode$(receiver) { return J.getInterceptor$(receiver).get$hashCode(receiver); }, get$importer$x(receiver) { return J.getInterceptor$x(receiver).get$importer(receiver); }, get$importers$x(receiver) { return J.getInterceptor$x(receiver).get$importers(receiver); }, get$isEmpty$asx(receiver) { return J.getInterceptor$asx(receiver).get$isEmpty(receiver); }, get$isNotEmpty$asx(receiver) { return J.getInterceptor$asx(receiver).get$isNotEmpty(receiver); }, get$isTTY$x(receiver) { return J.getInterceptor$x(receiver).get$isTTY(receiver); }, get$iterator$ax(receiver) { return J.getInterceptor$ax(receiver).get$iterator(receiver); }, get$keys$z(receiver) { return J.getInterceptor$z(receiver).get$keys(receiver); }, get$last$ax(receiver) { return J.getInterceptor$ax(receiver).get$last(receiver); }, get$length$asx(receiver) { return J.getInterceptor$asx(receiver).get$length(receiver); }, get$loadPaths$x(receiver) { return J.getInterceptor$x(receiver).get$loadPaths(receiver); }, get$logger$x(receiver) { return J.getInterceptor$x(receiver).get$logger(receiver); }, get$message$x(receiver) { return J.getInterceptor$x(receiver).get$message(receiver); }, get$mtime$x(receiver) { return J.getInterceptor$x(receiver).get$mtime(receiver); }, get$name$x(receiver) { return J.getInterceptor$x(receiver).get$name(receiver); }, get$numeratorUnits$x(receiver) { return J.getInterceptor$x(receiver).get$numeratorUnits(receiver); }, get$options$x(receiver) { return J.getInterceptor$x(receiver).get$options(receiver); }, get$parent$z(receiver) { return J.getInterceptor$z(receiver).get$parent(receiver); }, get$path$x(receiver) { return J.getInterceptor$x(receiver).get$path(receiver); }, get$platform$x(receiver) { return J.getInterceptor$x(receiver).get$platform(receiver); }, get$quietDeps$x(receiver) { return J.getInterceptor$x(receiver).get$quietDeps(receiver); }, get$quotes$x(receiver) { return J.getInterceptor$x(receiver).get$quotes(receiver); }, get$red$x(receiver) { return J.getInterceptor$x(receiver).get$red(receiver); }, get$release$x(receiver) { return J.getInterceptor$x(receiver).get$release(receiver); }, get$reversed$ax(receiver) { return J.getInterceptor$ax(receiver).get$reversed(receiver); }, get$runtimeType$(receiver) { return J.getInterceptor$(receiver).get$runtimeType(receiver); }, get$separator$x(receiver) { return J.getInterceptor$x(receiver).get$separator(receiver); }, get$sign$in(receiver) { if (typeof receiver === "number") return receiver > 0 ? 1 : receiver < 0 ? -1 : receiver; return J.getInterceptor$in(receiver).get$sign(receiver); }, get$single$ax(receiver) { return J.getInterceptor$ax(receiver).get$single(receiver); }, get$sourceMap$x(receiver) { return J.getInterceptor$x(receiver).get$sourceMap(receiver); }, get$sourceMapIncludeSources$x(receiver) { return J.getInterceptor$x(receiver).get$sourceMapIncludeSources(receiver); }, get$span$z(receiver) { return J.getInterceptor$z(receiver).get$span(receiver); }, get$stderr$x(receiver) { return J.getInterceptor$x(receiver).get$stderr(receiver); }, get$stdout$x(receiver) { return J.getInterceptor$x(receiver).get$stdout(receiver); }, get$style$x(receiver) { return J.getInterceptor$x(receiver).get$style(receiver); }, get$syntax$x(receiver) { return J.getInterceptor$x(receiver).get$syntax(receiver); }, get$trace$z(receiver) { return J.getInterceptor$z(receiver).get$trace(receiver); }, get$url$x(receiver) { return J.getInterceptor$x(receiver).get$url(receiver); }, get$verbose$x(receiver) { return J.getInterceptor$x(receiver).get$verbose(receiver); }, get$warn$x(receiver) { return J.getInterceptor$x(receiver).get$warn(receiver); }, $add$ansx(receiver, a0) { if (typeof receiver == "number" && typeof a0 == "number") return receiver + a0; return J.getInterceptor$ansx(receiver).$add(receiver, a0); }, $eq$(receiver, a0) { if (receiver == null) return a0 == null; if (typeof receiver != "object") return a0 != null && receiver === a0; return J.getInterceptor$(receiver).$eq(receiver, a0); }, $index$asx(receiver, a0) { if (typeof a0 === "number") if (Array.isArray(receiver) || typeof receiver == "string" || A.isJsIndexable(receiver, receiver[init.dispatchPropertyName])) if (a0 >>> 0 === a0 && a0 < receiver.length) return receiver[a0]; return J.getInterceptor$asx(receiver).$index(receiver, a0); }, $indexSet$ax(receiver, a0, a1) { if (typeof a0 === "number") if ((Array.isArray(receiver) || A.isJsIndexable(receiver, receiver[init.dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < receiver.length) return receiver[a0] = a1; return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1); }, $set$2$x(receiver, a0, a1) { return J.getInterceptor$x(receiver).$set$2(receiver, a0, a1); }, add$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).add$1(receiver, a0); }, addAll$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).addAll$1(receiver, a0); }, allMatches$1$s(receiver, a0) { return J.getInterceptor$s(receiver).allMatches$1(receiver, a0); }, allMatches$2$s(receiver, a0, a1) { return J.getInterceptor$s(receiver).allMatches$2(receiver, a0, a1); }, any$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).any$1(receiver, a0); }, apply$2$x(receiver, a0, a1) { return J.getInterceptor$x(receiver).apply$2(receiver, a0, a1); }, asImmutable$0$x(receiver) { return J.getInterceptor$x(receiver).asImmutable$0(receiver); }, asMutable$0$x(receiver) { return J.getInterceptor$x(receiver).asMutable$0(receiver); }, canonicalize$4$baseImporter$baseUrl$forImport$x(receiver, a0, a1, a2, a3) { return J.getInterceptor$x(receiver).canonicalize$4$baseImporter$baseUrl$forImport(receiver, a0, a1, a2, a3); }, cast$1$0$ax(receiver, $T1) { return J.getInterceptor$ax(receiver).cast$1$0(receiver, $T1); }, close$0$x(receiver) { return J.getInterceptor$x(receiver).close$0(receiver); }, codeUnitAt$1$s(receiver, a0) { return J.getInterceptor$s(receiver).codeUnitAt$1(receiver, a0); }, compareTo$1$ns(receiver, a0) { return J.getInterceptor$ns(receiver).compareTo$1(receiver, a0); }, contains$1$asx(receiver, a0) { return J.getInterceptor$asx(receiver).contains$1(receiver, a0); }, createInterface$1$x(receiver, a0) { return J.getInterceptor$x(receiver).createInterface$1(receiver, a0); }, elementAt$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0); }, endsWith$1$s(receiver, a0) { return J.getInterceptor$s(receiver).endsWith$1(receiver, a0); }, error$1$x(receiver, a0) { return J.getInterceptor$x(receiver).error$1(receiver, a0); }, every$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).every$1(receiver, a0); }, existsSync$1$x(receiver, a0) { return J.getInterceptor$x(receiver).existsSync$1(receiver, a0); }, expand$1$1$ax(receiver, a0, $T1) { return J.getInterceptor$ax(receiver).expand$1$1(receiver, a0, $T1); }, fillRange$3$ax(receiver, a0, a1, a2) { return J.getInterceptor$ax(receiver).fillRange$3(receiver, a0, a1, a2); }, fold$2$ax(receiver, a0, a1) { return J.getInterceptor$ax(receiver).fold$2(receiver, a0, a1); }, forEach$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).forEach$1(receiver, a0); }, getRange$2$ax(receiver, a0, a1) { return J.getInterceptor$ax(receiver).getRange$2(receiver, a0, a1); }, getTime$0$x(receiver) { return J.getInterceptor$x(receiver).getTime$0(receiver); }, isDirectory$0$x(receiver) { return J.getInterceptor$x(receiver).isDirectory$0(receiver); }, isFile$0$x(receiver) { return J.getInterceptor$x(receiver).isFile$0(receiver); }, join$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).join$1(receiver, a0); }, listen$1$z(receiver, a0) { return J.getInterceptor$z(receiver).listen$1(receiver, a0); }, log$1$x(receiver, a0) { return J.getInterceptor$x(receiver).log$1(receiver, a0); }, map$1$1$ax(receiver, a0, $T1) { return J.getInterceptor$ax(receiver).map$1$1(receiver, a0, $T1); }, matchAsPrefix$2$s(receiver, a0, a1) { return J.getInterceptor$s(receiver).matchAsPrefix$2(receiver, a0, a1); }, mkdirSync$1$x(receiver, a0) { return J.getInterceptor$x(receiver).mkdirSync$1(receiver, a0); }, noSuchMethod$1$(receiver, a0) { return J.getInterceptor$(receiver).noSuchMethod$1(receiver, a0); }, on$2$x(receiver, a0, a1) { return J.getInterceptor$x(receiver).on$2(receiver, a0, a1); }, readFileSync$2$x(receiver, a0, a1) { return J.getInterceptor$x(receiver).readFileSync$2(receiver, a0, a1); }, readdirSync$1$x(receiver, a0) { return J.getInterceptor$x(receiver).readdirSync$1(receiver, a0); }, remove$1$z(receiver, a0) { return J.getInterceptor$z(receiver).remove$1(receiver, a0); }, removeRange$2$ax(receiver, a0, a1) { return J.getInterceptor$ax(receiver).removeRange$2(receiver, a0, a1); }, run$0$x(receiver) { return J.getInterceptor$x(receiver).run$0(receiver); }, run$1$x(receiver, a0) { return J.getInterceptor$x(receiver).run$1(receiver, a0); }, setRange$4$ax(receiver, a0, a1, a2, a3) { return J.getInterceptor$ax(receiver).setRange$4(receiver, a0, a1, a2, a3); }, skip$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).skip$1(receiver, a0); }, sort$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).sort$1(receiver, a0); }, startsWith$1$s(receiver, a0) { return J.getInterceptor$s(receiver).startsWith$1(receiver, a0); }, statSync$1$x(receiver, a0) { return J.getInterceptor$x(receiver).statSync$1(receiver, a0); }, sublist$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).sublist$1(receiver, a0); }, substring$1$s(receiver, a0) { return J.getInterceptor$s(receiver).substring$1(receiver, a0); }, substring$2$s(receiver, a0, a1) { return J.getInterceptor$s(receiver).substring$2(receiver, a0, a1); }, take$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).take$1(receiver, a0); }, then$1$1$x(receiver, a0, $T1) { return J.getInterceptor$x(receiver).then$1$1(receiver, a0, $T1); }, then$1$2$onError$x(receiver, a0, a1, $T1) { return J.getInterceptor$x(receiver).then$1$2$onError(receiver, a0, a1, $T1); }, then$2$x(receiver, a0, a1) { return J.getInterceptor$x(receiver).then$2(receiver, a0, a1); }, toArray$0$x(receiver) { return J.getInterceptor$x(receiver).toArray$0(receiver); }, toList$0$ax(receiver) { return J.getInterceptor$ax(receiver).toList$0(receiver); }, toList$1$growable$ax(receiver, a0) { return J.getInterceptor$ax(receiver).toList$1$growable(receiver, a0); }, toRadixString$1$n(receiver, a0) { return J.getInterceptor$n(receiver).toRadixString$1(receiver, a0); }, toSet$0$ax(receiver) { return J.getInterceptor$ax(receiver).toSet$0(receiver); }, toString$0$(receiver) { return J.getInterceptor$(receiver).toString$0(receiver); }, toString$1$color$(receiver, a0) { return J.getInterceptor$(receiver).toString$1$color(receiver, a0); }, trim$0$s(receiver) { return J.getInterceptor$s(receiver).trim$0(receiver); }, unlinkSync$1$x(receiver, a0) { return J.getInterceptor$x(receiver).unlinkSync$1(receiver, a0); }, watch$2$x(receiver, a0, a1) { return J.getInterceptor$x(receiver).watch$2(receiver, a0, a1); }, where$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).where$1(receiver, a0); }, write$1$x(receiver, a0) { return J.getInterceptor$x(receiver).write$1(receiver, a0); }, writeFileSync$2$x(receiver, a0, a1) { return J.getInterceptor$x(receiver).writeFileSync$2(receiver, a0, a1); }, yield$0$x(receiver) { return J.getInterceptor$x(receiver).yield$0(receiver); }, Interceptor: function Interceptor() { }, JSBool: function JSBool() { }, JSNull: function JSNull() { }, JavaScriptObject: function JavaScriptObject() { }, LegacyJavaScriptObject: function LegacyJavaScriptObject() { }, PlainJavaScriptObject: function PlainJavaScriptObject() { }, UnknownJavaScriptObject: function UnknownJavaScriptObject() { }, JavaScriptFunction: function JavaScriptFunction() { }, JSArray: function JSArray(t0) { this.$ti = t0; }, JSUnmodifiableArray: function JSUnmodifiableArray(t0) { this.$ti = t0; }, ArrayIterator: function ArrayIterator(t0, t1) { var _ = this; _._iterable = t0; _._length = t1; _._index = 0; _._current = null; }, JSNumber: function JSNumber() { }, JSInt: function JSInt() { }, JSNumNotInt: function JSNumNotInt() { }, JSString: function JSString() { } }, B = {}; var holders = [A, J, B]; var $ = {}; A.JS_CONST.prototype = {}; J.Interceptor.prototype = { $eq(receiver, other) { return receiver === other; }, get$hashCode(receiver) { return A.Primitives_objectHashCode(receiver); }, toString$0(receiver) { return "Instance of '" + A.Primitives_objectTypeName(receiver) + "'"; }, noSuchMethod$1(receiver, invocation) { throw A.wrapException(A.NoSuchMethodError_NoSuchMethodError$withInvocation(receiver, invocation)); }, get$runtimeType(receiver) { return A.createRuntimeType(A._instanceTypeFromConstructor(this)); } }; J.JSBool.prototype = { toString$0(receiver) { return String(receiver); }, get$hashCode(receiver) { return receiver ? 519018 : 218159; }, get$runtimeType(receiver) { return A.createRuntimeType(type$.bool); }, $isTrustedGetRuntimeType: 1, $isbool: 1 }; J.JSNull.prototype = { $eq(receiver, other) { return null == other; }, toString$0(receiver) { return "null"; }, get$hashCode(receiver) { return 0; }, get$runtimeType(receiver) { return A.createRuntimeType(type$.Null); }, $isTrustedGetRuntimeType: 1, $isNull: 1 }; J.JavaScriptObject.prototype = {}; J.LegacyJavaScriptObject.prototype = { get$hashCode(receiver) { return 0; }, toString$0(receiver) { return String(receiver); }, $isPromise: 1, $isJsSystemError: 1, $isImmutableList: 1, $is_Channels: 1, $is_NodeSassColor: 1, $isCompileOptions: 1, $isCompileStringOptions: 1, $isNodeCompileResult: 1, $is_NodeException: 1, $isFiber: 1, $isJSFunction0: 1, $isImmutableList0: 1, $isImmutableMap0: 1, $isJSImporter: 1, $isJSImporterResult: 1, $isNodeImporterResult0: 1, $is_ConstructorOptions: 1, $is_NodeSassList: 1, $isWarnOptions: 1, $isDebugOptions: 1, $is_NodeSassMap: 1, $is_ConstructorOptions0: 1, $is_NodeSassNumber: 1, $isJSClass0: 1, $isRenderContextOptions0: 1, $isRenderOptions: 1, $isRenderResult: 1, $is_ConstructorOptions1: 1, $is_NodeSassString: 1, $isJSUrl0: 1, get$isTTY(obj) { return obj.isTTY; }, get$write(obj) { return obj.write; }, write$1(receiver, p0) { return receiver.write(p0); }, createInterface$1(receiver, p0) { return receiver.createInterface(p0); }, on$2(receiver, p0, p1) { return receiver.on(p0, p1); }, get$close(obj) { return obj.close; }, close$0(receiver) { return receiver.close(); }, setPrompt$1(receiver, p0) { return receiver.setPrompt(p0); }, get$length(obj) { return obj.length; }, toString$0(receiver) { return receiver.toString(); }, get$debug(obj) { return obj.debug; }, debug$2(receiver, p0, p1) { return receiver.debug(p0, p1); }, get$error(obj) { return obj.error; }, error$1(receiver, p0) { return receiver.error(p0); }, error$2(receiver, p0, p1) { return receiver.error(p0, p1); }, log$1(receiver, p0) { return receiver.log(p0); }, get$warn(obj) { return obj.warn; }, warn$1(receiver, p0) { return receiver.warn(p0); }, warn$2(receiver, p0, p1) { return receiver.warn(p0, p1); }, existsSync$1(receiver, p0) { return receiver.existsSync(p0); }, mkdirSync$1(receiver, p0) { return receiver.mkdirSync(p0); }, readdirSync$1(receiver, p0) { return receiver.readdirSync(p0); }, readFileSync$2(receiver, p0, p1) { return receiver.readFileSync(p0, p1); }, statSync$1(receiver, p0) { return receiver.statSync(p0); }, unlinkSync$1(receiver, p0) { return receiver.unlinkSync(p0); }, watch$2(receiver, p0, p1) { return receiver.watch(p0, p1); }, writeFileSync$2(receiver, p0, p1) { return receiver.writeFileSync(p0, p1); }, get$path(obj) { return obj.path; }, isDirectory$0(receiver) { return receiver.isDirectory(); }, isFile$0(receiver) { return receiver.isFile(); }, get$mtime(obj) { return obj.mtime; }, then$1$1(receiver, p0) { return receiver.then(p0); }, then$2(receiver, p0, p1) { return receiver.then(p0, p1); }, getTime$0(receiver) { return receiver.getTime(); }, get$message(obj) { return obj.message; }, message$1(receiver, p0) { return receiver.message(p0); }, get$code(obj) { return obj.code; }, get$syscall(obj) { return obj.syscall; }, get$env(obj) { return obj.env; }, get$exitCode(obj) { return obj.exitCode; }, set$exitCode(obj, v) { return obj.exitCode = v; }, get$platform(obj) { return obj.platform; }, get$release(obj) { return obj.release; }, get$stderr(obj) { return obj.stderr; }, get$stdin(obj) { return obj.stdin; }, get$stdout(obj) { return obj.stdout; }, get$name(obj) { return obj.name; }, push$1(receiver, p0) { return receiver.push(p0); }, call$0(receiver) { return receiver.call(); }, call$1(receiver, p0) { return receiver.call(p0); }, call$2(receiver, p0, p1) { return receiver.call(p0, p1); }, call$3$1(receiver, p0) { return receiver.call(p0); }, call$2$1(receiver, p0) { return receiver.call(p0); }, call$1$1(receiver, p0) { return receiver.call(p0); }, call$3(receiver, p0, p1, p2) { return receiver.call(p0, p1, p2); }, call$3$3(receiver, p0, p1, p2) { return receiver.call(p0, p1, p2); }, call$2$2(receiver, p0, p1) { return receiver.call(p0, p1); }, call$2$0(receiver) { return receiver.call(); }, call$1$0(receiver) { return receiver.call(); }, call$1$2(receiver, p0, p1) { return receiver.call(p0, p1); }, call$2$3(receiver, p0, p1, p2) { return receiver.call(p0, p1, p2); }, apply$2(receiver, p0, p1) { return receiver.apply(p0, p1); }, toArray$0(receiver) { return receiver.toArray(); }, asMutable$0(receiver) { return receiver.asMutable(); }, asImmutable$0(receiver) { return receiver.asImmutable(); }, $set$2(receiver, p0, p1) { return receiver.set(p0, p1); }, forEach$1(receiver, p0) { return receiver.forEach(p0); }, get$file(obj) { return obj.file; }, get$contents(obj) { return obj.contents; }, get$options(obj) { return obj.options; }, get$data(obj) { return obj.data; }, get$includePaths(obj) { return obj.includePaths; }, get$style(obj) { return obj.style; }, get$indentType(obj) { return obj.indentType; }, get$indentWidth(obj) { return obj.indentWidth; }, get$linefeed(obj) { return obj.linefeed; }, set$context(obj, v) { return obj.context = v; }, get$$prototype(obj) { return obj.prototype; }, get$red(obj) { return obj.red; }, get$green(obj) { return obj.green; }, get$blue(obj) { return obj.blue; }, get$hue(obj) { return obj.hue; }, get$saturation(obj) { return obj.saturation; }, get$lightness(obj) { return obj.lightness; }, get$whiteness(obj) { return obj.whiteness; }, get$blackness(obj) { return obj.blackness; }, get$alpha(obj) { return obj.alpha; }, get$dartValue(obj) { return obj.dartValue; }, set$dartValue(obj, v) { return obj.dartValue = v; }, get$alertAscii(obj) { return obj.alertAscii; }, get$alertColor(obj) { return obj.alertColor; }, get$loadPaths(obj) { return obj.loadPaths; }, get$quietDeps(obj) { return obj.quietDeps; }, get$verbose(obj) { return obj.verbose; }, get$charset(obj) { return obj.charset; }, get$sourceMap(obj) { return obj.sourceMap; }, get$sourceMapIncludeSources(obj) { return obj.sourceMapIncludeSources; }, get$logger(obj) { return obj.logger; }, get$importers(obj) { return obj.importers; }, get$functions(obj) { return obj.functions; }, get$syntax(obj) { return obj.syntax; }, get$url(obj) { return obj.url; }, get$importer(obj) { return obj.importer; }, get$_dartException(obj) { return obj._dartException; }, set$renderSync(obj, v) { return obj.renderSync = v; }, set$compileString(obj, v) { return obj.compileString = v; }, set$compileStringAsync(obj, v) { return obj.compileStringAsync = v; }, set$compile(obj, v) { return obj.compile = v; }, set$compileAsync(obj, v) { return obj.compileAsync = v; }, set$info(obj, v) { return obj.info = v; }, set$Exception(obj, v) { return obj.Exception = v; }, set$Logger(obj, v) { return obj.Logger = v; }, set$Value(obj, v) { return obj.Value = v; }, set$SassArgumentList(obj, v) { return obj.SassArgumentList = v; }, set$SassCalculation(obj, v) { return obj.SassCalculation = v; }, set$CalculationOperation(obj, v) { return obj.CalculationOperation = v; }, set$CalculationInterpolation(obj, v) { return obj.CalculationInterpolation = v; }, set$SassBoolean(obj, v) { return obj.SassBoolean = v; }, set$SassColor(obj, v) { return obj.SassColor = v; }, set$SassFunction(obj, v) { return obj.SassFunction = v; }, set$SassMixin(obj, v) { return obj.SassMixin = v; }, set$SassList(obj, v) { return obj.SassList = v; }, set$SassMap(obj, v) { return obj.SassMap = v; }, set$SassNumber(obj, v) { return obj.SassNumber = v; }, set$SassString(obj, v) { return obj.SassString = v; }, set$sassNull(obj, v) { return obj.sassNull = v; }, set$sassTrue(obj, v) { return obj.sassTrue = v; }, set$sassFalse(obj, v) { return obj.sassFalse = v; }, set$render(obj, v) { return obj.render = v; }, set$types(obj, v) { return obj.types = v; }, set$NULL(obj, v) { return obj.NULL = v; }, set$TRUE(obj, v) { return obj.TRUE = v; }, set$FALSE(obj, v) { return obj.FALSE = v; }, get$current(obj) { return obj.current; }, yield$0(receiver) { return receiver.yield(); }, run$1$1(receiver, p0) { return receiver.run(p0); }, run$1(receiver, p0) { return receiver.run(p0); }, run$0(receiver) { return receiver.run(); }, get$canonicalize(obj) { return obj.canonicalize; }, canonicalize$1(receiver, p0) { return receiver.canonicalize(p0); }, get$load(obj) { return obj.load; }, load$1(receiver, p0) { return receiver.load(p0); }, get$findFileUrl(obj) { return obj.findFileUrl; }, get$nonCanonicalScheme(obj) { return obj.nonCanonicalScheme; }, get$sourceMapUrl(obj) { return obj.sourceMapUrl; }, get$separator(obj) { return obj.separator; }, get$brackets(obj) { return obj.brackets; }, get$numeratorUnits(obj) { return obj.numeratorUnits; }, get$denominatorUnits(obj) { return obj.denominatorUnits; }, get$indentedSyntax(obj) { return obj.indentedSyntax; }, get$omitSourceMapUrl(obj) { return obj.omitSourceMapUrl; }, get$outFile(obj) { return obj.outFile; }, get$outputStyle(obj) { return obj.outputStyle; }, get$fiber(obj) { return obj.fiber; }, get$sourceMapContents(obj) { return obj.sourceMapContents; }, get$sourceMapEmbed(obj) { return obj.sourceMapEmbed; }, get$sourceMapRoot(obj) { return obj.sourceMapRoot; }, set$cli_pkg_main_0_(obj, v) { return obj.cli_pkg_main_0_ = v; }, get$quotes(obj) { return obj.quotes; } }; J.PlainJavaScriptObject.prototype = {}; J.UnknownJavaScriptObject.prototype = {}; J.JavaScriptFunction.prototype = { toString$0(receiver) { var dartClosure = receiver[$.$get$DART_CLOSURE_PROPERTY_NAME()]; if (dartClosure == null) return this.super$LegacyJavaScriptObject$toString(receiver); return "JavaScript function for " + A.S(J.toString$0$(dartClosure)); }, $isFunction: 1 }; J.JSArray.prototype = { cast$1$0(receiver, $R) { return new A.CastList(receiver, A._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>")); }, add$1(receiver, value) { if (!!receiver.fixed$length) A.throwExpression(A.UnsupportedError$("add")); receiver.push(value); }, removeAt$1(receiver, index) { var t1; if (!!receiver.fixed$length) A.throwExpression(A.UnsupportedError$("removeAt")); t1 = receiver.length; if (index >= t1) throw A.wrapException(A.RangeError$value(index, null, null)); return receiver.splice(index, 1)[0]; }, insert$2(receiver, index, value) { var t1; if (!!receiver.fixed$length) A.throwExpression(A.UnsupportedError$("insert")); t1 = receiver.length; if (index > t1) throw A.wrapException(A.RangeError$value(index, null, null)); receiver.splice(index, 0, value); }, insertAll$2(receiver, index, iterable) { var insertionLength, end; if (!!receiver.fixed$length) A.throwExpression(A.UnsupportedError$("insertAll")); A.RangeError_checkValueInInterval(index, 0, receiver.length, "index"); if (!type$.EfficientLengthIterable_dynamic._is(iterable)) iterable = J.toList$0$ax(iterable); insertionLength = J.get$length$asx(iterable); receiver.length = receiver.length + insertionLength; end = index + insertionLength; this.setRange$4(receiver, end, receiver.length, receiver, index); this.setRange$3(receiver, index, end, iterable); }, removeLast$0(receiver) { if (!!receiver.fixed$length) A.throwExpression(A.UnsupportedError$("removeLast")); if (receiver.length === 0) throw A.wrapException(A.diagnoseIndexError(receiver, -1)); return receiver.pop(); }, _removeWhere$2(receiver, test, removeMatching) { var i, element, t1, retained = [], end = receiver.length; for (i = 0; i < end; ++i) { element = receiver[i]; if (!test.call$1(element)) retained.push(element); if (receiver.length !== end) throw A.wrapException(A.ConcurrentModificationError$(receiver)); } t1 = retained.length; if (t1 === end) return; this.set$length(receiver, t1); for (i = 0; i < retained.length; ++i) receiver[i] = retained[i]; }, where$1(receiver, f) { return new A.WhereIterable(receiver, f, A._arrayInstanceType(receiver)._eval$1("WhereIterable<1>")); }, expand$1$1(receiver, f, $T) { return new A.ExpandIterable(receiver, f, A._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("ExpandIterable<1,2>")); }, addAll$1(receiver, collection) { var t1; if (!!receiver.fixed$length) A.throwExpression(A.UnsupportedError$("addAll")); if (Array.isArray(collection)) { this._addAllFromArray$1(receiver, collection); return; } for (t1 = J.get$iterator$ax(collection); t1.moveNext$0();) receiver.push(t1.get$current(t1)); }, _addAllFromArray$1(receiver, array) { var i, len = array.length; if (len === 0) return; if (receiver === array) throw A.wrapException(A.ConcurrentModificationError$(receiver)); for (i = 0; i < len; ++i) receiver.push(array[i]); }, clear$0(receiver) { if (!!receiver.fixed$length) A.throwExpression(A.UnsupportedError$("clear")); receiver.length = 0; }, map$1$1(receiver, f, $T) { return new A.MappedListIterable(receiver, f, A._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("MappedListIterable<1,2>")); }, join$1(receiver, separator) { var i, list = A.List_List$filled(receiver.length, "", false, type$.String); for (i = 0; i < receiver.length; ++i) list[i] = A.S(receiver[i]); return list.join(separator); }, join$0($receiver) { return this.join$1($receiver, ""); }, take$1(receiver, n) { return A.SubListIterable$(receiver, 0, A.checkNotNullable(n, "count", type$.int), A._arrayInstanceType(receiver)._precomputed1); }, skip$1(receiver, n) { return A.SubListIterable$(receiver, n, null, A._arrayInstanceType(receiver)._precomputed1); }, fold$1$2(receiver, initialValue, combine) { var value, i, $length = receiver.length; for (value = initialValue, i = 0; i < $length; ++i) { value = combine.call$2(value, receiver[i]); if (receiver.length !== $length) throw A.wrapException(A.ConcurrentModificationError$(receiver)); } return value; }, fold$2($receiver, initialValue, combine) { return this.fold$1$2($receiver, initialValue, combine, type$.dynamic); }, elementAt$1(receiver, index) { return receiver[index]; }, sublist$2(receiver, start, end) { var end0 = receiver.length; if (start > end0) throw A.wrapException(A.RangeError$range(start, 0, end0, "start", null)); if (end == null) end = end0; else if (end < start || end > end0) throw A.wrapException(A.RangeError$range(end, start, end0, "end", null)); if (start === end) return A._setArrayType([], A._arrayInstanceType(receiver)); return A._setArrayType(receiver.slice(start, end), A._arrayInstanceType(receiver)); }, sublist$1($receiver, start) { return this.sublist$2($receiver, start, null); }, getRange$2(receiver, start, end) { A.RangeError_checkValidRange(start, end, receiver.length); return A.SubListIterable$(receiver, start, end, A._arrayInstanceType(receiver)._precomputed1); }, get$first(receiver) { if (receiver.length > 0) return receiver[0]; throw A.wrapException(A.IterableElementError_noElement()); }, get$last(receiver) { var t1 = receiver.length; if (t1 > 0) return receiver[t1 - 1]; throw A.wrapException(A.IterableElementError_noElement()); }, get$single(receiver) { var t1 = receiver.length; if (t1 === 1) return receiver[0]; if (t1 === 0) throw A.wrapException(A.IterableElementError_noElement()); throw A.wrapException(A.IterableElementError_tooMany()); }, removeRange$2(receiver, start, end) { if (!!receiver.fixed$length) A.throwExpression(A.UnsupportedError$("removeRange")); A.RangeError_checkValidRange(start, end, receiver.length); receiver.splice(start, end - start); }, setRange$4(receiver, start, end, iterable, skipCount) { var $length, otherList, otherStart, t1, i; if (!!receiver.immutable$list) A.throwExpression(A.UnsupportedError$("setRange")); A.RangeError_checkValidRange(start, end, receiver.length); $length = end - start; if ($length === 0) return; A.RangeError_checkNotNegative(skipCount, "skipCount"); if (type$.List_dynamic._is(iterable)) { otherList = iterable; otherStart = skipCount; } else { otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false); otherStart = 0; } t1 = J.getInterceptor$asx(otherList); if (otherStart + $length > t1.get$length(otherList)) throw A.wrapException(A.IterableElementError_tooFew()); if (otherStart < start) for (i = $length - 1; i >= 0; --i) receiver[start + i] = t1.$index(otherList, otherStart + i); else for (i = 0; i < $length; ++i) receiver[start + i] = t1.$index(otherList, otherStart + i); }, setRange$3($receiver, start, end, iterable) { return this.setRange$4($receiver, start, end, iterable, 0); }, fillRange$3(receiver, start, end, fillValue) { var i; if (!!receiver.immutable$list) A.throwExpression(A.UnsupportedError$("fill range")); A.RangeError_checkValidRange(start, end, receiver.length); A._arrayInstanceType(receiver)._precomputed1._as(fillValue); for (i = start; i < end; ++i) receiver[i] = fillValue; }, any$1(receiver, test) { var i, end = receiver.length; for (i = 0; i < end; ++i) { if (test.call$1(receiver[i])) return true; if (receiver.length !== end) throw A.wrapException(A.ConcurrentModificationError$(receiver)); } return false; }, every$1(receiver, test) { var i, end = receiver.length; for (i = 0; i < end; ++i) { if (!test.call$1(receiver[i])) return false; if (receiver.length !== end) throw A.wrapException(A.ConcurrentModificationError$(receiver)); } return true; }, get$reversed(receiver) { return new A.ReversedListIterable(receiver, A._arrayInstanceType(receiver)._eval$1("ReversedListIterable<1>")); }, sort$1(receiver, compare) { if (!!receiver.immutable$list) A.throwExpression(A.UnsupportedError$("sort")); A.Sort_sort(receiver, compare == null ? J._interceptors_JSArray__compareAny$closure() : compare); }, sort$0($receiver) { return this.sort$1($receiver, null); }, indexOf$1(receiver, element) { var i, $length = receiver.length; if (0 >= $length) return -1; for (i = 0; i < $length; ++i) if (J.$eq$(receiver[i], element)) return i; return -1; }, contains$1(receiver, other) { var i; for (i = 0; i < receiver.length; ++i) if (J.$eq$(receiver[i], other)) return true; return false; }, get$isEmpty(receiver) { return receiver.length === 0; }, get$isNotEmpty(receiver) { return receiver.length !== 0; }, toString$0(receiver) { return A.Iterable_iterableToFullString(receiver, "[", "]"); }, toList$1$growable(receiver, growable) { var t1 = A._setArrayType(receiver.slice(0), A._arrayInstanceType(receiver)); return t1; }, toList$0($receiver) { return this.toList$1$growable($receiver, true); }, toSet$0(receiver) { return A.LinkedHashSet_LinkedHashSet$from(receiver, A._arrayInstanceType(receiver)._precomputed1); }, get$iterator(receiver) { return new J.ArrayIterator(receiver, receiver.length); }, get$hashCode(receiver) { return A.Primitives_objectHashCode(receiver); }, get$length(receiver) { return receiver.length; }, set$length(receiver, newLength) { if (!!receiver.fixed$length) A.throwExpression(A.UnsupportedError$("set length")); if (newLength < 0) throw A.wrapException(A.RangeError$range(newLength, 0, null, "newLength", null)); if (newLength > receiver.length) A._arrayInstanceType(receiver)._precomputed1._as(null); receiver.length = newLength; }, $index(receiver, index) { if (!(index >= 0 && index < receiver.length)) throw A.wrapException(A.diagnoseIndexError(receiver, index)); return receiver[index]; }, $indexSet(receiver, index, value) { if (!!receiver.immutable$list) A.throwExpression(A.UnsupportedError$("indexed set")); if (!(index >= 0 && index < receiver.length)) throw A.wrapException(A.diagnoseIndexError(receiver, index)); receiver[index] = value; }, $add(receiver, other) { var t1 = A.List_List$of(receiver, true, A._arrayInstanceType(receiver)._precomputed1); this.addAll$1(t1, other); return t1; }, indexWhere$1(receiver, test) { var i; if (0 >= receiver.length) return -1; for (i = 0; i < receiver.length; ++i) if (test.call$1(receiver[i])) return i; return -1; }, $isEfficientLengthIterable: 1, $isIterable: 1, $isList: 1 }; J.JSUnmodifiableArray.prototype = {}; J.ArrayIterator.prototype = { get$current(_) { var t1 = this._current; return t1 == null ? A._instanceType(this)._precomputed1._as(t1) : t1; }, moveNext$0() { var t2, _this = this, t1 = _this._iterable, $length = t1.length; if (_this._length !== $length) throw A.wrapException(A.throwConcurrentModificationError(t1)); t2 = _this._index; if (t2 >= $length) { _this._current = null; return false; } _this._current = t1[t2]; _this._index = t2 + 1; return true; } }; J.JSNumber.prototype = { compareTo$1(receiver, b) { var bIsNegative; if (receiver < b) return -1; else if (receiver > b) return 1; else if (receiver === b) { if (receiver === 0) { bIsNegative = this.get$isNegative(b); if (this.get$isNegative(receiver) === bIsNegative) return 0; if (this.get$isNegative(receiver)) return -1; return 1; } return 0; } else if (isNaN(receiver)) { if (isNaN(b)) return 0; return 1; } else return -1; }, get$isNegative(receiver) { return receiver === 0 ? 1 / receiver < 0 : receiver < 0; }, get$sign(receiver) { var t1; if (receiver > 0) t1 = 1; else t1 = receiver < 0 ? -1 : receiver; return t1; }, ceil$0(receiver) { var truncated, d; if (receiver >= 0) { if (receiver <= 2147483647) { truncated = receiver | 0; return receiver === truncated ? truncated : truncated + 1; } } else if (receiver >= -2147483648) return receiver | 0; d = Math.ceil(receiver); if (isFinite(d)) return d; throw A.wrapException(A.UnsupportedError$("" + receiver + ".ceil()")); }, floor$0(receiver) { var truncated, d; if (receiver >= 0) { if (receiver <= 2147483647) return receiver | 0; } else if (receiver >= -2147483648) { truncated = receiver | 0; return receiver === truncated ? truncated : truncated - 1; } d = Math.floor(receiver); if (isFinite(d)) return d; throw A.wrapException(A.UnsupportedError$("" + receiver + ".floor()")); }, round$0(receiver) { if (receiver > 0) { if (receiver !== 1 / 0) return Math.round(receiver); } else if (receiver > -1 / 0) return 0 - Math.round(0 - receiver); throw A.wrapException(A.UnsupportedError$("" + receiver + ".round()")); }, clamp$2(receiver, lowerLimit, upperLimit) { if (B.JSInt_methods.compareTo$1(lowerLimit, upperLimit) > 0) throw A.wrapException(A.argumentErrorValue(lowerLimit)); if (this.compareTo$1(receiver, lowerLimit) < 0) return lowerLimit; if (this.compareTo$1(receiver, upperLimit) > 0) return upperLimit; return receiver; }, toRadixString$1(receiver, radix) { var result, match, exponent, t1; if (radix < 2 || radix > 36) throw A.wrapException(A.RangeError$range(radix, 2, 36, "radix", null)); result = receiver.toString(radix); if (result.charCodeAt(result.length - 1) !== 41) return result; match = /^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(result); if (match == null) A.throwExpression(A.UnsupportedError$("Unexpected toString result: " + result)); result = match[1]; exponent = +match[3]; t1 = match[2]; if (t1 != null) { result += t1; exponent -= t1.length; } return result + B.JSString_methods.$mul("0", exponent); }, toString$0(receiver) { if (receiver === 0 && 1 / receiver < 0) return "-0.0"; else return "" + receiver; }, get$hashCode(receiver) { var absolute, floorLog2, factor, scaled, intValue = receiver | 0; if (receiver === intValue) return intValue & 536870911; absolute = Math.abs(receiver); floorLog2 = Math.log(absolute) / 0.6931471805599453 | 0; factor = Math.pow(2, floorLog2); scaled = absolute < 1 ? absolute / factor : factor / absolute; return ((scaled * 9007199254740992 | 0) + (scaled * 3542243181176521 | 0)) * 599197 + floorLog2 * 1259 & 536870911; }, $mod(receiver, other) { var result = receiver % other; if (result === 0) return 0; if (result > 0) return result; if (other < 0) return result - other; else return result + other; }, $tdiv(receiver, other) { if ((receiver | 0) === receiver) if (other >= 1 || other < -1) return receiver / other | 0; return this._tdivSlow$1(receiver, other); }, _tdivFast$1(receiver, other) { return (receiver | 0) === receiver ? receiver / other | 0 : this._tdivSlow$1(receiver, other); }, _tdivSlow$1(receiver, other) { var quotient = receiver / other; if (quotient >= -2147483648 && quotient <= 2147483647) return quotient | 0; if (quotient > 0) { if (quotient !== 1 / 0) return Math.floor(quotient); } else if (quotient > -1 / 0) return Math.ceil(quotient); throw A.wrapException(A.UnsupportedError$("Result of truncating division is " + A.S(quotient) + ": " + A.S(receiver) + " ~/ " + other)); }, _shrOtherPositive$1(receiver, other) { var t1; if (receiver > 0) t1 = this._shrBothPositive$1(receiver, other); else { t1 = other > 31 ? 31 : other; t1 = receiver >> t1 >>> 0; } return t1; }, _shrReceiverPositive$1(receiver, other) { if (0 > other) throw A.wrapException(A.argumentErrorValue(other)); return this._shrBothPositive$1(receiver, other); }, _shrBothPositive$1(receiver, other) { return other > 31 ? 0 : receiver >>> other; }, get$runtimeType(receiver) { return A.createRuntimeType(type$.num); }, $isComparable: 1, $isdouble: 1, $isnum: 1 }; J.JSInt.prototype = { get$sign(receiver) { var t1; if (receiver > 0) t1 = 1; else t1 = receiver < 0 ? -1 : receiver; return t1; }, get$runtimeType(receiver) { return A.createRuntimeType(type$.int); }, $isTrustedGetRuntimeType: 1, $isint: 1 }; J.JSNumNotInt.prototype = { get$runtimeType(receiver) { return A.createRuntimeType(type$.double); }, $isTrustedGetRuntimeType: 1 }; J.JSString.prototype = { codeUnitAt$1(receiver, index) { if (index < 0) throw A.wrapException(A.diagnoseIndexError(receiver, index)); if (index >= receiver.length) A.throwExpression(A.diagnoseIndexError(receiver, index)); return receiver.charCodeAt(index); }, allMatches$2(receiver, string, start) { var t1 = string.length; if (start > t1) throw A.wrapException(A.RangeError$range(start, 0, t1, null, null)); return new A._StringAllMatchesIterable(string, receiver, start); }, allMatches$1($receiver, string) { return this.allMatches$2($receiver, string, 0); }, matchAsPrefix$2(receiver, string, start) { var t1, i, _null = null; if (start < 0 || start > string.length) throw A.wrapException(A.RangeError$range(start, 0, string.length, _null, _null)); t1 = receiver.length; if (start + t1 > string.length) return _null; for (i = 0; i < t1; ++i) if (string.charCodeAt(start + i) !== receiver.charCodeAt(i)) return _null; return new A.StringMatch(start, receiver); }, $add(receiver, other) { return receiver + other; }, endsWith$1(receiver, other) { var otherLength = other.length, t1 = receiver.length; if (otherLength > t1) return false; return other === this.substring$1(receiver, t1 - otherLength); }, replaceFirst$2(receiver, from, to) { A.RangeError_checkValueInInterval(0, 0, receiver.length, "startIndex"); return A.stringReplaceFirstUnchecked(receiver, from, to, 0); }, split$1(receiver, pattern) { if (typeof pattern == "string") return A._setArrayType(receiver.split(pattern), type$.JSArray_String); else if (pattern instanceof A.JSSyntaxRegExp && pattern.get$_nativeAnchoredVersion().exec("").length - 2 === 0) return A._setArrayType(receiver.split(pattern._nativeRegExp), type$.JSArray_String); else return this._defaultSplit$1(receiver, pattern); }, replaceRange$3(receiver, start, end, replacement) { var e = A.RangeError_checkValidRange(start, end, receiver.length); return A.stringReplaceRangeUnchecked(receiver, start, e, replacement); }, _defaultSplit$1(receiver, pattern) { var t1, start, $length, match, matchStart, matchEnd, result = A._setArrayType([], type$.JSArray_String); for (t1 = J.allMatches$1$s(pattern, receiver), t1 = t1.get$iterator(t1), start = 0, $length = 1; t1.moveNext$0();) { match = t1.get$current(t1); matchStart = match.get$start(match); matchEnd = match.get$end(match); $length = matchEnd - matchStart; if ($length === 0 && start === matchStart) continue; result.push(this.substring$2(receiver, start, matchStart)); start = matchEnd; } if (start < receiver.length || $length > 0) result.push(this.substring$1(receiver, start)); return result; }, startsWith$2(receiver, pattern, index) { var endIndex; if (index < 0 || index > receiver.length) throw A.wrapException(A.RangeError$range(index, 0, receiver.length, null, null)); if (typeof pattern == "string") { endIndex = index + pattern.length; if (endIndex > receiver.length) return false; return pattern === receiver.substring(index, endIndex); } return J.matchAsPrefix$2$s(pattern, receiver, index) != null; }, startsWith$1($receiver, pattern) { return this.startsWith$2($receiver, pattern, 0); }, substring$2(receiver, start, end) { return receiver.substring(start, A.RangeError_checkValidRange(start, end, receiver.length)); }, substring$1($receiver, start) { return this.substring$2($receiver, start, null); }, trim$0(receiver) { var startIndex, t1, endIndex0, result = receiver.trim(), endIndex = result.length; if (endIndex === 0) return result; if (result.charCodeAt(0) === 133) { startIndex = J.JSString__skipLeadingWhitespace(result, 1); if (startIndex === endIndex) return ""; } else startIndex = 0; t1 = endIndex - 1; endIndex0 = result.charCodeAt(t1) === 133 ? J.JSString__skipTrailingWhitespace(result, t1) : endIndex; if (startIndex === 0 && endIndex0 === endIndex) return result; return result.substring(startIndex, endIndex0); }, trimLeft$0(receiver) { var result, startIndex; if (typeof receiver.trimLeft != "undefined") { result = receiver.trimLeft(); if (result.length === 0) return result; startIndex = result.charCodeAt(0) === 133 ? J.JSString__skipLeadingWhitespace(result, 1) : 0; } else { startIndex = J.JSString__skipLeadingWhitespace(receiver, 0); result = receiver; } if (startIndex === 0) return result; if (startIndex === result.length) return ""; return result.substring(startIndex); }, trimRight$0(receiver) { var result, endIndex, t1; if (typeof receiver.trimRight != "undefined") { result = receiver.trimRight(); endIndex = result.length; if (endIndex === 0) return result; t1 = endIndex - 1; if (result.charCodeAt(t1) === 133) endIndex = J.JSString__skipTrailingWhitespace(result, t1); } else { endIndex = J.JSString__skipTrailingWhitespace(receiver, receiver.length); result = receiver; } if (endIndex === result.length) return result; if (endIndex === 0) return ""; return result.substring(0, endIndex); }, $mul(receiver, times) { var s, result; if (0 >= times) return ""; if (times === 1 || receiver.length === 0) return receiver; if (times !== times >>> 0) throw A.wrapException(B.C_OutOfMemoryError); for (s = receiver, result = ""; true;) { if ((times & 1) === 1) result = s + result; times = times >>> 1; if (times === 0) break; s += s; } return result; }, padLeft$2(receiver, width, padding) { var delta = width - receiver.length; if (delta <= 0) return receiver; return this.$mul(padding, delta) + receiver; }, padRight$1(receiver, width) { var delta = width - receiver.length; if (delta <= 0) return receiver; return receiver + this.$mul(" ", delta); }, indexOf$2(receiver, pattern, start) { var t1; if (start < 0 || start > receiver.length) throw A.wrapException(A.RangeError$range(start, 0, receiver.length, null, null)); t1 = receiver.indexOf(pattern, start); return t1; }, indexOf$1($receiver, pattern) { return this.indexOf$2($receiver, pattern, 0); }, lastIndexOf$2(receiver, pattern, start) { var t1, t2, i; if (start == null) start = receiver.length; else if (start < 0 || start > receiver.length) throw A.wrapException(A.RangeError$range(start, 0, receiver.length, null, null)); if (typeof pattern == "string") { t1 = pattern.length; t2 = receiver.length; if (start + t1 > t2) start = t2 - t1; return receiver.lastIndexOf(pattern, start); } for (t1 = J.getInterceptor$s(pattern), i = start; i >= 0; --i) if (t1.matchAsPrefix$2(pattern, receiver, i) != null) return i; return -1; }, lastIndexOf$1($receiver, pattern) { return this.lastIndexOf$2($receiver, pattern, null); }, contains$2(receiver, other, startIndex) { var t1 = receiver.length; if (startIndex > t1) throw A.wrapException(A.RangeError$range(startIndex, 0, t1, null, null)); return A.stringContainsUnchecked(receiver, other, startIndex); }, contains$1($receiver, other) { return this.contains$2($receiver, other, 0); }, compareTo$1(receiver, other) { var t1; if (receiver === other) t1 = 0; else t1 = receiver < other ? -1 : 1; return t1; }, toString$0(receiver) { return receiver; }, get$hashCode(receiver) { var t1, hash, i; for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) { hash = hash + receiver.charCodeAt(i) & 536870911; hash = hash + ((hash & 524287) << 10) & 536870911; hash ^= hash >> 6; } hash = hash + ((hash & 67108863) << 3) & 536870911; hash ^= hash >> 11; return hash + ((hash & 16383) << 15) & 536870911; }, get$runtimeType(receiver) { return A.createRuntimeType(type$.String); }, get$length(receiver) { return receiver.length; }, $isTrustedGetRuntimeType: 1, $isComparable: 1, $isString: 1 }; A._CastIterableBase.prototype = { get$iterator(_) { var t1 = A._instanceType(this); return new A.CastIterator(J.get$iterator$ax(this.get$_source()), t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("CastIterator<1,2>")); }, get$length(_) { return J.get$length$asx(this.get$_source()); }, get$isEmpty(_) { return J.get$isEmpty$asx(this.get$_source()); }, get$isNotEmpty(_) { return J.get$isNotEmpty$asx(this.get$_source()); }, skip$1(_, count) { var t1 = A._instanceType(this); return A.CastIterable_CastIterable(J.skip$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]); }, take$1(_, count) { var t1 = A._instanceType(this); return A.CastIterable_CastIterable(J.take$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]); }, elementAt$1(_, index) { return A._instanceType(this)._rest[1]._as(J.elementAt$1$ax(this.get$_source(), index)); }, get$first(_) { return A._instanceType(this)._rest[1]._as(J.get$first$ax(this.get$_source())); }, get$last(_) { return A._instanceType(this)._rest[1]._as(J.get$last$ax(this.get$_source())); }, get$single(_) { return A._instanceType(this)._rest[1]._as(J.get$single$ax(this.get$_source())); }, contains$1(_, other) { return J.contains$1$asx(this.get$_source(), other); }, toString$0(_) { return J.toString$0$(this.get$_source()); } }; A.CastIterator.prototype = { moveNext$0() { return this._source.moveNext$0(); }, get$current(_) { var t1 = this._source; return this.$ti._rest[1]._as(t1.get$current(t1)); } }; A.CastIterable.prototype = { get$_source() { return this._source; } }; A._EfficientLengthCastIterable.prototype = {$isEfficientLengthIterable: 1}; A._CastListBase.prototype = { $index(_, index) { return this.$ti._rest[1]._as(J.$index$asx(this._source, index)); }, $indexSet(_, index, value) { J.$indexSet$ax(this._source, index, this.$ti._precomputed1._as(value)); }, set$length(_, $length) { J.set$length$asx(this._source, $length); }, add$1(_, value) { J.add$1$ax(this._source, this.$ti._precomputed1._as(value)); }, addAll$1(_, values) { var t1 = this.$ti; J.addAll$1$ax(this._source, A.CastIterable_CastIterable(values, t1._rest[1], t1._precomputed1)); }, sort$1(_, compare) { var t1 = compare == null ? null : new A._CastListBase_sort_closure(this, compare); J.sort$1$ax(this._source, t1); }, getRange$2(_, start, end) { var t1 = this.$ti; return A.CastIterable_CastIterable(J.getRange$2$ax(this._source, start, end), t1._precomputed1, t1._rest[1]); }, setRange$4(_, start, end, iterable, skipCount) { var t1 = this.$ti; J.setRange$4$ax(this._source, start, end, A.CastIterable_CastIterable(iterable, t1._rest[1], t1._precomputed1), skipCount); }, removeRange$2(_, start, end) { J.removeRange$2$ax(this._source, start, end); }, fillRange$3(_, start, end, fillValue) { J.fillRange$3$ax(this._source, start, end, this.$ti._precomputed1._as(fillValue)); }, $isEfficientLengthIterable: 1, $isList: 1 }; A._CastListBase_sort_closure.prototype = { call$2(v1, v2) { var t1 = this.$this.$ti._rest[1]; return this.compare.call$2(t1._as(v1), t1._as(v2)); }, $signature() { return this.$this.$ti._eval$1("int(1,1)"); } }; A.CastList.prototype = { cast$1$0(_, $R) { return new A.CastList(this._source, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>")); }, get$_source() { return this._source; } }; A.CastSet.prototype = { add$1(_, value) { return this._source.add$1(0, this.$ti._precomputed1._as(value)); }, addAll$1(_, elements) { var t1 = this.$ti; this._source.addAll$1(0, A.CastIterable_CastIterable(elements, t1._rest[1], t1._precomputed1)); }, difference$1(other) { var t1, _this = this; if (_this._emptySet != null) return _this._conditionalAdd$2(other, false); t1 = _this.$ti; return new A.CastSet(_this._source.difference$1(other), null, t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("CastSet<1,2>")); }, _conditionalAdd$2(other, otherContains) { var t3, castElement, emptySet = this._emptySet, t1 = this.$ti, t2 = t1._rest[1], result = emptySet == null ? A.LinkedHashSet_LinkedHashSet(t2) : emptySet.call$1$0(t2); for (t2 = this._source, t2 = t2.get$iterator(t2), t3 = other._source, t1 = t1._rest[1]; t2.moveNext$0();) { castElement = t1._as(t2.get$current(t2)); if (otherContains === t3.contains$1(0, castElement)) result.add$1(0, castElement); } return result; }, toSet$0(_) { var emptySet = this._emptySet, t1 = this.$ti._rest[1], result = emptySet == null ? A.LinkedHashSet_LinkedHashSet(t1) : emptySet.call$1$0(t1); result.addAll$1(0, this); return result; }, $isEfficientLengthIterable: 1, $isSet: 1, get$_source() { return this._source; } }; A.CastMap.prototype = { cast$2$0(_, RK, RV) { var t1 = this.$ti; return new A.CastMap(this._source, t1._eval$1("@<1>")._bind$1(t1._rest[1])._bind$1(RK)._bind$1(RV)._eval$1("CastMap<1,2,3,4>")); }, containsKey$1(key) { return this._source.containsKey$1(key); }, $index(_, key) { return this.$ti._eval$1("4?")._as(this._source.$index(0, key)); }, $indexSet(_, key, value) { var t1 = this.$ti; this._source.$indexSet(0, t1._precomputed1._as(key), t1._rest[1]._as(value)); }, addAll$1(_, other) { var t1 = this.$ti; this._source.addAll$1(0, new A.CastMap(other, t1._eval$1("@<3>")._bind$1(t1._rest[3])._bind$1(t1._precomputed1)._bind$1(t1._rest[1])._eval$1("CastMap<1,2,3,4>"))); }, remove$1(_, key) { return this.$ti._eval$1("4?")._as(this._source.remove$1(0, key)); }, forEach$1(_, f) { this._source.forEach$1(0, new A.CastMap_forEach_closure(this, f)); }, get$keys(_) { var t1 = this._source, t2 = this.$ti; return A.CastIterable_CastIterable(t1.get$keys(t1), t2._precomputed1, t2._rest[2]); }, get$values(_) { var t1 = this._source, t2 = this.$ti; return A.CastIterable_CastIterable(t1.get$values(t1), t2._rest[1], t2._rest[3]); }, get$length(_) { var t1 = this._source; return t1.get$length(t1); }, get$isEmpty(_) { var t1 = this._source; return t1.get$isEmpty(t1); }, get$isNotEmpty(_) { var t1 = this._source; return t1.get$isNotEmpty(t1); }, get$entries(_) { var t1 = this._source; return t1.get$entries(t1).map$1$1(0, new A.CastMap_entries_closure(this), this.$ti._eval$1("MapEntry<3,4>")); } }; A.CastMap_forEach_closure.prototype = { call$2(key, value) { var t1 = this.$this.$ti; this.f.call$2(t1._rest[2]._as(key), t1._rest[3]._as(value)); }, $signature() { return this.$this.$ti._eval$1("~(1,2)"); } }; A.CastMap_entries_closure.prototype = { call$1(e) { var t1 = this.$this.$ti, t2 = t1._rest[3]; return new A.MapEntry(t1._rest[2]._as(e.key), t2._as(e.value), t1._eval$1("@<3>")._bind$1(t2)._eval$1("MapEntry<1,2>")); }, $signature() { return this.$this.$ti._eval$1("MapEntry<3,4>(MapEntry<1,2>)"); } }; A.LateError.prototype = { toString$0(_) { return "LateInitializationError: " + this._message; } }; A.CodeUnits.prototype = { get$length(_) { return this._string.length; }, $index(_, i) { return this._string.charCodeAt(i); } }; A.nullFuture_closure.prototype = { call$0() { return A.Future_Future$value(null, type$.Null); }, $signature: 4 }; A.SentinelValue.prototype = {}; A.EfficientLengthIterable.prototype = {}; A.ListIterable.prototype = { get$iterator(_) { return new A.ListIterator(this, this.get$length(this)); }, get$isEmpty(_) { return this.get$length(this) === 0; }, get$first(_) { if (this.get$length(this) === 0) throw A.wrapException(A.IterableElementError_noElement()); return this.elementAt$1(0, 0); }, get$last(_) { var _this = this; if (_this.get$length(_this) === 0) throw A.wrapException(A.IterableElementError_noElement()); return _this.elementAt$1(0, _this.get$length(_this) - 1); }, get$single(_) { var _this = this; if (_this.get$length(_this) === 0) throw A.wrapException(A.IterableElementError_noElement()); if (_this.get$length(_this) > 1) throw A.wrapException(A.IterableElementError_tooMany()); return _this.elementAt$1(0, 0); }, contains$1(_, element) { var i, _this = this, $length = _this.get$length(_this); for (i = 0; i < $length; ++i) { if (J.$eq$(_this.elementAt$1(0, i), element)) return true; if ($length !== _this.get$length(_this)) throw A.wrapException(A.ConcurrentModificationError$(_this)); } return false; }, every$1(_, test) { var i, _this = this, $length = _this.get$length(_this); for (i = 0; i < $length; ++i) { if (!test.call$1(_this.elementAt$1(0, i))) return false; if ($length !== _this.get$length(_this)) throw A.wrapException(A.ConcurrentModificationError$(_this)); } return true; }, any$1(_, test) { var i, _this = this, $length = _this.get$length(_this); for (i = 0; i < $length; ++i) { if (test.call$1(_this.elementAt$1(0, i))) return true; if ($length !== _this.get$length(_this)) throw A.wrapException(A.ConcurrentModificationError$(_this)); } return false; }, join$1(_, separator) { var first, t1, i, _this = this, $length = _this.get$length(_this); if (separator.length !== 0) { if ($length === 0) return ""; first = A.S(_this.elementAt$1(0, 0)); if ($length !== _this.get$length(_this)) throw A.wrapException(A.ConcurrentModificationError$(_this)); for (t1 = first, i = 1; i < $length; ++i) { t1 = t1 + separator + A.S(_this.elementAt$1(0, i)); if ($length !== _this.get$length(_this)) throw A.wrapException(A.ConcurrentModificationError$(_this)); } return t1.charCodeAt(0) == 0 ? t1 : t1; } else { for (i = 0, t1 = ""; i < $length; ++i) { t1 += A.S(_this.elementAt$1(0, i)); if ($length !== _this.get$length(_this)) throw A.wrapException(A.ConcurrentModificationError$(_this)); } return t1.charCodeAt(0) == 0 ? t1 : t1; } }, join$0($receiver) { return this.join$1($receiver, ""); }, where$1(_, test) { return this.super$Iterable$where(0, test); }, map$1$1(_, toElement, $T) { return new A.MappedListIterable(this, toElement, A._instanceType(this)._eval$1("@")._bind$1($T)._eval$1("MappedListIterable<1,2>")); }, reduce$1(_, combine) { var value, i, _this = this, $length = _this.get$length(_this); if ($length === 0) throw A.wrapException(A.IterableElementError_noElement()); value = _this.elementAt$1(0, 0); for (i = 1; i < $length; ++i) { value = combine.call$2(value, _this.elementAt$1(0, i)); if ($length !== _this.get$length(_this)) throw A.wrapException(A.ConcurrentModificationError$(_this)); } return value; }, fold$1$2(_, initialValue, combine) { var value, i, _this = this, $length = _this.get$length(_this); for (value = initialValue, i = 0; i < $length; ++i) { value = combine.call$2(value, _this.elementAt$1(0, i)); if ($length !== _this.get$length(_this)) throw A.wrapException(A.ConcurrentModificationError$(_this)); } return value; }, fold$2($receiver, initialValue, combine) { return this.fold$1$2($receiver, initialValue, combine, type$.dynamic); }, skip$1(_, count) { return A.SubListIterable$(this, count, null, A._instanceType(this)._eval$1("ListIterable.E")); }, take$1(_, count) { return A.SubListIterable$(this, 0, A.checkNotNullable(count, "count", type$.int), A._instanceType(this)._eval$1("ListIterable.E")); }, toList$1$growable(_, growable) { return A.List_List$of(this, true, A._instanceType(this)._eval$1("ListIterable.E")); }, toList$0($receiver) { return this.toList$1$growable($receiver, true); }, toSet$0(_) { var i, _this = this, result = A.LinkedHashSet_LinkedHashSet(A._instanceType(_this)._eval$1("ListIterable.E")); for (i = 0; i < _this.get$length(_this); ++i) result.add$1(0, _this.elementAt$1(0, i)); return result; } }; A.SubListIterable.prototype = { SubListIterable$3(_iterable, _start, _endOrLength, $E) { var endOrLength, t1 = this.__internal$_start; A.RangeError_checkNotNegative(t1, "start"); endOrLength = this._endOrLength; if (endOrLength != null) { A.RangeError_checkNotNegative(endOrLength, "end"); if (t1 > endOrLength) throw A.wrapException(A.RangeError$range(t1, 0, endOrLength, "start", null)); } }, get$_endIndex() { var $length = J.get$length$asx(this.__internal$_iterable), endOrLength = this._endOrLength; if (endOrLength == null || endOrLength > $length) return $length; return endOrLength; }, get$_startIndex() { var $length = J.get$length$asx(this.__internal$_iterable), t1 = this.__internal$_start; if (t1 > $length) return $length; return t1; }, get$length(_) { var endOrLength, $length = J.get$length$asx(this.__internal$_iterable), t1 = this.__internal$_start; if (t1 >= $length) return 0; endOrLength = this._endOrLength; if (endOrLength == null || endOrLength >= $length) return $length - t1; return endOrLength - t1; }, elementAt$1(_, index) { var _this = this, realIndex = _this.get$_startIndex() + index; if (index < 0 || realIndex >= _this.get$_endIndex()) throw A.wrapException(A.IndexError$withLength(index, _this.get$length(_this), _this, null, "index")); return J.elementAt$1$ax(_this.__internal$_iterable, realIndex); }, skip$1(_, count) { var newStart, endOrLength, _this = this; A.RangeError_checkNotNegative(count, "count"); newStart = _this.__internal$_start + count; endOrLength = _this._endOrLength; if (endOrLength != null && newStart >= endOrLength) return new A.EmptyIterable(_this.$ti._eval$1("EmptyIterable<1>")); return A.SubListIterable$(_this.__internal$_iterable, newStart, endOrLength, _this.$ti._precomputed1); }, take$1(_, count) { var endOrLength, t1, newEnd, _this = this; A.RangeError_checkNotNegative(count, "count"); endOrLength = _this._endOrLength; t1 = _this.__internal$_start; newEnd = t1 + count; if (endOrLength == null) return A.SubListIterable$(_this.__internal$_iterable, t1, newEnd, _this.$ti._precomputed1); else { if (endOrLength < newEnd) return _this; return A.SubListIterable$(_this.__internal$_iterable, t1, newEnd, _this.$ti._precomputed1); } }, toList$1$growable(_, growable) { var $length, result, i, _this = this, start = _this.__internal$_start, t1 = _this.__internal$_iterable, t2 = J.getInterceptor$asx(t1), end = t2.get$length(t1), endOrLength = _this._endOrLength; if (endOrLength != null && endOrLength < end) end = endOrLength; $length = end - start; if ($length <= 0) { t1 = _this.$ti._precomputed1; return growable ? J.JSArray_JSArray$growable(0, t1) : J.JSArray_JSArray$fixed(0, t1); } result = A.List_List$filled($length, t2.elementAt$1(t1, start), growable, _this.$ti._precomputed1); for (i = 1; i < $length; ++i) { result[i] = t2.elementAt$1(t1, start + i); if (t2.get$length(t1) < end) throw A.wrapException(A.ConcurrentModificationError$(_this)); } return result; }, toList$0($receiver) { return this.toList$1$growable($receiver, true); } }; A.ListIterator.prototype = { get$current(_) { var t1 = this.__internal$_current; return t1 == null ? A._instanceType(this)._precomputed1._as(t1) : t1; }, moveNext$0() { var t3, _this = this, t1 = _this.__internal$_iterable, t2 = J.getInterceptor$asx(t1), $length = t2.get$length(t1); if (_this.__internal$_length !== $length) throw A.wrapException(A.ConcurrentModificationError$(t1)); t3 = _this.__internal$_index; if (t3 >= $length) { _this.__internal$_current = null; return false; } _this.__internal$_current = t2.elementAt$1(t1, t3); ++_this.__internal$_index; return true; } }; A.MappedIterable.prototype = { get$iterator(_) { return new A.MappedIterator(J.get$iterator$ax(this.__internal$_iterable), this._f); }, get$length(_) { return J.get$length$asx(this.__internal$_iterable); }, get$isEmpty(_) { return J.get$isEmpty$asx(this.__internal$_iterable); }, get$first(_) { return this._f.call$1(J.get$first$ax(this.__internal$_iterable)); }, get$last(_) { return this._f.call$1(J.get$last$ax(this.__internal$_iterable)); }, get$single(_) { return this._f.call$1(J.get$single$ax(this.__internal$_iterable)); }, elementAt$1(_, index) { return this._f.call$1(J.elementAt$1$ax(this.__internal$_iterable, index)); } }; A.EfficientLengthMappedIterable.prototype = {$isEfficientLengthIterable: 1}; A.MappedIterator.prototype = { moveNext$0() { var _this = this, t1 = _this._iterator; if (t1.moveNext$0()) { _this.__internal$_current = _this._f.call$1(t1.get$current(t1)); return true; } _this.__internal$_current = null; return false; }, get$current(_) { var t1 = this.__internal$_current; return t1 == null ? A._instanceType(this)._rest[1]._as(t1) : t1; } }; A.MappedListIterable.prototype = { get$length(_) { return J.get$length$asx(this._source); }, elementAt$1(_, index) { return this._f.call$1(J.elementAt$1$ax(this._source, index)); } }; A.WhereIterable.prototype = { get$iterator(_) { return new A.WhereIterator(J.get$iterator$ax(this.__internal$_iterable), this._f); }, map$1$1(_, toElement, $T) { return new A.MappedIterable(this, toElement, this.$ti._eval$1("@<1>")._bind$1($T)._eval$1("MappedIterable<1,2>")); } }; A.WhereIterator.prototype = { moveNext$0() { var t1, t2; for (t1 = this._iterator, t2 = this._f; t1.moveNext$0();) if (t2.call$1(t1.get$current(t1))) return true; return false; }, get$current(_) { var t1 = this._iterator; return t1.get$current(t1); } }; A.ExpandIterable.prototype = { get$iterator(_) { return new A.ExpandIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, B.C_EmptyIterator); } }; A.ExpandIterator.prototype = { get$current(_) { var t1 = this.__internal$_current; return t1 == null ? A._instanceType(this)._rest[1]._as(t1) : t1; }, moveNext$0() { var t2, t3, _this = this, t1 = _this._currentExpansion; if (t1 == null) return false; for (t2 = _this._iterator, t3 = _this._f; !t1.moveNext$0();) { _this.__internal$_current = null; if (t2.moveNext$0()) { _this._currentExpansion = null; t1 = J.get$iterator$ax(t3.call$1(t2.get$current(t2))); _this._currentExpansion = t1; } else return false; } t1 = _this._currentExpansion; _this.__internal$_current = t1.get$current(t1); return true; } }; A.TakeIterable.prototype = { get$iterator(_) { return new A.TakeIterator(J.get$iterator$ax(this.__internal$_iterable), this._takeCount); } }; A.EfficientLengthTakeIterable.prototype = { get$length(_) { var iterableLength = J.get$length$asx(this.__internal$_iterable), t1 = this._takeCount; if (iterableLength > t1) return t1; return iterableLength; }, $isEfficientLengthIterable: 1 }; A.TakeIterator.prototype = { moveNext$0() { if (--this._remaining >= 0) return this._iterator.moveNext$0(); this._remaining = -1; return false; }, get$current(_) { var t1; if (this._remaining < 0) { A._instanceType(this)._precomputed1._as(null); return null; } t1 = this._iterator; return t1.get$current(t1); } }; A.SkipIterable.prototype = { skip$1(_, count) { A.ArgumentError_checkNotNull(count, "count"); A.RangeError_checkNotNegative(count, "count"); return new A.SkipIterable(this.__internal$_iterable, this._skipCount + count, A._instanceType(this)._eval$1("SkipIterable<1>")); }, get$iterator(_) { return new A.SkipIterator(J.get$iterator$ax(this.__internal$_iterable), this._skipCount); } }; A.EfficientLengthSkipIterable.prototype = { get$length(_) { var $length = J.get$length$asx(this.__internal$_iterable) - this._skipCount; if ($length >= 0) return $length; return 0; }, skip$1(_, count) { A.ArgumentError_checkNotNull(count, "count"); A.RangeError_checkNotNegative(count, "count"); return new A.EfficientLengthSkipIterable(this.__internal$_iterable, this._skipCount + count, this.$ti); }, $isEfficientLengthIterable: 1 }; A.SkipIterator.prototype = { moveNext$0() { var t1, i; for (t1 = this._iterator, i = 0; i < this._skipCount; ++i) t1.moveNext$0(); this._skipCount = 0; return t1.moveNext$0(); }, get$current(_) { var t1 = this._iterator; return t1.get$current(t1); } }; A.SkipWhileIterable.prototype = { get$iterator(_) { return new A.SkipWhileIterator(J.get$iterator$ax(this.__internal$_iterable), this._f); } }; A.SkipWhileIterator.prototype = { moveNext$0() { var t1, t2, _this = this; if (!_this._hasSkipped) { _this._hasSkipped = true; for (t1 = _this._iterator, t2 = _this._f; t1.moveNext$0();) if (!t2.call$1(t1.get$current(t1))) return true; } return _this._iterator.moveNext$0(); }, get$current(_) { var t1 = this._iterator; return t1.get$current(t1); } }; A.EmptyIterable.prototype = { get$iterator(_) { return B.C_EmptyIterator; }, get$isEmpty(_) { return true; }, get$length(_) { return 0; }, get$first(_) { throw A.wrapException(A.IterableElementError_noElement()); }, get$last(_) { throw A.wrapException(A.IterableElementError_noElement()); }, get$single(_) { throw A.wrapException(A.IterableElementError_noElement()); }, elementAt$1(_, index) { throw A.wrapException(A.RangeError$range(index, 0, 0, "index", null)); }, contains$1(_, element) { return false; }, every$1(_, test) { return true; }, join$1(_, separator) { return ""; }, where$1(_, test) { return this; }, map$1$1(_, toElement, $T) { return new A.EmptyIterable($T._eval$1("EmptyIterable<0>")); }, skip$1(_, count) { A.RangeError_checkNotNegative(count, "count"); return this; }, take$1(_, count) { A.RangeError_checkNotNegative(count, "count"); return this; }, toList$1$growable(_, growable) { var t1 = J.JSArray_JSArray$growable(0, this.$ti._precomputed1); return t1; }, toList$0($receiver) { return this.toList$1$growable($receiver, true); }, toSet$0(_) { return A.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1); } }; A.EmptyIterator.prototype = { moveNext$0() { return false; }, get$current(_) { throw A.wrapException(A.IterableElementError_noElement()); } }; A.FollowedByIterable.prototype = { get$iterator(_) { return new A.FollowedByIterator(J.get$iterator$ax(this.__internal$_first), this._second); }, get$length(_) { var t1 = this._second; return J.get$length$asx(this.__internal$_first) + t1.get$length(t1); }, get$isEmpty(_) { var t1; if (J.get$isEmpty$asx(this.__internal$_first)) { t1 = this._second; t1 = t1.get$isEmpty(t1); } else t1 = false; return t1; }, get$isNotEmpty(_) { var t1; if (!J.get$isNotEmpty$asx(this.__internal$_first)) { t1 = this._second; t1 = t1.get$isNotEmpty(t1); } else t1 = true; return t1; }, contains$1(_, value) { var t1; if (!J.contains$1$asx(this.__internal$_first, value)) { t1 = this._second; t1 = t1.contains$1(t1, value); } else t1 = true; return t1; }, get$first(_) { var t1, iterator = J.get$iterator$ax(this.__internal$_first); if (iterator.moveNext$0()) return iterator.get$current(iterator); t1 = this._second; return t1.get$first(t1); }, get$last(_) { var last, t1 = this._second, iterator = t1.get$iterator(t1); if (iterator.moveNext$0()) { last = iterator.get$current(iterator); for (; iterator.moveNext$0();) last = iterator.get$current(iterator); return last; } return J.get$last$ax(this.__internal$_first); } }; A.EfficientLengthFollowedByIterable.prototype = { elementAt$1(_, index) { var t1 = this.__internal$_first, t2 = J.getInterceptor$asx(t1), firstLength = t2.get$length(t1); if (index < firstLength) return t2.elementAt$1(t1, index); t1 = this._second; return t1.elementAt$1(t1, index - firstLength); }, get$first(_) { var t1 = this.__internal$_first, t2 = J.getInterceptor$asx(t1); if (t2.get$isNotEmpty(t1)) return t2.get$first(t1); t1 = this._second; return t1.get$first(t1); }, get$last(_) { var t1 = this._second; if (t1.get$isNotEmpty(t1)) return t1.get$last(t1); return J.get$last$ax(this.__internal$_first); }, $isEfficientLengthIterable: 1 }; A.FollowedByIterator.prototype = { moveNext$0() { var t1, _this = this; if (_this._currentIterator.moveNext$0()) return true; t1 = _this._nextIterable; if (t1 != null) { t1 = t1.get$iterator(t1); _this._currentIterator = t1; _this._nextIterable = null; return t1.moveNext$0(); } return false; }, get$current(_) { var t1 = this._currentIterator; return t1.get$current(t1); } }; A.WhereTypeIterable.prototype = { get$iterator(_) { return new A.WhereTypeIterator(J.get$iterator$ax(this._source), this.$ti._eval$1("WhereTypeIterator<1>")); } }; A.WhereTypeIterator.prototype = { moveNext$0() { var t1, t2; for (t1 = this._source, t2 = this.$ti._precomputed1; t1.moveNext$0();) if (t2._is(t1.get$current(t1))) return true; return false; }, get$current(_) { var t1 = this._source; return this.$ti._precomputed1._as(t1.get$current(t1)); } }; A.FixedLengthListMixin.prototype = { set$length(receiver, newLength) { throw A.wrapException(A.UnsupportedError$("Cannot change the length of a fixed-length list")); }, add$1(receiver, value) { throw A.wrapException(A.UnsupportedError$("Cannot add to a fixed-length list")); }, addAll$1(receiver, iterable) { throw A.wrapException(A.UnsupportedError$("Cannot add to a fixed-length list")); }, removeRange$2(receiver, start, end) { throw A.wrapException(A.UnsupportedError$("Cannot remove from a fixed-length list")); } }; A.UnmodifiableListMixin.prototype = { $indexSet(_, index, value) { throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list")); }, set$length(_, newLength) { throw A.wrapException(A.UnsupportedError$("Cannot change the length of an unmodifiable list")); }, add$1(_, value) { throw A.wrapException(A.UnsupportedError$("Cannot add to an unmodifiable list")); }, addAll$1(_, iterable) { throw A.wrapException(A.UnsupportedError$("Cannot add to an unmodifiable list")); }, sort$1(_, compare) { throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list")); }, setRange$4(_, start, end, iterable, skipCount) { throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list")); }, removeRange$2(_, start, end) { throw A.wrapException(A.UnsupportedError$("Cannot remove from an unmodifiable list")); }, fillRange$3(_, start, end, fillValue) { throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list")); } }; A.UnmodifiableListBase.prototype = {}; A.ReversedListIterable.prototype = { get$length(_) { return J.get$length$asx(this._source); }, elementAt$1(_, index) { var t1 = this._source, t2 = J.getInterceptor$asx(t1); return t2.elementAt$1(t1, t2.get$length(t1) - 1 - index); } }; A.Symbol.prototype = { get$hashCode(_) { var hash = this._hashCode; if (hash != null) return hash; hash = 664597 * B.JSString_methods.get$hashCode(this.__internal$_name) & 536870911; this._hashCode = hash; return hash; }, toString$0(_) { return 'Symbol("' + this.__internal$_name + '")'; }, $eq(_, other) { if (other == null) return false; return other instanceof A.Symbol && this.__internal$_name === other.__internal$_name; }, $isSymbol0: 1 }; A.__CastListBase__CastIterableBase_ListMixin.prototype = {}; A._Record_2.prototype = {$recipe: "+(1,2)", $shape: 1}; A._Record_2_forImport.prototype = {$recipe: "+forImport(1,2)", $shape: 2}; A._Record_2_imports_modules.prototype = {$recipe: "+imports,modules(1,2)", $shape: 4}; A._Record_2_loadedUrls_stylesheet.prototype = {$recipe: "+loadedUrls,stylesheet(1,2)", $shape: 5}; A._Record_2_sourceMap.prototype = {$recipe: "+sourceMap(1,2)", $shape: 3}; A._Record_3.prototype = {$recipe: "+(1,2,3)", $shape: 6}; A._Record_3_importer_isDependency.prototype = {$recipe: "+importer,isDependency(1,2,3)", $shape: 8}; A._Record_3_originalUrl.prototype = {$recipe: "+originalUrl(1,2,3)", $shape: 7}; A._Record_4.prototype = {$recipe: "+(1,2,3,4)", $shape: 9}; A._Record_4_baseImporter_baseUrl_forImport.prototype = {$recipe: "+baseImporter,baseUrl,forImport(1,2,3,4)", $shape: 10}; A._Record_5_named_namedNodes_positional_positionalNodes_separator.prototype = {$recipe: "+named,namedNodes,positional,positionalNodes,separator(1,2,3,4,5)", $shape: 11}; A.ConstantMapView.prototype = {}; A.ConstantMap.prototype = { cast$2$0(_, RK, RV) { var t1 = A._instanceType(this); return A.Map_castFrom(this, t1._precomputed1, t1._rest[1], RK, RV); }, get$isEmpty(_) { return this.get$length(this) === 0; }, get$isNotEmpty(_) { return this.get$length(this) !== 0; }, toString$0(_) { return A.MapBase_mapToString(this); }, $indexSet(_, key, value) { A.ConstantMap__throwUnmodifiable(); }, remove$1(_, key) { A.ConstantMap__throwUnmodifiable(); }, addAll$1(_, other) { A.ConstantMap__throwUnmodifiable(); }, get$entries(_) { return new A._SyncStarIterable(this.entries$body$ConstantMap(0), A._instanceType(this)._eval$1("_SyncStarIterable>")); }, entries$body$ConstantMap($async$_) { var $async$self = this; return function() { var _ = $async$_; var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, key; return function $async$get$entries($async$iterator, $async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.get$keys($async$self), t1 = t1.get$iterator(t1), t2 = A._instanceType($async$self), t2 = t2._eval$1("@<1>")._bind$1(t2._rest[1])._eval$1("MapEntry<1,2>"); case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } key = t1.get$current(t1); $async$goto = 4; return $async$iterator._async$_current = new A.MapEntry(key, $async$self.$index(0, key), t2), 1; case 4: // after yield // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return 0; case 1: // rethrow return $async$iterator._datum = $async$currentError, 3; } }; }; }, $isMap: 1 }; A.ConstantStringMap.prototype = { get$length(_) { return this._values.length; }, get$_keys() { var keys = this.$keys; if (keys == null) { keys = Object.keys(this._jsIndex); this.$keys = keys; } return keys; }, containsKey$1(key) { if (typeof key != "string") return false; if ("__proto__" === key) return false; return this._jsIndex.hasOwnProperty(key); }, $index(_, key) { if (!this.containsKey$1(key)) return null; return this._values[this._jsIndex[key]]; }, forEach$1(_, f) { var t1, i, keys = this.get$_keys(), values = this._values; for (t1 = keys.length, i = 0; i < t1; ++i) f.call$2(keys[i], values[i]); }, get$keys(_) { return new A._KeysOrValues(this.get$_keys(), this.$ti._eval$1("_KeysOrValues<1>")); }, get$values(_) { return new A._KeysOrValues(this._values, this.$ti._eval$1("_KeysOrValues<2>")); } }; A._KeysOrValues.prototype = { get$length(_) { return this._elements.length; }, get$isEmpty(_) { return 0 === this._elements.length; }, get$isNotEmpty(_) { return 0 !== this._elements.length; }, get$iterator(_) { var t1 = this._elements; return new A._KeysOrValuesOrElementsIterator(t1, t1.length); } }; A._KeysOrValuesOrElementsIterator.prototype = { get$current(_) { var t1 = this.__js_helper$_current; return t1 == null ? A._instanceType(this)._precomputed1._as(t1) : t1; }, moveNext$0() { var _this = this, t1 = _this.__js_helper$_index; if (t1 >= _this.__js_helper$_length) { _this.__js_helper$_current = null; return false; } _this.__js_helper$_current = _this._elements[t1]; _this.__js_helper$_index = t1 + 1; return true; } }; A.ConstantSet.prototype = { add$1(_, value) { A.ConstantSet__throwUnmodifiable(); }, addAll$1(_, elements) { A.ConstantSet__throwUnmodifiable(); }, remove$1(_, value) { A.ConstantSet__throwUnmodifiable(); } }; A.ConstantStringSet.prototype = { get$length(_) { return this.__js_helper$_length; }, get$isEmpty(_) { return this.__js_helper$_length === 0; }, get$isNotEmpty(_) { return this.__js_helper$_length !== 0; }, get$iterator(_) { var t1, keys = this.$keys; if (keys == null) { keys = Object.keys(this._jsIndex); this.$keys = keys; } t1 = keys; return new A._KeysOrValuesOrElementsIterator(t1, t1.length); }, contains$1(_, key) { if (typeof key != "string") return false; if ("__proto__" === key) return false; return this._jsIndex.hasOwnProperty(key); }, toSet$0(_) { return A.LinkedHashSet_LinkedHashSet$of(this, this.$ti._precomputed1); } }; A.GeneralConstantSet.prototype = { get$length(_) { return this._elements.length; }, get$isEmpty(_) { return this._elements.length === 0; }, get$isNotEmpty(_) { return this._elements.length !== 0; }, get$iterator(_) { var t1 = this._elements; return new A._KeysOrValuesOrElementsIterator(t1, t1.length); }, _getMap$0() { var t1, t2, _i, key, _this = this, backingMap = _this.$map; if (backingMap == null) { t1 = _this.$ti; backingMap = new A.JsConstantLinkedHashMap(t1._eval$1("@<1>")._bind$1(t1._precomputed1)._eval$1("JsConstantLinkedHashMap<1,2>")); for (t1 = _this._elements, t2 = t1.length, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) { key = t1[_i]; backingMap.$indexSet(0, key, key); } _this.$map = backingMap; } return backingMap; }, contains$1(_, key) { return this._getMap$0().containsKey$1(key); }, toSet$0(_) { return A.LinkedHashSet_LinkedHashSet$of(this, this.$ti._precomputed1); } }; A.Instantiation.prototype = { Instantiation$1(_genericClosure) { if (false) {} }, $eq(_, other) { if (other == null) return false; return other instanceof A.Instantiation && this._genericClosure.$eq(0, other._genericClosure) && A.getRuntimeTypeOfClosure(this) === A.getRuntimeTypeOfClosure(other); }, get$hashCode(_) { return A.Object_hash(this._genericClosure, A.getRuntimeTypeOfClosure(this), B.C_SentinelValue, B.C_SentinelValue); }, toString$0(_) { var t1 = B.JSArray_methods.join$1(this.get$_types(), ", "); return this._genericClosure.toString$0(0) + " with " + ("<" + t1 + ">"); } }; A.Instantiation1.prototype = { get$_types() { return [A.createRuntimeType(this.$ti._precomputed1)]; }, call$0() { return this._genericClosure.call$1$0(this.$ti._rest[0]); }, call$2(a0, a1) { return this._genericClosure.call$1$2(a0, a1, this.$ti._rest[0]); }, call$3(a0, a1, a2) { return this._genericClosure.call$1$3(a0, a1, a2, this.$ti._rest[0]); }, call$4(a0, a1, a2, a3) { return this._genericClosure.call$1$4(a0, a1, a2, a3, this.$ti._rest[0]); }, $signature() { return A.instantiatedGenericFunctionType(A.closureFunctionType(this._genericClosure), this.$ti); } }; A.JSInvocationMirror.prototype = { get$memberName() { var t1 = this.__js_helper$_memberName; if (t1 instanceof A.Symbol) return t1; return this.__js_helper$_memberName = new A.Symbol(t1); }, get$positionalArguments() { var t1, t2, argumentCount, list, index, _this = this; if (_this.__js_helper$_kind === 1) return B.List_empty6; t1 = _this._arguments; t2 = J.getInterceptor$asx(t1); argumentCount = t2.get$length(t1) - J.get$length$asx(_this._namedArgumentNames) - _this._typeArgumentCount; if (argumentCount === 0) return B.List_empty6; list = []; for (index = 0; index < argumentCount; ++index) list.push(t2.$index(t1, index)); return J.JSArray_markUnmodifiableList(list); }, get$namedArguments() { var t1, t2, namedArgumentCount, t3, t4, namedArgumentsStartIndex, map, i, _this = this; if (_this.__js_helper$_kind !== 0) return B.Map_empty3; t1 = _this._namedArgumentNames; t2 = J.getInterceptor$asx(t1); namedArgumentCount = t2.get$length(t1); t3 = _this._arguments; t4 = J.getInterceptor$asx(t3); namedArgumentsStartIndex = t4.get$length(t3) - namedArgumentCount - _this._typeArgumentCount; if (namedArgumentCount === 0) return B.Map_empty3; map = new A.JsLinkedHashMap(type$.JsLinkedHashMap_Symbol_dynamic); for (i = 0; i < namedArgumentCount; ++i) map.$indexSet(0, new A.Symbol(t2.$index(t1, i)), t4.$index(t3, namedArgumentsStartIndex + i)); return new A.ConstantMapView(map, type$.ConstantMapView_Symbol_dynamic); } }; A.Primitives_functionNoSuchMethod_closure.prototype = { call$2($name, argument) { var t1 = this._box_0; t1.names = t1.names + "$" + $name; this.namedArgumentList.push($name); this.$arguments.push(argument); ++t1.argumentCount; }, $signature: 208 }; A.TypeErrorDecoder.prototype = { matchTypeError$1(message) { var result, t1, _this = this, match = new RegExp(_this._pattern).exec(message); if (match == null) return null; result = Object.create(null); t1 = _this._arguments; if (t1 !== -1) result.arguments = match[t1 + 1]; t1 = _this._argumentsExpr; if (t1 !== -1) result.argumentsExpr = match[t1 + 1]; t1 = _this._expr; if (t1 !== -1) result.expr = match[t1 + 1]; t1 = _this._method; if (t1 !== -1) result.method = match[t1 + 1]; t1 = _this._receiver; if (t1 !== -1) result.receiver = match[t1 + 1]; return result; } }; A.NullError.prototype = { toString$0(_) { var t1 = this._method; if (t1 == null) return "NoSuchMethodError: " + this.__js_helper$_message; return "NoSuchMethodError: method not found: '" + t1 + "' on null"; } }; A.JsNoSuchMethodError.prototype = { toString$0(_) { var t2, _this = this, _s38_ = "NoSuchMethodError: method not found: '", t1 = _this._method; if (t1 == null) return "NoSuchMethodError: " + _this.__js_helper$_message; t2 = _this._receiver; if (t2 == null) return _s38_ + t1 + "' (" + _this.__js_helper$_message + ")"; return _s38_ + t1 + "' on '" + t2 + "' (" + _this.__js_helper$_message + ")"; } }; A.UnknownJsTypeError.prototype = { toString$0(_) { var t1 = this.__js_helper$_message; return t1.length === 0 ? "Error" : "Error: " + t1; } }; A.NullThrownFromJavaScriptException.prototype = { toString$0(_) { return "Throw of null ('" + (this._irritant === null ? "null" : "undefined") + "' from JavaScript)"; }, $isException: 1 }; A.ExceptionAndStackTrace.prototype = {}; A._StackTrace.prototype = { toString$0(_) { var trace, t1 = this._trace; if (t1 != null) return t1; t1 = this._exception; trace = t1 !== null && typeof t1 === "object" ? t1.stack : null; return this._trace = trace == null ? "" : trace; }, $isStackTrace: 1 }; A.Closure.prototype = { toString$0(_) { var $constructor = this.constructor, $name = $constructor == null ? null : $constructor.name; return "Closure '" + A.unminifyOrTag($name == null ? "unknown" : $name) + "'"; }, $isFunction: 1, get$$call() { return this; }, "call*": "call$1", $requiredArgCount: 1, $defaultValues: null }; A.Closure0Args.prototype = {"call*": "call$0", $requiredArgCount: 0}; A.Closure2Args.prototype = {"call*": "call$2", $requiredArgCount: 2}; A.TearOffClosure.prototype = {}; A.StaticClosure.prototype = { toString$0(_) { var $name = this.$static_name; if ($name == null) return "Closure of unknown static method"; return "Closure '" + A.unminifyOrTag($name) + "'"; } }; A.BoundClosure.prototype = { $eq(_, other) { if (other == null) return false; if (this === other) return true; if (!(other instanceof A.BoundClosure)) return false; return this.$_target === other.$_target && this._receiver === other._receiver; }, get$hashCode(_) { return (A.objectHashCode(this._receiver) ^ A.Primitives_objectHashCode(this.$_target)) >>> 0; }, toString$0(_) { return "Closure '" + this.$_name + "' of " + ("Instance of '" + A.Primitives_objectTypeName(this._receiver) + "'"); } }; A._CyclicInitializationError.prototype = { toString$0(_) { return "Reading static variable '" + this.variableName + "' during its initialization"; } }; A.RuntimeError.prototype = { toString$0(_) { return "RuntimeError: " + this.message; }, get$message(receiver) { return this.message; } }; A._Required.prototype = {}; A.JsLinkedHashMap.prototype = { get$length(_) { return this.__js_helper$_length; }, get$isEmpty(_) { return this.__js_helper$_length === 0; }, get$isNotEmpty(_) { return this.__js_helper$_length !== 0; }, get$keys(_) { return new A.LinkedHashMapKeyIterable(this, A._instanceType(this)._eval$1("LinkedHashMapKeyIterable<1>")); }, get$values(_) { var t1 = A._instanceType(this); return A.MappedIterable_MappedIterable(new A.LinkedHashMapKeyIterable(this, t1._eval$1("LinkedHashMapKeyIterable<1>")), new A.JsLinkedHashMap_values_closure(this), t1._precomputed1, t1._rest[1]); }, containsKey$1(key) { var strings, nums; if (typeof key == "string") { strings = this._strings; if (strings == null) return false; return strings[key] != null; } else if (typeof key == "number" && (key & 0x3fffffff) === key) { nums = this._nums; if (nums == null) return false; return nums[key] != null; } else return this.internalContainsKey$1(key); }, internalContainsKey$1(key) { var rest = this.__js_helper$_rest; if (rest == null) return false; return this.internalFindBucketIndex$2(rest[this.internalComputeHashCode$1(key)], key) >= 0; }, addAll$1(_, other) { other.forEach$1(0, new A.JsLinkedHashMap_addAll_closure(this)); }, $index(_, key) { var strings, cell, t1, nums, _null = null; if (typeof key == "string") { strings = this._strings; if (strings == null) return _null; cell = strings[key]; t1 = cell == null ? _null : cell.hashMapCellValue; return t1; } else if (typeof key == "number" && (key & 0x3fffffff) === key) { nums = this._nums; if (nums == null) return _null; cell = nums[key]; t1 = cell == null ? _null : cell.hashMapCellValue; return t1; } else return this.internalGet$1(key); }, internalGet$1(key) { var bucket, index, rest = this.__js_helper$_rest; if (rest == null) return null; bucket = rest[this.internalComputeHashCode$1(key)]; index = this.internalFindBucketIndex$2(bucket, key); if (index < 0) return null; return bucket[index].hashMapCellValue; }, $indexSet(_, key, value) { var strings, nums, _this = this; if (typeof key == "string") { strings = _this._strings; _this._addHashTableEntry$3(strings == null ? _this._strings = _this._newHashTable$0() : strings, key, value); } else if (typeof key == "number" && (key & 0x3fffffff) === key) { nums = _this._nums; _this._addHashTableEntry$3(nums == null ? _this._nums = _this._newHashTable$0() : nums, key, value); } else _this.internalSet$2(key, value); }, internalSet$2(key, value) { var hash, bucket, index, _this = this, rest = _this.__js_helper$_rest; if (rest == null) rest = _this.__js_helper$_rest = _this._newHashTable$0(); hash = _this.internalComputeHashCode$1(key); bucket = rest[hash]; if (bucket == null) rest[hash] = [_this._newLinkedCell$2(key, value)]; else { index = _this.internalFindBucketIndex$2(bucket, key); if (index >= 0) bucket[index].hashMapCellValue = value; else bucket.push(_this._newLinkedCell$2(key, value)); } }, putIfAbsent$2(key, ifAbsent) { var t1, value, _this = this; if (_this.containsKey$1(key)) { t1 = _this.$index(0, key); return t1 == null ? A._instanceType(_this)._rest[1]._as(t1) : t1; } value = ifAbsent.call$0(); _this.$indexSet(0, key, value); return value; }, remove$1(_, key) { var _this = this; if (typeof key == "string") return _this.__js_helper$_removeHashTableEntry$2(_this._strings, key); else if (typeof key == "number" && (key & 0x3fffffff) === key) return _this.__js_helper$_removeHashTableEntry$2(_this._nums, key); else return _this.internalRemove$1(key); }, internalRemove$1(key) { var hash, bucket, index, cell, _this = this, rest = _this.__js_helper$_rest; if (rest == null) return null; hash = _this.internalComputeHashCode$1(key); bucket = rest[hash]; index = _this.internalFindBucketIndex$2(bucket, key); if (index < 0) return null; cell = bucket.splice(index, 1)[0]; _this.__js_helper$_unlinkCell$1(cell); if (bucket.length === 0) delete rest[hash]; return cell.hashMapCellValue; }, clear$0(_) { var _this = this; if (_this.__js_helper$_length > 0) { _this._strings = _this._nums = _this.__js_helper$_rest = _this._first = _this._last = null; _this.__js_helper$_length = 0; _this._modified$0(); } }, forEach$1(_, action) { var _this = this, cell = _this._first, modifications = _this._modifications; for (; cell != null;) { action.call$2(cell.hashMapCellKey, cell.hashMapCellValue); if (modifications !== _this._modifications) throw A.wrapException(A.ConcurrentModificationError$(_this)); cell = cell._next; } }, _addHashTableEntry$3(table, key, value) { var cell = table[key]; if (cell == null) table[key] = this._newLinkedCell$2(key, value); else cell.hashMapCellValue = value; }, __js_helper$_removeHashTableEntry$2(table, key) { var cell; if (table == null) return null; cell = table[key]; if (cell == null) return null; this.__js_helper$_unlinkCell$1(cell); delete table[key]; return cell.hashMapCellValue; }, _modified$0() { this._modifications = this._modifications + 1 & 1073741823; }, _newLinkedCell$2(key, value) { var t1, _this = this, cell = new A.LinkedHashMapCell(key, value); if (_this._first == null) _this._first = _this._last = cell; else { t1 = _this._last; t1.toString; cell._previous = t1; _this._last = t1._next = cell; } ++_this.__js_helper$_length; _this._modified$0(); return cell; }, __js_helper$_unlinkCell$1(cell) { var _this = this, previous = cell._previous, next = cell._next; if (previous == null) _this._first = next; else previous._next = next; if (next == null) _this._last = previous; else next._previous = previous; --_this.__js_helper$_length; _this._modified$0(); }, internalComputeHashCode$1(key) { return J.get$hashCode$(key) & 1073741823; }, internalFindBucketIndex$2(bucket, key) { var $length, i; if (bucket == null) return -1; $length = bucket.length; for (i = 0; i < $length; ++i) if (J.$eq$(bucket[i].hashMapCellKey, key)) return i; return -1; }, toString$0(_) { return A.MapBase_mapToString(this); }, _newHashTable$0() { var table = Object.create(null); table[""] = table; delete table[""]; return table; } }; A.JsLinkedHashMap_values_closure.prototype = { call$1(each) { var t1 = this.$this, t2 = t1.$index(0, each); return t2 == null ? A._instanceType(t1)._rest[1]._as(t2) : t2; }, $signature() { return A._instanceType(this.$this)._eval$1("2(1)"); } }; A.JsLinkedHashMap_addAll_closure.prototype = { call$2(key, value) { this.$this.$indexSet(0, key, value); }, $signature() { return A._instanceType(this.$this)._eval$1("~(1,2)"); } }; A.LinkedHashMapCell.prototype = {}; A.LinkedHashMapKeyIterable.prototype = { get$length(_) { return this.__js_helper$_map.__js_helper$_length; }, get$isEmpty(_) { return this.__js_helper$_map.__js_helper$_length === 0; }, get$iterator(_) { var t1 = this.__js_helper$_map, t2 = new A.LinkedHashMapKeyIterator(t1, t1._modifications); t2._cell = t1._first; return t2; }, contains$1(_, element) { return this.__js_helper$_map.containsKey$1(element); } }; A.LinkedHashMapKeyIterator.prototype = { get$current(_) { return this.__js_helper$_current; }, moveNext$0() { var cell, _this = this, t1 = _this.__js_helper$_map; if (_this._modifications !== t1._modifications) throw A.wrapException(A.ConcurrentModificationError$(t1)); cell = _this._cell; if (cell == null) { _this.__js_helper$_current = null; return false; } else { _this.__js_helper$_current = cell.hashMapCellKey; _this._cell = cell._next; return true; } } }; A.JsIdentityLinkedHashMap.prototype = { internalComputeHashCode$1(key) { return A.objectHashCode(key) & 1073741823; }, internalFindBucketIndex$2(bucket, key) { var $length, i, t1; if (bucket == null) return -1; $length = bucket.length; for (i = 0; i < $length; ++i) { t1 = bucket[i].hashMapCellKey; if (t1 == null ? key == null : t1 === key) return i; } return -1; } }; A.JsConstantLinkedHashMap.prototype = { internalComputeHashCode$1(key) { return A.constantHashCode(key) & 1073741823; }, internalFindBucketIndex$2(bucket, key) { var $length, i; if (bucket == null) return -1; $length = bucket.length; for (i = 0; i < $length; ++i) if (J.$eq$(bucket[i].hashMapCellKey, key)) return i; return -1; } }; A.initHooks_closure.prototype = { call$1(o) { return this.getTag(o); }, $signature: 88 }; A.initHooks_closure0.prototype = { call$2(o, tag) { return this.getUnknownTag(o, tag); }, $signature: 434 }; A.initHooks_closure1.prototype = { call$1(tag) { return this.prototypeForTag(tag); }, $signature: 327 }; A._Record.prototype = { toString$0(_) { return this._toString$1(false); }, _toString$1(safe) { var t2, separator, i, key, value, keys = this._fieldKeys$0(), values = this._getFieldValues$0(), t1 = (safe ? "" + "Record " : "") + "("; for (t2 = keys.length, separator = "", i = 0; i < t2; ++i, separator = ", ") { t1 += separator; key = keys[i]; if (typeof key == "string") t1 = t1 + key + ": "; value = values[i]; t1 = safe ? t1 + A.Primitives_safeToString(value) : t1 + A.S(value); } t1 += ")"; return t1.charCodeAt(0) == 0 ? t1 : t1; }, _fieldKeys$0() { var t1, shapeTag = this.$shape; for (; $._Record__computedFieldKeys.length <= shapeTag;) $._Record__computedFieldKeys.push(null); t1 = $._Record__computedFieldKeys[shapeTag]; if (t1 == null) { t1 = this._computeFieldKeys$0(); $._Record__computedFieldKeys[shapeTag] = t1; } return t1; }, _computeFieldKeys$0() { var i, names, last, recipe = this.$recipe, position = recipe.indexOf("("), joinedNames = recipe.substring(1, position), fields = recipe.substring(position), arity = fields === "()" ? 0 : fields.replace(/[^,]/g, "").length + 1, t1 = type$.Object, result = J.JSArray_JSArray$allocateGrowable(arity, t1); for (i = 0; i < arity; ++i) result[i] = i; if (joinedNames !== "") { names = joinedNames.split(","); i = names.length; for (last = arity; i > 0;) { --last; --i; result[last] = names[i]; } } return A.List_List$unmodifiable(result, t1); } }; A._Record2.prototype = { _getFieldValues$0() { return [this._0, this._1]; }, $eq(_, other) { if (other == null) return false; return other instanceof A._Record2 && this.$shape === other.$shape && J.$eq$(this._0, other._0) && J.$eq$(this._1, other._1); }, get$hashCode(_) { return A.Object_hash(this.$shape, this._0, this._1, B.C_SentinelValue); } }; A._Record3.prototype = { _getFieldValues$0() { return [this._0, this._1, this._2]; }, $eq(_, other) { var _this = this; if (other == null) return false; 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); }, get$hashCode(_) { var _this = this; return A.Object_hash(_this.$shape, _this._0, _this._1, _this._2); } }; A._RecordN.prototype = { _getFieldValues$0() { return this._values; }, $eq(_, other) { if (other == null) return false; return other instanceof A._RecordN && this.$shape === other.$shape && A._RecordN__equalValues(this._values, other._values); }, get$hashCode(_) { return A.Object_hash(this.$shape, A.Object_hashAll(this._values), B.C_SentinelValue, B.C_SentinelValue); } }; A.JSSyntaxRegExp.prototype = { toString$0(_) { return "RegExp/" + this.pattern + "/" + this._nativeRegExp.flags; }, get$_nativeGlobalVersion() { var _this = this, t1 = _this._nativeGlobalRegExp; if (t1 != null) return t1; t1 = _this._nativeRegExp; return _this._nativeGlobalRegExp = A.JSSyntaxRegExp_makeNative(_this.pattern, t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true); }, get$_nativeAnchoredVersion() { var _this = this, t1 = _this._nativeAnchoredRegExp; if (t1 != null) return t1; t1 = _this._nativeRegExp; return _this._nativeAnchoredRegExp = A.JSSyntaxRegExp_makeNative(_this.pattern + "|()", t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true); }, firstMatch$1(string) { var m = this._nativeRegExp.exec(string); if (m == null) return null; return new A._MatchImplementation(m); }, allMatches$2(_, string, start) { var t1 = string.length; if (start > t1) throw A.wrapException(A.RangeError$range(start, 0, t1, null, null)); return new A._AllMatchesIterable(this, string, start); }, allMatches$1($receiver, string) { return this.allMatches$2($receiver, string, 0); }, _execGlobal$2(string, start) { var match, regexp = this.get$_nativeGlobalVersion(); regexp.lastIndex = start; match = regexp.exec(string); if (match == null) return null; return new A._MatchImplementation(match); }, _execAnchored$2(string, start) { var match, regexp = this.get$_nativeAnchoredVersion(); regexp.lastIndex = start; match = regexp.exec(string); if (match == null) return null; if (match.pop() != null) return null; return new A._MatchImplementation(match); }, matchAsPrefix$2(_, string, start) { if (start < 0 || start > string.length) throw A.wrapException(A.RangeError$range(start, 0, string.length, null, null)); return this._execAnchored$2(string, start); } }; A._MatchImplementation.prototype = { get$start(_) { return this._match.index; }, get$end(_) { var t1 = this._match; return t1.index + t1[0].length; }, $isMatch: 1, $isRegExpMatch: 1 }; A._AllMatchesIterable.prototype = { get$iterator(_) { return new A._AllMatchesIterator(this._re, this.__js_helper$_string, this._start); } }; A._AllMatchesIterator.prototype = { get$current(_) { var t1 = this.__js_helper$_current; return t1 == null ? type$.RegExpMatch._as(t1) : t1; }, moveNext$0() { var t1, t2, t3, match, nextIndex, _this = this, string = _this.__js_helper$_string; if (string == null) return false; t1 = _this._nextIndex; t2 = string.length; if (t1 <= t2) { t3 = _this._regExp; match = t3._execGlobal$2(string, t1); if (match != null) { _this.__js_helper$_current = match; nextIndex = match.get$end(match); if (match._match.index === nextIndex) { if (t3._nativeRegExp.unicode) { t1 = _this._nextIndex; t3 = t1 + 1; if (t3 < t2) { t1 = string.charCodeAt(t1); if (t1 >= 55296 && t1 <= 56319) { t1 = string.charCodeAt(t3); t1 = t1 >= 56320 && t1 <= 57343; } else t1 = false; } else t1 = false; } else t1 = false; nextIndex = (t1 ? nextIndex + 1 : nextIndex) + 1; } _this._nextIndex = nextIndex; return true; } } _this.__js_helper$_string = _this.__js_helper$_current = null; return false; } }; A.StringMatch.prototype = { get$end(_) { return this.start + this.pattern.length; }, $isMatch: 1, get$start(receiver) { return this.start; } }; A._StringAllMatchesIterable.prototype = { get$iterator(_) { return new A._StringAllMatchesIterator(this._input, this._pattern, this.__js_helper$_index); }, get$first(_) { var t1 = this._pattern, index = this._input.indexOf(t1, this.__js_helper$_index); if (index >= 0) return new A.StringMatch(index, t1); throw A.wrapException(A.IterableElementError_noElement()); } }; A._StringAllMatchesIterator.prototype = { moveNext$0() { var index, end, _this = this, t1 = _this.__js_helper$_index, t2 = _this._pattern, t3 = t2.length, t4 = _this._input, t5 = t4.length; if (t1 + t3 > t5) { _this.__js_helper$_current = null; return false; } index = t4.indexOf(t2, t1); if (index < 0) { _this.__js_helper$_index = t5 + 1; _this.__js_helper$_current = null; return false; } end = index + t3; _this.__js_helper$_current = new A.StringMatch(index, t2); _this.__js_helper$_index = end === _this.__js_helper$_index ? end + 1 : end; return true; }, get$current(_) { var t1 = this.__js_helper$_current; t1.toString; return t1; } }; A._Cell.prototype = { readLocal$1$0() { var t1 = this._value; if (t1 === this) A.throwExpression(new A.LateError("Local '" + this.__late_helper$_name + "' has not been initialized.")); return t1; }, readLocal$0() { return this.readLocal$1$0(type$.dynamic); }, _readLocal$0() { var t1 = this._value; if (t1 === this) throw A.wrapException(new A.LateError("Local '" + this.__late_helper$_name + "' has not been initialized.")); return t1; } }; A._InitializedCell.prototype = { readFinal$1$0() { var result, _this = this, t1 = _this._value; if (t1 === _this) { result = _this._initializer.call$0(); if (_this._value !== _this) A.throwExpression(new A.LateError(string$.Local_)); _this._value = result; t1 = result; } return t1; }, readFinal$0() { return this.readFinal$1$0(type$.dynamic); }, _readFinal$0() { var result, _this = this, t1 = _this._value; if (t1 === _this) { result = _this._initializer.call$0(); if (_this._value !== _this) throw A.wrapException(new A.LateError(string$.Local_)); _this._value = result; t1 = result; } return t1; } }; A.NativeByteBuffer.prototype = { get$runtimeType(receiver) { return B.Type_ByteBuffer_RkP; }, $isTrustedGetRuntimeType: 1, $isByteBuffer: 1 }; A.NativeTypedData.prototype = { _invalidPosition$3(receiver, position, $length, $name) { var t1 = A.RangeError$range(position, 0, $length, $name, null); throw A.wrapException(t1); }, _checkPosition$3(receiver, position, $length, $name) { if (position >>> 0 !== position || position > $length) this._invalidPosition$3(receiver, position, $length, $name); } }; A.NativeByteData.prototype = { get$runtimeType(receiver) { return B.Type_ByteData_zNC; }, $isTrustedGetRuntimeType: 1, $isByteData: 1 }; A.NativeTypedArray.prototype = { get$length(receiver) { return receiver.length; }, _setRangeFast$4(receiver, start, end, source, skipCount) { var count, sourceLength, targetLength = receiver.length; this._checkPosition$3(receiver, start, targetLength, "start"); this._checkPosition$3(receiver, end, targetLength, "end"); if (start > end) throw A.wrapException(A.RangeError$range(start, 0, end, null, null)); count = end - start; if (skipCount < 0) throw A.wrapException(A.ArgumentError$(skipCount, null)); sourceLength = source.length; if (sourceLength - skipCount < count) throw A.wrapException(A.StateError$("Not enough elements")); if (skipCount !== 0 || sourceLength !== count) source = source.subarray(skipCount, skipCount + count); receiver.set(source, start); }, $isJavaScriptIndexingBehavior: 1 }; A.NativeTypedArrayOfDouble.prototype = { $index(receiver, index) { A._checkValidIndex(index, receiver, receiver.length); return receiver[index]; }, $indexSet(receiver, index, value) { A._checkValidIndex(index, receiver, receiver.length); receiver[index] = value; }, setRange$4(receiver, start, end, iterable, skipCount) { if (type$.NativeTypedArrayOfDouble._is(iterable)) { this._setRangeFast$4(receiver, start, end, iterable, skipCount); return; } this.super$ListBase$setRange(receiver, start, end, iterable, skipCount); }, $isEfficientLengthIterable: 1, $isIterable: 1, $isList: 1 }; A.NativeTypedArrayOfInt.prototype = { $indexSet(receiver, index, value) { A._checkValidIndex(index, receiver, receiver.length); receiver[index] = value; }, setRange$4(receiver, start, end, iterable, skipCount) { if (type$.NativeTypedArrayOfInt._is(iterable)) { this._setRangeFast$4(receiver, start, end, iterable, skipCount); return; } this.super$ListBase$setRange(receiver, start, end, iterable, skipCount); }, $isEfficientLengthIterable: 1, $isIterable: 1, $isList: 1 }; A.NativeFloat32List.prototype = { get$runtimeType(receiver) { return B.Type_Float32List_LB7; }, sublist$2(receiver, start, end) { return new Float32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, sublist$1($receiver, start) { return this.sublist$2($receiver, start, null); }, $isTrustedGetRuntimeType: 1, $isFloat32List: 1 }; A.NativeFloat64List.prototype = { get$runtimeType(receiver) { return B.Type_Float64List_LB7; }, sublist$2(receiver, start, end) { return new Float64Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, sublist$1($receiver, start) { return this.sublist$2($receiver, start, null); }, $isTrustedGetRuntimeType: 1, $isFloat64List: 1 }; A.NativeInt16List.prototype = { get$runtimeType(receiver) { return B.Type_Int16List_uXf; }, $index(receiver, index) { A._checkValidIndex(index, receiver, receiver.length); return receiver[index]; }, sublist$2(receiver, start, end) { return new Int16Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, sublist$1($receiver, start) { return this.sublist$2($receiver, start, null); }, $isTrustedGetRuntimeType: 1, $isInt16List: 1 }; A.NativeInt32List.prototype = { get$runtimeType(receiver) { return B.Type_Int32List_O50; }, $index(receiver, index) { A._checkValidIndex(index, receiver, receiver.length); return receiver[index]; }, sublist$2(receiver, start, end) { return new Int32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, sublist$1($receiver, start) { return this.sublist$2($receiver, start, null); }, $isTrustedGetRuntimeType: 1, $isInt32List: 1 }; A.NativeInt8List.prototype = { get$runtimeType(receiver) { return B.Type_Int8List_ekJ; }, $index(receiver, index) { A._checkValidIndex(index, receiver, receiver.length); return receiver[index]; }, sublist$2(receiver, start, end) { return new Int8Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, sublist$1($receiver, start) { return this.sublist$2($receiver, start, null); }, $isTrustedGetRuntimeType: 1, $isInt8List: 1 }; A.NativeUint16List.prototype = { get$runtimeType(receiver) { return B.Type_Uint16List_2bx; }, $index(receiver, index) { A._checkValidIndex(index, receiver, receiver.length); return receiver[index]; }, sublist$2(receiver, start, end) { return new Uint16Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, sublist$1($receiver, start) { return this.sublist$2($receiver, start, null); }, $isTrustedGetRuntimeType: 1, $isUint16List: 1 }; A.NativeUint32List.prototype = { get$runtimeType(receiver) { return B.Type_Uint32List_2bx; }, $index(receiver, index) { A._checkValidIndex(index, receiver, receiver.length); return receiver[index]; }, sublist$2(receiver, start, end) { return new Uint32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, sublist$1($receiver, start) { return this.sublist$2($receiver, start, null); }, $isTrustedGetRuntimeType: 1, $isUint32List: 1 }; A.NativeUint8ClampedList.prototype = { get$runtimeType(receiver) { return B.Type_Uint8ClampedList_Jik; }, get$length(receiver) { return receiver.length; }, $index(receiver, index) { A._checkValidIndex(index, receiver, receiver.length); return receiver[index]; }, sublist$2(receiver, start, end) { return new Uint8ClampedArray(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, sublist$1($receiver, start) { return this.sublist$2($receiver, start, null); }, $isTrustedGetRuntimeType: 1, $isUint8ClampedList: 1 }; A.NativeUint8List.prototype = { get$runtimeType(receiver) { return B.Type_Uint8List_WLA; }, get$length(receiver) { return receiver.length; }, $index(receiver, index) { A._checkValidIndex(index, receiver, receiver.length); return receiver[index]; }, sublist$2(receiver, start, end) { return new Uint8Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length))); }, sublist$1($receiver, start) { return this.sublist$2($receiver, start, null); }, $isTrustedGetRuntimeType: 1, $isNativeUint8List: 1, $isUint8List: 1 }; A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.prototype = {}; A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {}; A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {}; A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {}; A.Rti.prototype = { _eval$1(recipe) { return A._Universe_evalInEnvironment(init.typeUniverse, this, recipe); }, _bind$1(typeOrTuple) { return A._Universe_bind(init.typeUniverse, this, typeOrTuple); } }; A._FunctionParameters.prototype = {}; A._Type.prototype = { toString$0(_) { return A._rtiToString(this._rti, null); } }; A._Error.prototype = { toString$0(_) { return this.__rti$_message; } }; A._TypeError.prototype = { get$message(_) { return this.__rti$_message; }, $isTypeError: 1 }; A._AsyncRun__initializeScheduleImmediate_internalCallback.prototype = { call$1(_) { var t1 = this._box_0, f = t1.storedCallback; t1.storedCallback = null; f.call$0(); }, $signature: 68 }; A._AsyncRun__initializeScheduleImmediate_closure.prototype = { call$1(callback) { var t1, t2; this._box_0.storedCallback = callback; t1 = this.div; t2 = this.span; t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2); }, $signature: 39 }; A._AsyncRun__scheduleImmediateJsOverride_internalCallback.prototype = { call$0() { this.callback.call$0(); }, $signature: 2 }; A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback.prototype = { call$0() { this.callback.call$0(); }, $signature: 2 }; A._TimerImpl.prototype = { _TimerImpl$2(milliseconds, callback) { if (self.setTimeout != null) this._handle = self.setTimeout(A.convertDartClosureToJS(new A._TimerImpl_internalCallback(this, callback), 0), milliseconds); else throw A.wrapException(A.UnsupportedError$("`setTimeout()` not found.")); }, _TimerImpl$periodic$2(milliseconds, callback) { if (self.setTimeout != null) this._handle = self.setInterval(A.convertDartClosureToJS(new A._TimerImpl$periodic_closure(this, milliseconds, Date.now(), callback), 0), milliseconds); else throw A.wrapException(A.UnsupportedError$("Periodic timer.")); }, cancel$0() { if (self.setTimeout != null) { var t1 = this._handle; if (t1 == null) return; if (this._once) self.clearTimeout(t1); else self.clearInterval(t1); this._handle = null; } else throw A.wrapException(A.UnsupportedError$("Canceling a timer.")); } }; A._TimerImpl_internalCallback.prototype = { call$0() { var t1 = this.$this; t1._handle = null; t1._tick = 1; this.callback.call$0(); }, $signature: 0 }; A._TimerImpl$periodic_closure.prototype = { call$0() { var duration, _this = this, t1 = _this.$this, tick = t1._tick + 1, t2 = _this.milliseconds; if (t2 > 0) { duration = Date.now() - _this.start; if (duration > (tick + 1) * t2) tick = B.JSInt_methods.$tdiv(duration, t2); } t1._tick = tick; _this.callback.call$1(t1); }, $signature: 2 }; A._AsyncAwaitCompleter.prototype = { complete$1(value) { var t1, _this = this; if (value == null) value = _this.$ti._precomputed1._as(value); if (!_this.isSync) _this._future._asyncComplete$1(value); else { t1 = _this._future; if (_this.$ti._eval$1("Future<1>")._is(value)) t1._chainFuture$1(value); else t1._completeWithValue$1(value); } }, completeError$2(e, st) { var t1 = this._future; if (this.isSync) t1._completeError$2(e, st); else t1._asyncCompleteError$2(e, st); } }; A._awaitOnObject_closure.prototype = { call$1(result) { return this.bodyFunction.call$2(0, result); }, $signature: 127 }; A._awaitOnObject_closure0.prototype = { call$2(error, stackTrace) { this.bodyFunction.call$2(1, new A.ExceptionAndStackTrace(error, stackTrace)); }, $signature: 436 }; A._wrapJsFunctionForAsync_closure.prototype = { call$2(errorCode, result) { this.$protected(errorCode, result); }, $signature: 476 }; A._SyncStarIterator.prototype = { get$current(_) { return this._async$_current; }, _resumeBody$2(errorCode, errorValue) { var body, t1, exception; errorCode = errorCode; errorValue = errorValue; body = this._body; for (; true;) try { t1 = body(this, errorCode, errorValue); return t1; } catch (exception) { errorValue = exception; errorCode = 1; } }, moveNext$0() { var nestedIterator, exception, value, suspendedBodies, _this = this, errorValue = null, errorCode = 0; for (; true;) { nestedIterator = _this._nestedIterator; if (nestedIterator != null) try { if (nestedIterator.moveNext$0()) { _this._async$_current = J.get$current$x(nestedIterator); return true; } else _this._nestedIterator = null; } catch (exception) { errorValue = exception; errorCode = 1; _this._nestedIterator = null; } value = _this._resumeBody$2(errorCode, errorValue); if (1 === value) return true; if (0 === value) { _this._async$_current = null; suspendedBodies = _this._suspendedBodies; if (suspendedBodies == null || suspendedBodies.length === 0) { _this._body = A._SyncStarIterator__terminatedBody; return false; } _this._body = suspendedBodies.pop(); errorCode = 0; errorValue = null; continue; } if (2 === value) { errorCode = 0; errorValue = null; continue; } if (3 === value) { errorValue = _this._datum; _this._datum = null; suspendedBodies = _this._suspendedBodies; if (suspendedBodies == null || suspendedBodies.length === 0) { _this._async$_current = null; _this._body = A._SyncStarIterator__terminatedBody; throw errorValue; return false; } _this._body = suspendedBodies.pop(); errorCode = 1; continue; } throw A.wrapException(A.StateError$("sync*")); } return false; }, _yieldStar$1(iterable) { var t1, t2, _this = this; if (iterable instanceof A._SyncStarIterable) { t1 = iterable._outerHelper(); t2 = _this._suspendedBodies; if (t2 == null) t2 = _this._suspendedBodies = []; t2.push(_this._body); _this._body = t1; return 2; } else { _this._nestedIterator = J.get$iterator$ax(iterable); return 2; } } }; A._SyncStarIterable.prototype = { get$iterator(_) { return new A._SyncStarIterator(this._outerHelper()); } }; A.AsyncError.prototype = { toString$0(_) { return A.S(this.error); }, $isError: 1, get$stackTrace() { return this.stackTrace; } }; A.Future_wait_handleError.prototype = { call$2(theError, theStackTrace) { var _this = this, t1 = _this._box_0, t2 = --t1.remaining; if (t1.values != null) { t1.values = null; if (t1.remaining === 0 || _this.eagerError) _this._future._completeError$2(theError, theStackTrace); else { _this.error._value = theError; _this.stackTrace._value = theStackTrace; } } else if (t2 === 0 && !_this.eagerError) _this._future._completeError$2(_this.error._readLocal$0(), _this.stackTrace._readLocal$0()); }, $signature: 71 }; A.Future_wait_closure.prototype = { call$1(value) { var valueList, _this = this, t1 = _this._box_0; --t1.remaining; valueList = t1.values; if (valueList != null) { J.$indexSet$ax(valueList, _this.pos, value); if (t1.remaining === 0) _this._future._completeWithValue$1(A.List_List$from(valueList, true, _this.T)); } else if (t1.remaining === 0 && !_this.eagerError) _this._future._completeError$2(_this.error._readLocal$0(), _this.stackTrace._readLocal$0()); }, $signature() { return this.T._eval$1("Null(0)"); } }; A._Completer.prototype = { completeError$2(error, stackTrace) { var replacement; A.checkNotNullable(error, "error", type$.Object); if ((this.future._state & 30) !== 0) throw A.wrapException(A.StateError$("Future already completed")); replacement = $.Zone__current.errorCallback$2(error, stackTrace); if (replacement != null) { error = replacement.error; stackTrace = replacement.stackTrace; } else if (stackTrace == null) stackTrace = A.AsyncError_defaultStackTrace(error); this._completeError$2(error, stackTrace); }, completeError$1(error) { return this.completeError$2(error, null); } }; A._AsyncCompleter.prototype = { complete$1(value) { var t1 = this.future; if ((t1._state & 30) !== 0) throw A.wrapException(A.StateError$("Future already completed")); t1._asyncComplete$1(value); }, complete$0() { return this.complete$1(null); }, _completeError$2(error, stackTrace) { this.future._asyncCompleteError$2(error, stackTrace); } }; A._SyncCompleter.prototype = { complete$1(value) { var t1 = this.future; if ((t1._state & 30) !== 0) throw A.wrapException(A.StateError$("Future already completed")); t1._complete$1(value); }, _completeError$2(error, stackTrace) { this.future._completeError$2(error, stackTrace); } }; A._FutureListener.prototype = { matchesErrorTest$1(asyncError) { if ((this.state & 15) !== 6) return true; return this.result._zone.runUnary$2$2(this.callback, asyncError.error, type$.bool, type$.Object); }, handleError$1(asyncError) { var exception, errorCallback = this.errorCallback, result = null, t1 = type$.dynamic, t2 = type$.Object, t3 = asyncError.error, t4 = this.result._zone; if (type$.dynamic_Function_Object_StackTrace._is(errorCallback)) result = t4.runBinary$3$3(errorCallback, t3, asyncError.stackTrace, t1, t2, type$.StackTrace); else result = t4.runUnary$2$2(errorCallback, t3, t1, t2); try { t1 = result; return t1; } catch (exception) { if (type$.TypeError._is(A.unwrapException(exception))) { if ((this.state & 1) !== 0) throw A.wrapException(A.ArgumentError$("The error handler of Future.then must return a value of the returned future's type", "onError")); throw A.wrapException(A.ArgumentError$("The error handler of Future.catchError must return a value of the future's type", "onError")); } else throw exception; } } }; A._Future.prototype = { _setChained$1(source) { this._state = this._state & 1 | 4; this._resultOrListeners = source; }, then$1$2$onError(_, f, onError, $R) { var result, t1, currentZone = $.Zone__current; if (currentZone === B.C__RootZone) { if (onError != null && !type$.dynamic_Function_Object_StackTrace._is(onError) && !type$.dynamic_Function_Object._is(onError)) throw A.wrapException(A.ArgumentError$value(onError, "onError", string$.Error_)); } else { f = currentZone.registerUnaryCallback$2$1(f, $R._eval$1("0/"), this.$ti._precomputed1); if (onError != null) onError = A._registerErrorHandler(onError, currentZone); } result = new A._Future($.Zone__current, $R._eval$1("_Future<0>")); t1 = onError == null ? 1 : 3; this._addListener$1(new A._FutureListener(result, t1, f, onError, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("_FutureListener<1,2>"))); return result; }, then$1$1($receiver, f, $R) { return this.then$1$2$onError($receiver, f, null, $R); }, _thenAwait$1$2(f, onError, $E) { var result = new A._Future($.Zone__current, $E._eval$1("_Future<0>")); this._addListener$1(new A._FutureListener(result, 3, f, onError, this.$ti._eval$1("@<1>")._bind$1($E)._eval$1("_FutureListener<1,2>"))); return result; }, whenComplete$1(action) { var t1 = this.$ti, t2 = $.Zone__current, result = new A._Future(t2, t1); if (t2 !== B.C__RootZone) action = t2.registerCallback$1$1(action, type$.dynamic); this._addListener$1(new A._FutureListener(result, 8, action, null, t1._eval$1("@<1>")._bind$1(t1._precomputed1)._eval$1("_FutureListener<1,2>"))); return result; }, _setErrorObject$1(error) { this._state = this._state & 1 | 16; this._resultOrListeners = error; }, _cloneResult$1(source) { this._state = source._state & 30 | this._state & 1; this._resultOrListeners = source._resultOrListeners; }, _addListener$1(listener) { var _this = this, t1 = _this._state; if (t1 <= 3) { listener._nextListener = _this._resultOrListeners; _this._resultOrListeners = listener; } else { if ((t1 & 4) !== 0) { t1 = _this._resultOrListeners; if ((t1._state & 24) === 0) { t1._addListener$1(listener); return; } _this._cloneResult$1(t1); } _this._zone.scheduleMicrotask$1(new A._Future__addListener_closure(_this, listener)); } }, _prependListeners$1(listeners) { var t1, existingListeners, next, cursor, next0, _this = this, _box_0 = {}; _box_0.listeners = listeners; if (listeners == null) return; t1 = _this._state; if (t1 <= 3) { existingListeners = _this._resultOrListeners; _this._resultOrListeners = listeners; if (existingListeners != null) { next = listeners._nextListener; for (cursor = listeners; next != null; cursor = next, next = next0) next0 = next._nextListener; cursor._nextListener = existingListeners; } } else { if ((t1 & 4) !== 0) { t1 = _this._resultOrListeners; if ((t1._state & 24) === 0) { t1._prependListeners$1(listeners); return; } _this._cloneResult$1(t1); } _box_0.listeners = _this._reverseListeners$1(listeners); _this._zone.scheduleMicrotask$1(new A._Future__prependListeners_closure(_box_0, _this)); } }, _removeListeners$0() { var current = this._resultOrListeners; this._resultOrListeners = null; return this._reverseListeners$1(current); }, _reverseListeners$1(listeners) { var current, prev, next; for (current = listeners, prev = null; current != null; prev = current, current = next) { next = current._nextListener; current._nextListener = prev; } return prev; }, _chainForeignFuture$1(source) { var e, s, exception, _this = this; _this._state ^= 2; try { source.then$1$2$onError(0, new A._Future__chainForeignFuture_closure(_this), new A._Future__chainForeignFuture_closure0(_this), type$.Null); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); A.scheduleMicrotask(new A._Future__chainForeignFuture_closure1(_this, e, s)); } }, _complete$1(value) { var listeners, _this = this, t1 = _this.$ti; if (t1._eval$1("Future<1>")._is(value)) if (t1._is(value)) A._Future__chainCoreFutureSync(value, _this); else _this._chainForeignFuture$1(value); else { listeners = _this._removeListeners$0(); _this._state = 8; _this._resultOrListeners = value; A._Future__propagateToListeners(_this, listeners); } }, _completeWithValue$1(value) { var _this = this, listeners = _this._removeListeners$0(); _this._state = 8; _this._resultOrListeners = value; A._Future__propagateToListeners(_this, listeners); }, _completeError$2(error, stackTrace) { var listeners = this._removeListeners$0(); this._setErrorObject$1(A.AsyncError$(error, stackTrace)); A._Future__propagateToListeners(this, listeners); }, _asyncComplete$1(value) { if (this.$ti._eval$1("Future<1>")._is(value)) { this._chainFuture$1(value); return; } this._asyncCompleteWithValue$1(value); }, _asyncCompleteWithValue$1(value) { this._state ^= 2; this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteWithValue_closure(this, value)); }, _chainFuture$1(value) { if (this.$ti._is(value)) { A._Future__chainCoreFutureAsync(value, this); return; } this._chainForeignFuture$1(value); }, _asyncCompleteError$2(error, stackTrace) { this._state ^= 2; this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteError_closure(this, error, stackTrace)); }, $isFuture: 1 }; A._Future__addListener_closure.prototype = { call$0() { A._Future__propagateToListeners(this.$this, this.listener); }, $signature: 0 }; A._Future__prependListeners_closure.prototype = { call$0() { A._Future__propagateToListeners(this.$this, this._box_0.listeners); }, $signature: 0 }; A._Future__chainForeignFuture_closure.prototype = { call$1(value) { var error, stackTrace, exception, t1 = this.$this; t1._state ^= 2; try { t1._completeWithValue$1(t1.$ti._precomputed1._as(value)); } catch (exception) { error = A.unwrapException(exception); stackTrace = A.getTraceFromException(exception); t1._completeError$2(error, stackTrace); } }, $signature: 68 }; A._Future__chainForeignFuture_closure0.prototype = { call$2(error, stackTrace) { this.$this._completeError$2(error, stackTrace); }, $signature: 62 }; A._Future__chainForeignFuture_closure1.prototype = { call$0() { this.$this._completeError$2(this.e, this.s); }, $signature: 0 }; A._Future__chainCoreFutureAsync_closure.prototype = { call$0() { A._Future__chainCoreFutureSync(this._box_0.source, this.target); }, $signature: 0 }; A._Future__asyncCompleteWithValue_closure.prototype = { call$0() { this.$this._completeWithValue$1(this.value); }, $signature: 0 }; A._Future__asyncCompleteError_closure.prototype = { call$0() { this.$this._completeError$2(this.error, this.stackTrace); }, $signature: 0 }; A._Future__propagateToListeners_handleWhenCompleteCallback.prototype = { call$0() { var e, s, t1, exception, t2, originalSource, _this = this, completeResult = null; try { t1 = _this._box_0.listener; completeResult = t1.result._zone.run$1$1(0, t1.callback, type$.dynamic); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); t1 = _this.hasError && _this._box_1.source._resultOrListeners.error === e; t2 = _this._box_0; if (t1) t2.listenerValueOrError = _this._box_1.source._resultOrListeners; else t2.listenerValueOrError = A.AsyncError$(e, s); t2.listenerHasError = true; return; } if (completeResult instanceof A._Future && (completeResult._state & 24) !== 0) { if ((completeResult._state & 16) !== 0) { t1 = _this._box_0; t1.listenerValueOrError = completeResult._resultOrListeners; t1.listenerHasError = true; } return; } if (completeResult instanceof A._Future) { originalSource = _this._box_1.source; t1 = _this._box_0; t1.listenerValueOrError = J.then$1$1$x(completeResult, new A._Future__propagateToListeners_handleWhenCompleteCallback_closure(originalSource), type$.dynamic); t1.listenerHasError = false; } }, $signature: 0 }; A._Future__propagateToListeners_handleWhenCompleteCallback_closure.prototype = { call$1(_) { return this.originalSource; }, $signature: 455 }; A._Future__propagateToListeners_handleValueCallback.prototype = { call$0() { var e, s, t1, t2, t3, exception; try { t1 = this._box_0; t2 = t1.listener; t3 = t2.$ti; t1.listenerValueOrError = t2.result._zone.runUnary$2$2(t2.callback, this.sourceResult, t3._eval$1("2/"), t3._precomputed1); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); t1 = this._box_0; t1.listenerValueOrError = A.AsyncError$(e, s); t1.listenerHasError = true; } }, $signature: 0 }; A._Future__propagateToListeners_handleError.prototype = { call$0() { var asyncError, e, s, t1, exception, t2, _this = this; try { asyncError = _this._box_1.source._resultOrListeners; t1 = _this._box_0; if (t1.listener.matchesErrorTest$1(asyncError) && t1.listener.errorCallback != null) { t1.listenerValueOrError = t1.listener.handleError$1(asyncError); t1.listenerHasError = false; } } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); t1 = _this._box_1.source._resultOrListeners; t2 = _this._box_0; if (t1.error === e) t2.listenerValueOrError = t1; else t2.listenerValueOrError = A.AsyncError$(e, s); t2.listenerHasError = true; } }, $signature: 0 }; A._AsyncCallbackEntry.prototype = {}; A.Stream.prototype = { get$isBroadcast() { return false; }, get$length(_) { var t1 = {}, future = new A._Future($.Zone__current, type$._Future_int); t1.count = 0; 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()); return future; } }; A.Stream_Stream$fromFuture_closure.prototype = { call$1(value) { var t1 = this.controller; t1._async$_add$1(value); t1._closeUnchecked$0(); }, $signature() { return this.T._eval$1("Null(0)"); } }; A.Stream_Stream$fromFuture_closure0.prototype = { call$2(error, stackTrace) { var t1 = this.controller; t1._addError$2(error, stackTrace); t1._closeUnchecked$0(); }, $signature: 466 }; A.Stream_length_closure.prototype = { call$1(_) { ++this._box_0.count; }, $signature() { return A._instanceType(this.$this)._eval$1("~(Stream.T)"); } }; A.Stream_length_closure0.prototype = { call$0() { this.future._complete$1(this._box_0.count); }, $signature: 0 }; A._StreamController.prototype = { get$stream() { return new A._ControllerStream(this, A._instanceType(this)._eval$1("_ControllerStream<1>")); }, get$_pendingEvents() { if ((this._state & 8) === 0) return this._varData; return this._varData.varData; }, _ensurePendingEvents$0() { var events, state, _this = this; if ((_this._state & 8) === 0) { events = _this._varData; return events == null ? _this._varData = new A._PendingEvents() : events; } state = _this._varData; events = state.varData; return events == null ? state.varData = new A._PendingEvents() : events; }, get$_subscription() { var varData = this._varData; return (this._state & 8) !== 0 ? varData.varData : varData; }, _badEventState$0() { if ((this._state & 4) !== 0) return new A.StateError("Cannot add event after closing"); return new A.StateError("Cannot add event while adding a stream"); }, addStream$2$cancelOnError(source, cancelOnError) { var t2, t3, t4, _this = this, t1 = _this._state; if (t1 >= 4) throw A.wrapException(_this._badEventState$0()); if ((t1 & 2) !== 0) { t1 = new A._Future($.Zone__current, type$._Future_dynamic); t1._asyncComplete$1(null); return t1; } t1 = _this._varData; t2 = cancelOnError === true; t3 = new A._Future($.Zone__current, type$._Future_dynamic); t4 = t2 ? A._AddStreamState_makeErrorHandler(_this) : _this.get$_addError(); t4 = source.listen$4$cancelOnError$onDone$onError(0, _this.get$_async$_add(), t2, _this.get$_close(), t4); t2 = _this._state; if ((t2 & 1) !== 0 ? (_this.get$_subscription()._state & 4) !== 0 : (t2 & 2) === 0) t4.pause$0(0); _this._varData = new A._StreamControllerAddStreamState(t1, t3, t4); _this._state |= 8; return t3; }, _ensureDoneFuture$0() { var t1 = this._doneFuture; if (t1 == null) t1 = this._doneFuture = (this._state & 2) !== 0 ? $.$get$Future__nullFuture() : new A._Future($.Zone__current, type$._Future_void); return t1; }, add$1(_, value) { if (this._state >= 4) throw A.wrapException(this._badEventState$0()); this._async$_add$1(value); }, addError$2(error, stackTrace) { var replacement; A.checkNotNullable(error, "error", type$.Object); if (this._state >= 4) throw A.wrapException(this._badEventState$0()); replacement = $.Zone__current.errorCallback$2(error, stackTrace); if (replacement != null) { error = replacement.error; stackTrace = replacement.stackTrace; } else if (stackTrace == null) stackTrace = A.AsyncError_defaultStackTrace(error); this._addError$2(error, stackTrace); }, addError$1(error) { return this.addError$2(error, null); }, close$0(_) { var _this = this, t1 = _this._state; if ((t1 & 4) !== 0) return _this._ensureDoneFuture$0(); if (t1 >= 4) throw A.wrapException(_this._badEventState$0()); _this._closeUnchecked$0(); return _this._ensureDoneFuture$0(); }, _closeUnchecked$0() { var t1 = this._state |= 4; if ((t1 & 1) !== 0) this._sendDone$0(); else if ((t1 & 3) === 0) this._ensurePendingEvents$0().add$1(0, B.C__DelayedDone); }, _async$_add$1(value) { var t1 = this._state; if ((t1 & 1) !== 0) this._sendData$1(value); else if ((t1 & 3) === 0) this._ensurePendingEvents$0().add$1(0, new A._DelayedData(value)); }, _addError$2(error, stackTrace) { var t1 = this._state; if ((t1 & 1) !== 0) this._sendError$2(error, stackTrace); else if ((t1 & 3) === 0) this._ensurePendingEvents$0().add$1(0, new A._DelayedError(error, stackTrace)); }, _close$0() { var addState = this._varData; this._varData = addState.varData; this._state &= 4294967287; addState.addStreamFuture._asyncComplete$1(null); }, _subscribe$4(onData, onError, onDone, cancelOnError) { var subscription, pendingEvents, t1, addState, _this = this; if ((_this._state & 3) !== 0) throw A.wrapException(A.StateError$("Stream has already been listened to.")); subscription = A._ControllerSubscription$(_this, onData, onError, onDone, cancelOnError, A._instanceType(_this)._precomputed1); pendingEvents = _this.get$_pendingEvents(); t1 = _this._state |= 1; if ((t1 & 8) !== 0) { addState = _this._varData; addState.varData = subscription; addState.addSubscription.resume$0(0); } else _this._varData = subscription; subscription._setPendingEvents$1(pendingEvents); subscription._guardCallback$1(new A._StreamController__subscribe_closure(_this)); return subscription; }, _recordCancel$1(subscription) { var onCancel, cancelResult, e, s, exception, result0, t1, _this = this, result = null; if ((_this._state & 8) !== 0) result = _this._varData.cancel$0(); _this._varData = null; _this._state = _this._state & 4294967286 | 2; onCancel = _this.onCancel; if (onCancel != null) if (result == null) try { cancelResult = onCancel.call$0(); if (cancelResult instanceof A._Future) result = cancelResult; } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); result0 = new A._Future($.Zone__current, type$._Future_void); result0._asyncCompleteError$2(e, s); result = result0; } else result = result.whenComplete$1(onCancel); t1 = new A._StreamController__recordCancel_complete(_this); if (result != null) result = result.whenComplete$1(t1); else t1.call$0(); return result; }, _recordPause$1(subscription) { if ((this._state & 8) !== 0) this._varData.addSubscription.pause$0(0); A._runGuarded(this.onPause); }, _recordResume$1(subscription) { if ((this._state & 8) !== 0) this._varData.addSubscription.resume$0(0); A._runGuarded(this.onResume); }, $isEventSink: 1, set$onPause(val) { return this.onPause = val; }, set$onResume(val) { return this.onResume = val; }, set$onCancel(val) { return this.onCancel = val; } }; A._StreamController__subscribe_closure.prototype = { call$0() { A._runGuarded(this.$this.onListen); }, $signature: 0 }; A._StreamController__recordCancel_complete.prototype = { call$0() { var doneFuture = this.$this._doneFuture; if (doneFuture != null && (doneFuture._state & 30) === 0) doneFuture._asyncComplete$1(null); }, $signature: 0 }; A._SyncStreamControllerDispatch.prototype = { _sendData$1(data) { this.get$_subscription()._async$_add$1(data); }, _sendError$2(error, stackTrace) { this.get$_subscription()._addError$2(error, stackTrace); }, _sendDone$0() { this.get$_subscription()._close$0(); } }; A._AsyncStreamControllerDispatch.prototype = { _sendData$1(data) { this.get$_subscription()._addPending$1(new A._DelayedData(data)); }, _sendError$2(error, stackTrace) { this.get$_subscription()._addPending$1(new A._DelayedError(error, stackTrace)); }, _sendDone$0() { this.get$_subscription()._addPending$1(B.C__DelayedDone); } }; A._AsyncStreamController.prototype = {}; A._SyncStreamController.prototype = {}; A._ControllerStream.prototype = { get$hashCode(_) { return (A.Primitives_objectHashCode(this._controller) ^ 892482866) >>> 0; }, $eq(_, other) { if (other == null) return false; if (this === other) return true; return other instanceof A._ControllerStream && other._controller === this._controller; } }; A._ControllerSubscription.prototype = { _async$_onCancel$0() { return this._controller._recordCancel$1(this); }, _async$_onPause$0() { this._controller._recordPause$1(this); }, _async$_onResume$0() { this._controller._recordResume$1(this); } }; A._AddStreamState.prototype = { cancel$0() { var cancel = this.addSubscription.cancel$0(); return cancel.whenComplete$1(new A._AddStreamState_cancel_closure(this)); } }; A._AddStreamState_makeErrorHandler_closure.prototype = { call$2(e, s) { var t1 = this.controller; t1._addError$2(e, s); t1._close$0(); }, $signature: 62 }; A._AddStreamState_cancel_closure.prototype = { call$0() { this.$this.addStreamFuture._asyncComplete$1(null); }, $signature: 2 }; A._StreamControllerAddStreamState.prototype = {}; A._BufferingStreamSubscription.prototype = { _setPendingEvents$1(pendingEvents) { var _this = this; if (pendingEvents == null) return; _this._pending = pendingEvents; if (pendingEvents.lastPendingEvent != null) { _this._state = (_this._state | 64) >>> 0; pendingEvents.schedule$1(_this); } }, pause$1(_, resumeSignal) { var t2, t3, _this = this, t1 = _this._state; if ((t1 & 8) !== 0) return; t2 = (t1 + 128 | 4) >>> 0; _this._state = t2; if (t1 < 128) { t3 = _this._pending; if (t3 != null) if (t3._state === 1) t3._state = 3; } if ((t1 & 4) === 0 && (t2 & 32) === 0) _this._guardCallback$1(_this.get$_async$_onPause()); }, pause$0($receiver) { return this.pause$1($receiver, null); }, resume$0(_) { var _this = this, t1 = _this._state; if ((t1 & 8) !== 0) return; if (t1 >= 128) { t1 = _this._state = t1 - 128; if (t1 < 128) if ((t1 & 64) !== 0 && _this._pending.lastPendingEvent != null) _this._pending.schedule$1(_this); else { t1 = (t1 & 4294967291) >>> 0; _this._state = t1; if ((t1 & 32) === 0) _this._guardCallback$1(_this.get$_async$_onResume()); } } }, cancel$0() { var _this = this, t1 = (_this._state & 4294967279) >>> 0; _this._state = t1; if ((t1 & 8) === 0) _this._cancel$0(); t1 = _this._cancelFuture; return t1 == null ? $.$get$Future__nullFuture() : t1; }, _cancel$0() { var t2, _this = this, t1 = _this._state = (_this._state | 8) >>> 0; if ((t1 & 64) !== 0) { t2 = _this._pending; if (t2._state === 1) t2._state = 3; } if ((t1 & 32) === 0) _this._pending = null; _this._cancelFuture = _this._async$_onCancel$0(); }, _async$_add$1(data) { var t1 = this._state; if ((t1 & 8) !== 0) return; if (t1 < 32) this._sendData$1(data); else this._addPending$1(new A._DelayedData(data)); }, _addError$2(error, stackTrace) { var t1 = this._state; if ((t1 & 8) !== 0) return; if (t1 < 32) this._sendError$2(error, stackTrace); else this._addPending$1(new A._DelayedError(error, stackTrace)); }, _close$0() { var _this = this, t1 = _this._state; if ((t1 & 8) !== 0) return; t1 = (t1 | 2) >>> 0; _this._state = t1; if (t1 < 32) _this._sendDone$0(); else _this._addPending$1(B.C__DelayedDone); }, _async$_onPause$0() { }, _async$_onResume$0() { }, _async$_onCancel$0() { return null; }, _addPending$1($event) { var t1, _this = this, pending = _this._pending; if (pending == null) pending = _this._pending = new A._PendingEvents(); pending.add$1(0, $event); t1 = _this._state; if ((t1 & 64) === 0) { t1 = (t1 | 64) >>> 0; _this._state = t1; if (t1 < 128) pending.schedule$1(_this); } }, _sendData$1(data) { var _this = this, t1 = _this._state; _this._state = (t1 | 32) >>> 0; _this._zone.runUnaryGuarded$1$2(_this._onData, data, A._instanceType(_this)._eval$1("_BufferingStreamSubscription.T")); _this._state = (_this._state & 4294967263) >>> 0; _this._checkState$1((t1 & 4) !== 0); }, _sendError$2(error, stackTrace) { var cancelFuture, _this = this, t1 = _this._state, t2 = new A._BufferingStreamSubscription__sendError_sendError(_this, error, stackTrace); if ((t1 & 1) !== 0) { _this._state = (t1 | 16) >>> 0; _this._cancel$0(); cancelFuture = _this._cancelFuture; if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture()) cancelFuture.whenComplete$1(t2); else t2.call$0(); } else { t2.call$0(); _this._checkState$1((t1 & 4) !== 0); } }, _sendDone$0() { var cancelFuture, _this = this, t1 = new A._BufferingStreamSubscription__sendDone_sendDone(_this); _this._cancel$0(); _this._state = (_this._state | 16) >>> 0; cancelFuture = _this._cancelFuture; if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture()) cancelFuture.whenComplete$1(t1); else t1.call$0(); }, _guardCallback$1(callback) { var _this = this, t1 = _this._state; _this._state = (t1 | 32) >>> 0; callback.call$0(); _this._state = (_this._state & 4294967263) >>> 0; _this._checkState$1((t1 & 4) !== 0); }, _checkState$1(wasInputPaused) { var t2, isInputPaused, _this = this, t1 = _this._state; if ((t1 & 64) !== 0 && _this._pending.lastPendingEvent == null) { t1 = _this._state = (t1 & 4294967231) >>> 0; if ((t1 & 4) !== 0) if (t1 < 128) { t2 = _this._pending; t2 = t2 == null ? null : t2.lastPendingEvent == null; t2 = t2 !== false; } else t2 = false; else t2 = false; if (t2) { t1 = (t1 & 4294967291) >>> 0; _this._state = t1; } } for (; true; wasInputPaused = isInputPaused) { if ((t1 & 8) !== 0) { _this._pending = null; return; } isInputPaused = (t1 & 4) !== 0; if (wasInputPaused === isInputPaused) break; _this._state = (t1 ^ 32) >>> 0; if (isInputPaused) _this._async$_onPause$0(); else _this._async$_onResume$0(); t1 = (_this._state & 4294967263) >>> 0; _this._state = t1; } if ((t1 & 64) !== 0 && t1 < 128) _this._pending.schedule$1(_this); }, $isStreamSubscription: 1 }; A._BufferingStreamSubscription__sendError_sendError.prototype = { call$0() { var onError, t3, t4, t1 = this.$this, t2 = t1._state; if ((t2 & 8) !== 0 && (t2 & 16) === 0) return; t1._state = (t2 | 32) >>> 0; onError = t1._onError; t2 = this.error; t3 = type$.Object; t4 = t1._zone; if (type$.void_Function_Object_StackTrace._is(onError)) t4.runBinaryGuarded$2$3(onError, t2, this.stackTrace, t3, type$.StackTrace); else t4.runUnaryGuarded$1$2(onError, t2, t3); t1._state = (t1._state & 4294967263) >>> 0; }, $signature: 0 }; A._BufferingStreamSubscription__sendDone_sendDone.prototype = { call$0() { var t1 = this.$this, t2 = t1._state; if ((t2 & 16) === 0) return; t1._state = (t2 | 42) >>> 0; t1._zone.runGuarded$1(t1._onDone); t1._state = (t1._state & 4294967263) >>> 0; }, $signature: 0 }; A._StreamImpl.prototype = { listen$4$cancelOnError$onDone$onError(_, onData, cancelOnError, onDone, onError) { return this._controller._subscribe$4(onData, onError, onDone, cancelOnError === true); }, listen$1($receiver, onData) { return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, null, null); }, listen$3$onDone$onError($receiver, onData, onDone, onError) { return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, onDone, onError); } }; A._DelayedEvent.prototype = { get$next() { return this.next; }, set$next(val) { return this.next = val; } }; A._DelayedData.prototype = { perform$1(dispatch) { dispatch._sendData$1(this.value); } }; A._DelayedError.prototype = { perform$1(dispatch) { dispatch._sendError$2(this.error, this.stackTrace); } }; A._DelayedDone.prototype = { perform$1(dispatch) { dispatch._sendDone$0(); }, get$next() { return null; }, set$next(_) { throw A.wrapException(A.StateError$("No events after a done.")); } }; A._PendingEvents.prototype = { schedule$1(dispatch) { var _this = this, t1 = _this._state; if (t1 === 1) return; if (t1 >= 1) { _this._state = 1; return; } A.scheduleMicrotask(new A._PendingEvents_schedule_closure(_this, dispatch)); _this._state = 1; }, add$1(_, $event) { var _this = this, lastEvent = _this.lastPendingEvent; if (lastEvent == null) _this.firstPendingEvent = _this.lastPendingEvent = $event; else { lastEvent.set$next($event); _this.lastPendingEvent = $event; } } }; A._PendingEvents_schedule_closure.prototype = { call$0() { var $event, nextEvent, t1 = this.$this, oldState = t1._state; t1._state = 0; if (oldState === 3) return; $event = t1.firstPendingEvent; nextEvent = $event.get$next(); t1.firstPendingEvent = nextEvent; if (nextEvent == null) t1.lastPendingEvent = null; $event.perform$1(this.dispatch); }, $signature: 0 }; A._StreamIterator.prototype = { get$current(_) { if (this._async$_hasValue) return this._stateData; return null; }, moveNext$0() { var future, _this = this, subscription = _this._subscription; if (subscription != null) { if (_this._async$_hasValue) { future = new A._Future($.Zone__current, type$._Future_bool); _this._stateData = future; _this._async$_hasValue = false; subscription.resume$0(0); return future; } throw A.wrapException(A.StateError$("Already waiting for next.")); } return _this._initializeOrDone$0(); }, _initializeOrDone$0() { var future, subscription, _this = this, stateData = _this._stateData; if (stateData != null) { future = new A._Future($.Zone__current, type$._Future_bool); _this._stateData = future; subscription = stateData.listen$4$cancelOnError$onDone$onError(0, _this.get$_onData(), true, _this.get$_onDone(), _this.get$_onError()); if (_this._stateData != null) _this._subscription = subscription; return future; } return $.$get$Future__falseFuture(); }, cancel$0() { var _this = this, subscription = _this._subscription, stateData = _this._stateData; _this._stateData = null; if (subscription != null) { _this._subscription = null; if (!_this._async$_hasValue) stateData._asyncComplete$1(false); else _this._async$_hasValue = false; return subscription.cancel$0(); } return $.$get$Future__nullFuture(); }, _onData$1(data) { var moveNextFuture, t1, _this = this; if (_this._subscription == null) return; moveNextFuture = _this._stateData; _this._stateData = data; _this._async$_hasValue = true; moveNextFuture._complete$1(true); if (_this._async$_hasValue) { t1 = _this._subscription; if (t1 != null) t1.pause$0(0); } }, _onError$2(error, stackTrace) { var _this = this, subscription = _this._subscription, moveNextFuture = _this._stateData; _this._stateData = _this._subscription = null; if (subscription != null) moveNextFuture._completeError$2(error, stackTrace); else moveNextFuture._asyncCompleteError$2(error, stackTrace); }, _onDone$0() { var _this = this, subscription = _this._subscription, moveNextFuture = _this._stateData; _this._stateData = _this._subscription = null; if (subscription != null) moveNextFuture._completeWithValue$1(false); else moveNextFuture._asyncCompleteWithValue$1(false); } }; A._ForwardingStream.prototype = { get$isBroadcast() { return this._async$_source.get$isBroadcast(); }, listen$4$cancelOnError$onDone$onError(_, onData, cancelOnError, onDone, onError) { var t1 = this.$ti, t2 = t1._rest[1], t3 = $.Zone__current, t4 = cancelOnError === true ? 1 : 0, t5 = A._BufferingStreamSubscription__registerDataHandler(t3, onData, t2), t6 = A._BufferingStreamSubscription__registerErrorHandler(t3, onError), t7 = onDone == null ? A.async___nullDoneHandler$closure() : onDone; t2 = new A._ForwardingStreamSubscription(this, t5, t6, t3.registerCallback$1$1(t7, type$.void), t3, t4, t1._eval$1("@<1>")._bind$1(t2)._eval$1("_ForwardingStreamSubscription<1,2>")); t2._subscription = this._async$_source.listen$3$onDone$onError(0, t2.get$_handleData(), t2.get$_handleDone(), t2.get$_handleError()); return t2; }, listen$1($receiver, onData) { return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, null, null); }, listen$3$onDone$onError($receiver, onData, onDone, onError) { return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, onDone, onError); } }; A._ForwardingStreamSubscription.prototype = { _async$_add$1(data) { if ((this._state & 2) !== 0) return; this.super$_BufferingStreamSubscription$_add(data); }, _addError$2(error, stackTrace) { if ((this._state & 2) !== 0) return; this.super$_BufferingStreamSubscription$_addError(error, stackTrace); }, _async$_onPause$0() { var t1 = this._subscription; if (t1 != null) t1.pause$0(0); }, _async$_onResume$0() { var t1 = this._subscription; if (t1 != null) t1.resume$0(0); }, _async$_onCancel$0() { var subscription = this._subscription; if (subscription != null) { this._subscription = null; return subscription.cancel$0(); } return null; }, _handleData$1(data) { this._stream._handleData$2(data, this); }, _handleError$2(error, stackTrace) { this._addError$2(error, stackTrace); }, _handleDone$0() { this._close$0(); } }; A._ExpandStream.prototype = { _handleData$2(inputEvent, sink) { var value, e, s, t1, exception, error, stackTrace, replacement; try { for (t1 = J.get$iterator$ax(this._expand.call$1(inputEvent)); t1.moveNext$0();) { value = t1.get$current(t1); sink._async$_add$1(value); } } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); error = e; stackTrace = s; replacement = $.Zone__current.errorCallback$2(error, stackTrace); if (replacement != null) { error = replacement.error; stackTrace = replacement.stackTrace; } sink._addError$2(error, stackTrace); } } }; A._ZoneFunction.prototype = {}; A._ZoneSpecification.prototype = {$isZoneSpecification: 1}; A._ZoneDelegate.prototype = {$isZoneDelegate: 1}; A._Zone.prototype = { _processUncaughtError$3(zone, error, stackTrace) { var handler, parentDelegate, parentZone, currentZone, e, s, t1, exception, implementation = this.get$_handleUncaughtError(), implZone = implementation.zone; if (implZone === B.C__RootZone) { A._rootHandleError(error, stackTrace); return; } handler = implementation.$function; parentDelegate = implZone.get$_parentDelegate(); t1 = J.get$parent$z(implZone); t1.toString; parentZone = t1; currentZone = $.Zone__current; try { $.Zone__current = parentZone; handler.call$5(implZone, parentDelegate, zone, error, stackTrace); $.Zone__current = currentZone; } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); $.Zone__current = currentZone; t1 = error === e ? stackTrace : s; parentZone._processUncaughtError$3(implZone, e, t1); } }, $isZone: 1 }; A._CustomZone.prototype = { get$_delegate() { var t1 = this._delegateCache; return t1 == null ? this._delegateCache = new A._ZoneDelegate(this) : t1; }, get$_parentDelegate() { return this.parent.get$_delegate(); }, get$errorZone() { return this._handleUncaughtError.zone; }, runGuarded$1(f) { var e, s, exception; try { this.run$1$1(0, f, type$.void); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); this._processUncaughtError$3(this, e, s); } }, runUnaryGuarded$1$2(f, arg, $T) { var e, s, exception; try { this.runUnary$2$2(f, arg, type$.void, $T); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); this._processUncaughtError$3(this, e, s); } }, runBinaryGuarded$2$3(f, arg1, arg2, T1, T2) { var e, s, exception; try { this.runBinary$3$3(f, arg1, arg2, type$.void, T1, T2); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); this._processUncaughtError$3(this, e, s); } }, bindCallback$1$1(f, $R) { return new A._CustomZone_bindCallback_closure(this, this.registerCallback$1$1(f, $R), $R); }, bindUnaryCallback$2$1(f, $R, $T) { return new A._CustomZone_bindUnaryCallback_closure(this, this.registerUnaryCallback$2$1(f, $R, $T), $T, $R); }, bindCallbackGuarded$1(f) { return new A._CustomZone_bindCallbackGuarded_closure(this, this.registerCallback$1$1(f, type$.void)); }, $index(_, key) { var value, t1 = this._async$_map, result = t1.$index(0, key); if (result != null || t1.containsKey$1(key)) return result; value = this.parent.$index(0, key); if (value != null) t1.$indexSet(0, key, value); return value; }, handleUncaughtError$2(error, stackTrace) { this._processUncaughtError$3(this, error, stackTrace); }, fork$2$specification$zoneValues(specification, zoneValues) { var implementation = this._fork, t1 = implementation.zone; return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, specification, zoneValues); }, run$1$1(_, f) { var implementation = this._run, t1 = implementation.zone; return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f); }, runUnary$2$2(f, arg) { var implementation = this._runUnary, t1 = implementation.zone; return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, f, arg); }, runBinary$3$3(f, arg1, arg2) { var implementation = this._runBinary, t1 = implementation.zone; return implementation.$function.call$6(t1, t1.get$_parentDelegate(), this, f, arg1, arg2); }, registerCallback$1$1(callback) { var implementation = this._registerCallback, t1 = implementation.zone; return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback); }, registerUnaryCallback$2$1(callback) { var implementation = this._registerUnaryCallback, t1 = implementation.zone; return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback); }, registerBinaryCallback$3$1(callback) { var implementation = this._registerBinaryCallback, t1 = implementation.zone; return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback); }, errorCallback$2(error, stackTrace) { var implementation, implementationZone; A.checkNotNullable(error, "error", type$.Object); implementation = this._errorCallback; implementationZone = implementation.zone; if (implementationZone === B.C__RootZone) return null; return implementation.$function.call$5(implementationZone, implementationZone.get$_parentDelegate(), this, error, stackTrace); }, scheduleMicrotask$1(f) { var implementation = this._scheduleMicrotask, t1 = implementation.zone; return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f); }, createTimer$2(duration, f) { var implementation = this._createTimer, t1 = implementation.zone; return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, duration, f); }, print$1(line) { var implementation = this._print, t1 = implementation.zone; return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, line); }, get$_run() { return this._run; }, get$_runUnary() { return this._runUnary; }, get$_runBinary() { return this._runBinary; }, get$_registerCallback() { return this._registerCallback; }, get$_registerUnaryCallback() { return this._registerUnaryCallback; }, get$_registerBinaryCallback() { return this._registerBinaryCallback; }, get$_errorCallback() { return this._errorCallback; }, get$_scheduleMicrotask() { return this._scheduleMicrotask; }, get$_createTimer() { return this._createTimer; }, get$_createPeriodicTimer() { return this._createPeriodicTimer; }, get$_print() { return this._print; }, get$_fork() { return this._fork; }, get$_handleUncaughtError() { return this._handleUncaughtError; }, get$parent(receiver) { return this.parent; }, get$_async$_map() { return this._async$_map; } }; A._CustomZone_bindCallback_closure.prototype = { call$0() { return this.$this.run$1$1(0, this.registered, this.R); }, $signature() { return this.R._eval$1("0()"); } }; A._CustomZone_bindUnaryCallback_closure.prototype = { call$1(arg) { var _this = this; return _this.$this.runUnary$2$2(_this.registered, arg, _this.R, _this.T); }, $signature() { return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)"); } }; A._CustomZone_bindCallbackGuarded_closure.prototype = { call$0() { return this.$this.runGuarded$1(this.registered); }, $signature: 0 }; A._rootHandleError_closure.prototype = { call$0() { A.Error_throwWithStackTrace(this.error, this.stackTrace); }, $signature: 0 }; A._RootZone.prototype = { get$_run() { return B._ZoneFunction__RootZone__rootRun; }, get$_runUnary() { return B._ZoneFunction__RootZone__rootRunUnary; }, get$_runBinary() { return B._ZoneFunction__RootZone__rootRunBinary; }, get$_registerCallback() { return B._ZoneFunction__RootZone__rootRegisterCallback; }, get$_registerUnaryCallback() { return B._ZoneFunction_Eeh; }, get$_registerBinaryCallback() { return B._ZoneFunction_7G2; }, get$_errorCallback() { return B._ZoneFunction__RootZone__rootErrorCallback; }, get$_scheduleMicrotask() { return B._ZoneFunction__RootZone__rootScheduleMicrotask; }, get$_createTimer() { return B._ZoneFunction__RootZone__rootCreateTimer; }, get$_createPeriodicTimer() { return B._ZoneFunction_3bB; }, get$_print() { return B._ZoneFunction__RootZone__rootPrint; }, get$_fork() { return B._ZoneFunction__RootZone__rootFork; }, get$_handleUncaughtError() { return B._ZoneFunction_NMc; }, get$parent(_) { return null; }, get$_async$_map() { return $.$get$_RootZone__rootMap(); }, get$_delegate() { var t1 = $._RootZone__rootDelegate; return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1; }, get$_parentDelegate() { var t1 = $._RootZone__rootDelegate; return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1; }, get$errorZone() { return this; }, runGuarded$1(f) { var e, s, exception; try { if (B.C__RootZone === $.Zone__current) { f.call$0(); return; } A._rootRun(null, null, this, f); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); A._rootHandleError(e, s); } }, runUnaryGuarded$1$2(f, arg) { var e, s, exception; try { if (B.C__RootZone === $.Zone__current) { f.call$1(arg); return; } A._rootRunUnary(null, null, this, f, arg); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); A._rootHandleError(e, s); } }, runBinaryGuarded$2$3(f, arg1, arg2) { var e, s, exception; try { if (B.C__RootZone === $.Zone__current) { f.call$2(arg1, arg2); return; } A._rootRunBinary(null, null, this, f, arg1, arg2); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); A._rootHandleError(e, s); } }, bindCallback$1$1(f, $R) { return new A._RootZone_bindCallback_closure(this, f, $R); }, bindUnaryCallback$2$1(f, $R, $T) { return new A._RootZone_bindUnaryCallback_closure(this, f, $T, $R); }, bindCallbackGuarded$1(f) { return new A._RootZone_bindCallbackGuarded_closure(this, f); }, $index(_, key) { return null; }, handleUncaughtError$2(error, stackTrace) { A._rootHandleError(error, stackTrace); }, fork$2$specification$zoneValues(specification, zoneValues) { return A._rootFork(null, null, this, specification, zoneValues); }, run$1$1(_, f) { if ($.Zone__current === B.C__RootZone) return f.call$0(); return A._rootRun(null, null, this, f); }, runUnary$2$2(f, arg) { if ($.Zone__current === B.C__RootZone) return f.call$1(arg); return A._rootRunUnary(null, null, this, f, arg); }, runBinary$3$3(f, arg1, arg2) { if ($.Zone__current === B.C__RootZone) return f.call$2(arg1, arg2); return A._rootRunBinary(null, null, this, f, arg1, arg2); }, registerCallback$1$1(f) { return f; }, registerUnaryCallback$2$1(f) { return f; }, registerBinaryCallback$3$1(f) { return f; }, errorCallback$2(error, stackTrace) { return null; }, scheduleMicrotask$1(f) { A._rootScheduleMicrotask(null, null, this, f); }, createTimer$2(duration, f) { return A.Timer__createTimer(duration, f); }, print$1(line) { A.printString(line); } }; A._RootZone_bindCallback_closure.prototype = { call$0() { return this.$this.run$1$1(0, this.f, this.R); }, $signature() { return this.R._eval$1("0()"); } }; A._RootZone_bindUnaryCallback_closure.prototype = { call$1(arg) { var _this = this; return _this.$this.runUnary$2$2(_this.f, arg, _this.R, _this.T); }, $signature() { return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)"); } }; A._RootZone_bindCallbackGuarded_closure.prototype = { call$0() { return this.$this.runGuarded$1(this.f); }, $signature: 0 }; A._HashMap.prototype = { get$length(_) { return this._collection$_length; }, get$isEmpty(_) { return this._collection$_length === 0; }, get$isNotEmpty(_) { return this._collection$_length !== 0; }, get$keys(_) { return new A._HashMapKeyIterable(this, A._instanceType(this)._eval$1("_HashMapKeyIterable<1>")); }, get$values(_) { var t1 = A._instanceType(this); return A.MappedIterable_MappedIterable(new A._HashMapKeyIterable(this, t1._eval$1("_HashMapKeyIterable<1>")), new A._HashMap_values_closure(this), t1._precomputed1, t1._rest[1]); }, containsKey$1(key) { var strings, nums; if (typeof key == "string" && key !== "__proto__") { strings = this._collection$_strings; return strings == null ? false : strings[key] != null; } else if (typeof key == "number" && (key & 1073741823) === key) { nums = this._collection$_nums; return nums == null ? false : nums[key] != null; } else return this._containsKey$1(key); }, _containsKey$1(key) { var rest = this._collection$_rest; if (rest == null) return false; return this._findBucketIndex$2(this._getBucket$2(rest, key), key) >= 0; }, addAll$1(_, other) { other.forEach$1(0, new A._HashMap_addAll_closure(this)); }, $index(_, key) { var strings, t1, nums; if (typeof key == "string" && key !== "__proto__") { strings = this._collection$_strings; t1 = strings == null ? null : A._HashMap__getTableEntry(strings, key); return t1; } else if (typeof key == "number" && (key & 1073741823) === key) { nums = this._collection$_nums; t1 = nums == null ? null : A._HashMap__getTableEntry(nums, key); return t1; } else return this._get$1(key); }, _get$1(key) { var bucket, index, rest = this._collection$_rest; if (rest == null) return null; bucket = this._getBucket$2(rest, key); index = this._findBucketIndex$2(bucket, key); return index < 0 ? null : bucket[index + 1]; }, $indexSet(_, key, value) { var strings, nums, _this = this; if (typeof key == "string" && key !== "__proto__") { strings = _this._collection$_strings; _this._collection$_addHashTableEntry$3(strings == null ? _this._collection$_strings = A._HashMap__newHashTable() : strings, key, value); } else if (typeof key == "number" && (key & 1073741823) === key) { nums = _this._collection$_nums; _this._collection$_addHashTableEntry$3(nums == null ? _this._collection$_nums = A._HashMap__newHashTable() : nums, key, value); } else _this._set$2(key, value); }, _set$2(key, value) { var hash, bucket, index, _this = this, rest = _this._collection$_rest; if (rest == null) rest = _this._collection$_rest = A._HashMap__newHashTable(); hash = _this._computeHashCode$1(key); bucket = rest[hash]; if (bucket == null) { A._HashMap__setTableEntry(rest, hash, [key, value]); ++_this._collection$_length; _this._collection$_keys = null; } else { index = _this._findBucketIndex$2(bucket, key); if (index >= 0) bucket[index + 1] = value; else { bucket.push(key, value); ++_this._collection$_length; _this._collection$_keys = null; } } }, remove$1(_, key) { var _this = this; if (typeof key == "string" && key !== "__proto__") return _this._removeHashTableEntry$2(_this._collection$_strings, key); else if (typeof key == "number" && (key & 1073741823) === key) return _this._removeHashTableEntry$2(_this._collection$_nums, key); else return _this._remove$1(key); }, _remove$1(key) { var hash, bucket, index, result, _this = this, rest = _this._collection$_rest; if (rest == null) return null; hash = _this._computeHashCode$1(key); bucket = rest[hash]; index = _this._findBucketIndex$2(bucket, key); if (index < 0) return null; --_this._collection$_length; _this._collection$_keys = null; result = bucket.splice(index, 2)[1]; if (0 === bucket.length) delete rest[hash]; return result; }, forEach$1(_, action) { var $length, t1, i, key, t2, _this = this, keys = _this._computeKeys$0(); for ($length = keys.length, t1 = A._instanceType(_this)._rest[1], i = 0; i < $length; ++i) { key = keys[i]; t2 = _this.$index(0, key); action.call$2(key, t2 == null ? t1._as(t2) : t2); if (keys !== _this._collection$_keys) throw A.wrapException(A.ConcurrentModificationError$(_this)); } }, _computeKeys$0() { var strings, names, entries, index, i, nums, rest, bucket, $length, i0, _this = this, result = _this._collection$_keys; if (result != null) return result; result = A.List_List$filled(_this._collection$_length, null, false, type$.dynamic); strings = _this._collection$_strings; if (strings != null) { names = Object.getOwnPropertyNames(strings); entries = names.length; for (index = 0, i = 0; i < entries; ++i) { result[index] = names[i]; ++index; } } else index = 0; nums = _this._collection$_nums; if (nums != null) { names = Object.getOwnPropertyNames(nums); entries = names.length; for (i = 0; i < entries; ++i) { result[index] = +names[i]; ++index; } } rest = _this._collection$_rest; if (rest != null) { names = Object.getOwnPropertyNames(rest); entries = names.length; for (i = 0; i < entries; ++i) { bucket = rest[names[i]]; $length = bucket.length; for (i0 = 0; i0 < $length; i0 += 2) { result[index] = bucket[i0]; ++index; } } } return _this._collection$_keys = result; }, _collection$_addHashTableEntry$3(table, key, value) { if (table[key] == null) { ++this._collection$_length; this._collection$_keys = null; } A._HashMap__setTableEntry(table, key, value); }, _removeHashTableEntry$2(table, key) { var value; if (table != null && table[key] != null) { value = A._HashMap__getTableEntry(table, key); delete table[key]; --this._collection$_length; this._collection$_keys = null; return value; } else return null; }, _computeHashCode$1(key) { return J.get$hashCode$(key) & 1073741823; }, _getBucket$2(table, key) { return table[this._computeHashCode$1(key)]; }, _findBucketIndex$2(bucket, key) { var $length, i; if (bucket == null) return -1; $length = bucket.length; for (i = 0; i < $length; i += 2) if (J.$eq$(bucket[i], key)) return i; return -1; } }; A._HashMap_values_closure.prototype = { call$1(each) { var t1 = this.$this, t2 = t1.$index(0, each); return t2 == null ? A._instanceType(t1)._rest[1]._as(t2) : t2; }, $signature() { return A._instanceType(this.$this)._eval$1("2(1)"); } }; A._HashMap_addAll_closure.prototype = { call$2(key, value) { this.$this.$indexSet(0, key, value); }, $signature() { return A._instanceType(this.$this)._eval$1("~(1,2)"); } }; A._IdentityHashMap.prototype = { _computeHashCode$1(key) { return A.objectHashCode(key) & 1073741823; }, _findBucketIndex$2(bucket, key) { var $length, i, t1; if (bucket == null) return -1; $length = bucket.length; for (i = 0; i < $length; i += 2) { t1 = bucket[i]; if (t1 == null ? key == null : t1 === key) return i; } return -1; } }; A._HashMapKeyIterable.prototype = { get$length(_) { return this._map._collection$_length; }, get$isEmpty(_) { return this._map._collection$_length === 0; }, get$isNotEmpty(_) { return this._map._collection$_length !== 0; }, get$iterator(_) { var t1 = this._map; return new A._HashMapKeyIterator(t1, t1._computeKeys$0()); }, contains$1(_, element) { return this._map.containsKey$1(element); } }; A._HashMapKeyIterator.prototype = { get$current(_) { var t1 = this._collection$_current; return t1 == null ? A._instanceType(this)._precomputed1._as(t1) : t1; }, moveNext$0() { var _this = this, keys = _this._collection$_keys, offset = _this._offset, t1 = _this._map; if (keys !== t1._collection$_keys) throw A.wrapException(A.ConcurrentModificationError$(t1)); else if (offset >= keys.length) { _this._collection$_current = null; return false; } else { _this._collection$_current = keys[offset]; _this._offset = offset + 1; return true; } } }; A._LinkedCustomHashMap.prototype = { $index(_, key) { if (!this._validKey.call$1(key)) return null; return this.super$JsLinkedHashMap$internalGet(key); }, $indexSet(_, key, value) { this.super$JsLinkedHashMap$internalSet(key, value); }, containsKey$1(key) { if (!this._validKey.call$1(key)) return false; return this.super$JsLinkedHashMap$internalContainsKey(key); }, remove$1(_, key) { if (!this._validKey.call$1(key)) return null; return this.super$JsLinkedHashMap$internalRemove(key); }, internalComputeHashCode$1(key) { return this._hashCode.call$1(key) & 1073741823; }, internalFindBucketIndex$2(bucket, key) { var $length, t1, i; if (bucket == null) return -1; $length = bucket.length; for (t1 = this._equals, i = 0; i < $length; ++i) if (t1.call$2(bucket[i].hashMapCellKey, key)) return i; return -1; } }; A._LinkedCustomHashMap_closure.prototype = { call$1(v) { return this.K._is(v); }, $signature: 122 }; A._LinkedHashSet.prototype = { _newSet$0() { return new A._LinkedHashSet(A._instanceType(this)._eval$1("_LinkedHashSet<1>")); }, _newSimilarSet$1$0($R) { return new A._LinkedHashSet($R._eval$1("_LinkedHashSet<0>")); }, _newSimilarSet$0() { return this._newSimilarSet$1$0(type$.dynamic); }, get$iterator(_) { var t1 = new A._LinkedHashSetIterator(this, this._collection$_modifications); t1._collection$_cell = this._collection$_first; return t1; }, get$length(_) { return this._collection$_length; }, get$isEmpty(_) { return this._collection$_length === 0; }, get$isNotEmpty(_) { return this._collection$_length !== 0; }, contains$1(_, object) { var strings, nums; if (typeof object == "string" && object !== "__proto__") { strings = this._collection$_strings; if (strings == null) return false; return strings[object] != null; } else if (typeof object == "number" && (object & 1073741823) === object) { nums = this._collection$_nums; if (nums == null) return false; return nums[object] != null; } else return this._contains$1(object); }, _contains$1(object) { var rest = this._collection$_rest; if (rest == null) return false; return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0; }, get$first(_) { var first = this._collection$_first; if (first == null) throw A.wrapException(A.StateError$("No elements")); return first._element; }, get$last(_) { var last = this._collection$_last; if (last == null) throw A.wrapException(A.StateError$("No elements")); return last._element; }, add$1(_, element) { var strings, nums, _this = this; if (typeof element == "string" && element !== "__proto__") { strings = _this._collection$_strings; return _this._collection$_addHashTableEntry$2(strings == null ? _this._collection$_strings = A._LinkedHashSet__newHashTable() : strings, element); } else if (typeof element == "number" && (element & 1073741823) === element) { nums = _this._collection$_nums; return _this._collection$_addHashTableEntry$2(nums == null ? _this._collection$_nums = A._LinkedHashSet__newHashTable() : nums, element); } else return _this._add$1(element); }, _add$1(element) { var hash, bucket, _this = this, rest = _this._collection$_rest; if (rest == null) rest = _this._collection$_rest = A._LinkedHashSet__newHashTable(); hash = _this._computeHashCode$1(element); bucket = rest[hash]; if (bucket == null) rest[hash] = [_this._collection$_newLinkedCell$1(element)]; else { if (_this._findBucketIndex$2(bucket, element) >= 0) return false; bucket.push(_this._collection$_newLinkedCell$1(element)); } return true; }, remove$1(_, object) { var _this = this; if (typeof object == "string" && object !== "__proto__") return _this._removeHashTableEntry$2(_this._collection$_strings, object); else if (typeof object == "number" && (object & 1073741823) === object) return _this._removeHashTableEntry$2(_this._collection$_nums, object); else return _this._remove$1(object); }, _remove$1(object) { var hash, bucket, index, cell, _this = this, rest = _this._collection$_rest; if (rest == null) return false; hash = _this._computeHashCode$1(object); bucket = rest[hash]; index = _this._findBucketIndex$2(bucket, object); if (index < 0) return false; cell = bucket.splice(index, 1)[0]; if (0 === bucket.length) delete rest[hash]; _this._unlinkCell$1(cell); return true; }, _collection$_addHashTableEntry$2(table, element) { if (table[element] != null) return false; table[element] = this._collection$_newLinkedCell$1(element); return true; }, _removeHashTableEntry$2(table, element) { var cell; if (table == null) return false; cell = table[element]; if (cell == null) return false; this._unlinkCell$1(cell); delete table[element]; return true; }, _collection$_modified$0() { this._collection$_modifications = this._collection$_modifications + 1 & 1073741823; }, _collection$_newLinkedCell$1(element) { var t1, _this = this, cell = new A._LinkedHashSetCell(element); if (_this._collection$_first == null) _this._collection$_first = _this._collection$_last = cell; else { t1 = _this._collection$_last; t1.toString; cell._collection$_previous = t1; _this._collection$_last = t1._collection$_next = cell; } ++_this._collection$_length; _this._collection$_modified$0(); return cell; }, _unlinkCell$1(cell) { var _this = this, previous = cell._collection$_previous, next = cell._collection$_next; if (previous == null) _this._collection$_first = next; else previous._collection$_next = next; if (next == null) _this._collection$_last = previous; else next._collection$_previous = previous; --_this._collection$_length; _this._collection$_modified$0(); }, _computeHashCode$1(element) { return J.get$hashCode$(element) & 1073741823; }, _findBucketIndex$2(bucket, element) { var $length, i; if (bucket == null) return -1; $length = bucket.length; for (i = 0; i < $length; ++i) if (J.$eq$(bucket[i]._element, element)) return i; return -1; } }; A._LinkedIdentityHashSet.prototype = { _newSet$0() { return new A._LinkedIdentityHashSet(this.$ti); }, _newSimilarSet$1$0($R) { return new A._LinkedIdentityHashSet($R._eval$1("_LinkedIdentityHashSet<0>")); }, _newSimilarSet$0() { return this._newSimilarSet$1$0(type$.dynamic); }, _computeHashCode$1(key) { return A.objectHashCode(key) & 1073741823; }, _findBucketIndex$2(bucket, element) { var $length, i, t1; if (bucket == null) return -1; $length = bucket.length; for (i = 0; i < $length; ++i) { t1 = bucket[i]._element; if (t1 == null ? element == null : t1 === element) return i; } return -1; } }; A._LinkedHashSetCell.prototype = {}; A._LinkedHashSetIterator.prototype = { get$current(_) { var t1 = this._collection$_current; return t1 == null ? A._instanceType(this)._precomputed1._as(t1) : t1; }, moveNext$0() { var _this = this, cell = _this._collection$_cell, t1 = _this._set; if (_this._collection$_modifications !== t1._collection$_modifications) throw A.wrapException(A.ConcurrentModificationError$(t1)); else if (cell == null) { _this._collection$_current = null; return false; } else { _this._collection$_current = cell._element; _this._collection$_cell = cell._collection$_next; return true; } } }; A.UnmodifiableListView.prototype = { cast$1$0(_, $R) { return new A.UnmodifiableListView(J.cast$1$0$ax(this._collection$_source, $R), $R._eval$1("UnmodifiableListView<0>")); }, get$length(_) { return J.get$length$asx(this._collection$_source); }, $index(_, index) { return J.elementAt$1$ax(this._collection$_source, index); } }; A.HashMap_HashMap$from_closure.prototype = { call$2(k, v) { this.result.$indexSet(0, this.K._as(k), this.V._as(v)); }, $signature: 256 }; A.LinkedHashMap_LinkedHashMap$from_closure.prototype = { call$2(k, v) { this.result.$indexSet(0, this.K._as(k), this.V._as(v)); }, $signature: 256 }; A.ListBase.prototype = { get$iterator(receiver) { return new A.ListIterator(receiver, this.get$length(receiver)); }, elementAt$1(receiver, index) { return this.$index(receiver, index); }, forEach$1(receiver, action) { var i, $length = this.get$length(receiver); for (i = 0; i < $length; ++i) { action.call$1(this.$index(receiver, i)); if ($length !== this.get$length(receiver)) throw A.wrapException(A.ConcurrentModificationError$(receiver)); } }, get$isEmpty(receiver) { return this.get$length(receiver) === 0; }, get$isNotEmpty(receiver) { return !this.get$isEmpty(receiver); }, get$first(receiver) { if (this.get$length(receiver) === 0) throw A.wrapException(A.IterableElementError_noElement()); return this.$index(receiver, 0); }, get$last(receiver) { if (this.get$length(receiver) === 0) throw A.wrapException(A.IterableElementError_noElement()); return this.$index(receiver, this.get$length(receiver) - 1); }, get$single(receiver) { if (this.get$length(receiver) === 0) throw A.wrapException(A.IterableElementError_noElement()); if (this.get$length(receiver) > 1) throw A.wrapException(A.IterableElementError_tooMany()); return this.$index(receiver, 0); }, contains$1(receiver, element) { var i, $length = this.get$length(receiver); for (i = 0; i < $length; ++i) { if (J.$eq$(this.$index(receiver, i), element)) return true; if ($length !== this.get$length(receiver)) throw A.wrapException(A.ConcurrentModificationError$(receiver)); } return false; }, every$1(receiver, test) { var i, $length = this.get$length(receiver); for (i = 0; i < $length; ++i) { if (!test.call$1(this.$index(receiver, i))) return false; if ($length !== this.get$length(receiver)) throw A.wrapException(A.ConcurrentModificationError$(receiver)); } return true; }, any$1(receiver, test) { var i, $length = this.get$length(receiver); for (i = 0; i < $length; ++i) { if (test.call$1(this.$index(receiver, i))) return true; if ($length !== this.get$length(receiver)) throw A.wrapException(A.ConcurrentModificationError$(receiver)); } return false; }, lastWhere$2$orElse(receiver, test, orElse) { var i, element, $length = this.get$length(receiver); for (i = $length - 1; i >= 0; --i) { element = this.$index(receiver, i); if (test.call$1(element)) return element; if ($length !== this.get$length(receiver)) throw A.wrapException(A.ConcurrentModificationError$(receiver)); } if (orElse != null) return orElse.call$0(); throw A.wrapException(A.IterableElementError_noElement()); }, join$1(receiver, separator) { var t1; if (this.get$length(receiver) === 0) return ""; t1 = A.StringBuffer__writeAll("", receiver, separator); return t1.charCodeAt(0) == 0 ? t1 : t1; }, where$1(receiver, test) { return new A.WhereIterable(receiver, test, A.instanceType(receiver)._eval$1("WhereIterable")); }, map$1$1(receiver, f, $T) { return new A.MappedListIterable(receiver, f, A.instanceType(receiver)._eval$1("@")._bind$1($T)._eval$1("MappedListIterable<1,2>")); }, expand$1$1(receiver, f, $T) { return new A.ExpandIterable(receiver, f, A.instanceType(receiver)._eval$1("@")._bind$1($T)._eval$1("ExpandIterable<1,2>")); }, skip$1(receiver, count) { return A.SubListIterable$(receiver, count, null, A.instanceType(receiver)._eval$1("ListBase.E")); }, take$1(receiver, count) { return A.SubListIterable$(receiver, 0, A.checkNotNullable(count, "count", type$.int), A.instanceType(receiver)._eval$1("ListBase.E")); }, toList$1$growable(receiver, growable) { var t1, first, result, i, _this = this; if (_this.get$isEmpty(receiver)) { t1 = J.JSArray_JSArray$growable(0, A.instanceType(receiver)._eval$1("ListBase.E")); return t1; } first = _this.$index(receiver, 0); result = A.List_List$filled(_this.get$length(receiver), first, true, A.instanceType(receiver)._eval$1("ListBase.E")); for (i = 1; i < _this.get$length(receiver); ++i) result[i] = _this.$index(receiver, i); return result; }, toList$0($receiver) { return this.toList$1$growable($receiver, true); }, toSet$0(receiver) { var i, result = A.LinkedHashSet_LinkedHashSet(A.instanceType(receiver)._eval$1("ListBase.E")); for (i = 0; i < this.get$length(receiver); ++i) result.add$1(0, this.$index(receiver, i)); return result; }, add$1(receiver, element) { var t1 = this.get$length(receiver); this.set$length(receiver, t1 + 1); this.$indexSet(receiver, t1, element); }, addAll$1(receiver, iterable) { var t1, i = this.get$length(receiver); for (t1 = iterable.get$iterator(iterable); t1.moveNext$0();) { this.add$1(receiver, t1.get$current(t1)); ++i; } }, _closeGap$2(receiver, start, end) { var i, _this = this, $length = _this.get$length(receiver), size = end - start; for (i = end; i < $length; ++i) _this.$indexSet(receiver, i - size, _this.$index(receiver, i)); _this.set$length(receiver, $length - size); }, cast$1$0(receiver, $R) { return new A.CastList(receiver, A.instanceType(receiver)._eval$1("@")._bind$1($R)._eval$1("CastList<1,2>")); }, sort$1(receiver, compare) { A.Sort_sort(receiver, compare == null ? A.collection_ListBase__compareAny$closure() : compare); }, sublist$2(receiver, start, end) { var listLength = this.get$length(receiver); A.RangeError_checkValidRange(start, listLength, listLength); return A.List_List$from(this.getRange$2(receiver, start, listLength), true, A.instanceType(receiver)._eval$1("ListBase.E")); }, sublist$1($receiver, start) { return this.sublist$2($receiver, start, null); }, getRange$2(receiver, start, end) { A.RangeError_checkValidRange(start, end, this.get$length(receiver)); return A.SubListIterable$(receiver, start, end, A.instanceType(receiver)._eval$1("ListBase.E")); }, removeRange$2(receiver, start, end) { A.RangeError_checkValidRange(start, end, this.get$length(receiver)); if (end > start) this._closeGap$2(receiver, start, end); }, fillRange$3(receiver, start, end, fill) { var i, value = fill == null ? A.instanceType(receiver)._eval$1("ListBase.E")._as(fill) : fill; A.RangeError_checkValidRange(start, end, this.get$length(receiver)); for (i = start; i < end; ++i) this.$indexSet(receiver, i, value); }, setRange$4(receiver, start, end, iterable, skipCount) { var $length, otherStart, otherList, t1, i; A.RangeError_checkValidRange(start, end, this.get$length(receiver)); $length = end - start; if ($length === 0) return; A.RangeError_checkNotNegative(skipCount, "skipCount"); if (A.instanceType(receiver)._eval$1("List")._is(iterable)) { otherStart = skipCount; otherList = iterable; } else { otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false); otherStart = 0; } t1 = J.getInterceptor$asx(otherList); if (otherStart + $length > t1.get$length(otherList)) throw A.wrapException(A.IterableElementError_tooFew()); if (otherStart < start) for (i = $length - 1; i >= 0; --i) this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i)); else for (i = 0; i < $length; ++i) this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i)); }, get$reversed(receiver) { return new A.ReversedListIterable(receiver, A.instanceType(receiver)._eval$1("ReversedListIterable")); }, toString$0(receiver) { return A.Iterable_iterableToFullString(receiver, "[", "]"); }, $isEfficientLengthIterable: 1, $isIterable: 1, $isList: 1 }; A.MapBase.prototype = { cast$2$0(_, RK, RV) { var t1 = A._instanceType(this); return A.Map_castFrom(this, t1._eval$1("MapBase.K"), t1._eval$1("MapBase.V"), RK, RV); }, forEach$1(_, action) { var t1, t2, key, t3, _this = this; for (t1 = J.get$iterator$ax(_this.get$keys(_this)), t2 = A._instanceType(_this)._eval$1("MapBase.V"); t1.moveNext$0();) { key = t1.get$current(t1); t3 = _this.$index(0, key); action.call$2(key, t3 == null ? t2._as(t3) : t3); } }, addAll$1(_, other) { other.forEach$1(0, new A.MapBase_addAll_closure(this)); }, get$entries(_) { var _this = this; return J.map$1$1$ax(_this.get$keys(_this), new A.MapBase_entries_closure(_this), A._instanceType(_this)._eval$1("MapEntry")); }, removeWhere$1(_, test) { var t2, key, t3, _i, _this = this, t1 = A._instanceType(_this), keysToRemove = A._setArrayType([], t1._eval$1("JSArray")); for (t2 = J.get$iterator$ax(_this.get$keys(_this)), t1 = t1._eval$1("MapBase.V"); t2.moveNext$0();) { key = t2.get$current(t2); t3 = _this.$index(0, key); if (test.call$2(key, t3 == null ? t1._as(t3) : t3)) keysToRemove.push(key); } for (t1 = keysToRemove.length, _i = 0; _i < keysToRemove.length; keysToRemove.length === t1 || (0, A.throwConcurrentModificationError)(keysToRemove), ++_i) _this.remove$1(0, keysToRemove[_i]); }, containsKey$1(key) { return J.contains$1$asx(this.get$keys(this), key); }, get$length(_) { return J.get$length$asx(this.get$keys(this)); }, get$isEmpty(_) { return J.get$isEmpty$asx(this.get$keys(this)); }, get$isNotEmpty(_) { return J.get$isNotEmpty$asx(this.get$keys(this)); }, get$values(_) { var t1 = A._instanceType(this); return new A._MapBaseValueIterable(this, t1._eval$1("@")._bind$1(t1._eval$1("MapBase.V"))._eval$1("_MapBaseValueIterable<1,2>")); }, toString$0(_) { return A.MapBase_mapToString(this); }, $isMap: 1 }; A.MapBase_addAll_closure.prototype = { call$2(key, value) { this.$this.$indexSet(0, key, value); }, $signature() { return A._instanceType(this.$this)._eval$1("~(MapBase.K,MapBase.V)"); } }; A.MapBase_entries_closure.prototype = { call$1(key) { var t1 = this.$this, t2 = t1.$index(0, key); if (t2 == null) t2 = A._instanceType(t1)._eval$1("MapBase.V")._as(t2); t1 = A._instanceType(t1); return new A.MapEntry(key, t2, t1._eval$1("@")._bind$1(t1._eval$1("MapBase.V"))._eval$1("MapEntry<1,2>")); }, $signature() { return A._instanceType(this.$this)._eval$1("MapEntry(MapBase.K)"); } }; A.MapBase_mapToString_closure.prototype = { call$2(k, v) { var t2, t1 = this._box_0; if (!t1.first) this.result._contents += ", "; t1.first = false; t1 = this.result; t2 = t1._contents += A.S(k); t1._contents = t2 + ": "; t1._contents += A.S(v); }, $signature: 291 }; A.UnmodifiableMapBase.prototype = {}; A._MapBaseValueIterable.prototype = { get$length(_) { var t1 = this._map; return t1.get$length(t1); }, get$isEmpty(_) { var t1 = this._map; return t1.get$isEmpty(t1); }, get$isNotEmpty(_) { var t1 = this._map; return t1.get$isNotEmpty(t1); }, get$first(_) { var t1 = this._map; t1 = t1.$index(0, J.get$first$ax(t1.get$keys(t1))); return t1 == null ? this.$ti._rest[1]._as(t1) : t1; }, get$single(_) { var t1 = this._map; t1 = t1.$index(0, J.get$single$ax(t1.get$keys(t1))); return t1 == null ? this.$ti._rest[1]._as(t1) : t1; }, get$last(_) { var t1 = this._map; t1 = t1.$index(0, J.get$last$ax(t1.get$keys(t1))); return t1 == null ? this.$ti._rest[1]._as(t1) : t1; }, get$iterator(_) { var t1 = this._map; return new A._MapBaseValueIterator(J.get$iterator$ax(t1.get$keys(t1)), t1); } }; A._MapBaseValueIterator.prototype = { moveNext$0() { var _this = this, t1 = _this._collection$_keys; if (t1.moveNext$0()) { _this._collection$_current = _this._map.$index(0, t1.get$current(t1)); return true; } _this._collection$_current = null; return false; }, get$current(_) { var t1 = this._collection$_current; return t1 == null ? A._instanceType(this)._rest[1]._as(t1) : t1; } }; A._UnmodifiableMapMixin.prototype = { $indexSet(_, key, value) { throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map")); }, addAll$1(_, other) { throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map")); }, remove$1(_, key) { throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map")); } }; A.MapView.prototype = { cast$2$0(_, RK, RV) { return this._map.cast$2$0(0, RK, RV); }, $index(_, key) { return this._map.$index(0, key); }, $indexSet(_, key, value) { this._map.$indexSet(0, key, value); }, addAll$1(_, other) { this._map.addAll$1(0, other); }, containsKey$1(key) { return this._map.containsKey$1(key); }, forEach$1(_, action) { this._map.forEach$1(0, action); }, get$isEmpty(_) { var t1 = this._map; return t1.get$isEmpty(t1); }, get$isNotEmpty(_) { var t1 = this._map; return t1.get$isNotEmpty(t1); }, get$length(_) { var t1 = this._map; return t1.get$length(t1); }, get$keys(_) { var t1 = this._map; return t1.get$keys(t1); }, remove$1(_, key) { return this._map.remove$1(0, key); }, toString$0(_) { return this._map.toString$0(0); }, get$values(_) { var t1 = this._map; return t1.get$values(t1); }, get$entries(_) { var t1 = this._map; return t1.get$entries(t1); }, $isMap: 1 }; A.UnmodifiableMapView.prototype = { cast$2$0(_, RK, RV) { return new A.UnmodifiableMapView(this._map.cast$2$0(0, RK, RV), RK._eval$1("@<0>")._bind$1(RV)._eval$1("UnmodifiableMapView<1,2>")); } }; A.ListQueue.prototype = { get$iterator(_) { var _this = this; return new A._ListQueueIterator(_this, _this._tail, _this._modificationCount, _this._head); }, get$isEmpty(_) { return this._head === this._tail; }, get$length(_) { return (this._tail - this._head & this._table.length - 1) >>> 0; }, get$first(_) { var _this = this, t1 = _this._head; if (t1 === _this._tail) throw A.wrapException(A.IterableElementError_noElement()); t1 = _this._table[t1]; return t1 == null ? _this.$ti._precomputed1._as(t1) : t1; }, get$last(_) { var _this = this, t1 = _this._head, t2 = _this._tail; if (t1 === t2) throw A.wrapException(A.IterableElementError_noElement()); t1 = _this._table; t1 = t1[(t2 - 1 & t1.length - 1) >>> 0]; return t1 == null ? _this.$ti._precomputed1._as(t1) : t1; }, get$single(_) { var t1, _this = this; if (_this._head === _this._tail) throw A.wrapException(A.IterableElementError_noElement()); if (_this.get$length(_this) > 1) throw A.wrapException(A.IterableElementError_tooMany()); t1 = _this._table[_this._head]; return t1 == null ? _this.$ti._precomputed1._as(t1) : t1; }, elementAt$1(_, index) { var t1, _this = this; A.IndexError_check(index, _this.get$length(_this), _this, null, null); t1 = _this._table; t1 = t1[(_this._head + index & t1.length - 1) >>> 0]; return t1 == null ? _this.$ti._precomputed1._as(t1) : t1; }, toList$1$growable(_, growable) { var t1, list, t2, t3, i, t4, _this = this, mask = _this._table.length - 1, $length = (_this._tail - _this._head & mask) >>> 0; if ($length === 0) { t1 = J.JSArray_JSArray$growable(0, _this.$ti._precomputed1); return t1; } t1 = _this.$ti._precomputed1; list = A.List_List$filled($length, _this.get$first(_this), true, t1); for (t2 = _this._table, t3 = _this._head, i = 0; i < $length; ++i) { t4 = t2[(t3 + i & mask) >>> 0]; list[i] = t4 == null ? t1._as(t4) : t4; } return list; }, toList$0($receiver) { return this.toList$1$growable($receiver, true); }, addAll$1(_, elements) { var addCount, $length, t2, t3, t4, newTable, endSpace, preSpace, _i, _this = this, t1 = _this.$ti; if (t1._eval$1("List<1>")._is(elements)) { addCount = elements.length; $length = _this.get$length(_this); t2 = $length + addCount; t3 = _this._table; t4 = t3.length; if (t2 >= t4) { newTable = A.List_List$filled(A.ListQueue__nextPowerOf2(t2 + (t2 >>> 1)), null, false, t1._eval$1("1?")); _this._tail = _this._collection$_writeToList$1(newTable); _this._table = newTable; _this._head = 0; B.JSArray_methods.setRange$4(newTable, $length, t2, elements, 0); _this._tail += addCount; } else { t1 = _this._tail; endSpace = t4 - t1; if (addCount < endSpace) { B.JSArray_methods.setRange$4(t3, t1, t1 + addCount, elements, 0); _this._tail += addCount; } else { preSpace = addCount - endSpace; B.JSArray_methods.setRange$4(t3, t1, t1 + endSpace, elements, 0); B.JSArray_methods.setRange$4(_this._table, 0, preSpace, elements, endSpace); _this._tail = preSpace; } } ++_this._modificationCount; } else for (t1 = elements.length, _i = 0; _i < elements.length; elements.length === t1 || (0, A.throwConcurrentModificationError)(elements), ++_i) _this._add$1(elements[_i]); }, clear$0(_) { var t2, t3, _this = this, i = _this._head, t1 = _this._tail; if (i !== t1) { for (t2 = _this._table, t3 = t2.length - 1; i !== t1; i = (i + 1 & t3) >>> 0) t2[i] = null; _this._head = _this._tail = 0; ++_this._modificationCount; } }, toString$0(_) { return A.Iterable_iterableToFullString(this, "{", "}"); }, addFirst$1(value) { var _this = this, t1 = _this._head, t2 = _this._table; t1 = _this._head = (t1 - 1 & t2.length - 1) >>> 0; t2[t1] = value; if (t1 === _this._tail) _this._grow$0(); ++_this._modificationCount; }, removeFirst$0() { var t2, result, _this = this, t1 = _this._head; if (t1 === _this._tail) throw A.wrapException(A.IterableElementError_noElement()); ++_this._modificationCount; t2 = _this._table; result = t2[t1]; if (result == null) result = _this.$ti._precomputed1._as(result); t2[t1] = null; _this._head = (t1 + 1 & t2.length - 1) >>> 0; return result; }, _add$1(element) { var _this = this, t1 = _this._table, t2 = _this._tail; t1[t2] = element; t1 = (t2 + 1 & t1.length - 1) >>> 0; _this._tail = t1; if (_this._head === t1) _this._grow$0(); ++_this._modificationCount; }, _grow$0() { var _this = this, newTable = A.List_List$filled(_this._table.length * 2, null, false, _this.$ti._eval$1("1?")), t1 = _this._table, t2 = _this._head, split = t1.length - t2; B.JSArray_methods.setRange$4(newTable, 0, split, t1, t2); B.JSArray_methods.setRange$4(newTable, split, split + _this._head, _this._table, 0); _this._head = 0; _this._tail = _this._table.length; _this._table = newTable; }, _collection$_writeToList$1(target) { var $length, firstPartSize, _this = this, t1 = _this._head, t2 = _this._tail, t3 = _this._table; if (t1 <= t2) { $length = t2 - t1; B.JSArray_methods.setRange$4(target, 0, $length, t3, t1); return $length; } else { firstPartSize = t3.length - t1; B.JSArray_methods.setRange$4(target, 0, firstPartSize, t3, t1); B.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this._tail, _this._table, 0); return _this._tail + firstPartSize; } }, $isQueue: 1 }; A._ListQueueIterator.prototype = { get$current(_) { var t1 = this._collection$_current; return t1 == null ? A._instanceType(this)._precomputed1._as(t1) : t1; }, moveNext$0() { var t2, _this = this, t1 = _this._queue; if (_this._modificationCount !== t1._modificationCount) A.throwExpression(A.ConcurrentModificationError$(t1)); t2 = _this._collection$_position; if (t2 === _this._collection$_end) { _this._collection$_current = null; return false; } t1 = t1._table; _this._collection$_current = t1[t2]; _this._collection$_position = (t2 + 1 & t1.length - 1) >>> 0; return true; } }; A.SetBase.prototype = { get$isEmpty(_) { return this.get$length(this) === 0; }, get$isNotEmpty(_) { return this.get$length(this) !== 0; }, addAll$1(_, elements) { var t1; for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();) this.add$1(0, t1.get$current(t1)); }, removeAll$1(elements) { var t1; for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();) this.remove$1(0, t1.get$current(t1)); }, difference$1(other) { var t1, t2, element, result = this.toSet$0(0); for (t1 = this.get$iterator(this), t2 = other._source; t1.moveNext$0();) { element = t1.get$current(t1); if (t2.contains$1(0, element)) result.remove$1(0, element); } return result; }, toList$1$growable(_, growable) { return A.List_List$of(this, true, A._instanceType(this)._precomputed1); }, toList$0($receiver) { return this.toList$1$growable($receiver, true); }, map$1$1(_, f, $T) { return new A.EfficientLengthMappedIterable(this, f, A._instanceType(this)._eval$1("@<1>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>")); }, get$single(_) { var it, _this = this; if (_this.get$length(_this) > 1) throw A.wrapException(A.IterableElementError_tooMany()); it = _this.get$iterator(_this); if (!it.moveNext$0()) throw A.wrapException(A.IterableElementError_noElement()); return it.get$current(it); }, toString$0(_) { return A.Iterable_iterableToFullString(this, "{", "}"); }, where$1(_, f) { return new A.WhereIterable(this, f, A._instanceType(this)._eval$1("WhereIterable<1>")); }, forEach$1(_, f) { var t1; for (t1 = this.get$iterator(this); t1.moveNext$0();) f.call$1(t1.get$current(t1)); }, any$1(_, test) { var t1; for (t1 = this.get$iterator(this); t1.moveNext$0();) if (test.call$1(t1.get$current(t1))) return true; return false; }, take$1(_, n) { return A.TakeIterable_TakeIterable(this, n, A._instanceType(this)._precomputed1); }, skip$1(_, n) { return A.SkipIterable_SkipIterable(this, n, A._instanceType(this)._precomputed1); }, get$first(_) { var it = this.get$iterator(this); if (!it.moveNext$0()) throw A.wrapException(A.IterableElementError_noElement()); return it.get$current(it); }, get$last(_) { var result, it = this.get$iterator(this); if (!it.moveNext$0()) throw A.wrapException(A.IterableElementError_noElement()); do result = it.get$current(it); while (it.moveNext$0()); return result; }, elementAt$1(_, index) { var iterator, skipCount; A.RangeError_checkNotNegative(index, "index"); iterator = this.get$iterator(this); for (skipCount = index; iterator.moveNext$0();) { if (skipCount === 0) return iterator.get$current(iterator); --skipCount; } throw A.wrapException(A.IndexError$withLength(index, index - skipCount, this, null, "index")); }, $isEfficientLengthIterable: 1, $isIterable: 1, $isSet: 1 }; A._SetBase.prototype = { difference$1(other) { var t1, t2, t3, element, result = this._newSet$0(); for (t1 = A._LinkedHashSetIterator$(this, this._collection$_modifications), t2 = other._source, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { element = t1._collection$_current; if (element == null) element = t3._as(element); if (!t2.contains$1(0, element)) result.add$1(0, element); } return result; }, intersection$1(other) { var t1, t2, t3, element, result = this._newSet$0(); for (t1 = A._LinkedHashSetIterator$(this, this._collection$_modifications), t2 = other._baseMap, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { element = t1._collection$_current; if (element == null) element = t3._as(element); if (t2.containsKey$1(element)) result.add$1(0, element); } return result; }, toSet$0(_) { var t1 = this._newSet$0(); t1.addAll$1(0, this); return t1; } }; A._UnmodifiableSetMixin.prototype = { add$1(_, value) { return A._UnmodifiableSetMixin__throwUnmodifiable(); }, addAll$1(_, elements) { return A._UnmodifiableSetMixin__throwUnmodifiable(); }, remove$1(_, value) { return A._UnmodifiableSetMixin__throwUnmodifiable(); } }; A.UnmodifiableSetView.prototype = { contains$1(_, element) { return this._collection$_source.contains$1(0, element); }, get$length(_) { return this._collection$_source._collection$_length; }, get$iterator(_) { var t1 = this._collection$_source; return A._LinkedHashSetIterator$(t1, t1._collection$_modifications); }, toSet$0(_) { return this._collection$_source.toSet$0(0); } }; A._UnmodifiableMapView_MapView__UnmodifiableMapMixin.prototype = {}; A._UnmodifiableSetView_SetBase__UnmodifiableSetMixin.prototype = {}; A.Utf8Decoder__decoder_closure.prototype = { call$0() { var t1, exception; try { t1 = new TextDecoder("utf-8", {fatal: true}); return t1; } catch (exception) { } return null; }, $signature: 58 }; A.Utf8Decoder__decoderNonfatal_closure.prototype = { call$0() { var t1, exception; try { t1 = new TextDecoder("utf-8", {fatal: false}); return t1; } catch (exception) { } return null; }, $signature: 58 }; A.AsciiCodec.prototype = { encode$1(source) { return B.AsciiEncoder_127.convert$1(source); }, get$encoder() { return B.AsciiEncoder_127; } }; A._UnicodeSubsetEncoder.prototype = { convert$1(string) { var t1, i, codeUnit, $length = A.RangeError_checkValidRange(0, null, string.length) - 0, result = new Uint8Array($length); for (t1 = ~this._subsetMask, i = 0; i < $length; ++i) { codeUnit = string.charCodeAt(i); if ((codeUnit & t1) !== 0) throw A.wrapException(A.ArgumentError$value(string, "string", "Contains invalid characters.")); result[i] = codeUnit; } return result; } }; A.AsciiEncoder.prototype = {}; A.Base64Codec.prototype = { get$encoder() { return B.C_Base64Encoder; }, normalize$3(source, start, end) { var inverseAlphabet, i, sliceStart, buffer, firstPadding, firstPaddingSourceIndex, paddingCount, i0, char, i1, digit1, digit2, char0, value, t1, t2, endLength, $length, _s31_ = "Invalid base64 encoding length "; end = A.RangeError_checkValidRange(start, end, source.length); inverseAlphabet = $.$get$_Base64Decoder__inverseAlphabet(); for (i = start, sliceStart = i, buffer = null, firstPadding = -1, firstPaddingSourceIndex = -1, paddingCount = 0; i < end; i = i0) { i0 = i + 1; char = source.charCodeAt(i); if (char === 37) { i1 = i0 + 2; if (i1 <= end) { digit1 = A.hexDigitValue(source.charCodeAt(i0)); digit2 = A.hexDigitValue(source.charCodeAt(i0 + 1)); char0 = digit1 * 16 + digit2 - (digit2 & 256); if (char0 === 37) char0 = -1; i0 = i1; } else char0 = -1; } else char0 = char; if (0 <= char0 && char0 <= 127) { value = inverseAlphabet[char0]; if (value >= 0) { char0 = string$.ABCDEF.charCodeAt(value); if (char0 === char) continue; char = char0; } else { if (value === -1) { if (firstPadding < 0) { t1 = buffer == null ? null : buffer._contents.length; if (t1 == null) t1 = 0; firstPadding = t1 + (i - sliceStart); firstPaddingSourceIndex = i; } ++paddingCount; if (char === 61) continue; } char = char0; } if (value !== -2) { if (buffer == null) { buffer = new A.StringBuffer(""); t1 = buffer; } else t1 = buffer; t1._contents += B.JSString_methods.substring$2(source, sliceStart, i); t1._contents += A.Primitives_stringFromCharCode(char); sliceStart = i0; continue; } } throw A.wrapException(A.FormatException$("Invalid base64 data", source, i)); } if (buffer != null) { t1 = buffer._contents += B.JSString_methods.substring$2(source, sliceStart, end); t2 = t1.length; if (firstPadding >= 0) A.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, t2); else { endLength = B.JSInt_methods.$mod(t2 - 1, 4) + 1; if (endLength === 1) throw A.wrapException(A.FormatException$(_s31_, source, end)); for (; endLength < 4;) { t1 += "="; buffer._contents = t1; ++endLength; } } t1 = buffer._contents; return B.JSString_methods.replaceRange$3(source, start, end, t1.charCodeAt(0) == 0 ? t1 : t1); } $length = end - start; if (firstPadding >= 0) A.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, $length); else { endLength = B.JSInt_methods.$mod($length, 4); if (endLength === 1) throw A.wrapException(A.FormatException$(_s31_, source, end)); if (endLength > 1) source = B.JSString_methods.replaceRange$3(source, end, end, endLength === 2 ? "==" : "="); } return source; } }; A.Base64Encoder.prototype = { convert$1(input) { var t1 = J.getInterceptor$asx(input); if (t1.get$isEmpty(input)) return ""; t1 = new A._Base64Encoder(string$.ABCDEF).encode$4(input, 0, t1.get$length(input), true); t1.toString; return A.String_String$fromCharCodes(t1, 0, null); }, startChunkedConversion$1(sink) { return new A._Utf8Base64EncoderSink(new A._Utf8StringSinkAdapter(new A._Utf8Decoder(false), sink, sink._stringSink), new A._Base64Encoder(string$.ABCDEF)); } }; A._Base64Encoder.prototype = { createBuffer$1(bufferLength) { return new Uint8Array(bufferLength); }, encode$4(bytes, start, end, isLast) { var output, _this = this, byteCount = (_this._convert$_state & 3) + (end - start), fullChunks = B.JSInt_methods._tdivFast$1(byteCount, 3), bufferLength = fullChunks * 4; if (isLast && byteCount - fullChunks * 3 > 0) bufferLength += 4; output = _this.createBuffer$1(bufferLength); _this._convert$_state = A._Base64Encoder_encodeChunk(_this._alphabet, bytes, start, end, isLast, output, 0, _this._convert$_state); if (bufferLength > 0) return output; return null; } }; A._Base64EncoderSink.prototype = {}; A._Utf8Base64EncoderSink.prototype = { _convert$_add$4(source, start, end, isLast) { var buffer = this._encoder.encode$4(source, start, end, isLast); if (buffer != null) this._sink.addSlice$4(buffer, 0, buffer.length, isLast); } }; A.ByteConversionSink.prototype = {}; A.Codec.prototype = { encode$1(input) { return this.get$encoder().convert$1(input); } }; A.Converter.prototype = {}; A.Encoding.prototype = {}; A.JsonUnsupportedObjectError.prototype = { toString$0(_) { var safeString = A.Error_safeToString(this.unsupportedObject); return (this.cause != null ? "Converting object to an encodable object failed:" : "Converting object did not return an encodable object:") + " " + safeString; } }; A.JsonCyclicError.prototype = { toString$0(_) { return "Cyclic error in JSON stringify"; } }; A.JsonCodec.prototype = { encode$2$toEncodable(value, toEncodable) { var t1 = A._JsonStringStringifier_stringify(value, this.get$encoder()._toEncodable, null); return t1; }, get$encoder() { return B.JsonEncoder_null; } }; A.JsonEncoder.prototype = { convert$1(object) { var t1, output = new A.StringBuffer(""), stringifier = A._JsonStringStringifier$(output, this._toEncodable); stringifier.writeObject$1(object); t1 = output._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; } }; A._JsonStringifier.prototype = { writeStringContent$1(s) { var offset, i, charCode, t1, t2, _this = this, $length = s.length; for (offset = 0, i = 0; i < $length; ++i) { charCode = s.charCodeAt(i); if (charCode > 92) { if (charCode >= 55296) { t1 = charCode & 64512; if (t1 === 55296) { t2 = i + 1; t2 = !(t2 < $length && (s.charCodeAt(t2) & 64512) === 56320); } else t2 = false; if (!t2) if (t1 === 56320) { t1 = i - 1; t1 = !(t1 >= 0 && (s.charCodeAt(t1) & 64512) === 55296); } else t1 = false; else t1 = true; if (t1) { if (i > offset) _this.writeStringSlice$3(s, offset, i); offset = i + 1; _this.writeCharCode$1(92); _this.writeCharCode$1(117); _this.writeCharCode$1(100); t1 = charCode >>> 8 & 15; _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); t1 = charCode >>> 4 & 15; _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); t1 = charCode & 15; _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); } } continue; } if (charCode < 32) { if (i > offset) _this.writeStringSlice$3(s, offset, i); offset = i + 1; _this.writeCharCode$1(92); switch (charCode) { case 8: _this.writeCharCode$1(98); break; case 9: _this.writeCharCode$1(116); break; case 10: _this.writeCharCode$1(110); break; case 12: _this.writeCharCode$1(102); break; case 13: _this.writeCharCode$1(114); break; default: _this.writeCharCode$1(117); _this.writeCharCode$1(48); _this.writeCharCode$1(48); t1 = charCode >>> 4 & 15; _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); t1 = charCode & 15; _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1); break; } } else if (charCode === 34 || charCode === 92) { if (i > offset) _this.writeStringSlice$3(s, offset, i); offset = i + 1; _this.writeCharCode$1(92); _this.writeCharCode$1(charCode); } } if (offset === 0) _this.writeString$1(s); else if (offset < $length) _this.writeStringSlice$3(s, offset, $length); }, _checkCycle$1(object) { var t1, t2, i, t3; for (t1 = this._seen, t2 = t1.length, i = 0; i < t2; ++i) { t3 = t1[i]; if (object == null ? t3 == null : object === t3) throw A.wrapException(new A.JsonCyclicError(object, null)); } t1.push(object); }, writeObject$1(object) { var customJson, e, t1, exception, _this = this; if (_this.writeJsonValue$1(object)) return; _this._checkCycle$1(object); try { customJson = _this._toEncodable.call$1(object); if (!_this.writeJsonValue$1(customJson)) { t1 = A.JsonUnsupportedObjectError$(object, null, _this.get$_partialResult()); throw A.wrapException(t1); } _this._seen.pop(); } catch (exception) { e = A.unwrapException(exception); t1 = A.JsonUnsupportedObjectError$(object, e, _this.get$_partialResult()); throw A.wrapException(t1); } }, writeJsonValue$1(object) { var success, _this = this; if (typeof object == "number") { if (!isFinite(object)) return false; _this.writeNumber$1(object); return true; } else if (object === true) { _this.writeString$1("true"); return true; } else if (object === false) { _this.writeString$1("false"); return true; } else if (object == null) { _this.writeString$1("null"); return true; } else if (typeof object == "string") { _this.writeString$1('"'); _this.writeStringContent$1(object); _this.writeString$1('"'); return true; } else if (type$.List_dynamic._is(object)) { _this._checkCycle$1(object); _this.writeList$1(object); _this._seen.pop(); return true; } else if (type$.Map_dynamic_dynamic._is(object)) { _this._checkCycle$1(object); success = _this.writeMap$1(object); _this._seen.pop(); return success; } else return false; }, writeList$1(list) { var t1, i, _this = this; _this.writeString$1("["); t1 = J.getInterceptor$asx(list); if (t1.get$isNotEmpty(list)) { _this.writeObject$1(t1.$index(list, 0)); for (i = 1; i < t1.get$length(list); ++i) { _this.writeString$1(","); _this.writeObject$1(t1.$index(list, i)); } } _this.writeString$1("]"); }, writeMap$1(map) { var t1, keyValueList, i, separator, _this = this, _box_0 = {}; if (map.get$isEmpty(map)) { _this.writeString$1("{}"); return true; } t1 = map.get$length(map) * 2; keyValueList = A.List_List$filled(t1, null, false, type$.nullable_Object); i = _box_0.i = 0; _box_0.allStringKeys = true; map.forEach$1(0, new A._JsonStringifier_writeMap_closure(_box_0, keyValueList)); if (!_box_0.allStringKeys) return false; _this.writeString$1("{"); for (separator = '"'; i < t1; i += 2, separator = ',"') { _this.writeString$1(separator); _this.writeStringContent$1(A._asString(keyValueList[i])); _this.writeString$1('":'); _this.writeObject$1(keyValueList[i + 1]); } _this.writeString$1("}"); return true; } }; A._JsonStringifier_writeMap_closure.prototype = { call$2(key, value) { var t1, t2, t3, i; if (typeof key != "string") this._box_0.allStringKeys = false; t1 = this.keyValueList; t2 = this._box_0; t3 = t2.i; i = t2.i = t3 + 1; t1[t3] = key; t2.i = i + 1; t1[i] = value; }, $signature: 291 }; A._JsonStringStringifier.prototype = { get$_partialResult() { var t1 = this._sink._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, writeNumber$1(number) { this._sink._contents += B.JSNumber_methods.toString$0(number); }, writeString$1(string) { this._sink._contents += string; }, writeStringSlice$3(string, start, end) { this._sink._contents += B.JSString_methods.substring$2(string, start, end); }, writeCharCode$1(charCode) { this._sink._contents += A.Primitives_stringFromCharCode(charCode); } }; A.StringConversionSink.prototype = {}; A._StringSinkConversionSink.prototype = { close$0(_) { } }; A._StringCallbackSink.prototype = { close$0(_) { var t1 = this._stringSink, t2 = t1._contents; t1._contents = ""; this._convert$_callback.call$1(t2.charCodeAt(0) == 0 ? t2 : t2); }, asUtf8Sink$1(allowMalformed) { return new A._Utf8StringSinkAdapter(new A._Utf8Decoder(allowMalformed), this, this._stringSink); } }; A._Utf8StringSinkAdapter.prototype = { close$0(_) { this._decoder.flush$1(this._stringSink); this._sink.close$0(0); }, add$1(_, chunk) { this.addSlice$4(chunk, 0, J.get$length$asx(chunk), false); }, addSlice$4(codeUnits, startIndex, endIndex, isLast) { this._stringSink._contents += this._decoder.convertGeneral$4(codeUnits, startIndex, endIndex, false); if (isLast) this.close$0(0); } }; A.Utf8Codec.prototype = { get$encoder() { return B.C_Utf8Encoder; } }; A.Utf8Encoder.prototype = { convert$1(string) { var t1, encoder, end = A.RangeError_checkValidRange(0, null, string.length), $length = end - 0; if ($length === 0) return new Uint8Array(0); t1 = new Uint8Array($length * 3); encoder = new A._Utf8Encoder(t1); if (encoder._fillBuffer$3(string, 0, end) !== end) encoder._writeReplacementCharacter$0(); return B.NativeUint8List_methods.sublist$2(t1, 0, encoder._bufferIndex); } }; A._Utf8Encoder.prototype = { _writeReplacementCharacter$0() { var _this = this, t1 = _this._buffer, t2 = _this._bufferIndex, t3 = _this._bufferIndex = t2 + 1; t1[t2] = 239; t2 = _this._bufferIndex = t3 + 1; t1[t3] = 191; _this._bufferIndex = t2 + 1; t1[t2] = 189; }, _writeSurrogate$2(leadingSurrogate, nextCodeUnit) { var rune, t1, t2, t3, _this = this; if ((nextCodeUnit & 64512) === 56320) { rune = 65536 + ((leadingSurrogate & 1023) << 10) | nextCodeUnit & 1023; t1 = _this._buffer; t2 = _this._bufferIndex; t3 = _this._bufferIndex = t2 + 1; t1[t2] = rune >>> 18 | 240; t2 = _this._bufferIndex = t3 + 1; t1[t3] = rune >>> 12 & 63 | 128; t3 = _this._bufferIndex = t2 + 1; t1[t2] = rune >>> 6 & 63 | 128; _this._bufferIndex = t3 + 1; t1[t3] = rune & 63 | 128; return true; } else { _this._writeReplacementCharacter$0(); return false; } }, _fillBuffer$3(str, start, end) { var t1, t2, stringIndex, codeUnit, t3, stringIndex0, t4, _this = this; if (start !== end && (str.charCodeAt(end - 1) & 64512) === 55296) --end; for (t1 = _this._buffer, t2 = t1.length, stringIndex = start; stringIndex < end; ++stringIndex) { codeUnit = str.charCodeAt(stringIndex); if (codeUnit <= 127) { t3 = _this._bufferIndex; if (t3 >= t2) break; _this._bufferIndex = t3 + 1; t1[t3] = codeUnit; } else { t3 = codeUnit & 64512; if (t3 === 55296) { if (_this._bufferIndex + 4 > t2) break; stringIndex0 = stringIndex + 1; if (_this._writeSurrogate$2(codeUnit, str.charCodeAt(stringIndex0))) stringIndex = stringIndex0; } else if (t3 === 56320) { if (_this._bufferIndex + 3 > t2) break; _this._writeReplacementCharacter$0(); } else if (codeUnit <= 2047) { t3 = _this._bufferIndex; t4 = t3 + 1; if (t4 >= t2) break; _this._bufferIndex = t4; t1[t3] = codeUnit >>> 6 | 192; _this._bufferIndex = t4 + 1; t1[t4] = codeUnit & 63 | 128; } else { t3 = _this._bufferIndex; if (t3 + 2 >= t2) break; t4 = _this._bufferIndex = t3 + 1; t1[t3] = codeUnit >>> 12 | 224; t3 = _this._bufferIndex = t4 + 1; t1[t4] = codeUnit >>> 6 & 63 | 128; _this._bufferIndex = t3 + 1; t1[t3] = codeUnit & 63 | 128; } } } return stringIndex; } }; A.Utf8Decoder.prototype = { convert$1(codeUnits) { var t1 = this._allowMalformed, result = A.Utf8Decoder__convertIntercepted(t1, codeUnits, 0, null); if (result != null) return result; return new A._Utf8Decoder(t1).convertGeneral$4(codeUnits, 0, null, true); } }; A._Utf8Decoder.prototype = { convertGeneral$4(codeUnits, start, maybeEnd, single) { var bytes, errorOffset, result, t1, message, _this = this, end = A.RangeError_checkValidRange(start, maybeEnd, J.get$length$asx(codeUnits)); if (start === end) return ""; if (type$.Uint8List._is(codeUnits)) { bytes = codeUnits; errorOffset = 0; } else { bytes = A._Utf8Decoder__makeUint8List(codeUnits, start, end); end -= start; errorOffset = start; start = 0; } result = _this._convertRecursive$4(bytes, start, end, single); t1 = _this._convert$_state; if ((t1 & 1) !== 0) { message = A._Utf8Decoder_errorDescription(t1); _this._convert$_state = 0; throw A.wrapException(A.FormatException$(message, codeUnits, errorOffset + _this._charOrIndex)); } return result; }, _convertRecursive$4(bytes, start, end, single) { var mid, s1, _this = this; if (end - start > 1000) { mid = B.JSInt_methods._tdivFast$1(start + end, 2); s1 = _this._convertRecursive$4(bytes, start, mid, false); if ((_this._convert$_state & 1) !== 0) return s1; return s1 + _this._convertRecursive$4(bytes, mid, end, single); } return _this.decodeGeneral$4(bytes, start, end, single); }, flush$1(sink) { var state = this._convert$_state; this._convert$_state = 0; if (state <= 32) return; if (this.allowMalformed) sink._contents += A.Primitives_stringFromCharCode(65533); else throw A.wrapException(A.FormatException$(A._Utf8Decoder_errorDescription(77), null, null)); }, decodeGeneral$4(bytes, start, end, single) { var t1, type, t2, i0, markEnd, i1, m, _this = this, _65533 = 65533, state = _this._convert$_state, char = _this._charOrIndex, buffer = new A.StringBuffer(""), i = start + 1, byte = bytes[start]; $label0$0: for (t1 = _this.allowMalformed; true;) { for (; true; i = i0) { type = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHIHHHJEEBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBKCCCCCCCCCCCCDCLONNNMEEEEEEEEEEE".charCodeAt(byte) & 31; char = state <= 32 ? byte & 61694 >>> type : (byte & 63 | char << 6) >>> 0; 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); if (state === 0) { buffer._contents += A.Primitives_stringFromCharCode(char); if (i === end) break $label0$0; break; } else if ((state & 1) !== 0) { if (t1) switch (state) { case 69: case 67: buffer._contents += A.Primitives_stringFromCharCode(_65533); break; case 65: buffer._contents += A.Primitives_stringFromCharCode(_65533); --i; break; default: t2 = buffer._contents += A.Primitives_stringFromCharCode(_65533); buffer._contents = t2 + A.Primitives_stringFromCharCode(_65533); break; } else { _this._convert$_state = state; _this._charOrIndex = i - 1; return ""; } state = 0; } if (i === end) break $label0$0; i0 = i + 1; byte = bytes[i]; } i0 = i + 1; byte = bytes[i]; if (byte < 128) { while (true) { if (!(i0 < end)) { markEnd = end; break; } i1 = i0 + 1; byte = bytes[i0]; if (byte >= 128) { markEnd = i1 - 1; i0 = i1; break; } i0 = i1; } if (markEnd - i < 20) for (m = i; m < markEnd; ++m) buffer._contents += A.Primitives_stringFromCharCode(bytes[m]); else buffer._contents += A.String_String$fromCharCodes(bytes, i, markEnd); if (markEnd === end) break $label0$0; i = i0; } else i = i0; } if (single && state > 32) if (t1) buffer._contents += A.Primitives_stringFromCharCode(_65533); else { _this._convert$_state = 77; _this._charOrIndex = end; return ""; } _this._convert$_state = state; _this._charOrIndex = char; t1 = buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; } }; A.NoSuchMethodError_toString_closure.prototype = { call$2(key, value) { var t1 = this.sb, t2 = this._box_0, t3 = t1._contents += t2.comma; t3 += key.__internal$_name; t1._contents = t3; t1._contents = t3 + ": "; t1._contents += A.Error_safeToString(value); t2.comma = ", "; }, $signature: 547 }; A.DateTime.prototype = { $eq(_, other) { if (other == null) return false; return other instanceof A.DateTime && this._core$_value === other._core$_value && true; }, compareTo$1(_, other) { return B.JSInt_methods.compareTo$1(this._core$_value, other._core$_value); }, get$hashCode(_) { var t1 = this._core$_value; return (t1 ^ B.JSInt_methods._shrOtherPositive$1(t1, 30)) & 1073741823; }, toString$0(_) { var _this = this, y = A.DateTime__fourDigits(A.Primitives_getYear(_this)), m = A.DateTime__twoDigits(A.Primitives_getMonth(_this)), d = A.DateTime__twoDigits(A.Primitives_getDay(_this)), h = A.DateTime__twoDigits(A.Primitives_getHours(_this)), min = A.DateTime__twoDigits(A.Primitives_getMinutes(_this)), sec = A.DateTime__twoDigits(A.Primitives_getSeconds(_this)), ms = A.DateTime__threeDigits(A.Primitives_getMilliseconds(_this)); return y + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms; }, $isComparable: 1 }; A.Duration.prototype = { $eq(_, other) { if (other == null) return false; return other instanceof A.Duration && this._duration === other._duration; }, get$hashCode(_) { return B.JSInt_methods.get$hashCode(this._duration); }, compareTo$1(_, other) { return B.JSInt_methods.compareTo$1(this._duration, other._duration); }, toString$0(_) { var sign, minutes, minutesPadding, seconds, secondsPadding, microseconds = this._duration, hours = B.JSInt_methods._tdivFast$1(microseconds, 3600000000), microseconds0 = microseconds % 3600000000; if (microseconds < 0) { hours = 0 - hours; microseconds = 0 - microseconds0; sign = "-"; } else { microseconds = microseconds0; sign = ""; } minutes = B.JSInt_methods._tdivFast$1(microseconds, 60000000); microseconds %= 60000000; minutesPadding = minutes < 10 ? "0" : ""; seconds = B.JSInt_methods._tdivFast$1(microseconds, 1000000); secondsPadding = seconds < 10 ? "0" : ""; return sign + hours + ":" + minutesPadding + minutes + ":" + secondsPadding + seconds + "." + B.JSString_methods.padLeft$2(B.JSInt_methods.toString$0(microseconds % 1000000), 6, "0"); }, $isComparable: 1 }; A._Enum.prototype = { toString$0(_) { return this._enumToString$0(); } }; A.Error.prototype = { get$stackTrace() { return A.getTraceFromException(this.$thrownJsError); } }; A.AssertionError.prototype = { toString$0(_) { var t1 = this.message; if (t1 != null) return "Assertion failed: " + A.Error_safeToString(t1); return "Assertion failed"; }, get$message(receiver) { return this.message; } }; A.TypeError.prototype = {}; A.ArgumentError.prototype = { get$_errorName() { return "Invalid argument" + (!this._hasValue ? "(s)" : ""); }, get$_errorExplanation() { return ""; }, toString$0(_) { var _this = this, $name = _this.name, nameString = $name == null ? "" : " (" + $name + ")", message = _this.message, messageString = message == null ? "" : ": " + A.S(message), prefix = _this.get$_errorName() + nameString + messageString; if (!_this._hasValue) return prefix; return prefix + _this.get$_errorExplanation() + ": " + A.Error_safeToString(_this.get$invalidValue()); }, get$invalidValue() { return this.invalidValue; }, get$message(receiver) { return this.message; } }; A.RangeError.prototype = { get$invalidValue() { return this.invalidValue; }, get$_errorName() { return "RangeError"; }, get$_errorExplanation() { var explanation, start = this.start, end = this.end; if (start == null) explanation = end != null ? ": Not less than or equal to " + A.S(end) : ""; else if (end == null) explanation = ": Not greater than or equal to " + A.S(start); else if (end > start) explanation = ": Not in inclusive range " + A.S(start) + ".." + A.S(end); else explanation = end < start ? ": Valid value range is empty" : ": Only valid value is " + A.S(start); return explanation; } }; A.IndexError.prototype = { get$invalidValue() { return this.invalidValue; }, get$_errorName() { return "RangeError"; }, get$_errorExplanation() { if (this.invalidValue < 0) return ": index must not be negative"; var t1 = this.length; if (t1 === 0) return ": no indices are valid"; return ": index should be less than " + t1; }, $isRangeError: 1, get$length(receiver) { return this.length; } }; A.NoSuchMethodError.prototype = { toString$0(_) { var $arguments, t1, _i, t2, t3, argument, receiverText, actualParameters, _this = this, _box_0 = {}, sb = new A.StringBuffer(""); _box_0.comma = ""; $arguments = _this._core$_arguments; for (t1 = $arguments.length, _i = 0, t2 = "", t3 = ""; _i < t1; ++_i, t3 = ", ") { argument = $arguments[_i]; sb._contents = t2 + t3; t2 = sb._contents += A.Error_safeToString(argument); _box_0.comma = ", "; } _this._namedArguments.forEach$1(0, new A.NoSuchMethodError_toString_closure(_box_0, sb)); receiverText = A.Error_safeToString(_this._core$_receiver); actualParameters = sb.toString$0(0); return "NoSuchMethodError: method not found: '" + _this._memberName.__internal$_name + "'\nReceiver: " + receiverText + "\nArguments: [" + actualParameters + "]"; } }; A.UnsupportedError.prototype = { toString$0(_) { return "Unsupported operation: " + this.message; }, get$message(receiver) { return this.message; } }; A.UnimplementedError.prototype = { toString$0(_) { return "UnimplementedError: " + this.message; }, get$message(receiver) { return this.message; } }; A.StateError.prototype = { toString$0(_) { return "Bad state: " + this.message; }, get$message(receiver) { return this.message; } }; A.ConcurrentModificationError.prototype = { toString$0(_) { var t1 = this.modifiedObject; if (t1 == null) return "Concurrent modification during iteration."; return "Concurrent modification during iteration: " + A.Error_safeToString(t1) + "."; } }; A.OutOfMemoryError.prototype = { toString$0(_) { return "Out of Memory"; }, get$stackTrace() { return null; }, $isError: 1 }; A.StackOverflowError.prototype = { toString$0(_) { return "Stack Overflow"; }, get$stackTrace() { return null; }, $isError: 1 }; A._Exception.prototype = { toString$0(_) { return "Exception: " + this.message; }, $isException: 1, get$message(receiver) { return this.message; } }; A.FormatException.prototype = { toString$0(_) { var t1, lineNum, lineStart, previousCharWasCR, i, char, lineEnd, end, start, prefix, postfix, message = this.message, report = "" !== message ? "FormatException: " + message : "FormatException", offset = this.offset, source = this.source; if (typeof source == "string") { if (offset != null) t1 = offset < 0 || offset > source.length; else t1 = false; if (t1) offset = null; if (offset == null) { if (source.length > 78) source = B.JSString_methods.substring$2(source, 0, 75) + "..."; return report + "\n" + source; } for (lineNum = 1, lineStart = 0, previousCharWasCR = false, i = 0; i < offset; ++i) { char = source.charCodeAt(i); if (char === 10) { if (lineStart !== i || !previousCharWasCR) ++lineNum; lineStart = i + 1; previousCharWasCR = false; } else if (char === 13) { ++lineNum; lineStart = i + 1; previousCharWasCR = true; } } report = lineNum > 1 ? report + (" (at line " + lineNum + ", character " + (offset - lineStart + 1) + ")\n") : report + (" (at character " + (offset + 1) + ")\n"); lineEnd = source.length; for (i = offset; i < lineEnd; ++i) { char = source.charCodeAt(i); if (char === 10 || char === 13) { lineEnd = i; break; } } if (lineEnd - lineStart > 78) if (offset - lineStart < 75) { end = lineStart + 75; start = lineStart; prefix = ""; postfix = "..."; } else { if (lineEnd - offset < 75) { start = lineEnd - 75; end = lineEnd; postfix = ""; } else { start = offset - 36; end = offset + 36; postfix = "..."; } prefix = "..."; } else { end = lineEnd; start = lineStart; prefix = ""; postfix = ""; } return report + prefix + B.JSString_methods.substring$2(source, start, end) + postfix + "\n" + B.JSString_methods.$mul(" ", offset - start + prefix.length) + "^\n"; } else return offset != null ? report + (" (at offset " + A.S(offset) + ")") : report; }, $isException: 1, get$message(receiver) { return this.message; } }; A.Iterable.prototype = { cast$1$0(_, $R) { return A.CastIterable_CastIterable(this, A._instanceType(this)._eval$1("Iterable.E"), $R); }, followedBy$1(_, other) { var _this = this, t1 = A._instanceType(_this); if (t1._eval$1("EfficientLengthIterable")._is(_this)) return A.FollowedByIterable_FollowedByIterable$firstEfficient(_this, other, t1._eval$1("Iterable.E")); return new A.FollowedByIterable(_this, other, t1._eval$1("FollowedByIterable")); }, map$1$1(_, toElement, $T) { return A.MappedIterable_MappedIterable(this, toElement, A._instanceType(this)._eval$1("Iterable.E"), $T); }, where$1(_, test) { return new A.WhereIterable(this, test, A._instanceType(this)._eval$1("WhereIterable")); }, expand$1$1(_, toElements, $T) { return new A.ExpandIterable(this, toElements, A._instanceType(this)._eval$1("@")._bind$1($T)._eval$1("ExpandIterable<1,2>")); }, contains$1(_, element) { var t1; for (t1 = this.get$iterator(this); t1.moveNext$0();) if (J.$eq$(t1.get$current(t1), element)) return true; return false; }, forEach$1(_, action) { var t1; for (t1 = this.get$iterator(this); t1.moveNext$0();) action.call$1(t1.get$current(t1)); }, fold$1$2(_, initialValue, combine) { var t1, value; for (t1 = this.get$iterator(this), value = initialValue; t1.moveNext$0();) value = combine.call$2(value, t1.get$current(t1)); return value; }, fold$2($receiver, initialValue, combine) { return this.fold$1$2($receiver, initialValue, combine, type$.dynamic); }, join$1(_, separator) { var first, t1, iterator = this.get$iterator(this); if (!iterator.moveNext$0()) return ""; first = J.toString$0$(iterator.get$current(iterator)); if (!iterator.moveNext$0()) return first; if (separator.length === 0) { t1 = first; do t1 += A.S(J.toString$0$(iterator.get$current(iterator))); while (iterator.moveNext$0()); } else { t1 = first; do t1 = t1 + separator + A.S(J.toString$0$(iterator.get$current(iterator))); while (iterator.moveNext$0()); } return t1.charCodeAt(0) == 0 ? t1 : t1; }, any$1(_, test) { var t1; for (t1 = this.get$iterator(this); t1.moveNext$0();) if (test.call$1(t1.get$current(t1))) return true; return false; }, toList$1$growable(_, growable) { return A.List_List$of(this, growable, A._instanceType(this)._eval$1("Iterable.E")); }, toList$0($receiver) { return this.toList$1$growable($receiver, true); }, toSet$0(_) { return A.LinkedHashSet_LinkedHashSet$of(this, A._instanceType(this)._eval$1("Iterable.E")); }, get$length(_) { var count, it = this.get$iterator(this); for (count = 0; it.moveNext$0();) ++count; return count; }, get$isEmpty(_) { return !this.get$iterator(this).moveNext$0(); }, get$isNotEmpty(_) { return !this.get$isEmpty(this); }, take$1(_, count) { return A.TakeIterable_TakeIterable(this, count, A._instanceType(this)._eval$1("Iterable.E")); }, skip$1(_, count) { return A.SkipIterable_SkipIterable(this, count, A._instanceType(this)._eval$1("Iterable.E")); }, skipWhile$1(_, test) { return new A.SkipWhileIterable(this, test, A._instanceType(this)._eval$1("SkipWhileIterable")); }, get$first(_) { var it = this.get$iterator(this); if (!it.moveNext$0()) throw A.wrapException(A.IterableElementError_noElement()); return it.get$current(it); }, get$last(_) { var result, it = this.get$iterator(this); if (!it.moveNext$0()) throw A.wrapException(A.IterableElementError_noElement()); do result = it.get$current(it); while (it.moveNext$0()); return result; }, get$single(_) { var result, it = this.get$iterator(this); if (!it.moveNext$0()) throw A.wrapException(A.IterableElementError_noElement()); result = it.get$current(it); if (it.moveNext$0()) throw A.wrapException(A.IterableElementError_tooMany()); return result; }, elementAt$1(_, index) { var iterator, skipCount; A.RangeError_checkNotNegative(index, "index"); iterator = this.get$iterator(this); for (skipCount = index; iterator.moveNext$0();) { if (skipCount === 0) return iterator.get$current(iterator); --skipCount; } throw A.wrapException(A.IndexError$withLength(index, index - skipCount, this, null, "index")); }, toString$0(_) { return A.Iterable_iterableToShortString(this, "(", ")"); } }; A._GeneratorIterable.prototype = { elementAt$1(_, index) { A.IndexError_check(index, this.length, this, null, null); return this._generator.call$1(index); }, get$length(receiver) { return this.length; } }; A.MapEntry.prototype = { toString$0(_) { return "MapEntry(" + A.S(this.key) + ": " + A.S(this.value) + ")"; } }; A.Null.prototype = { get$hashCode(_) { return A.Object.prototype.get$hashCode.call(this, this); }, toString$0(_) { return "null"; } }; A.Object.prototype = {$isObject: 1, $eq(_, other) { return this === other; }, get$hashCode(_) { return A.Primitives_objectHashCode(this); }, toString$0(_) { return "Instance of '" + A.Primitives_objectTypeName(this) + "'"; }, noSuchMethod$1(_, invocation) { throw A.wrapException(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, invocation)); }, get$runtimeType(_) { return A.getRuntimeTypeOfDartObject(this); }, toString() { return this.toString$0(this); } }; A._StringStackTrace.prototype = { toString$0(_) { return this._stackTrace; }, $isStackTrace: 1 }; A.Runes.prototype = { get$iterator(_) { return new A.RuneIterator(this.string); }, get$last(_) { var code, previousCode, t1 = this.string, t2 = t1.length; if (t2 === 0) throw A.wrapException(A.StateError$("No elements.")); code = t1.charCodeAt(t2 - 1); if ((code & 64512) === 56320 && t2 > 1) { previousCode = t1.charCodeAt(t2 - 2); if ((previousCode & 64512) === 55296) return A._combineSurrogatePair(previousCode, code); } return code; } }; A.RuneIterator.prototype = { get$current(_) { return this._currentCodePoint; }, moveNext$0() { var codeUnit, nextPosition, nextCodeUnit, _this = this, t1 = _this._position = _this._nextPosition, t2 = _this.string, t3 = t2.length; if (t1 === t3) { _this._currentCodePoint = -1; return false; } codeUnit = t2.charCodeAt(t1); nextPosition = t1 + 1; if ((codeUnit & 64512) === 55296 && nextPosition < t3) { nextCodeUnit = t2.charCodeAt(nextPosition); if ((nextCodeUnit & 64512) === 56320) { _this._nextPosition = nextPosition + 1; _this._currentCodePoint = A._combineSurrogatePair(codeUnit, nextCodeUnit); return true; } } _this._nextPosition = nextPosition; _this._currentCodePoint = codeUnit; return true; } }; A.StringBuffer.prototype = { get$length(_) { return this._contents.length; }, write$1(_, obj) { this._contents += A.S(obj); }, writeCharCode$1(charCode) { this._contents += A.Primitives_stringFromCharCode(charCode); }, toString$0(_) { var t1 = this._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; } }; A.Uri__parseIPv4Address_error.prototype = { call$2(msg, position) { throw A.wrapException(A.FormatException$("Illegal IPv4 address, " + msg, this.host, position)); }, $signature: 311 }; A.Uri_parseIPv6Address_error.prototype = { call$2(msg, position) { throw A.wrapException(A.FormatException$("Illegal IPv6 address, " + msg, this.host, position)); }, $signature: 313 }; A.Uri_parseIPv6Address_parseHex.prototype = { call$2(start, end) { var value; if (end - start > 4) this.error.call$2("an IPv6 part can only contain a maximum of 4 hex digits", start); value = A.int_parse(B.JSString_methods.substring$2(this.host, start, end), 16); if (value < 0 || value > 65535) this.error.call$2("each part must be in the range of `0x0..0xFFFF`", start); return value; }, $signature: 314 }; A._Uri.prototype = { get$_text() { var t1, t2, t3, t4, _this = this, value = _this.___Uri__text_FI; if (value === $) { t1 = _this.scheme; t2 = t1.length !== 0 ? "" + t1 + ":" : ""; t3 = _this._host; t4 = t3 == null; if (!t4 || t1 === "file") { t1 = t2 + "//"; t2 = _this._userInfo; if (t2.length !== 0) t1 = t1 + t2 + "@"; if (!t4) t1 += t3; t2 = _this._port; if (t2 != null) t1 = t1 + ":" + A.S(t2); } else t1 = t2; t1 += _this.path; t2 = _this._query; if (t2 != null) t1 = t1 + "?" + t2; t2 = _this._fragment; if (t2 != null) t1 = t1 + "#" + t2; value !== $ && A.throwUnnamedLateFieldADI(); value = _this.___Uri__text_FI = t1.charCodeAt(0) == 0 ? t1 : t1; } return value; }, get$pathSegments() { var pathToSplit, result, _this = this, value = _this.___Uri_pathSegments_FI; if (value === $) { pathToSplit = _this.path; if (pathToSplit.length !== 0 && pathToSplit.charCodeAt(0) === 47) pathToSplit = B.JSString_methods.substring$1(pathToSplit, 1); 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); _this.___Uri_pathSegments_FI !== $ && A.throwUnnamedLateFieldADI(); value = _this.___Uri_pathSegments_FI = result; } return value; }, get$hashCode(_) { var result, _this = this, value = _this.___Uri_hashCode_FI; if (value === $) { result = B.JSString_methods.get$hashCode(_this.get$_text()); _this.___Uri_hashCode_FI !== $ && A.throwUnnamedLateFieldADI(); _this.___Uri_hashCode_FI = result; value = result; } return value; }, get$userInfo() { return this._userInfo; }, get$host() { var host = this._host; if (host == null) return ""; if (B.JSString_methods.startsWith$1(host, "[")) return B.JSString_methods.substring$2(host, 1, host.length - 1); return host; }, get$port(_) { var t1 = this._port; return t1 == null ? A._Uri__defaultPort(this.scheme) : t1; }, get$query() { var t1 = this._query; return t1 == null ? "" : t1; }, get$fragment() { var t1 = this._fragment; return t1 == null ? "" : t1; }, isScheme$1(scheme) { var thisScheme = this.scheme; if (scheme.length !== thisScheme.length) return false; return A._caseInsensitiveCompareStart(scheme, thisScheme, 0) >= 0; }, _mergePaths$2(base, reference) { var backCount, refStart, baseEnd, newEnd, delta, t1; for (backCount = 0, refStart = 0; B.JSString_methods.startsWith$2(reference, "../", refStart);) { refStart += 3; ++backCount; } baseEnd = B.JSString_methods.lastIndexOf$1(base, "/"); while (true) { if (!(baseEnd > 0 && backCount > 0)) break; newEnd = B.JSString_methods.lastIndexOf$2(base, "/", baseEnd - 1); if (newEnd < 0) break; delta = baseEnd - newEnd; t1 = delta !== 2; if (!t1 || delta === 3) if (base.charCodeAt(newEnd + 1) === 46) t1 = !t1 || base.charCodeAt(newEnd + 2) === 46; else t1 = false; else t1 = false; if (t1) break; --backCount; baseEnd = newEnd; } return B.JSString_methods.replaceRange$3(base, baseEnd + 1, null, B.JSString_methods.substring$1(reference, refStart - 3 * backCount)); }, resolve$1(reference) { return this.resolveUri$1(A.Uri_parse(reference)); }, resolveUri$1(reference) { var targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, packageNameEnd, packageName, mergedPath, t1, _this = this, _null = null; if (reference.get$scheme().length !== 0) { targetScheme = reference.get$scheme(); if (reference.get$hasAuthority()) { targetUserInfo = reference.get$userInfo(); targetHost = reference.get$host(); targetPort = reference.get$hasPort() ? reference.get$port(reference) : _null; } else { targetPort = _null; targetHost = targetPort; targetUserInfo = ""; } targetPath = A._Uri__removeDotSegments(reference.get$path(reference)); targetQuery = reference.get$hasQuery() ? reference.get$query() : _null; } else { targetScheme = _this.scheme; if (reference.get$hasAuthority()) { targetUserInfo = reference.get$userInfo(); targetHost = reference.get$host(); targetPort = A._Uri__makePort(reference.get$hasPort() ? reference.get$port(reference) : _null, targetScheme); targetPath = A._Uri__removeDotSegments(reference.get$path(reference)); targetQuery = reference.get$hasQuery() ? reference.get$query() : _null; } else { targetUserInfo = _this._userInfo; targetHost = _this._host; targetPort = _this._port; targetPath = _this.path; if (reference.get$path(reference) === "") targetQuery = reference.get$hasQuery() ? reference.get$query() : _this._query; else { packageNameEnd = A._Uri__packageNameEnd(_this, targetPath); if (packageNameEnd > 0) { packageName = B.JSString_methods.substring$2(targetPath, 0, packageNameEnd); 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))); } else if (reference.get$hasAbsolutePath()) targetPath = A._Uri__removeDotSegments(reference.get$path(reference)); else if (targetPath.length === 0) if (targetHost == null) targetPath = targetScheme.length === 0 ? reference.get$path(reference) : A._Uri__removeDotSegments(reference.get$path(reference)); else targetPath = A._Uri__removeDotSegments("/" + reference.get$path(reference)); else { mergedPath = _this._mergePaths$2(targetPath, reference.get$path(reference)); t1 = targetScheme.length === 0; if (!t1 || targetHost != null || B.JSString_methods.startsWith$1(targetPath, "/")) targetPath = A._Uri__removeDotSegments(mergedPath); else targetPath = A._Uri__normalizeRelativePath(mergedPath, !t1 || targetHost != null); } targetQuery = reference.get$hasQuery() ? reference.get$query() : _null; } } } return A._Uri$_internal(targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, reference.get$hasFragment() ? reference.get$fragment() : _null); }, get$hasAuthority() { return this._host != null; }, get$hasPort() { return this._port != null; }, get$hasQuery() { return this._query != null; }, get$hasFragment() { return this._fragment != null; }, get$hasAbsolutePath() { return B.JSString_methods.startsWith$1(this.path, "/"); }, toFilePath$0() { var pathSegments, _this = this, t1 = _this.scheme; if (t1 !== "" && t1 !== "file") throw A.wrapException(A.UnsupportedError$("Cannot extract a file path from a " + t1 + " URI")); t1 = _this._query; if ((t1 == null ? "" : t1) !== "") throw A.wrapException(A.UnsupportedError$(string$.Cannotfq)); t1 = _this._fragment; if ((t1 == null ? "" : t1) !== "") throw A.wrapException(A.UnsupportedError$(string$.Cannotff)); t1 = $.$get$_Uri__isWindowsCached(); if (t1) t1 = A._Uri__toWindowsFilePath(_this); else { if (_this._host != null && _this.get$host() !== "") A.throwExpression(A.UnsupportedError$(string$.Cannotn)); pathSegments = _this.get$pathSegments(); A._Uri__checkNonWindowsPathReservedCharacters(pathSegments, false); t1 = A.StringBuffer__writeAll(B.JSString_methods.startsWith$1(_this.path, "/") ? "" + "/" : "", pathSegments, "/"); t1 = t1.charCodeAt(0) == 0 ? t1 : t1; } return t1; }, toString$0(_) { return this.get$_text(); }, $eq(_, other) { var t1, t2, _this = this; if (other == null) return false; if (_this === other) return true; if (type$.Uri._is(other)) if (_this.scheme === other.get$scheme()) if (_this._host != null === other.get$hasAuthority()) if (_this._userInfo === other.get$userInfo()) if (_this.get$host() === other.get$host()) if (_this.get$port(_this) === other.get$port(other)) if (_this.path === other.get$path(other)) { t1 = _this._query; t2 = t1 == null; if (!t2 === other.get$hasQuery()) { if (t2) t1 = ""; if (t1 === other.get$query()) { t1 = _this._fragment; t2 = t1 == null; if (!t2 === other.get$hasFragment()) { if (t2) t1 = ""; t1 = t1 === other.get$fragment(); } else t1 = false; } else t1 = false; } else t1 = false; } else t1 = false; else t1 = false; else t1 = false; else t1 = false; else t1 = false; else t1 = false; else t1 = false; return t1; }, $isUri: 1, get$scheme() { return this.scheme; }, get$path(receiver) { return this.path; } }; A._Uri__makePath_closure.prototype = { call$1(s) { return A._Uri__uriEncode(B.List_XRg0, s, B.C_Utf8Codec, false); }, $signature: 7 }; A.UriData.prototype = { get$uri() { var t2, queryIndex, end, query, _this = this, _null = null, t1 = _this._uriCache; if (t1 == null) { t1 = _this._text; t2 = _this._separatorIndices[0] + 1; queryIndex = B.JSString_methods.indexOf$2(t1, "?", t2); end = t1.length; if (queryIndex >= 0) { query = A._Uri__normalizeOrSubstring(t1, queryIndex + 1, end, B.List_oFp, false, false); end = queryIndex; } else query = _null; t1 = _this._uriCache = new A._DataUri("data", "", _null, _null, A._Uri__normalizeOrSubstring(t1, t2, end, B.List_XRg, false, false), query, _null); } return t1; }, toString$0(_) { var t1 = this._text; return this._separatorIndices[0] === -1 ? "data:" + t1 : t1; } }; A._createTables_build.prototype = { call$2(state, defaultTransition) { var t1 = this.tables[state]; B.NativeUint8List_methods.fillRange$3(t1, 0, 96, defaultTransition); return t1; }, $signature: 330 }; A._createTables_setChars.prototype = { call$3(target, chars, transition) { var t1, i; for (t1 = chars.length, i = 0; i < t1; ++i) target[chars.charCodeAt(i) ^ 96] = transition; }, $signature: 183 }; A._createTables_setRange.prototype = { call$3(target, range, transition) { var i, n; for (i = range.charCodeAt(0), n = range.charCodeAt(1); i <= n; ++i) target[(i ^ 96) >>> 0] = transition; }, $signature: 183 }; A._SimpleUri.prototype = { get$hasAuthority() { return this._hostStart > 0; }, get$hasPort() { return this._hostStart > 0 && this._portStart + 1 < this._pathStart; }, get$hasQuery() { return this._queryStart < this._fragmentStart; }, get$hasFragment() { return this._fragmentStart < this._uri.length; }, get$hasAbsolutePath() { return B.JSString_methods.startsWith$2(this._uri, "/", this._pathStart); }, get$scheme() { var t1 = this._schemeCache; return t1 == null ? this._schemeCache = this._computeScheme$0() : t1; }, _computeScheme$0() { var t2, _this = this, t1 = _this._schemeEnd; if (t1 <= 0) return ""; t2 = t1 === 4; if (t2 && B.JSString_methods.startsWith$1(_this._uri, "http")) return "http"; if (t1 === 5 && B.JSString_methods.startsWith$1(_this._uri, "https")) return "https"; if (t2 && B.JSString_methods.startsWith$1(_this._uri, "file")) return "file"; if (t1 === 7 && B.JSString_methods.startsWith$1(_this._uri, "package")) return "package"; return B.JSString_methods.substring$2(_this._uri, 0, t1); }, get$userInfo() { var t1 = this._hostStart, t2 = this._schemeEnd + 3; return t1 > t2 ? B.JSString_methods.substring$2(this._uri, t2, t1 - 1) : ""; }, get$host() { var t1 = this._hostStart; return t1 > 0 ? B.JSString_methods.substring$2(this._uri, t1, this._portStart) : ""; }, get$port(_) { var t1, _this = this; if (_this.get$hasPort()) return A.int_parse(B.JSString_methods.substring$2(_this._uri, _this._portStart + 1, _this._pathStart), null); t1 = _this._schemeEnd; if (t1 === 4 && B.JSString_methods.startsWith$1(_this._uri, "http")) return 80; if (t1 === 5 && B.JSString_methods.startsWith$1(_this._uri, "https")) return 443; return 0; }, get$path(_) { return B.JSString_methods.substring$2(this._uri, this._pathStart, this._queryStart); }, get$query() { var t1 = this._queryStart, t2 = this._fragmentStart; return t1 < t2 ? B.JSString_methods.substring$2(this._uri, t1 + 1, t2) : ""; }, get$fragment() { var t1 = this._fragmentStart, t2 = this._uri; return t1 < t2.length ? B.JSString_methods.substring$1(t2, t1 + 1) : ""; }, get$pathSegments() { var parts, i, start = this._pathStart, end = this._queryStart, t1 = this._uri; if (B.JSString_methods.startsWith$2(t1, "/", start)) ++start; if (start === end) return B.List_empty; parts = A._setArrayType([], type$.JSArray_String); for (i = start; i < end; ++i) if (t1.charCodeAt(i) === 47) { parts.push(B.JSString_methods.substring$2(t1, start, i)); start = i + 1; } parts.push(B.JSString_methods.substring$2(t1, start, end)); return A.List_List$unmodifiable(parts, type$.String); }, _isPort$1(port) { var portDigitStart = this._portStart + 1; return portDigitStart + port.length === this._pathStart && B.JSString_methods.startsWith$2(this._uri, port, portDigitStart); }, removeFragment$0() { var _this = this, t1 = _this._fragmentStart, t2 = _this._uri; if (t1 >= t2.length) return _this; 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); }, resolve$1(reference) { return this.resolveUri$1(A.Uri_parse(reference)); }, resolveUri$1(reference) { if (reference instanceof A._SimpleUri) return this._simpleMerge$2(this, reference); return this._toNonSimple$0().resolveUri$1(reference); }, _simpleMerge$2(base, ref) { var t2, t3, t4, isSimple, delta, refStart, basePathStart, packageNameEnd, basePathStart0, baseStart, baseEnd, baseUri, baseStart0, backCount, refStart0, insert, t1 = ref._schemeEnd; if (t1 > 0) return ref; t2 = ref._hostStart; if (t2 > 0) { t3 = base._schemeEnd; if (t3 <= 0) return ref; t4 = t3 === 4; if (t4 && B.JSString_methods.startsWith$1(base._uri, "file")) isSimple = ref._pathStart !== ref._queryStart; else if (t4 && B.JSString_methods.startsWith$1(base._uri, "http")) isSimple = !ref._isPort$1("80"); else isSimple = !(t3 === 5 && B.JSString_methods.startsWith$1(base._uri, "https")) || !ref._isPort$1("443"); if (isSimple) { delta = t3 + 1; 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); } else return this._toNonSimple$0().resolveUri$1(ref); } refStart = ref._pathStart; t1 = ref._queryStart; if (refStart === t1) { t2 = ref._fragmentStart; if (t1 < t2) { t3 = base._queryStart; delta = t3 - t1; 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); } t1 = ref._uri; if (t2 < t1.length) { t3 = base._fragmentStart; 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); } return base.removeFragment$0(); } t2 = ref._uri; if (B.JSString_methods.startsWith$2(t2, "/", refStart)) { basePathStart = base._pathStart; packageNameEnd = A._SimpleUri__packageNameEnd(this); basePathStart0 = packageNameEnd > 0 ? packageNameEnd : basePathStart; delta = basePathStart0 - refStart; 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); } baseStart = base._pathStart; baseEnd = base._queryStart; if (baseStart === baseEnd && base._hostStart > 0) { for (; B.JSString_methods.startsWith$2(t2, "../", refStart);) refStart += 3; delta = baseStart - refStart + 1; 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); } baseUri = base._uri; packageNameEnd = A._SimpleUri__packageNameEnd(this); if (packageNameEnd >= 0) baseStart0 = packageNameEnd; else for (baseStart0 = baseStart; B.JSString_methods.startsWith$2(baseUri, "../", baseStart0);) baseStart0 += 3; backCount = 0; while (true) { refStart0 = refStart + 3; if (!(refStart0 <= t1 && B.JSString_methods.startsWith$2(t2, "../", refStart))) break; ++backCount; refStart = refStart0; } for (insert = ""; baseEnd > baseStart0;) { --baseEnd; if (baseUri.charCodeAt(baseEnd) === 47) { if (backCount === 0) { insert = "/"; break; } --backCount; insert = "/"; } } if (baseEnd === baseStart0 && base._schemeEnd <= 0 && !B.JSString_methods.startsWith$2(baseUri, "/", baseStart)) { refStart -= backCount * 3; insert = ""; } delta = baseEnd - refStart + insert.length; 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); }, toFilePath$0() { var t2, t3, _this = this, t1 = _this._schemeEnd; if (t1 >= 0) { t2 = !(t1 === 4 && B.JSString_methods.startsWith$1(_this._uri, "file")); t1 = t2; } else t1 = false; if (t1) throw A.wrapException(A.UnsupportedError$("Cannot extract a file path from a " + _this.get$scheme() + " URI")); t1 = _this._queryStart; t2 = _this._uri; if (t1 < t2.length) { if (t1 < _this._fragmentStart) throw A.wrapException(A.UnsupportedError$(string$.Cannotfq)); throw A.wrapException(A.UnsupportedError$(string$.Cannotff)); } t3 = $.$get$_Uri__isWindowsCached(); if (t3) t1 = A._Uri__toWindowsFilePath(_this); else { if (_this._hostStart < _this._portStart) A.throwExpression(A.UnsupportedError$(string$.Cannotn)); t1 = B.JSString_methods.substring$2(t2, _this._pathStart, t1); } return t1; }, get$hashCode(_) { var t1 = this._hashCodeCache; return t1 == null ? this._hashCodeCache = B.JSString_methods.get$hashCode(this._uri) : t1; }, $eq(_, other) { if (other == null) return false; if (this === other) return true; return type$.Uri._is(other) && this._uri === other.toString$0(0); }, _toNonSimple$0() { var _this = this, _null = null, t1 = _this.get$scheme(), t2 = _this.get$userInfo(), t3 = _this._hostStart > 0 ? _this.get$host() : _null, t4 = _this.get$hasPort() ? _this.get$port(_this) : _null, t5 = _this._uri, t6 = _this._queryStart, t7 = B.JSString_methods.substring$2(t5, _this._pathStart, t6), t8 = _this._fragmentStart; t6 = t6 < t8 ? _this.get$query() : _null; return A._Uri$_internal(t1, t2, t3, t4, t7, t6, t8 < t5.length ? _this.get$fragment() : _null); }, toString$0(_) { return this._uri; }, $isUri: 1 }; A._DataUri.prototype = {}; A.Expando.prototype = { $indexSet(_, object, value) { if (object instanceof A._Record) A.Expando__badExpandoKey(object); this._jsWeakMap.set(object, value); }, toString$0(_) { return "Expando:null"; } }; A.jsify__convert.prototype = { call$1(o) { var t1, convertedMap, key, convertedList; if (A._noJsifyRequired(o)) return o; t1 = this._convertedObjects; if (t1.containsKey$1(o)) return t1.$index(0, o); if (type$.Map_of_nullable_Object_and_nullable_Object._is(o)) { convertedMap = {}; t1.$indexSet(0, o, convertedMap); for (t1 = J.get$iterator$ax(o.get$keys(o)); t1.moveNext$0();) { key = t1.get$current(t1); convertedMap[key] = this.call$1(o.$index(0, key)); } return convertedMap; } else if (type$.Iterable_nullable_Object._is(o)) { convertedList = []; t1.$indexSet(0, o, convertedList); B.JSArray_methods.addAll$1(convertedList, J.map$1$1$ax(o, this, type$.dynamic)); return convertedList; } else return o; }, $signature: 338 }; A._JSRandom.prototype = { nextInt$1(max) { if (max <= 0 || max > 4294967296) throw A.wrapException(A.RangeError$("max must be in range 0 < max \u2264 2^32, was " + max)); return Math.random() * max >>> 0; }, nextDouble$0() { return Math.random(); } }; A.ArgParser.prototype = { addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, defaultsTo, help, hide, negatable) { var _null = null; this._addOption$12$aliases$hide$negatable($name, abbr, help, _null, _null, _null, defaultsTo, _null, B.OptionType_nMZ, B.List_empty, hide, negatable); }, addFlag$2$hide($name, hide) { return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, null, hide, true); }, addFlag$2$help($name, help) { return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, true); }, addFlag$3$defaultsTo$help($name, defaultsTo, help) { return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, defaultsTo, help, false, true); }, addFlag$3$help$negatable($name, help, negatable) { return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, negatable); }, addFlag$3$abbr$help($name, abbr, help) { return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, true); }, addFlag$4$abbr$help$negatable($name, abbr, help, negatable) { return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, negatable); }, addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, abbr, allowed, defaultsTo, help, hide, valueHelp) { this._addOption$12$aliases$hide$mandatory($name, abbr, help, valueHelp, allowed, null, defaultsTo, null, B.OptionType_YwU, B.List_empty, hide, false); }, addOption$2$hide($name, hide) { return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, null, null, null, hide, null); }, addOption$6$abbr$allowed$defaultsTo$help$valueHelp($name, abbr, allowed, defaultsTo, help, valueHelp) { return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, abbr, allowed, defaultsTo, help, false, valueHelp); }, addOption$4$allowed$defaultsTo$help($name, allowed, defaultsTo, help) { return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, allowed, defaultsTo, help, false, null); }, addMultiOption$6$abbr$allowedHelp$help$splitCommas$valueHelp($name, abbr, allowedHelp, help, splitCommas, valueHelp) { var t1 = A._setArrayType([], type$.JSArray_String); this._addOption$12$aliases$hide$splitCommas($name, abbr, help, valueHelp, null, allowedHelp, t1, null, B.OptionType_qyr, B.List_empty, false, splitCommas); }, addMultiOption$5$abbr$help$splitCommas$valueHelp($name, abbr, help, splitCommas, valueHelp) { return this.addMultiOption$6$abbr$allowedHelp$help$splitCommas$valueHelp($name, abbr, null, help, splitCommas, valueHelp); }, addMultiOption$3$allowedHelp$help($name, allowedHelp, help) { return this.addMultiOption$6$abbr$allowedHelp$help$splitCommas$valueHelp($name, null, allowedHelp, help, true, null); }, _addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, mandatory, negatable, splitCommas) { var existing, t2, t3, option, _i, _this = this, _null = null, t1 = A._setArrayType([$name], type$.JSArray_String); B.JSArray_methods.addAll$1(t1, aliases); if (B.JSArray_methods.any$1(t1, new A.ArgParser__addOption_closure(_this))) throw A.wrapException(A.ArgumentError$('Duplicate option or alias "' + $name + '".', _null)); t1 = abbr != null; if (t1) { existing = _this.findByAbbreviation$1(abbr); if (existing != null) throw A.wrapException(A.ArgumentError$('Abbreviation "' + abbr + '" is already used by "' + existing.name + '".', _null)); } t2 = allowed == null ? _null : A.List_List$unmodifiable(allowed, type$.String); if (allowedHelp == null) t3 = _null; else { t3 = type$.String; t3 = A.ConstantMap_ConstantMap$from(allowedHelp, t3, t3); } option = new A.Option($name, abbr, help, valueHelp, t2, t3, defaultsTo, negatable, callback, type, splitCommas == null ? type === B.OptionType_qyr : splitCommas, false, hide); if ($name.length === 0) A.throwExpression(A.ArgumentError$("Name cannot be empty.", _null)); else if (B.JSString_methods.startsWith$1($name, "-")) A.throwExpression(A.ArgumentError$("Name " + $name + ' cannot start with "-".', _null)); t2 = $.$get$Option__invalidChars()._nativeRegExp; if (t2.test($name)) A.throwExpression(A.ArgumentError$('Name "' + $name + '" contains invalid characters.', _null)); if (t1) { if (abbr.length !== 1) A.throwExpression(A.ArgumentError$("Abbreviation must be null or have length 1.", _null)); else if (abbr === "-") A.throwExpression(A.ArgumentError$('Abbreviation cannot be "-".', _null)); if (t2.test(abbr)) A.throwExpression(A.ArgumentError$("Abbreviation is an invalid character.", _null)); } _this._arg_parser$_options.$indexSet(0, $name, option); _this._optionsAndSeparators.push(option); for (t1 = _this._aliases, _i = 0; false; ++_i) t1.$indexSet(0, aliases[_i], $name); }, _addOption$12$aliases$hide$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, splitCommas) { return this._addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, false, false, splitCommas); }, _addOption$12$aliases$hide$mandatory($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, mandatory) { return this._addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, mandatory, false, null); }, _addOption$12$aliases$hide$negatable($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, negatable) { return this._addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, false, negatable, null); }, findByAbbreviation$1(abbr) { var t1, t2; for (t1 = this.options._map, t1 = t1.get$values(t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) { t2 = t1.get$current(t1); if (t2.abbr === abbr) return t2; } return null; }, findByNameOrAlias$1($name) { var t1 = this._aliases.$index(0, $name); if (t1 == null) t1 = $name; return this.options._map.$index(0, t1); } }; A.ArgParser__addOption_closure.prototype = { call$1($name) { return this.$this.findByNameOrAlias$1($name) != null; }, $signature: 10 }; A.ArgParserException.prototype = {}; A.ArgResults.prototype = { $index(_, $name) { var t1 = this._parser.options._map; if (!t1.containsKey$1($name)) throw A.wrapException(A.ArgumentError$('Could not find an option named "' + $name + '".', null)); t1 = t1.$index(0, $name); t1.toString; return t1.valueOrDefault$1(this._parsed.$index(0, $name)); }, wasParsed$1($name) { if (!this._parser.options._map.containsKey$1($name)) throw A.wrapException(A.ArgumentError$('Could not find an option named "' + $name + '".', null)); return this._parsed.containsKey$1($name); } }; A.Option.prototype = { valueOrDefault$1(value) { var t1; if (value != null) return value; if (this.type === B.OptionType_qyr) { t1 = this.defaultsTo; return t1 == null ? A._setArrayType([], type$.JSArray_String) : t1; } return this.defaultsTo; } }; A.OptionType.prototype = {}; A.Parser0.prototype = { parse$0() { var commandResults, commandName, commandParser, error, t1, t3, t4, t5, t6, t7, t8, command, exception, _this = this, t2 = _this._args; t2.toList$0(0); commandResults = null; for (t3 = _this._parser$_rest, t4 = _this._grammar, t5 = t4.commands, t6 = t2.$ti._precomputed1; !t2.get$isEmpty(t2);) { t7 = t2._head; if (t7 === t2._tail) A.throwExpression(A.IterableElementError_noElement()); t7 = t2._table[t7]; t8 = t7 == null; if ((t8 ? t6._as(t7) : t7) === "--") { t2.removeFirst$0(); break; } if (t8) t7 = t6._as(t7); command = t5._map.$index(0, t7); if (command != null) { if (t3.length !== 0) A.throwExpression(A.ArgParserException$("Cannot specify arguments before a command.", null)); commandName = t2.removeFirst$0(); t5 = type$.JSArray_String; t6 = A._setArrayType([], t5); B.JSArray_methods.addAll$1(t6, t3); commandParser = new A.Parser0(commandName, _this, command, t2, t6, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic)); try { commandResults = commandParser.parse$0(); } catch (exception) { t2 = A.unwrapException(exception); if (t2 instanceof A.ArgParserException) { error = t2; t2 = error.message; t1 = A._setArrayType([commandName], t5); J.addAll$1$ax(t1, error.commands); throw A.wrapException(A.ArgParserException$(t2, t1)); } else throw exception; } B.JSArray_methods.clear$0(t3); break; } if (_this._parseSoloOption$0()) continue; if (_this._parseAbbreviation$1(_this)) continue; if (_this._parseLongOption$0()) continue; t3.push(t2.removeFirst$0()); } t4.options._map.forEach$1(0, new A.Parser_parse_closure(_this)); B.JSArray_methods.addAll$1(t3, t2); t2.clear$0(0); return new A.ArgResults(t4, _this._results, _this._commandName, new A.UnmodifiableListView(t3, type$.UnmodifiableListView_String)); }, _readNextArgAsValue$1(option) { var t1 = this._args; if (t1.get$isEmpty(t1)) A.throwExpression(A.ArgParserException$('Missing argument for "' + option.name + '".', null)); this._setOption$3(this._results, option, t1.get$first(t1)); t1.removeFirst$0(); }, _parseSoloOption$0() { var opt, t1 = this._args; if (t1.get$first(t1).length !== 2) return false; if (!B.JSString_methods.startsWith$1(t1.get$first(t1), "-")) return false; opt = t1.get$first(t1)[1]; if (!A._isLetterOrDigit(opt.charCodeAt(0))) return false; this._handleSoloOption$1(opt); return true; }, _handleSoloOption$1(opt) { var t1, _this = this, option = _this._grammar.findByAbbreviation$1(opt); if (option == null) { t1 = _this._parser$_parent; if (t1 == null) A.throwExpression(A.ArgParserException$('Could not find an option or flag "-' + opt + '".', null)); t1._handleSoloOption$1(opt); return true; } _this._args.removeFirst$0(); if (option.type === B.OptionType_nMZ) _this._results.$indexSet(0, option.name, true); else _this._readNextArgAsValue$1(option); return true; }, _parseAbbreviation$1(innermostCommand) { var t2, index, t3, t4, lettersAndDigits, rest, t1 = this._args; if (t1.get$first(t1).length < 2) return false; if (!B.JSString_methods.startsWith$1(t1.get$first(t1), "-")) return false; t2 = t1.$ti._precomputed1; index = 1; while (true) { t3 = t1._head; if (t3 === t1._tail) A.throwExpression(A.IterableElementError_noElement()); t3 = t1._table[t3]; t4 = t3 == null; if (index < (t4 ? t2._as(t3) : t3).length) { t3 = (t4 ? t2._as(t3) : t3).charCodeAt(index); if (!(t3 >= 65 && t3 <= 90)) if (!(t3 >= 97 && t3 <= 122)) t3 = t3 >= 48 && t3 <= 57; else t3 = true; else t3 = true; } else t3 = false; if (!t3) break; ++index; } if (index === 1) return false; lettersAndDigits = B.JSString_methods.substring$2(t1.get$first(t1), 1, index); rest = B.JSString_methods.substring$1(t1.get$first(t1), index); if (B.JSString_methods.contains$1(rest, "\n") || B.JSString_methods.contains$1(rest, "\r")) return false; this._handleAbbreviation$3(lettersAndDigits, rest, innermostCommand); return true; }, _handleAbbreviation$3(lettersAndDigits, rest, innermostCommand) { var t1, i, i0, _this = this, c = B.JSString_methods.substring$2(lettersAndDigits, 0, 1), first = _this._grammar.findByAbbreviation$1(c); if (first == null) { t1 = _this._parser$_parent; if (t1 == null) A.throwExpression(A.ArgParserException$(string$.Could_ + c + '".', null)); t1._handleAbbreviation$3(lettersAndDigits, rest, innermostCommand); return true; } else if (first.type !== B.OptionType_nMZ) _this._setOption$3(_this._results, first, B.JSString_methods.substring$1(lettersAndDigits, 1) + rest); else { t1 = B.JSString_methods.substring$1(lettersAndDigits, 1); if (rest !== "") A.throwExpression(A.ArgParserException$('Option "-' + c + '" is a flag and cannot handle value "' + t1 + rest + '".', null)); for (t1 = lettersAndDigits.length, i = 0; i < t1; i = i0) { i0 = i + 1; innermostCommand._parseShortFlag$1(B.JSString_methods.substring$2(lettersAndDigits, i, i0)); } } _this._args.removeFirst$0(); return true; }, _parseShortFlag$1(c) { var t1, option = this._grammar.findByAbbreviation$1(c); if (option == null) { t1 = this._parser$_parent; if (t1 == null) A.throwExpression(A.ArgParserException$(string$.Could_ + c + '".', null)); t1._parseShortFlag$1(c); return; } if (option.type !== B.OptionType_nMZ) A.throwExpression(A.ArgParserException$('Option "-' + c + '" must be a flag to be in a collapsed "-".', null)); this._results.$indexSet(0, option.name, true); }, _parseLongOption$0() { var index, t2, $name, t3, i, t4, t5, value, t1 = this._args; if (!B.JSString_methods.startsWith$1(t1.get$first(t1), "--")) return false; index = B.JSString_methods.indexOf$1(t1.get$first(t1), "="); t2 = index === -1; $name = t2 ? B.JSString_methods.substring$1(t1.get$first(t1), 2) : B.JSString_methods.substring$2(t1.get$first(t1), 2, index); for (t3 = $name.length, i = 0; i !== t3; ++i) { t4 = $name.charCodeAt(i); if (!(t4 >= 65 && t4 <= 90)) if (!(t4 >= 97 && t4 <= 122)) t5 = t4 >= 48 && t4 <= 57; else t5 = true; else t5 = true; if (!(t5 || t4 === 45 || t4 === 95)) return false; } value = t2 ? null : B.JSString_methods.substring$1(t1.get$first(t1), index + 1); if (value != null) t1 = B.JSString_methods.contains$1(value, "\n") || B.JSString_methods.contains$1(value, "\r"); else t1 = false; if (t1) return false; this._handleLongOption$2($name, value); return true; }, _handleLongOption$2($name, value) { var _this = this, _null = null, _s32_ = 'Could not find an option named "', t1 = _this._grammar, option = t1.findByNameOrAlias$1($name); if (option != null) { _this._args.removeFirst$0(); if (option.type === B.OptionType_nMZ) { if (value != null) A.throwExpression(A.ArgParserException$('Flag option "' + $name + '" should not be given a value.', _null)); _this._results.$indexSet(0, option.name, true); } else if (value != null) _this._setOption$3(_this._results, option, value); else _this._readNextArgAsValue$1(option); } else if (B.JSString_methods.startsWith$1($name, "no-")) { option = t1.findByNameOrAlias$1(B.JSString_methods.substring$1($name, 3)); if (option == null) { t1 = _this._parser$_parent; if (t1 == null) A.throwExpression(A.ArgParserException$(_s32_ + $name + '".', _null)); t1._handleLongOption$2($name, value); return true; } _this._args.removeFirst$0(); if (option.type !== B.OptionType_nMZ) A.throwExpression(A.ArgParserException$('Cannot negate non-flag option "' + $name + '".', _null)); if (!option.negatable) A.throwExpression(A.ArgParserException$('Cannot negate option "' + $name + '".', _null)); _this._results.$indexSet(0, option.name, false); } else { t1 = _this._parser$_parent; if (t1 == null) A.throwExpression(A.ArgParserException$(_s32_ + $name + '".', _null)); t1._handleLongOption$2($name, value); return true; } return true; }, _setOption$3(results, option, value) { var list, t1, t2, t3, _i, element; if (option.type !== B.OptionType_qyr) { this._validateAllowed$2(option, value); results.$indexSet(0, option.name, value); return; } list = type$.List_dynamic._as(results.putIfAbsent$2(option.name, new A.Parser__setOption_closure())); if (option.splitCommas) for (t1 = value.split(","), t2 = t1.length, t3 = J.getInterceptor$ax(list), _i = 0; _i < t2; ++_i) { element = t1[_i]; this._validateAllowed$2(option, element); t3.add$1(list, element); } else { this._validateAllowed$2(option, value); J.add$1$ax(list, value); } }, _validateAllowed$2(option, value) { var t1 = option.allowed; if (t1 == null) return; if (!B.JSArray_methods.contains$1(t1, value)) A.throwExpression(A.ArgParserException$('"' + value + '" is not an allowed value for option "' + option.name + '".', null)); } }; A.Parser_parse_closure.prototype = { call$2($name, option) { var parsedOption = this.$this._results.$index(0, $name), callback = option.callback; if (callback == null) return; callback.call$1(option.valueOrDefault$1(parsedOption)); }, $signature: 367 }; A.Parser__setOption_closure.prototype = { call$0() { return A._setArrayType([], type$.JSArray_String); }, $signature: 26 }; A._Usage.prototype = { get$_columnWidths() { var result, _this = this, value = _this.___Usage__columnWidths_FI; if (value === $) { result = _this._calculateColumnWidths$0(); _this.___Usage__columnWidths_FI !== $ && A.throwUnnamedLateFieldADI(); _this.___Usage__columnWidths_FI = result; value = result; } return value; }, generate$0() { var t1, t2, t3, t4, _i, optionOrSeparator, t5, _this = this; 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) { optionOrSeparator = t1[_i]; if (typeof optionOrSeparator == "string") { t5 = t4._contents; t4._contents = (t5.length !== 0 ? t4._contents = t5 + "\n\n" : t5) + optionOrSeparator; _this._newlinesNeeded = 1; continue; } t3._as(optionOrSeparator); if (optionOrSeparator.hide) continue; _this._writeOption$1(optionOrSeparator); } t1 = t4._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, _writeOption$1(option) { var allowedNames, t2, t3, t4, _i, $name, t5, _this = this, t1 = option.abbr; _this._write$2(0, t1 == null ? "" : "-" + t1 + ", "); t1 = _this._longOption$1(option); _this._write$2(1, t1); t1 = option.help; if (t1 != null) _this._write$2(2, t1); t1 = option.allowedHelp; if (t1 != null) { allowedNames = J.toList$0$ax(t1.get$keys(t1)); B.JSArray_methods.sort$0(allowedNames); _this._newline$0(); 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) { $name = allowedNames[_i]; t5 = (t4 ? B.JSArray_methods.contains$1(t3, $name) : t3 === $name) ? " (default)" : ""; _this._write$2(1, " [" + $name + "]" + t5); t5 = t1.$index(0, $name); t5.toString; _this._write$2(2, t5); } _this._newline$0(); } else if (option.allowed != null) _this._write$2(2, _this._buildAllowedList$1(option)); else { t1 = option.type; if (t1 === B.OptionType_nMZ) { if (option.defaultsTo === true) _this._write$2(2, "(defaults to on)"); } else if (t1 === B.OptionType_qyr) { t1 = option.defaultsTo; if (t1 != null && type$.Iterable_dynamic._as(t1).length !== 0) { type$.List_dynamic._as(t1); _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, ", ") + ")"); } } else { t1 = option.defaultsTo; if (t1 != null) _this._write$2(2, '(defaults to "' + A.S(t1) + '")'); } } }, _longOption$1(option) { var t1 = option.name, result = option.negatable ? "--[no-]" + t1 : "--" + t1; t1 = option.valueHelp; return t1 != null ? result + ("=<" + t1 + ">") : result; }, _calculateColumnWidths$0() { var t1, t2, t3, abbr, title, _i, option, t4, t5, t6, t7, t8; 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) { option = t1[_i]; if (!(option instanceof A.Option)) continue; if (option.hide) continue; t4 = option.abbr; abbr = Math.max(abbr, (t4 == null ? "" : "-" + t4 + ", ").length); t4 = this._longOption$1(option); title = Math.max(title, t4.length); t4 = option.allowedHelp; if (t4 != null) for (t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = option.defaultsTo, t6 = t3._is(t5); t4.moveNext$0();) { t7 = t4.get$current(t4); t8 = (t6 ? B.JSArray_methods.contains$1(t5, t7) : t5 === t7) ? " (default)" : ""; title = Math.max(title, (" [" + t7 + "]" + t8).length); } } return A._setArrayType([abbr, title + 4], type$.JSArray_int); }, _newline$0() { ++this._newlinesNeeded; this._currentColumn = 0; }, _write$2(column, text) { var t1, _i, lines = A._setArrayType(text.split("\n"), type$.JSArray_String); this.get$_columnWidths(); while (true) { if (!(lines.length !== 0 && J.trim$0$s(B.JSArray_methods.get$first(lines)) === "")) break; B.JSArray_methods.removeAt$1(lines, 0); } while (true) { if (!(lines.length !== 0 && J.trim$0$s(B.JSArray_methods.get$last(lines)) === "")) break; lines.pop(); } for (t1 = lines.length, _i = 0; _i < lines.length; lines.length === t1 || (0, A.throwConcurrentModificationError)(lines), ++_i) this._writeLine$2(column, lines[_i]); }, _writeLine$2(column, text) { var t1, t2, _this = this; for (t1 = _this._usage$_buffer; t2 = _this._newlinesNeeded, t2 > 0;) { t1._contents += "\n"; _this._newlinesNeeded = t2 - 1; } for (; t2 = _this._currentColumn, t2 !== column;) { if (t2 < 2) t1._contents += B.JSString_methods.$mul(" ", _this.get$_columnWidths()[_this._currentColumn]); else t1._contents += "\n"; _this._currentColumn = (_this._currentColumn + 1) % 3; } _this.get$_columnWidths(); if (column < 2) t1._contents += B.JSString_methods.padRight$1(text, _this.get$_columnWidths()[column]); else t1._contents += text; _this._currentColumn = (_this._currentColumn + 1) % 3; if (column === 2) ++_this._newlinesNeeded; }, _buildAllowedList$1(option) { var t2, t3, first, _i, allowed, t1 = option.defaultsTo, isDefault = type$.List_dynamic._is(t1) ? B.JSArray_methods.get$contains(t1) : new A._Usage__buildAllowedList_closure(option); t1 = "" + "["; for (t2 = option.allowed, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i, first = false) { allowed = t2[_i]; if (!first) t1 += ", "; t1 += A.S(allowed); if (isDefault.call$1(allowed)) t1 += " (default)"; } t1 += "]"; return t1.charCodeAt(0) == 0 ? t1 : t1; } }; A._Usage__writeOption_closure.prototype = { call$1(value) { return '"' + A.S(value) + '"'; }, $signature: 101 }; A._Usage__buildAllowedList_closure.prototype = { call$1(value) { return value === this.option.defaultsTo; }, $signature: 122 }; A.ErrorResult.prototype = { complete$1(completer) { completer.completeError$2(this.error, this.stackTrace); }, get$hashCode(_) { return (J.get$hashCode$(this.error) ^ A.Primitives_objectHashCode(this.stackTrace) ^ 492929599) >>> 0; }, $eq(_, other) { if (other == null) return false; return other instanceof A.ErrorResult && J.$eq$(this.error, other.error) && this.stackTrace === other.stackTrace; }, $isResult: 1 }; A.ValueResult.prototype = { complete$1(completer) { completer.complete$1(this.value); }, get$hashCode(_) { return (J.get$hashCode$(this.value) ^ 842997089) >>> 0; }, $eq(_, other) { if (other == null) return false; return other instanceof A.ValueResult && J.$eq$(this.value, other.value); }, $isResult: 1 }; A.StreamCompleter.prototype = { setSourceStream$1(sourceStream) { var t1 = this._stream_completer$_stream; if (t1._sourceStream != null) throw A.wrapException(A.StateError$("Source stream already set")); t1._sourceStream = sourceStream; if (t1._stream_completer$_controller != null) t1._linkStreamToController$0(); }, setError$2(error, stackTrace) { var t1 = this.$ti._precomputed1; this.setSourceStream$1(A.Stream_Stream$fromFuture(A.Future_Future$error(error, stackTrace, t1), t1)); }, setError$1(error) { return this.setError$2(error, null); } }; A._CompleterStream.prototype = { listen$4$cancelOnError$onDone$onError(_, onData, cancelOnError, onDone, onError) { var sourceStream, t1, _this = this, _null = null; if (_this._stream_completer$_controller == null) { sourceStream = _this._sourceStream; if (sourceStream != null && !sourceStream.get$isBroadcast()) return sourceStream.listen$4$cancelOnError$onDone$onError(0, onData, cancelOnError, onDone, onError); if (_this._stream_completer$_controller == null) _this._stream_completer$_controller = A.StreamController_StreamController(_null, _null, _null, _null, true, _this.$ti._precomputed1); if (_this._sourceStream != null) _this._linkStreamToController$0(); } t1 = _this._stream_completer$_controller; t1.toString; return new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$4$cancelOnError$onDone$onError(0, onData, cancelOnError, onDone, onError); }, listen$1($receiver, onData) { return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, null, null); }, listen$3$onDone$onError($receiver, onData, onDone, onError) { return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, onDone, onError); }, _linkStreamToController$0() { var t2, t1 = this._stream_completer$_controller; t1.toString; t2 = this._sourceStream; t2.toString; t1.addStream$2$cancelOnError(t2, false).whenComplete$1(t1.get$close(t1)); } }; A.StreamGroup.prototype = { add$1(_, stream) { var t1, _this = this; if (_this._closed) throw A.wrapException(A.StateError$("Can't add a Stream to a closed StreamGroup.")); t1 = _this._stream_group$_state; if (t1 === B._StreamGroupState_dormant) _this._subscriptions.putIfAbsent$2(stream, new A.StreamGroup_add_closure()); else if (t1 === B._StreamGroupState_canceled) return stream.listen$1(0, null).cancel$0(); else _this._subscriptions.putIfAbsent$2(stream, new A.StreamGroup_add_closure0(_this, stream)); return null; }, remove$1(_, stream) { var t1 = this._subscriptions, subscription = t1.remove$1(0, stream), future = subscription == null ? null : subscription.cancel$0(); if (t1.__js_helper$_length === 0) if (this._closed) { t1 = this.__StreamGroup__controller_A; t1 === $ && A.throwUnnamedLateFieldNI(); A.scheduleMicrotask(t1.get$close(t1)); } return future; }, _onListen$0() { var stream, t1, t2, t3, _i, entry, exception, onError, _this = this; _this._stream_group$_state = B._StreamGroupState_listening; for (t1 = _this._subscriptions, t2 = A.List_List$of(t1.get$entries(t1), true, _this.$ti._eval$1("MapEntry,StreamSubscription<1>?>")), t3 = t2.length, _i = 0; _i < t3; ++_i) { entry = t2[_i]; if (entry.value != null) continue; stream = entry.key; try { t1.$indexSet(0, stream, _this._listenToStream$1(stream)); } catch (exception) { t1 = _this._onCancel$0(); if (t1 != null) { onError = new A.StreamGroup__onListen_closure(); t2 = t1.$ti; t3 = $.Zone__current; if (t3 !== B.C__RootZone) onError = A._registerErrorHandler(onError, t3); t1._addListener$1(new A._FutureListener(new A._Future(t3, t2), 2, null, onError, t2._eval$1("@<1>")._bind$1(t2._precomputed1)._eval$1("_FutureListener<1,2>"))); } throw exception; } } }, _onPause$0() { var t1, t2, t3; this._stream_group$_state = B._StreamGroupState_paused; for (t1 = this._subscriptions, t1 = t1.get$values(t1), t1 = new A.MappedIterator(J.get$iterator$ax(t1.__internal$_iterable), t1._f), t2 = A._instanceType(t1)._rest[1]; t1.moveNext$0();) { t3 = t1.__internal$_current; (t3 == null ? t2._as(t3) : t3).pause$0(0); } }, _onResume$0() { var t1, t2, t3; this._stream_group$_state = B._StreamGroupState_listening; for (t1 = this._subscriptions, t1 = t1.get$values(t1), t1 = new A.MappedIterator(J.get$iterator$ax(t1.__internal$_iterable), t1._f), t2 = A._instanceType(t1)._rest[1]; t1.moveNext$0();) { t3 = t1.__internal$_current; (t3 == null ? t2._as(t3) : t3).resume$0(0); } }, _onCancel$0() { var t1, t2, futures; this._stream_group$_state = B._StreamGroupState_canceled; t1 = this._subscriptions; t2 = A.IterableNullableExtension_whereNotNull(t1.get$entries(t1).map$1$1(0, new A.StreamGroup__onCancel_closure(this), type$.nullable_Future_void), type$.Future_void); futures = A.List_List$of(t2, true, t2.$ti._eval$1("Iterable.E")); t1.clear$0(0); return futures.length === 0 ? null : A.Future_wait(futures, false, type$.void); }, _listenToStream$1(stream) { var subscription, t1 = this.__StreamGroup__controller_A; t1 === $ && A.throwUnnamedLateFieldNI(); subscription = stream.listen$3$onDone$onError(0, t1.get$add(t1), new A.StreamGroup__listenToStream_closure(this, stream), t1.get$addError()); if (this._stream_group$_state === B._StreamGroupState_paused) subscription.pause$0(0); return subscription; } }; A.StreamGroup_add_closure.prototype = { call$0() { return null; }, $signature: 2 }; A.StreamGroup_add_closure0.prototype = { call$0() { return this.$this._listenToStream$1(this.stream); }, $signature() { return this.$this.$ti._eval$1("StreamSubscription<1>()"); } }; A.StreamGroup__onListen_closure.prototype = { call$1(_) { }, $signature: 68 }; A.StreamGroup__onCancel_closure.prototype = { call$1(entry) { var t1, exception, subscription = entry.value; try { if (subscription != null) { t1 = subscription.cancel$0(); return t1; } t1 = J.listen$1$z(entry.key, null).cancel$0(); return t1; } catch (exception) { return null; } }, $signature() { return this.$this.$ti._eval$1("Future<~>?(MapEntry,StreamSubscription<1>?>)"); } }; A.StreamGroup__listenToStream_closure.prototype = { call$0() { return this.$this.remove$1(0, this.stream); }, $signature: 0 }; A._StreamGroupState.prototype = { toString$0(_) { return this.name; } }; A.StreamQueue.prototype = { _updateRequests$0() { var t1, t2, t3, t4, _this = this; for (t1 = _this._requestQueue, t2 = _this._eventQueue, t3 = t1.$ti._precomputed1; !t1.get$isEmpty(t1);) { t4 = t1._head; if (t4 === t1._tail) A.throwExpression(A.IterableElementError_noElement()); t4 = t1._table[t4]; if (t4 == null) t4 = t3._as(t4); if (t4.update$2(t2, _this._isDone)) t1.removeFirst$0(); else return; } if (!_this._isDone) _this._stream_queue$_subscription.pause$0(0); }, _ensureListening$0() { var t1, _this = this; if (_this._isDone) return; t1 = _this._stream_queue$_subscription; if (t1 == null) _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)); else t1.resume$0(0); }, _addResult$1(result) { ++this._eventsReceived; this._eventQueue._queue_list$_add$1(result); this._updateRequests$0(); }, _addRequest$1(request) { var _this = this, t1 = _this._requestQueue; if (t1._head === t1._tail) { if (request.update$2(_this._eventQueue, _this._isDone)) return; _this._ensureListening$0(); } t1._add$1(request); } }; A.StreamQueue__ensureListening_closure.prototype = { call$1(data) { var t1 = this.$this; t1._addResult$1(new A.ValueResult(data, t1.$ti._eval$1("ValueResult<1>"))); }, $signature() { return this.$this.$ti._eval$1("~(1)"); } }; A.StreamQueue__ensureListening_closure1.prototype = { call$2(error, stackTrace) { this.$this._addResult$1(new A.ErrorResult(error, stackTrace)); }, $signature: 62 }; A.StreamQueue__ensureListening_closure0.prototype = { call$0() { var t1 = this.$this; t1._stream_queue$_subscription = null; t1._isDone = true; t1._updateRequests$0(); }, $signature: 0 }; A._NextRequest.prototype = { update$2(events, isDone) { if (!events.get$isEmpty(events)) { events.removeFirst$0().complete$1(this._completer); return true; } if (isDone) { this._completer.completeError$2(new A.StateError("No elements"), A.StackTrace_current()); return true; } return false; }, $is_EventRequest: 1 }; A._isStrictMode_closure.prototype = { call$0() { var exception; try { "".name = null; return false; } catch (exception) { return true; } }, $signature: 1 }; A.Repl.prototype = {}; A.alwaysValid_closure.prototype = { call$1(text) { return true; }, $signature: 10 }; A.ReplAdapter.prototype = { runAsync$0() { var rl, runController, _this = this, t1 = {}, t2 = J.get$isTTY$x(self.process.stdin), output = (t2 == null ? false : t2) ? self.process.stdout : null; t2 = _this.repl.prompt; rl = J.createInterface$1$x($.$get$readline(), {input: self.process.stdin, output: output, prompt: t2}); _this.rl = rl; t1.statement = ""; t1.prompt = t2; runController = A._Cell$(); runController._value = A.StreamController_StreamController(_this.get$exit(_this), new A.ReplAdapter_runAsync_closure(t1, _this, rl, runController), null, null, false, type$.String); return runController._readLocal$0().get$stream(); }, exit$0(_) { var t1 = this.rl; if (t1 != null) J.close$0$x(t1); this.rl = null; } }; A.ReplAdapter_runAsync_closure.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$handler = 1, $async$currentError, $async$self = this, lineController, lineQueue, line, error, stackTrace, t1, t2, t3, t4, $prompt, prompt0, t5, t6, t7, t8, t9, line0, toZone, statement, exception, $async$exception; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start $async$handler = 3; lineController = A.StreamController_StreamController(null, null, null, null, false, type$.String); t1 = lineController; t2 = A.QueueList$(null, type$.Result_String); t3 = A.ListQueue$(type$._EventRequest_dynamic); lineQueue = new A.StreamQueue(new A._ControllerStream(t1, A.instanceType(t1)._eval$1("_ControllerStream<1>")), t2, t3, type$.StreamQueue_String); t1 = $async$self.rl; t2 = J.getInterceptor$x(t1); t2.on$2(t1, "line", A.allowInterop(new A.ReplAdapter_runAsync__closure(lineController))); t3 = $async$self._box_0, t4 = $async$self.$this.repl, $prompt = t4.continuation, prompt0 = t4.prompt, t5 = $async$self.runController, t6 = t5.__late_helper$_name; case 6: // for condition // trivial condition t7 = J.get$isTTY$x(self.process.stdin); if (t7 == null ? false : t7) J.write$1$x(self.process.stdout, t3.prompt); t7 = lineQueue; t8 = A.instanceType(t7); t9 = new A._Future($.Zone__current, t8._eval$1("_Future<1>")); t7._addRequest$1(new A._NextRequest(new A._AsyncCompleter(t9, t8._eval$1("_AsyncCompleter<1>")), t8._eval$1("_NextRequest<1>"))); $async$goto = 8; return A._asyncAwait(t9, $async$call$0); case 8: // returning from await. line = $async$result; t7 = J.get$isTTY$x(self.process.stdin); if (!(t7 == null ? false : t7)) { line0 = t3.prompt + A.S(line); toZone = $.printToZone; if (toZone == null) A.printString(line0); else toZone.call$1(line0); } statement = B.JSString_methods.$add(t3.statement, line); t3.statement = statement; if (t4.validator.call$1(statement)) { t7 = t5._value; if (t7 === t5) A.throwExpression(A.LateError$localNI(t6)); J.add$1$ax(t7, t3.statement); t3.statement = ""; t3.prompt = prompt0; t2.setPrompt$1(t1, prompt0); } else { t3.statement += "\n"; t3.prompt = $prompt; t2.setPrompt$1(t1, $prompt); } // goto for condition $async$goto = 6; break; case 7: // after for $async$handler = 1; // goto after finally $async$goto = 5; break; case 3: // catch $async$handler = 2; $async$exception = $async$currentError; error = A.unwrapException($async$exception); stackTrace = A.getTraceFromException($async$exception); t1 = $async$self.runController; t1._readLocal$0().addError$2(error, stackTrace); $async$goto = 9; return A._asyncAwait($async$self.$this.exit$0(0), $async$call$0); case 9: // returning from await. J.close$0$x(t1._readLocal$0()); // goto after finally $async$goto = 5; break; case 2: // uncaught // goto rethrow $async$goto = 1; break; case 5: // after finally // implicit return return A._asyncReturn(null, $async$completer); case 1: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 30 }; A.ReplAdapter_runAsync__closure.prototype = { call$1(value) { return this.lineController.add$1(0, A._asString(value)); }, $signature: 127 }; A.Stdin.prototype = {}; A.Stdout.prototype = {}; A.ReadlineModule.prototype = {}; A.ReadlineOptions.prototype = {}; A.ReadlineInterface.prototype = {}; A.EmptyUnmodifiableSet.prototype = { get$iterator(_) { return B.C_EmptyIterator; }, get$length(_) { return 0; }, contains$1(_, element) { return false; }, toSet$0(_) { return A.LinkedHashSet_LinkedHashSet$_empty(this.$ti._precomputed1); }, $isEfficientLengthIterable: 1, $isSet: 1 }; A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin.prototype = {}; A.DefaultEquality.prototype = {}; A.IterableEquality.prototype = { equals$2(_, elements1, elements2) { var it1, it2, hasNext; if (elements1 === elements2) return true; it1 = J.get$iterator$ax(elements1); it2 = J.get$iterator$ax(elements2); for (; true;) { hasNext = it1.moveNext$0(); if (hasNext !== it2.moveNext$0()) return false; if (!hasNext) return true; if (!J.$eq$(it1.get$current(it1), it2.get$current(it2))) return false; } }, hash$1(elements) { var t1, hash, _i; for (t1 = elements.length, hash = 0, _i = 0; _i < elements.length; elements.length === t1 || (0, A.throwConcurrentModificationError)(elements), ++_i) { hash = hash + J.get$hashCode$(elements[_i]) & 2147483647; hash = hash + (hash << 10 >>> 0) & 2147483647; hash ^= hash >>> 6; } hash = hash + (hash << 3 >>> 0) & 2147483647; hash ^= hash >>> 11; return hash + (hash << 15 >>> 0) & 2147483647; } }; A.ListEquality.prototype = { equals$2(_, list1, list2) { var t1, $length, t2, i; if (list1 == null ? list2 == null : list1 === list2) return true; if (list1 == null || list2 == null) return false; t1 = J.getInterceptor$asx(list1); $length = t1.get$length(list1); t2 = J.getInterceptor$asx(list2); if ($length !== t2.get$length(list2)) return false; for (i = 0; i < $length; ++i) if (!J.$eq$(t1.$index(list1, i), t2.$index(list2, i))) return false; return true; }, hash$1(list) { var hash, i; for (hash = 0, i = 0; i < list.length; ++i) { hash = hash + J.get$hashCode$(list[i]) & 2147483647; hash = hash + (hash << 10 >>> 0) & 2147483647; hash ^= hash >>> 6; } hash = hash + (hash << 3 >>> 0) & 2147483647; hash ^= hash >>> 11; return hash + (hash << 15 >>> 0) & 2147483647; } }; A._MapEntry.prototype = { get$hashCode(_) { return 3 * J.get$hashCode$(this.key) + 7 * J.get$hashCode$(this.value) & 2147483647; }, $eq(_, other) { if (other == null) return false; return other instanceof A._MapEntry && J.$eq$(this.key, other.key) && J.$eq$(this.value, other.value); } }; A.MapEquality.prototype = { equals$2(_, map1, map2) { var equalElementCounts, t1, key, entry, count; if (map1 === map2) return true; if (map1.get$length(map1) !== map2.get$length(map2)) return false; equalElementCounts = A.HashMap_HashMap(type$._MapEntry, type$.int); for (t1 = J.get$iterator$ax(map1.get$keys(map1)); t1.moveNext$0();) { key = t1.get$current(t1); entry = new A._MapEntry(this, key, map1.$index(0, key)); count = equalElementCounts.$index(0, entry); equalElementCounts.$indexSet(0, entry, (count == null ? 0 : count) + 1); } for (t1 = J.get$iterator$ax(map2.get$keys(map2)); t1.moveNext$0();) { key = t1.get$current(t1); entry = new A._MapEntry(this, key, map2.$index(0, key)); count = equalElementCounts.$index(0, entry); if (count == null || count === 0) return false; equalElementCounts.$indexSet(0, entry, count - 1); } return true; }, hash$1(map) { var t1, t2, hash, key, keyHash, t3; for (t1 = J.get$iterator$ax(map.get$keys(map)), t2 = A._instanceType(this)._rest[1], hash = 0; t1.moveNext$0();) { key = t1.get$current(t1); keyHash = J.get$hashCode$(key); t3 = map.$index(0, key); hash = hash + 3 * keyHash + 7 * J.get$hashCode$(t3 == null ? t2._as(t3) : t3) & 2147483647; } hash = hash + (hash << 3 >>> 0) & 2147483647; hash ^= hash >>> 11; return hash + (hash << 15 >>> 0) & 2147483647; } }; A.QueueList.prototype = { add$1(_, element) { this._queue_list$_add$1(element); }, addAll$1(_, iterable) { var addCount, $length, t1, endSpace, t2, preSpace, _this = this; if (type$.List_dynamic._is(iterable)) { addCount = J.get$length$asx(iterable); $length = _this.get$length(_this); t1 = $length + addCount; if (t1 >= J.get$length$asx(_this._queue_list$_table)) { _this._preGrow$1(t1); J.setRange$4$ax(_this._queue_list$_table, $length, t1, iterable, 0); _this.set$_queue_list$_tail(_this.get$_queue_list$_tail() + addCount); } else { endSpace = J.get$length$asx(_this._queue_list$_table) - _this.get$_queue_list$_tail(); t1 = _this._queue_list$_table; t2 = J.getInterceptor$ax(t1); if (addCount < endSpace) { t2.setRange$4(t1, _this.get$_queue_list$_tail(), _this.get$_queue_list$_tail() + addCount, iterable, 0); _this.set$_queue_list$_tail(_this.get$_queue_list$_tail() + addCount); } else { preSpace = addCount - endSpace; t2.setRange$4(t1, _this.get$_queue_list$_tail(), _this.get$_queue_list$_tail() + endSpace, iterable, 0); J.setRange$4$ax(_this._queue_list$_table, 0, preSpace, iterable, endSpace); _this.set$_queue_list$_tail(preSpace); } } } else for (t1 = J.get$iterator$ax(iterable); t1.moveNext$0();) _this._queue_list$_add$1(t1.get$current(t1)); }, cast$1$0(_, $T) { return new A._CastQueueList(this, J.cast$1$0$ax(this._queue_list$_table, $T), -1, -1, A._instanceType(this)._eval$1("@")._bind$1($T)._eval$1("_CastQueueList<1,2>")); }, toString$0(_) { return A.Iterable_iterableToFullString(this, "{", "}"); }, addFirst$1(element) { var _this = this; _this.set$_queue_list$_head((_this.get$_queue_list$_head() - 1 & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0); J.$indexSet$ax(_this._queue_list$_table, _this.get$_queue_list$_head(), element); if (_this.get$_queue_list$_head() === _this.get$_queue_list$_tail()) _this._queue_list$_grow$0(); }, removeFirst$0() { var result, _this = this; if (_this.get$_queue_list$_head() === _this.get$_queue_list$_tail()) throw A.wrapException(A.StateError$("No element")); result = J.$index$asx(_this._queue_list$_table, _this.get$_queue_list$_head()); if (result == null) result = A._instanceType(_this)._eval$1("QueueList.E")._as(result); J.$indexSet$ax(_this._queue_list$_table, _this.get$_queue_list$_head(), null); _this.set$_queue_list$_head((_this.get$_queue_list$_head() + 1 & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0); return result; }, removeLast$0(_) { var result, _this = this; if (_this.get$_queue_list$_head() === _this.get$_queue_list$_tail()) throw A.wrapException(A.StateError$("No element")); _this.set$_queue_list$_tail((_this.get$_queue_list$_tail() - 1 & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0); result = J.$index$asx(_this._queue_list$_table, _this.get$_queue_list$_tail()); if (result == null) result = A._instanceType(_this)._eval$1("QueueList.E")._as(result); J.$indexSet$ax(_this._queue_list$_table, _this.get$_queue_list$_tail(), null); return result; }, get$length(_) { return (this.get$_queue_list$_tail() - this.get$_queue_list$_head() & J.get$length$asx(this._queue_list$_table) - 1) >>> 0; }, set$length(_, value) { var delta, newTail, t1, t2, _this = this; if (value < 0) throw A.wrapException(A.RangeError$("Length " + value + " may not be negative.")); if (value > _this.get$length(_this) && !A._instanceType(_this)._eval$1("QueueList.E")._is(null)) 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) + "`.")); delta = value - _this.get$length(_this); if (delta >= 0) { if (J.get$length$asx(_this._queue_list$_table) <= value) _this._preGrow$1(value); _this.set$_queue_list$_tail((_this.get$_queue_list$_tail() + delta & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0); return; } newTail = _this.get$_queue_list$_tail() + delta; t1 = _this._queue_list$_table; if (newTail >= 0) J.fillRange$3$ax(t1, newTail, _this.get$_queue_list$_tail(), null); else { newTail += J.get$length$asx(t1); J.fillRange$3$ax(_this._queue_list$_table, 0, _this.get$_queue_list$_tail(), null); t1 = _this._queue_list$_table; t2 = J.getInterceptor$asx(t1); t2.fillRange$3(t1, newTail, t2.get$length(t1), null); } _this.set$_queue_list$_tail(newTail); }, $index(_, index) { var t1, _this = this; if (index < 0 || index >= _this.get$length(_this)) throw A.wrapException(A.RangeError$("Index " + index + " must be in the range [0.." + _this.get$length(_this) + ").")); t1 = J.$index$asx(_this._queue_list$_table, (_this.get$_queue_list$_head() + index & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0); return t1 == null ? A._instanceType(_this)._eval$1("QueueList.E")._as(t1) : t1; }, $indexSet(_, index, value) { var _this = this; if (index < 0 || index >= _this.get$length(_this)) throw A.wrapException(A.RangeError$("Index " + index + " must be in the range [0.." + _this.get$length(_this) + ").")); J.$indexSet$ax(_this._queue_list$_table, (_this.get$_queue_list$_head() + index & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0, value); }, _queue_list$_add$1(element) { var _this = this; J.$indexSet$ax(_this._queue_list$_table, _this.get$_queue_list$_tail(), element); _this.set$_queue_list$_tail((_this.get$_queue_list$_tail() + 1 & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0); if (_this.get$_queue_list$_head() === _this.get$_queue_list$_tail()) _this._queue_list$_grow$0(); }, _queue_list$_grow$0() { var _this = this, newTable = A.List_List$filled(J.get$length$asx(_this._queue_list$_table) * 2, null, false, A._instanceType(_this)._eval$1("QueueList.E?")), split = J.get$length$asx(_this._queue_list$_table) - _this.get$_queue_list$_head(); B.JSArray_methods.setRange$4(newTable, 0, split, _this._queue_list$_table, _this.get$_queue_list$_head()); B.JSArray_methods.setRange$4(newTable, split, split + _this.get$_queue_list$_head(), _this._queue_list$_table, 0); _this.set$_queue_list$_head(0); _this.set$_queue_list$_tail(J.get$length$asx(_this._queue_list$_table)); _this._queue_list$_table = newTable; }, _writeToList$1(target) { var $length, firstPartSize, _this = this; if (_this.get$_queue_list$_head() <= _this.get$_queue_list$_tail()) { $length = _this.get$_queue_list$_tail() - _this.get$_queue_list$_head(); B.JSArray_methods.setRange$4(target, 0, $length, _this._queue_list$_table, _this.get$_queue_list$_head()); return $length; } else { firstPartSize = J.get$length$asx(_this._queue_list$_table) - _this.get$_queue_list$_head(); B.JSArray_methods.setRange$4(target, 0, firstPartSize, _this._queue_list$_table, _this.get$_queue_list$_head()); B.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this.get$_queue_list$_tail(), _this._queue_list$_table, 0); return _this.get$_queue_list$_tail() + firstPartSize; } }, _preGrow$1(newElementCount) { var _this = this, 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?")); _this.set$_queue_list$_tail(_this._writeToList$1(newTable)); _this._queue_list$_table = newTable; _this.set$_queue_list$_head(0); }, $isEfficientLengthIterable: 1, $isQueue: 1, $isIterable: 1, $isList: 1, get$_queue_list$_head() { return this._queue_list$_head; }, get$_queue_list$_tail() { return this._queue_list$_tail; }, set$_queue_list$_head(val) { return this._queue_list$_head = val; }, set$_queue_list$_tail(val) { return this._queue_list$_tail = val; } }; A._CastQueueList.prototype = { get$_queue_list$_head() { return this._queue_list$_delegate.get$_queue_list$_head(); }, set$_queue_list$_head(value) { this._queue_list$_delegate.set$_queue_list$_head(value); }, get$_queue_list$_tail() { return this._queue_list$_delegate.get$_queue_list$_tail(); }, set$_queue_list$_tail(value) { this._queue_list$_delegate.set$_queue_list$_tail(value); } }; A._QueueList_Object_ListMixin.prototype = {}; A.UnionSet.prototype = { get$length(_) { var t1 = this.get$_union_set$_iterable(); t1 = t1.get$length(t1); return t1; }, get$iterator(_) { var t1 = this.get$_union_set$_iterable(); return t1.get$iterator(t1); }, get$_union_set$_iterable() { var t1 = this._sets, t2 = this.$ti._precomputed1, t3 = A._instanceType(t1)._eval$1("@<1>")._bind$1(t2)._eval$1("ExpandIterable<1,2>"); t2 = A.LinkedHashSet_LinkedHashSet$_empty(t2); return new A.WhereIterable(new A.ExpandIterable(t1, new A.UnionSet__iterable_closure(this), t3), t2.get$add(t2), t3._eval$1("WhereIterable")); }, contains$1(_, element) { return this._sets.any$1(0, new A.UnionSet_contains_closure(this, element)); }, toSet$0(_) { var t2, t3, t4, t1 = A.LinkedHashSet_LinkedHashSet$_empty(this.$ti._precomputed1); for (t2 = this._sets, t2 = A._LinkedHashSetIterator$(t2, t2._collection$_modifications), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t4 = t2._collection$_current; t1.addAll$1(0, t4 == null ? t3._as(t4) : t4); } return t1; } }; A.UnionSet__iterable_closure.prototype = { call$1(set) { return set; }, $signature() { return this.$this.$ti._eval$1("Set<1>(Set<1>)"); } }; A.UnionSet_contains_closure.prototype = { call$1(set) { return set.contains$1(0, this.element); }, $signature() { return this.$this.$ti._eval$1("bool(Set<1>)"); } }; A._UnionSet_SetBase_UnmodifiableSetMixin.prototype = {}; A.UnmodifiableSetView0.prototype = {}; A.UnmodifiableSetMixin.prototype = { add$1(_, value) { return A.UnmodifiableSetMixin__throw(); }, addAll$1(_, elements) { return A.UnmodifiableSetMixin__throw(); }, remove$1(_, value) { return A.UnmodifiableSetMixin__throw(); } }; A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin.prototype = {}; A._DelegatingIterableBase.prototype = { contains$1(_, element) { return J.contains$1$asx(this.get$_base(), element); }, elementAt$1(_, index) { return J.elementAt$1$ax(this.get$_base(), index); }, get$first(_) { return J.get$first$ax(this.get$_base()); }, get$isEmpty(_) { return J.get$isEmpty$asx(this.get$_base()); }, get$isNotEmpty(_) { return J.get$isNotEmpty$asx(this.get$_base()); }, get$iterator(_) { return J.get$iterator$ax(this.get$_base()); }, get$last(_) { return J.get$last$ax(this.get$_base()); }, get$length(_) { return J.get$length$asx(this.get$_base()); }, map$1$1(_, f, $T) { return J.map$1$1$ax(this.get$_base(), f, $T); }, get$single(_) { return J.get$single$ax(this.get$_base()); }, skip$1(_, n) { return J.skip$1$ax(this.get$_base(), n); }, take$1(_, n) { return J.take$1$ax(this.get$_base(), n); }, toList$1$growable(_, growable) { return J.toList$1$growable$ax(this.get$_base(), true); }, toList$0($receiver) { return this.toList$1$growable($receiver, true); }, toSet$0(_) { return J.toSet$0$ax(this.get$_base()); }, where$1(_, test) { return J.where$1$ax(this.get$_base(), test); }, toString$0(_) { return J.toString$0$(this.get$_base()); }, $isIterable: 1 }; A.DelegatingSet.prototype = { add$1(_, value) { return this._base.add$1(0, value); }, addAll$1(_, elements) { this._base.addAll$1(0, elements); }, toSet$0(_) { return new A.DelegatingSet(this._base.toSet$0(0), A._instanceType(this)._eval$1("DelegatingSet<1>")); }, $isEfficientLengthIterable: 1, $isSet: 1, get$_base() { return this._base; } }; A.MapKeySet.prototype = { get$_base() { var t1 = this._baseMap; return t1.get$keys(t1); }, contains$1(_, element) { return this._baseMap.containsKey$1(element); }, get$isEmpty(_) { var t1 = this._baseMap; return t1.get$isEmpty(t1); }, get$isNotEmpty(_) { var t1 = this._baseMap; return t1.get$isNotEmpty(t1); }, get$length(_) { var t1 = this._baseMap; return t1.get$length(t1); }, toString$0(_) { return A.Iterable_iterableToFullString(this, "{", "}"); }, difference$1(other) { return J.where$1$ax(this.get$_base(), new A.MapKeySet_difference_closure(this, other)).toSet$0(0); }, $isEfficientLengthIterable: 1, $isSet: 1 }; A.MapKeySet_difference_closure.prototype = { call$1(element) { return !this.other._source.contains$1(0, element); }, $signature() { return this.$this.$ti._eval$1("bool(1)"); } }; A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin.prototype = {}; A.BufferModule.prototype = {}; A.BufferConstants.prototype = {}; A.Buffer.prototype = {}; A.ConsoleModule.prototype = {}; A.Console.prototype = {}; A.EventEmitter.prototype = {}; A.FS.prototype = {}; A.FSConstants.prototype = {}; A.FSWatcher.prototype = {}; A.ReadStream.prototype = {}; A.ReadStreamOptions.prototype = {}; A.WriteStream.prototype = {}; A.WriteStreamOptions.prototype = {}; A.FileOptions.prototype = {}; A.StatOptions.prototype = {}; A.MkdirOptions.prototype = {}; A.RmdirOptions.prototype = {}; A.WatchOptions.prototype = {}; A.WatchFileOptions.prototype = {}; A.Stats.prototype = {}; A.Promise.prototype = {}; A.Date.prototype = {}; A.JsError.prototype = {}; A.Atomics.prototype = {}; A.Modules.prototype = {}; A.Module.prototype = {}; A.Net.prototype = {}; A.Socket.prototype = {}; A.NetAddress.prototype = {}; A.NetServer.prototype = {}; A.NodeJsError.prototype = {}; A.JsAssertionError.prototype = {}; A.JsRangeError.prototype = {}; A.JsReferenceError.prototype = {}; A.JsSyntaxError.prototype = {}; A.JsTypeError.prototype = {}; A.JsSystemError.prototype = {}; A.Process.prototype = {}; A.CPUUsage.prototype = {}; A.Release.prototype = {}; A.StreamModule.prototype = {}; A.Readable.prototype = {}; A.Writable.prototype = {}; A.Duplex.prototype = {}; A.Transform.prototype = {}; A.WritableOptions.prototype = {}; A.ReadableOptions.prototype = {}; A.Immediate.prototype = {}; A.Timeout.prototype = {}; A.TTY.prototype = {}; A.TTYReadStream.prototype = {}; A.TTYWriteStream.prototype = {}; A.Util.prototype = {}; A.promiseToFuture_closure.prototype = { call$1(value) { this.completer.complete$1(value); }, $signature: 68 }; A.promiseToFuture_closure0.prototype = { call$1(error) { this.completer.completeError$1(error); }, $signature: 68 }; A.futureToPromise_closure.prototype = { call$2(resolve, reject) { this.future.then$1$2$onError(0, new A.futureToPromise__closure(resolve, this.T), reject, type$.dynamic); }, $signature: 470 }; A.futureToPromise__closure.prototype = { call$1(result) { return this.resolve.call$1(result); }, $signature() { return this.T._eval$1("@(0)"); } }; A.Context.prototype = { absolute$15(part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15) { var t1; A._validateArgList("absolute", A._setArrayType([part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15], type$.JSArray_nullable_String)); if (part2 == null) { t1 = this.style; t1 = t1.rootLength$1(part1) > 0 && !t1.isRootRelative$1(part1); } else t1 = false; if (t1) return part1; t1 = this._context$_current; 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); }, absolute$1(part1) { return this.absolute$15(part1, null, null, null, null, null, null, null, null, null, null, null, null, null, null); }, dirname$1(path) { var t1, t2, parsed = A.ParsedPath_ParsedPath$parse(path, this.style); parsed.removeTrailingSeparators$0(); t1 = parsed.parts; t2 = t1.length; if (t2 === 0) { t1 = parsed.root; return t1 == null ? "." : t1; } if (t2 === 1) { t1 = parsed.root; return t1 == null ? "." : t1; } B.JSArray_methods.removeLast$0(t1); parsed.separators.pop(); parsed.removeTrailingSeparators$0(); return parsed.toString$0(0); }, join$16(_, part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15, part16) { var parts = A._setArrayType([part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15, part16], type$.JSArray_nullable_String); A._validateArgList("join", parts); return this.joinAll$1(new A.WhereTypeIterable(parts, type$.WhereTypeIterable_String)); }, join$2($receiver, part1, part2) { return this.join$16($receiver, part1, part2, null, null, null, null, null, null, null, null, null, null, null, null, null, null); }, joinAll$1(parts) { var t1, t2, t3, needsSeparator, isAbsoluteAndNotRootRelative, t4, t5, parsed, path; for (t1 = parts.get$iterator(parts), t2 = new A.WhereIterator(t1, new A.Context_joinAll_closure()), t3 = this.style, needsSeparator = false, isAbsoluteAndNotRootRelative = false, t4 = ""; t2.moveNext$0();) { t5 = t1.get$current(t1); if (t3.isRootRelative$1(t5) && isAbsoluteAndNotRootRelative) { parsed = A.ParsedPath_ParsedPath$parse(t5, t3); path = t4.charCodeAt(0) == 0 ? t4 : t4; t4 = B.JSString_methods.substring$2(path, 0, t3.rootLength$2$withDrive(path, true)); parsed.root = t4; if (t3.needsSeparator$1(t4)) parsed.separators[0] = t3.get$separator(t3); t4 = "" + parsed.toString$0(0); } else if (t3.rootLength$1(t5) > 0) { isAbsoluteAndNotRootRelative = !t3.isRootRelative$1(t5); t4 = "" + t5; } else { if (!(t5.length !== 0 && t3.containsSeparator$1(t5[0]))) if (needsSeparator) t4 += t3.get$separator(t3); t4 += t5; } needsSeparator = t3.needsSeparator$1(t5); } return t4.charCodeAt(0) == 0 ? t4 : t4; }, split$1(_, path) { var parsed = A.ParsedPath_ParsedPath$parse(path, this.style), t1 = parsed.parts, t2 = A._arrayInstanceType(t1)._eval$1("WhereIterable<1>"); t2 = A.List_List$of(new A.WhereIterable(t1, new A.Context_split_closure(), t2), true, t2._eval$1("Iterable.E")); parsed.parts = t2; t1 = parsed.root; if (t1 != null) B.JSArray_methods.insert$2(t2, 0, t1); return parsed.parts; }, canonicalize$1(_, path) { var t1, parsed; path = this.absolute$1(path); t1 = this.style; if (t1 !== $.$get$Style_windows() && !this._needsNormalization$1(path)) return path; parsed = A.ParsedPath_ParsedPath$parse(path, t1); parsed.normalize$1$canonicalize(true); return parsed.toString$0(0); }, normalize$1(path) { var parsed; if (!this._needsNormalization$1(path)) return path; parsed = A.ParsedPath_ParsedPath$parse(path, this.style); parsed.normalize$0(); return parsed.toString$0(0); }, _needsNormalization$1(path) { var i, start, previous, t2, t3, previousPrevious, codeUnit, t4, t1 = this.style, root = t1.rootLength$1(path); if (root !== 0) { if (t1 === $.$get$Style_windows()) for (i = 0; i < root; ++i) if (path.charCodeAt(i) === 47) return true; start = root; previous = 47; } else { start = 0; previous = null; } for (t2 = new A.CodeUnits(path)._string, t3 = t2.length, i = start, previousPrevious = null; i < t3; ++i, previousPrevious = previous, previous = codeUnit) { codeUnit = t2.charCodeAt(i); if (t1.isSeparator$1(codeUnit)) { if (t1 === $.$get$Style_windows() && codeUnit === 47) return true; if (previous != null && t1.isSeparator$1(previous)) return true; if (previous === 46) t4 = previousPrevious == null || previousPrevious === 46 || t1.isSeparator$1(previousPrevious); else t4 = false; if (t4) return true; } } if (previous == null) return true; if (t1.isSeparator$1(previous)) return true; if (previous === 46) t1 = previousPrevious == null || t1.isSeparator$1(previousPrevious) || previousPrevious === 46; else t1 = false; if (t1) return true; return false; }, relative$2$from(path, from) { var fromParsed, pathParsed, t2, t3, _this = this, _s26_ = 'Unable to find a path to "', t1 = from == null; if (t1 && _this.style.rootLength$1(path) <= 0) return _this.normalize$1(path); if (t1) { t1 = _this._context$_current; from = t1 == null ? A.current() : t1; } else from = _this.absolute$1(from); t1 = _this.style; if (t1.rootLength$1(from) <= 0 && t1.rootLength$1(path) > 0) return _this.normalize$1(path); if (t1.rootLength$1(path) <= 0 || t1.isRootRelative$1(path)) path = _this.absolute$1(path); if (t1.rootLength$1(path) <= 0 && t1.rootLength$1(from) > 0) throw A.wrapException(A.PathException$(_s26_ + path + '" from "' + from + '".')); fromParsed = A.ParsedPath_ParsedPath$parse(from, t1); fromParsed.normalize$0(); pathParsed = A.ParsedPath_ParsedPath$parse(path, t1); pathParsed.normalize$0(); t2 = fromParsed.parts; if (t2.length !== 0 && J.$eq$(t2[0], ".")) return pathParsed.toString$0(0); t2 = fromParsed.root; t3 = pathParsed.root; if (t2 != t3) t2 = t2 == null || t3 == null || !t1.pathsEqual$2(t2, t3); else t2 = false; if (t2) return pathParsed.toString$0(0); while (true) { t2 = fromParsed.parts; if (t2.length !== 0) { t3 = pathParsed.parts; t2 = t3.length !== 0 && t1.pathsEqual$2(t2[0], t3[0]); } else t2 = false; if (!t2) break; B.JSArray_methods.removeAt$1(fromParsed.parts, 0); B.JSArray_methods.removeAt$1(fromParsed.separators, 1); B.JSArray_methods.removeAt$1(pathParsed.parts, 0); B.JSArray_methods.removeAt$1(pathParsed.separators, 1); } t2 = fromParsed.parts; if (t2.length !== 0 && J.$eq$(t2[0], "..")) throw A.wrapException(A.PathException$(_s26_ + path + '" from "' + from + '".')); t2 = type$.String; B.JSArray_methods.insertAll$2(pathParsed.parts, 0, A.List_List$filled(fromParsed.parts.length, "..", false, t2)); t3 = pathParsed.separators; t3[0] = ""; B.JSArray_methods.insertAll$2(t3, 1, A.List_List$filled(fromParsed.parts.length, t1.get$separator(t1), false, t2)); t1 = pathParsed.parts; t2 = t1.length; if (t2 === 0) return "."; if (t2 > 1 && J.$eq$(B.JSArray_methods.get$last(t1), ".")) { B.JSArray_methods.removeLast$0(pathParsed.parts); t1 = pathParsed.separators; t1.pop(); t1.pop(); t1.push(""); } pathParsed.root = ""; pathParsed.removeTrailingSeparators$0(); return pathParsed.toString$0(0); }, relative$1(path) { return this.relative$2$from(path, null); }, _isWithinOrEquals$2($parent, child) { var relative, t1, parentIsAbsolute, childIsAbsolute, childIsRootRelative, parentIsRootRelative, result, exception, _this = this; $parent = $parent; child = child; t1 = _this.style; parentIsAbsolute = t1.rootLength$1($parent) > 0; childIsAbsolute = t1.rootLength$1(child) > 0; if (parentIsAbsolute && !childIsAbsolute) { child = _this.absolute$1(child); if (t1.isRootRelative$1($parent)) $parent = _this.absolute$1($parent); } else if (childIsAbsolute && !parentIsAbsolute) { $parent = _this.absolute$1($parent); if (t1.isRootRelative$1(child)) child = _this.absolute$1(child); } else if (childIsAbsolute && parentIsAbsolute) { childIsRootRelative = t1.isRootRelative$1(child); parentIsRootRelative = t1.isRootRelative$1($parent); if (childIsRootRelative && !parentIsRootRelative) child = _this.absolute$1(child); else if (parentIsRootRelative && !childIsRootRelative) $parent = _this.absolute$1($parent); } result = _this._isWithinOrEqualsFast$2($parent, child); if (result !== B._PathRelation_inconclusive) return result; relative = null; try { relative = _this.relative$2$from(child, $parent); } catch (exception) { if (A.unwrapException(exception) instanceof A.PathException) return B._PathRelation_different; else throw exception; } if (t1.rootLength$1(relative) > 0) return B._PathRelation_different; if (J.$eq$(relative, ".")) return B._PathRelation_equal; if (J.$eq$(relative, "..")) return B._PathRelation_different; 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; }, _isWithinOrEqualsFast$2($parent, child) { var t1, parentRootLength, childRootLength, i, t2, t3, childIndex, parentIndex, lastCodeUnit, lastParentSeparator, parentCodeUnit, childCodeUnit, parentIndex0, direction, _this = this; if ($parent === ".") $parent = ""; t1 = _this.style; parentRootLength = t1.rootLength$1($parent); childRootLength = t1.rootLength$1(child); if (parentRootLength !== childRootLength) return B._PathRelation_different; for (i = 0; i < parentRootLength; ++i) if (!t1.codeUnitsEqual$2($parent.charCodeAt(i), child.charCodeAt(i))) return B._PathRelation_different; t2 = child.length; t3 = $parent.length; childIndex = childRootLength; parentIndex = parentRootLength; lastCodeUnit = 47; lastParentSeparator = null; while (true) { if (!(parentIndex < t3 && childIndex < t2)) break; c$0: { parentCodeUnit = $parent.charCodeAt(parentIndex); childCodeUnit = child.charCodeAt(childIndex); if (t1.codeUnitsEqual$2(parentCodeUnit, childCodeUnit)) { if (t1.isSeparator$1(parentCodeUnit)) lastParentSeparator = parentIndex; ++parentIndex; ++childIndex; lastCodeUnit = parentCodeUnit; break c$0; } if (t1.isSeparator$1(parentCodeUnit) && t1.isSeparator$1(lastCodeUnit)) { parentIndex0 = parentIndex + 1; lastParentSeparator = parentIndex; parentIndex = parentIndex0; break c$0; } else if (t1.isSeparator$1(childCodeUnit) && t1.isSeparator$1(lastCodeUnit)) { ++childIndex; break c$0; } if (parentCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) { ++parentIndex; if (parentIndex === t3) break; parentCodeUnit = $parent.charCodeAt(parentIndex); if (t1.isSeparator$1(parentCodeUnit)) { parentIndex0 = parentIndex + 1; lastParentSeparator = parentIndex; parentIndex = parentIndex0; break c$0; } if (parentCodeUnit === 46) { ++parentIndex; if (parentIndex === t3 || t1.isSeparator$1($parent.charCodeAt(parentIndex))) return B._PathRelation_inconclusive; } } if (childCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) { ++childIndex; if (childIndex === t2) break; childCodeUnit = child.charCodeAt(childIndex); if (t1.isSeparator$1(childCodeUnit)) { ++childIndex; break c$0; } if (childCodeUnit === 46) { ++childIndex; if (childIndex === t2 || t1.isSeparator$1(child.charCodeAt(childIndex))) return B._PathRelation_inconclusive; } } if (_this._pathDirection$2(child, childIndex) !== B._PathDirection_988) return B._PathRelation_inconclusive; if (_this._pathDirection$2($parent, parentIndex) !== B._PathDirection_988) return B._PathRelation_inconclusive; return B._PathRelation_different; } } if (childIndex === t2) { if (parentIndex === t3 || t1.isSeparator$1($parent.charCodeAt(parentIndex))) lastParentSeparator = parentIndex; else if (lastParentSeparator == null) lastParentSeparator = Math.max(0, parentRootLength - 1); direction = _this._pathDirection$2($parent, lastParentSeparator); if (direction === B._PathDirection_8Gl) return B._PathRelation_equal; return direction === B._PathDirection_ZGD ? B._PathRelation_inconclusive : B._PathRelation_different; } direction = _this._pathDirection$2(child, childIndex); if (direction === B._PathDirection_8Gl) return B._PathRelation_equal; if (direction === B._PathDirection_ZGD) return B._PathRelation_inconclusive; return t1.isSeparator$1(child.charCodeAt(childIndex)) || t1.isSeparator$1(lastCodeUnit) ? B._PathRelation_within : B._PathRelation_different; }, _pathDirection$2(path, index) { var t1, t2, i, depth, reachedRoot, i0, t3; for (t1 = path.length, t2 = this.style, i = index, depth = 0, reachedRoot = false; i < t1;) { while (true) { if (!(i < t1 && t2.isSeparator$1(path.charCodeAt(i)))) break; ++i; } if (i === t1) break; i0 = i; while (true) { if (!(i0 < t1 && !t2.isSeparator$1(path.charCodeAt(i0)))) break; ++i0; } t3 = i0 - i; if (!(t3 === 1 && path.charCodeAt(i) === 46)) if (t3 === 2 && path.charCodeAt(i) === 46 && path.charCodeAt(i + 1) === 46) { --depth; if (depth < 0) break; if (depth === 0) reachedRoot = true; } else ++depth; if (i0 === t1) break; i = i0 + 1; } if (depth < 0) return B._PathDirection_ZGD; if (depth === 0) return B._PathDirection_8Gl; if (reachedRoot) return B._PathDirection_FIw; return B._PathDirection_988; }, hash$1(path) { var result, parsed, t1, _this = this; path = _this.absolute$1(path); result = _this._hashFast$1(path); if (result != null) return result; parsed = A.ParsedPath_ParsedPath$parse(path, _this.style); parsed.normalize$0(); t1 = _this._hashFast$1(parsed.toString$0(0)); t1.toString; return t1; }, _hashFast$1(path) { var t1, t2, hash, beginning, wasSeparator, i, codeUnit, t3, next; for (t1 = path.length, t2 = this.style, hash = 4603, beginning = true, wasSeparator = true, i = 0; i < t1; ++i) { codeUnit = t2.canonicalizeCodeUnit$1(path.charCodeAt(i)); if (t2.isSeparator$1(codeUnit)) { wasSeparator = true; continue; } if (codeUnit === 46 && wasSeparator) { t3 = i + 1; if (t3 === t1) break; next = path.charCodeAt(t3); if (t2.isSeparator$1(next)) continue; if (!beginning) if (next === 46) { t3 = i + 2; t3 = t3 === t1 || t2.isSeparator$1(path.charCodeAt(t3)); } else t3 = false; else t3 = false; if (t3) return null; } hash = ((hash & 67108863) * 33 ^ codeUnit) >>> 0; beginning = false; wasSeparator = false; } return hash; }, withoutExtension$1(path) { var i, parsed = A.ParsedPath_ParsedPath$parse(path, this.style); for (i = parsed.parts.length - 1; i >= 0; --i) if (J.get$length$asx(parsed.parts[i]) !== 0) { parsed.parts[i] = parsed._splitExtension$0()[0]; break; } return parsed.toString$0(0); }, toUri$1(path) { var t2, t1 = this.style; if (t1.rootLength$1(path) <= 0) return t1.relativePathToUri$1(path); else { t2 = this._context$_current; return t1.absolutePathToUri$1(this.join$2(0, t2 == null ? A.current() : t2, path)); } }, prettyUri$1(uri) { var path, rel, _this = this, typedUri = A._parseUri(uri); if (typedUri.get$scheme() === "file" && _this.style === $.$get$Style_url()) return typedUri.toString$0(0); else if (typedUri.get$scheme() !== "file" && typedUri.get$scheme() !== "" && _this.style !== $.$get$Style_url()) return typedUri.toString$0(0); path = _this.normalize$1(_this.style.pathFromUri$1(A._parseUri(typedUri))); rel = _this.relative$1(path); return _this.split$1(0, rel).length > _this.split$1(0, path).length ? path : rel; } }; A.Context_joinAll_closure.prototype = { call$1(part) { return part !== ""; }, $signature: 10 }; A.Context_split_closure.prototype = { call$1(part) { return part.length !== 0; }, $signature: 10 }; A._validateArgList_closure.prototype = { call$1(arg) { return arg == null ? "null" : '"' + arg + '"'; }, $signature: 473 }; A._PathDirection.prototype = { toString$0(_) { return this.name; } }; A._PathRelation.prototype = { toString$0(_) { return this.name; } }; A.InternalStyle.prototype = { getRoot$1(path) { var $length = this.rootLength$1(path); if ($length > 0) return B.JSString_methods.substring$2(path, 0, $length); return this.isRootRelative$1(path) ? path[0] : null; }, relativePathToUri$1(path) { var segments, _null = null, t1 = path.length; if (t1 === 0) return A._Uri__Uri(_null, _null, _null, _null); segments = A.Context_Context(this).split$1(0, path); if (this.isSeparator$1(path.charCodeAt(t1 - 1))) B.JSArray_methods.add$1(segments, ""); return A._Uri__Uri(_null, _null, segments, _null); }, codeUnitsEqual$2(codeUnit1, codeUnit2) { return codeUnit1 === codeUnit2; }, pathsEqual$2(path1, path2) { return path1 === path2; }, canonicalizeCodeUnit$1(codeUnit) { return codeUnit; }, canonicalizePart$1(part) { return part; } }; A.ParsedPath.prototype = { get$basename() { var _this = this, t1 = type$.String, 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)); copy.removeTrailingSeparators$0(); t1 = copy.parts; if (t1.length === 0) { t1 = _this.root; return t1 == null ? "" : t1; } return B.JSArray_methods.get$last(t1); }, get$hasTrailingSeparator() { var t1 = this.parts; if (t1.length !== 0) t1 = J.$eq$(B.JSArray_methods.get$last(t1), "") || !J.$eq$(B.JSArray_methods.get$last(this.separators), ""); else t1 = false; return t1; }, removeTrailingSeparators$0() { var t1, t2, _this = this; while (true) { t1 = _this.parts; if (!(t1.length !== 0 && J.$eq$(B.JSArray_methods.get$last(t1), ""))) break; B.JSArray_methods.removeLast$0(_this.parts); _this.separators.pop(); } t1 = _this.separators; t2 = t1.length; if (t2 !== 0) t1[t2 - 1] = ""; }, normalize$1$canonicalize(canonicalize) { var t1, t2, t3, leadingDoubles, _i, part, t4, _this = this, newParts = A._setArrayType([], type$.JSArray_String); 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) { part = t1[_i]; t4 = J.getInterceptor$(part); if (!(t4.$eq(part, ".") || t4.$eq(part, ""))) if (t4.$eq(part, "..")) if (newParts.length !== 0) newParts.pop(); else ++leadingDoubles; else newParts.push(canonicalize ? t3.canonicalizePart$1(part) : part); } if (_this.root == null) B.JSArray_methods.insertAll$2(newParts, 0, A.List_List$filled(leadingDoubles, "..", false, type$.String)); if (newParts.length === 0 && _this.root == null) newParts.push("."); _this.parts = newParts; _this.separators = A.List_List$filled(newParts.length + 1, t3.get$separator(t3), true, type$.String); t1 = _this.root; if (t1 == null || newParts.length === 0 || !t3.needsSeparator$1(t1)) _this.separators[0] = ""; t1 = _this.root; if (t1 != null && t3 === $.$get$Style_windows()) { if (canonicalize) t1 = _this.root = t1.toLowerCase(); t1.toString; _this.root = A.stringReplaceAllUnchecked(t1, "/", "\\"); } _this.removeTrailingSeparators$0(); }, normalize$0() { return this.normalize$1$canonicalize(false); }, toString$0(_) { var i, _this = this, t1 = _this.root; t1 = t1 != null ? "" + t1 : ""; for (i = 0; i < _this.parts.length; ++i) t1 = t1 + A.S(_this.separators[i]) + A.S(_this.parts[i]); t1 += A.S(B.JSArray_methods.get$last(_this.separators)); return t1.charCodeAt(0) == 0 ? t1 : t1; }, _kthLastIndexOf$3(path, character, k) { var index, count, leftMostIndexedCharacter; for (index = path.length - 1, count = 0, leftMostIndexedCharacter = 0; index >= 0; --index) if (path[index] === character) { ++count; if (count === k) return index; leftMostIndexedCharacter = index; } return leftMostIndexedCharacter; }, _splitExtension$1(level) { var t1, file, lastDot; if (level <= 0) throw A.wrapException(A.RangeError$value(level, "level", "level's value must be greater than 0")); t1 = this.parts; t1 = new A.CastList(t1, A._arrayInstanceType(t1)._eval$1("CastList<1,String?>")); file = t1.lastWhere$2$orElse(t1, new A.ParsedPath__splitExtension_closure(), new A.ParsedPath__splitExtension_closure0()); if (file == null) return A._setArrayType(["", ""], type$.JSArray_String); if (file === "..") return A._setArrayType(["..", ""], type$.JSArray_String); lastDot = this._kthLastIndexOf$3(file, ".", level); if (lastDot <= 0) return A._setArrayType([file, ""], type$.JSArray_String); return A._setArrayType([B.JSString_methods.substring$2(file, 0, lastDot), B.JSString_methods.substring$1(file, lastDot)], type$.JSArray_String); }, _splitExtension$0() { return this._splitExtension$1(1); } }; A.ParsedPath__splitExtension_closure.prototype = { call$1(p) { return p !== ""; }, $signature: 171 }; A.ParsedPath__splitExtension_closure0.prototype = { call$0() { return null; }, $signature: 2 }; A.PathException.prototype = { toString$0(_) { return "PathException: " + this.message; }, $isException: 1, get$message(receiver) { return this.message; } }; A.PathMap.prototype = {}; A.PathMap__create_closure.prototype = { call$2(path1, path2) { if (path1 == null) return path2 == null; if (path2 == null) return false; return this._box_0.context._isWithinOrEquals$2(path1, path2) === B._PathRelation_equal; }, $signature: 495 }; A.PathMap__create_closure0.prototype = { call$1(path) { return path == null ? 0 : this._box_0.context.hash$1(path); }, $signature: 534 }; A.PathMap__create_closure1.prototype = { call$1(path) { return typeof path == "string" || path == null; }, $signature: 122 }; A.Style.prototype = { toString$0(_) { return this.get$name(this); } }; A.PosixStyle.prototype = { containsSeparator$1(path) { return B.JSString_methods.contains$1(path, "/"); }, isSeparator$1(codeUnit) { return codeUnit === 47; }, needsSeparator$1(path) { var t1 = path.length; return t1 !== 0 && path.charCodeAt(t1 - 1) !== 47; }, rootLength$2$withDrive(path, withDrive) { if (path.length !== 0 && path.charCodeAt(0) === 47) return 1; return 0; }, rootLength$1(path) { return this.rootLength$2$withDrive(path, false); }, isRootRelative$1(path) { return false; }, pathFromUri$1(uri) { var t1; if (uri.get$scheme() === "" || uri.get$scheme() === "file") { t1 = uri.get$path(uri); return A._Uri__uriDecode(t1, 0, t1.length, B.C_Utf8Codec, false); } throw A.wrapException(A.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'.", null)); }, absolutePathToUri$1(path) { var parsed = A.ParsedPath_ParsedPath$parse(path, this), t1 = parsed.parts; if (t1.length === 0) B.JSArray_methods.addAll$1(t1, A._setArrayType(["", ""], type$.JSArray_String)); else if (parsed.get$hasTrailingSeparator()) B.JSArray_methods.add$1(parsed.parts, ""); return A._Uri__Uri(null, null, parsed.parts, "file"); }, get$name() { return "posix"; }, get$separator() { return "/"; } }; A.UrlStyle.prototype = { containsSeparator$1(path) { return B.JSString_methods.contains$1(path, "/"); }, isSeparator$1(codeUnit) { return codeUnit === 47; }, needsSeparator$1(path) { var t1 = path.length; if (t1 === 0) return false; if (path.charCodeAt(t1 - 1) !== 47) return true; return B.JSString_methods.endsWith$1(path, "://") && this.rootLength$1(path) === t1; }, rootLength$2$withDrive(path, withDrive) { var i, codeUnit, index, t2, t1 = path.length; if (t1 === 0) return 0; if (path.charCodeAt(0) === 47) return 1; for (i = 0; i < t1; ++i) { codeUnit = path.charCodeAt(i); if (codeUnit === 47) return 0; if (codeUnit === 58) { if (i === 0) return 0; index = B.JSString_methods.indexOf$2(path, "/", B.JSString_methods.startsWith$2(path, "//", i + 1) ? i + 3 : i); if (index <= 0) return t1; if (!withDrive || t1 < index + 3) return index; if (!B.JSString_methods.startsWith$1(path, "file://")) return index; if (!A.isDriveLetter(path, index + 1)) return index; t2 = index + 3; return t1 === t2 ? t2 : index + 4; } } return 0; }, rootLength$1(path) { return this.rootLength$2$withDrive(path, false); }, isRootRelative$1(path) { return path.length !== 0 && path.charCodeAt(0) === 47; }, pathFromUri$1(uri) { return uri.toString$0(0); }, relativePathToUri$1(path) { return A.Uri_parse(path); }, absolutePathToUri$1(path) { return A.Uri_parse(path); }, get$name() { return "url"; }, get$separator() { return "/"; } }; A.WindowsStyle.prototype = { containsSeparator$1(path) { return B.JSString_methods.contains$1(path, "/"); }, isSeparator$1(codeUnit) { return codeUnit === 47 || codeUnit === 92; }, needsSeparator$1(path) { var t1 = path.length; if (t1 === 0) return false; t1 = path.charCodeAt(t1 - 1); return !(t1 === 47 || t1 === 92); }, rootLength$2$withDrive(path, withDrive) { var index, t1 = path.length; if (t1 === 0) return 0; if (path.charCodeAt(0) === 47) return 1; if (path.charCodeAt(0) === 92) { if (t1 < 2 || path.charCodeAt(1) !== 92) return 1; index = B.JSString_methods.indexOf$2(path, "\\", 2); if (index > 0) { index = B.JSString_methods.indexOf$2(path, "\\", index + 1); if (index > 0) return index; } return t1; } if (t1 < 3) return 0; if (!A.isAlphabetic(path.charCodeAt(0))) return 0; if (path.charCodeAt(1) !== 58) return 0; t1 = path.charCodeAt(2); if (!(t1 === 47 || t1 === 92)) return 0; return 3; }, rootLength$1(path) { return this.rootLength$2$withDrive(path, false); }, isRootRelative$1(path) { return this.rootLength$1(path) === 1; }, pathFromUri$1(uri) { var path, t1; if (uri.get$scheme() !== "" && uri.get$scheme() !== "file") throw A.wrapException(A.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'.", null)); path = uri.get$path(uri); if (uri.get$host() === "") { if (path.length >= 3 && B.JSString_methods.startsWith$1(path, "/") && A.isDriveLetter(path, 1)) path = B.JSString_methods.replaceFirst$2(path, "/", ""); } else path = "\\\\" + uri.get$host() + path; t1 = A.stringReplaceAllUnchecked(path, "/", "\\"); return A._Uri__uriDecode(t1, 0, t1.length, B.C_Utf8Codec, false); }, absolutePathToUri$1(path) { var rootParts, t2, parsed = A.ParsedPath_ParsedPath$parse(path, this), t1 = parsed.root; t1.toString; if (B.JSString_methods.startsWith$1(t1, "\\\\")) { rootParts = new A.WhereIterable(A._setArrayType(t1.split("\\"), type$.JSArray_String), new A.WindowsStyle_absolutePathToUri_closure(), type$.WhereIterable_String); B.JSArray_methods.insert$2(parsed.parts, 0, rootParts.get$last(rootParts)); if (parsed.get$hasTrailingSeparator()) B.JSArray_methods.add$1(parsed.parts, ""); return A._Uri__Uri(rootParts.get$first(rootParts), null, parsed.parts, "file"); } else { if (parsed.parts.length === 0 || parsed.get$hasTrailingSeparator()) B.JSArray_methods.add$1(parsed.parts, ""); t1 = parsed.parts; t2 = parsed.root; t2.toString; t2 = A.stringReplaceAllUnchecked(t2, "/", ""); B.JSArray_methods.insert$2(t1, 0, A.stringReplaceAllUnchecked(t2, "\\", "")); return A._Uri__Uri(null, null, parsed.parts, "file"); } }, codeUnitsEqual$2(codeUnit1, codeUnit2) { var upperCase1; if (codeUnit1 === codeUnit2) return true; if (codeUnit1 === 47) return codeUnit2 === 92; if (codeUnit1 === 92) return codeUnit2 === 47; if ((codeUnit1 ^ codeUnit2) !== 32) return false; upperCase1 = codeUnit1 | 32; return upperCase1 >= 97 && upperCase1 <= 122; }, pathsEqual$2(path1, path2) { var t1, i; if (path1 === path2) return true; t1 = path1.length; if (t1 !== path2.length) return false; for (i = 0; i < t1; ++i) if (!this.codeUnitsEqual$2(path1.charCodeAt(i), path2.charCodeAt(i))) return false; return true; }, canonicalizeCodeUnit$1(codeUnit) { if (codeUnit === 47) return 92; if (codeUnit < 65) return codeUnit; if (codeUnit > 90) return codeUnit; return codeUnit | 32; }, canonicalizePart$1(part) { return part.toLowerCase(); }, get$name() { return "windows"; }, get$separator() { return "\\"; } }; A.WindowsStyle_absolutePathToUri_closure.prototype = { call$1(part) { return part !== ""; }, $signature: 10 }; A.Version.prototype = { get$min() { return this; }, get$max() { return this; }, get$includeMin() { return true; }, get$includeMax() { return true; }, $eq(_, other) { var _this = this; if (other == null) return false; 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); }, get$hashCode(_) { var _this = this; return (_this.major ^ _this.minor ^ _this.patch ^ B.C_IterableEquality.hash$1(_this.preRelease) ^ B.C_IterableEquality.hash$1(_this.build)) >>> 0; }, compareTo$1(_, other) { var t1, t2, t3, comparison, _this = this; if (other instanceof A.Version) { t1 = _this.major; t2 = other.major; if (t1 !== t2) return B.JSInt_methods.compareTo$1(t1, t2); t1 = _this.minor; t2 = other.minor; if (t1 !== t2) return B.JSInt_methods.compareTo$1(t1, t2); t1 = _this.patch; t2 = other.patch; if (t1 !== t2) return B.JSInt_methods.compareTo$1(t1, t2); t1 = _this.preRelease; t2 = t1.length === 0; if (t2 && other.preRelease.length !== 0) return 1; t3 = other.preRelease; if (t3.length === 0 && !t2) return -1; comparison = _this._compareLists$2(t1, t3); if (comparison !== 0) return comparison; t1 = _this.build; t2 = t1.length === 0; if (t2 && other.build.length !== 0) return -1; t3 = other.build; if (t3.length === 0 && !t2) return 1; return _this._compareLists$2(t1, t3); } else return -other.compareTo$1(0, _this); }, toString$0(_) { return this._version$_text; }, _compareLists$2(a, b) { var i, t1, t2, aPart, bPart; for (i = 0; t1 = a.length, t2 = b.length, i < Math.max(t1, t2); ++i) { aPart = i < t1 ? a[i] : null; bPart = i < t2 ? b[i] : null; if (J.$eq$(aPart, bPart)) continue; if (aPart == null) return -1; if (bPart == null) return 1; if (typeof aPart == "number") if (typeof bPart == "number") return B.JSNumber_methods.compareTo$1(aPart, bPart); else return -1; else if (typeof bPart == "number") return 1; else { A._asString(aPart); A._asString(bPart); if (aPart === bPart) t1 = 0; else t1 = aPart < bPart ? -1 : 1; return t1; } } return 0; }, $isComparable: 1, $isVersionRange: 1 }; A.Version__splitParts_closure.prototype = { call$1(part) { var t1 = A.Primitives_parseInt(part, null); return t1 == null ? part : t1; }, $signature: 535 }; A.VersionRange.prototype = { $eq(_, other) { var t1; if (other == null) return false; if (!type$.VersionRange._is(other)) return false; if (this.min == other.get$min()) if (J.$eq$(this.max, other.get$max())) if (!other.get$includeMin()) { other.get$includeMax(); t1 = true; } else t1 = false; else t1 = false; else t1 = false; return t1; }, get$hashCode(_) { var t1 = B.JSNull_methods.get$hashCode(this.min), t2 = J.get$hashCode$(this.max); return (t1 ^ t2 * 3 ^ 1090795 ^ 3633126) >>> 0; }, allows$1(other) { var t1 = this.max; if (t1 != null) if (other.compareTo$1(0, t1) > 0) return false; return true; }, compareTo$1(_, other) { if (other.get$min() == null) return this._compareMax$1(other); return -1; }, _compareMax$1(other) { var t2, result, t1 = this.max; if (t1 == null) { if (other.get$max() == null) return 0; return 1; } else if (other.get$max() == null) return -1; t2 = other.get$max(); t2.toString; result = t1.compareTo$1(0, t2); if (result !== 0) return result; other.get$includeMax(); return 0; }, toString$0(_) { var t2, max = this.max, t1 = max == null; if (!t1) t2 = "" + "<=" + max.toString$0(0); else t2 = ""; t1 = t1 ? t2 + "any" : t2; return t1.charCodeAt(0) == 0 ? t1 : t1; }, $isComparable: 1, get$min() { return this.min; }, get$max() { return this.max; }, get$includeMin() { return this.includeMin; }, get$includeMax() { return this.includeMax; } }; A.CssMediaQuery.prototype = { merge$1(other) { 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"; if (!_this.conjunction || !other.conjunction) return B._SingletonCssMediaQueryMergeResult_1; t1 = _this.modifier; ourModifier = t1 == null ? _null : t1.toLowerCase(); t2 = _this.type; t3 = t2 == null; ourType = t3 ? _null : t2.toLowerCase(); t4 = other.modifier; theirModifier = t4 == null ? _null : t4.toLowerCase(); t5 = other.type; t6 = t5 == null; theirType = t6 ? _null : t5.toLowerCase(); t7 = ourType == null; if (t7 && theirType == null) { t1 = A.List_List$of(_this.conditions, true, type$.String); B.JSArray_methods.addAll$1(t1, other.conditions); return new A.MediaQuerySuccessfulMergeResult(A.CssMediaQuery$condition(t1, true)); } t8 = ourModifier === "not"; if (t8 !== (theirModifier === "not")) { if (ourType == theirType) { negativeConditions = t8 ? _this.conditions : other.conditions; if (B.JSArray_methods.every$1(negativeConditions, B.JSArray_methods.get$contains(t8 ? other.conditions : _this.conditions))) return B._SingletonCssMediaQueryMergeResult_0; else return B._SingletonCssMediaQueryMergeResult_1; } else if (t3 || A.equalsIgnoreCase(t2, _s3_) || t6 || A.equalsIgnoreCase(t5, _s3_)) return B._SingletonCssMediaQueryMergeResult_1; if (t8) { conditions = other.conditions; type = theirType; modifier = theirModifier; } else { conditions = _this.conditions; type = ourType; modifier = ourModifier; } } else if (t8) { if (ourType != theirType) return B._SingletonCssMediaQueryMergeResult_1; fewerConditions = _this.conditions; fewerConditions0 = other.conditions; t3 = fewerConditions.length > fewerConditions0.length; moreConditions = t3 ? fewerConditions : fewerConditions0; if (t3) fewerConditions = fewerConditions0; if (!B.JSArray_methods.every$1(fewerConditions, B.JSArray_methods.get$contains(moreConditions))) return B._SingletonCssMediaQueryMergeResult_1; conditions = moreConditions; type = ourType; modifier = ourModifier; } else if (t3 || A.equalsIgnoreCase(t2, _s3_)) { type = (t6 || A.equalsIgnoreCase(t5, _s3_)) && t7 ? _null : theirType; t3 = A.List_List$of(_this.conditions, true, type$.String); B.JSArray_methods.addAll$1(t3, other.conditions); conditions = t3; modifier = theirModifier; } else { if (t6 || A.equalsIgnoreCase(t5, _s3_)) { t3 = A.List_List$of(_this.conditions, true, type$.String); B.JSArray_methods.addAll$1(t3, other.conditions); conditions = t3; modifier = ourModifier; } else { if (ourType != theirType) return B._SingletonCssMediaQueryMergeResult_0; else { modifier = ourModifier == null ? theirModifier : ourModifier; t3 = A.List_List$of(_this.conditions, true, type$.String); B.JSArray_methods.addAll$1(t3, other.conditions); } conditions = t3; } type = ourType; } t2 = type == ourType ? t2 : t5; return new A.MediaQuerySuccessfulMergeResult(A.CssMediaQuery$type(t2, conditions, modifier == ourModifier ? t1 : t4)); }, $eq(_, other) { if (other == null) return false; return other instanceof A.CssMediaQuery && other.modifier == this.modifier && other.type == this.type && B.C_ListEquality.equals$2(0, other.conditions, this.conditions); }, get$hashCode(_) { return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ B.C_ListEquality0.hash$1(this.conditions); }, toString$0(_) { var t2, _this = this, t1 = _this.modifier; t1 = t1 != null ? "" + (t1 + " ") : ""; t2 = _this.type; if (t2 != null) { t1 += t2; if (_this.conditions.length !== 0) t1 += " and "; } t2 = _this.conjunction ? " and " : " or "; t2 = t1 + B.JSArray_methods.join$1(_this.conditions, t2); return t2.charCodeAt(0) == 0 ? t2 : t2; } }; A._SingletonCssMediaQueryMergeResult.prototype = { _enumToString$0() { return "_SingletonCssMediaQueryMergeResult." + this._name; } }; A.MediaQuerySuccessfulMergeResult.prototype = { toString$0(_) { return this.query.toString$0(0); } }; A.ModifiableCssAtRule.prototype = { accept$1$1(visitor) { return visitor.visitCssAtRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, equalsIgnoringChildren$1(other) { var t1, t2; if (other instanceof A.ModifiableCssAtRule) { t1 = this.name; t2 = other.name; t1 = t1.$ti._is(t2) && J.$eq$(t2.value, t1.value) && J.$eq$(this.value, other.value) && this.isChildless === other.isChildless; } else t1 = false; return t1; }, copyWithoutChildren$0() { var _this = this; return A.ModifiableCssAtRule$(_this.name, _this.span, _this.isChildless, _this.value); }, addChild$1(child) { this.super$ModifiableCssParentNode$addChild(child); }, get$isChildless() { return this.isChildless; }, get$span(receiver) { return this.span; } }; A.ModifiableCssComment.prototype = { accept$1$1(visitor) { return visitor.visitCssComment$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, $isCssComment: 1, get$span(receiver) { return this.span; } }; A.ModifiableCssDeclaration.prototype = { accept$1$1(visitor) { return visitor.visitCssDeclaration$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return this.name.toString$0(0) + ": " + this.value.toString$0(0) + ";"; }, get$span(receiver) { return this.span; } }; A.ModifiableCssImport.prototype = { accept$1$1(visitor) { return visitor.visitCssImport$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, get$span(receiver) { return this.span; } }; A.ModifiableCssKeyframeBlock.prototype = { accept$1$1(visitor) { return visitor.visitCssKeyframeBlock$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, equalsIgnoringChildren$1(other) { return other instanceof A.ModifiableCssKeyframeBlock && B.C_ListEquality.equals$2(0, this.selector.value, other.selector.value); }, copyWithoutChildren$0() { return A.ModifiableCssKeyframeBlock$(this.selector, this.span); }, get$span(receiver) { return this.span; } }; A.ModifiableCssMediaRule.prototype = { accept$1$1(visitor) { return visitor.visitCssMediaRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, equalsIgnoringChildren$1(other) { return other instanceof A.ModifiableCssMediaRule && B.C_ListEquality.equals$2(0, this.queries, other.queries); }, copyWithoutChildren$0() { return A.ModifiableCssMediaRule$(this.queries, this.span); }, get$span(receiver) { return this.span; } }; A.ModifiableCssNode.prototype = { get$hasFollowingSibling() { var t2, t1 = this._parent; if (t1 == null) t1 = null; else { t1 = t1.children; t2 = this._indexInParent; t2.toString; t1 = A.SubListIterable$(t1, t2 + 1, null, t1.$ti._eval$1("ListBase.E")).any$1(0, new A.ModifiableCssNode_hasFollowingSibling_closure()); } return t1 === true; }, get$isGroupEnd() { return this.isGroupEnd; } }; A.ModifiableCssNode_hasFollowingSibling_closure.prototype = { call$1(sibling) { return !sibling.accept$1(B._IsInvisibleVisitor_true_false); }, $signature: 124 }; A.ModifiableCssParentNode.prototype = { get$isChildless() { return false; }, addChild$1(child) { var t1; child._parent = this; t1 = this._children; child._indexInParent = t1.length; t1.push(child); }, clearChildren$0() { var t1, t2, _i, child; for (t1 = this._children, t2 = t1.length, _i = 0; _i < t2; ++_i) { child = t1[_i]; child._indexInParent = child._parent = null; } B.JSArray_methods.clear$0(t1); }, $isCssParentNode: 1, get$children(receiver) { return this.children; } }; A.ModifiableCssStyleRule.prototype = { accept$1$1(visitor) { return visitor.visitCssStyleRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, equalsIgnoringChildren$1(other) { var t1; if (other instanceof A.ModifiableCssStyleRule) t1 = B.C_ListEquality.equals$2(0, other._style_rule$_selector._box$_inner.value.components, this._style_rule$_selector._box$_inner.value.components); else t1 = false; return t1; }, copyWithoutChildren$0() { return A.ModifiableCssStyleRule$(this._style_rule$_selector, this.span, this.originalSelector); }, get$span(receiver) { return this.span; } }; A.ModifiableCssStylesheet.prototype = { accept$1$1(visitor) { return visitor.visitCssStylesheet$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, equalsIgnoringChildren$1(other) { return other instanceof A.ModifiableCssStylesheet; }, copyWithoutChildren$0() { return A.ModifiableCssStylesheet$(this.span); }, $isCssStylesheet: 1, get$span(receiver) { return this.span; } }; A.ModifiableCssSupportsRule.prototype = { accept$1$1(visitor) { return visitor.visitCssSupportsRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, equalsIgnoringChildren$1(other) { var t1, t2; if (other instanceof A.ModifiableCssSupportsRule) { t1 = this.condition; t2 = other.condition; t1 = t1.$ti._is(t2) && J.$eq$(t2.value, t1.value); } else t1 = false; return t1; }, copyWithoutChildren$0() { return A.ModifiableCssSupportsRule$(this.condition, this.span); }, get$span(receiver) { return this.span; } }; A.CssNode.prototype = { toString$0(_) { return A.serialize(this, true, null, true, null, false, null, true)._0; }, $isAstNode: 1 }; A.CssParentNode.prototype = {}; A._IsInvisibleVisitor.prototype = { visitCssAtRule$1(rule) { return false; }, visitCssComment$1(comment) { return this.includeComments && comment.text.charCodeAt(2) !== 33; }, visitCssStyleRule$1(rule) { var t1 = rule._style_rule$_selector._box$_inner; return (this.includeBogus ? t1.value.accept$1(B._IsInvisibleVisitor_true) : t1.value.accept$1(B._IsInvisibleVisitor_false)) || this.super$EveryCssVisitor$visitCssStyleRule(rule); } }; A.__IsInvisibleVisitor_Object_EveryCssVisitor.prototype = {}; A.CssStylesheet.prototype = { get$isGroupEnd() { return false; }, get$isChildless() { return false; }, accept$1$1(visitor) { return visitor.visitCssStylesheet$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, get$children(receiver) { return this.children; }, get$span(receiver) { return this.span; } }; A.CssValue.prototype = { $eq(_, other) { if (other == null) return false; return this.$ti._is(other) && J.$eq$(other.value, this.value); }, get$hashCode(_) { return J.get$hashCode$(this.value); }, toString$0(_) { return J.toString$0$(this.value); }, $isAstNode: 1, get$span(receiver) { return this.span; } }; A._FakeAstNode.prototype = { get$span(_) { return this._callback.call$0(); }, $isAstNode: 1 }; A.Argument.prototype = { toString$0(_) { var t1 = this.defaultValue, t2 = this.name; return t1 == null ? t2 : t2 + ": " + t1.toString$0(0); }, $isAstNode: 1, get$span(receiver) { return this.span; } }; A.ArgumentDeclaration.prototype = { get$spanWithName() { var t3, t4, t1 = this.span, t2 = t1.file, text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null), i = A.FileLocation$_(t2, t1._file$_start).offset - 1; while (true) { if (i > 0) { t3 = text.charCodeAt(i); t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12; } else t3 = false; if (!t3) break; --i; } t3 = text.charCodeAt(i); if (!(t3 === 95 || A.CharacterExtension_get_isAlphabetic(t3) || t3 >= 128)) t3 = t3 >= 48 && t3 <= 57 || t3 === 45; else t3 = true; if (!t3) return t1; --i; while (true) { if (i >= 0) { t3 = text.charCodeAt(i); if (t3 !== 95) { if (!(t3 >= 97 && t3 <= 122)) t4 = t3 >= 65 && t3 <= 90; else t4 = true; t4 = t4 || t3 >= 128; } else t4 = true; if (!t4) t3 = t3 >= 48 && t3 <= 57 || t3 === 45; else t3 = true; } else t3 = false; if (!t3) break; --i; } t3 = i + 1; t4 = text.charCodeAt(t3); if (!(t4 === 95 || A.CharacterExtension_get_isAlphabetic(t4) || t4 >= 128)) return t1; return A.SpanExtensions_trimRight(A.SpanExtensions_trimLeft(t2.span$2(0, t3, A.FileLocation$_(t2, t1._end).offset))); }, verify$2(positional, names) { var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this, _s10_ = "invocation", _s8_ = "argument"; for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) { argument = t1[i]; if (i < positional) { t4 = argument.name; if (t3.containsKey$1(t4)) throw A.wrapException(A.SassScriptException$("Argument " + _this._originalArgumentName$1(t4) + string$.x20was_p, null)); } else { t4 = argument.name; if (t3.containsKey$1(t4)) ++namedUsed; else if (argument.defaultValue == null) throw A.wrapException(A.MultiSpanSassScriptException$("Missing argument " + _this._originalArgumentName$1(t4) + ".", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String))); } } if (_this.restArgument != null) return; if (positional > t2) { t1 = names.get$isEmpty(names) ? "" : "positional "; 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))); } if (namedUsed < t3.get$length(t3)) { t2 = type$.String; unknownNames = A.LinkedHashSet_LinkedHashSet$of(names, t2); unknownNames.removeAll$1(new A.MappedListIterable(t1, new A.ArgumentDeclaration_verify_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object?>"))); 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))); } }, _originalArgumentName$1($name) { var t1, text, t2, _i, argument, t3, t4, end, _null = null; if ($name === this.restArgument) { t1 = this.span; text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, _null); 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, ".")); } for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) { argument = t1[_i]; if (argument.name === $name) { t1 = argument.defaultValue; t2 = argument.span; t3 = t2.file; t4 = t2._file$_start; t2 = t2._end; if (t1 == null) { t1 = t3._decodedChars; t1 = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null); } else { t1 = t3._decodedChars; text = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null); t1 = B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":")); end = A._lastNonWhitespace(t1, false); t1 = end == null ? "" : B.JSString_methods.substring$2(t1, 0, end + 1); } return t1; } } throw A.wrapException(A.ArgumentError$(string$.This_d + $name + '".', _null)); }, matches$2(positional, names) { var t1, t2, t3, namedUsed, i, argument; for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) { argument = t1[i]; if (i < positional) { if (t3.containsKey$1(argument.name)) return false; } else if (t3.containsKey$1(argument.name)) ++namedUsed; else if (argument.defaultValue == null) return false; } if (this.restArgument != null) return true; if (positional > t2) return false; if (namedUsed < t3.get$length(t3)) return false; return true; }, toString$0(_) { var t2, t3, _i, t1 = A._setArrayType([], type$.JSArray_String); for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i) t1.push("$" + A.S(t2[_i])); t2 = this.restArgument; if (t2 != null) t1.push("$" + t2 + "..."); return B.JSArray_methods.join$1(t1, ", "); }, $isAstNode: 1, get$span(receiver) { return this.span; } }; A.ArgumentDeclaration_verify_closure.prototype = { call$1(argument) { return argument.name; }, $signature: 630 }; A.ArgumentDeclaration_verify_closure0.prototype = { call$1($name) { return "$" + $name; }, $signature: 7 }; A.ArgumentInvocation.prototype = { get$isEmpty(_) { var t1; if (this.positional.length === 0) { t1 = this.named; t1 = t1.get$isEmpty(t1) && this.rest == null; } else t1 = false; return t1; }, toString$0(_) { var t2, t3, _i, $name, value, _1_0, rest, _2_0, keywordRest, _this = this, t1 = A._setArrayType([], type$.JSArray_String); for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i) t1.push(_this._parenthesizeArgument$1(t2[_i])); for (t2 = A.MapExtensions_get_pairs(_this.named, type$.String, type$.Expression), t2 = t2.get$iterator(t2); t2.moveNext$0();) { t3 = t2.get$current(t2); $name = t3._0; value = t3._1; t1.push("$" + $name + ": " + _this._parenthesizeArgument$1(value)); } _1_0 = _this.rest; if (_1_0 != null) { rest = _1_0; t2 = true; } else { rest = null; t2 = false; } if (t2) t1.push(_this._parenthesizeArgument$1(rest) + "..."); _2_0 = _this.keywordRest; if (_2_0 != null) { keywordRest = _2_0; t2 = true; } else { keywordRest = null; t2 = false; } if (t2) t1.push(_this._parenthesizeArgument$1(keywordRest) + "..."); return "(" + B.JSArray_methods.join$1(t1, ", ") + ")"; }, _parenthesizeArgument$1(argument) { var t1; $label0$0: { if (argument instanceof A.ListExpression && B.ListSeparator_rXA === argument.separator && !argument.hasBrackets && argument.contents.length >= 2) { t1 = "(" + argument.toString$0(0) + ")"; break $label0$0; } t1 = argument.toString$0(0); break $label0$0; } return t1; }, $isAstNode: 1, get$span(receiver) { return this.span; } }; A.AtRootQuery.prototype = { excludes$1(node) { var t1, _this = this; if (_this._all) return !_this.include; $label0$0: { if (node instanceof A.ModifiableCssStyleRule) { t1 = _this._at_root_query$_rule !== _this.include; break $label0$0; } if (node instanceof A.ModifiableCssMediaRule) { t1 = _this.excludesName$1("media"); break $label0$0; } if (node instanceof A.ModifiableCssSupportsRule) { t1 = _this.excludesName$1("supports"); break $label0$0; } if (node instanceof A.ModifiableCssAtRule) { t1 = _this.excludesName$1(node.name.value.toLowerCase()); break $label0$0; } t1 = false; break $label0$0; } return t1; }, excludesName$1($name) { var t1 = this._all || this.names.contains$1(0, $name); return t1 !== this.include; } }; A.ConfiguredVariable.prototype = { toString$0(_) { var t1 = this.expression.toString$0(0), t2 = this.isGuarded ? " !default" : ""; return "$" + this.name + ": " + t1 + t2; }, $isAstNode: 1, get$span(receiver) { return this.span; } }; A._IsCalculationSafeVisitor.prototype = { visitBinaryOperationExpression$1(node) { var t1; if (B.Set_FIwG4.contains$1(0, node.operator)) t1 = node.left.accept$1(this) || node.right.accept$1(this); else t1 = false; return t1; }, visitBooleanExpression$1(node) { return false; }, visitColorExpression$1(node) { return false; }, visitFunctionExpression$1(node) { return true; }, visitInterpolatedFunctionExpression$1(node) { return true; }, visitIfExpression$1(node) { return true; }, visitListExpression$1(node) { var t1; if (node.separator === B.ListSeparator_EVt) if (!node.hasBrackets) { t1 = node.contents; t1 = t1.length > 1 && B.JSArray_methods.every$1(t1, new A._IsCalculationSafeVisitor_visitListExpression_closure(this)); } else t1 = false; else t1 = false; return t1; }, visitMapExpression$1(node) { return false; }, visitNullExpression$1(node) { return false; }, visitNumberExpression$1(node) { return true; }, visitParenthesizedExpression$1(node) { return node.expression.accept$1(this); }, visitSelectorExpression$1(node) { return false; }, visitStringExpression$1(node) { var text, t1, t2; if (node.hasQuotes) return false; text = node.text.get$initialPlain(); if (!B.JSString_methods.startsWith$1(text, "!")) if (!B.JSString_methods.startsWith$1(text, "#")) { t1 = text.length; if ((1 >= t1 ? null : text.charCodeAt(1)) !== 43) { t2 = (3 >= t1 ? null : text.charCodeAt(3)) !== 40; t1 = t2; } else t1 = false; } else t1 = false; else t1 = false; return t1; }, visitSupportsExpression$1(node) { return false; }, visitUnaryOperationExpression$1(node) { return false; }, visitValueExpression$1(node) { return false; }, visitVariableExpression$1(node) { return true; } }; A._IsCalculationSafeVisitor_visitListExpression_closure.prototype = { call$1(expression) { return expression.accept$1(this.$this); }, $signature: 126 }; A.BinaryOperationExpression.prototype = { get$span(_) { var right, left = this.left; for (; left instanceof A.BinaryOperationExpression;) left = left.left; right = this.right; for (; right instanceof A.BinaryOperationExpression;) right = right.right; return left.get$span(left).expand$1(0, right.get$span(right)); }, get$operatorSpan() { var t3, t4, _this = this, t1 = _this.left, t2 = t1.get$span(t1); t2 = t2.get$file(t2); t3 = _this.right; t4 = t3.get$span(t3); if (t2 === t4.get$file(t4)) { t2 = t1.get$span(t1); t2 = t2.get$end(t2); t4 = t3.get$span(t3); t4 = t2.offset < t4.get$start(t4).offset; t2 = t4; } else t2 = false; if (t2) { t2 = t1.get$span(t1); t2 = t2.get$file(t2); t1 = t1.get$span(t1); t1 = t1.get$end(t1); t3 = t3.get$span(t3); t3 = A.SpanExtensions_trimRight(A.SpanExtensions_trimLeft(t2.span$2(0, t1.offset, t3.get$start(t3).offset))); t1 = t3; } else t1 = _this.get$span(_this); return t1; }, accept$1$1(visitor) { return visitor.visitBinaryOperationExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var precedence, t1, t2, right, operator, t3, _this = this, _0_0 = _this.left; $label0$0: { if (_0_0 instanceof A.BinaryOperationExpression) { precedence = _0_0.operator.precedence; t1 = true; } else { precedence = null; t1 = false; } if (t1) { t1 = precedence < _this.operator.precedence; break $label0$0; } if (_0_0 instanceof A.ListExpression && !_0_0.hasBrackets && _0_0.contents.length >= 2) { t1 = true; break $label0$0; } t1 = false; break $label0$0; } t2 = t1 ? "" + A.Primitives_stringFromCharCode(40) : ""; t2 += _0_0.toString$0(0); t1 = t1 ? t2 + A.Primitives_stringFromCharCode(41) : t2; t2 = _this.operator; t1 = t1 + A.Primitives_stringFromCharCode(32) + t2.operator + A.Primitives_stringFromCharCode(32); right = _this.right; $label1$1: { if (right instanceof A.BinaryOperationExpression) { operator = right.operator; t3 = true; } else { operator = null; t3 = false; } if (t3) { if (operator.precedence <= t2.precedence) { t3 = !(operator === t2 && operator.isAssociative); t2 = t3; } else t2 = false; break $label1$1; } if (right instanceof A.ListExpression && !right.hasBrackets && right.contents.length >= 2) { t2 = true; break $label1$1; } t2 = false; break $label1$1; } if (t2) t1 += A.Primitives_stringFromCharCode(40); t1 += right.toString$0(0); if (t2) t1 += A.Primitives_stringFromCharCode(41); return t1.charCodeAt(0) == 0 ? t1 : t1; }, $isAstNode: 1, $isExpression: 1 }; A.BinaryOperator.prototype = { _enumToString$0() { return "BinaryOperator." + this._name; }, toString$0(_) { return this.name; } }; A.BooleanExpression.prototype = { accept$1$1(visitor) { return visitor.visitBooleanExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return String(this.value); }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.ColorExpression.prototype = { accept$1$1(visitor) { return visitor.visitColorExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return A.serializeValue(this.value, true, true); }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.FunctionExpression.prototype = { get$name(_) { return A.stringReplaceAllUnchecked(this.originalName, "_", "-"); }, accept$1$1(visitor) { return visitor.visitFunctionExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.namespace; t1 = t1 != null ? "" + (t1 + ".") : ""; t1 += this.originalName + this.$arguments.toString$0(0); return t1.charCodeAt(0) == 0 ? t1 : t1; }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.IfExpression.prototype = { accept$1$1(visitor) { return visitor.visitIfExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "if" + this.$arguments.toString$0(0); }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.InterpolatedFunctionExpression.prototype = { accept$1$1(visitor) { return visitor.visitInterpolatedFunctionExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return this.name.toString$0(0) + this.$arguments.toString$0(0); }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.ListExpression.prototype = { accept$1$1(visitor) { return visitor.visitListExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t2, t3, t4, t5, _this = this, t1 = _this.hasBrackets; if (t1) t2 = "" + A.Primitives_stringFromCharCode(91); else { t2 = _this.contents.length; if (t2 !== 0) t2 = t2 === 1 && _this.separator === B.ListSeparator_rXA; else t2 = true; t2 = t2 ? "" + A.Primitives_stringFromCharCode(40) : ""; } t3 = _this.contents; t4 = _this.separator === B.ListSeparator_rXA; t5 = t4 ? ", " : " "; t5 = t2 + new A.MappedListIterable(t3, new A.ListExpression_toString_closure(_this), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String>")).join$1(0, t5); if (t1) t1 = t5 + A.Primitives_stringFromCharCode(93); else { t1 = t3.length; if (t1 === 0) t1 = t5 + A.Primitives_stringFromCharCode(41); else t1 = t1 === 1 && t4 ? t5 + ",)" : t5; } return t1.charCodeAt(0) == 0 ? t1 : t1; }, _list0$_elementNeedsParens$1(expression) { var childSeparator, t1, _0_13 = A._InitializedCell$(new A.ListExpression__elementNeedsParens_closure(expression)); $label0$0: { if (expression instanceof A.ListExpression) if (expression.contents.length >= 2) if (!expression.hasBrackets) { childSeparator = expression.separator; t1 = true; } else { childSeparator = null; t1 = false; } else { childSeparator = null; t1 = false; } else { childSeparator = null; t1 = false; } if (t1) { t1 = this.separator === B.ListSeparator_rXA ? childSeparator === B.ListSeparator_rXA : childSeparator !== B.ListSeparator_undecided_null_undecided; break $label0$0; } if (expression instanceof A.UnaryOperationExpression) t1 = B.UnaryOperator_gg4 === _0_13._readFinal$0() || B.UnaryOperator_TLI === _0_13._readFinal$0(); else t1 = false; if (t1) { t1 = this.separator === B.ListSeparator_EVt; break $label0$0; } t1 = false; break $label0$0; } return t1; }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.ListExpression_toString_closure.prototype = { call$1(element) { return this.$this._list0$_elementNeedsParens$1(element) ? "(" + element.toString$0(0) + ")" : element.toString$0(0); }, $signature: 132 }; A.ListExpression__elementNeedsParens_closure.prototype = { call$0() { return type$.UnaryOperationExpression._as(this._0_0).operator; }, $signature: 137 }; A.MapExpression.prototype = { accept$1$1(visitor) { return visitor.visitMapExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t2, t3, _i, t4, key, value, t1 = A._setArrayType([], type$.JSArray_String); for (t2 = this.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) { t4 = t2[_i]; key = t4._0; value = t4._1; t1.push(key.toString$0(0) + ": " + value.toString$0(0)); } return "(" + B.JSArray_methods.join$1(t1, ", ") + ")"; }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.NullExpression.prototype = { accept$1$1(visitor) { return visitor.visitNullExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "null"; }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.NumberExpression.prototype = { accept$1$1(visitor) { return visitor.visitNumberExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return A.serializeValue(A.SassNumber_SassNumber(this.value, this.unit), true, true); }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.ParenthesizedExpression.prototype = { accept$1$1(visitor) { return visitor.visitParenthesizedExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "(" + this.expression.toString$0(0) + ")"; }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.SelectorExpression.prototype = { accept$1$1(visitor) { return visitor.visitSelectorExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "&"; }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.StringExpression.prototype = { get$span(_) { return this.text.span; }, accept$1$1(visitor) { return visitor.visitStringExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, asInterpolation$1$static($static) { var t1, t2, quote, t3, t4, buffer, t5, t6, _i, value; if (!this.hasQuotes) return this.text; t1 = this.text; t2 = t1.contents; quote = A.StringExpression__bestQuote(new A.WhereTypeIterable(t2, type$.WhereTypeIterable_String)); t3 = new A.StringBuffer(""); t4 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer(t3, t4); t3._contents += A.Primitives_stringFromCharCode(quote); for (t5 = t2.length, t6 = type$.Expression, _i = 0; _i < t5; ++_i) { value = t2[_i]; if (t6._is(value)) { buffer._flushText$0(); t4.push(value); continue; } if (typeof value == "string") A.StringExpression__quoteInnerText(value, quote, buffer, $static); } t3._contents += A.Primitives_stringFromCharCode(quote); return buffer.interpolation$1(t1.span); }, asInterpolation$0() { return this.asInterpolation$1$static(false); }, toString$0(_) { return this.asInterpolation$0().toString$0(0); }, $isAstNode: 1, $isExpression: 1 }; A.SupportsExpression.prototype = { get$span(_) { var t1 = this.condition; return t1.get$span(t1); }, accept$1$1(visitor) { return visitor.visitSupportsExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return this.condition.toString$0(0); }, $isAstNode: 1, $isExpression: 1 }; A.UnaryOperationExpression.prototype = { accept$1$1(visitor) { return visitor.visitUnaryOperationExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var operand, t1 = this.operator, t2 = t1.operator; t1 = t1 === B.UnaryOperator_not_not_not ? t2 + A.Primitives_stringFromCharCode(32) : t2; operand = this.operand; $label0$0: { if (!(operand instanceof A.BinaryOperationExpression)) if (!(operand instanceof A.UnaryOperationExpression)) t2 = operand instanceof A.ListExpression && !operand.hasBrackets && operand.contents.length >= 2; else t2 = true; else t2 = true; if (t2) { t2 = true; break $label0$0; } t2 = false; break $label0$0; } if (t2) t1 += "40"; t1 += operand.toString$0(0); if (t2) t1 += "41"; return t1.charCodeAt(0) == 0 ? t1 : t1; }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.UnaryOperator.prototype = { _enumToString$0() { return "UnaryOperator." + this._name; }, toString$0(_) { return this.name; } }; A.ValueExpression.prototype = { accept$1$1(visitor) { return visitor.visitValueExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return A.serializeValue(this.value, true, true); }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.VariableExpression.prototype = { accept$1$1(visitor) { return visitor.visitVariableExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.namespace, t2 = this.name; return t1 == null ? "$" + t2 : t1 + ".$" + t2; }, $isAstNode: 1, $isExpression: 1, get$span(receiver) { return this.span; } }; A.DynamicImport.prototype = { toString$0(_) { return A.StringExpression_quoteText(this.urlString); }, $isAstNode: 1, $isImport: 1, get$span(receiver) { return this.span; } }; A.StaticImport.prototype = { toString$0(_) { var t1 = this.url.toString$0(0), t2 = this.modifiers; return t1 + (t2 == null ? "" : " " + t2.toString$0(0)); }, $isAstNode: 1, $isImport: 1, get$span(receiver) { return this.span; } }; A.Interpolation.prototype = { get$asPlain() { var t1, first, _0_0 = this.contents, _0_1 = A._InitializedCell$(new A.Interpolation_asPlain_closure(_0_0)), _0_6 = A._InitializedCell$(new A.Interpolation_asPlain_closure0(_0_0)); $label0$0: { if (_0_1._readFinal$0() <= 0) { t1 = ""; break $label0$0; } if (J.$eq$(_0_1._readFinal$0(), 1)) if (typeof _0_6._readFinal$0() == "string") { first = _0_6._readFinal$0(); t1 = true; } else { first = null; t1 = false; } else { first = null; t1 = false; } if (t1) { t1 = first; break $label0$0; } t1 = null; break $label0$0; } return t1; }, get$initialPlain() { var first, t1, _0_0 = this.contents, _0_4 = A._InitializedCell$(new A.Interpolation_initialPlain_closure(_0_0)); $label0$0: { if (_0_0.length >= 1) if (typeof _0_4._readFinal$0() == "string") { first = _0_4._readFinal$0(); t1 = true; } else { first = null; t1 = false; } else { first = null; t1 = false; } if (t1) { t1 = first; break $label0$0; } t1 = ""; break $label0$0; } return t1; }, Interpolation$2(contents, span) { var t1, t2, t3, i, t4, t5, _s8_ = "contents"; for (t1 = this.contents, t2 = t1.length, t3 = type$.Expression, i = 0; i < t2; ++i) { t4 = t1[i]; t5 = typeof t4 == "string"; if (!t5 && !t3._is(t4)) throw A.wrapException(A.ArgumentError$value(t1, _s8_, string$.May_on)); if (i !== 0 && typeof t1[i - 1] == "string" && t5) throw A.wrapException(A.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings.")); } }, toString$0(_) { var t1 = this.contents; return new A.MappedListIterable(t1, new A.Interpolation_toString_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0); }, $isAstNode: 1, get$span(receiver) { return this.span; } }; A.Interpolation_asPlain_closure.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A.Interpolation_asPlain_closure0.prototype = { call$0() { return this._0_0[0]; }, $signature: 14 }; A.Interpolation_initialPlain_closure.prototype = { call$0() { return this._0_0[0]; }, $signature: 14 }; A.Interpolation_toString_closure.prototype = { call$1(value) { return typeof value == "string" ? value : "#{" + A.S(value) + "}"; }, $signature: 139 }; A.AtRootRule.prototype = { accept$1$1(visitor) { return visitor.visitAtRootRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var buffer = new A.StringBuffer("@at-root "), t1 = this.query; if (t1 != null) buffer._contents = "@at-root " + (t1.toString$0(0) + " "); t1 = this.children; return buffer.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.AtRule.prototype = { accept$1$1(visitor) { return visitor.visitAtRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var children, t1 = "@" + this.name.toString$0(0), buffer = new A.StringBuffer(t1), t2 = this.value; if (t2 != null) buffer._contents = t1 + (" " + t2.toString$0(0)); children = this.children; return children == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(children, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.CallableDeclaration.prototype = { get$span(receiver) { return this.span; } }; A.ContentBlock.prototype = { accept$1$1(visitor) { return visitor.visitContentBlock$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t2, t1 = this.$arguments; t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")"; t2 = this.children; return t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}"); } }; A.ContentRule.prototype = { accept$1$1(visitor) { return visitor.visitContentRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.$arguments; return t1.get$isEmpty(t1) ? "@content;" : "@content(" + t1.toString$0(0) + ");"; }, $isAstNode: 1, $isStatement: 1, get$span(receiver) { return this.span; } }; A.DebugRule.prototype = { accept$1$1(visitor) { return visitor.visitDebugRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "@debug " + this.expression.toString$0(0) + ";"; }, $isAstNode: 1, $isStatement: 1, get$span(receiver) { return this.span; } }; A.Declaration.prototype = { accept$1$1(visitor) { return visitor.visitDeclaration$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t3, _0_0, children, buffer = new A.StringBuffer(""), t1 = this.name, t2 = "" + t1.toString$0(0); buffer._contents = t2; t2 = buffer._contents = t2 + A.Primitives_stringFromCharCode(58); t3 = this.value; if (t3 != null) { t1 = !B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--") ? buffer._contents = t2 + A.Primitives_stringFromCharCode(32) : t2; buffer._contents = t1 + t3.toString$0(0); } _0_0 = this.children; if (_0_0 != null) { children = _0_0; t1 = true; } else { children = null; t1 = false; } if (t1) return buffer.toString$0(0) + " {" + (children && B.JSArray_methods).join$1(children, " ") + "}"; else return buffer.toString$0(0) + ";"; }, get$span(receiver) { return this.span; } }; A.EachRule.prototype = { accept$1$1(visitor) { return visitor.visitEachRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.variables, t2 = this.children; 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, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.EachRule_toString_closure.prototype = { call$1(variable) { return "$" + variable; }, $signature: 7 }; A.ErrorRule.prototype = { accept$1$1(visitor) { return visitor.visitErrorRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "@error " + this.expression.toString$0(0) + ";"; }, $isAstNode: 1, $isStatement: 1, get$span(receiver) { return this.span; } }; A.ExtendRule.prototype = { accept$1$1(visitor) { return visitor.visitExtendRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.selector.toString$0(0), t2 = this.isOptional ? " !optional" : ""; return "@extend " + t1 + t2 + ";"; }, $isAstNode: 1, $isStatement: 1, get$span(receiver) { return this.span; } }; A.ForRule.prototype = { accept$1$1(visitor) { return visitor.visitForRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var _this = this, t1 = _this.from.toString$0(0), t2 = _this.isExclusive ? "to" : "through", t3 = _this.children; return "@for $" + _this.variable + " from " + t1 + " " + t2 + " " + _this.to.toString$0(0) + " {" + (t3 && B.JSArray_methods).join$1(t3, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.ForwardRule.prototype = { accept$1$1(visitor) { return visitor.visitForwardRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t2, prefix, _this = this, t1 = "@forward " + A.StringExpression_quoteText(_this.url.toString$0(0)), shownMixinsAndFunctions = _this.shownMixinsAndFunctions, hiddenMixinsAndFunctions = _this.hiddenMixinsAndFunctions; if (shownMixinsAndFunctions != null) { t2 = _this.shownVariables; t2.toString; t2 = t1 + " show " + _this._forward_rule$_memberList$2(shownMixinsAndFunctions, t2); t1 = t2; } else { if (hiddenMixinsAndFunctions != null) { t2 = hiddenMixinsAndFunctions._base; t2 = t2.get$isNotEmpty(t2); } else t2 = false; if (t2) { t2 = _this.hiddenVariables; t2.toString; t2 = t1 + " hide " + _this._forward_rule$_memberList$2(hiddenMixinsAndFunctions, t2); t1 = t2; } } prefix = _this.prefix; if (prefix != null) t1 += " as " + prefix + "*"; t2 = _this.configuration; t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";"; return t1.charCodeAt(0) == 0 ? t1 : t1; }, _forward_rule$_memberList$2(mixinsAndFunctions, variables) { var t2, t1 = A.List_List$of(mixinsAndFunctions, true, type$.String); for (t2 = variables._base, t2 = t2.get$iterator(t2); t2.moveNext$0();) t1.push("$" + t2.get$current(t2)); return B.JSArray_methods.join$1(t1, ", "); }, $isAstNode: 1, $isStatement: 1, get$span(receiver) { return this.span; } }; A.FunctionRule.prototype = { accept$1$1(visitor) { return visitor.visitFunctionRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.children; return "@function " + this.name + "(" + this.$arguments.toString$0(0) + ") {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}"; } }; A.IfRule.prototype = { accept$1$1(visitor) { return visitor.visitIfRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var result = A.ListExtensions_mapIndexed(this.clauses, new A.IfRule_toString_closure(), type$.IfClause, type$.String).join$1(0, " "), lastClause = this.lastClause; return lastClause != null ? result + (" " + lastClause.toString$0(0)) : result; }, $isAstNode: 1, $isStatement: 1, get$span(receiver) { return this.span; } }; A.IfRule_toString_closure.prototype = { call$2(index, clause) { var t1 = index === 0 ? "if" : "else if"; return "@" + t1 + " " + clause.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(clause.children, " ") + "}"; }, $signature: 335 }; A.IfRuleClause.prototype = {}; A.IfRuleClause$__closure.prototype = { call$1(child) { var t1, imports; $label0$0: { if (child instanceof A.VariableDeclaration || child instanceof A.FunctionRule || child instanceof A.MixinRule) { t1 = true; break $label0$0; } if (child instanceof A.ImportRule) { imports = child.imports; t1 = true; } else { imports = null; t1 = false; } if (t1) { t1 = (imports && B.JSArray_methods).any$1(imports, new A.IfRuleClause$___closure()); break $label0$0; } t1 = false; break $label0$0; } return t1; }, $signature: 150 }; A.IfRuleClause$___closure.prototype = { call$1($import) { return $import instanceof A.DynamicImport; }, $signature: 152 }; A.IfClause.prototype = { toString$0(_) { return "@if " + this.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(this.children, " ") + "}"; } }; A.ElseClause.prototype = { toString$0(_) { return "@else {" + B.JSArray_methods.join$1(this.children, " ") + "}"; } }; A.ImportRule.prototype = { accept$1$1(visitor) { return visitor.visitImportRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "@import " + B.JSArray_methods.join$1(this.imports, ", ") + ";"; }, $isAstNode: 1, $isStatement: 1, get$span(receiver) { return this.span; } }; A.IncludeRule.prototype = { get$spanWithoutContent() { var t2, t3, t1 = this.span; if (!(this.content == null)) { t2 = t1.file; t3 = this.$arguments.span; t3 = A.SpanExtensions_trimRight(A.SpanExtensions_trimLeft(t2.span$2(0, A.FileLocation$_(t2, t1._file$_start).offset, t3.get$end(t3).offset))); t1 = t3; } return t1; }, accept$1$1(visitor) { return visitor.visitIncludeRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t2, _this = this, t1 = _this.namespace; t1 = t1 != null ? "@include " + (t1 + ".") : "@include "; t1 += _this.name; t2 = _this.$arguments; if (!t2.get$isEmpty(t2)) t1 += "(" + t2.toString$0(0) + ")"; t2 = _this.content; t1 += t2 == null ? ";" : " " + t2.toString$0(0); return t1.charCodeAt(0) == 0 ? t1 : t1; }, $isAstNode: 1, $isStatement: 1, get$span(receiver) { return this.span; } }; A.LoudComment.prototype = { get$span(_) { return this.text.span; }, accept$1$1(visitor) { return visitor.visitLoudComment$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return this.text.toString$0(0); }, $isAstNode: 1, $isStatement: 1 }; A.MediaRule.prototype = { accept$1$1(visitor) { return visitor.visitMediaRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.children; return "@media " + this.query.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.MixinRule.prototype = { get$hasContent() { var result, _this = this, value = _this.__MixinRule_hasContent_FI; if (value === $) { result = J.$eq$(B.C__HasContentVisitor.visitChildren$1(_this.children), true); _this.__MixinRule_hasContent_FI !== $ && A.throwUnnamedLateFieldADI(); _this.__MixinRule_hasContent_FI = result; value = result; } return value; }, accept$1$1(visitor) { return visitor.visitMixinRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = "@mixin " + this.name, t2 = this.$arguments; if (!(t2.$arguments.length === 0 && t2.restArgument == null)) t1 += "(" + t2.toString$0(0) + ")"; t2 = this.children; t2 = t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}"); return t2.charCodeAt(0) == 0 ? t2 : t2; } }; A._HasContentVisitor.prototype = { visitContentRule$1(_) { return true; } }; A.__HasContentVisitor_Object_StatementSearchVisitor.prototype = {}; A.ParentStatement.prototype = {$isAstNode: 1, $isStatement: 1}; A.ParentStatement_closure.prototype = { call$1(child) { var t1, imports; $label0$0: { if (child instanceof A.VariableDeclaration || child instanceof A.FunctionRule || child instanceof A.MixinRule) { t1 = true; break $label0$0; } if (child instanceof A.ImportRule) { imports = child.imports; t1 = true; } else { imports = null; t1 = false; } if (t1) { t1 = (imports && B.JSArray_methods).any$1(imports, new A.ParentStatement__closure()); break $label0$0; } t1 = false; break $label0$0; } return t1; }, $signature: 150 }; A.ParentStatement__closure.prototype = { call$1($import) { return $import instanceof A.DynamicImport; }, $signature: 152 }; A.ReturnRule.prototype = { accept$1$1(visitor) { return visitor.visitReturnRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "@return " + this.expression.toString$0(0) + ";"; }, $isAstNode: 1, $isStatement: 1, get$span(receiver) { return this.span; } }; A.SilentComment.prototype = { accept$1$1(visitor) { return visitor.visitSilentComment$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return this.text; }, $isAstNode: 1, $isStatement: 1, get$span(receiver) { return this.span; } }; A.StyleRule.prototype = { accept$1$1(visitor) { return visitor.visitStyleRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.children; return this.selector.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.Stylesheet.prototype = { Stylesheet$internal$3$plainCss(children, span, plainCss) { var t1, t2, t3, t4, _i, child; for (t1 = this.children, t2 = t1.length, t3 = this._forwards, t4 = this._uses, _i = 0; _i < t2; ++_i) { child = t1[_i]; if (child instanceof A.UseRule) { t4.push(child); continue; } if (child instanceof A.ForwardRule) { t3.push(child); continue; } if (child instanceof A.SilentComment || child instanceof A.LoudComment || child instanceof A.VariableDeclaration) continue; break; } }, accept$1$1(visitor) { return visitor.visitStylesheet$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.children; return (t1 && B.JSArray_methods).join$1(t1, " "); }, get$span(receiver) { return this.span; } }; A.SupportsRule.prototype = { accept$1$1(visitor) { return visitor.visitSupportsRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.children; return "@supports " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.UseRule.prototype = { UseRule$4$configuration(url, namespace, span, configuration) { var t1, t2, _i, variable; for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) { variable = t1[_i]; if (variable.isGuarded) throw A.wrapException(A.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule.")); } }, accept$1$1(visitor) { return visitor.visitUseRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.url, t2 = "@use " + A.StringExpression_quoteText(t1.toString$0(0)), basename = t1.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(t1.get$pathSegments()), dot = B.JSString_methods.indexOf$1(basename, "."); t1 = this.namespace; if (t1 !== B.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot)) t1 = t2 + (" as " + (t1 == null ? "*" : t1)); else t1 = t2; t2 = this.configuration; t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";"; return t1.charCodeAt(0) == 0 ? t1 : t1; }, $isAstNode: 1, $isStatement: 1, get$span(receiver) { return this.span; } }; A.VariableDeclaration.prototype = { accept$1$1(visitor) { return visitor.visitVariableDeclaration$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.namespace; t1 = t1 != null ? "" + (t1 + ".") : ""; t1 += "$" + this.name + ": " + this.expression.toString$0(0) + ";"; return t1.charCodeAt(0) == 0 ? t1 : t1; }, $isAstNode: 1, $isStatement: 1, get$span(receiver) { return this.span; } }; A.WarnRule.prototype = { accept$1$1(visitor) { return visitor.visitWarnRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "@warn " + this.expression.toString$0(0) + ";"; }, $isAstNode: 1, $isStatement: 1, get$span(receiver) { return this.span; } }; A.WhileRule.prototype = { accept$1$1(visitor) { return visitor.visitWhileRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.children; return "@while " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.SupportsAnything.prototype = { toString$0(_) { return "(" + this.contents.toString$0(0) + ")"; }, $isAstNode: 1, get$span(receiver) { return this.span; } }; A.SupportsDeclaration.prototype = { get$isCustomProperty() { var text, t1, _0_0 = this.name; $label0$0: { if (_0_0 instanceof A.StringExpression) if (!_0_0.hasQuotes) { text = _0_0.text; t1 = true; } else { text = null; t1 = false; } else { text = null; t1 = false; } if (t1) { t1 = B.JSString_methods.startsWith$1(text.get$initialPlain(), "--"); break $label0$0; } t1 = false; break $label0$0; } return t1; }, toString$0(_) { return "(" + this.name.toString$0(0) + ": " + this.value.toString$0(0) + ")"; }, $isAstNode: 1, get$span(receiver) { return this.span; } }; A.SupportsFunction.prototype = { toString$0(_) { return this.name.toString$0(0) + "(" + this.$arguments.toString$0(0) + ")"; }, $isAstNode: 1, get$span(receiver) { return this.span; } }; A.SupportsInterpolation.prototype = { toString$0(_) { return "#{" + this.expression.toString$0(0) + "}"; }, $isAstNode: 1, get$span(receiver) { return this.span; } }; A.SupportsNegation.prototype = { toString$0(_) { var t1 = this.condition; if (t1 instanceof A.SupportsNegation || t1 instanceof A.SupportsOperation) return "not (" + t1.toString$0(0) + ")"; else return "not " + t1.toString$0(0); }, $isAstNode: 1, get$span(receiver) { return this.span; } }; A.SupportsOperation.prototype = { toString$0(_) { var _this = this; return _this._operation$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation$_parenthesize$1(_this.right); }, _operation$_parenthesize$1(condition) { var t1; if (!(condition instanceof A.SupportsNegation)) t1 = condition instanceof A.SupportsOperation && condition.operator === this.operator; else t1 = true; return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0); }, $isAstNode: 1, get$span(receiver) { return this.span; } }; A.Selector.prototype = { assertNotBogus$1$name($name) { var t1; if (!this.accept$1(B._IsBogusVisitor_true)) return; t1 = this.toString$0(0); A.EvaluationContext_current().warn$2(0, "$" + $name + ": " + (t1 + string$.x20is_nov), B.Deprecation_vrR); }, toString$0(_) { var visitor = A._SerializeVisitor$(null, true, null, true, false, null, true); this.accept$1(visitor); return visitor._serialize$_buffer.toString$0(0); }, $isAstNode: 1, get$span(receiver) { return this.span; } }; A._IsInvisibleVisitor0.prototype = { visitSelectorList$1(list) { return B.JSArray_methods.every$1(list.components, this.get$visitComplexSelector()); }, visitComplexSelector$1(complex) { var t1; if (!this.super$AnySelectorVisitor$visitComplexSelector(complex)) t1 = this.includeBogus && complex.accept$1(B._IsBogusVisitor_false); else t1 = true; return t1; }, visitPlaceholderSelector$1(placeholder) { return true; }, visitPseudoSelector$1(pseudo) { var selector, t1, _0_0 = pseudo.selector; if (_0_0 != null) { selector = _0_0; t1 = true; } else { selector = null; t1 = false; } if (t1) { if (pseudo.name === "not") t1 = this.includeBogus && selector.accept$1(B._IsBogusVisitor_true); else t1 = this.visitSelectorList$1(selector); return t1; } else return false; } }; A._IsBogusVisitor.prototype = { visitComplexSelector$1(complex) { var t2, t1 = complex.components; if (t1.length === 0) return complex.leadingCombinators.length !== 0; else { t2 = this.includeLeadingCombinator ? 0 : 1; 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)); } }, visitPseudoSelector$1(pseudo) { var selector = pseudo.selector; if (selector == null) return false; return pseudo.name === "has" ? selector.accept$1(B._IsBogusVisitor_false) : selector.accept$1(B._IsBogusVisitor_true); } }; A._IsBogusVisitor_visitComplexSelector_closure.prototype = { call$1(component) { return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector); }, $signature: 53 }; A._IsUselessVisitor.prototype = { visitComplexSelector$1(complex) { return complex.leadingCombinators.length > 1 || B.JSArray_methods.any$1(complex.components, new A._IsUselessVisitor_visitComplexSelector_closure(this)); }, visitPseudoSelector$1(pseudo) { return pseudo.accept$1(B._IsBogusVisitor_true); } }; A._IsUselessVisitor_visitComplexSelector_closure.prototype = { call$1(component) { return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector); }, $signature: 53 }; A.__IsBogusVisitor_Object_AnySelectorVisitor.prototype = {}; A.__IsInvisibleVisitor_Object_AnySelectorVisitor.prototype = {}; A.__IsUselessVisitor_Object_AnySelectorVisitor.prototype = {}; A.AttributeSelector.prototype = { accept$1$1(visitor) { return visitor.visitAttributeSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, $eq(_, other) { var _this = this; if (other == null) return false; return other instanceof A.AttributeSelector && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier; }, get$hashCode(_) { var _this = this, t1 = _this.name; 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; } }; A.AttributeOperator.prototype = { _enumToString$0() { return "AttributeOperator." + this._name; }, toString$0(_) { return this._attribute$_text; } }; A.ClassSelector.prototype = { $eq(_, other) { if (other == null) return false; return other instanceof A.ClassSelector && other.name === this.name; }, accept$1$1(visitor) { return visitor.visitClassSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, addSuffix$1(suffix) { return new A.ClassSelector(this.name + suffix, this.span); }, get$hashCode(_) { return B.JSString_methods.get$hashCode(this.name); } }; A.Combinator.prototype = { _enumToString$0() { return "Combinator." + this._name; }, toString$0(_) { return this._combinator$_text; } }; A.ComplexSelector.prototype = { get$specificity() { var result, _this = this, value = _this.__ComplexSelector_specificity_FI; if (value === $) { result = B.JSArray_methods.fold$2(_this.components, 0, new A.ComplexSelector_specificity_closure()); _this.__ComplexSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI(); _this.__ComplexSelector_specificity_FI = result; value = result; } return value; }, get$singleCompound() { var _0_0, _0_4, selector, t1; if (this.leadingCombinators.length !== 0) return null; _0_0 = this.components; _0_4 = A._InitializedCell$(new A.ComplexSelector_singleCompound_closure(_0_0)); $label0$0: { if (_0_0.length === 1) { selector = _0_4._readFinal$0().selector; t1 = _0_4._readFinal$0().combinators.length <= 0; } else { selector = null; t1 = false; } if (t1) { t1 = selector; break $label0$0; } t1 = null; break $label0$0; } return t1; }, accept$1$1(visitor) { return visitor.visitComplexSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, isSuperselector$1(other) { return this.leadingCombinators.length === 0 && other.leadingCombinators.length === 0 && A.complexIsSuperselector(this.components, other.components); }, withAdditionalCombinators$1(combinators) { var _0_0, _0_1, initial, last, t1, t2, _this = this, _null = null; if (combinators.length === 0) return _this; _0_0 = _this.components; _0_1 = A._InitializedCell$(new A.ComplexSelector_withAdditionalCombinators_closure(_0_0)); $label0$0: { if (_0_1._readFinal$0() >= 1) { initial = B.JSArray_methods.sublist$2(_0_0, 0, _0_1._readFinal$0() - 1); last = _0_0[_0_1._readFinal$0() - 1]; last = last; t1 = true; } else { last = _null; initial = last; t1 = false; } if (t1) { t1 = A.List_List$of(initial, true, type$.ComplexSelectorComponent); t1.push(last.withAdditionalCombinators$1(combinators)); t2 = _this.lineBreak || false; t2 = A.ComplexSelector$(_this.leadingCombinators, t1, _this.span, t2); t1 = t2; break $label0$0; } if (_0_1._readFinal$0() <= 0) { t1 = A.List_List$of(_this.leadingCombinators, true, type$.CssValue_Combinator); B.JSArray_methods.addAll$1(t1, combinators); t2 = _this.lineBreak || false; t2 = A.ComplexSelector$(t1, B.List_empty0, _this.span, t2); t1 = t2; break $label0$0; } t1 = _null; } return t1; }, concatenate$3$forceLineBreak(child, span, forceLineBreak) { var t2, _0_1, initial, last, t3, t4, _this = this, t1 = child.leadingCombinators, _0_0 = _this.components; if (t1.length === 0) { t1 = A.List_List$of(_0_0, true, type$.ComplexSelectorComponent); B.JSArray_methods.addAll$1(t1, child.components); t2 = _this.lineBreak || child.lineBreak || forceLineBreak; return A.ComplexSelector$(_this.leadingCombinators, t1, span, t2); } else { _0_1 = A._InitializedCell$(new A.ComplexSelector_concatenate_closure(_0_0)); if (_0_1._readFinal$0() >= 1) { initial = B.JSArray_methods.sublist$2(_0_0, 0, _0_1._readFinal$0() - 1); last = _0_0[_0_1._readFinal$0() - 1]; last = last; t2 = true; } else { initial = null; last = null; t2 = false; } t3 = _this.leadingCombinators; t4 = child.components; if (t2) { t2 = A.List_List$of(initial, true, type$.ComplexSelectorComponent); t2.push(last.withAdditionalCombinators$1(t1)); B.JSArray_methods.addAll$1(t2, t4); return A.ComplexSelector$(t3, t2, span, _this.lineBreak || child.lineBreak || forceLineBreak); } else { t2 = A.List_List$of(t3, true, type$.CssValue_Combinator); B.JSArray_methods.addAll$1(t2, t1); return A.ComplexSelector$(t2, t4, span, _this.lineBreak || child.lineBreak || forceLineBreak); } } }, concatenate$2(child, span) { return this.concatenate$3$forceLineBreak(child, span, false); }, get$hashCode(_) { return B.C_ListEquality0.hash$1(this.leadingCombinators) ^ B.C_ListEquality0.hash$1(this.components); }, $eq(_, other) { if (other == null) return false; 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); } }; A.ComplexSelector_specificity_closure.prototype = { call$2(sum, component) { return sum + component.selector.get$specificity(); }, $signature: 411 }; A.ComplexSelector_singleCompound_closure.prototype = { call$0() { return this._0_0[0]; }, $signature: 416 }; A.ComplexSelector_withAdditionalCombinators_closure.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A.ComplexSelector_concatenate_closure.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A.ComplexSelectorComponent.prototype = { withAdditionalCombinators$1(combinators) { var t1, t2, _this = this; if (combinators.length === 0) t1 = _this; else { t1 = type$.CssValue_Combinator; t2 = A.List_List$of(_this.combinators, true, t1); B.JSArray_methods.addAll$1(t2, combinators); t1 = new A.ComplexSelectorComponent(_this.selector, A.List_List$unmodifiable(t2, t1), _this.span); } return t1; }, get$hashCode(_) { return B.C_ListEquality0.hash$1(this.selector.components) ^ B.C_ListEquality0.hash$1(this.combinators); }, $eq(_, other) { var t1; if (other == null) return false; if (other instanceof A.ComplexSelectorComponent) { t1 = B.C_ListEquality.equals$2(0, this.selector.components, other.selector.components); t1 = t1 && B.C_ListEquality.equals$2(0, this.combinators, other.combinators); } else t1 = false; return t1; }, toString$0(_) { var t1 = this.combinators; 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, ""); } }; A.ComplexSelectorComponent_toString_closure.prototype = { call$1(combinator) { return " " + combinator.toString$0(0); }, $signature: 429 }; A.CompoundSelector.prototype = { get$specificity() { var result, _this = this, value = _this.__CompoundSelector_specificity_FI; if (value === $) { result = B.JSArray_methods.fold$2(_this.components, 0, new A.CompoundSelector_specificity_closure()); _this.__CompoundSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI(); _this.__CompoundSelector_specificity_FI = result; value = result; } return value; }, accept$1$1(visitor) { return visitor.visitCompoundSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, get$hashCode(_) { return B.C_ListEquality0.hash$1(this.components); }, $eq(_, other) { if (other == null) return false; return other instanceof A.CompoundSelector && B.C_ListEquality.equals$2(0, this.components, other.components); } }; A.CompoundSelector_specificity_closure.prototype = { call$2(sum, component) { return sum + component.get$specificity(); }, $signature: 433 }; A.IDSelector.prototype = { get$specificity() { return A._asInt(Math.pow(A.SimpleSelector.prototype.get$specificity.call(this), 2)); }, accept$1$1(visitor) { return visitor.visitIDSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, addSuffix$1(suffix) { return new A.IDSelector(this.name + suffix, this.span); }, unify$1(compound) { if (B.JSArray_methods.any$1(compound, new A.IDSelector_unify_closure(this))) return null; return this.super$SimpleSelector$unify(compound); }, $eq(_, other) { if (other == null) return false; return other instanceof A.IDSelector && other.name === this.name; }, get$hashCode(_) { return B.JSString_methods.get$hashCode(this.name); } }; A.IDSelector_unify_closure.prototype = { call$1(simple) { var t1; if (simple instanceof A.IDSelector) t1 = this.$this.name !== simple.name; else t1 = false; return t1; }, $signature: 16 }; A.SelectorList.prototype = { get$asSassList() { var t1 = this.components; return A.SassList$(new A.MappedListIterable(t1, new A.SelectorList_asSassList_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), B.ListSeparator_rXA, false); }, accept$1$1(visitor) { return visitor.visitSelectorList$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, unify$1(other) { var t3, t4, t5, t6, _i, complex1, _i0, t7, t1 = type$.JSArray_ComplexSelector, t2 = A._setArrayType([], t1); for (t3 = this.components, t4 = t3.length, t5 = other.components, t6 = t5.length, _i = 0; _i < t4; ++_i) { complex1 = t3[_i]; for (_i0 = 0; _i0 < t6; ++_i0) { t7 = A.unifyComplex(A._setArrayType([complex1, t5[_i0]], t1), complex1.span); if (t7 != null) B.JSArray_methods.addAll$1(t2, t7); } } return t2.length === 0 ? null : A.SelectorList$(t2, this.span); }, resolveParentSelectors$2$implicitParent($parent, implicitParent) { var parentSelector, t1, _this = this; if ($parent == null) { parentSelector = B.C__ParentSelectorVisitor.visitSelectorList$1(_this); if (parentSelector == null) return _this; throw A.wrapException(A.SassException$(string$.Top_le, parentSelector.span, null)); } t1 = _this.components; return A.SelectorList$(A.flattenVertically(new A.MappedListIterable(t1, new A.SelectorList_resolveParentSelectors_closure(_this, implicitParent, $parent), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable>")), type$.ComplexSelector), _this.span); }, resolveParentSelectors$1($parent) { return this.resolveParentSelectors$2$implicitParent($parent, true); }, _resolveParentSelectorsCompound$2(component, $parent) { var resolvedSimples, parentSelector, error, stackTrace, t2, resolvedSimples0, exception, t1 = component.selector, simples = t1.components, containsSelectorPseudo = J.any$1$ax(simples, new A.SelectorList__resolveParentSelectorsCompound_closure()); if (!containsSelectorPseudo && !(J.get$first$ax(simples) instanceof A.ParentSelector)) return null; if (containsSelectorPseudo) { t2 = simples; resolvedSimples0 = new A.MappedListIterable(t2, new A.SelectorList__resolveParentSelectorsCompound_closure0($parent), A.instanceType(t2)._eval$1("MappedListIterable<1,SimpleSelector>")); } else resolvedSimples0 = simples; resolvedSimples = resolvedSimples0; parentSelector = J.get$first$ax(simples); try { if (!(parentSelector instanceof A.ParentSelector)) { t2 = component.span; t2 = A._setArrayType([A.ComplexSelector$(B.List_empty1, 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); return t2; } else if (J.get$length$asx(simples) === 1 && parentSelector.suffix == null) { t1 = $parent.withAdditionalCombinators$1(component.combinators); return t1.components; } } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException) { error = t1; stackTrace = A.getTraceFromException(exception); A.throwWithTrace(error.withAdditionalSpan$2(parentSelector.span, "parent selector"), error, stackTrace); } else throw exception; } t1 = $parent.components; return new A.MappedListIterable(t1, new A.SelectorList__resolveParentSelectorsCompound_closure1(parentSelector, resolvedSimples, component), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>")); }, isSuperselector$1(other) { return A.listIsSuperselector(this.components, other.components); }, withAdditionalCombinators$1(combinators) { var t1; if (combinators.length === 0) t1 = this; else { t1 = this.components; t1 = A.SelectorList$(new A.MappedListIterable(t1, new A.SelectorList_withAdditionalCombinators_closure(combinators), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>")), this.span); } return t1; }, get$hashCode(_) { return B.C_ListEquality0.hash$1(this.components); }, $eq(_, other) { if (other == null) return false; return other instanceof A.SelectorList && B.C_ListEquality.equals$2(0, this.components, other.components); } }; A.SelectorList_asSassList_closure.prototype = { call$1(complex) { var t3, t4, _i, component, t5, visitor, t6, t7, _i0, t1 = type$.JSArray_Value, t2 = A._setArrayType([], t1); for (t3 = complex.leadingCombinators, t4 = t3.length, _i = 0; _i < t4; ++_i) t2.push(new A.SassString(J.toString$0$(t3[_i].value), false)); for (t3 = complex.components, t4 = t3.length, _i = 0; _i < t4; ++_i) { component = t3[_i]; t5 = component.selector; visitor = A._SerializeVisitor$(null, true, null, true, false, null, true); t5.accept$1(visitor); t5 = A._setArrayType([new A.SassString(visitor._serialize$_buffer.toString$0(0), false)], t1); for (t6 = component.combinators, t7 = t6.length, _i0 = 0; _i0 < t7; ++_i0) t5.push(new A.SassString(J.toString$0$(t6[_i0].value), false)); B.JSArray_methods.addAll$1(t2, t5); } return A.SassList$(t2, B.ListSeparator_EVt, false); }, $signature: 437 }; A.SelectorList_resolveParentSelectors_closure.prototype = { call$1(complex) { 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; if (complex.accept$1(B.C__ParentSelectorVisitor) == null) { if (!_this.implicitParent) return A._setArrayType([complex], type$.JSArray_ComplexSelector); t1 = _this.parent.components; return new A.MappedListIterable(t1, new A.SelectorList_resolveParentSelectors__closure(complex), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>")); } t1 = type$.JSArray_ComplexSelector; newComplexes = A._setArrayType([], t1); 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) { component = t2[_i]; resolved = t4._resolveParentSelectorsCompound$2(component, t5); if (resolved == null) if (newComplexes.length === 0) newComplexes.push(A.ComplexSelector$(t7, A._setArrayType([component], t11), t9, false)); else for (i = 0; i < newComplexes.length; ++i) { t12 = newComplexes[i]; t13 = t12.leadingCombinators; t14 = A.List_List$of(t12.components, true, t10); t14.push(component); newComplexes[i] = A.ComplexSelector$(t13, t14, t9, t12.lineBreak || false); } else if (newComplexes.length === 0) B.JSArray_methods.addAll$1(newComplexes, t8 ? resolved : J.map$1$1$ax(resolved, new A.SelectorList_resolveParentSelectors__closure0(complex), t6)); else { t12 = A._setArrayType([], t1); for (t13 = newComplexes.length, t14 = J.getInterceptor$ax(resolved), _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t13 || (0, A.throwConcurrentModificationError)(newComplexes), ++_i0) { newComplex = newComplexes[_i0]; for (t15 = t14.get$iterator(resolved); t15.moveNext$0();) t12.push(newComplex.concatenate$2(t15.get$current(t15), newComplex.span)); } newComplexes = t12; } } return newComplexes; }, $signature: 454 }; A.SelectorList_resolveParentSelectors__closure.prototype = { call$1(parentComplex) { var t1 = this.complex; return parentComplex.concatenate$2(t1, t1.span); }, $signature: 59 }; A.SelectorList_resolveParentSelectors__closure0.prototype = { call$1(resolvedComplex) { var t1 = resolvedComplex.leadingCombinators, t2 = this.complex, t3 = t2.leadingCombinators; if (t1.length === 0) t1 = t3; else { t3 = A.List_List$of(t3, true, type$.CssValue_Combinator); B.JSArray_methods.addAll$1(t3, t1); t1 = t3; } return A.ComplexSelector$(t1, resolvedComplex.components, t2.span, resolvedComplex.lineBreak); }, $signature: 59 }; A.SelectorList__resolveParentSelectorsCompound_closure.prototype = { call$1(simple) { var selector; if (!(simple instanceof A.PseudoSelector)) return false; selector = simple.selector; return selector != null && selector.accept$1(B.C__ParentSelectorVisitor) != null; }, $signature: 16 }; A.SelectorList__resolveParentSelectorsCompound_closure0.prototype = { call$1(simple) { var selector, t1, _0_2 = A._InitializedCell$(new A.SelectorList__resolveParentSelectorsCompound__closure(simple)); $label0$0: { if (simple instanceof A.PseudoSelector) { if (_0_2._readFinal$0() != null) { selector = _0_2._readFinal$0(); t1 = true; } else { selector = null; t1 = false; } t1 = t1 && selector.accept$1(B.C__ParentSelectorVisitor) != null; } else { selector = null; t1 = false; } if (t1) { t1 = simple.withSelector$1(selector.resolveParentSelectors$2$implicitParent(this.parent, false)); break $label0$0; } t1 = simple; break $label0$0; } return t1; }, $signature: 457 }; A.SelectorList__resolveParentSelectorsCompound__closure.prototype = { call$0() { return type$.PseudoSelector._as(this._0_0).selector; }, $signature: 75 }; A.SelectorList__resolveParentSelectorsCompound_closure1.prototype = { call$1(complex) { var lastComponent, suffix, lastSimples, t1, t2, last, t3, error, stackTrace, t4, t5, t6, t7, exception, _this = this; try { t4 = complex.components; lastComponent = B.JSArray_methods.get$last(t4); if (lastComponent.combinators.length !== 0) { 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); throw A.wrapException(t1); } suffix = _this.parentSelector.suffix; lastSimples = lastComponent.selector.components; t5 = type$.SimpleSelector; t6 = _this.resolvedSimples; t7 = J.getInterceptor$ax(t6); if (suffix == null) { t1 = A.List_List$of(lastSimples, true, t5); J.addAll$1$ax(t1, t7.skip$1(t6, 1)); t1 = t1; } else { t2 = A.List_List$of(A.IterableExtension_get_exceptLast(lastSimples), true, t5); J.add$1$ax(t2, J.get$last$ax(lastSimples).addSuffix$1(suffix)); J.addAll$1$ax(t2, t7.skip$1(t6, 1)); t1 = t2; } t2 = _this.component; last = A.CompoundSelector$(t1, t2.selector.span); t3 = A.List_List$of(A.IterableExtension_get_exceptLast(t4), true, type$.ComplexSelectorComponent); t4 = t2.span; J.add$1$ax(t3, new A.ComplexSelectorComponent(last, A.List_List$unmodifiable(t2.combinators, type$.CssValue_Combinator), t4)); t4 = A.ComplexSelector$(complex.leadingCombinators, t3, t4, complex.lineBreak); return t4; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException) { error = t1; stackTrace = A.getTraceFromException(exception); A.throwWithTrace(error.withAdditionalSpan$2(_this.parentSelector.span, "parent selector"), error, stackTrace); } else throw exception; } }, $signature: 59 }; A.SelectorList_withAdditionalCombinators_closure.prototype = { call$1(complex) { return complex.withAdditionalCombinators$1(this.combinators); }, $signature: 59 }; A._ParentSelectorVisitor.prototype = { visitParentSelector$1(selector) { return selector; } }; A.__ParentSelectorVisitor_Object_SelectorSearchVisitor.prototype = {}; A.ParentSelector.prototype = { accept$1$1(visitor) { return visitor.visitParentSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, unify$1(compound) { return A.throwExpression(A.UnsupportedError$("& doesn't support unification.")); } }; A.PlaceholderSelector.prototype = { accept$1$1(visitor) { return visitor.visitPlaceholderSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, addSuffix$1(suffix) { return new A.PlaceholderSelector(this.name + suffix, this.span); }, $eq(_, other) { if (other == null) return false; return other instanceof A.PlaceholderSelector && other.name === this.name; }, get$hashCode(_) { return B.JSString_methods.get$hashCode(this.name); } }; A.PseudoSelector.prototype = { get$isHostContext() { return this.isClass && this.name === "host-context" && this.selector != null; }, get$specificity() { var result, _this = this, value = _this.__PseudoSelector_specificity_FI; if (value === $) { result = new A.PseudoSelector_specificity_closure(_this).call$0(); _this.__PseudoSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI(); _this.__PseudoSelector_specificity_FI = result; value = result; } return value; }, withSelector$1(selector) { var _this = this; return A.PseudoSelector$(_this.name, _this.span, _this.argument, !_this.isClass, selector); }, addSuffix$1(suffix) { var _this = this; if (_this.argument != null || _this.selector != null) _this.super$SimpleSelector$addSuffix(suffix); return A.PseudoSelector$(_this.name + suffix, _this.span, null, !_this.isClass, null); }, unify$1(compound) { var other, result, t2, addedThis, _i, simple, _this = this, t1 = _this.name; if (t1 === "host" || t1 === "host-context") { if (!B.JSArray_methods.every$1(compound, new A.PseudoSelector_unify_closure())) return null; } else { if (compound.length === 1) { other = compound[0]; if (!(other instanceof A.UniversalSelector)) if (other instanceof A.PseudoSelector) t1 = other.isClass && other.name === "host" || other.get$isHostContext(); else t1 = false; else t1 = true; } else { other = null; t1 = false; } if (t1) return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector)); } if (B.JSArray_methods.contains$1(compound, _this)) return compound; result = A._setArrayType([], type$.JSArray_SimpleSelector); for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) { simple = compound[_i]; if (simple instanceof A.PseudoSelector && !simple.isClass) { if (t2) return null; result.push(_this); addedThis = true; } result.push(simple); } if (!addedThis) result.push(_this); return result; }, isSuperselector$1(other) { var selector, t1, t2, _this = this; if (_this.super$SimpleSelector$isSuperselector(other)) return true; selector = _this.selector; if (selector == null) return _this.$eq(0, other); if (other instanceof A.PseudoSelector && !_this.isClass && !other.isClass && _this.normalizedName === "slotted" && other.name === _this.name) { t1 = A.NullableExtension_andThen(other.selector, selector.get$isSuperselector()); return t1 == null ? false : t1; } t1 = type$.JSArray_SimpleSelector; t2 = _this.span; return A.compoundIsSuperselector(A.CompoundSelector$(A._setArrayType([_this], t1), t2), A.CompoundSelector$(A._setArrayType([other], t1), t2), null); }, accept$1$1(visitor) { return visitor.visitPseudoSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, $eq(_, other) { var _this = this; if (other == null) return false; return other instanceof A.PseudoSelector && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector); }, get$hashCode(_) { var _this = this, t1 = B.JSString_methods.get$hashCode(_this.name), t2 = !_this.isClass ? 519018 : 218159; return t1 ^ t2 ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector); } }; A.PseudoSelector_specificity_closure.prototype = { call$0() { var selector, t2, t1 = this.$this; if (!t1.isClass) return 1; selector = t1.selector; if (selector == null) return A.SimpleSelector.prototype.get$specificity.call(t1); switch (t1.normalizedName) { case "where": return 0; case "is": case "not": case "has": case "matches": t1 = selector.components; return A.IterableIntegerExtension_get_max(new A.MappedListIterable(t1, new A.PseudoSelector_specificity__closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int>"))); case "nth-child": case "nth-last-child": t1 = A.SimpleSelector.prototype.get$specificity.call(t1); t2 = selector.components; return t1 + A.IterableIntegerExtension_get_max(new A.MappedListIterable(t2, new A.PseudoSelector_specificity__closure0(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,int>"))); default: return A.SimpleSelector.prototype.get$specificity.call(t1); } }, $signature: 3 }; A.PseudoSelector_specificity__closure.prototype = { call$1(component) { return component.get$specificity(); }, $signature: 217 }; A.PseudoSelector_specificity__closure0.prototype = { call$1(component) { return component.get$specificity(); }, $signature: 217 }; A.PseudoSelector_unify_closure.prototype = { call$1(simple) { var t1; if (simple instanceof A.PseudoSelector) t1 = simple.isClass && simple.name === "host" || simple.selector != null; else t1 = false; return t1; }, $signature: 16 }; A.QualifiedName.prototype = { $eq(_, other) { if (other == null) return false; return other instanceof A.QualifiedName && other.name === this.name && other.namespace == this.namespace; }, get$hashCode(_) { return B.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace); }, toString$0(_) { var t1 = this.namespace, t2 = this.name; return t1 == null ? t2 : t1 + "|" + t2; } }; A.SimpleSelector.prototype = { get$specificity() { return 1000; }, addSuffix$1(suffix) { 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)); }, unify$1(compound) { var other, t1, result, addedThis, _i, simple, _this = this; if (compound.length === 1) { other = compound[0]; if (!(other instanceof A.UniversalSelector)) if (other instanceof A.PseudoSelector) t1 = other.isClass && other.name === "host" || other.get$isHostContext(); else t1 = false; else t1 = true; } else { other = null; t1 = false; } if (t1) return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector)); if (B.JSArray_methods.contains$1(compound, _this)) return compound; result = A._setArrayType([], type$.JSArray_SimpleSelector); for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) { simple = compound[_i]; if (!addedThis && simple instanceof A.PseudoSelector) { result.push(_this); addedThis = true; } result.push(simple); } if (!addedThis) result.push(_this); return result; }, isSuperselector$1(other) { var list; if (this.$eq(0, other)) return true; if (other instanceof A.PseudoSelector && other.isClass) { list = other.selector; if (list != null && $._subselectorPseudos.contains$1(0, other.normalizedName)) return B.JSArray_methods.every$1(list.components, new A.SimpleSelector_isSuperselector_closure(this)); } return false; } }; A.SimpleSelector_isSuperselector_closure.prototype = { call$1(complex) { var t1 = complex.components; return t1.length !== 0 && B.JSArray_methods.any$1(B.JSArray_methods.get$last(t1).selector.components, new A.SimpleSelector_isSuperselector__closure(this.$this)); }, $signature: 19 }; A.SimpleSelector_isSuperselector__closure.prototype = { call$1(simple) { return this.$this.isSuperselector$1(simple); }, $signature: 16 }; A.TypeSelector.prototype = { get$specificity() { return 1; }, accept$1$1(visitor) { return visitor.visitTypeSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, addSuffix$1(suffix) { var t1 = this.name; return new A.TypeSelector(new A.QualifiedName(t1.name + suffix, t1.namespace), this.span); }, unify$1(compound) { var unified, t1, _0_0 = B.JSArray_methods.get$first(compound); if (_0_0 instanceof A.UniversalSelector || _0_0 instanceof A.TypeSelector) { unified = A.unifyUniversalAndElement(this, B.JSArray_methods.get$first(compound)); if (unified == null) return null; t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector); B.JSArray_methods.addAll$1(t1, A.SubListIterable$(compound, 1, null, A._arrayInstanceType(compound)._precomputed1)); return t1; } else { t1 = A._setArrayType([this], type$.JSArray_SimpleSelector); B.JSArray_methods.addAll$1(t1, compound); return t1; } }, isSuperselector$1(other) { var t1, t2; if (!this.super$SimpleSelector$isSuperselector(other)) if (other instanceof A.TypeSelector) { t1 = this.name; t2 = other.name; if (t1.name === t2.name) { t1 = t1.namespace; t1 = t1 === "*" || t1 == t2.namespace; } else t1 = false; } else t1 = false; else t1 = true; return t1; }, $eq(_, other) { if (other == null) return false; return other instanceof A.TypeSelector && other.name.$eq(0, this.name); }, get$hashCode(_) { var t1 = this.name; return B.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace); } }; A.UniversalSelector.prototype = { get$specificity() { return 0; }, accept$1$1(visitor) { return visitor.visitUniversalSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, unify$1(compound) { var rest, t1, unified, first, _this = this, _null = null, _0_1 = A._InitializedCell$(new A.UniversalSelector_unify_closure(compound)), _0_4 = A._InitializedCell$(new A.UniversalSelector_unify_closure0(compound)); if (_0_1._readFinal$0() >= 1) if (_0_4._readFinal$0() instanceof A.UniversalSelector || _0_4._readFinal$0() instanceof A.TypeSelector) { rest = B.JSArray_methods.sublist$1(compound, 1); t1 = true; } else { rest = _null; t1 = false; } else { rest = _null; t1 = false; } if (t1) { unified = A.unifyUniversalAndElement(_this, B.JSArray_methods.get$first(compound)); if (unified == null) return _null; t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector); B.JSArray_methods.addAll$1(t1, rest); return t1; } if (J.$eq$(_0_1._readFinal$0(), 1)) if (_0_4._readFinal$0() instanceof A.PseudoSelector) { first = _0_4._readFinal$0(); t1 = first.isClass && first.name === "host" || first.get$isHostContext(); } else t1 = false; else t1 = false; if (t1) return _null; if (_0_1._readFinal$0() <= 0) return A._setArrayType([_this], type$.JSArray_SimpleSelector); t1 = _this.namespace; if (t1 == null || t1 === "*") t1 = compound; else { t1 = A._setArrayType([_this], type$.JSArray_SimpleSelector); B.JSArray_methods.addAll$1(t1, compound); } return t1; }, isSuperselector$1(other) { var t1 = this.namespace; if (t1 === "*") return true; if (other instanceof A.TypeSelector) return t1 == other.name.namespace; if (other instanceof A.UniversalSelector) return t1 == other.namespace; return t1 == null || this.super$SimpleSelector$isSuperselector(other); }, $eq(_, other) { if (other == null) return false; return other instanceof A.UniversalSelector && other.namespace == this.namespace; }, get$hashCode(_) { return J.get$hashCode$(this.namespace); } }; A.UniversalSelector_unify_closure.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A.UniversalSelector_unify_closure0.prototype = { call$0() { return this._0_0[0]; }, $signature: 218 }; A._compileStylesheet_closure0.prototype = { call$1(url) { var t1; if (url === "") { t1 = this.stylesheet.span; 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(); } else t1 = this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0); return t1; }, $signature: 7 }; A.AsyncEnvironment.prototype = { closure$0() { var t4, t5, t6, _this = this, t1 = _this._async_environment$_forwardedModules, t2 = _this._async_environment$_nestedForwardedModules, t3 = _this._async_environment$_variables; t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3)); t4 = _this._async_environment$_variableNodes; t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4)); t5 = _this._async_environment$_functions; t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5)); t6 = _this._async_environment$_mixins; t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6)); 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); }, forwardModule$2(module, rule) { var view, t1, t2, _this = this, forwardedModules = _this._async_environment$_forwardedModules; if (forwardedModules == null) forwardedModules = _this._async_environment$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.AstNode); view = A.ForwardedModuleView_ifNecessary(module, rule, type$.AsyncCallable); for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules._modifications); t1.moveNext$0();) { t2 = t1.__js_helper$_current; _this._async_environment$_assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable"); _this._async_environment$_assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function"); _this._async_environment$_assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin"); } _this._async_environment$_allModules.push(module); forwardedModules.$indexSet(0, view, rule); }, _async_environment$_assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) { var larger, smaller, t1, t2, t3, t4, $name, small, large, span; if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) { larger = oldMembers; smaller = newMembers; } else { larger = newMembers; smaller = oldMembers; } for (t1 = type$.String, t2 = A.MapExtensions_get_pairs(smaller, t1, type$.Object), t2 = t2.get$iterator(t2), t3 = type === "variable"; t2.moveNext$0();) { t4 = t2.get$current(t2); $name = t4._0; small = t4._1; small = small; large = larger.$index(0, $name); if (large == null) continue; if (t3 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(large, small)) continue; if (t3) $name = "$" + $name; t2 = this._async_environment$_forwardedModules; if (t2 == null) span = null; else { t2 = t2.$index(0, oldModule); span = t2 == null ? null : J.get$span$z(t2); } t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, t1); if (span != null) t2.$indexSet(0, span, "original @forward"); throw A.wrapException(A.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t2)); } }, importForwards$1(module) { var forwardedModules, t1, t2, t3, t4, node, t5, t6, t7, t8, t9, t10, _i, t11, shadowed, _length, _list, _this = this, forwarded = module._async_environment$_environment._async_environment$_forwardedModules; if (forwarded == null) return; forwardedModules = _this._async_environment$_forwardedModules; if (forwardedModules != null) { t1 = type$.Module_AsyncCallable; t2 = type$.AstNode; t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t1 = A.MapExtensions_get_pairs(forwarded, t1, t2), t1 = t1.get$iterator(t1), t2 = _this._async_environment$_globalModules; t1.moveNext$0();) { t4 = t1.get$current(t1); module = t4._0; node = t4._1; if (!forwardedModules.containsKey$1(module) || !t2.containsKey$1(module)) t3.$indexSet(0, module, node); } forwarded = t3; } else forwardedModules = _this._async_environment$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.AstNode); t1 = type$.String; t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1); for (t3 = A.LinkedHashMapKeyIterator$(forwarded, forwarded._modifications); t3.moveNext$0();) for (t4 = t3.__js_helper$_current.get$variables(), t4 = J.get$iterator$ax(t4.get$keys(t4)); t4.moveNext$0();) t2.add$1(0, t4.get$current(t4)); t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1); for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded._modifications); t4.moveNext$0();) { t5 = t4.__js_helper$_current; for (t5 = t5.get$functions(t5), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();) t3.add$1(0, t5.get$current(t5)); } t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1); for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded._modifications); t4.moveNext$0();) for (t5 = t4.__js_helper$_current.get$mixins(), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();) t1.add$1(0, t5.get$current(t5)); t4 = _this._async_environment$_variables; t5 = t4.length; if (t5 === 1) { 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) { t11 = t8[_i]; module = t11._0; node = t11._1; shadowed = A.ShadowedModuleView_ifNecessary(module, t3, t1, t2, t10); if (shadowed != null) { t5.remove$1(0, module); t11 = shadowed.variables; if (t11.get$isEmpty(t11)) { t11 = shadowed.functions; if (t11.get$isEmpty(t11)) { t11 = shadowed.mixins; if (t11.get$isEmpty(t11)) { t11 = shadowed._shadowed_view$_inner; t11 = t11.get$css(t11); t11 = J.get$isEmpty$asx(t11.get$children(t11)); } else t11 = false; } else t11 = false; } else t11 = false; if (!t11) t5.$indexSet(0, shadowed, node); } } 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) { t8 = t6[_i]; module = t8._0; node = t8._1; shadowed = A.ShadowedModuleView_ifNecessary(module, t3, t1, t2, t10); if (shadowed != null) { forwardedModules.remove$1(0, module); t8 = shadowed.variables; if (t8.get$isEmpty(t8)) { t8 = shadowed.functions; if (t8.get$isEmpty(t8)) { t8 = shadowed.mixins; if (t8.get$isEmpty(t8)) { t8 = shadowed._shadowed_view$_inner; t8 = t8.get$css(t8); t8 = J.get$isEmpty$asx(t8.get$children(t8)); } else t8 = false; } else t8 = false; } else t8 = false; if (!t8) forwardedModules.$indexSet(0, shadowed, node); } } t5.addAll$1(0, forwarded); forwardedModules.addAll$1(0, forwarded); } else { t6 = _this._async_environment$_nestedForwardedModules; if (t6 == null) { _length = t5 - 1; _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_AsyncCallable); for (t5 = type$.JSArray_Module_AsyncCallable, _i = 0; _i < _length; ++_i) _list[_i] = A._setArrayType([], t5); _this._async_environment$_nestedForwardedModules = _list; t5 = _list; } else t5 = t6; B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t5), new A.LinkedHashMapKeyIterable(forwarded, A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>"))); } for (t2 = A._LinkedHashSetIterator$(t2, t2._collection$_modifications), t5 = _this._async_environment$_variableIndices, t6 = _this._async_environment$_variableNodes, t7 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t8 = t2._collection$_current; if (t8 == null) t8 = t7._as(t8); t5.remove$1(0, t8); J.remove$1$z(B.JSArray_methods.get$last(t4), t8); J.remove$1$z(B.JSArray_methods.get$last(t6), t8); } for (t2 = A._LinkedHashSetIterator$(t3, t3._collection$_modifications), t3 = _this._async_environment$_functionIndices, t4 = _this._async_environment$_functions, t5 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t6 = t2._collection$_current; if (t6 == null) t6 = t5._as(t6); t3.remove$1(0, t6); J.remove$1$z(B.JSArray_methods.get$last(t4), t6); } for (t1 = A._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = _this._async_environment$_mixinIndices, t3 = _this._async_environment$_mixins, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t5 = t1._collection$_current; if (t5 == null) t5 = t4._as(t5); t2.remove$1(0, t5); J.remove$1$z(B.JSArray_methods.get$last(t3), t5); } }, getVariable$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) return _this._async_environment$_getModule$1(namespace).get$variables().$index(0, $name); if (_this._async_environment$_lastVariableName === $name) { t1 = _this._async_environment$_lastVariableIndex; t1.toString; t1 = J.$index$asx(_this._async_environment$_variables[t1], $name); return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1; } t1 = _this._async_environment$_variableIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._async_environment$_lastVariableName = $name; _this._async_environment$_lastVariableIndex = index; t1 = J.$index$asx(_this._async_environment$_variables[index], $name); return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1; } else { _1_0 = _this._async_environment$_variableIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._async_environment$_lastVariableName = $name; _this._async_environment$_lastVariableIndex = index; t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._async_environment$_variables[index], $name); return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1; } else return _this._async_environment$_getVariableFromGlobalModule$1($name); } }, getVariable$1($name) { return this.getVariable$2$namespace($name, null); }, _async_environment$_getVariableFromGlobalModule$1($name) { return this._async_environment$_fromOneModule$3($name, "variable", new A.AsyncEnvironment__getVariableFromGlobalModule_closure($name)); }, getVariableNode$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) return _this._async_environment$_getModule$1(namespace).get$variableNodes().$index(0, $name); if (_this._async_environment$_lastVariableName === $name) { t1 = _this._async_environment$_lastVariableIndex; t1.toString; t1 = J.$index$asx(_this._async_environment$_variableNodes[t1], $name); return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1; } t1 = _this._async_environment$_variableIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._async_environment$_lastVariableName = $name; _this._async_environment$_lastVariableIndex = index; t1 = J.$index$asx(_this._async_environment$_variableNodes[index], $name); return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1; } else { _1_0 = _this._async_environment$_variableIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._async_environment$_lastVariableName = $name; _this._async_environment$_lastVariableIndex = index; t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._async_environment$_variableNodes[index], $name); return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1; } else return _this._async_environment$_getVariableNodeFromGlobalModule$1($name); } }, _async_environment$_getVariableNodeFromGlobalModule$1($name) { var t1, t2, _0_0, value; 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();) { t1 = t2._currentIterator; _0_0 = t1.get$current(t1).get$variableNodes().$index(0, $name); if (_0_0 != null) { value = _0_0; t1 = true; } else { value = null; t1 = false; } if (t1) return value; } return null; }, globalVariableExists$2$namespace($name, namespace) { if (namespace != null) return this._async_environment$_getModule$1(namespace).get$variables().containsKey$1($name); if (B.JSArray_methods.get$first(this._async_environment$_variables).containsKey$1($name)) return true; return this._async_environment$_getVariableFromGlobalModule$1($name) != null; }, globalVariableExists$1($name) { return this.globalVariableExists$2$namespace($name, null); }, _async_environment$_variableIndex$1($name) { var t1, i; for (t1 = this._async_environment$_variables, i = t1.length - 1; i >= 0; --i) if (t1[i].containsKey$1($name)) return i; return null; }, setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) { var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this; if (namespace != null) { _this._async_environment$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan); return; } if (global || _this._async_environment$_variables.length === 1) { _this._async_environment$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure(_this, $name)); t1 = _this._async_environment$_variables; if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) { moduleWithName = _this._async_environment$_fromOneModule$3($name, "variable", new A.AsyncEnvironment_setVariable_closure0($name)); if (moduleWithName != null) { moduleWithName.setVariable$3($name, value, nodeWithSpan); return; } } J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value); J.$indexSet$ax(B.JSArray_methods.get$first(_this._async_environment$_variableNodes), $name, nodeWithSpan); return; } nestedForwardedModules = _this._async_environment$_nestedForwardedModules; if (nestedForwardedModules != null && !_this._async_environment$_variableIndices.containsKey$1($name) && _this._async_environment$_variableIndex$1($name) == null) for (t1 = new A.ReversedListIterable(nestedForwardedModules, A.instanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) { t5 = t3.__internal$_current; if (t5 == null) t5 = t4._as(t5); if (t5.get$variables().containsKey$1($name)) { t5.setVariable$3($name, value, nodeWithSpan); return; } } } if (_this._async_environment$_lastVariableName === $name) { t1 = _this._async_environment$_lastVariableIndex; t1.toString; index = t1; } else index = _this._async_environment$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure1(_this, $name)); if (!_this._async_environment$_inSemiGlobalScope && index === 0) { index = _this._async_environment$_variables.length - 1; _this._async_environment$_variableIndices.$indexSet(0, $name, index); } _this._async_environment$_lastVariableName = $name; _this._async_environment$_lastVariableIndex = index; J.$indexSet$ax(_this._async_environment$_variables[index], $name, value); J.$indexSet$ax(_this._async_environment$_variableNodes[index], $name, nodeWithSpan); }, setVariable$4$global($name, value, nodeWithSpan, global) { return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null); }, setLocalVariable$3($name, value, nodeWithSpan) { var index, _this = this, t1 = _this._async_environment$_variables, t2 = t1.length; _this._async_environment$_lastVariableName = $name; index = _this._async_environment$_lastVariableIndex = t2 - 1; _this._async_environment$_variableIndices.$indexSet(0, $name, index); J.$indexSet$ax(t1[index], $name, value); J.$indexSet$ax(_this._async_environment$_variableNodes[index], $name, nodeWithSpan); }, getFunction$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) { t1 = _this._async_environment$_getModule$1(namespace); return t1.get$functions(t1).$index(0, $name); } t1 = _this._async_environment$_functionIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1 = J.$index$asx(_this._async_environment$_functions[index], $name); return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1; } else { _1_0 = _this._async_environment$_functionIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._async_environment$_functions[index], $name); return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1; } else return _this._async_environment$_getFunctionFromGlobalModule$1($name); } }, getFunction$1($name) { return this.getFunction$2$namespace($name, null); }, _async_environment$_getFunctionFromGlobalModule$1($name) { return this._async_environment$_fromOneModule$3($name, "function", new A.AsyncEnvironment__getFunctionFromGlobalModule_closure($name)); }, _async_environment$_functionIndex$1($name) { var t1, i; for (t1 = this._async_environment$_functions, i = t1.length - 1; i >= 0; --i) if (t1[i].containsKey$1($name)) return i; return null; }, getMixin$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) return _this._async_environment$_getModule$1(namespace).get$mixins().$index(0, $name); t1 = _this._async_environment$_mixinIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1 = J.$index$asx(_this._async_environment$_mixins[index], $name); return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1; } else { _1_0 = _this._async_environment$_mixinIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._async_environment$_mixins[index], $name); return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1; } else return _this._async_environment$_getMixinFromGlobalModule$1($name); } }, _async_environment$_getMixinFromGlobalModule$1($name) { return this._async_environment$_fromOneModule$3($name, "mixin", new A.AsyncEnvironment__getMixinFromGlobalModule_closure($name)); }, _async_environment$_mixinIndex$1($name) { var t1, i; for (t1 = this._async_environment$_mixins, i = t1.length - 1; i >= 0; --i) if (t1[i].containsKey$1($name)) return i; return null; }, withContent$2($content, callback) { return this.withContent$body$AsyncEnvironment($content, callback); }, withContent$body$AsyncEnvironment($content, callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, oldContent; var $async$withContent$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldContent = $async$self._async_environment$_content; $async$self._async_environment$_content = $content; $async$goto = 2; return A._asyncAwait(callback.call$0(), $async$withContent$2); case 2: // returning from await. $async$self._async_environment$_content = oldContent; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$withContent$2, $async$completer); }, asMixin$1(callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, oldInMixin; var $async$asMixin$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldInMixin = $async$self._async_environment$_inMixin; $async$self._async_environment$_inMixin = true; $async$goto = 2; return A._asyncAwait(callback.call$0(), $async$asMixin$1); case 2: // returning from await. $async$self._async_environment$_inMixin = oldInMixin; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$asMixin$1, $async$completer); }, scope$1$3$semiGlobal$when(callback, semiGlobal, when, $T) { return this.scope$body$AsyncEnvironment(callback, semiGlobal, when, $T, $T); }, scope$1$1(callback, $T) { return this.scope$1$3$semiGlobal$when(callback, false, true, $T); }, scope$1$2$when(callback, when, $T) { return this.scope$1$3$semiGlobal$when(callback, false, when, $T); }, scope$1$2$semiGlobal(callback, semiGlobal, $T) { return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T); }, scope$body$AsyncEnvironment(callback, semiGlobal, when, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6; var $async$scope$1$3$semiGlobal$when = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start semiGlobal = semiGlobal && $async$self._async_environment$_inSemiGlobalScope; wasInSemiGlobalScope = $async$self._async_environment$_inSemiGlobalScope; $async$self._async_environment$_inSemiGlobalScope = semiGlobal; $async$goto = !when ? 3 : 4; break; case 3: // then $async$handler = 5; $async$goto = 8; return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when); case 8: // returning from await. t1 = $async$result; $async$returnValue = t1; $async$next = [1]; // goto finally $async$goto = 6; break; $async$next.push(7); // goto finally $async$goto = 6; break; case 5: // uncaught $async$next = [2]; case 6: // finally $async$handler = 2; $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope; // goto the next finally handler $async$goto = $async$next.pop(); break; case 7: // after finally case 4: // join t1 = $async$self._async_environment$_variables; t2 = type$.String; B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value)); t3 = $async$self._async_environment$_variableNodes; B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode)); t4 = $async$self._async_environment$_functions; t5 = type$.AsyncCallable; B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5)); t6 = $async$self._async_environment$_mixins; B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5)); t5 = $async$self._async_environment$_nestedForwardedModules; if (t5 != null) t5.push(A._setArrayType([], type$.JSArray_Module_AsyncCallable)); $async$handler = 9; $async$goto = 12; return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when); case 12: // returning from await. t2 = $async$result; $async$returnValue = t2; $async$next = [1]; // goto finally $async$goto = 10; break; $async$next.push(11); // goto finally $async$goto = 10; break; case 9: // uncaught $async$next = [2]; case 10: // finally $async$handler = 2; $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope; $async$self._async_environment$_lastVariableIndex = $async$self._async_environment$_lastVariableName = null; 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();) { $name = t1.get$current(t1); t2.remove$1(0, $name); } B.JSArray_methods.removeLast$0(t3); 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();) { name0 = t1.get$current(t1); t2.remove$1(0, name0); } 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();) { name1 = t1.get$current(t1); t2.remove$1(0, name1); } t1 = $async$self._async_environment$_nestedForwardedModules; if (t1 != null) t1.pop(); // goto the next finally handler $async$goto = $async$next.pop(); break; case 11: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer); }, toImplicitConfiguration$0() { var t2, t3, t4, i, values, nodes, t5, t6, $name, value, t1 = type$.String, configuration = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue); for (t2 = this._async_environment$_variables, t3 = type$.Value, t4 = this._async_environment$_variableNodes, i = 0; i < t2.length; ++i) { values = t2[i]; nodes = t4[i]; for (t5 = A.MapExtensions_get_pairs(values, t1, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) { t6 = t5.get$current(t5); $name = t6._0; value = t6._1; t6 = nodes.$index(0, $name); t6.toString; configuration.$indexSet(0, $name, new A.ConfiguredValue(value, null, t6)); } } return new A.Configuration(configuration, null); }, toModule$3(css, preModuleComments, extensionStore) { return A._EnvironmentModule__EnvironmentModule0(this, css, preModuleComments, extensionStore, A.NullableExtension_andThen(this._async_environment$_forwardedModules, new A.AsyncEnvironment_toModule_closure())); }, toDummyModule$0() { return A._EnvironmentModule__EnvironmentModule0(this, new A.CssStylesheet(new A.UnmodifiableListView(B.List_empty3, type$.UnmodifiableListView_CssNode), A.SourceFile$decoded(B.List_empty4, "").span$1(0, 0)), B.Map_empty7, B.C_EmptyExtensionStore, A.NullableExtension_andThen(this._async_environment$_forwardedModules, new A.AsyncEnvironment_toDummyModule_closure())); }, _async_environment$_getModule$1(namespace) { var module, t1, _0_0 = this._async_environment$_modules.$index(0, namespace); if (_0_0 != null) { module = _0_0; t1 = true; } else { module = null; t1 = false; } if (t1) return module; throw A.wrapException(A.SassScriptException$('There is no module with the namespace "' + namespace + '".', null)); }, _async_environment$_fromOneModule$1$3($name, type, callback) { var nestedForwardedModules, t1, t2, t3, t4, t5, _1_0, value, _2_0, identity, valueInModule, identityFromModule, module, node, _null = null, _0_0 = this._async_environment$_nestedForwardedModules; if (_0_0 != null) { nestedForwardedModules = _0_0; t1 = true; } else { nestedForwardedModules = _null; t1 = false; } if (t1) for (t1 = new A.ReversedListIterable(nestedForwardedModules, A.instanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) { t5 = t3.__internal$_current; _1_0 = callback.call$1(t5 == null ? t4._as(t5) : t5); if (_1_0 != null) { value = _1_0; t5 = true; } else { value = _null; t5 = false; } if (t5) return value; } } for (t1 = this._async_environment$_importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1._modifications); t1.moveNext$0();) { _2_0 = callback.call$1(t1.__js_helper$_current); if (_2_0 != null) { value = _2_0; t2 = true; } else { value = _null; t2 = false; } if (t2) return value; } for (t1 = this._async_environment$_globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1._modifications), t3 = type$.AsyncCallable, identity = _null, value = identity; t2.moveNext$0();) { t4 = t2.__js_helper$_current; valueInModule = callback.call$1(t4); if (valueInModule == null) continue; identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name); if (identityFromModule.$eq(0, identity)) continue; if (value != null) { t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); for (t3 = A.MapExtensions_get_pairs(t1, type$.Module_AsyncCallable, type$.AstNode), t3 = t3.get$iterator(t3), t4 = "includes " + type; t3.moveNext$0();) { t1 = t3.get$current(t3); module = t1._0; node = t1._1; if (callback.call$1(module) != null) t2.$indexSet(0, node.get$span(node), t4); } throw A.wrapException(A.MultiSpanSassScriptException$("This " + type + string$.x20is_av, type + " use", t2)); } identity = identityFromModule; value = valueInModule; } return value; }, _async_environment$_fromOneModule$3($name, type, callback) { return this._async_environment$_fromOneModule$1$3($name, type, callback, type$.dynamic); } }; A.AsyncEnvironment__getVariableFromGlobalModule_closure.prototype = { call$1(module) { return module.get$variables().$index(0, this.name); }, $signature: 474 }; A.AsyncEnvironment_setVariable_closure.prototype = { call$0() { var t1 = this.$this; t1._async_environment$_lastVariableName = this.name; return t1._async_environment$_lastVariableIndex = 0; }, $signature: 3 }; A.AsyncEnvironment_setVariable_closure0.prototype = { call$1(module) { return module.get$variables().containsKey$1(this.name) ? module : null; }, $signature: 475 }; A.AsyncEnvironment_setVariable_closure1.prototype = { call$0() { var t1 = this.$this, t2 = t1._async_environment$_variableIndex$1(this.name); return t2 == null ? t1._async_environment$_variables.length - 1 : t2; }, $signature: 3 }; A.AsyncEnvironment__getFunctionFromGlobalModule_closure.prototype = { call$1(module) { return module.get$functions(module).$index(0, this.name); }, $signature: 228 }; A.AsyncEnvironment__getMixinFromGlobalModule_closure.prototype = { call$1(module) { return module.get$mixins().$index(0, this.name); }, $signature: 228 }; A.AsyncEnvironment_toModule_closure.prototype = { call$1(modules) { return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable); }, $signature: 240 }; A.AsyncEnvironment_toDummyModule_closure.prototype = { call$1(modules) { return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable); }, $signature: 240 }; A._EnvironmentModule0.prototype = { get$url(_) { var t1 = this.css; t1 = t1.get$span(t1); return t1.get$sourceUrl(t1); }, setVariable$3($name, value, nodeWithSpan) { var module, t1, t2, _0_0 = this._async_environment$_modulesByVariable.$index(0, $name); if (_0_0 != null) { module = _0_0; t1 = true; } else { module = null; t1 = false; } if (t1) { module.setVariable$3($name, value, nodeWithSpan); return; } t1 = this._async_environment$_environment; t2 = t1._async_environment$_variables; if (!B.JSArray_methods.get$first(t2).containsKey$1($name)) throw A.wrapException(A.SassScriptException$("Undefined variable.", null)); J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value); J.$indexSet$ax(B.JSArray_methods.get$first(t1._async_environment$_variableNodes), $name, nodeWithSpan); return; }, variableIdentity$1($name) { var module = this._async_environment$_modulesByVariable.$index(0, $name); return module == null ? this : module.variableIdentity$1($name); }, cloneCss$0() { var _0_0, _this = this; if (!_this.transitivelyContainsCss) return _this; _0_0 = A.cloneCssStylesheet(_this.css, _this.extensionStore); 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); }, toString$0(_) { var t1 = this.css, t2 = t1.get$span(t1); if (t2.get$sourceUrl(t2) == null) t1 = ""; else { t1 = t1.get$span(t1); t1 = t1.get$sourceUrl(t1); t1 = $.$get$context().prettyUri$1(t1); } return t1; }, $isModule0: 1, get$upstream() { return this.upstream; }, get$variables() { return this.variables; }, get$variableNodes() { return this.variableNodes; }, get$functions(receiver) { return this.functions; }, get$mixins() { return this.mixins; }, get$extensionStore() { return this.extensionStore; }, get$css(receiver) { return this.css; }, get$preModuleComments() { return this.preModuleComments; }, get$transitivelyContainsCss() { return this.transitivelyContainsCss; }, get$transitivelyContainsExtensions() { return this.transitivelyContainsExtensions; } }; A._EnvironmentModule__EnvironmentModule_closure5.prototype = { call$1(module) { return module.get$variables(); }, $signature: 504 }; A._EnvironmentModule__EnvironmentModule_closure6.prototype = { call$1(module) { return module.get$variableNodes(); }, $signature: 512 }; A._EnvironmentModule__EnvironmentModule_closure7.prototype = { call$1(module) { return module.get$functions(module); }, $signature: 242 }; A._EnvironmentModule__EnvironmentModule_closure8.prototype = { call$1(module) { return module.get$mixins(); }, $signature: 242 }; A._EnvironmentModule__EnvironmentModule_closure9.prototype = { call$1(module) { return module.get$transitivelyContainsCss(); }, $signature: 146 }; A._EnvironmentModule__EnvironmentModule_closure10.prototype = { call$1(module) { return module.get$transitivelyContainsExtensions(); }, $signature: 146 }; A.AsyncImportCache.prototype = { canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) { return this.canonicalize$body$AsyncImportCache(0, url, baseImporter, baseUrl, forImport); }, canonicalize$body$AsyncImportCache(_, url, baseImporter, baseUrl, forImport) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl), $async$returnValue, $async$self = this, t1, relativeResult; var $async$canonicalize$4$baseImporter$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if (A.isBrowser()) t1 = (baseImporter == null || baseImporter instanceof A.NoOpImporter) && $async$self._async_import_cache$_importers.length === 0; else t1 = false; if (t1) throw A.wrapException(string$.Custom); $async$goto = baseImporter != null && url.get$scheme() === "" ? 3 : 4; break; case 3: // then $async$goto = 5; return A._asyncAwait(A.putIfAbsentAsync($async$self._async_import_cache$_relativeCanonicalizeCache, new A._Record_4_baseImporter_baseUrl_forImport([url, baseImporter, baseUrl, forImport]), new A.AsyncImportCache_canonicalize_closure($async$self, baseImporter, baseUrl, url, forImport), type$.Record_4_Uri_and_AsyncImporter_baseImporter_and_nullable_Uri_baseUrl_and_bool_forImport, type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl), $async$canonicalize$4$baseImporter$baseUrl$forImport); case 5: // returning from await. relativeResult = $async$result; if (relativeResult != null) { $async$returnValue = relativeResult; // goto return $async$goto = 1; break; } case 4: // join $async$goto = 6; return A._asyncAwait(A.putIfAbsentAsync($async$self._async_import_cache$_canonicalizeCache, new A._Record_2_forImport(url, forImport), new A.AsyncImportCache_canonicalize_closure0($async$self, url, baseUrl, forImport), type$.Record_2_Uri_and_bool_forImport, type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl), $async$canonicalize$4$baseImporter$baseUrl$forImport); case 6: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer); }, _async_import_cache$_canonicalize$4(importer, url, baseUrl, forImport) { return this._canonicalize$body$AsyncImportCache(importer, url, baseUrl, forImport); }, _canonicalize$body$AsyncImportCache(importer, url, baseUrl, forImport) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl), $async$returnValue, $async$self = this, t1, passContainingUrl, result, canonicalize; var $async$_async_import_cache$_canonicalize$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start canonicalize = forImport ? new A.AsyncImportCache__canonicalize_closure(importer, url) : new A.AsyncImportCache__canonicalize_closure0(importer, url); $async$goto = baseUrl != null ? 3 : 5; break; case 3: // then $async$goto = url.get$scheme() !== "" ? 6 : 8; break; case 6: // then url.get$scheme(); $async$goto = 9; return A._asyncAwait(false, $async$_async_import_cache$_canonicalize$4); case 9: // returning from await. t1 = $async$result; passContainingUrl = t1; // goto join $async$goto = 7; break; case 8: // else passContainingUrl = true; case 7: // join // goto join $async$goto = 4; break; case 5: // else passContainingUrl = false; case 4: // join t1 = passContainingUrl ? baseUrl : null; $async$goto = 10; return A._asyncAwait(A.withContainingUrl(t1, canonicalize, type$.FutureOr_nullable_Uri), $async$_async_import_cache$_canonicalize$4); case 10: // returning from await. result = $async$result; if (result == null) { $async$returnValue = null; // goto return $async$goto = 1; break; } $async$goto = result.get$scheme() === "" ? 11 : 13; break; case 11: // then A.WarnForDeprecation_warnForDeprecation($async$self._async_import_cache$_logger, B.Deprecation_mFp, "Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2e_Rela, null, null); // goto join $async$goto = 12; break; case 13: // else result.get$scheme(); $async$goto = 14; return A._asyncAwait(false, $async$_async_import_cache$_canonicalize$4); case 14: // returning from await. if ($async$result) throw A.wrapException("Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2c_whicu); case 12: // join $async$returnValue = new A._Record_3_originalUrl(importer, result, url); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_import_cache$_canonicalize$4, $async$completer); }, importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, quiet) { return this.importCanonical$body$AsyncImportCache(importer, canonicalUrl, originalUrl, quiet); }, importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) { return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, false); }, importCanonical$body$AsyncImportCache(importer, canonicalUrl, originalUrl, quiet) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet), $async$returnValue, $async$self = this; var $async$importCanonical$4$originalUrl$quiet = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait(A.putIfAbsentAsync($async$self._async_import_cache$_importCache, canonicalUrl, new A.AsyncImportCache_importCanonical_closure($async$self, importer, canonicalUrl, originalUrl, quiet), type$.Uri, type$.nullable_Stylesheet), $async$importCanonical$4$originalUrl$quiet); case 3: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$importCanonical$4$originalUrl$quiet, $async$completer); }, humanize$1(canonicalUrl) { var t2, t1 = this._async_import_cache$_canonicalizeCache; t1 = A.IterableNullableExtension_whereNotNull(t1.get$values(t1), type$.Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl); t2 = t1.$ti; t2 = A.NullableExtension_andThen(A.minBy(new A.MappedIterable(new A.WhereIterable(t1, new A.AsyncImportCache_humanize_closure(canonicalUrl), t2._eval$1("WhereIterable")), new A.AsyncImportCache_humanize_closure0(), t2._eval$1("MappedIterable")), new A.AsyncImportCache_humanize_closure1()), new A.AsyncImportCache_humanize_closure2(canonicalUrl)); return t2 == null ? canonicalUrl : t2; }, sourceMapUrl$1(_, canonicalUrl) { var t1 = this._async_import_cache$_resultsCache.$index(0, canonicalUrl); t1 = t1 == null ? null : t1.get$sourceMapUrl(t1); return t1 == null ? canonicalUrl : t1; } }; A.AsyncImportCache_canonicalize_closure.prototype = { call$0() { var _this = this, t1 = _this.baseUrl, t2 = t1 == null ? null : t1.resolveUri$1(_this.url); if (t2 == null) t2 = _this.url; return _this.$this._async_import_cache$_canonicalize$4(_this.baseImporter, t2, t1, _this.forImport); }, $signature: 294 }; A.AsyncImportCache_canonicalize_closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl), $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, t6, _i, _0_0, result, t7; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this, t2 = t1._async_import_cache$_importers, t3 = t2.length, t4 = $async$self.url, t5 = $async$self.baseUrl, t6 = $async$self.forImport, _i = 0; case 3: // for condition if (!(_i < t2.length)) { // goto after for $async$goto = 5; break; } $async$goto = 6; return A._asyncAwait(t1._async_import_cache$_canonicalize$4(t2[_i], t4, t5, t6), $async$call$0); case 6: // returning from await. _0_0 = $async$result; if (_0_0 != null) { result = _0_0; t7 = true; } else { result = null; t7 = false; } if (t7) { $async$returnValue = result; // goto return $async$goto = 1; break; } case 4: // for update t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 294 }; A.AsyncImportCache__canonicalize_closure.prototype = { call$0() { var t1 = type$.nullable_Object; return A.runZoned(new A.AsyncImportCache__canonicalize__closure(this.importer, this.resolved), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__inImportRule, true], t1, t1), type$.FutureOr_nullable_Uri); }, $signature: 55 }; A.AsyncImportCache__canonicalize__closure.prototype = { call$0() { return this.importer.canonicalize$1(0, this.resolved); }, $signature: 55 }; A.AsyncImportCache__canonicalize_closure0.prototype = { call$0() { return this.importer.canonicalize$1(0, this.resolved); }, $signature: 55 }; A.AsyncImportCache_importCanonical_closure.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet), $async$returnValue, $async$self = this, t2, t3, t4, t1, result; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.canonicalUrl; $async$goto = 3; return A._asyncAwait($async$self.importer.load$1(0, t1), $async$call$0); case 3: // returning from await. result = $async$result; if (result == null) { $async$returnValue = null; // goto return $async$goto = 1; break; } t2 = $async$self.$this; t2._async_import_cache$_resultsCache.$indexSet(0, t1, result); t3 = result.contents; t4 = result.syntax; t1 = $async$self.originalUrl.resolveUri$1(t1); $async$returnValue = A.Stylesheet_Stylesheet$parse(t3, t4, $async$self.quiet ? $.$get$Logger_quiet() : t2._async_import_cache$_logger, t1); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 548 }; A.AsyncImportCache_humanize_closure.prototype = { call$1(result) { return J.$eq$(result._1, this.canonicalUrl); }, $signature: 581 }; A.AsyncImportCache_humanize_closure0.prototype = { call$1(result) { return result._2; }, $signature: 629 }; A.AsyncImportCache_humanize_closure1.prototype = { call$1(url) { return url.get$path(url).length; }, $signature: 111 }; A.AsyncImportCache_humanize_closure2.prototype = { call$1(url) { var t1 = $.$get$url(), t2 = this.canonicalUrl; return url.resolve$1(A.ParsedPath_ParsedPath$parse(t2.get$path(t2), t1.style).get$basename()); }, $signature: 48 }; A.AsyncBuiltInCallable.prototype = { callbackFor$2(positional, names) { return new A._Record_2(this._async_built_in$_arguments, this._async_built_in$_callback); }, $isAsyncCallable: 1, get$name(receiver) { return this.name; }, get$acceptsContent() { return this.acceptsContent; } }; A.AsyncBuiltInCallable$mixin_closure.prototype = { call$1($arguments) { return this.$call$body$AsyncBuiltInCallable$mixin_closure($arguments); }, $call$body$AsyncBuiltInCallable$mixin_closure($arguments) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$self = this; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self.callback.call$1($arguments), $async$call$1); case 3: // returning from await. $async$returnValue = B.C__SassNull; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 159 }; A.BuiltInCallable.prototype = { callbackFor$2(positional, names) { var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4; for (t1 = this._overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) { overload = t1[_i]; t3 = overload._0; if (t3.matches$2(positional, names)) return overload; mismatchDistance = t3.$arguments.length - positional; if (minMismatchDistance != null) { t3 = Math.abs(mismatchDistance); t4 = Math.abs(minMismatchDistance); if (t3 > t4) continue; if (t3 === t4 && mismatchDistance < 0) continue; } minMismatchDistance = mismatchDistance; fuzzyMatch = overload; } if (fuzzyMatch != null) return fuzzyMatch; throw A.wrapException(A.StateError$("BuiltInCallable " + this.name + " may not have empty overloads.")); }, withName$1($name) { return new A.BuiltInCallable($name, this._overloads, this.acceptsContent); }, $isCallable0: 1, $isAsyncCallable: 1, $isAsyncBuiltInCallable: 1, get$name(receiver) { return this.name; }, get$acceptsContent() { return this.acceptsContent; } }; A.BuiltInCallable$mixin_closure.prototype = { call$1($arguments) { this.callback.call$1($arguments); return B.C__SassNull; }, $signature: 6 }; A.PlainCssCallable.prototype = { $eq(_, other) { if (other == null) return false; return other instanceof A.PlainCssCallable && this.name === other.name; }, get$hashCode(_) { return B.JSString_methods.get$hashCode(this.name); }, $isCallable0: 1, $isAsyncCallable: 1, get$name(receiver) { return this.name; } }; A.UserDefinedCallable.prototype = { get$name(_) { return this.declaration.name; }, $isCallable0: 1, $isAsyncCallable: 1 }; A._compileStylesheet_closure.prototype = { call$1(url) { var t1; if (url === "") { t1 = this.stylesheet.span; 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(); } else t1 = this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0); return t1; }, $signature: 7 }; A.CompileResult.prototype = {}; A.Configuration.prototype = { throughForward$1($forward) { var _0_0, prefix, t1, _1_0, shownVariables, _2_0, hiddenVariables, newValues = this._configuration$_values; if (newValues.get$isEmpty(newValues)) return B.Configuration_Map_empty_null; _0_0 = $forward.prefix; if (_0_0 != null) { prefix = _0_0; t1 = true; } else { prefix = null; t1 = false; } if (t1) newValues = new A.UnprefixedMapView(newValues, prefix, type$.UnprefixedMapView_ConfiguredValue); _1_0 = $forward.shownVariables; if (_1_0 != null) { shownVariables = _1_0; t1 = true; } else { shownVariables = null; t1 = false; } if (t1) newValues = new A.LimitedMapView(newValues, shownVariables._base.intersection$1(new A.MapKeySet(newValues, type$.MapKeySet_nullable_Object)), type$.LimitedMapView_String_ConfiguredValue); else { _2_0 = $forward.hiddenVariables; if (_2_0 != null) { hiddenVariables = _2_0; t1 = true; } else { hiddenVariables = null; t1 = false; } if (t1) { t1 = hiddenVariables._base; t1 = t1.get$isNotEmpty(t1); } else t1 = false; if (t1) newValues = A.LimitedMapView$blocklist(newValues, hiddenVariables, type$.String, type$.ConfiguredValue); } return this._withValues$1(newValues); }, _withValues$1(values) { var t1 = this.__originalConfiguration; return new A.Configuration(values, t1 == null ? this : t1); }, toString$0(_) { var t2, t3, $name, value, t1 = A._setArrayType([], type$.JSArray_String); 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();) { t3 = t2.get$current(t2); $name = t3._0; value = t3._1; t1.push("$" + $name + ": " + value.toString$0(0)); } return "(" + B.JSArray_methods.join$1(t1, ",") + ")"; } }; A.ExplicitConfiguration.prototype = { _withValues$1(values) { var t1 = this.__originalConfiguration; if (t1 == null) t1 = this; return new A.ExplicitConfiguration(this.nodeWithSpan, values, t1); } }; A.ConfiguredValue.prototype = { toString$0(_) { return A.serializeValue(this.value, true, true); } }; A.Deprecation.prototype = { _enumToString$0() { return "Deprecation." + this._name; }, toString$0(_) { return this.id; } }; A.Deprecation_fromId_closure.prototype = { call$1(deprecation) { return deprecation.id === this.id; }, $signature: 320 }; A.Environment.prototype = { closure$0() { var t4, t5, t6, _this = this, t1 = _this._forwardedModules, t2 = _this._nestedForwardedModules, t3 = _this._variables; t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3)); t4 = _this._variableNodes; t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4)); t5 = _this._functions; t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5)); t6 = _this._mixins; t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6)); return A.Environment$_(_this._environment$_modules, _this._namespaceNodes, _this._globalModules, _this._importedModules, t1, t2, _this._allModules, t3, t4, t5, t6, _this._content); }, forwardModule$2(module, rule) { var view, t1, t2, _this = this, forwardedModules = _this._forwardedModules; if (forwardedModules == null) forwardedModules = _this._forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.AstNode); view = A.ForwardedModuleView_ifNecessary(module, rule, type$.Callable); for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules._modifications); t1.moveNext$0();) { t2 = t1.__js_helper$_current; _this._assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable"); _this._assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function"); _this._assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin"); } _this._allModules.push(module); forwardedModules.$indexSet(0, view, rule); }, _assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) { var larger, smaller, t1, t2, t3, t4, $name, small, large, span; if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) { larger = oldMembers; smaller = newMembers; } else { larger = newMembers; smaller = oldMembers; } for (t1 = type$.String, t2 = A.MapExtensions_get_pairs(smaller, t1, type$.Object), t2 = t2.get$iterator(t2), t3 = type === "variable"; t2.moveNext$0();) { t4 = t2.get$current(t2); $name = t4._0; small = t4._1; small = small; large = larger.$index(0, $name); if (large == null) continue; if (t3 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(large, small)) continue; if (t3) $name = "$" + $name; t2 = this._forwardedModules; if (t2 == null) span = null; else { t2 = t2.$index(0, oldModule); span = t2 == null ? null : J.get$span$z(t2); } t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, t1); if (span != null) t2.$indexSet(0, span, "original @forward"); throw A.wrapException(A.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t2)); } }, importForwards$1(module) { var forwardedModules, t1, t2, t3, t4, node, t5, t6, t7, t8, t9, t10, _i, t11, shadowed, _length, _list, _this = this, forwarded = module._environment$_environment._forwardedModules; if (forwarded == null) return; forwardedModules = _this._forwardedModules; if (forwardedModules != null) { t1 = type$.Module_Callable; t2 = type$.AstNode; t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t1 = A.MapExtensions_get_pairs(forwarded, t1, t2), t1 = t1.get$iterator(t1), t2 = _this._globalModules; t1.moveNext$0();) { t4 = t1.get$current(t1); module = t4._0; node = t4._1; if (!forwardedModules.containsKey$1(module) || !t2.containsKey$1(module)) t3.$indexSet(0, module, node); } forwarded = t3; } else forwardedModules = _this._forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.AstNode); t1 = type$.String; t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1); for (t3 = A.LinkedHashMapKeyIterator$(forwarded, forwarded._modifications); t3.moveNext$0();) for (t4 = t3.__js_helper$_current.get$variables(), t4 = J.get$iterator$ax(t4.get$keys(t4)); t4.moveNext$0();) t2.add$1(0, t4.get$current(t4)); t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1); for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded._modifications); t4.moveNext$0();) { t5 = t4.__js_helper$_current; for (t5 = t5.get$functions(t5), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();) t3.add$1(0, t5.get$current(t5)); } t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1); for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded._modifications); t4.moveNext$0();) for (t5 = t4.__js_helper$_current.get$mixins(), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();) t1.add$1(0, t5.get$current(t5)); t4 = _this._variables; t5 = t4.length; if (t5 === 1) { 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) { t11 = t8[_i]; module = t11._0; node = t11._1; shadowed = A.ShadowedModuleView_ifNecessary(module, t3, t1, t2, t10); if (shadowed != null) { t5.remove$1(0, module); t11 = shadowed.variables; if (t11.get$isEmpty(t11)) { t11 = shadowed.functions; if (t11.get$isEmpty(t11)) { t11 = shadowed.mixins; if (t11.get$isEmpty(t11)) { t11 = shadowed._shadowed_view$_inner; t11 = t11.get$css(t11); t11 = J.get$isEmpty$asx(t11.get$children(t11)); } else t11 = false; } else t11 = false; } else t11 = false; if (!t11) t5.$indexSet(0, shadowed, node); } } 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) { t8 = t6[_i]; module = t8._0; node = t8._1; shadowed = A.ShadowedModuleView_ifNecessary(module, t3, t1, t2, t10); if (shadowed != null) { forwardedModules.remove$1(0, module); t8 = shadowed.variables; if (t8.get$isEmpty(t8)) { t8 = shadowed.functions; if (t8.get$isEmpty(t8)) { t8 = shadowed.mixins; if (t8.get$isEmpty(t8)) { t8 = shadowed._shadowed_view$_inner; t8 = t8.get$css(t8); t8 = J.get$isEmpty$asx(t8.get$children(t8)); } else t8 = false; } else t8 = false; } else t8 = false; if (!t8) forwardedModules.$indexSet(0, shadowed, node); } } t5.addAll$1(0, forwarded); forwardedModules.addAll$1(0, forwarded); } else { t6 = _this._nestedForwardedModules; if (t6 == null) { _length = t5 - 1; _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_Callable); for (t5 = type$.JSArray_Module_Callable, _i = 0; _i < _length; ++_i) _list[_i] = A._setArrayType([], t5); _this._nestedForwardedModules = _list; t5 = _list; } else t5 = t6; B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t5), new A.LinkedHashMapKeyIterable(forwarded, A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>"))); } for (t2 = A._LinkedHashSetIterator$(t2, t2._collection$_modifications), t5 = _this._variableIndices, t6 = _this._variableNodes, t7 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t8 = t2._collection$_current; if (t8 == null) t8 = t7._as(t8); t5.remove$1(0, t8); J.remove$1$z(B.JSArray_methods.get$last(t4), t8); J.remove$1$z(B.JSArray_methods.get$last(t6), t8); } for (t2 = A._LinkedHashSetIterator$(t3, t3._collection$_modifications), t3 = _this._functionIndices, t4 = _this._functions, t5 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t6 = t2._collection$_current; if (t6 == null) t6 = t5._as(t6); t3.remove$1(0, t6); J.remove$1$z(B.JSArray_methods.get$last(t4), t6); } for (t1 = A._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = _this._mixinIndices, t3 = _this._mixins, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t5 = t1._collection$_current; if (t5 == null) t5 = t4._as(t5); t2.remove$1(0, t5); J.remove$1$z(B.JSArray_methods.get$last(t3), t5); } }, getVariable$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) return _this._getModule$1(namespace).get$variables().$index(0, $name); if (_this._lastVariableName === $name) { t1 = _this._lastVariableIndex; t1.toString; t1 = J.$index$asx(_this._variables[t1], $name); return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1; } t1 = _this._variableIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._lastVariableName = $name; _this._lastVariableIndex = index; t1 = J.$index$asx(_this._variables[index], $name); return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1; } else { _1_0 = _this._variableIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._lastVariableName = $name; _this._lastVariableIndex = index; t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._variables[index], $name); return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1; } else return _this._getVariableFromGlobalModule$1($name); } }, getVariable$1($name) { return this.getVariable$2$namespace($name, null); }, _getVariableFromGlobalModule$1($name) { return this._fromOneModule$3($name, "variable", new A.Environment__getVariableFromGlobalModule_closure($name)); }, getVariableNode$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) return _this._getModule$1(namespace).get$variableNodes().$index(0, $name); if (_this._lastVariableName === $name) { t1 = _this._lastVariableIndex; t1.toString; t1 = J.$index$asx(_this._variableNodes[t1], $name); return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1; } t1 = _this._variableIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._lastVariableName = $name; _this._lastVariableIndex = index; t1 = J.$index$asx(_this._variableNodes[index], $name); return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1; } else { _1_0 = _this._variableIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._lastVariableName = $name; _this._lastVariableIndex = index; t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._variableNodes[index], $name); return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1; } else return _this._getVariableNodeFromGlobalModule$1($name); } }, _getVariableNodeFromGlobalModule$1($name) { var t1, t2, _0_0, value; 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();) { t1 = t2._currentIterator; _0_0 = t1.get$current(t1).get$variableNodes().$index(0, $name); if (_0_0 != null) { value = _0_0; t1 = true; } else { value = null; t1 = false; } if (t1) return value; } return null; }, globalVariableExists$2$namespace($name, namespace) { if (namespace != null) return this._getModule$1(namespace).get$variables().containsKey$1($name); if (B.JSArray_methods.get$first(this._variables).containsKey$1($name)) return true; return this._getVariableFromGlobalModule$1($name) != null; }, globalVariableExists$1($name) { return this.globalVariableExists$2$namespace($name, null); }, _variableIndex$1($name) { var t1, i; for (t1 = this._variables, i = t1.length - 1; i >= 0; --i) if (t1[i].containsKey$1($name)) return i; return null; }, setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) { var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this; if (namespace != null) { _this._getModule$1(namespace).setVariable$3($name, value, nodeWithSpan); return; } if (global || _this._variables.length === 1) { _this._variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure(_this, $name)); t1 = _this._variables; if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) { moduleWithName = _this._fromOneModule$3($name, "variable", new A.Environment_setVariable_closure0($name)); if (moduleWithName != null) { moduleWithName.setVariable$3($name, value, nodeWithSpan); return; } } J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value); J.$indexSet$ax(B.JSArray_methods.get$first(_this._variableNodes), $name, nodeWithSpan); return; } nestedForwardedModules = _this._nestedForwardedModules; if (nestedForwardedModules != null && !_this._variableIndices.containsKey$1($name) && _this._variableIndex$1($name) == null) for (t1 = new A.ReversedListIterable(nestedForwardedModules, A.instanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) { t5 = t3.__internal$_current; if (t5 == null) t5 = t4._as(t5); if (t5.get$variables().containsKey$1($name)) { t5.setVariable$3($name, value, nodeWithSpan); return; } } } if (_this._lastVariableName === $name) { t1 = _this._lastVariableIndex; t1.toString; index = t1; } else index = _this._variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure1(_this, $name)); if (!_this._inSemiGlobalScope && index === 0) { index = _this._variables.length - 1; _this._variableIndices.$indexSet(0, $name, index); } _this._lastVariableName = $name; _this._lastVariableIndex = index; J.$indexSet$ax(_this._variables[index], $name, value); J.$indexSet$ax(_this._variableNodes[index], $name, nodeWithSpan); }, setVariable$4$global($name, value, nodeWithSpan, global) { return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null); }, setLocalVariable$3($name, value, nodeWithSpan) { var index, _this = this, t1 = _this._variables, t2 = t1.length; _this._lastVariableName = $name; index = _this._lastVariableIndex = t2 - 1; _this._variableIndices.$indexSet(0, $name, index); J.$indexSet$ax(t1[index], $name, value); J.$indexSet$ax(_this._variableNodes[index], $name, nodeWithSpan); }, getFunction$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) { t1 = _this._getModule$1(namespace); return t1.get$functions(t1).$index(0, $name); } t1 = _this._functionIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1 = J.$index$asx(_this._functions[index], $name); return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1; } else { _1_0 = _this._functionIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._functions[index], $name); return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1; } else return _this._getFunctionFromGlobalModule$1($name); } }, getFunction$1($name) { return this.getFunction$2$namespace($name, null); }, _getFunctionFromGlobalModule$1($name) { return this._fromOneModule$3($name, "function", new A.Environment__getFunctionFromGlobalModule_closure($name)); }, _functionIndex$1($name) { var t1, i; for (t1 = this._functions, i = t1.length - 1; i >= 0; --i) if (t1[i].containsKey$1($name)) return i; return null; }, getMixin$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) return _this._getModule$1(namespace).get$mixins().$index(0, $name); t1 = _this._mixinIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1 = J.$index$asx(_this._mixins[index], $name); return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1; } else { _1_0 = _this._mixinIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._mixins[index], $name); return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1; } else return _this._getMixinFromGlobalModule$1($name); } }, _getMixinFromGlobalModule$1($name) { return this._fromOneModule$3($name, "mixin", new A.Environment__getMixinFromGlobalModule_closure($name)); }, _mixinIndex$1($name) { var t1, i; for (t1 = this._mixins, i = t1.length - 1; i >= 0; --i) if (t1[i].containsKey$1($name)) return i; return null; }, withContent$2($content, callback) { var oldContent = this._content; this._content = $content; callback.call$0(); this._content = oldContent; }, asMixin$1(callback) { var oldInMixin = this._inMixin; this._inMixin = true; callback.call$0(); this._inMixin = oldInMixin; }, scope$1$3$semiGlobal$when(callback, semiGlobal, when) { var wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6, _this = this; semiGlobal = semiGlobal && _this._inSemiGlobalScope; wasInSemiGlobalScope = _this._inSemiGlobalScope; _this._inSemiGlobalScope = semiGlobal; if (!when) try { t1 = callback.call$0(); return t1; } finally { _this._inSemiGlobalScope = wasInSemiGlobalScope; } t1 = _this._variables; t2 = type$.String; B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value)); t3 = _this._variableNodes; B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode)); t4 = _this._functions; t5 = type$.Callable; B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5)); t6 = _this._mixins; B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5)); t5 = _this._nestedForwardedModules; if (t5 != null) t5.push(A._setArrayType([], type$.JSArray_Module_Callable)); try { t2 = callback.call$0(); return t2; } finally { _this._inSemiGlobalScope = wasInSemiGlobalScope; _this._lastVariableIndex = _this._lastVariableName = null; for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = _this._variableIndices; t1.moveNext$0();) { $name = t1.get$current(t1); t2.remove$1(0, $name); } B.JSArray_methods.removeLast$0(t3); for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = _this._functionIndices; t1.moveNext$0();) { name0 = t1.get$current(t1); t2.remove$1(0, name0); } for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = _this._mixinIndices; t1.moveNext$0();) { name1 = t1.get$current(t1); t2.remove$1(0, name1); } t1 = _this._nestedForwardedModules; if (t1 != null) t1.pop(); } }, scope$1$1(callback, $T) { return this.scope$1$3$semiGlobal$when(callback, false, true, $T); }, scope$1$2$when(callback, when, $T) { return this.scope$1$3$semiGlobal$when(callback, false, when, $T); }, scope$1$2$semiGlobal(callback, semiGlobal, $T) { return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T); }, toImplicitConfiguration$0() { var t2, t3, t4, i, values, nodes, t5, t6, $name, value, t1 = type$.String, configuration = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue); for (t2 = this._variables, t3 = type$.Value, t4 = this._variableNodes, i = 0; i < t2.length; ++i) { values = t2[i]; nodes = t4[i]; for (t5 = A.MapExtensions_get_pairs(values, t1, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) { t6 = t5.get$current(t5); $name = t6._0; value = t6._1; t6 = nodes.$index(0, $name); t6.toString; configuration.$indexSet(0, $name, new A.ConfiguredValue(value, null, t6)); } } return new A.Configuration(configuration, null); }, toModule$3(css, preModuleComments, extensionStore) { return A._EnvironmentModule__EnvironmentModule(this, css, preModuleComments, extensionStore, A.NullableExtension_andThen(this._forwardedModules, new A.Environment_toModule_closure())); }, toDummyModule$0() { return A._EnvironmentModule__EnvironmentModule(this, new A.CssStylesheet(new A.UnmodifiableListView(B.List_empty3, type$.UnmodifiableListView_CssNode), A.SourceFile$decoded(B.List_empty4, "").span$1(0, 0)), B.Map_empty0, B.C_EmptyExtensionStore, A.NullableExtension_andThen(this._forwardedModules, new A.Environment_toDummyModule_closure())); }, _getModule$1(namespace) { var module, t1, _0_0 = this._environment$_modules.$index(0, namespace); if (_0_0 != null) { module = _0_0; t1 = true; } else { module = null; t1 = false; } if (t1) return module; throw A.wrapException(A.SassScriptException$('There is no module with the namespace "' + namespace + '".', null)); }, _fromOneModule$1$3($name, type, callback) { var nestedForwardedModules, t1, t2, t3, t4, t5, _1_0, value, _2_0, identity, valueInModule, identityFromModule, module, node, _null = null, _0_0 = this._nestedForwardedModules; if (_0_0 != null) { nestedForwardedModules = _0_0; t1 = true; } else { nestedForwardedModules = _null; t1 = false; } if (t1) for (t1 = new A.ReversedListIterable(nestedForwardedModules, A.instanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) { t5 = t3.__internal$_current; _1_0 = callback.call$1(t5 == null ? t4._as(t5) : t5); if (_1_0 != null) { value = _1_0; t5 = true; } else { value = _null; t5 = false; } if (t5) return value; } } for (t1 = this._importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1._modifications); t1.moveNext$0();) { _2_0 = callback.call$1(t1.__js_helper$_current); if (_2_0 != null) { value = _2_0; t2 = true; } else { value = _null; t2 = false; } if (t2) return value; } for (t1 = this._globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1._modifications), t3 = type$.Callable, identity = _null, value = identity; t2.moveNext$0();) { t4 = t2.__js_helper$_current; valueInModule = callback.call$1(t4); if (valueInModule == null) continue; identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name); if (identityFromModule.$eq(0, identity)) continue; if (value != null) { t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); for (t3 = A.MapExtensions_get_pairs(t1, type$.Module_Callable, type$.AstNode), t3 = t3.get$iterator(t3), t4 = "includes " + type; t3.moveNext$0();) { t1 = t3.get$current(t3); module = t1._0; node = t1._1; if (callback.call$1(module) != null) t2.$indexSet(0, node.get$span(node), t4); } throw A.wrapException(A.MultiSpanSassScriptException$("This " + type + string$.x20is_av, type + " use", t2)); } identity = identityFromModule; value = valueInModule; } return value; }, _fromOneModule$3($name, type, callback) { return this._fromOneModule$1$3($name, type, callback, type$.dynamic); } }; A.Environment__getVariableFromGlobalModule_closure.prototype = { call$1(module) { return module.get$variables().$index(0, this.name); }, $signature: 323 }; A.Environment_setVariable_closure.prototype = { call$0() { var t1 = this.$this; t1._lastVariableName = this.name; return t1._lastVariableIndex = 0; }, $signature: 3 }; A.Environment_setVariable_closure0.prototype = { call$1(module) { return module.get$variables().containsKey$1(this.name) ? module : null; }, $signature: 326 }; A.Environment_setVariable_closure1.prototype = { call$0() { var t1 = this.$this, t2 = t1._variableIndex$1(this.name); return t2 == null ? t1._variables.length - 1 : t2; }, $signature: 3 }; A.Environment__getFunctionFromGlobalModule_closure.prototype = { call$1(module) { return module.get$functions(module).$index(0, this.name); }, $signature: 163 }; A.Environment__getMixinFromGlobalModule_closure.prototype = { call$1(module) { return module.get$mixins().$index(0, this.name); }, $signature: 163 }; A.Environment_toModule_closure.prototype = { call$1(modules) { return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable); }, $signature: 167 }; A.Environment_toDummyModule_closure.prototype = { call$1(modules) { return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable); }, $signature: 167 }; A._EnvironmentModule.prototype = { get$url(_) { var t1 = this.css; t1 = t1.get$span(t1); return t1.get$sourceUrl(t1); }, setVariable$3($name, value, nodeWithSpan) { var module, t1, t2, _0_0 = this._modulesByVariable.$index(0, $name); if (_0_0 != null) { module = _0_0; t1 = true; } else { module = null; t1 = false; } if (t1) { module.setVariable$3($name, value, nodeWithSpan); return; } t1 = this._environment$_environment; t2 = t1._variables; if (!B.JSArray_methods.get$first(t2).containsKey$1($name)) throw A.wrapException(A.SassScriptException$("Undefined variable.", null)); J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value); J.$indexSet$ax(B.JSArray_methods.get$first(t1._variableNodes), $name, nodeWithSpan); return; }, variableIdentity$1($name) { var module = this._modulesByVariable.$index(0, $name); return module == null ? this : module.variableIdentity$1($name); }, cloneCss$0() { var _0_0, _this = this; if (!_this.transitivelyContainsCss) return _this; _0_0 = A.cloneCssStylesheet(_this.css, _this.extensionStore); 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); }, toString$0(_) { var t1 = this.css, t2 = t1.get$span(t1); if (t2.get$sourceUrl(t2) == null) t1 = ""; else { t1 = t1.get$span(t1); t1 = t1.get$sourceUrl(t1); t1 = $.$get$context().prettyUri$1(t1); } return t1; }, $isModule0: 1, get$upstream() { return this.upstream; }, get$variables() { return this.variables; }, get$variableNodes() { return this.variableNodes; }, get$functions(receiver) { return this.functions; }, get$mixins() { return this.mixins; }, get$extensionStore() { return this.extensionStore; }, get$css(receiver) { return this.css; }, get$preModuleComments() { return this.preModuleComments; }, get$transitivelyContainsCss() { return this.transitivelyContainsCss; }, get$transitivelyContainsExtensions() { return this.transitivelyContainsExtensions; } }; A._EnvironmentModule__EnvironmentModule_closure.prototype = { call$1(module) { return module.get$variables(); }, $signature: 331 }; A._EnvironmentModule__EnvironmentModule_closure0.prototype = { call$1(module) { return module.get$variableNodes(); }, $signature: 333 }; A._EnvironmentModule__EnvironmentModule_closure1.prototype = { call$1(module) { return module.get$functions(module); }, $signature: 170 }; A._EnvironmentModule__EnvironmentModule_closure2.prototype = { call$1(module) { return module.get$mixins(); }, $signature: 170 }; A._EnvironmentModule__EnvironmentModule_closure3.prototype = { call$1(module) { return module.get$transitivelyContainsCss(); }, $signature: 134 }; A._EnvironmentModule__EnvironmentModule_closure4.prototype = { call$1(module) { return module.get$transitivelyContainsExtensions(); }, $signature: 134 }; A.SassException.prototype = { get$trace(_) { return A.Trace$(A._setArrayType([A.frameForSpan(A.SourceSpanException.prototype.get$span.call(this, this), "root stylesheet", null)], type$.JSArray_Frame), null); }, get$span(_) { return A.SourceSpanException.prototype.get$span.call(this, this); }, withAdditionalSpan$2(span, label) { var _this = this; return A.MultiSpanSassException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), _this.loadedUrls); }, withTrace$1(trace) { var _this = this, t1 = A.SourceSpanException.prototype.get$span.call(_this, _this), t2 = A.Set_Set$unmodifiable(_this.loadedUrls, type$.Uri); return new A.SassRuntimeException(trace, t2, _this._span_exception$_message, t1); }, withLoadedUrls$1(loadedUrls) { var t1 = A.SourceSpanException.prototype.get$span.call(this, this), t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri); return new A.SassException(t2, this._span_exception$_message, t1); }, toString$1$color(_, color) { var t2, _i, frame, t3, _this = this, buffer = new A.StringBuffer(""), t1 = "" + ("Error: " + _this._span_exception$_message + "\n"); buffer._contents = t1; buffer._contents = t1 + A.SourceSpanException.prototype.get$span.call(_this, _this).highlight$1$color(color); for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) { frame = t1[_i]; if (J.get$length$asx(frame) === 0) continue; t3 = buffer._contents += "\n"; buffer._contents = t3 + (" " + A.S(frame)); } t1 = buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, toString$0($receiver) { return this.toString$1$color($receiver, null); }, toCssString$0() { var commentMessage, stringMessage, rune, t1 = $._glyphs, t2 = $._glyphs = B.C_AsciiGlyphSet, t3 = this.toString$1$color(0, false); t3 = A.stringReplaceAllUnchecked(t3, "*/", "*\u2215"); commentMessage = A.stringReplaceAllUnchecked(t3, "\r\n", "\n"); $._glyphs = t1 === B.C_AsciiGlyphSet ? t2 : B.C_UnicodeGlyphSet; stringMessage = new A.StringBuffer(""); for (t1 = new A.RuneIterator(A.serializeValue(new A.SassString(this.toString$1$color(0, false), true), true, true)); t1.moveNext$0();) { rune = t1._currentCodePoint; if (rune > 255) { stringMessage._contents += A.Primitives_stringFromCharCode(92); stringMessage._contents += B.JSInt_methods.toRadixString$1(rune, 16); stringMessage._contents += A.Primitives_stringFromCharCode(32); } else stringMessage._contents += A.Primitives_stringFromCharCode(rune); } 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}"; } }; A.MultiSpanSassException.prototype = { withAdditionalSpan$2(span, label) { var _this = this, t1 = A.SourceSpanException.prototype.get$span.call(_this, _this), t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String); t2.$indexSet(0, span, label); return A.MultiSpanSassException$(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.loadedUrls); }, withTrace$1(trace) { var _this = this; return A.MultiSpanSassRuntimeException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), _this.primaryLabel, _this.secondarySpans, trace, _this.loadedUrls); }, withLoadedUrls$1(loadedUrls) { var _this = this; return A.MultiSpanSassException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), _this.primaryLabel, _this.secondarySpans, loadedUrls); }, toString$1$color(_, color) { var t1, t2, _i, frame, _this = this, useColor = color === true && true, buffer = new A.StringBuffer("Error: " + _this._span_exception$_message + "\n"); A.NullableExtension_andThen(A.Highlighter$multiple(A.SourceSpanException.prototype.get$span.call(_this, _this), _this.primaryLabel, _this.secondarySpans, useColor, null, null).highlight$0(), buffer.get$write(buffer)); for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) { frame = t1[_i]; if (J.get$length$asx(frame) === 0) continue; buffer._contents += "\n"; buffer._contents += " " + A.S(frame); } t1 = buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, toString$0($receiver) { return this.toString$1$color($receiver, null); }, get$primaryLabel() { return this.primaryLabel; }, get$secondarySpans() { return this.secondarySpans; } }; A.SassRuntimeException.prototype = { withAdditionalSpan$2(span, label) { var _this = this; return A.MultiSpanSassRuntimeException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), _this.trace, _this.loadedUrls); }, withLoadedUrls$1(loadedUrls) { var _this = this, t1 = A.SourceSpanException.prototype.get$span.call(_this, _this), t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri); return new A.SassRuntimeException(_this.trace, t2, _this._span_exception$_message, t1); }, get$trace(receiver) { return this.trace; } }; A.MultiSpanSassRuntimeException.prototype = { withAdditionalSpan$2(span, label) { var _this = this, t1 = A.SourceSpanException.prototype.get$span.call(_this, _this), t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String); t2.$indexSet(0, span, label); return A.MultiSpanSassRuntimeException$(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.trace, _this.loadedUrls); }, withLoadedUrls$1(loadedUrls) { var _this = this; return A.MultiSpanSassRuntimeException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), _this.primaryLabel, _this.secondarySpans, _this.trace, loadedUrls); }, $isSassRuntimeException: 1, get$trace(receiver) { return this.trace; } }; A.SassFormatException.prototype = { get$source() { var t1 = A.SourceSpanException.prototype.get$span.call(this, this); return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null); }, withAdditionalSpan$2(span, label) { var _this = this; return A.MultiSpanSassFormatException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), _this.loadedUrls); }, withLoadedUrls$1(loadedUrls) { var t1 = A.SourceSpanException.prototype.get$span.call(this, this), t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri); return new A.SassFormatException(t2, this._span_exception$_message, t1); }, $isFormatException: 1, $isSourceSpanFormatException: 1 }; A.MultiSpanSassFormatException.prototype = { get$source() { var t1 = A.SourceSpanException.prototype.get$span.call(this, this); return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null); }, withAdditionalSpan$2(span, label) { var _this = this, t1 = A.SourceSpanException.prototype.get$span.call(_this, _this), t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String); t2.$indexSet(0, span, label); return A.MultiSpanSassFormatException$(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.loadedUrls); }, withLoadedUrls$1(loadedUrls) { var _this = this; return A.MultiSpanSassFormatException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), _this.primaryLabel, _this.secondarySpans, loadedUrls); }, $isFormatException: 1, $isSassFormatException: 1, $isSourceSpanFormatException: 1, $isMultiSourceSpanFormatException: 1 }; A.SassScriptException.prototype = { withSpan$1(span) { return new A.SassException(B.Set_empty, this.message, span); }, toString$0(_) { return this.message + string$.x0a_BUG_; }, get$message(receiver) { return this.message; } }; A.MultiSpanSassScriptException.prototype = { withSpan$1(span) { return A.MultiSpanSassException$(this.message, span, this.primaryLabel, this.secondarySpans, null); } }; A._writeSourceMap_closure.prototype = { call$1(url) { return this.options.sourceMapUrl$2(0, A.Uri_parse(url), this.destination).toString$0(0); }, $signature: 7 }; A.compileStylesheets_closure.prototype = { call$0() { return this._1_0[0]; }, $signature: 336 }; A.ExecutableOptions.prototype = { get$interactive() { var result, _this = this, value = _this.__ExecutableOptions_interactive_FI; if (value === $) { result = new A.ExecutableOptions_interactive_closure(_this).call$0(); _this.__ExecutableOptions_interactive_FI !== $ && A.throwUnnamedLateFieldADI(); _this.__ExecutableOptions_interactive_FI = result; value = result; } return value; }, get$color() { var t1 = this._options; return t1.wasParsed$1("color") ? A._asBool(t1.$index(0, "color")) : A.hasTerminal(); }, get$emitErrorCss() { var t1 = A._asBoolQ(this._options.$index(0, "error-css")); if (t1 == null) { this._ensureSources$0(); t1 = this._sourcesToDestinations; t1 = t1.get$values(t1).any$1(0, new A.ExecutableOptions_emitErrorCss_closure()); } return t1; }, _ensureSources$0() { var t1, stdin, t2, t3, $directories, t4, t5, colonArgs, positionalArgs, t6, t7, t8, message, target, source, destination, seen, _0_0, _this = this, _null = null, _s18_ = 'Duplicate source "'; if (_this._sourcesToDestinations != null) return; t1 = _this._options; stdin = A._asBool(t1.$index(0, "stdin")); t2 = t1.rest; if (t2.get$length(t2) === 0 && !stdin) A.ExecutableOptions__fail("Compile Sass to CSS."); t3 = type$.String; $directories = A.LinkedHashSet_LinkedHashSet$_empty(t3); for (t4 = new A.ListIterator(t2, t2.get$length(t2)), t5 = A._instanceType(t4)._precomputed1, colonArgs = false, positionalArgs = false; t4.moveNext$0();) { t6 = t4.__internal$_current; if (t6 == null) t6 = t5._as(t6); t7 = t6.length; if (t7 === 0) A.ExecutableOptions__fail('Invalid argument "".'); if (A.stringContainsUnchecked(t6, ":", 0)) { if (t7 > 2) { t8 = t6.charCodeAt(0); if (!(t8 >= 97 && t8 <= 122)) t8 = t8 >= 65 && t8 <= 90; else t8 = true; t8 = t8 && t6.charCodeAt(1) === 58; } else t8 = false; if (t8) { if (2 > t7) A.throwExpression(A.RangeError$range(2, 0, t7, _null, _null)); t7 = A.stringContainsUnchecked(t6, ":", 2); } else t7 = true; } else t7 = false; if (t7) colonArgs = true; else if (A.dirExists(t6)) $directories.add$1(0, t6); else positionalArgs = true; } if (positionalArgs || t2.get$length(t2) === 0) { if (colonArgs) A.ExecutableOptions__fail('Positional and ":" arguments may not both be used.'); else if (stdin) { if (J.get$length$asx(t2._collection$_source) > 1) A.ExecutableOptions__fail("Only one argument is allowed with --stdin."); else if (A._asBool(t1.$index(0, "update"))) A.ExecutableOptions__fail("--update is not allowed with --stdin."); else if (A._asBool(t1.$index(0, "watch"))) A.ExecutableOptions__fail("--watch is not allowed with --stdin."); t1 = t2.get$length(t2) === 0 ? _null : t2.get$first(t2); t2 = type$.dynamic; t3 = type$.nullable_String; _this._sourcesToDestinations = A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([null, t1], t2, t2), t3, t3); } else { t3 = t2._collection$_source; t4 = J.getInterceptor$asx(t3); if (t4.get$length(t3) > 2) A.ExecutableOptions__fail("Only two positional args may be passed."); else if ($directories._collection$_length !== 0) { message = 'Directory "' + A.S($directories.get$first($directories)) + '" may not be a positional arg.'; target = t2.get$last(t2); A.ExecutableOptions__fail(J.$eq$($directories.get$first($directories), t2.get$first(t2)) && !A.fileExists(target) ? message + ('\nTo compile all CSS in "' + A.S($directories.get$first($directories)) + '" to "' + target + '", use `sass ' + A.S($directories.get$first($directories)) + ":" + target + "`.") : message); } else { source = J.$eq$(t2.get$first(t2), "-") ? _null : t2.get$first(t2); destination = t4.get$length(t3) === 1 ? _null : t2.get$last(t2); if (destination == null) if (A._asBool(t1.$index(0, "update"))) A.ExecutableOptions__fail("--update is not allowed when printing to stdout."); else if (A._asBool(t1.$index(0, "watch"))) A.ExecutableOptions__fail("--watch is not allowed when printing to stdout."); t1 = A.PathMap__create(_null, type$.nullable_String); t1.$indexSet(0, source, destination); _this._sourcesToDestinations = new A.UnmodifiableMapView(new A.PathMap(t1, type$.PathMap_nullable_String), type$.UnmodifiableMapView_of_nullable_String_and_nullable_String); } } _this.__ExecutableOptions__sourceDirectoriesToDestinations_F !== $ && A.throwUnnamedLateFieldAI(); _this.__ExecutableOptions__sourceDirectoriesToDestinations_F = B.Map_empty; return; } if (stdin) A.ExecutableOptions__fail('--stdin may not be used with ":" arguments.'); seen = A.LinkedHashSet_LinkedHashSet$_empty(t3); t1 = A.PathMap__create(_null, t3); t4 = type$.PathMap_String; t3 = A.PathMap__create(_null, t3); for (t2 = new A.ListIterator(t2, t2.get$length(t2)), t5 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t6 = t2.__internal$_current; if (t6 == null) t6 = t5._as(t6); if ($directories.contains$1(0, t6)) { if (!seen.add$1(0, t6)) A.ExecutableOptions__fail(_s18_ + t6 + '".'); t3.$indexSet(0, t6, t6); t1.addAll$1(0, _this._listSourceDirectory$2(t6, t6)); continue; } _0_0 = _this._splitSourceAndDestination$1(t6); source = _0_0._0; destination = _0_0._1; if (!seen.add$1(0, source)) A.ExecutableOptions__fail(_s18_ + source + '".'); if (source === "-") t1.$indexSet(0, _null, destination); else if (A.dirExists(source)) { t3.$indexSet(0, source, destination); t1.addAll$1(0, _this._listSourceDirectory$2(source, destination)); } else t1.$indexSet(0, source, destination); } _this._sourcesToDestinations = new A.UnmodifiableMapView(new A.PathMap(t1, t4), type$.UnmodifiableMapView_of_nullable_String_and_nullable_String); _this.__ExecutableOptions__sourceDirectoriesToDestinations_F !== $ && A.throwUnnamedLateFieldAI(); _this.__ExecutableOptions__sourceDirectoriesToDestinations_F = new A.UnmodifiableMapView(new A.PathMap(t3, t4), type$.UnmodifiableMapView_of_nullable_String_and_String); }, _splitSourceAndDestination$1(argument) { var t1, i, t2, t3, nextColon; for (t1 = argument.length, i = 0; i < t1; ++i) { if (i === 1) { t2 = i - 1; if (t1 > t2 + 2) { t3 = argument.charCodeAt(t2); if (!(t3 >= 97 && t3 <= 122)) t3 = t3 >= 65 && t3 <= 90; else t3 = true; t2 = t3 && argument.charCodeAt(t2 + 1) === 58; } else t2 = false; } else t2 = false; if (t2) continue; if (argument.charCodeAt(i) === 58) { t2 = i + 1; nextColon = B.JSString_methods.indexOf$2(argument, ":", t2); if (nextColon === i + 2) if (t1 > t2 + 2) { t1 = argument.charCodeAt(t2); if (!(t1 >= 97 && t1 <= 122)) t1 = t1 >= 65 && t1 <= 90; else t1 = true; t1 = t1 && argument.charCodeAt(t2 + 1) === 58; } else t1 = false; else t1 = false; if ((t1 ? B.JSString_methods.indexOf$2(argument, ":", nextColon + 1) : nextColon) !== -1) A.ExecutableOptions__fail('"' + argument + '" may only contain one ":".'); return new A._Record_2(B.JSString_methods.substring$2(argument, 0, i), B.JSString_methods.substring$1(argument, t2)); } } throw A.wrapException(A.ArgumentError$('Expected "' + argument + '" to contain a colon.', null)); }, _listSourceDirectory$2(source, destination) { var t2, t3, t4, t5, t1 = type$.String; t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t2 = J.get$iterator$ax(A.listDir(source, true)), t3 = source === destination; t2.moveNext$0();) { t4 = t2.get$current(t2); if (this._isEntrypoint$1(t4)) t5 = !(t3 && A.ParsedPath_ParsedPath$parse(t4, $.$get$context().style)._splitExtension$1(1)[1] === ".css"); else t5 = false; if (t5) { t5 = $.$get$context(); t1.$indexSet(0, t4, A.join(destination, t5.withoutExtension$1(t5.relative$2$from(t4, source)) + ".css", null)); } } return t1; }, _isEntrypoint$1(path) { var extension, t1 = $.$get$context().style; if (B.JSString_methods.startsWith$1(A.ParsedPath_ParsedPath$parse(path, t1).get$basename(), "_")) return false; extension = A.ParsedPath_ParsedPath$parse(path, t1)._splitExtension$1(1)[1]; return extension === ".scss" || extension === ".sass" || extension === ".css"; }, get$_writeToStdout() { var t1, _this = this; _this._ensureSources$0(); t1 = _this._sourcesToDestinations; if (t1.get$length(t1) === 1) { _this._ensureSources$0(); t1 = _this._sourcesToDestinations; t1 = t1.get$values(t1); t1 = t1.get$single(t1) == null; } else t1 = false; return t1; }, get$emitSourceMap() { var _this = this, _s10_ = "source-map", _s15_ = "source-map-urls", _s13_ = "embed-sources", _s16_ = "embed-source-map", t1 = _this._options; if (!A._asBool(t1.$index(0, _s10_))) if (t1.wasParsed$1(_s15_)) A.ExecutableOptions__fail("--source-map-urls isn't allowed with --no-source-map."); else if (t1.wasParsed$1(_s13_)) A.ExecutableOptions__fail("--embed-sources isn't allowed with --no-source-map."); else if (t1.wasParsed$1(_s16_)) A.ExecutableOptions__fail("--embed-source-map isn't allowed with --no-source-map."); if (!_this.get$_writeToStdout()) return A._asBool(t1.$index(0, _s10_)); if (J.$eq$(_this._ifParsed$1(_s15_), "relative")) A.ExecutableOptions__fail("--source-map-urls=relative isn't allowed when printing to stdout."); if (A._asBool(t1.$index(0, _s16_))) return A._asBool(t1.$index(0, _s10_)); else if (J.$eq$(_this._ifParsed$1(_s10_), true)) A.ExecutableOptions__fail("When printing to stdout, --source-map requires --embed-source-map."); else if (t1.wasParsed$1(_s15_)) A.ExecutableOptions__fail("When printing to stdout, --source-map-urls requires --embed-source-map."); else if (A._asBool(t1.$index(0, _s13_))) A.ExecutableOptions__fail("When printing to stdout, --embed-sources requires --embed-source-map."); else return false; }, sourceMapUrl$2(_, url, destination) { var t1, path, t2, _null = null; if (url.get$scheme().length !== 0 && url.get$scheme() !== "file") return url; t1 = $.$get$context(); path = t1.style.pathFromUri$1(A._parseUri(url)); if (J.$eq$(this._options.$index(0, "source-map-urls"), "relative") && !this.get$_writeToStdout()) { destination.toString; t2 = t1.relative$2$from(path, t1.dirname$1(destination)); } else t2 = A.absolute(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null); return t1.toUri$1(t2); }, get$fatalDeprecations() { var t1 = this._fatalDeprecations; return t1 == null ? this._fatalDeprecations = new A.ExecutableOptions_fatalDeprecations_closure(this).call$0() : t1; }, get$futureDeprecations() { var t2, t3, t4, t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.Deprecation); for (t2 = J.get$iterator$ax(type$.List_String._as(this._options.$index(0, "future-deprecation"))); t2.moveNext$0();) { t3 = t2.get$current(t2); t4 = A.Deprecation_fromId(t3); t1.add$1(0, t4 == null ? A.ExecutableOptions__fail('Invalid deprecation "' + t3 + '".') : t4); } return t1; }, _ifParsed$1($name) { var t1 = this._options; return t1.wasParsed$1($name) ? t1.$index(0, $name) : null; } }; A.ExecutableOptions__parser_closure.prototype = { call$0() { var _i, deprecation, _0_4, $self, id, description, t4, _1_5, _null = null, t1 = type$.String, t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Option), t3 = [], 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); parser.addOption$2$hide("precision", true); parser.addFlag$2$hide("async", true); t3.push(A.ExecutableOptions__separator("Input and Output")); parser.addFlag$2$help("stdin", "Read the stylesheet from stdin."); parser.addFlag$2$help("indented", "Use the indented syntax for input from stdin."); parser.addMultiOption$5$abbr$help$splitCommas$valueHelp("load-path", "I", "A path to use when resolving imports.\nMay be passed multiple times.", false, "PATH"); t2 = type$.JSArray_String; parser.addOption$6$abbr$allowed$defaultsTo$help$valueHelp("style", "s", A._setArrayType(["expanded", "compressed"], t2), "expanded", "Output style.", "NAME"); parser.addFlag$3$defaultsTo$help("charset", true, "Emit a @charset or BOM for CSS with non-ASCII characters."); 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."); parser.addFlag$3$help$negatable("update", "Only compile out-of-date stylesheets.", false); t3.push(A.ExecutableOptions__separator("Source Maps")); parser.addFlag$3$defaultsTo$help("source-map", true, "Whether to generate source maps."); parser.addOption$4$allowed$defaultsTo$help("source-map-urls", A._setArrayType(["relative", "absolute"], t2), "relative", "How to link from source maps to source files."); parser.addFlag$3$defaultsTo$help("embed-sources", false, "Embed source file contents in source maps."); parser.addFlag$3$defaultsTo$help("embed-source-map", false, "Embed source map contents in CSS."); t3.push(A.ExecutableOptions__separator("Warnings")); parser.addFlag$3$abbr$help("quiet", "q", "Don't print warnings."); parser.addFlag$2$help("quiet-deps", "Don't print compiler warnings from dependencies.\nStylesheets imported through load paths count as dependencies."); parser.addFlag$2$help("verbose", "Print all deprecation warnings even when they're repetitive."); t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (_i = 0; _i < 16; ++_i) { deprecation = B.List_GN8[_i]; _0_4 = A._InitializedCell$(new A.ExecutableOptions__parser__closure(deprecation)); $self = deprecation._deprecatedIn; if (($self == null ? _null : A.Version___parse_tearOff($self)) != null && true) { id = deprecation.id; if (_0_4._readFinal$0() != null) { description = _0_4._readFinal$0(); t4 = true; } else { description = _null; t4 = false; } } else { description = _null; id = description; t4 = false; } if (t4) t2.$indexSet(0, id, description); } parser.addMultiOption$3$allowedHelp$help("fatal-deprecation", t2, "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."); t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (_i = 0; _i < 16; ++_i) { deprecation = B.List_GN8[_i]; _1_5 = A._InitializedCell$(new A.ExecutableOptions__parser__closure0(deprecation)); $self = deprecation._deprecatedIn; if (($self == null ? _null : A.Version___parse_tearOff($self)) == null) { id = deprecation.id; if (_1_5._readFinal$0() != null) { description = _1_5._readFinal$0(); t2 = true; } else { description = _null; t2 = false; } } else { description = _null; id = description; t2 = false; } if (t2) t1.$indexSet(0, id, description); } parser.addMultiOption$3$allowedHelp$help("future-deprecation", t1, "Opt in to a deprecation early."); t3.push(A.ExecutableOptions__separator("Other")); parser.addFlag$4$abbr$help$negatable("watch", "w", "Watch stylesheets and recompile when they change.", false); parser.addFlag$2$help("poll", "Manually check for changes rather than using a native watcher.\nOnly valid with --watch."); parser.addFlag$2$help("stop-on-error", "Don't compile more files once an error is encountered."); parser.addFlag$4$abbr$help$negatable("interactive", "i", "Run an interactive SassScript shell.", false); parser.addFlag$3$abbr$help("color", "c", "Whether to use terminal colors for messages."); parser.addFlag$2$help("unicode", "Whether to use Unicode characters for messages."); parser.addFlag$2$help("trace", "Print full Dart stack traces for exceptions."); parser.addFlag$4$abbr$help$negatable("help", "h", "Print this usage information.", false); parser.addFlag$3$help$negatable("version", "Print the version of Dart Sass.", false); return parser; }, $signature: 337 }; A.ExecutableOptions__parser__closure.prototype = { call$0() { return this._0_0.description; }, $signature: 32 }; A.ExecutableOptions__parser__closure0.prototype = { call$0() { return this._1_0.description; }, $signature: 32 }; A.ExecutableOptions_interactive_closure.prototype = { call$0() { var _0_0, option, t1 = this.$this._options; if (!A._asBool(t1.$index(0, "interactive"))) return false; _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()); if (_0_0 != null) { option = _0_0; t1 = true; } else { option = null; t1 = false; } if (t1) throw A.wrapException(A.UsageException$("--" + A.S(option) + " isn't allowed with --interactive.")); return true; }, $signature: 1 }; A.ExecutableOptions_emitErrorCss_closure.prototype = { call$1(destination) { return destination != null; }, $signature: 171 }; A.ExecutableOptions_fatalDeprecations_closure.prototype = { call$0() { var id, argVersion, sassVersion, t1, t2, _0_0, deprecation, t3, exception, deprecations = A.LinkedHashSet_LinkedHashSet$_empty(type$.Deprecation); for (t1 = J.get$iterator$ax(type$.List_String._as(this.$this._options.$index(0, "fatal-deprecation"))), t2 = type$.FormatException; t1.moveNext$0();) { id = t1.get$current(t1); _0_0 = A.Deprecation_fromId(id); if (_0_0 != null) { deprecation = _0_0; t3 = true; } else { deprecation = null; t3 = false; } if (t3) { J.add$1$ax(deprecations, deprecation); continue; } try { argVersion = A.Version_Version$parse(id); sassVersion = A.Version_Version$parse("1.69.5"); if (J.compareTo$1$ns(argVersion, sassVersion) > 0) A.ExecutableOptions__fail("Invalid version " + A.S(argVersion) + ". --fatal-deprecation requires a version less than or equal to the current Dart Sass version."); J.addAll$1$ax(deprecations, A.Deprecation_forVersion(argVersion)); } catch (exception) { if (t2._is(A.unwrapException(exception))) A.ExecutableOptions__fail('Invalid deprecation "' + A.S(id) + '".'); else throw exception; } } return deprecations; }, $signature: 339 }; A.UsageException.prototype = {$isException: 1, get$message(receiver) { return this.message; } }; A.watch_closure.prototype = { call$1(dir) { for (; !A.dirExists(dir);) dir = $.$get$context().dirname$1(dir); return this.dirWatcher.watch$1(0, dir); }, $signature: 340 }; A._Watcher.prototype = { _delete$1(path) { var buffer, t1, exception; try { A.deleteFile(path); buffer = new A.StringBuffer(""); t1 = this._watch$_options; if (t1.get$color()) buffer._contents += "\x1b[33m"; buffer._contents += "Deleted " + path + "."; if (t1.get$color()) buffer._contents += "\x1b[0m"; A.print(buffer); } catch (exception) { if (!(A.unwrapException(exception) instanceof A.FileSystemException)) throw exception; } }, watch$1(_, watcher) { return this.watch$body$_Watcher(0, watcher); }, watch$body$_Watcher(_, watcher) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, $event, extension, success, success0, success1, t2, t1; var $async$watch$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start t1 = watcher._group.__StreamGroup__controller_A; t1 === $ && A.throwUnnamedLateFieldNI(); t1 = new A._StreamIterator(A.checkNotNullable($async$self._debounceEvents$1(new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>"))), "stream", type$.Object)); $async$handler = 3; t2 = $async$self._watch$_options._options; case 6: // for condition $async$goto = 8; return A._asyncAwait(t1.moveNext$0(), $async$watch$1); case 8: // returning from await. if (!$async$result) { // goto after for $async$goto = 7; break; } $event = t1.get$current(t1); extension = A.ParsedPath_ParsedPath$parse($event.path, $.$get$context().style)._splitExtension$1(1)[1]; if (!J.$eq$(extension, ".sass") && !J.$eq$(extension, ".scss") && !J.$eq$(extension, ".css")) { // goto for condition $async$goto = 6; break; } case 9: // switch switch ($event.type) { case B.ChangeType_modify: // goto case $async$goto = 11; break; case B.ChangeType_add: // goto case $async$goto = 12; break; case B.ChangeType_remove: // goto case $async$goto = 13; break; default: // goto after switch $async$goto = 10; break; } break; case 11: // case $async$goto = 14; return A._asyncAwait($async$self._handleModify$1($event.path), $async$watch$1); case 14: // returning from await. success = $async$result; if (!success && A._asBool(t2.$index(0, "stop-on-error"))) { $async$next = [1]; // goto finally $async$goto = 4; break; } // goto after switch $async$goto = 10; break; case 12: // case $async$goto = 15; return A._asyncAwait($async$self._handleAdd$1($event.path), $async$watch$1); case 15: // returning from await. success0 = $async$result; if (!success0 && A._asBool(t2.$index(0, "stop-on-error"))) { $async$next = [1]; // goto finally $async$goto = 4; break; } // goto after switch $async$goto = 10; break; case 13: // case $async$goto = 16; return A._asyncAwait($async$self._handleRemove$1($event.path), $async$watch$1); case 16: // returning from await. success1 = $async$result; if (!success1 && A._asBool(t2.$index(0, "stop-on-error"))) { $async$next = [1]; // goto finally $async$goto = 4; break; } // goto after switch $async$goto = 10; break; case 10: // after switch // goto for condition $async$goto = 6; break; case 7: // after for $async$next.push(5); // goto finally $async$goto = 4; break; case 3: // uncaught $async$next = [2]; case 4: // finally $async$handler = 2; $async$goto = 17; return A._asyncAwait(t1.cancel$0(), $async$watch$1); case 17: // returning from await. // goto the next finally handler $async$goto = $async$next.pop(); break; case 5: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$watch$1, $async$completer); }, _handleModify$1(path) { return this._handleModify$body$_Watcher(path); }, _handleModify$body$_Watcher(path) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.bool), $async$returnValue, $async$self = this, t2, t0, url, _0_0, node, t1; var $async$_handleModify$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = A.isNodeJs() ? self.process : null; if (!J.$eq$(t1 == null ? null : J.get$platform$x(t1), "win32")) { t1 = A.isNodeJs() ? self.process : null; t1 = J.$eq$(t1 == null ? null : J.get$platform$x(t1), "darwin"); } else t1 = true; if (t1) { t1 = $.$get$context(); t2 = A._realCasePath(A.absolute(t1.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null)); t0 = t2; t2 = t1; t1 = t0; } else { t1 = $.$get$context(); t2 = t1.canonicalize$1(0, path); t0 = t2; t2 = t1; t1 = t0; } url = t2.toUri$1(t1); t1 = $async$self._graph; _0_0 = t1._nodes.$index(0, url); if (_0_0 != null) { node = _0_0; t2 = true; } else { node = null; t2 = false; } $async$goto = t2 ? 3 : 5; break; case 3: // then t1.reload$1(url); $async$goto = 6; return A._asyncAwait($async$self._recompileDownstream$1(A._setArrayType([node], type$.JSArray_StylesheetNode)), $async$_handleModify$1); case 6: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; // goto join $async$goto = 4; break; case 5: // else $async$returnValue = $async$self._handleAdd$1(path); // goto return $async$goto = 1; break; case 4: // join case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_handleModify$1, $async$completer); }, _handleAdd$1(path) { return this._handleAdd$body$_Watcher(path); }, _handleAdd$body$_Watcher(path) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.bool), $async$returnValue, $async$self = this, t1, success, t2, t3, t0, destination; var $async$_handleAdd$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start destination = $async$self._destinationFor$1(path); $async$goto = destination != null ? 3 : 5; break; case 3: // then t1 = type$.nullable_String; $async$goto = 6; return A._asyncAwait(A.compileStylesheets($async$self._watch$_options, $async$self._graph, A.LinkedHashMap_LinkedHashMap$_literal([path, destination], t1, t1), true), $async$_handleAdd$1); case 6: // returning from await. success = $async$result; // goto join $async$goto = 4; break; case 5: // else success = true; case 4: // join t1 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null); t2 = A.isNodeJs() ? self.process : null; if (!J.$eq$(t2 == null ? null : J.get$platform$x(t2), "win32")) { t2 = A.isNodeJs() ? self.process : null; t2 = J.$eq$(t2 == null ? null : J.get$platform$x(t2), "darwin"); } else t2 = true; if (t2) { t2 = $.$get$context(); t3 = A._realCasePath(A.absolute(t2.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null)); t0 = t3; t3 = t2; t2 = t0; } else { t2 = $.$get$context(); t3 = t2.canonicalize$1(0, path); t0 = t3; t3 = t2; t2 = t0; } $async$goto = 7; return A._asyncAwait($async$self._recompileDownstream$1($async$self._graph.addCanonical$3(new A.FilesystemImporter(t1), t3.toUri$1(t2), t3.toUri$1(path))), $async$_handleAdd$1); case 7: // returning from await. $async$returnValue = $async$result && success; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_handleAdd$1, $async$completer); }, _handleRemove$1(path) { return this._handleRemove$body$_Watcher(path); }, _handleRemove$body$_Watcher(path) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.bool), $async$returnValue, $async$self = this, t2, t0, url, _0_0, destination, t3, node, toRecompile, t1; var $async$_handleRemove$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = A.isNodeJs() ? self.process : null; if (!J.$eq$(t1 == null ? null : J.get$platform$x(t1), "win32")) { t1 = A.isNodeJs() ? self.process : null; t1 = J.$eq$(t1 == null ? null : J.get$platform$x(t1), "darwin"); } else t1 = true; if (t1) { t1 = $.$get$context(); t2 = A._realCasePath(A.absolute(t1.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null)); t0 = t2; t2 = t1; t1 = t0; } else { t1 = $.$get$context(); t2 = t1.canonicalize$1(0, path); t0 = t2; t2 = t1; t1 = t0; } url = t2.toUri$1(t1); t1 = $async$self._graph; t2 = t1._nodes; if (t2.containsKey$1(url)) { _0_0 = $async$self._destinationFor$1(path); if (_0_0 != null) { destination = _0_0; t3 = true; } else { destination = null; t3 = false; } if (t3) $async$self._delete$1(destination); } t3 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null); node = t2.remove$1(0, url); t2 = node != null; if (t2) { t1._transitiveModificationTimes.clear$0(0); t1.importCache.clearImport$1(url); node._stylesheet_graph$_remove$0(); } toRecompile = t1._recanonicalizeImports$2(new A.FilesystemImporter(t3), url); if (t2) toRecompile.addAll$1(0, node._downstream); $async$goto = 3; return A._asyncAwait($async$self._recompileDownstream$1(toRecompile), $async$_handleRemove$1); case 3: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_handleRemove$1, $async$completer); }, _debounceEvents$1(events) { var t1 = type$.WatchEvent; t1 = A.RateLimit__debounceAggregate(events, A.Duration$(25), A.instantiate1(A.rate_limit___collect$closure(), t1), false, true, t1, type$.List_WatchEvent); return new A._ExpandStream(new A._Watcher__debounceEvents_closure(), t1, A._instanceType(t1)._eval$1("_ExpandStream")); }, _recompileDownstream$1(nodes) { return this._recompileDownstream$body$_Watcher(nodes); }, _recompileDownstream$body$_Watcher(nodes) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.bool), $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, allSucceeded, t6, t7, t8, sourcesToDestinations, success, _i, seen; var $async$_recompileDownstream$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start seen = A.LinkedHashSet_LinkedHashSet$_empty(type$.StylesheetNode); t1 = type$.UnmodifiableSetView_StylesheetNode, t2 = type$.JSArray_StylesheetNode, t3 = $async$self._watch$_options, t4 = $async$self._graph, t5 = t3._options, allSucceeded = true; case 3: // for condition if (!(t6 = J.getInterceptor$asx(nodes), t6.get$isNotEmpty(nodes))) { // goto after for $async$goto = 5; break; } t7 = A._setArrayType([], t2); for (t6 = t6.get$iterator(nodes); t6.moveNext$0();) { t8 = t6.get$current(t6); if (seen.add$1(0, t8)) t7.push(t8); } sourcesToDestinations = $async$self._sourceEntrypointsToDestinations$1(t7); $async$goto = sourcesToDestinations.__js_helper$_length !== 0 ? 6 : 7; break; case 6: // then $async$goto = 8; return A._asyncAwait(A.compileStylesheets(t3, t4, sourcesToDestinations, true), $async$_recompileDownstream$1); case 8: // returning from await. success = $async$result; if (!success && A._asBool(t5.$index(0, "stop-on-error"))) { $async$returnValue = false; // goto return $async$goto = 1; break; } allSucceeded = allSucceeded && success; case 7: // join t6 = A._setArrayType([], t2); for (t8 = t7.length, _i = 0; _i < t7.length; t7.length === t8 || (0, A.throwConcurrentModificationError)(t7), ++_i) B.JSArray_methods.addAll$1(t6, new A.UnmodifiableSetView0(t7[_i]._downstream, t1)); case 4: // for update nodes = t6; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = allSucceeded; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_recompileDownstream$1, $async$completer); }, _sourceEntrypointsToDestinations$1(nodes) { var _i, url, source, _0_0, destination, t2, t1 = type$.String, entrypoints = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t1 = nodes.length, _i = 0; _i < nodes.length; nodes.length === t1 || (0, A.throwConcurrentModificationError)(nodes), ++_i) { url = nodes[_i].canonicalUrl; if (url.get$scheme() !== "file") continue; source = $.$get$context().style.pathFromUri$1(A._parseUri(url)); _0_0 = this._destinationFor$1(source); if (_0_0 != null) { destination = _0_0; t2 = true; } else { destination = null; t2 = false; } if (t2) entrypoints.$indexSet(0, source, destination); } return entrypoints; }, _destinationFor$1(source) { var t2, _0_0, destination, t3, sourceDir, destinationDir, _null = null, t1 = this._watch$_options; t1._ensureSources$0(); t2 = type$.String; _0_0 = t1._sourcesToDestinations.cast$2$0(0, t2, t2).$index(0, source); if (_0_0 != null) { destination = _0_0; t3 = true; } else { destination = _null; t3 = false; } if (t3) return destination; t3 = $.$get$context(); if (B.JSString_methods.startsWith$1(A.ParsedPath_ParsedPath$parse(source, t3.style).get$basename(), "_")) return _null; t1._ensureSources$0(); t1 = t1.__ExecutableOptions__sourceDirectoriesToDestinations_F; t1 === $ && A.throwUnnamedLateFieldNI(); t2 = A.MapExtensions_get_pairs(t1.cast$2$0(0, t2, t2), t2, t2); t2 = t2.get$iterator(t2); for (; t2.moveNext$0();) { t1 = t2.get$current(t2); sourceDir = t1._0; destinationDir = t1._1; if (t3._isWithinOrEquals$2(sourceDir, source) !== B._PathRelation_within) continue; destination = A.join(destinationDir, t3.withoutExtension$1(t3.relative$2$from(source, sourceDir)) + ".css", _null); if (t3._isWithinOrEquals$2(destination, source) !== B._PathRelation_equal) return destination; } return _null; } }; A._Watcher__debounceEvents_closure.prototype = { call$1(buffer) { var t3, t4, t5, _0_0, _0_1, _0_4, newType, _1_1, type, t1 = type$.ChangeType, t2 = A.PathMap__create(null, t1); for (t3 = J.get$iterator$ax(buffer); t3.moveNext$0();) { t4 = t3.get$current(t3); t5 = t4.path; _0_0 = new A._Record_2(t2.$index(0, t5), t4.type); _0_1 = A._InitializedCell$(new A._Watcher__debounceEvents__closure(_0_0)); _0_4 = A._InitializedCell$(new A._Watcher__debounceEvents__closure0(_0_0)); $label0$0: { if (_0_1._readFinal$0() == null) { newType = _0_4._readFinal$0(); t4 = true; } else { newType = null; t4 = false; } if (t4) { t4 = newType; break $label0$0; } if (B.ChangeType_remove === _0_4._readFinal$0()) { t4 = B.ChangeType_remove; break $label0$0; } if (B.ChangeType_add === _0_1._readFinal$0()) { t4 = B.ChangeType_add; break $label0$0; } t4 = B.ChangeType_modify; break $label0$0; } t2.$indexSet(0, t5, t4); } t3 = A._setArrayType([], type$.JSArray_WatchEvent); 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();) { t2 = t1.get$current(t1); _1_1 = A._InitializedCell$(new A._Watcher__debounceEvents__closure1(t2)); _1_1._readFinal$0().toString; t4 = _1_1._readFinal$0(); t4.toString; type = t2._1; type = type; t3.push(new A.WatchEvent(type, t4)); } return t3; }, $signature: 344 }; A._Watcher__debounceEvents__closure.prototype = { call$0() { return this._0_0._0; }, $signature: 349 }; A._Watcher__debounceEvents__closure0.prototype = { call$0() { return this._0_0._1; }, $signature: 351 }; A._Watcher__debounceEvents__closure1.prototype = { call$0() { return this._1_0._0; }, $signature: 32 }; A.EmptyExtensionStore.prototype = { get$_extensions() { return A.throwExpression(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, A.JSInvocationMirror$(B.Symbol__extensions, "get$_empty_extension_store$_extensions", 1, [], [], 0))); }, get$_sourceSpecificity() { return A.throwExpression(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, A.JSInvocationMirror$(B.Symbol__sourceSpecificity, "get$_empty_extension_store$_sourceSpecificity", 1, [], [], 0))); }, get$isEmpty(_) { return true; }, get$simpleSelectors() { return B.C_EmptyUnmodifiableSet; }, extensionsWhereTarget$1(callback) { return B.List_empty5; }, addExtensions$1(extenders) { throw A.wrapException(A.UnsupportedError$(string$.addExt)); }, clone$0() { return B.Record2_EmptyExtensionStore_Map_empty; }, $isExtensionStore: 1 }; A.Extension.prototype = { toString$0(_) { var t1 = this.extender.toString$0(0), t2 = this.target.toString$0(0), t3 = this.isOptional ? " !optional" : ""; return t1 + " {@extend " + t2 + t3 + "}"; } }; A.Extender.prototype = { assertCompatibleMediaContext$1(mediaContext) { var expectedMediaContext, extension = this._extension; if (extension == null) return; expectedMediaContext = extension.mediaContext; if (expectedMediaContext == null) return; if (mediaContext != null && B.C_ListEquality.equals$2(0, expectedMediaContext, mediaContext)) return; throw A.wrapException(A.SassException$(string$.You_ma, extension.span, null)); }, toString$0(_) { return A.serializeSelector(this.selector, true); } }; A.ExtensionStore.prototype = { get$isEmpty(_) { return this._extensions.__js_helper$_length === 0; }, get$simpleSelectors() { return new A.MapKeySet(this._selectors, type$.MapKeySet_SimpleSelector); }, extensionsWhereTarget$1(callback) { return new A._SyncStarIterable(this.extensionsWhereTarget$body$ExtensionStore(callback), type$._SyncStarIterable_Extension); }, extensionsWhereTarget$body$ExtensionStore($async$callback) { var $async$self = this; return function() { var callback = $async$callback; var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, simple, sources, t3; return function $async$extensionsWhereTarget$1($async$iterator, $async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start t1 = A.MapExtensions_get_pairs($async$self._extensions, type$.SimpleSelector, type$.Map_ComplexSelector_Extension), t1 = t1.get$iterator(t1); case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } t2 = t1.get$current(t1); simple = t2._0; sources = t2._1; if (!callback.call$1(simple)) { // goto for condition $async$goto = 2; break; } t2 = sources.get$values(sources), t2 = t2.get$iterator(t2); case 4: // for condition if (!t2.moveNext$0()) { // goto after for $async$goto = 5; break; } t3 = t2.get$current(t2); $async$goto = t3 instanceof A.MergedExtension ? 6 : 8; break; case 6: // then t3 = t3.unmerge$0(); $async$goto = 9; return $async$iterator._yieldStar$1(new A.WhereIterable(t3, new A.ExtensionStore_extensionsWhereTarget_closure(), t3.$ti._eval$1("WhereIterable"))); case 9: // after yield // goto join $async$goto = 7; break; case 8: // else $async$goto = !t3.isOptional ? 10 : 11; break; case 10: // then $async$goto = 12; return $async$iterator._async$_current = t3, 1; case 12: // after yield case 11: // join case 7: // join // goto for condition $async$goto = 4; break; case 5: // after for // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return 0; case 1: // rethrow return $async$iterator._datum = $async$currentError, 3; } }; }; }, addSelector$2(selector, mediaContext) { var originalSelector, error, stackTrace, t1, exception, t2, t3, t4, modifiableSelector, _this = this; selector = selector; originalSelector = selector; if (!originalSelector.accept$1(B._IsInvisibleVisitor_true)) _this._originals.addAll$1(0, originalSelector.components); t1 = _this._extensions; if (t1.__js_helper$_length !== 0) try { selector = _this._extendList$3(originalSelector, t1, mediaContext); } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = error; t2 = J.getInterceptor$z(t1); t1 = A.SourceSpanException.prototype.get$span.call(t2, t1).message$1(0, ""); t2 = error._span_exception$_message; t3 = error; t4 = J.getInterceptor$z(t3); t3 = A.SourceSpanException.prototype.get$span.call(t4, t3); A.throwWithTrace(new A.SassException(B.Set_empty, "From " + t1 + "\n" + t2, t3), error, stackTrace); } else throw exception; } modifiableSelector = new A.ModifiableBox(selector, type$.ModifiableBox_SelectorList); if (mediaContext != null) _this._mediaContexts.$indexSet(0, modifiableSelector, mediaContext); _this._registerSelector$2(selector, modifiableSelector); return new A.Box(modifiableSelector, type$.Box_SelectorList); }, _registerSelector$2(list, selector) { var t1, t2, t3, _i, t4, t5, _i0, t6, t7, _i1, simple, _0_2, selectorInPseudo, t8; for (t1 = list.components, t2 = t1.length, t3 = this._selectors, _i = 0; _i < t2; ++_i) for (t4 = t1[_i].components, t5 = t4.length, _i0 = 0; _i0 < t5; ++_i0) for (t6 = t4[_i0].selector.components, t7 = t6.length, _i1 = 0; _i1 < t7; ++_i1) { simple = t6[_i1]; J.add$1$ax(t3.putIfAbsent$2(simple, new A.ExtensionStore__registerSelector_closure()), selector); _0_2 = A._InitializedCell$(new A.ExtensionStore__registerSelector_closure0(simple)); if (simple instanceof A.PseudoSelector) if (_0_2._readFinal$0() != null) { selectorInPseudo = _0_2._readFinal$0(); t8 = true; } else { selectorInPseudo = null; t8 = false; } else { selectorInPseudo = null; t8 = false; } if (t8) this._registerSelector$2(selectorInPseudo, selector); } }, addExtension$4(extender, target, extend, mediaContext) { var t2, t3, t4, t5, t6, t7, t8, t9, t10, newExtensions, _i, complex, t11, extension, _0_0, existingExtension, t12, newExtensionsByTarget, additionalExtensions, _this = this, selectors = _this._selectors.$index(0, target), t1 = _this._extensionsByExtender, existingExtensions = t1.$index(0, target), sources = _this._extensions.putIfAbsent$2(target, new A.ExtensionStore_addExtension_closure()); 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) { complex = t2[_i]; if (complex.accept$1(B.C__IsUselessVisitor)) continue; complex.get$specificity(); t11 = new A.Extender(complex, false); extension = t11._extension = new A.Extension(t11, target, mediaContext, t7, t6); _0_0 = sources.$index(0, complex); if (_0_0 != null) { existingExtension = _0_0; t11 = true; } else { existingExtension = null; t11 = false; } if (t11) { sources.$indexSet(0, complex, A.MergedExtension_merge(existingExtension, extension)); continue; } sources.$indexSet(0, complex, extension); for (t11 = new A._SyncStarIterator(_this._simpleSelectors$1(complex)._outerHelper()); t11.moveNext$0();) { t12 = t11._async$_current; J.add$1$ax(t1.putIfAbsent$2(t12, new A.ExtensionStore_addExtension_closure0()), extension); t5.putIfAbsent$2(t12, new A.ExtensionStore_addExtension_closure1(complex)); } if (!t4 || t8) { if (newExtensions == null) newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t9, t10); newExtensions.$indexSet(0, complex, extension); } } if (newExtensions == null) return; t1 = type$.SimpleSelector; newExtensionsByTarget = A.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], t1, type$.Map_ComplexSelector_Extension); if (t8) { additionalExtensions = _this._extendExistingExtensions$2(existingExtensions, newExtensionsByTarget); if (additionalExtensions != null) A.mapAddAll2(newExtensionsByTarget, additionalExtensions, t1, t9, t10); } if (!t4) _this._extendExistingSelectors$2(selectors, newExtensionsByTarget); }, _simpleSelectors$1(complex) { return new A._SyncStarIterable(this._simpleSelectors$body$ExtensionStore(complex), type$._SyncStarIterable_SimpleSelector); }, _simpleSelectors$body$ExtensionStore($async$complex) { var $async$self = this; return function() { var complex = $async$complex; var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, _i, t3, t4, _i0, simple, _0_2, selector, t5, t6, _i1; return function $async$_simpleSelectors$1($async$iterator, $async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start t1 = complex.components, t2 = t1.length, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } t3 = t1[_i].selector.components, t4 = t3.length, _i0 = 0; case 5: // for condition if (!(_i0 < t4)) { // goto after for $async$goto = 7; break; } simple = t3[_i0]; $async$goto = 8; return $async$iterator._async$_current = simple, 1; case 8: // after yield _0_2 = A._InitializedCell$(new A.ExtensionStore__simpleSelectors_closure(simple)); if (simple instanceof A.PseudoSelector) if (_0_2._readFinal$0() != null) { selector = _0_2._readFinal$0(); t5 = true; } else { selector = null; t5 = false; } else { selector = null; t5 = false; } $async$goto = t5 ? 9 : 10; break; case 9: // then t5 = selector.components, t6 = t5.length, _i1 = 0; case 11: // for condition if (!(_i1 < t6)) { // goto after for $async$goto = 13; break; } $async$goto = 14; return $async$iterator._yieldStar$1($async$self._simpleSelectors$1(t5[_i1])); case 14: // after yield case 12: // for update ++_i1; // goto for condition $async$goto = 11; break; case 13: // after for case 10: // join case 6: // for update ++_i0; // goto for condition $async$goto = 5; break; case 7: // after for case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return 0; case 1: // rethrow return $async$iterator._datum = $async$currentError, 3; } }; }; }, _extendExistingExtensions$2(extensions, newExtensions) { var extension, selectors, error, stackTrace, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, t7, exception, t8, t9, containsExtension, selectors0, t10, t11, t12, t13, t14, withExtender, _0_0, existingExtension, _i0, _i1, _null = null; 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) { extension = t1[_i]; t7 = t6.$index(0, extension.target); t7.toString; selectors = null; try { selectors = this._extendComplex$3(extension.extender.selector, newExtensions, extension.mediaContext); if (selectors == null) continue; } catch (exception) { t8 = A.unwrapException(exception); if (t8 instanceof A.SassException) { error = t8; stackTrace = A.getTraceFromException(exception); A.throwWithTrace(error.withAdditionalSpan$2(extension.extender.selector.span, "target selector"), error, stackTrace); } else throw exception; } t8 = J.get$first$ax(selectors); t9 = extension.extender.selector; containsExtension = B.C_ListEquality.equals$2(0, t8.leadingCombinators, t9.leadingCombinators) && B.C_ListEquality.equals$2(0, t8.components, t9.components); if (containsExtension) { t8 = selectors; t9 = A.instanceType(t8); selectors0 = new A.SubListIterable(t8, 1, _null, t9._eval$1("SubListIterable<1>")); selectors0.SubListIterable$3(t8, 1, _null, t9._precomputed1); selectors = selectors0; } for (t8 = J.get$iterator$ax(selectors); t8.moveNext$0();) { t9 = t8.get$current(t8); t10 = extension; t11 = t10.target; t12 = t10.span; t13 = t10.mediaContext; t10 = t10.isOptional; t9.get$specificity(); t14 = new A.Extender(t9, false); withExtender = t14._extension = new A.Extension(t14, t11, t13, t10, t12); _0_0 = t7.$index(0, t9); if (_0_0 != null) { existingExtension = _0_0; t10 = true; } else { existingExtension = _null; t10 = false; } if (t10) t7.$indexSet(0, t9, A.MergedExtension_merge(existingExtension, withExtender)); else { t7.$indexSet(0, t9, withExtender); for (t10 = t9.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0) for (t12 = t10[_i0].selector.components, t13 = t12.length, _i1 = 0; _i1 < t13; ++_i1) J.add$1$ax(t3.putIfAbsent$2(t12[_i1], new A.ExtensionStore__extendExistingExtensions_closure()), withExtender); if (newExtensions.containsKey$1(extension.target)) { if (additionalExtensions == null) additionalExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t4, t5); additionalExtensions.putIfAbsent$2(extension.target, new A.ExtensionStore__extendExistingExtensions_closure0()).$indexSet(0, t9, withExtender); } } } if (!containsExtension) t7.remove$1(0, extension.extender); } return additionalExtensions; }, _extendExistingSelectors$2(selectors, newExtensions) { var selector, error, stackTrace, t1, t2, oldValue, exception, t3, t4, t5, t6; for (t1 = selectors.get$iterator(selectors), t2 = this._mediaContexts; t1.moveNext$0();) { selector = t1.get$current(t1); oldValue = selector.value; try { selector.value = this._extendList$3(selector.value, newExtensions, t2.$index(0, selector)); } catch (exception) { t3 = A.unwrapException(exception); if (t3 instanceof A.SassException) { error = t3; stackTrace = A.getTraceFromException(exception); t3 = selector.value.span.message$1(0, ""); t4 = error._span_exception$_message; t5 = error; t6 = J.getInterceptor$z(t5); t5 = A.SourceSpanException.prototype.get$span.call(t6, t5); A.throwWithTrace(new A.SassException(B.Set_empty, "From " + t3 + "\n" + t4, t5), error, stackTrace); } else throw exception; } if (oldValue === selector.value) continue; this._registerSelector$2(selector.value, selector); } }, addExtensions$1(extensionStores) { 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, existingSources, t16, extender, extension, _this = this, _null = null; 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();) { t12 = t1.get$current(t1); if (t12.get$isEmpty(t12)) continue; t11.addAll$1(0, t12.get$_sourceSpecificity()); for (t12 = A.MapExtensions_get_pairs(t12.get$_extensions(), t2, t3), t12 = t12.get$iterator(t12); t12.moveNext$0();) { t13 = t12.get$current(t12); target = t13._0; newSources = t13._1; if (target instanceof A.PlaceholderSelector) { first = target.name.charCodeAt(0); t13 = first === 45 || first === 95; } else t13 = false; if (t13) continue; extensionsForTarget = t8.$index(0, target); t13 = extensionsForTarget == null; if (!t13) { if (extensionsToExtend == null) { extensionsToExtend = A._setArrayType([], t9); t14 = extensionsToExtend; } else t14 = extensionsToExtend; B.JSArray_methods.addAll$1(t14, extensionsForTarget); } selectorsForTarget = t7.$index(0, target); t14 = selectorsForTarget != null; if (t14) { if (selectorsToExtend == null) { selectorsToExtend = A.LinkedHashSet_LinkedHashSet$_empty(t10); t15 = selectorsToExtend; } else t15 = selectorsToExtend; t15.addAll$1(0, selectorsForTarget); } _2_0 = t4.$index(0, target); if (_2_0 != null) { existingSources = _2_0; t15 = true; } else { existingSources = _null; t15 = false; } if (t15) for (t15 = A.MapExtensions_get_pairs(newSources, t5, t6), t15 = t15.get$iterator(t15); t15.moveNext$0();) { t16 = t15.get$current(t15); extender = t16._0; extension = t16._1; if (existingSources.containsKey$1(extender)) { t16 = existingSources.$index(0, extender); extension = A.MergedExtension_merge(t16, extension); existingSources.$indexSet(0, extender, extension); } else existingSources.$indexSet(0, extender, extension); if (!t13 || t14) { if (newExtensions == null) { newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3); t16 = newExtensions; } else t16 = newExtensions; J.$indexSet$ax(t16.putIfAbsent$2(target, new A.ExtensionStore_addExtensions_closure()), extender, extension); } } else { t15 = A.LinkedHashMap_LinkedHashMap(_null, _null, _null, t5, t6); t15.addAll$1(0, newSources); t4.$indexSet(0, target, t15); if (!t13 || t14) { if (newExtensions == null) { newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3); t13 = newExtensions; } else t13 = newExtensions; t14 = A.LinkedHashMap_LinkedHashMap(_null, _null, _null, t5, t6); t14.addAll$1(0, newSources); t13.$indexSet(0, target, t14); } } } } if (newExtensions != null) { if (extensionsToExtend != null) _this._extendExistingExtensions$2(extensionsToExtend, newExtensions); if (selectorsToExtend != null) _this._extendExistingSelectors$2(selectorsToExtend, newExtensions); } }, _extendList$3(list, extensions, mediaQueryContext) { var t1, t2, t3, extended, i, complex, result, t4; for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector, extended = null, i = 0; i < t2; ++i) { complex = t1[i]; result = this._extendComplex$3(complex, extensions, mediaQueryContext); if (result == null) { if (extended != null) extended.push(complex); } else { if (extended == null) if (i === 0) extended = A._setArrayType([], t3); else { t4 = B.JSArray_methods.sublist$2(t1, 0, i); extended = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4)); } B.JSArray_methods.addAll$1(extended, result); } } if (extended == null) return list; t1 = this._originals; return A.SelectorList$(this._trim$2(extended, t1.get$contains(t1)), list.span); }, _extendList$2(list, extensions) { return this._extendList$3(list, extensions, null); }, _extendComplex$3(complex, extensions, mediaQueryContext) { var isOriginal, t3, t4, t5, t6, t7, t8, t9, t10, extendedNotExpanded, i, component, extended, t11, t12, t13, t14, _box_0 = {}, t1 = complex.leadingCombinators, t2 = t1.length; if (t2 > 1) return null; isOriginal = this._originals.contains$1(0, complex); 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) { component = t3[i]; extended = this._extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal); if (extended == null) { if (extendedNotExpanded != null) extendedNotExpanded.push(A._setArrayType([A.ComplexSelector$(B.List_empty1, A._setArrayType([component], t10), t8, t6)], t9)); } else if (extendedNotExpanded != null) extendedNotExpanded.push(extended); else if (i !== 0) { t11 = A._arrayInstanceType(t3); t12 = new A.SubListIterable(t3, 0, i, t11._eval$1("SubListIterable<1>")); t12.SubListIterable$3(t3, 0, i, t11._precomputed1); extendedNotExpanded = A._setArrayType([A._setArrayType([A.ComplexSelector$(t1, t12, t8, t6)], t9), extended], t5); } else if (t2) extendedNotExpanded = A._setArrayType([extended], t5); else { t11 = A._setArrayType([], t9); for (t12 = J.get$iterator$ax(extended); t12.moveNext$0();) { t13 = t12.get$current(t12); t14 = t13.leadingCombinators; if (t14.length === 0 || B.C_ListEquality.equals$2(0, t1, t14)) { t14 = t13.components; t11.push(A.ComplexSelector$(t1, t14, t8, !t7 || t13.lineBreak)); } } extendedNotExpanded = A._setArrayType([t11], t5); } } if (extendedNotExpanded == null) return null; _box_0.first = true; t1 = type$.ComplexSelector; t1 = J.expand$1$1$ax(A.paths(extendedNotExpanded, t1), new A.ExtensionStore__extendComplex_closure(_box_0, this, complex), t1); return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E")); }, _extendCompound$4$inOriginal(component, extensions, mediaQueryContext, inOriginal) { var t3, t4, t5, t6, t7, t8, t9, t10, t11, options, i, simple, extended, t12, result, compound, extenders, complex, extenderPaths, withCombinators, isOriginal, _this = this, _null = null, t1 = _this._mode, targetsUsed = t1 === B.ExtendMode_normal_normal || extensions.__js_helper$_length < 2 ? _null : A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector), t2 = component.selector, simples = t2.components; 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) { simple = simples[i]; extended = _this._extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed); if (extended == null) { if (options != null) options.push(A._setArrayType([_this._extenderForSimple$1(simple)], t5)); } else { if (options == null) { options = A._setArrayType([], t4); if (i !== 0) { t12 = new A.SubListIterable(simples, 0, i, t8); t12.SubListIterable$3(simples, 0, i, t9); result = A.List_List$from(t12, false, t11); result.fixed$length = Array; result.immutable$list = Array; t12 = result; compound = new A.CompoundSelector(t12, t10); if (t12.length === 0) A.throwExpression(A.ArgumentError$("components may not be empty.", _null)); result = A.List_List$from(B.List_empty1, false, t6); result.fixed$length = Array; result.immutable$list = Array; t12 = A.ComplexSelector$(B.List_empty1, A._setArrayType([new A.ComplexSelectorComponent(compound, result, t10)], t7), t10, false); _this._sourceSpecificityFor$1(compound); options.push(A._setArrayType([new A.Extender(t12, true)], t5)); } } B.JSArray_methods.addAll$1(options, extended); } } if (options == null) return _null; if (targetsUsed != null && targetsUsed._collection$_length !== extensions.__js_helper$_length) return _null; if (options.length === 1) { extenders = options[0]; t3 = true; } else { extenders = _null; t3 = false; } if (t3) { for (t1 = J.get$iterator$ax(extenders), t2 = component.combinators, t3 = type$.JSArray_ComplexSelector, result = _null; t1.moveNext$0();) { t4 = t1.get$current(t1); t4.assertCompatibleMediaContext$1(mediaQueryContext); complex = t4.selector.withAdditionalCombinators$1(t2); if (complex.accept$1(B.C__IsUselessVisitor)) continue; if (result == null) result = A._setArrayType([], t3); result.push(complex); } return result; } extenderPaths = A.paths(options, type$.Extender); t3 = A._setArrayType([], type$.JSArray_ComplexSelector); t1 = t1 === B.ExtendMode_replace_replace; t4 = !t1; if (t4) t3.push(A.ComplexSelector$(B.List_empty1, 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)); t2 = J.skip$1$ax(extenderPaths, t1 ? 0 : 1); t2 = new A.ListIterator(t2, t2.get$length(t2)); t5 = component.combinators; t6 = A._instanceType(t2)._precomputed1; for (; t2.moveNext$0();) { t1 = t2.__internal$_current; extended = _this._unifyExtenders$3(t1 == null ? t6._as(t1) : t1, mediaQueryContext, t10); if (extended == null) continue; for (t1 = J.get$iterator$ax(extended); t1.moveNext$0();) { withCombinators = t1.get$current(t1).withAdditionalCombinators$1(t5); if (!withCombinators.accept$1(B.C__IsUselessVisitor)) t3.push(withCombinators); } } isOriginal = new A.ExtensionStore__extendCompound_closure0(); return _this._trim$2(t3, inOriginal && t4 ? new A.ExtensionStore__extendCompound_closure1(B.JSArray_methods.get$first(t3)) : isOriginal); }, _unifyExtenders$3(extenders, mediaQueryContext, span) { var t1, t2, t3, originals, originalsLineBreak, t4, complexes, _null = null, toUnify = A.QueueList$(_null, type$.ComplexSelector); for (t1 = J.getInterceptor$ax(extenders), t2 = t1.get$iterator(extenders), t3 = type$.JSArray_SimpleSelector, originals = _null, originalsLineBreak = false; t2.moveNext$0();) { t4 = t2.get$current(t2); if (t4.isOriginal) { if (originals == null) originals = A._setArrayType([], t3); t4 = t4.selector; B.JSArray_methods.addAll$1(originals, B.JSArray_methods.get$last(t4.components).selector.components); originalsLineBreak = originalsLineBreak || t4.lineBreak; } else { t4 = t4.selector; if (t4.accept$1(B.C__IsUselessVisitor)) return _null; else toUnify._queue_list$_add$1(t4); } } if (originals != null) toUnify.addFirst$1(A.ComplexSelector$(B.List_empty1, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(originals, span), A.List_List$unmodifiable(B.List_empty1, type$.CssValue_Combinator), span)], type$.JSArray_ComplexSelectorComponent), span, originalsLineBreak)); complexes = A.unifyComplex(toUnify, span); if (complexes == null) return _null; for (t1 = t1.get$iterator(extenders); t1.moveNext$0();) t1.get$current(t1).assertCompatibleMediaContext$1(mediaQueryContext); return complexes; }, _extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed) { var _1_0, extended, t2, t1 = new A.ExtensionStore__extendSimple_withoutPseudo(this, extensions, targetsUsed); if (simple instanceof A.PseudoSelector && simple.selector != null && true) { _1_0 = this._extendPseudo$3(simple, extensions, mediaQueryContext); if (_1_0 != null) { extended = _1_0; t2 = true; } else { extended = null; t2 = false; } if (t2) return new A.MappedListIterable(extended, new A.ExtensionStore__extendSimple_closure(this, t1), A.instanceType(extended)._eval$1("MappedListIterable<1,List>")); } return A.NullableExtension_andThen(t1.call$1(simple), new A.ExtensionStore__extendSimple_closure0()); }, _extenderForSimple$1(simple) { var t1 = simple.span; t1 = A.ComplexSelector$(B.List_empty1, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(A._setArrayType([simple], type$.JSArray_SimpleSelector), t1), A.List_List$unmodifiable(B.List_empty1, type$.CssValue_Combinator), t1)], type$.JSArray_ComplexSelectorComponent), t1, false); this._sourceSpecificity.$index(0, simple); return new A.Extender(t1, true); }, _extendPseudo$3(pseudo, extensions, mediaQueryContext) { var extended, complexes, t1, result, selector = pseudo.selector; if (selector == null) throw A.wrapException(A.ArgumentError$("Selector " + pseudo.toString$0(0) + " must have a selector argument.", null)); extended = this._extendList$3(selector, extensions, mediaQueryContext); if (extended === selector) return null; complexes = extended.components; t1 = pseudo.normalizedName === "not"; 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())) complexes = new A.WhereIterable(complexes, new A.ExtensionStore__extendPseudo_closure1(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>")); complexes = J.expand$1$1$ax(complexes, new A.ExtensionStore__extendPseudo_closure2(pseudo), type$.ComplexSelector); if (t1 && selector.components.length === 1) { t1 = A.MappedIterable_MappedIterable(complexes, new A.ExtensionStore__extendPseudo_closure3(pseudo, selector), complexes.$ti._eval$1("Iterable.E"), type$.PseudoSelector); result = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E")); return result.length === 0 ? null : result; } else return A._setArrayType([pseudo.withSelector$1(A.SelectorList$(complexes, selector.span))], type$.JSArray_PseudoSelector); }, _trim$2(selectors, isOriginal) { var result, i, t1, t2, numOriginals, _box_0, complex1, j, t3, t4, _i, t5, maxSpecificity; if (selectors.length > 100) return selectors; result = A.QueueList$(null, type$.ComplexSelector); $label0$0: for (i = selectors.length - 1, t1 = A._arrayInstanceType(selectors), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), numOriginals = 0; i >= 0; --i) { _box_0 = {}; complex1 = selectors[i]; if (isOriginal.call$1(complex1)) { for (j = 0; j < numOriginals; ++j) if (J.$eq$(result.$index(0, j), complex1)) { A.rotateSlice(result, 0, j + 1); continue $label0$0; } ++numOriginals; result.addFirst$1(complex1); continue $label0$0; } _box_0.maxSpecificity = 0; for (t3 = complex1.components, t4 = t3.length, _i = 0, t5 = 0; _i < t4; ++_i, t5 = maxSpecificity) { maxSpecificity = Math.max(t5, this._sourceSpecificityFor$1(t3[_i].selector)); _box_0.maxSpecificity = maxSpecificity; } if (result.any$1(result, new A.ExtensionStore__trim_closure(_box_0, complex1))) continue $label0$0; t3 = new A.SubListIterable(selectors, 0, i, t1); t3.SubListIterable$3(selectors, 0, i, t2); if (t3.any$1(0, new A.ExtensionStore__trim_closure0(_box_0, complex1))) continue $label0$0; result.addFirst$1(complex1); } return result; }, _sourceSpecificityFor$1(compound) { var t1, t2, t3, specificity, _i, t4; for (t1 = compound.components, t2 = t1.length, t3 = this._sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) { t4 = t3.$index(0, t1[_i]); specificity = Math.max(specificity, A.checkNum(t4 == null ? 0 : t4)); } return specificity; }, clone$0() { var t2, t3, t4, _this = this, t1 = type$.SimpleSelector, newSelectors = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList), newMediaContexts = A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList, type$.List_CssMediaQuery), oldToNewSelectors = new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_of_SelectorList_and_Box_SelectorList); _this._selectors.forEach$1(0, new A.ExtensionStore_clone_closure(_this, newSelectors, oldToNewSelectors, newMediaContexts)); t2 = type$.Extension; t3 = A.copyMapOfMap(_this._extensions, t1, type$.ComplexSelector, t2); t2 = A.copyMapOfList(_this._extensionsByExtender, t1, t2); t1 = new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int); t1.addAll$1(0, _this._sourceSpecificity); t4 = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector); t4.addAll$1(0, _this._originals); return new A._Record_2(new A.ExtensionStore(newSelectors, t3, t2, newMediaContexts, t1, t4, B.ExtendMode_normal_normal), oldToNewSelectors); }, get$_extensions() { return this._extensions; }, get$_sourceSpecificity() { return this._sourceSpecificity; } }; A.ExtensionStore_extensionsWhereTarget_closure.prototype = { call$1(extension) { return !extension.isOptional; }, $signature: 358 }; A.ExtensionStore__registerSelector_closure.prototype = { call$0() { return A.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableBox_SelectorList); }, $signature: 365 }; A.ExtensionStore__registerSelector_closure0.prototype = { call$0() { return type$.PseudoSelector._as(this._0_0).selector; }, $signature: 75 }; A.ExtensionStore_addExtension_closure.prototype = { call$0() { return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension); }, $signature: 117 }; A.ExtensionStore_addExtension_closure0.prototype = { call$0() { return A._setArrayType([], type$.JSArray_Extension); }, $signature: 190 }; A.ExtensionStore_addExtension_closure1.prototype = { call$0() { return this.complex.get$specificity(); }, $signature: 3 }; A.ExtensionStore__simpleSelectors_closure.prototype = { call$0() { return type$.PseudoSelector._as(this._0_0).selector; }, $signature: 75 }; A.ExtensionStore__extendExistingExtensions_closure.prototype = { call$0() { return A._setArrayType([], type$.JSArray_Extension); }, $signature: 190 }; A.ExtensionStore__extendExistingExtensions_closure0.prototype = { call$0() { return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension); }, $signature: 117 }; A.ExtensionStore_addExtensions_closure.prototype = { call$0() { return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension); }, $signature: 117 }; A.ExtensionStore__extendComplex_closure.prototype = { call$1(path) { var t1 = this.complex; 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); }, $signature: 378 }; A.ExtensionStore__extendComplex__closure.prototype = { call$1(outputComplex) { var _this = this, t1 = _this._box_0; if (t1.first && _this.$this._originals.contains$1(0, _this.complex)) _this.$this._originals.add$1(0, outputComplex); t1.first = false; return outputComplex; }, $signature: 59 }; A.ExtensionStore__extendCompound_closure.prototype = { call$1(extender) { return B.JSArray_methods.get$last(extender.selector.components).selector.components; }, $signature: 384 }; A.ExtensionStore__extendCompound_closure0.prototype = { call$1(_) { return false; }, $signature: 19 }; A.ExtensionStore__extendCompound_closure1.prototype = { call$1(complex) { return complex.$eq(0, this.original); }, $signature: 19 }; A.ExtensionStore__extendSimple_withoutPseudo.prototype = { call$1(simple) { var t1, t2, extensionsForSimple = this.extensions.$index(0, simple); if (extensionsForSimple == null) return null; t1 = this.targetsUsed; if (t1 != null) t1.add$1(0, simple); t1 = A._setArrayType([], type$.JSArray_Extender); t2 = this.$this; if (t2._mode !== B.ExtendMode_replace_replace) t1.push(t2._extenderForSimple$1(simple)); for (t2 = extensionsForSimple.get$values(extensionsForSimple), t2 = t2.get$iterator(t2); t2.moveNext$0();) t1.push(t2.get$current(t2).extender); return t1; }, $signature: 401 }; A.ExtensionStore__extendSimple_closure.prototype = { call$1(pseudo) { var t1 = this.withoutPseudo.call$1(pseudo); return t1 == null ? A._setArrayType([this.$this._extenderForSimple$1(pseudo)], type$.JSArray_Extender) : t1; }, $signature: 402 }; A.ExtensionStore__extendSimple_closure0.prototype = { call$1(result) { return A._setArrayType([result], type$.JSArray_List_Extender); }, $signature: 403 }; A.ExtensionStore__extendPseudo_closure.prototype = { call$1(complex) { return complex.components.length > 1; }, $signature: 19 }; A.ExtensionStore__extendPseudo_closure0.prototype = { call$1(complex) { return complex.components.length === 1; }, $signature: 19 }; A.ExtensionStore__extendPseudo_closure1.prototype = { call$1(complex) { return complex.components.length <= 1; }, $signature: 19 }; A.ExtensionStore__extendPseudo_closure2.prototype = { call$1(complex) { var innerPseudo, innerSelector, t1 = complex.get$singleCompound(); if (t1 == null) innerPseudo = null; else { t1 = t1.components; innerPseudo = t1.length === 1 ? B.JSArray_methods.get$first(t1) : null; } if (!(innerPseudo instanceof A.PseudoSelector)) return A._setArrayType([complex], type$.JSArray_ComplexSelector); innerSelector = innerPseudo.selector; if (innerSelector == null) return A._setArrayType([complex], type$.JSArray_ComplexSelector); t1 = this.pseudo; switch (t1.normalizedName) { case "not": if (!B.Set_aAXJu.contains$1(0, innerPseudo.normalizedName)) return A._setArrayType([], type$.JSArray_ComplexSelector); return innerSelector.components; case "is": case "matches": case "where": case "any": case "current": case "nth-child": case "nth-last-child": if (innerPseudo.name !== t1.name) return A._setArrayType([], type$.JSArray_ComplexSelector); if (innerPseudo.argument != t1.argument) return A._setArrayType([], type$.JSArray_ComplexSelector); return innerSelector.components; case "has": case "host": case "host-context": case "slotted": return A._setArrayType([complex], type$.JSArray_ComplexSelector); default: return A._setArrayType([], type$.JSArray_ComplexSelector); } }, $signature: 404 }; A.ExtensionStore__extendPseudo_closure3.prototype = { call$1(complex) { return this.pseudo.withSelector$1(A.SelectorList$(A._setArrayType([complex], type$.JSArray_ComplexSelector), this.selector.span)); }, $signature: 405 }; A.ExtensionStore__trim_closure.prototype = { call$1(complex2) { return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1); }, $signature: 19 }; A.ExtensionStore__trim_closure0.prototype = { call$1(complex2) { return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1); }, $signature: 19 }; A.ExtensionStore_clone_closure.prototype = { call$2(simple, selectors) { var t2, t3, t4, t5, t6, t7, newSelector, _0_0, mediaContext, _this = this, t1 = type$.ModifiableBox_SelectorList, newSelectorSet = A.LinkedHashSet_LinkedHashSet$_empty(t1); _this.newSelectors.$indexSet(0, simple, newSelectorSet); for (t2 = selectors.get$iterator(selectors), t3 = _this.oldToNewSelectors, t4 = type$.Box_SelectorList, t5 = _this.$this._mediaContexts, t6 = _this.newMediaContexts; t2.moveNext$0();) { t7 = t2.get$current(t2); newSelector = new A.ModifiableBox(t7.value, t1); newSelectorSet.add$1(0, newSelector); t3.$indexSet(0, t7.value, new A.Box(newSelector, t4)); _0_0 = t5.$index(0, t7); if (_0_0 != null) { mediaContext = _0_0; t7 = true; } else { mediaContext = null; t7 = false; } if (t7) t6.$indexSet(0, newSelector, mediaContext); } }, $signature: 410 }; A.unifyComplex_closure.prototype = { call$0() { return this._0_0.leadingCombinators; }, $signature: 193 }; A.unifyComplex_closure0.prototype = { call$0() { return this._1_0.combinators; }, $signature: 193 }; A.unifyComplex_closure1.prototype = { call$1(complex) { return complex.lineBreak; }, $signature: 19 }; A._namespaceAndName_closure.prototype = { call$0() { return type$.TypeSelector._as(this._0_0).name; }, $signature: 413 }; A._weaveParents_closure.prototype = { call$0() { return this._0_0._0; }, $signature: 195 }; A._weaveParents_closure0.prototype = { call$0() { return this._0_0._1; }, $signature: 195 }; A._weaveParents_closure1.prototype = { call$2(group1, group2) { var t1, unified; if (B.C_ListEquality.equals$2(0, group1, group2)) return group1; if (A._complexIsParentSuperselector(group1, group2)) return group2; if (A._complexIsParentSuperselector(group2, group1)) return group1; if (!A._mustUnify(group1, group2)) return null; t1 = this.span; unified = A.unifyComplex(A._setArrayType([A.ComplexSelector$(B.List_empty1, group1, t1, false), A.ComplexSelector$(B.List_empty1, group2, t1, false)], type$.JSArray_ComplexSelector), t1); if (unified == null) t1 = null; else { t1 = A.IterableExtension_get_singleOrNull(unified); t1 = t1 == null ? null : t1.components; } return t1; }, $signature: 417 }; A._weaveParents_closure2.prototype = { call$1(sequence) { return A._complexIsParentSuperselector(sequence.get$first(sequence), this.group); }, $signature: 196 }; A._weaveParents_closure3.prototype = { call$1(sequence) { return sequence.get$length(sequence) === 0; }, $signature: 196 }; A._weaveParents_closure4.prototype = { call$1(choice) { return J.get$isNotEmpty$asx(choice); }, $signature: 430 }; A._mergeLeadingCombinators_closure.prototype = { call$0() { return this._0_0._0; }, $signature: 200 }; A._mergeLeadingCombinators_closure0.prototype = { call$0() { return this._0_0._1; }, $signature: 200 }; A._mergeLeadingCombinators_closure1.prototype = { call$0() { var t1 = this._0_1._readFinal$0(); return J.get$length$asx(t1 == null ? type$.List_CssValue_Combinator._as(t1) : t1); }, $signature: 3 }; A._mergeLeadingCombinators_closure2.prototype = { call$0() { var t1 = this._0_4._readFinal$0(); return J.get$length$asx(t1 == null ? type$.List_CssValue_Combinator._as(t1) : t1); }, $signature: 3 }; A._mergeTrailingCombinators_closure.prototype = { call$0() { var t1 = this._0_0; return t1.get$length(t1); }, $signature: 3 }; A._mergeTrailingCombinators_closure0.prototype = { call$0() { var t1 = this._1_0; return t1.get$length(t1); }, $signature: 3 }; A._mergeTrailingCombinators_closure1.prototype = { call$0() { return this._4_0._values[0]; }, $signature: 203 }; A._mergeTrailingCombinators_closure2.prototype = { call$0() { return B.Combinator_Htt === this._4_1._readFinal$0(); }, $signature: 1 }; A._mergeTrailingCombinators_closure3.prototype = { call$0() { return this._4_0._values[1]; }, $signature: 203 }; A._mergeTrailingCombinators_closure4.prototype = { call$0() { return B.Combinator_Htt === this._4_4._readFinal$0(); }, $signature: 1 }; A._mergeTrailingCombinators_closure6.prototype = { call$0() { return this._4_0._values[2]; }, $signature: 204 }; A._mergeTrailingCombinators_closure7.prototype = { call$0() { return this._4_0._values[3]; }, $signature: 204 }; A._mergeTrailingCombinators_closure5.prototype = { call$0() { return B.Combinator_4QF === this._4_4._readFinal$0(); }, $signature: 1 }; A._mergeTrailingCombinators_closure8.prototype = { call$0() { return B.Combinator_4QF === this._4_1._readFinal$0(); }, $signature: 1 }; A._mustUnify_closure.prototype = { call$1(component) { return B.JSArray_methods.any$1(component.selector.components, new A._mustUnify__closure(this.uniqueSelectors)); }, $signature: 53 }; A._mustUnify__closure.prototype = { call$1(simple) { var t1; if (!(simple instanceof A.IDSelector)) t1 = simple instanceof A.PseudoSelector && !simple.isClass; else t1 = true; return t1 && this.uniqueSelectors.contains$1(0, simple); }, $signature: 16 }; A._chunks_closure.prototype = { call$0() { return this._0_0._0; }, $signature() { return this.T._eval$1("List<0>()"); } }; A._chunks_closure0.prototype = { call$0() { return J.get$length$asx(this._0_1._readFinal$0()) <= 0; }, $signature: 1 }; A._chunks_closure1.prototype = { call$0() { return this._0_0._1; }, $signature() { return this.T._eval$1("List<0>()"); } }; A._chunks_closure2.prototype = { call$0() { return J.get$length$asx(this._0_5._readFinal$0()) <= 0; }, $signature: 1 }; A.paths_closure.prototype = { call$2(paths, choice) { var t1 = this.T; t1 = J.expand$1$1$ax(choice, new A.paths__closure(paths, t1), t1._eval$1("List<0>")); return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E")); }, $signature() { return this.T._eval$1("List>(List>,List<0>)"); } }; A.paths__closure.prototype = { call$1(option) { var t1 = this.T; return J.map$1$1$ax(this.paths, new A.paths___closure(option, t1), t1._eval$1("List<0>")); }, $signature() { return this.T._eval$1("Iterable>(0)"); } }; A.paths___closure.prototype = { call$1(path) { var t1 = A.List_List$of(path, true, this.T); t1.push(this.option); return t1; }, $signature() { return this.T._eval$1("List<0>(List<0>)"); } }; A.listIsSuperselector_closure.prototype = { call$1(complex1) { return B.JSArray_methods.any$1(this.list1, new A.listIsSuperselector__closure(complex1)); }, $signature: 19 }; A.listIsSuperselector__closure.prototype = { call$1(complex2) { return complex2.isSuperselector$1(this.complex1); }, $signature: 19 }; A.complexIsSuperselector_closure.prototype = { call$1($parent) { return $parent.combinators.length > 1; }, $signature: 53 }; A.complexIsSuperselector_closure0.prototype = { call$1(component) { return A._isSupercombinator(this.combinator1, A.IterableExtension_get_firstOrNull(component.combinators)); }, $signature: 53 }; A._compatibleWithPreviousCombinator_closure.prototype = { call$1(component) { var t1 = component.combinators, t2 = A.IterableExtension_get_firstOrNull(t1); if (!J.$eq$(t2 == null ? null : t2.value, B.Combinator_Htt)) { t1 = A.IterableExtension_get_firstOrNull(t1); t1 = J.$eq$(t1 == null ? null : t1.value, B.Combinator_4QF); } else t1 = true; return t1; }, $signature: 53 }; A.compoundIsSuperselector_closure.prototype = { call$0() { return this._0_0._0; }, $signature: 207 }; A.compoundIsSuperselector_closure0.prototype = { call$0() { return this._0_0._1; }, $signature: 207 }; A._selectorPseudoIsSuperselector_closure.prototype = { call$1(selector2) { return A.listIsSuperselector(this.selector1.components, selector2.components); }, $signature: 73 }; A._selectorPseudoIsSuperselector_closure0.prototype = { call$1(complex1) { var t1, t2; if (complex1.leadingCombinators.length === 0) { t1 = A._setArrayType([], type$.JSArray_ComplexSelectorComponent); t2 = this.parents; if (t2 != null) B.JSArray_methods.addAll$1(t1, t2); t2 = this.compound2; t1.push(new A.ComplexSelectorComponent(t2, A.List_List$unmodifiable(B.List_empty1, type$.CssValue_Combinator), t2.span)); t1 = A.complexIsSuperselector(complex1.components, t1); } else t1 = false; return t1; }, $signature: 19 }; A._selectorPseudoIsSuperselector_closure1.prototype = { call$1(selector2) { return A.listIsSuperselector(this.selector1.components, selector2.components); }, $signature: 73 }; A._selectorPseudoIsSuperselector_closure2.prototype = { call$1(selector2) { return A.listIsSuperselector(this.selector1.components, selector2.components); }, $signature: 73 }; A._selectorPseudoIsSuperselector_closure3.prototype = { call$1(complex) { if (complex.accept$1(B._IsBogusVisitor_true)) return false; return B.JSArray_methods.any$1(this.compound2.components, new A._selectorPseudoIsSuperselector__closure(complex, this.pseudo1)); }, $signature: 19 }; A._selectorPseudoIsSuperselector__closure.prototype = { call$1(simple2) { var t1, selector2, _this = this, _0_4 = A._InitializedCell$(new A._selectorPseudoIsSuperselector___closure(simple2)); $label0$1: { if (simple2 instanceof A.TypeSelector) { t1 = B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure0(simple2)); break $label0$1; } if (simple2 instanceof A.IDSelector) { t1 = B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure1(simple2)); break $label0$1; } if (simple2 instanceof A.PseudoSelector) { if (_0_4._readFinal$0() != null) { selector2 = _0_4._readFinal$0(); t1 = true; } else { selector2 = null; t1 = false; } t1 = t1 && simple2.name === _this.pseudo1.name; } else { selector2 = null; t1 = false; } if (t1) { t1 = A.listIsSuperselector(selector2.components, A._setArrayType([_this.complex], type$.JSArray_ComplexSelector)); break $label0$1; } t1 = false; break $label0$1; } return t1; }, $signature: 16 }; A._selectorPseudoIsSuperselector___closure0.prototype = { call$1(simple1) { var t1; if (simple1 instanceof A.TypeSelector) { t1 = this.simple2; t1 = !(t1 instanceof A.TypeSelector && t1.name.$eq(0, simple1.name)); } else t1 = false; return t1; }, $signature: 16 }; A._selectorPseudoIsSuperselector___closure1.prototype = { call$1(simple1) { var t1; if (simple1 instanceof A.IDSelector) { t1 = this.simple2; t1 = !(t1 instanceof A.IDSelector && t1.name === simple1.name); } else t1 = false; return t1; }, $signature: 16 }; A._selectorPseudoIsSuperselector___closure.prototype = { call$0() { return type$.PseudoSelector._as(this._0_0).selector; }, $signature: 75 }; A._selectorPseudoIsSuperselector_closure4.prototype = { call$1(selector2) { var t1 = B.C_ListEquality.equals$2(0, this.selector1.components, selector2.components); return t1; }, $signature: 73 }; A._selectorPseudoIsSuperselector_closure5.prototype = { call$1(pseudo2) { var t1, selector2; if (!(pseudo2 instanceof A.PseudoSelector)) return false; t1 = this.pseudo1; if (pseudo2.name !== t1.name) return false; if (pseudo2.argument != t1.argument) return false; selector2 = pseudo2.selector; if (selector2 == null) return false; return A.listIsSuperselector(this.selector1.components, selector2.components); }, $signature: 16 }; A._selectorPseudoArgs_closure.prototype = { call$1(pseudo) { return pseudo.isClass === this.isClass && pseudo.name === this.name; }, $signature: 445 }; A._selectorPseudoArgs_closure0.prototype = { call$1(pseudo) { return pseudo.selector; }, $signature: 453 }; A.MergedExtension.prototype = { unmerge$0() { return new A._SyncStarIterable(this.unmerge$body$MergedExtension(), type$._SyncStarIterable_Extension); }, unmerge$body$MergedExtension() { var $async$self = this; return function() { var $async$goto = 0, $async$handler = 1, $async$currentError, right, left; return function $async$unmerge$0($async$iterator, $async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start left = $async$self.left; $async$goto = left instanceof A.MergedExtension ? 2 : 4; break; case 2: // then $async$goto = 5; return $async$iterator._yieldStar$1(left.unmerge$0()); case 5: // after yield // goto join $async$goto = 3; break; case 4: // else $async$goto = 6; return $async$iterator._async$_current = left, 1; case 6: // after yield case 3: // join right = $async$self.right; $async$goto = right instanceof A.MergedExtension ? 7 : 9; break; case 7: // then $async$goto = 10; return $async$iterator._yieldStar$1(right.unmerge$0()); case 10: // after yield // goto join $async$goto = 8; break; case 9: // else $async$goto = 11; return $async$iterator._async$_current = right, 1; case 11: // after yield case 8: // join // implicit return return 0; case 1: // rethrow return $async$iterator._datum = $async$currentError, 3; } }; }; } }; A.ExtendMode.prototype = { _enumToString$0() { return "ExtendMode." + this._name; }, toString$0(_) { return this.name; } }; A.globalFunctions_closure.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2); }, $signature: 6 }; A.global_closure0.prototype = { call$1($arguments) { return A._rgb("rgb", $arguments); }, $signature: 6 }; A.global_closure1.prototype = { call$1($arguments) { return A._rgb("rgb", $arguments); }, $signature: 6 }; A.global_closure2.prototype = { call$1($arguments) { return A._rgbTwoArg("rgb", $arguments); }, $signature: 6 }; A.global_closure3.prototype = { call$1($arguments) { var parsed = A._parseChannels("rgb", A._setArrayType(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments)); return parsed instanceof A.SassString ? parsed : A._rgb("rgb", type$.List_Value._as(parsed)); }, $signature: 6 }; A.global_closure4.prototype = { call$1($arguments) { return A._rgb("rgba", $arguments); }, $signature: 6 }; A.global_closure5.prototype = { call$1($arguments) { return A._rgb("rgba", $arguments); }, $signature: 6 }; A.global_closure6.prototype = { call$1($arguments) { return A._rgbTwoArg("rgba", $arguments); }, $signature: 6 }; A.global_closure7.prototype = { call$1($arguments) { var parsed = A._parseChannels("rgba", A._setArrayType(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments)); return parsed instanceof A.SassString ? parsed : A._rgb("rgba", type$.List_Value._as(parsed)); }, $signature: 6 }; A.global_closure8.prototype = { call$1($arguments) { var color, t2, t1 = J.getInterceptor$asx($arguments), weight = t1.$index($arguments, 1).assertNumber$1("weight"); if (t1.$index($arguments, 0) instanceof A.SassNumber || t1.$index($arguments, 0).get$isSpecialNumber()) { if (weight._number$_value !== 100 || !weight.hasUnit$1("%")) throw A.wrapException(string$.Only_oa); return A._functionString("invert", t1.take$1($arguments, 1)); } color = t1.$index($arguments, 0).assertColor$1("color"); t1 = color.get$red(color); t2 = color.get$green(color); return A._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(color), 255 - t2, 255 - t1), color, weight); }, $signature: 6 }; A.global_closure9.prototype = { call$1($arguments) { return A._hsl("hsl", $arguments); }, $signature: 6 }; A.global_closure10.prototype = { call$1($arguments) { return A._hsl("hsl", $arguments); }, $signature: 6 }; A.global_closure11.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar()) return A._functionString("hsl", $arguments); else throw A.wrapException(A.SassScriptException$("Missing argument $lightness.", null)); }, $signature: 20 }; A.global_closure12.prototype = { call$1($arguments) { var parsed = A._parseChannels("hsl", A._setArrayType(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments)); return parsed instanceof A.SassString ? parsed : A._hsl("hsl", type$.List_Value._as(parsed)); }, $signature: 6 }; A.global_closure13.prototype = { call$1($arguments) { return A._hsl("hsla", $arguments); }, $signature: 6 }; A.global_closure14.prototype = { call$1($arguments) { return A._hsl("hsla", $arguments); }, $signature: 6 }; A.global_closure15.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar()) return A._functionString("hsla", $arguments); else throw A.wrapException(A.SassScriptException$("Missing argument $lightness.", null)); }, $signature: 20 }; A.global_closure16.prototype = { call$1($arguments) { var parsed = A._parseChannels("hsla", A._setArrayType(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments)); return parsed instanceof A.SassString ? parsed : A._hsl("hsla", type$.List_Value._as(parsed)); }, $signature: 6 }; A.global_closure17.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0) instanceof A.SassNumber || t1.$index($arguments, 0).get$isSpecialNumber()) return A._functionString("grayscale", $arguments); return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0); }, $signature: 6 }; A.global_closure18.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"), degrees = A._angleValue(t1.$index($arguments, 1), "degrees"); return color.changeHsl$1$hue(color.get$hue(color) + degrees); }, $signature: 35 }; A.global_closure19.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"), amount = t1.$index($arguments, 1).assertNumber$1("amount"); return color.changeHsl$1$lightness(B.JSNumber_methods.clamp$2(color.get$lightness(color) + amount.valueInRange$3(0, 100, "amount"), 0, 100)); }, $signature: 35 }; A.global_closure20.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"), amount = t1.$index($arguments, 1).assertNumber$1("amount"); return color.changeHsl$1$lightness(B.JSNumber_methods.clamp$2(color.get$lightness(color) - amount.valueInRange$3(0, 100, "amount"), 0, 100)); }, $signature: 35 }; A.global_closure21.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0) instanceof A.SassNumber || t1.$index($arguments, 0).get$isSpecialNumber()) return A._functionString("saturate", $arguments); return new A.SassString("saturate(" + A.serializeValue(t1.$index($arguments, 0).assertNumber$1("amount"), false, true) + ")", false); }, $signature: 20 }; A.global_closure22.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"), amount = t1.$index($arguments, 1).assertNumber$1("amount"); return color.changeHsl$1$saturation(B.JSNumber_methods.clamp$2(color.get$saturation(color) + amount.valueInRange$3(0, 100, "amount"), 0, 100)); }, $signature: 35 }; A.global_closure23.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"), amount = t1.$index($arguments, 1).assertNumber$1("amount"); return color.changeHsl$1$saturation(B.JSNumber_methods.clamp$2(color.get$saturation(color) - amount.valueInRange$3(0, 100, "amount"), 0, 100)); }, $signature: 35 }; A.global_closure24.prototype = { call$1($arguments) { var argument = J.$index$asx($arguments, 0); if (argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart())) return A._functionString("alpha", $arguments); return A.SassNumber_SassNumber(argument.assertColor$1("color")._alpha, null); }, $signature: 6 }; A.global_closure25.prototype = { call$1($arguments) { var t1, argList = J.$index$asx($arguments, 0).get$asList(); if (argList.length !== 0 && B.JSArray_methods.every$1(argList, new A.global__closure())) return A._functionString("alpha", $arguments); t1 = argList.length; if (t1 === 0) throw A.wrapException(A.SassScriptException$("Missing argument $color.", null)); else throw A.wrapException(A.SassScriptException$("Only 1 argument allowed, but " + t1 + " were passed.", null)); }, $signature: 20 }; A.global__closure.prototype = { call$1(argument) { return argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart()); }, $signature: 79 }; A.global_closure26.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0) instanceof A.SassNumber || t1.$index($arguments, 0).get$isSpecialNumber()) return A._functionString("opacity", $arguments); return A.SassNumber_SassNumber(t1.$index($arguments, 0).assertColor$1("color")._alpha, null); }, $signature: 6 }; A.module_closure1.prototype = { call$1($arguments) { var result, t2, color, t1 = J.getInterceptor$asx($arguments), weight = t1.$index($arguments, 1).assertNumber$1("weight"); if (t1.$index($arguments, 0) instanceof A.SassNumber) { if (weight._number$_value !== 100 || !weight.hasUnit$1("%")) throw A.wrapException(string$.Only_oa); result = A._functionString("invert", t1.take$1($arguments, 1)); t1 = A.S(t1.$index($arguments, 0)); t2 = result.toString$0(0); A.EvaluationContext_current().warn$2(0, "Passing a number (" + t1 + string$.x29x20to_ci + t2, B.Deprecation_s4m); return result; } color = t1.$index($arguments, 0).assertColor$1("color"); t1 = color.get$red(color); t2 = color.get$green(color); return A._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(color), 255 - t2, 255 - t1), color, weight); }, $signature: 6 }; A.module_closure2.prototype = { call$1($arguments) { var result, t2, t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0) instanceof A.SassNumber) { result = A._functionString("grayscale", t1.take$1($arguments, 1)); t1 = A.S(t1.$index($arguments, 0)); t2 = result.toString$0(0); A.EvaluationContext_current().warn$2(0, "Passing a number (" + t1 + string$.x29x20to_cg + t2, B.Deprecation_s4m); return result; } return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0); }, $signature: 6 }; A.module_closure3.prototype = { call$1($arguments) { return A._hwb($arguments); }, $signature: 6 }; A.module_closure4.prototype = { call$1($arguments) { var parsed = A._parseChannels("hwb", A._setArrayType(["$hue", "$whiteness", "$blackness"], type$.JSArray_String), J.get$first$ax($arguments)); if (parsed instanceof A.SassString) throw A.wrapException(A.SassScriptException$('Expected numeric channels, got "' + parsed.toString$0(0) + '".', null)); else return A._hwb(type$.List_Value._as(parsed)); }, $signature: 6 }; A.module_closure5.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber(t1.get$whiteness(t1), "%"); }, $signature: 13 }; A.module_closure6.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber(t1.get$blackness(t1), "%"); }, $signature: 13 }; A.module_closure7.prototype = { call$1($arguments) { var result, t1, argument = J.$index$asx($arguments, 0); if (argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart())) { result = A._functionString("alpha", $arguments); t1 = result.toString$0(0); A.EvaluationContext_current().warn$2(0, string$.Using_c + t1, B.Deprecation_s4m); return result; } return A.SassNumber_SassNumber(argument.assertColor$1("color")._alpha, null); }, $signature: 6 }; A.module_closure8.prototype = { call$1($arguments) { var result, t1 = J.getInterceptor$asx($arguments); if (B.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new A.module__closure1())) { result = A._functionString("alpha", $arguments); t1 = result.toString$0(0); A.EvaluationContext_current().warn$2(0, string$.Using_c + t1, B.Deprecation_s4m); return result; } throw A.wrapException(A.SassScriptException$("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed.", null)); }, $signature: 20 }; A.module__closure1.prototype = { call$1(argument) { return argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart()); }, $signature: 79 }; A.module_closure9.prototype = { call$1($arguments) { var result, t2, t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0) instanceof A.SassNumber) { result = A._functionString("opacity", $arguments); t1 = A.S(t1.$index($arguments, 0)); t2 = result.toString$0(0); A.EvaluationContext_current().warn$2(0, "Passing a number (" + t1 + string$.x20to_co + t2, B.Deprecation_s4m); return result; } return A.SassNumber_SassNumber(t1.$index($arguments, 0).assertColor$1("color")._alpha, null); }, $signature: 6 }; A._red_closure.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber(t1.get$red(t1), null); }, $signature: 13 }; A._green_closure.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber(t1.get$green(t1), null); }, $signature: 13 }; A._blue_closure.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber(t1.get$blue(t1), null); }, $signature: 13 }; A._mix_closure.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); return A._mixColors(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight")); }, $signature: 35 }; A._hue_closure.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber(t1.get$hue(t1), "deg"); }, $signature: 13 }; A._saturation_closure.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber(t1.get$saturation(t1), "%"); }, $signature: 13 }; A._lightness_closure.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber(t1.get$lightness(t1), "%"); }, $signature: 13 }; A._complement_closure.prototype = { call$1($arguments) { var color = J.$index$asx($arguments, 0).assertColor$1("color"); return color.changeHsl$1$hue(color.get$hue(color) + 180); }, $signature: 35 }; A._adjust_closure.prototype = { call$1($arguments) { return A._updateComponents($arguments, true, false, false); }, $signature: 35 }; A._scale_closure.prototype = { call$1($arguments) { return A._updateComponents($arguments, false, false, true); }, $signature: 35 }; A._change_closure.prototype = { call$1($arguments) { return A._updateComponents($arguments, false, true, false); }, $signature: 35 }; A._ieHexStr_closure.prototype = { call$1($arguments) { var color = J.$index$asx($arguments, 0).assertColor$1("color"), t1 = new A._ieHexStr_closure_hexString(); return new A.SassString("#" + A.S(t1.call$1(A.fuzzyRound(color._alpha * 255))) + A.S(t1.call$1(color.get$red(color))) + A.S(t1.call$1(color.get$green(color))) + A.S(t1.call$1(color.get$blue(color))), false); }, $signature: 20 }; A._ieHexStr_closure_hexString.prototype = { call$1(component) { return B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1(component, 16), 2, "0").toUpperCase(); }, $signature: 223 }; A._updateComponents_getParam.prototype = { call$5$assertPercent$checkPercent$checkUnitless($name, max, assertPercent, checkPercent, checkUnitless) { var t2, t3, t4, _this = this, t1 = _this.keywords.remove$1(0, $name), number = t1 == null ? null : t1.assertNumber$1($name); if (number == null) return null; t1 = _this.scale; t2 = !t1; if (t2 && checkUnitless) if (number.get$hasUnits()) { t3 = number.get$unitString(); t4 = number.unitSuggestion$1($name); A.EvaluationContext_current().warn$2(0, "$" + $name + ": Passing a number with unit " + t3 + string$.x20is_de + t4 + string$.x0a_Morex3a, B.Deprecation_8WR); } if (t2 && checkPercent) A._checkPercent(number, $name); if (!t2 || assertPercent) number.assertUnit$2("%", $name); if (t1) max = 100; if (!t2 || assertPercent) t1 = number.valueInRange$3(_this.change ? 0 : -max, max, $name); else { t1 = _this.change ? 0 : -max; t1 = number.valueInRangeWithUnit$4(t1, max, $name, checkPercent ? "%" : ""); } return t1; }, call$2($name, max) { return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, false, false); }, call$3$checkUnitless($name, max, checkUnitless) { return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, false, checkUnitless); }, call$3$checkPercent($name, max, checkPercent) { return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, checkPercent, false); }, call$3$assertPercent($name, max, assertPercent) { return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, assertPercent, false, false); }, $signature: 227 }; A._updateComponents_closure.prototype = { call$1(hue) { return A._angleValue(hue, "hue"); }, $signature: 115 }; A._updateComponents_closure0.prototype = { call$1($name) { return "$" + $name; }, $signature: 7 }; A._updateComponents_updateValue.prototype = { call$3(current, param, max) { var t1; if (param == null) return current; if (this.change) return param; if (this.adjust) return B.JSNumber_methods.clamp$2(current + param, 0, max); t1 = param > 0 ? max - current : current; return current + t1 * (param / 100); }, $signature: 232 }; A._updateComponents_updateRgb.prototype = { call$2(current, param) { return A.fuzzyRound(this.updateValue.call$3(current, param, 255)); }, $signature: 238 }; A._functionString_closure.prototype = { call$1(argument) { return A.serializeValue(argument, false, true); }, $signature: 481 }; A._removedColorFunction_closure.prototype = { call$1($arguments) { var t1 = this.name, t2 = J.getInterceptor$asx($arguments), t3 = A.S(t2.$index($arguments, 0)), t4 = this.negative ? "-" : ""; throw A.wrapException(A.SassScriptException$("The function " + t1 + string$.x28__isn + t3 + ", $" + this.argument + ": " + t4 + A.S(t2.$index($arguments, 1)) + string$.x29x0a_Mor + t1, null)); }, $signature: 484 }; A._rgb_closure.prototype = { call$1(alpha) { return A._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha"); }, $signature: 115 }; A._hsl_closure.prototype = { call$1(alpha) { return A._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha"); }, $signature: 115 }; A._hwb_closure.prototype = { call$1(alpha) { return A._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha"); }, $signature: 115 }; A._parseChannels_closure.prototype = { call$0() { return this._0_0[0]; }, $signature: 25 }; A._parseChannels_closure0.prototype = { call$1(value) { return value.get$isVar(); }, $signature: 79 }; A._parseChannels_closure1.prototype = { call$0() { return type$.SassNumber._as(this._1_0).asSlash; }, $signature: 502 }; A._length_closure0.prototype = { call$1($arguments) { return A.SassNumber_SassNumber(J.$index$asx($arguments, 0).get$asList().length, null); }, $signature: 13 }; A._nth_closure.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), list = t1.$index($arguments, 0), index = t1.$index($arguments, 1); return list.get$asList()[list.sassIndexToListIndex$2(index, "n")]; }, $signature: 6 }; A._setNth_closure.prototype = { call$1($arguments) { var newList, t1 = J.getInterceptor$asx($arguments), list = t1.$index($arguments, 0), index = t1.$index($arguments, 1), value = t1.$index($arguments, 2); t1 = list.get$asList(); newList = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1)); newList[list.sassIndexToListIndex$2(index, "n")] = value; return list.withListContents$1(newList); }, $signature: 29 }; A._join_closure.prototype = { call$1($arguments) { var _0_0, _0_1, _0_3, _0_4, separator, bracketed, t2, t1 = J.getInterceptor$asx($arguments), list1 = t1.$index($arguments, 0), list2 = t1.$index($arguments, 1), separatorParam = t1.$index($arguments, 2).assertString$1("separator"), bracketedParam = t1.$index($arguments, 3), _1_0 = separatorParam._string$_text; $label1$1: { if ("auto" === _1_0) { _0_0 = new A._Record_2(list1.get$separator(list1), list2.get$separator(list2)); _0_1 = A._InitializedCell$(new A._join__closure(_0_0)); _0_3 = A._InitializedCell$(new A._join__closure0(_0_1)); _0_4 = A._InitializedCell$(new A._join__closure1(_0_0)); $label0$0: { if (_0_3._readFinal$0() && B.ListSeparator_undecided_null_undecided === _0_4._readFinal$0()) { t1 = B.ListSeparator_EVt; break $label0$0; } if (_0_3._readFinal$0()) { separator = _0_4._readFinal$0(); t1 = true; } else { separator = null; t1 = false; } if (!t1) separator = _0_1._readFinal$0(); t1 = separator; break $label0$0; } break $label1$1; } if ("space" === _1_0) { t1 = B.ListSeparator_EVt; break $label1$1; } if ("comma" === _1_0) { t1 = B.ListSeparator_rXA; break $label1$1; } if ("slash" === _1_0) { t1 = B.ListSeparator_zg9; break $label1$1; } t1 = A.throwExpression(A.SassScriptException$(string$.x24separ, null)); } bracketed = bracketedParam instanceof A.SassString && bracketedParam._string$_text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy(); t2 = A.List_List$of(list1.get$asList(), true, type$.Value); B.JSArray_methods.addAll$1(t2, list2.get$asList()); return A.SassList$(t2, t1, bracketed); }, $signature: 29 }; A._join__closure.prototype = { call$0() { return this._0_0._0; }, $signature: 246 }; A._join__closure0.prototype = { call$0() { return B.ListSeparator_undecided_null_undecided === this._0_1._readFinal$0(); }, $signature: 1 }; A._join__closure1.prototype = { call$0() { return this._0_0._1; }, $signature: 246 }; A._append_closure0.prototype = { call$1($arguments) { var t2, t1 = J.getInterceptor$asx($arguments), list = t1.$index($arguments, 0), value = t1.$index($arguments, 1), _0_0 = t1.$index($arguments, 2).assertString$1("separator")._string$_text; $label0$0: { if ("auto" === _0_0) { t1 = list.get$separator(list) === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_EVt : list.get$separator(list); break $label0$0; } if ("space" === _0_0) { t1 = B.ListSeparator_EVt; break $label0$0; } if ("comma" === _0_0) { t1 = B.ListSeparator_rXA; break $label0$0; } if ("slash" === _0_0) { t1 = B.ListSeparator_zg9; break $label0$0; } t1 = A.throwExpression(A.SassScriptException$(string$.x24separ, null)); } t2 = A.List_List$of(list.get$asList(), true, type$.Value); t2.push(value); return list.withListContents$2$separator(t2, t1); }, $signature: 29 }; A._zip_closure.prototype = { call$1($arguments) { var results, result, _box_0 = {}, t1 = J.$index$asx($arguments, 0).get$asList(), t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List>"), lists = A.List_List$of(new A.MappedListIterable(t1, new A._zip__closure(), t2), true, t2._eval$1("ListIterable.E")); if (lists.length === 0) return B.SassList_Sof; _box_0.i = 0; results = A._setArrayType([], type$.JSArray_SassList); 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));) { result = A.List_List$from(new A.MappedListIterable(lists, new A._zip__closure1(_box_0), t1), false, t2); result.fixed$length = Array; result.immutable$list = Array; results.push(new A.SassList(result, B.ListSeparator_EVt, false)); ++_box_0.i; } return A.SassList$(results, B.ListSeparator_rXA, false); }, $signature: 29 }; A._zip__closure.prototype = { call$1(list) { return list.get$asList(); }, $signature: 520 }; A._zip__closure0.prototype = { call$1(list) { return this._box_0.i !== J.get$length$asx(list); }, $signature: 527 }; A._zip__closure1.prototype = { call$1(list) { return J.$index$asx(list, this._box_0.i); }, $signature: 6 }; A._index_closure0.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), index = B.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1)); return index === -1 ? B.C__SassNull : A.SassNumber_SassNumber(index + 1, null); }, $signature: 6 }; A._separator_closure.prototype = { call$1($arguments) { var t1, _0_0 = J.get$separator$x(J.$index$asx($arguments, 0)); $label0$0: { if (B.ListSeparator_rXA === _0_0) { t1 = new A.SassString("comma", false); break $label0$0; } if (B.ListSeparator_zg9 === _0_0) { t1 = new A.SassString("slash", false); break $label0$0; } t1 = new A.SassString("space", false); break $label0$0; } return t1; }, $signature: 20 }; A._isBracketed_closure.prototype = { call$1($arguments) { return J.$index$asx($arguments, 0).get$hasBrackets() ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._slash_closure.prototype = { call$1($arguments) { var list = J.$index$asx($arguments, 0).get$asList(); if (list.length < 2) throw A.wrapException(A.SassScriptException$("At least two elements are required.", null)); return A.SassList$(list, B.ListSeparator_zg9, false); }, $signature: 29 }; A._get_closure.prototype = { call$1($arguments) { var value, t1 = J.getInterceptor$asx($arguments), map = t1.$index($arguments, 0).assertMap$1("map"), t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value); B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList()); for (t1 = A.IterableExtension_get_exceptLast(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) { value = map._map$_contents.$index(0, t1.get$current(t1)); if (!(value instanceof A.SassMap)) return B.C__SassNull; } t1 = map._map$_contents.$index(0, B.JSArray_methods.get$last(t2)); return t1 == null ? B.C__SassNull : t1; }, $signature: 6 }; A._set_closure.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); return A._modify(t1.$index($arguments, 0).assertMap$1("map"), A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value), new A._set__closure1($arguments), true); }, $signature: 6 }; A._set__closure1.prototype = { call$1(_) { return J.$index$asx(this.$arguments, 2); }, $signature: 43 }; A._set_closure0.prototype = { call$1($arguments) { var keys, value, t1 = {}, t2 = J.getInterceptor$asx($arguments), map = t2.$index($arguments, 0).assertMap$1("map"), _0_0 = t2.$index($arguments, 1).get$asList(), _0_1 = A._InitializedCell$(new A._set__closure(_0_0)); if (_0_1._readFinal$0() <= 0) throw A.wrapException(A.SassScriptException$("Expected $args to contain a key.", null)); if (J.$eq$(_0_1._readFinal$0(), 1)) throw A.wrapException(A.SassScriptException$("Expected $args to contain a value.", null)); keys = t1.value = null; if (_0_1._readFinal$0() >= 1) { keys = B.JSArray_methods.sublist$2(_0_0, 0, _0_1._readFinal$0() - 1); value = _0_0[_0_1._readFinal$0() - 1]; t1.value = value; t2 = true; } else t2 = false; if (t2) return A._modify(map, keys, new A._set__closure0(t1), true); throw A.wrapException("[BUG] Unreachable code"); }, $signature: 6 }; A._set__closure.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A._set__closure0.prototype = { call$1(_) { return this._box_0.value; }, $signature: 43 }; A._merge_closure.prototype = { call$1($arguments) { var t2, t1 = J.getInterceptor$asx($arguments), map1 = t1.$index($arguments, 0).assertMap$1("map1"), map2 = t1.$index($arguments, 1).assertMap$1("map2"); t1 = type$.Value; t2 = A.LinkedHashMap_LinkedHashMap$of(map1._map$_contents, t1, t1); t2.addAll$1(0, map2._map$_contents); return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 40 }; A._merge_closure0.prototype = { call$1($arguments) { var keys, last, _null = null, t1 = J.getInterceptor$asx($arguments), map1 = t1.$index($arguments, 0).assertMap$1("map1"), _0_0 = t1.$index($arguments, 1).get$asList(), _0_1 = A._InitializedCell$(new A._merge__closure(_0_0)); if (_0_1._readFinal$0() <= 0) throw A.wrapException(A.SassScriptException$("Expected $args to contain a key.", _null)); if (J.$eq$(_0_1._readFinal$0(), 1)) throw A.wrapException(A.SassScriptException$("Expected $args to contain a map.", _null)); if (_0_1._readFinal$0() >= 1) { keys = B.JSArray_methods.sublist$2(_0_0, 0, _0_1._readFinal$0() - 1); last = _0_0[_0_1._readFinal$0() - 1]; last = last; t1 = true; } else { last = _null; keys = last; t1 = false; } if (t1) return A._modify(map1, keys, new A._merge__closure0(last.assertMap$1("map2")), true); throw A.wrapException("[BUG] Unreachable code"); }, $signature: 6 }; A._merge__closure.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A._merge__closure0.prototype = { call$1(oldValue) { var t1, t2, nestedMap = oldValue.tryMap$0(); if (nestedMap == null) return this.map2; t1 = type$.Value; t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map$_contents, t1, t1); t2.addAll$1(0, this.map2._map$_contents); return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 537 }; A._deepMerge_closure.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); return A._deepMergeImpl(t1.$index($arguments, 0).assertMap$1("map1"), t1.$index($arguments, 1).assertMap$1("map2")); }, $signature: 40 }; A._deepRemove_closure.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), map = t1.$index($arguments, 0).assertMap$1("map"), t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value); B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList()); return A._modify(map, A.IterableExtension_get_exceptLast(t2), new A._deepRemove__closure(t2), false); }, $signature: 6 }; A._deepRemove__closure.prototype = { call$1(value) { var nestedMap, t1, t2, _0_0 = value.tryMap$0(); if (_0_0 != null) { nestedMap = _0_0; t1 = true; } else { nestedMap = null; t1 = false; } if (t1 && nestedMap._map$_contents.containsKey$1(B.JSArray_methods.get$last(this.keys))) { t1 = type$.Value; t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map$_contents, t1, t1); t2.remove$1(0, B.JSArray_methods.get$last(this.keys)); return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1)); } return value; }, $signature: 43 }; A._remove_closure.prototype = { call$1($arguments) { return J.$index$asx($arguments, 0).assertMap$1("map"); }, $signature: 40 }; A._remove_closure0.prototype = { call$1($arguments) { var mutableMap, t3, _i, t1 = J.getInterceptor$asx($arguments), map = t1.$index($arguments, 0).assertMap$1("map"), t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value); B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList()); t1 = type$.Value; mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map$_contents, t1, t1); for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) mutableMap.remove$1(0, t2[_i]); return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1)); }, $signature: 40 }; A._keys_closure.prototype = { call$1($arguments) { var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map$_contents; return A.SassList$(t1.get$keys(t1), B.ListSeparator_rXA, false); }, $signature: 29 }; A._values_closure.prototype = { call$1($arguments) { var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map$_contents; return A.SassList$(t1.get$values(t1), B.ListSeparator_rXA, false); }, $signature: 29 }; A._hasKey_closure.prototype = { call$1($arguments) { var value, t1 = J.getInterceptor$asx($arguments), map = t1.$index($arguments, 0).assertMap$1("map"), t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value); B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList()); for (t1 = A.IterableExtension_get_exceptLast(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) { value = map._map$_contents.$index(0, t1.get$current(t1)); if (!(value instanceof A.SassMap)) return B.SassBoolean_false; } return map._map$_contents.containsKey$1(B.JSArray_methods.get$last(t2)) ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._modify_modifyNestedMap.prototype = { call$1(map) { var nestedMap, _this = this, t1 = type$.Value, mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map$_contents, t1, t1), t2 = _this.keyIterator, key = t2.get$current(t2); if (!t2.moveNext$0()) { t2 = mutableMap.$index(0, key); if (t2 == null) t2 = B.C__SassNull; mutableMap.$indexSet(0, key, _this.modify.call$1(t2)); return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1)); } t2 = mutableMap.$index(0, key); nestedMap = t2 == null ? null : t2.tryMap$0(); t2 = nestedMap == null; if (t2 && !_this.addNesting) return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1)); mutableMap.$indexSet(0, key, _this.call$1(t2 ? B.SassMap_Map_empty : nestedMap)); return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1)); }, $signature: 538 }; A._deepMergeImpl_closure.prototype = { call$0() { return this._1_0._0; }, $signature: 293 }; A._deepMergeImpl_closure0.prototype = { call$0() { return this._1_0._1; }, $signature: 293 }; A.global_closure.prototype = { call$1($arguments) { var t1, t2, number = J.$index$asx($arguments, 0).assertNumber$1("number"); if (number.hasUnit$1("%")) { t1 = number.toString$0(0); t2 = number.toString$0(0); A.EvaluationContext_current().warn$2(0, string$.Passinp + t1 + ")\nTo emit a CSS abs() now: abs(#{" + t2 + string$.x7d__Mor, B.Deprecation_043); } t1 = number.get$numeratorUnits(number); return A.SassNumber_SassNumber$withUnits(Math.abs(number._number$_value), number.get$denominatorUnits(number), t1); }, $signature: 13 }; A.module_closure0.prototype = { call$1(value) { return Math.abs(value); }, $signature: 42 }; A._ceil_closure.prototype = { call$1(value) { return B.JSNumber_methods.ceil$0(value); }, $signature: 42 }; A._clamp_closure.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), min = t1.$index($arguments, 0).assertNumber$1("min"), number = t1.$index($arguments, 1).assertNumber$1("number"), max = t1.$index($arguments, 2).assertNumber$1("max"); number.convertValueToMatch$3(min, "number", "min"); max.convertValueToMatch$3(min, "max", "min"); if (min.greaterThanOrEquals$1(max).value) return min; if (min.greaterThanOrEquals$1(number).value) return min; if (number.greaterThanOrEquals$1(max).value) return max; return number; }, $signature: 13 }; A._floor_closure.prototype = { call$1(value) { return B.JSNumber_methods.floor$0(value); }, $signature: 42 }; A._max_closure.prototype = { call$1($arguments) { var t1, t2, max, _i, number; 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) { number = t1[_i].assertNumber$0(); if (max == null || max.lessThan$1(number).value) max = number; } if (max != null) return max; throw A.wrapException(A.SassScriptException$("At least one argument must be passed.", null)); }, $signature: 13 }; A._min_closure.prototype = { call$1($arguments) { var t1, t2, min, _i, number; 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) { number = t1[_i].assertNumber$0(); if (min == null || min.greaterThan$1(number).value) min = number; } if (min != null) return min; throw A.wrapException(A.SassScriptException$("At least one argument must be passed.", null)); }, $signature: 13 }; A._round_closure.prototype = { call$1(number) { return B.JSNumber_methods.round$0(number); }, $signature: 42 }; A._hypot_closure.prototype = { call$1($arguments) { var subtotal, i, i0, t3, t4, t1 = J.$index$asx($arguments, 0).get$asList(), t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber>"), numbers = A.List_List$of(new A.MappedListIterable(t1, new A._hypot__closure(), t2), true, t2._eval$1("ListIterable.E")); t1 = numbers.length; if (t1 === 0) throw A.wrapException(A.SassScriptException$("At least one argument must be passed.", null)); for (subtotal = 0, i = 0; i < t1; i = i0) { i0 = i + 1; subtotal += Math.pow(numbers[i].convertValueToMatch$3(numbers[0], "numbers[" + i0 + "]", "numbers[1]"), 2); } t1 = Math.sqrt(subtotal); t2 = numbers[0]; t3 = J.getInterceptor$x(t2); t4 = t3.get$numeratorUnits(t2); return A.SassNumber_SassNumber$withUnits(t1, t3.get$denominatorUnits(t2), t4); }, $signature: 13 }; A._hypot__closure.prototype = { call$1(argument) { return argument.assertNumber$0(); }, $signature: 549 }; A._log_closure.prototype = { call$1($arguments) { var base, _s18_ = " to have no units.", _null = null, t1 = J.getInterceptor$asx($arguments), number = t1.$index($arguments, 0).assertNumber$1("number"); if (number.get$hasUnits()) throw A.wrapException(A.SassScriptException$("$number: Expected " + number.toString$0(0) + _s18_, _null)); else if (J.$eq$(t1.$index($arguments, 1), B.C__SassNull)) return A.SassNumber_SassNumber(Math.log(number._number$_value), _null); base = t1.$index($arguments, 1).assertNumber$1("base"); if (base.get$hasUnits()) throw A.wrapException(A.SassScriptException$("$base: Expected " + base.toString$0(0) + _s18_, _null)); else return A.SassNumber_SassNumber(Math.log(number._number$_value) / Math.log(base._number$_value), _null); }, $signature: 13 }; A._pow_closure.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); return A.pow0(t1.$index($arguments, 0).assertNumber$1("base"), t1.$index($arguments, 1).assertNumber$1("exponent")); }, $signature: 13 }; A._atan2_closure.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), y = t1.$index($arguments, 0).assertNumber$1("y"); 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)); }, $signature: 13 }; A._compatible_closure.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._isUnitless_closure.prototype = { call$1($arguments) { return !J.$index$asx($arguments, 0).assertNumber$1("number").get$hasUnits() ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._unit_closure.prototype = { call$1($arguments) { return new A.SassString(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true); }, $signature: 20 }; A._percentage_closure.prototype = { call$1($arguments) { var number = J.$index$asx($arguments, 0).assertNumber$1("number"); number.assertNoUnits$1("number"); return A.SassNumber_SassNumber(number._number$_value * 100, "%"); }, $signature: 13 }; A._randomFunction_closure.prototype = { call$1($arguments) { var limit, t2, t3, t4, limitScalar, t1 = J.getInterceptor$asx($arguments); if (J.$eq$(t1.$index($arguments, 0), B.C__SassNull)) return A.SassNumber_SassNumber($.$get$_random0().nextDouble$0(), null); limit = t1.$index($arguments, 0).assertNumber$1("limit"); if (limit.get$hasUnits()) { t1 = limit.toString$0(0); t2 = limit.get$unitString(); t3 = limit.get$unitString(); t4 = limit.get$unitString(); A.EvaluationContext_current().warn$2(0, string$.math_r + t1 + string$.x29x20in_a + t2 + ")) * 1" + t3 + string$.x0a_To_p + t4 + string$.x29x29__Mo, B.Deprecation_8WR); } limitScalar = limit.assertInt$1("limit"); if (limitScalar < 1) throw A.wrapException(A.SassScriptException$("$limit: Must be greater than 0, was " + limit.toString$0(0) + ".", null)); return A.SassNumber_SassNumber($.$get$_random0().nextInt$1(limitScalar) + 1, null); }, $signature: 13 }; A._div_closure.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), number1 = t1.$index($arguments, 0), number2 = t1.$index($arguments, 1); if (!(number1 instanceof A.SassNumber) || !(number2 instanceof A.SassNumber)) { t1 = A.EvaluationContext_current(); t1.warn$2(0, string$.math_d, null); } return number1.dividedBy$1(number2); }, $signature: 6 }; A._singleArgumentMathFunc_closure.prototype = { call$1($arguments) { return this.mathFunc.call$1(J.$index$asx($arguments, 0).assertNumber$1("number")); }, $signature: 13 }; A._numberFunction_closure.prototype = { call$1($arguments) { var number = J.$index$asx($arguments, 0).assertNumber$1("number"), t1 = this.transform.call$1(number._number$_value), t2 = number.get$numeratorUnits(number); return A.SassNumber_SassNumber$withUnits(t1, number.get$denominatorUnits(number), t2); }, $signature: 13 }; A.global_closure27.prototype = { call$1($arguments) { return $._features.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature")._string$_text) ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A.global_closure28.prototype = { call$1($arguments) { return new A.SassString(A.serializeValue(J.get$first$ax($arguments), true, true), false); }, $signature: 20 }; A.global_closure29.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), _0_0 = t1.$index($arguments, 0); $label0$0: { if (_0_0 instanceof A.SassArgumentList) { t1 = "arglist"; break $label0$0; } if (_0_0 instanceof A.SassBoolean) { t1 = "bool"; break $label0$0; } if (_0_0 instanceof A.SassColor) { t1 = "color"; break $label0$0; } if (_0_0 instanceof A.SassList) { t1 = "list"; break $label0$0; } if (_0_0 instanceof A.SassMap) { t1 = "map"; break $label0$0; } if (B.C__SassNull === _0_0) { t1 = "null"; break $label0$0; } if (_0_0 instanceof A.SassNumber) { t1 = "number"; break $label0$0; } if (_0_0 instanceof A.SassFunction) { t1 = "function"; break $label0$0; } if (_0_0 instanceof A.SassMixin) { t1 = "mixin"; break $label0$0; } if (_0_0 instanceof A.SassCalculation) { t1 = "calculation"; break $label0$0; } if (_0_0 instanceof A.SassString) { t1 = "string"; break $label0$0; } t1 = A.throwExpression("[BUG] Unknown value type " + A.S(t1.$index($arguments, 0))); } return new A.SassString(t1, false); }, $signature: 20 }; A.global_closure30.prototype = { call$1($arguments) { var t2, keywords, t3, t4, key, value, t1 = J.getInterceptor$asx($arguments), _1_0 = t1.$index($arguments, 0); if (_1_0 instanceof A.SassArgumentList) { t2 = _1_0._wereKeywordsAccessed = true; keywords = _1_0._keywords; } else { keywords = null; t2 = false; } if (t2) { t1 = type$.Value; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs(keywords, type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); key = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString(key, false), value); } return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1)); } else throw A.wrapException("$args: " + A.S(t1.$index($arguments, 0)) + " is not an argument list."); }, $signature: 40 }; A.local_closure.prototype = { call$1($arguments) { return new A.SassString(J.$index$asx($arguments, 0).assertCalculation$1("calc").name, true); }, $signature: 20 }; A.local_closure0.prototype = { call$1($arguments) { var t1 = J.$index$asx($arguments, 0).assertCalculation$1("calc").$arguments; return A.SassList$(new A.MappedListIterable(t1, new A.local__closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), B.ListSeparator_rXA, false); }, $signature: 29 }; A.local__closure0.prototype = { call$1(argument) { return argument instanceof A.Value ? argument : new A.SassString(J.toString$0$(argument), false); }, $signature: 562 }; A.local_closure1.prototype = { call$1($arguments) { var _0_2, acceptsContent, _0_2_isSet, t1, hasContent, _null = null, mixin = J.$index$asx($arguments, 0).assertMixin$1("mixin"), _0_0 = mixin.callable, _0_5 = A._InitializedCell$(new A.local__closure(_0_0)); $label0$0: { if (type$.AsyncBuiltInCallable._is(_0_0)) { _0_2 = _0_0.get$acceptsContent(); acceptsContent = _0_2; _0_2_isSet = true; t1 = true; } else { acceptsContent = _null; _0_2 = acceptsContent; _0_2_isSet = false; t1 = false; } if (!t1) if (_0_0 instanceof A.BuiltInCallable) { acceptsContent = _0_2_isSet ? _0_2 : _0_0.acceptsContent; t1 = true; } else t1 = false; else t1 = true; if (t1) { t1 = acceptsContent; break $label0$0; } if (_0_0 instanceof A.UserDefinedCallable) if (_0_5._readFinal$0() instanceof A.MixinRule) { hasContent = _0_5._readFinal$0().get$hasContent(); t1 = true; } else { hasContent = _null; t1 = false; } else { hasContent = _null; t1 = false; } if (t1) { t1 = hasContent; break $label0$0; } t1 = A.throwExpression(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + ".")); } return t1 ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A.local__closure.prototype = { call$0() { return type$.UserDefinedCallable_dynamic._as(this._0_0).declaration; }, $signature: 143 }; A._nest_closure.prototype = { call$1($arguments) { var t1 = {}, selectors = J.$index$asx($arguments, 0).get$asList(); if (selectors.length === 0) throw A.wrapException(A.SassScriptException$(string$.x24selec, null)); t1.first = true; 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(); }, $signature: 29 }; A._nest__closure.prototype = { call$1(selector) { var t1 = this._box_0, result = A.SassApiValue_assertSelector(selector, !t1.first, null); t1.first = false; return result; }, $signature: 153 }; A._nest__closure0.prototype = { call$2($parent, child) { return child.resolveParentSelectors$1($parent); }, $signature: 157 }; A._append_closure.prototype = { call$1($arguments) { var selectors = J.$index$asx($arguments, 0).get$asList(); if (selectors.length === 0) throw A.wrapException(A.SassScriptException$(string$.x24selec, null)); return new A.MappedListIterable(selectors, new A._append__closure(), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList>")).reduce$1(0, new A._append__closure0(A.EvaluationContext_current().get$currentCallableSpan())).get$asSassList(); }, $signature: 29 }; A._append__closure.prototype = { call$1(selector) { return A.SassApiValue_assertSelector(selector, false, null); }, $signature: 153 }; A._append__closure0.prototype = { call$2($parent, child) { var t1 = child.components, t2 = this.span; return A.SelectorList$(new A.MappedListIterable(t1, new A._append___closure($parent, t2), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>")), t2).resolveParentSelectors$1($parent); }, $signature: 157 }; A._append___closure.prototype = { call$1(complex) { var _0_0, component, rest, t1, newCompound, t2, _null = null; if (complex.leadingCombinators.length !== 0) throw A.wrapException(A.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", _null)); _0_0 = complex.components; if (_0_0.length >= 1) { component = _0_0[0]; rest = B.JSArray_methods.sublist$1(_0_0, 1); t1 = true; } else { rest = _null; component = rest; t1 = false; } if (!t1) throw A.wrapException(A.StateError$("Pattern matching error")); newCompound = A._prependParent(component.selector); if (newCompound == null) throw A.wrapException(A.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", _null)); t1 = this.span; t2 = A._setArrayType([new A.ComplexSelectorComponent(newCompound, A.List_List$unmodifiable(component.combinators, type$.CssValue_Combinator), t1)], type$.JSArray_ComplexSelectorComponent); B.JSArray_methods.addAll$1(t2, rest); return A.ComplexSelector$(B.List_empty1, t2, t1, false); }, $signature: 59 }; A._extend_closure.prototype = { call$1($arguments) { var target, source, _s8_ = "selector", _s8_0 = "extendee", _s8_1 = "extender", t1 = J.getInterceptor$asx($arguments), selector = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, _s8_); selector.assertNotBogus$1$name(_s8_); target = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, _s8_0); target.assertNotBogus$1$name(_s8_0); source = A.SassApiValue_assertSelector(t1.$index($arguments, 2), false, _s8_1); source.assertNotBogus$1$name(_s8_1); return A.ExtensionStore__extendOrReplace(selector, source, target, B.ExtendMode_allTargets_allTargets, A.EvaluationContext_current().get$currentCallableSpan()).get$asSassList(); }, $signature: 29 }; A._replace_closure.prototype = { call$1($arguments) { var target, source, _s8_ = "selector", _s8_0 = "original", _s11_ = "replacement", t1 = J.getInterceptor$asx($arguments), selector = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, _s8_); selector.assertNotBogus$1$name(_s8_); target = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, _s8_0); target.assertNotBogus$1$name(_s8_0); source = A.SassApiValue_assertSelector(t1.$index($arguments, 2), false, _s11_); source.assertNotBogus$1$name(_s11_); return A.ExtensionStore__extendOrReplace(selector, source, target, B.ExtendMode_replace_replace, A.EvaluationContext_current().get$currentCallableSpan()).get$asSassList(); }, $signature: 29 }; A._unify_closure.prototype = { call$1($arguments) { var selector2, _s9_ = "selector1", _s9_0 = "selector2", t1 = J.getInterceptor$asx($arguments), selector1 = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, _s9_); selector1.assertNotBogus$1$name(_s9_); selector2 = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, _s9_0); selector2.assertNotBogus$1$name(_s9_0); t1 = selector1.unify$1(selector2); t1 = t1 == null ? null : t1.get$asSassList(); return t1 == null ? B.C__SassNull : t1; }, $signature: 6 }; A._isSuperselector_closure.prototype = { call$1($arguments) { var selector2, t1 = J.getInterceptor$asx($arguments), selector1 = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, "super"); selector1.assertNotBogus$1$name("super"); selector2 = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, "sub"); selector2.assertNotBogus$1$name("sub"); return A.listIsSuperselector(selector1.components, selector2.components) ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._simpleSelectors_closure.prototype = { call$1($arguments) { var t1 = A.SassApiValue_assertCompoundSelector(J.$index$asx($arguments, 0), "selector").components; return A.SassList$(new A.MappedListIterable(t1, new A._simpleSelectors__closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), B.ListSeparator_rXA, false); }, $signature: 29 }; A._simpleSelectors__closure.prototype = { call$1(simple) { return new A.SassString(A.serializeSelector(simple, true), false); }, $signature: 300 }; A._parse_closure.prototype = { call$1($arguments) { return A.SassApiValue_assertSelector(J.$index$asx($arguments, 0), false, "selector").get$asSassList(); }, $signature: 29 }; A._prependParent_closure.prototype = { call$0() { return this._0_0.length >= 1; }, $signature: 1 }; A._prependParent_closure0.prototype = { call$0() { return this._0_0[0]; }, $signature: 218 }; A.module_closure.prototype = { call$1($arguments) { var limit, t2, chunks, i, lastEnd, match, t3, t1 = J.getInterceptor$asx($arguments), string = t1.$index($arguments, 0).assertString$1("string"), separator = t1.$index($arguments, 1).assertString$1("separator"); t1 = t1.$index($arguments, 2).get$realNull(); limit = t1 == null ? null : t1.assertNumber$1("limit").assertInt$1("limit"); if (limit != null && limit < 1) throw A.wrapException(A.SassScriptException$("$limit: Must be 1 or greater, was " + A.S(limit) + ".", null)); t1 = string._string$_text; if (t1.length === 0) return B.SassList_Sof0; else { t2 = separator._string$_text; if (t2.length === 0) 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_rXA, true); } chunks = A._setArrayType([], type$.JSArray_String); 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();) { match = t2.__js_helper$_current; t3 = match.start; chunks.push(B.JSString_methods.substring$2(t1, lastEnd, t3)); lastEnd = t3 + match.pattern.length; ++i; if (i === limit) break; } chunks.push(B.JSString_methods.substring$1(t1, lastEnd)); return A.SassList$(new A.MappedListIterable(chunks, new A.module__closure0(string), type$.MappedListIterable_String_Value), B.ListSeparator_rXA, true); }, $signature: 29 }; A.module__closure.prototype = { call$1(rune) { return new A.SassString(A.Primitives_stringFromCharCode(rune), this.string._hasQuotes); }, $signature: 308 }; A.module__closure0.prototype = { call$1(chunk) { return new A.SassString(chunk, this.string._hasQuotes); }, $signature: 310 }; A._unquote_closure.prototype = { call$1($arguments) { var string = J.$index$asx($arguments, 0).assertString$1("string"); if (!string._hasQuotes) return string; return new A.SassString(string._string$_text, false); }, $signature: 20 }; A._quote_closure.prototype = { call$1($arguments) { var string = J.$index$asx($arguments, 0).assertString$1("string"); if (string._hasQuotes) return string; return new A.SassString(string._string$_text, true); }, $signature: 20 }; A._length_closure.prototype = { call$1($arguments) { return A.SassNumber_SassNumber(J.$index$asx($arguments, 0).assertString$1("string").get$_sassLength(), null); }, $signature: 13 }; A._insert_closure.prototype = { call$1($arguments) { var indexInt, codeUnitIndex, _s5_ = "index", t1 = J.getInterceptor$asx($arguments), string = t1.$index($arguments, 0).assertString$1("string"), insert = t1.$index($arguments, 1).assertString$1("insert"), index = t1.$index($arguments, 2).assertNumber$1(_s5_); index.assertNoUnits$1(_s5_); indexInt = index.assertInt$1(_s5_); if (indexInt < 0) indexInt = Math.max(string.get$_sassLength() + indexInt + 2, 0); t1 = string._string$_text; codeUnitIndex = A.codepointIndexToCodeUnitIndex(t1, A._codepointForIndex(indexInt, string.get$_sassLength(), false)); return new A.SassString(B.JSString_methods.replaceRange$3(t1, codeUnitIndex, codeUnitIndex, insert._string$_text), string._hasQuotes); }, $signature: 20 }; A._index_closure.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), t2 = t1.$index($arguments, 0).assertString$1("string")._string$_text, codeUnitIndex = B.JSString_methods.indexOf$1(t2, t1.$index($arguments, 1).assertString$1("substring")._string$_text); if (codeUnitIndex === -1) return B.C__SassNull; return A.SassNumber_SassNumber(A.codeUnitIndexToCodepointIndex(t2, codeUnitIndex) + 1, null); }, $signature: 6 }; A._slice_closure.prototype = { call$1($arguments) { var lengthInCodepoints, endInt, startCodepoint, endCodepoint, _s8_ = "start-at", t1 = J.getInterceptor$asx($arguments), string = t1.$index($arguments, 0).assertString$1("string"), start = t1.$index($arguments, 1).assertNumber$1(_s8_), end = t1.$index($arguments, 2).assertNumber$1("end-at"); start.assertNoUnits$1(_s8_); end.assertNoUnits$1("end-at"); lengthInCodepoints = string.get$_sassLength(); endInt = end.assertInt$0(); if (endInt === 0) return string._hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted(); startCodepoint = A._codepointForIndex(start.assertInt$0(), lengthInCodepoints, false); endCodepoint = A._codepointForIndex(endInt, lengthInCodepoints, true); if (endCodepoint === lengthInCodepoints) --endCodepoint; if (endCodepoint < startCodepoint) return string._hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted(); t1 = string._string$_text; return new A.SassString(B.JSString_methods.substring$2(t1, A.codepointIndexToCodeUnitIndex(t1, startCodepoint), A.codepointIndexToCodeUnitIndex(t1, endCodepoint + 1)), string._hasQuotes); }, $signature: 20 }; A._toUpperCase_closure.prototype = { call$1($arguments) { var t1, t2, i, t3, t4, string = J.$index$asx($arguments, 0).assertString$1("string"); for (t1 = string._string$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) { t4 = t1.charCodeAt(i); t3 += A.Primitives_stringFromCharCode(t4 >= 97 && t4 <= 122 ? t4 & 4294967263 : t4); } return new A.SassString(t3.charCodeAt(0) == 0 ? t3 : t3, string._hasQuotes); }, $signature: 20 }; A._toLowerCase_closure.prototype = { call$1($arguments) { var t1, t2, i, t3, t4, string = J.$index$asx($arguments, 0).assertString$1("string"); for (t1 = string._string$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) { t4 = t1.charCodeAt(i); t3 += A.Primitives_stringFromCharCode(t4 >= 65 && t4 <= 90 ? t4 | 32 : t4); } return new A.SassString(t3.charCodeAt(0) == 0 ? t3 : t3, string._hasQuotes); }, $signature: 20 }; A._uniqueId_closure.prototype = { call$1($arguments) { var t1 = $.$get$_previousUniqueId() + ($.$get$_random().nextInt$1(36) + 1); $._previousUniqueId = t1; if (t1 > Math.pow(36, 6)) $._previousUniqueId = B.JSInt_methods.$mod($.$get$_previousUniqueId(), A._asInt(Math.pow(36, 6))); return new A.SassString("u" + B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1($.$get$_previousUniqueId(), 36), 6, "0"), false); }, $signature: 20 }; A.ImportCache.prototype = { canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) { var t1, relativeResult, _this = this; if (A.isBrowser()) t1 = (baseImporter == null || baseImporter instanceof A.NoOpImporter) && _this._importers.length === 0; else t1 = false; if (t1) throw A.wrapException(string$.Custom); if (baseImporter != null && url.get$scheme() === "") { relativeResult = _this._relativeCanonicalizeCache.putIfAbsent$2(new A._Record_4_baseImporter_baseUrl_forImport([url, baseImporter, baseUrl, forImport]), new A.ImportCache_canonicalize_closure(_this, baseImporter, baseUrl, url, forImport)); if (relativeResult != null) return relativeResult; } return _this._canonicalizeCache.putIfAbsent$2(new A._Record_2_forImport(url, forImport), new A.ImportCache_canonicalize_closure0(_this, url, baseUrl, forImport)); }, canonicalize$3$baseImporter$baseUrl($receiver, url, baseImporter, baseUrl) { return this.canonicalize$4$baseImporter$baseUrl$forImport($receiver, url, baseImporter, baseUrl, false); }, _canonicalize$4(importer, url, baseUrl, forImport) { var passContainingUrl, t1, result, _null = null, canonicalize = forImport ? new A.ImportCache__canonicalize_closure(importer, url) : new A.ImportCache__canonicalize_closure0(importer, url); if (baseUrl != null) if (url.get$scheme() !== "") { url.get$scheme(); passContainingUrl = false; } else passContainingUrl = true; else passContainingUrl = false; t1 = passContainingUrl ? baseUrl : _null; result = A.withContainingUrl(t1, canonicalize, type$.nullable_Uri); if (result == null) return _null; if (result.get$scheme() === "") A.WarnForDeprecation_warnForDeprecation(this._logger, B.Deprecation_mFp, "Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2e_Rela, _null, _null); else result.get$scheme(); return new A._Record_3_originalUrl(importer, result, url); }, importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, quiet) { return this._importCache.putIfAbsent$2(canonicalUrl, new A.ImportCache_importCanonical_closure(this, importer, canonicalUrl, originalUrl, quiet)); }, importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) { return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, false); }, importCanonical$2(importer, canonicalUrl) { return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, null, false); }, humanize$1(canonicalUrl) { var t2, t1 = this._canonicalizeCache; t1 = A.IterableNullableExtension_whereNotNull(t1.get$values(t1), type$.Record_3_Importer_and_Uri_and_Uri_originalUrl); t2 = t1.$ti; t2 = A.NullableExtension_andThen(A.minBy(new A.MappedIterable(new A.WhereIterable(t1, new A.ImportCache_humanize_closure(canonicalUrl), t2._eval$1("WhereIterable")), new A.ImportCache_humanize_closure0(), t2._eval$1("MappedIterable")), new A.ImportCache_humanize_closure1()), new A.ImportCache_humanize_closure2(canonicalUrl)); return t2 == null ? canonicalUrl : t2; }, sourceMapUrl$1(_, canonicalUrl) { var t1 = this._resultsCache.$index(0, canonicalUrl); t1 = t1 == null ? null : t1.get$sourceMapUrl(t1); return t1 == null ? canonicalUrl : t1; }, clearCanonicalize$1(url) { var t1 = this._canonicalizeCache; t1.remove$1(0, new A._Record_2_forImport(url, false)); t1.remove$1(0, new A._Record_2_forImport(url, true)); this._relativeCanonicalizeCache.removeWhere$1(0, new A.ImportCache_clearCanonicalize_closure(url)); }, clearImport$1(canonicalUrl) { this._resultsCache.remove$1(0, canonicalUrl); this._importCache.remove$1(0, canonicalUrl); } }; A.ImportCache_canonicalize_closure.prototype = { call$0() { var _this = this, t1 = _this.baseUrl, t2 = t1 == null ? null : t1.resolveUri$1(_this.url); if (t2 == null) t2 = _this.url; return _this.$this._canonicalize$4(_this.baseImporter, t2, t1, _this.forImport); }, $signature: 100 }; A.ImportCache_canonicalize_closure0.prototype = { call$0() { var t1, t2, t3, t4, t5, t6, _i, _0_0, result, t7, _this = this; for (t1 = _this.$this, t2 = t1._importers, t3 = t2.length, t4 = _this.url, t5 = _this.baseUrl, t6 = _this.forImport, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) { _0_0 = t1._canonicalize$4(t2[_i], t4, t5, t6); if (_0_0 != null) { result = _0_0; t7 = true; } else { result = null; t7 = false; } if (t7) return result; } return null; }, $signature: 100 }; A.ImportCache__canonicalize_closure.prototype = { call$0() { var t1 = type$.nullable_Object; return A.runZoned(new A.ImportCache__canonicalize__closure(this.importer, this.resolved), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__inImportRule, true], t1, t1), type$.nullable_Uri); }, $signature: 56 }; A.ImportCache__canonicalize__closure.prototype = { call$0() { return this.importer.canonicalize$1(0, this.resolved); }, $signature: 56 }; A.ImportCache__canonicalize_closure0.prototype = { call$0() { return this.importer.canonicalize$1(0, this.resolved); }, $signature: 56 }; A.ImportCache_importCanonical_closure.prototype = { call$0() { var t2, t3, t4, t5, _this = this, t1 = _this.canonicalUrl, result = _this.importer.load$1(0, t1); if (result == null) return null; t2 = _this.$this; t2._resultsCache.$indexSet(0, t1, result); t3 = result.contents; t4 = result.syntax; t5 = _this.originalUrl; t1 = t5 == null ? t1 : t5.resolveUri$1(t1); return A.Stylesheet_Stylesheet$parse(t3, t4, _this.quiet ? $.$get$Logger_quiet() : t2._logger, t1); }, $signature: 112 }; A.ImportCache_humanize_closure.prototype = { call$1(result) { return J.$eq$(result._1, this.canonicalUrl); }, $signature: 316 }; A.ImportCache_humanize_closure0.prototype = { call$1(result) { return result._2; }, $signature: 317 }; A.ImportCache_humanize_closure1.prototype = { call$1(url) { return url.get$path(url).length; }, $signature: 111 }; A.ImportCache_humanize_closure2.prototype = { call$1(url) { var t1 = $.$get$url(), t2 = this.canonicalUrl; return url.resolve$1(A.ParsedPath_ParsedPath$parse(t2.get$path(t2), t1.style).get$basename()); }, $signature: 48 }; A.ImportCache_clearCanonicalize_closure.prototype = { call$2(key, _) { return J.$eq$(key._values[0], this.url); }, $signature: 318 }; A.Importer.prototype = { modificationTime$1(url) { return new A.DateTime(Date.now(), false); }, couldCanonicalize$2(url, canonicalUrl) { return true; } }; A.AsyncImporter.prototype = {}; A.FilesystemImporter.prototype = { canonicalize$1(_, url) { if (url.get$scheme() !== "file" && url.get$scheme() !== "") return null; return A.NullableExtension_andThen(A.resolveImportPath(A.join(this._loadPath, $.$get$context().style.pathFromUri$1(A._parseUri(url)), null)), new A.FilesystemImporter_canonicalize_closure()); }, load$1(_, url) { var path = $.$get$context().style.pathFromUri$1(A._parseUri(url)), t1 = A.readFile(path), t2 = A.Syntax_forPath(path), t3 = url.get$scheme(); if (t3 === "") A.throwExpression(A.ArgumentError$value(url, "sourceMapUrl", "must be absolute")); return new A.ImporterResult(t1, url, t2); }, modificationTime$1(url) { return A.modificationTime($.$get$context().style.pathFromUri$1(A._parseUri(url))); }, couldCanonicalize$2(url, canonicalUrl) { var t1, t2, basename, canonicalBasename; if (url.get$scheme() !== "file" && url.get$scheme() !== "") return false; if (canonicalUrl.get$scheme() !== "file") return false; t1 = $.$get$url(); t2 = t1.style; basename = A.ParsedPath_ParsedPath$parse(url.get$path(url), t2).get$basename(); canonicalBasename = A.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t2).get$basename(); if (!B.JSString_methods.startsWith$1(basename, "_") && B.JSString_methods.startsWith$1(canonicalBasename, "_")) canonicalBasename = B.JSString_methods.substring$1(canonicalBasename, 1); return basename === canonicalBasename || basename === t1.withoutExtension$1(canonicalBasename); }, toString$0(_) { return this._loadPath; } }; A.FilesystemImporter_canonicalize_closure.prototype = { call$1(resolved) { var t2, t0, _null = null, t1 = A.isNodeJs() ? self.process : _null; if (!J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) { t1 = A.isNodeJs() ? self.process : _null; t1 = J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "darwin"); } else t1 = true; if (t1) { t1 = $.$get$context(); t2 = A._realCasePath(A.absolute(t1.normalize$1(resolved), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)); t0 = t2; t2 = t1; t1 = t0; } else { t1 = $.$get$context(); t2 = t1.canonicalize$1(0, resolved); t0 = t2; t2 = t1; t1 = t0; } return t2.toUri$1(t1); }, $signature: 164 }; A.NoOpImporter.prototype = {}; A.ImporterResult.prototype = { get$sourceMapUrl(_) { return this._sourceMapUrl; } }; A.resolveImportPath_closure.prototype = { call$0() { return A._exactlyOne(A._tryPath($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension)); }, $signature: 32 }; A.resolveImportPath_closure0.prototype = { call$0() { return A._exactlyOne(A._tryPathWithExtensions(this.path + ".import")); }, $signature: 32 }; A._tryPathAsDirectory_closure.prototype = { call$0() { return A._exactlyOne(A._tryPathWithExtensions(A.join(this.path, "index.import", null))); }, $signature: 32 }; A._exactlyOne_closure.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A._exactlyOne_closure0.prototype = { call$1(path) { var t1 = $.$get$context(); return " " + t1.prettyUri$1(t1.toUri$1(path)); }, $signature: 7 }; A.InterpolationBuffer.prototype = { writeCharCode$1(character) { this._interpolation_buffer$_text._contents += A.Primitives_stringFromCharCode(character); return null; }, addInterpolation$1(interpolation) { var _0_4, first, rest, _this = this, _null = null, toAdd = interpolation.contents, t1 = toAdd.length; if (t1 === 0) return; _0_4 = A._InitializedCell$(new A.InterpolationBuffer_addInterpolation_closure(toAdd)); if (t1 >= 1) if (typeof _0_4._readFinal$0() == "string") { first = _0_4._readFinal$0(); rest = B.JSArray_methods.sublist$1(toAdd, 1); t1 = true; } else { rest = _null; first = rest; t1 = false; } else { rest = _null; first = rest; t1 = false; } if (t1) { _this._interpolation_buffer$_text._contents += A.S(first); toAdd = rest; } _this._flushText$0(); t1 = _this._interpolation_buffer$_contents; B.JSArray_methods.addAll$1(t1, toAdd); if (typeof B.JSArray_methods.get$last(t1) == "string") _this._interpolation_buffer$_text._contents += A.S(t1.pop()); }, _flushText$0() { var t1 = this._interpolation_buffer$_text, t2 = t1._contents; if (t2.length === 0) return; this._interpolation_buffer$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2); t1._contents = ""; }, interpolation$1(span) { var t1 = A.List_List$of(this._interpolation_buffer$_contents, true, type$.Object), t2 = this._interpolation_buffer$_text._contents; if (t2.length !== 0) t1.push(t2.charCodeAt(0) == 0 ? t2 : t2); return A.Interpolation$(t1, span); }, toString$0(_) { var t1, t2, _i, t3, element; for (t1 = this._interpolation_buffer$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) { element = t1[_i]; t3 = typeof element == "string" ? t3 + element : t3 + "#{" + A.S(element) + A.Primitives_stringFromCharCode(125); } t1 = t3 + this._interpolation_buffer$_text.toString$0(0); return t1.charCodeAt(0) == 0 ? t1 : t1; } }; A.InterpolationBuffer_addInterpolation_closure.prototype = { call$0() { return this._0_0[0]; }, $signature: 14 }; A.InterpolationMap.prototype = { mapException$1(error) { var t3, t4, _this = this, target = error.get$span(error), source = _this.mapSpan$1(target), startIndex = _this._indexInContents$1(target.get$start(target)), endIndex = _this._indexInContents$1(target.get$end(target)), t1 = _this._interpolation.contents, t2 = error._span_exception$_message; if (!A.SubListIterable$(t1, startIndex, null, A._arrayInstanceType(t1)._precomputed1).take$1(0, endIndex - startIndex + 1).any$1(0, new A.InterpolationMap_mapException_closure())) return new A.SourceSpanFormatException(error.get$source(), t2, source); else { t1 = type$.SourceSpan; t3 = type$.String; t4 = A.LinkedHashMap_LinkedHashMap$_literal([target, "error in interpolated output"], t1, t3); error.get$source(); return new A.MultiSourceSpanFormatException("", A.ConstantMap_ConstantMap$from(t4, t1, t3), t2, source); } }, mapSpan$1(target) { var t1, start, end, t2, _this = this, _null = null, _0_0 = new A._Record_2(_this._mapLocation$1(target.get$start(target)), _this._mapLocation$1(target.get$end(target))), _0_1 = A._InitializedCell$(new A.InterpolationMap_mapSpan_closure(_0_0)), _0_2 = A._InitializedCell$(new A.InterpolationMap_mapSpan_closure0(_0_0)); $label0$0: { t1 = type$.FileSpan; if (t1._is(_0_1._readFinal$0())) { start = _0_1._readFinal$0(); if (t1._is(_0_2._readFinal$0())) { end = _0_2._readFinal$0(); t2 = true; } else { end = _null; t2 = false; } } else { end = _null; start = end; t2 = false; } if (t2) { t1 = start.expand$1(0, end); break $label0$0; } if (t1._is(_0_1._readFinal$0())) { start = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.FileLocation) { end = _0_2._readFinal$0(); t2 = true; } else { end = _null; t2 = false; } } else { end = _null; start = end; t2 = false; } if (t2) { t1 = _this._interpolation.span; t1 = t1.get$file(t1).span$2(0, _this._expandInterpolationSpanLeft$1(start.get$start(start)), end.offset); break $label0$0; } if (_0_1._readFinal$0() instanceof A.FileLocation) { start = _0_1._readFinal$0(); if (t1._is(_0_2._readFinal$0())) { end = _0_2._readFinal$0(); t1 = true; } else { end = _null; t1 = false; } } else { end = _null; start = end; t1 = false; } if (t1) { t1 = _this._interpolation.span; t1 = t1.get$file(t1).span$2(0, start.offset, _this._expandInterpolationSpanRight$1(end.get$end(end))); break $label0$0; } if (_0_1._readFinal$0() instanceof A.FileLocation) { start = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.FileLocation) { end = _0_2._readFinal$0(); t1 = true; } else { end = _null; t1 = false; } } else { end = _null; start = end; t1 = false; } if (t1) { t1 = _this._interpolation.span; t1 = t1.get$file(t1).span$2(0, start.offset, end.offset); break $label0$0; } t1 = A.throwExpression("[BUG] Unreachable"); } return t1; }, _mapLocation$1(target) { var chunk, t4, previousLocation, _this = this, index = _this._indexInContents$1(target), t1 = _this._interpolation, t2 = t1.contents, _0_0 = t2[index], t3 = type$.Expression; if (t3._is(_0_0)) { chunk = _0_0; t4 = true; } else { chunk = null; t4 = false; } if (t4) return chunk.get$span(chunk); t4 = index === 0; t1 = t1.span; if (t4) previousLocation = t1.get$start(t1); else { t1 = t1.get$file(t1); t2 = t3._as(t2[index - 1]); t2 = t2.get$span(t2); previousLocation = A.FileLocation$_(t1, _this._expandInterpolationSpanRight$1(t2.get$end(t2))); } t1 = t4 ? 0 : _this._targetLocations[index - 1].get$offset(); return A.FileLocation$_(previousLocation.file, previousLocation.offset + (target.offset - t1)); }, _indexInContents$1(target) { var t1, t2, t3, i; for (t1 = this._targetLocations, t2 = t1.length, t3 = target.offset, i = 0; i < t2; ++i) if (t3 < t1[i].get$offset()) return i; return this._interpolation.contents.length - 1; }, _expandInterpolationSpanLeft$1(start) { var i0, prev, char, source = start.file._decodedChars, i = start.offset - 1; for (; i >= 0;) { i0 = i - 1; prev = source[i]; if (prev === 123) { if (source[i0] === 35) { i = i0; break; } i = i0; } else if (prev === 47) { i = i0 - 1; if (source[i0] === 42) for (; true;) { i0 = i - 1; if (source[i] !== 42) { i = i0; continue; } i = i0; do { i0 = i - 1; char = source[i]; if (char === 42) { i = i0; continue; } else break; } while (true); if (char === 47) { i = i0; break; } i = i0; } } else i = i0; } return i; }, _expandInterpolationSpanRight$1(end) { var t1, i0, next, second, t2, char, source = end.file._decodedChars, i = end.offset; for (t1 = source.length; i < t1;) { i0 = i + 1; next = source[i]; if (next === 125) { i = i0; break; } if (next === 47) { i = i0 + 1; second = source[i0]; if (second === 47) { while (true) { i0 = i + 1; t2 = source[i]; if (!!(t2 === 10 || t2 === 13 || t2 === 12)) break; i = i0; } i = i0; } else if (second === 42) for (; true;) { i0 = i + 1; if (source[i] !== 42) { i = i0; continue; } i = i0; do { i0 = i + 1; char = source[i]; if (char === 42) { i = i0; continue; } else break; } while (true); if (char === 47) { i = i0; break; } i = i0; } } else i = i0; } return i; } }; A.InterpolationMap_mapException_closure.prototype = { call$1($content) { return type$.Expression._is($content); }, $signature: 77 }; A.InterpolationMap_mapSpan_closure.prototype = { call$0() { return this._0_0._0; }, $signature: 14 }; A.InterpolationMap_mapSpan_closure0.prototype = { call$0() { return this._0_0._1; }, $signature: 14 }; A._realCasePath_helper.prototype = { call$1(path) { var dirname = $.$get$context().dirname$1(path); if (dirname === path) return path; return $._realCaseCache.putIfAbsent$2(path, new A._realCasePath_helper_closure(this, dirname, path)); }, $signature: 7 }; A._realCasePath_helper_closure.prototype = { call$0() { var matches, t1, _0_0, match, t3, exception, realDirname = this.helper.call$1(this.dirname), t2 = this.path, basename = A.ParsedPath_ParsedPath$parse(t2, $.$get$context().style).get$basename(); try { matches = J.where$1$ax(A.listDir(realDirname, false), new A._realCasePath_helper__closure(basename)).toList$0(0); t1 = null; _0_0 = matches; $label0$0: { match = null; if (J.get$length$asx(_0_0) === 1) { match = J.$index$asx(_0_0, 0); t3 = true; } else t3 = false; if (t3) { t1 = match; break $label0$0; } t1 = A.join(realDirname, basename, null); break $label0$0; } t1 = t1; return t1; } catch (exception) { if (A.unwrapException(exception) instanceof A.FileSystemException) return t2; else throw exception; } }, $signature: 22 }; A._realCasePath_helper__closure.prototype = { call$1(realPath) { return A.equalsIgnoreCase(A.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename); }, $signature: 10 }; A.FileSystemException.prototype = { toString$0(_) { var t1 = $.$get$context(); return t1.prettyUri$1(t1.toUri$1(this.path)) + ": " + this.message; }, get$message(receiver) { return this.message; } }; A._readFile_closure.prototype = { call$0() { return J.readFileSync$2$x(A.fs(), this.path, this.encoding); }, $signature: 58 }; A.writeFile_closure.prototype = { call$0() { return J.writeFileSync$2$x(A.fs(), this.path, this.contents); }, $signature: 0 }; A.deleteFile_closure.prototype = { call$0() { return J.unlinkSync$1$x(A.fs(), this.path); }, $signature: 0 }; A.readStdin_closure.prototype = { call$1(result) { this._box_0.contents = result; this.completer.complete$1(result); }, $signature: 85 }; A.readStdin_closure0.prototype = { call$1(chunk) { this.sink.add$1(0, type$.List_int._as(chunk)); }, call$0() { return this.call$1(null); }, "call*": "call$1", $requiredArgCount: 0, $defaultValues() { return [null]; }, $signature: 94 }; A.readStdin_closure1.prototype = { call$1(_) { this.sink.close$0(0); }, call$0() { return this.call$1(null); }, "call*": "call$1", $requiredArgCount: 0, $defaultValues() { return [null]; }, $signature: 94 }; A.readStdin_closure2.prototype = { call$1(e) { A.printError("Failed to read from stdin"); A.printError(e); e.toString; this.completer.completeError$1(e); }, call$0() { return this.call$1(null); }, "call*": "call$1", $requiredArgCount: 0, $defaultValues() { return [null]; }, $signature: 94 }; A.fileExists_closure.prototype = { call$0() { var error, systemError, exception, t1 = this.path; if (!J.existsSync$1$x(A.fs(), t1)) return false; try { t1 = J.isFile$0$x(J.statSync$1$x(A.fs(), t1)); return t1; } catch (exception) { error = A.unwrapException(exception); systemError = type$.JsSystemError._as(error); if (J.$eq$(J.get$code$x(systemError), "ENOENT")) return false; throw exception; } }, $signature: 1 }; A.dirExists_closure.prototype = { call$0() { var error, systemError, exception, t1 = this.path; if (!J.existsSync$1$x(A.fs(), t1)) return false; try { t1 = J.isDirectory$0$x(J.statSync$1$x(A.fs(), t1)); return t1; } catch (exception) { error = A.unwrapException(exception); systemError = type$.JsSystemError._as(error); if (J.$eq$(J.get$code$x(systemError), "ENOENT")) return false; throw exception; } }, $signature: 1 }; A.ensureDir_closure.prototype = { call$0() { var error, systemError, exception, t1; try { J.mkdirSync$1$x(A.fs(), this.path); } catch (exception) { error = A.unwrapException(exception); systemError = type$.JsSystemError._as(error); if (J.$eq$(J.get$code$x(systemError), "EEXIST")) return; if (!J.$eq$(J.get$code$x(systemError), "ENOENT")) throw exception; t1 = this.path; A.ensureDir($.$get$context().dirname$1(t1)); J.mkdirSync$1$x(A.fs(), t1); } }, $signature: 0 }; A.listDir_closure.prototype = { call$0() { var t1 = this.path; if (!this.recursive) 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()); else return new A.listDir_closure_list().call$1(t1); }, $signature: 149 }; A.listDir__closure.prototype = { call$1(child) { return A.join(this.path, A._asString(child), null); }, $signature: 101 }; A.listDir__closure0.prototype = { call$1(child) { return !A.dirExists(child); }, $signature: 10 }; A.listDir_closure_list.prototype = { call$1($parent) { return J.expand$1$1$ax(J.readdirSync$1$x(A.fs(), $parent), new A.listDir__list_closure($parent, this), type$.String); }, $signature: 174 }; A.listDir__list_closure.prototype = { call$1(child) { var path = A.join(this.parent, A._asString(child), null); return A.dirExists(path) ? this.list.call$1(path) : A._setArrayType([path], type$.JSArray_String); }, $signature: 178 }; A.modificationTime_closure.prototype = { call$0() { var t2, t1 = J.getTime$0$x(J.get$mtime$x(J.statSync$1$x(A.fs(), this.path))); if (Math.abs(t1) <= 864e13) t2 = false; else t2 = true; if (t2) A.throwExpression(A.ArgumentError$("DateTime is outside valid range: " + A.S(t1), null)); A.checkNotNullable(false, "isUtc", type$.bool); return new A.DateTime(t1, false); }, $signature: 180 }; A.watchDir_closure.prototype = { call$2(path, _) { var t1 = this._box_0.controller; return t1 == null ? null : t1.add$1(0, new A.WatchEvent(B.ChangeType_add, path)); }, call$1(path) { return this.call$2(path, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 181 }; A.watchDir_closure0.prototype = { call$2(path, _) { var t1 = this._box_0.controller; return t1 == null ? null : t1.add$1(0, new A.WatchEvent(B.ChangeType_modify, path)); }, call$1(path) { return this.call$2(path, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 181 }; A.watchDir_closure1.prototype = { call$1(path) { var t1 = this._box_0.controller; return t1 == null ? null : t1.add$1(0, new A.WatchEvent(B.ChangeType_remove, path)); }, $signature: 85 }; A.watchDir_closure2.prototype = { call$1(error) { var t1 = this._box_0.controller; return t1 == null ? null : t1.addError$1(error); }, $signature: 110 }; A.watchDir_closure3.prototype = { call$0() { var controller = A.StreamController_StreamController(new A.watchDir__closure(this.watcher), null, null, null, false, type$.WatchEvent); this._box_0.controller = controller; this.completer.complete$1(new A._ControllerStream(controller, A._instanceType(controller)._eval$1("_ControllerStream<1>"))); }, $signature: 2 }; A.watchDir__closure.prototype = { call$0() { J.close$0$x(this.watcher); }, $signature: 2 }; A.JSArray0.prototype = {}; A.Chokidar.prototype = {}; A.ChokidarOptions.prototype = {}; A.ChokidarWatcher.prototype = {}; A.JSFunction.prototype = {}; A.ImmutableList.prototype = {}; A.ImmutableMap.prototype = {}; A.NodeImporterResult.prototype = {}; A.RenderContext.prototype = {}; A.RenderContextOptions.prototype = {}; A.RenderContextResult.prototype = {}; A.RenderContextResultStats.prototype = {}; A.JSClass.prototype = {}; A.JSUrl.prototype = {}; A._PropertyDescriptor.prototype = {}; A._QuietLogger.prototype = { warn$4$deprecation$span$trace(_, message, deprecation, span, trace) { }, warn$1($receiver, message) { return this.warn$4$deprecation$span$trace($receiver, message, false, null, null); }, warn$2$span($receiver, message, span) { return this.warn$4$deprecation$span$trace($receiver, message, false, span, null); }, debug$2(_, message, span) { } }; A.DeprecationHandlingLogger.prototype = { warn$4$deprecation$span$trace(_, message, deprecation, span, trace) { this._inner.warn$4$deprecation$span$trace(0, message, deprecation, span, trace); }, warn$3$span$trace($receiver, message, span, trace) { return this.warn$4$deprecation$span$trace($receiver, message, false, span, trace); }, warn$2$span($receiver, message, span) { return this.warn$4$deprecation$span$trace($receiver, message, false, span, null); }, warn$2$trace($receiver, message, trace) { return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace); }, warnForDeprecation$4$span$trace(deprecation, message, span, trace) { var _0_0, _0_1, _0_3, t1, t2, count, _this = this, _null = null; if (_this.fatalDeprecations.contains$1(0, deprecation)) { message += string$.x0a_This + deprecation.toString$0(0) + string$.x20depre; _0_0 = new A._Record_2(span, trace); _0_1 = A._InitializedCell$(new A.DeprecationHandlingLogger_warnForDeprecation_closure(_0_0)); _0_3 = A._InitializedCell$(new A.DeprecationHandlingLogger_warnForDeprecation_closure0(_0_0)); $label0$0: { if (_0_1.readFinal$0() != null) { span = _0_1.readFinal$0(); t1 = true; } else { span = _null; t1 = false; } if (t1) if (_0_3.readFinal$0() != null) { trace = _0_3.readFinal$0(); t1 = true; } else { trace = _null; t1 = false; } else { trace = _null; t1 = false; } if (t1) { t1 = A.SassRuntimeException$(message, span, trace, _null); break $label0$0; } if (_0_1.readFinal$0() != null) { span = _0_1.readFinal$0(); t1 = true; } else { span = _null; t1 = false; } if (t1 && _0_3.readFinal$0() == null) { t1 = A.SassException$(message, span, _null); break $label0$0; } t1 = A.SassScriptException$(message, _null); break $label0$0; } throw A.wrapException(t1); } if (deprecation.isFuture && !_this.futureDeprecations.contains$1(0, deprecation)) return; if (_this.limitRepetition) { t1 = _this._warningCounts; t2 = t1.$index(0, deprecation); count = (t2 == null ? 0 : t2) + 1; t1.$indexSet(0, deprecation, count); if (count > 5) return; } _this._inner.warn$4$deprecation$span$trace(0, message, true, span, trace); }, debug$2(_, message, span) { return this._inner.debug$2(0, message, span); }, summarize$1$js(js) { var t2, total, t1 = this._warningCounts; t1 = t1.get$values(t1); t2 = A._instanceType(t1); total = A.IterableIntegerExtension_get_sum(new A.MappedIterable(new A.WhereIterable(t1, new A.DeprecationHandlingLogger_summarize_closure(), t2._eval$1("WhereIterable")), new A.DeprecationHandlingLogger_summarize_closure0(), t2._eval$1("MappedIterable"))); if (total > 0) { t1 = js ? "" : string$.x0aRun_i; this._inner.warn$1(0, "" + total + string$.x20repet + t1); } } }; A.DeprecationHandlingLogger_warnForDeprecation_closure.prototype = { call$0() { return this._0_0._0; }, $signature: 186 }; A.DeprecationHandlingLogger_warnForDeprecation_closure0.prototype = { call$0() { return this._0_0._1; }, $signature: 187 }; A.DeprecationHandlingLogger_summarize_closure.prototype = { call$1(count) { return count > 5; }, $signature: 47 }; A.DeprecationHandlingLogger_summarize_closure0.prototype = { call$1(count) { return count - 5; }, $signature: 191 }; A.StderrLogger.prototype = { warn$4$deprecation$span$trace(_, message, deprecation, span, trace) { var t2, result = new A.StringBuffer(""), t1 = this.color; if (t1) { t2 = result._contents = "" + "\x1b[33m\x1b[1m"; t2 = result._contents = (deprecation ? result._contents = t2 + "Deprecation " : t2) + "Warning\x1b[0m"; } else t2 = result._contents = (deprecation ? result._contents = "" + "DEPRECATION " : "") + "WARNING"; if (span == null) t1 = result._contents = t2 + (": " + message + "\n"); else if (trace != null) { t1 = t2 + (": " + message + "\n\n" + span.highlight$1$color(t1) + "\n"); result._contents = t1; } else { t1 = t2 + (" on " + span.message$2$color(0, "\n" + message, t1) + "\n"); result._contents = t1; } if (trace != null) result._contents = t1 + (A.indent(B.JSString_methods.trimRight$0(trace.toString$0(0)), 4) + "\n"); A.printError(result); }, warn$1($receiver, message) { return this.warn$4$deprecation$span$trace($receiver, message, false, null, null); }, warn$3$span$trace($receiver, message, span, trace) { return this.warn$4$deprecation$span$trace($receiver, message, false, span, trace); }, warn$2$span($receiver, message, span) { return this.warn$4$deprecation$span$trace($receiver, message, false, span, null); }, warn$2$trace($receiver, message, trace) { return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace); }, debug$2(_, message, span) { var url, t3, t1 = span.file, t2 = span._file$_start; if (A.FileLocation$_(t1, t2).file.url == null) url = "-"; else { t3 = A.FileLocation$_(t1, t2); url = $.$get$context().prettyUri$1(t3.file.url); } t1 = A.FileLocation$_(t1, t2); t1 = t1.file.getLine$1(t1.offset); t2 = this.color ? "\x1b[1mDebug\x1b[0m" : "DEBUG"; t2 = "" + (url + ":" + (t1 + 1) + " ") + t2 + (": " + message); A.printError(t2.charCodeAt(0) == 0 ? t2 : t2); } }; A.TrackingLogger.prototype = { warn$4$deprecation$span$trace(_, message, deprecation, span, trace) { this._emittedWarning = true; this._tracking$_logger.warn$4$deprecation$span$trace(0, message, deprecation, span, trace); }, warn$3$span$trace($receiver, message, span, trace) { return this.warn$4$deprecation$span$trace($receiver, message, false, span, trace); }, warn$2$span($receiver, message, span) { return this.warn$4$deprecation$span$trace($receiver, message, false, span, null); }, warn$2$trace($receiver, message, trace) { return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace); }, debug$2(_, message, span) { this._emittedDebug = true; this._tracking$_logger.debug$2(0, message, span); } }; A.BuiltInModule.prototype = { get$upstream() { return B.List_empty7; }, get$variableNodes() { return B.Map_empty4; }, get$extensionStore() { return B.C_EmptyExtensionStore; }, get$css(_) { return new A.CssStylesheet(B.List_empty3, A.SourceFile$decoded(B.List_empty4, this.url).span$2(0, 0, 0)); }, get$preModuleComments() { return B.Map_empty2; }, get$transitivelyContainsCss() { return false; }, get$transitivelyContainsExtensions() { return false; }, setVariable$3($name, value, nodeWithSpan) { if (!this.variables.containsKey$1($name)) throw A.wrapException(A.SassScriptException$("Undefined variable.", null)); throw A.wrapException(A.SassScriptException$("Cannot modify built-in variable.", null)); }, variableIdentity$1($name) { return this; }, cloneCss$0() { return this; }, $isModule0: 1, get$url(receiver) { return this.url; }, get$functions(receiver) { return this.functions; }, get$mixins() { return this.mixins; }, get$variables() { return this.variables; } }; A.ForwardedModuleView.prototype = { get$url(_) { var t1 = this._forwarded_view$_inner; return t1.get$url(t1); }, get$upstream() { return this._forwarded_view$_inner.get$upstream(); }, get$extensionStore() { return this._forwarded_view$_inner.get$extensionStore(); }, get$css(_) { var t1 = this._forwarded_view$_inner; return t1.get$css(t1); }, get$preModuleComments() { return this._forwarded_view$_inner.get$preModuleComments(); }, get$transitivelyContainsCss() { return this._forwarded_view$_inner.get$transitivelyContainsCss(); }, get$transitivelyContainsExtensions() { return this._forwarded_view$_inner.get$transitivelyContainsExtensions(); }, setVariable$3($name, value, nodeWithSpan) { var shownVariables, t2, _1_0, hiddenVariables, _2_0, prefix, _null = null, _s19_ = "Undefined variable.", t1 = this._rule, _0_0 = t1.shownVariables; if (_0_0 != null) { shownVariables = _0_0; t2 = true; } else { shownVariables = _null; t2 = false; } if (t2 && !shownVariables._base.contains$1(0, $name)) throw A.wrapException(A.SassScriptException$(_s19_, _null)); else { _1_0 = t1.hiddenVariables; if (_1_0 != null) { hiddenVariables = _1_0; t2 = true; } else { hiddenVariables = _null; t2 = false; } if (t2 && hiddenVariables._base.contains$1(0, $name)) throw A.wrapException(A.SassScriptException$(_s19_, _null)); } _2_0 = t1.prefix; if (_2_0 != null) { prefix = _2_0; t1 = true; } else { prefix = _null; t1 = false; } if (t1) { if (!B.JSString_methods.startsWith$1($name, prefix)) throw A.wrapException(A.SassScriptException$(_s19_, _null)); $name = B.JSString_methods.substring$1($name, prefix.length); } return this._forwarded_view$_inner.setVariable$3($name, value, nodeWithSpan); }, variableIdentity$1($name) { var prefix, t1, _0_0 = this._rule.prefix; if (_0_0 != null) { prefix = _0_0; t1 = true; } else { prefix = null; t1 = false; } if (t1) $name = B.JSString_methods.substring$1($name, prefix.length); return this._forwarded_view$_inner.variableIdentity$1($name); }, $eq(_, other) { if (other == null) return false; return other instanceof A.ForwardedModuleView && this._forwarded_view$_inner.$eq(0, other._forwarded_view$_inner) && this._rule === other._rule; }, get$hashCode(_) { var t1 = this._forwarded_view$_inner; return (t1.get$hashCode(t1) ^ A.Primitives_objectHashCode(this._rule)) >>> 0; }, cloneCss$0() { return A.ForwardedModuleView$(this._forwarded_view$_inner.cloneCss$0(), this._rule, this.$ti._precomputed1); }, toString$0(_) { return "forwarded " + this._forwarded_view$_inner.toString$0(0); }, $isModule0: 1, get$variables() { return this.variables; }, get$variableNodes() { return this.variableNodes; }, get$functions(receiver) { return this.functions; }, get$mixins() { return this.mixins; } }; A.ShadowedModuleView.prototype = { get$url(_) { var t1 = this._shadowed_view$_inner; return t1.get$url(t1); }, get$upstream() { return this._shadowed_view$_inner.get$upstream(); }, get$extensionStore() { return this._shadowed_view$_inner.get$extensionStore(); }, get$css(_) { var t1 = this._shadowed_view$_inner; return t1.get$css(t1); }, get$preModuleComments() { return this._shadowed_view$_inner.get$preModuleComments(); }, get$transitivelyContainsCss() { return this._shadowed_view$_inner.get$transitivelyContainsCss(); }, get$transitivelyContainsExtensions() { return this._shadowed_view$_inner.get$transitivelyContainsExtensions(); }, setVariable$3($name, value, nodeWithSpan) { if (!this.variables.containsKey$1($name)) throw A.wrapException(A.SassScriptException$("Undefined variable.", null)); else this._shadowed_view$_inner.setVariable$3($name, value, nodeWithSpan); }, variableIdentity$1($name) { return this._shadowed_view$_inner.variableIdentity$1($name); }, $eq(_, other) { var t1, t2, _this = this; if (other == null) return false; if (other instanceof A.ShadowedModuleView) if (_this._shadowed_view$_inner.$eq(0, other._shadowed_view$_inner)) { t1 = _this.variables; t1 = t1.get$keys(t1); t2 = other.variables; if (B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) { t1 = _this.functions; t1 = t1.get$keys(t1); t2 = other.functions; if (B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) { t1 = _this.mixins; t1 = t1.get$keys(t1); t2 = other.mixins; t2 = B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2)); t1 = t2; } else t1 = false; } else t1 = false; } else t1 = false; else t1 = false; return t1; }, get$hashCode(_) { var t1 = this._shadowed_view$_inner; return t1.get$hashCode(t1); }, cloneCss$0() { var _this = this; return new A.ShadowedModuleView(_this._shadowed_view$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti); }, toString$0(_) { return "shadowed " + this._shadowed_view$_inner.toString$0(0); }, $isModule0: 1, get$variables() { return this.variables; }, get$variableNodes() { return this.variableNodes; }, get$functions(receiver) { return this.functions; }, get$mixins() { return this.mixins; } }; A.AtRootQueryParser.prototype = { parse$0() { return this.wrapSpanFormatException$1(new A.AtRootQueryParser_parse_closure(this)); } }; A.AtRootQueryParser_parse_closure.prototype = { call$0() { var include, atRules, t1 = this.$this, t2 = t1.scanner; t2.expectChar$1(40); t1.whitespace$0(); include = t1.scanIdentifier$1("with"); if (!include) t1.expectIdentifier$2$name("without", '"with" or "without"'); t1.whitespace$0(); t2.expectChar$1(58); t1.whitespace$0(); atRules = A.LinkedHashSet_LinkedHashSet$_empty(type$.String); do { atRules.add$1(0, t1.identifier$0().toLowerCase()); t1.whitespace$0(); } while (t1.lookingAtIdentifier$0()); t2.expectChar$1(41); t2.expectDone$0(); return new A.AtRootQuery(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule")); }, $signature: 346 }; A._disallowedFunctionNames_closure.prototype = { call$1($function) { return $function.name; }, $signature: 347 }; A.CssParser.prototype = { get$plainCss() { return true; }, silentComment$0() { var t1 = this.scanner, t2 = t1._string_scanner$_position; this.super$Parser$silentComment(); this.error$2(0, string$.Silent, t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, atRule$2$root(child, root) { var $name, _0_0, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$1(64); $name = _this.interpolatedIdentifier$0(); _this.whitespace$0(); _0_0 = $name.get$asPlain(); $label0$0: { 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) _this._forbiddenAtRoot$1(start); if ("import" === _0_0) { t1 = _this._cssImportRule$1(start); break $label0$0; } if ("media" === _0_0) { t1 = _this.mediaRule$1(start); break $label0$0; } if ("-moz-document" === _0_0) { t1 = _this.mozDocumentRule$2(start, $name); break $label0$0; } if ("supports" === _0_0) { t1 = _this.supportsRule$1(start); break $label0$0; } t1 = _this.unknownAtRule$2(start, $name); break $label0$0; } return t1; }, _forbiddenAtRoot$1(start) { this.almostAnyValue$0(); this.error$2(0, "This at-rule isn't allowed in plain CSS.", this.scanner.spanFrom$1(start)); }, _cssImportRule$1(start) { var t2, urlSpan, modifiers, _this = this, t1 = _this.scanner, urlStart = new A._SpanScannerState(t1, t1._string_scanner$_position), _0_0 = t1.peekChar$0(); $label0$0: { if (117 === _0_0 || 85 === _0_0) { t2 = _this.dynamicUrl$0(); break $label0$0; } t2 = new A.StringExpression(_this.interpolatedString$0().asInterpolation$1$static(true), false); break $label0$0; } urlSpan = t1.spanFrom$1(urlStart); _this.whitespace$0(); modifiers = _this.tryImportModifiers$0(); _this.expectStatementSeparator$1("@import rule"); t2 = A._setArrayType([new A.StaticImport(A.Interpolation$(A._setArrayType([t2], type$.JSArray_Object), urlSpan), modifiers, t1.spanFrom$1(urlStart))], type$.JSArray_Import); t1 = t1.spanFrom$1(start); return new A.ImportRule(A.List_List$unmodifiable(t2, type$.Import), t1); }, parentheses$0() { var expression, t1 = this.scanner, t2 = t1._string_scanner$_position; t1.expectChar$1(40); this.whitespace$0(); expression = this.expressionUntilComma$0(); t1.expectChar$1(41); return new A.ParenthesizedExpression(expression, t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, identifierLike$0() { var specialFunction, t2, allowEmptySecondArg, $arguments, t3, t4, _this = this, _null = null, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), identifier = _this.interpolatedIdentifier$0(), plain = identifier.get$asPlain(), lower = plain.toLowerCase(), _0_0 = _this.trySpecialFunction$2(lower, start); if (_0_0 != null) { specialFunction = _0_0; t2 = true; } else { specialFunction = _null; t2 = false; } if (t2) return specialFunction; t2 = t1._string_scanner$_position; if (t1.scanChar$1(46)) return _this.namespacedExpression$2(plain, start); if (!t1.scanChar$1(40)) return new A.StringExpression(identifier, false); allowEmptySecondArg = lower === "var"; $arguments = A._setArrayType([], type$.JSArray_Expression); if (!t1.scanChar$1(41)) { do { _this.whitespace$0(); if (allowEmptySecondArg && $arguments.length === 1 && t1.peekChar$0() === 41) { t3 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position); t4 = t3.offset; t4 = A._FileSpan$(t3.file, t4, t4); $arguments.push(new A.StringExpression(A.Interpolation$(A._setArrayType([""], type$.JSArray_Object), t4), false)); break; } $arguments.push(_this.expressionUntilComma$1$singleEquals(true)); _this.whitespace$0(); } while (t1.scanChar$1(44)); t1.expectChar$1(41); } if ($.$get$_disallowedFunctionNames().contains$1(0, plain)) _this.error$2(0, string$.This_f, t1.spanFrom$1(start)); t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2)); t3 = type$.Expression; return new A.FunctionExpression(_null, plain, new A.ArgumentInvocation(A.List_List$unmodifiable($arguments, t3), A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t3), _null, _null, t2), t1.spanFrom$1(start)); }, namespacedExpression$2(namespace, start) { var expression = this.super$StylesheetParser$namespacedExpression(namespace, start); this.error$2(0, string$.Modulen, expression.get$span(expression)); } }; A.KeyframeSelectorParser.prototype = { parse$0() { return this.wrapSpanFormatException$1(new A.KeyframeSelectorParser_parse_closure(this)); }, _percentage$0() { var $self, _0_0, t1 = this.scanner, t2 = t1.scanChar$1(43) ? "" + A.Primitives_stringFromCharCode(43) : "", second = t1.peekChar$0(); if (!(second != null && second >= 48 && second <= 57) && second !== 46) t1.error$1(0, "Expected number."); while (true) { $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) break; t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); } if (t1.peekChar$0() === 46) { t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); while (true) { $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) break; t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); } } if (this.scanIdentChar$1(101)) { t2 += A.Primitives_stringFromCharCode(101); _0_0 = t1.peekChar$0(); if (43 === _0_0 || 45 === _0_0) t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) t1.error$1(0, "Expected digit."); do { t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); $self = t1.peekChar$0(); } while ($self != null && $self >= 48 && $self <= 57); } t1.expectChar$1(37); t2 += A.Primitives_stringFromCharCode(37); return t2.charCodeAt(0) == 0 ? t2 : t2; } }; A.KeyframeSelectorParser_parse_closure.prototype = { call$0() { var selectors = A._setArrayType([], type$.JSArray_String), t1 = this.$this, t2 = t1.scanner; do { t1.whitespace$0(); if (t1.lookingAtIdentifier$0()) if (t1.scanIdentifier$1("from")) selectors.push("from"); else { t1.expectIdentifier$2$name("to", '"to" or "from"'); selectors.push("to"); } else selectors.push(t1._percentage$0()); t1.whitespace$0(); } while (t2.scanChar$1(44)); t2.expectDone$0(); return selectors; }, $signature: 26 }; A.MediaQueryParser.prototype = { parse$0() { return this.wrapSpanFormatException$1(new A.MediaQueryParser_parse_closure(this)); }, _mediaQuery$0() { var conditions, conjunction, identifier1, identifier2, type, modifier, _this = this, _s3_ = "and", _null = null; if (_this.scanner.peekChar$0() === 40) { conditions = A._setArrayType([_this._mediaInParens$0()], type$.JSArray_String); _this.whitespace$0(); if (_this.scanIdentifier$1(_s3_)) { _this.expectWhitespace$0(); B.JSArray_methods.addAll$1(conditions, _this._mediaLogicSequence$1(_s3_)); conjunction = true; } else if (_this.scanIdentifier$1("or")) { _this.expectWhitespace$0(); B.JSArray_methods.addAll$1(conditions, _this._mediaLogicSequence$1("or")); conjunction = false; } else conjunction = true; return A.CssMediaQuery$condition(conditions, conjunction); } identifier1 = _this.identifier$0(); if (A.equalsIgnoreCase(identifier1, "not")) { _this.expectWhitespace$0(); if (!_this.lookingAtIdentifier$0()) return A.CssMediaQuery$condition(A._setArrayType(["(not " + _this._mediaInParens$0() + ")"], type$.JSArray_String), _null); } _this.whitespace$0(); if (!_this.lookingAtIdentifier$0()) return A.CssMediaQuery$type(identifier1, _null, _null); identifier2 = _this.identifier$0(); if (A.equalsIgnoreCase(identifier2, _s3_)) { _this.expectWhitespace$0(); type = identifier1; modifier = _null; } else { _this.whitespace$0(); if (_this.scanIdentifier$1(_s3_)) _this.expectWhitespace$0(); else return A.CssMediaQuery$type(identifier2, _null, identifier1); type = identifier2; modifier = identifier1; } if (_this.scanIdentifier$1("not")) { _this.expectWhitespace$0(); return A.CssMediaQuery$type(type, A._setArrayType(["(not " + _this._mediaInParens$0() + ")"], type$.JSArray_String), modifier); } return A.CssMediaQuery$type(type, _this._mediaLogicSequence$1(_s3_), modifier); }, _mediaLogicSequence$1(operator) { var t1, t2, _this = this, result = A._setArrayType([], type$.JSArray_String); for (t1 = _this.scanner; true;) { t1.expectChar$2$name(40, "media condition in parentheses"); t2 = _this.declarationValue$0(); t1.expectChar$1(41); result.push("(" + t2 + ")"); _this.whitespace$0(); if (!_this.scanIdentifier$1(operator)) return result; _this.expectWhitespace$0(); } }, _mediaInParens$0() { var t2, t1 = this.scanner; t1.expectChar$2$name(40, "media condition in parentheses"); t2 = this.declarationValue$0(); t1.expectChar$1(41); return "(" + t2 + ")"; } }; A.MediaQueryParser_parse_closure.prototype = { call$0() { var queries = A._setArrayType([], type$.JSArray_CssMediaQuery), t1 = this.$this, t2 = t1.scanner; do { t1.whitespace$0(); queries.push(t1._mediaQuery$0()); t1.whitespace$0(); } while (t2.scanChar$1(44)); t2.expectDone$0(); return queries; }, $signature: 348 }; A.Parser.prototype = { _parseIdentifier$0() { return this.wrapSpanFormatException$1(new A.Parser__parseIdentifier_closure(this)); }, _isVariableDeclarationLike$0() { var _this = this, t1 = _this.scanner; if (!t1.scanChar$1(36)) return false; if (!_this.lookingAtIdentifier$0()) return false; _this.identifier$0(); _this.whitespace$0(); return t1.scanChar$1(58); }, whitespace$0() { do this.whitespaceWithoutComments$0(); while (this.scanComment$0()); }, whitespaceWithoutComments$0() { var t3, t1 = this.scanner, t2 = t1.string.length; while (true) { if (t1._string_scanner$_position !== t2) { t3 = t1.peekChar$0(); t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12; } else t3 = false; if (!t3) break; t1.readChar$0(); } }, spaces$0() { var t3, t1 = this.scanner, t2 = t1.string.length; while (true) { if (t1._string_scanner$_position !== t2) { t3 = t1.peekChar$0(); t3 = t3 === 32 || t3 === 9; } else t3 = false; if (!t3) break; t1.readChar$0(); } }, scanComment$0() { var _0_0, t1 = this.scanner; if (t1.peekChar$0() !== 47) return false; _0_0 = t1.peekChar$1(1); if (47 === _0_0) { this.silentComment$0(); return true; } if (42 === _0_0) { this.loudComment$0(); return true; } return false; }, expectWhitespace$0() { var t2, t3, t1 = this.scanner; if (t1._string_scanner$_position !== t1.string.length) { t2 = t1.peekChar$0(); t3 = !(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || this.scanComment$0()); t2 = t3; } else t2 = true; if (t2) t1.error$1(0, "Expected whitespace."); this.whitespace$0(); }, silentComment$0() { var t2, t3, t1 = this.scanner; t1.expect$1("//"); t2 = t1.string.length; while (true) { if (t1._string_scanner$_position !== t2) { t3 = t1.peekChar$0(); t3 = !(t3 === 10 || t3 === 13 || t3 === 12); } else t3 = false; if (!t3) break; t1.readChar$0(); } }, loudComment$0() { var next, t1 = this.scanner; t1.expect$1("/*"); for (; true;) { if (t1.readChar$0() !== 42) continue; do next = t1.readChar$0(); while (next === 42); if (next === 47) break; } }, identifier$2$normalize$unit(normalize, unit) { var t2, _0_0, _this = this, _s20_ = "Expected identifier.", text = new A.StringBuffer(""), t1 = _this.scanner; if (t1.scanChar$1(45)) { t2 = text._contents = "" + A.Primitives_stringFromCharCode(45); if (t1.scanChar$1(45)) { text._contents = t2 + A.Primitives_stringFromCharCode(45); _this._identifierBody$3$normalize$unit(text, normalize, unit); t1 = text._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; } } else t2 = ""; $label0$0: { _0_0 = t1.peekChar$0(); if (_0_0 == null) t1.error$1(0, _s20_); if (95 === _0_0 && normalize) { t1.readChar$0(); text._contents = t2 + A.Primitives_stringFromCharCode(45); break $label0$0; } if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128) { text._contents = t2 + A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } if (92 === _0_0) { text._contents = t2 + _this.escape$1$identifierStart(true); break $label0$0; } t1.error$1(0, _s20_); } _this._identifierBody$3$normalize$unit(text, normalize, unit); t1 = text._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, identifier$0() { return this.identifier$2$normalize$unit(false, false); }, identifier$1$normalize(normalize) { return this.identifier$2$normalize$unit(normalize, false); }, identifier$1$unit(unit) { return this.identifier$2$normalize$unit(false, unit); }, _identifierBody$3$normalize$unit(text, normalize, unit) { var t1, _1_0, _0_0, t2; for (t1 = this.scanner; true;) { _1_0 = t1.peekChar$0(); if (_1_0 == null) break; if (45 === _1_0 && unit) { _0_0 = t1.peekChar$1(1); if (46 !== _0_0) t2 = A._isInt(_0_0) && _0_0 >= 48 && _0_0 <= 57; else t2 = true; if (t2) break; text._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } if (95 === _1_0 && normalize) { t1.readChar$0(); text._contents += A.Primitives_stringFromCharCode(45); continue; } if (_1_0 !== 95) { if (!(_1_0 >= 97 && _1_0 <= 122)) t2 = _1_0 >= 65 && _1_0 <= 90; else t2 = true; t2 = t2 || _1_0 >= 128; } else t2 = true; if (!t2) t2 = _1_0 >= 48 && _1_0 <= 57 || _1_0 === 45; else t2 = true; if (t2) { text._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } if (92 === _1_0) { text._contents += this.escape$0(); continue; } break; } }, _identifierBody$1(text) { return this._identifierBody$3$normalize$unit(text, false, false); }, string$0() { var buffer, _0_0, t2, t1 = this.scanner, quote = t1.readChar$0(); if (quote !== 39 && quote !== 34) t1.error$2$position(0, "Expected string.", t1._string_scanner$_position - 1); buffer = new A.StringBuffer(""); for (; true;) { _0_0 = t1.peekChar$0(); if (_0_0 === quote) { t1.readChar$0(); break; } if (_0_0 == null || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + "."); if (92 === _0_0) { t2 = t1.peekChar$1(1); if (t2 === 10 || t2 === 13 || t2 === 12) { t1.readChar$0(); t1.readChar$0(); } else buffer._contents += A.Primitives_stringFromCharCode(A.consumeEscapedCharacter(t1)); continue; } buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } t1 = buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, declarationValue$1$allowEmpty(allowEmpty) { var t1, t2, wroteNewline, next, start, end, t3, _0_0, url, _this = this, buffer = new A.StringBuffer(""), brackets = A._setArrayType([], type$.JSArray_int); for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) { next = t1.peekChar$0(); if (next == null) break; if (92 === next) { buffer._contents += _this.escape$1$identifierStart(true); wroteNewline = false; continue; } if (34 === next || 39 === next) { start = t1._string_scanner$_position; t2.call$0(); end = t1._string_scanner$_position; buffer._contents += B.JSString_methods.substring$2(t1.string, start, end); wroteNewline = false; continue; } if (47 === next) { if (t1.peekChar$1(1) === 42) { t3 = _this.get$loudComment(); start = t1._string_scanner$_position; t3.call$0(); end = t1._string_scanner$_position; buffer._contents += B.JSString_methods.substring$2(t1.string, start, end); } else buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; continue; } if (32 === next || 9 === next) { if (!wroteNewline) { t3 = t1.peekChar$1(1); t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12); } else t3 = true; if (t3) buffer._contents += A.Primitives_stringFromCharCode(32); t1.readChar$0(); continue; } if (10 === next || 13 === next || 12 === next) { t3 = t1.peekChar$1(-1); if (!(t3 === 10 || t3 === 13 || t3 === 12)) buffer._contents += "\n"; t1.readChar$0(); wroteNewline = true; continue; } if (40 === next || 123 === next || 91 === next) { buffer._contents += A.Primitives_stringFromCharCode(next); brackets.push(A.opposite(t1.readChar$0())); wroteNewline = false; continue; } if (41 === next || 125 === next || 93 === next) { if (brackets.length === 0) break; buffer._contents += A.Primitives_stringFromCharCode(next); t1.expectChar$1(brackets.pop()); wroteNewline = false; continue; } if (59 === next) { if (brackets.length === 0) break; buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } if (117 === next || 85 === next) { _0_0 = _this.tryUrl$0(); if (_0_0 != null) { url = _0_0; t3 = true; } else { url = null; t3 = false; } if (t3) buffer._contents += A.S(url); else buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; continue; } if (_this.lookingAtIdentifier$0()) buffer._contents += _this.identifier$0(); else buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; } if (brackets.length !== 0) t1.expectChar$1(B.JSArray_methods.get$last(brackets)); if (!allowEmpty && buffer._contents.length === 0) t1.error$1(0, "Expected token."); t1 = buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, declarationValue$0() { return this.declarationValue$1$allowEmpty(false); }, tryUrl$0() { var buffer, _0_0, t2, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); if (!_this.scanIdentifier$1("url")) return null; if (!t1.scanChar$1(40)) { t1.set$state(start); return null; } _this.whitespace$0(); buffer = new A.StringBuffer(""); buffer._contents = "" + "url("; for (; true;) { _0_0 = t1.peekChar$0(); if (_0_0 == null) break; if (92 === _0_0) { buffer._contents += _this.escape$0(); continue; } if (37 !== _0_0) if (38 !== _0_0) if (35 !== _0_0) t2 = _0_0 >= 42 && _0_0 <= 126 || _0_0 >= 128; else t2 = true; else t2 = true; else t2 = true; if (t2) { buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } if (_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) { _this.whitespace$0(); if (t1.peekChar$0() !== 41) break; continue; } if (41 === _0_0) { t2 = buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); return t2.charCodeAt(0) == 0 ? t2 : t2; } break; } t1.set$state(start); return null; }, variableName$0() { this.scanner.expectChar$1(36); return this.identifier$1$normalize(true); }, escape$1$identifierStart(identifierStart) { var value, _0_0, i, next, t2, exception, _s25_ = "Expected escape sequence.", t1 = this.scanner, start = t1._string_scanner$_position; t1.expectChar$1(92); value = 0; $label0$1: { _0_0 = t1.peekChar$0(); if (_0_0 == null) t1.error$1(0, _s25_); if (_0_0 === 10 || _0_0 === 13 || _0_0 === 12) t1.error$1(0, _s25_); if (A.CharacterExtension_get_isHex(_0_0)) { for (i = 0; i < 6; ++i) { next = t1.peekChar$0(); if (next != null) { if (!(next >= 48 && next <= 57)) if (!(next >= 97 && next <= 102)) t2 = next >= 65 && next <= 70; else t2 = true; else t2 = true; t2 = !t2; } else t2 = true; if (t2) break; value *= 16; value += A.asHex(t1.readChar$0()); } this.scanCharIf$1(new A.Parser_escape_closure()); break $label0$1; } value = t1.readChar$0(); } if (identifierStart) { t2 = value; t2 = t2 === 95 || A.CharacterExtension_get_isAlphabetic(t2) || t2 >= 128; } else { t2 = value; if (!(t2 === 95 || A.CharacterExtension_get_isAlphabetic(t2) || t2 >= 128)) t2 = t2 >= 48 && t2 <= 57 || t2 === 45; else t2 = true; } if (t2) try { t2 = A.Primitives_stringFromCharCode(value); return t2; } catch (exception) { if (type$.RangeError._is(A.unwrapException(exception))) t1.error$3$length$position(0, "Invalid Unicode code point.", t1._string_scanner$_position - start, start); else throw exception; } else { if (!(value <= 31)) if (!J.$eq$(value, 127)) if (identifierStart) { t1 = value; t1 = t1 >= 48 && t1 <= 57; } else t1 = false; else t1 = true; else t1 = true; if (t1) { t1 = "" + A.Primitives_stringFromCharCode(92); if (value > 15) t1 += A.Primitives_stringFromCharCode(A.hexCharFor(B.JSNumber_methods._shrOtherPositive$1(value, 4))); t1 = t1 + A.Primitives_stringFromCharCode(A.hexCharFor(value & 15)) + A.Primitives_stringFromCharCode(32); return t1.charCodeAt(0) == 0 ? t1 : t1; } else return A.String_String$fromCharCodes(A._setArrayType([92, value], type$.JSArray_int), 0, null); } }, escape$0() { return this.escape$1$identifierStart(false); }, scanCharIf$1(condition) { var t1 = this.scanner; if (!condition.call$1(t1.peekChar$0())) return false; t1.readChar$0(); return true; }, scanIdentChar$2$caseSensitive(char, caseSensitive) { var next, t3, t1 = new A.Parser_scanIdentChar_matches(caseSensitive, char), t2 = this.scanner, _0_0 = t2.peekChar$0(); if (_0_0 != null) { next = _0_0; t3 = true; } else { next = null; t3 = false; } if (t3 && t1.call$1(next)) { t2.readChar$0(); return true; } if (92 === _0_0) { t3 = t2._string_scanner$_position; if (t1.call$1(A.consumeEscapedCharacter(t2))) return true; t2.set$state(new A._SpanScannerState(t2, t3)); } return false; }, scanIdentChar$1(char) { return this.scanIdentChar$2$caseSensitive(char, false); }, expectIdentChar$1(letter) { var t1; if (this.scanIdentChar$2$caseSensitive(letter, false)) return; t1 = this.scanner; t1.error$2$position(0, 'Expected "' + A.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position); }, lookingAtIdentifier$1($forward) { var t1, _1_0, t2, _0_0; if ($forward == null) $forward = 0; t1 = this.scanner; _1_0 = t1.peekChar$1($forward); $label0$0: { if (A._isInt(_1_0)) t2 = _1_0 === 95 || A.CharacterExtension_get_isAlphabetic(_1_0) || _1_0 >= 128; else t2 = false; if (t2 || 92 === _1_0) { t1 = true; break $label0$0; } if (45 === _1_0) { _0_0 = t1.peekChar$1($forward + 1); $label1$1: { if (A._isInt(_0_0)) t1 = _0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128; else t1 = false; if (t1 || 92 === _0_0 || 45 === _0_0) { t1 = true; break $label1$1; } t1 = false; break $label1$1; } break $label0$0; } t1 = false; break $label0$0; } return t1; }, lookingAtIdentifier$0() { return this.lookingAtIdentifier$1(null); }, lookingAtIdentifierBody$0() { var t1, next = this.scanner.peekChar$0(); if (next != null) { if (!(next === 95 || A.CharacterExtension_get_isAlphabetic(next) || next >= 128)) t1 = next >= 48 && next <= 57 || next === 45; else t1 = true; t1 = t1 || next === 92; } else t1 = false; return t1; }, scanIdentifier$2$caseSensitive(text, caseSensitive) { var t1, t2, _this = this; if (!_this.lookingAtIdentifier$0()) return false; t1 = _this.scanner; t2 = t1._string_scanner$_position; if (_this._consumeIdentifier$2(text, caseSensitive) && !_this.lookingAtIdentifierBody$0()) return true; else { t1.set$state(new A._SpanScannerState(t1, t2)); return false; } }, scanIdentifier$1(text) { return this.scanIdentifier$2$caseSensitive(text, false); }, _consumeIdentifier$2(text, caseSensitive) { var t1, t2, t3; for (t1 = new A.CodeUnits(text), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; if (!this.scanIdentChar$2$caseSensitive(t3 == null ? t2._as(t3) : t3, caseSensitive)) return false; } return true; }, expectIdentifier$2$name(text, $name) { var t1, start, t2, t3, t4, t5, t6; if ($name == null) $name = '"' + text + '"'; t1 = this.scanner; start = t1._string_scanner$_position; for (t2 = new A.CodeUnits(text), t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = "Expected " + $name, t4 = t3 + ".", t5 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t6 = t2.__internal$_current; if (this.scanIdentChar$2$caseSensitive(t6 == null ? t5._as(t6) : t6, false)) continue; t1.error$2$position(0, t4, start); } if (!this.lookingAtIdentifierBody$0()) return; t1.error$2$position(0, t3, start); }, expectIdentifier$1(text) { return this.expectIdentifier$2$name(text, null); }, rawText$1(consumer) { var t1 = this.scanner, start = t1._string_scanner$_position; consumer.call$0(); return t1.substring$1(0, start); }, spanFrom$1(state) { var span = this.scanner.spanFrom$1(state); return this._interpolationMap == null ? span : new A.LazyFileSpan(new A.Parser_spanFrom_closure(this, span)); }, error$3(_, message, span, trace) { var exception = new A.StringScannerException(this.scanner.string, message, span); if (trace == null) throw A.wrapException(exception); else A.throwWithTrace(exception, this.get$error(this), trace); }, error$2($receiver, message, span) { return this.error$3($receiver, message, span, null); }, withErrorMessage$1$2(message, callback) { var error, stackTrace, t1, exception; try { t1 = callback.call$0(); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (type$.SourceSpanFormatException._is(t1)) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = J.get$span$z(error); A.throwWithTrace(new A.SourceSpanFormatException(error.get$source(), message, t1), error, stackTrace); } else throw exception; } }, withErrorMessage$2(message, callback) { return this.withErrorMessage$1$2(message, callback, type$.dynamic); }, wrapSpanFormatException$1$1(callback) { var error, stackTrace, map, error0, stackTrace0, span, error1, stackTrace1, span0, secondarySpans, t1, t2, span1, description, _0_0, t3, exception, t4, _this = this, _s8_ = "expected"; try { try { t3 = callback.call$0(); return t3; } catch (exception) { t3 = A.unwrapException(exception); if (type$.SourceSpanFormatException._is(t3)) { error = t3; stackTrace = A.getTraceFromException(exception); map = _this._interpolationMap; if (map == null) throw exception; A.throwWithTrace(map.mapException$1(error), error, stackTrace); } else throw exception; } } catch (exception) { t3 = A.unwrapException(exception); if (type$.SourceSpanFormatException._is(t3)) { error0 = t3; stackTrace0 = A.getTraceFromException(exception); span = J.get$span$z(error0); if (A.startsWithIgnoreCase(error0._span_exception$_message, _s8_)) span = _this._adjustExceptionSpan$1(span); t1 = error0._span_exception$_message; t2 = span; A.throwWithTrace(new A.SassFormatException(B.Set_empty, t1, t2), error0, stackTrace0); } else if (type$.MultiSourceSpanFormatException._is(t3)) { error1 = t3; stackTrace1 = A.getTraceFromException(exception); span0 = J.get$span$z(error1); t3 = type$.FileSpan; t4 = type$.String; secondarySpans = error1.get$secondarySpans().cast$2$0(0, t3, t4); if (A.startsWithIgnoreCase(error1._span_exception$_message, _s8_)) { span0 = _this._adjustExceptionSpan$1(span0); t1 = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4); for (t3 = A.MapExtensions_get_pairs(secondarySpans, t3, t4), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t2 = t3.get$current(t3); span1 = null; description = null; _0_0 = t2; span1 = _0_0._0; description = _0_0._1; J.$indexSet$ax(t1, _this._adjustExceptionSpan$1(span1), description); } secondarySpans = t1; } A.throwWithTrace(A.MultiSpanSassFormatException$(error1._span_exception$_message, span0, error1.get$primaryLabel(), secondarySpans, null), error1, stackTrace1); } else throw exception; } }, wrapSpanFormatException$1(callback) { return this.wrapSpanFormatException$1$1(callback, type$.dynamic); }, _adjustExceptionSpan$1(span) { var start, t1; if (span.get$length(span) > 0) return span; start = this._firstNewlineBefore$1(span.get$start(span)); if (start.$eq(0, span.get$start(span))) t1 = span; else { t1 = start.offset; t1 = A._FileSpan$(start.file, t1, t1); } return t1; }, _firstNewlineBefore$1($location) { var lastNewline, codeUnit, t1 = $location.file, t2 = $location.offset, text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1._decodedChars, 0, t2), 0, null), index = t2 - 1; for (lastNewline = null; index >= 0;) { codeUnit = text.charCodeAt(index); if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12)) { if (lastNewline == null) t1 = $location; else { t2 = new A.FileLocation(t1, lastNewline); t2.FileLocation$_$2(t1, lastNewline); t1 = t2; } return t1; } if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12) lastNewline = index; --index; } return $location; } }; A.Parser__parseIdentifier_closure.prototype = { call$0() { var t1 = this.$this, result = t1.identifier$0(); t1.scanner.expectDone$0(); return result; }, $signature: 22 }; A.Parser_escape_closure.prototype = { call$1(char) { return char === 32 || char === 9 || char === 10 || char === 13 || char === 12; }, $signature: 34 }; A.Parser_scanIdentChar_matches.prototype = { call$1(actual) { var t1 = this.char; return this.caseSensitive ? actual === t1 : A.characterEqualsIgnoreCase(t1, actual); }, $signature: 47 }; A.Parser_spanFrom_closure.prototype = { call$0() { return this.$this._interpolationMap.mapSpan$1(this.span); }, $signature: 33 }; A.SassParser.prototype = { get$currentIndentation() { return this._currentIndentation; }, get$indented() { return true; }, styleRuleSelector$0() { var t4, t1 = this.scanner, t2 = t1._string_scanner$_position, t3 = new A.StringBuffer(""), buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object)); do { buffer.addInterpolation$1(this.almostAnyValue$1$omitComments(true)); t4 = t3._contents += A.Primitives_stringFromCharCode(10); } 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())); return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, expectStatementSeparator$1($name) { var t1, _this = this; if (!_this.atEndOfStatement$0()) _this._expectNewline$0(); if (_this._peekIndentation$0() <= _this._currentIndentation) return; t1 = $name == null ? "here" : "beneath a " + $name; _this.scanner.error$2$position(0, "Nothing may be indented " + t1 + ".", _this._nextIndentationEnd.position); }, expectStatementSeparator$0() { return this.expectStatementSeparator$1(null); }, atEndOfStatement$0() { var t1 = this.scanner.peekChar$0(); if (t1 == null) t1 = null; else t1 = t1 === 10 || t1 === 13 || t1 === 12; return t1 !== false; }, lookingAtChildren$0() { return this.atEndOfStatement$0() && this._peekIndentation$0() > this._currentIndentation; }, importArgument$0() { var url, span, innerError, stackTrace, t1, _0_0, start, next, t2, exception, _this = this; $label0$0: { t1 = _this.scanner; _0_0 = t1.peekChar$0(); if (117 === _0_0 || 85 === _0_0) { start = new A._SpanScannerState(t1, t1._string_scanner$_position); if (_this.scanIdentifier$1("url")) if (t1.scanChar$1(40)) { t1.set$state(start); return _this.super$StylesheetParser$importArgument(); } else t1.set$state(start); break $label0$0; } if (39 === _0_0 || 34 === _0_0) return _this.super$StylesheetParser$importArgument(); } start = new A._SpanScannerState(t1, t1._string_scanner$_position); next = t1.peekChar$0(); while (true) { if (next != null) if (next !== 44) if (next !== 59) t2 = !(next === 10 || next === 13 || next === 12); else t2 = false; else t2 = false; else t2 = false; if (!t2) break; t1.readChar$0(); next = t1.peekChar$0(); } url = t1.substring$1(0, start.position); span = t1.spanFrom$1(start); if (_this.isPlainImportUrl$1(url)) return new A.StaticImport(A.Interpolation$(A._setArrayType([A.serializeValue(new A.SassString(url, true), true, true)], type$.JSArray_Object), span), null, span); else try { t1 = _this.parseImportUrl$1(url); return new A.DynamicImport(t1, span); } catch (exception) { t1 = A.unwrapException(exception); if (type$.FormatException._is(t1)) { innerError = t1; stackTrace = A.getTraceFromException(exception); _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), span, stackTrace); } else throw exception; } }, scanElse$1(ifIndentation) { var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this; if (_this._peekIndentation$0() !== ifIndentation) return false; t1 = _this.scanner; t2 = t1._string_scanner$_position; startIndentation = _this._currentIndentation; startNextIndentation = _this._nextIndentation; startNextIndentationEnd = _this._nextIndentationEnd; _this._readIndentation$0(); if (t1.scanChar$1(64) && _this.scanIdentifier$1("else")) return true; t1.set$state(new A._SpanScannerState(t1, t2)); _this._currentIndentation = startIndentation; _this._nextIndentation = startNextIndentation; _this._nextIndentationEnd = startNextIndentationEnd; return false; }, children$1(_, child) { var children = A._setArrayType([], type$.JSArray_Statement); this._whileIndentedLower$1(new A.SassParser_children_closure(this, child, children)); return children; }, statements$1(statement) { var statements, t2, _1_0, child, t3, t1 = this.scanner, _0_0 = t1.peekChar$0(); if (9 === _0_0 || 32 === _0_0) t1.error$3$length$position(0, string$.Indent, t1._string_scanner$_position, 0); statements = A._setArrayType([], type$.JSArray_Statement); for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) { _1_0 = this._child$1(statement); if (_1_0 != null) { child = _1_0; t3 = true; } else { child = null; t3 = false; } if (t3) statements.push(child); this._readIndentation$0(); } return statements; }, _child$1(child) { var _0_0, _this = this, t1 = _this.scanner, _1_0 = t1.peekChar$0(); $label0$0: { if (13 === _1_0 || 10 === _1_0 || 12 === _1_0) { t1 = null; break $label0$0; } if (36 === _1_0) { t1 = _this.variableDeclarationWithoutNamespace$0(); break $label0$0; } if (47 === _1_0) { _0_0 = t1.peekChar$1(1); $label1$1: { if (47 === _0_0) { t1 = _this._silentComment$0(); break $label1$1; } if (42 === _0_0) { t1 = _this._loudComment$0(); break $label1$1; } t1 = child.call$0(); break $label1$1; } break $label0$0; } t1 = child.call$0(); break $label0$0; } return t1; }, _silentComment$0() { var buffer, parentIndentation, t3, t4, t5, commentPrefix, i, t6, i0, t7, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; t1.expect$1("//"); buffer = new A.StringBuffer(""); parentIndentation = _this._currentIndentation; t3 = t1.string.length; t4 = 1 + parentIndentation; t5 = 2 + parentIndentation; $label0$0: do { commentPrefix = t1.scanChar$1(47) ? "///" : "//"; for (i = commentPrefix.length; true;) { t6 = buffer._contents += commentPrefix; for (i0 = i; i0 < _this._currentIndentation - parentIndentation; ++i0) { t6 += A.Primitives_stringFromCharCode(32); buffer._contents = t6; } while (true) { if (t1._string_scanner$_position !== t3) { t7 = t1.peekChar$0(); t7 = !(t7 === 10 || t7 === 13 || t7 === 12); } else t7 = false; if (!t7) break; t6 += A.Primitives_stringFromCharCode(t1.readChar$0()); buffer._contents = t6; } buffer._contents = t6 + "\n"; if (_this._peekIndentation$0() < parentIndentation) break $label0$0; if (_this._peekIndentation$0() === parentIndentation) { if (t1.peekChar$1(t4) === 47 && t1.peekChar$1(t5) === 47) _this._readIndentation$0(); break; } _this._readIndentation$0(); } } while (t1.scan$1("//")); t3 = buffer._contents; return _this.lastSilentComment = new A.SilentComment(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _loudComment$0() { var t3, t4, buffer, parentIndentation, t5, t6, first, beginningOfComment, t7, end, i, _0_0, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; t1.expect$1("/*"); t3 = new A.StringBuffer(""); t4 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer(t3, t4); t3._contents = "" + "/*"; parentIndentation = _this._currentIndentation; for (t5 = t1.string, t6 = t5.length, first = true; true; first = false) { if (first) { beginningOfComment = t1._string_scanner$_position; _this.spaces$0(); t7 = t1.peekChar$0(); if (t7 === 10 || t7 === 13 || t7 === 12) { _this._readIndentation$0(); t3._contents += A.Primitives_stringFromCharCode(32); } else { end = t1._string_scanner$_position; t3._contents += B.JSString_methods.substring$2(t5, beginningOfComment, end); } } else { t7 = t3._contents += "\n"; t3._contents = t7 + " * "; } for (i = 3; i < _this._currentIndentation - parentIndentation; ++i) t3._contents += A.Primitives_stringFromCharCode(32); for (; t1._string_scanner$_position !== t6;) { _0_0 = t1.peekChar$0(); if (10 === _0_0 || 13 === _0_0 || 12 === _0_0) break; if (35 === _0_0) { if (t1.peekChar$1(1) === 123) { t7 = _this.singleInterpolation$0(); buffer._flushText$0(); t4.push(t7); } else t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } if (_this._peekIndentation$0() <= parentIndentation) break; for (; _this._lookingAtDoubleNewline$0();) { _this._expectNewline$0(); t7 = t3._contents += "\n"; t3._contents = t7 + " *"; } _this._readIndentation$0(); } t4 = t3._contents; if (!B.JSString_methods.endsWith$1(B.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/")) t3._contents += " */"; return new A.LoudComment(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)))); }, whitespaceWithoutComments$0() { var t1, t2, next; for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) { next = t1.peekChar$0(); if (next !== 9 && next !== 32) break; t1.readChar$0(); } }, loudComment$0() { var next, t1 = this.scanner; t1.expect$1("/*"); for (; true;) { next = t1.readChar$0(); if (next === 10 || next === 13 || next === 12) t1.error$1(0, "expected */."); if (next !== 42) continue; do next = t1.readChar$0(); while (next === 42); if (next === 47) break; } }, _expectNewline$0() { var t1 = this.scanner, _0_0 = t1.peekChar$0(); if (59 === _0_0) t1.error$1(0, string$.semico); if (13 === _0_0) { t1.readChar$0(); if (t1.peekChar$0() === 10) t1.readChar$0(); return; } if (10 === _0_0 || 12 === _0_0) { t1.readChar$0(); return; } t1.error$1(0, "expected newline."); }, _lookingAtDoubleNewline$0() { var _0_0, t1 = this.scanner, _1_0 = t1.peekChar$0(); $label1$1: { if (13 === _1_0) { _0_0 = t1.peekChar$1(1); $label0$0: { if (10 === _0_0) { t1 = t1.peekChar$1(2); t1 = t1 === 10 || t1 === 13 || t1 === 12; break $label0$0; } if (13 === _0_0 || 12 === _0_0) { t1 = true; break $label0$0; } t1 = false; break $label0$0; } break $label1$1; } if (10 === _1_0 || 12 === _1_0) { t1 = t1.peekChar$1(1); t1 = t1 === 10 || t1 === 13 || t1 === 12; break $label1$1; } t1 = false; break $label1$1; } return t1; }, _whileIndentedLower$1(body) { var t1, t2, childIndentation, indentation, t3, t4, _this = this, parentIndentation = _this._currentIndentation; for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._peekIndentation$0() > parentIndentation;) { indentation = _this._readIndentation$0(); if (childIndentation == null) childIndentation = indentation; if (childIndentation !== indentation) { t3 = t1._string_scanner$_position; t4 = t2.getColumn$1(t3); t1.error$3$length$position(0, "Inconsistent indentation, expected " + childIndentation + " spaces.", t2.getColumn$1(t1._string_scanner$_position), t3 - t4); } body.call$0(); } }, _readIndentation$0() { var t1, _this = this, currentIndentation = _this._nextIndentation; if (currentIndentation == null) currentIndentation = _this._nextIndentation = _this._peekIndentation$0(); _this._currentIndentation = currentIndentation; t1 = _this._nextIndentationEnd; t1.toString; _this.scanner.set$state(t1); _this._nextIndentationEnd = _this._nextIndentation = null; return currentIndentation; }, _peekIndentation$0() { var cached, t1, t2, t3, start, containsTab, containsSpace, nextIndentation, _1_0, t4, _this = this, _0_0 = _this._nextIndentation; if (_0_0 != null) { cached = _0_0; t1 = true; } else { cached = null; t1 = false; } if (t1) return cached; t1 = _this.scanner; t2 = t1._string_scanner$_position; t3 = t1.string.length; if (t2 === t3) { _this._nextIndentation = 0; _this._nextIndentationEnd = new A._SpanScannerState(t1, t2); return 0; } start = new A._SpanScannerState(t1, t2); if (!_this.scanCharIf$1(new A.SassParser__peekIndentation_closure())) t1.error$2$position(0, "Expected newline.", t1._string_scanner$_position); containsTab = A._Cell$(); containsSpace = A._Cell$(); nextIndentation = A._Cell$(); t2 = nextIndentation.__late_helper$_name; do { containsSpace._value = containsTab._value = false; nextIndentation._value = 0; for (; true;) { $label0$0: { _1_0 = t1.peekChar$0(); if (32 === _1_0) { containsSpace._value = true; break $label0$0; } if (9 === _1_0) { containsTab._value = true; break $label0$0; } break; } t4 = nextIndentation._value; if (t4 === nextIndentation) A.throwExpression(A.LateError$localNI(t2)); nextIndentation._value = t4 + 1; t1.readChar$0(); } t4 = t1._string_scanner$_position; if (t4 === t3) { _this._nextIndentation = 0; _this._nextIndentationEnd = new A._SpanScannerState(t1, t4); t1.set$state(start); return 0; } } while (_this.scanCharIf$1(new A.SassParser__peekIndentation_closure0())); t2 = containsTab._readLocal$0(); t3 = containsSpace._readLocal$0(); if (t2) { if (t3) { t2 = t1._string_scanner$_position; t3 = t1._sourceFile; t4 = t3.getColumn$1(t2); t1.error$3$length$position(0, "Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4); } else if (_this._spaces === true) { t2 = t1._string_scanner$_position; t3 = t1._sourceFile; t4 = t3.getColumn$1(t2); t1.error$3$length$position(0, "Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4); } } else if (t3 && _this._spaces === false) { t2 = t1._string_scanner$_position; t3 = t1._sourceFile; t4 = t3.getColumn$1(t2); t1.error$3$length$position(0, "Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4); } _this._nextIndentation = nextIndentation._readLocal$0(); if (nextIndentation._readLocal$0() > 0) if (_this._spaces == null) _this._spaces = containsSpace._readLocal$0(); _this._nextIndentationEnd = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.set$state(start); return nextIndentation._readLocal$0(); } }; A.SassParser_styleRuleSelector_closure.prototype = { call$1(char) { return char === 10 || char === 13 || char === 12; }, $signature: 34 }; A.SassParser_children_closure.prototype = { call$0() { var parsedChild, t1, _0_0 = this.$this._child$1(this.child); if (_0_0 != null) { parsedChild = _0_0; t1 = true; } else { parsedChild = null; t1 = false; } if (t1) this.children.push(parsedChild); }, $signature: 0 }; A.SassParser__peekIndentation_closure.prototype = { call$1(char) { return char === 10 || char === 13 || char === 12; }, $signature: 34 }; A.SassParser__peekIndentation_closure0.prototype = { call$1(char) { return char === 10 || char === 13 || char === 12; }, $signature: 34 }; A.ScssParser.prototype = { get$indented() { return false; }, get$currentIndentation() { return 0; }, styleRuleSelector$0() { return this.almostAnyValue$0(); }, expectStatementSeparator$1($name) { var t1, _0_0; this.whitespaceWithoutComments$0(); t1 = this.scanner; if (t1._string_scanner$_position === t1.string.length) return; _0_0 = t1.peekChar$0(); if (59 === _0_0 || 125 === _0_0) return; t1.expectChar$1(59); }, expectStatementSeparator$0() { return this.expectStatementSeparator$1(null); }, atEndOfStatement$0() { var next = this.scanner.peekChar$0(); return next == null || next === 59 || next === 125 || next === 123; }, lookingAtChildren$0() { return this.scanner.peekChar$0() === 123; }, scanElse$1(ifIndentation) { var t3, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; _this.whitespace$0(); t3 = t1._string_scanner$_position; if (t1.scanChar$1(64)) { if (_this.scanIdentifier$2$caseSensitive("else", true)) return true; if (_this.scanIdentifier$2$caseSensitive("elseif", true)) { A.WarnForDeprecation_warnForDeprecation(_this.logger, B.Deprecation_JAZ, string$.x40elsei, t1.spanFrom$1(new A._SpanScannerState(t1, t3)), null); t1.set$position(t1._string_scanner$_position - 2); return true; } } t1.set$state(new A._SpanScannerState(t1, t2)); return false; }, children$1(_, child) { var children, _this = this, t1 = _this.scanner; t1.expectChar$1(123); _this.whitespaceWithoutComments$0(); children = A._setArrayType([], type$.JSArray_Statement); for (; true;) switch (t1.peekChar$0()) { case 36: children.push(_this.variableDeclarationWithoutNamespace$0()); break; case 47: switch (t1.peekChar$1(1)) { case 47: children.push(_this._scss$_silentComment$0()); _this.whitespaceWithoutComments$0(); break; case 42: children.push(_this._scss$_loudComment$0()); _this.whitespaceWithoutComments$0(); break; default: children.push(child.call$0()); } break; case 59: t1.readChar$0(); _this.whitespaceWithoutComments$0(); break; case 125: t1.expectChar$1(125); return children; default: children.push(child.call$0()); } }, statements$1(statement) { var t1, t2, _0_0, child, t3, _1_0, _this = this, statements = A._setArrayType([], type$.JSArray_Statement); _this.whitespaceWithoutComments$0(); for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) switch (t1.peekChar$0()) { case 36: statements.push(_this.variableDeclarationWithoutNamespace$0()); break; case 47: switch (t1.peekChar$1(1)) { case 47: statements.push(_this._scss$_silentComment$0()); _this.whitespaceWithoutComments$0(); break; case 42: statements.push(_this._scss$_loudComment$0()); _this.whitespaceWithoutComments$0(); break; default: _0_0 = statement.call$0(); if (_0_0 != null) { child = _0_0; t3 = true; } else { child = null; t3 = false; } if (t3) statements.push(child); } break; case 59: t1.readChar$0(); _this.whitespaceWithoutComments$0(); break; default: _1_0 = statement.call$0(); if (_1_0 != null) { child = _1_0; t3 = true; } else { child = null; t3 = false; } if (t3) statements.push(child); } return statements; }, _scss$_silentComment$0() { var t2, t3, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expect$1("//"); t2 = t1.string.length; do { while (true) { if (t1._string_scanner$_position !== t2) { t3 = t1.readChar$0(); t3 = !(t3 === 10 || t3 === 13 || t3 === 12); } else t3 = false; if (!t3) break; } if (t1._string_scanner$_position === t2) break; _this.spaces$0(); } while (t1.scan$1("//")); if (_this.get$plainCss()) _this.error$2(0, string$.Silent, t1.spanFrom$1(start)); return _this.lastSilentComment = new A.SilentComment(t1.substring$1(0, start.position), t1.spanFrom$1(start)); }, _scss$_loudComment$0() { var t3, t4, buffer, t5, endPosition, t6, result, t1 = this.scanner, t2 = t1._string_scanner$_position; t1.expect$1("/*"); t3 = new A.StringBuffer(""); t4 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer(t3, t4); t3._contents = "" + "/*"; $label0$1: for (; true;) switch (t1.peekChar$0()) { case 35: if (t1.peekChar$1(1) === 123) { t5 = this.singleInterpolation$0(); buffer._flushText$0(); t4.push(t5); } else t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); break; case 42: t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); if (t1.peekChar$0() !== 47) continue $label0$1; t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); endPosition = t1._string_scanner$_position; t5 = t1._sourceFile; t6 = new A._SpanScannerState(t1, t2).position; t1 = new A._FileSpan(t5, t6, endPosition); t1._FileSpan$3(t5, t6, endPosition); t6 = type$.Object; t5 = A.List_List$of(t4, true, t6); t2 = t3._contents; if (t2.length !== 0) t5.push(t2.charCodeAt(0) == 0 ? t2 : t2); result = A.List_List$from(t5, false, t6); result.fixed$length = Array; result.immutable$list = Array; t2 = new A.Interpolation(result, t1); t2.Interpolation$2(t5, t1); return new A.LoudComment(t2); case 13: t1.readChar$0(); if (t1.peekChar$0() !== 10) t3._contents += A.Primitives_stringFromCharCode(10); break; case 12: t1.readChar$0(); t3._contents += A.Primitives_stringFromCharCode(10); break; default: t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } } }; A.SelectorParser.prototype = { parse$0() { return this.wrapSpanFormatException$1(new A.SelectorParser_parse_closure(this)); }, parseCompoundSelector$0() { return this.wrapSpanFormatException$1(new A.SelectorParser_parseCompoundSelector_closure(this)); }, _selectorList$0() { var t4, t5, lineBreak, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, t3 = t1._sourceFile, previousLine = t3.getLine$1(t2), components = A._setArrayType([_this._complexSelector$0()], type$.JSArray_ComplexSelector); _this.whitespace$0(); for (t4 = t1.string.length; t1.scanChar$1(44);) { _this.whitespace$0(); if (t1.peekChar$0() === 44) continue; t5 = t1._string_scanner$_position; if (t5 === t4) break; lineBreak = t3.getLine$1(t5) !== previousLine; if (lineBreak) previousLine = t3.getLine$1(t1._string_scanner$_position); components.push(_this._complexSelector$1$lineBreak(lineBreak)); } return A.SelectorList$(components, _this.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _complexSelector$1$lineBreak(lineBreak) { var t4, lastCompound, initialCombinators, _0_0, t5, result, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, componentStart = new A._SpanScannerState(t1, t2), t3 = type$.JSArray_CssValue_Combinator, combinators = A._setArrayType([], t3), components = A._setArrayType([], type$.JSArray_ComplexSelectorComponent); for (t4 = type$.CssValue_Combinator, lastCompound = null, initialCombinators = null; true;) { _this.whitespace$0(); _0_0 = t1.peekChar$0(); if (43 === _0_0) { t5 = t1._string_scanner$_position; t1.readChar$0(); combinators.push(new A.CssValue(B.Combinator_4QF, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4)); continue; } if (62 === _0_0) { t5 = t1._string_scanner$_position; t1.readChar$0(); combinators.push(new A.CssValue(B.Combinator_Cht, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4)); continue; } if (126 === _0_0) { t5 = t1._string_scanner$_position; t1.readChar$0(); combinators.push(new A.CssValue(B.Combinator_Htt, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4)); continue; } if (_0_0 == null) break; if (91 !== _0_0) if (46 !== _0_0) if (35 !== _0_0) if (37 !== _0_0) if (58 !== _0_0) if (38 !== _0_0) if (42 !== _0_0) if (124 !== _0_0) t5 = _this.lookingAtIdentifier$0(); else t5 = true; else t5 = true; else t5 = true; else t5 = true; else t5 = true; else t5 = true; else t5 = true; else t5 = true; if (t5) { if (lastCompound != null) { t5 = _this.spanFrom$1(componentStart); result = A.List_List$from(combinators, false, t4); result.fixed$length = Array; result.immutable$list = Array; components.push(new A.ComplexSelectorComponent(lastCompound, result, t5)); } else if (combinators.length !== 0) { componentStart = new A._SpanScannerState(t1, t1._string_scanner$_position); initialCombinators = combinators; } lastCompound = _this._compoundSelector$0(); combinators = A._setArrayType([], t3); if (t1.peekChar$0() === 38) t1.error$1(0, string$.x22x26__ma); continue; } break; } if (lastCompound != null) { t3 = _this.spanFrom$1(componentStart); components.push(new A.ComplexSelectorComponent(lastCompound, A.List_List$unmodifiable(combinators, t4), t3)); } else if (combinators.length !== 0) initialCombinators = combinators; else t1.error$1(0, "expected selector."); t3 = initialCombinators == null ? B.List_empty1 : initialCombinators; return A.ComplexSelector$(t3, components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)), lineBreak); }, _complexSelector$0() { return this._complexSelector$1$lineBreak(false); }, _compoundSelector$0() { var t3, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, components = A._setArrayType([_this._simpleSelector$0()], type$.JSArray_SimpleSelector); while (true) { t3 = t1.peekChar$0(); if (!(t3 === 42 || t3 === 91 || t3 === 46 || t3 === 35 || t3 === 37 || t3 === 58)) break; components.push(_this._simpleSelector$1$allowParent(false)); } return A.CompoundSelector$(components, _this.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _simpleSelector$1$allowParent(allowParent) { var t2, $name, text, t3, suffix, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); if (allowParent == null) allowParent = _this._allowParent; switch (t1.peekChar$0()) { case 91: return _this._attributeSelector$0(); case 46: t2 = t1._string_scanner$_position; t1.expectChar$1(46); return new A.ClassSelector(_this.identifier$0(), _this.spanFrom$1(new A._SpanScannerState(t1, t2))); case 35: t2 = t1._string_scanner$_position; t1.expectChar$1(35); return new A.IDSelector(_this.identifier$0(), _this.spanFrom$1(new A._SpanScannerState(t1, t2))); case 37: t2 = t1._string_scanner$_position; t1.expectChar$1(37); $name = _this.identifier$0(); t2 = _this.spanFrom$1(new A._SpanScannerState(t1, t2)); if (!_this._allowPlaceholder) _this.error$2(0, string$.Placeh, t1.spanFrom$1(start)); return new A.PlaceholderSelector($name, t2); case 58: return _this._pseudoSelector$0(); case 38: t2 = t1._string_scanner$_position; t1.expectChar$1(38); if (_this.lookingAtIdentifierBody$0()) { text = new A.StringBuffer(""); _this._identifierBody$1(text); if (text._contents.length === 0) t1.error$1(0, "Expected identifier body."); t3 = text._contents; suffix = t3.charCodeAt(0) == 0 ? t3 : t3; } else suffix = null; t2 = _this.spanFrom$1(new A._SpanScannerState(t1, t2)); if (!allowParent) _this.error$2(0, "Parent selectors aren't allowed here.", t1.spanFrom$1(start)); return new A.ParentSelector(suffix, t2); default: return _this._typeOrUniversalSelector$0(); } }, _simpleSelector$0() { return this._simpleSelector$1$allowParent(null); }, _attributeSelector$0() { var $name, operator, next, value, modifier, _this = this, _null = null, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$1(91); _this.whitespace$0(); $name = _this._attributeName$0(); _this.whitespace$0(); if (t1.scanChar$1(93)) return new A.AttributeSelector($name, _null, _null, _null, _this.spanFrom$1(start)); operator = _this._attributeOperator$0(); _this.whitespace$0(); next = t1.peekChar$0(); value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0(); _this.whitespace$0(); next = t1.peekChar$0(); modifier = next != null && A.CharacterExtension_get_isAlphabetic(next) ? A.Primitives_stringFromCharCode(t1.readChar$0()) : _null; t1.expectChar$1(93); return new A.AttributeSelector($name, operator, value, modifier, _this.spanFrom$1(start)); }, _attributeName$0() { var nameOrNamespace, _this = this, t1 = _this.scanner; if (t1.scanChar$1(42)) { t1.expectChar$1(124); return new A.QualifiedName(_this.identifier$0(), "*"); } if (t1.scanChar$1(124)) return new A.QualifiedName(_this.identifier$0(), ""); nameOrNamespace = _this.identifier$0(); if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61) return new A.QualifiedName(nameOrNamespace, null); t1.readChar$0(); return new A.QualifiedName(_this.identifier$0(), nameOrNamespace); }, _attributeOperator$0() { var t1 = this.scanner, t2 = t1._string_scanner$_position; switch (t1.readChar$0()) { case 61: return B.AttributeOperator_ES6; case 126: t1.expectChar$1(61); return B.AttributeOperator_r60; case 124: t1.expectChar$1(61); return B.AttributeOperator_ivT; case 94: t1.expectChar$1(61); return B.AttributeOperator_eot; case 36: t1.expectChar$1(61); return B.AttributeOperator_BGd; case 42: t1.expectChar$1(61); return B.AttributeOperator_8aB; default: t1.error$2$position(0, 'Expected "]".', t2); } }, _pseudoSelector$0() { var element, $name, unvendored, selector, argument, t2, _this = this, _null = null, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$1(58); element = t1.scanChar$1(58); $name = _this.identifier$0(); if (!t1.scanChar$1(40)) return A.PseudoSelector$($name, _this.spanFrom$1(start), _null, element, _null); _this.whitespace$0(); unvendored = A.unvendor($name); if (element) if ($._selectorPseudoElements.contains$1(0, unvendored)) { selector = _this._selectorList$0(); argument = _null; } else { argument = _this.declarationValue$1$allowEmpty(true); selector = _null; } else if ($._selectorPseudoClasses.contains$1(0, unvendored)) { selector = _this._selectorList$0(); argument = _null; } else if (unvendored === "nth-child" || unvendored === "nth-last-child") { argument = _this._aNPlusB$0(); _this.whitespace$0(); t2 = t1.peekChar$1(-1); if ((t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12) && t1.peekChar$0() !== 41) { _this.expectIdentifier$1("of"); argument += " of"; _this.whitespace$0(); selector = _this._selectorList$0(); } else selector = _null; } else { argument = B.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true)); selector = _null; } t1.expectChar$1(41); return A.PseudoSelector$($name, _this.spanFrom$1(start), argument, element, selector); }, _aNPlusB$0() { var t1, _0_0, t2, $self, next, _this = this; $label0$0: { t1 = _this.scanner; _0_0 = t1.peekChar$0(); if (101 === _0_0 || 69 === _0_0) { _this.expectIdentifier$1("even"); return "even"; } if (111 === _0_0 || 79 === _0_0) { _this.expectIdentifier$1("odd"); return "odd"; } if (43 === _0_0 || 45 === _0_0) { t2 = "" + A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } t2 = ""; } $self = t1.peekChar$0(); if ($self != null && $self >= 48 && $self <= 57) { do { t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); $self = t1.peekChar$0(); } while ($self != null && $self >= 48 && $self <= 57); _this.whitespace$0(); if (!_this.scanIdentChar$1(110)) return t2.charCodeAt(0) == 0 ? t2 : t2; } else _this.expectIdentChar$1(110); t2 += A.Primitives_stringFromCharCode(110); _this.whitespace$0(); next = t1.peekChar$0(); if (next !== 43 && next !== 45) return t2.charCodeAt(0) == 0 ? t2 : t2; t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); _this.whitespace$0(); $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) t1.error$1(0, "Expected a number."); do { t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); $self = t1.peekChar$0(); } while ($self != null && $self >= 48 && $self <= 57); return t2.charCodeAt(0) == 0 ? t2 : t2; }, _typeOrUniversalSelector$0() { var nameOrNamespace, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); if (t1.scanChar$1(42)) { if (!t1.scanChar$1(124)) return new A.UniversalSelector(null, _this.spanFrom$1(start)); 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)); } else if (t1.scanChar$1(124)) 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)); nameOrNamespace = _this.identifier$0(); if (!t1.scanChar$1(124)) return new A.TypeSelector(new A.QualifiedName(nameOrNamespace, null), _this.spanFrom$1(start)); else if (t1.scanChar$1(42)) return new A.UniversalSelector(nameOrNamespace, _this.spanFrom$1(start)); else return new A.TypeSelector(new A.QualifiedName(_this.identifier$0(), nameOrNamespace), _this.spanFrom$1(start)); } }; A.SelectorParser_parse_closure.prototype = { call$0() { var t1 = this.$this, selector = t1._selectorList$0(); t1 = t1.scanner; if (t1._string_scanner$_position !== t1.string.length) t1.error$1(0, "expected selector."); return selector; }, $signature: 354 }; A.SelectorParser_parseCompoundSelector_closure.prototype = { call$0() { var t1 = this.$this, compound = t1._compoundSelector$0(); t1 = t1.scanner; if (t1._string_scanner$_position !== t1.string.length) t1.error$1(0, "expected selector."); return compound; }, $signature: 355 }; A.StylesheetParser.prototype = { parse$0() { return this.wrapSpanFormatException$1(new A.StylesheetParser_parse_closure(this)); }, parseArgumentDeclaration$0() { return this._parseSingleProduction$1$1(new A.StylesheetParser_parseArgumentDeclaration_closure(this), type$.ArgumentDeclaration); }, parseVariableDeclaration$0() { return this._parseSingleProduction$1$1(new A.StylesheetParser_parseVariableDeclaration_closure(this), type$.VariableDeclaration); }, parseUseRule$0() { return this._parseSingleProduction$1$1(new A.StylesheetParser_parseUseRule_closure(this), type$.UseRule); }, _parseSingleProduction$1$1(production, $T) { return this.wrapSpanFormatException$1(new A.StylesheetParser__parseSingleProduction_closure(this, production, $T)); }, _statement$1$root(root) { var t2, _this = this, t1 = _this.scanner, _0_0 = t1.peekChar$0(); if (64 === _0_0) return _this.atRule$2$root(new A.StylesheetParser__statement_closure(_this), root); if (43 === _0_0) { if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1)) return _this._styleRule$0(); _this._isUseAllowed = false; t2 = t1._string_scanner$_position; t1.readChar$0(); return _this._includeRule$1(new A._SpanScannerState(t1, t2)); } if (61 === _0_0) { if (!_this.get$indented()) return _this._styleRule$0(); _this._isUseAllowed = false; t2 = t1._string_scanner$_position; t1.readChar$0(); _this.whitespace$0(); return _this._mixinRule$1(new A._SpanScannerState(t1, t2)); } if (125 === _0_0) t1.error$2$length(0, 'unmatched "}".', 1); return _this._inStyleRule || _this._stylesheet$_inUnknownAtRule || _this._stylesheet$_inMixin || _this._inContentBlock ? _this._declarationOrStyleRule$0() : _this._variableDeclarationOrStyleRule$0(); }, _statement$0() { return this._statement$1$root(false); }, _variableDeclarationWithNamespace$0() { var t1 = this.scanner, t2 = t1._string_scanner$_position, namespace = this.identifier$0(); t1.expectChar$1(46); return this.variableDeclarationWithoutNamespace$2(namespace, new A._SpanScannerState(t1, t2)); }, variableDeclarationWithoutNamespace$2(namespace, start_) { var t1, start, $name, t2, value, flagStart, t3, guarded, global, _0_0, endPosition, t4, t5, t6, declaration, _this = this, precedingComment = _this.lastSilentComment; _this.lastSilentComment = null; if (start_ == null) { t1 = _this.scanner; start = new A._SpanScannerState(t1, t1._string_scanner$_position); } else start = start_; $name = _this.variableName$0(); t1 = namespace != null; if (t1) _this._assertPublic$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure(_this, start)); if (_this.get$plainCss()) _this.error$2(0, string$.Sass_v, _this.scanner.spanFrom$1(start)); _this.whitespace$0(); t2 = _this.scanner; t2.expectChar$1(58); _this.whitespace$0(); value = _this._expression$0(); flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position); for (t3 = _this.logger, guarded = false, global = false; t2.scanChar$1(33);) { $label0$0: { _0_0 = _this.identifier$0(); if ("default" === _0_0) { if (guarded) { endPosition = t2._string_scanner$_position; t4 = t2._sourceFile; t5 = flagStart.position; t6 = new A._FileSpan(t4, t5, endPosition); t6._FileSpan$3(t4, t5, endPosition); A.WarnForDeprecation_warnForDeprecation(t3, B.Deprecation_Auo, string$.x21defau, t6, null); } guarded = true; break $label0$0; } if ("global" === _0_0) { if (t1) { endPosition = t2._string_scanner$_position; t4 = t2._sourceFile; t5 = flagStart.position; t6 = new A._FileSpan(t4, t5, endPosition); t6._FileSpan$3(t4, t5, endPosition); _this.error$2(0, string$.x21globai, t6); } else if (global) { endPosition = t2._string_scanner$_position; t4 = t2._sourceFile; t5 = flagStart.position; t6 = new A._FileSpan(t4, t5, endPosition); t6._FileSpan$3(t4, t5, endPosition); A.WarnForDeprecation_warnForDeprecation(t3, B.Deprecation_Auo, string$.x21globas, t6, null); } global = true; break $label0$0; } endPosition = t2._string_scanner$_position; t4 = t2._sourceFile; t5 = flagStart.position; t6 = new A._FileSpan(t4, t5, endPosition); t6._FileSpan$3(t4, t5, endPosition); _this.error$2(0, "Invalid flag name.", t6); } _this.whitespace$0(); flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position); } _this.expectStatementSeparator$1("variable declaration"); declaration = A.VariableDeclaration$($name, value, t2.spanFrom$1(start), precedingComment, global, guarded, namespace); if (global) _this._globalVariables.putIfAbsent$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure0(declaration)); return declaration; }, variableDeclarationWithoutNamespace$0() { return this.variableDeclarationWithoutNamespace$2(null, null); }, _variableDeclarationOrStyleRule$0() { var t1, t2, variableOrInterpolation, t3, _this = this; if (_this.get$plainCss()) return _this._styleRule$0(); if (_this.get$indented() && _this.scanner.scanChar$1(92)) return _this._styleRule$0(); if (!_this.lookingAtIdentifier$0()) return _this._styleRule$0(); t1 = _this.scanner; t2 = t1._string_scanner$_position; variableOrInterpolation = _this._variableDeclarationOrInterpolation$0(); if (variableOrInterpolation instanceof A.VariableDeclaration) t1 = variableOrInterpolation; else { t3 = new A.InterpolationBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object)); t3.addInterpolation$1(type$.Interpolation._as(variableOrInterpolation)); t2 = _this._styleRule$2(t3, new A._SpanScannerState(t1, t2)); t1 = t2; } return t1; }, _declarationOrStyleRule$0() { var t1, t2, declarationOrBuffer, _this = this; if (_this.get$plainCss() && _this._inStyleRule && !_this._stylesheet$_inUnknownAtRule) return _this._propertyOrVariableDeclaration$0(); if (_this.get$indented() && _this.scanner.scanChar$1(92)) return _this._styleRule$0(); t1 = _this.scanner; t2 = t1._string_scanner$_position; declarationOrBuffer = _this._declarationOrBuffer$0(); return type$.Statement._is(declarationOrBuffer) ? declarationOrBuffer : _this._styleRule$2(type$.InterpolationBuffer._as(declarationOrBuffer), new A._SpanScannerState(t1, t2)); }, _declarationOrBuffer$0() { var midBuffer, couldBeSelector, beforeDeclaration, additional, t3, startsWithPunctuation, variableOrInterpolation, t4, $name, postColonWhitespace, exception, _this = this, t1 = {}, t2 = _this.scanner, start = new A._SpanScannerState(t2, t2._string_scanner$_position), nameBuffer = new A.InterpolationBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object)); if (_this._lookingAtPotentialPropertyHack$0()) { t3 = t2.readChar$0(); nameBuffer._interpolation_buffer$_text._contents += A.Primitives_stringFromCharCode(t3); t3 = _this.rawText$1(_this.get$whitespace()); nameBuffer._interpolation_buffer$_text._contents += t3; startsWithPunctuation = true; } else startsWithPunctuation = false; if (!_this._lookingAtInterpolatedIdentifier$0()) return nameBuffer; variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._variableDeclarationOrInterpolation$0(); if (variableOrInterpolation instanceof A.VariableDeclaration) return variableOrInterpolation; else nameBuffer.addInterpolation$1(type$.Interpolation._as(variableOrInterpolation)); _this._isUseAllowed = false; if (t2.matches$1("/*")) { t3 = _this.rawText$1(_this.get$loudComment()); nameBuffer._interpolation_buffer$_text._contents += t3; } midBuffer = new A.StringBuffer(""); t3 = _this.get$whitespace(); midBuffer._contents += _this.rawText$1(t3); t4 = t2._string_scanner$_position; if (!t2.scanChar$1(58)) { if (midBuffer._contents.length !== 0) nameBuffer._interpolation_buffer$_text._contents += A.Primitives_stringFromCharCode(32); return nameBuffer; } midBuffer._contents += A.Primitives_stringFromCharCode(58); $name = nameBuffer.interpolation$1(t2.spanFrom$2(start, new A._SpanScannerState(t2, t4))); if (B.JSString_methods.startsWith$1($name.get$initialPlain(), "--")) { t1 = _this._interpolatedDeclarationValue$0(); _this.expectStatementSeparator$1("custom property"); return A.Declaration$($name, new A.StringExpression(t1, false), t2.spanFrom$1(start)); } if (t2.scanChar$1(58)) { t1 = nameBuffer; t2 = t1._interpolation_buffer$_text; t2._contents += A.S(midBuffer); t2._contents += A.Primitives_stringFromCharCode(58); return t1; } else if (_this.get$indented() && _this._lookingAtInterpolatedIdentifier$0()) { t1 = nameBuffer; t1._interpolation_buffer$_text._contents += A.S(midBuffer); return t1; } postColonWhitespace = _this.rawText$1(t3); if (_this.lookingAtChildren$0()) return _this._withChildren$3(_this.get$_declarationChild(), start, new A.StylesheetParser__declarationOrBuffer_closure($name)); midBuffer._contents += postColonWhitespace; couldBeSelector = postColonWhitespace.length === 0 && _this._lookingAtInterpolatedIdentifier$0(); beforeDeclaration = new A._SpanScannerState(t2, t2._string_scanner$_position); t3 = t1.value = null; try { t3 = t1.value = _this._expression$0(); if (_this.lookingAtChildren$0()) { if (couldBeSelector) _this.expectStatementSeparator$0(); } else if (!_this.atEndOfStatement$0()) _this.expectStatementSeparator$0(); } catch (exception) { if (type$.FormatException._is(A.unwrapException(exception))) { if (!couldBeSelector) throw exception; t2.set$state(beforeDeclaration); additional = _this.almostAnyValue$0(); if (!_this.get$indented() && t2.peekChar$0() === 59) throw exception; nameBuffer._interpolation_buffer$_text._contents += A.S(midBuffer); nameBuffer.addInterpolation$1(additional); return nameBuffer; } else throw exception; } if (_this.lookingAtChildren$0()) return _this._withChildren$3(_this.get$_declarationChild(), start, new A.StylesheetParser__declarationOrBuffer_closure0(t1, $name)); else { _this.expectStatementSeparator$0(); return A.Declaration$($name, t3, t2.spanFrom$1(start)); } }, _variableDeclarationOrInterpolation$0() { var t1, start, identifier, t2, buffer, _this = this; if (!_this.lookingAtIdentifier$0()) return _this.interpolatedIdentifier$0(); t1 = _this.scanner; start = new A._SpanScannerState(t1, t1._string_scanner$_position); identifier = _this.identifier$0(); if (t1.matches$1(".$")) { t1.readChar$0(); return _this.variableDeclarationWithoutNamespace$2(identifier, start); } else { t2 = new A.StringBuffer(""); buffer = new A.InterpolationBuffer(t2, A._setArrayType([], type$.JSArray_Object)); t2._contents = "" + identifier; if (_this._lookingAtInterpolatedIdentifierBody$0()) buffer.addInterpolation$1(_this.interpolatedIdentifier$0()); return buffer.interpolation$1(t1.spanFrom$1(start)); } }, _styleRule$2(buffer, start_) { var t2, start, interpolation, wasInStyleRule, _this = this, t1 = {}; _this._isUseAllowed = false; if (start_ == null) { t2 = _this.scanner; start = new A._SpanScannerState(t2, t2._string_scanner$_position); } else start = start_; interpolation = t1.interpolation = _this.styleRuleSelector$0(); if (buffer != null) { buffer.addInterpolation$1(interpolation); t2 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(start)); } else t2 = interpolation; if (t2.contents.length === 0) _this.scanner.error$1(0, 'expected "}".'); wasInStyleRule = _this._inStyleRule; _this._inStyleRule = true; return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__styleRule_closure(t1, _this, wasInStyleRule, start)); }, _styleRule$0() { return this._styleRule$2(null, null); }, _propertyOrVariableDeclaration$1$parseCustomProperties(parseCustomProperties) { var t3, nameBuffer, variableOrInterpolation, $name, value, _this = this, _s48_ = string$.Nested, t1 = {}, t2 = _this.scanner, start = new A._SpanScannerState(t2, t2._string_scanner$_position); t1.name = null; if (_this._lookingAtPotentialPropertyHack$0()) { t3 = new A.StringBuffer(""); nameBuffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object)); t3._contents += A.Primitives_stringFromCharCode(t2.readChar$0()); t3._contents += _this.rawText$1(_this.get$whitespace()); nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0()); t3 = t1.name = nameBuffer.interpolation$1(t2.spanFrom$1(start)); } else if (!_this.get$plainCss()) { variableOrInterpolation = _this._variableDeclarationOrInterpolation$0(); if (variableOrInterpolation instanceof A.VariableDeclaration) return variableOrInterpolation; else { type$.Interpolation._as(variableOrInterpolation); t1.name = variableOrInterpolation; } t3 = variableOrInterpolation; } else { $name = _this.interpolatedIdentifier$0(); t1.name = $name; t3 = $name; } _this.whitespace$0(); t2.expectChar$1(58); if (parseCustomProperties && B.JSString_methods.startsWith$1(t3.get$initialPlain(), "--")) { t1 = _this._interpolatedDeclarationValue$0(); _this.expectStatementSeparator$1("custom property"); return A.Declaration$(t3, new A.StringExpression(t1, false), t2.spanFrom$1(start)); } _this.whitespace$0(); if (_this.lookingAtChildren$0()) { if (_this.get$plainCss()) t2.error$1(0, _s48_); return _this._withChildren$3(_this.get$_declarationChild(), start, new A.StylesheetParser__propertyOrVariableDeclaration_closure(t1)); } value = _this._expression$0(); if (_this.lookingAtChildren$0()) { if (_this.get$plainCss()) t2.error$1(0, _s48_); return _this._withChildren$3(_this.get$_declarationChild(), start, new A.StylesheetParser__propertyOrVariableDeclaration_closure0(t1, value)); } else { _this.expectStatementSeparator$0(); return A.Declaration$(t3, value, t2.spanFrom$1(start)); } }, _propertyOrVariableDeclaration$0() { return this._propertyOrVariableDeclaration$1$parseCustomProperties(true); }, _declarationChild$0() { return this.scanner.peekChar$0() === 64 ? this._declarationAtRule$0() : this._propertyOrVariableDeclaration$1$parseCustomProperties(false); }, atRule$2$root(child, root) { var $name, wasUseAllowed, value, optional, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$2$name(64, "@-rule"); $name = _this.interpolatedIdentifier$0(); _this.whitespace$0(); wasUseAllowed = _this._isUseAllowed; _this._isUseAllowed = false; switch ($name.get$asPlain()) { case "at-root": return _this._atRootRule$1(start); case "content": return _this._contentRule$1(start); case "debug": return _this._debugRule$1(start); case "each": return _this._eachRule$2(start, child); case "else": return _this._disallowedAtRule$1(start); case "error": return _this._errorRule$1(start); case "extend": if (!_this._inStyleRule && !_this._stylesheet$_inMixin && !_this._inContentBlock) _this.error$2(0, string$.x40exten, t1.spanFrom$1(start)); value = _this.almostAnyValue$0(); optional = t1.scanChar$1(33); if (optional) _this.expectIdentifier$1("optional"); _this.expectStatementSeparator$1("@extend rule"); return new A.ExtendRule(value, optional, t1.spanFrom$1(start)); case "for": return _this._forRule$2(start, child); case "forward": _this._isUseAllowed = wasUseAllowed; if (!root) _this._disallowedAtRule$1(start); return _this._forwardRule$1(start); case "function": return _this._functionRule$1(start); case "if": return _this._ifRule$2(start, child); case "import": return _this._importRule$1(start); case "include": return _this._includeRule$1(start); case "media": return _this.mediaRule$1(start); case "mixin": return _this._mixinRule$1(start); case "-moz-document": return _this.mozDocumentRule$2(start, $name); case "return": return _this._disallowedAtRule$1(start); case "supports": return _this.supportsRule$1(start); case "use": _this._isUseAllowed = wasUseAllowed; if (!root) _this._disallowedAtRule$1(start); return _this._useRule$1(start); case "warn": return _this._warnRule$1(start); case "while": return _this._whileRule$2(start, child); default: return _this.unknownAtRule$2(start, $name); } }, _declarationAtRule$0() { var _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), _0_0 = _this._plainAtRuleName$0(); $label0$0: { if ("content" === _0_0) { t1 = _this._contentRule$1(start); break $label0$0; } if ("debug" === _0_0) { t1 = _this._debugRule$1(start); break $label0$0; } if ("each" === _0_0) { t1 = _this._eachRule$2(start, _this.get$_declarationChild()); break $label0$0; } if ("else" === _0_0) _this._disallowedAtRule$1(start); if ("error" === _0_0) { t1 = _this._errorRule$1(start); break $label0$0; } if ("for" === _0_0) { t1 = _this._forRule$2(start, _this.get$_declarationChild()); break $label0$0; } if ("if" === _0_0) { t1 = _this._ifRule$2(start, _this.get$_declarationChild()); break $label0$0; } if ("include" === _0_0) { t1 = _this._includeRule$1(start); break $label0$0; } if ("warn" === _0_0) { t1 = _this._warnRule$1(start); break $label0$0; } if ("while" === _0_0) { t1 = _this._whileRule$2(start, _this.get$_declarationChild()); break $label0$0; } t1 = _this._disallowedAtRule$1(start); } return t1; }, _functionChild$0() { var state, variableDeclarationError, stackTrace, statement, t2, exception, t3, start, _0_0, value, _this = this, t1 = _this.scanner; if (t1.peekChar$0() !== 64) { state = new A._SpanScannerState(t1, t1._string_scanner$_position); try { t2 = _this._variableDeclarationWithNamespace$0(); return t2; } catch (exception) { t2 = A.unwrapException(exception); t3 = type$.SourceSpanFormatException; if (t3._is(t2)) { variableDeclarationError = t2; stackTrace = A.getTraceFromException(exception); t1.set$state(state); statement = null; try { statement = _this._declarationOrStyleRule$0(); } catch (exception) { if (t3._is(A.unwrapException(exception))) throw A.wrapException(variableDeclarationError); else throw exception; } t2 = statement instanceof A.StyleRule ? "style rules" : "declarations"; _this.error$3(0, "@function rules may not contain " + t2 + ".", J.get$span$z(statement), stackTrace); } else throw exception; } } start = new A._SpanScannerState(t1, t1._string_scanner$_position); _0_0 = _this._plainAtRuleName$0(); $label0$0: { if ("debug" === _0_0) { t1 = _this._debugRule$1(start); break $label0$0; } if ("each" === _0_0) { t1 = _this._eachRule$2(start, _this.get$_functionChild()); break $label0$0; } if ("else" === _0_0) _this._disallowedAtRule$1(start); if ("error" === _0_0) { t1 = _this._errorRule$1(start); break $label0$0; } if ("for" === _0_0) { t1 = _this._forRule$2(start, _this.get$_functionChild()); break $label0$0; } if ("if" === _0_0) { t1 = _this._ifRule$2(start, _this.get$_functionChild()); break $label0$0; } if ("return" === _0_0) { value = _this._expression$0(); _this.expectStatementSeparator$1("@return rule"); t1 = new A.ReturnRule(value, t1.spanFrom$1(start)); break $label0$0; } if ("warn" === _0_0) { t1 = _this._warnRule$1(start); break $label0$0; } if ("while" === _0_0) { t1 = _this._whileRule$2(start, _this.get$_functionChild()); break $label0$0; } t1 = _this._disallowedAtRule$1(start); } return t1; }, _plainAtRuleName$0() { this.scanner.expectChar$2$name(64, "@-rule"); var $name = this.identifier$0(); this.whitespace$0(); return $name; }, _atRootRule$1(start) { var t2, t3, t4, buffer, t5, query, _this = this, t1 = _this.scanner; if (t1.peekChar$0() === 40) { t2 = t1._string_scanner$_position; t3 = new A.StringBuffer(""); t4 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer(t3, t4); t1.expectChar$1(40); t3._contents += A.Primitives_stringFromCharCode(40); _this.whitespace$0(); t5 = _this._expression$0(); buffer._flushText$0(); t4.push(t5); if (t1.scanChar$1(58)) { _this.whitespace$0(); t3._contents += A.Primitives_stringFromCharCode(58); t3._contents += A.Primitives_stringFromCharCode(32); t5 = _this._expression$0(); buffer._flushText$0(); t4.push(t5); } t1.expectChar$1(41); _this.whitespace$0(); t3._contents += A.Primitives_stringFromCharCode(41); query = buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))); _this.whitespace$0(); return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__atRootRule_closure(query)); } else if (_this.lookingAtChildren$0()) return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__atRootRule_closure0()); else return A.AtRootRule$(A._setArrayType([_this._styleRule$0()], type$.JSArray_Statement), t1.spanFrom$1(start), null); }, _contentRule$1(start) { var t1, $arguments, t2, t3, _this = this; if (!_this._stylesheet$_inMixin) _this.error$2(0, string$.x40conte, _this.scanner.spanFrom$1(start)); _this.whitespace$0(); t1 = _this.scanner; if (t1.peekChar$0() === 40) $arguments = _this._argumentInvocation$1$mixin(true); else { t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position); t3 = t2.offset; $arguments = A.ArgumentInvocation$empty(A._FileSpan$(t2.file, t3, t3)); } _this.expectStatementSeparator$1("@content rule"); return new A.ContentRule($arguments, t1.spanFrom$1(start)); }, _debugRule$1(start) { var value = this._expression$0(); this.expectStatementSeparator$1("@debug rule"); return new A.DebugRule(value, this.scanner.spanFrom$1(start)); }, _eachRule$2(start, child) { var variables, t1, _this = this, wasInControlDirective = _this._inControlDirective; _this._inControlDirective = true; variables = A._setArrayType([_this.variableName$0()], type$.JSArray_String); _this.whitespace$0(); for (t1 = _this.scanner; t1.scanChar$1(44);) { _this.whitespace$0(); t1.expectChar$1(36); variables.push(_this.identifier$1$normalize(true)); _this.whitespace$0(); } _this.expectIdentifier$1("in"); _this.whitespace$0(); return _this._withChildren$3(child, start, new A.StylesheetParser__eachRule_closure(_this, wasInControlDirective, variables, _this._expression$0())); }, _errorRule$1(start) { var value = this._expression$0(); this.expectStatementSeparator$1("@error rule"); return new A.ErrorRule(value, this.scanner.spanFrom$1(start)); }, _functionRule$1(start) { var $name, $arguments, _0_0, _this = this, precedingComment = _this.lastSilentComment; _this.lastSilentComment = null; $name = _this.identifier$1$normalize(true); _this.whitespace$0(); $arguments = _this._argumentDeclaration$0(); if (_this._stylesheet$_inMixin || _this._inContentBlock) _this.error$2(0, string$.Mixinscf, _this.scanner.spanFrom$1(start)); else if (_this._inControlDirective) _this.error$2(0, string$.Functi, _this.scanner.spanFrom$1(start)); _0_0 = A.unvendor($name); 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) _this.error$2(0, "Invalid function name.", _this.scanner.spanFrom$1(start)); _this.whitespace$0(); return _this._withChildren$3(_this.get$_functionChild(), start, new A.StylesheetParser__functionRule_closure($name, $arguments, precedingComment)); }, _forRule$2(start, child) { var variable, from, _this = this, t1 = {}, wasInControlDirective = _this._inControlDirective; _this._inControlDirective = true; variable = _this.variableName$0(); _this.whitespace$0(); _this.expectIdentifier$1("from"); _this.whitespace$0(); t1.exclusive = null; from = _this._expression$1$until(new A.StylesheetParser__forRule_closure(t1, _this)); if (t1.exclusive == null) _this.scanner.error$1(0, 'Expected "to" or "through".'); _this.whitespace$0(); return _this._withChildren$3(child, start, new A.StylesheetParser__forRule_closure0(t1, _this, wasInControlDirective, variable, from, _this._expression$0())); }, _forwardRule$1(start) { var prefix, _0_0, t1, t2, hiddenVariables, hiddenMixinsAndFunctions, shownVariables, shownMixinsAndFunctions, _1_0, configuration, span, t3, t4, _this = this, _null = null, url = _this._urlString$0(); _this.whitespace$0(); if (_this.scanIdentifier$1("as")) { _this.whitespace$0(); prefix = _this.identifier$1$normalize(true); _this.scanner.expectChar$1(42); _this.whitespace$0(); } else prefix = _null; if (_this.scanIdentifier$1("show")) { _0_0 = _this._memberList$0(); t1 = _0_0._0; t2 = _0_0._1; hiddenVariables = _null; hiddenMixinsAndFunctions = hiddenVariables; shownVariables = t2; shownMixinsAndFunctions = t1; } else { if (_this.scanIdentifier$1("hide")) { _1_0 = _this._memberList$0(); t1 = _1_0._0; t2 = _1_0._1; hiddenVariables = t2; hiddenMixinsAndFunctions = t1; } else { hiddenVariables = _null; hiddenMixinsAndFunctions = hiddenVariables; } shownVariables = _null; shownMixinsAndFunctions = shownVariables; } configuration = _this._stylesheet$_configuration$1$allowGuarded(true); _this.expectStatementSeparator$1("@forward rule"); span = _this.scanner.spanFrom$1(start); if (!_this._isUseAllowed) _this.error$2(0, string$.x40forwa, span); if (shownMixinsAndFunctions != null) { shownVariables.toString; t1 = type$.String; t2 = A.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1); t3 = type$.UnmodifiableSetView_String; t1 = A.LinkedHashSet_LinkedHashSet$of(shownVariables, t1); t4 = configuration == null ? B.List_empty10 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable); return new A.ForwardRule(url, new A.UnmodifiableSetView0(t2, t3), new A.UnmodifiableSetView0(t1, t3), _null, _null, prefix, t4, span); } else if (hiddenMixinsAndFunctions != null) { hiddenVariables.toString; t1 = type$.String; t2 = A.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1); t3 = type$.UnmodifiableSetView_String; t1 = A.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1); t4 = configuration == null ? B.List_empty10 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable); return new A.ForwardRule(url, _null, _null, new A.UnmodifiableSetView0(t2, t3), new A.UnmodifiableSetView0(t1, t3), prefix, t4, span); } else return new A.ForwardRule(url, _null, _null, _null, _null, prefix, configuration == null ? B.List_empty10 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable), span); }, _memberList$0() { var _this = this, t1 = type$.String, identifiers = A.LinkedHashSet_LinkedHashSet$_empty(t1), variables = A.LinkedHashSet_LinkedHashSet$_empty(t1); t1 = _this.scanner; do { _this.whitespace$0(); _this.withErrorMessage$2(string$.Expect, new A.StylesheetParser__memberList_closure(_this, variables, identifiers)); _this.whitespace$0(); } while (t1.scanChar$1(44)); return new A._Record_2(identifiers, variables); }, _ifRule$2(start, child) { var condition, children, clauses, lastClause, span, _this = this, ifIndentation = _this.get$currentIndentation(), wasInControlDirective = _this._inControlDirective; _this._inControlDirective = true; condition = _this._expression$0(); children = _this.children$1(0, child); _this.whitespaceWithoutComments$0(); clauses = A._setArrayType([A.IfClause$(condition, children)], type$.JSArray_IfClause); while (true) { if (!_this.scanElse$1(ifIndentation)) { lastClause = null; break; } _this.whitespace$0(); if (_this.scanIdentifier$1("if")) { _this.whitespace$0(); clauses.push(A.IfClause$(_this._expression$0(), _this.children$1(0, child))); } else { lastClause = A.ElseClause$(_this.children$1(0, child)); break; } } _this._inControlDirective = wasInControlDirective; span = _this.scanner.spanFrom$1(start); _this.whitespaceWithoutComments$0(); return new A.IfRule(A.List_List$unmodifiable(clauses, type$.IfClause), lastClause, span); }, _importRule$1(start) { var argument, t3, _this = this, imports = A._setArrayType([], type$.JSArray_Import), t1 = _this.scanner, t2 = _this.logger; do { _this.whitespace$0(); argument = _this.importArgument$0(); t3 = argument instanceof A.DynamicImport; if (t3) A.WarnForDeprecation_warnForDeprecation(t2, B.Deprecation_B8J, string$.Sass__, argument.span, null); if ((_this._inControlDirective || _this._stylesheet$_inMixin) && t3) _this._disallowedAtRule$1(start); imports.push(argument); _this.whitespace$0(); } while (t1.scanChar$1(44)); _this.expectStatementSeparator$1("@import rule"); t1 = t1.spanFrom$1(start); return new A.ImportRule(A.List_List$unmodifiable(imports, type$.Import), t1); }, importArgument$0() { var url, urlSpan, innerError, stackTrace, modifiers, t2, exception, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), _0_0 = t1.peekChar$0(); if (117 === _0_0 || 85 === _0_0) { url = _this.dynamicUrl$0(); _this.whitespace$0(); modifiers = _this.tryImportModifiers$0(); return new A.StaticImport(A.Interpolation$(A._setArrayType([url], type$.JSArray_Object), t1.spanFrom$1(start)), modifiers, t1.spanFrom$1(start)); } url = _this.string$0(); urlSpan = t1.spanFrom$1(start); _this.whitespace$0(); modifiers = _this.tryImportModifiers$0(); if (_this.isPlainImportUrl$1(url) || modifiers != null) { t2 = urlSpan; return new A.StaticImport(A.Interpolation$(A._setArrayType([A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, null)], type$.JSArray_Object), urlSpan), modifiers, t1.spanFrom$1(start)); } else try { t1 = _this.parseImportUrl$1(url); return new A.DynamicImport(t1, urlSpan); } catch (exception) { t1 = A.unwrapException(exception); if (type$.FormatException._is(t1)) { innerError = t1; stackTrace = A.getTraceFromException(exception); _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), urlSpan, stackTrace); } else throw exception; } }, parseImportUrl$1(url) { var t1 = $.$get$windows(); if (t1.style.rootLength$1(url) > 0 && !$.$get$url().style.isRootRelative$1(url)) return t1.toUri$1(url).toString$0(0); A.Uri_parse(url); return url; }, isPlainImportUrl$1(url) { var _0_0, t1; if (url.length < 5) return false; if (B.JSString_methods.endsWith$1(url, ".css")) return true; _0_0 = url.charCodeAt(0); $label0$0: { if (47 === _0_0) { t1 = url.charCodeAt(1) === 47; break $label0$0; } if (104 === _0_0) { t1 = B.JSString_methods.startsWith$1(url, "http://") || B.JSString_methods.startsWith$1(url, "https://"); break $label0$0; } t1 = false; break $label0$0; } return t1; }, tryImportModifiers$0() { var t1, start, t2, t3, buffer, identifier, t4, $name, query, endPosition, t5, result, _this = this; if (!_this._lookingAtInterpolatedIdentifier$0() && _this.scanner.peekChar$0() !== 40) return null; t1 = _this.scanner; start = new A._SpanScannerState(t1, t1._string_scanner$_position); t2 = new A.StringBuffer(""); t3 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer(t2, t3); for (; true;) if (_this._lookingAtInterpolatedIdentifier$0()) { if (!(t3.length === 0 && t2._contents.length === 0)) t2._contents += A.Primitives_stringFromCharCode(32); identifier = _this.interpolatedIdentifier$0(); buffer.addInterpolation$1(identifier); t4 = identifier.get$asPlain(); $name = t4 == null ? null : t4.toLowerCase(); if ($name !== "and" && t1.scanChar$1(40)) { if ($name === "supports") { query = _this._importSupportsQuery$0(); t4 = !(query instanceof A.SupportsDeclaration); if (t4) t2._contents += A.Primitives_stringFromCharCode(40); buffer._flushText$0(); t3.push(new A.SupportsExpression(query)); if (t4) t2._contents += A.Primitives_stringFromCharCode(41); } else { t2._contents += A.Primitives_stringFromCharCode(40); buffer.addInterpolation$1(_this._interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true)); t2._contents += A.Primitives_stringFromCharCode(41); } t1.expectChar$1(41); _this.whitespace$0(); } else { _this.whitespace$0(); if (t1.scanChar$1(44)) { t2._contents += ", "; buffer.addInterpolation$1(_this._mediaQueryList$0()); endPosition = t1._string_scanner$_position; t4 = t1._sourceFile; t5 = start.position; t1 = new A._FileSpan(t4, t5, endPosition); t1._FileSpan$3(t4, t5, endPosition); t5 = type$.Object; t4 = A.List_List$of(t3, true, t5); t3 = t2._contents; if (t3.length !== 0) t4.push(t3.charCodeAt(0) == 0 ? t3 : t3); result = A.List_List$from(t4, false, t5); result.fixed$length = Array; result.immutable$list = Array; t2 = new A.Interpolation(result, t1); t2.Interpolation$2(t4, t1); return t2; } } } else if (t1.peekChar$0() === 40) { if (!(t3.length === 0 && t2._contents.length === 0)) t2._contents += A.Primitives_stringFromCharCode(32); buffer.addInterpolation$1(_this._mediaQueryList$0()); endPosition = t1._string_scanner$_position; t1 = t1._sourceFile; t4 = start.position; t5 = new A._FileSpan(t1, t4, endPosition); t5._FileSpan$3(t1, t4, endPosition); t4 = type$.Object; t3 = A.List_List$of(t3, true, t4); t1 = t2._contents; if (t1.length !== 0) t3.push(t1.charCodeAt(0) == 0 ? t1 : t1); result = A.List_List$from(t3, false, t4); result.fixed$length = Array; result.immutable$list = Array; t1 = new A.Interpolation(result, t5); t1.Interpolation$2(t3, t5); return t1; } else { endPosition = t1._string_scanner$_position; t1 = t1._sourceFile; t4 = start.position; t5 = new A._FileSpan(t1, t4, endPosition); t5._FileSpan$3(t1, t4, endPosition); t4 = type$.Object; t3 = A.List_List$of(t3, true, t4); t1 = t2._contents; if (t1.length !== 0) t3.push(t1.charCodeAt(0) == 0 ? t1 : t1); result = A.List_List$from(t3, false, t4); result.fixed$length = Array; result.immutable$list = Array; t1 = new A.Interpolation(result, t5); t1.Interpolation$2(t3, t5); return t1; } }, _importSupportsQuery$0() { var t1, t2, _0_0, $function, $name, _this = this; if (_this.scanIdentifier$1("not")) { _this.whitespace$0(); t1 = _this.scanner; t2 = t1._string_scanner$_position; return new A.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2))); } else { t1 = _this.scanner; if (t1.peekChar$0() === 40) return _this._supportsCondition$0(); else { _0_0 = _this._tryImportSupportsFunction$0(); if (_0_0 != null) { $function = _0_0; t2 = true; } else { $function = null; t2 = false; } if (t2) return $function; t2 = t1._string_scanner$_position; $name = _this._expression$0(); t1.expectChar$1(58); return _this._supportsDeclarationValue$2($name, new A._SpanScannerState(t1, t2)); } } }, _tryImportSupportsFunction$0() { var t1, start, $name, value, _this = this; if (!_this._lookingAtInterpolatedIdentifier$0()) return null; t1 = _this.scanner; start = new A._SpanScannerState(t1, t1._string_scanner$_position); $name = _this.interpolatedIdentifier$0(); if (!t1.scanChar$1(40)) { t1.set$state(start); return null; } value = _this._interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true); t1.expectChar$1(41); return new A.SupportsFunction($name, value, t1.spanFrom$1(start)); }, _includeRule$1(start) { var name0, namespace, $arguments, t2, t3, contentArguments, contentArguments_, wasInContentBlock, $content, _this = this, _null = null, $name = _this.identifier$0(), t1 = _this.scanner; if (t1.scanChar$1(46)) { name0 = _this._publicIdentifier$0(); namespace = $name; $name = name0; } else { $name = A.stringReplaceAllUnchecked($name, "_", "-"); namespace = _null; } _this.whitespace$0(); if (t1.peekChar$0() === 40) $arguments = _this._argumentInvocation$1$mixin(true); else { t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position); t3 = t2.offset; $arguments = A.ArgumentInvocation$empty(A._FileSpan$(t2.file, t3, t3)); } _this.whitespace$0(); if (_this.scanIdentifier$1("using")) { _this.whitespace$0(); contentArguments = _this._argumentDeclaration$0(); _this.whitespace$0(); } else contentArguments = _null; t2 = contentArguments == null; if (!t2 || _this.lookingAtChildren$0()) { if (t2) { t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position); t3 = t2.offset; contentArguments_ = new A.ArgumentDeclaration(B.List_empty11, _null, A._FileSpan$(t2.file, t3, t3)); } else contentArguments_ = contentArguments; wasInContentBlock = _this._inContentBlock; _this._inContentBlock = true; $content = _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__includeRule_closure(contentArguments_)); _this._inContentBlock = wasInContentBlock; } else { _this.expectStatementSeparator$0(); $content = _null; } t1 = t1.spanFrom$2(start, start); t2 = $content == null ? $arguments : $content; return new A.IncludeRule(namespace, $name, $arguments, $content, t1.expand$1(0, t2.get$span(t2))); }, mediaRule$1(start) { return this._withChildren$3(this.get$_statement(), start, new A.StylesheetParser_mediaRule_closure(this._mediaQueryList$0())); }, _mixinRule$1(start) { var $name, t1, $arguments, t2, t3, _this = this, precedingComment = _this.lastSilentComment; _this.lastSilentComment = null; $name = _this.identifier$1$normalize(true); _this.whitespace$0(); t1 = _this.scanner; if (t1.peekChar$0() === 40) $arguments = _this._argumentDeclaration$0(); else { t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position); t3 = t2.offset; $arguments = new A.ArgumentDeclaration(B.List_empty11, null, A._FileSpan$(t2.file, t3, t3)); } if (_this._stylesheet$_inMixin || _this._inContentBlock) _this.error$2(0, string$.Mixinscm, t1.spanFrom$1(start)); else if (_this._inControlDirective) _this.error$2(0, string$.Mixinsb, t1.spanFrom$1(start)); _this.whitespace$0(); _this._stylesheet$_inMixin = true; return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__mixinRule_closure(_this, $name, $arguments, precedingComment)); }, mozDocumentRule$2(start, $name) { var t5, t6, identifier, _0_0, contents, argument, trailing, endPosition, t7, t8, start0, end, _this = this, _box_0 = {}, t1 = _this.scanner, t2 = t1._string_scanner$_position, t3 = new A.StringBuffer(""), t4 = A._setArrayType([], type$.JSArray_Object), buffer = new A.InterpolationBuffer(t3, t4); _box_0.needsDeprecationWarning = false; for (t5 = _this.get$whitespace(); true;) { if (t1.peekChar$0() === 35) { t6 = _this.singleInterpolation$0(); buffer._flushText$0(); t4.push(t6); _box_0.needsDeprecationWarning = true; } else { t6 = t1._string_scanner$_position; identifier = _this.identifier$0(); $label0$0: { if ("url" === identifier || "url-prefix" === identifier || "domain" === identifier) { _0_0 = _this._tryUrlContents$2$name(new A._SpanScannerState(t1, t6), identifier); if (_0_0 != null) { contents = _0_0; t6 = true; } else { contents = null; t6 = false; } if (t6) buffer.addInterpolation$1(contents); else { t1.expectChar$1(40); _this.whitespace$0(); argument = _this.interpolatedString$0(); t1.expectChar$1(41); t3._contents += identifier; t3._contents += A.Primitives_stringFromCharCode(40); buffer.addInterpolation$1(argument.asInterpolation$0()); t3._contents += A.Primitives_stringFromCharCode(41); } t6 = t3._contents; trailing = t6.charCodeAt(0) == 0 ? t6 : t6; 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("")')) _box_0.needsDeprecationWarning = true; break $label0$0; } if ("regexp" === identifier) { t3._contents += "regexp("; t1.expectChar$1(40); buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0()); t1.expectChar$1(41); t3._contents += A.Primitives_stringFromCharCode(41); _box_0.needsDeprecationWarning = true; break $label0$0; } endPosition = t1._string_scanner$_position; t7 = t1._sourceFile; t8 = new A._FileSpan(t7, t6, endPosition); t8._FileSpan$3(t7, t6, endPosition); _this.error$2(0, "Invalid function name.", t8); } } _this.whitespace$0(); if (!t1.scanChar$1(44)) break; t3._contents += A.Primitives_stringFromCharCode(44); start0 = t1._string_scanner$_position; t5.call$0(); end = t1._string_scanner$_position; t3._contents += B.JSString_methods.substring$2(t1.string, start0, end); } 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))))); }, supportsRule$1(start) { var _this = this, condition = _this._supportsCondition$0(); _this.whitespace$0(); return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser_supportsRule_closure(condition)); }, _useRule$1(start) { var namespace, configuration, span, t1, _this = this, _s9_ = "@use rule", url = _this._urlString$0(); _this.whitespace$0(); namespace = _this._useNamespace$2(url, start); _this.whitespace$0(); configuration = _this._stylesheet$_configuration$0(); _this.expectStatementSeparator$1(_s9_); span = _this.scanner.spanFrom$1(start); if (!_this._isUseAllowed) _this.error$2(0, string$.x40use_r, span); _this.expectStatementSeparator$1(_s9_); t1 = new A.UseRule(url, namespace, configuration == null ? B.List_empty10 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable), span); t1.UseRule$4$configuration(url, namespace, span, configuration); return t1; }, _useNamespace$2(url, start) { var namespace, basename, dot, t1, exception, _this = this; if (_this.scanIdentifier$1("as")) { _this.whitespace$0(); return _this.scanner.scanChar$1(42) ? null : _this.identifier$0(); } basename = url.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(url.get$pathSegments()); dot = B.JSString_methods.indexOf$1(basename, "."); t1 = B.JSString_methods.startsWith$1(basename, "_") ? 1 : 0; namespace = B.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot); try { t1 = A.SpanScanner$(namespace, null); t1 = new A.Parser(t1, _this.logger, null)._parseIdentifier$0(); return t1; } catch (exception) { if (type$.SassFormatException._is(A.unwrapException(exception))) _this.error$2(0, 'The default namespace "' + A.S(namespace) + string$.x22x20is_n, _this.scanner.spanFrom$1(start)); else throw exception; } }, _stylesheet$_configuration$1$allowGuarded(allowGuarded) { var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, t4, t5, span, _this = this; if (!_this.scanIdentifier$1("with")) return null; variableNames = A.LinkedHashSet_LinkedHashSet$_empty(type$.String); configuration = A._setArrayType([], type$.JSArray_ConfiguredVariable); _this.whitespace$0(); t1 = _this.scanner; t1.expectChar$1(40); for (; true;) { _this.whitespace$0(); t2 = t1._string_scanner$_position; t1.expectChar$1(36); $name = _this.identifier$1$normalize(true); _this.whitespace$0(); t1.expectChar$1(58); _this.whitespace$0(); expression = _this.expressionUntilComma$0(); t3 = t1._string_scanner$_position; if (allowGuarded && t1.scanChar$1(33)) if (_this.identifier$0() === "default") { _this.whitespace$0(); guarded = true; } else { endPosition = t1._string_scanner$_position; t4 = t1._sourceFile; t5 = new A._FileSpan(t4, t3, endPosition); t5._FileSpan$3(t4, t3, endPosition); _this.error$2(0, "Invalid flag name.", t5); guarded = false; } else guarded = false; endPosition = t1._string_scanner$_position; t3 = t1._sourceFile; span = new A._FileSpan(t3, t2, endPosition); span._FileSpan$3(t3, t2, endPosition); if (variableNames.contains$1(0, $name)) _this.error$2(0, string$.The_sa, span); variableNames.add$1(0, $name); configuration.push(new A.ConfiguredVariable($name, expression, guarded, span)); if (!t1.scanChar$1(44)) break; _this.whitespace$0(); if (!_this._lookingAtExpression$0()) break; } t1.expectChar$1(41); return configuration; }, _stylesheet$_configuration$0() { return this._stylesheet$_configuration$1$allowGuarded(false); }, _warnRule$1(start) { var value = this._expression$0(); this.expectStatementSeparator$1("@warn rule"); return new A.WarnRule(value, this.scanner.spanFrom$1(start)); }, _whileRule$2(start, child) { var _this = this, wasInControlDirective = _this._inControlDirective; _this._inControlDirective = true; return _this._withChildren$3(child, start, new A.StylesheetParser__whileRule_closure(_this, wasInControlDirective, _this._expression$0())); }, unknownAtRule$2(start, $name) { var t2, t3, rule, _this = this, t1 = {}, wasInUnknownAtRule = _this._stylesheet$_inUnknownAtRule; _this._stylesheet$_inUnknownAtRule = true; t1.value = null; t2 = _this.scanner; t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this.almostAnyValue$0() : null; if (_this.lookingAtChildren$0()) rule = _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser_unknownAtRule_closure(t1, $name)); else { _this.expectStatementSeparator$0(); rule = A.AtRule$($name, t2.spanFrom$1(start), null, t3); } _this._stylesheet$_inUnknownAtRule = wasInUnknownAtRule; return rule; }, _disallowedAtRule$1(start) { this.almostAnyValue$0(); this.error$2(0, "This at-rule is not allowed here.", this.scanner.spanFrom$1(start)); }, _argumentDeclaration$0() { var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, t4, t5, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; t1.expectChar$1(40); _this.whitespace$0(); $arguments = A._setArrayType([], type$.JSArray_Argument); named = A.LinkedHashSet_LinkedHashSet$_empty(type$.String); while (true) { if (!(t1.peekChar$0() === 36)) { restArgument = null; break; } t3 = t1._string_scanner$_position; t1.expectChar$1(36); $name = _this.identifier$1$normalize(true); _this.whitespace$0(); if (t1.scanChar$1(58)) { _this.whitespace$0(); defaultValue = _this.expressionUntilComma$0(); } else { if (t1.scanChar$1(46)) { t1.expectChar$1(46); t1.expectChar$1(46); _this.whitespace$0(); restArgument = $name; break; } defaultValue = null; } endPosition = t1._string_scanner$_position; t4 = t1._sourceFile; t5 = new A._FileSpan(t4, t3, endPosition); t5._FileSpan$3(t4, t3, endPosition); $arguments.push(new A.Argument($name, defaultValue, t5)); if (!named.add$1(0, $name)) _this.error$2(0, "Duplicate argument.", B.JSArray_methods.get$last($arguments).span); if (!t1.scanChar$1(44)) { restArgument = null; break; } _this.whitespace$0(); } t1.expectChar$1(41); t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2)); return new A.ArgumentDeclaration(A.List_List$unmodifiable($arguments, type$.Argument), restArgument, t1); }, _argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, mixin) { var positional, t3, t4, named, keywordRest, t5, rest, expression, t6, t7, result, _this = this, _null = null, t1 = _this.scanner, t2 = t1._string_scanner$_position; t1.expectChar$1(40); _this.whitespace$0(); positional = A._setArrayType([], type$.JSArray_Expression); t3 = type$.String; t4 = type$.Expression; named = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4); t5 = !mixin; rest = _null; while (true) { if (!_this._lookingAtExpression$0()) { keywordRest = _null; break; } expression = _this.expressionUntilComma$1$singleEquals(t5); _this.whitespace$0(); if (expression instanceof A.VariableExpression && t1.scanChar$1(58)) { _this.whitespace$0(); t6 = expression.name; if (named.containsKey$1(t6)) _this.error$2(0, "Duplicate argument.", expression.span); named.$indexSet(0, t6, _this.expressionUntilComma$1$singleEquals(t5)); } else if (t1.scanChar$1(46)) { t1.expectChar$1(46); t1.expectChar$1(46); if (rest != null) { _this.whitespace$0(); keywordRest = expression; break; } rest = expression; } else if (named.__js_helper$_length !== 0) _this.error$2(0, string$.Positi, expression.get$span(expression)); else positional.push(expression); _this.whitespace$0(); if (!t1.scanChar$1(44)) { keywordRest = _null; break; } _this.whitespace$0(); if (allowEmptySecondArg && positional.length === 1 && named.__js_helper$_length === 0 && rest == null && t1.peekChar$0() === 41) { t5 = t1._sourceFile; t6 = t1._string_scanner$_position; new A.FileLocation(t5, t6).FileLocation$_$2(t5, t6); t7 = new A._FileSpan(t5, t6, t6); t7._FileSpan$3(t5, t6, t6); t6 = A._setArrayType([""], type$.JSArray_Object); result = A.List_List$from(t6, false, type$.Object); result.fixed$length = Array; result.immutable$list = Array; t5 = new A.Interpolation(result, t7); t5.Interpolation$2(t6, t7); positional.push(new A.StringExpression(t5, false)); keywordRest = _null; break; } } t1.expectChar$1(41); t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2)); return new A.ArgumentInvocation(A.List_List$unmodifiable(positional, t4), A.ConstantMap_ConstantMap$from(named, t3, t4), rest, keywordRest, t1); }, _argumentInvocation$0() { return this._argumentInvocation$2$allowEmptySecondArg$mixin(false, false); }, _argumentInvocation$1$allowEmptySecondArg(allowEmptySecondArg) { return this._argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, false); }, _argumentInvocation$1$mixin(mixin) { return this._argumentInvocation$2$allowEmptySecondArg$mixin(false, mixin); }, _expression$3$bracketList$singleEquals$until(bracketList, singleEquals, until) { var t2, beforeBracket, start, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, t3, _3_0, _3_28, _3_32, _3_40, _1_0, t4, _2_0, commaExpressions, spaceExpressions, singleExpression, _this = this, _s20_ = "Expected expression.", _box_0 = {}, t1 = until != null; if (t1 && until.call$0()) _this.scanner.error$1(0, _s20_); if (bracketList) { t2 = _this.scanner; beforeBracket = new A._SpanScannerState(t2, t2._string_scanner$_position); t2.expectChar$1(91); _this.whitespace$0(); if (t2.scanChar$1(93)) { t1 = A._setArrayType([], type$.JSArray_Expression); t2 = t2.spanFrom$1(beforeBracket); return new A.ListExpression(A.List_List$unmodifiable(t1, type$.Expression), B.ListSeparator_undecided_null_undecided, true, t2); } } else beforeBracket = null; t2 = _this.scanner; start = new A._SpanScannerState(t2, t2._string_scanner$_position); wasInParentheses = _this._inParentheses; _box_0.operands_ = _box_0.operators_ = _box_0.spaceExpressions_ = _box_0.commaExpressions_ = null; _box_0.allowSlash = true; _box_0.singleExpression_ = _this._singleExpression$0(); resetState = new A.StylesheetParser__expression_resetState(_box_0, _this, start); resolveOneOperation = new A.StylesheetParser__expression_resolveOneOperation(_box_0, _this); resolveOperations = new A.StylesheetParser__expression_resolveOperations(_box_0, resolveOneOperation); addSingleExpression = new A.StylesheetParser__expression_addSingleExpression(_box_0, _this, resetState, resolveOperations); addOperator = new A.StylesheetParser__expression_addOperator(_box_0, _this, resolveOneOperation); resolveSpaceExpressions = new A.StylesheetParser__expression_resolveSpaceExpressions(_box_0, _this, resolveOperations); for (t3 = type$.JSArray_Expression; true;) { _this.whitespace$0(); if (t1 && until.call$0()) break; _3_0 = t2.peekChar$0(); _3_28 = A._InitializedCell$(new A.StylesheetParser__expression_closure(_3_0)); _3_32 = A._InitializedCell$(new A.StylesheetParser__expression_closure0(_3_0)); _3_40 = A._InitializedCell$(new A.StylesheetParser__expression_closure1(_3_0)); if (_3_0 == null) break; if (40 === _3_0) { addSingleExpression.call$1(_this.parentheses$0()); continue; } if (91 === _3_0) { addSingleExpression.call$1(_this._expression$1$bracketList(true)); continue; } if (36 === _3_0) { addSingleExpression.call$1(_this._variable$0()); continue; } if (38 === _3_0) { addSingleExpression.call$1(_this._selector$0()); continue; } if (39 === _3_0 || 34 === _3_0) { addSingleExpression.call$1(_this.interpolatedString$0()); continue; } if (35 === _3_0) { addSingleExpression.call$1(_this._hashExpression$0()); continue; } if (61 === _3_0) { t2.readChar$0(); if (singleEquals && t2.peekChar$0() !== 61) addOperator.call$1(B.BinaryOperator_2jN); else { t2.expectChar$1(61); addOperator.call$1(B.BinaryOperator_ql5); } continue; } if (33 === _3_0) { $label0$1: { _1_0 = t2.peekChar$1(1); if (61 === _1_0) { t2.readChar$0(); t2.readChar$0(); addOperator.call$1(B.BinaryOperator_ViB); break $label0$1; } if (_1_0 != null) if (105 !== _1_0) if (73 !== _1_0) t4 = _1_0 === 32 || _1_0 === 9 || _1_0 === 10 || _1_0 === 13 || _1_0 === 12; else t4 = true; else t4 = true; else t4 = true; if (t4) { addSingleExpression.call$1(_this._importantExpression$0()); break $label0$1; } break; } continue; } if (60 === _3_0) { t2.readChar$0(); addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_kpg : B.BinaryOperator_U8c); continue; } if (62 === _3_0) { t2.readChar$0(); addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_7Tg : B.BinaryOperator_cIH); continue; } if (42 === _3_0) { t2.readChar$0(); addOperator.call$1(B.BinaryOperator_qN2); continue; } if (_3_28._readFinal$0() && _box_0.singleExpression_ == null) { addSingleExpression.call$1(_this._unaryOperation$0()); continue; } if (_3_28._readFinal$0()) { t2.readChar$0(); addOperator.call$1(B.BinaryOperator_anB); continue; } if (45 === _3_0) { _2_0 = t2.peekChar$1(1); if (A._isInt(_2_0) && _2_0 >= 48 && _2_0 <= 57 || 46 === _2_0) if (_box_0.singleExpression_ != null) { t4 = t2.peekChar$1(-1); t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12; } else t4 = true; else t4 = false; if (t4) addSingleExpression.call$1(_this._number$0()); else if (_this._lookingAtInterpolatedIdentifier$0()) addSingleExpression.call$1(_this.identifierLike$0()); else if (_box_0.singleExpression_ == null) addSingleExpression.call$1(_this._unaryOperation$0()); else { t2.readChar$0(); addOperator.call$1(B.BinaryOperator_olz); } continue; } if (_3_32._readFinal$0() && _box_0.singleExpression_ == null) { addSingleExpression.call$1(_this._unaryOperation$0()); continue; } if (_3_32._readFinal$0()) { t2.readChar$0(); addOperator.call$1(B.BinaryOperator_t8B); continue; } if (37 === _3_0) { t2.readChar$0(); addOperator.call$1(B.BinaryOperator_OTG); continue; } if (_3_0 >= 48 && _3_0 <= 57) { addSingleExpression.call$1(_this._number$0()); continue; } if (_3_40._readFinal$0() && t2.peekChar$1(1) === 46) break; if (_3_40._readFinal$0()) { addSingleExpression.call$1(_this._number$0()); continue; } if (97 === _3_0 && !_this.get$plainCss() && _this.scanIdentifier$1("and")) { addOperator.call$1(B.BinaryOperator_SNp); continue; } if (111 === _3_0 && !_this.get$plainCss() && _this.scanIdentifier$1("or")) { addOperator.call$1(B.BinaryOperator_M6L); continue; } if ((117 === _3_0 || 85 === _3_0) && t2.peekChar$1(1) === 43) { addSingleExpression.call$1(_this._unicodeRange$0()); continue; } if (!(_3_0 >= 97 && _3_0 <= 122)) t4 = _3_0 >= 65 && _3_0 <= 90 || 95 === _3_0 || 92 === _3_0 || _3_0 >= 128; else t4 = true; if (t4) { addSingleExpression.call$1(_this.identifierLike$0()); continue; } if (44 === _3_0) { if (_this._inParentheses) { _this._inParentheses = false; if (_box_0.allowSlash) { resetState.call$0(); continue; } } commaExpressions = _box_0.commaExpressions_; if (commaExpressions == null) commaExpressions = _box_0.commaExpressions_ = A._setArrayType([], t3); if (_box_0.singleExpression_ == null) t2.error$1(0, _s20_); resolveSpaceExpressions.call$0(); t4 = _box_0.singleExpression_; t4.toString; commaExpressions.push(t4); t2.readChar$0(); _box_0.allowSlash = true; _box_0.singleExpression_ = null; continue; } break; } if (bracketList) t2.expectChar$1(93); commaExpressions = _box_0.commaExpressions_; spaceExpressions = _box_0.spaceExpressions_; if (commaExpressions != null) { resolveSpaceExpressions.call$0(); _this._inParentheses = wasInParentheses; singleExpression = _box_0.singleExpression_; if (singleExpression != null) commaExpressions.push(singleExpression); t1 = t2.spanFrom$1(beforeBracket == null ? start : beforeBracket); return new A.ListExpression(A.List_List$unmodifiable(commaExpressions, type$.Expression), B.ListSeparator_rXA, bracketList, t1); } else if (bracketList && spaceExpressions != null) { resolveOperations.call$0(); t1 = _box_0.singleExpression_; t1.toString; spaceExpressions.push(t1); beforeBracket.toString; t2 = t2.spanFrom$1(beforeBracket); return new A.ListExpression(A.List_List$unmodifiable(spaceExpressions, type$.Expression), B.ListSeparator_EVt, true, t2); } else { resolveSpaceExpressions.call$0(); if (bracketList) { t1 = _box_0.singleExpression_; t1.toString; t3 = A._setArrayType([t1], t3); beforeBracket.toString; t2 = t2.spanFrom$1(beforeBracket); _box_0.singleExpression_ = new A.ListExpression(A.List_List$unmodifiable(t3, type$.Expression), B.ListSeparator_undecided_null_undecided, true, t2); } t1 = _box_0.singleExpression_; t1.toString; return t1; } }, _expression$0() { return this._expression$3$bracketList$singleEquals$until(false, false, null); }, _expression$2$singleEquals$until(singleEquals, until) { return this._expression$3$bracketList$singleEquals$until(false, singleEquals, until); }, _expression$1$bracketList(bracketList) { return this._expression$3$bracketList$singleEquals$until(bracketList, false, null); }, _expression$1$until(until) { return this._expression$3$bracketList$singleEquals$until(false, false, until); }, expressionUntilComma$1$singleEquals(singleEquals) { return this._expression$2$singleEquals$until(singleEquals, new A.StylesheetParser_expressionUntilComma_closure(this)); }, expressionUntilComma$0() { return this.expressionUntilComma$1$singleEquals(false); }, _isSlashOperand$1(expression) { var t1; if (!(expression instanceof A.NumberExpression)) if (!(expression instanceof A.FunctionExpression)) t1 = expression instanceof A.BinaryOperationExpression && expression.allowsSlash; else t1 = true; else t1 = true; return t1; }, _singleExpression$0() { var next, t2, _this = this, _s20_ = "Expected expression.", t1 = _this.scanner, _0_0 = t1.peekChar$0(); $label0$0: { if (_0_0 == null) t1.error$1(0, _s20_); if (40 === _0_0) { t1 = _this.parentheses$0(); break $label0$0; } if (47 === _0_0) { t1 = _this._unaryOperation$0(); break $label0$0; } if (46 === _0_0) { t1 = _this._number$0(); break $label0$0; } if (91 === _0_0) { t1 = _this._expression$1$bracketList(true); break $label0$0; } if (36 === _0_0) { t1 = _this._variable$0(); break $label0$0; } if (38 === _0_0) { t1 = _this._selector$0(); break $label0$0; } if (39 === _0_0 || 34 === _0_0) { t1 = _this.interpolatedString$0(); break $label0$0; } if (35 === _0_0) { t1 = _this._hashExpression$0(); break $label0$0; } if (43 === _0_0) { next = t1.peekChar$1(1); t1 = next != null && next >= 48 && next <= 57 || next === 46 ? _this._number$0() : _this._unaryOperation$0(); break $label0$0; } if (45 === _0_0) { t1 = _this._minusExpression$0(); break $label0$0; } if (33 === _0_0) { t1 = _this._importantExpression$0(); break $label0$0; } if ((117 === _0_0 || 85 === _0_0) && t1.peekChar$1(1) === 43) { t1 = _this._unicodeRange$0(); break $label0$0; } if (_0_0 >= 48 && _0_0 <= 57) { t1 = _this._number$0(); break $label0$0; } if (!(_0_0 >= 97 && _0_0 <= 122)) t2 = _0_0 >= 65 && _0_0 <= 90 || 95 === _0_0 || 92 === _0_0 || _0_0 >= 128; else t2 = true; if (t2) { t1 = _this.identifierLike$0(); break $label0$0; } t1 = t1.error$1(0, _s20_); } return t1; }, parentheses$0() { var start, first, expressions, t1, t2, _this = this, wasInParentheses = _this._inParentheses; _this._inParentheses = true; try { t1 = _this.scanner; start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$1(40); _this.whitespace$0(); if (!_this._lookingAtExpression$0()) { t1.expectChar$1(41); t2 = A._setArrayType([], type$.JSArray_Expression); t1 = t1.spanFrom$1(start); t2 = A.List_List$unmodifiable(t2, type$.Expression); return new A.ListExpression(t2, B.ListSeparator_undecided_null_undecided, false, t1); } first = _this.expressionUntilComma$0(); if (t1.scanChar$1(58)) { _this.whitespace$0(); t1 = _this._stylesheet$_map$2(first, start); return t1; } if (!t1.scanChar$1(44)) { t1.expectChar$1(41); t1 = t1.spanFrom$1(start); return new A.ParenthesizedExpression(first, t1); } _this.whitespace$0(); expressions = A._setArrayType([first], type$.JSArray_Expression); for (; true;) { if (!_this._lookingAtExpression$0()) break; J.add$1$ax(expressions, _this.expressionUntilComma$0()); if (!t1.scanChar$1(44)) break; _this.whitespace$0(); } t1.expectChar$1(41); t1 = t1.spanFrom$1(start); t2 = A.List_List$unmodifiable(expressions, type$.Expression); return new A.ListExpression(t2, B.ListSeparator_rXA, false, t1); } finally { _this._inParentheses = wasInParentheses; } }, _stylesheet$_map$2(first, start) { var t1, key, _this = this, pairs = A._setArrayType([new A._Record_2(first, _this.expressionUntilComma$0())], type$.JSArray_Record_2_Expression_and_Expression); for (t1 = _this.scanner; t1.scanChar$1(44);) { _this.whitespace$0(); if (!_this._lookingAtExpression$0()) break; key = _this.expressionUntilComma$0(); t1.expectChar$1(58); _this.whitespace$0(); pairs.push(new A._Record_2(key, _this.expressionUntilComma$0())); } t1.expectChar$1(41); t1 = t1.spanFrom$1(start); return new A.MapExpression(A.List_List$unmodifiable(pairs, type$.Record_2_Expression_and_Expression), t1); }, _hashExpression$0() { var start, t2, identifier, buffer, _this = this, t1 = _this.scanner; if (t1.peekChar$1(1) === 123) return _this.identifierLike$0(); start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$1(35); t2 = t1.peekChar$0(); if (t2 == null) t2 = null; else t2 = t2 >= 48 && t2 <= 57; if (t2 === true) return new A.ColorExpression(_this._hexColorContents$1(start), t1.spanFrom$1(start)); t2 = t1._string_scanner$_position; identifier = _this.interpolatedIdentifier$0(); if (_this._isHexColor$1(identifier)) { t1.set$state(new A._SpanScannerState(t1, t2)); return new A.ColorExpression(_this._hexColorContents$1(start), t1.spanFrom$1(start)); } t2 = new A.StringBuffer(""); buffer = new A.InterpolationBuffer(t2, A._setArrayType([], type$.JSArray_Object)); t2._contents += A.Primitives_stringFromCharCode(35); buffer.addInterpolation$1(identifier); return new A.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false); }, _hexColorContents$1(start) { var red, green, blue, alpha, digit4, t2, t3, t4, _this = this, digit1 = _this._hexDigit$0(), digit2 = _this._hexDigit$0(), digit3 = _this._hexDigit$0(), t1 = _this.scanner, $self = t1.peekChar$0(); if (!($self != null && A.CharacterExtension_get_isHex($self))) { red = (digit1 << 4 >>> 0) + digit1; green = (digit2 << 4 >>> 0) + digit2; blue = (digit3 << 4 >>> 0) + digit3; alpha = null; } else { digit4 = _this._hexDigit$0(); $self = t1.peekChar$0(); t2 = $self != null && A.CharacterExtension_get_isHex($self); t3 = digit1 << 4 >>> 0; t4 = digit3 << 4 >>> 0; if (!t2) { red = t3 + digit1; green = (digit2 << 4 >>> 0) + digit2; blue = t4 + digit3; alpha = ((digit4 << 4 >>> 0) + digit4) / 255; } else { red = t3 + digit2; green = t4 + digit4; blue = (_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0(); $self = t1.peekChar$0(); alpha = $self != null && A.CharacterExtension_get_isHex($self) ? ((_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0()) / 255 : null; } } t2 = alpha == null; t3 = t2 ? 1 : alpha; return A.SassColor$rgbInternal(red, green, blue, t3, t2 ? new A.SpanColorFormat(t1.spanFrom$1(start)) : null); }, _isHexColor$1(interpolation) { var t1, plain = interpolation.get$asPlain(), _0_2 = A._InitializedCell$(new A.StylesheetParser__isHexColor_closure(plain)); if (typeof plain == "string") t1 = 3 === _0_2._readFinal$0() || 4 === _0_2._readFinal$0() || 6 === _0_2._readFinal$0() || 8 === _0_2._readFinal$0(); else t1 = false; if (t1) { t1 = new A.CodeUnits(plain); return t1.every$1(t1, new A.StylesheetParser__isHexColor_closure0()); } else return false; }, _hexDigit$0() { var t1 = this.scanner, t2 = t1.peekChar$0(); t2 = t2 == null ? null : A.CharacterExtension_get_isHex(t2); return t2 === true ? A.asHex(t1.readChar$0()) : t1.error$1(0, "Expected hex digit."); }, _minusExpression$0() { var _this = this, _0_0 = _this.scanner.peekChar$1(1); if (A._isInt(_0_0) && _0_0 >= 48 && _0_0 <= 57 || 46 === _0_0) return _this._number$0(); if (_this._lookingAtInterpolatedIdentifier$0()) return _this.identifierLike$0(); return _this._unaryOperation$0(); }, _importantExpression$0() { var t1 = this.scanner, t2 = t1._string_scanner$_position; t1.readChar$0(); this.whitespace$0(); this.expectIdentifier$1("important"); t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2)); return new A.StringExpression(A.Interpolation$(A._setArrayType(["!important"], type$.JSArray_Object), t2), false); }, _unaryOperation$0() { var _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, operator = _this._unaryOperatorFor$1(t1.readChar$0()); if (operator == null) t1.error$2$position(0, "Expected unary operator.", t1._string_scanner$_position - 1); else if (_this.get$plainCss() && operator !== B.UnaryOperator_Ix1) t1.error$3$length$position(0, "Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1); _this.whitespace$0(); return new A.UnaryOperationExpression(operator, _this._singleExpression$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _unaryOperatorFor$1(character) { var t1; $label0$0: { if (43 === character) { t1 = B.UnaryOperator_gg4; break $label0$0; } if (45 === character) { t1 = B.UnaryOperator_TLI; break $label0$0; } if (47 === character) { t1 = B.UnaryOperator_Ix1; break $label0$0; } t1 = null; break $label0$0; } return t1; }, _number$0() { var number, unit, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, first = t1.peekChar$0(), t3 = first !== 43; if (!t3 || first === 45) t1.readChar$0(); if (t1.peekChar$0() !== 46) _this._consumeNaturalNumber$0(); _this._tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2 && t3 && first !== 45); _this._tryExponent$0(); number = A.double_parse(t1.substring$1(0, t2)); if (t1.scanChar$1(37)) unit = "%"; else { if (_this.lookingAtIdentifier$0()) t3 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45; else t3 = false; unit = t3 ? _this.identifier$1$unit(true) : null; } return new A.NumberExpression(number, unit, t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _consumeNaturalNumber$0() { var $self, t1 = this.scanner, t2 = t1.readChar$0(); if (!(t2 >= 48 && t2 <= 57)) t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position - 1); while (true) { $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) break; t1.readChar$0(); } }, _tryDecimal$1$allowTrailingDot(allowTrailingDot) { var $self, t1 = this.scanner; if (t1.peekChar$0() !== 46) return; $self = t1.peekChar$1(1); if (!($self != null && $self >= 48 && $self <= 57)) { if (allowTrailingDot) return; t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position + 1); } t1.readChar$0(); while (true) { $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) break; t1.readChar$0(); } }, _tryExponent$0() { var next, $self, t1 = this.scanner, first = t1.peekChar$0(); if (first !== 101 && first !== 69) return; next = t1.peekChar$1(1); if (!(next != null && next >= 48 && next <= 57) && next !== 45 && next !== 43) return; t1.readChar$0(); if (43 === next || 45 === next) t1.readChar$0(); $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) t1.error$1(0, "Expected digit."); while (true) { $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) break; t1.readChar$0(); } }, _unicodeRange$0() { var firstRangeLength, hasQuestionMark, t2, secondRangeLength, _this = this, _s26_ = "Expected at most 6 digits.", t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); _this.expectIdentChar$1(117); t1.expectChar$1(43); for (firstRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure());) ++firstRangeLength; for (hasQuestionMark = false; t1.scanChar$1(63); hasQuestionMark = true) ++firstRangeLength; if (firstRangeLength === 0) t1.error$1(0, 'Expected hex digit or "?".'); else if (firstRangeLength > 6) _this.error$2(0, _s26_, t1.spanFrom$1(start)); else if (hasQuestionMark) { t2 = t1.substring$1(0, start.position); t1 = t1.spanFrom$1(start); return new A.StringExpression(A.Interpolation$(A._setArrayType([t2], type$.JSArray_Object), t1), false); } if (t1.scanChar$1(45)) { t2 = t1._string_scanner$_position; for (secondRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure0());) ++secondRangeLength; if (secondRangeLength === 0) t1.error$1(0, "Expected hex digit."); else if (secondRangeLength > 6) _this.error$2(0, _s26_, t1.spanFrom$1(new A._SpanScannerState(t1, t2))); } if (_this._lookingAtInterpolatedIdentifierBody$0()) t1.error$1(0, "Expected end of identifier."); t2 = t1.substring$1(0, start.position); t1 = t1.spanFrom$1(start); return new A.StringExpression(A.Interpolation$(A._setArrayType([t2], type$.JSArray_Object), t1), false); }, _variable$0() { var _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), $name = _this.variableName$0(); if (_this.get$plainCss()) _this.error$2(0, string$.Sass_v, t1.spanFrom$1(start)); return new A.VariableExpression(null, $name, t1.spanFrom$1(start)); }, _selector$0() { var t1, start, _this = this; if (_this.get$plainCss()) _this.scanner.error$2$length(0, string$.The_pa, 1); t1 = _this.scanner; start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$1(38); if (t1.scanChar$1(38)) { _this.logger.warn$2$span(0, string$.In_Sas, t1.spanFrom$1(start)); t1.set$position(t1._string_scanner$_position - 1); } return new A.SelectorExpression(t1.spanFrom$1(start)); }, interpolatedString$0() { var t3, t4, buffer, _0_0, second, t5, t1 = this.scanner, t2 = t1._string_scanner$_position, quote = t1.readChar$0(); if (quote !== 39 && quote !== 34) t1.error$2$position(0, "Expected string.", t2); t3 = new A.StringBuffer(""); t4 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer(t3, t4); for (; true;) { _0_0 = t1.peekChar$0(); if (_0_0 === quote) { t1.readChar$0(); break; } if (_0_0 == null || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + "."); if (92 === _0_0) { second = t1.peekChar$1(1); if (second === 10 || second === 13 || second === 12) { t1.readChar$0(); t1.readChar$0(); if (second === 13) t1.scanChar$1(10); } else t3._contents += A.Primitives_stringFromCharCode(A.consumeEscapedCharacter(t1)); continue; } if (35 === _0_0 && t1.peekChar$1(1) === 123) { t5 = this.singleInterpolation$0(); buffer._flushText$0(); t4.push(t5); continue; } t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } return new A.StringExpression(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))), true); }, identifierLike$0() { var invocation, expression, _0_0, color, t3, _1_0, specialFunction, _2_0, _2_2, _2_4, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), identifier = _this.interpolatedIdentifier$0(), plain = identifier.get$asPlain(), lower = A._Cell$(), t2 = plain != null; if (t2) { if (plain === "if" && t1.peekChar$0() === 40) { invocation = _this._argumentInvocation$0(); return new A.IfExpression(invocation, identifier.span.expand$1(0, invocation.span)); } else if (plain === "not") { _this.whitespace$0(); expression = _this._singleExpression$0(); return new A.UnaryOperationExpression(B.UnaryOperator_not_not_not, expression, identifier.span.expand$1(0, expression.get$span(expression))); } lower._value = plain.toLowerCase(); if (t1.peekChar$0() !== 40) { switch (plain) { case "false": return new A.BooleanExpression(false, identifier.span); case "null": return new A.NullExpression(identifier.span); case "true": return new A.BooleanExpression(true, identifier.span); } _0_0 = $.$get$colorsByName().$index(0, lower._readLocal$0()); if (_0_0 != null) { color = _0_0; t3 = true; } else { color = null; t3 = false; } if (t3) { t1 = identifier.span; return new A.ColorExpression(A.SassColor$rgbInternal(color.get$red(color), color.get$green(color), color.get$blue(color), color._alpha, new A.SpanColorFormat(t1)), t1); } } _1_0 = _this.trySpecialFunction$2(lower._readLocal$0(), start); if (_1_0 != null) { specialFunction = _1_0; t3 = true; } else { specialFunction = null; t3 = false; } if (t3) return specialFunction; } _2_0 = t1.peekChar$0(); _2_2 = A._InitializedCell$(new A.StylesheetParser_identifierLike_closure(_2_0)); _2_4 = A._InitializedCell$(new A.StylesheetParser_identifierLike_closure0(_2_0)); if (_2_2._readFinal$0() && t1.peekChar$1(1) === 46) return new A.StringExpression(identifier, false); if (_2_2._readFinal$0()) { t1.readChar$0(); if (t2) return _this.namespacedExpression$2(plain, start); _this.error$2(0, string$.Interpn, identifier.span); } if (_2_4._readFinal$0() && t2) return new A.FunctionExpression(null, plain, _this._argumentInvocation$1$allowEmptySecondArg(J.$eq$(lower._readLocal$0(), "var")), t1.spanFrom$1(start)); if (_2_4._readFinal$0()) return new A.InterpolatedFunctionExpression(identifier, _this._argumentInvocation$0(), t1.spanFrom$1(start)); return new A.StringExpression(identifier, false); }, namespacedExpression$2(namespace, start) { var $name, _this = this, t1 = _this.scanner; if (t1.peekChar$0() === 36) { $name = _this.variableName$0(); _this._assertPublic$2($name, new A.StylesheetParser_namespacedExpression_closure(_this, start)); return new A.VariableExpression(namespace, $name, t1.spanFrom$1(start)); } return new A.FunctionExpression(namespace, _this._publicIdentifier$0(), _this._argumentInvocation$0(), t1.spanFrom$1(start)); }, trySpecialFunction$2($name, start) { var t1, buffer, t2, next, t3, _this = this, normalized = A.unvendor($name); $label0$0: { if (!("calc" === normalized && normalized !== $name && _this.scanner.scanChar$1(40))) t1 = ("element" === normalized || "expression" === normalized) && _this.scanner.scanChar$1(40); else t1 = true; if (t1) { t1 = new A.StringBuffer(""); buffer = new A.InterpolationBuffer(t1, A._setArrayType([], type$.JSArray_Object)); t1._contents = "" + $name; t1._contents += A.Primitives_stringFromCharCode(40); break $label0$0; } if ("progid" === normalized && _this.scanner.scanChar$1(58)) { t1 = new A.StringBuffer(""); buffer = new A.InterpolationBuffer(t1, A._setArrayType([], type$.JSArray_Object)); t1._contents = "" + $name; t1._contents += A.Primitives_stringFromCharCode(58); t2 = _this.scanner; next = t2.peekChar$0(); while (true) { if (next != null) { if (!(next >= 97 && next <= 122)) t3 = next >= 65 && next <= 90; else t3 = true; t3 = t3 || next === 46; } else t3 = false; if (!t3) break; t1._contents += A.Primitives_stringFromCharCode(t2.readChar$0()); next = t2.peekChar$0(); } t2.expectChar$1(40); t1._contents += A.Primitives_stringFromCharCode(40); break $label0$0; } if ("url" === normalized) return A.NullableExtension_andThen(_this._tryUrlContents$1(start), new A.StylesheetParser_trySpecialFunction_closure()); return null; } buffer.addInterpolation$1(_this._interpolatedDeclarationValue$1$allowEmpty(true)); t1 = _this.scanner; t1.expectChar$1(41); buffer._interpolation_buffer$_text._contents += A.Primitives_stringFromCharCode(41); return new A.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false); }, _tryUrlContents$2$name(start, $name) { var t3, t4, buffer, _0_0, _0_6, t5, endPosition, result, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; if (!t1.scanChar$1(40)) return null; _this.whitespaceWithoutComments$0(); t3 = new A.StringBuffer(""); t4 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer(t3, t4); t3._contents = "" + ($name == null ? "url" : $name); t3._contents += A.Primitives_stringFromCharCode(40); for (; true;) { _0_0 = t1.peekChar$0(); _0_6 = A._InitializedCell$(new A.StylesheetParser__tryUrlContents_closure(_0_0)); if (_0_0 == null) break; if (92 === _0_0) { t3._contents += _this.escape$0(); continue; } if (_0_6._readFinal$0() && t1.peekChar$1(1) === 123) { t5 = _this.singleInterpolation$0(); buffer._flushText$0(); t4.push(t5); continue; } if (33 !== _0_0) if (37 !== _0_0) if (38 !== _0_0) if (!_0_6._readFinal$0()) t5 = _0_0 >= 42 && _0_0 <= 126 || _0_0 >= 128; else t5 = true; else t5 = true; else t5 = true; else t5 = true; if (t5) { t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } if (_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) { _this.whitespaceWithoutComments$0(); if (t1.peekChar$0() !== 41) break; continue; } if (41 === _0_0) { t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); endPosition = t1._string_scanner$_position; t2 = t1._sourceFile; t5 = start.position; t1 = new A._FileSpan(t2, t5, endPosition); t1._FileSpan$3(t2, t5, endPosition); t5 = type$.Object; t2 = A.List_List$of(t4, true, t5); t4 = t3._contents; if (t4.length !== 0) t2.push(t4.charCodeAt(0) == 0 ? t4 : t4); result = A.List_List$from(t2, false, t5); result.fixed$length = Array; result.immutable$list = Array; t3 = new A.Interpolation(result, t1); t3.Interpolation$2(t2, t1); return t3; } break; } t1.set$state(new A._SpanScannerState(t1, t2)); return null; }, _tryUrlContents$1(start) { return this._tryUrlContents$2$name(start, null); }, dynamicUrl$0() { var _0_0, contents, t2, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); _this.expectIdentifier$1("url"); _0_0 = _this._tryUrlContents$1(start); if (_0_0 != null) { contents = _0_0; t2 = true; } else { contents = null; t2 = false; } if (t2) return new A.StringExpression(contents, false); return new A.InterpolatedFunctionExpression(A.Interpolation$(A._setArrayType(["url"], type$.JSArray_Object), t1.spanFrom$1(start)), _this._argumentInvocation$0(), t1.spanFrom$1(start)); }, almostAnyValue$1$omitComments(omitComments) { var t4, t5, t6, _1_0, commentStart, end, t7, _0_0, contents, t8, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, t3 = new A.StringBuffer(""), buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object)); for (t4 = t1.string, t5 = t4.length, t6 = !omitComments; true;) $label0$0: { _1_0 = t1.peekChar$0(); if (92 === _1_0) { t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } if (34 === _1_0 || 39 === _1_0) { buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0()); break $label0$0; } if (47 === _1_0) { commentStart = t1._string_scanner$_position; if (_this.scanComment$0()) { if (t6) { end = t1._string_scanner$_position; t3._contents += B.JSString_methods.substring$2(t4, commentStart, end); } } else t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } if (35 === _1_0 && t1.peekChar$1(1) === 123) { buffer.addInterpolation$1(_this.interpolatedIdentifier$0()); break $label0$0; } if (13 === _1_0 || 10 === _1_0 || 12 === _1_0) { if (_this.get$indented()) break; t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } if (33 === _1_0 || 59 === _1_0 || 123 === _1_0 || 125 === _1_0) break; if (117 === _1_0 || 85 === _1_0) { t7 = t1._string_scanner$_position; if (!_this.scanIdentifier$1("url")) { t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } _0_0 = _this._tryUrlContents$1(new A._SpanScannerState(t1, t7)); if (_0_0 != null) { contents = _0_0; t8 = true; } else { contents = null; t8 = false; } if (t8) buffer.addInterpolation$1(contents); else { if ((t7 === 0 ? 1 / t7 < 0 : t7 < 0) || t7 > t5) A.throwExpression(A.ArgumentError$("Invalid position " + t7, null)); t1._string_scanner$_position = t7; t1._lastMatch = null; t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } break $label0$0; } if (_1_0 == null) break; t7 = _this.lookingAtIdentifier$0(); if (t7) { t3._contents += _this.identifier$0(); break $label0$0; } t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, almostAnyValue$0() { return this.almostAnyValue$1$omitComments(false); }, _interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(allowColon, allowEmpty, allowSemicolon) { var t4, t5, t6, t7, wroteNewline, _1_0, _1_12, _1_14, _1_16, _1_18, _1_20, t8, start, end, bracket, _0_0, contents, t9, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, t3 = new A.StringBuffer(""), buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object)), brackets = A._setArrayType([], type$.JSArray_int); for (t4 = t1.string, t5 = t4.length, t6 = !allowColon, t7 = !allowSemicolon, wroteNewline = false; true;) $label0$0: { _1_0 = t1.peekChar$0(); _1_12 = A._InitializedCell$(new A.StylesheetParser__interpolatedDeclarationValue_closure(_1_0)); _1_14 = A._InitializedCell$(new A.StylesheetParser__interpolatedDeclarationValue_closure0(_1_0)); _1_16 = A._InitializedCell$(new A.StylesheetParser__interpolatedDeclarationValue_closure1(_1_0)); _1_18 = A._InitializedCell$(new A.StylesheetParser__interpolatedDeclarationValue_closure2(_1_0)); _1_20 = A._InitializedCell$(new A.StylesheetParser__interpolatedDeclarationValue_closure3(_1_0)); if (92 === _1_0) { t3._contents += _this.escape$1$identifierStart(true); wroteNewline = false; break $label0$0; } if (34 === _1_0 || 39 === _1_0) { buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0()); wroteNewline = false; break $label0$0; } if (47 === _1_0 && t1.peekChar$1(1) === 42) { t8 = _this.get$loudComment(); start = t1._string_scanner$_position; t8.call$0(); end = t1._string_scanner$_position; t3._contents += B.JSString_methods.substring$2(t4, start, end); wroteNewline = false; break $label0$0; } if (35 === _1_0 && t1.peekChar$1(1) === 123) { buffer.addInterpolation$1(_this.interpolatedIdentifier$0()); wroteNewline = false; break $label0$0; } if (_1_12._readFinal$0() || _1_14._readFinal$0()) if (!wroteNewline) { t8 = t1.peekChar$1(1); t8 = t8 === 32 || t8 === 9 || t8 === 10 || t8 === 13 || t8 === 12; } else t8 = false; else t8 = false; if (t8) { t1.readChar$0(); break $label0$0; } if (_1_12._readFinal$0() || _1_14._readFinal$0()) { t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } if ((_1_16._readFinal$0() || _1_18._readFinal$0() || _1_20._readFinal$0()) && _this.get$indented()) break; if (_1_16._readFinal$0() || _1_18._readFinal$0() || _1_20._readFinal$0()) { t8 = t1.peekChar$1(-1); if (!(t8 === 10 || t8 === 13 || t8 === 12)) t3._contents += "\n"; t1.readChar$0(); wroteNewline = true; break $label0$0; } if (40 === _1_0 || 123 === _1_0 || 91 === _1_0) { bracket = t1.readChar$0(); t3._contents += A.Primitives_stringFromCharCode(bracket); brackets.push(A.opposite(bracket)); wroteNewline = false; break $label0$0; } if (41 === _1_0 || 125 === _1_0 || 93 === _1_0) { if (brackets.length === 0) break; bracket = brackets.pop(); t1.expectChar$1(bracket); t3._contents += A.Primitives_stringFromCharCode(bracket); wroteNewline = false; break $label0$0; } if (59 === _1_0) { if (t7 && brackets.length === 0) break; t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; break $label0$0; } if (58 === _1_0) { if (t6 && brackets.length === 0) break; t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; break $label0$0; } if (117 === _1_0 || 85 === _1_0) { t8 = t1._string_scanner$_position; if (!_this.scanIdentifier$1("url")) { t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; continue; } _0_0 = _this._tryUrlContents$1(new A._SpanScannerState(t1, t8)); if (_0_0 != null) { contents = _0_0; t9 = true; } else { contents = null; t9 = false; } if (t9) buffer.addInterpolation$1(contents); else { if ((t8 === 0 ? 1 / t8 < 0 : t8 < 0) || t8 > t5) A.throwExpression(A.ArgumentError$("Invalid position " + t8, null)); t1._string_scanner$_position = t8; t1._lastMatch = null; t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } wroteNewline = false; break $label0$0; } if (_1_0 == null) break; t8 = _this.lookingAtIdentifier$0(); if (t8) { t3._contents += _this.identifier$0(); wroteNewline = false; break $label0$0; } t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; } if (brackets.length !== 0) t1.expectChar$1(B.JSArray_methods.get$last(brackets)); if (!allowEmpty && buffer._interpolation_buffer$_contents.length === 0 && t3._contents.length === 0) t1.error$1(0, "Expected token."); return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _interpolatedDeclarationValue$1$allowEmpty(allowEmpty) { return this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, allowEmpty, false); }, _interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(allowEmpty, allowSemicolon) { return this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, allowEmpty, allowSemicolon); }, _interpolatedDeclarationValue$0() { return this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, false, false); }, interpolatedIdentifier$0() { var _0_0, _this = this, _s20_ = "Expected identifier.", t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), t2 = new A.StringBuffer(""), t3 = A._setArrayType([], type$.JSArray_Object), buffer = new A.InterpolationBuffer(t2, t3); if (t1.scanChar$1(45)) { t2._contents += A.Primitives_stringFromCharCode(45); if (t1.scanChar$1(45)) { t2._contents += A.Primitives_stringFromCharCode(45); _this._interpolatedIdentifierBody$1(buffer); return buffer.interpolation$1(t1.spanFrom$1(start)); } } $label0$0: { _0_0 = t1.peekChar$0(); if (_0_0 == null) t1.error$1(0, _s20_); if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128) { t2._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } if (92 === _0_0) { t2._contents += _this.escape$1$identifierStart(true); break $label0$0; } if (35 === _0_0 && t1.peekChar$1(1) === 123) { t2 = _this.singleInterpolation$0(); buffer._flushText$0(); t3.push(t2); break $label0$0; } t1.error$1(0, _s20_); } _this._interpolatedIdentifierBody$1(buffer); return buffer.interpolation$1(t1.spanFrom$1(start)); }, _interpolatedIdentifierBody$1(buffer) { var t1, t2, t3, _0_0, t4; for (t1 = buffer._interpolation_buffer$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer$_text; true;) { _0_0 = t2.peekChar$0(); if (_0_0 == null) break; if (95 !== _0_0) if (45 !== _0_0) { if (!(_0_0 >= 97 && _0_0 <= 122)) t4 = _0_0 >= 65 && _0_0 <= 90; else t4 = true; if (!t4) t4 = _0_0 >= 48 && _0_0 <= 57; else t4 = true; t4 = t4 || _0_0 >= 128; } else t4 = true; else t4 = true; if (t4) { t3._contents += A.Primitives_stringFromCharCode(t2.readChar$0()); continue; } if (92 === _0_0) { t3._contents += this.escape$0(); continue; } if (35 === _0_0 && t2.peekChar$1(1) === 123) { t4 = this.singleInterpolation$0(); buffer._flushText$0(); t1.push(t4); continue; } break; } }, singleInterpolation$0() { var contents, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; t1.expect$1("#{"); _this.whitespace$0(); contents = _this._expression$0(); t1.expectChar$1(125); if (_this.get$plainCss()) _this.error$2(0, string$.Interpp, t1.spanFrom$1(new A._SpanScannerState(t1, t2))); return contents; }, _mediaQueryList$0() { var _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, t3 = new A.StringBuffer(""), buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object)); for (; true;) { _this.whitespace$0(); _this._stylesheet$_mediaQuery$1(buffer); _this.whitespace$0(); if (!t1.scanChar$1(44)) break; t3._contents += A.Primitives_stringFromCharCode(44); t3._contents += A.Primitives_stringFromCharCode(32); } return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _stylesheet$_mediaQuery$1(buffer) { var identifier1, t1, identifier2, _this = this, _s3_ = "and"; if (_this.scanner.peekChar$0() === 40) { _this._stylesheet$_mediaInParens$1(buffer); _this.whitespace$0(); if (_this.scanIdentifier$1(_s3_)) { buffer._interpolation_buffer$_text._contents += " and "; _this.expectWhitespace$0(); _this._stylesheet$_mediaLogicSequence$2(buffer, _s3_); } else if (_this.scanIdentifier$1("or")) { buffer._interpolation_buffer$_text._contents += " or "; _this.expectWhitespace$0(); _this._stylesheet$_mediaLogicSequence$2(buffer, "or"); } return; } identifier1 = _this.interpolatedIdentifier$0(); if (A.equalsIgnoreCase(identifier1.get$asPlain(), "not")) { _this.expectWhitespace$0(); if (!_this._lookingAtInterpolatedIdentifier$0()) { buffer._interpolation_buffer$_text._contents += "not "; _this._mediaOrInterp$1(buffer); return; } } _this.whitespace$0(); buffer.addInterpolation$1(identifier1); if (!_this._lookingAtInterpolatedIdentifier$0()) return; t1 = buffer._interpolation_buffer$_text; t1._contents += A.Primitives_stringFromCharCode(32); identifier2 = _this.interpolatedIdentifier$0(); if (A.equalsIgnoreCase(identifier2.get$asPlain(), _s3_)) { _this.expectWhitespace$0(); t1._contents += " and "; } else { _this.whitespace$0(); buffer.addInterpolation$1(identifier2); if (_this.scanIdentifier$1(_s3_)) { _this.expectWhitespace$0(); t1._contents += " and "; } else return; } if (_this.scanIdentifier$1("not")) { _this.expectWhitespace$0(); t1._contents += "not "; _this._mediaOrInterp$1(buffer); return; } _this._stylesheet$_mediaLogicSequence$2(buffer, _s3_); return; }, _stylesheet$_mediaLogicSequence$2(buffer, operator) { var t1, t2, _this = this; for (t1 = buffer._interpolation_buffer$_text; true;) { _this._mediaOrInterp$1(buffer); _this.whitespace$0(); if (!_this.scanIdentifier$1(operator)) return; _this.expectWhitespace$0(); t2 = t1._contents += A.Primitives_stringFromCharCode(32); t1._contents = t2 + operator; t1._contents += A.Primitives_stringFromCharCode(32); } }, _mediaOrInterp$1(buffer) { var interpolation; if (this.scanner.peekChar$0() === 35) { interpolation = this.singleInterpolation$0(); buffer.addInterpolation$1(A.Interpolation$(A._setArrayType([interpolation], type$.JSArray_Object), interpolation.get$span(interpolation))); } else this._stylesheet$_mediaInParens$1(buffer); }, _stylesheet$_mediaInParens$1(buffer) { var t2, t3, t4, next, t5, _this = this, t1 = _this.scanner; t1.expectChar$2$name(40, "media condition in parentheses"); t2 = buffer._interpolation_buffer$_text; t2._contents += A.Primitives_stringFromCharCode(40); _this.whitespace$0(); if (t1.peekChar$0() === 40) { _this._stylesheet$_mediaInParens$1(buffer); _this.whitespace$0(); if (_this.scanIdentifier$1("and")) { t2._contents += " and "; _this.expectWhitespace$0(); _this._stylesheet$_mediaLogicSequence$2(buffer, "and"); } else if (_this.scanIdentifier$1("or")) { t2._contents += " or "; _this.expectWhitespace$0(); _this._stylesheet$_mediaLogicSequence$2(buffer, "or"); } } else if (_this.scanIdentifier$1("not")) { t2._contents += "not "; _this.expectWhitespace$0(); _this._mediaOrInterp$1(buffer); } else { t3 = _this._expressionUntilComparison$0(); buffer._flushText$0(); t4 = buffer._interpolation_buffer$_contents; t4.push(t3); if (t1.scanChar$1(58)) { _this.whitespace$0(); t2._contents += A.Primitives_stringFromCharCode(58); t2._contents += A.Primitives_stringFromCharCode(32); t3 = _this._expression$0(); buffer._flushText$0(); t4.push(t3); } else { next = t1.peekChar$0(); t3 = 60 !== next; if (!t3 || 62 === next || 61 === next) { t2._contents += A.Primitives_stringFromCharCode(32); t2._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); if ((!t3 || 62 === next) && t1.scanChar$1(61)) t2._contents += A.Primitives_stringFromCharCode(61); t2._contents += A.Primitives_stringFromCharCode(32); _this.whitespace$0(); t5 = _this._expressionUntilComparison$0(); buffer._flushText$0(); t4.push(t5); if (!t3 || 62 === next) { next.toString; t3 = t1.scanChar$1(next); } else t3 = false; if (t3) { t2._contents += A.Primitives_stringFromCharCode(32); t2._contents += A.Primitives_stringFromCharCode(next); if (t1.scanChar$1(61)) t2._contents += A.Primitives_stringFromCharCode(61); t2._contents += A.Primitives_stringFromCharCode(32); _this.whitespace$0(); t3 = _this._expressionUntilComparison$0(); buffer._flushText$0(); t4.push(t3); } } } } t1.expectChar$1(41); _this.whitespace$0(); t2._contents += A.Primitives_stringFromCharCode(41); }, _expressionUntilComparison$0() { return this._expression$1$until(new A.StylesheetParser__expressionUntilComparison_closure(this)); }, _supportsCondition$0() { var condition, operator, right, endPosition, t3, t4, lowerOperator, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; if (_this.scanIdentifier$1("not")) { _this.whitespace$0(); return new A.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2))); } condition = _this._supportsConditionInParens$0(); _this.whitespace$0(); for (operator = null; _this.lookingAtIdentifier$0();) { if (operator != null) _this.expectIdentifier$1(operator); else if (_this.scanIdentifier$1("or")) operator = "or"; else { _this.expectIdentifier$1("and"); operator = "and"; } _this.whitespace$0(); right = _this._supportsConditionInParens$0(); endPosition = t1._string_scanner$_position; t3 = t1._sourceFile; t4 = new A._FileSpan(t3, t2, endPosition); t4._FileSpan$3(t3, t2, endPosition); condition = new A.SupportsOperation(condition, right, operator, t4); lowerOperator = operator.toLowerCase(); if (lowerOperator !== "and" && lowerOperator !== "or") A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".')); _this.whitespace$0(); } return condition; }, _supportsConditionInParens$0() { var $name, nameStart, wasInParentheses, identifier, operation, _1_0, contents, identifier0, t2, $arguments, _0_0, _0_4, expression, condition, exception, declaration, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); if (_this._lookingAtInterpolatedIdentifier$0()) { identifier0 = _this.interpolatedIdentifier$0(); t2 = identifier0.get$asPlain(); if ((t2 == null ? null : t2.toLowerCase()) === "not") _this.error$2(0, '"not" is not a valid identifier here.', identifier0.span); if (t1.scanChar$1(40)) { $arguments = _this._interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true); t1.expectChar$1(41); return new A.SupportsFunction(identifier0, $arguments, t1.spanFrom$1(start)); } else { _0_0 = identifier0.contents; _0_4 = A._InitializedCell$(new A.StylesheetParser__supportsConditionInParens_closure(_0_0)); if (_0_0.length === 1) if (type$.Expression._is(_0_4._readFinal$0())) { expression = _0_4._readFinal$0(); t2 = true; } else { expression = null; t2 = false; } else { expression = null; t2 = false; } if (t2) return new A.SupportsInterpolation(expression, t1.spanFrom$1(start)); else _this.error$2(0, "Expected @supports condition.", identifier0.span); } } t1.expectChar$1(40); _this.whitespace$0(); if (_this.scanIdentifier$1("not")) { _this.whitespace$0(); condition = _this._supportsConditionInParens$0(); t1.expectChar$1(41); return new A.SupportsNegation(condition, t1.spanFrom$1(start)); } else if (t1.peekChar$0() === 40) { condition = _this._supportsCondition$0(); t1.expectChar$1(41); return condition; } $name = null; nameStart = new A._SpanScannerState(t1, t1._string_scanner$_position); wasInParentheses = _this._inParentheses; try { $name = _this._expression$0(); t1.expectChar$1(58); } catch (exception) { if (type$.FormatException._is(A.unwrapException(exception))) { t1.set$state(nameStart); _this._inParentheses = wasInParentheses; identifier = _this.interpolatedIdentifier$0(); operation = null; _1_0 = _this._trySupportsOperation$2(identifier, nameStart); if (_1_0 != null) { operation = _1_0; t2 = true; } else t2 = false; if (t2) { t1.expectChar$1(41); return operation; } t2 = new A.InterpolationBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object)); t2.addInterpolation$1(identifier); t2.addInterpolation$1(_this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(false, true, true)); contents = t2.interpolation$1(t1.spanFrom$1(nameStart)); if (t1.peekChar$0() === 58) throw exception; t1.expectChar$1(41); return new A.SupportsAnything(contents, t1.spanFrom$1(start)); } else throw exception; } declaration = _this._supportsDeclarationValue$2($name, start); t1.expectChar$1(41); return declaration; }, _supportsDeclarationValue$2($name, start) { var t1, value, _this = this; if ($name instanceof A.StringExpression) if (!$name.hasQuotes) t1 = B.JSString_methods.startsWith$1($name.text.get$initialPlain(), "--"); else t1 = false; else t1 = false; if (t1) value = new A.StringExpression(_this._interpolatedDeclarationValue$0(), false); else { _this.whitespace$0(); value = _this._expression$0(); } return new A.SupportsDeclaration($name, value, _this.scanner.spanFrom$1(start)); }, _trySupportsOperation$2(interpolation, start) { var expression, beforeWhitespace, t2, t3, operator, operation, right, t4, endPosition, t5, t6, lowerOperator, _this = this, _null = null, t1 = interpolation.contents; if (t1.length !== 1) return _null; expression = B.JSArray_methods.get$first(t1); if (!type$.Expression._is(expression)) return _null; t1 = _this.scanner; beforeWhitespace = new A._SpanScannerState(t1, t1._string_scanner$_position); _this.whitespace$0(); for (t2 = start.position, t3 = interpolation.span, operator = _null, operation = operator; _this.lookingAtIdentifier$0();) { if (operator != null) _this.expectIdentifier$1(operator); else if (_this.scanIdentifier$1("and")) operator = "and"; else { if (!_this.scanIdentifier$1("or")) { if (beforeWhitespace._scanner !== t1) A.throwExpression(A.ArgumentError$(string$.The_gi, _null)); t2 = beforeWhitespace.position; if ((t2 === 0 ? 1 / t2 < 0 : t2 < 0) || t2 > t1.string.length) A.throwExpression(A.ArgumentError$("Invalid position " + t2, _null)); t1._string_scanner$_position = t2; return t1._lastMatch = null; } operator = "or"; } _this.whitespace$0(); right = _this._supportsConditionInParens$0(); t4 = operation == null ? new A.SupportsInterpolation(expression, t3) : operation; endPosition = t1._string_scanner$_position; t5 = t1._sourceFile; t6 = new A._FileSpan(t5, t2, endPosition); t6._FileSpan$3(t5, t2, endPosition); operation = new A.SupportsOperation(t4, right, operator, t6); lowerOperator = operator.toLowerCase(); if (lowerOperator !== "and" && lowerOperator !== "or") A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".')); _this.whitespace$0(); } return operation; }, _lookingAtInterpolatedIdentifier$0() { var _0_0, t1 = this.scanner, _1_0 = t1.peekChar$0(); $label0$0: { if (_1_0 == null) { t1 = false; break $label0$0; } if (_1_0 === 95 || A.CharacterExtension_get_isAlphabetic(_1_0) || _1_0 >= 128 || 92 === _1_0) { t1 = true; break $label0$0; } if (35 === _1_0) { t1 = t1.peekChar$1(1) === 123; break $label0$0; } if (45 === _1_0) { _0_0 = t1.peekChar$1(1); $label1$1: { if (_0_0 == null) { t1 = false; break $label1$1; } if (35 === _0_0) { t1 = t1.peekChar$1(2) === 123; break $label1$1; } if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128 || 92 === _0_0 || 45 === _0_0) { t1 = true; break $label1$1; } t1 = false; break $label1$1; } break $label0$0; } t1 = false; break $label0$0; } return t1; }, _lookingAtPotentialPropertyHack$0() { var t1 = this.scanner, _0_0 = t1.peekChar$0(); $label0$0: { if (58 === _0_0 || 42 === _0_0 || 46 === _0_0) { t1 = true; break $label0$0; } if (35 === _0_0) { t1 = t1.peekChar$1(1) !== 123; break $label0$0; } t1 = false; break $label0$0; } return t1; }, _lookingAtInterpolatedIdentifierBody$0() { var t2, t1 = this.scanner, _0_0 = t1.peekChar$0(); $label0$0: { if (_0_0 == null) { t1 = false; break $label0$0; } if (!(_0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128)) t2 = _0_0 >= 48 && _0_0 <= 57 || _0_0 === 45; else t2 = true; if (t2 || 92 === _0_0) { t1 = true; break $label0$0; } if (35 === _0_0) { t1 = t1.peekChar$1(1) === 123; break $label0$0; } t1 = false; break $label0$0; } return t1; }, _lookingAtExpression$0() { var _0_0, t1 = this.scanner, _1_0 = t1.peekChar$0(); $label0$0: { if (_1_0 == null) { t1 = false; break $label0$0; } if (46 === _1_0) { t1 = t1.peekChar$1(1) !== 46; break $label0$0; } if (33 === _1_0) { _0_0 = t1.peekChar$1(1); $label1$1: { if (_0_0 != null) if (105 !== _0_0) if (73 !== _0_0) t1 = _0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12; else t1 = true; else t1 = true; else t1 = true; if (t1) { t1 = true; break $label1$1; } t1 = false; break $label1$1; } break $label0$0; } if (40 !== _1_0) if (47 !== _1_0) if (91 !== _1_0) if (39 !== _1_0) if (34 !== _1_0) if (35 !== _1_0) if (43 !== _1_0) if (45 !== _1_0) if (92 !== _1_0) if (36 !== _1_0) if (38 !== _1_0) if (!(_1_0 === 95 || A.CharacterExtension_get_isAlphabetic(_1_0) || _1_0 >= 128)) t1 = _1_0 >= 48 && _1_0 <= 57; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; if (t1) { t1 = true; break $label0$0; } t1 = false; break $label0$0; } return t1; }, _withChildren$1$3(child, start, create) { var result = create.call$2(this.children$1(0, child), this.scanner.spanFrom$1(start)); this.whitespaceWithoutComments$0(); return result; }, _withChildren$3(child, start, create) { return this._withChildren$1$3(child, start, create, type$.dynamic); }, _urlString$0() { var innerError, stackTrace, t2, exception, t1 = this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), url = this.string$0(); try { t2 = A.Uri_parse(url); return t2; } catch (exception) { t2 = A.unwrapException(exception); if (type$.FormatException._is(t2)) { innerError = t2; stackTrace = A.getTraceFromException(exception); this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), t1.spanFrom$1(start), stackTrace); } else throw exception; } }, _publicIdentifier$0() { var _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, result = _this.identifier$1$normalize(true); _this._assertPublic$2(result, new A.StylesheetParser__publicIdentifier_closure(_this, new A._SpanScannerState(t1, t2))); return result; }, _assertPublic$2(identifier, span) { var first = identifier.charCodeAt(0); if (!(first === 45 || first === 95)) return; this.error$2(0, string$.Privat, span.call$0()); }, get$plainCss() { return false; } }; A.StylesheetParser_parse_closure.prototype = { call$0() { var statements, t4, t1 = this.$this, t2 = t1.scanner, t3 = t2._string_scanner$_position; t2.scanChar$1(65279); statements = t1.statements$1(new A.StylesheetParser_parse__closure(t1)); t2.expectDone$0(); t4 = t1._globalVariables; t4 = t4.get$values(t4); B.JSArray_methods.addAll$1(statements, A.MappedIterable_MappedIterable(t4, new A.StylesheetParser_parse__closure0(), A._instanceType(t4)._eval$1("Iterable.E"), type$.Statement)); return A.Stylesheet$internal(statements, t2.spanFrom$1(new A._SpanScannerState(t2, t3)), t1.get$plainCss()); }, $signature: 360 }; A.StylesheetParser_parse__closure.prototype = { call$0() { var t1 = this.$this; if (t1.scanner.scan$1("@charset")) { t1.whitespace$0(); t1.string$0(); return null; } return t1._statement$1$root(true); }, $signature: 362 }; A.StylesheetParser_parse__closure0.prototype = { call$1(declaration) { var t1 = declaration.expression; return A.VariableDeclaration$(declaration.name, new A.NullExpression(t1.get$span(t1)), declaration.span, null, false, true, null); }, $signature: 363 }; A.StylesheetParser_parseArgumentDeclaration_closure.prototype = { call$0() { var $arguments, t1 = this.$this, t2 = t1.scanner; t2.expectChar$2$name(64, "@-rule"); t1.identifier$0(); t1.whitespace$0(); t1.identifier$0(); $arguments = t1._argumentDeclaration$0(); t1.whitespace$0(); t2.expectChar$1(123); return $arguments; }, $signature: 364 }; A.StylesheetParser_parseVariableDeclaration_closure.prototype = { call$0() { var t1 = this.$this; return t1.lookingAtIdentifier$0() ? t1._variableDeclarationWithNamespace$0() : t1.variableDeclarationWithoutNamespace$0(); }, $signature: 199 }; A.StylesheetParser_parseUseRule_closure.prototype = { call$0() { var t1 = this.$this, t2 = t1.scanner, t3 = t2._string_scanner$_position; t2.expectChar$2$name(64, "@-rule"); t1.expectIdentifier$1("use"); t1.whitespace$0(); return t1._useRule$1(new A._SpanScannerState(t2, t3)); }, $signature: 366 }; A.StylesheetParser__parseSingleProduction_closure.prototype = { call$0() { var result = this.production.call$0(); this.$this.scanner.expectDone$0(); return result; }, $signature() { return this.T._eval$1("0()"); } }; A.StylesheetParser__statement_closure.prototype = { call$0() { return this.$this._statement$0(); }, $signature: 142 }; A.StylesheetParser_variableDeclarationWithoutNamespace_closure.prototype = { call$0() { return this.$this.scanner.spanFrom$1(this.start); }, $signature: 33 }; A.StylesheetParser_variableDeclarationWithoutNamespace_closure0.prototype = { call$0() { return this.declaration; }, $signature: 199 }; A.StylesheetParser__declarationOrBuffer_closure.prototype = { call$2(children, span) { return A.Declaration$nested(this.name, children, span, null); }, $signature: 84 }; A.StylesheetParser__declarationOrBuffer_closure0.prototype = { call$2(children, span) { return A.Declaration$nested(this.name, children, span, this._box_0.value); }, $signature: 84 }; A.StylesheetParser__styleRule_closure.prototype = { call$2(children, span) { var _this = this, t1 = _this.$this; if (t1.get$indented() && children.length === 0) t1.logger.warn$2$span(0, string$.This_s, _this._box_0.interpolation.span); t1._inStyleRule = _this.wasInStyleRule; return A.StyleRule$(_this._box_0.interpolation, children, t1.scanner.spanFrom$1(_this.start)); }, $signature: 369 }; A.StylesheetParser__propertyOrVariableDeclaration_closure.prototype = { call$2(children, span) { return A.Declaration$nested(this._box_0.name, children, span, null); }, $signature: 84 }; A.StylesheetParser__propertyOrVariableDeclaration_closure0.prototype = { call$2(children, span) { return A.Declaration$nested(this._box_0.name, children, span, this.value); }, $signature: 84 }; A.StylesheetParser__atRootRule_closure.prototype = { call$2(children, span) { return A.AtRootRule$(children, span, this.query); }, $signature: 201 }; A.StylesheetParser__atRootRule_closure0.prototype = { call$2(children, span) { return A.AtRootRule$(children, span, null); }, $signature: 201 }; A.StylesheetParser__eachRule_closure.prototype = { call$2(children, span) { var _this = this; _this.$this._inControlDirective = _this.wasInControlDirective; return A.EachRule$(_this.variables, _this.list, children, span); }, $signature: 372 }; A.StylesheetParser__functionRule_closure.prototype = { call$2(children, span) { return A.FunctionRule$(this.name, this.$arguments, children, span, this.precedingComment); }, $signature: 373 }; A.StylesheetParser__forRule_closure.prototype = { call$0() { var t1 = this.$this; if (!t1.lookingAtIdentifier$0()) return false; if (t1.scanIdentifier$1("to")) return this._box_0.exclusive = true; else if (t1.scanIdentifier$1("through")) { this._box_0.exclusive = false; return true; } else return false; }, $signature: 1 }; A.StylesheetParser__forRule_closure0.prototype = { call$2(children, span) { var t1, _this = this; _this.$this._inControlDirective = _this.wasInControlDirective; t1 = _this._box_0.exclusive; t1.toString; return A.ForRule$(_this.variable, _this.from, _this.to, children, span, t1); }, $signature: 374 }; A.StylesheetParser__memberList_closure.prototype = { call$0() { var t1 = this.$this; if (t1.scanner.peekChar$0() === 36) this.variables.add$1(0, t1.variableName$0()); else this.identifiers.add$1(0, t1.identifier$1$normalize(true)); }, $signature: 2 }; A.StylesheetParser__includeRule_closure.prototype = { call$2(children, span) { return A.ContentBlock$(this.contentArguments_, children, span); }, $signature: 375 }; A.StylesheetParser_mediaRule_closure.prototype = { call$2(children, span) { return A.MediaRule$(this.query, children, span); }, $signature: 376 }; A.StylesheetParser__mixinRule_closure.prototype = { call$2(children, span) { var _this = this; _this.$this._stylesheet$_inMixin = false; return A.MixinRule$(_this.name, _this.$arguments, children, span, _this.precedingComment); }, $signature: 377 }; A.StylesheetParser_mozDocumentRule_closure.prototype = { call$2(children, span) { var _this = this; if (_this._box_0.needsDeprecationWarning) A.WarnForDeprecation_warnForDeprecation(_this.$this.logger, B.Deprecation_gJ9, string$.x40_moz_, span, null); return A.AtRule$(_this.name, span, children, _this.value); }, $signature: 202 }; A.StylesheetParser_supportsRule_closure.prototype = { call$2(children, span) { return A.SupportsRule$(this.condition, children, span); }, $signature: 383 }; A.StylesheetParser__whileRule_closure.prototype = { call$2(children, span) { this.$this._inControlDirective = this.wasInControlDirective; return A.WhileRule$(this.condition, children, span); }, $signature: 295 }; A.StylesheetParser_unknownAtRule_closure.prototype = { call$2(children, span) { return A.AtRule$(this.name, span, children, this._box_0.value); }, $signature: 202 }; A.StylesheetParser__expression_resetState.prototype = { call$0() { var t2, t1 = this._box_0; t1.operands_ = t1.operators_ = t1.spaceExpressions_ = t1.commaExpressions_ = null; t2 = this.$this; t2.scanner.set$state(this.start); t1.allowSlash = true; t1.singleExpression_ = t2._singleExpression$0(); }, $signature: 0 }; A.StylesheetParser__expression_resolveOneOperation.prototype = { call$0() { var t2, t3, t4, t5, t6, t7, _this = this, t1 = _this._box_0, operator = t1.operators_.pop(), left = t1.operands_.pop(), right = t1.singleExpression_; if (right == null) { t2 = _this.$this.scanner; t3 = operator.operator.length; t2.error$3$length$position(0, "Expected expression.", t3, t2._string_scanner$_position - t3); } if (t1.allowSlash) { t2 = _this.$this; t2 = !t2._inParentheses && operator === B.BinaryOperator_t8B && t2._isSlashOperand$1(left) && t2._isSlashOperand$1(right); } else t2 = false; if (t2) t1.singleExpression_ = new A.BinaryOperationExpression(B.BinaryOperator_t8B, left, right, true); else { t1.singleExpression_ = new A.BinaryOperationExpression(operator, left, right, false); t2 = t1.allowSlash = false; if (B.BinaryOperator_anB === operator || B.BinaryOperator_olz === operator) { t3 = _this.$this; t4 = t3.scanner.string; t5 = right.get$span(right); t5 = t5.get$start(t5); t6 = right.get$span(right); t7 = operator.operator; if (B.JSString_methods.substring$2(t4, t5.offset - 1, t6.get$start(t6).offset) === t7) { t2 = left.get$span(left); t2 = t4.charCodeAt(t2.get$end(t2).offset); t2 = t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12; } if (t2) { t2 = left.toString$0(0); t4 = right.toString$0(0); t5 = left.toString$0(0); t6 = right.toString$0(0); t1 = t1.singleExpression_; A.WarnForDeprecation_warnForDeprecation(t3.logger, B.Deprecation_sIK, "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), null); } } } }, $signature: 0 }; A.StylesheetParser__expression_resolveOperations.prototype = { call$0() { var t1, operators = this._box_0.operators_; if (operators == null) return; for (t1 = this.resolveOneOperation; operators.length !== 0;) t1.call$0(); }, $signature: 0 }; A.StylesheetParser__expression_addSingleExpression.prototype = { call$1(expression) { var t2, spaceExpressions, _this = this, t1 = _this._box_0; if (t1.singleExpression_ != null) { t2 = _this.$this; if (t2._inParentheses) { t2._inParentheses = false; if (t1.allowSlash) { _this.resetState.call$0(); return; } } spaceExpressions = t1.spaceExpressions_; if (spaceExpressions == null) spaceExpressions = t1.spaceExpressions_ = A._setArrayType([], type$.JSArray_Expression); _this.resolveOperations.call$0(); t2 = t1.singleExpression_; t2.toString; spaceExpressions.push(t2); t1.allowSlash = true; } t1.singleExpression_ = expression; }, $signature: 385 }; A.StylesheetParser__expression_addOperator.prototype = { call$1(operator) { var t2, t3, operators, operands, t4, singleExpression, t1 = this.$this; if (t1.get$plainCss() && operator !== B.BinaryOperator_2jN && operator !== B.BinaryOperator_anB && operator !== B.BinaryOperator_olz && operator !== B.BinaryOperator_qN2 && operator !== B.BinaryOperator_t8B) { t2 = t1.scanner; t3 = operator.operator.length; t2.error$3$length$position(0, "Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3); } t2 = this._box_0; t2.allowSlash = t2.allowSlash && operator === B.BinaryOperator_t8B; operators = t2.operators_; if (operators == null) operators = t2.operators_ = A._setArrayType([], type$.JSArray_BinaryOperator); operands = t2.operands_; if (operands == null) operands = t2.operands_ = A._setArrayType([], type$.JSArray_Expression); t3 = this.resolveOneOperation; t4 = operator.precedence; while (true) { if (!(operators.length !== 0 && B.JSArray_methods.get$last(operators).precedence >= t4)) break; t3.call$0(); } operators.push(operator); singleExpression = t2.singleExpression_; if (singleExpression == null) { t3 = t1.scanner; t4 = operator.operator.length; t3.error$3$length$position(0, "Expected expression.", t4, t3._string_scanner$_position - t4); } operands.push(singleExpression); t1.whitespace$0(); t2.singleExpression_ = t1._singleExpression$0(); }, $signature: 386 }; A.StylesheetParser__expression_resolveSpaceExpressions.prototype = { call$0() { var t1, spaceExpressions, singleExpression, t2; this.resolveOperations.call$0(); t1 = this._box_0; spaceExpressions = t1.spaceExpressions_; if (spaceExpressions == null) return; singleExpression = t1.singleExpression_; if (singleExpression == null) this.$this.scanner.error$1(0, "Expected expression."); spaceExpressions.push(singleExpression); t2 = B.JSArray_methods.get$first(spaceExpressions); t2 = t2.get$span(t2).expand$1(0, singleExpression.get$span(singleExpression)); t1.singleExpression_ = new A.ListExpression(A.List_List$unmodifiable(spaceExpressions, type$.Expression), B.ListSeparator_EVt, false, t2); t1.spaceExpressions_ = null; }, $signature: 0 }; A.StylesheetParser__expression_closure.prototype = { call$0() { return 43 === this._3_0; }, $signature: 1 }; A.StylesheetParser__expression_closure0.prototype = { call$0() { return 47 === this._3_0; }, $signature: 1 }; A.StylesheetParser__expression_closure1.prototype = { call$0() { return 46 === this._3_0; }, $signature: 1 }; A.StylesheetParser_expressionUntilComma_closure.prototype = { call$0() { return this.$this.scanner.peekChar$0() === 44; }, $signature: 1 }; A.StylesheetParser__isHexColor_closure.prototype = { call$0() { var t1 = this._0_0; return (t1 == null ? A._asString(t1) : t1).length; }, $signature: 3 }; A.StylesheetParser__isHexColor_closure0.prototype = { call$1(char) { return A.CharacterExtension_get_isHex(char); }, $signature: 47 }; A.StylesheetParser__unicodeRange_closure.prototype = { call$1(char) { return char != null && A.CharacterExtension_get_isHex(char); }, $signature: 34 }; A.StylesheetParser__unicodeRange_closure0.prototype = { call$1(char) { return char != null && A.CharacterExtension_get_isHex(char); }, $signature: 34 }; A.StylesheetParser_identifierLike_closure.prototype = { call$0() { return 46 === this._2_0; }, $signature: 1 }; A.StylesheetParser_identifierLike_closure0.prototype = { call$0() { return 40 === this._2_0; }, $signature: 1 }; A.StylesheetParser_namespacedExpression_closure.prototype = { call$0() { return this.$this.scanner.spanFrom$1(this.start); }, $signature: 33 }; A.StylesheetParser_trySpecialFunction_closure.prototype = { call$1(contents) { return new A.StringExpression(contents, false); }, $signature: 395 }; A.StylesheetParser__tryUrlContents_closure.prototype = { call$0() { return 35 === this._0_0; }, $signature: 1 }; A.StylesheetParser__interpolatedDeclarationValue_closure.prototype = { call$0() { return 32 === this._1_0; }, $signature: 1 }; A.StylesheetParser__interpolatedDeclarationValue_closure0.prototype = { call$0() { return 9 === this._1_0; }, $signature: 1 }; A.StylesheetParser__interpolatedDeclarationValue_closure1.prototype = { call$0() { return 10 === this._1_0; }, $signature: 1 }; A.StylesheetParser__interpolatedDeclarationValue_closure2.prototype = { call$0() { return 13 === this._1_0; }, $signature: 1 }; A.StylesheetParser__interpolatedDeclarationValue_closure3.prototype = { call$0() { return 12 === this._1_0; }, $signature: 1 }; A.StylesheetParser__expressionUntilComparison_closure.prototype = { call$0() { var t1 = this.$this.scanner, _0_0 = t1.peekChar$0(); $label0$0: { if (61 === _0_0) { t1 = t1.peekChar$1(1) !== 61; break $label0$0; } if (60 === _0_0 || 62 === _0_0) { t1 = true; break $label0$0; } t1 = false; break $label0$0; } return t1; }, $signature: 1 }; A.StylesheetParser__supportsConditionInParens_closure.prototype = { call$0() { return this._0_0[0]; }, $signature: 14 }; A.StylesheetParser__publicIdentifier_closure.prototype = { call$0() { return this.$this.scanner.spanFrom$1(this.start); }, $signature: 33 }; A.StylesheetGraph.prototype = { modifiedSince$3(url, since, baseImporter) { var node = this._stylesheet_graph$_add$3(url, baseImporter, null); if (node == null) return true; return new A.StylesheetGraph_modifiedSince_transitiveModificationTime(this).call$1(node)._core$_value > since._core$_value; }, _stylesheet_graph$_add$3(url, baseImporter, baseUrl) { var importer, canonicalUrl, originalUrl, t1, _this = this, _null = null, result = _this._ignoreErrors$1(new A.StylesheetGraph__add_closure(_this, url, baseImporter, baseUrl)); if (type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(result)) { importer = result._0; canonicalUrl = result._1; originalUrl = result._2; t1 = true; } else { originalUrl = _null; canonicalUrl = originalUrl; importer = canonicalUrl; t1 = false; } if (t1) { _this.addCanonical$3(importer, canonicalUrl, originalUrl); return _this._nodes.$index(0, canonicalUrl); } else return _null; }, addCanonical$4$recanonicalize(importer, canonicalUrl, originalUrl, recanonicalize) { var stylesheet, _this = this, t1 = _this._nodes; if (t1.$index(0, canonicalUrl) != null) return B.Set_empty3; stylesheet = _this._ignoreErrors$1(new A.StylesheetGraph_addCanonical_closure(_this, importer, canonicalUrl, originalUrl)); if (stylesheet == null) return B.Set_empty3; t1.$indexSet(0, canonicalUrl, A.StylesheetNode$_(stylesheet, importer, canonicalUrl, _this._upstreamNodes$3(stylesheet, importer, canonicalUrl))); return recanonicalize ? _this._recanonicalizeImports$2(importer, canonicalUrl) : B.Set_empty3; }, addCanonical$3(importer, canonicalUrl, originalUrl) { return this.addCanonical$4$recanonicalize(importer, canonicalUrl, originalUrl, true); }, _upstreamNodes$3(stylesheet, baseImporter, baseUrl) { var t6, t7, t8, t9, t10, t1 = type$.Uri, active = A.LinkedHashSet_LinkedHashSet$_literal([baseUrl], t1), t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1), t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1), t4 = A.LinkedHashSet_LinkedHashSet$_empty(t1), t5 = A.LinkedHashSet_LinkedHashSet$_empty(t1); new A._FindDependenciesVisitor(t2, t3, t4, t5, A.LinkedHashSet_LinkedHashSet$_empty(type$.nullable_String)).visitChildren$1(stylesheet.children); t6 = type$.UnmodifiableSetView_Uri; t2 = new A.UnmodifiableSetView0(t2, t6); t3 = new A.UnmodifiableSetView0(t3, t6); t4 = new A.UnmodifiableSetView0(t4, t6); t7 = type$.nullable_StylesheetNode; t8 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t7); 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();) { t10 = t9.get$current(t9); t8.$indexSet(0, t10, this._nodeFor$4(t10, baseImporter, baseUrl, active)); } t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t7); for (t2 = new A.DependencyReport(t2, t3, t4, new A.UnmodifiableSetView0(t5, t6)).imports._base, t2 = t2.get$iterator(t2); t2.moveNext$0();) { t3 = t2.get$current(t2); t1.$indexSet(0, t3, this._nodeFor$5$forImport(t3, baseImporter, baseUrl, active, true)); } return new A._Record_2_imports_modules(t1, t8); }, reload$1(canonicalUrl) { var stylesheet, upstream, _this = this, node = _this._nodes.$index(0, canonicalUrl); if (node == null) throw A.wrapException(A.StateError$(canonicalUrl.toString$0(0) + " is not in the dependency graph.")); _this._transitiveModificationTimes.clear$0(0); _this.importCache.clearImport$1(canonicalUrl); stylesheet = _this._ignoreErrors$1(new A.StylesheetGraph_reload_closure(_this, node, canonicalUrl)); if (stylesheet == null) return false; node._stylesheet = stylesheet; upstream = _this._upstreamNodes$3(stylesheet, node.importer, canonicalUrl); node._replaceUpstream$2(upstream._1, upstream._0); return true; }, _recanonicalizeImports$2(importer, canonicalUrl) { var t1, t2, t3, t4, t5, newUpstream, newUpstreamImports, _this = this, changed = A.LinkedHashSet_LinkedHashSet$_empty(type$.StylesheetNode); for (t1 = _this._nodes, t1 = t1.get$values(t1), t1 = t1.get$iterator(t1), t2 = type$.UnmodifiableMapView_of_Uri_and_nullable_StylesheetNode, t3 = type$.Uri, t4 = type$.nullable_StylesheetNode; t1.moveNext$0();) { t5 = t1.get$current(t1); newUpstream = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, false); newUpstreamImports = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, true); if (newUpstream.__js_helper$_length !== 0 || newUpstreamImports.__js_helper$_length !== 0) { changed.add$1(0, t5); 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)); } } if (changed._collection$_length !== 0) _this._transitiveModificationTimes.clear$0(0); return changed; }, _recanonicalizeImportsForNode$4$forImport(node, importer, canonicalUrl, forImport) { var url, result, t2, newMap, t3, t4, t5, t6, upstream, exception, newCanonicalUrl, t1 = type$.UnmodifiableMapView_of_Uri_and_nullable_StylesheetNode, map = forImport ? new A.UnmodifiableMapView(node._upstreamImports, t1) : new A.UnmodifiableMapView(node._upstream, t1); t1 = type$.Uri; t2 = type$.nullable_StylesheetNode; newMap = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); 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();) { t6 = t1.get$current(t1); url = null; url = t6._0; upstream = t6._1; if (!importer.couldCanonicalize$2(url, canonicalUrl)) continue; t3.clearCanonicalize$1(url); result = null; try { result = t3.canonicalize$4$baseImporter$baseUrl$forImport(0, url, t4, t5, forImport); } catch (exception) { } t6 = result; newCanonicalUrl = t6 == null ? null : t6._1; if (J.$eq$(newCanonicalUrl, upstream == null ? null : upstream.canonicalUrl)) continue; t6 = url; newMap.$indexSet(0, t6, result == null ? null : t2.$index(0, newCanonicalUrl)); } return newMap; }, _nodeFor$5$forImport(url, baseImporter, baseUrl, active, forImport) { var t2, t3, _1_0, node, t4, stylesheet, _this = this, _null = null, t1 = {}, result = _this._ignoreErrors$1(new A.StylesheetGraph__nodeFor_closure(_this, url, baseImporter, baseUrl, forImport)); if (result == null) return _null; t1.originalUrl = t1.canonicalUrl = t1.importer = null; t1.importer = result._0; t2 = t1.canonicalUrl = result._1; t1.originalUrl = result._2; t3 = _this._nodes; _1_0 = t3.$index(0, t2); if (_1_0 != null) { node = _1_0; t4 = true; } else { node = _null; t4 = false; } if (t4) return node; if (active.contains$1(0, t2)) return _null; stylesheet = _this._ignoreErrors$1(new A.StylesheetGraph__nodeFor_closure0(t1, _this)); if (stylesheet == null) return _null; active.add$1(0, t1.canonicalUrl); t2 = t1.importer; t4 = t1.canonicalUrl; node = A.StylesheetNode$_(stylesheet, t2, t4, _this._upstreamNodes$3(stylesheet, t2, t4)); active.remove$1(0, t1.canonicalUrl); t3.$indexSet(0, t1.canonicalUrl, node); return node; }, _nodeFor$4(url, baseImporter, baseUrl, active) { return this._nodeFor$5$forImport(url, baseImporter, baseUrl, active, false); }, _ignoreErrors$1$1(callback) { var t1, exception; try { t1 = callback.call$0(); return t1; } catch (exception) { return null; } }, _ignoreErrors$1(callback) { return this._ignoreErrors$1$1(callback, type$.dynamic); } }; A.StylesheetGraph_modifiedSince_transitiveModificationTime.prototype = { call$1(node) { return this.$this._transitiveModificationTimes.putIfAbsent$2(node.canonicalUrl, new A.StylesheetGraph_modifiedSince_transitiveModificationTime_closure(node, this)); }, $signature: 400 }; A.StylesheetGraph_modifiedSince_transitiveModificationTime_closure.prototype = { call$0() { var t2, t3, upstreamTime, t1 = this.node, latest = t1.importer.modificationTime$1(t1.canonicalUrl); for (t2 = t1._upstream, t2 = t2.get$values(t2), t1 = t1._upstreamImports, t1 = t2.followedBy$1(0, t1.get$values(t1)), t1 = new A.FollowedByIterator(J.get$iterator$ax(t1.__internal$_first), t1._second), t2 = this.transitiveModificationTime; t1.moveNext$0();) { t3 = t1._currentIterator; t3 = t3.get$current(t3); upstreamTime = t3 == null ? new A.DateTime(Date.now(), false) : t2.call$1(t3); if (upstreamTime._core$_value > latest._core$_value) latest = upstreamTime; } return latest; }, $signature: 180 }; A.StylesheetGraph__add_closure.prototype = { call$0() { var _this = this; return _this.$this.importCache.canonicalize$3$baseImporter$baseUrl(0, _this.url, _this.baseImporter, _this.baseUrl); }, $signature: 100 }; A.StylesheetGraph_addCanonical_closure.prototype = { call$0() { var _this = this; return _this.$this.importCache.importCanonical$3$originalUrl(_this.importer, _this.canonicalUrl, _this.originalUrl); }, $signature: 112 }; A.StylesheetGraph_reload_closure.prototype = { call$0() { return this.$this.importCache.importCanonical$2(this.node.importer, this.canonicalUrl); }, $signature: 112 }; A.StylesheetGraph__nodeFor_closure.prototype = { call$0() { var _this = this; return _this.$this.importCache.canonicalize$4$baseImporter$baseUrl$forImport(0, _this.url, _this.baseImporter, _this.baseUrl, _this.forImport); }, $signature: 100 }; A.StylesheetGraph__nodeFor_closure0.prototype = { call$0() { var t1 = this._box_0; return this.$this.importCache.importCanonical$3$originalUrl(t1.importer, t1.canonicalUrl, t1.originalUrl); }, $signature: 112 }; A.StylesheetNode.prototype = { StylesheetNode$_$4(_stylesheet, importer, canonicalUrl, allUpstream) { var t1, t2; for (t1 = this._upstream, t1 = t1.get$values(t1), t2 = this._upstreamImports, t2 = t1.followedBy$1(0, t2.get$values(t2)), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) { t1 = t2._currentIterator; t1 = t1.get$current(t1); if (t1 != null) t1._downstream.add$1(0, this); } }, _replaceUpstream$2(newUpstream, newUpstreamImports) { var t3, oldUpstream, newUpstreamSet, _this = this, t1 = _this._upstream, t2 = type$.nullable_StylesheetNode; t1 = A.LinkedHashSet_LinkedHashSet$of(t1.get$values(t1), t2); t3 = _this._upstreamImports; t1.addAll$1(0, t3.get$values(t3)); t3 = type$.StylesheetNode; oldUpstream = A.SetExtension_removeNull(t1, t3); t2 = A.LinkedHashSet_LinkedHashSet$of(newUpstream.get$values(newUpstream), t2); t2.addAll$1(0, newUpstreamImports.get$values(newUpstreamImports)); newUpstreamSet = A.SetExtension_removeNull(t2, t3); for (t1 = oldUpstream.difference$1(newUpstreamSet), t1 = t1.get$iterator(t1); t1.moveNext$0();) t1.get$current(t1)._downstream.remove$1(0, _this); for (t1 = newUpstreamSet.difference$1(oldUpstream), t1 = t1.get$iterator(t1); t1.moveNext$0();) t1.get$current(t1)._downstream.add$1(0, _this); _this._upstream = newUpstream; _this._upstreamImports = newUpstreamImports; }, _stylesheet_graph$_remove$0() { var t1, t2, t3, t4, _i, url, _this = this; for (t1 = _this._upstream, t1 = A.LinkedHashSet_LinkedHashSet$of(t1.get$values(t1), type$.nullable_StylesheetNode), t2 = _this._upstreamImports, t1.addAll$1(0, t2.get$values(t2)), t1 = A._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1._collection$_current; if (t3 == null) t3 = t2._as(t3); if (t3 == null) continue; t3._downstream.remove$1(0, _this); } for (t1 = _this._downstream, t1 = t1.get$iterator(t1); t1.moveNext$0();) { t2 = t1.get$current(t1); 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) { url = t4[_i]; if (J.$eq$(t2._upstream.$index(0, url), _this)) { t2._upstream.$indexSet(0, url, null); break; } } 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) { url = t4[_i]; if (J.$eq$(t2._upstreamImports.$index(0, url), _this)) { t2._upstreamImports.$indexSet(0, url, null); break; } } } }, toString$0(_) { var t1 = this._stylesheet.span; t1 = A.NullableExtension_andThen(t1.get$sourceUrl(t1), A.path__prettyUri$closure()); return t1 == null ? "" : t1; } }; A.Syntax.prototype = { _enumToString$0() { return "Syntax." + this._name; }, toString$0(_) { return this._syntax$_name; } }; A.Box.prototype = { $eq(_, other) { if (other == null) return false; return this.$ti._is(other) && other._box$_inner === this._box$_inner; }, get$hashCode(_) { return A.Primitives_objectHashCode(this._box$_inner); } }; A.ModifiableBox.prototype = {}; A.LazyFileSpan.prototype = { get$span(_) { var t1 = this._lazy_file_span$_span; return t1 == null ? this._lazy_file_span$_span = this._builder.call$0() : t1; }, compareTo$1(_, other) { return this.get$span(this).compareTo$1(0, other); }, get$context(_) { var t1 = this.get$span(this); return t1.get$context(t1); }, get$end(_) { var t1 = this.get$span(this); return t1.get$end(t1); }, expand$1(_, other) { return this.get$span(this).expand$1(0, other); }, get$file(_) { var t1 = this.get$span(this); return t1.get$file(t1); }, highlight$1$color(color) { return this.get$span(this).highlight$1$color(color); }, get$length(_) { var t1 = this.get$span(this); return t1.get$length(t1); }, message$2$color(_, message, color) { return this.get$span(this).message$2$color(0, message, color); }, message$1($receiver, message) { return this.message$2$color($receiver, message, null); }, get$sourceUrl(_) { var t1 = this.get$span(this); return t1.get$sourceUrl(t1); }, get$start(_) { var t1 = this.get$span(this); return t1.get$start(t1); }, get$text() { return this.get$span(this).get$text(); }, $isComparable: 1, $isFileSpan: 1, $isSourceSpan: 1, $isSourceSpanWithContext: 1 }; A.LimitedMapView.prototype = { get$keys(_) { return this._limited_map_view$_keys; }, get$length(_) { return this._limited_map_view$_keys._collection$_length; }, get$isEmpty(_) { return this._limited_map_view$_keys._collection$_length === 0; }, get$isNotEmpty(_) { return this._limited_map_view$_keys._collection$_length !== 0; }, $index(_, key) { return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.$index(0, key) : null; }, containsKey$1(key) { return this._limited_map_view$_keys.contains$1(0, key); }, remove$1(_, key) { return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.remove$1(0, key) : null; } }; A.MapExtensions_get_pairs_closure.prototype = { call$1(e) { return new A._Record_2(e.key, e.value); }, $signature() { return this.K._eval$1("@<0>")._bind$1(this.V)._eval$1("+(1,2)(MapEntry<1,2>)"); } }; A.MergedMapView.prototype = { get$keys(_) { var t1 = this._mapsByKey; return new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")); }, get$length(_) { return this._mapsByKey.__js_helper$_length; }, get$isEmpty(_) { return this._mapsByKey.__js_helper$_length === 0; }, get$isNotEmpty(_) { return this._mapsByKey.__js_helper$_length !== 0; }, MergedMapView$1(maps, $K, $V) { var t1, t2, t3, _i, map, t4, t5, t6; 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) { map = maps[_i]; if (t3._is(map)) for (t4 = map._mapsByKey, t4 = t4.get$values(t4), t4 = new A.MappedIterator(J.get$iterator$ax(t4.__internal$_iterable), t4._f), t5 = A._instanceType(t4)._rest[1]; t4.moveNext$0();) { t6 = t4.__internal$_current; if (t6 == null) t6 = t5._as(t6); A.setAll(t2, t6.get$keys(t6), t6); } else A.setAll(t2, map.get$keys(map), map); } }, $index(_, key) { var t1 = this._mapsByKey.$index(0, this.$ti._precomputed1._as(key)); return t1 == null ? null : t1.$index(0, key); }, $indexSet(_, key, value) { var child, t1, _0_0 = this._mapsByKey.$index(0, key); if (_0_0 != null) { child = _0_0; t1 = true; } else { child = null; t1 = false; } if (t1) child.$indexSet(0, key, value); else throw A.wrapException(A.UnsupportedError$(string$.New_en)); }, remove$1(_, key) { throw A.wrapException(A.UnsupportedError$(string$.Entrie)); }, containsKey$1(key) { return this._mapsByKey.containsKey$1(key); } }; A.MultiDirWatcher.prototype = { watch$1(_, directory) { var t1, t2, t3, t4, isParentOfExistingDir, _i, t5, _0_1, t6, existingWatcher, future, completer; 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) { t5 = t2[_i]; _0_1 = A._InitializedCell$(new A.MultiDirWatcher_watch_closure(t5)); _0_1._readFinal$0().toString; t6 = _0_1._readFinal$0(); t6.toString; existingWatcher = t5._1; if (!isParentOfExistingDir) { t5 = $.$get$context(); t5 = t5._isWithinOrEquals$2(t6, directory) === B._PathRelation_equal || t5._isWithinOrEquals$2(t6, directory) === B._PathRelation_within; } else t5 = false; if (t5) { t1 = new A._Future($.Zone__current, type$._Future_void); t1._asyncComplete$1(null); return t1; } if ($.$get$context()._isWithinOrEquals$2(directory, t6) === B._PathRelation_within) { t1.remove$1(0, t6); t4.remove$1(0, existingWatcher); isParentOfExistingDir = true; } } future = A.watchDir(directory, this._poll); t2 = new A._CompleterStream(type$._CompleterStream_WatchEvent); completer = new A.StreamCompleter(t2, type$.StreamCompleter_WatchEvent); future.then$1$2$onError(0, completer.get$setSourceStream(), completer.get$setError(), type$.void); t1.$indexSet(0, directory, t2); t4.add$1(0, t2); return future; } }; A.MultiDirWatcher_watch_closure.prototype = { call$0() { return this._0_0._0; }, $signature: 32 }; A.MultiSpan.prototype = { get$start(_) { var t1 = this._multi_span$_primary; return t1.get$start(t1); }, get$end(_) { var t1 = this._multi_span$_primary; return t1.get$end(t1); }, get$text() { return this._multi_span$_primary.get$text(); }, get$context(_) { var t1 = this._multi_span$_primary; return t1.get$context(t1); }, get$file(_) { var t1 = this._multi_span$_primary; return t1.get$file(t1); }, get$length(_) { var t1 = this._multi_span$_primary; return t1.get$length(t1); }, get$sourceUrl(_) { var t1 = this._multi_span$_primary; return t1.get$sourceUrl(t1); }, compareTo$1(_, other) { return this._multi_span$_primary.compareTo$1(0, other); }, toString$0(_) { return this._multi_span$_primary.toString$0(0); }, expand$1(_, other) { return new A.MultiSpan(this._multi_span$_primary.expand$1(0, other), this.primaryLabel, this.secondarySpans); }, highlight$1$color(color) { var t1 = color === true || false; return A.Highlighter$multiple(this._multi_span$_primary, this.primaryLabel, this.secondarySpans, t1, null, null).highlight$0(); }, message$2$color(_, message, color) { var t1 = J.$eq$(color, true) || typeof color == "string", t2 = typeof color == "string" ? color : null; return A.SourceSpanExtension_messageMultiple(this._multi_span$_primary, message, this.primaryLabel, this.secondarySpans, t1, t2, null); }, message$1($receiver, message) { return this.message$2$color($receiver, message, null); }, $isComparable: 1, $isFileSpan: 1, $isSourceSpan: 1, $isSourceSpanWithContext: 1 }; A.NoSourceMapBuffer.prototype = { get$length(_) { return this._no_source_map_buffer$_buffer._contents.length; }, forSpan$1$2(span, callback) { return callback.call$0(); }, forSpan$2(span, callback) { return this.forSpan$1$2(span, callback, type$.dynamic); }, write$1(_, object) { this._no_source_map_buffer$_buffer._contents += A.S(object); return null; }, writeCharCode$1(charCode) { this._no_source_map_buffer$_buffer._contents += A.Primitives_stringFromCharCode(charCode); return null; }, toString$0(_) { var t1 = this._no_source_map_buffer$_buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, buildSourceMap$1$prefix(prefix) { return A.throwExpression(A.UnsupportedError$(string$.NoSour)); } }; A.PrefixedMapView.prototype = { get$keys(_) { return new A._PrefixedKeys(this); }, get$length(_) { var t1 = this._prefixed_map_view$_map; return t1.get$length(t1); }, get$isEmpty(_) { var t1 = this._prefixed_map_view$_map; return t1.get$isEmpty(t1); }, get$isNotEmpty(_) { var t1 = this._prefixed_map_view$_map; return t1.get$isNotEmpty(t1); }, $index(_, key) { 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; }, containsKey$1(key) { 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)); } }; A._PrefixedKeys.prototype = { get$length(_) { var t1 = this._view._prefixed_map_view$_map; return t1.get$length(t1); }, get$iterator(_) { var t1 = this._view._prefixed_map_view$_map; t1 = J.map$1$1$ax(t1.get$keys(t1), new A._PrefixedKeys_iterator_closure(this), type$.String); return t1.get$iterator(t1); }, contains$1(_, key) { return this._view.containsKey$1(key); } }; A._PrefixedKeys_iterator_closure.prototype = { call$1(key) { return this.$this._view._prefix + key; }, $signature: 7 }; A.PublicMemberMapView.prototype = { get$keys(_) { var t1 = this._public_member_map_view$_inner; return J.where$1$ax(t1.get$keys(t1), A.utils__isPublic$closure()); }, containsKey$1(key) { return typeof key == "string" && A.isPublic(key) && this._public_member_map_view$_inner.containsKey$1(key); }, $index(_, key) { if (typeof key == "string" && A.isPublic(key)) return this._public_member_map_view$_inner.$index(0, key); return null; } }; A.SourceMapBuffer.prototype = { get$_targetLocation() { var t1 = this._source_map_buffer$_buffer._contents, t2 = this._line; return A.SourceLocation$(t1.length, this._column, t2, null); }, get$length(_) { return this._source_map_buffer$_buffer._contents.length; }, forSpan$1$2(span, callback) { var t1, _this = this, wasInSpan = _this._inSpan; _this._inSpan = true; _this._addEntry$2(span.get$start(span), _this.get$_targetLocation()); try { t1 = callback.call$0(); return t1; } finally { _this._inSpan = wasInSpan; } }, forSpan$2(span, callback) { return this.forSpan$1$2(span, callback, type$.dynamic); }, _addEntry$2(source, target) { var entry, t2, t1 = this._entries; if (t1.length !== 0) { entry = B.JSArray_methods.get$last(t1); t2 = entry.source; if (t2.file.getLine$1(t2.offset) === source.file.getLine$1(source.offset) && entry.target.line === target.line) return; if (entry.target.offset === target.offset) return; } t1.push(new A.Entry(source, target, null)); }, write$1(_, object) { var t1, i, string = J.toString$0$(object); this._source_map_buffer$_buffer._contents += string; for (t1 = string.length, i = 0; i < t1; ++i) if (string.charCodeAt(i) === 10) this._source_map_buffer$_writeLine$0(); else ++this._column; }, writeCharCode$1(charCode) { this._source_map_buffer$_buffer._contents += A.Primitives_stringFromCharCode(charCode); if (charCode === 10) this._source_map_buffer$_writeLine$0(); else ++this._column; }, _source_map_buffer$_writeLine$0() { var _this = this, t1 = _this._entries; if (B.JSArray_methods.get$last(t1).target.line === _this._line && B.JSArray_methods.get$last(t1).target.column === _this._column) t1.pop(); ++_this._line; _this._column = 0; if (_this._inSpan) t1.push(new A.Entry(B.JSArray_methods.get$last(t1).source, _this.get$_targetLocation(), null)); }, toString$0(_) { var t1 = this._source_map_buffer$_buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, buildSourceMap$1$prefix(prefix) { var i, t2, prefixColumn, _box_0 = {}, t1 = prefix.length; if (t1 === 0) return A.SingleMapping_SingleMapping$fromEntries(this._entries); _box_0.prefixColumn = _box_0.prefixLines = 0; for (i = 0, t2 = 0; i < t1; ++i) if (prefix.charCodeAt(i) === 10) { ++_box_0.prefixLines; _box_0.prefixColumn = 0; t2 = 0; } else { prefixColumn = t2 + 1; _box_0.prefixColumn = prefixColumn; t2 = prefixColumn; } t2 = this._entries; 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>"))); } }; A.SourceMapBuffer_buildSourceMap_closure.prototype = { call$1(entry) { var t1 = entry.target, t2 = t1.line, t3 = this._box_0, t4 = t3.prefixLines; t3 = t2 === 0 ? t3.prefixColumn : 0; return new A.Entry(entry.source, A.SourceLocation$(t1.offset + this.prefixLength, t1.column + t3, t2 + t4, null), entry.identifierName); }, $signature: 206 }; A.UnprefixedMapView.prototype = { get$keys(_) { return new A._UnprefixedKeys(this); }, $index(_, key) { return typeof key == "string" ? this._unprefixed_map_view$_map.$index(0, this._unprefixed_map_view$_prefix + key) : null; }, containsKey$1(key) { return typeof key == "string" && this._unprefixed_map_view$_map.containsKey$1(this._unprefixed_map_view$_prefix + key); }, remove$1(_, key) { return typeof key == "string" ? this._unprefixed_map_view$_map.remove$1(0, this._unprefixed_map_view$_prefix + key) : null; } }; A._UnprefixedKeys.prototype = { get$iterator(_) { var t1 = this._unprefixed_map_view$_view._unprefixed_map_view$_map; 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); return t1.get$iterator(t1); }, contains$1(_, key) { return this._unprefixed_map_view$_view.containsKey$1(key); } }; A._UnprefixedKeys_iterator_closure.prototype = { call$1(key) { return B.JSString_methods.startsWith$1(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix); }, $signature: 10 }; A._UnprefixedKeys_iterator_closure0.prototype = { call$1(key) { return B.JSString_methods.substring$1(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix.length); }, $signature: 7 }; A.indent_closure.prototype = { call$1(line) { return B.JSString_methods.$mul(" ", this.indentation) + line; }, $signature: 7 }; A.flattenVertically_closure.prototype = { call$1(inner) { return A.QueueList_QueueList$from(inner, this.T); }, $signature() { return this.T._eval$1("QueueList<0>(Iterable<0>)"); } }; A.flattenVertically_closure0.prototype = { call$1(queue) { this.result.push(queue.removeFirst$0()); return queue.get$length(queue) === 0; }, $signature() { return this.T._eval$1("bool(QueueList<0>)"); } }; A.longestCommonSubsequence_backtrack.prototype = { call$2(i, j) { var selection, t1, _this = this; if (i === -1 || j === -1) return A._setArrayType([], _this.T._eval$1("JSArray<0>")); selection = _this.selections[i][j]; if (selection != null) { t1 = _this.call$2(i - 1, j - 1); J.add$1$ax(t1, selection); return t1; } t1 = _this.lengths; return t1[i + 1][j] > t1[i][j + 1] ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j); }, $signature() { return this.T._eval$1("List<0>(int,int)"); } }; A.mapAddAll2_closure.prototype = { call$2(key, inner) { var innerDestination, t2, t1 = this.destination, _0_0 = t1.$index(0, key); if (_0_0 != null) { innerDestination = _0_0; t2 = true; } else { innerDestination = null; t2 = false; } if (t2) innerDestination.addAll$1(0, inner); else t1.$indexSet(0, key, inner); }, $signature() { return this.K1._eval$1("@<0>")._bind$1(this.K2)._bind$1(this.V)._eval$1("~(1,Map<2,3>)"); } }; A.Value.prototype = { get$isTruthy() { return true; }, get$separator(_) { return B.ListSeparator_undecided_null_undecided; }, get$hasBrackets() { return false; }, get$asList() { return A._setArrayType([this], type$.JSArray_Value); }, get$lengthAsList() { return 1; }, get$isBlank() { return false; }, get$isSpecialNumber() { return false; }, get$isVar() { return false; }, get$realNull() { return this; }, sassIndexToListIndex$2(sassIndex, $name) { var t1, t2, index, indexValue = sassIndex.assertNumber$1($name); if (indexValue.get$hasUnits()) { t1 = indexValue.get$unitString(); t2 = indexValue.unitSuggestion$1($name); A.EvaluationContext_current().warn$2(0, "$" + $name + ": Passing a number with unit " + t1 + string$.x20is_de + t2 + string$.x0a_Morex3a, B.Deprecation_8WR); } index = indexValue.assertInt$1($name); if (index === 0) throw A.wrapException(A.SassScriptException$("List index may not be 0.", $name)); if (Math.abs(index) > this.get$lengthAsList()) throw A.wrapException(A.SassScriptException$("Invalid index " + sassIndex.toString$0(0) + " for a list with " + this.get$lengthAsList() + " elements.", $name)); return index < 0 ? this.get$lengthAsList() + index : index - 1; }, assertCalculation$1($name) { return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a calculation.", $name)); }, assertColor$1($name) { return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a color.", $name)); }, assertFunction$1($name) { return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a function reference.", $name)); }, assertMixin$1($name) { return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a mixin reference.", $name)); }, assertMap$1($name) { return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a map.", $name)); }, tryMap$0() { return null; }, assertNumber$1($name) { return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a number.", $name)); }, assertNumber$0() { return this.assertNumber$1(null); }, assertString$1($name) { return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a string.", $name)); }, _selectorString$1($name) { var string, t1, _0_0 = this._selectorStringOrNull$0(); if (_0_0 != null) { string = _0_0; t1 = true; } else { string = null; t1 = false; } if (t1) return string; throw A.wrapException(A.SassScriptException$(this.toString$0(0) + string$.x20is_noa, $name)); }, _selectorStringOrNull$0() { var t1, t2, result, _1_0, _i, complex, string, compound, _this = this, _null = null; if (_this instanceof A.SassString) return _this._string$_text; if (!(_this instanceof A.SassList)) return _null; t1 = _this._list$_contents; t2 = t1.length; if (t2 === 0) return _null; result = A._setArrayType([], type$.JSArray_String); $label0$1: { _1_0 = _this._separator; if (B.ListSeparator_rXA === _1_0) { for (_i = 0; _i < t2; ++_i) { complex = t1[_i]; if (complex instanceof A.SassString) { result.push(complex._string$_text); continue; } if (complex instanceof A.SassList && B.ListSeparator_EVt === complex._separator) { string = complex._selectorStringOrNull$0(); if (string == null) return _null; result.push(string); continue; } return _null; } break $label0$1; } if (B.ListSeparator_zg9 === _1_0) return _null; for (_i = 0; _i < t2; ++_i) { compound = t1[_i]; if (!(compound instanceof A.SassString)) return _null; result.push(compound._string$_text); } } return B.JSArray_methods.join$1(result, _1_0 === B.ListSeparator_rXA ? ", " : " "); }, withListContents$2$separator(contents, separator) { var t1 = separator == null ? this.get$separator(this) : separator, t2 = this.get$hasBrackets(); return A.SassList$(contents, t1, t2); }, withListContents$1(contents) { return this.withListContents$2$separator(contents, null); }, greaterThan$1(other) { return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null)); }, greaterThanOrEquals$1(other) { return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null)); }, lessThan$1(other) { return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null)); }, lessThanOrEquals$1(other) { return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null)); }, times$1(other) { return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " * " + other.toString$0(0) + '".', null)); }, modulo$1(other) { return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null)); }, plus$1(other) { var t1; $label0$0: { if (other instanceof A.SassString) { t1 = new A.SassString(A.serializeValue(this, false, true) + other._string$_text, other._hasQuotes); break $label0$0; } if (other instanceof A.SassCalculation) A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null)); t1 = new A.SassString(A.serializeValue(this, false, true) + A.serializeValue(other, false, true), false); break $label0$0; } return t1; }, minus$1(other) { 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); }, dividedBy$1(other) { return new A.SassString(A.serializeValue(this, false, true) + "/" + A.serializeValue(other, false, true), false); }, unaryPlus$0() { return new A.SassString("+" + A.serializeValue(this, false, true), false); }, unaryMinus$0() { return new A.SassString("-" + A.serializeValue(this, false, true), false); }, unaryNot$0() { return B.SassBoolean_false; }, withoutSlash$0() { return this; }, toString$0(_) { return A.serializeValue(this, true, true); } }; A.SassArgumentList.prototype = {}; A.SassBoolean.prototype = { get$isTruthy() { return this.value; }, accept$1$1(visitor) { return visitor._serialize$_buffer.write$1(0, String(this.value)); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, unaryNot$0() { return this.value ? B.SassBoolean_false : B.SassBoolean_true; } }; A.SassCalculation.prototype = { get$isSpecialNumber() { return true; }, accept$1$1(visitor) { return visitor.visitCalculation$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertCalculation$1($name) { return this; }, plus$1(other) { if (other instanceof A.SassString) return this.super$Value$plus(other); throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null)); }, minus$1(other) { return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null)); }, unaryPlus$0() { return A.throwExpression(A.SassScriptException$('Undefined operation "+' + this.toString$0(0) + '".', null)); }, unaryMinus$0() { return A.throwExpression(A.SassScriptException$('Undefined operation "-' + this.toString$0(0) + '".', null)); }, $eq(_, other) { if (other == null) return false; return other instanceof A.SassCalculation && this.name === other.name && B.C_ListEquality.equals$2(0, this.$arguments, other.$arguments); }, get$hashCode(_) { return B.JSString_methods.get$hashCode(this.name) ^ B.C_ListEquality0.hash$1(this.$arguments); } }; A.SassCalculation_sign_closure.prototype = { call$0() { return type$.SassNumber._as(this._0_0)._number$_value; }, $signature: 92 }; A.SassCalculation_round_closure.prototype = { call$0() { return this._0_0._0; }, $signature: 14 }; A.SassCalculation_round_closure0.prototype = { call$0() { return this._0_0._1; }, $signature: 28 }; A.SassCalculation_round_closure1.prototype = { call$0() { return this._0_2._readFinal$0() == null; }, $signature: 1 }; A.SassCalculation_round_closure2.prototype = { call$0() { return this._0_0._2; }, $signature: 28 }; A.SassCalculation_round_closure3.prototype = { call$0() { return this._0_5._readFinal$0() == null; }, $signature: 1 }; A.SassCalculation_round_closure4.prototype = { call$0() { return type$.SassString._as(this._0_1._readFinal$0())._string$_text; }, $signature: 22 }; A.SassCalculation_round_closure5.prototype = { call$0() { return "nearest" === this._0_8._readFinal$0(); }, $signature: 1 }; A.SassCalculation_round_closure6.prototype = { call$0() { return "up" === this._0_8._readFinal$0(); }, $signature: 1 }; A.SassCalculation_round_closure7.prototype = { call$0() { return "down" === this._0_8._readFinal$0(); }, $signature: 1 }; A.SassCalculation_round_closure8.prototype = { call$0() { return "to-zero" === this._0_8._readFinal$0(); }, $signature: 1 }; A.SassCalculation__roundWithStep_closure0.prototype = { call$0() { return this._0_0._0; }, $signature: 22 }; A.SassCalculation__roundWithStep_closure.prototype = { call$0() { return this._0_0._1; }, $signature: 92 }; A.SassCalculation__roundWithStep_closure1.prototype = { call$0() { return "nearest" === this._0_1._readFinal$0(); }, $signature: 1 }; A.SassCalculation__roundWithStep_closure2.prototype = { call$0() { return "to-zero" === this._0_1._readFinal$0(); }, $signature: 1 }; A.SassCalculation__roundWithStep_closure3.prototype = { call$0() { return this._0_2._readFinal$0() > 0; }, $signature: 1 }; A.SassCalculation__roundWithStep_closure4.prototype = { call$0() { return "up" === this._0_1._readFinal$0(); }, $signature: 1 }; A.SassCalculation__roundWithStep_closure5.prototype = { call$0() { return "down" === this._0_1._readFinal$0(); }, $signature: 1 }; A.SassCalculation__simplify_closure.prototype = { call$0() { return "calc" === this._0_0.name; }, $signature: 1 }; A.SassCalculation__simplify_closure0.prototype = { call$0() { return type$.SassCalculation._as(this._0_0).$arguments; }, $signature: 138 }; A.SassCalculation__simplify_closure1.prototype = { call$0() { return J.get$length$asx(this._0_12._readFinal$0()) === 1; }, $signature: 1 }; A.SassCalculation__simplify_closure2.prototype = { call$0() { return J.$index$asx(this._0_12._readFinal$0(), 0); }, $signature: 14 }; A.SassCalculation__verifyLength_closure.prototype = { call$1(arg) { return arg instanceof A.SassString; }, $signature: 77 }; A.CalculationOperation.prototype = { $eq(_, other) { if (other == null) return false; return other instanceof A.CalculationOperation && this._operator === other._operator && J.$eq$(this._left, other._left) && J.$eq$(this._right, other._right); }, get$hashCode(_) { return (A.Primitives_objectHashCode(this._operator) ^ J.get$hashCode$(this._left) ^ J.get$hashCode$(this._right)) >>> 0; }, toString$0(_) { var parenthesized = A.serializeValue(new A.SassCalculation("", A._setArrayType([this], type$.JSArray_Object)), true, true); return B.JSString_methods.substring$2(parenthesized, 1, parenthesized.length - 1); } }; A.CalculationOperator.prototype = { _enumToString$0() { return "CalculationOperator." + this._name; }, toString$0(_) { return this.name; } }; A.SassColor.prototype = { get$red(_) { var t1; if (this._red == null) this._hslToRgb$0(); t1 = this._red; t1.toString; return t1; }, get$green(_) { var t1; if (this._green == null) this._hslToRgb$0(); t1 = this._green; t1.toString; return t1; }, get$blue(_) { var t1; if (this._blue == null) this._hslToRgb$0(); t1 = this._blue; t1.toString; return t1; }, get$hue(_) { var t1; if (this._hue == null) this._rgbToHsl$0(); t1 = this._hue; t1.toString; return t1; }, get$saturation(_) { var t1; if (this._saturation == null) this._rgbToHsl$0(); t1 = this._saturation; t1.toString; return t1; }, get$lightness(_) { var t1; if (this._lightness == null) this._rgbToHsl$0(); t1 = this._lightness; t1.toString; return t1; }, get$whiteness(_) { var _this = this; return Math.min(Math.min(_this.get$red(_this), _this.get$green(_this)), _this.get$blue(_this)) / 255 * 100; }, get$blackness(_) { var _this = this; return 100 - Math.max(Math.max(_this.get$red(_this), _this.get$green(_this)), _this.get$blue(_this)) / 255 * 100; }, accept$1$1(visitor) { return visitor.visitColor$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertColor$1($name) { return this; }, changeRgb$4$alpha$blue$green$red(alpha, blue, green, red) { return A.SassColor$rgb(red, green, blue, alpha == null ? this._alpha : alpha); }, changeRgb$3$blue$green$red(blue, green, red) { return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red); }, changeHsl$4$alpha$hue$lightness$saturation(alpha, hue, lightness, saturation) { var _this = this, _null = null, t1 = hue == null ? _this.get$hue(_this) : hue, t2 = saturation == null ? _this.get$saturation(_this) : saturation, t3 = lightness == null ? _this.get$lightness(_this) : lightness, t4 = A.SassColor__handleNullAlpha(alpha == null ? _this._alpha : alpha); return new A.SassColor(_null, _null, _null, B.JSNumber_methods.$mod(t1, 360), A.fuzzyAssertRange(t2, 0, 100, "saturation"), A.fuzzyAssertRange(t3, 0, 100, "lightness"), A.fuzzyAssertRange(t4, 0, 1, "alpha"), _null); }, changeHsl$1$saturation(saturation) { return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation); }, changeHsl$1$lightness(lightness) { return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null); }, changeHsl$1$hue(hue) { return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null); }, changeAlpha$1(alpha) { var _this = this; return new A.SassColor(_this._red, _this._green, _this._blue, _this._hue, _this._saturation, _this._lightness, A.fuzzyAssertRange(alpha, 0, 1, "alpha"), null); }, plus$1(other) { if (!(other instanceof A.SassNumber) && !(other instanceof A.SassColor)) return this.super$Value$plus(other); throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null)); }, minus$1(other) { if (!(other instanceof A.SassNumber) && !(other instanceof A.SassColor)) return this.super$Value$minus(other); throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null)); }, dividedBy$1(other) { if (!(other instanceof A.SassNumber) && !(other instanceof A.SassColor)) return this.super$Value$dividedBy(other); throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " / " + other.toString$0(0) + '".', null)); }, $eq(_, other) { var _this = this; if (other == null) return false; return other instanceof A.SassColor && other.get$red(other) === _this.get$red(_this) && other.get$green(other) === _this.get$green(_this) && other.get$blue(other) === _this.get$blue(_this) && other._alpha === _this._alpha; }, get$hashCode(_) { var _this = this; return B.JSInt_methods.get$hashCode(_this.get$red(_this)) ^ B.JSInt_methods.get$hashCode(_this.get$green(_this)) ^ B.JSInt_methods.get$hashCode(_this.get$blue(_this)) ^ B.JSNumber_methods.get$hashCode(_this._alpha); }, _rgbToHsl$0() { var t2, lightness, _this = this, scaledRed = _this.get$red(_this) / 255, scaledGreen = _this.get$green(_this) / 255, scaledBlue = _this.get$blue(_this) / 255, max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue), min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue), delta = max - min, t1 = max === min; if (t1) _this._hue = 0; else if (max === scaledRed) _this._hue = B.JSNumber_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360); else if (max === scaledGreen) _this._hue = B.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360); else if (max === scaledBlue) _this._hue = B.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360); t2 = max + min; lightness = 50 * t2; _this._lightness = lightness; if (t1) _this._saturation = 0; else { t1 = 100 * delta; if (lightness < 50) _this._saturation = t1 / t2; else _this._saturation = t1 / (2 - max - min); } }, _hslToRgb$0() { var _this = this, scaledHue = _this.get$hue(_this) / 360, scaledSaturation = _this.get$saturation(_this) / 100, scaledLightness = _this.get$lightness(_this) / 100, m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation, m1 = scaledLightness * 2 - m2; _this._red = A.fuzzyRound(A.SassColor__hueToRgb(m1, m2, scaledHue + 0.3333333333333333) * 255); _this._green = A.fuzzyRound(A.SassColor__hueToRgb(m1, m2, scaledHue) * 255); _this._blue = A.fuzzyRound(A.SassColor__hueToRgb(m1, m2, scaledHue - 0.3333333333333333) * 255); } }; A.SassColor_SassColor$hwb_toRgb.prototype = { call$1(hue) { return A.fuzzyRound((A.SassColor__hueToRgb(0, 1, hue) * this.factor + this._box_0.scaledWhiteness) * 255); }, $signature: 210 }; A._ColorFormatEnum.prototype = { toString$0(_) { return this._color$_name; } }; A.SpanColorFormat.prototype = {}; A.SassFunction.prototype = { accept$1$1(visitor) { var t1, t2; if (!visitor._inspect) A.throwExpression(A.SassScriptException$(this.toString$0(0) + " isn't a valid CSS value.", null)); t1 = visitor._serialize$_buffer; t1.write$1(0, "get-function("); t2 = this.callable; visitor._visitQuotedString$1(t2.get$name(t2)); t1.writeCharCode$1(41); return null; }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertFunction$1($name) { return this; }, $eq(_, other) { if (other == null) return false; return other instanceof A.SassFunction && this.callable.$eq(0, other.callable); }, get$hashCode(_) { var t1 = this.callable; return t1.get$hashCode(t1); } }; A.SassList.prototype = { get$separator(_) { return this._separator; }, get$hasBrackets() { return this._hasBrackets; }, get$isBlank() { return !this._hasBrackets && B.JSArray_methods.every$1(this._list$_contents, new A.SassList_isBlank_closure()); }, get$asList() { return this._list$_contents; }, get$lengthAsList() { return this._list$_contents.length; }, SassList$3$brackets(contents, _separator, brackets) { if (this._separator === B.ListSeparator_undecided_null_undecided && this._list$_contents.length > 1) throw A.wrapException(A.ArgumentError$(string$.A_list, null)); }, accept$1$1(visitor) { return visitor.visitList$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertMap$1($name) { return this._list$_contents.length === 0 ? B.SassMap_Map_empty : this.super$Value$assertMap($name); }, tryMap$0() { return this._list$_contents.length === 0 ? B.SassMap_Map_empty : null; }, $eq(_, other) { var t1, _this = this; if (other == null) return false; 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))) t1 = _this._list$_contents.length === 0 && other instanceof A.SassMap && other.get$asList().length === 0; else t1 = true; return t1; }, get$hashCode(_) { return B.C_ListEquality0.hash$1(this._list$_contents); } }; A.SassList_isBlank_closure.prototype = { call$1(element) { return element.get$isBlank(); }, $signature: 79 }; A.ListSeparator.prototype = { _enumToString$0() { return "ListSeparator." + this._name; }, toString$0(_) { return this._list$_name; } }; A.SassMap.prototype = { get$separator(_) { var t1 = this._map$_contents; return t1.get$isEmpty(t1) ? B.ListSeparator_undecided_null_undecided : B.ListSeparator_rXA; }, get$asList() { var t3, t4, t5, key, value, result, t1 = type$.JSArray_Value, t2 = A._setArrayType([], t1); for (t3 = type$.Value, t4 = A.MapExtensions_get_pairs(this._map$_contents, t3, t3), t4 = t4.get$iterator(t4); t4.moveNext$0();) { t5 = t4.get$current(t4); key = t5._0; value = t5._1; result = A.List_List$from(A._setArrayType([key, value], t1), false, t3); result.fixed$length = Array; result.immutable$list = Array; t2.push(new A.SassList(result, B.ListSeparator_EVt, false)); } return t2; }, get$lengthAsList() { var t1 = this._map$_contents; return t1.get$length(t1); }, accept$1$1(visitor) { return visitor.visitMap$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertMap$1($name) { return this; }, tryMap$0() { return this; }, $eq(_, other) { var t1; if (other == null) return false; if (!(other instanceof A.SassMap && B.C_MapEquality.equals$2(0, other._map$_contents, this._map$_contents))) { t1 = this._map$_contents; t1 = t1.get$isEmpty(t1) && other instanceof A.SassList && other._list$_contents.length === 0; } else t1 = true; return t1; }, get$hashCode(_) { var t1 = this._map$_contents; return t1.get$isEmpty(t1) ? B.C_ListEquality0.hash$1(B.List_empty8) : B.C_MapEquality.hash$1(t1); } }; A.SassMixin.prototype = { accept$1$1(visitor) { var t1, t2; if (!visitor._inspect) A.throwExpression(A.SassScriptException$(this.toString$0(0) + " isn't a valid CSS value.", null)); t1 = visitor._serialize$_buffer; t1.write$1(0, "get-mixin("); t2 = this.callable; visitor._visitQuotedString$1(t2.get$name(t2)); t1.writeCharCode$1(41); return null; }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertMixin$1($name) { return this; }, $eq(_, other) { if (other == null) return false; return other instanceof A.SassMixin && this.callable.$eq(0, other.callable); }, get$hashCode(_) { var t1 = this.callable; return t1.get$hashCode(t1); } }; A._SassNull.prototype = { get$isTruthy() { return false; }, get$isBlank() { return true; }, get$realNull() { return null; }, accept$1$1(visitor) { if (visitor._inspect) visitor._serialize$_buffer.write$1(0, "null"); return null; }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, unaryNot$0() { return B.SassBoolean_true; } }; A.SassNumber.prototype = { get$unitString() { var _this = this; return _this.get$hasUnits() ? _this._unitString$2(_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this)) : ""; }, accept$1$1(visitor) { return visitor.visitNumber$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, withoutSlash$0() { var _this = this; return _this.asSlash == null ? _this : _this.withValue$1(_this._number$_value); }, assertNumber$1($name) { return this; }, assertNumber$0() { return this.assertNumber$1(null); }, assertInt$1($name) { var integer, t1, _0_0 = A.fuzzyAsInt(this._number$_value); if (_0_0 != null) { integer = _0_0; t1 = true; } else { integer = null; t1 = false; } if (t1) return integer; throw A.wrapException(A.SassScriptException$(this.toString$0(0) + " is not an int.", $name)); }, assertInt$0() { return this.assertInt$1(null); }, valueInRange$3(min, max, $name) { var result, t1, _this = this, _0_0 = A.fuzzyCheckRange(_this._number$_value, min, max); if (_0_0 != null) { result = _0_0; t1 = true; } else { result = null; t1 = false; } if (t1) return result; throw A.wrapException(A.SassScriptException$("Expected " + _this.toString$0(0) + " to be within " + min + _this.get$unitString() + " and " + max + _this.get$unitString() + ".", $name)); }, valueInRangeWithUnit$4(min, max, $name, unit) { var result, t1, _0_0 = A.fuzzyCheckRange(this._number$_value, min, max); if (_0_0 != null) { result = _0_0; t1 = true; } else { result = null; t1 = false; } if (t1) return result; throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + " to be within " + min + unit + " and " + max + unit + ".", $name)); }, hasCompatibleUnits$1(other) { var _this = this; if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length) return false; if (_this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length) return false; return _this.isComparableTo$1(other); }, assertUnit$2(unit, $name) { if (this.hasUnit$1(unit)) return; throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name)); }, assertNoUnits$1($name) { if (!this.get$hasUnits()) return; throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + " to have no units.", $name)); }, assertNoUnits$0() { return this.assertNoUnits$1(null); }, convertValueToMatch$3(other, $name, otherName) { return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), false, $name, other, otherName); }, convertValueToMatch$1(other) { return this.convertValueToMatch$3(other, null, null); }, coerce$3(newNumerators, newDenominators, $name) { return A.SassNumber_SassNumber$withUnits(this.coerceValue$3(newNumerators, newDenominators, $name), newDenominators, newNumerators); }, coerce$2(newNumerators, newDenominators) { return this.coerce$3(newNumerators, newDenominators, null); }, coerceValue$3(newNumerators, newDenominators, $name) { return this._coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, true, $name); }, coerceValueToUnit$2(unit, $name) { var t1 = type$.JSArray_String; return this.coerceValue$3(A._setArrayType([unit], t1), A._setArrayType([], t1), $name); }, coerceValueToUnit$1(unit) { return this.coerceValueToUnit$2(unit, null); }, coerceToMatch$3(other, $name, otherName) { var t1 = this.coerceValueToMatch$3(other, $name, otherName), t2 = other.get$numeratorUnits(other); return A.SassNumber_SassNumber$withUnits(t1, other.get$denominatorUnits(other), t2); }, coerceValueToMatch$3(other, $name, otherName) { return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), true, $name, other, otherName); }, coerceValueToMatch$1(other) { return this.coerceValueToMatch$3(other, null, null); }, _coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, other, otherName) { var otherHasUnits, t1, compatibilityException, oldNumerators, _i, oldDenominators, _this = this, _box_0 = {}; if (B.C_ListEquality.equals$2(0, _this.get$numeratorUnits(_this), newNumerators) && B.C_ListEquality.equals$2(0, _this.get$denominatorUnits(_this), newDenominators)) return _this._number$_value; otherHasUnits = newNumerators.length !== 0 || newDenominators.length !== 0; if (coerceUnitless) t1 = !_this.get$hasUnits() || !otherHasUnits; else t1 = false; if (t1) return _this._number$_value; compatibilityException = new A.SassNumber__coerceOrConvertValue_compatibilityException(_this, other, otherName, otherHasUnits, $name, newNumerators, newDenominators); _box_0.value = _this._number$_value; t1 = _this.get$numeratorUnits(_this); oldNumerators = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1)); for (t1 = newNumerators.length, _i = 0; _i < newNumerators.length; newNumerators.length === t1 || (0, A.throwConcurrentModificationError)(newNumerators), ++_i) A.removeFirstWhere(oldNumerators, new A.SassNumber__coerceOrConvertValue_closure(_box_0, newNumerators[_i]), new A.SassNumber__coerceOrConvertValue_closure0(compatibilityException)); t1 = _this.get$denominatorUnits(_this); oldDenominators = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1)); for (t1 = newDenominators.length, _i = 0; _i < newDenominators.length; newDenominators.length === t1 || (0, A.throwConcurrentModificationError)(newDenominators), ++_i) A.removeFirstWhere(oldDenominators, new A.SassNumber__coerceOrConvertValue_closure1(_box_0, newDenominators[_i]), new A.SassNumber__coerceOrConvertValue_closure2(compatibilityException)); if (oldNumerators.length !== 0 || oldDenominators.length !== 0) throw A.wrapException(compatibilityException.call$0()); return _box_0.value; }, _coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, coerceUnitless, $name) { return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, null, null); }, isComparableTo$1(other) { var exception; if (!this.get$hasUnits() || !other.get$hasUnits()) return true; try { this.greaterThan$1(other); return true; } catch (exception) { if (A.unwrapException(exception) instanceof A.SassScriptException) return false; else throw exception; } }, greaterThan$1(other) { if (other instanceof A.SassNumber) return this._coerceUnits$2(other, A.number0__fuzzyGreaterThan$closure()) ? B.SassBoolean_true : B.SassBoolean_false; throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null)); }, greaterThanOrEquals$1(other) { if (other instanceof A.SassNumber) return this._coerceUnits$2(other, A.number0__fuzzyGreaterThanOrEquals$closure()) ? B.SassBoolean_true : B.SassBoolean_false; throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null)); }, lessThan$1(other) { if (other instanceof A.SassNumber) return this._coerceUnits$2(other, A.number0__fuzzyLessThan$closure()) ? B.SassBoolean_true : B.SassBoolean_false; throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null)); }, lessThanOrEquals$1(other) { if (other instanceof A.SassNumber) return this._coerceUnits$2(other, A.number0__fuzzyLessThanOrEquals$closure()) ? B.SassBoolean_true : B.SassBoolean_false; throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null)); }, modulo$1(other) { if (other instanceof A.SassNumber) return this.withValue$1(this._coerceUnits$2(other, A.number0__moduloLikeSass$closure())); throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null)); }, plus$1(other) { var _this = this; if (other instanceof A.SassNumber) return _this.withValue$1(_this._coerceUnits$2(other, new A.SassNumber_plus_closure())); if (!(other instanceof A.SassColor)) return _this.super$Value$plus(other); throw A.wrapException(A.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " + " + other.toString$0(0) + '".', null)); }, minus$1(other) { var _this = this; if (other instanceof A.SassNumber) return _this.withValue$1(_this._coerceUnits$2(other, new A.SassNumber_minus_closure())); if (!(other instanceof A.SassColor)) return _this.super$Value$minus(other); throw A.wrapException(A.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " - " + other.toString$0(0) + '".', null)); }, times$1(other) { var _this = this; if (other instanceof A.SassNumber) { if (!other.get$hasUnits()) return _this.withValue$1(_this._number$_value * other._number$_value); return _this.multiplyUnits$3(_this._number$_value * other._number$_value, other.get$numeratorUnits(other), other.get$denominatorUnits(other)); } throw A.wrapException(A.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " * " + other.toString$0(0) + '".', null)); }, dividedBy$1(other) { var _this = this; if (other instanceof A.SassNumber) { if (!other.get$hasUnits()) return _this.withValue$1(_this._number$_value / other._number$_value); return _this.multiplyUnits$3(_this._number$_value / other._number$_value, other.get$denominatorUnits(other), other.get$numeratorUnits(other)); } return _this.super$Value$dividedBy(other); }, unaryPlus$0() { return this; }, _coerceUnits$1$2(other, operation) { var t1, exception; try { t1 = operation.call$2(this._number$_value, other.coerceValueToMatch$1(this)); return t1; } catch (exception) { if (A.unwrapException(exception) instanceof A.SassScriptException) { this.coerceValueToMatch$1(other); throw exception; } else throw exception; } }, _coerceUnits$2(other, operation) { return this._coerceUnits$1$2(other, operation, type$.dynamic); }, multiplyUnits$3(value, otherNumerators, otherDenominators) { var _0_0, _0_1, _0_2, _0_3, _0_6, _0_7, _0_9, _0_11, _0_13, numerators_case_0, denominators_case_0, t1, denominators_case_00, t2, t3, denominators_case_1, numerators_case_1, newNumerators, mutableOtherDenominators, _i, numerator, mutableDenominatorUnits, _this = this, _null = null, _box_0 = {}; _box_0.value = value; _0_0 = new A._Record_4([_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this), otherNumerators, otherDenominators]); _0_1 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure(_0_0)); _0_2 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure0(_0_0)); _0_3 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure1(_0_0)); _0_6 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure2(_0_3)); _0_7 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure3(_0_0)); _0_9 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure4(_0_7)); _0_11 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure5(_0_1)); _0_13 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure6(_0_2)); numerators_case_0 = _0_1._readFinal$0(); denominators_case_0 = _0_2._readFinal$0(); t1 = _0_6._readFinal$0() && _0_9._readFinal$0(); if (!t1) if (_0_11._readFinal$0()) if (_0_13._readFinal$0()) { numerators_case_0 = _0_3._readFinal$0(); denominators_case_00 = _0_7._readFinal$0(); denominators_case_0 = denominators_case_00; t1 = true; } else t1 = false; else t1 = false; else t1 = true; if (t1) { t2 = denominators_case_0; t1 = numerators_case_0; t3 = true; } else { t2 = _null; t1 = t2; t3 = false; } if (!t3) { if (_0_11._readFinal$0()) { denominators_case_1 = _0_2._readFinal$0(); numerators_case_1 = _0_3._readFinal$0(); t3 = _0_9._readFinal$0(); t3 = t3; } else { numerators_case_1 = _null; denominators_case_1 = numerators_case_1; t3 = false; } if (!t3) { numerators_case_1 = _0_1._readFinal$0(); if (_0_13._readFinal$0()) if (_0_6._readFinal$0()) { denominators_case_1 = _0_7._readFinal$0(); t3 = true; } else t3 = false; else t3 = false; } else t3 = true; if (t3) if (!_this._areAnyConvertible$2(numerators_case_1, denominators_case_1)) { t2 = denominators_case_1; t1 = numerators_case_1; t3 = true; } else t3 = false; else t3 = false; } else t3 = true; if (t3) return A.SassNumber_SassNumber$withUnits(value, t2, t1); newNumerators = A._setArrayType([], type$.JSArray_String); mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators)); for (t1 = _this.get$numeratorUnits(_this), t2 = t1.length, _i = 0; _i < t2; ++_i) { numerator = t1[_i]; A.removeFirstWhere(mutableOtherDenominators, new A.SassNumber_multiplyUnits_closure7(_box_0, numerator), new A.SassNumber_multiplyUnits_closure8(newNumerators, numerator)); } t1 = _this.get$denominatorUnits(_this); mutableDenominatorUnits = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1)); for (t1 = otherNumerators.length, _i = 0; _i < t1; ++_i) { numerator = otherNumerators[_i]; A.removeFirstWhere(mutableDenominatorUnits, new A.SassNumber_multiplyUnits_closure9(_box_0, numerator), new A.SassNumber_multiplyUnits_closure10(newNumerators, numerator)); } t1 = _box_0.value; B.JSArray_methods.addAll$1(mutableDenominatorUnits, mutableOtherDenominators); return A.SassNumber_SassNumber$withUnits(t1, mutableDenominatorUnits, newNumerators); }, _areAnyConvertible$2(units1, units2) { return J.any$1$ax(units1, new A.SassNumber__areAnyConvertible_closure(units2)); }, _unitString$2(numerators, denominators) { var t1, denominator, _0_0 = new A._Record_2(numerators, denominators), _0_4 = A._InitializedCell$(new A.SassNumber__unitString_closure(_0_0)), _0_5 = A._InitializedCell$(new A.SassNumber__unitString_closure0(_0_0)), _0_6 = A._InitializedCell$(new A.SassNumber__unitString_closure1(_0_5)), _0_7 = A._InitializedCell$(new A.SassNumber__unitString_closure2(_0_6)); $label0$0: { if (_0_4._readFinal$0() && _0_7._readFinal$0()) { t1 = "no units"; break $label0$0; } if (_0_4._readFinal$0()) if (J.$eq$(_0_6._readFinal$0(), 1)) { denominator = J.$index$asx(_0_5._readFinal$0(), 0); t1 = true; } else { denominator = null; t1 = false; } else { denominator = null; t1 = false; } if (t1) { t1 = A.S(denominator) + "^-1"; break $label0$0; } if (_0_4._readFinal$0()) { t1 = "(" + B.JSArray_methods.join$1(denominators, "*") + ")^-1"; break $label0$0; } if (_0_7._readFinal$0()) { t1 = B.JSArray_methods.join$1(numerators, "*"); break $label0$0; } t1 = B.JSArray_methods.join$1(numerators, "*") + "/" + B.JSArray_methods.join$1(denominators, "*"); break $label0$0; } return t1; }, $eq(_, other) { var _this = this; if (other == null) return false; if (!(other instanceof A.SassNumber)) return false; if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length || _this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length) return false; if (!_this.get$hasUnits()) return A.fuzzyEquals(_this._number$_value, other._number$_value); 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)))) return false; 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))); }, get$hashCode(_) { var _this = this, t1 = _this.hashCache; 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; }, _canonicalizeUnitList$1(units) { var type, t1 = units.length; if (t1 === 0) return units; if (t1 === 1) { type = $.$get$_typesByUnit().$index(0, B.JSArray_methods.get$first(units)); if (type == null) t1 = units; else { t1 = B.Map_ws7dy.$index(0, type); t1.toString; t1 = A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_String); } return t1; } t1 = A._arrayInstanceType(units)._eval$1("MappedListIterable<1,String>"); t1 = A.List_List$of(new A.MappedListIterable(units, new A.SassNumber__canonicalizeUnitList_closure(), t1), true, t1._eval$1("ListIterable.E")); B.JSArray_methods.sort$0(t1); return t1; }, _canonicalMultiplier$1(units) { return B.JSArray_methods.fold$2(units, 1, new A.SassNumber__canonicalMultiplier_closure(this)); }, canonicalMultiplierForUnit$1(unit) { var t1, innerMap = B.Map_nfuzN.$index(0, unit); if (innerMap == null) t1 = 1; else { t1 = innerMap.get$values(innerMap); t1 = 1 / t1.get$first(t1); } return t1; }, unitSuggestion$2($name, unit) { var t2, t3, result, _this = this, t1 = _this.get$denominatorUnits(_this); t1 = new A.MappedListIterable(t1, new A.SassNumber_unitSuggestion_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0); t2 = _this.get$numeratorUnits(_this); t2 = new A.MappedListIterable(t2, new A.SassNumber_unitSuggestion_closure0(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String>")).join$0(0); t3 = unit == null ? "" : " * 1" + unit; result = "$" + $name + t1 + t2 + t3; return _this.get$numeratorUnits(_this).length === 0 ? result : "calc(" + result + ")"; }, unitSuggestion$1($name) { return this.unitSuggestion$2($name, null); } }; A.SassNumber_SassNumber$withUnits_closure0.prototype = { call$0() { return this._0_1._readFinal$0() == null; }, $signature: 1 }; A.SassNumber_SassNumber$withUnits_closure.prototype = { call$0() { return this._0_0._0; }, $signature: 96 }; A.SassNumber_SassNumber$withUnits_closure1.prototype = { call$0() { var t1 = this._0_1._readFinal$0(); return J.get$length$asx(t1 == null ? type$.List_String._as(t1) : t1); }, $signature: 3 }; A.SassNumber_SassNumber$withUnits_closure2.prototype = { call$0() { return this._0_4._readFinal$0() <= 0; }, $signature: 1 }; A.SassNumber_SassNumber$withUnits_closure4.prototype = { call$0() { return this._0_7._readFinal$0() == null; }, $signature: 1 }; A.SassNumber_SassNumber$withUnits_closure3.prototype = { call$0() { return this._0_0._1; }, $signature: 96 }; A.SassNumber_SassNumber$withUnits_closure5.prototype = { call$0() { return J.get$length$asx(this._0_7._readFinal$0()) <= 0; }, $signature: 1 }; A.SassNumber_SassNumber$withUnits_closure6.prototype = { call$0() { return this._1_0._0; }, $signature: 26 }; A.SassNumber_SassNumber$withUnits_closure7.prototype = { call$0() { return J.get$length$asx(this._1_1._readFinal$0()); }, $signature: 3 }; A.SassNumber_SassNumber$withUnits_closure8.prototype = { call$0() { return J.get$length$asx(this._1_0._1) <= 0; }, $signature: 1 }; A.SassNumber__coerceOrConvertValue_compatibilityException.prototype = { call$0() { var t2, t3, message, t4, type, unit, _this = this, t1 = _this.other; if (t1 != null) { t2 = _this.$this; t3 = t2.toString$0(0) + " and"; message = new A.StringBuffer(t3); t4 = _this.otherName; if (t4 != null) t3 = message._contents = t3 + (" $" + t4 + ":"); t1 = t3 + (" " + t1.toString$0(0) + " have incompatible units"); message._contents = t1; if (!t2.get$hasUnits() || !_this.otherHasUnits) message._contents = t1 + " (one has units and the other doesn't)"; t1 = message.toString$0(0) + "."; t2 = _this.name; return new A.SassScriptException(t2 == null ? t1 : "$" + t2 + ": " + t1); } else if (!_this.otherHasUnits) { t1 = "Expected " + _this.$this.toString$0(0) + " to have no units."; t2 = _this.name; return new A.SassScriptException(t2 == null ? t1 : "$" + t2 + ": " + t1); } else { t1 = _this.newNumerators; if (t1.length === 1 && _this.newDenominators.length === 0) { type = $.$get$_typesByUnit().$index(0, B.JSArray_methods.get$first(t1)); if (type != null) { t1 = _this.$this.toString$0(0); t2 = B.JSArray_methods.contains$1(A._setArrayType([97, 101, 105, 111, 117], type$.JSArray_int), type.charCodeAt(0)) ? "an " + type : "a " + type; t3 = B.Map_ws7dy.$index(0, type); t3.toString; t3 = "Expected " + t1 + " to have " + t2 + " unit (" + B.JSArray_methods.join$1(t3, ", ") + ")."; t2 = _this.name; return new A.SassScriptException(t2 == null ? t3 : "$" + t2 + ": " + t3); } } t2 = _this.newDenominators; unit = A.pluralize("unit", t1.length + t2.length, null); t3 = _this.$this; t2 = "Expected " + t3.toString$0(0) + " to have " + unit + " " + t3._unitString$2(t1, t2) + "."; t1 = _this.name; return new A.SassScriptException(t1 == null ? t2 : "$" + t1 + ": " + t2); } }, $signature: 415 }; A.SassNumber__coerceOrConvertValue_closure.prototype = { call$1(oldNumerator) { var factor = A.conversionFactor(this.newNumerator, oldNumerator); if (factor == null) return false; this._box_0.value *= factor; return true; }, $signature: 10 }; A.SassNumber__coerceOrConvertValue_closure0.prototype = { call$0() { return A.throwExpression(this.compatibilityException.call$0()); }, $signature: 0 }; A.SassNumber__coerceOrConvertValue_closure1.prototype = { call$1(oldDenominator) { var factor = A.conversionFactor(this.newDenominator, oldDenominator); if (factor == null) return false; this._box_0.value /= factor; return true; }, $signature: 10 }; A.SassNumber__coerceOrConvertValue_closure2.prototype = { call$0() { return A.throwExpression(this.compatibilityException.call$0()); }, $signature: 0 }; A.SassNumber_plus_closure.prototype = { call$2(num1, num2) { return num1 + num2; }, $signature: 66 }; A.SassNumber_minus_closure.prototype = { call$2(num1, num2) { return num1 - num2; }, $signature: 66 }; A.SassNumber_multiplyUnits_closure.prototype = { call$0() { return this._0_0._values[0]; }, $signature: 26 }; A.SassNumber_multiplyUnits_closure0.prototype = { call$0() { return this._0_0._values[1]; }, $signature: 26 }; A.SassNumber_multiplyUnits_closure1.prototype = { call$0() { return this._0_0._values[2]; }, $signature: 26 }; A.SassNumber_multiplyUnits_closure2.prototype = { call$0() { return J.get$length$asx(this._0_3._readFinal$0()) <= 0; }, $signature: 1 }; A.SassNumber_multiplyUnits_closure3.prototype = { call$0() { return this._0_0._values[3]; }, $signature: 26 }; A.SassNumber_multiplyUnits_closure4.prototype = { call$0() { return J.get$length$asx(this._0_7._readFinal$0()) <= 0; }, $signature: 1 }; A.SassNumber_multiplyUnits_closure5.prototype = { call$0() { return J.get$length$asx(this._0_1._readFinal$0()) <= 0; }, $signature: 1 }; A.SassNumber_multiplyUnits_closure6.prototype = { call$0() { return J.get$length$asx(this._0_2._readFinal$0()) <= 0; }, $signature: 1 }; A.SassNumber_multiplyUnits_closure7.prototype = { call$1(denominator) { var factor = A.conversionFactor(this.numerator, denominator); if (factor == null) return false; this._box_0.value /= factor; return true; }, $signature: 10 }; A.SassNumber_multiplyUnits_closure8.prototype = { call$0() { return this.newNumerators.push(this.numerator); }, $signature: 0 }; A.SassNumber_multiplyUnits_closure9.prototype = { call$1(denominator) { var factor = A.conversionFactor(this.numerator, denominator); if (factor == null) return false; this._box_0.value /= factor; return true; }, $signature: 10 }; A.SassNumber_multiplyUnits_closure10.prototype = { call$0() { return this.newNumerators.push(this.numerator); }, $signature: 0 }; A.SassNumber__areAnyConvertible_closure.prototype = { call$1(unit1) { var innerMap, t1, _0_0 = B.Map_nfuzN.$index(0, unit1); $label0$0: { if (_0_0 != null) { innerMap = _0_0; t1 = true; } else { innerMap = null; t1 = false; } if (t1) { t1 = J.any$1$ax(this.units2, innerMap.get$containsKey()); break $label0$0; } t1 = J.contains$1$asx(this.units2, unit1); break $label0$0; } return t1; }, $signature: 10 }; A.SassNumber__unitString_closure.prototype = { call$0() { return J.get$length$asx(this._0_0._0) <= 0; }, $signature: 1 }; A.SassNumber__unitString_closure0.prototype = { call$0() { return this._0_0._1; }, $signature: 26 }; A.SassNumber__unitString_closure1.prototype = { call$0() { return J.get$length$asx(this._0_5._readFinal$0()); }, $signature: 3 }; A.SassNumber__unitString_closure2.prototype = { call$0() { return this._0_6._readFinal$0() <= 0; }, $signature: 1 }; A.SassNumber__canonicalizeUnitList_closure.prototype = { call$1(unit) { var t1, type = $.$get$_typesByUnit().$index(0, unit); if (type == null) t1 = unit; else { t1 = B.Map_ws7dy.$index(0, type); t1.toString; t1 = B.JSArray_methods.get$first(t1); } return t1; }, $signature: 7 }; A.SassNumber__canonicalMultiplier_closure.prototype = { call$2(multiplier, unit) { return multiplier * this.$this.canonicalMultiplierForUnit$1(unit); }, $signature: 220 }; A.SassNumber_unitSuggestion_closure.prototype = { call$1(unit) { return " * 1" + unit; }, $signature: 7 }; A.SassNumber_unitSuggestion_closure0.prototype = { call$1(unit) { return " / 1" + unit; }, $signature: 7 }; A.ComplexSassNumber.prototype = { get$numeratorUnits(_) { return this._numeratorUnits; }, get$denominatorUnits(_) { return this._denominatorUnits; }, get$hasUnits() { return true; }, get$hasComplexUnits() { return true; }, hasUnit$1(unit) { return false; }, compatibleWithUnit$1(unit) { return false; }, hasPossiblyCompatibleUnits$1(other) { throw A.wrapException(A.UnimplementedError$(string$.Comple)); }, withValue$1(value) { return new A.ComplexSassNumber(this._numeratorUnits, this._denominatorUnits, value, null); }, withSlash$2(numerator, denominator) { return new A.ComplexSassNumber(this._numeratorUnits, this._denominatorUnits, this._number$_value, new A._Record_2(numerator, denominator)); } }; A.SingleUnitSassNumber.prototype = { get$numeratorUnits(_) { return A.List_List$unmodifiable([this._unit], type$.String); }, get$denominatorUnits(_) { return B.List_empty; }, get$hasUnits() { return true; }, get$hasComplexUnits() { return false; }, withValue$1(value) { return new A.SingleUnitSassNumber(this._unit, value, null); }, withSlash$2(numerator, denominator) { return new A.SingleUnitSassNumber(this._unit, this._number$_value, new A._Record_2(numerator, denominator)); }, hasUnit$1(unit) { return unit === this._unit; }, hasCompatibleUnits$1(other) { return other instanceof A.SingleUnitSassNumber && A.conversionFactor(this._unit, other._unit) != null; }, hasPossiblyCompatibleUnits$1(other) { var t1, knownCompatibilities, otherUnit; if (!(other instanceof A.SingleUnitSassNumber)) return false; t1 = $.$get$_knownCompatibilitiesByUnit(); knownCompatibilities = t1.$index(0, this._unit.toLowerCase()); if (knownCompatibilities == null) return true; otherUnit = other._unit.toLowerCase(); return knownCompatibilities.contains$1(0, otherUnit) || !t1.containsKey$1(otherUnit); }, compatibleWithUnit$1(unit) { return A.conversionFactor(this._unit, unit) != null; }, coerceToMatch$1(other) { var t1 = other instanceof A.SingleUnitSassNumber ? this._coerceToUnit$1(other._unit) : null; return t1 == null ? this.super$SassNumber$coerceToMatch(other, null, null) : t1; }, coerceValueToMatch$3(other, $name, otherName) { var t1 = other instanceof A.SingleUnitSassNumber ? this._coerceValueToUnit$1(other._unit) : null; return t1 == null ? this.super$SassNumber$coerceValueToMatch(other, $name, otherName) : t1; }, coerceValueToMatch$1(other) { return this.coerceValueToMatch$3(other, null, null); }, convertValueToMatch$3(other, $name, otherName) { var t1 = other instanceof A.SingleUnitSassNumber ? this._coerceValueToUnit$1(other._unit) : null; return t1 == null ? this.super$SassNumber$convertValueToMatch(other, $name, otherName) : t1; }, convertValueToMatch$1(other) { return this.convertValueToMatch$3(other, null, null); }, coerce$2(newNumerators, newDenominators) { var t1 = newNumerators.length === 1 && newDenominators.length === 0 ? this._coerceToUnit$1(newNumerators[0]) : null; return t1 == null ? this.super$SassNumber$coerce(newNumerators, newDenominators, null) : t1; }, coerceValue$3(newNumerators, newDenominators, $name) { var t1 = newNumerators.length === 1 && newDenominators.length === 0 ? this._coerceValueToUnit$1(newNumerators[0]) : null; return t1 == null ? this.super$SassNumber$coerceValue(newNumerators, newDenominators, $name) : t1; }, coerceValueToUnit$2(unit, $name) { var t1 = this._coerceValueToUnit$1(unit); return t1 == null ? this.super$SassNumber$coerceValueToUnit(unit, $name) : t1; }, coerceValueToUnit$1(unit) { return this.coerceValueToUnit$2(unit, null); }, _coerceToUnit$1(unit) { var t1 = this._unit; if (t1 === unit) return this; return A.NullableExtension_andThen(A.conversionFactor(unit, t1), new A.SingleUnitSassNumber__coerceToUnit_closure(this, unit)); }, _coerceValueToUnit$1(unit) { return A.NullableExtension_andThen(A.conversionFactor(unit, this._unit), new A.SingleUnitSassNumber__coerceValueToUnit_closure(this)); }, multiplyUnits$3(value, otherNumerators, otherDenominators) { var mutableOtherDenominators, t1 = {}; t1.value = value; t1.newNumerators = otherNumerators; mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators)); A.removeFirstWhere(mutableOtherDenominators, new A.SingleUnitSassNumber_multiplyUnits_closure(t1, this), new A.SingleUnitSassNumber_multiplyUnits_closure0(t1, this)); return A.SassNumber_SassNumber$withUnits(t1.value, mutableOtherDenominators, t1.newNumerators); }, unaryMinus$0() { return new A.SingleUnitSassNumber(this._unit, -this._number$_value, null); }, $eq(_, other) { var factor; if (other == null) return false; if (other instanceof A.SingleUnitSassNumber) { factor = A.conversionFactor(other._unit, this._unit); return factor != null && A.fuzzyEquals(this._number$_value * factor, other._number$_value); } else return false; }, get$hashCode(_) { var _this = this, t1 = _this.hashCache; return t1 == null ? _this.hashCache = A.fuzzyHashCode(_this._number$_value * _this.canonicalMultiplierForUnit$1(_this._unit)) : t1; } }; A.SingleUnitSassNumber__coerceToUnit_closure.prototype = { call$1(factor) { return new A.SingleUnitSassNumber(this.unit, this.$this._number$_value * factor, null); }, $signature: 420 }; A.SingleUnitSassNumber__coerceValueToUnit_closure.prototype = { call$1(factor) { return this.$this._number$_value * factor; }, $signature: 42 }; A.SingleUnitSassNumber_multiplyUnits_closure.prototype = { call$1(denominator) { var factor = A.conversionFactor(denominator, this.$this._unit); if (factor == null) return false; this._box_0.value *= factor; return true; }, $signature: 10 }; A.SingleUnitSassNumber_multiplyUnits_closure0.prototype = { call$0() { var t1 = A._setArrayType([this.$this._unit], type$.JSArray_String), t2 = this._box_0; B.JSArray_methods.addAll$1(t1, t2.newNumerators); t2.newNumerators = t1; }, $signature: 0 }; A.UnitlessSassNumber.prototype = { get$numeratorUnits(_) { return B.List_empty; }, get$denominatorUnits(_) { return B.List_empty; }, get$hasUnits() { return false; }, get$hasComplexUnits() { return false; }, withValue$1(value) { return new A.UnitlessSassNumber(value, null); }, withSlash$2(numerator, denominator) { return new A.UnitlessSassNumber(this._number$_value, new A._Record_2(numerator, denominator)); }, hasUnit$1(unit) { return false; }, hasCompatibleUnits$1(other) { return other instanceof A.UnitlessSassNumber; }, hasPossiblyCompatibleUnits$1(other) { return other instanceof A.UnitlessSassNumber; }, compatibleWithUnit$1(unit) { return true; }, coerceToMatch$1(other) { return other.withValue$1(this._number$_value); }, coerceValueToMatch$3(other, $name, otherName) { return this._number$_value; }, coerceValueToMatch$1(other) { return this.coerceValueToMatch$3(other, null, null); }, convertValueToMatch$3(other, $name, otherName) { return other.get$hasUnits() ? this.super$SassNumber$convertValueToMatch(other, $name, otherName) : this._number$_value; }, convertValueToMatch$1(other) { return this.convertValueToMatch$3(other, null, null); }, coerce$2(newNumerators, newDenominators) { return A.SassNumber_SassNumber$withUnits(this._number$_value, newDenominators, newNumerators); }, coerceValue$3(newNumerators, newDenominators, $name) { return this._number$_value; }, coerceValueToUnit$2(unit, $name) { return this._number$_value; }, coerceValueToUnit$1(unit) { return this.coerceValueToUnit$2(unit, null); }, greaterThan$1(other) { var t1, t2; if (other instanceof A.SassNumber) { t1 = this._number$_value; t2 = other._number$_value; return t1 > t2 && !A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false; } return this.super$SassNumber$greaterThan(other); }, greaterThanOrEquals$1(other) { var t1, t2; if (other instanceof A.SassNumber) { t1 = this._number$_value; t2 = other._number$_value; return t1 > t2 || A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false; } return this.super$SassNumber$greaterThanOrEquals(other); }, lessThan$1(other) { var t1, t2; if (other instanceof A.SassNumber) { t1 = this._number$_value; t2 = other._number$_value; return t1 < t2 && !A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false; } return this.super$SassNumber$lessThan(other); }, lessThanOrEquals$1(other) { var t1, t2; if (other instanceof A.SassNumber) { t1 = this._number$_value; t2 = other._number$_value; return t1 < t2 || A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false; } return this.super$SassNumber$lessThanOrEquals(other); }, modulo$1(other) { if (other instanceof A.SassNumber) return other.withValue$1(A.moduloLikeSass(this._number$_value, other._number$_value)); return this.super$SassNumber$modulo(other); }, plus$1(other) { if (other instanceof A.SassNumber) return other.withValue$1(this._number$_value + other._number$_value); return this.super$SassNumber$plus(other); }, minus$1(other) { if (other instanceof A.SassNumber) return other.withValue$1(this._number$_value - other._number$_value); return this.super$SassNumber$minus(other); }, times$1(other) { if (other instanceof A.SassNumber) return other.withValue$1(this._number$_value * other._number$_value); return this.super$SassNumber$times(other); }, dividedBy$1(other) { var t1, t2; if (other instanceof A.SassNumber) { t1 = this._number$_value / other._number$_value; if (other.get$hasUnits()) { t2 = other.get$denominatorUnits(other); t2 = A.SassNumber_SassNumber$withUnits(t1, other.get$numeratorUnits(other), t2); t1 = t2; } else t1 = new A.UnitlessSassNumber(t1, null); return t1; } return this.super$SassNumber$dividedBy(other); }, unaryMinus$0() { return new A.UnitlessSassNumber(-this._number$_value, null); }, $eq(_, other) { if (other == null) return false; return other instanceof A.UnitlessSassNumber && A.fuzzyEquals(this._number$_value, other._number$_value); }, get$hashCode(_) { var t1 = this.hashCache; return t1 == null ? this.hashCache = A.fuzzyHashCode(this._number$_value) : t1; } }; A.SassString.prototype = { get$_sassLength() { var t1, result, _this = this, value = _this.__SassString__sassLength_FI; if (value === $) { t1 = new A.Runes(_this._string$_text); result = t1.get$length(t1); _this.__SassString__sassLength_FI !== $ && A.throwUnnamedLateFieldADI(); _this.__SassString__sassLength_FI = result; value = result; } return value; }, get$isSpecialNumber() { var t1, _2_0, _0_0, _1_0; if (this._hasQuotes) return false; t1 = this._string$_text; if (t1.length < 6) return false; _2_0 = t1.charCodeAt(0); $label1$1: { if (99 === _2_0 || 67 === _2_0) { _0_0 = t1.charCodeAt(1); $label0$0: { if (108 === _0_0 || 76 === _0_0) { t1 = (t1.charCodeAt(2) | 32) === 97 && (t1.charCodeAt(3) | 32) === 109 && (t1.charCodeAt(4) | 32) === 112 && t1.charCodeAt(5) === 40; break $label0$0; } if (97 === _0_0 || 65 === _0_0) { t1 = (t1.charCodeAt(2) | 32) === 108 && (t1.charCodeAt(3) | 32) === 99 && t1.charCodeAt(4) === 40; break $label0$0; } t1 = false; break $label0$0; } break $label1$1; } if (118 === _2_0 || 86 === _2_0) { t1 = (t1.charCodeAt(1) | 32) === 97 && (t1.charCodeAt(2) | 32) === 114 && t1.charCodeAt(3) === 40; break $label1$1; } if (101 === _2_0 || 69 === _2_0) { t1 = (t1.charCodeAt(1) | 32) === 110 && (t1.charCodeAt(2) | 32) === 118 && t1.charCodeAt(3) === 40; break $label1$1; } if (109 === _2_0 || 77 === _2_0) { _1_0 = t1.charCodeAt(1); $label2$2: { if (97 === _1_0 || 65 === _1_0) { t1 = (t1.charCodeAt(2) | 32) === 120 && t1.charCodeAt(3) === 40; break $label2$2; } if (105 === _1_0 || 73 === _1_0) { t1 = (t1.charCodeAt(2) | 32) === 110 && t1.charCodeAt(3) === 40; break $label2$2; } t1 = false; break $label2$2; } break $label1$1; } t1 = false; break $label1$1; } return t1; }, get$isVar() { if (this._hasQuotes) return false; var t1 = this._string$_text; if (t1.length < 8) return false; return (t1.charCodeAt(0) | 32) === 118 && (t1.charCodeAt(1) | 32) === 97 && (t1.charCodeAt(2) | 32) === 114 && t1.charCodeAt(3) === 40; }, get$isBlank() { return !this._hasQuotes && this._string$_text.length === 0; }, accept$1$1(visitor) { var t1 = visitor._quote && this._hasQuotes, t2 = this._string$_text; if (t1) visitor._visitQuotedString$1(t2); else visitor._visitUnquotedString$1(t2); return null; }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertString$1($name) { return this; }, plus$1(other) { var t1 = this._string$_text, t2 = this._hasQuotes; return other instanceof A.SassString ? new A.SassString(t1 + other._string$_text, t2) : new A.SassString(t1 + A.serializeValue(other, false, true), t2); }, $eq(_, other) { if (other == null) return false; return other instanceof A.SassString && this._string$_text === other._string$_text; }, get$hashCode(_) { var t1 = this._hashCache; return t1 == null ? this._hashCache = B.JSString_methods.get$hashCode(this._string$_text) : t1; } }; A.AnySelectorVisitor.prototype = { visitComplexSelector$1(complex) { return B.JSArray_methods.any$1(complex.components, new A.AnySelectorVisitor_visitComplexSelector_closure(this)); }, visitCompoundSelector$1(compound) { return B.JSArray_methods.any$1(compound.components, new A.AnySelectorVisitor_visitCompoundSelector_closure(this)); }, visitPseudoSelector$1(pseudo) { var selector = pseudo.selector; return selector == null ? false : this.visitSelectorList$1(selector); }, visitSelectorList$1(list) { return B.JSArray_methods.any$1(list.components, this.get$visitComplexSelector()); }, visitAttributeSelector$1(attribute) { return false; }, visitClassSelector$1(klass) { return false; }, visitIDSelector$1(id) { return false; }, visitParentSelector$1($parent) { return false; }, visitPlaceholderSelector$1(placeholder) { return false; }, visitTypeSelector$1(type) { return false; }, visitUniversalSelector$1(universal) { return false; } }; A.AnySelectorVisitor_visitComplexSelector_closure.prototype = { call$1(component) { return this.$this.visitCompoundSelector$1(component.selector); }, $signature: 53 }; A.AnySelectorVisitor_visitCompoundSelector_closure.prototype = { call$1(simple) { return simple.accept$1(this.$this); }, $signature: 16 }; A._EvaluateVisitor0.prototype = { _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) { var t2, metaModule, t3, _i, module, $function, t4, _this = this, _s20_ = "$name, $module: null", _s9_ = "sass:meta", _s7_ = "$module", t1 = type$.JSArray_AsyncBuiltInCallable, 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...) {", null, _s9_).parseArgumentDeclaration$0(), new A._EvaluateVisitor_closure22(_this), false)], t1), metaMixins = A._setArrayType([A.AsyncBuiltInCallable$mixin("load-css", "$url, $with: null", new A._EvaluateVisitor_closure23(_this), _s9_), A.BuiltInCallable$mixin("apply", "$mixin, $args...", new A._EvaluateVisitor_closure24(_this), true, _s9_)], t1); t1 = type$.AsyncBuiltInCallable; t2 = A.List_List$of($.$get$global(), true, t1); B.JSArray_methods.addAll$1(t2, $.$get$local()); B.JSArray_methods.addAll$1(t2, metaFunctions); metaModule = A.BuiltInModule$("meta", t2, metaMixins, null, t1); 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) { module = t1[_i]; t3.$indexSet(0, module.url, module); } t1 = A._setArrayType([], type$.JSArray_AsyncCallable); B.JSArray_methods.addAll$1(t1, $.$get$globalFunctions()); B.JSArray_methods.addAll$1(t1, metaFunctions); for (t2 = t1.length, t3 = _this._async_evaluate$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) { $function = t1[_i]; t4 = J.get$name$x($function); t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function); } }, run$2(_, importer, node) { return this.run$body$_EvaluateVisitor(0, importer, node); }, run$body$_EvaluateVisitor(_, importer, node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet), $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, $async$exception; var $async$run$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start $async$handler = 4; t1 = type$.nullable_Object; $async$goto = 7; return A._asyncAwait(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), $async$run$2); case 7: // returning from await. t1 = $async$result; $async$returnValue = t1; // goto return $async$goto = 1; break; $async$handler = 2; // goto after finally $async$goto = 6; break; case 4: // catch $async$handler = 3; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (t1 instanceof A.SassException) { error = t1; stackTrace = A.getTraceFromException($async$exception); A.throwWithTrace(error.withLoadedUrls$1($async$self._async_evaluate$_loadedUrls), error, stackTrace); } else throw $async$exception; // goto after finally $async$goto = 6; break; case 3: // uncaught // goto rethrow $async$goto = 2; break; case 6: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$run$2, $async$completer); }, _async_evaluate$_assertInModule$1$2(value, $name) { if (value != null) return value; throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module.")); }, _async_evaluate$_assertInModule$2(value, $name) { return this._async_evaluate$_assertInModule$1$2(value, $name, type$.dynamic); }, _async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) { return this._loadModule$body$_EvaluateVisitor(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors); }, _async_evaluate$_loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) { return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false); }, _async_evaluate$_loadModule$4(url, stackFrame, nodeWithSpan, callback) { return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false); }, _loadModule$body$_EvaluateVisitor(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$returnValue, $async$self = this, _0_0, t2, t1; var $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = {}; t1.builtInModule = null; _0_0 = $async$self._async_evaluate$_builtInModules.$index(0, url); if (_0_0 != null) { t1.builtInModule = _0_0; t2 = true; } else t2 = false; $async$goto = t2 ? 3 : 4; break; case 3: // then if (configuration instanceof A.ExplicitConfiguration) { t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured."; t2 = configuration.nodeWithSpan; throw A.wrapException($async$self._async_evaluate$_exception$2(t1, t2.get$span(t2))); } $async$goto = 5; 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); case 5: // returning from await. // goto return $async$goto = 1; break; case 4: // join $async$goto = 6; 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); case 6: // returning from await. case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer); }, _async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) { return this._execute$body$_EvaluateVisitor(importer, stylesheet, configuration, namesInErrors, nodeWithSpan); }, _async_evaluate$_execute$2(importer, stylesheet) { return this._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null); }, _execute$body$_EvaluateVisitor(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Module_AsyncCallable), $async$returnValue, $async$self = this, _0_0, alreadyLoaded, t2, currentConfiguration, t3, message, existingSpan, configurationSpan, environment, css, preModuleComments, extensionStore, module, t1, url; var $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = stylesheet.span; url = t1.get$sourceUrl(t1); t1 = $async$self._async_evaluate$_modules; _0_0 = t1.$index(0, url); if (_0_0 != null) { alreadyLoaded = _0_0; t2 = true; } else { alreadyLoaded = null; t2 = false; } if (t2) { t1 = configuration == null; currentConfiguration = t1 ? $async$self._async_evaluate$_configuration : configuration; t2 = $async$self._async_evaluate$_moduleConfigurations.$index(0, url); t3 = t2.__originalConfiguration; t2 = t3 == null ? t2 : t3; t3 = currentConfiguration.__originalConfiguration; if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration) { message = namesInErrors ? $.$get$context().prettyUri$1(url) + string$.x20was_a : string$.This_mw; t2 = $async$self._async_evaluate$_moduleNodes.$index(0, url); existingSpan = t2 == null ? null : t2.get$span(t2); if (t1) { t1 = currentConfiguration.nodeWithSpan; configurationSpan = t1.get$span(t1); } else configurationSpan = null; t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); if (existingSpan != null) t1.$indexSet(0, existingSpan, "original load"); if (configurationSpan != null) t1.$indexSet(0, configurationSpan, "configuration"); throw A.wrapException(t1.get$isEmpty(t1) ? $async$self._async_evaluate$_exception$1(message) : $async$self._async_evaluate$_multiSpanException$3(message, "new load", t1)); } $async$returnValue = alreadyLoaded; // goto return $async$goto = 1; break; } environment = A.AsyncEnvironment$(); css = A._Cell$(); preModuleComments = A._Cell$(); extensionStore = A.ExtensionStore$(); $async$goto = 3; 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); case 3: // returning from await. t2 = css._readLocal$0(); t3 = preModuleComments._readLocal$0(); module = environment.toModule$3(t2, t3 == null ? B.Map_empty7 : t3, extensionStore); if (url != null) { t1.$indexSet(0, url, module); $async$self._async_evaluate$_moduleConfigurations.$indexSet(0, url, $async$self._async_evaluate$_configuration); if (nodeWithSpan != null) $async$self._async_evaluate$_moduleNodes.$indexSet(0, url, nodeWithSpan); } $async$returnValue = module; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer); }, _async_evaluate$_addOutOfOrderImports$0() { var t1, t2, _this = this, _s5_ = "_root", _s13_ = "_endOfImports", _0_0 = _this._async_evaluate$_outOfOrderImports; $label0$0: { if (_0_0 == null) { t1 = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).children; break $label0$0; } t1 = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_); t1 = t1.children; 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); B.JSArray_methods.addAll$1(t1, _0_0); t2 = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).children; 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"))); break $label0$0; } return t1; }, _async_evaluate$_combineCss$2$clone(root, clone) { var selectors, _0_0, unsatisfiedExtension, t1, imports, css, sorted, t2; if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure1())) { selectors = root.get$extensionStore().get$simpleSelectors(); _0_0 = A.IterableExtension_get_firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure2(selectors))); if (_0_0 != null) { unsatisfiedExtension = _0_0; t1 = true; } else { unsatisfiedExtension = null; t1 = false; } if (t1) this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtension); return root.get$css(root); } t1 = type$.JSArray_CssNode; imports = A._setArrayType([], t1); css = A._setArrayType([], t1); t1 = type$.Module_AsyncCallable; sorted = A.ListQueue$(t1); new A._EvaluateVisitor__combineCss_visitModule0(this, A.LinkedHashSet_LinkedHashSet$_empty(t1), clone, css, imports, sorted).call$1(root); if (root.get$transitivelyContainsExtensions()) this._async_evaluate$_extendModules$1(sorted); t1 = B.JSArray_methods.$add(imports, css); t2 = root.get$css(root); return new A.CssStylesheet(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode), t2.get$span(t2)); }, _async_evaluate$_combineCss$1(root) { return this._async_evaluate$_combineCss$2$clone(root, false); }, _async_evaluate$_extendModules$1(sortedModules) { var t1, t2, t3, originalSelectors, $self, t4, t5, _i, upstream, _0_0, url, t6, downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore), unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension); for (t1 = A._ListQueueIterator$(sortedModules), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1._collection$_current; if (t3 == null) t3 = t2._as(t3); originalSelectors = t3.get$extensionStore().get$simpleSelectors().toSet$0(0); unsatisfiedExtensions.addAll$1(0, t3.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure1(originalSelectors))); $self = downstreamExtensionStores.$index(0, t3.get$url(t3)); t4 = t3.get$extensionStore().get$addExtensions(); if ($self != null) t4.call$1($self); t4 = t3.get$extensionStore(); if (t4.get$isEmpty(t4)) continue; for (t4 = t3.get$upstream(), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, A.throwConcurrentModificationError)(t4), ++_i) { upstream = t4[_i]; _0_0 = upstream.get$url(upstream); if (_0_0 != null) { url = _0_0; t6 = true; } else { url = null; t6 = false; } if (t6) J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(url, new A._EvaluateVisitor__extendModules_closure2()), t3.get$extensionStore()); } unsatisfiedExtensions.removeAll$1(t3.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors))); } if (unsatisfiedExtensions._collection$_length !== 0) this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions)); }, _async_evaluate$_throwForUnsatisfiedExtension$1(extension) { throw A.wrapException(A.SassException$(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span, null)); }, _async_evaluate$_indexAfterImports$1(statements) { var t1, lastImport, i, _0_0; for (t1 = J.getInterceptor$asx(statements), lastImport = -1, i = 0; i < t1.get$length(statements); ++i) { $label0$0: { _0_0 = t1.$index(statements, i); if (_0_0 instanceof A.ModifiableCssImport) break $label0$0; if (_0_0 instanceof A.ModifiableCssComment) continue; break; } lastImport = i; } return lastImport + 1; }, visitStylesheet$1(node) { return this.visitStylesheet$body$_EvaluateVisitor(node); }, visitStylesheet$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t1, t2, _i; var $async$visitStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = node.children, t2 = t1.length, _i = 0; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } $async$goto = 6; return A._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1); case 6: // returning from await. case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitStylesheet$1, $async$completer); }, visitAtRootRule$1(node) { return this.visitAtRootRule$body$_EvaluateVisitor(node); }, visitAtRootRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, unparsedQuery, t1, _1_0, resolved, query, $parent, included, _2_0, grandparent, t2, root, first, rest, innerCopy, outerCopy, _i, copy, _0_0; var $async$visitAtRootRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start _0_0 = node.query; if (_0_0 != null) { unparsedQuery = _0_0; t1 = true; } else { unparsedQuery = null; t1 = false; } $async$goto = t1 ? 3 : 5; break; case 3: // then $async$goto = 6; return A._asyncAwait($async$self._async_evaluate$_performInterpolationWithMap$2$warnForColor(unparsedQuery, true), $async$visitAtRootRule$1); case 6: // returning from await. _1_0 = $async$result; resolved = _1_0._0; _1_0._1; query = A.AtRootQueryParser$(resolved, $async$self._async_evaluate$_logger, null).parse$0(); // goto join $async$goto = 4; break; case 5: // else query = B.AtRootQuery_UsS; case 4: // join $parent = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent"); included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode); for (t1 = type$.CssStylesheet; !t1._is($parent); $parent = grandparent) { if (!query.excludes$1($parent)) included.push($parent); _2_0 = $parent._parent; if (_2_0 != null) { grandparent = _2_0; t2 = true; } else { grandparent = null; t2 = false; } if (!t2) throw A.wrapException(A.StateError$(string$.CssNod)); } root = $async$self._async_evaluate$_trimIncluded$1(included); $async$goto = root === $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") ? 7 : 8; break; case 7: // then $async$goto = 9; 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); case 9: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 8: // join if (included.length >= 1) { first = included[0]; rest = B.JSArray_methods.sublist$1(included, 1); t1 = true; } else { first = null; rest = null; t1 = false; } if (t1) { innerCopy = first.copyWithoutChildren$0(); for (t1 = rest.length, outerCopy = innerCopy, _i = 0; _i < rest.length; rest.length === t1 || (0, A.throwConcurrentModificationError)(rest), ++_i, outerCopy = copy) { copy = rest[_i].copyWithoutChildren$0(); copy.addChild$1(outerCopy); } root.addChild$1(outerCopy); } else innerCopy = root; $async$goto = 10; 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); case 10: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitAtRootRule$1, $async$completer); }, _async_evaluate$_trimIncluded$1(nodes) { var $parent, t1, innermostContiguous, i, t2, _0_0, grandparent, t3, _1_0, root, _this = this, _null = null, _s5_ = "_root", _s22_ = " to be an ancestor of "; if (nodes.length === 0) return _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_); $parent = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__parent, "__parent"); for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = grandparent) { for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = grandparent) { _0_0 = $parent._parent; if (_0_0 != null) { grandparent = _0_0; t3 = true; } else { grandparent = _null; t3 = false; } if (!t3) throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null)); } if (innermostContiguous == null) innermostContiguous = i; _1_0 = $parent._parent; if (_1_0 != null) { grandparent = _1_0; t3 = true; } else { grandparent = _null; t3 = false; } if (!t3) throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null)); } if ($parent !== _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_)) return _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_); innermostContiguous.toString; root = nodes[innermostContiguous]; B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length); return root; }, _async_evaluate$_scopeForAtRoot$4(node, newParent, query, included) { var _this = this, scope = new A._EvaluateVisitor__scopeForAtRoot_closure5(_this, newParent, node), t1 = query._all || query._at_root_query$_rule; if (t1 !== query.include) scope = new A._EvaluateVisitor__scopeForAtRoot_closure6(_this, scope); if (_this._async_evaluate$_mediaQueries != null && query.excludesName$1("media")) scope = new A._EvaluateVisitor__scopeForAtRoot_closure7(_this, scope); if (_this._async_evaluate$_inKeyframes && query.excludesName$1("keyframes")) scope = new A._EvaluateVisitor__scopeForAtRoot_closure8(_this, scope); return _this._async_evaluate$_inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure9()) ? new A._EvaluateVisitor__scopeForAtRoot_closure10(_this, scope) : scope; }, visitContentBlock$1(node) { return A.throwExpression(A.UnsupportedError$(string$.Evalua)); }, visitContentRule$1(node) { return this.visitContentRule$body$_EvaluateVisitor(node); }, visitContentRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, $content; var $async$visitContentRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $content = $async$self._async_evaluate$_environment._async_environment$_content; if ($content == null) { $async$returnValue = null; // goto return $async$goto = 1; break; } $async$goto = 3; 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); case 3: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitContentRule$1, $async$completer); }, visitDebugRule$1(node) { return this.visitDebugRule$body$_EvaluateVisitor(node); }, visitDebugRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, value, t1; var $async$visitDebugRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1); case 3: // returning from await. value = $async$result; t1 = value instanceof A.SassString ? value._string$_text : A.serializeValue(value, true, true); $async$self._async_evaluate$_logger.debug$2(0, t1, node.span); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitDebugRule$1, $async$completer); }, visitDeclaration$1(node) { return this.visitDeclaration$body$_EvaluateVisitor(node); }, visitDeclaration$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t2, $name, _0_0, declarationName, t3, _1_0, expression, value, t4, t5, _2_0, oldDeclarationName, t1; var $async$visitDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = {}; if (($async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot) == null && !$async$self._async_evaluate$_inUnknownAtRule && !$async$self._async_evaluate$_inKeyframes) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Declarm, node.span)); if ($async$self._async_evaluate$_declarationName != null && B.JSString_methods.startsWith$1(node.name.get$initialPlain(), "--")) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Declarw, node.span)); t2 = node.name; $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$2$warnForColor(t2, true), $async$visitDeclaration$1); case 3: // returning from await. $name = $async$result; _0_0 = $async$self._async_evaluate$_declarationName; if (_0_0 != null) { declarationName = _0_0; t3 = true; } else { declarationName = null; t3 = false; } if (t3) $name = new A.CssValue(A.S(declarationName) + "-" + A.S($name.value), $name.span, type$.CssValue_String); _1_0 = node.value; if (_1_0 != null) { expression = _1_0; t3 = true; } else { expression = null; t3 = false; } $async$goto = t3 ? 4 : 5; break; case 4: // then $async$goto = 6; return A._asyncAwait(expression.accept$1($async$self), $async$visitDeclaration$1); case 6: // returning from await. value = $async$result; if (!value.get$isBlank() || value.get$asList().length === 0) { t3 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent"); t4 = expression.get$span(expression); t2 = B.JSString_methods.startsWith$1(t2.get$initialPlain(), "--"); if ($async$self._async_evaluate$_sourceMap) { t5 = A.NullableExtension_andThen(_1_0, $async$self.get$_async_evaluate$_expressionNode()); t5 = t5 == null ? null : J.get$span$z(t5); } else t5 = null; t3.addChild$1(A.ModifiableCssDeclaration$($name, new A.CssValue(value, t4, type$.CssValue_Value), node.span, t2, t5)); } else if (J.startsWith$1$s($name.value, "--")) throw A.wrapException($async$self._async_evaluate$_exception$2("Custom property values may not be empty.", expression.get$span(expression))); case 5: // join t1.children = null; _2_0 = node.children; if (_2_0 != null) { t1.children = _2_0; t2 = true; } else t2 = false; $async$goto = t2 ? 7 : 8; break; case 7: // then oldDeclarationName = $async$self._async_evaluate$_declarationName; $async$self._async_evaluate$_declarationName = $name.value; $async$goto = 9; return A._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure0(t1, $async$self), node.hasDeclarations, type$.Null), $async$visitDeclaration$1); case 9: // returning from await. $async$self._async_evaluate$_declarationName = oldDeclarationName; case 8: // join $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitDeclaration$1, $async$completer); }, visitEachRule$1(node) { return this.visitEachRule$body$_EvaluateVisitor(node); }, visitEachRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t2, _box_0, t1, list, nodeWithSpan, _0_0; var $async$visitEachRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start _box_0 = {}; t1 = node.list; $async$goto = 3; return A._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1); case 3: // returning from await. list = $async$result; nodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t1); _0_0 = node.variables; $label0$0: { _box_0.variable = null; if (_0_0.length === 1) { _box_0.variable = _0_0[0]; t1 = true; } else t1 = false; if (t1) { t1 = new A._EvaluateVisitor_visitEachRule_closure2(_box_0, $async$self, nodeWithSpan); break $label0$0; } t1 = _box_0.variables = null; _box_0.variables = _0_0; t2 = new A._EvaluateVisitor_visitEachRule_closure3(_box_0, $async$self, nodeWithSpan); t1 = t2; break $label0$0; } $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); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitEachRule$1, $async$completer); }, _async_evaluate$_setMultipleVariables$3(variables, value, nodeWithSpan) { var i, list = value.get$asList(), t1 = variables.length, minLength = Math.min(t1, list.length); for (i = 0; i < minLength; ++i) this._async_evaluate$_environment.setLocalVariable$3(variables[i], this._async_evaluate$_withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan); for (i = minLength; i < t1; ++i) this._async_evaluate$_environment.setLocalVariable$3(variables[i], B.C__SassNull, nodeWithSpan); }, visitErrorRule$1(node) { return this.visitErrorRule$body$_EvaluateVisitor(node); }, visitErrorRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$self = this, $async$temp1, $async$temp2; var $async$visitErrorRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$temp1 = A; $async$temp2 = J; $async$goto = 2; return A._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1); case 2: // returning from await. throw $async$temp1.wrapException($async$self._async_evaluate$_exception$2($async$temp2.toString$0$($async$result), node.span)); // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitErrorRule$1, $async$completer); }, visitExtendRule$1(node) { return this.visitExtendRule$body$_EvaluateVisitor(node); }, visitExtendRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, _0_0, targetText, targetMap, compound, styleRule; var $async$visitExtendRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start styleRule = $async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot; if (styleRule == null || $async$self._async_evaluate$_declarationName != null) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.x40exten, node.span)); for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, _i = 0; _i < t2; ++_i) { complex = t1[_i]; if (!complex.accept$1(B._IsBogusVisitor_true)) continue; visitor = A._SerializeVisitor$(null, true, null, true, false, null, true); complex.accept$1(visitor); t6 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)); t7 = complex.accept$1(B.C__IsUselessVisitor) ? "can't" : "shouldn't"; $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_vrR); } $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_performInterpolationWithMap$2$warnForColor(node.selector, true), $async$visitExtendRule$1); case 3: // returning from await. _0_0 = $async$result; targetText = _0_0._0; targetMap = _0_0._1; for (t1 = A.SelectorList_SelectorList$parse(A.trimAscii(targetText, true), false, true, targetMap, $async$self._async_evaluate$_logger).components, t2 = t1.length, t3 = styleRule._style_rule$_selector._box$_inner, _i = 0; _i < t2; ++_i) { complex = t1[_i]; compound = complex.get$singleCompound(); if (compound == null) throw A.wrapException(A.SassFormatException$("complex selectors may not be extended.", complex.span, null)); t4 = compound.components; t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : null; if (t5 == null) throw A.wrapException(A.SassFormatException$(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, compound.span, null)); $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__extensionStore, "_extensionStore").addExtension$4(t3.value, t5, node, $async$self._async_evaluate$_mediaQueries); } $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitExtendRule$1, $async$completer); }, visitAtRule$1(node) { return this.visitAtRule$body$_EvaluateVisitor(node); }, visitAtRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, $name, value, children, wasInKeyframes, wasInUnknownAtRule; var $async$visitAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate$_declarationName != null) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.At_rul, node.span)); $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$1(node.name), $async$visitAtRule$1); case 3: // returning from await. $name = $async$result; $async$goto = 4; return A._asyncAwait(A.NullableExtension_andThen(node.value, new A._EvaluateVisitor_visitAtRule_closure2($async$self)), $async$visitAtRule$1); case 4: // returning from await. value = $async$result; children = node.children; if (children == null) { $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$($name, node.span, true, value)); $async$returnValue = null; // goto return $async$goto = 1; break; } wasInKeyframes = $async$self._async_evaluate$_inKeyframes; wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule; if (A.unvendor($name.value) === "keyframes") $async$self._async_evaluate$_inKeyframes = true; else $async$self._async_evaluate$_inUnknownAtRule = true; $async$goto = 5; 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); case 5: // returning from await. $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule; $async$self._async_evaluate$_inKeyframes = wasInKeyframes; $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitAtRule$1, $async$completer); }, visitForRule$1(node) { return this.visitForRule$body$_EvaluateVisitor(node); }, visitForRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction; var $async$visitForRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = {}; t2 = node.from; t3 = type$.SassNumber; $async$goto = 3; return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(t2, new A._EvaluateVisitor_visitForRule_closure4($async$self, node), t3), $async$visitForRule$1); case 3: // returning from await. fromNumber = $async$result; t4 = node.to; $async$goto = 4; return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(t4, new A._EvaluateVisitor_visitForRule_closure5($async$self, node), t3), $async$visitForRule$1); case 4: // returning from await. toNumber = $async$result; from = $async$self._async_evaluate$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure6(fromNumber)); to = t1.to = $async$self._async_evaluate$_addExceptionSpan$2(t4, new A._EvaluateVisitor_visitForRule_closure7(toNumber, fromNumber)); direction = from > to ? -1 : 1; if (from === (!node.isExclusive ? t1.to = to + direction : to)) { $async$returnValue = null; // goto return $async$goto = 1; break; } $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); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitForRule$1, $async$completer); }, visitForwardRule$1(node) { return this.visitForwardRule$body$_EvaluateVisitor(node); }, visitForwardRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, $name, oldConfiguration, adjustedConfiguration, t1, t2, t3; var $async$visitForwardRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldConfiguration = $async$self._async_evaluate$_configuration; adjustedConfiguration = oldConfiguration.throughForward$1(node); t1 = node.configuration; t2 = t1.length; t3 = node.url; $async$goto = t2 !== 0 ? 3 : 5; break; case 3: // then $async$goto = 6; return A._asyncAwait($async$self._async_evaluate$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1); case 6: // returning from await. newConfiguration = $async$result; $async$goto = 7; 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); case 7: // returning from await. t3 = type$.String; t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3); for (_i = 0; _i < t2; ++_i) { variable = t1[_i]; if (!variable.isGuarded) t4.add$1(0, variable.name); } $async$self._async_evaluate$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4); t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3); for (_i = 0; _i < t2; ++_i) t3.add$1(0, t1[_i].name); 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) { $name = t2[_i]; if (!t3.contains$1(0, $name)) if (!t1.get$isEmpty(t1)) t1.remove$1(0, $name); } $async$self._async_evaluate$_assertConfigurationIsEmpty$1(newConfiguration); // goto join $async$goto = 4; break; case 5: // else $async$self._async_evaluate$_configuration = adjustedConfiguration; $async$goto = 8; return A._asyncAwait($async$self._async_evaluate$_loadModule$4(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure2($async$self, node)), $async$visitForwardRule$1); case 8: // returning from await. $async$self._async_evaluate$_configuration = oldConfiguration; case 4: // join $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitForwardRule$1, $async$completer); }, _async_evaluate$_addForwardConfiguration$2(configuration, node) { return this._addForwardConfiguration$body$_EvaluateVisitor(configuration, node); }, _addForwardConfiguration$body$_EvaluateVisitor(configuration, node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Configuration), $async$returnValue, $async$self = this, t2, t3, _i, variable, t4, oldValue, t5, variableNodeWithSpan, t1, newValues, $async$temp1, $async$temp2, $async$temp3; var $async$_async_evaluate$_addForwardConfiguration$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = configuration._configuration$_values; newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue); t2 = node.configuration, t3 = t2.length, _i = 0; case 3: // for condition if (!(_i < t3)) { // goto after for $async$goto = 5; break; } variable = t2[_i]; if (variable.isGuarded) { t4 = variable.name; oldValue = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4); if (oldValue != null) t5 = true; else { oldValue = null; t5 = false; } if (t5 && !oldValue.value.$eq(0, B.C__SassNull)) { newValues.$indexSet(0, t4, oldValue); // goto for update $async$goto = 4; break; } } t4 = variable.expression; variableNodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t4); $async$temp1 = newValues; $async$temp2 = variable.name; $async$temp3 = A; $async$goto = 6; return A._asyncAwait(t4.accept$1($async$self), $async$_async_evaluate$_addForwardConfiguration$2); case 6: // returning from await. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$self._async_evaluate$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan)); case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for if (configuration instanceof A.ExplicitConfiguration || t1.get$isEmpty(t1)) { $async$returnValue = new A.ExplicitConfiguration(node, newValues, null); // goto return $async$goto = 1; break; } else { $async$returnValue = new A.Configuration(newValues, null); // goto return $async$goto = 1; break; } case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_addForwardConfiguration$2, $async$completer); }, _async_evaluate$_registerCommentsForModule$1(module) { var _this = this, _s5_ = "_root", t1 = _this._async_evaluate$__root; if (t1 == null) return; t1 = _this._async_evaluate$_assertInModule$2(t1, _s5_).children; if (t1.get$length(t1) === 0 || !module.get$transitivelyContainsCss()) return; t1 = _this._async_evaluate$_preModuleComments; if (t1 == null) t1 = _this._async_evaluate$_preModuleComments = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.List_CssComment); 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)); _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).clearChildren$0(); _this._async_evaluate$__endOfImports = 0; }, _async_evaluate$_removeUsedConfiguration$3$except(upstream, downstream, except) { var t1, t2, t3, t4, _i, $name; 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) { $name = t2[_i]; if (except.contains$1(0, $name)) continue; if (!t4.containsKey$1($name)) if (!t1.get$isEmpty(t1)) t1.remove$1(0, $name); } }, _async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) { var t1, _0_0, $name, value; if (!(configuration instanceof A.ExplicitConfiguration)) return; t1 = configuration._configuration$_values; if (t1.get$isEmpty(t1)) return; t1 = A.MapExtensions_get_pairs(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue); _0_0 = t1.get$first(t1); $name = _0_0._0; value = _0_0._1; t1 = nameInError ? "$" + $name + string$.x20was_n : string$.This_v; throw A.wrapException(this._async_evaluate$_exception$2(t1, value.configurationSpan)); }, _async_evaluate$_assertConfigurationIsEmpty$1(configuration) { return this._async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, false); }, visitFunctionRule$1(node) { return this.visitFunctionRule$body$_EvaluateVisitor(node); }, visitFunctionRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5; var $async$visitFunctionRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self._async_evaluate$_environment; t2 = t1.closure$0(); t3 = $async$self._async_evaluate$_inDependency; t4 = t1._async_environment$_functions; index = t4.length - 1; t5 = node.name; t1._async_environment$_functionIndices.$indexSet(0, t5, index); J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment)); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitFunctionRule$1, $async$completer); }, visitIfRule$1(node) { return this.visitIfRule$body$_EvaluateVisitor(node); }, visitIfRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, clause; var $async$visitIfRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start clause = node.lastClause; t1 = node.clauses, t2 = t1.length, _i = 0; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } clauseToCheck = t1[_i]; $async$goto = 6; return A._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1); case 6: // returning from await. if ($async$result.get$isTruthy()) { clause = clauseToCheck; // goto after for $async$goto = 5; break; } case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$goto = 7; return A._asyncAwait(A.NullableExtension_andThen(clause, new A._EvaluateVisitor_visitIfRule_closure0($async$self)), $async$visitIfRule$1); case 7: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitIfRule$1, $async$completer); }, visitImportRule$1(node) { return this.visitImportRule$body$_EvaluateVisitor(node); }, visitImportRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t1, t2, t3, _i, $import; var $async$visitImportRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = node.imports, t2 = t1.length, t3 = type$.StaticImport, _i = 0; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } $import = t1[_i]; $async$goto = $import instanceof A.DynamicImport ? 6 : 8; break; case 6: // then $async$goto = 9; return A._asyncAwait($async$self._async_evaluate$_visitDynamicImport$1($import), $async$visitImportRule$1); case 9: // returning from await. // goto join $async$goto = 7; break; case 8: // else $async$goto = 10; return A._asyncAwait($async$self._visitStaticImport$1(t3._as($import)), $async$visitImportRule$1); case 10: // returning from await. case 7: // join case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitImportRule$1, $async$completer); }, _async_evaluate$_visitDynamicImport$1($import) { return this._async_evaluate$_withStackFrame$1$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure0(this, $import), type$.void); }, _async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) { return this._loadStylesheet$body$_EvaluateVisitor(url, span, baseUrl, forImport); }, _async_evaluate$_loadStylesheet$3$baseUrl(url, span, baseUrl) { return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false); }, _async_evaluate$_loadStylesheet$3$forImport(url, span, forImport) { return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport); }, _loadStylesheet$body$_EvaluateVisitor(url, span, baseUrl, forImport) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency), $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, importCache, _0_0, importer, canonicalUrl, originalUrl, _1_0, isDependency, stylesheet, _2_0, result, _3_0, error, stackTrace, error0, stackTrace0, message, t1, t2, t3, t4, exception, message0, $async$exception; var $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start baseUrl = baseUrl; $async$handler = 4; $async$self._async_evaluate$_importSpan = span; importCache = null; _0_0 = $async$self._async_evaluate$_importCache; if (_0_0 != null) { importCache = _0_0; t1 = true; } else t1 = false; $async$goto = t1 ? 7 : 9; break; case 7: // then if (baseUrl == null) { t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").span; baseUrl = t1.get$sourceUrl(t1); } importer = null; canonicalUrl = null; originalUrl = null; $async$goto = 10; 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); case 10: // returning from await. _1_0 = $async$result; if (type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(_1_0)) { importer = _1_0._0; canonicalUrl = _1_0._1; originalUrl = _1_0._2; t1 = true; } else t1 = false; $async$goto = t1 ? 11 : 12; break; case 11: // then $async$self._async_evaluate$_loadedUrls.add$1(0, canonicalUrl); isDependency = $async$self._async_evaluate$_inDependency || !J.$eq$(importer, $async$self._async_evaluate$_importer); stylesheet = null; t1 = importCache; t2 = importer; t3 = canonicalUrl; t4 = originalUrl; $async$goto = 13; return A._asyncAwait(t1.importCanonical$4$originalUrl$quiet(t2, t3, t4, $async$self._async_evaluate$_quietDeps && isDependency), $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport); case 13: // returning from await. _2_0 = $async$result; if (_2_0 != null) { stylesheet = _2_0; t1 = true; } else t1 = false; if (t1) { t1 = stylesheet; t2 = importer; $async$returnValue = new A._Record_3_importer_isDependency(t1, t2, isDependency); $async$next = [1]; // goto finally $async$goto = 5; break; } case 12: // join // goto join $async$goto = 8; break; case 9: // else result = null; t1 = baseUrl; if (t1 == null) { t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").span; t1 = t1.get$sourceUrl(t1); } $async$goto = 14; return A._asyncAwait($async$self._async_evaluate$_importLikeNode$3(url, t1, forImport), $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport); case 14: // returning from await. _3_0 = $async$result; if (_3_0 != null) { result = _3_0; t1 = true; } else t1 = false; if (t1) { t1 = result._0.span; t2 = $async$self._async_evaluate$_loadedUrls; A.NullableExtension_andThen(t1.get$sourceUrl(t1), t2.get$add(t2)); t2 = result; $async$returnValue = t2; $async$next = [1]; // goto finally $async$goto = 5; break; } case 8: // join if (B.JSString_methods.startsWith$1(url, "package:") && true) throw A.wrapException(string$.x22packa); else throw A.wrapException("Can't find stylesheet to import."); $async$next.push(6); // goto finally $async$goto = 5; break; case 4: // catch $async$handler = 3; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (t1 instanceof A.SassException) throw $async$exception; else if (t1 instanceof A.ArgumentError) { error = t1; stackTrace = A.getTraceFromException($async$exception); A.throwWithTrace($async$self._async_evaluate$_exception$1(J.toString$0$(error)), error, stackTrace); } else { error0 = t1; stackTrace0 = A.getTraceFromException($async$exception); message = null; try { message = A._asString(J.get$message$x(error0)); } catch (exception) { message0 = J.toString$0$(error0); message = message0; } A.throwWithTrace($async$self._async_evaluate$_exception$1(message), error0, stackTrace0); } $async$next.push(6); // goto finally $async$goto = 5; break; case 3: // uncaught $async$next = [2]; case 5: // finally $async$handler = 2; $async$self._async_evaluate$_importSpan = null; // goto the next finally handler $async$goto = $async$next.pop(); break; case 6: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport, $async$completer); }, _async_evaluate$_importLikeNode$3(originalUrl, previous, forImport) { return this._importLikeNode$body$_EvaluateVisitor(originalUrl, previous, forImport); }, _importLikeNode$body$_EvaluateVisitor(originalUrl, previous, forImport) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency), $async$returnValue, $async$self = this, result, isDependency, url, t1, t2; var $async$_async_evaluate$_importLikeNode$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start result = $async$self._async_evaluate$_nodeImporter.loadRelative$3(originalUrl, previous, forImport); isDependency = $async$self._async_evaluate$_inDependency; url = result._1; t1 = J.startsWith$1$s(url, "file") ? A.Syntax_forPath(url) : B.Syntax_SCSS_scss; t2 = $async$self._async_evaluate$_quietDeps && isDependency ? $.$get$Logger_quiet() : $async$self._async_evaluate$_logger; $async$returnValue = new A._Record_3_importer_isDependency(A.Stylesheet_Stylesheet$parse(result._0, t1, t2, url), null, isDependency); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_importLikeNode$3, $async$completer); }, _visitStaticImport$1($import) { return this._visitStaticImport$body$_EvaluateVisitor($import); }, _visitStaticImport$body$_EvaluateVisitor($import) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1, node, $async$temp1, $async$temp2; var $async$_visitStaticImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$temp1 = A; $async$goto = 2; return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$1($import.url), $async$_visitStaticImport$1); case 2: // returning from await. $async$temp2 = $async$result; $async$goto = 3; return A._asyncAwait(A.NullableExtension_andThen($import.modifiers, $async$self.get$_async_evaluate$_interpolationToValue()), $async$_visitStaticImport$1); case 3: // returning from await. node = new $async$temp1.ModifiableCssImport($async$temp2, $async$result, $import.span); 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$__parent, "__parent").addChild$1(node); 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)) { $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").addChild$1(node); $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1; } else { t1 = $async$self._async_evaluate$_outOfOrderImports; (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t1).push(node); } // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$_visitStaticImport$1, $async$completer); }, _async_evaluate$_applyMixin$5(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) { return this._applyMixin$body$_EvaluateVisitor(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent); }, _applyMixin$body$_EvaluateVisitor(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, _1_8, t1, _0_0; var $async$_async_evaluate$_applyMixin$5 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start _1_8 = A._InitializedCell$(new A._EvaluateVisitor__applyMixin_closure2(mixin)); if (mixin == null) throw A.wrapException($async$self._async_evaluate$_exception$2("Undefined mixin.", nodeWithSpan.get$span(nodeWithSpan))); t1 = type$.AsyncBuiltInCallable._is(mixin); $async$goto = t1 && !mixin.get$acceptsContent() && contentCallable != null ? 3 : 4; break; case 3: // then $async$goto = 5; return A._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_applyMixin$5); case 5: // returning from await. t1 = $async$result._values; _0_0 = mixin.callbackFor$2(J.get$length$asx(t1[2]), new A.MapKeySet(t1[0], type$.MapKeySet_String)); 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)); case 4: // join $async$goto = t1 ? 6 : 7; break; case 6: // then $async$goto = 8; return A._asyncAwait($async$self._async_evaluate$_environment.withContent$2(contentCallable, new A._EvaluateVisitor__applyMixin_closure3($async$self, $arguments, mixin, nodeWithSpanWithoutContent)), $async$_async_evaluate$_applyMixin$5); case 8: // returning from await. // goto break $label0$0 $async$goto = 2; break; case 7: // join t1 = type$.UserDefinedCallable_AsyncEnvironment._is(mixin); if (t1 && _1_8._readFinal$0() instanceof A.MixinRule && !_1_8._readFinal$0().get$hasContent() && contentCallable != null) 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)); $async$goto = t1 ? 9 : 10; break; case 9: // then $async$goto = 11; return A._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$1$4($arguments, mixin, nodeWithSpanWithoutContent, new A._EvaluateVisitor__applyMixin_closure4($async$self, contentCallable, mixin, nodeWithSpanWithoutContent), type$.Null), $async$_async_evaluate$_applyMixin$5); case 11: // returning from await. // goto break $label0$0 $async$goto = 2; break; case 10: // join throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + ".")); case 2: // break $label0$0 // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_applyMixin$5, $async$completer); }, visitIncludeRule$1(node) { return this.visitIncludeRule$body$_EvaluateVisitor(node); }, visitIncludeRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this; var $async$visitIncludeRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_applyMixin$5($async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure2($async$self, node)), 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); case 3: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitIncludeRule$1, $async$completer); }, visitMixinRule$1(node) { return this.visitMixinRule$body$_EvaluateVisitor(node); }, visitMixinRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5; var $async$visitMixinRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self._async_evaluate$_environment; t2 = t1.closure$0(); t3 = $async$self._async_evaluate$_inDependency; t4 = t1._async_environment$_mixins; index = t4.length - 1; t5 = node.name; t1._async_environment$_mixinIndices.$indexSet(0, t5, index); J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment)); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitMixinRule$1, $async$completer); }, visitLoudComment$1(node) { return this.visitLoudComment$body$_EvaluateVisitor(node); }, visitLoudComment$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2; var $async$visitLoudComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate$_inFunction) { $async$returnValue = null; // goto return $async$goto = 1; break; } 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)) $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1; t1 = node.text; $async$temp1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent"); $async$temp2 = A; $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t1), $async$visitLoudComment$1); case 3: // returning from await. $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment($async$result, t1.span)); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitLoudComment$1, $async$completer); }, visitMediaRule$1(node) { return this.visitMediaRule$body$_EvaluateVisitor(node); }, visitMediaRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, queries, mergedQueries, t1, mergedSources, t2, t3; var $async$visitMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate$_declarationName != null) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Media_, node.span)); $async$goto = 3; return A._asyncAwait($async$self._visitMediaQueries$1(node.query), $async$visitMediaRule$1); case 3: // returning from await. queries = $async$result; mergedQueries = A.NullableExtension_andThen($async$self._async_evaluate$_mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure2($async$self, queries)); t1 = mergedQueries == null; if (!t1 && J.get$isEmpty$asx(mergedQueries)) { $async$returnValue = null; // goto return $async$goto = 1; break; } if (t1) mergedSources = B.Set_empty1; else { t2 = $async$self._async_evaluate$_mediaQuerySources; t2.toString; t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery); t3 = $async$self._async_evaluate$_mediaQueries; t3.toString; t2.addAll$1(0, t3); t2.addAll$1(0, queries); mergedSources = t2; } t1 = t1 ? queries : mergedQueries; $async$goto = 4; 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); case 4: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitMediaRule$1, $async$completer); }, _visitMediaQueries$1(interpolation) { return this._visitMediaQueries$body$_EvaluateVisitor(interpolation); }, _visitMediaQueries$body$_EvaluateVisitor(interpolation) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.List_CssMediaQuery), $async$returnValue, $async$self = this, _0_0, resolved, map; var $async$_visitMediaQueries$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_performInterpolationWithMap$2$warnForColor(interpolation, true), $async$_visitMediaQueries$1); case 3: // returning from await. _0_0 = $async$result; resolved = _0_0._0; map = _0_0._1; $async$returnValue = A.CssMediaQuery_parseList(resolved, map, $async$self._async_evaluate$_logger); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_visitMediaQueries$1, $async$completer); }, _async_evaluate$_mergeMediaQueries$2(queries1, queries2) { var t1, t2, t3, t4, _0_0, result, t5, queries = A._setArrayType([], type$.JSArray_CssMediaQuery); for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2); t1.moveNext$0();) { t3 = t1.get$current(t1); for (t4 = t2.get$iterator(queries2); t4.moveNext$0();) { _0_0 = t3.merge$1(t4.get$current(t4)); if (B._SingletonCssMediaQueryMergeResult_0 === _0_0) continue; if (B._SingletonCssMediaQueryMergeResult_1 === _0_0) return null; if (_0_0 instanceof A.MediaQuerySuccessfulMergeResult) { result = _0_0; t5 = true; } else { result = null; t5 = false; } if (t5) queries.push(result.query); } } return queries; }, visitReturnRule$1(node) { return this.visitReturnRule$body$_EvaluateVisitor(node); }, visitReturnRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$self = this, t1; var $async$visitReturnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = node.expression; $async$goto = 3; return A._asyncAwait(t1.accept$1($async$self), $async$visitReturnRule$1); case 3: // returning from await. $async$returnValue = $async$self._async_evaluate$_withoutSlash$2($async$result, t1); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitReturnRule$1, $async$completer); }, visitSilentComment$1(node) { return this.visitSilentComment$body$_EvaluateVisitor(node); }, visitSilentComment$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue; var $async$visitSilentComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitSilentComment$1, $async$completer); }, visitStyleRule$1(node) { return this.visitStyleRule$body$_EvaluateVisitor(node); }, visitStyleRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t1, _0_0, selectorText, selectorMap, t2, parsedSelector, rule, oldAtRootExcludingStyleRule, t3, t4, t5, _i, complex, visitor, t6, t7, t8, t9; var $async$visitStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate$_declarationName != null) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Style_, node.span)); t1 = node.selector; $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_performInterpolationWithMap$2$warnForColor(t1, true), $async$visitStyleRule$1); case 3: // returning from await. _0_0 = $async$result; selectorText = _0_0._0; selectorMap = _0_0._1; $async$goto = $async$self._async_evaluate$_inKeyframes ? 4 : 5; break; case 4: // then $async$goto = 6; return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(new A.CssValue(A.List_List$unmodifiable(A.KeyframeSelectorParser$(selectorText, selectorMap, $async$self._async_evaluate$_logger).parse$0(), type$.String), t1.span, type$.CssValue_List_String), node.span), new A._EvaluateVisitor_visitStyleRule_closure4($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure5(), type$.ModifiableCssKeyframeBlock, type$.Null), $async$visitStyleRule$1); case 6: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 5: // join t1 = A.SelectorList_SelectorList$parse(selectorText, !$async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss, !$async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss, selectorMap, $async$self._async_evaluate$_logger); t2 = $async$self._async_evaluate$_styleRuleIgnoringAtRoot; t2 = t2 == null ? null : t2.originalSelector; parsedSelector = t1.resolveParentSelectors$2$implicitParent(t2, !$async$self._async_evaluate$_atRootExcludingStyleRule); 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, parsedSelector); oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule; $async$self._async_evaluate$_atRootExcludingStyleRule = false; $async$goto = 7; return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure6($async$self, rule, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure7(), type$.ModifiableCssStyleRule, type$.Null), $async$visitStyleRule$1); case 7: // returning from await. $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule; if (!rule.accept$1(B._IsInvisibleVisitor_false_false)) for (t1 = parsedSelector.components, t2 = t1.length, t3 = type$.SourceSpan, t4 = type$.String, t5 = rule.children, _i = 0; _i < t2; ++_i) { complex = t1[_i]; if (!complex.accept$1(B._IsBogusVisitor_true)) continue; if (complex.accept$1(B.C__IsUselessVisitor)) { visitor = A._SerializeVisitor$(null, true, null, true, false, null, true); complex.accept$1(visitor); $async$self._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_vrR); } else if (complex.leadingCombinators.length !== 0) { visitor = A._SerializeVisitor$(null, true, null, true, false, null, true); complex.accept$1(visitor); $async$self._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_vrR); } else { visitor = A._SerializeVisitor$(null, true, null, true, false, null, true); complex.accept$1(visitor); t6 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)); t7 = complex.accept$1(B._IsBogusVisitor_false) ? string$.x20It_wi : ""; t8 = A.SpanExtensions_trimRight(complex.span); if (t5.get$length(t5) === 0) A.throwExpression(A.IterableElementError_noElement()); t9 = J.get$span$z(t5.$index(0, 0)); $async$self._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_visitStyleRule_closure8()) ? "\n(try converting to a //-style comment)" : "")], t3, t4), t3, t4)), B.Deprecation_vrR); } } if (($async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot) == null) { t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").children; t1 = !t1.get$isEmpty(t1); } else t1 = false; if (t1) { t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").children; t1.get$last(t1).isGroupEnd = true; } $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitStyleRule$1, $async$completer); }, visitSupportsRule$1(node) { return this.visitSupportsRule$body$_EvaluateVisitor(node); }, visitSupportsRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2; var $async$visitSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate$_declarationName != null) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Suppor, node.span)); t1 = node.condition; $async$temp1 = A; $async$temp2 = A; $async$goto = 4; return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1); case 4: // returning from await. $async$goto = 3; 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); case 3: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitSupportsRule$1, $async$completer); }, _async_evaluate$_visitSupportsCondition$1(condition) { return this._visitSupportsCondition$body$_EvaluateVisitor(condition); }, _visitSupportsCondition$body$_EvaluateVisitor(condition) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.String), $async$returnValue, $async$self = this, operation, t1, t2, negation, interpolation, $function, anything, _box_0, $async$temp1, $async$temp2; var $async$_async_evaluate$_visitSupportsCondition$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start _box_0 = {}; if (condition instanceof A.SupportsOperation) { operation = condition; t1 = true; } else { operation = null; t1 = false; } $async$goto = t1 ? 4 : 5; break; case 4: // then t1 = operation.left; t2 = operation.operator; $async$temp1 = A; $async$goto = 6; return A._asyncAwait($async$self._async_evaluate$_parenthesize$2(t1, t2), $async$_async_evaluate$_visitSupportsCondition$1); case 6: // returning from await. $async$temp1 = $async$temp1.S($async$result) + " " + t2 + " "; $async$temp2 = A; $async$goto = 7; return A._asyncAwait($async$self._async_evaluate$_parenthesize$2(operation.right, t2), $async$_async_evaluate$_visitSupportsCondition$1); case 7: // returning from await. t2 = $async$temp1 + $async$temp2.S($async$result); t1 = t2; // goto break $label0$0 $async$goto = 3; break; case 5: // join if (condition instanceof A.SupportsNegation) { negation = condition; t1 = true; } else { negation = null; t1 = false; } $async$goto = t1 ? 8 : 9; break; case 8: // then $async$temp1 = A; $async$goto = 10; return A._asyncAwait($async$self._async_evaluate$_parenthesize$1(negation.condition), $async$_async_evaluate$_visitSupportsCondition$1); case 10: // returning from await. t1 = "not " + $async$temp1.S($async$result); // goto break $label0$0 $async$goto = 3; break; case 9: // join if (condition instanceof A.SupportsInterpolation) { interpolation = condition; t1 = true; } else { interpolation = null; t1 = false; } $async$goto = t1 ? 11 : 12; break; case 11: // then $async$goto = 13; return A._asyncAwait($async$self._evaluateToCss$2$quote(interpolation.expression, false), $async$_async_evaluate$_visitSupportsCondition$1); case 13: // returning from await. t1 = $async$result; // goto break $label0$0 $async$goto = 3; break; case 12: // join _box_0.declaration = null; if (condition instanceof A.SupportsDeclaration) { _box_0.declaration = condition; t1 = true; } else t1 = false; $async$goto = t1 ? 14 : 15; break; case 14: // then $async$goto = 16; 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); case 16: // returning from await. t1 = $async$result; // goto break $label0$0 $async$goto = 3; break; case 15: // join if (condition instanceof A.SupportsFunction) { $function = condition; t1 = true; } else { $function = null; t1 = false; } $async$goto = t1 ? 17 : 18; break; case 17: // then $async$temp1 = A; $async$goto = 19; return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1($function.name), $async$_async_evaluate$_visitSupportsCondition$1); case 19: // returning from await. $async$temp1 = $async$temp1.S($async$result) + "("; $async$temp2 = A; $async$goto = 20; return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1($function.$arguments), $async$_async_evaluate$_visitSupportsCondition$1); case 20: // returning from await. t1 = $async$temp1 + $async$temp2.S($async$result) + ")"; // goto break $label0$0 $async$goto = 3; break; case 18: // join if (condition instanceof A.SupportsAnything) { anything = condition; t1 = true; } else { anything = null; t1 = false; } $async$goto = t1 ? 21 : 22; break; case 21: // then $async$temp1 = A; $async$goto = 23; return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(anything.contents), $async$_async_evaluate$_visitSupportsCondition$1); case 23: // returning from await. t1 = "(" + $async$temp1.S($async$result) + ")"; // goto break $label0$0 $async$goto = 3; break; case 22: // join t1 = A.throwExpression(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeTypeOfDartObject(condition).toString$0(0) + ".", null)); case 3: // break $label0$0 $async$returnValue = t1; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_visitSupportsCondition$1, $async$completer); }, _async_evaluate$_withSupportsDeclaration$1$1(callback, $T) { return this._withSupportsDeclaration$body$_EvaluateVisitor(callback, $T, $T); }, _withSupportsDeclaration$body$_EvaluateVisitor(callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, t1, oldInSupportsDeclaration; var $async$_async_evaluate$_withSupportsDeclaration$1$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start oldInSupportsDeclaration = $async$self._async_evaluate$_inSupportsDeclaration; $async$self._async_evaluate$_inSupportsDeclaration = true; $async$handler = 3; $async$goto = 6; return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withSupportsDeclaration$1$1); case 6: // returning from await. t1 = $async$result; $async$returnValue = t1; $async$next = [1]; // goto finally $async$goto = 4; break; $async$next.push(5); // goto finally $async$goto = 4; break; case 3: // uncaught $async$next = [2]; case 4: // finally $async$handler = 2; $async$self._async_evaluate$_inSupportsDeclaration = oldInSupportsDeclaration; // goto the next finally handler $async$goto = $async$next.pop(); break; case 5: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_withSupportsDeclaration$1$1, $async$completer); }, _async_evaluate$_parenthesize$2(condition, operator) { return this._parenthesize$body$_EvaluateVisitor(condition, operator); }, _async_evaluate$_parenthesize$1(condition) { return this._async_evaluate$_parenthesize$2(condition, null); }, _parenthesize$body$_EvaluateVisitor(condition, operator) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.String), $async$returnValue, $async$self = this, t1, $async$temp1; var $async$_async_evaluate$_parenthesize$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if (!(condition instanceof A.SupportsNegation)) if (condition instanceof A.SupportsOperation) t1 = operator == null || operator !== condition.operator; else t1 = false; else t1 = true; $async$goto = t1 ? 3 : 4; break; case 3: // then $async$temp1 = A; $async$goto = 5; return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2); case 5: // returning from await. $async$returnValue = "(" + $async$temp1.S($async$result) + ")"; // goto return $async$goto = 1; break; case 4: // join $async$goto = 6; return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2); case 6: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_parenthesize$2, $async$completer); }, visitVariableDeclaration$1(node) { return this.visitVariableDeclaration$body$_EvaluateVisitor(node); }, visitVariableDeclaration$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t2, t3, value, t1, $async$temp1, $async$temp2, $async$temp3; var $async$visitVariableDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = {}; if (node.isGuarded) { if (node.namespace == null && $async$self._async_evaluate$_environment._async_environment$_variables.length === 1) { t1.override = null; t2 = $async$self._async_evaluate$_configuration._configuration$_values; t2 = t2.get$isEmpty(t2) ? null : t2.remove$1(0, node.name); if (t2 != null) { t1.override = t2; t3 = t2; t2 = true; } else { t2 = false; t3 = null; } if (t2 && !t3.value.$eq(0, B.C__SassNull)) { $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure2(t1, $async$self, node)); $async$returnValue = null; // goto return $async$goto = 1; break; } } value = $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure3($async$self, node)); if (value != null && !value.$eq(0, B.C__SassNull)) { $async$returnValue = null; // goto return $async$goto = 1; break; } } if (node.isGlobal && !$async$self._async_evaluate$_environment.globalVariableExists$1(node.name)) { 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."; $async$self._async_evaluate$_warn$3(t1, node.span, B.Deprecation_hzy); } t1 = node.expression; $async$temp1 = node; $async$temp2 = A; $async$temp3 = node; $async$goto = 3; return A._asyncAwait(t1.accept$1($async$self), $async$visitVariableDeclaration$1); case 3: // returning from await. $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))); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitVariableDeclaration$1, $async$completer); }, visitUseRule$1(node) { return this.visitUseRule$body$_EvaluateVisitor(node); }, visitUseRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, values, _i, variable, t3, variableNodeWithSpan, configuration, t1, t2, $async$temp1, $async$temp2, $async$temp3; var $async$visitUseRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = node.configuration; t2 = t1.length; $async$goto = t2 !== 0 ? 3 : 5; break; case 3: // then values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue); _i = 0; case 6: // for condition if (!(_i < t2)) { // goto after for $async$goto = 8; break; } variable = t1[_i]; t3 = variable.expression; variableNodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t3); $async$temp1 = values; $async$temp2 = variable.name; $async$temp3 = A; $async$goto = 9; return A._asyncAwait(t3.accept$1($async$self), $async$visitUseRule$1); case 9: // returning from await. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$self._async_evaluate$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan)); case 7: // for update ++_i; // goto for condition $async$goto = 6; break; case 8: // after for configuration = new A.ExplicitConfiguration(node, values, null); // goto join $async$goto = 4; break; case 5: // else configuration = B.Configuration_Map_empty_null; case 4: // join $async$goto = 10; 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); case 10: // returning from await. $async$self._async_evaluate$_assertConfigurationIsEmpty$1(configuration); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitUseRule$1, $async$completer); }, visitWarnRule$1(node) { return this.visitWarnRule$body$_EvaluateVisitor(node); }, visitWarnRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, value, t1; var $async$visitWarnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitWarnRule_closure0($async$self, node), type$.Value), $async$visitWarnRule$1); case 3: // returning from await. value = $async$result; t1 = value instanceof A.SassString ? value._string$_text : $async$self._async_evaluate$_serialize$2(value, node.expression); $async$self._async_evaluate$_logger.warn$2$trace(0, t1, $async$self._async_evaluate$_stackTrace$1(node.span)); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitWarnRule$1, $async$completer); }, visitWhileRule$1(node) { return this._async_evaluate$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure0(this, node), true, node.hasDeclarations, type$.nullable_Value); }, visitBinaryOperationExpression$1(node) { var t1, _this = this; if (_this._async_evaluate$_assertInModule$2(_this._async_evaluate$__stylesheet, "_stylesheet").plainCss) { t1 = node.operator; t1 = t1 !== B.BinaryOperator_2jN && t1 !== B.BinaryOperator_t8B; } else t1 = false; if (t1) throw A.wrapException(_this._async_evaluate$_exception$2("Operators aren't allowed in plain CSS.", node.get$operatorSpan())); return _this._addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure0(_this, node), type$.Value); }, _async_evaluate$_slash$3(left, right, node) { var t1, _null = null, result = left.dividedBy$1(right), _1_0 = new A._Record_2(left, right), _1_1 = A._InitializedCell$(new A._EvaluateVisitor__slash_closure1(_1_0)), _1_2 = A._InitializedCell$(new A._EvaluateVisitor__slash_closure2(_1_0)); if (_1_1._readFinal$0() instanceof A.SassNumber) { left = _1_1._readFinal$0(); if (_1_2._readFinal$0() instanceof A.SassNumber) { right = _1_2._readFinal$0(); t1 = node.allowsSlash && this._async_evaluate$_operandAllowsSlash$1(node.left) && this._async_evaluate$_operandAllowsSlash$1(node.right); } else { right = _null; t1 = false; } } else { right = _null; left = right; t1 = false; } if (t1) return type$.SassNumber._as(result).withSlash$2(left, right); if (_1_1._readFinal$0() instanceof A.SassNumber && _1_2._readFinal$0() instanceof A.SassNumber) { 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(node), B.Deprecation_xHK); return result; } return result; }, _async_evaluate$_operandAllowsSlash$1(node) { var t1, t2; if (node instanceof A.FunctionExpression) if (node.namespace == null) { t1 = node.originalName; if (B.Set_WfnXb.contains$1(0, A.stringReplaceAllUnchecked(t1, "_", "-").toLowerCase())) { t2 = this._async_evaluate$_environment; t1 = t2.getFunction$1(A.stringReplaceAllUnchecked(t1, "_", "-")) == null; } else t1 = false; } else t1 = false; else t1 = true; return t1; }, visitValueExpression$1(node) { return this.visitValueExpression$body$_EvaluateVisitor(node); }, visitValueExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue; var $async$visitValueExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$returnValue = node.value; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitValueExpression$1, $async$completer); }, visitVariableExpression$1(node) { return this.visitVariableExpression$body$_EvaluateVisitor(node); }, visitVariableExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$self = this, result; var $async$visitVariableExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start result = $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure0($async$self, node)); if (result != null) { $async$returnValue = result; // goto return $async$goto = 1; break; } throw A.wrapException($async$self._async_evaluate$_exception$2("Undefined variable.", node.span)); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitVariableExpression$1, $async$completer); }, visitUnaryOperationExpression$1(node) { return this.visitUnaryOperationExpression$body$_EvaluateVisitor(node); }, visitUnaryOperationExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$self = this, $async$temp1, $async$temp2, $async$temp3; var $async$visitUnaryOperationExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$temp1 = node; $async$temp2 = A; $async$temp3 = node; $async$goto = 3; return A._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1); case 3: // returning from await. $async$returnValue = $async$self._async_evaluate$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitUnaryOperationExpression_closure0($async$temp3, $async$result)); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer); }, visitBooleanExpression$1(node) { return this.visitBooleanExpression$body$_EvaluateVisitor(node); }, visitBooleanExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassBoolean), $async$returnValue; var $async$visitBooleanExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$returnValue = node.value ? B.SassBoolean_true : B.SassBoolean_false; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitBooleanExpression$1, $async$completer); }, visitIfExpression$1(node) { return this.visitIfExpression$body$_EvaluateVisitor(node); }, visitIfExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$self = this, condition, t1, ifTrue, ifFalse, result, _0_0, positional, named; var $async$visitIfExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_evaluateMacroArguments$1(node), $async$visitIfExpression$1); case 3: // returning from await. _0_0 = $async$result; positional = _0_0._0; named = _0_0._1; $async$self._async_evaluate$_verifyArguments$4(J.get$length$asx(positional), named, $.$get$IfExpression_declaration(), node); condition = A.ListExtensions_elementAtOrNull(positional, 0); if (condition == null) { t1 = named.$index(0, "condition"); t1.toString; condition = t1; } ifTrue = A.ListExtensions_elementAtOrNull(positional, 1); if (ifTrue == null) { t1 = named.$index(0, "if-true"); t1.toString; ifTrue = t1; } ifFalse = A.ListExtensions_elementAtOrNull(positional, 2); if (ifFalse == null) { t1 = named.$index(0, "if-false"); t1.toString; ifFalse = t1; } $async$goto = 4; return A._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1); case 4: // returning from await. result = $async$result.get$isTruthy() ? ifTrue : ifFalse; $async$goto = 5; return A._asyncAwait(result.accept$1($async$self), $async$visitIfExpression$1); case 5: // returning from await. $async$returnValue = $async$self._async_evaluate$_withoutSlash$2($async$result, $async$self._async_evaluate$_expressionNode$1(result)); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitIfExpression$1, $async$completer); }, visitNullExpression$1(node) { return this.visitNullExpression$body$_EvaluateVisitor(node); }, visitNullExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue; var $async$visitNullExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$returnValue = B.C__SassNull; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitNullExpression$1, $async$completer); }, visitNumberExpression$1(node) { return this.visitNumberExpression$body$_EvaluateVisitor(node); }, visitNumberExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber), $async$returnValue; var $async$visitNumberExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$returnValue = A.SassNumber_SassNumber(node.value, node.unit); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitNumberExpression$1, $async$completer); }, visitParenthesizedExpression$1(node) { var _this = this; 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); }, visitColorExpression$1(node) { return this.visitColorExpression$body$_EvaluateVisitor(node); }, visitColorExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassColor), $async$returnValue; var $async$visitColorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$returnValue = node.value; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitColorExpression$1, $async$completer); }, visitListExpression$1(node) { return this.visitListExpression$body$_EvaluateVisitor(node); }, visitListExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassList), $async$returnValue, $async$self = this, $async$temp1; var $async$visitListExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$temp1 = A; $async$goto = 3; return A._asyncAwait(A.mapAsync(node.contents, new A._EvaluateVisitor_visitListExpression_closure0($async$self), type$.Expression, type$.Value), $async$visitListExpression$1); case 3: // returning from await. $async$returnValue = $async$temp1.SassList$($async$result, node.separator, node.hasBrackets); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitListExpression$1, $async$completer); }, visitMapExpression$1(node) { return this.visitMapExpression$body$_EvaluateVisitor(node); }, visitMapExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassMap), $async$returnValue, $async$self = this, t2, t3, _i, t4, key, value, keyValue, valueValue, oldValueSpan, t1, map, keyNodes; var $async$visitMapExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = type$.Value; map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode); t2 = node.pairs, t3 = t2.length, _i = 0; case 3: // for condition if (!(_i < t3)) { // goto after for $async$goto = 5; break; } t4 = t2[_i]; key = t4._0; value = t4._1; $async$goto = 6; return A._asyncAwait(key.accept$1($async$self), $async$visitMapExpression$1); case 6: // returning from await. keyValue = $async$result; $async$goto = 7; return A._asyncAwait(value.accept$1($async$self), $async$visitMapExpression$1); case 7: // returning from await. valueValue = $async$result; if (map.containsKey$1(keyValue)) { t1 = keyNodes.$index(0, keyValue); oldValueSpan = t1 == null ? null : t1.get$span(t1); t1 = key.get$span(key); t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); if (oldValueSpan != null) t2.$indexSet(0, oldValueSpan, "first key"); throw A.wrapException(A.MultiSpanSassRuntimeException$("Duplicate key.", t1, "second key", t2, $async$self._async_evaluate$_stackTrace$1(key.get$span(key)), null)); } map.$indexSet(0, keyValue, valueValue); keyNodes.$indexSet(0, keyValue, key); case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = new A.SassMap(A.ConstantMap_ConstantMap$from(map, t1, t1)); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitMapExpression$1, $async$completer); }, visitFunctionExpression$1(node) { return this.visitFunctionExpression$body$_EvaluateVisitor(node); }, visitFunctionExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$self = this, t2, _0_0, t3, t4, oldInFunction, result, t1, $function; var $async$visitFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = {}; $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)); t1.$function = $function; $async$goto = $function == null ? 3 : 4; break; case 3: // then if (node.namespace != null) throw A.wrapException($async$self._async_evaluate$_exception$2("Undefined function.", node.span)); t2 = node.originalName; _0_0 = A.stringReplaceAllUnchecked(t2, "_", "-").toLowerCase(); if ("min" === _0_0 || "max" === _0_0 || "round" === _0_0 || "abs" === _0_0) { t3 = node.$arguments; t4 = t3.named; t3 = t4.get$isEmpty(t4) && t3.rest == null && B.JSArray_methods.every$1(t3.positional, new A._EvaluateVisitor_visitFunctionExpression_closure3()); } else t3 = false; $async$goto = t3 ? 5 : 6; break; case 5: // then $async$goto = 7; return A._asyncAwait($async$self._async_evaluate$_visitCalculation$2$inLegacySassFunction(node, true), $async$visitFunctionExpression$1); case 7: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 6: // join $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 ? 8 : 9; break; case 8: // then $async$goto = 10; return A._asyncAwait($async$self._async_evaluate$_visitCalculation$1(node), $async$visitFunctionExpression$1); case 10: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 9: // join if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss) $function = null; else { t3 = $async$self._async_evaluate$_builtInFunctions.$index(0, A.stringReplaceAllUnchecked(t2, "_", "-")); $function = t3; } t1.$function = $function == null ? new A.PlainCssCallable(t2) : $function; case 4: // join oldInFunction = $async$self._async_evaluate$_inFunction; $async$self._async_evaluate$_inFunction = true; $async$goto = 11; 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); case 11: // returning from await. result = $async$result; $async$self._async_evaluate$_inFunction = oldInFunction; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitFunctionExpression$1, $async$completer); }, _async_evaluate$_visitCalculation$2$inLegacySassFunction(node, inLegacySassFunction) { return this._visitCalculation$body$_EvaluateVisitor(node, inLegacySassFunction); }, _async_evaluate$_visitCalculation$1(node) { return this._async_evaluate$_visitCalculation$2$inLegacySassFunction(node, false); }, _visitCalculation$body$_EvaluateVisitor(node, inLegacySassFunction) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$next = [], $async$self = this, $arguments, oldCallableNode, t1, _0_0, error, stackTrace, t4, _i, exception, t2, t3, $async$temp1; var $async$_async_evaluate$_visitCalculation$2$inLegacySassFunction = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t2 = node.$arguments; t3 = t2.named; if (t3.get$isNotEmpty(t3)) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Keywor, node.span)); else if (t2.rest != null) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Rest_a, node.span)); $async$self._async_evaluate$_checkCalculationArguments$1(node); t3 = A._setArrayType([], type$.JSArray_Object); t2 = t2.positional, t4 = t2.length, _i = 0; case 3: // for condition if (!(_i < t4)) { // goto after for $async$goto = 5; break; } $async$temp1 = t3; $async$goto = 6; return A._asyncAwait($async$self._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction), $async$_async_evaluate$_visitCalculation$2$inLegacySassFunction); case 6: // returning from await. $async$temp1.push($async$result); case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $arguments = t3; if ($async$self._async_evaluate$_inSupportsDeclaration) { $async$returnValue = new A.SassCalculation(A.stringReplaceAllUnchecked(node.originalName, "_", "-"), A.List_List$unmodifiable($arguments, type$.Object)); // goto return $async$goto = 1; break; } oldCallableNode = $async$self._async_evaluate$_callableNode; $async$self._async_evaluate$_callableNode = node; try { t1 = null; _0_0 = A.stringReplaceAllUnchecked(node.originalName, "_", "-").toLowerCase(); $label0$0: { if ("calc" === _0_0) { t1 = A.SassCalculation_calc(J.$index$asx($arguments, 0)); break $label0$0; } if ("sqrt" === _0_0) { t1 = A.SassCalculation__singleArgument("sqrt", J.$index$asx($arguments, 0), A.number0__sqrt$closure(), true); break $label0$0; } if ("sin" === _0_0) { t1 = A.SassCalculation__singleArgument("sin", J.$index$asx($arguments, 0), A.number0__sin$closure(), false); break $label0$0; } if ("cos" === _0_0) { t1 = A.SassCalculation__singleArgument("cos", J.$index$asx($arguments, 0), A.number0__cos$closure(), false); break $label0$0; } if ("tan" === _0_0) { t1 = A.SassCalculation__singleArgument("tan", J.$index$asx($arguments, 0), A.number0__tan$closure(), false); break $label0$0; } if ("asin" === _0_0) { t1 = A.SassCalculation__singleArgument("asin", J.$index$asx($arguments, 0), A.number0__asin$closure(), true); break $label0$0; } if ("acos" === _0_0) { t1 = A.SassCalculation__singleArgument("acos", J.$index$asx($arguments, 0), A.number0__acos$closure(), true); break $label0$0; } if ("atan" === _0_0) { t1 = A.SassCalculation__singleArgument("atan", J.$index$asx($arguments, 0), A.number0__atan$closure(), true); break $label0$0; } if ("abs" === _0_0) { t1 = A.SassCalculation_abs(J.$index$asx($arguments, 0)); break $label0$0; } if ("exp" === _0_0) { t1 = A.SassCalculation_exp(J.$index$asx($arguments, 0)); break $label0$0; } if ("sign" === _0_0) { t1 = A.SassCalculation_sign(J.$index$asx($arguments, 0)); break $label0$0; } if ("min" === _0_0) { t1 = A.SassCalculation_min($arguments); break $label0$0; } if ("max" === _0_0) { t1 = A.SassCalculation_max($arguments); break $label0$0; } if ("hypot" === _0_0) { t1 = A.SassCalculation_hypot($arguments); break $label0$0; } if ("pow" === _0_0) { t1 = A.SassCalculation_pow(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("atan2" === _0_0) { t1 = A.SassCalculation_atan2(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("log" === _0_0) { t1 = A.SassCalculation_log(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("mod" === _0_0) { t1 = A.SassCalculation_mod(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("rem" === _0_0) { t1 = A.SassCalculation_rem(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("round" === _0_0) { t1 = A.SassCalculation_round(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2)); break $label0$0; } if ("clamp" === _0_0) { t1 = A.SassCalculation_clamp(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2)); break $label0$0; } t3 = A.UnsupportedError$('Unknown calculation name "' + node.get$name(node) + '".'); t1 = A.throwExpression(t3); } t1 = t1; $async$returnValue = t1; // goto return $async$goto = 1; break; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassScriptException) { error = t1; stackTrace = A.getTraceFromException(exception); if (B.JSString_methods.contains$1(error.message, "compatible")) $async$self._async_evaluate$_verifyCompatibleNumbers$2($arguments, t2); A.throwWithTrace($async$self._async_evaluate$_exception$2(error.message, node.span), error, stackTrace); } else throw exception; } finally { $async$self._async_evaluate$_callableNode = oldCallableNode; } case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_visitCalculation$2$inLegacySassFunction, $async$completer); }, _async_evaluate$_checkCalculationArguments$1(node) { var _0_0, check = new A._EvaluateVisitor__checkCalculationArguments_check0(this, node); $label0$0: { _0_0 = A.stringReplaceAllUnchecked(node.originalName, "_", "-").toLowerCase(); 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) { check.call$1(1); break $label0$0; } if ("min" === _0_0 || "max" === _0_0 || "hypot" === _0_0) { check.call$0(); break $label0$0; } if ("pow" === _0_0 || "atan2" === _0_0 || "log" === _0_0 || "mod" === _0_0 || "rem" === _0_0) { check.call$1(2); break $label0$0; } if ("round" === _0_0 || "clamp" === _0_0) { check.call$1(3); break $label0$0; } throw A.wrapException(A.UnsupportedError$('Unknown calculation name "' + node.get$name(node) + '".')); } }, _async_evaluate$_verifyCompatibleNumbers$2(args, nodesWithSpans) { var i, t1, _0_0, arg, number1, j, number2; for (i = 0; t1 = args.length, i < t1; ++i) { _0_0 = args[i]; if (_0_0 instanceof A.SassNumber) { t1 = _0_0.get$hasComplexUnits(); arg = _0_0; } else { arg = null; t1 = false; } if (t1) throw A.wrapException(this._async_evaluate$_exception$2("Number " + A.S(arg) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i]))); } for (i = 0; i < t1 - 1; ++i) { number1 = args[i]; if (!(number1 instanceof A.SassNumber)) continue; for (j = i + 1; t1 = args.length, j < t1; ++j) { number2 = args[j]; if (!(number2 instanceof A.SassNumber)) continue; if (number1.hasPossiblyCompatibleUnits$1(number2)) continue; 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)); } } }, _async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(node, inLegacySassFunction) { return this._visitCalculationExpression$body$_EvaluateVisitor(node, inLegacySassFunction); }, _visitCalculationExpression$body$_EvaluateVisitor(node, inLegacySassFunction) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Object), $async$returnValue, $async$self = this, inner, t1, result, t2, _0_0, _1_0, t3, _i, i, _box_0, $async$temp1; var $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start _box_0 = {}; if (node instanceof A.ParenthesizedExpression) { inner = node.expression; t1 = true; } else { inner = null; t1 = false; } $async$goto = t1 ? 3 : 4; break; case 3: // then $async$goto = 5; return A._asyncAwait($async$self._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(inner, inLegacySassFunction), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction); case 5: // returning from await. result = $async$result; $async$returnValue = result instanceof A.SassString ? new A.SassString("(" + result._string$_text + ")", false) : result; // goto return $async$goto = 1; break; case 4: // join $async$goto = node instanceof A.StringExpression && node.accept$1(new A._IsCalculationSafeVisitor()) ? 6 : 7; break; case 6: // then t1 = node.text; t2 = t1.get$asPlain(); _0_0 = t2 == null ? null : t2.toLowerCase(); if ("pi" === _0_0) { t1 = A.SassNumber_SassNumber(3.141592653589793, null); // goto break $label0$0 $async$goto = 8; break; } if ("e" === _0_0) { t1 = A.SassNumber_SassNumber(2.718281828459045, null); // goto break $label0$0 $async$goto = 8; break; } if ("infinity" === _0_0) { t1 = A.SassNumber_SassNumber(1 / 0, null); // goto break $label0$0 $async$goto = 8; break; } if ("-infinity" === _0_0) { t1 = A.SassNumber_SassNumber(-1 / 0, null); // goto break $label0$0 $async$goto = 8; break; } if ("nan" === _0_0) { t1 = A.SassNumber_SassNumber(0 / 0, null); // goto break $label0$0 $async$goto = 8; break; } $async$temp1 = A; $async$goto = 9; return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t1), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction); case 9: // returning from await. t1 = new $async$temp1.SassString($async$result, false); // goto break $label0$0 $async$goto = 8; break; case 8: // break $label0$0 $async$returnValue = t1; // goto return $async$goto = 1; break; case 7: // join _box_0.right = _box_0.left = _box_0.operator = null; if (node instanceof A.BinaryOperationExpression) { _box_0.operator = node.operator; _box_0.left = node.left; _box_0.right = node.right; t1 = true; } else t1 = false; $async$goto = t1 ? 10 : 11; break; case 10: // then $async$self._async_evaluate$_checkWhitespaceAroundCalculationOperator$1(node); $async$goto = 12; 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); case 12: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 11: // join $async$goto = node instanceof A.NumberExpression || node instanceof A.VariableExpression || node instanceof A.FunctionExpression || node instanceof A.IfExpression ? 13 : 14; break; case 13: // then $async$goto = 15; return A._asyncAwait(node.accept$1($async$self), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction); case 15: // returning from await. _1_0 = $async$result; $label1$1: { if (_1_0 instanceof A.SassNumber) { result = _1_0; t1 = true; } else { result = null; t1 = false; } if (t1) { t1 = result; break $label1$1; } if (_1_0 instanceof A.SassCalculation) { result = _1_0; t1 = true; } else { result = null; t1 = false; } if (t1) { t1 = result; break $label1$1; } if (_1_0 instanceof A.SassString) { t1 = !_1_0._hasQuotes; result = _1_0; } else { result = null; t1 = false; } if (t1) { t1 = result; break $label1$1; } 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))); } $async$returnValue = t1; // goto return $async$goto = 1; break; case 14: // join $async$goto = node instanceof A.ListExpression && !node.hasBrackets && B.ListSeparator_EVt === node.separator && node.contents.length >= 2 ? 16 : 17; break; case 16: // then t1 = A._setArrayType([], type$.JSArray_Object); t2 = node.contents, t3 = t2.length, _i = 0; case 18: // for condition if (!(_i < t3)) { // goto after for $async$goto = 20; break; } $async$temp1 = t1; $async$goto = 21; return A._asyncAwait($async$self._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction); case 21: // returning from await. $async$temp1.push($async$result); case 19: // for update ++_i; // goto for condition $async$goto = 18; break; case 20: // after for $async$self._async_evaluate$_checkAdjacentCalculationValues$2(t1, node); for (i = 0; i < t1.length; ++i) { t3 = t1[i]; if (t3 instanceof A.CalculationOperation && t2[i] instanceof A.ParenthesizedExpression) t1[i] = new A.SassString("(" + A.S(t3) + ")", false); } $async$returnValue = new A.SassString(B.JSArray_methods.join$1(t1, " "), false); // goto return $async$goto = 1; break; case 17: // join throw A.wrapException($async$self._async_evaluate$_exception$2(string$.This_e, node.get$span(node))); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction, $async$completer); }, _async_evaluate$_checkWhitespaceAroundCalculationOperator$1(node) { var t2, t3, t4, textBetweenOperands, first, last, t1 = node.operator; if (t1 !== B.BinaryOperator_anB && t1 !== B.BinaryOperator_olz) return; t1 = node.left; t2 = t1.get$span(t1); t2 = t2.get$file(t2); t3 = node.right; t4 = t3.get$span(t3); if (t2 !== t4.get$file(t4)) return; t2 = t1.get$span(t1); t2 = t2.get$end(t2); t4 = t3.get$span(t3); if (t2.offset >= t4.get$start(t4).offset) return; t2 = t1.get$span(t1); t2 = t2.get$file(t2); t1 = t1.get$span(t1); t1 = t1.get$end(t1); t3 = t3.get$span(t3); textBetweenOperands = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, t1.offset, t3.get$start(t3).offset), 0, null); first = textBetweenOperands.charCodeAt(0); last = textBetweenOperands.charCodeAt(textBetweenOperands.length - 1); if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47) t1 = !(last === 32 || last === 9 || last === 10 || last === 13 || last === 12 || last === 47); else t1 = true; if (t1) throw A.wrapException(this._async_evaluate$_exception$2(string$.x22x2b__an, node.get$operatorSpan())); }, _async_evaluate$_binaryOperatorToCalculationOperator$2(operator, node) { var t1; $label0$0: { if (B.BinaryOperator_anB === operator) { t1 = B.CalculationOperator_IyK; break $label0$0; } if (B.BinaryOperator_olz === operator) { t1 = B.CalculationOperator_2bx; break $label0$0; } if (B.BinaryOperator_qN2 === operator) { t1 = B.CalculationOperator_jFr; break $label0$0; } if (B.BinaryOperator_t8B === operator) { t1 = B.CalculationOperator_OvN; break $label0$0; } t1 = A.throwExpression(this._async_evaluate$_exception$2(string$.This_o, node.get$operatorSpan())); } return t1; }, _async_evaluate$_checkAdjacentCalculationValues$2(elements, node) { var t1, i, t2, previous, current, previousNode, currentNode, _0_2; for (t1 = elements.length, i = 1; i < t1; ++i) { t2 = i - 1; previous = elements[t2]; current = elements[i]; if (previous instanceof A.SassString || current instanceof A.SassString) continue; t1 = node.contents; previousNode = t1[t2]; currentNode = t1[i]; _0_2 = A._InitializedCell$(new A._EvaluateVisitor__checkAdjacentCalculationValues_closure0(currentNode)); if (currentNode instanceof A.UnaryOperationExpression) t1 = B.UnaryOperator_TLI === _0_2._readFinal$0() || B.UnaryOperator_gg4 === _0_2._readFinal$0(); else t1 = false; if (!t1) t1 = currentNode instanceof A.NumberExpression && currentNode.value < 0; else t1 = true; if (t1) throw A.wrapException(this._async_evaluate$_exception$2(string$.x22x2b__an, A.FileSpanExtension_subspan(currentNode.get$span(currentNode), 0, 1))); else throw A.wrapException(this._async_evaluate$_exception$2("Missing math operator.", previousNode.get$span(previousNode).expand$1(0, currentNode.get$span(currentNode)))); } }, visitInterpolatedFunctionExpression$1(node) { return this.visitInterpolatedFunctionExpression$body$_EvaluateVisitor(node); }, visitInterpolatedFunctionExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$self = this, result, t1, oldInFunction; var $async$visitInterpolatedFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(node.name), $async$visitInterpolatedFunctionExpression$1); case 3: // returning from await. t1 = $async$result; oldInFunction = $async$self._async_evaluate$_inFunction; $async$self._async_evaluate$_inFunction = true; $async$goto = 4; 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); case 4: // returning from await. result = $async$result; $async$self._async_evaluate$_inFunction = oldInFunction; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitInterpolatedFunctionExpression$1, $async$completer); }, _async_evaluate$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) { return this._runUserDefinedCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan, run, $V, $V); }, _runUserDefinedCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan, run, $V, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, oldCallable, result, evaluated, $name; var $async$_async_evaluate$_runUserDefinedCallable$1$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_runUserDefinedCallable$1$4); case 3: // returning from await. evaluated = $async$result; $name = callable.declaration.name; if ($name !== "@content") $name += "()"; oldCallable = $async$self._async_evaluate$_currentCallable; $async$self._async_evaluate$_currentCallable = callable; $async$goto = 4; 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); case 4: // returning from await. result = $async$result; $async$self._async_evaluate$_currentCallable = oldCallable; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_runUserDefinedCallable$1$4, $async$completer); }, _async_evaluate$_runFunctionCallable$3($arguments, callable, nodeWithSpan) { return this._runFunctionCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan); }, _runFunctionCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, buffer, first, argument, restArg, rest, error, t1, t2, _i, exception, $async$exception, $async$temp1, $async$temp2; var $async$_async_evaluate$_runFunctionCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start $async$goto = type$.AsyncBuiltInCallable._is(callable) ? 3 : 5; break; case 3: // then $async$goto = 6; return A._asyncAwait($async$self._async_evaluate$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate$_runFunctionCallable$3); case 6: // returning from await. $async$returnValue = $async$self._async_evaluate$_withoutSlash$2($async$result, nodeWithSpan); // goto return $async$goto = 1; break; // goto join $async$goto = 4; break; case 5: // else $async$goto = type$.UserDefinedCallable_AsyncEnvironment._is(callable) ? 7 : 9; break; case 7: // then $async$goto = 10; 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); case 10: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; // goto join $async$goto = 8; break; case 9: // else $async$goto = callable instanceof A.PlainCssCallable ? 11 : 13; break; case 11: // then t1 = $arguments.named; if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan))); buffer = new A.StringBuffer(callable.name + "("); $async$handler = 15; first = true; t1 = $arguments.positional, t2 = t1.length, _i = 0; case 18: // for condition if (!(_i < t2)) { // goto after for $async$goto = 20; break; } argument = t1[_i]; if (first) first = false; else buffer._contents += ", "; $async$temp1 = buffer; $async$temp2 = A; $async$goto = 21; return A._asyncAwait($async$self._evaluateToCss$1(argument), $async$_async_evaluate$_runFunctionCallable$3); case 21: // returning from await. $async$temp1._contents += $async$temp2.S($async$result); case 19: // for update ++_i; // goto for condition $async$goto = 18; break; case 20: // after for restArg = $arguments.rest; $async$goto = restArg != null ? 22 : 23; break; case 22: // then $async$goto = 24; return A._asyncAwait(restArg.accept$1($async$self), $async$_async_evaluate$_runFunctionCallable$3); case 24: // returning from await. rest = $async$result; if (!first) buffer._contents += ", "; buffer._contents += $async$self._async_evaluate$_serialize$2(rest, restArg); case 23: // join $async$handler = 2; // goto after finally $async$goto = 17; break; case 15: // catch $async$handler = 14; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (type$.SassRuntimeException._is(t1)) { error = t1; if (!B.JSString_methods.endsWith$1(error._span_exception$_message, "isn't a valid CSS value.")) throw $async$exception; 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)); } else throw $async$exception; // goto after finally $async$goto = 17; break; case 14: // uncaught // goto rethrow $async$goto = 2; break; case 17: // after finally buffer._contents += A.Primitives_stringFromCharCode(41); t1 = buffer._contents; $async$returnValue = new A.SassString(t1.charCodeAt(0) == 0 ? t1 : t1, false); // goto return $async$goto = 1; break; // goto join $async$goto = 12; break; case 13: // else throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$(callable).toString$0(0) + ".", null)); case 12: // join case 8: // join case 4: // join case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_runFunctionCallable$3, $async$completer); }, _async_evaluate$_runBuiltInCallable$3($arguments, callable, nodeWithSpan) { return this._runBuiltInCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan); }, _runBuiltInCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, result, error, stackTrace, message, namedSet, _0_0, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, message0, _box_0, evaluated, oldCallableNode, $async$exception; var $async$_async_evaluate$_runBuiltInCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start _box_0 = {}; $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_runBuiltInCallable$3); case 3: // returning from await. evaluated = $async$result; oldCallableNode = $async$self._async_evaluate$_callableNode; $async$self._async_evaluate$_callableNode = nodeWithSpan; namedSet = new A.MapKeySet(evaluated._values[0], type$.MapKeySet_String); _box_0.callback = _box_0.overload = null; _0_0 = callable.callbackFor$2(J.get$length$asx(evaluated._values[2]), namedSet); _box_0.overload = _0_0._0; _box_0.callback = _0_0._1; $async$self._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure2(_box_0, evaluated, namedSet)); declaredArguments = _box_0.overload.$arguments; i = J.get$length$asx(evaluated._values[2]), t1 = declaredArguments.length; case 4: // for condition if (!(i < t1)) { // goto after for $async$goto = 6; break; } argument = declaredArguments[i]; t2 = evaluated._values[2]; t3 = evaluated._values[0].remove$1(0, argument.name); $async$goto = t3 == null ? 7 : 8; break; case 7: // then t3 = argument.defaultValue; $async$goto = 9; return A._asyncAwait(t3.accept$1($async$self), $async$_async_evaluate$_runBuiltInCallable$3); case 9: // returning from await. t3 = $async$self._async_evaluate$_withoutSlash$2($async$result, t3); case 8: // join J.add$1$ax(t2, t3); case 5: // for update ++i; // goto for condition $async$goto = 4; break; case 6: // after for if (_box_0.overload.restArgument != null) { if (J.get$length$asx(evaluated._values[2]) > t1) { rest = J.sublist$1$ax(evaluated._values[2], t1); J.removeRange$2$ax(evaluated._values[2], t1, J.get$length$asx(evaluated._values[2])); } else rest = B.List_empty8; t1 = evaluated._values[0]; argumentList = A.SassArgumentList$(rest, t1, evaluated._values[4] === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_rXA : evaluated._values[4]); J.add$1$ax(evaluated._values[2], argumentList); } else argumentList = null; result = null; $async$handler = 11; $async$goto = 14; return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure3(_box_0, evaluated), type$.Value), $async$_async_evaluate$_runBuiltInCallable$3); case 14: // returning from await. result = $async$result; $async$handler = 2; // goto after finally $async$goto = 13; break; case 11: // catch $async$handler = 10; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (t1 instanceof A.SassException) throw $async$exception; else { error = t1; stackTrace = A.getTraceFromException($async$exception); message = null; try { message = A._asString(J.get$message$x(error)); } catch (exception) { message0 = J.toString$0$(error); message = message0; } A.throwWithTrace($async$self._async_evaluate$_exception$2(message, nodeWithSpan.get$span(nodeWithSpan)), error, stackTrace); } // goto after finally $async$goto = 13; break; case 10: // uncaught // goto rethrow $async$goto = 2; break; case 13: // after finally $async$self._async_evaluate$_callableNode = oldCallableNode; if (argumentList == null) { $async$returnValue = result; // goto return $async$goto = 1; break; } t1 = evaluated._values[0]; if (t1.get$isEmpty(t1)) { $async$returnValue = result; // goto return $async$goto = 1; break; } if (argumentList._wereKeywordsAccessed) { $async$returnValue = result; // goto return $async$goto = 1; break; } t1 = evaluated._values[0]; t1 = A.pluralize("argument", J.get$length$asx(t1.get$keys(t1)), null); t2 = evaluated._values[0]; 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)); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_runBuiltInCallable$3, $async$completer); }, _async_evaluate$_evaluateArguments$1($arguments) { return this._evaluateArguments$body$_EvaluateVisitor($arguments); }, _evaluateArguments$body$_EvaluateVisitor($arguments) { var $async$goto = 0, $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), $async$returnValue, $async$self = this, t1, t2, _i, expression, nodeForSpan, named, namedNodes, t3, t4, $name, value, restArgs, rest, restNodeForSpan, t5, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, positional, positionalNodes, $async$temp1, $async$temp2; var $async$_async_evaluate$_evaluateArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start positional = A._setArrayType([], type$.JSArray_Value); positionalNodes = A._setArrayType([], type$.JSArray_AstNode); t1 = $arguments.positional, t2 = t1.length, _i = 0; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } expression = t1[_i]; nodeForSpan = $async$self._async_evaluate$_expressionNode$1(expression); $async$temp1 = positional; $async$goto = 6; return A._asyncAwait(expression.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$1); case 6: // returning from await. $async$temp1.push($async$self._async_evaluate$_withoutSlash$2($async$result, nodeForSpan)); positionalNodes.push(nodeForSpan); case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for t1 = type$.String; named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value); t2 = type$.AstNode; namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); t3 = A.MapExtensions_get_pairs($arguments.named, t1, type$.Expression), t3 = t3.get$iterator(t3); case 7: // for condition if (!t3.moveNext$0()) { // goto after for $async$goto = 8; break; } t4 = t3.get$current(t3); $name = t4._0; value = t4._1; nodeForSpan = $async$self._async_evaluate$_expressionNode$1(value); $async$temp1 = named; $async$temp2 = $name; $async$goto = 9; return A._asyncAwait(value.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$1); case 9: // returning from await. $async$temp1.$indexSet(0, $async$temp2, $async$self._async_evaluate$_withoutSlash$2($async$result, nodeForSpan)); namedNodes.$indexSet(0, $name, nodeForSpan); // goto for condition $async$goto = 7; break; case 8: // after for restArgs = $arguments.rest; if (restArgs == null) { $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, B.ListSeparator_undecided_null_undecided]); // goto return $async$goto = 1; break; } $async$goto = 10; return A._asyncAwait(restArgs.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$1); case 10: // returning from await. rest = $async$result; restNodeForSpan = $async$self._async_evaluate$_expressionNode$1(restArgs); if (rest instanceof A.SassMap) { $async$self._async_evaluate$_addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure3()); t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t4 = rest._map$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString; t4.moveNext$0();) t3.$indexSet(0, t5._as(t4.get$current(t4))._string$_text, restNodeForSpan); namedNodes.addAll$1(0, t3); separator = B.ListSeparator_undecided_null_undecided; } else if (rest instanceof A.SassList) { t3 = rest._list$_contents; 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>"))); B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2)); separator = rest._separator; if (rest instanceof A.SassArgumentList) { rest._wereKeywordsAccessed = true; rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure5($async$self, named, restNodeForSpan, namedNodes)); } } else { positional.push($async$self._async_evaluate$_withoutSlash$2(rest, restNodeForSpan)); positionalNodes.push(restNodeForSpan); separator = B.ListSeparator_undecided_null_undecided; } keywordRestArgs = $arguments.keywordRest; if (keywordRestArgs == null) { $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]); // goto return $async$goto = 1; break; } $async$goto = 11; return A._asyncAwait(keywordRestArgs.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$1); case 11: // returning from await. keywordRest = $async$result; keywordRestNodeForSpan = $async$self._async_evaluate$_expressionNode$1(keywordRestArgs); if (keywordRest instanceof A.SassMap) { $async$self._async_evaluate$_addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure6()); t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t2 = keywordRest._map$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString; t2.moveNext$0();) t1.$indexSet(0, t3._as(t2.get$current(t2))._string$_text, keywordRestNodeForSpan); namedNodes.addAll$1(0, t1); $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]); // goto return $async$goto = 1; break; } else throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs))); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_evaluateArguments$1, $async$completer); }, _async_evaluate$_evaluateMacroArguments$1(invocation) { return this._evaluateMacroArguments$body$_EvaluateVisitor(invocation); }, _evaluateMacroArguments$body$_EvaluateVisitor(invocation) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_List_Expression_and_Map_String_Expression), $async$returnValue, $async$self = this, t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, t1, restArgs_; var $async$_async_evaluate$_evaluateMacroArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = invocation.$arguments; restArgs_ = t1.rest; if (restArgs_ == null) { $async$returnValue = new A._Record_2(t1.positional, t1.named); // goto return $async$goto = 1; break; } t2 = t1.positional; positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2)); named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression); $async$goto = 3; return A._asyncAwait(restArgs_.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1); case 3: // returning from await. rest = $async$result; restNodeForSpan = $async$self._async_evaluate$_expressionNode$1(restArgs_); if (rest instanceof A.SassMap) $async$self._async_evaluate$_addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure3(restArgs_)); else if (rest instanceof A.SassList) { t2 = rest._list$_contents; 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>"))); if (rest instanceof A.SassArgumentList) { rest._wereKeywordsAccessed = true; rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure5($async$self, named, restNodeForSpan, restArgs_)); } } else positional.push(new A.ValueExpression($async$self._async_evaluate$_withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_))); keywordRestArgs_ = t1.keywordRest; if (keywordRestArgs_ == null) { $async$returnValue = new A._Record_2(positional, named); // goto return $async$goto = 1; break; } $async$goto = 4; return A._asyncAwait(keywordRestArgs_.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1); case 4: // returning from await. keywordRest = $async$result; keywordRestNodeForSpan = $async$self._async_evaluate$_expressionNode$1(keywordRestArgs_); if (keywordRest instanceof A.SassMap) { $async$self._async_evaluate$_addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure6($async$self, keywordRestNodeForSpan, keywordRestArgs_)); $async$returnValue = new A._Record_2(positional, named); // goto return $async$goto = 1; break; } else throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_))); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_evaluateMacroArguments$1, $async$completer); }, _async_evaluate$_addRestMap$1$4(values, map, nodeWithSpan, convert) { map._map$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure0(this, values, convert, this._async_evaluate$_expressionNode$1(nodeWithSpan), map, nodeWithSpan)); }, _async_evaluate$_addRestMap$4(values, map, nodeWithSpan, convert) { return this._async_evaluate$_addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic); }, _async_evaluate$_verifyArguments$4(positional, named, $arguments, nodeWithSpan) { return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure0($arguments, positional, named)); }, visitSelectorExpression$1(node) { return this.visitSelectorExpression$body$_EvaluateVisitor(node); }, visitSelectorExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$self = this, t1; var $async$visitSelectorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self._async_evaluate$_styleRuleIgnoringAtRoot; t1 = t1 == null ? null : t1.originalSelector.get$asSassList(); $async$returnValue = t1 == null ? B.C__SassNull : t1; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitSelectorExpression$1, $async$completer); }, visitStringExpression$1(node) { return this.visitStringExpression$body$_EvaluateVisitor(node); }, visitStringExpression$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassString), $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, value, t5, _0_0, text, oldInSupportsDeclaration; var $async$visitStringExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldInSupportsDeclaration = $async$self._async_evaluate$_inSupportsDeclaration; $async$self._async_evaluate$_inSupportsDeclaration = false; t1 = A._setArrayType([], type$.JSArray_String); t2 = node.text.contents, t3 = t2.length, t4 = type$.Expression, _i = 0; case 3: // for condition if (!(_i < t3)) { // goto after for $async$goto = 5; break; } value = t2[_i]; if (typeof value == "string") { t5 = value; // goto break $label0$0 $async$goto = 6; break; } $async$goto = t4._is(value) ? 7 : 8; break; case 7: // then $async$goto = 9; return A._asyncAwait(value.accept$1($async$self), $async$visitStringExpression$1); case 9: // returning from await. _0_0 = $async$result; $label1$1: { if (_0_0 instanceof A.SassString) { text = _0_0._string$_text; t5 = true; } else { text = null; t5 = false; } if (t5) { t5 = text; break $label1$1; } t5 = $async$self._async_evaluate$_serialize$3$quote(_0_0, value, false); break $label1$1; } // goto break $label0$0 $async$goto = 6; break; case 8: // join t5 = A.throwExpression(A.UnsupportedError$("Unknown interpolation value " + A.S(value))); case 6: // break $label0$0 t1.push(t5); case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for t1 = B.JSArray_methods.join$0(t1); $async$self._async_evaluate$_inSupportsDeclaration = oldInSupportsDeclaration; $async$returnValue = new A.SassString(t1, node.hasQuotes); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitStringExpression$1, $async$completer); }, visitSupportsExpression$1(expression) { return this.visitSupportsExpression$body$_EvaluateVisitor(expression); }, visitSupportsExpression$body$_EvaluateVisitor(expression) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassString), $async$returnValue, $async$self = this, $async$temp1; var $async$visitSupportsExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$temp1 = A; $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(expression.condition), $async$visitSupportsExpression$1); case 3: // returning from await. $async$returnValue = new $async$temp1.SassString($async$result, false); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitSupportsExpression$1, $async$completer); }, visitCssAtRule$1(node) { return this.visitCssAtRule$body$_EvaluateVisitor(node); }, visitCssAtRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$returnValue, $async$self = this, wasInKeyframes, wasInUnknownAtRule, t1; var $async$visitCssAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate$_declarationName != null) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.At_rul, node.span)); if (node.isChildless) { $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$(node.name, node.span, true, node.value)); // goto return $async$goto = 1; break; } wasInKeyframes = $async$self._async_evaluate$_inKeyframes; wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule; t1 = node.name; if (A.unvendor(t1.value) === "keyframes") $async$self._async_evaluate$_inKeyframes = true; else $async$self._async_evaluate$_inUnknownAtRule = true; $async$goto = 3; 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); case 3: // returning from await. $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule; $async$self._async_evaluate$_inKeyframes = wasInKeyframes; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitCssAtRule$1, $async$completer); }, visitCssComment$1(node) { return this.visitCssComment$body$_EvaluateVisitor(node); }, visitCssComment$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this; var $async$visitCssComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start 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)) $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1; $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(new A.ModifiableCssComment(node.text, node.span)); // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssComment$1, $async$completer); }, visitCssDeclaration$1(node) { return this.visitCssDeclaration$body$_EvaluateVisitor(node); }, visitCssDeclaration$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this; var $async$visitCssDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap)); // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssDeclaration$1, $async$completer); }, visitCssImport$1(node) { return this.visitCssImport$body$_EvaluateVisitor(node); }, visitCssImport$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1, modifiableNode; var $async$visitCssImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start modifiableNode = new A.ModifiableCssImport(node.url, node.modifiers, node.span); 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$__parent, "__parent").addChild$1(modifiableNode); 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)) { $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").addChild$1(modifiableNode); $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1; } else { t1 = $async$self._async_evaluate$_outOfOrderImports; (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t1).push(modifiableNode); } // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssImport$1, $async$completer); }, visitCssKeyframeBlock$1(node) { return this.visitCssKeyframeBlock$body$_EvaluateVisitor(node); }, visitCssKeyframeBlock$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this; var $async$visitCssKeyframeBlock$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer); }, visitCssMediaRule$1(node) { return this.visitCssMediaRule$body$_EvaluateVisitor(node); }, visitCssMediaRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$returnValue, $async$self = this, mergedQueries, t1, mergedSources, t2, t3; var $async$visitCssMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate$_declarationName != null) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Media_, node.span)); mergedQueries = A.NullableExtension_andThen($async$self._async_evaluate$_mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure2($async$self, node)); t1 = mergedQueries == null; if (!t1 && J.get$isEmpty$asx(mergedQueries)) { // goto return $async$goto = 1; break; } if (t1) mergedSources = B.Set_empty1; else { t2 = $async$self._async_evaluate$_mediaQuerySources; t2.toString; t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery); t3 = $async$self._async_evaluate$_mediaQueries; t3.toString; t2.addAll$1(0, t3); t2.addAll$1(0, node.queries); mergedSources = t2; } t1 = t1 ? node.queries : mergedQueries; $async$goto = 3; 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); case 3: // returning from await. case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitCssMediaRule$1, $async$completer); }, visitCssStyleRule$1(node) { return this.visitCssStyleRule$body$_EvaluateVisitor(node); }, visitCssStyleRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1, styleRule, t2, t3, t4, originalSelector, rule, oldAtRootExcludingStyleRule, _0_0, _0_1, lastChild; var $async$visitCssStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate$_declarationName != null) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Style_, node.span)); t1 = $async$self._async_evaluate$_atRootExcludingStyleRule; styleRule = t1 ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot; t2 = node._style_rule$_selector._box$_inner.value; t3 = styleRule == null; t4 = t3 ? null : styleRule.originalSelector; originalSelector = t2.resolveParentSelectors$2$implicitParent(t4, !t1); 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, originalSelector); oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule; $async$self._async_evaluate$_atRootExcludingStyleRule = false; $async$goto = 2; return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure2($async$self, rule, node), false, new A._EvaluateVisitor_visitCssStyleRule_closure3(), type$.ModifiableCssStyleRule, type$.Null), $async$visitCssStyleRule$1); case 2: // returning from await. $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule; _0_0 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").children; _0_1 = A._InitializedCell$(new A._EvaluateVisitor_visitCssStyleRule_closure4(_0_0)); if (_0_1._readFinal$0() >= 1) { lastChild = J.elementAt$1$ax(_0_0._collection$_source, _0_1._readFinal$0() - 1); t1 = t3; } else { lastChild = null; t1 = false; } if (t1) lastChild.isGroupEnd = true; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssStyleRule$1, $async$completer); }, visitCssStylesheet$1(node) { return this.visitCssStylesheet$body$_EvaluateVisitor(node); }, visitCssStylesheet$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1; var $async$visitCssStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = J.get$iterator$ax(node.get$children(node)); case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } $async$goto = 4; return A._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1); case 4: // returning from await. // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssStylesheet$1, $async$completer); }, visitCssSupportsRule$1(node) { return this.visitCssSupportsRule$body$_EvaluateVisitor(node); }, visitCssSupportsRule$body$_EvaluateVisitor(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this; var $async$visitCssSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate$_declarationName != null) throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Suppor, node.span)); $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssSupportsRule$1, $async$completer); }, _async_evaluate$_handleReturn$1$2(list, callback) { return this._handleReturn$body$_EvaluateVisitor(list, callback); }, _async_evaluate$_handleReturn$2(list, callback) { return this._async_evaluate$_handleReturn$1$2(list, callback, type$.dynamic); }, _handleReturn$body$_EvaluateVisitor(list, callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, t1, _i, _0_0, result, t2; var $async$_async_evaluate$_handleReturn$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = list.length, _i = 0; case 3: // for condition if (!(_i < list.length)) { // goto after for $async$goto = 5; break; } $async$goto = 6; return A._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate$_handleReturn$1$2); case 6: // returning from await. _0_0 = $async$result; if (_0_0 != null) { result = _0_0; t2 = true; } else { result = null; t2 = false; } if (t2) { $async$returnValue = result; // goto return $async$goto = 1; break; } case 4: // for update list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_handleReturn$1$2, $async$completer); }, _async_evaluate$_withEnvironment$1$2(environment, callback, $T) { return this._withEnvironment$body$_EvaluateVisitor(environment, callback, $T, $T); }, _withEnvironment$body$_EvaluateVisitor(environment, callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, result, oldEnvironment; var $async$_async_evaluate$_withEnvironment$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldEnvironment = $async$self._async_evaluate$_environment; $async$self._async_evaluate$_environment = environment; $async$goto = 3; return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withEnvironment$1$2); case 3: // returning from await. result = $async$result; $async$self._async_evaluate$_environment = oldEnvironment; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_withEnvironment$1$2, $async$completer); }, _async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) { return this._interpolationToValue$body$_EvaluateVisitor(interpolation, trim, warnForColor); }, _async_evaluate$_interpolationToValue$1(interpolation) { return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, false); }, _async_evaluate$_interpolationToValue$2$warnForColor(interpolation, warnForColor) { return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor); }, _interpolationToValue$body$_EvaluateVisitor(interpolation, trim, warnForColor) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.CssValue_String), $async$returnValue, $async$self = this, result, t1; var $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor); case 3: // returning from await. result = $async$result; t1 = trim ? A.trimAscii(result, true) : result; $async$returnValue = new A.CssValue(t1, interpolation.span, type$.CssValue_String); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_interpolationToValue$3$trim$warnForColor, $async$completer); }, _async_evaluate$_performInterpolation$2$warnForColor(interpolation, warnForColor) { return this._performInterpolation$body$_EvaluateVisitor(interpolation, warnForColor); }, _async_evaluate$_performInterpolation$1(interpolation) { return this._async_evaluate$_performInterpolation$2$warnForColor(interpolation, false); }, _performInterpolation$body$_EvaluateVisitor(interpolation, warnForColor) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.String), $async$returnValue, $async$self = this, result; var $async$_async_evaluate$_performInterpolation$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, false, warnForColor), $async$_async_evaluate$_performInterpolation$2$warnForColor); case 3: // returning from await. result = $async$result._0; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_performInterpolation$2$warnForColor, $async$completer); }, _async_evaluate$_performInterpolationWithMap$2$warnForColor(interpolation, warnForColor) { return this._performInterpolationWithMap$body$_EvaluateVisitor(interpolation, true); }, _performInterpolationWithMap$body$_EvaluateVisitor(interpolation, warnForColor) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_String_and_InterpolationMap), $async$returnValue, $async$self = this, _0_0, result, map; var $async$_async_evaluate$_performInterpolationWithMap$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, true, true), $async$_async_evaluate$_performInterpolationWithMap$2$warnForColor); case 3: // returning from await. _0_0 = $async$result; result = _0_0._0; map = _0_0._1; map.toString; $async$returnValue = new A._Record_2(result, map); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_performInterpolationWithMap$2$warnForColor, $async$completer); }, _async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, sourceMap, warnForColor) { return this._performInterpolationHelper$body$_EvaluateVisitor(interpolation, sourceMap, warnForColor); }, _performInterpolationHelper$body$_EvaluateVisitor(interpolation, sourceMap, warnForColor) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_String_and_nullable_InterpolationMap), $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, t6, t7, first, _i, t8, value, result, t9, result0, targetLocations, oldInSupportsDeclaration; var $async$_async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start targetLocations = sourceMap ? A._setArrayType([], type$.JSArray_SourceLocation) : null; oldInSupportsDeclaration = $async$self._async_evaluate$_inSupportsDeclaration; $async$self._async_evaluate$_inSupportsDeclaration = false; t1 = interpolation.contents, t2 = t1.length, t3 = type$.Expression, t4 = targetLocations == null, t5 = type$.JSArray_Object, t6 = interpolation.span, t7 = type$.Object, first = true, _i = 0, t8 = ""; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } value = t1[_i]; if (!first) if (!t4) targetLocations.push(A.SourceLocation$(t8.length, null, null, null)); if (typeof value == "string") { t8 += value; // goto for update $async$goto = 4; break; } t3._as(value); $async$goto = 6; return A._asyncAwait(value.accept$1($async$self), $async$_async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor); case 6: // returning from await. result = $async$result; if (warnForColor && $.$get$namesByColor().containsKey$1(result)) { t9 = A._setArrayType([""], t5); result0 = A.List_List$from(t9, false, t7); result0.fixed$length = Array; result0.immutable$list = Array; result0 = new A.Interpolation(result0, t6); result0.Interpolation$2(t9, t6); t9 = $.$get$namesByColor(); $async$self._async_evaluate$_warn$2(string$.You_pr + A.S(t9.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whicw + A.S(t9.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression(B.BinaryOperator_anB, new A.StringExpression(result0, true), value, false).toString$0(0) + "'.", value.get$span(value)); } t8 += $async$self._async_evaluate$_serialize$3$quote(result, value, false); case 4: // for update ++_i, first = false; // goto for condition $async$goto = 3; break; case 5: // after for $async$self._async_evaluate$_inSupportsDeclaration = oldInSupportsDeclaration; $async$returnValue = new A._Record_2(t8.charCodeAt(0) == 0 ? t8 : t8, A.NullableExtension_andThen(targetLocations, new A._EvaluateVisitor__performInterpolationHelper_closure0(interpolation))); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor, $async$completer); }, _evaluateToCss$2$quote(expression, quote) { return this._evaluateToCss$body$_EvaluateVisitor(expression, quote); }, _evaluateToCss$1(expression) { return this._evaluateToCss$2$quote(expression, true); }, _evaluateToCss$body$_EvaluateVisitor(expression, quote) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.String), $async$returnValue, $async$self = this; var $async$_evaluateToCss$2$quote = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait(expression.accept$1($async$self), $async$_evaluateToCss$2$quote); case 3: // returning from await. $async$returnValue = $async$self._async_evaluate$_serialize$3$quote($async$result, expression, quote); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_evaluateToCss$2$quote, $async$completer); }, _async_evaluate$_serialize$3$quote(value, nodeWithSpan, quote) { return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure0(value, quote)); }, _async_evaluate$_serialize$2(value, nodeWithSpan) { return this._async_evaluate$_serialize$3$quote(value, nodeWithSpan, true); }, _async_evaluate$_expressionNode$1(expression) { var t1; if (expression instanceof A.VariableExpression) { t1 = this._async_evaluate$_addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure0(this, expression)); return t1 == null ? expression : t1; } else return expression; }, _async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) { return this._withParent$body$_EvaluateVisitor(node, callback, scopeWhen, through, $S, $T, $T); }, _async_evaluate$_withParent$2$2(node, callback, $S, $T) { return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T); }, _async_evaluate$_withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) { return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T); }, _withParent$body$_EvaluateVisitor(node, callback, scopeWhen, through, $S, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, t1, result; var $async$_async_evaluate$_withParent$2$4$scopeWhen$through = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$self._async_evaluate$_addChild$2$through(node, through); t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent"); $async$self._async_evaluate$__parent = node; $async$goto = 3; return A._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(callback, scopeWhen, $T), $async$_async_evaluate$_withParent$2$4$scopeWhen$through); case 3: // returning from await. result = $async$result; $async$self._async_evaluate$__parent = t1; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_withParent$2$4$scopeWhen$through, $async$completer); }, _async_evaluate$_addChild$2$through(node, through) { var _0_0, grandparent, t1, $parent = this._async_evaluate$_assertInModule$2(this._async_evaluate$__parent, "__parent"); if (through != null) { for (; through.call$1($parent); $parent = grandparent) { _0_0 = $parent._parent; if (_0_0 != null) { grandparent = _0_0; t1 = true; } else { grandparent = null; t1 = false; } if (!t1) throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null)); } if ($parent.get$hasFollowingSibling()) { grandparent = $parent._parent; t1 = grandparent.children; if ($parent.equalsIgnoringChildren$1(t1.get$last(t1))) $parent = type$.ModifiableCssParentNode._as(t1.get$last(t1)); else { $parent = $parent.copyWithoutChildren$0(); grandparent.addChild$1($parent); } } } $parent.addChild$1(node); }, _async_evaluate$_addChild$1(node) { return this._async_evaluate$_addChild$2$through(node, null); }, _async_evaluate$_withStyleRule$1$2(rule, callback, $T) { return this._withStyleRule$body$_EvaluateVisitor(rule, callback, $T, $T); }, _withStyleRule$body$_EvaluateVisitor(rule, callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, result, oldRule; var $async$_async_evaluate$_withStyleRule$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldRule = $async$self._async_evaluate$_styleRuleIgnoringAtRoot; $async$self._async_evaluate$_styleRuleIgnoringAtRoot = rule; $async$goto = 3; return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStyleRule$1$2); case 3: // returning from await. result = $async$result; $async$self._async_evaluate$_styleRuleIgnoringAtRoot = oldRule; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_withStyleRule$1$2, $async$completer); }, _async_evaluate$_withMediaQueries$1$3(queries, sources, callback, $T) { return this._withMediaQueries$body$_EvaluateVisitor(queries, sources, callback, $T, $T); }, _withMediaQueries$body$_EvaluateVisitor(queries, sources, callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, result, oldMediaQueries, oldSources; var $async$_async_evaluate$_withMediaQueries$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldMediaQueries = $async$self._async_evaluate$_mediaQueries; oldSources = $async$self._async_evaluate$_mediaQuerySources; $async$self._async_evaluate$_mediaQueries = queries; $async$self._async_evaluate$_mediaQuerySources = sources; $async$goto = 3; return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withMediaQueries$1$3); case 3: // returning from await. result = $async$result; $async$self._async_evaluate$_mediaQueries = oldMediaQueries; $async$self._async_evaluate$_mediaQuerySources = oldSources; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_withMediaQueries$1$3, $async$completer); }, _async_evaluate$_withStackFrame$1$3(member, nodeWithSpan, callback, $T) { return this._withStackFrame$body$_EvaluateVisitor(member, nodeWithSpan, callback, $T, $T); }, _withStackFrame$body$_EvaluateVisitor(member, nodeWithSpan, callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, oldMember, result, t1; var $async$_async_evaluate$_withStackFrame$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self._async_evaluate$_stack; t1.push(new A._Record_2($async$self._async_evaluate$_member, nodeWithSpan)); oldMember = $async$self._async_evaluate$_member; $async$self._async_evaluate$_member = member; $async$goto = 3; return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStackFrame$1$3); case 3: // returning from await. result = $async$result; $async$self._async_evaluate$_member = oldMember; t1.pop(); $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_withStackFrame$1$3, $async$completer); }, _async_evaluate$_withoutSlash$2(value, nodeForSpan) { if (value instanceof A.SassNumber && value.asSlash != null && true) 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_xHK); return value.withoutSlash$0(); }, _async_evaluate$_stackFrame$2(member, span) { return A.frameForSpan(span, member, A.NullableExtension_andThen(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure0(this))); }, _async_evaluate$_stackTrace$1(span) { var t2, t3, _i, t4, nodeWithSpan, _this = this, t1 = A._setArrayType([], type$.JSArray_Frame); for (t2 = _this._async_evaluate$_stack, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) { t4 = t2[_i]; nodeWithSpan = t4._1; t1.push(_this._async_evaluate$_stackFrame$2(t4._0, nodeWithSpan.get$span(nodeWithSpan))); } if (span != null) t1.push(_this._async_evaluate$_stackFrame$2(_this._async_evaluate$_member, span)); return A.Trace$(new A.ReversedListIterable(t1, type$.ReversedListIterable_Frame), null); }, _async_evaluate$_stackTrace$0() { return this._async_evaluate$_stackTrace$1(null); }, _async_evaluate$_warn$3(message, span, deprecation) { var t1, trace, _this = this; if (_this._async_evaluate$_quietDeps) if (!_this._async_evaluate$_inDependency) { t1 = _this._async_evaluate$_currentCallable; t1 = t1 == null ? null : t1.inDependency; t1 = t1 === true; } else t1 = true; else t1 = false; if (t1) return; if (!_this._async_evaluate$_warningsEmitted.add$1(0, new A._Record_2(message, span))) return; trace = _this._async_evaluate$_stackTrace$1(span); t1 = _this._async_evaluate$_logger; if (deprecation == null) t1.warn$3$span$trace(0, message, span, trace); else A.WarnForDeprecation_warnForDeprecation(t1, deprecation, message, span, trace); }, _async_evaluate$_warn$2(message, span) { return this._async_evaluate$_warn$3(message, span, null); }, _async_evaluate$_exception$2(message, span) { var t1, t2; if (span == null) { t1 = B.JSArray_methods.get$last(this._async_evaluate$_stack)._1; t1 = t1.get$span(t1); } else t1 = span; t2 = this._async_evaluate$_stackTrace$1(span); return new A.SassRuntimeException(t2, B.Set_empty, message, t1); }, _async_evaluate$_exception$1(message) { return this._async_evaluate$_exception$2(message, null); }, _async_evaluate$_multiSpanException$3(message, primaryLabel, secondaryLabels) { var t1 = B.JSArray_methods.get$last(this._async_evaluate$_stack)._1; return A.MultiSpanSassRuntimeException$(message, t1.get$span(t1), primaryLabel, secondaryLabels, this._async_evaluate$_stackTrace$0(), null); }, _async_evaluate$_addExceptionSpan$1$2(nodeWithSpan, callback) { var error, stackTrace, t1, exception, addStackFrame = true; try { t1 = callback.call$0(); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassScriptException) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan)); A.throwWithTrace(t1.withTrace$1(this._async_evaluate$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace); } else throw exception; } }, _async_evaluate$_addExceptionSpan$2(nodeWithSpan, callback) { return this._async_evaluate$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic); }, _addExceptionSpanAsync$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame, $T) { return this._addExceptionSpanAsync$body$_EvaluateVisitor(nodeWithSpan, callback, addStackFrame, $T, $T); }, _addExceptionSpanAsync$1$2(nodeWithSpan, callback, $T) { return this._addExceptionSpanAsync$1$3$addStackFrame(nodeWithSpan, callback, true, $T); }, _addExceptionSpanAsync$body$_EvaluateVisitor(nodeWithSpan, callback, addStackFrame, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, $async$exception; var $async$_addExceptionSpanAsync$1$3$addStackFrame = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start $async$handler = 4; $async$goto = 7; return A._asyncAwait(callback.call$0(), $async$_addExceptionSpanAsync$1$3$addStackFrame); case 7: // returning from await. t1 = $async$result; $async$returnValue = t1; // goto return $async$goto = 1; break; $async$handler = 2; // goto after finally $async$goto = 6; break; case 4: // catch $async$handler = 3; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (t1 instanceof A.SassScriptException) { error = t1; stackTrace = A.getTraceFromException($async$exception); t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan)); A.throwWithTrace(t1.withTrace$1($async$self._async_evaluate$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace); } else throw $async$exception; // goto after finally $async$goto = 6; break; case 3: // uncaught // goto rethrow $async$goto = 2; break; case 6: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_addExceptionSpanAsync$1$3$addStackFrame, $async$completer); }, _async_evaluate$_addExceptionTrace$1$1(callback, $T) { return this._addExceptionTrace$body$_EvaluateVisitor(callback, $T, $T); }, _addExceptionTrace$body$_EvaluateVisitor(callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, $async$exception; var $async$_async_evaluate$_addExceptionTrace$1$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start $async$handler = 4; $async$goto = 7; return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_addExceptionTrace$1$1); case 7: // returning from await. t1 = $async$result; $async$returnValue = t1; // goto return $async$goto = 1; break; $async$handler = 2; // goto after finally $async$goto = 6; break; case 4: // catch $async$handler = 3; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (type$.SassRuntimeException._is(t1)) throw $async$exception; else if (t1 instanceof A.SassException) { error = t1; stackTrace = A.getTraceFromException($async$exception); t1 = error; t2 = J.getInterceptor$z(t1); A.throwWithTrace(error.withTrace$1($async$self._async_evaluate$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t2, t1))), error, stackTrace); } else throw $async$exception; // goto after finally $async$goto = 6; break; case 3: // uncaught // goto rethrow $async$goto = 2; break; case 6: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_addExceptionTrace$1$1, $async$completer); }, _async_evaluate$_addErrorSpan$1$2(nodeWithSpan, callback, $T) { return this._addErrorSpan$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $T); }, _addErrorSpan$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, t3, $async$exception; var $async$_async_evaluate$_addErrorSpan$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start $async$handler = 4; $async$goto = 7; return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_addErrorSpan$1$2); case 7: // returning from await. t1 = $async$result; $async$returnValue = t1; // goto return $async$goto = 1; break; $async$handler = 2; // goto after finally $async$goto = 6; break; case 4: // catch $async$handler = 3; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (type$.SassRuntimeException._is(t1)) { error = t1; stackTrace = A.getTraceFromException($async$exception); if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error")) throw $async$exception; t1 = error._span_exception$_message; t2 = nodeWithSpan.get$span(nodeWithSpan); t3 = $async$self._async_evaluate$_stackTrace$0(); A.throwWithTrace(new A.SassRuntimeException(t3, B.Set_empty, t1, t2), error, stackTrace); } else throw $async$exception; // goto after finally $async$goto = 6; break; case 3: // uncaught // goto rethrow $async$goto = 2; break; case 6: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate$_addErrorSpan$1$2, $async$completer); } }; A._EvaluateVisitor_closure12.prototype = { call$1($arguments) { var module, t2, t1 = J.getInterceptor$asx($arguments), variable = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this._async_evaluate$_environment; t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-"); return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string$_text) ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._EvaluateVisitor_closure13.prototype = { call$1($arguments) { var variable = J.$index$asx($arguments, 0).assertString$1("name"), t1 = this.$this._async_evaluate$_environment; return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string$_text, "_", "-")) != null ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._EvaluateVisitor_closure14.prototype = { call$1($arguments) { var module, t2, t3, t4, t1 = J.getInterceptor$asx($arguments), variable = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this; t2 = t1._async_evaluate$_environment; t3 = variable._string$_text; t4 = A.stringReplaceAllUnchecked(t3, "_", "-"); 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; }, $signature: 23 }; A._EvaluateVisitor_closure15.prototype = { call$1($arguments) { var module, t2, t1 = J.getInterceptor$asx($arguments), variable = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this._async_evaluate$_environment; t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-"); return t1.getMixin$2$namespace(t2, module == null ? null : module._string$_text) != null ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._EvaluateVisitor_closure16.prototype = { call$1($arguments) { var t1 = this.$this._async_evaluate$_environment; if (!t1._async_environment$_inMixin) throw A.wrapException(A.SassScriptException$(string$.conten, null)); return t1._async_environment$_content != null ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._EvaluateVisitor_closure17.prototype = { call$1($arguments) { var t2, t3, t4, $name, value, t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text, module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1); if (module == null) throw A.wrapException('There is no module with namespace "' + t1 + '".'); t1 = type$.Value; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs(module.get$variables(), type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString($name, true), value); } return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 40 }; A._EvaluateVisitor_closure18.prototype = { call$1($arguments) { var t2, t3, t4, $name, value, t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text, module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1); if (module == null) throw A.wrapException('There is no module with namespace "' + t1 + '".'); t1 = type$.Value; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs(module.get$functions(module), type$.String, type$.AsyncCallable), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString($name, true), new A.SassFunction(value)); } return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 40 }; A._EvaluateVisitor_closure19.prototype = { call$1($arguments) { var t2, t3, t4, $name, value, t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text, module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1); if (module == null) throw A.wrapException('There is no module with namespace "' + t1 + '".'); t1 = type$.Value; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs(module.get$mixins(), type$.String, type$.AsyncCallable), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString($name, true), new A.SassMixin(value)); } return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 40 }; A._EvaluateVisitor_closure20.prototype = { call$1($arguments) { var module, t2, callable, t1 = J.getInterceptor$asx($arguments), $name = t1.$index($arguments, 0).assertString$1("name"), css = t1.$index($arguments, 1).get$isTruthy(); t1 = t1.$index($arguments, 2).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); if (css) { if (module != null) throw A.wrapException(string$.x24css_a); return new A.SassFunction(new A.PlainCssCallable($name._string$_text)); } t1 = this.$this; t2 = t1._async_evaluate$_callableNode; t2.toString; callable = t1._async_evaluate$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure6(t1, $name, module)); if (callable == null) throw A.wrapException("Function not found: " + $name.toString$0(0)); return new A.SassFunction(callable); }, $signature: 222 }; A._EvaluateVisitor__closure6.prototype = { call$0() { var local, normalizedName = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"), t1 = this.module, namespace = t1 == null ? null : t1._string$_text; t1 = this.$this; local = t1._async_evaluate$_environment.getFunction$2$namespace(normalizedName, namespace); if (local != null || namespace != null) return local; return t1._async_evaluate$_builtInFunctions.$index(0, normalizedName); }, $signature: 97 }; A._EvaluateVisitor_closure21.prototype = { call$1($arguments) { var module, t2, callable, t1 = J.getInterceptor$asx($arguments), $name = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this; t2 = t1._async_evaluate$_callableNode; t2.toString; callable = t1._async_evaluate$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure5(t1, $name, module)); if (callable == null) throw A.wrapException("Mixin not found: " + $name.toString$0(0)); return new A.SassMixin(callable); }, $signature: 224 }; A._EvaluateVisitor__closure5.prototype = { call$0() { var t1 = this.$this._async_evaluate$_environment, t2 = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"), t3 = this.module; return t1.getMixin$2$namespace(t2, t3 == null ? null : t3._string$_text); }, $signature: 97 }; A._EvaluateVisitor_closure22.prototype = { call$1($arguments) { return this.$call$body$_EvaluateVisitor_closure1($arguments); }, $call$body$_EvaluateVisitor_closure1($arguments) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, $name, value, invocation, callableNode, t1, $function, args; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = J.getInterceptor$asx($arguments); $function = t1.$index($arguments, 0); args = type$.SassArgumentList._as(t1.$index($arguments, 1)); t1 = $async$self.$this; t2 = t1._async_evaluate$_callableNode; t2.toString; t3 = A._setArrayType([], type$.JSArray_Expression); t4 = type$.String; t5 = type$.Expression; t6 = t2.get$span(t2); t7 = t2.get$span(t2); args._wereKeywordsAccessed = true; t8 = args._keywords; if (t8.get$isEmpty(t8)) t2 = null; else { t9 = type$.Value; t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9); for (args._wereKeywordsAccessed = true, t8 = A.MapExtensions_get_pairs(t8, t4, t9), t8 = t8.get$iterator(t8); t8.moveNext$0();) { t11 = t8.get$current(t8); $name = t11._0; value = t11._1; value = value; t10.$indexSet(0, new A.SassString($name, false), value); } t2 = new A.ValueExpression(new A.SassMap(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2)); } 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); $async$goto = $function instanceof A.SassString ? 3 : 4; break; case 3: // then t2 = $function.toString$0(0); A.EvaluationContext_current().warn$2(0, string$.Passina + t2 + "))", B.Deprecation_qVK); callableNode = t1._async_evaluate$_callableNode; $async$goto = 5; return A._asyncAwait(t1.visitFunctionExpression$1(new A.FunctionExpression(null, $function._string$_text, invocation, callableNode.get$span(callableNode))), $async$call$1); case 5: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 4: // join t2 = $function.assertFunction$1("function"); t3 = t1._async_evaluate$_callableNode; t3.toString; $async$goto = 6; return A._asyncAwait(t1._async_evaluate$_runFunctionCallable$3(invocation, t2.callable, t3), $async$call$1); case 6: // returning from await. t3 = $async$result; $async$returnValue = t3; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 159 }; A._EvaluateVisitor_closure23.prototype = { call$1($arguments) { return this.$call$body$_EvaluateVisitor_closure0($arguments); }, $call$body$_EvaluateVisitor_closure0($arguments) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, withMap, t2, values, configuration, t3, t1, url; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = J.getInterceptor$asx($arguments); url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string$_text); t1 = t1.$index($arguments, 1).get$realNull(); withMap = t1 == null ? null : t1.assertMap$1("with")._map$_contents; t1 = $async$self.$this; t2 = t1._async_evaluate$_callableNode; t2.toString; if (withMap != null) { values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue); withMap.forEach$1(0, new A._EvaluateVisitor__closure3(values, t2.get$span(t2), t2)); configuration = new A.ExplicitConfiguration(t2, values, null); } else configuration = B.Configuration_Map_empty_null; t3 = t2.get$span(t2); $async$goto = 2; 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); case 2: // returning from await. t1._async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, true); // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 226 }; A._EvaluateVisitor__closure3.prototype = { call$2(variable, value) { var t1 = variable.assertString$1("with key"), $name = A.stringReplaceAllUnchecked(t1._string$_text, "_", "-"); t1 = this.values; if (t1.containsKey$1($name)) throw A.wrapException("The variable $" + $name + " was configured twice."); t1.$indexSet(0, $name, new A.ConfiguredValue(value, this.span, this.callableNode)); }, $signature: 106 }; A._EvaluateVisitor__closure4.prototype = { call$2(module, _) { var t1 = this.$this; return t1._async_evaluate$_combineCss$2$clone(module, true).accept$1(t1); }, $signature: 438 }; A._EvaluateVisitor_closure24.prototype = { call$1($arguments) { return this.$call$body$_EvaluateVisitor_closure($arguments); }, $call$body$_EvaluateVisitor_closure($arguments) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, callableNode, t2, t3, t4, t5, t1, mixin, args; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = J.getInterceptor$asx($arguments); mixin = t1.$index($arguments, 0); args = type$.SassArgumentList._as(t1.$index($arguments, 1)); t1 = $async$self.$this; callableNode = t1._async_evaluate$_callableNode; t2 = callableNode.get$span(callableNode); t3 = callableNode.get$span(callableNode); t4 = type$.Expression; t5 = A.List_List$unmodifiable(B.List_empty9, t4); t4 = A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t4); $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 226 }; A._EvaluateVisitor_run_closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet), $async$returnValue, $async$self = this, module, url, t1, t2, _0_0; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start url = null; t1 = $async$self.node; t2 = t1.span; _0_0 = t2.get$sourceUrl(t2); if (_0_0 != null) { url = _0_0; t2 = true; } else t2 = false; if (t2) { t2 = $async$self.$this; t2._async_evaluate$_activeModules.$indexSet(0, url, null); t2._async_evaluate$_loadedUrls.add$1(0, url); } t2 = $async$self.$this; $async$goto = 3; 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); case 3: // returning from await. module = $async$result; $async$returnValue = new A._Record_2_loadedUrls_stylesheet(t2._async_evaluate$_loadedUrls, t2._async_evaluate$_combineCss$1(module)); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 442 }; A._EvaluateVisitor_run__closure0.prototype = { call$0() { return this.$this._async_evaluate$_execute$2(this.importer, this.node); }, $signature: 443 }; A._EvaluateVisitor__loadModule_closure1.prototype = { call$0() { return this.callback.call$2(this._box_1.builtInModule, false); }, $signature: 0 }; A._EvaluateVisitor__loadModule_closure2.prototype = { call$0() { return this.$call$body$_EvaluateVisitor__loadModule_closure(); }, $call$body$_EvaluateVisitor__loadModule_closure() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, canonicalUrl, oldInDependency, isDependency, t4, message, t1, stylesheet, importer, t2, t3, _1_0, $async$temp1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start t1 = {}; stylesheet = null; importer = null; t2 = $async$self.$this; t3 = $async$self.nodeWithSpan; $async$goto = 2; 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); case 2: // returning from await. _1_0 = $async$result; stylesheet = _1_0._0; importer = _1_0._1; isDependency = _1_0._2; isDependency = isDependency; t4 = stylesheet.span; canonicalUrl = t4.get$sourceUrl(t4); if (canonicalUrl != null) { t4 = t2._async_evaluate$_activeModules; if (t4.containsKey$1(canonicalUrl)) { message = $async$self.namesInErrors ? "Module loop: " + $.$get$context().prettyUri$1(canonicalUrl) + " is already being loaded." : string$.Modulel; t1 = A.NullableExtension_andThen(t4.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure1(t2, message)); throw A.wrapException(t1 == null ? t2._async_evaluate$_exception$1(message) : t1); } else t4.$indexSet(0, canonicalUrl, t3); } t4 = t2._async_evaluate$_modules.containsKey$1(canonicalUrl); oldInDependency = t2._async_evaluate$_inDependency; t2._async_evaluate$_inDependency = isDependency; t1.module = null; $async$handler = 3; $async$temp1 = t1; $async$goto = 6; return A._asyncAwait(t2._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t3), $async$call$0); case 6: // returning from await. $async$temp1.module = $async$result; $async$next.push(5); // goto finally $async$goto = 4; break; case 3: // uncaught $async$next = [1]; case 4: // finally $async$handler = 1; t2._async_evaluate$_activeModules.remove$1(0, canonicalUrl); t2._async_evaluate$_inDependency = oldInDependency; // goto the next finally handler $async$goto = $async$next.pop(); break; case 5: // after finally $async$goto = 7; 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); case 7: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); case 1: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor__loadModule__closure1.prototype = { call$1(previousLoad) { 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)); }, $signature: 81 }; A._EvaluateVisitor__loadModule__closure2.prototype = { call$0() { return this.callback.call$2(this._box_0.module, this.firstLoad); }, $signature: 0 }; A._EvaluateVisitor__execute_closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t3, t4, t5, t6, t1, oldImporter, oldStylesheet, oldRoot, oldPreModuleComments, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtensionStore, t2, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldInKeyframes, oldConfiguration; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; oldImporter = t1._async_evaluate$_importer; oldStylesheet = t1._async_evaluate$__stylesheet; oldRoot = t1._async_evaluate$__root; oldPreModuleComments = t1._async_evaluate$_preModuleComments; oldParent = t1._async_evaluate$__parent; oldEndOfImports = t1._async_evaluate$__endOfImports; oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports; oldExtensionStore = t1._async_evaluate$__extensionStore; t2 = t1._async_evaluate$_atRootExcludingStyleRule; oldStyleRule = t2 ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot; oldMediaQueries = t1._async_evaluate$_mediaQueries; oldDeclarationName = t1._async_evaluate$_declarationName; oldInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule; oldInKeyframes = t1._async_evaluate$_inKeyframes; oldConfiguration = t1._async_evaluate$_configuration; t1._async_evaluate$_importer = $async$self.importer; t3 = t1._async_evaluate$__stylesheet = $async$self.stylesheet; t4 = t3.span; t5 = t1._async_evaluate$__parent = t1._async_evaluate$__root = A.ModifiableCssStylesheet$(t4); t1._async_evaluate$__endOfImports = 0; t1._async_evaluate$_outOfOrderImports = null; t1._async_evaluate$__extensionStore = $async$self.extensionStore; t1._async_evaluate$_declarationName = t1._async_evaluate$_mediaQueries = t1._async_evaluate$_styleRuleIgnoringAtRoot = null; t1._async_evaluate$_inKeyframes = t1._async_evaluate$_atRootExcludingStyleRule = t1._async_evaluate$_inUnknownAtRule = false; t6 = $async$self.configuration; if (t6 != null) t1._async_evaluate$_configuration = t6; $async$goto = 2; return A._asyncAwait(t1.visitStylesheet$1(t3), $async$call$0); case 2: // returning from await. t3 = t1._async_evaluate$_outOfOrderImports == null ? t5 : new A.CssStylesheet(new A.UnmodifiableListView(t1._async_evaluate$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode), t4); $async$self.css._value = t3; $async$self.preModuleComments._value = t1._async_evaluate$_preModuleComments; t1._async_evaluate$_importer = oldImporter; t1._async_evaluate$__stylesheet = oldStylesheet; t1._async_evaluate$__root = oldRoot; t1._async_evaluate$_preModuleComments = oldPreModuleComments; t1._async_evaluate$__parent = oldParent; t1._async_evaluate$__endOfImports = oldEndOfImports; t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports; t1._async_evaluate$__extensionStore = oldExtensionStore; t1._async_evaluate$_styleRuleIgnoringAtRoot = oldStyleRule; t1._async_evaluate$_mediaQueries = oldMediaQueries; t1._async_evaluate$_declarationName = oldDeclarationName; t1._async_evaluate$_inUnknownAtRule = oldInUnknownAtRule; t1._async_evaluate$_atRootExcludingStyleRule = t2; t1._async_evaluate$_inKeyframes = oldInKeyframes; t1._async_evaluate$_configuration = oldConfiguration; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor__combineCss_closure1.prototype = { call$1(module) { return module.get$transitivelyContainsCss(); }, $signature: 146 }; A._EvaluateVisitor__combineCss_closure2.prototype = { call$1(target) { return !this.selectors.contains$1(0, target); }, $signature: 16 }; A._EvaluateVisitor__combineCss_visitModule0.prototype = { call$1(module) { var t1, t2, t3, t4, _i, upstream, _1_0, comments, t5, statements, index, _this = this; if (!_this.seen.add$1(0, module)) return; if (_this.clone) module = module.cloneCss$0(); 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) { upstream = t1[_i]; if (upstream.get$transitivelyContainsCss()) { _1_0 = module.get$preModuleComments().$index(0, upstream); if (_1_0 != null) { comments = _1_0; t5 = true; } else { comments = null; t5 = false; } if (t5) B.JSArray_methods.addAll$1(t3.length === 0 ? t4 : t3, comments); _this.call$1(upstream); } } _this.sorted.addFirst$1(module); t1 = module.get$css(module); statements = t1.get$children(t1); index = _this.$this._async_evaluate$_indexAfterImports$1(statements); t1 = J.getInterceptor$ax(statements); B.JSArray_methods.addAll$1(t4, t1.getRange$2(statements, 0, index)); B.JSArray_methods.addAll$1(t3, t1.getRange$2(statements, index, t1.get$length(statements))); }, $signature: 449 }; A._EvaluateVisitor__extendModules_closure1.prototype = { call$1(target) { return !this.originalSelectors.contains$1(0, target); }, $signature: 16 }; A._EvaluateVisitor__extendModules_closure2.prototype = { call$0() { return A._setArrayType([], type$.JSArray_ExtensionStore); }, $signature: 229 }; A._EvaluateVisitor_visitAtRootRule_closure1.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitAtRootRule_closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 30 }; A._EvaluateVisitor__scopeForAtRoot_closure5.prototype = { call$1(callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__parent, "__parent"); t1._async_evaluate$__parent = $async$self.newParent; $async$goto = 2; return A._asyncAwait(t1._async_evaluate$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1); case 2: // returning from await. t1._async_evaluate$__parent = t2; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 41 }; A._EvaluateVisitor__scopeForAtRoot_closure6.prototype = { call$1(callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, oldAtRootExcludingStyleRule; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; oldAtRootExcludingStyleRule = t1._async_evaluate$_atRootExcludingStyleRule; t1._async_evaluate$_atRootExcludingStyleRule = true; $async$goto = 2; return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1); case 2: // returning from await. t1._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 41 }; A._EvaluateVisitor__scopeForAtRoot_closure7.prototype = { call$1(callback) { return this.$this._async_evaluate$_withMediaQueries$1$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure0(this.innerScope, callback), type$.Null); }, $signature: 41 }; A._EvaluateVisitor__scopeForAtRoot__closure0.prototype = { call$0() { return this.innerScope.call$1(this.callback); }, $signature: 4 }; A._EvaluateVisitor__scopeForAtRoot_closure8.prototype = { call$1(callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, wasInKeyframes; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; wasInKeyframes = t1._async_evaluate$_inKeyframes; t1._async_evaluate$_inKeyframes = false; $async$goto = 2; return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1); case 2: // returning from await. t1._async_evaluate$_inKeyframes = wasInKeyframes; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 41 }; A._EvaluateVisitor__scopeForAtRoot_closure9.prototype = { call$1($parent) { return $parent instanceof A.ModifiableCssAtRule; }, $signature: 237 }; A._EvaluateVisitor__scopeForAtRoot_closure10.prototype = { call$1(callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, wasInUnknownAtRule; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; wasInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule; t1._async_evaluate$_inUnknownAtRule = false; $async$goto = 2; return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1); case 2: // returning from await. t1._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 41 }; A._EvaluateVisitor_visitContentRule_closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$returnValue, $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } $async$goto = 6; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 6: // returning from await. case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitDeclaration_closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self._box_0.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitEachRule_closure2.prototype = { call$1(value) { var t1 = this.$this, t2 = this.nodeWithSpan; return t1._async_evaluate$_environment.setLocalVariable$3(this._box_0.variable, t1._async_evaluate$_withoutSlash$2(value, t2), t2); }, $signature: 63 }; A._EvaluateVisitor_visitEachRule_closure3.prototype = { call$1(value) { return this.$this._async_evaluate$_setMultipleVariables$3(this._box_0.variables, value, this.nodeWithSpan); }, $signature: 63 }; A._EvaluateVisitor_visitEachRule_closure4.prototype = { call$0() { var _this = this, t1 = _this.$this; return t1._async_evaluate$_handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure0(t1, _this.setVariables, _this.node)); }, $signature: 70 }; A._EvaluateVisitor_visitEachRule__closure0.prototype = { call$1(element) { var t1; this.setVariables.call$1(element); t1 = this.$this; return t1._async_evaluate$_handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure0(t1)); }, $signature: 468 }; A._EvaluateVisitor_visitEachRule___closure0.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 114 }; A._EvaluateVisitor_visitAtRule_closure2.prototype = { call$1(value) { return this.$this._async_evaluate$_interpolationToValue$3$trim$warnForColor(value, true, true); }, $signature: 472 }; A._EvaluateVisitor_visitAtRule_closure3.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t2, t3, _i, t1, styleRule; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; styleRule = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot; $async$goto = styleRule == null || t1._async_evaluate$_inKeyframes || J.$eq$($async$self.name.value, "font-face") ? 2 : 4; break; case 2: // then t2 = $async$self.children, t3 = t2.length, _i = 0; case 5: // for condition if (!(_i < t3)) { // goto after for $async$goto = 7; break; } $async$goto = 8; return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0); case 8: // returning from await. case 6: // for update ++_i; // goto for condition $async$goto = 5; break; case 7: // after for // goto join $async$goto = 3; break; case 4: // else $async$goto = 9; return A._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure0(t1, $async$self.children), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0); case 9: // returning from await. case 3: // join // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitAtRule__closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitAtRule_closure4.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor_visitForRule_closure4.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber), $async$returnValue, $async$self = this; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0); case 3: // returning from await. $async$returnValue = $async$result.assertNumber$0(); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 248 }; A._EvaluateVisitor_visitForRule_closure5.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber), $async$returnValue, $async$self = this; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0); case 3: // returning from await. $async$returnValue = $async$result.assertNumber$0(); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 248 }; A._EvaluateVisitor_visitForRule_closure6.prototype = { call$0() { return this.fromNumber.assertInt$0(); }, $signature: 3 }; A._EvaluateVisitor_visitForRule_closure7.prototype = { call$0() { var t1 = this.fromNumber; return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0(); }, $signature: 3 }; A._EvaluateVisitor_visitForRule_closure8.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, i, t3, t4, t5, t6, t7, t8, _0_0, result, t1, t2, nodeWithSpan; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = $async$self.node; nodeWithSpan = t1._async_evaluate$_expressionNode$1(t2.from); i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.variable, t6 = $async$self.fromNumber, t2 = t2.children; case 3: // for condition if (!(i !== t3.to)) { // goto after for $async$goto = 5; break; } t7 = t1._async_evaluate$_environment; t8 = t6.get$numeratorUnits(t6); t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan); $async$goto = 6; return A._asyncAwait(t1._async_evaluate$_handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure0(t1)), $async$call$0); case 6: // returning from await. _0_0 = $async$result; if (_0_0 != null) { result = _0_0; t7 = true; } else { result = null; t7 = false; } if (t7) { $async$returnValue = result; // goto return $async$goto = 1; break; } case 4: // for update i += t4; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 70 }; A._EvaluateVisitor_visitForRule__closure0.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 114 }; A._EvaluateVisitor_visitForwardRule_closure1.prototype = { call$2(module, firstLoad) { if (firstLoad) this.$this._async_evaluate$_registerCommentsForModule$1(module); this.$this._async_evaluate$_environment.forwardModule$2(module, this.node); }, $signature: 129 }; A._EvaluateVisitor_visitForwardRule_closure2.prototype = { call$2(module, firstLoad) { if (firstLoad) this.$this._async_evaluate$_registerCommentsForModule$1(module); this.$this._async_evaluate$_environment.forwardModule$2(module, this.node); }, $signature: 129 }; A._EvaluateVisitor__registerCommentsForModule_closure0.prototype = { call$0() { return A._setArrayType([], type$.JSArray_CssComment); }, $signature: 260 }; A._EvaluateVisitor_visitIfRule_closure0.prototype = { call$1(clause) { var t1 = this.$this; return t1._async_evaluate$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule__closure0(t1, clause), true, clause.hasDeclarations, type$.nullable_Value); }, $signature: 480 }; A._EvaluateVisitor_visitIfRule__closure0.prototype = { call$0() { var t1 = this.$this; return t1._async_evaluate$_handleReturn$2(this.clause.children, new A._EvaluateVisitor_visitIfRule___closure0(t1)); }, $signature: 70 }; A._EvaluateVisitor_visitIfRule___closure0.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 114 }; A._EvaluateVisitor__visitDynamicImport_closure0.prototype = { call$0() { return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure(); }, $call$body$_EvaluateVisitor__visitDynamicImport_closure() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$returnValue, $async$self = this, t1, t2, _0_0, stylesheet, t3, isDependency, t4, t5, url, t6, oldImporter, oldInDependency, loadsUserDefinedModules, children, t7, t8, t9, t10, environment, module, visitor, _box_0; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start _box_0 = {}; _box_0.isDependency = _box_0.importer = _box_0.stylesheet = null; t1 = $async$self.$this; t2 = $async$self.$import; $async$goto = 3; return A._asyncAwait(t1._async_evaluate$_loadStylesheet$3$forImport(t2.urlString, t2.span, true), $async$call$0); case 3: // returning from await. _0_0 = $async$result; stylesheet = _box_0.stylesheet = _0_0._0; t3 = _box_0.importer = _0_0._1; isDependency = _0_0._2; _box_0.isDependency = isDependency; t4 = isDependency; t5 = stylesheet.span; url = t5.get$sourceUrl(t5); if (url != null) { t5 = t1._async_evaluate$_activeModules; if (t5.containsKey$1(url)) { t2 = A.NullableExtension_andThen(t5.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure3(t1)); throw A.wrapException(t2 == null ? t1._async_evaluate$_exception$1("This file is already being loaded.") : t2); } t5.$indexSet(0, url, t2); } t2 = stylesheet._uses; t5 = type$.UnmodifiableListView_UseRule; t6 = new A.UnmodifiableListView(t2, t5); if (t6.get$length(t6) === 0) { t6 = new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule); t6 = t6.get$length(t6) === 0; } else t6 = false; $async$goto = t6 ? 4 : 5; break; case 4: // then oldImporter = t1._async_evaluate$_importer; t2 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__stylesheet, "_stylesheet"); oldInDependency = t1._async_evaluate$_inDependency; t1._async_evaluate$_importer = t3; t1._async_evaluate$__stylesheet = stylesheet; t1._async_evaluate$_inDependency = t4; $async$goto = 6; return A._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0); case 6: // returning from await. t1._async_evaluate$_importer = oldImporter; t1._async_evaluate$__stylesheet = t2; t1._async_evaluate$_inDependency = oldInDependency; t1._async_evaluate$_activeModules.remove$1(0, url); // goto return $async$goto = 1; break; case 5: // join t2 = new A.UnmodifiableListView(t2, t5); if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure4())) { t2 = new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule); loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure5()); } else loadsUserDefinedModules = true; children = A._Cell$(); t2 = t1._async_evaluate$_environment; t3 = type$.String; t4 = type$.Module_AsyncCallable; t5 = type$.AstNode; t6 = A._setArrayType([], type$.JSArray_Module_AsyncCallable); t7 = t2._async_environment$_variables; t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7)); t8 = t2._async_environment$_variableNodes; t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8)); t9 = t2._async_environment$_functions; t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9)); t10 = t2._async_environment$_mixins; t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10)); 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); $async$goto = 7; 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); case 7: // returning from await. module = environment.toDummyModule$0(); t1._async_evaluate$_environment.importForwards$1(module); $async$goto = loadsUserDefinedModules ? 8 : 9; break; case 8: // then $async$goto = module.transitivelyContainsCss ? 10 : 11; break; case 10: // then $async$goto = 12; return A._asyncAwait(t1._async_evaluate$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0); case 12: // returning from await. case 11: // join visitor = new A._ImportedCssVisitor0(t1); for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();) t2.get$current(t2).accept$1(visitor); case 9: // join t1._async_evaluate$_activeModules.remove$1(0, url); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 30 }; A._EvaluateVisitor__visitDynamicImport__closure3.prototype = { call$1(previousLoad) { 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)); }, $signature: 81 }; A._EvaluateVisitor__visitDynamicImport__closure4.prototype = { call$1(rule) { return rule.url.get$scheme() !== "sass"; }, $signature: 275 }; A._EvaluateVisitor__visitDynamicImport__closure5.prototype = { call$1(rule) { return rule.url.get$scheme() !== "sass"; }, $signature: 283 }; A._EvaluateVisitor__visitDynamicImport__closure6.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t7, t8, t1, oldImporter, t2, t3, t4, t5, oldOutOfOrderImports, oldConfiguration, oldInDependency, t6; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; oldImporter = t1._async_evaluate$_importer; t2 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__stylesheet, "_stylesheet"); t3 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__root, "_root"); t4 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__parent, "__parent"); t5 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__endOfImports, "_endOfImports"); oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports; oldConfiguration = t1._async_evaluate$_configuration; oldInDependency = t1._async_evaluate$_inDependency; t6 = $async$self._box_0; t1._async_evaluate$_importer = t6.importer; t7 = t6.stylesheet; t1._async_evaluate$__stylesheet = t7; t8 = $async$self.loadsUserDefinedModules; if (t8) { t7 = A.ModifiableCssStylesheet$(t7.span); t1._async_evaluate$__root = t7; t1._async_evaluate$__parent = t1._async_evaluate$_assertInModule$2(t7, "_root"); t1._async_evaluate$__endOfImports = 0; t1._async_evaluate$_outOfOrderImports = null; } t1._async_evaluate$_inDependency = t6.isDependency; t7 = new A.UnmodifiableListView(t6.stylesheet._forwards, type$.UnmodifiableListView_ForwardRule); if (!t7.get$isEmpty(t7)) t1._async_evaluate$_configuration = $async$self.environment.toImplicitConfiguration$0(); $async$goto = 2; return A._asyncAwait(t1.visitStylesheet$1(t6.stylesheet), $async$call$0); case 2: // returning from await. t6 = t8 ? t1._async_evaluate$_addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode); $async$self.children._value = t6; t1._async_evaluate$_importer = oldImporter; t1._async_evaluate$__stylesheet = t2; if (t8) { t1._async_evaluate$__root = t3; t1._async_evaluate$__parent = t4; t1._async_evaluate$__endOfImports = t5; t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports; } t1._async_evaluate$_configuration = oldConfiguration; t1._async_evaluate$_inDependency = oldInDependency; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor__applyMixin_closure3.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 30 }; A._EvaluateVisitor__applyMixin__closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 2; return A._asyncAwait($async$self.$this._async_evaluate$_runBuiltInCallable$3($async$self.$arguments, $async$self.mixin, $async$self.nodeWithSpanWithoutContent), $async$call$0); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 30 }; A._EvaluateVisitor__applyMixin_closure2.prototype = { call$0() { var t1 = this._1_0; if (t1 == null) t1 = type$.AsyncCallable._as(t1); return type$.UserDefinedCallable_AsyncEnvironment._as(t1).declaration; }, $signature: 143 }; A._EvaluateVisitor__applyMixin_closure4.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor__applyMixin__closure1.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; $async$goto = 2; return A._asyncAwait(t1._async_evaluate$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin___closure0(t1, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 30 }; A._EvaluateVisitor__applyMixin___closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1, t2, t3, t4, t5, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpanWithoutContent, t5 = type$.nullable_Value, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t3._async_evaluate$_addErrorSpan$1$2(t4, new A._EvaluateVisitor__applyMixin____closure0(t3, t1[_i]), t5), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 30 }; A._EvaluateVisitor__applyMixin____closure0.prototype = { call$0() { return this.statement.accept$1(this.$this); }, $signature: 70 }; A._EvaluateVisitor_visitIncludeRule_closure2.prototype = { call$0() { var t1 = this.node; return this.$this._async_evaluate$_environment.getMixin$2$namespace(t1.name, t1.namespace); }, $signature: 97 }; A._EvaluateVisitor_visitIncludeRule_closure3.prototype = { call$1($content) { var t1 = this.$this; return new A.UserDefinedCallable($content, t1._async_evaluate$_environment.closure$0(), t1._async_evaluate$_inDependency, type$.UserDefinedCallable_AsyncEnvironment); }, $signature: 494 }; A._EvaluateVisitor_visitIncludeRule_closure4.prototype = { call$0() { return this.node.get$spanWithoutContent(); }, $signature: 33 }; A._EvaluateVisitor_visitMediaRule_closure2.prototype = { call$1(mediaQueries) { return this.$this._async_evaluate$_mergeMediaQueries$2(mediaQueries, this.queries); }, $signature: 83 }; A._EvaluateVisitor_visitMediaRule_closure3.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = $async$self.mergedQueries; if (t2 == null) t2 = $async$self.queries; $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitMediaRule__closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, styleRule, t2, t3, _i, t1, _0_0; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; _0_0 = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } $async$goto = t2 ? 2 : 4; break; case 2: // then $async$goto = 5; return A._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure0(t1, $async$self.node), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0); case 5: // returning from await. // goto join $async$goto = 3; break; case 4: // else t2 = $async$self.node.children, t3 = t2.length, _i = 0; case 6: // for condition if (!(_i < t3)) { // goto after for $async$goto = 8; break; } $async$goto = 9; return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0); case 9: // returning from await. case 7: // for update ++_i; // goto for condition $async$goto = 6; break; case 8: // after for case 3: // join // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitMediaRule___closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitMediaRule_closure4.prototype = { call$1(node) { var t1; if (!(node instanceof A.ModifiableCssStyleRule)) { t1 = this.mergedSources; t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1)); } else t1 = true; return t1; }, $signature: 9 }; A._EvaluateVisitor_visitStyleRule_closure4.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitStyleRule_closure5.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor_visitStyleRule_closure6.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitStyleRule__closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitStyleRule_closure7.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor_visitStyleRule_closure8.prototype = { call$1(child) { return child instanceof A.ModifiableCssComment; }, $signature: 124 }; A._EvaluateVisitor_visitSupportsRule_closure1.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, styleRule, t2, t3, _i, t1, _0_0; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; _0_0 = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } $async$goto = t2 ? 2 : 4; break; case 2: // then $async$goto = 5; return A._asyncAwait(t1._async_evaluate$_withParent$2$2(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure0(t1, $async$self.node), type$.ModifiableCssStyleRule, type$.Null), $async$call$0); case 5: // returning from await. // goto join $async$goto = 3; break; case 4: // else t2 = $async$self.node.children, t3 = t2.length, _i = 0; case 6: // for condition if (!(_i < t3)) { // goto after for $async$goto = 8; break; } $async$goto = 9; return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0); case 9: // returning from await. case 7: // for update ++_i; // goto for condition $async$goto = 6; break; case 8: // after for case 3: // join // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitSupportsRule__closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitSupportsRule_closure2.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor__visitSupportsCondition_closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.String), $async$returnValue, $async$self = this, t1, t2, t3, t4, $async$temp1, $async$temp2; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = $async$self._box_0; $async$temp1 = A; $async$goto = 3; return A._asyncAwait(t1._evaluateToCss$1(t2.declaration.name), $async$call$0); case 3: // returning from await. t3 = $async$temp1.S($async$result); t4 = t2.declaration.get$isCustomProperty() ? "" : " "; $async$temp1 = "(" + t3 + ":" + t4; $async$temp2 = A; $async$goto = 4; return A._asyncAwait(t1._evaluateToCss$1(t2.declaration.value), $async$call$0); case 4: // returning from await. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")"; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 288 }; A._EvaluateVisitor_visitVariableDeclaration_closure2.prototype = { call$0() { var t1 = this.$this._async_evaluate$_environment, t2 = this._box_0.override; t1.setVariable$4$global(this.node.name, t2.value, t2.assignmentNode, true); }, $signature: 2 }; A._EvaluateVisitor_visitVariableDeclaration_closure3.prototype = { call$0() { var t1 = this.node; return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace); }, $signature: 44 }; A._EvaluateVisitor_visitVariableDeclaration_closure4.prototype = { call$0() { var t1 = this.$this, t2 = this.node; t1._async_evaluate$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace); }, $signature: 2 }; A._EvaluateVisitor_visitUseRule_closure0.prototype = { call$2(module, firstLoad) { var t1, t2, t3, _0_0, $name, t4, t5, span; if (firstLoad) this.$this._async_evaluate$_registerCommentsForModule$1(module); t1 = this.$this._async_evaluate$_environment; t2 = this.node; t3 = t2.namespace; if (t3 == null) { t1._async_environment$_globalModules.$indexSet(0, module, t2); t1._async_environment$_allModules.push(module); _0_0 = A.IterableExtension_firstWhereOrNull(J.get$keys$z(B.JSArray_methods.get$first(t1._async_environment$_variables)), module.get$variables().get$containsKey()); if (_0_0 != null) { $name = _0_0; t1 = true; } else { $name = null; t1 = false; } if (t1) A.throwExpression(A.SassScriptException$(string$.This_ma + A.S($name) + '".', null)); } else { t4 = t1._async_environment$_modules; if (t4.containsKey$1(t3)) { t5 = t1._async_environment$_namespaceNodes.$index(0, t3); span = t5 == null ? null : t5.span; t5 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); if (span != null) t5.$indexSet(0, span, "original @use"); A.throwExpression(A.MultiSpanSassScriptException$(string$.There_ + t3 + '".', "new @use", t5)); } t4.$indexSet(0, t3, module); t1._async_environment$_namespaceNodes.$indexSet(0, t3, t2); t1._async_environment$_allModules.push(module); } }, $signature: 129 }; A._EvaluateVisitor_visitWarnRule_closure0.prototype = { call$0() { return this.node.expression.accept$1(this.$this); }, $signature: 67 }; A._EvaluateVisitor_visitWhileRule_closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value), $async$returnValue, $async$self = this, t1, t2, t3, _0_0, result, t4; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children; case 3: // for condition $async$goto = 5; return A._asyncAwait(t2.accept$1(t3), $async$call$0); case 5: // returning from await. if (!$async$result.get$isTruthy()) { // goto after for $async$goto = 4; break; } $async$goto = 6; return A._asyncAwait(t3._async_evaluate$_handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure0(t3)), $async$call$0); case 6: // returning from await. _0_0 = $async$result; if (_0_0 != null) { result = _0_0; t4 = true; } else { result = null; t4 = false; } if (t4) { $async$returnValue = result; // goto return $async$goto = 1; break; } // goto for condition $async$goto = 3; break; case 4: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 70 }; A._EvaluateVisitor_visitWhileRule__closure0.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 114 }; A._EvaluateVisitor_visitBinaryOperationExpression_closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$self = this, t1, t2, left, $async$temp1, $async$temp2; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node; t2 = $async$self.$this; $async$goto = 3; return A._asyncAwait(t1.left.accept$1(t2), $async$call$0); case 3: // returning from await. left = $async$result; case 4: // switch switch (t1.operator) { case B.BinaryOperator_2jN: // goto case $async$goto = 6; break; case B.BinaryOperator_M6L: // goto case $async$goto = 7; break; case B.BinaryOperator_SNp: // goto case $async$goto = 8; break; case B.BinaryOperator_ql5: // goto case $async$goto = 9; break; case B.BinaryOperator_ViB: // goto case $async$goto = 10; break; case B.BinaryOperator_cIH: // goto case $async$goto = 11; break; case B.BinaryOperator_7Tg: // goto case $async$goto = 12; break; case B.BinaryOperator_U8c: // goto case $async$goto = 13; break; case B.BinaryOperator_kpg: // goto case $async$goto = 14; break; case B.BinaryOperator_anB: // goto case $async$goto = 15; break; case B.BinaryOperator_olz: // goto case $async$goto = 16; break; case B.BinaryOperator_qN2: // goto case $async$goto = 17; break; case B.BinaryOperator_t8B: // goto case $async$goto = 18; break; case B.BinaryOperator_OTG: // goto case $async$goto = 19; break; default: // goto default $async$goto = 20; break; } break; case 6: // case $async$goto = 21; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 21: // returning from await. t1 = $async$result; t1 = new A.SassString(A.serializeValue(left, false, true) + "=" + A.serializeValue(t1, false, true), false); // goto after switch $async$goto = 5; break; case 7: // case $async$goto = left.get$isTruthy() ? 22 : 24; break; case 22: // then $async$result = left; // goto join $async$goto = 23; break; case 24: // else $async$goto = 25; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 25: // returning from await. case 23: // join t1 = $async$result; // goto after switch $async$goto = 5; break; case 8: // case $async$goto = left.get$isTruthy() ? 26 : 28; break; case 26: // then $async$goto = 29; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 29: // returning from await. // goto join $async$goto = 27; break; case 28: // else $async$result = left; case 27: // join t1 = $async$result; // goto after switch $async$goto = 5; break; case 9: // case $async$temp1 = left; $async$goto = 30; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 30: // returning from await. t1 = $async$temp1.$eq(0, $async$result) ? B.SassBoolean_true : B.SassBoolean_false; // goto after switch $async$goto = 5; break; case 10: // case $async$temp1 = left; $async$goto = 31; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 31: // returning from await. t1 = !$async$temp1.$eq(0, $async$result) ? B.SassBoolean_true : B.SassBoolean_false; // goto after switch $async$goto = 5; break; case 11: // case $async$temp1 = left; $async$goto = 32; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 32: // returning from await. t1 = $async$temp1.greaterThan$1($async$result); // goto after switch $async$goto = 5; break; case 12: // case $async$temp1 = left; $async$goto = 33; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 33: // returning from await. t1 = $async$temp1.greaterThanOrEquals$1($async$result); // goto after switch $async$goto = 5; break; case 13: // case $async$temp1 = left; $async$goto = 34; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 34: // returning from await. t1 = $async$temp1.lessThan$1($async$result); // goto after switch $async$goto = 5; break; case 14: // case $async$temp1 = left; $async$goto = 35; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 35: // returning from await. t1 = $async$temp1.lessThanOrEquals$1($async$result); // goto after switch $async$goto = 5; break; case 15: // case $async$temp1 = left; $async$goto = 36; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 36: // returning from await. t1 = $async$temp1.plus$1($async$result); // goto after switch $async$goto = 5; break; case 16: // case $async$temp1 = left; $async$goto = 37; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 37: // returning from await. t1 = $async$temp1.minus$1($async$result); // goto after switch $async$goto = 5; break; case 17: // case $async$temp1 = left; $async$goto = 38; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 38: // returning from await. t1 = $async$temp1.times$1($async$result); // goto after switch $async$goto = 5; break; case 18: // case $async$temp1 = t2; $async$temp2 = left; $async$goto = 39; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 39: // returning from await. t1 = $async$temp1._async_evaluate$_slash$3($async$temp2, $async$result, t1); // goto after switch $async$goto = 5; break; case 19: // case $async$temp1 = left; $async$goto = 40; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 40: // returning from await. t1 = $async$temp1.modulo$1($async$result); // goto after switch $async$goto = 5; break; case 20: // default t1 = null; case 5: // after switch $async$returnValue = t1; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 67 }; A._EvaluateVisitor__slash_closure1.prototype = { call$0() { return this._1_0._0; }, $signature: 25 }; A._EvaluateVisitor__slash_closure2.prototype = { call$0() { return this._1_0._1; }, $signature: 25 }; A._EvaluateVisitor__slash_recommendation0.prototype = { call$1(expression) { var left, right, t1, _null = null; $label0$0: { if (expression instanceof A.BinaryOperationExpression) if (B.BinaryOperator_t8B === expression.operator) { left = expression.left; right = expression.right; t1 = true; } else { right = _null; left = right; t1 = false; } else { right = _null; left = right; t1 = false; } if (t1) { t1 = "math.div(" + A.S(this.call$1(left)) + ", " + A.S(this.call$1(right)) + ")"; break $label0$0; } if (expression instanceof A.ParenthesizedExpression) { t1 = expression.expression.toString$0(0); break $label0$0; } t1 = expression.toString$0(0); break $label0$0; } return t1; }, $signature: 132 }; A._EvaluateVisitor_visitVariableExpression_closure0.prototype = { call$0() { var t1 = this.node; return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace); }, $signature: 44 }; A._EvaluateVisitor_visitUnaryOperationExpression_closure0.prototype = { call$0() { var t1, _this = this; switch (_this.node.operator) { case B.UnaryOperator_gg4: t1 = _this.operand.unaryPlus$0(); break; case B.UnaryOperator_TLI: t1 = _this.operand.unaryMinus$0(); break; case B.UnaryOperator_Ix1: t1 = new A.SassString("/" + A.serializeValue(_this.operand, false, true), false); break; case B.UnaryOperator_not_not_not: t1 = _this.operand.unaryNot$0(); break; default: t1 = null; } return t1; }, $signature: 25 }; A._EvaluateVisitor_visitListExpression_closure0.prototype = { call$1(expression) { return expression.accept$1(this.$this); }, $signature: 518 }; A._EvaluateVisitor_visitFunctionExpression_closure2.prototype = { call$0() { var t1 = this.$this._async_evaluate$_environment, t2 = this.node; return t1.getFunction$2$namespace(A.stringReplaceAllUnchecked(t2.originalName, "_", "-"), t2.namespace); }, $signature: 97 }; A._EvaluateVisitor_visitFunctionExpression_closure3.prototype = { call$1(argument) { return argument.accept$1(new A._IsCalculationSafeVisitor()); }, $signature: 126 }; A._EvaluateVisitor_visitFunctionExpression_closure4.prototype = { call$0() { var t1 = this.node; return this.$this._async_evaluate$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1); }, $signature: 67 }; A._EvaluateVisitor__checkCalculationArguments_check0.prototype = { call$1(maxArgs) { var t1 = this.node, t2 = t1.$arguments.positional.length; if (t2 === 0) throw A.wrapException(this.$this._async_evaluate$_exception$2("Missing argument.", t1.span)); else if (maxArgs != null && t2 > maxArgs) 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)); }, call$0() { return this.call$1(null); }, $signature: 86 }; A._EvaluateVisitor__visitCalculationExpression_closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Object), $async$returnValue, $async$self = this, t1, t2, t3, $async$temp1, $async$temp2, $async$temp3; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = $async$self._box_0; t3 = $async$self.inLegacySassFunction; $async$temp1 = A; $async$temp2 = t1._async_evaluate$_binaryOperatorToCalculationOperator$2(t2.operator, $async$self.node); $async$goto = 3; return A._asyncAwait(t1._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(t2.left, t3), $async$call$0); case 3: // returning from await. $async$temp3 = $async$result; $async$goto = 4; return A._asyncAwait(t1._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(t2.right, t3), $async$call$0); case 4: // returning from await. $async$returnValue = $async$temp1.SassCalculation_operateInternal($async$temp2, $async$temp3, $async$result, t3, !t1._async_evaluate$_inSupportsDeclaration); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 151 }; A._EvaluateVisitor__checkAdjacentCalculationValues_closure0.prototype = { call$0() { return type$.UnaryOperationExpression._as(this._0_0).operator; }, $signature: 137 }; A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure0.prototype = { call$0() { var t1 = this.node; return this.$this._async_evaluate$_runFunctionCallable$3(t1.$arguments, this.$function, t1); }, $signature: 67 }; A._EvaluateVisitor__runUserDefinedCallable_closure0.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this.callable, t3 = _this.V; 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); }, $signature() { return this.V._eval$1("Future<0>()"); } }; A._EvaluateVisitor__runUserDefinedCallable__closure0.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this.V; return t1._async_evaluate$_environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure0(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2); }, $signature() { return this.V._eval$1("Future<0>()"); } }; A._EvaluateVisitor__runUserDefinedCallable___closure0.prototype = { call$0() { return this.$call$body$_EvaluateVisitor__runUserDefinedCallable___closure(this.V); }, $call$body$_EvaluateVisitor__runUserDefinedCallable___closure($async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, declaredArguments, t5, minLength, i, argument, t6, t7, value, t8, restArgument, rest, argumentList, result, t1, t2, t3, t4, $async$temp1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = $async$self.evaluated._values; t3 = $async$self.callable.declaration.$arguments; t4 = $async$self.nodeWithSpan; t1._async_evaluate$_verifyArguments$4(J.get$length$asx(t2[2]), t2[0], t3, t4); declaredArguments = t3.$arguments; t5 = declaredArguments.length; minLength = Math.min(J.get$length$asx(t2[2]), t5); for (i = 0; i < minLength; ++i) t1._async_evaluate$_environment.setLocalVariable$3(declaredArguments[i].name, J.$index$asx(t2[2], i), J.$index$asx(t2[3], i)); i = J.get$length$asx(t2[2]); case 3: // for condition if (!(i < t5)) { // goto after for $async$goto = 5; break; } argument = declaredArguments[i]; t6 = t2[0]; t7 = argument.name; value = J.remove$1$z(t6, t7); $async$goto = value == null ? 6 : 7; break; case 6: // then t6 = argument.defaultValue; $async$temp1 = t1; $async$goto = 8; return A._asyncAwait(t6.accept$1(t1), $async$call$0); case 8: // returning from await. value = $async$temp1._async_evaluate$_withoutSlash$2($async$result, t1._async_evaluate$_expressionNode$1(t6)); case 7: // join t6 = t1._async_evaluate$_environment; t8 = J.$index$asx(t2[1], t7); if (t8 == null) { t8 = argument.defaultValue; t8.toString; t8 = t1._async_evaluate$_expressionNode$1(t8); } t6.setLocalVariable$3(t7, value, t8); case 4: // for update ++i; // goto for condition $async$goto = 3; break; case 5: // after for restArgument = t3.restArgument; if (restArgument != null) { rest = J.get$length$asx(t2[2]) > t5 ? J.sublist$1$ax(t2[2], t5) : B.List_empty8; t5 = t2[0]; t6 = t2[4]; argumentList = A.SassArgumentList$(rest, t5, t6 === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_rXA : t6); t1._async_evaluate$_environment.setLocalVariable$3(restArgument, argumentList, t4); } else argumentList = null; $async$goto = 9; return A._asyncAwait($async$self.run.call$0(), $async$call$0); case 9: // returning from await. result = $async$result; if (argumentList == null) { $async$returnValue = result; // goto return $async$goto = 1; break; } if (J.get$isEmpty$asx(t2[0])) { $async$returnValue = result; // goto return $async$goto = 1; break; } if (argumentList._wereKeywordsAccessed) { $async$returnValue = result; // goto return $async$goto = 1; break; } throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + A.pluralize("argument", J.get$length$asx(J.get$keys$z(t2[0])), null) + " named " + A.toSentence(J.map$1$1$ax(J.get$keys$z(t2[0]), 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)); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature() { return this.V._eval$1("Future<0>()"); } }; A._EvaluateVisitor__runUserDefinedCallable____closure0.prototype = { call$1($name) { return "$" + $name; }, $signature: 7 }; A._EvaluateVisitor__runFunctionCallable_closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value), $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0; case 3: // for condition if (!(_i < t3)) { // goto after for $async$goto = 5; break; } $async$goto = 6; return A._asyncAwait(t2[_i].accept$1(t4), $async$call$0); case 6: // returning from await. $returnValue = $async$result; if ($returnValue instanceof A.Value) { $async$returnValue = $returnValue; // goto return $async$goto = 1; break; } case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for throw A.wrapException(t4._async_evaluate$_exception$2("Function finished without @return.", t1.span)); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 67 }; A._EvaluateVisitor__runBuiltInCallable_closure2.prototype = { call$0() { return this._box_0.overload.verify$2(J.get$length$asx(this.evaluated._values[2]), this.namedSet); }, $signature: 0 }; A._EvaluateVisitor__runBuiltInCallable_closure3.prototype = { call$0() { return this._box_0.callback.call$1(this.evaluated._values[2]); }, $signature: 529 }; A._EvaluateVisitor__runBuiltInCallable_closure4.prototype = { call$1($name) { return "$" + $name; }, $signature: 7 }; A._EvaluateVisitor__evaluateArguments_closure3.prototype = { call$1(value) { return value; }, $signature: 43 }; A._EvaluateVisitor__evaluateArguments_closure4.prototype = { call$1(value) { return this.$this._async_evaluate$_withoutSlash$2(value, this.restNodeForSpan); }, $signature: 43 }; A._EvaluateVisitor__evaluateArguments_closure5.prototype = { call$2(key, value) { var _this = this, t1 = _this.restNodeForSpan; _this.named.$indexSet(0, key, _this.$this._async_evaluate$_withoutSlash$2(value, t1)); _this.namedNodes.$indexSet(0, key, t1); }, $signature: 87 }; A._EvaluateVisitor__evaluateArguments_closure6.prototype = { call$1(value) { return value; }, $signature: 43 }; A._EvaluateVisitor__evaluateMacroArguments_closure3.prototype = { call$1(value) { var t1 = this.restArgs; return new A.ValueExpression(value, t1.get$span(t1)); }, $signature: 65 }; A._EvaluateVisitor__evaluateMacroArguments_closure4.prototype = { call$1(value) { var t1 = this.restArgs; return new A.ValueExpression(this.$this._async_evaluate$_withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1)); }, $signature: 65 }; A._EvaluateVisitor__evaluateMacroArguments_closure5.prototype = { call$2(key, value) { var _this = this, t1 = _this.restArgs; _this.named.$indexSet(0, key, new A.ValueExpression(_this.$this._async_evaluate$_withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1))); }, $signature: 87 }; A._EvaluateVisitor__evaluateMacroArguments_closure6.prototype = { call$1(value) { var t1 = this.keywordRestArgs; return new A.ValueExpression(this.$this._async_evaluate$_withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1)); }, $signature: 65 }; A._EvaluateVisitor__addRestMap_closure0.prototype = { call$2(key, value) { var t2, _this = this, t1 = _this.$this; if (key instanceof A.SassString) _this.values.$indexSet(0, key._string$_text, _this.convert.call$1(t1._async_evaluate$_withoutSlash$2(value, _this.expressionNode))); else { t2 = _this.nodeWithSpan; 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))); } }, $signature: 106 }; A._EvaluateVisitor__verifyArguments_closure0.prototype = { call$0() { return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String)); }, $signature: 0 }; A._EvaluateVisitor_visitCssAtRule_closure1.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, t4; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1; case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } t4 = t1.__internal$_current; $async$goto = 4; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0); case 4: // returning from await. // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssAtRule_closure2.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor_visitCssKeyframeBlock_closure1.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, t4; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1; case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } t4 = t1.__internal$_current; $async$goto = 4; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0); case 4: // returning from await. // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssKeyframeBlock_closure2.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor_visitCssMediaRule_closure2.prototype = { call$1(mediaQueries) { return this.$this._async_evaluate$_mergeMediaQueries$2(mediaQueries, this.node.queries); }, $signature: 83 }; A._EvaluateVisitor_visitCssMediaRule_closure3.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = $async$self.mergedQueries; if (t2 == null) t2 = $async$self.node.queries; $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssMediaRule__closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, styleRule, t2, t3, t4, t1, _0_0; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; _0_0 = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } $async$goto = t2 ? 2 : 4; break; case 2: // then $async$goto = 5; return A._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure0(t1, $async$self.node), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0); case 5: // returning from await. // goto join $async$goto = 3; break; case 4: // else t2 = $async$self.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; case 6: // for condition if (!t2.moveNext$0()) { // goto after for $async$goto = 7; break; } t4 = t2.__internal$_current; $async$goto = 8; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0); case 8: // returning from await. // goto for condition $async$goto = 6; break; case 7: // after for case 3: // join // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssMediaRule___closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, t4; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1; case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } t4 = t1.__internal$_current; $async$goto = 4; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0); case 4: // returning from await. // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssMediaRule_closure4.prototype = { call$1(node) { var t1; if (!(node instanceof A.ModifiableCssStyleRule)) { t1 = this.mergedSources; t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1)); } else t1 = true; return t1; }, $signature: 9 }; A._EvaluateVisitor_visitCssStyleRule_closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssStyleRule__closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, t4; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1; case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } t4 = t1.__internal$_current; $async$goto = 4; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0); case 4: // returning from await. // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssStyleRule_closure3.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor_visitCssStyleRule_closure4.prototype = { call$0() { return J.get$length$asx(this._0_0._collection$_source); }, $signature: 3 }; A._EvaluateVisitor_visitCssSupportsRule_closure1.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, styleRule, t2, t3, t4, t1, _0_0; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; _0_0 = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } $async$goto = t2 ? 2 : 4; break; case 2: // then $async$goto = 5; return A._asyncAwait(t1._async_evaluate$_withParent$2$2(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure0(t1, $async$self.node), type$.ModifiableCssStyleRule, type$.Null), $async$call$0); case 5: // returning from await. // goto join $async$goto = 3; break; case 4: // else t2 = $async$self.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; case 6: // for condition if (!t2.moveNext$0()) { // goto after for $async$goto = 7; break; } t4 = t2.__internal$_current; $async$goto = 8; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0); case 8: // returning from await. // goto for condition $async$goto = 6; break; case 7: // after for case 3: // join // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssSupportsRule__closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, t4; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1; case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } t4 = t1.__internal$_current; $async$goto = 4; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0); case 4: // returning from await. // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssSupportsRule_closure2.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor__performInterpolationHelper_closure0.prototype = { call$1(targetLocations) { return A.InterpolationMap$(this.interpolation, targetLocations); }, $signature: 154 }; A._EvaluateVisitor__serialize_closure0.prototype = { call$0() { return A.serializeValue(this.value, false, this.quote); }, $signature: 22 }; A._EvaluateVisitor__expressionNode_closure0.prototype = { call$0() { var t1 = this.expression; return this.$this._async_evaluate$_environment.getVariableNode$2$namespace(t1.name, t1.namespace); }, $signature: 155 }; A._EvaluateVisitor__withoutSlash_recommendation0.prototype = { call$1(number) { var t1, before, after, _1_0 = number.asSlash; $label0$0: { if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_0)) { t1 = type$.SassNumber; before = t1._as(_1_0._0); after = t1._as(_1_0._1); t1 = true; } else { before = null; after = null; t1 = false; } if (t1) { t1 = "math.div(" + A.S(this.call$1(before)) + ", " + A.S(this.call$1(after)) + ")"; break $label0$0; } t1 = A.serializeValue(number, true, true); break $label0$0; } return t1; }, $signature: 156 }; A._EvaluateVisitor__stackFrame_closure0.prototype = { call$1(url) { var t1 = this.$this._async_evaluate$_importCache; t1 = t1 == null ? null : t1.humanize$1(url); return t1 == null ? url : t1; }, $signature: 48 }; A._ImportedCssVisitor0.prototype = { visitCssAtRule$1(node) { var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure0(); this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, t1); }, visitCssComment$1(node) { return this._async_evaluate$_visitor._async_evaluate$_addChild$1(node); }, visitCssDeclaration$1(node) { }, visitCssImport$1(node) { var t2, _s13_ = "_endOfImports", t1 = this._async_evaluate$_visitor; if (t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__parent, "__parent") !== t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__root, "_root")) t1._async_evaluate$_addChild$1(node); 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)) { t1._async_evaluate$_addChild$1(node); t1._async_evaluate$__endOfImports = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__endOfImports, _s13_) + 1; } else { t2 = t1._async_evaluate$_outOfOrderImports; (t2 == null ? t1._async_evaluate$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t2).push(node); } }, visitCssKeyframeBlock$1(node) { }, visitCssMediaRule$1(node) { var t1 = this._async_evaluate$_visitor, mediaQueries = t1._async_evaluate$_mediaQueries; t1._async_evaluate$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure0(mediaQueries == null || t1._async_evaluate$_mergeMediaQueries$2(mediaQueries, node.queries) != null)); }, visitCssStyleRule$1(node) { return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure0()); }, visitCssStylesheet$1(node) { var t1, t2, t3; for (t1 = node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; (t3 == null ? t2._as(t3) : t3).accept$1(this); } }, visitCssSupportsRule$1(node) { return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure0()); } }; A._ImportedCssVisitor_visitCssAtRule_closure0.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._ImportedCssVisitor_visitCssMediaRule_closure0.prototype = { call$1(node) { var t1; if (!(node instanceof A.ModifiableCssStyleRule)) t1 = this.hasBeenMerged && node instanceof A.ModifiableCssMediaRule; else t1 = true; return t1; }, $signature: 9 }; A._ImportedCssVisitor_visitCssStyleRule_closure0.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._ImportedCssVisitor_visitCssSupportsRule_closure0.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluationContext0.prototype = { get$currentCallableSpan() { var callableNode, t1, _0_0 = this._async_evaluate$_visitor._async_evaluate$_callableNode; if (_0_0 != null) { callableNode = _0_0; t1 = true; } else { callableNode = null; t1 = false; } if (t1) return callableNode.get$span(callableNode); throw A.wrapException(A.StateError$(string$.No_Sasc)); }, warn$2(_, message, deprecation) { var t1 = this._async_evaluate$_visitor, t2 = t1._async_evaluate$_importSpan; if (t2 == null) { t2 = t1._async_evaluate$_callableNode; t2 = t2 == null ? null : t2.get$span(t2); } t1._async_evaluate$_warn$3(message, t2 == null ? this._async_evaluate$_defaultWarnNodeWithSpan.span : t2, deprecation); }, $isEvaluationContext: 1 }; A._CloneCssVisitor.prototype = { visitCssAtRule$1(node) { var t1 = node.isChildless, rule = A.ModifiableCssAtRule$(node.name, node.span, t1, node.value); return t1 ? rule : this._visitChildren$2(rule, node); }, visitCssComment$1(node) { return new A.ModifiableCssComment(node.text, node.span); }, visitCssDeclaration$1(node) { return A.ModifiableCssDeclaration$(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap); }, visitCssImport$1(node) { return new A.ModifiableCssImport(node.url, node.modifiers, node.span); }, visitCssKeyframeBlock$1(node) { return this._visitChildren$2(A.ModifiableCssKeyframeBlock$(node.selector, node.span), node); }, visitCssMediaRule$1(node) { return this._visitChildren$2(A.ModifiableCssMediaRule$(node.queries, node.span), node); }, visitCssStyleRule$1(node) { var newSelector, t1, _0_0 = this._oldToNewSelectors.$index(0, node._style_rule$_selector._box$_inner.value); if (_0_0 != null) { newSelector = _0_0; t1 = true; } else { newSelector = null; t1 = false; } if (t1) return this._visitChildren$2(A.ModifiableCssStyleRule$(newSelector, node.span, node.originalSelector), node); else throw A.wrapException(A.StateError$(string$.The_Ex)); }, visitCssStylesheet$1(node) { return this._visitChildren$2(A.ModifiableCssStylesheet$(node.get$span(node)), node); }, visitCssSupportsRule$1(node) { return this._visitChildren$2(A.ModifiableCssSupportsRule$(node.condition, node.span), node); }, _visitChildren$1$2(newParent, oldParent) { var t1, t2, newChild; for (t1 = J.get$iterator$ax(oldParent.get$children(oldParent)); t1.moveNext$0();) { t2 = t1.get$current(t1); newChild = t2.accept$1(this); newChild.isGroupEnd = t2.get$isGroupEnd(); newParent.addChild$1(newChild); } return newParent; }, _visitChildren$2(newParent, oldParent) { return this._visitChildren$1$2(newParent, oldParent, type$.ModifiableCssParentNode); } }; A.Evaluator.prototype = {}; A._EvaluateVisitor.prototype = { _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) { var t2, metaModule, t3, _i, module, $function, t4, _this = this, _s20_ = "$name, $module: null", _s9_ = "sass:meta", _s7_ = "$module", t1 = type$.JSArray_BuiltInCallable, 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), 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); t1 = type$.BuiltInCallable; t2 = A.List_List$of($.$get$global(), true, t1); B.JSArray_methods.addAll$1(t2, $.$get$local()); B.JSArray_methods.addAll$1(t2, metaFunctions); metaModule = A.BuiltInModule$("meta", t2, metaMixins, null, t1); 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) { module = t1[_i]; t3.$indexSet(0, module.url, module); } t1 = A._setArrayType([], type$.JSArray_Callable); B.JSArray_methods.addAll$1(t1, $.$get$globalFunctions()); B.JSArray_methods.addAll$1(t1, metaFunctions); for (t2 = t1.length, t3 = _this._builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) { $function = t1[_i]; t4 = J.get$name$x($function); t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function); } }, run$2(_, importer, node) { var error, stackTrace, t1, exception; try { t1 = type$.nullable_Object; 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); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException) { error = t1; stackTrace = A.getTraceFromException(exception); A.throwWithTrace(error.withLoadedUrls$1(this._loadedUrls), error, stackTrace); } else throw exception; } }, runExpression$2(importer, expression) { var t1 = type$.nullable_Object; 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); }, runStatement$2(importer, statement) { var t1 = type$.nullable_Object; 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); }, _assertInModule$1$2(value, $name) { if (value != null) return value; throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module.")); }, _assertInModule$2(value, $name) { return this._assertInModule$1$2(value, $name, type$.dynamic); }, _withFakeStylesheet$1$3(importer, nodeWithSpan, callback) { var t1, _this = this, oldImporter = _this._importer; _this._importer = importer; _this.__stylesheet = A.Stylesheet$(B.List_empty12, nodeWithSpan.get$span(nodeWithSpan)); try { t1 = callback.call$0(); return t1; } finally { _this._importer = oldImporter; _this.__stylesheet = null; } }, _withFakeStylesheet$3(importer, nodeWithSpan, callback) { return this._withFakeStylesheet$1$3(importer, nodeWithSpan, callback, type$.dynamic); }, _loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) { var _0_0, t2, _this = this, t1 = {}; t1.builtInModule = null; _0_0 = _this._builtInModules.$index(0, url); if (_0_0 != null) { t1.builtInModule = _0_0; t2 = true; } else t2 = false; if (t2) { if (configuration instanceof A.ExplicitConfiguration) { t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured."; t2 = configuration.nodeWithSpan; throw A.wrapException(_this._evaluate$_exception$2(t1, t2.get$span(t2))); } _this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure(t1, callback)); return; } _this._withStackFrame$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure0(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback)); }, _loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) { return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false); }, _loadModule$4(url, stackFrame, nodeWithSpan, callback) { return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false); }, _execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) { var _0_0, alreadyLoaded, t2, currentConfiguration, t3, message, existingSpan, configurationSpan, environment, css, preModuleComments, extensionStore, module, _this = this, t1 = stylesheet.span, url = t1.get$sourceUrl(t1); t1 = _this._modules; _0_0 = t1.$index(0, url); if (_0_0 != null) { alreadyLoaded = _0_0; t2 = true; } else { alreadyLoaded = null; t2 = false; } if (t2) { t1 = configuration == null; currentConfiguration = t1 ? _this._configuration : configuration; t2 = _this._moduleConfigurations.$index(0, url); t3 = t2.__originalConfiguration; t2 = t3 == null ? t2 : t3; t3 = currentConfiguration.__originalConfiguration; if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration) { message = namesInErrors ? $.$get$context().prettyUri$1(url) + string$.x20was_a : string$.This_mw; t2 = _this._moduleNodes.$index(0, url); existingSpan = t2 == null ? null : t2.get$span(t2); if (t1) { t1 = currentConfiguration.nodeWithSpan; configurationSpan = t1.get$span(t1); } else configurationSpan = null; t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); if (existingSpan != null) t1.$indexSet(0, existingSpan, "original load"); if (configurationSpan != null) t1.$indexSet(0, configurationSpan, "configuration"); throw A.wrapException(t1.get$isEmpty(t1) ? _this._evaluate$_exception$1(message) : _this._multiSpanException$3(message, "new load", t1)); } return alreadyLoaded; } environment = A.Environment$(); css = A._Cell$(); preModuleComments = A._Cell$(); extensionStore = A.ExtensionStore$(); _this._withEnvironment$2(environment, new A._EvaluateVisitor__execute_closure(_this, importer, stylesheet, extensionStore, configuration, css, preModuleComments)); t2 = css._readLocal$0(); t3 = preModuleComments._readLocal$0(); module = environment.toModule$3(t2, t3 == null ? B.Map_empty0 : t3, extensionStore); if (url != null) { t1.$indexSet(0, url, module); _this._moduleConfigurations.$indexSet(0, url, _this._configuration); if (nodeWithSpan != null) _this._moduleNodes.$indexSet(0, url, nodeWithSpan); } return module; }, _execute$2(importer, stylesheet) { return this._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null); }, _addOutOfOrderImports$0() { var t1, t2, _this = this, _s5_ = "_root", _s13_ = "_endOfImports", _0_0 = _this._outOfOrderImports; $label0$0: { if (_0_0 == null) { t1 = _this._assertInModule$2(_this.__root, _s5_).children; break $label0$0; } t1 = _this._assertInModule$2(_this.__root, _s5_); t1 = t1.children; 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); B.JSArray_methods.addAll$1(t1, _0_0); t2 = _this._assertInModule$2(_this.__root, _s5_).children; B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._assertInModule$2(_this.__endOfImports, _s13_), null, t2.$ti._eval$1("ListBase.E"))); break $label0$0; } return t1; }, _combineCss$2$clone(root, clone) { var selectors, _0_0, unsatisfiedExtension, t1, imports, css, sorted, t2; if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure())) { selectors = root.get$extensionStore().get$simpleSelectors(); _0_0 = A.IterableExtension_get_firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure0(selectors))); if (_0_0 != null) { unsatisfiedExtension = _0_0; t1 = true; } else { unsatisfiedExtension = null; t1 = false; } if (t1) this._throwForUnsatisfiedExtension$1(unsatisfiedExtension); return root.get$css(root); } t1 = type$.JSArray_CssNode; imports = A._setArrayType([], t1); css = A._setArrayType([], t1); t1 = type$.Module_Callable; sorted = A.ListQueue$(t1); new A._EvaluateVisitor__combineCss_visitModule(this, A.LinkedHashSet_LinkedHashSet$_empty(t1), clone, css, imports, sorted).call$1(root); if (root.get$transitivelyContainsExtensions()) this._extendModules$1(sorted); t1 = B.JSArray_methods.$add(imports, css); t2 = root.get$css(root); return new A.CssStylesheet(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode), t2.get$span(t2)); }, _combineCss$1(root) { return this._combineCss$2$clone(root, false); }, _extendModules$1(sortedModules) { var t1, t2, t3, originalSelectors, $self, t4, t5, _i, upstream, _0_0, url, t6, downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore), unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension); for (t1 = A._ListQueueIterator$(sortedModules), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1._collection$_current; if (t3 == null) t3 = t2._as(t3); originalSelectors = t3.get$extensionStore().get$simpleSelectors().toSet$0(0); unsatisfiedExtensions.addAll$1(0, t3.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure(originalSelectors))); $self = downstreamExtensionStores.$index(0, t3.get$url(t3)); t4 = t3.get$extensionStore().get$addExtensions(); if ($self != null) t4.call$1($self); t4 = t3.get$extensionStore(); if (t4.get$isEmpty(t4)) continue; for (t4 = t3.get$upstream(), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, A.throwConcurrentModificationError)(t4), ++_i) { upstream = t4[_i]; _0_0 = upstream.get$url(upstream); if (_0_0 != null) { url = _0_0; t6 = true; } else { url = null; t6 = false; } if (t6) J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(url, new A._EvaluateVisitor__extendModules_closure0()), t3.get$extensionStore()); } unsatisfiedExtensions.removeAll$1(t3.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors))); } if (unsatisfiedExtensions._collection$_length !== 0) this._throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions)); }, _throwForUnsatisfiedExtension$1(extension) { throw A.wrapException(A.SassException$(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span, null)); }, _indexAfterImports$1(statements) { var t1, lastImport, i, _0_0; for (t1 = J.getInterceptor$asx(statements), lastImport = -1, i = 0; i < t1.get$length(statements); ++i) { $label0$0: { _0_0 = t1.$index(statements, i); if (_0_0 instanceof A.ModifiableCssImport) break $label0$0; if (_0_0 instanceof A.ModifiableCssComment) continue; break; } lastImport = i; } return lastImport + 1; }, visitStylesheet$1(node) { var t1, t2, _i; for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i) t1[_i].accept$1(this); return null; }, visitAtRootRule$1(node) { var unparsedQuery, t1, _1_0, query, $parent, included, _2_0, grandparent, t2, root, first, rest, innerCopy, outerCopy, _i, copy, _this = this, _null = null, _s8_ = "__parent", _0_0 = node.query; if (_0_0 != null) { unparsedQuery = _0_0; t1 = true; } else { unparsedQuery = _null; t1 = false; } if (t1) { _1_0 = _this._performInterpolationWithMap$2$warnForColor(unparsedQuery, true); query = A.AtRootQueryParser$(_1_0._0, _this._evaluate$_logger, _null).parse$0(); } else query = B.AtRootQuery_UsS; $parent = _this._assertInModule$2(_this.__parent, _s8_); included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode); for (t1 = type$.CssStylesheet; !t1._is($parent); $parent = grandparent) { if (!query.excludes$1($parent)) included.push($parent); _2_0 = $parent._parent; if (_2_0 != null) { grandparent = _2_0; t2 = true; } else { grandparent = _null; t2 = false; } if (!t2) throw A.wrapException(A.StateError$(string$.CssNod)); } root = _this._trimIncluded$1(included); if (root === _this._assertInModule$2(_this.__parent, _s8_)) { _this._environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure(_this, node), node.hasDeclarations, type$.Null); return _null; } if (included.length >= 1) { first = included[0]; rest = B.JSArray_methods.sublist$1(included, 1); t1 = true; } else { rest = _null; first = rest; t1 = false; } if (t1) { innerCopy = first.copyWithoutChildren$0(); for (t1 = rest.length, outerCopy = innerCopy, _i = 0; _i < rest.length; rest.length === t1 || (0, A.throwConcurrentModificationError)(rest), ++_i, outerCopy = copy) { copy = rest[_i].copyWithoutChildren$0(); copy.addChild$1(outerCopy); } root.addChild$1(outerCopy); } else innerCopy = root; _this._scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure0(_this, node)); return _null; }, _trimIncluded$1(nodes) { var $parent, t1, innermostContiguous, i, t2, _0_0, grandparent, t3, _1_0, root, _this = this, _null = null, _s5_ = "_root", _s22_ = " to be an ancestor of "; if (nodes.length === 0) return _this._assertInModule$2(_this.__root, _s5_); $parent = _this._assertInModule$2(_this.__parent, "__parent"); for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = grandparent) { for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = grandparent) { _0_0 = $parent._parent; if (_0_0 != null) { grandparent = _0_0; t3 = true; } else { grandparent = _null; t3 = false; } if (!t3) throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null)); } if (innermostContiguous == null) innermostContiguous = i; _1_0 = $parent._parent; if (_1_0 != null) { grandparent = _1_0; t3 = true; } else { grandparent = _null; t3 = false; } if (!t3) throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null)); } if ($parent !== _this._assertInModule$2(_this.__root, _s5_)) return _this._assertInModule$2(_this.__root, _s5_); innermostContiguous.toString; root = nodes[innermostContiguous]; B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length); return root; }, _scopeForAtRoot$4(node, newParent, query, included) { var _this = this, scope = new A._EvaluateVisitor__scopeForAtRoot_closure(_this, newParent, node), t1 = query._all || query._at_root_query$_rule; if (t1 !== query.include) scope = new A._EvaluateVisitor__scopeForAtRoot_closure0(_this, scope); if (_this._mediaQueries != null && query.excludesName$1("media")) scope = new A._EvaluateVisitor__scopeForAtRoot_closure1(_this, scope); if (_this._inKeyframes && query.excludesName$1("keyframes")) scope = new A._EvaluateVisitor__scopeForAtRoot_closure2(_this, scope); return _this._inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure3()) ? new A._EvaluateVisitor__scopeForAtRoot_closure4(_this, scope) : scope; }, visitContentBlock$1(node) { return A.throwExpression(A.UnsupportedError$(string$.Evalua)); }, visitContentRule$1(node) { var $content = this._environment._content; if ($content == null) return null; this._runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure(this, $content), type$.Null); return null; }, visitDebugRule$1(node) { var value = node.expression.accept$1(this), t1 = value instanceof A.SassString ? value._string$_text : A.serializeValue(value, true, true); this._evaluate$_logger.debug$2(0, t1, node.span); return null; }, visitDeclaration$1(node) { var t2, $name, _0_0, declarationName, t3, _1_0, expression, value, t4, t5, _2_0, oldDeclarationName, _this = this, _null = null, t1 = {}; if ((_this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot) == null && !_this._inUnknownAtRule && !_this._inKeyframes) throw A.wrapException(_this._evaluate$_exception$2(string$.Declarm, node.span)); if (_this._declarationName != null && B.JSString_methods.startsWith$1(node.name.get$initialPlain(), "--")) throw A.wrapException(_this._evaluate$_exception$2(string$.Declarw, node.span)); t2 = node.name; $name = _this._interpolationToValue$2$warnForColor(t2, true); _0_0 = _this._declarationName; if (_0_0 != null) { declarationName = _0_0; t3 = true; } else { declarationName = _null; t3 = false; } if (t3) $name = new A.CssValue(A.S(declarationName) + "-" + A.S($name.value), $name.span, type$.CssValue_String); _1_0 = node.value; if (_1_0 != null) { expression = _1_0; t3 = true; } else { expression = _null; t3 = false; } if (t3) { value = expression.accept$1(_this); if (!value.get$isBlank() || value.get$asList().length === 0) { t3 = _this._assertInModule$2(_this.__parent, "__parent"); t4 = expression.get$span(expression); t2 = B.JSString_methods.startsWith$1(t2.get$initialPlain(), "--"); if (_this._sourceMap) { t5 = A.NullableExtension_andThen(_1_0, _this.get$_expressionNode()); t5 = t5 == null ? _null : J.get$span$z(t5); } else t5 = _null; t3.addChild$1(A.ModifiableCssDeclaration$($name, new A.CssValue(value, t4, type$.CssValue_Value), node.span, t2, t5)); } else if (J.startsWith$1$s($name.value, "--")) throw A.wrapException(_this._evaluate$_exception$2("Custom property values may not be empty.", expression.get$span(expression))); } t1.children = null; _2_0 = node.children; if (_2_0 != null) { t1.children = _2_0; t2 = true; } else t2 = false; if (t2) { oldDeclarationName = _this._declarationName; _this._declarationName = $name.value; _this._environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure(t1, _this), node.hasDeclarations, type$.Null); _this._declarationName = oldDeclarationName; } return _null; }, visitEachRule$1(node) { var t2, _this = this, _box_0 = {}, t1 = node.list, list = t1.accept$1(_this), nodeWithSpan = _this._expressionNode$1(t1), _0_0 = node.variables; $label0$0: { _box_0.variable = null; if (_0_0.length === 1) { _box_0.variable = _0_0[0]; t1 = true; } else t1 = false; if (t1) { t1 = new A._EvaluateVisitor_visitEachRule_closure(_box_0, _this, nodeWithSpan); break $label0$0; } t1 = _box_0.variables = null; _box_0.variables = _0_0; t2 = new A._EvaluateVisitor_visitEachRule_closure0(_box_0, _this, nodeWithSpan); t1 = t2; break $label0$0; } return _this._environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure1(_this, list, t1, node), true, type$.nullable_Value); }, _setMultipleVariables$3(variables, value, nodeWithSpan) { var i, list = value.get$asList(), t1 = variables.length, minLength = Math.min(t1, list.length); for (i = 0; i < minLength; ++i) this._environment.setLocalVariable$3(variables[i], this._withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan); for (i = minLength; i < t1; ++i) this._environment.setLocalVariable$3(variables[i], B.C__SassNull, nodeWithSpan); }, visitErrorRule$1(node) { throw A.wrapException(this._evaluate$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span)); }, visitExtendRule$1(node) { var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, _0_0, compound, _this = this, _null = null, styleRule = _this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot; if (styleRule == null || _this._declarationName != null) throw A.wrapException(_this._evaluate$_exception$2(string$.x40exten, node.span)); for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, _i = 0; _i < t2; ++_i) { complex = t1[_i]; if (!complex.accept$1(B._IsBogusVisitor_true)) continue; visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true); complex.accept$1(visitor); t6 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)); t7 = complex.accept$1(B.C__IsUselessVisitor) ? "can't" : "shouldn't"; _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_vrR); } _0_0 = _this._performInterpolationWithMap$2$warnForColor(node.selector, true); for (t1 = A.SelectorList_SelectorList$parse(A.trimAscii(_0_0._0, true), false, true, _0_0._1, _this._evaluate$_logger).components, t2 = t1.length, t3 = styleRule._style_rule$_selector._box$_inner, _i = 0; _i < t2; ++_i) { complex = t1[_i]; compound = complex.get$singleCompound(); if (compound == null) throw A.wrapException(A.SassFormatException$("complex selectors may not be extended.", complex.span, _null)); t4 = compound.components; t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : _null; if (t5 == null) throw A.wrapException(A.SassFormatException$(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, compound.span, _null)); _this._assertInModule$2(_this.__extensionStore, "_extensionStore").addExtension$4(t3.value, t5, node, _this._mediaQueries); } return _null; }, visitAtRule$1(node) { var $name, value, children, wasInKeyframes, wasInUnknownAtRule, _this = this; if (_this._declarationName != null) throw A.wrapException(_this._evaluate$_exception$2(string$.At_rul, node.span)); $name = _this._interpolationToValue$1(node.name); value = A.NullableExtension_andThen(node.value, new A._EvaluateVisitor_visitAtRule_closure(_this)); children = node.children; if (children == null) { _this._assertInModule$2(_this.__parent, "__parent").addChild$1(A.ModifiableCssAtRule$($name, node.span, true, value)); return null; } wasInKeyframes = _this._inKeyframes; wasInUnknownAtRule = _this._inUnknownAtRule; if (A.unvendor($name.value) === "keyframes") _this._inKeyframes = true; else _this._inUnknownAtRule = true; _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); _this._inUnknownAtRule = wasInUnknownAtRule; _this._inKeyframes = wasInKeyframes; return null; }, visitForRule$1(node) { var _this = this, t1 = {}, t2 = node.from, fromNumber = _this._addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure(_this, node)), t3 = node.to, toNumber = _this._addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure0(_this, node)), from = _this._addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure1(fromNumber)), to = t1.to = _this._addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure2(toNumber, fromNumber)), direction = from > to ? -1 : 1; if (from === (!node.isExclusive ? t1.to = to + direction : to)) return null; return _this._environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure3(t1, _this, node, from, direction, fromNumber), true, type$.nullable_Value); }, visitForwardRule$1(node) { var newConfiguration, t4, _i, variable, $name, _this = this, _s8_ = "@forward", oldConfiguration = _this._configuration, adjustedConfiguration = oldConfiguration.throughForward$1(node), t1 = node.configuration, t2 = t1.length, t3 = node.url; if (t2 !== 0) { newConfiguration = _this._addForwardConfiguration$2(adjustedConfiguration, node); _this._loadModule$5$configuration(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure(_this, node), newConfiguration); t3 = type$.String; t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3); for (_i = 0; _i < t2; ++_i) { variable = t1[_i]; if (!variable.isGuarded) t4.add$1(0, variable.name); } _this._removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4); t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3); for (_i = 0; _i < t2; ++_i) t3.add$1(0, t1[_i].name); 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) { $name = t2[_i]; if (!t3.contains$1(0, $name)) if (!t1.get$isEmpty(t1)) t1.remove$1(0, $name); } _this._assertConfigurationIsEmpty$1(newConfiguration); } else { _this._configuration = adjustedConfiguration; _this._loadModule$4(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure0(_this, node)); _this._configuration = oldConfiguration; } return null; }, _addForwardConfiguration$2(configuration, node) { var t2, t3, _i, variable, t4, oldValue, t5, variableNodeWithSpan, _null = null, t1 = configuration._configuration$_values, newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue); for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) { variable = t2[_i]; if (variable.isGuarded) { t4 = variable.name; oldValue = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, t4); if (oldValue != null) t5 = true; else { oldValue = _null; t5 = false; } if (t5 && !oldValue.value.$eq(0, B.C__SassNull)) { newValues.$indexSet(0, t4, oldValue); continue; } } t4 = variable.expression; variableNodeWithSpan = this._expressionNode$1(t4); newValues.$indexSet(0, variable.name, new A.ConfiguredValue(this._withoutSlash$2(t4.accept$1(this), variableNodeWithSpan), variable.span, variableNodeWithSpan)); } if (configuration instanceof A.ExplicitConfiguration || t1.get$isEmpty(t1)) return new A.ExplicitConfiguration(node, newValues, _null); else return new A.Configuration(newValues, _null); }, _registerCommentsForModule$1(module) { var _this = this, _s5_ = "_root", t1 = _this.__root; if (t1 == null) return; t1 = _this._assertInModule$2(t1, _s5_).children; if (t1.get$length(t1) === 0 || !module.get$transitivelyContainsCss()) return; t1 = _this._preModuleComments; if (t1 == null) t1 = _this._preModuleComments = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.List_CssComment); 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)); _this._assertInModule$2(_this.__root, _s5_).clearChildren$0(); _this.__endOfImports = 0; }, _removeUsedConfiguration$3$except(upstream, downstream, except) { var t1, t2, t3, t4, _i, $name; 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) { $name = t2[_i]; if (except.contains$1(0, $name)) continue; if (!t4.containsKey$1($name)) if (!t1.get$isEmpty(t1)) t1.remove$1(0, $name); } }, _assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) { var t1, _0_0, $name, value; if (!(configuration instanceof A.ExplicitConfiguration)) return; t1 = configuration._configuration$_values; if (t1.get$isEmpty(t1)) return; t1 = A.MapExtensions_get_pairs(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue); _0_0 = t1.get$first(t1); $name = _0_0._0; value = _0_0._1; t1 = nameInError ? "$" + $name + string$.x20was_n : string$.This_v; throw A.wrapException(this._evaluate$_exception$2(t1, value.configurationSpan)); }, _assertConfigurationIsEmpty$1(configuration) { return this._assertConfigurationIsEmpty$2$nameInError(configuration, false); }, visitFunctionRule$1(node) { var t1 = this._environment, t2 = t1.closure$0(), t3 = this._inDependency, t4 = t1._functions, index = t4.length - 1, t5 = node.name; t1._functionIndices.$indexSet(0, t5, index); J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_Environment)); return null; }, visitIfRule$1(node) { var t1, t2, _i, clauseToCheck, clause = node.lastClause; for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) { clauseToCheck = t1[_i]; if (clauseToCheck.expression.accept$1(this).get$isTruthy()) { clause = clauseToCheck; break; } } return A.NullableExtension_andThen(clause, new A._EvaluateVisitor_visitIfRule_closure(this)); }, visitImportRule$1(node) { var t1, t2, t3, t4, t5, t6, _i, $import, t7, _0_0, $self, t8, _this = this, _s8_ = "__parent", _s5_ = "_root", _s13_ = "_endOfImports"; 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) { $import = t1[_i]; if ($import instanceof A.DynamicImport) _this._visitDynamicImport$1($import); else { t5._as($import); t7 = $import.url; _0_0 = _this._performInterpolationHelper$3$sourceMap$warnForColor(t7, false, false); $self = $import.modifiers; t8 = $self == null ? null : t4.call$1($self); node = new A.ModifiableCssImport(new A.CssValue(_0_0._0, t7.span, t3), t8, $import.span); if (_this._assertInModule$2(_this.__parent, _s8_) !== _this._assertInModule$2(_this.__root, _s5_)) _this._assertInModule$2(_this.__parent, _s8_).addChild$1(node); else if (_this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, _s5_).children._collection$_source)) { t7 = _this._assertInModule$2(_this.__root, _s5_); node._parent = t7; t7 = t7._children; node._indexInParent = t7.length; t7.push(node); _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1; } else { t7 = _this._outOfOrderImports; (t7 == null ? _this._outOfOrderImports = A._setArrayType([], t6) : t7).push(node); } } } return null; }, _visitDynamicImport$1($import) { return this._withStackFrame$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure(this, $import)); }, _loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) { var importCache, _0_0, importer, canonicalUrl, originalUrl, _1_0, isDependency, stylesheet, _2_0, result, _3_0, error, stackTrace, error0, stackTrace0, message, t1, t2, t3, t4, exception, message0, _this = this, _s11_ = "_stylesheet"; baseUrl = baseUrl; try { _this._importSpan = span; importCache = null; _0_0 = _this._evaluate$_importCache; if (_0_0 != null) { importCache = _0_0; t1 = true; } else t1 = false; if (t1) { if (baseUrl == null) { t1 = _this._assertInModule$2(_this.__stylesheet, _s11_).span; baseUrl = t1.get$sourceUrl(t1); } importer = null; canonicalUrl = null; originalUrl = null; _1_0 = J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), _this._importer, baseUrl, forImport); if (type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(_1_0)) { importer = _1_0._0; canonicalUrl = _1_0._1; originalUrl = _1_0._2; t1 = true; } else t1 = false; if (t1) { _this._loadedUrls.add$1(0, canonicalUrl); isDependency = _this._inDependency || !J.$eq$(importer, _this._importer); stylesheet = null; t1 = importCache; t2 = importer; t3 = canonicalUrl; t4 = originalUrl; _2_0 = t1.importCanonical$4$originalUrl$quiet(t2, t3, t4, _this._quietDeps && isDependency); if (_2_0 != null) { stylesheet = _2_0; t1 = true; } else t1 = false; if (t1) { t1 = stylesheet; t2 = importer; return new A._Record_3_importer_isDependency(t1, t2, isDependency); } } } else { result = null; t1 = baseUrl; if (t1 == null) { t1 = _this._assertInModule$2(_this.__stylesheet, _s11_).span; t1 = t1.get$sourceUrl(t1); } _3_0 = _this._importLikeNode$3(url, t1, forImport); if (_3_0 != null) { result = _3_0; t1 = true; } else t1 = false; if (t1) { t1 = result._0.span; t2 = _this._loadedUrls; A.NullableExtension_andThen(t1.get$sourceUrl(t1), t2.get$add(t2)); t2 = result; return t2; } } if (B.JSString_methods.startsWith$1(url, "package:") && true) throw A.wrapException(string$.x22packa); else throw A.wrapException("Can't find stylesheet to import."); } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException) throw exception; else if (t1 instanceof A.ArgumentError) { error = t1; stackTrace = A.getTraceFromException(exception); A.throwWithTrace(_this._evaluate$_exception$1(J.toString$0$(error)), error, stackTrace); } else { error0 = t1; stackTrace0 = A.getTraceFromException(exception); message = null; try { message = A._asString(J.get$message$x(error0)); } catch (exception) { message0 = J.toString$0$(error0); message = message0; } A.throwWithTrace(_this._evaluate$_exception$1(message), error0, stackTrace0); } } finally { _this._importSpan = null; } }, _loadStylesheet$3$baseUrl(url, span, baseUrl) { return this._loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false); }, _loadStylesheet$3$forImport(url, span, forImport) { return this._loadStylesheet$4$baseUrl$forImport(url, span, null, forImport); }, _importLikeNode$3(originalUrl, previous, forImport) { var t1, t2, _this = this, result = _this._nodeImporter.loadRelative$3(originalUrl, previous, forImport), isDependency = _this._inDependency, url = result._1; url = url; t1 = J.startsWith$1$s(url, "file") ? A.Syntax_forPath(url) : B.Syntax_SCSS_scss; t2 = _this._quietDeps && isDependency ? $.$get$Logger_quiet() : _this._evaluate$_logger; return new A._Record_3_importer_isDependency(A.Stylesheet_Stylesheet$parse(result._0, t1, t2, url), null, isDependency); }, _applyMixin$5(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) { var _1_8, t1, _0_0, _this = this, _s37_ = "Mixin doesn't accept a content block.", _s10_ = "invocation"; $label0$0: { _1_8 = A._InitializedCell$(new A._EvaluateVisitor__applyMixin_closure(mixin)); if (mixin == null) throw A.wrapException(_this._evaluate$_exception$2("Undefined mixin.", nodeWithSpan.get$span(nodeWithSpan))); t1 = mixin instanceof A.BuiltInCallable; if (t1 && !mixin.acceptsContent && contentCallable != null) { t1 = _this._evaluateArguments$1($arguments)._values; _0_0 = mixin.callbackFor$2(t1[2].length, new A.MapKeySet(t1[0], type$.MapKeySet_String)); 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)); } if (t1) { _this._environment.withContent$2(contentCallable, new A._EvaluateVisitor__applyMixin_closure0(_this, $arguments, mixin, nodeWithSpanWithoutContent)); break $label0$0; } t1 = type$.UserDefinedCallable_Environment._is(mixin); if (t1 && _1_8._readFinal$0() instanceof A.MixinRule && !_1_8._readFinal$0().get$hasContent() && contentCallable != null) 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)); if (t1) { _this._runUserDefinedCallable$1$4($arguments, mixin, nodeWithSpanWithoutContent, new A._EvaluateVisitor__applyMixin_closure1(_this, contentCallable, mixin, nodeWithSpanWithoutContent), type$.Null); break $label0$0; } throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + ".")); } }, visitIncludeRule$1(node) { var _this = this; _this._applyMixin$5(_this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure(_this, node)), A.NullableExtension_andThen(node.content, new A._EvaluateVisitor_visitIncludeRule_closure0(_this)), node.$arguments, node, new A._FakeAstNode(new A._EvaluateVisitor_visitIncludeRule_closure1(node))); return null; }, visitMixinRule$1(node) { var t1 = this._environment, t2 = t1.closure$0(), t3 = this._inDependency, t4 = t1._mixins, index = t4.length - 1, t5 = node.name; t1._mixinIndices.$indexSet(0, t5, index); J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_Environment)); return null; }, visitLoudComment$1(node) { var t1, _this = this, _s8_ = "__parent", _s13_ = "_endOfImports"; if (_this._inFunction) return null; 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)) _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1; t1 = node.text; _this._assertInModule$2(_this.__parent, _s8_).addChild$1(new A.ModifiableCssComment(_this._performInterpolation$1(t1), t1.span)); return null; }, visitMediaRule$1(node) { var _0_0, queries, mergedQueries, t1, mergedSources, t2, t3, _this = this; if (_this._declarationName != null) throw A.wrapException(_this._evaluate$_exception$2(string$.Media_, node.span)); _0_0 = _this._performInterpolationWithMap$2$warnForColor(node.query, true); queries = A.CssMediaQuery_parseList(_0_0._0, _0_0._1, _this._evaluate$_logger); mergedQueries = A.NullableExtension_andThen(_this._mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure(_this, queries)); t1 = mergedQueries == null; if (!t1 && J.get$isEmpty$asx(mergedQueries)) return null; if (t1) mergedSources = B.Set_empty1; else { t2 = _this._mediaQuerySources; t2.toString; t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery); t3 = _this._mediaQueries; t3.toString; t2.addAll$1(0, t3); t2.addAll$1(0, queries); mergedSources = t2; } t1 = t1 ? queries : mergedQueries; _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); return null; }, _mergeMediaQueries$2(queries1, queries2) { var t1, t2, t3, t4, _0_0, result, t5, queries = A._setArrayType([], type$.JSArray_CssMediaQuery); for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2); t1.moveNext$0();) { t3 = t1.get$current(t1); for (t4 = t2.get$iterator(queries2); t4.moveNext$0();) { _0_0 = t3.merge$1(t4.get$current(t4)); if (B._SingletonCssMediaQueryMergeResult_0 === _0_0) continue; if (B._SingletonCssMediaQueryMergeResult_1 === _0_0) return null; if (_0_0 instanceof A.MediaQuerySuccessfulMergeResult) { result = _0_0; t5 = true; } else { result = null; t5 = false; } if (t5) queries.push(result.query); } } return queries; }, visitReturnRule$1(node) { var t1 = node.expression; return this._withoutSlash$2(t1.accept$1(this), t1); }, visitSilentComment$1(node) { return null; }, visitStyleRule$1(node) { var t1, _0_0, selectorText, selectorMap, t2, parsedSelector, rule, oldAtRootExcludingStyleRule, t3, t4, t5, _i, complex, visitor, t6, t7, t8, t9, _this = this, _null = null, _s11_ = "_stylesheet", _s8_ = "__parent"; if (_this._declarationName != null) throw A.wrapException(_this._evaluate$_exception$2(string$.Style_, node.span)); t1 = node.selector; _0_0 = _this._performInterpolationWithMap$2$warnForColor(t1, true); selectorText = _0_0._0; selectorMap = _0_0._1; if (_this._inKeyframes) { _this._withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(new A.CssValue(A.List_List$unmodifiable(A.KeyframeSelectorParser$(selectorText, selectorMap, _this._evaluate$_logger).parse$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); return _null; } t1 = A.SelectorList_SelectorList$parse(selectorText, !_this._assertInModule$2(_this.__stylesheet, _s11_).plainCss, !_this._assertInModule$2(_this.__stylesheet, _s11_).plainCss, selectorMap, _this._evaluate$_logger); t2 = _this._styleRuleIgnoringAtRoot; t2 = t2 == null ? _null : t2.originalSelector; parsedSelector = t1.resolveParentSelectors$2$implicitParent(t2, !_this._atRootExcludingStyleRule); rule = A.ModifiableCssStyleRule$(_this._assertInModule$2(_this.__extensionStore, "_extensionStore").addSelector$2(parsedSelector, _this._mediaQueries), node.span, parsedSelector); oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule; _this._atRootExcludingStyleRule = false; _this._withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure1(_this, rule, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure2(), type$.ModifiableCssStyleRule, type$.Null); _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule; if (!rule.accept$1(B._IsInvisibleVisitor_false_false)) for (t1 = parsedSelector.components, t2 = t1.length, t3 = type$.SourceSpan, t4 = type$.String, t5 = rule.children, _i = 0; _i < t2; ++_i) { complex = t1[_i]; if (!complex.accept$1(B._IsBogusVisitor_true)) continue; if (complex.accept$1(B.C__IsUselessVisitor)) { visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true); complex.accept$1(visitor); _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_vrR); } else if (complex.leadingCombinators.length !== 0) { visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true); complex.accept$1(visitor); _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_vrR); } else { visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true); complex.accept$1(visitor); t6 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)); t7 = complex.accept$1(B._IsBogusVisitor_false) ? string$.x20It_wi : ""; t8 = A.SpanExtensions_trimRight(complex.span); if (t5.get$length(t5) === 0) A.throwExpression(A.IterableElementError_noElement()); t9 = J.get$span$z(t5.$index(0, 0)); _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_visitStyleRule_closure3()) ? "\n(try converting to a //-style comment)" : "")], t3, t4), t3, t4)), B.Deprecation_vrR); } } if ((_this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot) == null) { t1 = _this._assertInModule$2(_this.__parent, _s8_).children; t1 = !t1.get$isEmpty(t1); } else t1 = false; if (t1) { t1 = _this._assertInModule$2(_this.__parent, _s8_).children; t1.get$last(t1).isGroupEnd = true; } return _null; }, visitSupportsRule$1(node) { var t1, _this = this; if (_this._declarationName != null) throw A.wrapException(_this._evaluate$_exception$2(string$.Suppor, node.span)); t1 = node.condition; _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); return null; }, _visitSupportsCondition$1(condition) { var operation, t1, t2, negation, interpolation, $function, anything, _this = this, _null = null, _box_0 = {}; $label0$0: { if (condition instanceof A.SupportsOperation) { operation = condition; t1 = true; } else { operation = _null; t1 = false; } if (t1) { t1 = operation.left; t2 = operation.operator; t2 = _this._parenthesize$2(t1, t2) + " " + t2 + " " + _this._parenthesize$2(operation.right, t2); t1 = t2; break $label0$0; } if (condition instanceof A.SupportsNegation) { negation = condition; t1 = true; } else { negation = _null; t1 = false; } if (t1) { t1 = "not " + _this._parenthesize$1(negation.condition); break $label0$0; } if (condition instanceof A.SupportsInterpolation) { interpolation = condition; t1 = true; } else { interpolation = _null; t1 = false; } if (t1) { t1 = interpolation.expression; t1 = _this._evaluate$_serialize$3$quote(t1.accept$1(_this), t1, false); break $label0$0; } _box_0.declaration = null; if (condition instanceof A.SupportsDeclaration) { _box_0.declaration = condition; t1 = true; } else t1 = false; if (t1) { t1 = _this._withSupportsDeclaration$1(new A._EvaluateVisitor__visitSupportsCondition_closure(_box_0, _this)); break $label0$0; } if (condition instanceof A.SupportsFunction) { $function = condition; t1 = true; } else { $function = _null; t1 = false; } if (t1) { t1 = _this._performInterpolation$1($function.name) + "(" + _this._performInterpolation$1($function.$arguments) + ")"; break $label0$0; } if (condition instanceof A.SupportsAnything) { anything = condition; t1 = true; } else { anything = _null; t1 = false; } if (t1) { t1 = "(" + _this._performInterpolation$1(anything.contents) + ")"; break $label0$0; } t1 = A.throwExpression(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeTypeOfDartObject(condition).toString$0(0) + ".", _null)); } return t1; }, _withSupportsDeclaration$1$1(callback) { var t1, oldInSupportsDeclaration = this._inSupportsDeclaration; this._inSupportsDeclaration = true; try { t1 = callback.call$0(); return t1; } finally { this._inSupportsDeclaration = oldInSupportsDeclaration; } }, _withSupportsDeclaration$1(callback) { return this._withSupportsDeclaration$1$1(callback, type$.dynamic); }, _parenthesize$2(condition, operator) { var t1; if (!(condition instanceof A.SupportsNegation)) if (condition instanceof A.SupportsOperation) t1 = operator == null || operator !== condition.operator; else t1 = false; else t1 = true; if (t1) return "(" + this._visitSupportsCondition$1(condition) + ")"; return this._visitSupportsCondition$1(condition); }, _parenthesize$1(condition) { return this._parenthesize$2(condition, null); }, visitVariableDeclaration$1(node) { var t2, t3, value, _this = this, _null = null, t1 = {}; if (node.isGuarded) { if (node.namespace == null && _this._environment._variables.length === 1) { t1.override = null; t2 = _this._configuration._configuration$_values; t2 = t2.get$isEmpty(t2) ? _null : t2.remove$1(0, node.name); if (t2 != null) { t1.override = t2; t3 = t2; t2 = true; } else { t3 = _null; t2 = false; } if (t2 && !t3.value.$eq(0, B.C__SassNull)) { _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure(t1, _this, node)); return _null; } } value = _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure0(_this, node)); if (value != null && !value.$eq(0, B.C__SassNull)) return _null; } if (node.isGlobal && !_this._environment.globalVariableExists$1(node.name)) { t1 = _this._environment._variables.length === 1 ? string$.As_of_S : string$.As_of_R + A.declarationName(node.span) + ": null` at the stylesheet root."; _this._warn$3(t1, node.span, B.Deprecation_hzy); } t1 = node.expression; _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure1(_this, node, _this._withoutSlash$2(t1.accept$1(_this), t1))); return _null; }, visitUseRule$1(node) { var values, _i, variable, t3, variableNodeWithSpan, configuration, _this = this, t1 = node.configuration, t2 = t1.length; if (t2 !== 0) { values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue); for (_i = 0; _i < t2; ++_i) { variable = t1[_i]; t3 = variable.expression; variableNodeWithSpan = _this._expressionNode$1(t3); values.$indexSet(0, variable.name, new A.ConfiguredValue(_this._withoutSlash$2(t3.accept$1(_this), variableNodeWithSpan), variable.span, variableNodeWithSpan)); } configuration = new A.ExplicitConfiguration(node, values, null); } else configuration = B.Configuration_Map_empty_null; _this._loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure(_this, node), configuration); _this._assertConfigurationIsEmpty$1(configuration); return null; }, visitWarnRule$1(node) { var _this = this, value = _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitWarnRule_closure(_this, node)), t1 = value instanceof A.SassString ? value._string$_text : _this._evaluate$_serialize$2(value, node.expression); _this._evaluate$_logger.warn$2$trace(0, t1, _this._evaluate$_stackTrace$1(node.span)); return null; }, visitWhileRule$1(node) { return this._environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure(this, node), true, node.hasDeclarations, type$.nullable_Value); }, visitBinaryOperationExpression$1(node) { var t1, _this = this; if (_this._assertInModule$2(_this.__stylesheet, "_stylesheet").plainCss) { t1 = node.operator; t1 = t1 !== B.BinaryOperator_2jN && t1 !== B.BinaryOperator_t8B; } else t1 = false; if (t1) throw A.wrapException(_this._evaluate$_exception$2("Operators aren't allowed in plain CSS.", node.get$operatorSpan())); return _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure(_this, node)); }, _slash$3(left, right, node) { var t1, _null = null, result = left.dividedBy$1(right), _1_0 = new A._Record_2(left, right), _1_1 = A._InitializedCell$(new A._EvaluateVisitor__slash_closure(_1_0)), _1_2 = A._InitializedCell$(new A._EvaluateVisitor__slash_closure0(_1_0)); if (_1_1._readFinal$0() instanceof A.SassNumber) { left = _1_1._readFinal$0(); if (_1_2._readFinal$0() instanceof A.SassNumber) { right = _1_2._readFinal$0(); t1 = node.allowsSlash && this._operandAllowsSlash$1(node.left) && this._operandAllowsSlash$1(node.right); } else { right = _null; t1 = false; } } else { right = _null; left = right; t1 = false; } if (t1) return type$.SassNumber._as(result).withSlash$2(left, right); if (_1_1._readFinal$0() instanceof A.SassNumber && _1_2._readFinal$0() instanceof A.SassNumber) { 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(node), B.Deprecation_xHK); return result; } return result; }, _operandAllowsSlash$1(node) { var t1, t2; if (node instanceof A.FunctionExpression) if (node.namespace == null) { t1 = node.originalName; if (B.Set_WfnXb.contains$1(0, A.stringReplaceAllUnchecked(t1, "_", "-").toLowerCase())) { t2 = this._environment; t1 = t2.getFunction$1(A.stringReplaceAllUnchecked(t1, "_", "-")) == null; } else t1 = false; } else t1 = false; else t1 = true; return t1; }, visitValueExpression$1(node) { return node.value; }, visitVariableExpression$1(node) { var result = this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure(this, node)); if (result != null) return result; throw A.wrapException(this._evaluate$_exception$2("Undefined variable.", node.span)); }, visitUnaryOperationExpression$1(node) { return this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitUnaryOperationExpression_closure(node, node.operand.accept$1(this))); }, visitBooleanExpression$1(node) { return node.value ? B.SassBoolean_true : B.SassBoolean_false; }, visitIfExpression$1(node) { var condition, t1, ifTrue, ifFalse, result, _this = this, _0_0 = _this._evaluateMacroArguments$1(node), positional = _0_0._0, named = _0_0._1; _this._verifyArguments$4(positional.length, named, $.$get$IfExpression_declaration(), node); condition = A.ListExtensions_elementAtOrNull(positional, 0); if (condition == null) { t1 = named.$index(0, "condition"); t1.toString; condition = t1; } ifTrue = A.ListExtensions_elementAtOrNull(positional, 1); if (ifTrue == null) { t1 = named.$index(0, "if-true"); t1.toString; ifTrue = t1; } ifFalse = A.ListExtensions_elementAtOrNull(positional, 2); if (ifFalse == null) { t1 = named.$index(0, "if-false"); t1.toString; ifFalse = t1; } result = condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse; return _this._withoutSlash$2(result.accept$1(_this), _this._expressionNode$1(result)); }, visitNullExpression$1(node) { return B.C__SassNull; }, visitNumberExpression$1(node) { return A.SassNumber_SassNumber(node.value, node.unit); }, visitParenthesizedExpression$1(node) { var _this = this; 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); }, visitColorExpression$1(node) { return node.value; }, visitListExpression$1(node) { var t1 = node.contents; 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); }, visitMapExpression$1(node) { var t2, t3, _i, t4, key, value, keyValue, valueValue, oldValueSpan, t1 = type$.Value, map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1), keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode); for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) { t4 = t2[_i]; key = t4._0; value = t4._1; keyValue = key.accept$1(this); valueValue = value.accept$1(this); if (map.containsKey$1(keyValue)) { t1 = keyNodes.$index(0, keyValue); oldValueSpan = t1 == null ? null : t1.get$span(t1); t1 = key.get$span(key); t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); if (oldValueSpan != null) t2.$indexSet(0, oldValueSpan, "first key"); throw A.wrapException(A.MultiSpanSassRuntimeException$("Duplicate key.", t1, "second key", t2, this._evaluate$_stackTrace$1(key.get$span(key)), null)); } map.$indexSet(0, keyValue, valueValue); keyNodes.$indexSet(0, keyValue, key); } return new A.SassMap(A.ConstantMap_ConstantMap$from(map, t1, t1)); }, visitFunctionExpression$1(node) { var t2, _0_0, t3, t4, oldInFunction, result, _this = this, _s11_ = "_stylesheet", t1 = {}, $function = _this._assertInModule$2(_this.__stylesheet, _s11_).plainCss ? null : _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure(_this, node)); t1.$function = $function; if ($function == null) { if (node.namespace != null) throw A.wrapException(_this._evaluate$_exception$2("Undefined function.", node.span)); t2 = node.originalName; _0_0 = A.stringReplaceAllUnchecked(t2, "_", "-").toLowerCase(); if ("min" === _0_0 || "max" === _0_0 || "round" === _0_0 || "abs" === _0_0) { t3 = node.$arguments; t4 = t3.named; t3 = t4.get$isEmpty(t4) && t3.rest == null && B.JSArray_methods.every$1(t3.positional, new A._EvaluateVisitor_visitFunctionExpression_closure0()); } else t3 = false; if (t3) return _this._visitCalculation$2$inLegacySassFunction(node, true); 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) return _this._visitCalculation$1(node); if (_this._assertInModule$2(_this.__stylesheet, _s11_).plainCss) $function = null; else { t3 = _this._builtInFunctions.$index(0, A.stringReplaceAllUnchecked(t2, "_", "-")); $function = t3; } t1.$function = $function == null ? new A.PlainCssCallable(t2) : $function; } oldInFunction = _this._inFunction; _this._inFunction = true; result = _this._addErrorSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure1(t1, _this, node)); _this._inFunction = oldInFunction; return result; }, _visitCalculation$2$inLegacySassFunction(node, inLegacySassFunction) { var $arguments, oldCallableNode, t1, _0_0, error, stackTrace, t4, _i, exception, _this = this, t2 = node.$arguments, t3 = t2.named; if (t3.get$isNotEmpty(t3)) throw A.wrapException(_this._evaluate$_exception$2(string$.Keywor, node.span)); else if (t2.rest != null) throw A.wrapException(_this._evaluate$_exception$2(string$.Rest_a, node.span)); _this._checkCalculationArguments$1(node); t3 = A._setArrayType([], type$.JSArray_Object); for (t2 = t2.positional, t4 = t2.length, _i = 0; _i < t4; ++_i) t3.push(_this._visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction)); $arguments = t3; if (_this._inSupportsDeclaration) return new A.SassCalculation(A.stringReplaceAllUnchecked(node.originalName, "_", "-"), A.List_List$unmodifiable($arguments, type$.Object)); oldCallableNode = _this._callableNode; _this._callableNode = node; try { t1 = null; _0_0 = A.stringReplaceAllUnchecked(node.originalName, "_", "-").toLowerCase(); $label0$0: { if ("calc" === _0_0) { t1 = A.SassCalculation_calc(J.$index$asx($arguments, 0)); break $label0$0; } if ("sqrt" === _0_0) { t1 = A.SassCalculation__singleArgument("sqrt", J.$index$asx($arguments, 0), A.number0__sqrt$closure(), true); break $label0$0; } if ("sin" === _0_0) { t1 = A.SassCalculation__singleArgument("sin", J.$index$asx($arguments, 0), A.number0__sin$closure(), false); break $label0$0; } if ("cos" === _0_0) { t1 = A.SassCalculation__singleArgument("cos", J.$index$asx($arguments, 0), A.number0__cos$closure(), false); break $label0$0; } if ("tan" === _0_0) { t1 = A.SassCalculation__singleArgument("tan", J.$index$asx($arguments, 0), A.number0__tan$closure(), false); break $label0$0; } if ("asin" === _0_0) { t1 = A.SassCalculation__singleArgument("asin", J.$index$asx($arguments, 0), A.number0__asin$closure(), true); break $label0$0; } if ("acos" === _0_0) { t1 = A.SassCalculation__singleArgument("acos", J.$index$asx($arguments, 0), A.number0__acos$closure(), true); break $label0$0; } if ("atan" === _0_0) { t1 = A.SassCalculation__singleArgument("atan", J.$index$asx($arguments, 0), A.number0__atan$closure(), true); break $label0$0; } if ("abs" === _0_0) { t1 = A.SassCalculation_abs(J.$index$asx($arguments, 0)); break $label0$0; } if ("exp" === _0_0) { t1 = A.SassCalculation_exp(J.$index$asx($arguments, 0)); break $label0$0; } if ("sign" === _0_0) { t1 = A.SassCalculation_sign(J.$index$asx($arguments, 0)); break $label0$0; } if ("min" === _0_0) { t1 = A.SassCalculation_min($arguments); break $label0$0; } if ("max" === _0_0) { t1 = A.SassCalculation_max($arguments); break $label0$0; } if ("hypot" === _0_0) { t1 = A.SassCalculation_hypot($arguments); break $label0$0; } if ("pow" === _0_0) { t1 = A.SassCalculation_pow(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("atan2" === _0_0) { t1 = A.SassCalculation_atan2(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("log" === _0_0) { t1 = A.SassCalculation_log(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("mod" === _0_0) { t1 = A.SassCalculation_mod(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("rem" === _0_0) { t1 = A.SassCalculation_rem(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("round" === _0_0) { t1 = A.SassCalculation_round(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2)); break $label0$0; } if ("clamp" === _0_0) { t1 = A.SassCalculation_clamp(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2)); break $label0$0; } t3 = A.UnsupportedError$('Unknown calculation name "' + node.get$name(node) + '".'); t1 = A.throwExpression(t3); } t1 = t1; return t1; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassScriptException) { error = t1; stackTrace = A.getTraceFromException(exception); if (B.JSString_methods.contains$1(error.message, "compatible")) _this._verifyCompatibleNumbers$2($arguments, t2); A.throwWithTrace(_this._evaluate$_exception$2(error.message, node.span), error, stackTrace); } else throw exception; } finally { _this._callableNode = oldCallableNode; } }, _visitCalculation$1(node) { return this._visitCalculation$2$inLegacySassFunction(node, false); }, _checkCalculationArguments$1(node) { var _0_0, check = new A._EvaluateVisitor__checkCalculationArguments_check(this, node); $label0$0: { _0_0 = A.stringReplaceAllUnchecked(node.originalName, "_", "-").toLowerCase(); 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) { check.call$1(1); break $label0$0; } if ("min" === _0_0 || "max" === _0_0 || "hypot" === _0_0) { check.call$0(); break $label0$0; } if ("pow" === _0_0 || "atan2" === _0_0 || "log" === _0_0 || "mod" === _0_0 || "rem" === _0_0) { check.call$1(2); break $label0$0; } if ("round" === _0_0 || "clamp" === _0_0) { check.call$1(3); break $label0$0; } throw A.wrapException(A.UnsupportedError$('Unknown calculation name "' + node.get$name(node) + '".')); } }, _verifyCompatibleNumbers$2(args, nodesWithSpans) { var i, t1, _0_0, arg, number1, j, number2; for (i = 0; t1 = args.length, i < t1; ++i) { _0_0 = args[i]; if (_0_0 instanceof A.SassNumber) { t1 = _0_0.get$hasComplexUnits(); arg = _0_0; } else { arg = null; t1 = false; } if (t1) throw A.wrapException(this._evaluate$_exception$2("Number " + A.S(arg) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i]))); } for (i = 0; i < t1 - 1; ++i) { number1 = args[i]; if (!(number1 instanceof A.SassNumber)) continue; for (j = i + 1; t1 = args.length, j < t1; ++j) { number2 = args[j]; if (!(number2 instanceof A.SassNumber)) continue; if (number1.hasPossiblyCompatibleUnits$1(number2)) continue; 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)); } } }, _visitCalculationExpression$2$inLegacySassFunction(node, inLegacySassFunction) { var inner, t1, result, t2, _0_0, _1_0, t3, _i, i, _this = this, _null = null, _box_0 = {}; if (node instanceof A.ParenthesizedExpression) { inner = node.expression; t1 = true; } else { inner = _null; t1 = false; } if (t1) { result = _this._visitCalculationExpression$2$inLegacySassFunction(inner, inLegacySassFunction); return result instanceof A.SassString ? new A.SassString("(" + result._string$_text + ")", false) : result; } if (node instanceof A.StringExpression && node.accept$1(new A._IsCalculationSafeVisitor())) { t1 = node.text; t2 = t1.get$asPlain(); _0_0 = t2 == null ? _null : t2.toLowerCase(); $label0$0: { if ("pi" === _0_0) { t1 = A.SassNumber_SassNumber(3.141592653589793, _null); break $label0$0; } if ("e" === _0_0) { t1 = A.SassNumber_SassNumber(2.718281828459045, _null); break $label0$0; } if ("infinity" === _0_0) { t1 = A.SassNumber_SassNumber(1 / 0, _null); break $label0$0; } if ("-infinity" === _0_0) { t1 = A.SassNumber_SassNumber(-1 / 0, _null); break $label0$0; } if ("nan" === _0_0) { t1 = A.SassNumber_SassNumber(0 / 0, _null); break $label0$0; } t1 = new A.SassString(_this._performInterpolation$1(t1), false); break $label0$0; } return t1; } _box_0.right = _box_0.left = _box_0.operator = null; if (node instanceof A.BinaryOperationExpression) { _box_0.operator = node.operator; _box_0.left = node.left; _box_0.right = node.right; t1 = true; } else t1 = false; if (t1) { _this._checkWhitespaceAroundCalculationOperator$1(node); return _this._addExceptionSpan$2(node, new A._EvaluateVisitor__visitCalculationExpression_closure(_box_0, _this, node, inLegacySassFunction)); } if (node instanceof A.NumberExpression || node instanceof A.VariableExpression || node instanceof A.FunctionExpression || node instanceof A.IfExpression) { _1_0 = node.accept$1(_this); $label1$1: { if (_1_0 instanceof A.SassNumber) { result = _1_0; t1 = true; } else { result = _null; t1 = false; } if (t1) { t1 = result; break $label1$1; } if (_1_0 instanceof A.SassCalculation) { result = _1_0; t1 = true; } else { result = _null; t1 = false; } if (t1) { t1 = result; break $label1$1; } if (_1_0 instanceof A.SassString) { t1 = !_1_0._hasQuotes; result = _1_0; } else { result = _null; t1 = false; } if (t1) { t1 = result; break $label1$1; } t1 = A.throwExpression(_this._evaluate$_exception$2("Value " + _1_0.toString$0(0) + " can't be used in a calculation.", node.get$span(node))); } return t1; } if (node instanceof A.ListExpression && !node.hasBrackets && B.ListSeparator_EVt === node.separator && node.contents.length >= 2) { t1 = A._setArrayType([], type$.JSArray_Object); for (t2 = node.contents, t3 = t2.length, _i = 0; _i < t3; ++_i) t1.push(_this._visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction)); _this._checkAdjacentCalculationValues$2(t1, node); for (i = 0; i < t1.length; ++i) { t3 = t1[i]; if (t3 instanceof A.CalculationOperation && t2[i] instanceof A.ParenthesizedExpression) t1[i] = new A.SassString("(" + A.S(t3) + ")", false); } return new A.SassString(B.JSArray_methods.join$1(t1, " "), false); } throw A.wrapException(_this._evaluate$_exception$2(string$.This_e, node.get$span(node))); }, _checkWhitespaceAroundCalculationOperator$1(node) { var t2, t3, t4, textBetweenOperands, first, last, t1 = node.operator; if (t1 !== B.BinaryOperator_anB && t1 !== B.BinaryOperator_olz) return; t1 = node.left; t2 = t1.get$span(t1); t2 = t2.get$file(t2); t3 = node.right; t4 = t3.get$span(t3); if (t2 !== t4.get$file(t4)) return; t2 = t1.get$span(t1); t2 = t2.get$end(t2); t4 = t3.get$span(t3); if (t2.offset >= t4.get$start(t4).offset) return; t2 = t1.get$span(t1); t2 = t2.get$file(t2); t1 = t1.get$span(t1); t1 = t1.get$end(t1); t3 = t3.get$span(t3); textBetweenOperands = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, t1.offset, t3.get$start(t3).offset), 0, null); first = textBetweenOperands.charCodeAt(0); last = textBetweenOperands.charCodeAt(textBetweenOperands.length - 1); if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47) t1 = !(last === 32 || last === 9 || last === 10 || last === 13 || last === 12 || last === 47); else t1 = true; if (t1) throw A.wrapException(this._evaluate$_exception$2(string$.x22x2b__an, node.get$operatorSpan())); }, _binaryOperatorToCalculationOperator$2(operator, node) { var t1; $label0$0: { if (B.BinaryOperator_anB === operator) { t1 = B.CalculationOperator_IyK; break $label0$0; } if (B.BinaryOperator_olz === operator) { t1 = B.CalculationOperator_2bx; break $label0$0; } if (B.BinaryOperator_qN2 === operator) { t1 = B.CalculationOperator_jFr; break $label0$0; } if (B.BinaryOperator_t8B === operator) { t1 = B.CalculationOperator_OvN; break $label0$0; } t1 = A.throwExpression(this._evaluate$_exception$2(string$.This_o, node.get$operatorSpan())); } return t1; }, _checkAdjacentCalculationValues$2(elements, node) { var t1, i, t2, previous, current, previousNode, currentNode, _0_2; for (t1 = elements.length, i = 1; i < t1; ++i) { t2 = i - 1; previous = elements[t2]; current = elements[i]; if (previous instanceof A.SassString || current instanceof A.SassString) continue; t1 = node.contents; previousNode = t1[t2]; currentNode = t1[i]; _0_2 = A._InitializedCell$(new A._EvaluateVisitor__checkAdjacentCalculationValues_closure(currentNode)); if (currentNode instanceof A.UnaryOperationExpression) t1 = B.UnaryOperator_TLI === _0_2._readFinal$0() || B.UnaryOperator_gg4 === _0_2._readFinal$0(); else t1 = false; if (!t1) t1 = currentNode instanceof A.NumberExpression && currentNode.value < 0; else t1 = true; if (t1) throw A.wrapException(this._evaluate$_exception$2(string$.x22x2b__an, A.FileSpanExtension_subspan(currentNode.get$span(currentNode), 0, 1))); else throw A.wrapException(this._evaluate$_exception$2("Missing math operator.", previousNode.get$span(previousNode).expand$1(0, currentNode.get$span(currentNode)))); } }, visitInterpolatedFunctionExpression$1(node) { var result, _this = this, t1 = _this._performInterpolation$1(node.name), oldInFunction = _this._inFunction; _this._inFunction = true; result = _this._addErrorSpan$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure(_this, node, new A.PlainCssCallable(t1))); _this._inFunction = oldInFunction; return result; }, _runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) { var oldCallable, result, _this = this, evaluated = _this._evaluateArguments$1($arguments), $name = callable.declaration.name; if ($name !== "@content") $name += "()"; oldCallable = _this._currentCallable; _this._currentCallable = callable; result = _this._withStackFrame$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure(_this, callable, evaluated, nodeWithSpan, run, $V)); _this._currentCallable = oldCallable; return result; }, _runFunctionCallable$3($arguments, callable, nodeWithSpan) { var buffer, first, argument, restArg, rest, error, t1, t2, _i, t3, exception, _this = this; if (callable instanceof A.BuiltInCallable) return _this._withoutSlash$2(_this._runBuiltInCallable$3($arguments, callable, nodeWithSpan), nodeWithSpan); else if (type$.UserDefinedCallable_Environment._is(callable)) return _this._runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure(_this, callable), type$.Value); else if (callable instanceof A.PlainCssCallable) { t1 = $arguments.named; if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null) throw A.wrapException(_this._evaluate$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan))); buffer = new A.StringBuffer(callable.name + "("); try { first = true; for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) { argument = t1[_i]; if (first) first = false; else buffer._contents += ", "; t3 = argument; buffer._contents += _this._evaluate$_serialize$3$quote(t3.accept$1(_this), t3, true); } restArg = $arguments.rest; if (restArg != null) { rest = restArg.accept$1(_this); if (!first) buffer._contents += ", "; buffer._contents += _this._evaluate$_serialize$2(rest, restArg); } } catch (exception) { t1 = A.unwrapException(exception); if (type$.SassRuntimeException._is(t1)) { error = t1; if (!B.JSString_methods.endsWith$1(error._span_exception$_message, "isn't a valid CSS value.")) throw exception; 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)); } else throw exception; } buffer._contents += A.Primitives_stringFromCharCode(41); t1 = buffer._contents; return new A.SassString(t1.charCodeAt(0) == 0 ? t1 : t1, false); } else throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$(callable).toString$0(0) + ".", null)); }, _runBuiltInCallable$3($arguments, callable, nodeWithSpan) { var result, error, stackTrace, message, namedSet, _0_0, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, message0, _this = this, _box_0 = {}, evaluated = _this._evaluateArguments$1($arguments), oldCallableNode = _this._callableNode; _this._callableNode = nodeWithSpan; namedSet = new A.MapKeySet(evaluated._values[0], type$.MapKeySet_String); _box_0.callback = _box_0.overload = null; _0_0 = callable.callbackFor$2(evaluated._values[2].length, namedSet); _box_0.overload = _0_0._0; _box_0.callback = _0_0._1; _this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure(_box_0, evaluated, namedSet)); declaredArguments = _box_0.overload.$arguments; for (i = evaluated._values[2].length, t1 = declaredArguments.length; i < t1; ++i) { argument = declaredArguments[i]; t2 = evaluated._values[2]; t3 = evaluated._values[0].remove$1(0, argument.name); if (t3 == null) { t3 = argument.defaultValue; t3 = _this._withoutSlash$2(t3.accept$1(_this), t3); } t2.push(t3); } if (_box_0.overload.restArgument != null) { if (evaluated._values[2].length > t1) { rest = B.JSArray_methods.sublist$1(evaluated._values[2], t1); B.JSArray_methods.removeRange$2(evaluated._values[2], t1, evaluated._values[2].length); } else rest = B.List_empty8; t1 = evaluated._values[0]; argumentList = A.SassArgumentList$(rest, t1, evaluated._values[4] === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_rXA : evaluated._values[4]); evaluated._values[2].push(argumentList); } else argumentList = null; result = null; try { result = _this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure0(_box_0, evaluated)); } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException) throw exception; else { error = t1; stackTrace = A.getTraceFromException(exception); message = null; try { message = A._asString(J.get$message$x(error)); } catch (exception) { message0 = J.toString$0$(error); message = message0; } A.throwWithTrace(_this._evaluate$_exception$2(message, nodeWithSpan.get$span(nodeWithSpan)), error, stackTrace); } } _this._callableNode = oldCallableNode; if (argumentList == null) return result; if (evaluated._values[0].__js_helper$_length === 0) return result; if (argumentList._wereKeywordsAccessed) return result; t1 = evaluated._values[0]; t1 = t1.get$keys(t1); t1 = A.pluralize("argument", t1.get$length(t1), null); t2 = evaluated._values[0]; throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + t1 + " named " + A.toSentence(t2.get$keys(t2).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)); }, _evaluateArguments$1($arguments) { var t1, t2, _i, expression, nodeForSpan, named, namedNodes, t3, t4, $name, value, restArgs, rest, restNodeForSpan, t5, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, _this = this, positional = A._setArrayType([], type$.JSArray_Value), positionalNodes = A._setArrayType([], type$.JSArray_AstNode); for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) { expression = t1[_i]; nodeForSpan = _this._expressionNode$1(expression); positional.push(_this._withoutSlash$2(expression.accept$1(_this), nodeForSpan)); positionalNodes.push(nodeForSpan); } t1 = type$.String; named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value); t2 = type$.AstNode; namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t3 = A.MapExtensions_get_pairs($arguments.named, t1, type$.Expression), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; nodeForSpan = _this._expressionNode$1(value); named.$indexSet(0, $name, _this._withoutSlash$2(value.accept$1(_this), nodeForSpan)); namedNodes.$indexSet(0, $name, nodeForSpan); } restArgs = $arguments.rest; if (restArgs == null) return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, B.ListSeparator_undecided_null_undecided]); rest = restArgs.accept$1(_this); restNodeForSpan = _this._expressionNode$1(restArgs); if (rest instanceof A.SassMap) { _this._addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure()); t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t4 = rest._map$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString; t4.moveNext$0();) t3.$indexSet(0, t5._as(t4.get$current(t4))._string$_text, restNodeForSpan); namedNodes.addAll$1(0, t3); separator = B.ListSeparator_undecided_null_undecided; } else if (rest instanceof A.SassList) { t3 = rest._list$_contents; 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>"))); B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2)); separator = rest._separator; if (rest instanceof A.SassArgumentList) { rest._wereKeywordsAccessed = true; rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure1(_this, named, restNodeForSpan, namedNodes)); } } else { positional.push(_this._withoutSlash$2(rest, restNodeForSpan)); positionalNodes.push(restNodeForSpan); separator = B.ListSeparator_undecided_null_undecided; } keywordRestArgs = $arguments.keywordRest; if (keywordRestArgs == null) return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]); keywordRest = keywordRestArgs.accept$1(_this); keywordRestNodeForSpan = _this._expressionNode$1(keywordRestArgs); if (keywordRest instanceof A.SassMap) { _this._addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure2()); t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t2 = keywordRest._map$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString; t2.moveNext$0();) t1.$indexSet(0, t3._as(t2.get$current(t2))._string$_text, keywordRestNodeForSpan); namedNodes.addAll$1(0, t1); return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]); } else throw A.wrapException(_this._evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs))); }, _evaluateMacroArguments$1(invocation) { var t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, _this = this, t1 = invocation.$arguments, restArgs_ = t1.rest; if (restArgs_ == null) return new A._Record_2(t1.positional, t1.named); t2 = t1.positional; positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2)); named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression); rest = restArgs_.accept$1(_this); restNodeForSpan = _this._expressionNode$1(restArgs_); if (rest instanceof A.SassMap) _this._addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure(restArgs_)); else if (rest instanceof A.SassList) { t2 = rest._list$_contents; 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>"))); if (rest instanceof A.SassArgumentList) { rest._wereKeywordsAccessed = true; rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure1(_this, named, restNodeForSpan, restArgs_)); } } else positional.push(new A.ValueExpression(_this._withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_))); keywordRestArgs_ = t1.keywordRest; if (keywordRestArgs_ == null) return new A._Record_2(positional, named); keywordRest = keywordRestArgs_.accept$1(_this); keywordRestNodeForSpan = _this._expressionNode$1(keywordRestArgs_); if (keywordRest instanceof A.SassMap) { _this._addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure2(_this, keywordRestNodeForSpan, keywordRestArgs_)); return new A._Record_2(positional, named); } else throw A.wrapException(_this._evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_))); }, _addRestMap$1$4(values, map, nodeWithSpan, convert) { map._map$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure(this, values, convert, this._expressionNode$1(nodeWithSpan), map, nodeWithSpan)); }, _addRestMap$4(values, map, nodeWithSpan, convert) { return this._addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic); }, _verifyArguments$4(positional, named, $arguments, nodeWithSpan) { return this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure($arguments, positional, named)); }, visitSelectorExpression$1(node) { var t1 = this._styleRuleIgnoringAtRoot; t1 = t1 == null ? null : t1.originalSelector.get$asSassList(); return t1 == null ? B.C__SassNull : t1; }, visitStringExpression$1(node) { var t1, t2, t3, t4, _i, value, t5, _0_0, text, _this = this, oldInSupportsDeclaration = _this._inSupportsDeclaration; _this._inSupportsDeclaration = false; t1 = A._setArrayType([], type$.JSArray_String); for (t2 = node.text.contents, t3 = t2.length, t4 = type$.Expression, _i = 0; _i < t3; ++_i) { value = t2[_i]; $label0$0: { if (typeof value == "string") { t5 = value; break $label0$0; } if (t4._is(value)) { _0_0 = value.accept$1(_this); $label1$1: { if (_0_0 instanceof A.SassString) { text = _0_0._string$_text; t5 = true; } else { text = null; t5 = false; } if (t5) { t5 = text; break $label1$1; } t5 = _this._evaluate$_serialize$3$quote(_0_0, value, false); break $label1$1; } break $label0$0; } t5 = A.throwExpression(A.UnsupportedError$("Unknown interpolation value " + A.S(value))); } t1.push(t5); } t1 = B.JSArray_methods.join$0(t1); _this._inSupportsDeclaration = oldInSupportsDeclaration; return new A.SassString(t1, node.hasQuotes); }, visitSupportsExpression$1(expression) { return new A.SassString(this._visitSupportsCondition$1(expression.condition), false); }, visitCssAtRule$1(node) { var wasInKeyframes, wasInUnknownAtRule, t1, _this = this; if (_this._declarationName != null) throw A.wrapException(_this._evaluate$_exception$2(string$.At_rul, node.span)); if (node.isChildless) { _this._assertInModule$2(_this.__parent, "__parent").addChild$1(A.ModifiableCssAtRule$(node.name, node.span, true, node.value)); return; } wasInKeyframes = _this._inKeyframes; wasInUnknownAtRule = _this._inUnknownAtRule; t1 = node.name; if (A.unvendor(t1.value) === "keyframes") _this._inKeyframes = true; else _this._inUnknownAtRule = true; _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); _this._inUnknownAtRule = wasInUnknownAtRule; _this._inKeyframes = wasInKeyframes; }, visitCssComment$1(node) { var _this = this, _s8_ = "__parent", _s13_ = "_endOfImports"; 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)) _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1; _this._assertInModule$2(_this.__parent, _s8_).addChild$1(new A.ModifiableCssComment(node.text, node.span)); }, visitCssDeclaration$1(node) { this._assertInModule$2(this.__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap)); }, visitCssImport$1(node) { var t1, _this = this, _s8_ = "__parent", _s5_ = "_root", _s13_ = "_endOfImports", modifiableNode = new A.ModifiableCssImport(node.url, node.modifiers, node.span); if (_this._assertInModule$2(_this.__parent, _s8_) !== _this._assertInModule$2(_this.__root, _s5_)) _this._assertInModule$2(_this.__parent, _s8_).addChild$1(modifiableNode); else if (_this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, _s5_).children._collection$_source)) { _this._assertInModule$2(_this.__root, _s5_).addChild$1(modifiableNode); _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1; } else { t1 = _this._outOfOrderImports; (t1 == null ? _this._outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t1).push(modifiableNode); } }, visitCssKeyframeBlock$1(node) { 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); }, visitCssMediaRule$1(node) { var mergedQueries, t1, mergedSources, t2, t3, _this = this; if (_this._declarationName != null) throw A.wrapException(_this._evaluate$_exception$2(string$.Media_, node.span)); mergedQueries = A.NullableExtension_andThen(_this._mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure(_this, node)); t1 = mergedQueries == null; if (!t1 && J.get$isEmpty$asx(mergedQueries)) return; if (t1) mergedSources = B.Set_empty1; else { t2 = _this._mediaQuerySources; t2.toString; t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery); t3 = _this._mediaQueries; t3.toString; t2.addAll$1(0, t3); t2.addAll$1(0, node.queries); mergedSources = t2; } t1 = t1 ? node.queries : mergedQueries; _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); }, visitCssStyleRule$1(node) { var t1, styleRule, t2, t3, t4, originalSelector, rule, oldAtRootExcludingStyleRule, _0_0, _0_1, lastChild, _this = this; if (_this._declarationName != null) throw A.wrapException(_this._evaluate$_exception$2(string$.Style_, node.span)); t1 = _this._atRootExcludingStyleRule; styleRule = t1 ? null : _this._styleRuleIgnoringAtRoot; t2 = node._style_rule$_selector._box$_inner.value; t3 = styleRule == null; t4 = t3 ? null : styleRule.originalSelector; originalSelector = t2.resolveParentSelectors$2$implicitParent(t4, !t1); rule = A.ModifiableCssStyleRule$(_this._assertInModule$2(_this.__extensionStore, "_extensionStore").addSelector$2(originalSelector, _this._mediaQueries), node.span, originalSelector); oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule; _this._atRootExcludingStyleRule = false; _this._withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure(_this, rule, node), false, new A._EvaluateVisitor_visitCssStyleRule_closure0(), type$.ModifiableCssStyleRule, type$.Null); _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule; _0_0 = _this._assertInModule$2(_this.__parent, "__parent").children; _0_1 = A._InitializedCell$(new A._EvaluateVisitor_visitCssStyleRule_closure1(_0_0)); if (_0_1._readFinal$0() >= 1) { lastChild = J.elementAt$1$ax(_0_0._collection$_source, _0_1._readFinal$0() - 1); t1 = t3; } else { lastChild = null; t1 = false; } if (t1) lastChild.isGroupEnd = true; }, visitCssStylesheet$1(node) { var t1; for (t1 = J.get$iterator$ax(node.get$children(node)); t1.moveNext$0();) t1.get$current(t1).accept$1(this); }, visitCssSupportsRule$1(node) { var _this = this; if (_this._declarationName != null) throw A.wrapException(_this._evaluate$_exception$2(string$.Suppor, node.span)); _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); }, _handleReturn$1$2(list, callback) { var t1, _i, _0_0, result, t2; for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i) { _0_0 = callback.call$1(list[_i]); if (_0_0 != null) { result = _0_0; t2 = true; } else { result = null; t2 = false; } if (t2) return result; } return null; }, _handleReturn$2(list, callback) { return this._handleReturn$1$2(list, callback, type$.dynamic); }, _withEnvironment$1$2(environment, callback) { var result, oldEnvironment = this._environment; this._environment = environment; result = callback.call$0(); this._environment = oldEnvironment; return result; }, _withEnvironment$2(environment, callback) { return this._withEnvironment$1$2(environment, callback, type$.dynamic); }, _interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) { var result = this._performInterpolation$2$warnForColor(interpolation, warnForColor), t1 = trim ? A.trimAscii(result, true) : result; return new A.CssValue(t1, interpolation.span, type$.CssValue_String); }, _interpolationToValue$1(interpolation) { return this._interpolationToValue$3$trim$warnForColor(interpolation, false, false); }, _interpolationToValue$2$warnForColor(interpolation, warnForColor) { return this._interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor); }, _performInterpolation$2$warnForColor(interpolation, warnForColor) { var _0_0 = this._performInterpolationHelper$3$sourceMap$warnForColor(interpolation, false, warnForColor); return _0_0._0; }, _performInterpolation$1(interpolation) { return this._performInterpolation$2$warnForColor(interpolation, false); }, _performInterpolationWithMap$2$warnForColor(interpolation, warnForColor) { var _0_0 = this._performInterpolationHelper$3$sourceMap$warnForColor(interpolation, true, true), map = _0_0._1; map.toString; return new A._Record_2(_0_0._0, map); }, _performInterpolationHelper$3$sourceMap$warnForColor(interpolation, sourceMap, warnForColor) { var t1, t2, t3, t4, t5, t6, t7, first, _i, t8, value, result, t9, result0, _this = this, _null = null, targetLocations = sourceMap ? A._setArrayType([], type$.JSArray_SourceLocation) : _null, oldInSupportsDeclaration = _this._inSupportsDeclaration; _this._inSupportsDeclaration = false; for (t1 = interpolation.contents, t2 = t1.length, t3 = type$.Expression, t4 = targetLocations == null, t5 = type$.JSArray_Object, t6 = interpolation.span, t7 = type$.Object, first = true, _i = 0, t8 = ""; _i < t2; ++_i, first = false) { value = t1[_i]; if (!first) if (!t4) targetLocations.push(A.SourceLocation$(t8.length, _null, _null, _null)); if (typeof value == "string") { t8 += value; continue; } t3._as(value); result = value.accept$1(_this); if (warnForColor && $.$get$namesByColor().containsKey$1(result)) { t9 = A._setArrayType([""], t5); result0 = A.List_List$from(t9, false, t7); result0.fixed$length = Array; result0.immutable$list = Array; result0 = new A.Interpolation(result0, t6); result0.Interpolation$2(t9, t6); t9 = $.$get$namesByColor(); _this._warn$2(string$.You_pr + A.S(t9.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whicw + A.S(t9.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression(B.BinaryOperator_anB, new A.StringExpression(result0, true), value, false).toString$0(0) + "'.", value.get$span(value)); } t8 += _this._evaluate$_serialize$3$quote(result, value, false); } _this._inSupportsDeclaration = oldInSupportsDeclaration; return new A._Record_2(t8.charCodeAt(0) == 0 ? t8 : t8, A.NullableExtension_andThen(targetLocations, new A._EvaluateVisitor__performInterpolationHelper_closure(interpolation))); }, _evaluate$_serialize$3$quote(value, nodeWithSpan, quote) { return this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure(value, quote)); }, _evaluate$_serialize$2(value, nodeWithSpan) { return this._evaluate$_serialize$3$quote(value, nodeWithSpan, true); }, _expressionNode$1(expression) { var t1; if (expression instanceof A.VariableExpression) { t1 = this._addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure(this, expression)); return t1 == null ? expression : t1; } else return expression; }, _withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) { var t1, result, _this = this; _this._addChild$2$through(node, through); t1 = _this._assertInModule$2(_this.__parent, "__parent"); _this.__parent = node; result = _this._environment.scope$1$2$when(callback, scopeWhen, $T); _this.__parent = t1; return result; }, _withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) { return this._withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T); }, _withParent$2$2(node, callback, $S, $T) { return this._withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T); }, _addChild$2$through(node, through) { var _0_0, grandparent, t1, $parent = this._assertInModule$2(this.__parent, "__parent"); if (through != null) { for (; through.call$1($parent); $parent = grandparent) { _0_0 = $parent._parent; if (_0_0 != null) { grandparent = _0_0; t1 = true; } else { grandparent = null; t1 = false; } if (!t1) throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null)); } if ($parent.get$hasFollowingSibling()) { grandparent = $parent._parent; t1 = grandparent.children; if ($parent.equalsIgnoringChildren$1(t1.get$last(t1))) $parent = type$.ModifiableCssParentNode._as(t1.get$last(t1)); else { $parent = $parent.copyWithoutChildren$0(); grandparent.addChild$1($parent); } } } $parent.addChild$1(node); }, _addChild$1(node) { return this._addChild$2$through(node, null); }, _withStyleRule$1$2(rule, callback) { var result, oldRule = this._styleRuleIgnoringAtRoot; this._styleRuleIgnoringAtRoot = rule; result = callback.call$0(); this._styleRuleIgnoringAtRoot = oldRule; return result; }, _withStyleRule$2(rule, callback) { return this._withStyleRule$1$2(rule, callback, type$.dynamic); }, _withMediaQueries$1$3(queries, sources, callback) { var result, _this = this, oldMediaQueries = _this._mediaQueries, oldSources = _this._mediaQuerySources; _this._mediaQueries = queries; _this._mediaQuerySources = sources; result = callback.call$0(); _this._mediaQueries = oldMediaQueries; _this._mediaQuerySources = oldSources; return result; }, _withMediaQueries$3(queries, sources, callback) { return this._withMediaQueries$1$3(queries, sources, callback, type$.dynamic); }, _withStackFrame$1$3(member, nodeWithSpan, callback) { var oldMember, result, _this = this, t1 = _this._stack; t1.push(new A._Record_2(_this._member, nodeWithSpan)); oldMember = _this._member; _this._member = member; result = callback.call$0(); _this._member = oldMember; t1.pop(); return result; }, _withStackFrame$3(member, nodeWithSpan, callback) { return this._withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic); }, _withoutSlash$2(value, nodeForSpan) { if (value instanceof A.SassNumber && value.asSlash != null && true) 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_xHK); return value.withoutSlash$0(); }, _stackFrame$2(member, span) { return A.frameForSpan(span, member, A.NullableExtension_andThen(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure(this))); }, _evaluate$_stackTrace$1(span) { var t2, t3, _i, t4, nodeWithSpan, _this = this, t1 = A._setArrayType([], type$.JSArray_Frame); for (t2 = _this._stack, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) { t4 = t2[_i]; nodeWithSpan = t4._1; t1.push(_this._stackFrame$2(t4._0, nodeWithSpan.get$span(nodeWithSpan))); } if (span != null) t1.push(_this._stackFrame$2(_this._member, span)); return A.Trace$(new A.ReversedListIterable(t1, type$.ReversedListIterable_Frame), null); }, _evaluate$_stackTrace$0() { return this._evaluate$_stackTrace$1(null); }, _warn$3(message, span, deprecation) { var t1, trace, _this = this; if (_this._quietDeps) if (!_this._inDependency) { t1 = _this._currentCallable; t1 = t1 == null ? null : t1.inDependency; t1 = t1 === true; } else t1 = true; else t1 = false; if (t1) return; if (!_this._warningsEmitted.add$1(0, new A._Record_2(message, span))) return; trace = _this._evaluate$_stackTrace$1(span); t1 = _this._evaluate$_logger; if (deprecation == null) t1.warn$3$span$trace(0, message, span, trace); else A.WarnForDeprecation_warnForDeprecation(t1, deprecation, message, span, trace); }, _warn$2(message, span) { return this._warn$3(message, span, null); }, _evaluate$_exception$2(message, span) { var t1, t2; if (span == null) { t1 = B.JSArray_methods.get$last(this._stack)._1; t1 = t1.get$span(t1); } else t1 = span; t2 = this._evaluate$_stackTrace$1(span); return new A.SassRuntimeException(t2, B.Set_empty, message, t1); }, _evaluate$_exception$1(message) { return this._evaluate$_exception$2(message, null); }, _multiSpanException$3(message, primaryLabel, secondaryLabels) { var t1 = B.JSArray_methods.get$last(this._stack)._1; return A.MultiSpanSassRuntimeException$(message, t1.get$span(t1), primaryLabel, secondaryLabels, this._evaluate$_stackTrace$0(), null); }, _addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame) { var error, stackTrace, t1, exception; try { t1 = callback.call$0(); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassScriptException) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan)); A.throwWithTrace(t1.withTrace$1(this._evaluate$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace); } else throw exception; } }, _addExceptionSpan$2(nodeWithSpan, callback) { return this._addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, true, type$.dynamic); }, _addExceptionSpan$3$addStackFrame(nodeWithSpan, callback, addStackFrame) { return this._addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame, type$.dynamic); }, _addExceptionTrace$1$1(callback) { var error, stackTrace, t1, exception, t2; try { t1 = callback.call$0(); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (type$.SassRuntimeException._is(t1)) throw exception; else if (t1 instanceof A.SassException) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = error; t2 = J.getInterceptor$z(t1); A.throwWithTrace(error.withTrace$1(this._evaluate$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t2, t1))), error, stackTrace); } else throw exception; } }, _addExceptionTrace$1(callback) { return this._addExceptionTrace$1$1(callback, type$.dynamic); }, _addErrorSpan$1$2(nodeWithSpan, callback) { var error, stackTrace, t1, exception, t2, t3; try { t1 = callback.call$0(); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (type$.SassRuntimeException._is(t1)) { error = t1; stackTrace = A.getTraceFromException(exception); if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error")) throw exception; t1 = error._span_exception$_message; t2 = nodeWithSpan.get$span(nodeWithSpan); t3 = this._evaluate$_stackTrace$0(); A.throwWithTrace(new A.SassRuntimeException(t3, B.Set_empty, t1, t2), error, stackTrace); } else throw exception; } }, _addErrorSpan$2(nodeWithSpan, callback) { return this._addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic); } }; A._EvaluateVisitor_closure.prototype = { call$1($arguments) { var module, t2, t1 = J.getInterceptor$asx($arguments), variable = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this._environment; t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-"); return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string$_text) ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._EvaluateVisitor_closure0.prototype = { call$1($arguments) { var variable = J.$index$asx($arguments, 0).assertString$1("name"), t1 = this.$this._environment; return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string$_text, "_", "-")) != null ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._EvaluateVisitor_closure1.prototype = { call$1($arguments) { var module, t2, t3, t4, t1 = J.getInterceptor$asx($arguments), variable = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this; t2 = t1._environment; t3 = variable._string$_text; t4 = A.stringReplaceAllUnchecked(t3, "_", "-"); return t2.getFunction$2$namespace(t4, module == null ? null : module._string$_text) != null || t1._builtInFunctions.containsKey$1(t3) ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._EvaluateVisitor_closure2.prototype = { call$1($arguments) { var module, t2, t1 = J.getInterceptor$asx($arguments), variable = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this._environment; t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-"); return t1.getMixin$2$namespace(t2, module == null ? null : module._string$_text) != null ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._EvaluateVisitor_closure3.prototype = { call$1($arguments) { var t1 = this.$this._environment; if (!t1._inMixin) throw A.wrapException(A.SassScriptException$(string$.conten, null)); return t1._content != null ? B.SassBoolean_true : B.SassBoolean_false; }, $signature: 23 }; A._EvaluateVisitor_closure4.prototype = { call$1($arguments) { var t2, t3, t4, $name, value, t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text, module = this.$this._environment._environment$_modules.$index(0, t1); if (module == null) throw A.wrapException('There is no module with namespace "' + t1 + '".'); t1 = type$.Value; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs(module.get$variables(), type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString($name, true), value); } return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 40 }; A._EvaluateVisitor_closure5.prototype = { call$1($arguments) { var t2, t3, t4, $name, value, t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text, module = this.$this._environment._environment$_modules.$index(0, t1); if (module == null) throw A.wrapException('There is no module with namespace "' + t1 + '".'); t1 = type$.Value; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs(module.get$functions(module), type$.String, type$.Callable), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString($name, true), new A.SassFunction(value)); } return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 40 }; A._EvaluateVisitor_closure6.prototype = { call$1($arguments) { var t2, t3, t4, $name, value, t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text, module = this.$this._environment._environment$_modules.$index(0, t1); if (module == null) throw A.wrapException('There is no module with namespace "' + t1 + '".'); t1 = type$.Value; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs(module.get$mixins(), type$.String, type$.Callable), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString($name, true), new A.SassMixin(value)); } return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 40 }; A._EvaluateVisitor_closure7.prototype = { call$1($arguments) { var module, t2, callable, t1 = J.getInterceptor$asx($arguments), $name = t1.$index($arguments, 0).assertString$1("name"), css = t1.$index($arguments, 1).get$isTruthy(); t1 = t1.$index($arguments, 2).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); if (css) { if (module != null) throw A.wrapException(string$.x24css_a); return new A.SassFunction(new A.PlainCssCallable($name._string$_text)); } t1 = this.$this; t2 = t1._callableNode; t2.toString; callable = t1._addExceptionSpan$2(t2, new A._EvaluateVisitor__closure2(t1, $name, module)); if (callable == null) throw A.wrapException("Function not found: " + $name.toString$0(0)); return new A.SassFunction(callable); }, $signature: 222 }; A._EvaluateVisitor__closure2.prototype = { call$0() { var local, normalizedName = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"), t1 = this.module, namespace = t1 == null ? null : t1._string$_text; t1 = this.$this; local = t1._environment.getFunction$2$namespace(normalizedName, namespace); if (local != null || namespace != null) return local; return t1._builtInFunctions.$index(0, normalizedName); }, $signature: 89 }; A._EvaluateVisitor_closure8.prototype = { call$1($arguments) { var module, t2, callable, t1 = J.getInterceptor$asx($arguments), $name = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this; t2 = t1._callableNode; t2.toString; callable = t1._addExceptionSpan$2(t2, new A._EvaluateVisitor__closure1(t1, $name, module)); if (callable == null) throw A.wrapException("Mixin not found: " + $name.toString$0(0)); return new A.SassMixin(callable); }, $signature: 224 }; A._EvaluateVisitor__closure1.prototype = { call$0() { var t1 = this.$this._environment, t2 = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"), t3 = this.module; return t1.getMixin$2$namespace(t2, t3 == null ? null : t3._string$_text); }, $signature: 89 }; A._EvaluateVisitor_closure9.prototype = { call$1($arguments) { var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, $name, value, invocation, callableNode, callable, _null = null, t1 = J.getInterceptor$asx($arguments), $function = t1.$index($arguments, 0), args = type$.SassArgumentList._as(t1.$index($arguments, 1)); t1 = this.$this; t2 = t1._callableNode; t2.toString; t3 = A._setArrayType([], type$.JSArray_Expression); t4 = type$.String; t5 = type$.Expression; t6 = t2.get$span(t2); t7 = t2.get$span(t2); args._wereKeywordsAccessed = true; t8 = args._keywords; if (t8.get$isEmpty(t8)) t2 = _null; else { t9 = type$.Value; t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9); for (args._wereKeywordsAccessed = true, t8 = A.MapExtensions_get_pairs(t8, t4, t9), t8 = t8.get$iterator(t8); t8.moveNext$0();) { t11 = t8.get$current(t8); $name = t11._0; value = t11._1; value = value; t10.$indexSet(0, new A.SassString($name, false), value); } t2 = new A.ValueExpression(new A.SassMap(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2)); } 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); if ($function instanceof A.SassString) { t2 = $function.toString$0(0); A.EvaluationContext_current().warn$2(0, string$.Passina + t2 + "))", B.Deprecation_qVK); callableNode = t1._callableNode; return t1.visitFunctionExpression$1(new A.FunctionExpression(_null, $function._string$_text, invocation, callableNode.get$span(callableNode))); } callable = $function.assertFunction$1("function").callable; if (type$.Callable._is(callable)) { t2 = t1._callableNode; t2.toString; return t1._runFunctionCallable$3(invocation, callable, t2); } else throw A.wrapException(A.SassScriptException$("The function " + callable.get$name(callable) + string$.x20is_as, _null)); }, $signature: 6 }; A._EvaluateVisitor_closure10.prototype = { call$1($arguments) { var withMap, t2, values, configuration, t3, t1 = J.getInterceptor$asx($arguments), url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string$_text); t1 = t1.$index($arguments, 1).get$realNull(); withMap = t1 == null ? null : t1.assertMap$1("with")._map$_contents; t1 = this.$this; t2 = t1._callableNode; t2.toString; if (withMap != null) { values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue); withMap.forEach$1(0, new A._EvaluateVisitor__closure(values, t2.get$span(t2), t2)); configuration = new A.ExplicitConfiguration(t2, values, null); } else configuration = B.Configuration_Map_empty_null; t3 = t2.get$span(t2); t1._loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure0(t1), t3.get$sourceUrl(t3), configuration, true); t1._assertConfigurationIsEmpty$2$nameInError(configuration, true); }, $signature: 158 }; A._EvaluateVisitor__closure.prototype = { call$2(variable, value) { var t1 = variable.assertString$1("with key"), $name = A.stringReplaceAllUnchecked(t1._string$_text, "_", "-"); t1 = this.values; if (t1.containsKey$1($name)) throw A.wrapException("The variable $" + $name + " was configured twice."); t1.$indexSet(0, $name, new A.ConfiguredValue(value, this.span, this.callableNode)); }, $signature: 106 }; A._EvaluateVisitor__closure0.prototype = { call$2(module, _) { var t1 = this.$this; return t1._combineCss$2$clone(module, true).accept$1(t1); }, $signature: 90 }; A._EvaluateVisitor_closure11.prototype = { call$1($arguments) { var callableNode, t2, t3, t4, t5, callable, $content, t1 = J.getInterceptor$asx($arguments), mixin = t1.$index($arguments, 0), args = type$.SassArgumentList._as(t1.$index($arguments, 1)); t1 = this.$this; callableNode = t1._callableNode; t2 = callableNode.get$span(callableNode); t3 = callableNode.get$span(callableNode); t4 = type$.Expression; t5 = A.List_List$unmodifiable(B.List_empty9, t4); t4 = A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t4); callable = mixin.assertMixin$1("mixin").callable; $content = t1._environment._content; if (type$.Callable._is(callable)) t1._applyMixin$5(callable, $content, new A.ArgumentInvocation(t5, t4, new A.ValueExpression(args, t3), null, t2), callableNode, callableNode); else throw A.wrapException(A.SassScriptException$("The mixin " + callable.get$name(callable) + string$.x20is_as, null)); }, $signature: 158 }; A._EvaluateVisitor_run_closure.prototype = { call$0() { var module, _this = this, url = null, t1 = _this.node, t2 = t1.span, _0_0 = t2.get$sourceUrl(t2); if (_0_0 != null) { url = _0_0; t2 = true; } else t2 = false; if (t2) { t2 = _this.$this; t2._activeModules.$indexSet(0, url, null); t2._loadedUrls.add$1(0, url); } t2 = _this.$this; module = t2._addExceptionTrace$1(new A._EvaluateVisitor_run__closure(t2, _this.importer, t1)); return new A._Record_2_loadedUrls_stylesheet(t2._loadedUrls, t2._combineCss$1(module)); }, $signature: 550 }; A._EvaluateVisitor_run__closure.prototype = { call$0() { return this.$this._execute$2(this.importer, this.node); }, $signature: 552 }; A._EvaluateVisitor_runExpression_closure.prototype = { call$0() { var t1 = this.$this, t2 = this.expression; return t1._withFakeStylesheet$3(this.importer, t2, new A._EvaluateVisitor_runExpression__closure(t1, t2)); }, $signature: 25 }; A._EvaluateVisitor_runExpression__closure.prototype = { call$0() { var t1 = this.$this; return t1._addExceptionTrace$1(new A._EvaluateVisitor_runExpression___closure(t1, this.expression)); }, $signature: 25 }; A._EvaluateVisitor_runExpression___closure.prototype = { call$0() { return this.expression.accept$1(this.$this); }, $signature: 25 }; A._EvaluateVisitor_runStatement_closure.prototype = { call$0() { var t1 = this.$this, t2 = this.statement; return t1._withFakeStylesheet$3(this.importer, t2, new A._EvaluateVisitor_runStatement__closure(t1, t2)); }, $signature: 0 }; A._EvaluateVisitor_runStatement__closure.prototype = { call$0() { var t1 = this.$this; return t1._addExceptionTrace$1(new A._EvaluateVisitor_runStatement___closure(t1, this.statement)); }, $signature: 0 }; A._EvaluateVisitor_runStatement___closure.prototype = { call$0() { return this.statement.accept$1(this.$this); }, $signature: 0 }; A._EvaluateVisitor__loadModule_closure.prototype = { call$0() { return this.callback.call$2(this._box_1.builtInModule, false); }, $signature: 0 }; A._EvaluateVisitor__loadModule_closure0.prototype = { call$0() { var canonicalUrl, oldInDependency, isDependency, t4, message, _this = this, t1 = {}, stylesheet = null, importer = null, t2 = _this.$this, t3 = _this.nodeWithSpan, _1_0 = t2._loadStylesheet$3$baseUrl(_this.url.toString$0(0), t3.get$span(t3), _this.baseUrl); stylesheet = _1_0._0; importer = _1_0._1; isDependency = _1_0._2; isDependency = isDependency; t4 = stylesheet.span; canonicalUrl = t4.get$sourceUrl(t4); if (canonicalUrl != null) { t4 = t2._activeModules; if (t4.containsKey$1(canonicalUrl)) { message = _this.namesInErrors ? "Module loop: " + $.$get$context().prettyUri$1(canonicalUrl) + " is already being loaded." : string$.Modulel; t1 = A.NullableExtension_andThen(t4.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure(t2, message)); throw A.wrapException(t1 == null ? t2._evaluate$_exception$1(message) : t1); } else t4.$indexSet(0, canonicalUrl, t3); } t4 = t2._modules.containsKey$1(canonicalUrl); oldInDependency = t2._inDependency; t2._inDependency = isDependency; t1.module = null; try { t1.module = t2._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t3); } finally { t2._activeModules.remove$1(0, canonicalUrl); t2._inDependency = oldInDependency; } t2._addExceptionSpan$3$addStackFrame(t3, new A._EvaluateVisitor__loadModule__closure0(t1, _this.callback, !t4), false); }, $signature: 2 }; A._EvaluateVisitor__loadModule__closure.prototype = { call$1(previousLoad) { return this.$this._multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String)); }, $signature: 81 }; A._EvaluateVisitor__loadModule__closure0.prototype = { call$0() { return this.callback.call$2(this._box_0.module, this.firstLoad); }, $signature: 0 }; A._EvaluateVisitor__execute_closure.prototype = { call$0() { var t3, t4, t5, t6, _this = this, t1 = _this.$this, oldImporter = t1._importer, oldStylesheet = t1.__stylesheet, oldRoot = t1.__root, oldPreModuleComments = t1._preModuleComments, oldParent = t1.__parent, oldEndOfImports = t1.__endOfImports, oldOutOfOrderImports = t1._outOfOrderImports, oldExtensionStore = t1.__extensionStore, t2 = t1._atRootExcludingStyleRule, oldStyleRule = t2 ? null : t1._styleRuleIgnoringAtRoot, oldMediaQueries = t1._mediaQueries, oldDeclarationName = t1._declarationName, oldInUnknownAtRule = t1._inUnknownAtRule, oldInKeyframes = t1._inKeyframes, oldConfiguration = t1._configuration; t1._importer = _this.importer; t3 = t1.__stylesheet = _this.stylesheet; t4 = t3.span; t5 = t1.__parent = t1.__root = A.ModifiableCssStylesheet$(t4); t1.__endOfImports = 0; t1._outOfOrderImports = null; t1.__extensionStore = _this.extensionStore; t1._declarationName = t1._mediaQueries = t1._styleRuleIgnoringAtRoot = null; t1._inKeyframes = t1._atRootExcludingStyleRule = t1._inUnknownAtRule = false; t6 = _this.configuration; if (t6 != null) t1._configuration = t6; t1.visitStylesheet$1(t3); t3 = t1._outOfOrderImports == null ? t5 : new A.CssStylesheet(new A.UnmodifiableListView(t1._addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode), t4); _this.css._value = t3; _this.preModuleComments._value = t1._preModuleComments; t1._importer = oldImporter; t1.__stylesheet = oldStylesheet; t1.__root = oldRoot; t1._preModuleComments = oldPreModuleComments; t1.__parent = oldParent; t1.__endOfImports = oldEndOfImports; t1._outOfOrderImports = oldOutOfOrderImports; t1.__extensionStore = oldExtensionStore; t1._styleRuleIgnoringAtRoot = oldStyleRule; t1._mediaQueries = oldMediaQueries; t1._declarationName = oldDeclarationName; t1._inUnknownAtRule = oldInUnknownAtRule; t1._atRootExcludingStyleRule = t2; t1._inKeyframes = oldInKeyframes; t1._configuration = oldConfiguration; }, $signature: 2 }; A._EvaluateVisitor__combineCss_closure.prototype = { call$1(module) { return module.get$transitivelyContainsCss(); }, $signature: 134 }; A._EvaluateVisitor__combineCss_closure0.prototype = { call$1(target) { return !this.selectors.contains$1(0, target); }, $signature: 16 }; A._EvaluateVisitor__combineCss_visitModule.prototype = { call$1(module) { var t1, t2, t3, t4, _i, upstream, _1_0, comments, t5, statements, index, _this = this; if (!_this.seen.add$1(0, module)) return; if (_this.clone) module = module.cloneCss$0(); 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) { upstream = t1[_i]; if (upstream.get$transitivelyContainsCss()) { _1_0 = module.get$preModuleComments().$index(0, upstream); if (_1_0 != null) { comments = _1_0; t5 = true; } else { comments = null; t5 = false; } if (t5) B.JSArray_methods.addAll$1(t3.length === 0 ? t4 : t3, comments); _this.call$1(upstream); } } _this.sorted.addFirst$1(module); t1 = module.get$css(module); statements = t1.get$children(t1); index = _this.$this._indexAfterImports$1(statements); t1 = J.getInterceptor$ax(statements); B.JSArray_methods.addAll$1(t4, t1.getRange$2(statements, 0, index)); B.JSArray_methods.addAll$1(t3, t1.getRange$2(statements, index, t1.get$length(statements))); }, $signature: 559 }; A._EvaluateVisitor__extendModules_closure.prototype = { call$1(target) { return !this.originalSelectors.contains$1(0, target); }, $signature: 16 }; A._EvaluateVisitor__extendModules_closure0.prototype = { call$0() { return A._setArrayType([], type$.JSArray_ExtensionStore); }, $signature: 229 }; A._EvaluateVisitor_visitAtRootRule_closure.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitAtRootRule_closure0.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 0 }; A._EvaluateVisitor__scopeForAtRoot_closure.prototype = { call$1(callback) { var t1 = this.$this, t2 = t1._assertInModule$2(t1.__parent, "__parent"); t1.__parent = this.newParent; t1._environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void); t1.__parent = t2; }, $signature: 39 }; A._EvaluateVisitor__scopeForAtRoot_closure0.prototype = { call$1(callback) { var t1 = this.$this, oldAtRootExcludingStyleRule = t1._atRootExcludingStyleRule; t1._atRootExcludingStyleRule = true; this.innerScope.call$1(callback); t1._atRootExcludingStyleRule = oldAtRootExcludingStyleRule; }, $signature: 39 }; A._EvaluateVisitor__scopeForAtRoot_closure1.prototype = { call$1(callback) { return this.$this._withMediaQueries$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure(this.innerScope, callback)); }, $signature: 39 }; A._EvaluateVisitor__scopeForAtRoot__closure.prototype = { call$0() { return this.innerScope.call$1(this.callback); }, $signature: 2 }; A._EvaluateVisitor__scopeForAtRoot_closure2.prototype = { call$1(callback) { var t1 = this.$this, wasInKeyframes = t1._inKeyframes; t1._inKeyframes = false; this.innerScope.call$1(callback); t1._inKeyframes = wasInKeyframes; }, $signature: 39 }; A._EvaluateVisitor__scopeForAtRoot_closure3.prototype = { call$1($parent) { return $parent instanceof A.ModifiableCssAtRule; }, $signature: 237 }; A._EvaluateVisitor__scopeForAtRoot_closure4.prototype = { call$1(callback) { var t1 = this.$this, wasInUnknownAtRule = t1._inUnknownAtRule; t1._inUnknownAtRule = false; this.innerScope.call$1(callback); t1._inUnknownAtRule = wasInUnknownAtRule; }, $signature: 39 }; A._EvaluateVisitor_visitContentRule_closure.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); return null; }, $signature: 2 }; A._EvaluateVisitor_visitDeclaration_closure.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this._box_0.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitEachRule_closure.prototype = { call$1(value) { var t1 = this.$this, t2 = this.nodeWithSpan; return t1._environment.setLocalVariable$3(this._box_0.variable, t1._withoutSlash$2(value, t2), t2); }, $signature: 63 }; A._EvaluateVisitor_visitEachRule_closure0.prototype = { call$1(value) { return this.$this._setMultipleVariables$3(this._box_0.variables, value, this.nodeWithSpan); }, $signature: 63 }; A._EvaluateVisitor_visitEachRule_closure1.prototype = { call$0() { var _this = this, t1 = _this.$this; return t1._handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure(t1, _this.setVariables, _this.node)); }, $signature: 44 }; A._EvaluateVisitor_visitEachRule__closure.prototype = { call$1(element) { var t1; this.setVariables.call$1(element); t1 = this.$this; return t1._handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure(t1)); }, $signature: 561 }; A._EvaluateVisitor_visitEachRule___closure.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 91 }; A._EvaluateVisitor_visitAtRule_closure.prototype = { call$1(value) { return this.$this._interpolationToValue$3$trim$warnForColor(value, true, true); }, $signature: 574 }; A._EvaluateVisitor_visitAtRule_closure0.prototype = { call$0() { var t2, t3, _i, _this = this, t1 = _this.$this, styleRule = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot; if (styleRule == null || t1._inKeyframes || J.$eq$(_this.name.value, "font-face")) for (t2 = _this.children, t3 = t2.length, _i = 0; _i < t3; ++_i) t2[_i].accept$1(t1); else t1._withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure(t1, _this.children), false, type$.ModifiableCssStyleRule, type$.Null); }, $signature: 2 }; A._EvaluateVisitor_visitAtRule__closure.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitAtRule_closure1.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor_visitForRule_closure.prototype = { call$0() { return this.node.from.accept$1(this.$this).assertNumber$0(); }, $signature: 161 }; A._EvaluateVisitor_visitForRule_closure0.prototype = { call$0() { return this.node.to.accept$1(this.$this).assertNumber$0(); }, $signature: 161 }; A._EvaluateVisitor_visitForRule_closure1.prototype = { call$0() { return this.fromNumber.assertInt$0(); }, $signature: 3 }; A._EvaluateVisitor_visitForRule_closure2.prototype = { call$0() { var t1 = this.fromNumber; return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0(); }, $signature: 3 }; A._EvaluateVisitor_visitForRule_closure3.prototype = { call$0() { var i, t3, t4, t5, t6, t7, t8, _0_0, result, _this = this, t1 = _this.$this, t2 = _this.node, nodeWithSpan = t1._expressionNode$1(t2.from); 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) { t7 = t1._environment; t8 = t6.get$numeratorUnits(t6); t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan); _0_0 = t1._handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure(t1)); if (_0_0 != null) { result = _0_0; t7 = true; } else { result = null; t7 = false; } if (t7) return result; } return null; }, $signature: 44 }; A._EvaluateVisitor_visitForRule__closure.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 91 }; A._EvaluateVisitor_visitForwardRule_closure.prototype = { call$2(module, firstLoad) { if (firstLoad) this.$this._registerCommentsForModule$1(module); this.$this._environment.forwardModule$2(module, this.node); }, $signature: 90 }; A._EvaluateVisitor_visitForwardRule_closure0.prototype = { call$2(module, firstLoad) { if (firstLoad) this.$this._registerCommentsForModule$1(module); this.$this._environment.forwardModule$2(module, this.node); }, $signature: 90 }; A._EvaluateVisitor__registerCommentsForModule_closure.prototype = { call$0() { return A._setArrayType([], type$.JSArray_CssComment); }, $signature: 260 }; A._EvaluateVisitor_visitIfRule_closure.prototype = { call$1(clause) { var t1 = this.$this; return t1._environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule__closure(t1, clause), true, clause.hasDeclarations, type$.nullable_Value); }, $signature: 583 }; A._EvaluateVisitor_visitIfRule__closure.prototype = { call$0() { var t1 = this.$this; return t1._handleReturn$2(this.clause.children, new A._EvaluateVisitor_visitIfRule___closure(t1)); }, $signature: 44 }; A._EvaluateVisitor_visitIfRule___closure.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 91 }; A._EvaluateVisitor__visitDynamicImport_closure.prototype = { call$0() { var t1, t2, _0_0, stylesheet, t3, isDependency, t4, t5, url, t6, oldImporter, oldInDependency, loadsUserDefinedModules, children, t7, t8, t9, t10, environment, module, visitor, _null = null, _box_0 = {}; _box_0.isDependency = _box_0.importer = _box_0.stylesheet = null; t1 = this.$this; t2 = this.$import; _0_0 = t1._loadStylesheet$3$forImport(t2.urlString, t2.span, true); stylesheet = _box_0.stylesheet = _0_0._0; t3 = _box_0.importer = _0_0._1; isDependency = _0_0._2; _box_0.isDependency = isDependency; t4 = isDependency; t5 = stylesheet.span; url = t5.get$sourceUrl(t5); if (url != null) { t5 = t1._activeModules; if (t5.containsKey$1(url)) { t2 = A.NullableExtension_andThen(t5.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure(t1)); throw A.wrapException(t2 == null ? t1._evaluate$_exception$1("This file is already being loaded.") : t2); } t5.$indexSet(0, url, t2); } t2 = stylesheet._uses; t5 = type$.UnmodifiableListView_UseRule; t6 = new A.UnmodifiableListView(t2, t5); if (t6.get$length(t6) === 0) { t6 = new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule); t6 = t6.get$length(t6) === 0; } else t6 = false; if (t6) { oldImporter = t1._importer; t2 = t1._assertInModule$2(t1.__stylesheet, "_stylesheet"); oldInDependency = t1._inDependency; t1._importer = t3; t1.__stylesheet = stylesheet; t1._inDependency = t4; t1.visitStylesheet$1(stylesheet); t1._importer = oldImporter; t1.__stylesheet = t2; t1._inDependency = oldInDependency; t1._activeModules.remove$1(0, url); return; } t2 = new A.UnmodifiableListView(t2, t5); if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure0())) { t2 = new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule); loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure1()); } else loadsUserDefinedModules = true; children = A._Cell$(); t2 = t1._environment; t3 = type$.String; t4 = type$.Module_Callable; t5 = type$.AstNode; t6 = A._setArrayType([], type$.JSArray_Module_Callable); t7 = t2._variables; t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7)); t8 = t2._variableNodes; t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8)); t9 = t2._functions; t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9)); t10 = t2._mixins; t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10)); 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); t1._withEnvironment$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure2(_box_0, t1, loadsUserDefinedModules, environment, children)); module = environment.toDummyModule$0(); t1._environment.importForwards$1(module); if (loadsUserDefinedModules) { if (module.transitivelyContainsCss) t1._combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1); visitor = new A._ImportedCssVisitor(t1); for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();) t2.get$current(t2).accept$1(visitor); } t1._activeModules.remove$1(0, url); }, $signature: 0 }; A._EvaluateVisitor__visitDynamicImport__closure.prototype = { call$1(previousLoad) { 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)); }, $signature: 81 }; A._EvaluateVisitor__visitDynamicImport__closure0.prototype = { call$1(rule) { return rule.url.get$scheme() !== "sass"; }, $signature: 275 }; A._EvaluateVisitor__visitDynamicImport__closure1.prototype = { call$1(rule) { return rule.url.get$scheme() !== "sass"; }, $signature: 283 }; A._EvaluateVisitor__visitDynamicImport__closure2.prototype = { call$0() { var t7, t8, _this = this, t1 = _this.$this, oldImporter = t1._importer, t2 = t1._assertInModule$2(t1.__stylesheet, "_stylesheet"), t3 = t1._assertInModule$2(t1.__root, "_root"), t4 = t1._assertInModule$2(t1.__parent, "__parent"), t5 = t1._assertInModule$2(t1.__endOfImports, "_endOfImports"), oldOutOfOrderImports = t1._outOfOrderImports, oldConfiguration = t1._configuration, oldInDependency = t1._inDependency, t6 = _this._box_0; t1._importer = t6.importer; t7 = t6.stylesheet; t1.__stylesheet = t7; t8 = _this.loadsUserDefinedModules; if (t8) { t7 = A.ModifiableCssStylesheet$(t7.span); t1.__root = t7; t1.__parent = t1._assertInModule$2(t7, "_root"); t1.__endOfImports = 0; t1._outOfOrderImports = null; } t1._inDependency = t6.isDependency; t7 = new A.UnmodifiableListView(t6.stylesheet._forwards, type$.UnmodifiableListView_ForwardRule); if (!t7.get$isEmpty(t7)) t1._configuration = _this.environment.toImplicitConfiguration$0(); t1.visitStylesheet$1(t6.stylesheet); t6 = t8 ? t1._addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode); _this.children._value = t6; t1._importer = oldImporter; t1.__stylesheet = t2; if (t8) { t1.__root = t3; t1.__parent = t4; t1.__endOfImports = t5; t1._outOfOrderImports = oldOutOfOrderImports; } t1._configuration = oldConfiguration; t1._inDependency = oldInDependency; }, $signature: 2 }; A._EvaluateVisitor__applyMixin_closure0.prototype = { call$0() { var _this = this, t1 = _this.$this; t1._environment.asMixin$1(new A._EvaluateVisitor__applyMixin__closure0(t1, _this.$arguments, _this.mixin, _this.nodeWithSpanWithoutContent)); }, $signature: 0 }; A._EvaluateVisitor__applyMixin__closure0.prototype = { call$0() { var _this = this; _this.$this._runBuiltInCallable$3(_this.$arguments, _this.mixin, _this.nodeWithSpanWithoutContent); }, $signature: 0 }; A._EvaluateVisitor__applyMixin_closure.prototype = { call$0() { var t1 = this._1_0; if (t1 == null) t1 = type$.Callable._as(t1); return type$.UserDefinedCallable_Environment._as(t1).declaration; }, $signature: 143 }; A._EvaluateVisitor__applyMixin_closure1.prototype = { call$0() { var _this = this, t1 = _this.$this; t1._environment.withContent$2(_this.contentCallable, new A._EvaluateVisitor__applyMixin__closure(t1, _this.mixin, _this.nodeWithSpanWithoutContent)); }, $signature: 2 }; A._EvaluateVisitor__applyMixin__closure.prototype = { call$0() { var t1 = this.$this; t1._environment.asMixin$1(new A._EvaluateVisitor__applyMixin___closure(t1, this.mixin, this.nodeWithSpanWithoutContent)); }, $signature: 0 }; A._EvaluateVisitor__applyMixin___closure.prototype = { call$0() { var t1, t2, t3, t4, _i; for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpanWithoutContent, _i = 0; _i < t2; ++_i) t3._addErrorSpan$2(t4, new A._EvaluateVisitor__applyMixin____closure(t3, t1[_i])); }, $signature: 0 }; A._EvaluateVisitor__applyMixin____closure.prototype = { call$0() { return this.statement.accept$1(this.$this); }, $signature: 44 }; A._EvaluateVisitor_visitIncludeRule_closure.prototype = { call$0() { var t1 = this.node; return this.$this._environment.getMixin$2$namespace(t1.name, t1.namespace); }, $signature: 89 }; A._EvaluateVisitor_visitIncludeRule_closure0.prototype = { call$1($content) { var t1 = this.$this; return new A.UserDefinedCallable($content, t1._environment.closure$0(), t1._inDependency, type$.UserDefinedCallable_Environment); }, $signature: 590 }; A._EvaluateVisitor_visitIncludeRule_closure1.prototype = { call$0() { return this.node.get$spanWithoutContent(); }, $signature: 33 }; A._EvaluateVisitor_visitMediaRule_closure.prototype = { call$1(mediaQueries) { return this.$this._mergeMediaQueries$2(mediaQueries, this.queries); }, $signature: 83 }; A._EvaluateVisitor_visitMediaRule_closure0.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this.mergedQueries; if (t2 == null) t2 = _this.queries; t1._withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure(t1, _this.node)); }, $signature: 2 }; A._EvaluateVisitor_visitMediaRule__closure.prototype = { call$0() { var styleRule, t2, t3, _i, t1 = this.$this, _0_0 = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } if (t2) t1._withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null); else for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i) t2[_i].accept$1(t1); }, $signature: 2 }; A._EvaluateVisitor_visitMediaRule___closure.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitMediaRule_closure1.prototype = { call$1(node) { var t1; if (!(node instanceof A.ModifiableCssStyleRule)) { t1 = this.mergedSources; t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1)); } else t1 = true; return t1; }, $signature: 9 }; A._EvaluateVisitor_visitStyleRule_closure.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitStyleRule_closure0.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor_visitStyleRule_closure1.prototype = { call$0() { var t1 = this.$this; t1._withStyleRule$2(this.rule, new A._EvaluateVisitor_visitStyleRule__closure(t1, this.node)); }, $signature: 2 }; A._EvaluateVisitor_visitStyleRule__closure.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitStyleRule_closure2.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor_visitStyleRule_closure3.prototype = { call$1(child) { return child instanceof A.ModifiableCssComment; }, $signature: 124 }; A._EvaluateVisitor_visitSupportsRule_closure.prototype = { call$0() { var styleRule, t2, t3, _i, t1 = this.$this, _0_0 = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } if (t2) t1._withParent$2$2(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure(t1, this.node), type$.ModifiableCssStyleRule, type$.Null); else for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i) t2[_i].accept$1(t1); }, $signature: 2 }; A._EvaluateVisitor_visitSupportsRule__closure.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitSupportsRule_closure0.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor__visitSupportsCondition_closure.prototype = { call$0() { var t4, t1 = this.$this, t2 = this._box_0, t3 = t2.declaration.name; t3 = t1._evaluate$_serialize$3$quote(t3.accept$1(t1), t3, true); t4 = t2.declaration.get$isCustomProperty() ? "" : " "; t2 = t2.declaration.value; return "(" + t3 + ":" + t4 + t1._evaluate$_serialize$3$quote(t2.accept$1(t1), t2, true) + ")"; }, $signature: 22 }; A._EvaluateVisitor_visitVariableDeclaration_closure.prototype = { call$0() { var t1 = this.$this._environment, t2 = this._box_0.override; t1.setVariable$4$global(this.node.name, t2.value, t2.assignmentNode, true); }, $signature: 2 }; A._EvaluateVisitor_visitVariableDeclaration_closure0.prototype = { call$0() { var t1 = this.node; return this.$this._environment.getVariable$2$namespace(t1.name, t1.namespace); }, $signature: 44 }; A._EvaluateVisitor_visitVariableDeclaration_closure1.prototype = { call$0() { var t1 = this.$this, t2 = this.node; t1._environment.setVariable$5$global$namespace(t2.name, this.value, t1._expressionNode$1(t2.expression), t2.isGlobal, t2.namespace); }, $signature: 2 }; A._EvaluateVisitor_visitUseRule_closure.prototype = { call$2(module, firstLoad) { var t1, t2, t3, _0_0, $name, t4, t5, span; if (firstLoad) this.$this._registerCommentsForModule$1(module); t1 = this.$this._environment; t2 = this.node; t3 = t2.namespace; if (t3 == null) { t1._globalModules.$indexSet(0, module, t2); t1._allModules.push(module); _0_0 = A.IterableExtension_firstWhereOrNull(J.get$keys$z(B.JSArray_methods.get$first(t1._variables)), module.get$variables().get$containsKey()); if (_0_0 != null) { $name = _0_0; t1 = true; } else { $name = null; t1 = false; } if (t1) A.throwExpression(A.SassScriptException$(string$.This_ma + A.S($name) + '".', null)); } else { t4 = t1._environment$_modules; if (t4.containsKey$1(t3)) { t5 = t1._namespaceNodes.$index(0, t3); span = t5 == null ? null : t5.span; t5 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); if (span != null) t5.$indexSet(0, span, "original @use"); A.throwExpression(A.MultiSpanSassScriptException$(string$.There_ + t3 + '".', "new @use", t5)); } t4.$indexSet(0, t3, module); t1._namespaceNodes.$indexSet(0, t3, t2); t1._allModules.push(module); } }, $signature: 90 }; A._EvaluateVisitor_visitWarnRule_closure.prototype = { call$0() { return this.node.expression.accept$1(this.$this); }, $signature: 25 }; A._EvaluateVisitor_visitWhileRule_closure.prototype = { call$0() { var t1, t2, t3, _0_0, result, t4; for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) { _0_0 = t3._handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure(t3)); if (_0_0 != null) { result = _0_0; t4 = true; } else { result = null; t4 = false; } if (t4) return result; } return null; }, $signature: 44 }; A._EvaluateVisitor_visitWhileRule__closure.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 91 }; A._EvaluateVisitor_visitBinaryOperationExpression_closure.prototype = { call$0() { var t1 = this.node, t2 = this.$this, left = t1.left.accept$1(t2); switch (t1.operator) { case B.BinaryOperator_2jN: t1 = t1.right.accept$1(t2); t1 = new A.SassString(A.serializeValue(left, false, true) + "=" + A.serializeValue(t1, false, true), false); break; case B.BinaryOperator_M6L: t1 = left.get$isTruthy() ? left : t1.right.accept$1(t2); break; case B.BinaryOperator_SNp: t1 = left.get$isTruthy() ? t1.right.accept$1(t2) : left; break; case B.BinaryOperator_ql5: t1 = left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true : B.SassBoolean_false; break; case B.BinaryOperator_ViB: t1 = !left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true : B.SassBoolean_false; break; case B.BinaryOperator_cIH: t1 = left.greaterThan$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_7Tg: t1 = left.greaterThanOrEquals$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_U8c: t1 = left.lessThan$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_kpg: t1 = left.lessThanOrEquals$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_anB: t1 = left.plus$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_olz: t1 = left.minus$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_qN2: t1 = left.times$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_t8B: t1 = t2._slash$3(left, t1.right.accept$1(t2), t1); break; case B.BinaryOperator_OTG: t1 = left.modulo$1(t1.right.accept$1(t2)); break; default: t1 = null; } return t1; }, $signature: 25 }; A._EvaluateVisitor__slash_closure.prototype = { call$0() { return this._1_0._0; }, $signature: 25 }; A._EvaluateVisitor__slash_closure0.prototype = { call$0() { return this._1_0._1; }, $signature: 25 }; A._EvaluateVisitor__slash_recommendation.prototype = { call$1(expression) { var left, right, t1, _null = null; $label0$0: { if (expression instanceof A.BinaryOperationExpression) if (B.BinaryOperator_t8B === expression.operator) { left = expression.left; right = expression.right; t1 = true; } else { right = _null; left = right; t1 = false; } else { right = _null; left = right; t1 = false; } if (t1) { t1 = "math.div(" + A.S(this.call$1(left)) + ", " + A.S(this.call$1(right)) + ")"; break $label0$0; } if (expression instanceof A.ParenthesizedExpression) { t1 = expression.expression.toString$0(0); break $label0$0; } t1 = expression.toString$0(0); break $label0$0; } return t1; }, $signature: 132 }; A._EvaluateVisitor_visitVariableExpression_closure.prototype = { call$0() { var t1 = this.node; return this.$this._environment.getVariable$2$namespace(t1.name, t1.namespace); }, $signature: 44 }; A._EvaluateVisitor_visitUnaryOperationExpression_closure.prototype = { call$0() { var t1, _this = this; switch (_this.node.operator) { case B.UnaryOperator_gg4: t1 = _this.operand.unaryPlus$0(); break; case B.UnaryOperator_TLI: t1 = _this.operand.unaryMinus$0(); break; case B.UnaryOperator_Ix1: t1 = new A.SassString("/" + A.serializeValue(_this.operand, false, true), false); break; case B.UnaryOperator_not_not_not: t1 = _this.operand.unaryNot$0(); break; default: t1 = null; } return t1; }, $signature: 25 }; A._EvaluateVisitor_visitListExpression_closure.prototype = { call$1(expression) { return expression.accept$1(this.$this); }, $signature: 611 }; A._EvaluateVisitor_visitFunctionExpression_closure.prototype = { call$0() { var t1 = this.$this._environment, t2 = this.node; return t1.getFunction$2$namespace(A.stringReplaceAllUnchecked(t2.originalName, "_", "-"), t2.namespace); }, $signature: 89 }; A._EvaluateVisitor_visitFunctionExpression_closure0.prototype = { call$1(argument) { return argument.accept$1(new A._IsCalculationSafeVisitor()); }, $signature: 126 }; A._EvaluateVisitor_visitFunctionExpression_closure1.prototype = { call$0() { var t1 = this.node; return this.$this._runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1); }, $signature: 25 }; A._EvaluateVisitor__checkCalculationArguments_check.prototype = { call$1(maxArgs) { var t1 = this.node, t2 = t1.$arguments.positional.length; if (t2 === 0) throw A.wrapException(this.$this._evaluate$_exception$2("Missing argument.", t1.span)); else if (maxArgs != null && t2 > maxArgs) 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)); }, call$0() { return this.call$1(null); }, $signature: 86 }; A._EvaluateVisitor__visitCalculationExpression_closure.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this._box_0, t3 = _this.inLegacySassFunction; 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); }, $signature: 14 }; A._EvaluateVisitor__checkAdjacentCalculationValues_closure.prototype = { call$0() { return type$.UnaryOperationExpression._as(this._0_0).operator; }, $signature: 137 }; A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure.prototype = { call$0() { var t1 = this.node; return this.$this._runFunctionCallable$3(t1.$arguments, this.$function, t1); }, $signature: 25 }; A._EvaluateVisitor__runUserDefinedCallable_closure.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this.callable; return t1._withEnvironment$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, _this.V)); }, $signature() { return this.V._eval$1("0()"); } }; A._EvaluateVisitor__runUserDefinedCallable__closure.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this.V; return t1._environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2); }, $signature() { return this.V._eval$1("0()"); } }; A._EvaluateVisitor__runUserDefinedCallable___closure.prototype = { call$0() { var declaredArguments, t5, minLength, i, argument, t6, t7, value, t8, restArgument, rest, argumentList, result, argumentWord, _this = this, t1 = _this.$this, t2 = _this.evaluated._values, t3 = _this.callable.declaration.$arguments, t4 = _this.nodeWithSpan; t1._verifyArguments$4(J.get$length$asx(t2[2]), t2[0], t3, t4); declaredArguments = t3.$arguments; t5 = declaredArguments.length; minLength = Math.min(J.get$length$asx(t2[2]), t5); for (i = 0; i < minLength; ++i) t1._environment.setLocalVariable$3(declaredArguments[i].name, J.$index$asx(t2[2], i), J.$index$asx(t2[3], i)); for (i = J.get$length$asx(t2[2]); i < t5; ++i) { argument = declaredArguments[i]; t6 = t2[0]; t7 = argument.name; value = J.remove$1$z(t6, t7); if (value == null) { t6 = argument.defaultValue; value = t1._withoutSlash$2(t6.accept$1(t1), t1._expressionNode$1(t6)); } t6 = t1._environment; t8 = J.$index$asx(t2[1], t7); if (t8 == null) { t8 = argument.defaultValue; t8.toString; t8 = t1._expressionNode$1(t8); } t6.setLocalVariable$3(t7, value, t8); } restArgument = t3.restArgument; if (restArgument != null) { rest = J.get$length$asx(t2[2]) > t5 ? J.sublist$1$ax(t2[2], t5) : B.List_empty8; t5 = t2[0]; t6 = t2[4]; argumentList = A.SassArgumentList$(rest, t5, t6 === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_rXA : t6); t1._environment.setLocalVariable$3(restArgument, argumentList, t4); } else argumentList = null; result = _this.run.call$0(); if (argumentList == null) return result; t5 = t2[0].__js_helper$_length; if (t5 === 0) return result; if (argumentList._wereKeywordsAccessed) return result; argumentWord = A.pluralize("argument", t5, null); t2 = t2[0]; t5 = A.instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"); 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)); }, $signature() { return this.V._eval$1("0()"); } }; A._EvaluateVisitor__runUserDefinedCallable____closure.prototype = { call$1($name) { return "$" + $name; }, $signature: 7 }; A._EvaluateVisitor__runFunctionCallable_closure.prototype = { call$0() { var t1, t2, t3, t4, _i, $returnValue; for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) { $returnValue = t2[_i].accept$1(t4); if ($returnValue instanceof A.Value) return $returnValue; } throw A.wrapException(t4._evaluate$_exception$2("Function finished without @return.", t1.span)); }, $signature: 25 }; A._EvaluateVisitor__runBuiltInCallable_closure.prototype = { call$0() { return this._box_0.overload.verify$2(J.get$length$asx(this.evaluated._values[2]), this.namedSet); }, $signature: 0 }; A._EvaluateVisitor__runBuiltInCallable_closure0.prototype = { call$0() { return this._box_0.callback.call$1(this.evaluated._values[2]); }, $signature: 25 }; A._EvaluateVisitor__runBuiltInCallable_closure1.prototype = { call$1($name) { return "$" + $name; }, $signature: 7 }; A._EvaluateVisitor__evaluateArguments_closure.prototype = { call$1(value) { return value; }, $signature: 43 }; A._EvaluateVisitor__evaluateArguments_closure0.prototype = { call$1(value) { return this.$this._withoutSlash$2(value, this.restNodeForSpan); }, $signature: 43 }; A._EvaluateVisitor__evaluateArguments_closure1.prototype = { call$2(key, value) { var _this = this, t1 = _this.restNodeForSpan; _this.named.$indexSet(0, key, _this.$this._withoutSlash$2(value, t1)); _this.namedNodes.$indexSet(0, key, t1); }, $signature: 87 }; A._EvaluateVisitor__evaluateArguments_closure2.prototype = { call$1(value) { return value; }, $signature: 43 }; A._EvaluateVisitor__evaluateMacroArguments_closure.prototype = { call$1(value) { var t1 = this.restArgs; return new A.ValueExpression(value, t1.get$span(t1)); }, $signature: 65 }; A._EvaluateVisitor__evaluateMacroArguments_closure0.prototype = { call$1(value) { var t1 = this.restArgs; return new A.ValueExpression(this.$this._withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1)); }, $signature: 65 }; A._EvaluateVisitor__evaluateMacroArguments_closure1.prototype = { call$2(key, value) { var _this = this, t1 = _this.restArgs; _this.named.$indexSet(0, key, new A.ValueExpression(_this.$this._withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1))); }, $signature: 87 }; A._EvaluateVisitor__evaluateMacroArguments_closure2.prototype = { call$1(value) { var t1 = this.keywordRestArgs; return new A.ValueExpression(this.$this._withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1)); }, $signature: 65 }; A._EvaluateVisitor__addRestMap_closure.prototype = { call$2(key, value) { var t2, _this = this, t1 = _this.$this; if (key instanceof A.SassString) _this.values.$indexSet(0, key._string$_text, _this.convert.call$1(t1._withoutSlash$2(value, _this.expressionNode))); else { t2 = _this.nodeWithSpan; 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))); } }, $signature: 106 }; A._EvaluateVisitor__verifyArguments_closure.prototype = { call$0() { return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String)); }, $signature: 0 }; A._EvaluateVisitor_visitCssAtRule_closure.prototype = { call$0() { var t1, t2, t3, t4; for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t4 = t1.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t2); } }, $signature: 2 }; A._EvaluateVisitor_visitCssAtRule_closure0.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor_visitCssKeyframeBlock_closure.prototype = { call$0() { var t1, t2, t3, t4; for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t4 = t1.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t2); } }, $signature: 2 }; A._EvaluateVisitor_visitCssKeyframeBlock_closure0.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor_visitCssMediaRule_closure.prototype = { call$1(mediaQueries) { return this.$this._mergeMediaQueries$2(mediaQueries, this.node.queries); }, $signature: 83 }; A._EvaluateVisitor_visitCssMediaRule_closure0.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this.mergedQueries; if (t2 == null) t2 = _this.node.queries; t1._withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure(t1, _this.node)); }, $signature: 2 }; A._EvaluateVisitor_visitCssMediaRule__closure.prototype = { call$0() { var styleRule, t2, t3, t4, t1 = this.$this, _0_0 = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } if (t2) t1._withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null); else for (t2 = this.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t4 = t2.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t1); } }, $signature: 2 }; A._EvaluateVisitor_visitCssMediaRule___closure.prototype = { call$0() { var t1, t2, t3, t4; for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t4 = t1.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t2); } }, $signature: 2 }; A._EvaluateVisitor_visitCssMediaRule_closure1.prototype = { call$1(node) { var t1; if (!(node instanceof A.ModifiableCssStyleRule)) { t1 = this.mergedSources; t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1)); } else t1 = true; return t1; }, $signature: 9 }; A._EvaluateVisitor_visitCssStyleRule_closure.prototype = { call$0() { var t1 = this.$this; t1._withStyleRule$2(this.rule, new A._EvaluateVisitor_visitCssStyleRule__closure(t1, this.node)); }, $signature: 2 }; A._EvaluateVisitor_visitCssStyleRule__closure.prototype = { call$0() { var t1, t2, t3, t4; for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t4 = t1.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t2); } }, $signature: 2 }; A._EvaluateVisitor_visitCssStyleRule_closure0.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor_visitCssStyleRule_closure1.prototype = { call$0() { return J.get$length$asx(this._0_0._collection$_source); }, $signature: 3 }; A._EvaluateVisitor_visitCssSupportsRule_closure.prototype = { call$0() { var styleRule, t2, t3, t4, t1 = this.$this, _0_0 = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } if (t2) t1._withParent$2$2(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure(t1, this.node), type$.ModifiableCssStyleRule, type$.Null); else for (t2 = this.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t4 = t2.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t1); } }, $signature: 2 }; A._EvaluateVisitor_visitCssSupportsRule__closure.prototype = { call$0() { var t1, t2, t3, t4; for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t4 = t1.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t2); } }, $signature: 2 }; A._EvaluateVisitor_visitCssSupportsRule_closure0.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluateVisitor__performInterpolationHelper_closure.prototype = { call$1(targetLocations) { return A.InterpolationMap$(this.interpolation, targetLocations); }, $signature: 154 }; A._EvaluateVisitor__serialize_closure.prototype = { call$0() { return A.serializeValue(this.value, false, this.quote); }, $signature: 22 }; A._EvaluateVisitor__expressionNode_closure.prototype = { call$0() { var t1 = this.expression; return this.$this._environment.getVariableNode$2$namespace(t1.name, t1.namespace); }, $signature: 155 }; A._EvaluateVisitor__withoutSlash_recommendation.prototype = { call$1(number) { var t1, before, after, _1_0 = number.asSlash; $label0$0: { if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_0)) { t1 = type$.SassNumber; before = t1._as(_1_0._0); after = t1._as(_1_0._1); t1 = true; } else { before = null; after = null; t1 = false; } if (t1) { t1 = "math.div(" + A.S(this.call$1(before)) + ", " + A.S(this.call$1(after)) + ")"; break $label0$0; } t1 = A.serializeValue(number, true, true); break $label0$0; } return t1; }, $signature: 156 }; A._EvaluateVisitor__stackFrame_closure.prototype = { call$1(url) { var t1 = this.$this._evaluate$_importCache; t1 = t1 == null ? null : t1.humanize$1(url); return t1 == null ? url : t1; }, $signature: 48 }; A._ImportedCssVisitor.prototype = { visitCssAtRule$1(node) { var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure(); this._visitor._addChild$2$through(node, t1); }, visitCssComment$1(node) { return this._visitor._addChild$1(node); }, visitCssDeclaration$1(node) { }, visitCssImport$1(node) { var t2, _s13_ = "_endOfImports", t1 = this._visitor; if (t1._assertInModule$2(t1.__parent, "__parent") !== t1._assertInModule$2(t1.__root, "_root")) t1._addChild$1(node); else if (t1._assertInModule$2(t1.__endOfImports, _s13_) === J.get$length$asx(t1._assertInModule$2(t1.__root, "_root").children._collection$_source)) { t1._addChild$1(node); t1.__endOfImports = t1._assertInModule$2(t1.__endOfImports, _s13_) + 1; } else { t2 = t1._outOfOrderImports; (t2 == null ? t1._outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t2).push(node); } }, visitCssKeyframeBlock$1(node) { }, visitCssMediaRule$1(node) { var t1 = this._visitor, mediaQueries = t1._mediaQueries; t1._addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure(mediaQueries == null || t1._mergeMediaQueries$2(mediaQueries, node.queries) != null)); }, visitCssStyleRule$1(node) { return this._visitor._addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure()); }, visitCssStylesheet$1(node) { var t1, t2, t3; for (t1 = node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; (t3 == null ? t2._as(t3) : t3).accept$1(this); } }, visitCssSupportsRule$1(node) { return this._visitor._addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure()); } }; A._ImportedCssVisitor_visitCssAtRule_closure.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._ImportedCssVisitor_visitCssMediaRule_closure.prototype = { call$1(node) { var t1; if (!(node instanceof A.ModifiableCssStyleRule)) t1 = this.hasBeenMerged && node instanceof A.ModifiableCssMediaRule; else t1 = true; return t1; }, $signature: 9 }; A._ImportedCssVisitor_visitCssStyleRule_closure.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._ImportedCssVisitor_visitCssSupportsRule_closure.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule; }, $signature: 9 }; A._EvaluationContext.prototype = { get$currentCallableSpan() { var callableNode, t1, _0_0 = this._visitor._callableNode; if (_0_0 != null) { callableNode = _0_0; t1 = true; } else { callableNode = null; t1 = false; } if (t1) return callableNode.get$span(callableNode); throw A.wrapException(A.StateError$(string$.No_Sasc)); }, warn$2(_, message, deprecation) { var t1 = this._visitor, t2 = t1._importSpan; if (t2 == null) { t2 = t1._callableNode; t2 = t2 == null ? null : t2.get$span(t2); } if (t2 == null) { t2 = this._defaultWarnNodeWithSpan; t2 = t2.get$span(t2); } t1._warn$3(message, t2, deprecation); }, $isEvaluationContext: 1 }; A.EveryCssVisitor.prototype = { visitCssAtRule$1(node) { var t1 = node.children; return t1.every$1(t1, new A.EveryCssVisitor_visitCssAtRule_closure(this)); }, visitCssComment$1(node) { return false; }, visitCssDeclaration$1(node) { return false; }, visitCssImport$1(node) { return false; }, visitCssKeyframeBlock$1(node) { var t1 = node.children; return t1.every$1(t1, new A.EveryCssVisitor_visitCssKeyframeBlock_closure(this)); }, visitCssMediaRule$1(node) { var t1 = node.children; return t1.every$1(t1, new A.EveryCssVisitor_visitCssMediaRule_closure(this)); }, visitCssStyleRule$1(node) { var t1 = node.children; return t1.every$1(t1, new A.EveryCssVisitor_visitCssStyleRule_closure(this)); }, visitCssStylesheet$1(node) { return J.every$1$ax(node.get$children(node), new A.EveryCssVisitor_visitCssStylesheet_closure(this)); }, visitCssSupportsRule$1(node) { var t1 = node.children; return t1.every$1(t1, new A.EveryCssVisitor_visitCssSupportsRule_closure(this)); } }; A.EveryCssVisitor_visitCssAtRule_closure.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 9 }; A.EveryCssVisitor_visitCssKeyframeBlock_closure.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 9 }; A.EveryCssVisitor_visitCssMediaRule_closure.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 9 }; A.EveryCssVisitor_visitCssStyleRule_closure.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 9 }; A.EveryCssVisitor_visitCssStylesheet_closure.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 9 }; A.EveryCssVisitor_visitCssSupportsRule_closure.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 9 }; A._MakeExpressionCalculationSafe.prototype = { visitBinaryOperationExpression$1(node) { var t1, t2, t3; if (node.operator === B.BinaryOperator_OTG) { t1 = A._setArrayType([node], type$.JSArray_Expression); t2 = node.get$span(node); t3 = type$.Expression; t2 = new A.FunctionExpression("math", "max", new A.ArgumentInvocation(A.List_List$unmodifiable(t1, t3), A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t3), null, null, t2), node.get$span(node)); t1 = t2; } else t1 = this.super$ReplaceExpressionVisitor$visitBinaryOperationExpression(node); return t1; }, visitInterpolatedFunctionExpression$1(node) { return node; }, visitUnaryOperationExpression$1(node) { var t1, _0_0 = node.operator; $label0$0: { if (B.UnaryOperator_gg4 === _0_0) { t1 = node.operand; break $label0$0; } if (B.UnaryOperator_TLI === _0_0) { t1 = new A.BinaryOperationExpression(B.BinaryOperator_qN2, new A.NumberExpression(-1, null, node.span), node.operand, false); break $label0$0; } t1 = this.super$ReplaceExpressionVisitor$visitUnaryOperationExpression(node); break $label0$0; } return t1; } }; A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor.prototype = {}; A._FindDependenciesVisitor.prototype = { visitEachRule$1(node) { }, visitForRule$1(node) { }, visitIfRule$1(node) { }, visitWhileRule$1(node) { }, visitUseRule$1(node) { var t1 = node.url; if (t1.get$scheme() !== "sass") this._find_dependencies$_uses.add$1(0, t1); else if (t1.toString$0(0) === "sass:meta") this._metaNamespaces.add$1(0, node.namespace); }, visitForwardRule$1(node) { var t1 = node.url; if (t1.get$scheme() !== "sass") this._find_dependencies$_forwards.add$1(0, t1); }, visitImportRule$1(node) { var t1, t2, t3, _i, $import; for (t1 = node.imports, t2 = t1.length, t3 = this._imports, _i = 0; _i < t2; ++_i) { $import = t1[_i]; if ($import instanceof A.DynamicImport) t3.add$1(0, A.Uri_parse($import.urlString)); } }, visitIncludeRule$1(node) { var url, _0_0, _0_4, _0_7, t1, exception; if (node.name !== "load-css") return; if (!this._metaNamespaces.contains$1(0, node.namespace)) return; url = null; _0_0 = node.$arguments.positional; _0_4 = A._InitializedCell$(new A._FindDependenciesVisitor_visitIncludeRule_closure(_0_0)); _0_7 = A._InitializedCell$(new A._FindDependenciesVisitor_visitIncludeRule_closure0(_0_4)); if (_0_0.length === 1) if (_0_4._readFinal$0() instanceof A.StringExpression) if (_0_7._readFinal$0() != null) { url = _0_7._readFinal$0(); t1 = true; } else t1 = false; else t1 = false; else t1 = false; if (t1) try { this._metaLoadCss.add$1(0, A.Uri_parse(url)); } catch (exception) { if (!type$.FormatException._is(A.unwrapException(exception))) throw exception; } } }; A._FindDependenciesVisitor_visitIncludeRule_closure.prototype = { call$0() { return this._0_0[0]; }, $signature: 612 }; A._FindDependenciesVisitor_visitIncludeRule_closure0.prototype = { call$0() { return this._0_4._readFinal$0().text.get$asPlain(); }, $signature: 32 }; A.DependencyReport.prototype = {}; A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor.prototype = {}; A.RecursiveStatementVisitor.prototype = { visitAtRootRule$1(node) { this.visitChildren$1(node.children); }, visitAtRule$1(node) { return A.NullableExtension_andThen(node.children, this.get$visitChildren()); }, visitContentBlock$1(node) { return null; }, visitContentRule$1(node) { }, visitDebugRule$1(node) { }, visitDeclaration$1(node) { return A.NullableExtension_andThen(node.children, this.get$visitChildren()); }, visitEachRule$1(node) { return this.visitChildren$1(node.children); }, visitErrorRule$1(node) { }, visitExtendRule$1(node) { }, visitForRule$1(node) { return this.visitChildren$1(node.children); }, visitForwardRule$1(node) { }, visitFunctionRule$1(node) { return null; }, visitIfRule$1(node) { var t1, t2, _i, t3, t4, _i0, _0_0, lastClause; for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) for (t3 = t1[_i].children, t4 = t3.length, _i0 = 0; _i0 < t4; ++_i0) t3[_i0].accept$1(this); _0_0 = node.lastClause; if (_0_0 != null) { lastClause = _0_0; t1 = true; } else { lastClause = null; t1 = false; } if (t1) for (t1 = lastClause.children, t2 = t1.length, _i = 0; _i < t2; ++_i) t1[_i].accept$1(this); }, visitImportRule$1(node) { }, visitIncludeRule$1(node) { return A.NullableExtension_andThen(node.content, this.get$visitContentBlock()); }, visitLoudComment$1(node) { }, visitMediaRule$1(node) { return this.visitChildren$1(node.children); }, visitMixinRule$1(node) { return null; }, visitReturnRule$1(node) { }, visitSilentComment$1(node) { }, visitStyleRule$1(node) { return this.visitChildren$1(node.children); }, visitStylesheet$1(node) { return this.visitChildren$1(node.children); }, visitSupportsRule$1(node) { return this.visitChildren$1(node.children); }, visitUseRule$1(node) { }, visitVariableDeclaration$1(node) { }, visitWarnRule$1(node) { }, visitWhileRule$1(node) { return this.visitChildren$1(node.children); }, visitChildren$1(children) { var t1; for (t1 = J.get$iterator$ax(children); t1.moveNext$0();) t1.get$current(t1).accept$1(this); } }; A.ReplaceExpressionVisitor.prototype = { visitBinaryOperationExpression$1(node) { return new A.BinaryOperationExpression(node.operator, node.left.accept$1(this), node.right.accept$1(this), false); }, visitBooleanExpression$1(node) { return node; }, visitColorExpression$1(node) { return node; }, visitFunctionExpression$1(node) { return new A.FunctionExpression(node.namespace, node.originalName, this.visitArgumentInvocation$1(node.$arguments), node.span); }, visitInterpolatedFunctionExpression$1(node) { return new A.InterpolatedFunctionExpression(this.visitInterpolation$1(node.name), this.visitArgumentInvocation$1(node.$arguments), node.span); }, visitIfExpression$1(node) { return new A.IfExpression(this.visitArgumentInvocation$1(node.$arguments), node.span); }, visitListExpression$1(node) { var t1 = node.contents; 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); }, visitMapExpression$1(node) { var t2, t3, _i, t4, key, value, t1 = A._setArrayType([], type$.JSArray_Record_2_Expression_and_Expression); for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) { t4 = t2[_i]; key = t4._0; value = t4._1; t1.push(new A._Record_2(key.accept$1(this), value.accept$1(this))); } return new A.MapExpression(A.List_List$unmodifiable(t1, type$.Record_2_Expression_and_Expression), node.span); }, visitNullExpression$1(node) { return node; }, visitNumberExpression$1(node) { return node; }, visitParenthesizedExpression$1(node) { return new A.ParenthesizedExpression(node.expression.accept$1(this), node.span); }, visitSelectorExpression$1(node) { return node; }, visitStringExpression$1(node) { return new A.StringExpression(this.visitInterpolation$1(node.text), node.hasQuotes); }, visitSupportsExpression$1(node) { return new A.SupportsExpression(this.visitSupportsCondition$1(node.condition)); }, visitUnaryOperationExpression$1(node) { return new A.UnaryOperationExpression(node.operator, node.operand.accept$1(this), node.span); }, visitValueExpression$1(node) { return node; }, visitVariableExpression$1(node) { return node; }, visitArgumentInvocation$1(invocation) { var t5, t6, $name, value, _this = this, t1 = invocation.positional, t2 = type$.String, t3 = type$.Expression, t4 = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3); for (t5 = A.MapExtensions_get_pairs(invocation.named, t2, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) { t6 = t5.get$current(t5); $name = t6._0; value = t6._1; t4.$indexSet(0, $name, value.accept$1(_this)); } t5 = invocation.rest; t5 = t5 == null ? null : t5.accept$1(_this); t6 = invocation.keywordRest; t6 = t6 == null ? null : t6.accept$1(_this); 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); }, visitSupportsCondition$1(condition) { var _this = this; if (condition instanceof A.SupportsOperation) return A.SupportsOperation$(_this.visitSupportsCondition$1(condition.left), _this.visitSupportsCondition$1(condition.right), condition.operator, condition.span); else if (condition instanceof A.SupportsNegation) return new A.SupportsNegation(_this.visitSupportsCondition$1(condition.condition), condition.span); else if (condition instanceof A.SupportsInterpolation) return new A.SupportsInterpolation(condition.expression.accept$1(_this), condition.span); else if (condition instanceof A.SupportsDeclaration) return new A.SupportsDeclaration(condition.name.accept$1(_this), condition.value.accept$1(_this), condition.span); else throw A.wrapException(A.SassException$("BUG: Unknown SupportsCondition " + condition.toString$0(0) + ".", condition.get$span(condition), null)); }, visitInterpolation$1(interpolation) { var t1 = interpolation.contents; return A.Interpolation$(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitInterpolation_closure(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object>")), interpolation.span); } }; A.ReplaceExpressionVisitor_visitListExpression_closure.prototype = { call$1(item) { return item.accept$1(this.$this); }, $signature: 162 }; A.ReplaceExpressionVisitor_visitArgumentInvocation_closure.prototype = { call$1(expression) { return expression.accept$1(this.$this); }, $signature: 162 }; A.ReplaceExpressionVisitor_visitInterpolation_closure.prototype = { call$1(node) { return type$.Expression._is(node) ? node.accept$1(this.$this) : node; }, $signature: 69 }; A.SelectorSearchVisitor.prototype = { visitAttributeSelector$1(attribute) { return null; }, visitClassSelector$1(klass) { return null; }, visitIDSelector$1(id) { return null; }, visitParentSelector$1(placeholder) { return null; }, visitPlaceholderSelector$1(placeholder) { return null; }, visitTypeSelector$1(type) { return null; }, visitUniversalSelector$1(universal) { return null; }, visitComplexSelector$1(complex) { return A.IterableExtension_search(complex.components, new A.SelectorSearchVisitor_visitComplexSelector_closure(this)); }, visitCompoundSelector$1(compound) { return A.IterableExtension_search(compound.components, new A.SelectorSearchVisitor_visitCompoundSelector_closure(this)); }, visitPseudoSelector$1(pseudo) { return A.NullableExtension_andThen(pseudo.selector, this.get$visitSelectorList()); }, visitSelectorList$1(list) { return A.IterableExtension_search(list.components, this.get$visitComplexSelector()); } }; A.SelectorSearchVisitor_visitComplexSelector_closure.prototype = { call$1(component) { return this.$this.visitCompoundSelector$1(component.selector); }, $signature() { return A._instanceType(this.$this)._eval$1("SelectorSearchVisitor.T?(ComplexSelectorComponent)"); } }; A.SelectorSearchVisitor_visitCompoundSelector_closure.prototype = { call$1(simple) { return simple.accept$1(this.$this); }, $signature() { return A._instanceType(this.$this)._eval$1("SelectorSearchVisitor.T?(SimpleSelector)"); } }; A.serialize_closure.prototype = { call$1(codeUnit) { return codeUnit > 127; }, $signature: 47 }; A._SerializeVisitor.prototype = { visitCssStylesheet$1(node) { var t1, t2, t3, t4, t5, t6, previous, previous0, t7, _this = this; 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();) { previous0 = t1.get$current(t1); if (t2) t7 = t3 ? previous0.accept$1(B._IsInvisibleVisitor_true_true) : previous0.accept$1(B._IsInvisibleVisitor_true_false); else t7 = false; if (t7) continue; if (previous != null) { if (t5._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment)) t6.writeCharCode$1(59); if (_this._isTrailingComment$2(previous0, previous)) { if (t4) t6.writeCharCode$1(32); } else { if (t4) t6.write$1(0, "\n"); if (previous.get$isGroupEnd()) if (t4) t6.write$1(0, "\n"); } } previous0.accept$1(_this); previous = previous0; } if (previous != null) t1 = (t5._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment)) && t4; else t1 = false; if (t1) t6.writeCharCode$1(59); }, visitCssComment$1(node) { this._serialize$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssComment_closure(this, node)); }, visitCssAtRule$1(node) { var t1, _this = this; _this._writeIndentation$0(); t1 = _this._serialize$_buffer; t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssAtRule_closure(_this, node)); if (!node.isChildless) { if (_this._style !== B.OutputStyle_1) t1.writeCharCode$1(32); _this._serialize$_visitChildren$1(node); } }, visitCssMediaRule$1(node) { var t1, _this = this; _this._writeIndentation$0(); t1 = _this._serialize$_buffer; t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssMediaRule_closure(_this, node)); if (_this._style !== B.OutputStyle_1) t1.writeCharCode$1(32); _this._serialize$_visitChildren$1(node); }, visitCssImport$1(node) { this._writeIndentation$0(); this._serialize$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssImport_closure(this, node)); }, _writeImportUrl$1(url) { var urlContents, maybeQuote, _this = this; if (_this._style !== B.OutputStyle_1 || url.charCodeAt(0) !== 117) { _this._serialize$_buffer.write$1(0, url); return; } urlContents = B.JSString_methods.substring$2(url, 4, url.length - 1); maybeQuote = urlContents.charCodeAt(0); if (maybeQuote === 39 || maybeQuote === 34) _this._serialize$_buffer.write$1(0, urlContents); else _this._visitQuotedString$1(urlContents); }, visitCssKeyframeBlock$1(node) { var t1, _this = this; _this._writeIndentation$0(); t1 = _this._serialize$_buffer; t1.forSpan$2(node.selector.span, new A._SerializeVisitor_visitCssKeyframeBlock_closure(_this, node)); if (_this._style !== B.OutputStyle_1) t1.writeCharCode$1(32); _this._serialize$_visitChildren$1(node); }, _visitMediaQuery$1(query) { var modifier, t1, _1_0, type, _2_0, condition, operator, t2, _this = this, _0_0 = query.modifier; if (_0_0 != null) { modifier = _0_0; t1 = true; } else { modifier = null; t1 = false; } if (t1) { t1 = _this._serialize$_buffer; t1.write$1(0, modifier); t1.writeCharCode$1(32); } _1_0 = query.type; if (_1_0 != null) { type = _1_0; t1 = true; } else { type = null; t1 = false; } if (t1) { t1 = _this._serialize$_buffer; t1.write$1(0, type); if (query.conditions.length !== 0) t1.write$1(0, " and "); } _2_0 = query.conditions; if (_2_0.length === 1) t1 = B.JSString_methods.startsWith$1(_2_0[0], "(not "); else t1 = false; if (t1) { t1 = _this._serialize$_buffer; t1.write$1(0, "not "); condition = B.JSArray_methods.get$first(_2_0); t1.write$1(0, B.JSString_methods.substring$2(condition, 5, condition.length - 1)); } else { operator = query.conjunction ? "and" : "or"; t1 = _this._style === B.OutputStyle_1 ? operator + " " : " " + operator + " "; t2 = _this._serialize$_buffer; _this._writeBetween$3(_2_0, t1, t2.get$write(t2)); } }, visitCssStyleRule$1(node) { var t1, _this = this; _this._writeIndentation$0(); t1 = _this._serialize$_buffer; t1.forSpan$2(node._style_rule$_selector._box$_inner.value.span, new A._SerializeVisitor_visitCssStyleRule_closure(_this, node)); if (_this._style !== B.OutputStyle_1) t1.writeCharCode$1(32); _this._serialize$_visitChildren$1(node); }, visitCssSupportsRule$1(node) { var t1, _this = this; _this._writeIndentation$0(); t1 = _this._serialize$_buffer; t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssSupportsRule_closure(_this, node)); if (_this._style !== B.OutputStyle_1) t1.writeCharCode$1(32); _this._serialize$_visitChildren$1(node); }, visitCssDeclaration$1(node) { var error, stackTrace, error0, stackTrace0, t1, t2, exception, _this = this; _this._writeIndentation$0(); t1 = node.name; _this._serialize$_write$1(t1); t2 = _this._serialize$_buffer; t2.writeCharCode$1(58); if (J.startsWith$1$s(t1.value, "--") && node.parsedAsCustomProperty) t2.forSpan$2(node.value.span, new A._SerializeVisitor_visitCssDeclaration_closure(_this, node)); else { if (_this._style !== B.OutputStyle_1) t2.writeCharCode$1(32); try { t2.forSpan$2(node.valueSpanForMap, new A._SerializeVisitor_visitCssDeclaration_closure0(_this, node)); } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.MultiSpanSassScriptException) { error = t1; stackTrace = A.getTraceFromException(exception); A.throwWithTrace(A.MultiSpanSassException$(error.message, node.value.span, error.primaryLabel, error.secondarySpans, null), error, stackTrace); } else if (t1 instanceof A.SassScriptException) { error0 = t1; stackTrace0 = A.getTraceFromException(exception); t1 = error0.message; A.throwWithTrace(new A.SassException(B.Set_empty, t1, node.value.span), error0, stackTrace0); } else throw exception; } } }, _writeFoldedValue$1(node) { var t1, t2, next, t3, scanner = A.StringScanner$(type$.SassString._as(node.value.value)._string$_text, null, null); for (t1 = scanner.string.length, t2 = this._serialize$_buffer; scanner._string_scanner$_position !== t1;) { next = scanner.readChar$0(); if (next !== 10) { t2.writeCharCode$1(next); continue; } t2.writeCharCode$1(32); while (true) { t3 = scanner.peekChar$0(); if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12)) break; scanner.readChar$0(); } } }, _writeReindentedValue$1(node) { var _0_0, t1, _this = this, value = type$.SassString._as(node.value.value)._string$_text; $label0$0: { _0_0 = _this._minimumIndentation$1(value); if (_0_0 == null) { _this._serialize$_buffer.write$1(0, value); break $label0$0; } if (-1 === _0_0) { t1 = _this._serialize$_buffer; t1.write$1(0, A.trimAsciiRight(value, true)); t1.writeCharCode$1(32); break $label0$0; } t1 = node.name.span; t1 = t1.get$start(t1); _this._writeWithIndent$2(value, Math.min(_0_0, t1.file.getColumn$1(t1.offset))); } }, _minimumIndentation$1(text) { var character, t2, min, next, min0, scanner = A.LineScanner$(text), t1 = scanner.string.length; while (true) { if (scanner._string_scanner$_position !== t1) { character = scanner.super$StringScanner$readChar(); scanner._adjustLineAndColumn$1(character); t2 = character !== 10; } else t2 = false; if (!t2) break; } if (scanner._string_scanner$_position === t1) return scanner.peekChar$1(-1) === 10 ? -1 : null; for (min = null; scanner._string_scanner$_position !== t1;) { for (; scanner._string_scanner$_position !== t1;) { next = scanner.peekChar$0(); if (next !== 32 && next !== 9) break; scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar()); } if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10)) continue; min0 = scanner._line_scanner$_column; min = min == null ? min0 : Math.min(min, min0); while (true) { if (scanner._string_scanner$_position !== t1) { character = scanner.super$StringScanner$readChar(); scanner._adjustLineAndColumn$1(character); t2 = character !== 10; } else t2 = false; if (!t2) break; } } return min == null ? -1 : min; }, _writeWithIndent$2(text, minimumIndentation) { var t1, t2, t3, character, lineStart, newlines, end, scanner = A.LineScanner$(text); for (t1 = scanner.string, t2 = t1.length, t3 = this._serialize$_buffer; scanner._string_scanner$_position !== t2;) { character = scanner.super$StringScanner$readChar(); scanner._adjustLineAndColumn$1(character); if (character === 10) break; t3.writeCharCode$1(character); } for (; true;) { lineStart = scanner._string_scanner$_position; for (newlines = 1; true;) { if (scanner._string_scanner$_position === t2) { t3.writeCharCode$1(32); return; } $label0$2: { character = scanner.super$StringScanner$readChar(); scanner._adjustLineAndColumn$1(character); if (32 === character || 9 === character) continue; if (10 === character) { lineStart = scanner._string_scanner$_position; ++newlines; break $label0$2; } break; } } this._writeTimes$2(10, newlines); this._writeIndentation$0(); end = scanner._string_scanner$_position; t3.write$1(0, B.JSString_methods.substring$2(t1, lineStart + minimumIndentation, end)); for (; true;) { if (scanner._string_scanner$_position === t2) return; character = scanner.super$StringScanner$readChar(); scanner._adjustLineAndColumn$1(character); if (character === 10) break; t3.writeCharCode$1(character); } } }, visitCalculation$1(value) { var t2, _this = this, t1 = _this._serialize$_buffer; t1.write$1(0, value.name); t1.writeCharCode$1(40); t2 = _this._style === B.OutputStyle_1 ? "," : ", "; _this._writeBetween$3(value.$arguments, t2, _this.get$_writeCalculationValue()); t1.writeCharCode$1(41); }, _writeCalculationValue$1(value) { var _2_5, t1, _0_0, _1_0, unit, t2, operator, left, right, parenthesizeLeft, operatorWhitespace, parenthesizeRight, _this = this, _null = null; $label0$0: { _2_5 = A._InitializedCell$(new A._SerializeVisitor__writeCalculationValue_closure(value)); t1 = value instanceof A.SassNumber; if (t1 && _2_5._readFinal$0() && value.get$hasComplexUnits()) { if (!_this._inspect) throw A.wrapException(A.SassScriptException$(A.S(value) + " isn't a valid CSS value.", _null)); _this._writeNumber$1(value._number$_value); _this._serialize$_buffer.write$1(0, value.get$unitString()); break $label0$0; } if (t1 && _2_5._readFinal$0()) { $label1$1: { _0_0 = value._number$_value; if (1 / 0 === _0_0) { _this._serialize$_buffer.write$1(0, "infinity"); break $label1$1; } if (-1 / 0 === _0_0) { _this._serialize$_buffer.write$1(0, "-infinity"); break $label1$1; } if (isNaN(_0_0)) _this._serialize$_buffer.write$1(0, "NaN"); } _1_0 = A.IterableExtension_get_firstOrNull(J.get$numeratorUnits$x(value)); if (_1_0 != null) { unit = _1_0; t1 = true; } else { unit = _null; t1 = false; } if (t1) { t1 = _this._style !== B.OutputStyle_1; if (t1) _this._serialize$_buffer.writeCharCode$1(32); t2 = _this._serialize$_buffer; t2.writeCharCode$1(42); if (t1) t2.writeCharCode$1(32); t2.writeCharCode$1(49); t2.write$1(0, unit); } break $label0$0; } if (value instanceof A.Value) { value.accept$1(_this); break $label0$0; } if (value instanceof A.CalculationOperation) { operator = value._operator; left = value._left; right = value._right; right = right; t1 = true; } else { right = _null; left = right; operator = left; t1 = false; } if (t1) { parenthesizeLeft = left instanceof A.CalculationOperation && left._operator.precedence < operator.precedence; if (parenthesizeLeft) _this._serialize$_buffer.writeCharCode$1(40); _this._writeCalculationValue$1(left); if (parenthesizeLeft) _this._serialize$_buffer.writeCharCode$1(41); operatorWhitespace = _this._style !== B.OutputStyle_1 || operator.precedence === 1; if (operatorWhitespace) _this._serialize$_buffer.writeCharCode$1(32); t1 = _this._serialize$_buffer; t1.write$1(0, operator.operator); if (operatorWhitespace) t1.writeCharCode$1(32); if (!(right instanceof A.CalculationOperation && _this._parenthesizeCalculationRhs$2(operator, right._operator))) parenthesizeRight = operator === B.CalculationOperator_OvN && right instanceof A.SassNumber && !isFinite(right._number$_value) && right.get$hasUnits(); else parenthesizeRight = true; if (parenthesizeRight) t1.writeCharCode$1(40); _this._writeCalculationValue$1(right); if (parenthesizeRight) t1.writeCharCode$1(41); } } }, _parenthesizeCalculationRhs$2(outer, right) { var t1; $label0$0: { if (B.CalculationOperator_OvN === outer) { t1 = true; break $label0$0; } if (B.CalculationOperator_IyK === outer) { t1 = false; break $label0$0; } t1 = right === B.CalculationOperator_IyK || right === B.CalculationOperator_2bx; break $label0$0; } return t1; }, visitColor$1(value) { var hexLength, _0_0, $name, t1, _1_0, format, opaque, t2, _3_0, _this = this; if (_this._style === B.OutputStyle_1) if (!A.fuzzyEquals(value._alpha, 1)) _this._writeRgb$1(value); else { hexLength = _this._canUseShortHex$1(value) ? 4 : 7; _0_0 = $.$get$namesByColor().$index(0, value); if (_0_0 != null) { $name = _0_0; t1 = true; } else { $name = null; t1 = false; } if (t1 && $name.length <= hexLength) _this._serialize$_buffer.write$1(0, $name); else { t1 = _this._serialize$_buffer; if (_this._canUseShortHex$1(value)) { t1.writeCharCode$1(35); t1.writeCharCode$1(A.hexCharFor(value.get$red(value) & 15)); t1.writeCharCode$1(A.hexCharFor(value.get$green(value) & 15)); t1.writeCharCode$1(A.hexCharFor(value.get$blue(value) & 15)); } else { t1.writeCharCode$1(35); _this._writeHexComponent$1(value.get$red(value)); _this._writeHexComponent$1(value.get$green(value)); _this._writeHexComponent$1(value.get$blue(value)); } } } else { _1_0 = value.format; if (_1_0 != null) { format = _1_0; t1 = true; } else { format = null; t1 = false; } if (t1) $label0$0: { if (B._ColorFormatEnum_rgbFunction === format) { _this._writeRgb$1(value); break $label0$0; } if (B._ColorFormatEnum_hslFunction === format) { t1 = value._alpha; opaque = A.fuzzyEquals(t1, 1); t2 = _this._serialize$_buffer; t2.write$1(0, opaque ? "hsl(" : "hsla("); _this._writeNumber$1(value.get$hue(value)); t2.write$1(0, ", "); _this._writeNumber$1(value.get$saturation(value)); t2.writeCharCode$1(37); t2.write$1(0, ", "); _this._writeNumber$1(value.get$lightness(value)); t2.writeCharCode$1(37); if (!opaque) { t2.write$1(0, ", "); _this._writeNumber$1(t1); } t2.writeCharCode$1(41); break $label0$0; } if (format instanceof A.SpanColorFormat) { _this._serialize$_buffer.write$1(0, format._color$_span.get$text()); break $label0$0; } } else { _3_0 = $.$get$namesByColor().$index(0, value); if (_3_0 != null) { $name = _3_0; t1 = true; } else { $name = null; t1 = false; } if (t1 && !A.fuzzyEquals(value._alpha, 0)) _this._serialize$_buffer.write$1(0, $name); else if (A.fuzzyEquals(value._alpha, 1)) { _this._serialize$_buffer.writeCharCode$1(35); _this._writeHexComponent$1(value.get$red(value)); _this._writeHexComponent$1(value.get$green(value)); _this._writeHexComponent$1(value.get$blue(value)); } else _this._writeRgb$1(value); } } }, _writeRgb$1(value) { var t3, t1 = value._alpha, opaque = A.fuzzyEquals(t1, 1), t2 = this._serialize$_buffer; t2.write$1(0, opaque ? "rgb(" : "rgba("); t2.write$1(0, value.get$red(value)); t3 = this._style === B.OutputStyle_1; t2.write$1(0, t3 ? "," : ", "); t2.write$1(0, value.get$green(value)); t2.write$1(0, t3 ? "," : ", "); t2.write$1(0, value.get$blue(value)); if (!opaque) { t2.write$1(0, t3 ? "," : ", "); this._writeNumber$1(t1); } t2.writeCharCode$1(41); }, _canUseShortHex$1(color) { var t1 = color.get$red(color); if ((t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4)) { t1 = color.get$green(color); if ((t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4)) { t1 = color.get$blue(color); t1 = (t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4); } else t1 = false; } else t1 = false; return t1; }, _writeHexComponent$1(color) { var t1 = this._serialize$_buffer; t1.writeCharCode$1(A.hexCharFor(B.JSInt_methods._shrOtherPositive$1(color, 4))); t1.writeCharCode$1(A.hexCharFor(color & 15)); }, visitList$1(value) { var t2, t3, singleton, t4, t5, _this = this, t1 = value._hasBrackets; if (t1) _this._serialize$_buffer.writeCharCode$1(91); else if (value._list$_contents.length === 0) { if (!_this._inspect) throw A.wrapException(A.SassScriptException$("() isn't a valid CSS value.", null)); _this._serialize$_buffer.write$1(0, "()"); return; } t2 = _this._inspect; if (t2) if (value._list$_contents.length === 1) { t3 = value._separator; t3 = t3 === B.ListSeparator_rXA || t3 === B.ListSeparator_zg9; singleton = t3; } else singleton = false; else singleton = false; if (singleton && !t1) _this._serialize$_buffer.writeCharCode$1(40); t3 = value._list$_contents; t3 = t2 ? t3 : new A.WhereIterable(t3, new A._SerializeVisitor_visitList_closure(), A._arrayInstanceType(t3)._eval$1("WhereIterable<1>")); t4 = value._separator; t5 = _this._separatorString$1(t4); _this._writeBetween$3(t3, t5, t2 ? new A._SerializeVisitor_visitList_closure0(_this, value) : new A._SerializeVisitor_visitList_closure1(_this)); if (singleton) { t2 = _this._serialize$_buffer; t2.write$1(0, t4.separator); if (!t1) t2.writeCharCode$1(41); } if (t1) _this._serialize$_buffer.writeCharCode$1(93); }, _separatorString$1(separator) { var t1; $label0$0: { if (B.ListSeparator_rXA === separator) { t1 = this._style === B.OutputStyle_1 ? "," : ", "; break $label0$0; } if (B.ListSeparator_zg9 === separator) { t1 = this._style === B.OutputStyle_1 ? "/" : " / "; break $label0$0; } if (B.ListSeparator_EVt === separator) { t1 = " "; break $label0$0; } t1 = ""; break $label0$0; } return t1; }, _elementNeedsParens$2(separator, value) { var t1; $label1$1: { if (value instanceof A.SassList && value._list$_contents.length > 1 && !value._hasBrackets) { $label0$0: { if (B.ListSeparator_rXA === separator) { t1 = value._separator === B.ListSeparator_rXA; break $label0$0; } if (B.ListSeparator_zg9 === separator) { t1 = value._separator; t1 = t1 === B.ListSeparator_rXA || t1 === B.ListSeparator_zg9; break $label0$0; } t1 = value._separator !== B.ListSeparator_undecided_null_undecided; break $label0$0; } break $label1$1; } t1 = false; break $label1$1; } return t1; }, visitMap$1(map) { var t1, t2, _this = this; if (!_this._inspect) throw A.wrapException(A.SassScriptException$(map.toString$0(0) + " isn't a valid CSS value.", null)); t1 = _this._serialize$_buffer; t1.writeCharCode$1(40); t2 = map._map$_contents; _this._writeBetween$3(t2.get$entries(t2), ", ", new A._SerializeVisitor_visitMap_closure(_this)); t1.writeCharCode$1(41); }, _writeMapElement$1(value) { var needsParens = value instanceof A.SassList && value._separator === B.ListSeparator_rXA && !value._hasBrackets; if (needsParens) this._serialize$_buffer.writeCharCode$1(40); value.accept$1(this); if (needsParens) this._serialize$_buffer.writeCharCode$1(41); }, visitNumber$1(value) { var before, after, t1, _1_0, first, _this = this, _null = null, _0_0 = value.asSlash; if (type$.Record_2_nullable_Object_and_nullable_Object._is(_0_0)) { before = _0_0._0; after = _0_0._1; t1 = true; } else { after = _null; before = after; t1 = false; } if (t1) { _this.visitNumber$1(before); _this._serialize$_buffer.writeCharCode$1(47); _this.visitNumber$1(after); return; } t1 = value._number$_value; if (!isFinite(t1)) { _this.visitCalculation$1(new A.SassCalculation("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object))); return; } _this._writeNumber$1(t1); if (!_this._inspect) { if (value.get$hasComplexUnits()) throw A.wrapException(A.SassScriptException$(value.toString$0(0) + " isn't a valid CSS value.", _null)); _1_0 = value.get$numeratorUnits(value); if (_1_0.length === 1) { first = _1_0[0]; t1 = true; } else { first = _null; t1 = false; } if (t1) _this._serialize$_buffer.write$1(0, first); } else _this._serialize$_buffer.write$1(0, value.get$unitString()); }, _writeNumber$1(number) { var integer, t1, text, _this = this, _0_0 = A.fuzzyAsInt(number); if (_0_0 != null) { integer = _0_0; t1 = true; } else { integer = null; t1 = false; } if (t1) { _this._serialize$_buffer.write$1(0, _this._removeExponent$1(J.toString$0$(integer))); return; } text = _this._removeExponent$1(B.JSNumber_methods.toString$0(number)); if (text.length < 12) { if (_this._style === B.OutputStyle_1 && text.charCodeAt(0) === 48) text = B.JSString_methods.substring$1(text, 1); _this._serialize$_buffer.write$1(0, text); return; } _this._writeRounded$1(text); }, _removeExponent$1(text) { var buffer, t2, t3, additionalZeroes, negative = text.charCodeAt(0) === 45, exponent = A._Cell$(), t1 = text.length, i = 0; while (true) { if (!(i < t1)) { buffer = null; break; } c$0: { if (text.charCodeAt(i) !== 101) break c$0; buffer = new A.StringBuffer(""); t2 = buffer._contents = "" + A.Primitives_stringFromCharCode(text.charCodeAt(0)); if (negative) { t2 += A.Primitives_stringFromCharCode(text.charCodeAt(1)); buffer._contents = t2; if (i > 3) buffer._contents = t2 + B.JSString_methods.substring$2(text, 3, i); } else if (i > 2) buffer._contents = t2 + B.JSString_methods.substring$2(text, 2, i); exponent._value = A.int_parse(B.JSString_methods.substring$2(text, i + 1, t1), null); break; } ++i; } if (buffer == null) return text; if (exponent._readLocal$0() > 0) { t1 = exponent._readLocal$0(); t2 = buffer._contents; t3 = negative ? 1 : 0; additionalZeroes = t1 - (t2.length - 1 - t3); for (t1 = t2, i = 0; i < additionalZeroes; ++i) t1 = buffer._contents += A.Primitives_stringFromCharCode(48); return t1.charCodeAt(0) == 0 ? t1 : t1; } else { negative = text.charCodeAt(0) === 45; t1 = (negative ? "" + A.Primitives_stringFromCharCode(45) : "") + "0."; t2 = exponent.__late_helper$_name; i = -1; while (true) { t3 = exponent._value; if (t3 === exponent) A.throwExpression(A.LateError$localNI(t2)); if (!(i > t3)) break; t1 += A.Primitives_stringFromCharCode(48); --i; } if (negative) { t2 = buffer._contents; t2 = B.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1); } else t2 = buffer; t2 = t1 + A.S(t2); return t2.charCodeAt(0) == 0 ? t2 : t2; } }, _writeRounded$1(text) { var t1, digits, negative, textIndex, digitsIndex, textIndex0, codeUnit, digitsIndex0, indexAfterPrecision, digitsIndex1, newDigit, writtenIndex, t2, _this = this; if (B.JSString_methods.endsWith$1(text, ".0")) { _this._serialize$_buffer.write$1(0, B.JSString_methods.substring$2(text, 0, text.length - 2)); return; } t1 = text.length; digits = new Uint8Array(t1 + 1); negative = text.charCodeAt(0) === 45; textIndex = negative ? 1 : 0; for (digitsIndex = 1; true; textIndex = textIndex0, digitsIndex = digitsIndex0) { if (textIndex === t1) { _this._serialize$_buffer.write$1(0, text); return; } textIndex0 = textIndex + 1; codeUnit = text.charCodeAt(textIndex); if (codeUnit === 46) { textIndex = textIndex0; break; } digitsIndex0 = digitsIndex + 1; digits[digitsIndex] = codeUnit - 48; } indexAfterPrecision = textIndex + 10; if (indexAfterPrecision >= t1) { _this._serialize$_buffer.write$1(0, text); return; } for (digitsIndex0 = digitsIndex; textIndex < indexAfterPrecision; textIndex = textIndex0, digitsIndex0 = digitsIndex1) { digitsIndex1 = digitsIndex0 + 1; textIndex0 = textIndex + 1; digits[digitsIndex0] = text.charCodeAt(textIndex) - 48; } if (text.charCodeAt(textIndex) - 48 >= 5) for (; true; digitsIndex0 = digitsIndex1) { digitsIndex1 = digitsIndex0 - 1; newDigit = digits[digitsIndex1] + 1; digits[digitsIndex1] = newDigit; if (newDigit !== 10) break; } for (; digitsIndex0 < digitsIndex; ++digitsIndex0) digits[digitsIndex0] = 0; while (true) { t1 = digitsIndex0 > digitsIndex; if (!(t1 && digits[digitsIndex0 - 1] === 0)) break; --digitsIndex0; } if (digitsIndex0 === 2 && digits[0] === 0 && digits[1] === 0) { _this._serialize$_buffer.writeCharCode$1(48); return; } if (negative) _this._serialize$_buffer.writeCharCode$1(45); if (digits[0] === 0) writtenIndex = _this._style === B.OutputStyle_1 && digits[1] === 0 ? 2 : 1; else writtenIndex = 0; for (t2 = _this._serialize$_buffer; writtenIndex < digitsIndex; ++writtenIndex) t2.writeCharCode$1(48 + digits[writtenIndex]); if (t1) { t2.writeCharCode$1(46); for (; writtenIndex < digitsIndex0; ++writtenIndex) t2.writeCharCode$1(48 + digits[writtenIndex]); } }, _visitQuotedString$2$forceDoubleQuote(string, forceDoubleQuote) { var t1, includesSingleQuote, includesDoubleQuote, i, char, _1_2, _1_4, _0_0, newIndex, t2, quote, _this = this, buffer = forceDoubleQuote ? _this._serialize$_buffer : new A.StringBuffer(""); if (forceDoubleQuote) buffer.writeCharCode$1(34); for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) { char = string.charCodeAt(i); _1_2 = A._InitializedCell$(new A._SerializeVisitor__visitQuotedString_closure(char)); _1_4 = A._InitializedCell$(new A._SerializeVisitor__visitQuotedString_closure0(char)); if (_1_2._readFinal$0() && forceDoubleQuote) { buffer.writeCharCode$1(39); continue; } if (_1_2._readFinal$0() && includesDoubleQuote) { _this._visitQuotedString$2$forceDoubleQuote(string, true); return; } if (_1_2._readFinal$0()) { buffer.writeCharCode$1(39); includesSingleQuote = true; continue; } if (_1_4._readFinal$0() && forceDoubleQuote) { buffer.writeCharCode$1(92); buffer.writeCharCode$1(34); continue; } if (_1_4._readFinal$0() && includesSingleQuote) { _this._visitQuotedString$2$forceDoubleQuote(string, true); return; } if (_1_4._readFinal$0()) { buffer.writeCharCode$1(34); includesDoubleQuote = true; continue; } 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) { _this._writeEscape$4(buffer, char, string, i); continue; } if (92 === char) { buffer.writeCharCode$1(92); buffer.writeCharCode$1(92); continue; } _0_0 = _this._tryPrivateUseCharacter$4(buffer, char, string, i); if (_0_0 != null) { newIndex = _0_0; t2 = true; } else { newIndex = null; t2 = false; } if (t2) i = newIndex; else buffer.writeCharCode$1(char); } if (forceDoubleQuote) buffer.writeCharCode$1(34); else { quote = includesDoubleQuote ? 39 : 34; t1 = _this._serialize$_buffer; t1.writeCharCode$1(quote); t1.write$1(0, buffer); t1.writeCharCode$1(quote); } }, _visitQuotedString$1(string) { return this._visitQuotedString$2$forceDoubleQuote(string, false); }, _visitUnquotedString$1(string) { var t1, t2, afterNewline, i, _1_0, _0_0, newIndex, t3; for (t1 = string.length, t2 = this._serialize$_buffer, afterNewline = false, i = 0; i < t1; ++i) { _1_0 = string.charCodeAt(i); if (10 === _1_0) { t2.writeCharCode$1(32); afterNewline = true; continue; } if (32 === _1_0) { if (!afterNewline) t2.writeCharCode$1(32); continue; } _0_0 = this._tryPrivateUseCharacter$4(t2, _1_0, string, i); if (_0_0 != null) { newIndex = _0_0; t3 = true; } else { newIndex = null; t3 = false; } if (t3) i = newIndex; else t2.writeCharCode$1(_1_0); afterNewline = false; } }, _tryPrivateUseCharacter$4(buffer, codeUnit, string, i) { var t1; if (this._style === B.OutputStyle_1) return null; if (codeUnit >= 57344 && codeUnit <= 63743) { this._writeEscape$4(buffer, codeUnit, string, i); return i; } if (codeUnit >>> 7 === 439 && string.length > i + 1) { t1 = i + 1; this._writeEscape$4(buffer, 65536 + ((codeUnit & 1023) << 10) + (string.charCodeAt(t1) & 1023), string, t1); return t1; } return null; }, _writeEscape$4(buffer, character, string, i) { var t1, next; buffer.writeCharCode$1(92); buffer.write$1(0, B.JSInt_methods.toRadixString$1(character, 16)); t1 = i + 1; if (string.length === t1) return; next = string.charCodeAt(t1); if (A.CharacterExtension_get_isHex(next) || 32 === next || 9 === next) buffer.writeCharCode$1(32); }, visitAttributeSelector$1(attribute) { var _0_0, value, t2, t1 = this._serialize$_buffer; t1.writeCharCode$1(91); t1.write$1(0, attribute.name); _0_0 = attribute.value; if (_0_0 != null) { value = _0_0; t2 = true; } else { value = null; t2 = false; } if (t2) { t1.write$1(0, attribute.op); if (A.Parser_isIdentifier(value) && !J.startsWith$1$s(value, "--")) { t1.write$1(0, value); t2 = attribute.modifier; if (t2 != null) t1.writeCharCode$1(32); } else { this._visitQuotedString$1(value); t2 = attribute.modifier; if (t2 != null) if (this._style !== B.OutputStyle_1) t1.writeCharCode$1(32); } A.NullableExtension_andThen(t2, t1.get$write(t1)); } t1.writeCharCode$1(93); }, visitClassSelector$1(klass) { var t1 = this._serialize$_buffer; t1.writeCharCode$1(46); t1.write$1(0, klass.name); }, visitComplexSelector$1(complex) { var t2, t3, t4, t5, t6, i, component, t7, t8, t9, _this = this, t1 = complex.leadingCombinators; _this._writeCombinators$1(t1); if (t1.length >= 1 && complex.components.length >= 1) if (_this._style !== B.OutputStyle_1) _this._serialize$_buffer.writeCharCode$1(32); 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) { component = t1[i]; _this.visitCompoundSelector$1(component.selector); t7 = component.combinators; t8 = t7.length === 0; if (!t8) if (t6) t4.writeCharCode$1(32); t9 = t5 ? "" : " "; _this._writeBetween$3(t7, t9, t4.get$write(t4)); if (i !== t3) t7 = !t5 || t8; else t7 = false; if (t7) t4.writeCharCode$1(32); } }, _writeCombinators$1(combinators) { var t1 = this._style === B.OutputStyle_1 ? "" : " ", t2 = this._serialize$_buffer; return this._writeBetween$3(combinators, t1, t2.get$write(t2)); }, visitCompoundSelector$1(compound) { var t2, t3, _i, t1 = this._serialize$_buffer, start = t1.get$length(t1); for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i) t2[_i].accept$1(this); if (t1.get$length(t1) === start) t1.writeCharCode$1(42); }, visitIDSelector$1(id) { var t1 = this._serialize$_buffer; t1.writeCharCode$1(35); t1.write$1(0, id.name); }, visitSelectorList$1(list) { var t1, t2, t3, first, t4, _this = this, complexes = list.components; 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();) { t4 = t1.get$current(t1); if (first) first = false; else { t3.writeCharCode$1(44); if (t4.lineBreak) { if (t2) t3.write$1(0, "\n"); _this._writeIndentation$0(); } else if (t2) t3.writeCharCode$1(32); } _this.visitComplexSelector$1(t4); } }, visitParentSelector$1($parent) { var t1 = this._serialize$_buffer; t1.writeCharCode$1(38); A.NullableExtension_andThen($parent.suffix, t1.get$write(t1)); }, visitPlaceholderSelector$1(placeholder) { var t1 = this._serialize$_buffer; t1.writeCharCode$1(37); t1.write$1(0, placeholder.name); }, visitPseudoSelector$1(pseudo) { var t2, t3, _0_4 = A._InitializedCell$(new A._SerializeVisitor_visitPseudoSelector_closure(pseudo)), t1 = pseudo.name; if ("not" === t1 && _0_4._readFinal$0() instanceof A.SelectorList && _0_4._readFinal$0().accept$1(B._IsInvisibleVisitor_true)) return; t2 = this._serialize$_buffer; t2.writeCharCode$1(58); if (!pseudo.isSyntacticClass) t2.writeCharCode$1(58); t2.write$1(0, t1); t1 = pseudo.argument; t3 = t1 == null; if (t3 && pseudo.selector == null) return; t2.writeCharCode$1(40); if (!t3) { t2.write$1(0, t1); if (pseudo.selector != null) t2.writeCharCode$1(32); } A.NullableExtension_andThen(pseudo.selector, this.get$visitSelectorList()); t2.writeCharCode$1(41); }, visitTypeSelector$1(type) { this._serialize$_buffer.write$1(0, type.name); }, visitUniversalSelector$1(universal) { var t2, t1 = universal.namespace; if (t1 != null) { t2 = this._serialize$_buffer; t2.write$1(0, t1); t2.writeCharCode$1(124); } this._serialize$_buffer.writeCharCode$1(42); }, _serialize$_write$1(value) { return this._serialize$_buffer.forSpan$2(value.span, new A._SerializeVisitor__write_closure(this, value)); }, _serialize$_visitChildren$1($parent) { var t2, t3, t4, t5, t6, t7, prePrevious, previous, t8, previous0, t9, savedIndentation, _this = this, t1 = _this._serialize$_buffer; t1.writeCharCode$1(123); for (t2 = $parent.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = _this._style === B.OutputStyle_1, t4 = !t3, t5 = _this.get$_requiresSemicolon(), t6 = !_this._inspect, t7 = A._instanceType(t2)._precomputed1, prePrevious = null, previous = null; t2.moveNext$0();) { t8 = t2.__internal$_current; previous0 = t8 == null ? t7._as(t8) : t8; if (t6) t8 = t3 ? previous0.accept$1(B._IsInvisibleVisitor_true_true) : previous0.accept$1(B._IsInvisibleVisitor_true_false); else t8 = false; if (t8) continue; t8 = previous == null; t9 = t8 ? null : t5.call$1(previous); if (t9 == null ? false : t9) t1.writeCharCode$1(59); if (_this._isTrailingComment$2(previous0, t8 ? $parent : previous)) { if (t4) t1.writeCharCode$1(32); savedIndentation = _this._indentation; _this._indentation = 0; new A._SerializeVisitor__visitChildren_closure(_this, previous0).call$0(); _this._indentation = savedIndentation; } else { if (t4) t1.write$1(0, "\n"); ++_this._indentation; new A._SerializeVisitor__visitChildren_closure0(_this, previous0).call$0(); --_this._indentation; } prePrevious = previous; previous = previous0; } if (previous != null) { if ((type$.CssParentNode._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment)) && t4) t1.writeCharCode$1(59); if (prePrevious == null && _this._isTrailingComment$2(previous, $parent)) { if (t4) t1.writeCharCode$1(32); } else { _this._writeLineFeed$0(); _this._writeIndentation$0(); } } t1.writeCharCode$1(125); }, _requiresSemicolon$1(node) { return type$.CssParentNode._is(node) ? node.get$isChildless() : !(node instanceof A.ModifiableCssComment); }, _isTrailingComment$2(node, previous) { var t1, t2, t3, searchFrom, endOffset, t4, span; if (this._style === B.OutputStyle_1) return false; if (!(node instanceof A.ModifiableCssComment)) return false; t1 = node.span; t2 = t1.get$sourceUrl(t1); t3 = previous.get$span(previous); if (!J.$eq$(t2, t3.get$sourceUrl(t3))) return false; t2 = previous.get$span(previous); 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)) { t1 = t1.get$start(t1); t1 = t1.file.getLine$1(t1.offset); t2 = previous.get$span(previous); t2 = t2.get$end(t2); return t1 === t2.file.getLine$1(t2.offset); } t2 = t1.get$start(t1); t3 = previous.get$span(previous); searchFrom = t2.offset - t3.get$start(t3).offset - 1; if (searchFrom < 0) return false; endOffset = Math.max(0, B.JSString_methods.lastIndexOf$2(previous.get$span(previous).get$text(), "{", searchFrom)); t2 = previous.get$span(previous); t2 = t2.get$file(t2); t3 = previous.get$span(previous); t3 = t3.get$start(t3); t4 = previous.get$span(previous); span = t2.span$2(0, t3.offset, t4.get$start(t4).offset + endOffset); t1 = t1.get$start(t1); t1 = t1.file.getLine$1(t1.offset); t4 = A.FileLocation$_(span.file, span._end); return t1 === t4.file.getLine$1(t4.offset); }, _writeLineFeed$0() { if (this._style !== B.OutputStyle_1) this._serialize$_buffer.write$1(0, "\n"); }, _writeIndentation$0() { var _this = this; if (_this._style === B.OutputStyle_1) return; _this._writeTimes$2(_this._indentCharacter, _this._indentation * _this._indentWidth); }, _writeTimes$2(char, times) { var t1, i; for (t1 = this._serialize$_buffer, i = 0; i < times; ++i) t1.writeCharCode$1(char); }, _writeBetween$1$3(iterable, text, callback) { var t1, t2, first, value; for (t1 = J.get$iterator$ax(iterable), t2 = this._serialize$_buffer, first = true; t1.moveNext$0();) { value = t1.get$current(t1); if (first) first = false; else t2.write$1(0, text); callback.call$1(value); } }, _writeBetween$3(iterable, text, callback) { return this._writeBetween$1$3(iterable, text, callback, type$.dynamic); } }; A._SerializeVisitor_visitCssComment_closure.prototype = { call$0() { var t2, t3, _0_0, minimumIndentation, t4, t1 = this.$this; if (t1._style === B.OutputStyle_1 && this.node.text.charCodeAt(2) !== 33) return; t2 = this.node; t3 = t2.text; if (B.JSString_methods.startsWith$1(t3, A.RegExp_RegExp("/\\*# source(Mapping)?URL=", false))) return; _0_0 = t1._minimumIndentation$1(t3); if (_0_0 != null) { minimumIndentation = _0_0; t4 = true; } else { minimumIndentation = null; t4 = false; } if (t4) { t2 = t2.span; t2 = t2.get$start(t2); t2 = t2.file.getColumn$1(t2.offset); minimumIndentation = Math.min(A.checkNum(minimumIndentation), t2); t1._writeIndentation$0(); t1._writeWithIndent$2(t3, minimumIndentation); } else { t1._writeIndentation$0(); t1._serialize$_buffer.write$1(0, t3); } }, $signature: 2 }; A._SerializeVisitor_visitCssAtRule_closure.prototype = { call$0() { var t3, _0_0, value, t1 = this.$this, t2 = t1._serialize$_buffer; t2.writeCharCode$1(64); t3 = this.node; t1._serialize$_write$1(t3.name); _0_0 = t3.value; if (_0_0 != null) { value = _0_0; t3 = true; } else { value = null; t3 = false; } if (t3) { t2.writeCharCode$1(32); t1._serialize$_write$1(value); } }, $signature: 2 }; A._SerializeVisitor_visitCssMediaRule_closure.prototype = { call$0() { var t3, firstQuery, t4, t5, t1 = this.$this, t2 = t1._serialize$_buffer; t2.write$1(0, "@media"); t3 = this.node.queries; firstQuery = B.JSArray_methods.get$first(t3); t4 = t1._style === B.OutputStyle_1; if (t4) if (firstQuery.modifier == null) if (firstQuery.type == null) { t5 = firstQuery.conditions; t5 = t5.length === 1 && J.startsWith$1$s(B.JSArray_methods.get$first(t5), "(not "); } else t5 = true; else t5 = true; else t5 = true; if (t5) t2.writeCharCode$1(32); t2 = t4 ? "," : ", "; t1._writeBetween$3(t3, t2, t1.get$_visitMediaQuery()); }, $signature: 2 }; A._SerializeVisitor_visitCssImport_closure.prototype = { call$0() { var t3, t4, _0_0, modifiers, t1 = this.$this, t2 = t1._serialize$_buffer; t2.write$1(0, "@import"); t3 = t1._style !== B.OutputStyle_1; if (t3) t2.writeCharCode$1(32); t4 = this.node; t2.forSpan$2(t4.url.span, new A._SerializeVisitor_visitCssImport__closure(t1, t4)); _0_0 = t4.modifiers; if (_0_0 != null) { modifiers = _0_0; t1 = true; } else { modifiers = null; t1 = false; } if (t1) { if (t3) t2.writeCharCode$1(32); t2.write$1(0, modifiers); } }, $signature: 2 }; A._SerializeVisitor_visitCssImport__closure.prototype = { call$0() { return this.$this._writeImportUrl$1(this.node.url.value); }, $signature: 0 }; A._SerializeVisitor_visitCssKeyframeBlock_closure.prototype = { call$0() { var t1 = this.$this, t2 = t1._style === B.OutputStyle_1 ? "," : ", ", t3 = t1._serialize$_buffer; return t1._writeBetween$3(this.node.selector.value, t2, t3.get$write(t3)); }, $signature: 0 }; A._SerializeVisitor_visitCssStyleRule_closure.prototype = { call$0() { return this.$this.visitSelectorList$1(this.node._style_rule$_selector._box$_inner.value); }, $signature: 0 }; A._SerializeVisitor_visitCssSupportsRule_closure.prototype = { call$0() { var t1 = this.$this, t2 = t1._serialize$_buffer; t2.write$1(0, "@supports"); if (!(t1._style === B.OutputStyle_1 && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40)) t2.writeCharCode$1(32); t1._serialize$_write$1(this.node.condition); }, $signature: 2 }; A._SerializeVisitor_visitCssDeclaration_closure.prototype = { call$0() { var t1 = this.$this, t2 = this.node; if (t1._style === B.OutputStyle_1) t1._writeFoldedValue$1(t2); else t1._writeReindentedValue$1(t2); }, $signature: 2 }; A._SerializeVisitor_visitCssDeclaration_closure0.prototype = { call$0() { return this.node.value.value.accept$1(this.$this); }, $signature: 0 }; A._SerializeVisitor__writeCalculationValue_closure.prototype = { call$0() { return !isFinite(this._2_0._number$_value); }, $signature: 1 }; A._SerializeVisitor_visitList_closure.prototype = { call$1(element) { return !element.get$isBlank(); }, $signature: 79 }; A._SerializeVisitor_visitList_closure0.prototype = { call$1(element) { var t1 = this.$this, needsParens = t1._elementNeedsParens$2(this.value._separator, element); if (needsParens) t1._serialize$_buffer.writeCharCode$1(40); element.accept$1(t1); if (needsParens) t1._serialize$_buffer.writeCharCode$1(41); }, $signature: 63 }; A._SerializeVisitor_visitList_closure1.prototype = { call$1(element) { element.accept$1(this.$this); }, $signature: 63 }; A._SerializeVisitor_visitMap_closure.prototype = { call$1(entry) { var t1 = this.$this; t1._writeMapElement$1(entry.key); t1._serialize$_buffer.write$1(0, ": "); t1._writeMapElement$1(entry.value); }, $signature: 647 }; A._SerializeVisitor__visitQuotedString_closure.prototype = { call$0() { return 39 === this._1_0; }, $signature: 1 }; A._SerializeVisitor__visitQuotedString_closure0.prototype = { call$0() { return 34 === this._1_0; }, $signature: 1 }; A._SerializeVisitor_visitSelectorList_closure.prototype = { call$1(complex) { return !complex.accept$1(B._IsInvisibleVisitor_true); }, $signature: 19 }; A._SerializeVisitor_visitPseudoSelector_closure.prototype = { call$0() { return this._0_0.selector; }, $signature: 75 }; A._SerializeVisitor__write_closure.prototype = { call$0() { return this.$this._serialize$_buffer.write$1(0, this.value.value); }, $signature: 0 }; A._SerializeVisitor__visitChildren_closure.prototype = { call$0() { return this.child.accept$1(this.$this); }, $signature: 0 }; A._SerializeVisitor__visitChildren_closure0.prototype = { call$0() { this.child.accept$1(this.$this); }, $signature: 0 }; A.OutputStyle.prototype = { _enumToString$0() { return "OutputStyle." + this._name; } }; A.LineFeed.prototype = { _enumToString$0() { return "LineFeed." + this._name; }, toString$0(_) { return "lf"; } }; A.StatementSearchVisitor.prototype = { visitAtRootRule$1(node) { return this.visitChildren$1(node.children); }, visitAtRule$1(node) { return A.NullableExtension_andThen(node.children, this.get$visitChildren()); }, visitContentBlock$1(node) { return this.visitChildren$1(node.children); }, visitContentRule$1(node) { return null; }, visitDebugRule$1(node) { return null; }, visitDeclaration$1(node) { return A.NullableExtension_andThen(node.children, this.get$visitChildren()); }, visitEachRule$1(node) { return this.visitChildren$1(node.children); }, visitErrorRule$1(node) { return null; }, visitExtendRule$1(node) { return null; }, visitForRule$1(node) { return this.visitChildren$1(node.children); }, visitForwardRule$1(node) { return null; }, visitFunctionRule$1(node) { return this.visitChildren$1(node.children); }, visitIfRule$1(node) { var t1 = A.IterableExtension_search(node.clauses, new A.StatementSearchVisitor_visitIfRule_closure(this)); return t1 == null ? A.NullableExtension_andThen(node.lastClause, new A.StatementSearchVisitor_visitIfRule_closure0(this)) : t1; }, visitImportRule$1(node) { return null; }, visitIncludeRule$1(node) { return A.NullableExtension_andThen(node.content, this.get$visitContentBlock()); }, visitLoudComment$1(node) { return null; }, visitMediaRule$1(node) { return this.visitChildren$1(node.children); }, visitMixinRule$1(node) { return this.visitChildren$1(node.children); }, visitReturnRule$1(node) { return null; }, visitSilentComment$1(node) { return null; }, visitStyleRule$1(node) { return this.visitChildren$1(node.children); }, visitStylesheet$1(node) { return this.visitChildren$1(node.children); }, visitSupportsRule$1(node) { return this.visitChildren$1(node.children); }, visitUseRule$1(node) { return null; }, visitVariableDeclaration$1(node) { return null; }, visitWarnRule$1(node) { return null; }, visitWhileRule$1(node) { return this.visitChildren$1(node.children); }, visitChildren$1(children) { return A.IterableExtension_search(children, new A.StatementSearchVisitor_visitChildren_closure(this)); } }; A.StatementSearchVisitor_visitIfRule_closure.prototype = { call$1(clause) { return A.IterableExtension_search(clause.children, new A.StatementSearchVisitor_visitIfRule__closure0(this.$this)); }, $signature() { return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(IfClause)"); } }; A.StatementSearchVisitor_visitIfRule__closure0.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature() { return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(Statement)"); } }; A.StatementSearchVisitor_visitIfRule_closure0.prototype = { call$1(lastClause) { return A.IterableExtension_search(lastClause.children, new A.StatementSearchVisitor_visitIfRule__closure(this.$this)); }, $signature() { return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(ElseClause)"); } }; A.StatementSearchVisitor_visitIfRule__closure.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature() { return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(Statement)"); } }; A.StatementSearchVisitor_visitChildren_closure.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature() { return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(Statement)"); } }; A.Entry.prototype = { compareTo$1(_, other) { var t1, t2, res = this.target.compareTo$1(0, other.target); if (res !== 0) return res; t1 = this.source; t2 = other.source; res = B.JSString_methods.compareTo$1(J.toString$0$(t1.file.url), J.toString$0$(t2.file.url)); if (res !== 0) return res; return t1.compareTo$1(0, t2); }, $isComparable: 1 }; A.Mapping.prototype = {}; A.SingleMapping.prototype = { toJson$1$includeSourceContents(includeSourceContents) { 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, buff = new A.StringBuffer(""); 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) { entry = t1[_i]; nextLine = entry.line; if (nextLine > line) { for (i = line; i < nextLine; ++i) buff._contents += ";"; line = nextLine; column = 0; first = true; } for (t3 = J.get$iterator$ax(entry.entries); t3.moveNext$0(); column = column0, first = false) { t4 = t3.get$current(t3); if (!first) buff._contents += ","; column0 = t4.column; t5 = A.encodeVlq(column0 - column); t5 = A.StringBuffer__writeAll(buff._contents, t5, ""); buff._contents = t5; newUrlId = t4.sourceUrlId; t5 = A.StringBuffer__writeAll(t5, A.encodeVlq(newUrlId - srcUrlId), ""); buff._contents = t5; srcLine0 = t4.sourceLine; t5 = A.StringBuffer__writeAll(t5, A.encodeVlq(srcLine0 - srcLine), ""); buff._contents = t5; srcColumn0 = t4.sourceColumn; t5 = A.StringBuffer__writeAll(t5, A.encodeVlq(srcColumn0 - srcColumn), ""); buff._contents = t5; srcNameId0 = t4.sourceNameId; if (srcNameId0 == null) { srcUrlId = newUrlId; srcColumn = srcColumn0; srcLine = srcLine0; continue; } buff._contents = A.StringBuffer__writeAll(t5, A.encodeVlq(srcNameId0 - srcNameId), ""); srcNameId = srcNameId0; srcUrlId = newUrlId; srcColumn = srcColumn0; srcLine = srcLine0; } } t1 = _this.sourceRoot; if (t1 == null) t1 = ""; t2 = buff._contents; 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); t1 = _this.targetUrl; if (t1 != null) result.$indexSet(0, "file", t1); if (includeSourceContents) { t1 = _this.files; t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String?>"); result.$indexSet(0, "sourcesContent", A.List_List$of(new A.MappedListIterable(t1, new A.SingleMapping_toJson_closure(), t2), true, t2._eval$1("ListIterable.E"))); } _this.extensions.forEach$1(0, new A.SingleMapping_toJson_closure0(result)); return result; }, toJson$0() { return this.toJson$1$includeSourceContents(false); }, toString$0(_) { var _this = this, 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) + "]"; return t1.charCodeAt(0) == 0 ? t1 : t1; } }; A.SingleMapping_SingleMapping$fromEntries_closure.prototype = { call$0() { return this.urls.__js_helper$_length; }, $signature: 3 }; A.SingleMapping_SingleMapping$fromEntries_closure0.prototype = { call$0() { return this.sourceEntry.source.file; }, $signature: 296 }; A.SingleMapping_SingleMapping$fromEntries_closure1.prototype = { call$1(i) { return this.files.$index(0, i); }, $signature: 297 }; A.SingleMapping_toJson_closure.prototype = { call$1(file) { return file == null ? null : A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(file._decodedChars, 0, null), 0, null); }, $signature: 298 }; A.SingleMapping_toJson_closure0.prototype = { call$2($name, value) { this.result.$indexSet(0, $name, value); return value; }, $signature: 208 }; A.TargetLineEntry.prototype = { toString$0(_) { return A.getRuntimeTypeOfDartObject(this).toString$0(0) + ": " + this.line + " " + A.S(this.entries); } }; A.TargetEntry.prototype = { toString$0(_) { var _this = this; return A.getRuntimeTypeOfDartObject(_this).toString$0(0) + ": (" + _this.column + ", " + _this.sourceUrlId + ", " + _this.sourceLine + ", " + _this.sourceColumn + ", " + A.S(_this.sourceNameId) + ")"; } }; A.SourceFile.prototype = { get$length(_) { return this._decodedChars.length; }, get$lines() { return this._lineStarts.length; }, SourceFile$decoded$2$url(decodedChars, url) { var t1, t2, t3, i, c, j; for (t1 = this._decodedChars, t2 = t1.length, t3 = this._lineStarts, i = 0; i < t2; ++i) { c = t1[i]; if (c === 13) { j = i + 1; if (j >= t2 || t1[j] !== 10) c = 10; } if (c === 10) t3.push(i + 1); } }, span$2(_, start, end) { return A._FileSpan$(this, start, end == null ? this._decodedChars.length : end); }, span$1($receiver, start) { return this.span$2($receiver, start, null); }, getLine$1(offset) { var t1, _this = this; if (offset < 0) throw A.wrapException(A.RangeError$("Offset may not be negative, was " + offset + ".")); else if (offset > _this._decodedChars.length) throw A.wrapException(A.RangeError$("Offset " + offset + string$.x20must_n + _this.get$length(_this) + ".")); t1 = _this._lineStarts; if (offset < B.JSArray_methods.get$first(t1)) return -1; if (offset >= B.JSArray_methods.get$last(t1)) return t1.length - 1; if (_this._isNearCachedLine$1(offset)) { t1 = _this._cachedLine; t1.toString; return t1; } return _this._cachedLine = _this._binarySearch$1(offset) - 1; }, _isNearCachedLine$1(offset) { var t2, t3, t1 = this._cachedLine; if (t1 == null) return false; t2 = this._lineStarts; if (offset < t2[t1]) return false; t3 = t2.length; if (t1 >= t3 - 1 || offset < t2[t1 + 1]) return true; if (t1 >= t3 - 2 || offset < t2[t1 + 2]) { this._cachedLine = t1 + 1; return true; } return false; }, _binarySearch$1(offset) { var min, half, t1 = this._lineStarts, max = t1.length - 1; for (min = 0; min < max;) { half = min + B.JSInt_methods._tdivFast$1(max - min, 2); if (t1[half] > offset) max = half; else min = half + 1; } return max; }, getColumn$1(offset) { var line, lineStart, _this = this; if (offset < 0) throw A.wrapException(A.RangeError$("Offset may not be negative, was " + offset + ".")); else if (offset > _this._decodedChars.length) throw A.wrapException(A.RangeError$("Offset " + offset + " must be not be greater than the number of characters in the file, " + _this.get$length(_this) + ".")); line = _this.getLine$1(offset); lineStart = _this._lineStarts[line]; if (lineStart > offset) throw A.wrapException(A.RangeError$("Line " + line + " comes after offset " + offset + ".")); return offset - lineStart; }, getOffset$1(line) { var t1, t2, result, t3; if (line < 0) throw A.wrapException(A.RangeError$("Line may not be negative, was " + line + ".")); else { t1 = this._lineStarts; t2 = t1.length; if (line >= t2) throw A.wrapException(A.RangeError$("Line " + line + " must be less than the number of lines in the file, " + this.get$lines() + ".")); } result = t1[line]; if (result <= this._decodedChars.length) { t3 = line + 1; t1 = t3 < t2 && result >= t1[t3]; } else t1 = true; if (t1) throw A.wrapException(A.RangeError$("Line " + line + " doesn't have 0 columns.")); return result; } }; A.FileLocation.prototype = { get$sourceUrl(_) { return this.file.url; }, get$line() { return this.file.getLine$1(this.offset); }, get$column() { return this.file.getColumn$1(this.offset); }, FileLocation$_$2(file, offset) { var t2, t1 = this.offset; if (t1 < 0) throw A.wrapException(A.RangeError$("Offset may not be negative, was " + t1 + ".")); else { t2 = this.file; if (t1 > t2._decodedChars.length) throw A.wrapException(A.RangeError$("Offset " + t1 + string$.x20must_n + t2.get$length(t2) + ".")); } }, pointSpan$0() { var t1 = this.offset; return A._FileSpan$(this.file, t1, t1); }, get$offset() { return this.offset; } }; A._FileSpan.prototype = { get$sourceUrl(_) { return this.file.url; }, get$length(_) { return this._end - this._file$_start; }, get$start(_) { return A.FileLocation$_(this.file, this._file$_start); }, get$end(_) { return A.FileLocation$_(this.file, this._end); }, get$text() { return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(this.file._decodedChars, this._file$_start, this._end), 0, null); }, get$context(_) { var _this = this, t1 = _this.file, endOffset = _this._end, endLine = t1.getLine$1(endOffset); if (t1.getColumn$1(endOffset) === 0 && endLine !== 0) { if (endOffset - _this._file$_start === 0) 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); } else endOffset = endLine === t1._lineStarts.length - 1 ? t1._decodedChars.length : t1.getOffset$1(endLine + 1); return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(t1.getLine$1(_this._file$_start)), endOffset), 0, null); }, _FileSpan$3(file, _start, _end) { var t3, t1 = this._end, t2 = this._file$_start; if (t1 < t2) throw A.wrapException(A.ArgumentError$("End " + t1 + " must come after start " + t2 + ".", null)); else { t3 = this.file; if (t1 > t3._decodedChars.length) throw A.wrapException(A.RangeError$("End " + t1 + string$.x20must_n + t3.get$length(t3) + ".")); else if (t2 < 0) throw A.wrapException(A.RangeError$("Start may not be negative, was " + t2 + ".")); } }, compareTo$1(_, other) { var result; if (!(other instanceof A._FileSpan)) return this.super$SourceSpanMixin$compareTo(0, other); result = B.JSInt_methods.compareTo$1(this._file$_start, other._file$_start); return result === 0 ? B.JSInt_methods.compareTo$1(this._end, other._end) : result; }, $eq(_, other) { var _this = this; if (other == null) return false; if (!type$.FileSpan._is(other)) return _this.super$SourceSpanMixin$$eq(0, other); if (!(other instanceof A._FileSpan)) return _this.super$SourceSpanMixin$$eq(0, other) && J.$eq$(_this.file.url, other.get$sourceUrl(other)); return _this._file$_start === other._file$_start && _this._end === other._end && J.$eq$(_this.file.url, other.file.url); }, get$hashCode(_) { return A.Object_hash(this._file$_start, this._end, this.file.url, B.C_SentinelValue); }, expand$1(_, other) { var t2, t3, _this = this, t1 = _this.file; if (!J.$eq$(t1.url, other.get$sourceUrl(other))) throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(_this.get$sourceUrl(_this)) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null)); t2 = _this._file$_start; t3 = _this._end; if (other instanceof A._FileSpan) return A._FileSpan$(t1, Math.min(t2, other._file$_start), Math.max(t3, other._end)); else return A._FileSpan$(t1, Math.min(t2, other.get$start(other).offset), Math.max(t3, other.get$end(other).offset)); }, $isFileSpan: 1, $isSourceSpanWithContext: 1, get$file(receiver) { return this.file; } }; A.Highlighter.prototype = { highlight$0() { var t2, highlightsByColumn, t3, t4, i, line, lastLine, t5, t6, t7, t8, t9, t10, t11, index, primaryIdx, primary, _i, highlight, _this = this, _null = null, t1 = _this._lines; _this._writeFileStart$1(B.JSArray_methods.get$first(t1).url); t2 = _this._maxMultilineSpans; highlightsByColumn = A.List_List$filled(t2, _null, false, type$.nullable__Highlight); for (t3 = _this._highlighter$_buffer, t2 = t2 !== 0, t4 = _this._primaryColor, i = 0; i < t1.length; ++i) { line = t1[i]; if (i > 0) { lastLine = t1[i - 1]; t5 = lastLine.url; t6 = line.url; if (!J.$eq$(t5, t6)) { _this._writeSidebar$1$end($._glyphs.get$upEnd()); t3._contents += "\n"; _this._writeFileStart$1(t6); } else if (lastLine.number + 1 !== line.number) { _this._writeSidebar$1$text("..."); t3._contents += "\n"; } } for (t5 = line.highlights, t6 = new A.ReversedListIterable(t5, A._arrayInstanceType(t5)._eval$1("ReversedListIterable<1>")), t6 = new A.ListIterator(t6, t6.get$length(t6)), t7 = A._instanceType(t6)._precomputed1, t8 = line.number, t9 = line.text; t6.moveNext$0();) { t10 = t6.__internal$_current; if (t10 == null) t10 = t7._as(t10); t11 = t10.span; 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()))) { index = B.JSArray_methods.indexOf$1(highlightsByColumn, _null); if (index < 0) A.throwExpression(A.ArgumentError$(A.S(highlightsByColumn) + " contains no null elements.", _null)); highlightsByColumn[index] = t10; } } _this._writeSidebar$1$line(t8); t3._contents += " "; _this._writeMultilineHighlights$2(line, highlightsByColumn); if (t2) t3._contents += " "; primaryIdx = B.JSArray_methods.indexWhere$1(t5, new A.Highlighter_highlight_closure()); primary = primaryIdx === -1 ? _null : t5[primaryIdx]; t6 = primary != null; if (t6) { t7 = primary.span; t10 = t7.get$start(t7).get$line() === t8 ? t7.get$start(t7).get$column() : 0; _this._writeHighlightedText$4$color(t9, t10, t7.get$end(t7).get$line() === t8 ? t7.get$end(t7).get$column() : t9.length, t4); } else _this._writeText$1(t9); t3._contents += "\n"; if (t6) _this._writeIndicator$3(line, primary, highlightsByColumn); for (t6 = t5.length, _i = 0; _i < t5.length; t5.length === t6 || (0, A.throwConcurrentModificationError)(t5), ++_i) { highlight = t5[_i]; if (highlight.isPrimary) continue; _this._writeIndicator$3(line, highlight, highlightsByColumn); } } _this._writeSidebar$1$end($._glyphs.get$upEnd()); t1 = t3._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, _writeFileStart$1(url) { var _this = this, t1 = !_this._multipleFiles || !type$.Uri._is(url), t2 = $._glyphs; if (t1) _this._writeSidebar$1$end(t2.get$downEnd()); else { _this._writeSidebar$1$end(t2.get$topLeftCorner()); _this._colorize$2$color(new A.Highlighter__writeFileStart_closure(_this), "\x1b[34m"); _this._highlighter$_buffer._contents += " " + $.$get$context().prettyUri$1(url); } _this._highlighter$_buffer._contents += "\n"; }, _writeMultilineHighlights$3$current(line, highlightsByColumn, current) { var t1, currentColor, t2, t3, t4, t5, foundCurrent, _i, highlight, t6, startLine, t7, endLine, _this = this, _box_0 = {}; _box_0.openedOnThisLine = false; _box_0.openedOnThisLineColor = null; t1 = current == null; if (t1) currentColor = null; else currentColor = current.isPrimary ? _this._primaryColor : _this._secondaryColor; for (t2 = highlightsByColumn.length, t3 = _this._secondaryColor, t1 = !t1, t4 = _this._primaryColor, t5 = _this._highlighter$_buffer, foundCurrent = false, _i = 0; _i < t2; ++_i) { highlight = highlightsByColumn[_i]; t6 = highlight == null; if (t6) startLine = null; else { t7 = highlight.span; startLine = t7.get$start(t7).get$line(); } if (t6) endLine = null; else { t7 = highlight.span; endLine = t7.get$end(t7).get$line(); } if (t1 && highlight === current) { _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure(_this, startLine, line), currentColor); foundCurrent = true; } else if (foundCurrent) _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure0(_this, highlight), currentColor); else if (t6) if (_box_0.openedOnThisLine) _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure1(_this), _box_0.openedOnThisLineColor); else t5._contents += " "; else { t6 = highlight.isPrimary ? t4 : t3; _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure2(_box_0, _this, current, startLine, line, highlight, endLine), t6); } } }, _writeMultilineHighlights$2(line, highlightsByColumn) { return this._writeMultilineHighlights$3$current(line, highlightsByColumn, null); }, _writeHighlightedText$4$color(text, startColumn, endColumn, color) { var _this = this; _this._writeText$1(B.JSString_methods.substring$2(text, 0, startColumn)); _this._colorize$2$color(new A.Highlighter__writeHighlightedText_closure(_this, text, startColumn, endColumn), color); _this._writeText$1(B.JSString_methods.substring$2(text, endColumn, text.length)); }, _writeIndicator$3(line, highlight, highlightsByColumn) { var t2, coversWholeLine, _this = this, color = highlight.isPrimary ? _this._primaryColor : _this._secondaryColor, t1 = highlight.span; if (t1.get$start(t1).get$line() === t1.get$end(t1).get$line()) { _this._writeSidebar$0(); t1 = _this._highlighter$_buffer; t1._contents += " "; _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight); if (highlightsByColumn.length !== 0) t1._contents += " "; _this._writeLabel$3(highlight, highlightsByColumn, _this._colorize$2$color(new A.Highlighter__writeIndicator_closure(_this, line, highlight), color)); } else { t2 = line.number; if (t1.get$start(t1).get$line() === t2) { if (B.JSArray_methods.contains$1(highlightsByColumn, highlight)) return; A.replaceFirstNull(highlightsByColumn, highlight); _this._writeSidebar$0(); t1 = _this._highlighter$_buffer; t1._contents += " "; _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight); _this._colorize$2$color(new A.Highlighter__writeIndicator_closure0(_this, line, highlight), color); t1._contents += "\n"; } else if (t1.get$end(t1).get$line() === t2) { coversWholeLine = t1.get$end(t1).get$column() === line.text.length; if (coversWholeLine && highlight.label == null) { A.replaceWithNull(highlightsByColumn, highlight); return; } _this._writeSidebar$0(); _this._highlighter$_buffer._contents += " "; _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight); _this._writeLabel$3(highlight, highlightsByColumn, _this._colorize$2$color(new A.Highlighter__writeIndicator_closure1(_this, coversWholeLine, line, highlight), color)); A.replaceWithNull(highlightsByColumn, highlight); } } }, _writeArrow$3$beginning(line, column, beginning) { var t2, t1 = beginning ? 0 : 1, tabs = this._countTabs$1(B.JSString_methods.substring$2(line.text, 0, column + t1)); t1 = this._highlighter$_buffer; t2 = t1._contents += B.JSString_methods.$mul($._glyphs.get$horizontalLine(), 1 + column + tabs * 3); t1._contents = t2 + "^"; }, _writeArrow$2(line, column) { return this._writeArrow$3$beginning(line, column, true); }, _writeLabel$3(highlight, highlightsByColumn, underlineLength) { var lines, color, t1, t2, t3, t4, t5, t6, _i, columnHighlight, _this = this, label = highlight.label; if (label == null) { _this._highlighter$_buffer._contents += "\n"; return; } lines = A._setArrayType(label.split("\n"), type$.JSArray_String); color = highlight.isPrimary ? _this._primaryColor : _this._secondaryColor; _this._colorize$2$color(new A.Highlighter__writeLabel_closure(_this, lines), color); t1 = _this._highlighter$_buffer; t1._contents += "\n"; for (t2 = A.SubListIterable$(lines, 1, null, type$.String), t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = highlightsByColumn.length, t4 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t5 = t2.__internal$_current; if (t5 == null) t5 = t4._as(t5); _this._writeSidebar$0(); t6 = t1._contents += " "; for (_i = 0; _i < t3; ++_i) { columnHighlight = highlightsByColumn[_i]; if (columnHighlight == null || columnHighlight === highlight) { t6 += " "; t1._contents = t6; } else t6 = t1._contents += $._glyphs.get$verticalLine(); } t1._contents += B.JSString_methods.$mul(" ", underlineLength); _this._colorize$2$color(new A.Highlighter__writeLabel_closure0(_this, t5), color); t1._contents += "\n"; } }, _writeText$1(text) { var t1, t2, t3, t4; for (t1 = new A.CodeUnits(text), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this._highlighter$_buffer, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t4 = t1.__internal$_current; if (t4 == null) t4 = t3._as(t4); if (t4 === 9) t2._contents += B.JSString_methods.$mul(" ", 4); else t2._contents += A.Primitives_stringFromCharCode(t4); } }, _writeSidebar$3$end$line$text(end, line, text) { var t1 = {}; t1.text = text; if (line != null) t1.text = B.JSInt_methods.toString$0(line + 1); this._colorize$2$color(new A.Highlighter__writeSidebar_closure(t1, this, end), "\x1b[34m"); }, _writeSidebar$1$end(end) { return this._writeSidebar$3$end$line$text(end, null, null); }, _writeSidebar$1$text(text) { return this._writeSidebar$3$end$line$text(null, null, text); }, _writeSidebar$1$line(line) { return this._writeSidebar$3$end$line$text(null, line, null); }, _writeSidebar$0() { return this._writeSidebar$3$end$line$text(null, null, null); }, _countTabs$1(text) { var t1, t2, count, t3; for (t1 = new A.CodeUnits(text), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1, count = 0; t1.moveNext$0();) { t3 = t1.__internal$_current; if ((t3 == null ? t2._as(t3) : t3) === 9) ++count; } return count; }, _isOnlyWhitespace$1(text) { var t1, t2, t3; for (t1 = new A.CodeUnits(text), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; if (t3 == null) t3 = t2._as(t3); if (t3 !== 32 && t3 !== 9) return false; } return true; }, _colorize$1$2$color(callback, color) { var result, t1 = this._primaryColor != null; if (t1 && color != null) this._highlighter$_buffer._contents += color; result = callback.call$0(); if (t1 && color != null) this._highlighter$_buffer._contents += "\x1b[0m"; return result; }, _colorize$2$color(callback, color) { return this._colorize$1$2$color(callback, color, type$.dynamic); } }; A.Highlighter_closure.prototype = { call$0() { var t1 = this.color, t2 = J.getInterceptor$(t1); if (t2.$eq(t1, true)) return "\x1b[31m"; if (t2.$eq(t1, false)) return null; return A._asStringQ(t1); }, $signature: 32 }; A.Highlighter$__closure.prototype = { call$1(line) { var t1 = line.highlights; t1 = new A.WhereIterable(t1, new A.Highlighter$___closure(), A._arrayInstanceType(t1)._eval$1("WhereIterable<1>")); return t1.get$length(t1); }, $signature: 299 }; A.Highlighter$___closure.prototype = { call$1(highlight) { var t1 = highlight.span; return t1.get$start(t1).get$line() !== t1.get$end(t1).get$line(); }, $signature: 128 }; A.Highlighter$__closure0.prototype = { call$1(line) { return line.url; }, $signature: 301 }; A.Highlighter__collateLines_closure.prototype = { call$1(highlight) { var t1 = highlight.span; t1 = t1.get$sourceUrl(t1); return t1 == null ? new A.Object() : t1; }, $signature: 302 }; A.Highlighter__collateLines_closure0.prototype = { call$2(highlight1, highlight2) { return highlight1.span.compareTo$1(0, highlight2.span); }, $signature: 303 }; A.Highlighter__collateLines_closure1.prototype = { call$1(entry) { var t1, t2, t3, t4, context, t5, linesBeforeSpan, lineNumber, _i, line, activeHighlights, highlightIndex, oldHighlightLength, t6, url = entry.key, highlightsForFile = entry.value, lines = A._setArrayType([], type$.JSArray__Line); for (t1 = J.getInterceptor$ax(highlightsForFile), t2 = t1.get$iterator(highlightsForFile), t3 = type$.JSArray__Highlight; t2.moveNext$0();) { t4 = t2.get$current(t2).span; context = t4.get$context(t4); t5 = A.findLineStart(context, t4.get$text(), t4.get$start(t4).get$column()); t5.toString; t5 = B.JSString_methods.allMatches$1("\n", B.JSString_methods.substring$2(context, 0, t5)); linesBeforeSpan = t5.get$length(t5); lineNumber = t4.get$start(t4).get$line() - linesBeforeSpan; for (t4 = context.split("\n"), t5 = t4.length, _i = 0; _i < t5; ++_i) { line = t4[_i]; if (lines.length === 0 || lineNumber > B.JSArray_methods.get$last(lines).number) lines.push(new A._Line(line, lineNumber, url, A._setArrayType([], t3))); ++lineNumber; } } activeHighlights = A._setArrayType([], t3); for (t2 = lines.length, highlightIndex = 0, _i = 0; _i < lines.length; lines.length === t2 || (0, A.throwConcurrentModificationError)(lines), ++_i) { line = lines[_i]; if (!!activeHighlights.fixed$length) A.throwExpression(A.UnsupportedError$("removeWhere")); B.JSArray_methods._removeWhere$2(activeHighlights, new A.Highlighter__collateLines__closure(line), true); oldHighlightLength = activeHighlights.length; for (t3 = t1.skip$1(highlightsForFile, highlightIndex), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) { t5 = t3.__internal$_current; if (t5 == null) t5 = t4._as(t5); t6 = t5.span; if (t6.get$start(t6).get$line() > line.number) break; activeHighlights.push(t5); } highlightIndex += activeHighlights.length - oldHighlightLength; B.JSArray_methods.addAll$1(line.highlights, activeHighlights); } return lines; }, $signature: 304 }; A.Highlighter__collateLines__closure.prototype = { call$1(highlight) { var t1 = highlight.span; return t1.get$end(t1).get$line() < this.line.number; }, $signature: 128 }; A.Highlighter_highlight_closure.prototype = { call$1(highlight) { return highlight.isPrimary; }, $signature: 128 }; A.Highlighter__writeFileStart_closure.prototype = { call$0() { this.$this._highlighter$_buffer._contents += B.JSString_methods.$mul($._glyphs.get$horizontalLine(), 2) + ">"; return null; }, $signature: 0 }; A.Highlighter__writeMultilineHighlights_closure.prototype = { call$0() { var t1 = $._glyphs; t1 = this.startLine === this.line.number ? t1.get$topLeftCorner() : t1.get$bottomLeftCorner(); this.$this._highlighter$_buffer._contents += t1; }, $signature: 2 }; A.Highlighter__writeMultilineHighlights_closure0.prototype = { call$0() { var t1 = $._glyphs; t1 = this.highlight == null ? t1.get$horizontalLine() : t1.get$cross(); this.$this._highlighter$_buffer._contents += t1; }, $signature: 2 }; A.Highlighter__writeMultilineHighlights_closure1.prototype = { call$0() { this.$this._highlighter$_buffer._contents += $._glyphs.get$horizontalLine(); return null; }, $signature: 0 }; A.Highlighter__writeMultilineHighlights_closure2.prototype = { call$0() { var _this = this, t1 = _this._box_0, t2 = t1.openedOnThisLine, t3 = $._glyphs, vertical = t2 ? t3.get$cross() : t3.get$verticalLine(); if (_this.current != null) _this.$this._highlighter$_buffer._contents += vertical; else { t2 = _this.line; t3 = t2.number; if (_this.startLine === t3) { t2 = _this.$this; t2._colorize$2$color(new A.Highlighter__writeMultilineHighlights__closure(t1, t2), t1.openedOnThisLineColor); t1.openedOnThisLine = true; if (t1.openedOnThisLineColor == null) t1.openedOnThisLineColor = _this.highlight.isPrimary ? t2._primaryColor : t2._secondaryColor; } else { if (_this.endLine === t3) { t3 = _this.highlight.span; t2 = t3.get$end(t3).get$column() === t2.text.length; } else t2 = false; t3 = _this.$this; if (t2) { t1 = _this.highlight.label == null ? $._glyphs.glyphOrAscii$2("\u2514", "\\") : vertical; t3._highlighter$_buffer._contents += t1; } else t3._colorize$2$color(new A.Highlighter__writeMultilineHighlights__closure0(t3, vertical), t1.openedOnThisLineColor); } } }, $signature: 2 }; A.Highlighter__writeMultilineHighlights__closure.prototype = { call$0() { var t1 = this._box_0.openedOnThisLine ? "\u252c" : "\u250c"; this.$this._highlighter$_buffer._contents += $._glyphs.glyphOrAscii$2(t1, "/"); }, $signature: 2 }; A.Highlighter__writeMultilineHighlights__closure0.prototype = { call$0() { this.$this._highlighter$_buffer._contents += this.vertical; }, $signature: 2 }; A.Highlighter__writeHighlightedText_closure.prototype = { call$0() { var _this = this; return _this.$this._writeText$1(B.JSString_methods.substring$2(_this.text, _this.startColumn, _this.endColumn)); }, $signature: 0 }; A.Highlighter__writeIndicator_closure.prototype = { call$0() { var startColumn, endColumn, tabsBefore, tabsInside, t1 = this.$this, t2 = t1._highlighter$_buffer, t3 = t2._contents, t4 = this.highlight, t5 = t4.span; t4 = t4.isPrimary ? "^" : $._glyphs.get$horizontalLineBold(); startColumn = t5.get$start(t5).get$column(); endColumn = t5.get$end(t5).get$column(); t5 = this.line.text; tabsBefore = t1._countTabs$1(B.JSString_methods.substring$2(t5, 0, startColumn)); tabsInside = t1._countTabs$1(B.JSString_methods.substring$2(t5, startColumn, endColumn)); startColumn += tabsBefore * 3; t2._contents += B.JSString_methods.$mul(" ", startColumn); t4 = t2._contents += B.JSString_methods.$mul(t4, Math.max(endColumn + (tabsBefore + tabsInside) * 3 - startColumn, 1)); return t4.length - t3.length; }, $signature: 3 }; A.Highlighter__writeIndicator_closure0.prototype = { call$0() { var t1 = this.highlight.span; return this.$this._writeArrow$2(this.line, t1.get$start(t1).get$column()); }, $signature: 0 }; A.Highlighter__writeIndicator_closure1.prototype = { call$0() { var t4, _this = this, t1 = _this.$this, t2 = t1._highlighter$_buffer, t3 = t2._contents; if (_this.coversWholeLine) t2._contents += B.JSString_methods.$mul($._glyphs.get$horizontalLine(), 3); else { t4 = _this.highlight.span; t1._writeArrow$3$beginning(_this.line, Math.max(t4.get$end(t4).get$column() - 1, 0), false); } return t2._contents.length - t3.length; }, $signature: 3 }; A.Highlighter__writeLabel_closure.prototype = { call$0() { this.$this._highlighter$_buffer._contents += " " + A.S(B.JSArray_methods.get$first(this.lines)); return null; }, $signature: 0 }; A.Highlighter__writeLabel_closure0.prototype = { call$0() { this.$this._highlighter$_buffer._contents += " " + this.text; return null; }, $signature: 0 }; A.Highlighter__writeSidebar_closure.prototype = { call$0() { var t1 = this.$this, t2 = t1._highlighter$_buffer, t3 = this._box_0.text; if (t3 == null) t3 = ""; t2._contents += B.JSString_methods.padRight$1(t3, t1._paddingBeforeSidebar); t1 = this.end; t2._contents += t1 == null ? $._glyphs.get$verticalLine() : t1; }, $signature: 2 }; A._Highlight.prototype = { toString$0(_) { var t1 = this.isPrimary ? "" + "primary " : "", t2 = this.span; 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()); t1 = this.label; t1 = t1 != null ? t2 + (" (" + t1 + ")") : t2; return t1.charCodeAt(0) == 0 ? t1 : t1; } }; A._Highlight_closure.prototype = { call$0() { var t2, t3, t4, t5, t1 = this.span; if (!(type$.SourceSpanWithContext._is(t1) && A.findLineStart(t1.get$context(t1), t1.get$text(), t1.get$start(t1).get$column()) != null)) { t2 = A.SourceLocation$(t1.get$start(t1).get$offset(), 0, 0, t1.get$sourceUrl(t1)); t3 = t1.get$end(t1).get$offset(); t4 = t1.get$sourceUrl(t1); t5 = A.countCodeUnits(t1.get$text(), 10); t1 = A.SourceSpanWithContext$(t2, A.SourceLocation$(t3, A._Highlight__lastLineLength(t1.get$text()), t5, t4), t1.get$text(), t1.get$text()); } return A._Highlight__normalizeEndOfLine(A._Highlight__normalizeTrailingNewline(A._Highlight__normalizeNewlines(t1))); }, $signature: 305 }; A._Line.prototype = { toString$0(_) { return "" + this.number + ': "' + this.text + '" (' + B.JSArray_methods.join$1(this.highlights, ", ") + ")"; } }; A.SourceLocation.prototype = { distance$1(other) { var t1 = this.sourceUrl; if (!J.$eq$(t1, other.get$sourceUrl(other))) throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(t1) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null)); return Math.abs(this.offset - other.get$offset()); }, compareTo$1(_, other) { var t1 = this.sourceUrl; if (!J.$eq$(t1, other.get$sourceUrl(other))) throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(t1) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null)); return this.offset - other.get$offset(); }, $eq(_, other) { if (other == null) return false; return type$.SourceLocation._is(other) && J.$eq$(this.sourceUrl, other.get$sourceUrl(other)) && this.offset === other.get$offset(); }, get$hashCode(_) { var t1 = this.sourceUrl; t1 = t1 == null ? null : t1.get$hashCode(t1); if (t1 == null) t1 = 0; return t1 + this.offset; }, toString$0(_) { var _this = this, t1 = A.getRuntimeTypeOfDartObject(_this).toString$0(0), source = _this.sourceUrl; return "<" + t1 + ": " + _this.offset + " " + (A.S(source == null ? "unknown source" : source) + ":" + (_this.line + 1) + ":" + (_this.column + 1)) + ">"; }, $isComparable: 1, get$sourceUrl(receiver) { return this.sourceUrl; }, get$offset() { return this.offset; }, get$line() { return this.line; }, get$column() { return this.column; } }; A.SourceLocationMixin.prototype = { distance$1(other) { var _this = this; if (!J.$eq$(_this.file.url, other.get$sourceUrl(other))) throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(_this.get$sourceUrl(_this)) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null)); return Math.abs(_this.offset - other.get$offset()); }, compareTo$1(_, other) { var _this = this; if (!J.$eq$(_this.file.url, other.get$sourceUrl(other))) throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(_this.get$sourceUrl(_this)) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null)); return _this.offset - other.get$offset(); }, $eq(_, other) { if (other == null) return false; return type$.SourceLocation._is(other) && J.$eq$(this.file.url, other.get$sourceUrl(other)) && this.offset === other.get$offset(); }, get$hashCode(_) { var t1 = this.file.url; t1 = t1 == null ? null : t1.get$hashCode(t1); if (t1 == null) t1 = 0; return t1 + this.offset; }, toString$0(_) { var t1 = A.getRuntimeTypeOfDartObject(this).toString$0(0), t2 = this.offset, t3 = this.file, source = t3.url; return "<" + t1 + ": " + t2 + " " + (A.S(source == null ? "unknown source" : source) + ":" + (t3.getLine$1(t2) + 1) + ":" + (t3.getColumn$1(t2) + 1)) + ">"; }, $isComparable: 1, $isSourceLocation: 1 }; A.SourceSpanBase.prototype = { SourceSpanBase$3(start, end, text) { var t3, t1 = this.end, t2 = this.start; if (!J.$eq$(t1.get$sourceUrl(t1), t2.get$sourceUrl(t2))) throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(t2.get$sourceUrl(t2)) + '" and "' + A.S(t1.get$sourceUrl(t1)) + "\" don't match.", null)); else if (t1.get$offset() < t2.get$offset()) throw A.wrapException(A.ArgumentError$("End " + t1.toString$0(0) + " must come after start " + t2.toString$0(0) + ".", null)); else { t3 = this.text; if (t3.length !== t2.distance$1(t1)) throw A.wrapException(A.ArgumentError$('Text "' + t3 + '" must be ' + t2.distance$1(t1) + " characters long.", null)); } }, get$start(receiver) { return this.start; }, get$end(receiver) { return this.end; }, get$text() { return this.text; } }; A.SourceSpanException.prototype = { get$message(_) { return this._span_exception$_message; }, get$span(_) { return this._span; }, toString$1$color(_, color) { var _this = this; _this.get$span(_this); return "Error on " + _this.get$span(_this).message$2$color(0, _this._span_exception$_message, color); }, toString$0($receiver) { return this.toString$1$color($receiver, null); }, $isException: 1 }; A.SourceSpanFormatException.prototype = {$isFormatException: 1, get$source() { return this.source; } }; A.MultiSourceSpanException.prototype = { toString$0(_) { var _this = this; return "Error on " + A.SourceSpanExtension_messageMultiple(_this._span, _this._span_exception$_message, _this.primaryLabel, _this.secondarySpans, false, null, null); }, get$primaryLabel() { return this.primaryLabel; }, get$secondarySpans() { return this.secondarySpans; } }; A.MultiSourceSpanFormatException.prototype = {$isFormatException: 1}; A.SourceSpanMixin.prototype = { get$sourceUrl(_) { var t1 = this.get$start(this); return t1.get$sourceUrl(t1); }, get$length(_) { var _this = this; return _this.get$end(_this).get$offset() - _this.get$start(_this).get$offset(); }, compareTo$1(_, other) { var _this = this, result = _this.get$start(_this).compareTo$1(0, other.get$start(other)); return result === 0 ? _this.get$end(_this).compareTo$1(0, other.get$end(other)) : result; }, message$2$color(_, message, color) { var t2, highlight, _this = this, t1 = "" + ("line " + (_this.get$start(_this).get$line() + 1) + ", column " + (_this.get$start(_this).get$column() + 1)); if (_this.get$sourceUrl(_this) != null) { t2 = _this.get$sourceUrl(_this); t2 = t1 + (" of " + $.$get$context().prettyUri$1(t2)); t1 = t2; } t1 += ": " + message; highlight = _this.highlight$1$color(color); if (highlight.length !== 0) t1 = t1 + "\n" + highlight; return t1.charCodeAt(0) == 0 ? t1 : t1; }, message$1($receiver, message) { return this.message$2$color($receiver, message, null); }, highlight$1$color(color) { var _this = this; if (!type$.SourceSpanWithContext._is(_this) && _this.get$length(_this) === 0) return ""; return A.Highlighter$(_this, color).highlight$0(); }, $eq(_, other) { var _this = this; if (other == null) return false; 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)); }, get$hashCode(_) { var _this = this; return A.Object_hash(_this.get$start(_this), _this.get$end(_this), B.C_SentinelValue, B.C_SentinelValue); }, toString$0(_) { var _this = this; 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() + '">'; }, $isComparable: 1, $isSourceSpan: 1 }; A.SourceSpanWithContext.prototype = { get$context(_) { return this._context; } }; A.Chain.prototype = { toTrace$0() { var t1 = this.traces; return A.Trace$(new A.ExpandIterable(t1, new A.Chain_toTrace_closure(), A._arrayInstanceType(t1)._eval$1("ExpandIterable<1,Frame>")), null); }, toString$0(_) { var t1 = this.traces, t2 = A._arrayInstanceType(t1); 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_____); }, $isStackTrace: 1 }; A.Chain_Chain$parse_closure.prototype = { call$1(line) { return line.length !== 0; }, $signature: 10 }; A.Chain_toTrace_closure.prototype = { call$1(trace) { return trace.get$frames(); }, $signature: 306 }; A.Chain_toString_closure0.prototype = { call$1(trace) { var t1 = trace.get$frames(); return new A.MappedListIterable(t1, new A.Chain_toString__closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int>")).fold$2(0, 0, B.CONSTANT); }, $signature: 307 }; A.Chain_toString__closure0.prototype = { call$1(frame) { return frame.get$location().length; }, $signature: 165 }; A.Chain_toString_closure.prototype = { call$1(trace) { var t1 = trace.get$frames(); return new A.MappedListIterable(t1, new A.Chain_toString__closure(this.longest), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0); }, $signature: 309 }; A.Chain_toString__closure.prototype = { call$1(frame) { return B.JSString_methods.padRight$1(frame.get$location(), this.longest) + " " + A.S(frame.get$member()) + "\n"; }, $signature: 166 }; A.Frame.prototype = { get$isCore() { return this.uri.get$scheme() === "dart"; }, get$library() { var t1 = this.uri; if (t1.get$scheme() === "data") return "data:..."; return $.$get$context().prettyUri$1(t1); }, get$$package() { var t1 = this.uri; if (t1.get$scheme() !== "package") return null; return B.JSArray_methods.get$first(t1.get$path(t1).split("/")); }, get$location() { var t2, _this = this, t1 = _this.line; if (t1 == null) return _this.get$library(); t2 = _this.column; if (t2 == null) return _this.get$library() + " " + A.S(t1); return _this.get$library() + " " + A.S(t1) + ":" + A.S(t2); }, toString$0(_) { return this.get$location() + " in " + A.S(this.member); }, get$uri() { return this.uri; }, get$line() { return this.line; }, get$column() { return this.column; }, get$member() { return this.member; } }; A.Frame_Frame$parseVM_closure.prototype = { call$0() { var match, t2, t3, member, uri, lineAndColumn, line, _null = null, t1 = this.frame; if (t1 === "...") return new A.Frame(A._Uri__Uri(_null, _null, _null, _null), _null, _null, "..."); match = $.$get$_vmFrame().firstMatch$1(t1); if (match == null) return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), t1); t1 = match._match; t2 = t1[1]; t2.toString; t3 = $.$get$_asyncBody(); t2 = A.stringReplaceAllUnchecked(t2, t3, ""); member = A.stringReplaceAllUnchecked(t2, "", ""); t2 = t1[2]; t3 = t2; t3.toString; if (B.JSString_methods.startsWith$1(t3, " 1 ? A.int_parse(lineAndColumn[1], _null) : _null; return new A.Frame(uri, line, t1 > 2 ? A.int_parse(lineAndColumn[2], _null) : _null, member); }, $signature: 74 }; A.Frame_Frame$parseV8_closure.prototype = { call$0() { var t2, t3, _s4_ = "", t1 = this.frame, match = $.$get$_v8Frame().firstMatch$1(t1); if (match == null) return new A.UnparsedFrame(A._Uri__Uri(null, "unparsed", null, null), t1); t1 = new A.Frame_Frame$parseV8_closure_parseLocation(t1); t2 = match._match; t3 = t2[2]; if (t3 != null) { t3 = t3; t3.toString; t2 = t2[1]; t2.toString; t2 = A.stringReplaceAllUnchecked(t2, "", _s4_); t2 = A.stringReplaceAllUnchecked(t2, "Anonymous function", _s4_); return t1.call$2(t3, A.stringReplaceAllUnchecked(t2, "(anonymous function)", _s4_)); } else { t2 = t2[3]; t2.toString; return t1.call$2(t2, _s4_); } }, $signature: 74 }; A.Frame_Frame$parseV8_closure_parseLocation.prototype = { call$2($location, member) { var t2, urlMatch, uri, line, columnMatch, _null = null, t1 = $.$get$_v8EvalLocation(), evalMatch = t1.firstMatch$1($location); for (; evalMatch != null; $location = t2) { t2 = evalMatch._match[1]; t2.toString; evalMatch = t1.firstMatch$1(t2); } if ($location === "native") return new A.Frame(A.Uri_parse("native"), _null, _null, member); urlMatch = $.$get$_v8UrlLocation().firstMatch$1($location); if (urlMatch == null) return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), this.frame); t1 = urlMatch._match; t2 = t1[1]; t2.toString; uri = A.Frame__uriOrPathToUri(t2); t2 = t1[2]; t2.toString; line = A.int_parse(t2, _null); columnMatch = t1[3]; return new A.Frame(uri, line, columnMatch != null ? A.int_parse(columnMatch, _null) : _null, member); }, $signature: 312 }; A.Frame_Frame$_parseFirefoxEval_closure.prototype = { call$0() { var t2, member, uri, line, _null = null, t1 = this.frame, match = $.$get$_firefoxEvalLocation().firstMatch$1(t1); if (match == null) return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), t1); t1 = match._match; t2 = t1[1]; t2.toString; member = A.stringReplaceAllUnchecked(t2, "/<", ""); t2 = t1[2]; t2.toString; uri = A.Frame__uriOrPathToUri(t2); t1 = t1[3]; t1.toString; line = A.int_parse(t1, _null); return new A.Frame(uri, line, _null, member.length === 0 || member === "anonymous" ? "" : member); }, $signature: 74 }; A.Frame_Frame$parseFirefox_closure.prototype = { call$0() { var t2, t3, t4, uri, member, line, column, _null = null, t1 = this.frame, match = $.$get$_firefoxSafariFrame().firstMatch$1(t1); if (match == null) return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), t1); t2 = match._match; t3 = t2[3]; t4 = t3; t4.toString; if (B.JSString_methods.contains$1(t4, " line ")) return A.Frame_Frame$_parseFirefoxEval(t1); t1 = t3; t1.toString; uri = A.Frame__uriOrPathToUri(t1); member = t2[1]; if (member != null) { t1 = t2[2]; t1.toString; t1 = B.JSString_methods.allMatches$1("/", t1); member += B.JSArray_methods.join$0(A.List_List$filled(t1.get$length(t1), ".", false, type$.String)); if (member === "") member = ""; member = B.JSString_methods.replaceFirst$2(member, $.$get$_initialDot(), ""); } else member = ""; t1 = t2[4]; if (t1 === "") line = _null; else { t1 = t1; t1.toString; line = A.int_parse(t1, _null); } t1 = t2[5]; if (t1 == null || t1 === "") column = _null; else { t1 = t1; t1.toString; column = A.int_parse(t1, _null); } return new A.Frame(uri, line, column, member); }, $signature: 74 }; A.Frame_Frame$parseFriendly_closure.prototype = { call$0() { var t2, uri, line, column, _null = null, t1 = this.frame, match = $.$get$_friendlyFrame().firstMatch$1(t1); if (match == null) throw A.wrapException(A.FormatException$("Couldn't parse package:stack_trace stack trace line '" + t1 + "'.", _null, _null)); t1 = match._match; t2 = t1[1]; if (t2 === "data:...") uri = A.Uri_Uri$dataFromString("", _null, _null); else { t2 = t2; t2.toString; uri = A.Uri_parse(t2); } if (uri.get$scheme() === "") { t2 = $.$get$context(); 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)); } t2 = t1[2]; if (t2 == null) line = _null; else { t2 = t2; t2.toString; line = A.int_parse(t2, _null); } t2 = t1[3]; if (t2 == null) column = _null; else { t2 = t2; t2.toString; column = A.int_parse(t2, _null); } return new A.Frame(uri, line, column, t1[4]); }, $signature: 74 }; A.LazyTrace.prototype = { get$_lazy_trace$_trace() { var result, _this = this, value = _this.__LazyTrace__trace_FI; if (value === $) { result = _this._thunk.call$0(); _this.__LazyTrace__trace_FI !== $ && A.throwUnnamedLateFieldADI(); _this.__LazyTrace__trace_FI = result; value = result; } return value; }, get$frames() { return this.get$_lazy_trace$_trace().get$frames(); }, get$terse() { return new A.LazyTrace(new A.LazyTrace_terse_closure(this)); }, toString$0(_) { return this.get$_lazy_trace$_trace().toString$0(0); }, $isStackTrace: 1, $isTrace: 1 }; A.LazyTrace_terse_closure.prototype = { call$0() { return this.$this.get$_lazy_trace$_trace().get$terse(); }, $signature: 168 }; A.Trace.prototype = { get$terse() { return this.foldFrames$2$terse(new A.Trace_terse_closure(), true); }, foldFrames$2$terse(predicate, terse) { var newFrames, t1, t2, t3, _box_0 = {}; _box_0.predicate = predicate; _box_0.predicate = new A.Trace_foldFrames_closure(predicate); newFrames = A._setArrayType([], type$.JSArray_Frame); for (t1 = this.frames, t1 = new A.ReversedListIterable(t1, A._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; if (t3 == null) t3 = t2._as(t3); if (t3 instanceof A.UnparsedFrame || !_box_0.predicate.call$1(t3)) newFrames.push(t3); else if (newFrames.length === 0 || !_box_0.predicate.call$1(B.JSArray_methods.get$last(newFrames))) newFrames.push(new A.Frame(t3.get$uri(), t3.get$line(), t3.get$column(), t3.get$member())); } t1 = type$.MappedListIterable_Frame_Frame; newFrames = A.List_List$of(new A.MappedListIterable(newFrames, new A.Trace_foldFrames_closure0(_box_0), t1), true, t1._eval$1("ListIterable.E")); if (newFrames.length > 1 && _box_0.predicate.call$1(B.JSArray_methods.get$first(newFrames))) B.JSArray_methods.removeAt$1(newFrames, 0); return A.Trace$(new A.ReversedListIterable(newFrames, A._arrayInstanceType(newFrames)._eval$1("ReversedListIterable<1>")), this.original._stackTrace); }, toString$0(_) { var t1 = this.frames, t2 = A._arrayInstanceType(t1); 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); }, $isStackTrace: 1, get$frames() { return this.frames; } }; A.Trace_Trace$from_closure.prototype = { call$0() { return A.Trace_Trace$parse(this.trace.toString$0(0)); }, $signature: 168 }; A.Trace__parseVM_closure.prototype = { call$1(line) { return line.length !== 0; }, $signature: 10 }; A.Trace$parseV8_closure.prototype = { call$1(line) { return !B.JSString_methods.startsWith$1(line, $.$get$_v8TraceLine()); }, $signature: 10 }; A.Trace$parseJSCore_closure.prototype = { call$1(line) { return line !== "\tat "; }, $signature: 10 }; A.Trace$parseFirefox_closure.prototype = { call$1(line) { return line.length !== 0 && line !== "[native code]"; }, $signature: 10 }; A.Trace$parseFriendly_closure.prototype = { call$1(line) { return !B.JSString_methods.startsWith$1(line, "====="); }, $signature: 10 }; A.Trace_terse_closure.prototype = { call$1(_) { return false; }, $signature: 169 }; A.Trace_foldFrames_closure.prototype = { call$1(frame) { var t1; if (this.oldPredicate.call$1(frame)) return true; if (frame.get$isCore()) return true; if (frame.get$$package() === "stack_trace") return true; t1 = frame.get$member(); t1.toString; if (!B.JSString_methods.contains$1(t1, "")) return false; return frame.get$line() == null; }, $signature: 169 }; A.Trace_foldFrames_closure0.prototype = { call$1(frame) { var t1, t2; if (frame instanceof A.UnparsedFrame || !this._box_0.predicate.call$1(frame)) return frame; t1 = frame.get$library(); t2 = $.$get$_terseRegExp(); return new A.Frame(A.Uri_parse(A.stringReplaceAllUnchecked(t1, t2, "")), null, null, frame.get$member()); }, $signature: 315 }; A.Trace_toString_closure0.prototype = { call$1(frame) { return frame.get$location().length; }, $signature: 165 }; A.Trace_toString_closure.prototype = { call$1(frame) { if (frame instanceof A.UnparsedFrame) return frame.toString$0(0) + "\n"; return B.JSString_methods.padRight$1(frame.get$location(), this.longest) + " " + A.S(frame.get$member()) + "\n"; }, $signature: 166 }; A.UnparsedFrame.prototype = { toString$0(_) { return this.member; }, $isFrame: 1, get$uri() { return this.uri; }, get$line() { return null; }, get$column() { return null; }, get$isCore() { return false; }, get$library() { return "unparsed"; }, get$$package() { return null; }, get$location() { return "unparsed"; }, get$member() { return this.member; } }; A.TransformByHandlers_transformByHandlers_closure.prototype = { call$0() { var t2, subscription, t3, t4, _this = this, t1 = {}; t1.valuesDone = false; t2 = _this.controller; 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)); t3 = _this._box_1; t3.subscription = subscription; t2.set$onPause(subscription.get$pause(subscription)); t4 = t3.subscription; t2.set$onResume(t4.get$resume(t4)); t2.set$onCancel(new A.TransformByHandlers_transformByHandlers__closure2(t3, t1)); }, $signature: 0 }; A.TransformByHandlers_transformByHandlers__closure.prototype = { call$1(value) { return this.handleData.call$2(value, this.controller); }, $signature() { return this.S._eval$1("~(0)"); } }; A.TransformByHandlers_transformByHandlers__closure1.prototype = { call$2(error, stackTrace) { this.handleError.call$3(error, stackTrace, this.controller); }, $signature: 62 }; A.TransformByHandlers_transformByHandlers__closure0.prototype = { call$0() { this._box_0.valuesDone = true; this.handleDone.call$1(this.controller); }, $signature: 0 }; A.TransformByHandlers_transformByHandlers__closure2.prototype = { call$0() { var t1 = this._box_1, toCancel = t1.subscription; t1.subscription = null; if (!this._box_0.valuesDone) return toCancel.cancel$0(); return null; }, $signature: 284 }; A.RateLimit__debounceAggregate_closure.prototype = { call$2(value, sink) { var _this = this, t1 = _this._box_0, t2 = new A.RateLimit__debounceAggregate_closure_emit(t1, sink, _this.S), t3 = t1.timer; if (t3 != null) t3.cancel$0(); t1.soFar = _this.collect.call$2(value, t1.soFar); t1.hasPending = true; if (t1.timer == null && _this.leading) { t1.emittedLatestAsLeading = true; t2.call$0(); } else t1.emittedLatestAsLeading = false; t1.timer = A.Timer_Timer(_this.duration, new A.RateLimit__debounceAggregate__closure(t1, _this.trailing, t2, sink)); }, $signature() { return this.T._eval$1("@<0>")._bind$1(this.S)._eval$1("~(1,EventSink<2>)"); } }; A.RateLimit__debounceAggregate_closure_emit.prototype = { call$0() { var t1 = this._box_0, t2 = t1.soFar; if (t2 == null) t2 = this.S._as(t2); this.sink.add$1(0, t2); t1.soFar = null; t1.hasPending = false; }, $signature: 0 }; A.RateLimit__debounceAggregate__closure.prototype = { call$0() { var t1 = this._box_0, t2 = t1.emittedLatestAsLeading; if (!t2) this.emit.call$0(); if (t1.shouldClose) this.sink.close$0(0); t1.timer = null; }, $signature: 0 }; A.RateLimit__debounceAggregate_closure0.prototype = { call$1(sink) { var t1 = this._box_0; if (t1.hasPending && this.trailing) t1.shouldClose = true; else { t1 = t1.timer; if (t1 != null) t1.cancel$0(); sink.close$0(0); } }, $signature() { return this.S._eval$1("~(EventSink<0>)"); } }; A.StringScannerException.prototype = { get$source() { return A._asString(this.source); } }; A.LineScanner.prototype = { scanChar$1(character) { if (!this.super$StringScanner$scanChar(character)) return false; this._adjustLineAndColumn$1(character); return true; }, _adjustLineAndColumn$1(character) { var t1, _this = this; if (character !== 10) t1 = character === 13 && _this.peekChar$0() !== 10; else t1 = true; if (t1) { ++_this._line_scanner$_line; _this._line_scanner$_column = 0; } else { t1 = _this._line_scanner$_column; _this._line_scanner$_column = t1 + (character >= 65536 && character <= 1114111 ? 2 : 1); } }, scan$1(pattern) { var t1, newlines, t2, _this = this; if (!_this.super$StringScanner$scan(pattern)) return false; t1 = _this.get$lastMatch(); newlines = _this._newlinesIn$1(t1.pattern); t1 = _this._line_scanner$_line; t2 = newlines.length; _this._line_scanner$_line = t1 + t2; if (t2 === 0) { t1 = _this._line_scanner$_column; t2 = _this.get$lastMatch(); _this._line_scanner$_column = t1 + t2.pattern.length; } else { t1 = _this.get$lastMatch(); _this._line_scanner$_column = t1.pattern.length - J.get$end$z(B.JSArray_methods.get$last(newlines)); } return true; }, _newlinesIn$1(text) { var t1 = $.$get$_newlineRegExp().allMatches$1(0, text), newlines = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E")); if (this.peekChar$1(-1) === 13 && this.peekChar$0() === 10) B.JSArray_methods.removeLast$0(newlines); return newlines; } }; A.SpanScanner.prototype = { set$state(state) { if (state._scanner !== this) throw A.wrapException(A.ArgumentError$(string$.The_gi, null)); this.set$position(state.position); }, spanFrom$2(startState, endState) { var endPosition = endState == null ? this._string_scanner$_position : endState.position; return this._sourceFile.span$2(0, startState.position, endPosition); }, spanFrom$1(startState) { return this.spanFrom$2(startState, null); }, matches$1(pattern) { var t1, t2, _this = this; if (!_this.super$StringScanner$matches(pattern)) return false; t1 = _this._string_scanner$_position; t2 = _this.get$lastMatch(); _this._sourceFile.span$2(0, t1, t2.start + t2.pattern.length); return true; }, error$3$length$position(_, message, $length, position) { var match, t2, _this = this, t1 = _this.string; A.validateErrorArgs(t1, null, position, $length); match = position == null && $length == null ? _this.get$lastMatch() : null; if (position == null) position = match == null ? _this._string_scanner$_position : match.start; if ($length == null) if (match == null) $length = 0; else { t2 = match.start; $length = t2 + match.pattern.length - t2; } throw A.wrapException(A.StringScannerException$(message, _this._sourceFile.span$2(0, position, position + $length), t1)); }, error$1($receiver, message) { return this.error$3$length$position($receiver, message, null, null); }, error$2$position($receiver, message, position) { return this.error$3$length$position($receiver, message, null, position); }, error$2$length($receiver, message, $length) { return this.error$3$length$position($receiver, message, $length, null); } }; A._SpanScannerState.prototype = {}; A.StringScanner.prototype = { set$position(position) { if (B.JSInt_methods.get$isNegative(position) || position > this.string.length) throw A.wrapException(A.ArgumentError$("Invalid position " + position, null)); this._string_scanner$_position = position; this._lastMatch = null; }, get$lastMatch() { var _this = this; if (_this._string_scanner$_position !== _this._lastMatchPosition) _this._lastMatch = null; return _this._lastMatch; }, readChar$0() { var _this = this, t1 = _this.string; if (_this._string_scanner$_position === t1.length) _this._fail$1("more input"); return t1.charCodeAt(_this._string_scanner$_position++); }, peekChar$1(offset) { var index; if (offset == null) offset = 0; index = this._string_scanner$_position + offset; if (index < 0 || index >= this.string.length) return null; return this.string.charCodeAt(index); }, peekChar$0() { return this.peekChar$1(null); }, scanChar$1(character) { var t1, t2, t3, t4, _this = this; if (character >= 65536 && character <= 1114111) { t1 = _this._string_scanner$_position; t2 = t1 + 1; t3 = _this.string; if (t2 < t3.length) { t4 = character - 65536; t2 = t3.charCodeAt(t1) !== B.JSInt_methods._shrOtherPositive$1(t4, 10) + 55296 || t3.charCodeAt(t2) !== (t4 & 1023) + 56320; } else t2 = true; if (t2) return false; else { _this._string_scanner$_position = t1 + 2; return true; } } else { t1 = _this._string_scanner$_position; t2 = _this.string; if (t1 === t2.length) return false; if (t2.charCodeAt(t1) !== character) return false; _this._string_scanner$_position = t1 + 1; return true; } }, expectChar$2$name(character, $name) { if (this.scanChar$1(character)) return; if ($name == null) if (character === 92) $name = '"\\"'; else $name = character === 34 ? '"\\""' : '"' + A.Primitives_stringFromCharCode(character) + '"'; this._fail$1($name); }, expectChar$1(character) { return this.expectChar$2$name(character, null); }, scan$1(pattern) { var t1, _this = this, success = _this.matches$1(pattern); if (success) { t1 = _this._lastMatch; _this._lastMatchPosition = _this._string_scanner$_position = t1.start + t1.pattern.length; } return success; }, expect$1(pattern) { var t1, $name; if (this.scan$1(pattern)) return; t1 = A.stringReplaceAllUnchecked(pattern, "\\", "\\\\"); $name = '"' + A.stringReplaceAllUnchecked(t1, '"', '\\"') + '"'; this._fail$1($name); }, expectDone$0() { if (this._string_scanner$_position === this.string.length) return; this._fail$1("no more input"); }, matches$1(pattern) { var _this = this, t1 = B.JSString_methods.matchAsPrefix$2(pattern, _this.string, _this._string_scanner$_position); _this._lastMatch = t1; _this._lastMatchPosition = _this._string_scanner$_position; return t1 != null; }, substring$1(_, start) { var end = this._string_scanner$_position; return B.JSString_methods.substring$2(this.string, start, end); }, error$3$length$position(_, message, $length, position) { var t1 = this.string; A.validateErrorArgs(t1, null, position, $length); throw A.wrapException(A.StringScannerException$(message, A.SourceFile$fromString(t1, this.sourceUrl).span$2(0, position, position + $length), t1)); }, _fail$1($name) { this.error$3$length$position(0, "expected " + $name + ".", 0, this._string_scanner$_position); } }; A.AsciiGlyphSet.prototype = { glyphOrAscii$2(glyph, alternative) { return alternative; }, get$horizontalLine() { return "-"; }, get$verticalLine() { return "|"; }, get$topLeftCorner() { return ","; }, get$bottomLeftCorner() { return "'"; }, get$cross() { return "+"; }, get$upEnd() { return "'"; }, get$downEnd() { return ","; }, get$horizontalLineBold() { return "="; } }; A.UnicodeGlyphSet.prototype = { glyphOrAscii$2(glyph, alternative) { return glyph; }, get$horizontalLine() { return "\u2500"; }, get$verticalLine() { return "\u2502"; }, get$topLeftCorner() { return "\u250c"; }, get$bottomLeftCorner() { return "\u2514"; }, get$cross() { return "\u253c"; }, get$upEnd() { return "\u2575"; }, get$downEnd() { return "\u2577"; }, get$horizontalLineBold() { return "\u2501"; } }; A.WatchEvent.prototype = { toString$0(_) { return this.type.toString$0(0) + " " + this.path; } }; A.ChangeType.prototype = { toString$0(_) { return this._watch_event$_name; } }; A.AnySelectorVisitor0.prototype = { visitComplexSelector$1(complex) { return B.JSArray_methods.any$1(complex.components, new A.AnySelectorVisitor_visitComplexSelector_closure0(this)); }, visitCompoundSelector$1(compound) { return B.JSArray_methods.any$1(compound.components, new A.AnySelectorVisitor_visitCompoundSelector_closure0(this)); }, visitPseudoSelector$1(pseudo) { var selector = pseudo.selector; return selector == null ? false : this.visitSelectorList$1(selector); }, visitSelectorList$1(list) { return B.JSArray_methods.any$1(list.components, this.get$visitComplexSelector()); }, visitAttributeSelector$1(attribute) { return false; }, visitClassSelector$1(klass) { return false; }, visitIDSelector$1(id) { return false; }, visitParentSelector$1($parent) { return false; }, visitPlaceholderSelector$1(placeholder) { return false; }, visitTypeSelector$1(type) { return false; }, visitUniversalSelector$1(universal) { return false; } }; A.AnySelectorVisitor_visitComplexSelector_closure0.prototype = { call$1(component) { return this.$this.visitCompoundSelector$1(component.selector); }, $signature: 52 }; A.AnySelectorVisitor_visitCompoundSelector_closure0.prototype = { call$1(simple) { return simple.accept$1(this.$this); }, $signature: 15 }; A.SupportsAnything0.prototype = { toString$0(_) { return "(" + this.contents.toString$0(0) + ")"; }, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.Argument0.prototype = { toString$0(_) { var t1 = this.defaultValue, t2 = this.name; return t1 == null ? t2 : t2 + ": " + t1.toString$0(0); }, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.ArgumentDeclaration0.prototype = { get$spanWithName() { var t3, t4, t1 = this.span, t2 = t1.file, text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null), i = A.FileLocation$_(t2, t1._file$_start).offset - 1; while (true) { if (i > 0) { t3 = text.charCodeAt(i); t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12; } else t3 = false; if (!t3) break; --i; } t3 = text.charCodeAt(i); if (!(t3 === 95 || A.CharacterExtension_get_isAlphabetic0(t3) || t3 >= 128)) t3 = t3 >= 48 && t3 <= 57 || t3 === 45; else t3 = true; if (!t3) return t1; --i; while (true) { if (i >= 0) { t3 = text.charCodeAt(i); if (t3 !== 95) { if (!(t3 >= 97 && t3 <= 122)) t4 = t3 >= 65 && t3 <= 90; else t4 = true; t4 = t4 || t3 >= 128; } else t4 = true; if (!t4) t3 = t3 >= 48 && t3 <= 57 || t3 === 45; else t3 = true; } else t3 = false; if (!t3) break; --i; } t3 = i + 1; t4 = text.charCodeAt(t3); if (!(t4 === 95 || A.CharacterExtension_get_isAlphabetic0(t4) || t4 >= 128)) return t1; return A.SpanExtensions_trimRight0(A.SpanExtensions_trimLeft0(t2.span$2(0, t3, A.FileLocation$_(t2, t1._end).offset))); }, verify$2(positional, names) { var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this, _s10_ = "invocation", _s8_ = "argument"; for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) { argument = t1[i]; if (i < positional) { t4 = argument.name; if (t3.containsKey$1(t4)) throw A.wrapException(A.SassScriptException$0("Argument " + _this._argument_declaration$_originalArgumentName$1(t4) + string$.x20was_p, null)); } else { t4 = argument.name; if (t3.containsKey$1(t4)) ++namedUsed; else if (argument.defaultValue == null) 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))); } } if (_this.restArgument != null) return; if (positional > t2) { t1 = names.get$isEmpty(names) ? "" : "positional "; 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))); } if (namedUsed < t3.get$length(t3)) { t2 = type$.String; unknownNames = A.LinkedHashSet_LinkedHashSet$of(names, t2); unknownNames.removeAll$1(new A.MappedListIterable(t1, new A.ArgumentDeclaration_verify_closure1(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object?>"))); 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))); } }, _argument_declaration$_originalArgumentName$1($name) { var t1, text, t2, _i, argument, t3, t4, end, _null = null; if ($name === this.restArgument) { t1 = this.span; text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, _null); 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, ".")); } for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) { argument = t1[_i]; if (argument.name === $name) { t1 = argument.defaultValue; t2 = argument.span; t3 = t2.file; t4 = t2._file$_start; t2 = t2._end; if (t1 == null) { t1 = t3._decodedChars; t1 = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null); } else { t1 = t3._decodedChars; text = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null); t1 = B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":")); end = A._lastNonWhitespace0(t1, false); t1 = end == null ? "" : B.JSString_methods.substring$2(t1, 0, end + 1); } return t1; } } throw A.wrapException(A.ArgumentError$(string$.This_d + $name + '".', _null)); }, matches$2(positional, names) { var t1, t2, t3, namedUsed, i, argument; for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) { argument = t1[i]; if (i < positional) { if (t3.containsKey$1(argument.name)) return false; } else if (t3.containsKey$1(argument.name)) ++namedUsed; else if (argument.defaultValue == null) return false; } if (this.restArgument != null) return true; if (positional > t2) return false; if (namedUsed < t3.get$length(t3)) return false; return true; }, toString$0(_) { var t2, t3, _i, t1 = A._setArrayType([], type$.JSArray_String); for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i) t1.push("$" + A.S(t2[_i])); t2 = this.restArgument; if (t2 != null) t1.push("$" + t2 + "..."); return B.JSArray_methods.join$1(t1, ", "); }, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.ArgumentDeclaration_verify_closure1.prototype = { call$1(argument) { return argument.name; }, $signature: 319 }; A.ArgumentDeclaration_verify_closure2.prototype = { call$1($name) { return "$" + $name; }, $signature: 7 }; A.ArgumentInvocation0.prototype = { get$isEmpty(_) { var t1; if (this.positional.length === 0) { t1 = this.named; t1 = t1.get$isEmpty(t1) && this.rest == null; } else t1 = false; return t1; }, toString$0(_) { var t2, t3, _i, $name, value, _1_0, rest, _2_0, keywordRest, _this = this, t1 = A._setArrayType([], type$.JSArray_String); for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i) t1.push(_this._argument_invocation$_parenthesizeArgument$1(t2[_i])); for (t2 = A.MapExtensions_get_pairs0(_this.named, type$.String, type$.Expression_2), t2 = t2.get$iterator(t2); t2.moveNext$0();) { t3 = t2.get$current(t2); $name = t3._0; value = t3._1; t1.push("$" + $name + ": " + _this._argument_invocation$_parenthesizeArgument$1(value)); } _1_0 = _this.rest; if (_1_0 != null) { rest = _1_0; t2 = true; } else { rest = null; t2 = false; } if (t2) t1.push(_this._argument_invocation$_parenthesizeArgument$1(rest) + "..."); _2_0 = _this.keywordRest; if (_2_0 != null) { keywordRest = _2_0; t2 = true; } else { keywordRest = null; t2 = false; } if (t2) t1.push(_this._argument_invocation$_parenthesizeArgument$1(keywordRest) + "..."); return "(" + B.JSArray_methods.join$1(t1, ", ") + ")"; }, _argument_invocation$_parenthesizeArgument$1(argument) { var t1; $label0$0: { if (argument instanceof A.ListExpression0 && B.ListSeparator_rXA0 === argument.separator && !argument.hasBrackets && argument.contents.length >= 2) { t1 = "(" + argument.toString$0(0) + ")"; break $label0$0; } t1 = argument.toString$0(0); break $label0$0; } return t1; }, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.argumentListClass_closure.prototype = { call$0() { var t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassArgumentList", new A.argumentListClass__closure())); A.defineGetter(J.get$$prototype$x(jsClass), "keywords", new A.argumentListClass__closure0(), null); 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); return jsClass; }, $signature: 24 }; A.argumentListClass__closure.prototype = { call$4($self, contents, keywords, separator) { var t3, t1 = self.immutable.isOrderedMap(contents) ? J.toArray$0$x(type$.ImmutableList._as(contents)) : type$.List_dynamic._as(contents), t2 = type$.Value_2; t1 = J.cast$1$0$ax(t1, t2); t3 = self.immutable.isOrderedMap(keywords) ? A.immutableMapToDartMap(type$.ImmutableMap._as(keywords)) : A.objectToMap(keywords); return A.SassArgumentList$0(t1, t3.cast$2$0(0, type$.String, t2), A.jsToDartSeparator(separator)); }, call$3($self, contents, keywords) { return this.call$4($self, contents, keywords, ","); }, "call*": "call$4", $requiredArgCount: 3, $defaultValues() { return [","]; }, $signature: 321 }; A.argumentListClass__closure0.prototype = { call$1($self) { $self._argument_list$_wereKeywordsAccessed = true; return A.dartMapToImmutableMap($self._argument_list$_keywords); }, $signature: 322 }; A.SassArgumentList0.prototype = {}; A.JSArray1.prototype = {}; A.AsyncImporter0.prototype = { isNonCanonicalScheme$1(scheme) { return false; } }; A.JSToDartAsyncImporter.prototype = { canonicalize$1(_, url) { return this.canonicalize$body$JSToDartAsyncImporter(0, url); }, canonicalize$body$JSToDartAsyncImporter(_, url) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Uri), $async$returnValue, $async$self = this, t1, result; var $async$canonicalize$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start result = A.wrapJSExceptions(new A.JSToDartAsyncImporter_canonicalize_closure($async$self, url)); $async$goto = result != null && result instanceof self.Promise ? 3 : 4; break; case 3: // then $async$goto = 5; return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.nullable_Object), $async$canonicalize$1); case 5: // returning from await. result = $async$result; case 4: // join if (result == null) { $async$returnValue = null; // goto return $async$goto = 1; break; } t1 = self.URL; if (result instanceof t1) { $async$returnValue = A.Uri_parse(J.toString$0$(type$.JSUrl._as(result))); // goto return $async$goto = 1; break; } A.jsThrow(new self.Error(string$.The_ca)); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$canonicalize$1, $async$completer); }, load$1(_, url) { return this.load$body$JSToDartAsyncImporter(0, url); }, load$body$JSToDartAsyncImporter(_, url) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_ImporterResult), $async$returnValue, $async$self = this, t1, contents, syntax, t2, result; var $async$load$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start result = A.wrapJSExceptions(new A.JSToDartAsyncImporter_load_closure($async$self, url)); $async$goto = result != null && result instanceof self.Promise ? 3 : 4; break; case 3: // then $async$goto = 5; return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.nullable_Object), $async$load$1); case 5: // returning from await. result = $async$result; case 4: // join if (result == null) { $async$returnValue = null; // goto return $async$goto = 1; break; } type$.JSImporterResult._as(result); t1 = J.getInterceptor$x(result); contents = t1.get$contents(result); if (A._asString(new self.Function("value", "return typeof value").call$1(contents)) !== "string") A.jsThrow(new A.ArgumentError(true, contents, "contents", "must be a string but was: " + A.jsType(contents))); syntax = t1.get$syntax(result); if (contents == null || syntax == null) A.jsThrow(new self.Error(string$.The_lo)); t2 = A.parseSyntax(syntax); $async$returnValue = A.ImporterResult$(contents, A.NullableExtension_andThen0(t1.get$sourceMapUrl(result), A.utils1__jsToDartUrl$closure()), t2); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$load$1, $async$completer); }, isNonCanonicalScheme$1(scheme) { return this._nonCanonicalSchemes.contains$1(0, scheme); } }; A.JSToDartAsyncImporter_canonicalize_closure.prototype = { call$0() { return this.$this._async0$_canonicalize.call$2(this.url.toString$0(0), {fromImport: A.fromImport0(), containingUrl: A.NullableExtension_andThen0(A.containingUrl(), A.utils1__dartToJSUrl$closure())}); }, $signature: 28 }; A.JSToDartAsyncImporter_load_closure.prototype = { call$0() { return this.$this._load.call$1(new self.URL(this.url.toString$0(0))); }, $signature: 28 }; A.AsyncBuiltInCallable0.prototype = { callbackFor$2(positional, names) { return new A._Record_2(this._async_built_in0$_arguments, this._async_built_in0$_callback); }, $isAsyncCallable0: 1, get$name(receiver) { return this.name; }, get$acceptsContent() { return this.acceptsContent; } }; A.AsyncBuiltInCallable$mixin_closure0.prototype = { call$1($arguments) { return this.$call$body$AsyncBuiltInCallable$mixin_closure0($arguments); }, $call$body$AsyncBuiltInCallable$mixin_closure0($arguments) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$self = this; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self.callback.call$1($arguments), $async$call$1); case 3: // returning from await. $async$returnValue = B.C__SassNull0; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 99 }; A._compileStylesheet_closure2.prototype = { call$1(url) { 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); }, $signature: 7 }; A.AsyncEnvironment0.prototype = { closure$0() { var t4, t5, t6, _this = this, t1 = _this._async_environment0$_forwardedModules, t2 = _this._async_environment0$_nestedForwardedModules, t3 = _this._async_environment0$_variables; t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3)); t4 = _this._async_environment0$_variableNodes; t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4)); t5 = _this._async_environment0$_functions; t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5)); t6 = _this._async_environment0$_mixins; t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6)); 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); }, forwardModule$2(module, rule) { var view, t1, t2, _this = this, forwardedModules = _this._async_environment0$_forwardedModules; if (forwardedModules == null) forwardedModules = _this._async_environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.AstNode_2); view = A.ForwardedModuleView_ifNecessary0(module, rule, type$.AsyncCallable_2); for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules._modifications); t1.moveNext$0();) { t2 = t1.__js_helper$_current; _this._async_environment0$_assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable"); _this._async_environment0$_assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function"); _this._async_environment0$_assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin"); } _this._async_environment0$_allModules.push(module); forwardedModules.$indexSet(0, view, rule); }, _async_environment0$_assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) { var larger, smaller, t1, t2, t3, t4, $name, small, large, span; if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) { larger = oldMembers; smaller = newMembers; } else { larger = newMembers; smaller = oldMembers; } for (t1 = type$.String, t2 = A.MapExtensions_get_pairs0(smaller, t1, type$.Object), t2 = t2.get$iterator(t2), t3 = type === "variable"; t2.moveNext$0();) { t4 = t2.get$current(t2); $name = t4._0; small = t4._1; small = small; large = larger.$index(0, $name); if (large == null) continue; if (t3 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(large, small)) continue; if (t3) $name = "$" + $name; t2 = this._async_environment0$_forwardedModules; if (t2 == null) span = null; else { t2 = t2.$index(0, oldModule); span = t2 == null ? null : J.get$span$z(t2); } t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, t1); if (span != null) t2.$indexSet(0, span, "original @forward"); throw A.wrapException(A.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t2)); } }, importForwards$1(module) { var forwardedModules, t1, t2, t3, t4, node, t5, t6, t7, t8, t9, t10, _i, t11, shadowed, _length, _list, _this = this, forwarded = module._async_environment0$_environment._async_environment0$_forwardedModules; if (forwarded == null) return; forwardedModules = _this._async_environment0$_forwardedModules; if (forwardedModules != null) { t1 = type$.Module_AsyncCallable_2; t2 = type$.AstNode_2; t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t1 = A.MapExtensions_get_pairs0(forwarded, t1, t2), t1 = t1.get$iterator(t1), t2 = _this._async_environment0$_globalModules; t1.moveNext$0();) { t4 = t1.get$current(t1); module = t4._0; node = t4._1; if (!forwardedModules.containsKey$1(module) || !t2.containsKey$1(module)) t3.$indexSet(0, module, node); } forwarded = t3; } else forwardedModules = _this._async_environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.AstNode_2); t1 = type$.String; t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1); for (t3 = A.LinkedHashMapKeyIterator$(forwarded, forwarded._modifications); t3.moveNext$0();) for (t4 = t3.__js_helper$_current.get$variables(), t4 = J.get$iterator$ax(t4.get$keys(t4)); t4.moveNext$0();) t2.add$1(0, t4.get$current(t4)); t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1); for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded._modifications); t4.moveNext$0();) { t5 = t4.__js_helper$_current; for (t5 = t5.get$functions(t5), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();) t3.add$1(0, t5.get$current(t5)); } t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1); for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded._modifications); t4.moveNext$0();) for (t5 = t4.__js_helper$_current.get$mixins(), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();) t1.add$1(0, t5.get$current(t5)); t4 = _this._async_environment0$_variables; t5 = t4.length; if (t5 === 1) { 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) { t11 = t8[_i]; module = t11._0; node = t11._1; shadowed = A.ShadowedModuleView_ifNecessary0(module, t3, t1, t2, t10); if (shadowed != null) { t5.remove$1(0, module); t11 = shadowed.variables; if (t11.get$isEmpty(t11)) { t11 = shadowed.functions; if (t11.get$isEmpty(t11)) { t11 = shadowed.mixins; if (t11.get$isEmpty(t11)) { t11 = shadowed._shadowed_view0$_inner; t11 = t11.get$css(t11); t11 = J.get$isEmpty$asx(t11.get$children(t11)); } else t11 = false; } else t11 = false; } else t11 = false; if (!t11) t5.$indexSet(0, shadowed, node); } } 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) { t8 = t6[_i]; module = t8._0; node = t8._1; shadowed = A.ShadowedModuleView_ifNecessary0(module, t3, t1, t2, t10); if (shadowed != null) { forwardedModules.remove$1(0, module); t8 = shadowed.variables; if (t8.get$isEmpty(t8)) { t8 = shadowed.functions; if (t8.get$isEmpty(t8)) { t8 = shadowed.mixins; if (t8.get$isEmpty(t8)) { t8 = shadowed._shadowed_view0$_inner; t8 = t8.get$css(t8); t8 = J.get$isEmpty$asx(t8.get$children(t8)); } else t8 = false; } else t8 = false; } else t8 = false; if (!t8) forwardedModules.$indexSet(0, shadowed, node); } } t5.addAll$1(0, forwarded); forwardedModules.addAll$1(0, forwarded); } else { t6 = _this._async_environment0$_nestedForwardedModules; if (t6 == null) { _length = t5 - 1; _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_AsyncCallable_2); for (t5 = type$.JSArray_Module_AsyncCallable_2, _i = 0; _i < _length; ++_i) _list[_i] = A._setArrayType([], t5); _this._async_environment0$_nestedForwardedModules = _list; t5 = _list; } else t5 = t6; B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t5), new A.LinkedHashMapKeyIterable(forwarded, A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>"))); } for (t2 = A._LinkedHashSetIterator$(t2, t2._collection$_modifications), t5 = _this._async_environment0$_variableIndices, t6 = _this._async_environment0$_variableNodes, t7 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t8 = t2._collection$_current; if (t8 == null) t8 = t7._as(t8); t5.remove$1(0, t8); J.remove$1$z(B.JSArray_methods.get$last(t4), t8); J.remove$1$z(B.JSArray_methods.get$last(t6), t8); } for (t2 = A._LinkedHashSetIterator$(t3, t3._collection$_modifications), t3 = _this._async_environment0$_functionIndices, t4 = _this._async_environment0$_functions, t5 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t6 = t2._collection$_current; if (t6 == null) t6 = t5._as(t6); t3.remove$1(0, t6); J.remove$1$z(B.JSArray_methods.get$last(t4), t6); } for (t1 = A._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = _this._async_environment0$_mixinIndices, t3 = _this._async_environment0$_mixins, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t5 = t1._collection$_current; if (t5 == null) t5 = t4._as(t5); t2.remove$1(0, t5); J.remove$1$z(B.JSArray_methods.get$last(t3), t5); } }, getVariable$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) return _this._async_environment0$_getModule$1(namespace).get$variables().$index(0, $name); if (_this._async_environment0$_lastVariableName === $name) { t1 = _this._async_environment0$_lastVariableIndex; t1.toString; t1 = J.$index$asx(_this._async_environment0$_variables[t1], $name); return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1; } t1 = _this._async_environment0$_variableIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._async_environment0$_lastVariableName = $name; _this._async_environment0$_lastVariableIndex = index; t1 = J.$index$asx(_this._async_environment0$_variables[index], $name); return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1; } else { _1_0 = _this._async_environment0$_variableIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._async_environment0$_lastVariableName = $name; _this._async_environment0$_lastVariableIndex = index; t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._async_environment0$_variables[index], $name); return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1; } else return _this._async_environment0$_getVariableFromGlobalModule$1($name); } }, getVariable$1($name) { return this.getVariable$2$namespace($name, null); }, _async_environment0$_getVariableFromGlobalModule$1($name) { return this._async_environment0$_fromOneModule$3($name, "variable", new A.AsyncEnvironment__getVariableFromGlobalModule_closure0($name)); }, getVariableNode$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) return _this._async_environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name); if (_this._async_environment0$_lastVariableName === $name) { t1 = _this._async_environment0$_lastVariableIndex; t1.toString; t1 = J.$index$asx(_this._async_environment0$_variableNodes[t1], $name); return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1; } t1 = _this._async_environment0$_variableIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._async_environment0$_lastVariableName = $name; _this._async_environment0$_lastVariableIndex = index; t1 = J.$index$asx(_this._async_environment0$_variableNodes[index], $name); return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1; } else { _1_0 = _this._async_environment0$_variableIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._async_environment0$_lastVariableName = $name; _this._async_environment0$_lastVariableIndex = index; t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._async_environment0$_variableNodes[index], $name); return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1; } else return _this._async_environment0$_getVariableNodeFromGlobalModule$1($name); } }, _async_environment0$_getVariableNodeFromGlobalModule$1($name) { var t1, t2, _0_0, value; 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();) { t1 = t2._currentIterator; _0_0 = t1.get$current(t1).get$variableNodes().$index(0, $name); if (_0_0 != null) { value = _0_0; t1 = true; } else { value = null; t1 = false; } if (t1) return value; } return null; }, globalVariableExists$2$namespace($name, namespace) { if (namespace != null) return this._async_environment0$_getModule$1(namespace).get$variables().containsKey$1($name); if (B.JSArray_methods.get$first(this._async_environment0$_variables).containsKey$1($name)) return true; return this._async_environment0$_getVariableFromGlobalModule$1($name) != null; }, globalVariableExists$1($name) { return this.globalVariableExists$2$namespace($name, null); }, _async_environment0$_variableIndex$1($name) { var t1, i; for (t1 = this._async_environment0$_variables, i = t1.length - 1; i >= 0; --i) if (t1[i].containsKey$1($name)) return i; return null; }, setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) { var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this; if (namespace != null) { _this._async_environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan); return; } if (global || _this._async_environment0$_variables.length === 1) { _this._async_environment0$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure2(_this, $name)); t1 = _this._async_environment0$_variables; if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) { moduleWithName = _this._async_environment0$_fromOneModule$3($name, "variable", new A.AsyncEnvironment_setVariable_closure3($name)); if (moduleWithName != null) { moduleWithName.setVariable$3($name, value, nodeWithSpan); return; } } J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value); J.$indexSet$ax(B.JSArray_methods.get$first(_this._async_environment0$_variableNodes), $name, nodeWithSpan); return; } nestedForwardedModules = _this._async_environment0$_nestedForwardedModules; if (nestedForwardedModules != null && !_this._async_environment0$_variableIndices.containsKey$1($name) && _this._async_environment0$_variableIndex$1($name) == null) for (t1 = new A.ReversedListIterable(nestedForwardedModules, A.instanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) { t5 = t3.__internal$_current; if (t5 == null) t5 = t4._as(t5); if (t5.get$variables().containsKey$1($name)) { t5.setVariable$3($name, value, nodeWithSpan); return; } } } if (_this._async_environment0$_lastVariableName === $name) { t1 = _this._async_environment0$_lastVariableIndex; t1.toString; index = t1; } else index = _this._async_environment0$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure4(_this, $name)); if (!_this._async_environment0$_inSemiGlobalScope && index === 0) { index = _this._async_environment0$_variables.length - 1; _this._async_environment0$_variableIndices.$indexSet(0, $name, index); } _this._async_environment0$_lastVariableName = $name; _this._async_environment0$_lastVariableIndex = index; J.$indexSet$ax(_this._async_environment0$_variables[index], $name, value); J.$indexSet$ax(_this._async_environment0$_variableNodes[index], $name, nodeWithSpan); }, setVariable$4$global($name, value, nodeWithSpan, global) { return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null); }, setLocalVariable$3($name, value, nodeWithSpan) { var index, _this = this, t1 = _this._async_environment0$_variables, t2 = t1.length; _this._async_environment0$_lastVariableName = $name; index = _this._async_environment0$_lastVariableIndex = t2 - 1; _this._async_environment0$_variableIndices.$indexSet(0, $name, index); J.$indexSet$ax(t1[index], $name, value); J.$indexSet$ax(_this._async_environment0$_variableNodes[index], $name, nodeWithSpan); }, getFunction$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) { t1 = _this._async_environment0$_getModule$1(namespace); return t1.get$functions(t1).$index(0, $name); } t1 = _this._async_environment0$_functionIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1 = J.$index$asx(_this._async_environment0$_functions[index], $name); return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1; } else { _1_0 = _this._async_environment0$_functionIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._async_environment0$_functions[index], $name); return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1; } else return _this._async_environment0$_getFunctionFromGlobalModule$1($name); } }, getFunction$1($name) { return this.getFunction$2$namespace($name, null); }, _async_environment0$_getFunctionFromGlobalModule$1($name) { return this._async_environment0$_fromOneModule$3($name, "function", new A.AsyncEnvironment__getFunctionFromGlobalModule_closure0($name)); }, _async_environment0$_functionIndex$1($name) { var t1, i; for (t1 = this._async_environment0$_functions, i = t1.length - 1; i >= 0; --i) if (t1[i].containsKey$1($name)) return i; return null; }, getMixin$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) return _this._async_environment0$_getModule$1(namespace).get$mixins().$index(0, $name); t1 = _this._async_environment0$_mixinIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1 = J.$index$asx(_this._async_environment0$_mixins[index], $name); return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1; } else { _1_0 = _this._async_environment0$_mixinIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._async_environment0$_mixins[index], $name); return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1; } else return _this._async_environment0$_getMixinFromGlobalModule$1($name); } }, _async_environment0$_getMixinFromGlobalModule$1($name) { return this._async_environment0$_fromOneModule$3($name, "mixin", new A.AsyncEnvironment__getMixinFromGlobalModule_closure0($name)); }, _async_environment0$_mixinIndex$1($name) { var t1, i; for (t1 = this._async_environment0$_mixins, i = t1.length - 1; i >= 0; --i) if (t1[i].containsKey$1($name)) return i; return null; }, withContent$2($content, callback) { return this.withContent$body$AsyncEnvironment0($content, callback); }, withContent$body$AsyncEnvironment0($content, callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, oldContent; var $async$withContent$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldContent = $async$self._async_environment0$_content; $async$self._async_environment0$_content = $content; $async$goto = 2; return A._asyncAwait(callback.call$0(), $async$withContent$2); case 2: // returning from await. $async$self._async_environment0$_content = oldContent; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$withContent$2, $async$completer); }, asMixin$1(callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, oldInMixin; var $async$asMixin$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldInMixin = $async$self._async_environment0$_inMixin; $async$self._async_environment0$_inMixin = true; $async$goto = 2; return A._asyncAwait(callback.call$0(), $async$asMixin$1); case 2: // returning from await. $async$self._async_environment0$_inMixin = oldInMixin; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$asMixin$1, $async$completer); }, scope$1$3$semiGlobal$when(callback, semiGlobal, when, $T) { return this.scope$body$AsyncEnvironment0(callback, semiGlobal, when, $T, $T); }, scope$1$1(callback, $T) { return this.scope$1$3$semiGlobal$when(callback, false, true, $T); }, scope$1$2$when(callback, when, $T) { return this.scope$1$3$semiGlobal$when(callback, false, when, $T); }, scope$1$2$semiGlobal(callback, semiGlobal, $T) { return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T); }, scope$body$AsyncEnvironment0(callback, semiGlobal, when, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6; var $async$scope$1$3$semiGlobal$when = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start semiGlobal = semiGlobal && $async$self._async_environment0$_inSemiGlobalScope; wasInSemiGlobalScope = $async$self._async_environment0$_inSemiGlobalScope; $async$self._async_environment0$_inSemiGlobalScope = semiGlobal; $async$goto = !when ? 3 : 4; break; case 3: // then $async$handler = 5; $async$goto = 8; return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when); case 8: // returning from await. t1 = $async$result; $async$returnValue = t1; $async$next = [1]; // goto finally $async$goto = 6; break; $async$next.push(7); // goto finally $async$goto = 6; break; case 5: // uncaught $async$next = [2]; case 6: // finally $async$handler = 2; $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope; // goto the next finally handler $async$goto = $async$next.pop(); break; case 7: // after finally case 4: // join t1 = $async$self._async_environment0$_variables; t2 = type$.String; B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value_2)); t3 = $async$self._async_environment0$_variableNodes; B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode_2)); t4 = $async$self._async_environment0$_functions; t5 = type$.AsyncCallable_2; B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5)); t6 = $async$self._async_environment0$_mixins; B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5)); t5 = $async$self._async_environment0$_nestedForwardedModules; if (t5 != null) t5.push(A._setArrayType([], type$.JSArray_Module_AsyncCallable_2)); $async$handler = 9; $async$goto = 12; return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when); case 12: // returning from await. t2 = $async$result; $async$returnValue = t2; $async$next = [1]; // goto finally $async$goto = 10; break; $async$next.push(11); // goto finally $async$goto = 10; break; case 9: // uncaught $async$next = [2]; case 10: // finally $async$handler = 2; $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope; $async$self._async_environment0$_lastVariableIndex = $async$self._async_environment0$_lastVariableName = null; 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();) { $name = t1.get$current(t1); t2.remove$1(0, $name); } B.JSArray_methods.removeLast$0(t3); 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();) { name0 = t1.get$current(t1); t2.remove$1(0, name0); } 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();) { name1 = t1.get$current(t1); t2.remove$1(0, name1); } t1 = $async$self._async_environment0$_nestedForwardedModules; if (t1 != null) t1.pop(); // goto the next finally handler $async$goto = $async$next.pop(); break; case 11: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer); }, toImplicitConfiguration$0() { var t2, t3, t4, i, values, nodes, t5, t6, $name, value, t1 = type$.String, configuration = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue_2); for (t2 = this._async_environment0$_variables, t3 = type$.Value_2, t4 = this._async_environment0$_variableNodes, i = 0; i < t2.length; ++i) { values = t2[i]; nodes = t4[i]; for (t5 = A.MapExtensions_get_pairs0(values, t1, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) { t6 = t5.get$current(t5); $name = t6._0; value = t6._1; t6 = nodes.$index(0, $name); t6.toString; configuration.$indexSet(0, $name, new A.ConfiguredValue0(value, null, t6)); } } return new A.Configuration0(configuration, null); }, toModule$3(css, preModuleComments, extensionStore) { return A._EnvironmentModule__EnvironmentModule2(this, css, preModuleComments, extensionStore, A.NullableExtension_andThen0(this._async_environment0$_forwardedModules, new A.AsyncEnvironment_toModule_closure0())); }, toDummyModule$0() { return A._EnvironmentModule__EnvironmentModule2(this, new A.CssStylesheet0(new A.UnmodifiableListView(B.List_empty16, type$.UnmodifiableListView_CssNode_2), A.SourceFile$decoded(B.List_empty4, "").span$1(0, 0)), B.Map_empty15, B.C_EmptyExtensionStore0, A.NullableExtension_andThen0(this._async_environment0$_forwardedModules, new A.AsyncEnvironment_toDummyModule_closure0())); }, _async_environment0$_getModule$1(namespace) { var module, t1, _0_0 = this._async_environment0$_modules.$index(0, namespace); if (_0_0 != null) { module = _0_0; t1 = true; } else { module = null; t1 = false; } if (t1) return module; throw A.wrapException(A.SassScriptException$0('There is no module with the namespace "' + namespace + '".', null)); }, _async_environment0$_fromOneModule$1$3($name, type, callback) { var nestedForwardedModules, t1, t2, t3, t4, t5, _1_0, value, _2_0, identity, valueInModule, identityFromModule, module, node, _null = null, _0_0 = this._async_environment0$_nestedForwardedModules; if (_0_0 != null) { nestedForwardedModules = _0_0; t1 = true; } else { nestedForwardedModules = _null; t1 = false; } if (t1) for (t1 = new A.ReversedListIterable(nestedForwardedModules, A.instanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) { t5 = t3.__internal$_current; _1_0 = callback.call$1(t5 == null ? t4._as(t5) : t5); if (_1_0 != null) { value = _1_0; t5 = true; } else { value = _null; t5 = false; } if (t5) return value; } } for (t1 = this._async_environment0$_importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1._modifications); t1.moveNext$0();) { _2_0 = callback.call$1(t1.__js_helper$_current); if (_2_0 != null) { value = _2_0; t2 = true; } else { value = _null; t2 = false; } if (t2) return value; } for (t1 = this._async_environment0$_globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1._modifications), t3 = type$.AsyncCallable_2, identity = _null, value = identity; t2.moveNext$0();) { t4 = t2.__js_helper$_current; valueInModule = callback.call$1(t4); if (valueInModule == null) continue; identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name); if (identityFromModule.$eq(0, identity)) continue; if (value != null) { t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); 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();) { t1 = t3.get$current(t3); module = t1._0; node = t1._1; if (callback.call$1(module) != null) t2.$indexSet(0, node.get$span(node), t4); } throw A.wrapException(A.MultiSpanSassScriptException$0("This " + type + string$.x20is_av, type + " use", t2)); } identity = identityFromModule; value = valueInModule; } return value; }, _async_environment0$_fromOneModule$3($name, type, callback) { return this._async_environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic); } }; A.AsyncEnvironment__getVariableFromGlobalModule_closure0.prototype = { call$1(module) { return module.get$variables().$index(0, this.name); }, $signature: 324 }; A.AsyncEnvironment_setVariable_closure2.prototype = { call$0() { var t1 = this.$this; t1._async_environment0$_lastVariableName = this.name; return t1._async_environment0$_lastVariableIndex = 0; }, $signature: 3 }; A.AsyncEnvironment_setVariable_closure3.prototype = { call$1(module) { return module.get$variables().containsKey$1(this.name) ? module : null; }, $signature: 325 }; A.AsyncEnvironment_setVariable_closure4.prototype = { call$0() { var t1 = this.$this, t2 = t1._async_environment0$_variableIndex$1(this.name); return t2 == null ? t1._async_environment0$_variables.length - 1 : t2; }, $signature: 3 }; A.AsyncEnvironment__getFunctionFromGlobalModule_closure0.prototype = { call$1(module) { return module.get$functions(module).$index(0, this.name); }, $signature: 175 }; A.AsyncEnvironment__getMixinFromGlobalModule_closure0.prototype = { call$1(module) { return module.get$mixins().$index(0, this.name); }, $signature: 175 }; A.AsyncEnvironment_toModule_closure0.prototype = { call$1(modules) { return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable_2); }, $signature: 176 }; A.AsyncEnvironment_toDummyModule_closure0.prototype = { call$1(modules) { return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable_2); }, $signature: 176 }; A._EnvironmentModule2.prototype = { get$url(_) { var t1 = this.css; return t1.get$span(t1).file.url; }, setVariable$3($name, value, nodeWithSpan) { var module, t1, t2, _0_0 = this._async_environment0$_modulesByVariable.$index(0, $name); if (_0_0 != null) { module = _0_0; t1 = true; } else { module = null; t1 = false; } if (t1) { module.setVariable$3($name, value, nodeWithSpan); return; } t1 = this._async_environment0$_environment; t2 = t1._async_environment0$_variables; if (!B.JSArray_methods.get$first(t2).containsKey$1($name)) throw A.wrapException(A.SassScriptException$0("Undefined variable.", null)); J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value); J.$indexSet$ax(B.JSArray_methods.get$first(t1._async_environment0$_variableNodes), $name, nodeWithSpan); return; }, variableIdentity$1($name) { var module = this._async_environment0$_modulesByVariable.$index(0, $name); return module == null ? this : module.variableIdentity$1($name); }, cloneCss$0() { var _0_0, _this = this; if (!_this.transitivelyContainsCss) return _this; _0_0 = A.cloneCssStylesheet0(_this.css, _this.extensionStore); 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); }, toString$0(_) { var t1 = this.css; if (t1.get$span(t1).file.url == null) t1 = ""; else { t1 = t1.get$span(t1); t1 = $.$get$context().prettyUri$1(t1.file.url); } return t1; }, $isModule1: 1, get$upstream() { return this.upstream; }, get$variables() { return this.variables; }, get$variableNodes() { return this.variableNodes; }, get$functions(receiver) { return this.functions; }, get$mixins() { return this.mixins; }, get$extensionStore() { return this.extensionStore; }, get$css(receiver) { return this.css; }, get$preModuleComments() { return this.preModuleComments; }, get$transitivelyContainsCss() { return this.transitivelyContainsCss; }, get$transitivelyContainsExtensions() { return this.transitivelyContainsExtensions; } }; A._EnvironmentModule__EnvironmentModule_closure17.prototype = { call$1(module) { return module.get$variables(); }, $signature: 328 }; A._EnvironmentModule__EnvironmentModule_closure18.prototype = { call$1(module) { return module.get$variableNodes(); }, $signature: 329 }; A._EnvironmentModule__EnvironmentModule_closure19.prototype = { call$1(module) { return module.get$functions(module); }, $signature: 177 }; A._EnvironmentModule__EnvironmentModule_closure20.prototype = { call$1(module) { return module.get$mixins(); }, $signature: 177 }; A._EnvironmentModule__EnvironmentModule_closure21.prototype = { call$1(module) { return module.get$transitivelyContainsCss(); }, $signature: 123 }; A._EnvironmentModule__EnvironmentModule_closure22.prototype = { call$1(module) { return module.get$transitivelyContainsExtensions(); }, $signature: 123 }; A._EvaluateVisitor2.prototype = { _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) { var t2, metaModule, t3, _i, module, $function, t4, _this = this, _s20_ = "$name, $module: null", _s9_ = "sass:meta", _s7_ = "$module", t1 = type$.JSArray_AsyncBuiltInCallable_2, 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...) {", null, _s9_).parseArgumentDeclaration$0(), new A._EvaluateVisitor_closure48(_this), false)], t1), metaMixins = A._setArrayType([A.AsyncBuiltInCallable$mixin0("load-css", "$url, $with: null", new A._EvaluateVisitor_closure49(_this), _s9_), A.BuiltInCallable$mixin0("apply", "$mixin, $args...", new A._EvaluateVisitor_closure50(_this), true, _s9_)], t1); t1 = type$.AsyncBuiltInCallable_2; t2 = A.List_List$of($.$get$global6(), true, t1); B.JSArray_methods.addAll$1(t2, $.$get$local0()); B.JSArray_methods.addAll$1(t2, metaFunctions); metaModule = A.BuiltInModule$0("meta", t2, metaMixins, null, t1); 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) { module = t1[_i]; t3.$indexSet(0, module.url, module); } t1 = A._setArrayType([], type$.JSArray_AsyncCallable_2); B.JSArray_methods.addAll$1(t1, functions); B.JSArray_methods.addAll$1(t1, $.$get$globalFunctions0()); B.JSArray_methods.addAll$1(t1, metaFunctions); for (t2 = t1.length, t3 = _this._async_evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) { $function = t1[_i]; t4 = J.get$name$x($function); t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function); } }, run$2(_, importer, node) { return this.run$body$_EvaluateVisitor0(0, importer, node); }, run$body$_EvaluateVisitor0(_, importer, node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2), $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, $async$exception; var $async$run$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start $async$handler = 4; t1 = type$.nullable_Object; $async$goto = 7; return A._asyncAwait(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), $async$run$2); case 7: // returning from await. t1 = $async$result; $async$returnValue = t1; // goto return $async$goto = 1; break; $async$handler = 2; // goto after finally $async$goto = 6; break; case 4: // catch $async$handler = 3; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (t1 instanceof A.SassException0) { error = t1; stackTrace = A.getTraceFromException($async$exception); A.throwWithTrace0(error.withLoadedUrls$1($async$self._async_evaluate0$_loadedUrls), error, stackTrace); } else throw $async$exception; // goto after finally $async$goto = 6; break; case 3: // uncaught // goto rethrow $async$goto = 2; break; case 6: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$run$2, $async$completer); }, _async_evaluate0$_assertInModule$1$2(value, $name) { if (value != null) return value; throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module.")); }, _async_evaluate0$_assertInModule$2(value, $name) { return this._async_evaluate0$_assertInModule$1$2(value, $name, type$.dynamic); }, _async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) { return this._loadModule$body$_EvaluateVisitor0(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors); }, _async_evaluate0$_loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) { return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false); }, _async_evaluate0$_loadModule$4(url, stackFrame, nodeWithSpan, callback) { return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false); }, _loadModule$body$_EvaluateVisitor0(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$returnValue, $async$self = this, _0_0, t2, t1; var $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = {}; t1.builtInModule = null; _0_0 = $async$self._async_evaluate0$_builtInModules.$index(0, url); if (_0_0 != null) { t1.builtInModule = _0_0; t2 = true; } else t2 = false; $async$goto = t2 ? 3 : 4; break; case 3: // then if (configuration instanceof A.ExplicitConfiguration0) { t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured."; t2 = configuration.nodeWithSpan; throw A.wrapException($async$self._async_evaluate0$_exception$2(t1, t2.get$span(t2))); } $async$goto = 5; 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); case 5: // returning from await. // goto return $async$goto = 1; break; case 4: // join $async$goto = 6; 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); case 6: // returning from await. case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer); }, _async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) { return this._execute$body$_EvaluateVisitor0(importer, stylesheet, configuration, namesInErrors, nodeWithSpan); }, _async_evaluate0$_execute$2(importer, stylesheet) { return this._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null); }, _execute$body$_EvaluateVisitor0(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Module_AsyncCallable_2), $async$returnValue, $async$self = this, alreadyLoaded, t2, currentConfiguration, t3, message, existingSpan, configurationSpan, environment, css, preModuleComments, extensionStore, module, url, t1, _0_0; var $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start url = stylesheet.span.file.url; t1 = $async$self._async_evaluate0$_modules; _0_0 = t1.$index(0, url); if (_0_0 != null) { alreadyLoaded = _0_0; t2 = true; } else { alreadyLoaded = null; t2 = false; } if (t2) { t1 = configuration == null; currentConfiguration = t1 ? $async$self._async_evaluate0$_configuration : configuration; t2 = $async$self._async_evaluate0$_moduleConfigurations.$index(0, url); t3 = t2._configuration0$__originalConfiguration; t2 = t3 == null ? t2 : t3; t3 = currentConfiguration._configuration0$__originalConfiguration; if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration0) { message = namesInErrors ? $.$get$context().prettyUri$1(url) + string$.x20was_a : string$.This_mw; t2 = $async$self._async_evaluate0$_moduleNodes.$index(0, url); existingSpan = t2 == null ? null : t2.get$span(t2); if (t1) { t1 = currentConfiguration.nodeWithSpan; configurationSpan = t1.get$span(t1); } else configurationSpan = null; t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); if (existingSpan != null) t1.$indexSet(0, existingSpan, "original load"); if (configurationSpan != null) t1.$indexSet(0, configurationSpan, "configuration"); throw A.wrapException(t1.get$isEmpty(t1) ? $async$self._async_evaluate0$_exception$1(message) : $async$self._async_evaluate0$_multiSpanException$3(message, "new load", t1)); } $async$returnValue = alreadyLoaded; // goto return $async$goto = 1; break; } environment = A.AsyncEnvironment$0(); css = A._Cell$(); preModuleComments = A._Cell$(); extensionStore = A.ExtensionStore$0(); $async$goto = 3; 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); case 3: // returning from await. t2 = css._readLocal$0(); t3 = preModuleComments._readLocal$0(); module = environment.toModule$3(t2, t3 == null ? B.Map_empty15 : t3, extensionStore); if (url != null) { t1.$indexSet(0, url, module); $async$self._async_evaluate0$_moduleConfigurations.$indexSet(0, url, $async$self._async_evaluate0$_configuration); if (nodeWithSpan != null) $async$self._async_evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan); } $async$returnValue = module; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer); }, _async_evaluate0$_addOutOfOrderImports$0() { var t1, t2, _this = this, _s5_ = "_root", _s13_ = "_endOfImports", _0_0 = _this._async_evaluate0$_outOfOrderImports; $label0$0: { if (_0_0 == null) { t1 = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).children; break $label0$0; } t1 = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_); t1 = t1.children; 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); B.JSArray_methods.addAll$1(t1, _0_0); t2 = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).children; 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"))); break $label0$0; } return t1; }, _async_evaluate0$_combineCss$2$clone(root, clone) { var selectors, _0_0, unsatisfiedExtension, t1, imports, css, sorted, t2; if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure5())) { selectors = root.get$extensionStore().get$simpleSelectors(); _0_0 = A.IterableExtension_get_firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure6(selectors))); if (_0_0 != null) { unsatisfiedExtension = _0_0; t1 = true; } else { unsatisfiedExtension = null; t1 = false; } if (t1) this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtension); return root.get$css(root); } t1 = type$.JSArray_CssNode_2; imports = A._setArrayType([], t1); css = A._setArrayType([], t1); t1 = type$.Module_AsyncCallable_2; sorted = A.ListQueue$(t1); new A._EvaluateVisitor__combineCss_visitModule2(this, A.LinkedHashSet_LinkedHashSet$_empty(t1), clone, css, imports, sorted).call$1(root); if (root.get$transitivelyContainsExtensions()) this._async_evaluate0$_extendModules$1(sorted); t1 = B.JSArray_methods.$add(imports, css); t2 = root.get$css(root); return new A.CssStylesheet0(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode_2), t2.get$span(t2)); }, _async_evaluate0$_combineCss$1(root) { return this._async_evaluate0$_combineCss$2$clone(root, false); }, _async_evaluate0$_extendModules$1(sortedModules) { var t1, t2, t3, originalSelectors, $self, t4, t5, _i, upstream, _0_0, url, t6, downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore_2), unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension_2); for (t1 = A._ListQueueIterator$(sortedModules), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1._collection$_current; if (t3 == null) t3 = t2._as(t3); originalSelectors = t3.get$extensionStore().get$simpleSelectors().toSet$0(0); unsatisfiedExtensions.addAll$1(0, t3.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure5(originalSelectors))); $self = downstreamExtensionStores.$index(0, t3.get$url(t3)); t4 = t3.get$extensionStore().get$addExtensions(); if ($self != null) t4.call$1($self); t4 = t3.get$extensionStore(); if (t4.get$isEmpty(t4)) continue; for (t4 = t3.get$upstream(), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, A.throwConcurrentModificationError)(t4), ++_i) { upstream = t4[_i]; _0_0 = upstream.get$url(upstream); if (_0_0 != null) { url = _0_0; t6 = true; } else { url = null; t6 = false; } if (t6) J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(url, new A._EvaluateVisitor__extendModules_closure6()), t3.get$extensionStore()); } unsatisfiedExtensions.removeAll$1(t3.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors))); } if (unsatisfiedExtensions._collection$_length !== 0) this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions)); }, _async_evaluate0$_throwForUnsatisfiedExtension$1(extension) { throw A.wrapException(A.SassException$0(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span, null)); }, _async_evaluate0$_indexAfterImports$1(statements) { var t1, lastImport, i, _0_0; for (t1 = J.getInterceptor$asx(statements), lastImport = -1, i = 0; i < t1.get$length(statements); ++i) { $label0$0: { _0_0 = t1.$index(statements, i); if (_0_0 instanceof A.ModifiableCssImport0) break $label0$0; if (_0_0 instanceof A.ModifiableCssComment0) continue; break; } lastImport = i; } return lastImport + 1; }, visitStylesheet$1(node) { return this.visitStylesheet$body$_EvaluateVisitor0(node); }, visitStylesheet$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t1, t2, _i; var $async$visitStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = node.children, t2 = t1.length, _i = 0; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } $async$goto = 6; return A._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1); case 6: // returning from await. case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitStylesheet$1, $async$completer); }, visitAtRootRule$1(node) { return this.visitAtRootRule$body$_EvaluateVisitor0(node); }, visitAtRootRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, unparsedQuery, t1, _1_0, resolved, query, $parent, included, _2_0, grandparent, t2, root, first, rest, innerCopy, outerCopy, _i, copy, _0_0; var $async$visitAtRootRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start _0_0 = node.query; if (_0_0 != null) { unparsedQuery = _0_0; t1 = true; } else { unparsedQuery = null; t1 = false; } $async$goto = t1 ? 3 : 5; break; case 3: // then $async$goto = 6; return A._asyncAwait($async$self._async_evaluate0$_performInterpolationWithMap$2$warnForColor(unparsedQuery, true), $async$visitAtRootRule$1); case 6: // returning from await. _1_0 = $async$result; resolved = _1_0._0; _1_0._1; query = A.AtRootQueryParser$0(resolved, $async$self._async_evaluate0$_logger, null).parse$0(); // goto join $async$goto = 4; break; case 5: // else query = B.AtRootQuery_UsS0; case 4: // join $parent = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent"); included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode_2); for (t1 = type$.CssStylesheet_2; !t1._is($parent); $parent = grandparent) { if (!query.excludes$1($parent)) included.push($parent); _2_0 = $parent._node$_parent; if (_2_0 != null) { grandparent = _2_0; t2 = true; } else { grandparent = null; t2 = false; } if (!t2) throw A.wrapException(A.StateError$(string$.CssNod)); } root = $async$self._async_evaluate0$_trimIncluded$1(included); $async$goto = root === $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") ? 7 : 8; break; case 7: // then $async$goto = 9; 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); case 9: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 8: // join if (included.length >= 1) { first = included[0]; rest = B.JSArray_methods.sublist$1(included, 1); t1 = true; } else { first = null; rest = null; t1 = false; } if (t1) { innerCopy = first.copyWithoutChildren$0(); for (t1 = rest.length, outerCopy = innerCopy, _i = 0; _i < rest.length; rest.length === t1 || (0, A.throwConcurrentModificationError)(rest), ++_i, outerCopy = copy) { copy = rest[_i].copyWithoutChildren$0(); copy.addChild$1(outerCopy); } root.addChild$1(outerCopy); } else innerCopy = root; $async$goto = 10; 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); case 10: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitAtRootRule$1, $async$completer); }, _async_evaluate0$_trimIncluded$1(nodes) { var $parent, t1, innermostContiguous, i, t2, _0_0, grandparent, t3, _1_0, root, _this = this, _null = null, _s5_ = "_root", _s22_ = " to be an ancestor of "; if (nodes.length === 0) return _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_); $parent = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__parent, "__parent"); for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = grandparent) { for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = grandparent) { _0_0 = $parent._node$_parent; if (_0_0 != null) { grandparent = _0_0; t3 = true; } else { grandparent = _null; t3 = false; } if (!t3) throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null)); } if (innermostContiguous == null) innermostContiguous = i; _1_0 = $parent._node$_parent; if (_1_0 != null) { grandparent = _1_0; t3 = true; } else { grandparent = _null; t3 = false; } if (!t3) throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null)); } if ($parent !== _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_)) return _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_); innermostContiguous.toString; root = nodes[innermostContiguous]; B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length); return root; }, _async_evaluate0$_scopeForAtRoot$4(node, newParent, query, included) { var _this = this, scope = new A._EvaluateVisitor__scopeForAtRoot_closure17(_this, newParent, node), t1 = query._at_root_query0$_all || query._at_root_query0$_rule; if (t1 !== query.include) scope = new A._EvaluateVisitor__scopeForAtRoot_closure18(_this, scope); if (_this._async_evaluate0$_mediaQueries != null && query.excludesName$1("media")) scope = new A._EvaluateVisitor__scopeForAtRoot_closure19(_this, scope); if (_this._async_evaluate0$_inKeyframes && query.excludesName$1("keyframes")) scope = new A._EvaluateVisitor__scopeForAtRoot_closure20(_this, scope); return _this._async_evaluate0$_inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure21()) ? new A._EvaluateVisitor__scopeForAtRoot_closure22(_this, scope) : scope; }, visitContentBlock$1(node) { return A.throwExpression(A.UnsupportedError$(string$.Evalua)); }, visitContentRule$1(node) { return this.visitContentRule$body$_EvaluateVisitor0(node); }, visitContentRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, $content; var $async$visitContentRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $content = $async$self._async_evaluate0$_environment._async_environment0$_content; if ($content == null) { $async$returnValue = null; // goto return $async$goto = 1; break; } $async$goto = 3; 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); case 3: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitContentRule$1, $async$completer); }, visitDebugRule$1(node) { return this.visitDebugRule$body$_EvaluateVisitor0(node); }, visitDebugRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, value, t1; var $async$visitDebugRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1); case 3: // returning from await. value = $async$result; t1 = value instanceof A.SassString0 ? value._string0$_text : A.serializeValue0(value, true, true); $async$self._async_evaluate0$_logger.debug$2(0, t1, node.span); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitDebugRule$1, $async$completer); }, visitDeclaration$1(node) { return this.visitDeclaration$body$_EvaluateVisitor0(node); }, visitDeclaration$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t2, $name, _0_0, declarationName, t3, _1_0, expression, value, t4, t5, _2_0, oldDeclarationName, t1; var $async$visitDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = {}; if (($async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot) == null && !$async$self._async_evaluate0$_inUnknownAtRule && !$async$self._async_evaluate0$_inKeyframes) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Declarm, node.span)); if ($async$self._async_evaluate0$_declarationName != null && B.JSString_methods.startsWith$1(node.name.get$initialPlain(), "--")) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Declarw, node.span)); t2 = node.name; $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$2$warnForColor(t2, true), $async$visitDeclaration$1); case 3: // returning from await. $name = $async$result; _0_0 = $async$self._async_evaluate0$_declarationName; if (_0_0 != null) { declarationName = _0_0; t3 = true; } else { declarationName = null; t3 = false; } if (t3) $name = new A.CssValue0(A.S(declarationName) + "-" + A.S($name.value), $name.span, type$.CssValue_String_2); _1_0 = node.value; if (_1_0 != null) { expression = _1_0; t3 = true; } else { expression = null; t3 = false; } $async$goto = t3 ? 4 : 5; break; case 4: // then $async$goto = 6; return A._asyncAwait(expression.accept$1($async$self), $async$visitDeclaration$1); case 6: // returning from await. value = $async$result; if (!value.get$isBlank() || value.get$asList().length === 0) { t3 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent"); t4 = expression.get$span(expression); t2 = B.JSString_methods.startsWith$1(t2.get$initialPlain(), "--"); if ($async$self._async_evaluate0$_sourceMap) { t5 = A.NullableExtension_andThen0(_1_0, $async$self.get$_async_evaluate0$_expressionNode()); t5 = t5 == null ? null : J.get$span$z(t5); } else t5 = null; t3.addChild$1(A.ModifiableCssDeclaration$0($name, new A.CssValue0(value, t4, type$.CssValue_Value_2), node.span, t2, t5)); } else if (J.startsWith$1$s($name.value, "--")) throw A.wrapException($async$self._async_evaluate0$_exception$2("Custom property values may not be empty.", expression.get$span(expression))); case 5: // join t1.children = null; _2_0 = node.children; if (_2_0 != null) { t1.children = _2_0; t2 = true; } else t2 = false; $async$goto = t2 ? 7 : 8; break; case 7: // then oldDeclarationName = $async$self._async_evaluate0$_declarationName; $async$self._async_evaluate0$_declarationName = $name.value; $async$goto = 9; return A._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure2(t1, $async$self), node.hasDeclarations, type$.Null), $async$visitDeclaration$1); case 9: // returning from await. $async$self._async_evaluate0$_declarationName = oldDeclarationName; case 8: // join $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitDeclaration$1, $async$completer); }, visitEachRule$1(node) { return this.visitEachRule$body$_EvaluateVisitor0(node); }, visitEachRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t2, _box_0, t1, list, nodeWithSpan, _0_0; var $async$visitEachRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start _box_0 = {}; t1 = node.list; $async$goto = 3; return A._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1); case 3: // returning from await. list = $async$result; nodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t1); _0_0 = node.variables; $label0$0: { _box_0.variable = null; if (_0_0.length === 1) { _box_0.variable = _0_0[0]; t1 = true; } else t1 = false; if (t1) { t1 = new A._EvaluateVisitor_visitEachRule_closure8(_box_0, $async$self, nodeWithSpan); break $label0$0; } t1 = _box_0.variables = null; _box_0.variables = _0_0; t2 = new A._EvaluateVisitor_visitEachRule_closure9(_box_0, $async$self, nodeWithSpan); t1 = t2; break $label0$0; } $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); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitEachRule$1, $async$completer); }, _async_evaluate0$_setMultipleVariables$3(variables, value, nodeWithSpan) { var i, list = value.get$asList(), t1 = variables.length, minLength = Math.min(t1, list.length); for (i = 0; i < minLength; ++i) this._async_evaluate0$_environment.setLocalVariable$3(variables[i], this._async_evaluate0$_withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan); for (i = minLength; i < t1; ++i) this._async_evaluate0$_environment.setLocalVariable$3(variables[i], B.C__SassNull0, nodeWithSpan); }, visitErrorRule$1(node) { return this.visitErrorRule$body$_EvaluateVisitor0(node); }, visitErrorRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$self = this, $async$temp1, $async$temp2; var $async$visitErrorRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$temp1 = A; $async$temp2 = J; $async$goto = 2; return A._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1); case 2: // returning from await. throw $async$temp1.wrapException($async$self._async_evaluate0$_exception$2($async$temp2.toString$0$($async$result), node.span)); // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitErrorRule$1, $async$completer); }, visitExtendRule$1(node) { return this.visitExtendRule$body$_EvaluateVisitor0(node); }, visitExtendRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, _0_0, targetText, targetMap, compound, styleRule; var $async$visitExtendRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start styleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot; if (styleRule == null || $async$self._async_evaluate0$_declarationName != null) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.x40exten, node.span)); for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, _i = 0; _i < t2; ++_i) { complex = t1[_i]; if (!complex.accept$1(B._IsBogusVisitor_true0)) continue; visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true); complex.accept$1(visitor); t6 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)); t7 = complex.accept$1(B.C__IsUselessVisitor0) ? "can't" : "shouldn't"; $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_XV6); } $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_performInterpolationWithMap$2$warnForColor(node.selector, true), $async$visitExtendRule$1); case 3: // returning from await. _0_0 = $async$result; targetText = _0_0._0; targetMap = _0_0._1; for (t1 = A.SelectorList_SelectorList$parse0(A.trimAscii0(targetText, true), false, true, targetMap, $async$self._async_evaluate0$_logger).components, t2 = t1.length, t3 = styleRule._style_rule0$_selector._box0$_inner, _i = 0; _i < t2; ++_i) { complex = t1[_i]; compound = complex.get$singleCompound(); if (compound == null) throw A.wrapException(A.SassFormatException$0("complex selectors may not be extended.", complex.span, null)); t4 = compound.components; t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : null; if (t5 == null) throw A.wrapException(A.SassFormatException$0(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, compound.span, null)); $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__extensionStore, "_extensionStore").addExtension$4(t3.value, t5, node, $async$self._async_evaluate0$_mediaQueries); } $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitExtendRule$1, $async$completer); }, visitAtRule$1(node) { return this.visitAtRule$body$_EvaluateVisitor0(node); }, visitAtRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, $name, value, children, wasInKeyframes, wasInUnknownAtRule; var $async$visitAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate0$_declarationName != null) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.At_rul, node.span)); $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1(node.name), $async$visitAtRule$1); case 3: // returning from await. $name = $async$result; $async$goto = 4; return A._asyncAwait(A.NullableExtension_andThen0(node.value, new A._EvaluateVisitor_visitAtRule_closure8($async$self)), $async$visitAtRule$1); case 4: // returning from await. value = $async$result; children = node.children; if (children == null) { $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0($name, node.span, true, value)); $async$returnValue = null; // goto return $async$goto = 1; break; } wasInKeyframes = $async$self._async_evaluate0$_inKeyframes; wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule; if (A.unvendor0($name.value) === "keyframes") $async$self._async_evaluate0$_inKeyframes = true; else $async$self._async_evaluate0$_inUnknownAtRule = true; $async$goto = 5; 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); case 5: // returning from await. $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule; $async$self._async_evaluate0$_inKeyframes = wasInKeyframes; $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitAtRule$1, $async$completer); }, visitForRule$1(node) { return this.visitForRule$body$_EvaluateVisitor0(node); }, visitForRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction; var $async$visitForRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = {}; t2 = node.from; t3 = type$.SassNumber_2; $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t2, new A._EvaluateVisitor_visitForRule_closure14($async$self, node), t3), $async$visitForRule$1); case 3: // returning from await. fromNumber = $async$result; t4 = node.to; $async$goto = 4; return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t4, new A._EvaluateVisitor_visitForRule_closure15($async$self, node), t3), $async$visitForRule$1); case 4: // returning from await. toNumber = $async$result; from = $async$self._async_evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure16(fromNumber)); to = t1.to = $async$self._async_evaluate0$_addExceptionSpan$2(t4, new A._EvaluateVisitor_visitForRule_closure17(toNumber, fromNumber)); direction = from > to ? -1 : 1; if (from === (!node.isExclusive ? t1.to = to + direction : to)) { $async$returnValue = null; // goto return $async$goto = 1; break; } $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); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitForRule$1, $async$completer); }, visitForwardRule$1(node) { return this.visitForwardRule$body$_EvaluateVisitor0(node); }, visitForwardRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, $name, oldConfiguration, adjustedConfiguration, t1, t2, t3; var $async$visitForwardRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldConfiguration = $async$self._async_evaluate0$_configuration; adjustedConfiguration = oldConfiguration.throughForward$1(node); t1 = node.configuration; t2 = t1.length; t3 = node.url; $async$goto = t2 !== 0 ? 3 : 5; break; case 3: // then $async$goto = 6; return A._asyncAwait($async$self._async_evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1); case 6: // returning from await. newConfiguration = $async$result; $async$goto = 7; 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); case 7: // returning from await. t3 = type$.String; t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3); for (_i = 0; _i < t2; ++_i) { variable = t1[_i]; if (!variable.isGuarded) t4.add$1(0, variable.name); } $async$self._async_evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4); t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3); for (_i = 0; _i < t2; ++_i) t3.add$1(0, t1[_i].name); 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) { $name = t2[_i]; if (!t3.contains$1(0, $name)) if (!t1.get$isEmpty(t1)) t1.remove$1(0, $name); } $async$self._async_evaluate0$_assertConfigurationIsEmpty$1(newConfiguration); // goto join $async$goto = 4; break; case 5: // else $async$self._async_evaluate0$_configuration = adjustedConfiguration; $async$goto = 8; return A._asyncAwait($async$self._async_evaluate0$_loadModule$4(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure6($async$self, node)), $async$visitForwardRule$1); case 8: // returning from await. $async$self._async_evaluate0$_configuration = oldConfiguration; case 4: // join $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitForwardRule$1, $async$completer); }, _async_evaluate0$_addForwardConfiguration$2(configuration, node) { return this._addForwardConfiguration$body$_EvaluateVisitor0(configuration, node); }, _addForwardConfiguration$body$_EvaluateVisitor0(configuration, node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Configuration_2), $async$returnValue, $async$self = this, t2, t3, _i, variable, t4, oldValue, t5, variableNodeWithSpan, t1, newValues, $async$temp1, $async$temp2, $async$temp3; var $async$_async_evaluate0$_addForwardConfiguration$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = configuration._configuration0$_values; newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2); t2 = node.configuration, t3 = t2.length, _i = 0; case 3: // for condition if (!(_i < t3)) { // goto after for $async$goto = 5; break; } variable = t2[_i]; if (variable.isGuarded) { t4 = variable.name; oldValue = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4); if (oldValue != null) t5 = true; else { oldValue = null; t5 = false; } if (t5 && !oldValue.value.$eq(0, B.C__SassNull0)) { newValues.$indexSet(0, t4, oldValue); // goto for update $async$goto = 4; break; } } t4 = variable.expression; variableNodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t4); $async$temp1 = newValues; $async$temp2 = variable.name; $async$temp3 = A; $async$goto = 6; return A._asyncAwait(t4.accept$1($async$self), $async$_async_evaluate0$_addForwardConfiguration$2); case 6: // returning from await. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$self._async_evaluate0$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan)); case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for if (configuration instanceof A.ExplicitConfiguration0 || t1.get$isEmpty(t1)) { $async$returnValue = new A.ExplicitConfiguration0(node, newValues, null); // goto return $async$goto = 1; break; } else { $async$returnValue = new A.Configuration0(newValues, null); // goto return $async$goto = 1; break; } case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_addForwardConfiguration$2, $async$completer); }, _async_evaluate0$_registerCommentsForModule$1(module) { var _this = this, _s5_ = "_root", t1 = _this._async_evaluate0$__root; if (t1 == null) return; t1 = _this._async_evaluate0$_assertInModule$2(t1, _s5_).children; if (t1.get$length(t1) === 0 || !module.get$transitivelyContainsCss()) return; t1 = _this._async_evaluate0$_preModuleComments; if (t1 == null) t1 = _this._async_evaluate0$_preModuleComments = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.List_CssComment_2); 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)); _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).clearChildren$0(); _this._async_evaluate0$__endOfImports = 0; }, _async_evaluate0$_removeUsedConfiguration$3$except(upstream, downstream, except) { var t1, t2, t3, t4, _i, $name; 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) { $name = t2[_i]; if (except.contains$1(0, $name)) continue; if (!t4.containsKey$1($name)) if (!t1.get$isEmpty(t1)) t1.remove$1(0, $name); } }, _async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) { var t1, _0_0, $name, value; if (!(configuration instanceof A.ExplicitConfiguration0)) return; t1 = configuration._configuration0$_values; if (t1.get$isEmpty(t1)) return; t1 = A.MapExtensions_get_pairs0(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2); _0_0 = t1.get$first(t1); $name = _0_0._0; value = _0_0._1; t1 = nameInError ? "$" + $name + string$.x20was_n : string$.This_v; throw A.wrapException(this._async_evaluate0$_exception$2(t1, value.configurationSpan)); }, _async_evaluate0$_assertConfigurationIsEmpty$1(configuration) { return this._async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, false); }, visitFunctionRule$1(node) { return this.visitFunctionRule$body$_EvaluateVisitor0(node); }, visitFunctionRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5; var $async$visitFunctionRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self._async_evaluate0$_environment; t2 = t1.closure$0(); t3 = $async$self._async_evaluate0$_inDependency; t4 = t1._async_environment0$_functions; index = t4.length - 1; t5 = node.name; t1._async_environment0$_functionIndices.$indexSet(0, t5, index); J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment_2)); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitFunctionRule$1, $async$completer); }, visitIfRule$1(node) { return this.visitIfRule$body$_EvaluateVisitor0(node); }, visitIfRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, clause; var $async$visitIfRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start clause = node.lastClause; t1 = node.clauses, t2 = t1.length, _i = 0; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } clauseToCheck = t1[_i]; $async$goto = 6; return A._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1); case 6: // returning from await. if ($async$result.get$isTruthy()) { clause = clauseToCheck; // goto after for $async$goto = 5; break; } case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$goto = 7; return A._asyncAwait(A.NullableExtension_andThen0(clause, new A._EvaluateVisitor_visitIfRule_closure2($async$self)), $async$visitIfRule$1); case 7: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitIfRule$1, $async$completer); }, visitImportRule$1(node) { return this.visitImportRule$body$_EvaluateVisitor0(node); }, visitImportRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t1, t2, t3, _i, $import; var $async$visitImportRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = node.imports, t2 = t1.length, t3 = type$.StaticImport_2, _i = 0; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } $import = t1[_i]; $async$goto = $import instanceof A.DynamicImport0 ? 6 : 8; break; case 6: // then $async$goto = 9; return A._asyncAwait($async$self._async_evaluate0$_visitDynamicImport$1($import), $async$visitImportRule$1); case 9: // returning from await. // goto join $async$goto = 7; break; case 8: // else $async$goto = 10; return A._asyncAwait($async$self._async_evaluate0$_visitStaticImport$1(t3._as($import)), $async$visitImportRule$1); case 10: // returning from await. case 7: // join case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitImportRule$1, $async$completer); }, _async_evaluate0$_visitDynamicImport$1($import) { return this._async_evaluate0$_withStackFrame$1$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure2(this, $import), type$.void); }, _async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) { return this._loadStylesheet$body$_EvaluateVisitor0(url, span, baseUrl, forImport); }, _async_evaluate0$_loadStylesheet$3$baseUrl(url, span, baseUrl) { return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false); }, _async_evaluate0$_loadStylesheet$3$forImport(url, span, forImport) { return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport); }, _loadStylesheet$body$_EvaluateVisitor0(url, span, baseUrl, forImport) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency_2), $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, importCache, _0_0, importer, canonicalUrl, originalUrl, _1_0, isDependency, stylesheet, _2_0, result, _3_0, error, stackTrace, error0, stackTrace0, message, t1, t2, t3, t4, exception, message0, $async$exception; var $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start baseUrl = baseUrl; $async$handler = 4; $async$self._async_evaluate0$_importSpan = span; importCache = null; _0_0 = $async$self._async_evaluate0$_importCache; if (_0_0 != null) { importCache = _0_0; t1 = true; } else t1 = false; $async$goto = t1 ? 7 : 9; break; case 7: // then if (baseUrl == null) baseUrl = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").span.file.url; importer = null; canonicalUrl = null; originalUrl = null; $async$goto = 10; 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); case 10: // returning from await. _1_0 = $async$result; if (type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(_1_0)) { importer = _1_0._0; canonicalUrl = _1_0._1; originalUrl = _1_0._2; t1 = true; } else t1 = false; $async$goto = t1 ? 11 : 12; break; case 11: // then $async$self._async_evaluate0$_loadedUrls.add$1(0, canonicalUrl); isDependency = $async$self._async_evaluate0$_inDependency || !J.$eq$(importer, $async$self._async_evaluate0$_importer); stylesheet = null; t1 = importCache; t2 = importer; t3 = canonicalUrl; t4 = originalUrl; $async$goto = 13; return A._asyncAwait(t1.importCanonical$4$originalUrl$quiet(t2, t3, t4, $async$self._async_evaluate0$_quietDeps && isDependency), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport); case 13: // returning from await. _2_0 = $async$result; if (_2_0 != null) { stylesheet = _2_0; t1 = true; } else t1 = false; if (t1) { t1 = stylesheet; t2 = importer; $async$returnValue = new A._Record_3_importer_isDependency(t1, t2, isDependency); $async$next = [1]; // goto finally $async$goto = 5; break; } case 12: // join // goto join $async$goto = 8; break; case 9: // else result = null; t1 = baseUrl; $async$goto = 14; 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); case 14: // returning from await. _3_0 = $async$result; if (_3_0 != null) { result = _3_0; t1 = true; } else t1 = false; if (t1) { t1 = $async$self._async_evaluate0$_loadedUrls; A.NullableExtension_andThen0(result._0.span.file.url, t1.get$add(t1)); t1 = result; $async$returnValue = t1; $async$next = [1]; // goto finally $async$goto = 5; break; } case 8: // join if (B.JSString_methods.startsWith$1(url, "package:") && true) throw A.wrapException(string$.x22packa); else throw A.wrapException("Can't find stylesheet to import."); $async$next.push(6); // goto finally $async$goto = 5; break; case 4: // catch $async$handler = 3; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (t1 instanceof A.SassException0) throw $async$exception; else if (t1 instanceof A.ArgumentError) { error = t1; stackTrace = A.getTraceFromException($async$exception); A.throwWithTrace0($async$self._async_evaluate0$_exception$1(J.toString$0$(error)), error, stackTrace); } else { error0 = t1; stackTrace0 = A.getTraceFromException($async$exception); message = null; try { message = A._asString(J.get$message$x(error0)); } catch (exception) { message0 = J.toString$0$(error0); message = message0; } A.throwWithTrace0($async$self._async_evaluate0$_exception$1(message), error0, stackTrace0); } $async$next.push(6); // goto finally $async$goto = 5; break; case 3: // uncaught $async$next = [2]; case 5: // finally $async$handler = 2; $async$self._async_evaluate0$_importSpan = null; // goto the next finally handler $async$goto = $async$next.pop(); break; case 6: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport, $async$completer); }, _async_evaluate0$_importLikeNode$3(originalUrl, previous, forImport) { return this._importLikeNode$body$_EvaluateVisitor0(originalUrl, previous, forImport); }, _importLikeNode$body$_EvaluateVisitor0(originalUrl, previous, forImport) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency_2), $async$returnValue, $async$self = this, isDependency, url, t2, t1, result; var $async$_async_evaluate0$_importLikeNode$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self._async_evaluate0$_nodeImporter; result = t1.loadRelative$3(originalUrl, previous, forImport); $async$goto = result != null ? 3 : 5; break; case 3: // then isDependency = $async$self._async_evaluate0$_inDependency; // goto join $async$goto = 4; break; case 5: // else $async$goto = 6; return A._asyncAwait(t1.loadAsync$3(originalUrl, previous, forImport), $async$_async_evaluate0$_importLikeNode$3); case 6: // returning from await. result = $async$result; if (result == null) { $async$returnValue = null; // goto return $async$goto = 1; break; } isDependency = true; case 4: // join url = result._1; t1 = J.startsWith$1$s(url, "file") ? A.Syntax_forPath0(url) : B.Syntax_SCSS_scss0; t2 = $async$self._async_evaluate0$_quietDeps && isDependency ? $.$get$Logger_quiet0() : $async$self._async_evaluate0$_logger; $async$returnValue = new A._Record_3_importer_isDependency(A.Stylesheet_Stylesheet$parse0(result._0, t1, t2, url), null, isDependency); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_importLikeNode$3, $async$completer); }, _async_evaluate0$_visitStaticImport$1($import) { return this._visitStaticImport$body$_EvaluateVisitor0($import); }, _visitStaticImport$body$_EvaluateVisitor0($import) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1, node, $async$temp1, $async$temp2; var $async$_async_evaluate0$_visitStaticImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$temp1 = A; $async$goto = 2; return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1($import.url), $async$_async_evaluate0$_visitStaticImport$1); case 2: // returning from await. $async$temp2 = $async$result; $async$goto = 3; return A._asyncAwait(A.NullableExtension_andThen0($import.modifiers, $async$self.get$_async_evaluate0$_interpolationToValue()), $async$_async_evaluate0$_visitStaticImport$1); case 3: // returning from await. node = new $async$temp1.ModifiableCssImport0($async$temp2, $async$result, $import.span); 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$__parent, "__parent").addChild$1(node); 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)) { $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").addChild$1(node); $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1; } else { t1 = $async$self._async_evaluate0$_outOfOrderImports; (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t1).push(node); } // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_visitStaticImport$1, $async$completer); }, _async_evaluate0$_applyMixin$5(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) { return this._applyMixin$body$_EvaluateVisitor0(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent); }, _applyMixin$body$_EvaluateVisitor0(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, _1_8, t1, _0_0; var $async$_async_evaluate0$_applyMixin$5 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start _1_8 = A._InitializedCell$(new A._EvaluateVisitor__applyMixin_closure8(mixin)); if (mixin == null) throw A.wrapException($async$self._async_evaluate0$_exception$2("Undefined mixin.", nodeWithSpan.get$span(nodeWithSpan))); t1 = type$.AsyncBuiltInCallable_2._is(mixin); $async$goto = t1 && !mixin.get$acceptsContent() && contentCallable != null ? 3 : 4; break; case 3: // then $async$goto = 5; return A._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_applyMixin$5); case 5: // returning from await. t1 = $async$result._values; _0_0 = mixin.callbackFor$2(J.get$length$asx(t1[2]), new A.MapKeySet(t1[0], type$.MapKeySet_String)); 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)); case 4: // join $async$goto = t1 ? 6 : 7; break; case 6: // then $async$goto = 8; return A._asyncAwait($async$self._async_evaluate0$_environment.withContent$2(contentCallable, new A._EvaluateVisitor__applyMixin_closure9($async$self, $arguments, mixin, nodeWithSpanWithoutContent)), $async$_async_evaluate0$_applyMixin$5); case 8: // returning from await. // goto break $label0$0 $async$goto = 2; break; case 7: // join t1 = type$.UserDefinedCallable_AsyncEnvironment_2._is(mixin); if (t1 && _1_8._readFinal$0() instanceof A.MixinRule0 && !_1_8._readFinal$0().get$hasContent() && contentCallable != null) 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)); $async$goto = t1 ? 9 : 10; break; case 9: // then $async$goto = 11; return A._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$1$4($arguments, mixin, nodeWithSpanWithoutContent, new A._EvaluateVisitor__applyMixin_closure10($async$self, contentCallable, mixin, nodeWithSpanWithoutContent), type$.Null), $async$_async_evaluate0$_applyMixin$5); case 11: // returning from await. // goto break $label0$0 $async$goto = 2; break; case 10: // join throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + ".")); case 2: // break $label0$0 // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_applyMixin$5, $async$completer); }, visitIncludeRule$1(node) { return this.visitIncludeRule$body$_EvaluateVisitor0(node); }, visitIncludeRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this; var $async$visitIncludeRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_applyMixin$5($async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure8($async$self, node)), 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); case 3: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitIncludeRule$1, $async$completer); }, visitMixinRule$1(node) { return this.visitMixinRule$body$_EvaluateVisitor0(node); }, visitMixinRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5; var $async$visitMixinRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self._async_evaluate0$_environment; t2 = t1.closure$0(); t3 = $async$self._async_evaluate0$_inDependency; t4 = t1._async_environment0$_mixins; index = t4.length - 1; t5 = node.name; t1._async_environment0$_mixinIndices.$indexSet(0, t5, index); J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment_2)); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitMixinRule$1, $async$completer); }, visitLoudComment$1(node) { return this.visitLoudComment$body$_EvaluateVisitor0(node); }, visitLoudComment$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2; var $async$visitLoudComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate0$_inFunction) { $async$returnValue = null; // goto return $async$goto = 1; break; } 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)) $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1; t1 = node.text; $async$temp1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent"); $async$temp2 = A; $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t1), $async$visitLoudComment$1); case 3: // returning from await. $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment0($async$result, t1.span)); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitLoudComment$1, $async$completer); }, visitMediaRule$1(node) { return this.visitMediaRule$body$_EvaluateVisitor0(node); }, visitMediaRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, queries, mergedQueries, t1, mergedSources, t2, t3; var $async$visitMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate0$_declarationName != null) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Media_, node.span)); $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_visitMediaQueries$1(node.query), $async$visitMediaRule$1); case 3: // returning from await. queries = $async$result; mergedQueries = A.NullableExtension_andThen0($async$self._async_evaluate0$_mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure8($async$self, queries)); t1 = mergedQueries == null; if (!t1 && J.get$isEmpty$asx(mergedQueries)) { $async$returnValue = null; // goto return $async$goto = 1; break; } if (t1) mergedSources = B.Set_empty5; else { t2 = $async$self._async_evaluate0$_mediaQuerySources; t2.toString; t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2); t3 = $async$self._async_evaluate0$_mediaQueries; t3.toString; t2.addAll$1(0, t3); t2.addAll$1(0, queries); mergedSources = t2; } t1 = t1 ? queries : mergedQueries; $async$goto = 4; 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); case 4: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitMediaRule$1, $async$completer); }, _async_evaluate0$_visitMediaQueries$1(interpolation) { return this._visitMediaQueries$body$_EvaluateVisitor0(interpolation); }, _visitMediaQueries$body$_EvaluateVisitor0(interpolation) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.List_CssMediaQuery_2), $async$returnValue, $async$self = this, _0_0, resolved, map; var $async$_async_evaluate0$_visitMediaQueries$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_performInterpolationWithMap$2$warnForColor(interpolation, true), $async$_async_evaluate0$_visitMediaQueries$1); case 3: // returning from await. _0_0 = $async$result; resolved = _0_0._0; map = _0_0._1; $async$returnValue = A.CssMediaQuery_parseList0(resolved, map, $async$self._async_evaluate0$_logger); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_visitMediaQueries$1, $async$completer); }, _async_evaluate0$_mergeMediaQueries$2(queries1, queries2) { var t1, t2, t3, t4, _0_0, result, t5, queries = A._setArrayType([], type$.JSArray_CssMediaQuery_2); for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2); t1.moveNext$0();) { t3 = t1.get$current(t1); for (t4 = t2.get$iterator(queries2); t4.moveNext$0();) { _0_0 = t3.merge$1(t4.get$current(t4)); if (B._SingletonCssMediaQueryMergeResult_00 === _0_0) continue; if (B._SingletonCssMediaQueryMergeResult_10 === _0_0) return null; if (_0_0 instanceof A.MediaQuerySuccessfulMergeResult0) { result = _0_0; t5 = true; } else { result = null; t5 = false; } if (t5) queries.push(result.query); } } return queries; }, visitReturnRule$1(node) { return this.visitReturnRule$body$_EvaluateVisitor0(node); }, visitReturnRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$self = this, t1; var $async$visitReturnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = node.expression; $async$goto = 3; return A._asyncAwait(t1.accept$1($async$self), $async$visitReturnRule$1); case 3: // returning from await. $async$returnValue = $async$self._async_evaluate0$_withoutSlash$2($async$result, t1); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitReturnRule$1, $async$completer); }, visitSilentComment$1(node) { return this.visitSilentComment$body$_EvaluateVisitor0(node); }, visitSilentComment$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue; var $async$visitSilentComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitSilentComment$1, $async$completer); }, visitStyleRule$1(node) { return this.visitStyleRule$body$_EvaluateVisitor0(node); }, visitStyleRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t1, _0_0, selectorText, selectorMap, t2, parsedSelector, rule, oldAtRootExcludingStyleRule, t3, t4, t5, _i, complex, visitor, t6, t7, t8, t9; var $async$visitStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate0$_declarationName != null) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_, node.span)); t1 = node.selector; $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_performInterpolationWithMap$2$warnForColor(t1, true), $async$visitStyleRule$1); case 3: // returning from await. _0_0 = $async$result; selectorText = _0_0._0; selectorMap = _0_0._1; $async$goto = $async$self._async_evaluate0$_inKeyframes ? 4 : 5; break; case 4: // then $async$goto = 6; return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(new A.CssValue0(A.List_List$unmodifiable(A.KeyframeSelectorParser$0(selectorText, selectorMap, $async$self._async_evaluate0$_logger).parse$0(), type$.String), t1.span, type$.CssValue_List_String_2), node.span), new A._EvaluateVisitor_visitStyleRule_closure14($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure15(), type$.ModifiableCssKeyframeBlock_2, type$.Null), $async$visitStyleRule$1); case 6: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 5: // join t1 = A.SelectorList_SelectorList$parse0(selectorText, !$async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss, !$async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss, selectorMap, $async$self._async_evaluate0$_logger); t2 = $async$self._async_evaluate0$_styleRuleIgnoringAtRoot; t2 = t2 == null ? null : t2.originalSelector; parsedSelector = t1.resolveParentSelectors$2$implicitParent(t2, !$async$self._async_evaluate0$_atRootExcludingStyleRule); 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, parsedSelector); oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule; $async$self._async_evaluate0$_atRootExcludingStyleRule = false; $async$goto = 7; return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure16($async$self, rule, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure17(), type$.ModifiableCssStyleRule_2, type$.Null), $async$visitStyleRule$1); case 7: // returning from await. $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule; if (!rule.accept$1(B._IsInvisibleVisitor_false_false0)) for (t1 = parsedSelector.components, t2 = t1.length, t3 = type$.SourceSpan, t4 = type$.String, t5 = rule.children, _i = 0; _i < t2; ++_i) { complex = t1[_i]; if (!complex.accept$1(B._IsBogusVisitor_true0)) continue; if (complex.accept$1(B.C__IsUselessVisitor0)) { visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true); complex.accept$1(visitor); $async$self._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_XV6); } else if (complex.leadingCombinators.length !== 0) { visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true); complex.accept$1(visitor); $async$self._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_XV6); } else { visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true); complex.accept$1(visitor); t6 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)); t7 = complex.accept$1(B._IsBogusVisitor_false0) ? string$.x20It_wi : ""; t8 = A.SpanExtensions_trimRight0(complex.span); if (t5.get$length(t5) === 0) A.throwExpression(A.IterableElementError_noElement()); t9 = J.get$span$z(t5.$index(0, 0)); $async$self._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_visitStyleRule_closure18()) ? "\n(try converting to a //-style comment)" : "")], t3, t4), t3, t4)), B.Deprecation_XV6); } } if (($async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot) == null) { t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").children; t1 = !t1.get$isEmpty(t1); } else t1 = false; if (t1) { t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").children; t1.get$last(t1).isGroupEnd = true; } $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitStyleRule$1, $async$completer); }, visitSupportsRule$1(node) { return this.visitSupportsRule$body$_EvaluateVisitor0(node); }, visitSupportsRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2; var $async$visitSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate0$_declarationName != null) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Suppor, node.span)); t1 = node.condition; $async$temp1 = A; $async$temp2 = A; $async$goto = 4; return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1); case 4: // returning from await. $async$goto = 3; 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); case 3: // returning from await. $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitSupportsRule$1, $async$completer); }, _async_evaluate0$_visitSupportsCondition$1(condition) { return this._visitSupportsCondition$body$_EvaluateVisitor0(condition); }, _visitSupportsCondition$body$_EvaluateVisitor0(condition) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.String), $async$returnValue, $async$self = this, operation, t1, t2, negation, interpolation, $function, anything, _box_0, $async$temp1, $async$temp2; var $async$_async_evaluate0$_visitSupportsCondition$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start _box_0 = {}; if (condition instanceof A.SupportsOperation0) { operation = condition; t1 = true; } else { operation = null; t1 = false; } $async$goto = t1 ? 4 : 5; break; case 4: // then t1 = operation.left; t2 = operation.operator; $async$temp1 = A; $async$goto = 6; return A._asyncAwait($async$self._async_evaluate0$_parenthesize$2(t1, t2), $async$_async_evaluate0$_visitSupportsCondition$1); case 6: // returning from await. $async$temp1 = $async$temp1.S($async$result) + " " + t2 + " "; $async$temp2 = A; $async$goto = 7; return A._asyncAwait($async$self._async_evaluate0$_parenthesize$2(operation.right, t2), $async$_async_evaluate0$_visitSupportsCondition$1); case 7: // returning from await. t2 = $async$temp1 + $async$temp2.S($async$result); t1 = t2; // goto break $label0$0 $async$goto = 3; break; case 5: // join if (condition instanceof A.SupportsNegation0) { negation = condition; t1 = true; } else { negation = null; t1 = false; } $async$goto = t1 ? 8 : 9; break; case 8: // then $async$temp1 = A; $async$goto = 10; return A._asyncAwait($async$self._async_evaluate0$_parenthesize$1(negation.condition), $async$_async_evaluate0$_visitSupportsCondition$1); case 10: // returning from await. t1 = "not " + $async$temp1.S($async$result); // goto break $label0$0 $async$goto = 3; break; case 9: // join if (condition instanceof A.SupportsInterpolation0) { interpolation = condition; t1 = true; } else { interpolation = null; t1 = false; } $async$goto = t1 ? 11 : 12; break; case 11: // then $async$goto = 13; return A._asyncAwait($async$self._async_evaluate0$_evaluateToCss$2$quote(interpolation.expression, false), $async$_async_evaluate0$_visitSupportsCondition$1); case 13: // returning from await. t1 = $async$result; // goto break $label0$0 $async$goto = 3; break; case 12: // join _box_0.declaration = null; if (condition instanceof A.SupportsDeclaration0) { _box_0.declaration = condition; t1 = true; } else t1 = false; $async$goto = t1 ? 14 : 15; break; case 14: // then $async$goto = 16; 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); case 16: // returning from await. t1 = $async$result; // goto break $label0$0 $async$goto = 3; break; case 15: // join if (condition instanceof A.SupportsFunction0) { $function = condition; t1 = true; } else { $function = null; t1 = false; } $async$goto = t1 ? 17 : 18; break; case 17: // then $async$temp1 = A; $async$goto = 19; return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1($function.name), $async$_async_evaluate0$_visitSupportsCondition$1); case 19: // returning from await. $async$temp1 = $async$temp1.S($async$result) + "("; $async$temp2 = A; $async$goto = 20; return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1($function.$arguments), $async$_async_evaluate0$_visitSupportsCondition$1); case 20: // returning from await. t1 = $async$temp1 + $async$temp2.S($async$result) + ")"; // goto break $label0$0 $async$goto = 3; break; case 18: // join if (condition instanceof A.SupportsAnything0) { anything = condition; t1 = true; } else { anything = null; t1 = false; } $async$goto = t1 ? 21 : 22; break; case 21: // then $async$temp1 = A; $async$goto = 23; return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(anything.contents), $async$_async_evaluate0$_visitSupportsCondition$1); case 23: // returning from await. t1 = "(" + $async$temp1.S($async$result) + ")"; // goto break $label0$0 $async$goto = 3; break; case 22: // join t1 = A.throwExpression(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeTypeOfDartObject(condition).toString$0(0) + ".", null)); case 3: // break $label0$0 $async$returnValue = t1; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_visitSupportsCondition$1, $async$completer); }, _async_evaluate0$_withSupportsDeclaration$1$1(callback, $T) { return this._withSupportsDeclaration$body$_EvaluateVisitor0(callback, $T, $T); }, _withSupportsDeclaration$body$_EvaluateVisitor0(callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, t1, oldInSupportsDeclaration; var $async$_async_evaluate0$_withSupportsDeclaration$1$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start oldInSupportsDeclaration = $async$self._async_evaluate0$_inSupportsDeclaration; $async$self._async_evaluate0$_inSupportsDeclaration = true; $async$handler = 3; $async$goto = 6; return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withSupportsDeclaration$1$1); case 6: // returning from await. t1 = $async$result; $async$returnValue = t1; $async$next = [1]; // goto finally $async$goto = 4; break; $async$next.push(5); // goto finally $async$goto = 4; break; case 3: // uncaught $async$next = [2]; case 4: // finally $async$handler = 2; $async$self._async_evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration; // goto the next finally handler $async$goto = $async$next.pop(); break; case 5: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_withSupportsDeclaration$1$1, $async$completer); }, _async_evaluate0$_parenthesize$2(condition, operator) { return this._parenthesize$body$_EvaluateVisitor0(condition, operator); }, _async_evaluate0$_parenthesize$1(condition) { return this._async_evaluate0$_parenthesize$2(condition, null); }, _parenthesize$body$_EvaluateVisitor0(condition, operator) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.String), $async$returnValue, $async$self = this, t1, $async$temp1; var $async$_async_evaluate0$_parenthesize$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if (!(condition instanceof A.SupportsNegation0)) if (condition instanceof A.SupportsOperation0) t1 = operator == null || operator !== condition.operator; else t1 = false; else t1 = true; $async$goto = t1 ? 3 : 4; break; case 3: // then $async$temp1 = A; $async$goto = 5; return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2); case 5: // returning from await. $async$returnValue = "(" + $async$temp1.S($async$result) + ")"; // goto return $async$goto = 1; break; case 4: // join $async$goto = 6; return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2); case 6: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_parenthesize$2, $async$completer); }, visitVariableDeclaration$1(node) { return this.visitVariableDeclaration$body$_EvaluateVisitor0(node); }, visitVariableDeclaration$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t2, t3, value, t1, $async$temp1, $async$temp2, $async$temp3; var $async$visitVariableDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = {}; if (node.isGuarded) { if (node.namespace == null && $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1) { t1.override = null; t2 = $async$self._async_evaluate0$_configuration._configuration0$_values; t2 = t2.get$isEmpty(t2) ? null : t2.remove$1(0, node.name); if (t2 != null) { t1.override = t2; t3 = t2; t2 = true; } else { t2 = false; t3 = null; } if (t2 && !t3.value.$eq(0, B.C__SassNull0)) { $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure8(t1, $async$self, node)); $async$returnValue = null; // goto return $async$goto = 1; break; } } value = $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure9($async$self, node)); if (value != null && !value.$eq(0, B.C__SassNull0)) { $async$returnValue = null; // goto return $async$goto = 1; break; } } if (node.isGlobal && !$async$self._async_evaluate0$_environment.globalVariableExists$1(node.name)) { 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."; $async$self._async_evaluate0$_warn$3(t1, node.span, B.Deprecation_wKk); } t1 = node.expression; $async$temp1 = node; $async$temp2 = A; $async$temp3 = node; $async$goto = 3; return A._asyncAwait(t1.accept$1($async$self), $async$visitVariableDeclaration$1); case 3: // returning from await. $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))); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitVariableDeclaration$1, $async$completer); }, visitUseRule$1(node) { return this.visitUseRule$body$_EvaluateVisitor0(node); }, visitUseRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, values, _i, variable, t3, variableNodeWithSpan, configuration, t1, t2, $async$temp1, $async$temp2, $async$temp3; var $async$visitUseRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = node.configuration; t2 = t1.length; $async$goto = t2 !== 0 ? 3 : 5; break; case 3: // then values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2); _i = 0; case 6: // for condition if (!(_i < t2)) { // goto after for $async$goto = 8; break; } variable = t1[_i]; t3 = variable.expression; variableNodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t3); $async$temp1 = values; $async$temp2 = variable.name; $async$temp3 = A; $async$goto = 9; return A._asyncAwait(t3.accept$1($async$self), $async$visitUseRule$1); case 9: // returning from await. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$self._async_evaluate0$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan)); case 7: // for update ++_i; // goto for condition $async$goto = 6; break; case 8: // after for configuration = new A.ExplicitConfiguration0(node, values, null); // goto join $async$goto = 4; break; case 5: // else configuration = B.Configuration_Map_empty_null0; case 4: // join $async$goto = 10; 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); case 10: // returning from await. $async$self._async_evaluate0$_assertConfigurationIsEmpty$1(configuration); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitUseRule$1, $async$completer); }, visitWarnRule$1(node) { return this.visitWarnRule$body$_EvaluateVisitor0(node); }, visitWarnRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, value, t1; var $async$visitWarnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; 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); case 3: // returning from await. value = $async$result; t1 = value instanceof A.SassString0 ? value._string0$_text : $async$self._async_evaluate0$_serialize$2(value, node.expression); $async$self._async_evaluate0$_logger.warn$2$trace(0, t1, $async$self._async_evaluate0$_stackTrace$1(node.span)); $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitWarnRule$1, $async$completer); }, visitWhileRule$1(node) { return this._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure2(this, node), true, node.hasDeclarations, type$.nullable_Value_2); }, visitBinaryOperationExpression$1(node) { var t1, _this = this; if (_this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__stylesheet, "_stylesheet").plainCss) { t1 = node.operator; t1 = t1 !== B.BinaryOperator_2jN0 && t1 !== B.BinaryOperator_t8B0; } else t1 = false; if (t1) throw A.wrapException(_this._async_evaluate0$_exception$2("Operators aren't allowed in plain CSS.", node.get$operatorSpan())); return _this._async_evaluate0$_addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure2(_this, node), type$.Value_2); }, _async_evaluate0$_slash$3(left, right, node) { var t1, _null = null, result = left.dividedBy$1(right), _1_0 = new A._Record_2(left, right), _1_1 = A._InitializedCell$(new A._EvaluateVisitor__slash_closure5(_1_0)), _1_2 = A._InitializedCell$(new A._EvaluateVisitor__slash_closure6(_1_0)); if (_1_1._readFinal$0() instanceof A.SassNumber0) { left = _1_1._readFinal$0(); if (_1_2._readFinal$0() instanceof A.SassNumber0) { right = _1_2._readFinal$0(); t1 = node.allowsSlash && this._async_evaluate0$_operandAllowsSlash$1(node.left) && this._async_evaluate0$_operandAllowsSlash$1(node.right); } else { right = _null; t1 = false; } } else { right = _null; left = right; t1 = false; } if (t1) return type$.SassNumber_2._as(result).withSlash$2(left, right); if (_1_1._readFinal$0() instanceof A.SassNumber0 && _1_2._readFinal$0() instanceof A.SassNumber0) { 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(node), B.Deprecation_wWh); return result; } return result; }, _async_evaluate0$_operandAllowsSlash$1(node) { var t1, t2; if (node instanceof A.FunctionExpression0) if (node.namespace == null) { t1 = node.originalName; if (B.Set_WfnXb.contains$1(0, A.stringReplaceAllUnchecked(t1, "_", "-").toLowerCase())) { t2 = this._async_evaluate0$_environment; t1 = t2.getFunction$1(A.stringReplaceAllUnchecked(t1, "_", "-")) == null; } else t1 = false; } else t1 = false; else t1 = true; return t1; }, visitValueExpression$1(node) { return this.visitValueExpression$body$_EvaluateVisitor0(node); }, visitValueExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue; var $async$visitValueExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$returnValue = node.value; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitValueExpression$1, $async$completer); }, visitVariableExpression$1(node) { return this.visitVariableExpression$body$_EvaluateVisitor0(node); }, visitVariableExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$self = this, result; var $async$visitVariableExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start result = $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure2($async$self, node)); if (result != null) { $async$returnValue = result; // goto return $async$goto = 1; break; } throw A.wrapException($async$self._async_evaluate0$_exception$2("Undefined variable.", node.span)); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitVariableExpression$1, $async$completer); }, visitUnaryOperationExpression$1(node) { return this.visitUnaryOperationExpression$body$_EvaluateVisitor0(node); }, visitUnaryOperationExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$self = this, $async$temp1, $async$temp2, $async$temp3; var $async$visitUnaryOperationExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$temp1 = node; $async$temp2 = A; $async$temp3 = node; $async$goto = 3; return A._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1); case 3: // returning from await. $async$returnValue = $async$self._async_evaluate0$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitUnaryOperationExpression_closure2($async$temp3, $async$result)); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer); }, visitBooleanExpression$1(node) { return this.visitBooleanExpression$body$_EvaluateVisitor0(node); }, visitBooleanExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassBoolean_2), $async$returnValue; var $async$visitBooleanExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$returnValue = node.value ? B.SassBoolean_true0 : B.SassBoolean_false0; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitBooleanExpression$1, $async$completer); }, visitIfExpression$1(node) { return this.visitIfExpression$body$_EvaluateVisitor0(node); }, visitIfExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$self = this, condition, t1, ifTrue, ifFalse, result, _0_0, positional, named; var $async$visitIfExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_evaluateMacroArguments$1(node), $async$visitIfExpression$1); case 3: // returning from await. _0_0 = $async$result; positional = _0_0._0; named = _0_0._1; $async$self._async_evaluate0$_verifyArguments$4(J.get$length$asx(positional), named, $.$get$IfExpression_declaration0(), node); condition = A.ListExtensions_elementAtOrNull(positional, 0); if (condition == null) { t1 = named.$index(0, "condition"); t1.toString; condition = t1; } ifTrue = A.ListExtensions_elementAtOrNull(positional, 1); if (ifTrue == null) { t1 = named.$index(0, "if-true"); t1.toString; ifTrue = t1; } ifFalse = A.ListExtensions_elementAtOrNull(positional, 2); if (ifFalse == null) { t1 = named.$index(0, "if-false"); t1.toString; ifFalse = t1; } $async$goto = 4; return A._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1); case 4: // returning from await. result = $async$result.get$isTruthy() ? ifTrue : ifFalse; $async$goto = 5; return A._asyncAwait(result.accept$1($async$self), $async$visitIfExpression$1); case 5: // returning from await. $async$returnValue = $async$self._async_evaluate0$_withoutSlash$2($async$result, $async$self._async_evaluate0$_expressionNode$1(result)); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitIfExpression$1, $async$completer); }, visitNullExpression$1(node) { return this.visitNullExpression$body$_EvaluateVisitor0(node); }, visitNullExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue; var $async$visitNullExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$returnValue = B.C__SassNull0; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitNullExpression$1, $async$completer); }, visitNumberExpression$1(node) { return this.visitNumberExpression$body$_EvaluateVisitor0(node); }, visitNumberExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber_2), $async$returnValue; var $async$visitNumberExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$returnValue = A.SassNumber_SassNumber0(node.value, node.unit); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitNumberExpression$1, $async$completer); }, visitParenthesizedExpression$1(node) { var _this = this; 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); }, visitColorExpression$1(node) { return this.visitColorExpression$body$_EvaluateVisitor0(node); }, visitColorExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassColor_2), $async$returnValue; var $async$visitColorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$returnValue = node.value; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitColorExpression$1, $async$completer); }, visitListExpression$1(node) { return this.visitListExpression$body$_EvaluateVisitor0(node); }, visitListExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassList_2), $async$returnValue, $async$self = this, $async$temp1; var $async$visitListExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$temp1 = A; $async$goto = 3; return A._asyncAwait(A.mapAsync0(node.contents, new A._EvaluateVisitor_visitListExpression_closure2($async$self), type$.Expression_2, type$.Value_2), $async$visitListExpression$1); case 3: // returning from await. $async$returnValue = $async$temp1.SassList$0($async$result, node.separator, node.hasBrackets); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitListExpression$1, $async$completer); }, visitMapExpression$1(node) { return this.visitMapExpression$body$_EvaluateVisitor0(node); }, visitMapExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassMap_2), $async$returnValue, $async$self = this, t2, t3, _i, t4, key, value, keyValue, valueValue, oldValueSpan, t1, map, keyNodes; var $async$visitMapExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = type$.Value_2; map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2); t2 = node.pairs, t3 = t2.length, _i = 0; case 3: // for condition if (!(_i < t3)) { // goto after for $async$goto = 5; break; } t4 = t2[_i]; key = t4._0; value = t4._1; $async$goto = 6; return A._asyncAwait(key.accept$1($async$self), $async$visitMapExpression$1); case 6: // returning from await. keyValue = $async$result; $async$goto = 7; return A._asyncAwait(value.accept$1($async$self), $async$visitMapExpression$1); case 7: // returning from await. valueValue = $async$result; if (map.containsKey$1(keyValue)) { t1 = keyNodes.$index(0, keyValue); oldValueSpan = t1 == null ? null : t1.get$span(t1); t1 = key.get$span(key); t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); if (oldValueSpan != null) t2.$indexSet(0, oldValueSpan, "first key"); throw A.wrapException(A.MultiSpanSassRuntimeException$0("Duplicate key.", t1, "second key", t2, $async$self._async_evaluate0$_stackTrace$1(key.get$span(key)), null)); } map.$indexSet(0, keyValue, valueValue); keyNodes.$indexSet(0, keyValue, key); case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = new A.SassMap0(A.ConstantMap_ConstantMap$from(map, t1, t1)); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitMapExpression$1, $async$completer); }, visitFunctionExpression$1(node) { return this.visitFunctionExpression$body$_EvaluateVisitor0(node); }, visitFunctionExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$self = this, t2, _0_0, t3, t4, oldInFunction, result, t1, $function; var $async$visitFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = {}; $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)); t1.$function = $function; $async$goto = $function == null ? 3 : 4; break; case 3: // then if (node.namespace != null) throw A.wrapException($async$self._async_evaluate0$_exception$2("Undefined function.", node.span)); t2 = node.originalName; _0_0 = A.stringReplaceAllUnchecked(t2, "_", "-").toLowerCase(); if ("min" === _0_0 || "max" === _0_0 || "round" === _0_0 || "abs" === _0_0) { t3 = node.$arguments; t4 = t3.named; t3 = t4.get$isEmpty(t4) && t3.rest == null && B.JSArray_methods.every$1(t3.positional, new A._EvaluateVisitor_visitFunctionExpression_closure9()); } else t3 = false; $async$goto = t3 ? 5 : 6; break; case 5: // then $async$goto = 7; return A._asyncAwait($async$self._async_evaluate0$_visitCalculation$2$inLegacySassFunction(node, true), $async$visitFunctionExpression$1); case 7: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 6: // join $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 ? 8 : 9; break; case 8: // then $async$goto = 10; return A._asyncAwait($async$self._async_evaluate0$_visitCalculation$1(node), $async$visitFunctionExpression$1); case 10: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 9: // join if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss) $function = null; else { t3 = $async$self._async_evaluate0$_builtInFunctions.$index(0, A.stringReplaceAllUnchecked(t2, "_", "-")); $function = t3; } t1.$function = $function == null ? new A.PlainCssCallable0(t2) : $function; case 4: // join oldInFunction = $async$self._async_evaluate0$_inFunction; $async$self._async_evaluate0$_inFunction = true; $async$goto = 11; 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); case 11: // returning from await. result = $async$result; $async$self._async_evaluate0$_inFunction = oldInFunction; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitFunctionExpression$1, $async$completer); }, _async_evaluate0$_visitCalculation$2$inLegacySassFunction(node, inLegacySassFunction) { return this._visitCalculation$body$_EvaluateVisitor0(node, inLegacySassFunction); }, _async_evaluate0$_visitCalculation$1(node) { return this._async_evaluate0$_visitCalculation$2$inLegacySassFunction(node, false); }, _visitCalculation$body$_EvaluateVisitor0(node, inLegacySassFunction) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$next = [], $async$self = this, $arguments, oldCallableNode, t1, _0_0, error, stackTrace, t4, _i, exception, t2, t3, $async$temp1; var $async$_async_evaluate0$_visitCalculation$2$inLegacySassFunction = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t2 = node.$arguments; t3 = t2.named; if (t3.get$isNotEmpty(t3)) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Keywor, node.span)); else if (t2.rest != null) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Rest_a, node.span)); $async$self._async_evaluate0$_checkCalculationArguments$1(node); t3 = A._setArrayType([], type$.JSArray_Object); t2 = t2.positional, t4 = t2.length, _i = 0; case 3: // for condition if (!(_i < t4)) { // goto after for $async$goto = 5; break; } $async$temp1 = t3; $async$goto = 6; return A._asyncAwait($async$self._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction), $async$_async_evaluate0$_visitCalculation$2$inLegacySassFunction); case 6: // returning from await. $async$temp1.push($async$result); case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $arguments = t3; if ($async$self._async_evaluate0$_inSupportsDeclaration) { $async$returnValue = new A.SassCalculation0(A.stringReplaceAllUnchecked(node.originalName, "_", "-"), A.List_List$unmodifiable($arguments, type$.Object)); // goto return $async$goto = 1; break; } oldCallableNode = $async$self._async_evaluate0$_callableNode; $async$self._async_evaluate0$_callableNode = node; try { t1 = null; _0_0 = A.stringReplaceAllUnchecked(node.originalName, "_", "-").toLowerCase(); $label0$0: { if ("calc" === _0_0) { t1 = A.SassCalculation_calc0(J.$index$asx($arguments, 0)); break $label0$0; } if ("sqrt" === _0_0) { t1 = A.SassCalculation__singleArgument0("sqrt", J.$index$asx($arguments, 0), A.number2__sqrt$closure(), true); break $label0$0; } if ("sin" === _0_0) { t1 = A.SassCalculation__singleArgument0("sin", J.$index$asx($arguments, 0), A.number2__sin$closure(), false); break $label0$0; } if ("cos" === _0_0) { t1 = A.SassCalculation__singleArgument0("cos", J.$index$asx($arguments, 0), A.number2__cos$closure(), false); break $label0$0; } if ("tan" === _0_0) { t1 = A.SassCalculation__singleArgument0("tan", J.$index$asx($arguments, 0), A.number2__tan$closure(), false); break $label0$0; } if ("asin" === _0_0) { t1 = A.SassCalculation__singleArgument0("asin", J.$index$asx($arguments, 0), A.number2__asin$closure(), true); break $label0$0; } if ("acos" === _0_0) { t1 = A.SassCalculation__singleArgument0("acos", J.$index$asx($arguments, 0), A.number2__acos$closure(), true); break $label0$0; } if ("atan" === _0_0) { t1 = A.SassCalculation__singleArgument0("atan", J.$index$asx($arguments, 0), A.number2__atan$closure(), true); break $label0$0; } if ("abs" === _0_0) { t1 = A.SassCalculation_abs0(J.$index$asx($arguments, 0)); break $label0$0; } if ("exp" === _0_0) { t1 = A.SassCalculation_exp0(J.$index$asx($arguments, 0)); break $label0$0; } if ("sign" === _0_0) { t1 = A.SassCalculation_sign0(J.$index$asx($arguments, 0)); break $label0$0; } if ("min" === _0_0) { t1 = A.SassCalculation_min0($arguments); break $label0$0; } if ("max" === _0_0) { t1 = A.SassCalculation_max0($arguments); break $label0$0; } if ("hypot" === _0_0) { t1 = A.SassCalculation_hypot0($arguments); break $label0$0; } if ("pow" === _0_0) { t1 = A.SassCalculation_pow0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("atan2" === _0_0) { t1 = A.SassCalculation_atan20(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("log" === _0_0) { t1 = A.SassCalculation_log0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("mod" === _0_0) { t1 = A.SassCalculation_mod0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("rem" === _0_0) { t1 = A.SassCalculation_rem0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("round" === _0_0) { t1 = A.SassCalculation_round0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2)); break $label0$0; } if ("clamp" === _0_0) { t1 = A.SassCalculation_clamp0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2)); break $label0$0; } t3 = A.UnsupportedError$('Unknown calculation name "' + node.get$name(node) + '".'); t1 = A.throwExpression(t3); } t1 = t1; $async$returnValue = t1; // goto return $async$goto = 1; break; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassScriptException0) { error = t1; stackTrace = A.getTraceFromException(exception); if (B.JSString_methods.contains$1(error.message, "compatible")) $async$self._async_evaluate0$_verifyCompatibleNumbers$2($arguments, t2); A.throwWithTrace0($async$self._async_evaluate0$_exception$2(error.message, node.span), error, stackTrace); } else throw exception; } finally { $async$self._async_evaluate0$_callableNode = oldCallableNode; } case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_visitCalculation$2$inLegacySassFunction, $async$completer); }, _async_evaluate0$_checkCalculationArguments$1(node) { var _0_0, check = new A._EvaluateVisitor__checkCalculationArguments_check2(this, node); $label0$0: { _0_0 = A.stringReplaceAllUnchecked(node.originalName, "_", "-").toLowerCase(); 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) { check.call$1(1); break $label0$0; } if ("min" === _0_0 || "max" === _0_0 || "hypot" === _0_0) { check.call$0(); break $label0$0; } if ("pow" === _0_0 || "atan2" === _0_0 || "log" === _0_0 || "mod" === _0_0 || "rem" === _0_0) { check.call$1(2); break $label0$0; } if ("round" === _0_0 || "clamp" === _0_0) { check.call$1(3); break $label0$0; } throw A.wrapException(A.UnsupportedError$('Unknown calculation name "' + node.get$name(node) + '".')); } }, _async_evaluate0$_verifyCompatibleNumbers$2(args, nodesWithSpans) { var i, t1, _0_0, arg, number1, j, number2; for (i = 0; t1 = args.length, i < t1; ++i) { _0_0 = args[i]; if (_0_0 instanceof A.SassNumber0) { t1 = _0_0.get$hasComplexUnits(); arg = _0_0; } else { arg = null; t1 = false; } if (t1) throw A.wrapException(this._async_evaluate0$_exception$2("Number " + A.S(arg) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i]))); } for (i = 0; i < t1 - 1; ++i) { number1 = args[i]; if (!(number1 instanceof A.SassNumber0)) continue; for (j = i + 1; t1 = args.length, j < t1; ++j) { number2 = args[j]; if (!(number2 instanceof A.SassNumber0)) continue; if (number1.hasPossiblyCompatibleUnits$1(number2)) continue; 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)); } } }, _async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(node, inLegacySassFunction) { return this._visitCalculationExpression$body$_EvaluateVisitor0(node, inLegacySassFunction); }, _visitCalculationExpression$body$_EvaluateVisitor0(node, inLegacySassFunction) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Object), $async$returnValue, $async$self = this, inner, t1, result, t2, _0_0, _1_0, t3, _i, i, _box_0, $async$temp1; var $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start _box_0 = {}; if (node instanceof A.ParenthesizedExpression0) { inner = node.expression; t1 = true; } else { inner = null; t1 = false; } $async$goto = t1 ? 3 : 4; break; case 3: // then $async$goto = 5; return A._asyncAwait($async$self._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(inner, inLegacySassFunction), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction); case 5: // returning from await. result = $async$result; $async$returnValue = result instanceof A.SassString0 ? new A.SassString0("(" + result._string0$_text + ")", false) : result; // goto return $async$goto = 1; break; case 4: // join $async$goto = node instanceof A.StringExpression0 && node.accept$1(new A._IsCalculationSafeVisitor0()) ? 6 : 7; break; case 6: // then t1 = node.text; t2 = t1.get$asPlain(); _0_0 = t2 == null ? null : t2.toLowerCase(); if ("pi" === _0_0) { t1 = A.SassNumber_SassNumber0(3.141592653589793, null); // goto break $label0$0 $async$goto = 8; break; } if ("e" === _0_0) { t1 = A.SassNumber_SassNumber0(2.718281828459045, null); // goto break $label0$0 $async$goto = 8; break; } if ("infinity" === _0_0) { t1 = A.SassNumber_SassNumber0(1 / 0, null); // goto break $label0$0 $async$goto = 8; break; } if ("-infinity" === _0_0) { t1 = A.SassNumber_SassNumber0(-1 / 0, null); // goto break $label0$0 $async$goto = 8; break; } if ("nan" === _0_0) { t1 = A.SassNumber_SassNumber0(0 / 0, null); // goto break $label0$0 $async$goto = 8; break; } $async$temp1 = A; $async$goto = 9; return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t1), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction); case 9: // returning from await. t1 = new $async$temp1.SassString0($async$result, false); // goto break $label0$0 $async$goto = 8; break; case 8: // break $label0$0 $async$returnValue = t1; // goto return $async$goto = 1; break; case 7: // join _box_0.right = _box_0.left = _box_0.operator = null; if (node instanceof A.BinaryOperationExpression0) { _box_0.operator = node.operator; _box_0.left = node.left; _box_0.right = node.right; t1 = true; } else t1 = false; $async$goto = t1 ? 10 : 11; break; case 10: // then $async$self._async_evaluate0$_checkWhitespaceAroundCalculationOperator$1(node); $async$goto = 12; 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); case 12: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 11: // join $async$goto = node instanceof A.NumberExpression0 || node instanceof A.VariableExpression0 || node instanceof A.FunctionExpression0 || node instanceof A.IfExpression0 ? 13 : 14; break; case 13: // then $async$goto = 15; return A._asyncAwait(node.accept$1($async$self), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction); case 15: // returning from await. _1_0 = $async$result; $label1$1: { if (_1_0 instanceof A.SassNumber0) { result = _1_0; t1 = true; } else { result = null; t1 = false; } if (t1) { t1 = result; break $label1$1; } if (_1_0 instanceof A.SassCalculation0) { result = _1_0; t1 = true; } else { result = null; t1 = false; } if (t1) { t1 = result; break $label1$1; } if (_1_0 instanceof A.SassString0) { t1 = !_1_0._string0$_hasQuotes; result = _1_0; } else { result = null; t1 = false; } if (t1) { t1 = result; break $label1$1; } 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))); } $async$returnValue = t1; // goto return $async$goto = 1; break; case 14: // join $async$goto = node instanceof A.ListExpression0 && !node.hasBrackets && B.ListSeparator_EVt0 === node.separator && node.contents.length >= 2 ? 16 : 17; break; case 16: // then t1 = A._setArrayType([], type$.JSArray_Object); t2 = node.contents, t3 = t2.length, _i = 0; case 18: // for condition if (!(_i < t3)) { // goto after for $async$goto = 20; break; } $async$temp1 = t1; $async$goto = 21; return A._asyncAwait($async$self._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction); case 21: // returning from await. $async$temp1.push($async$result); case 19: // for update ++_i; // goto for condition $async$goto = 18; break; case 20: // after for $async$self._async_evaluate0$_checkAdjacentCalculationValues$2(t1, node); for (i = 0; i < t1.length; ++i) { t3 = t1[i]; if (t3 instanceof A.CalculationOperation0 && t2[i] instanceof A.ParenthesizedExpression0) t1[i] = new A.SassString0("(" + A.S(t3) + ")", false); } $async$returnValue = new A.SassString0(B.JSArray_methods.join$1(t1, " "), false); // goto return $async$goto = 1; break; case 17: // join throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.This_e, node.get$span(node))); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction, $async$completer); }, _async_evaluate0$_checkWhitespaceAroundCalculationOperator$1(node) { var t2, t3, t4, textBetweenOperands, first, last, t1 = node.operator; if (t1 !== B.BinaryOperator_anB0 && t1 !== B.BinaryOperator_olz0) return; t1 = node.left; t2 = t1.get$span(t1); t2 = t2.get$file(t2); t3 = node.right; t4 = t3.get$span(t3); if (t2 !== t4.get$file(t4)) return; t2 = t1.get$span(t1); t2 = t2.get$end(t2); t4 = t3.get$span(t3); if (t2.offset >= t4.get$start(t4).offset) return; t2 = t1.get$span(t1); t2 = t2.get$file(t2); t1 = t1.get$span(t1); t1 = t1.get$end(t1); t3 = t3.get$span(t3); textBetweenOperands = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, t1.offset, t3.get$start(t3).offset), 0, null); first = textBetweenOperands.charCodeAt(0); last = textBetweenOperands.charCodeAt(textBetweenOperands.length - 1); if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47) t1 = !(last === 32 || last === 9 || last === 10 || last === 13 || last === 12 || last === 47); else t1 = true; if (t1) throw A.wrapException(this._async_evaluate0$_exception$2(string$.x22x2b__an, node.get$operatorSpan())); }, _async_evaluate0$_binaryOperatorToCalculationOperator$2(operator, node) { var t1; $label0$0: { if (B.BinaryOperator_anB0 === operator) { t1 = B.CalculationOperator_IyK0; break $label0$0; } if (B.BinaryOperator_olz0 === operator) { t1 = B.CalculationOperator_2bx0; break $label0$0; } if (B.BinaryOperator_qN20 === operator) { t1 = B.CalculationOperator_jFr0; break $label0$0; } if (B.BinaryOperator_t8B0 === operator) { t1 = B.CalculationOperator_OvN0; break $label0$0; } t1 = A.throwExpression(this._async_evaluate0$_exception$2(string$.This_o, node.get$operatorSpan())); } return t1; }, _async_evaluate0$_checkAdjacentCalculationValues$2(elements, node) { var t1, i, t2, previous, current, previousNode, currentNode, _0_2; for (t1 = elements.length, i = 1; i < t1; ++i) { t2 = i - 1; previous = elements[t2]; current = elements[i]; if (previous instanceof A.SassString0 || current instanceof A.SassString0) continue; t1 = node.contents; previousNode = t1[t2]; currentNode = t1[i]; _0_2 = A._InitializedCell$(new A._EvaluateVisitor__checkAdjacentCalculationValues_closure2(currentNode)); if (currentNode instanceof A.UnaryOperationExpression0) t1 = B.UnaryOperator_TLI0 === _0_2._readFinal$0() || B.UnaryOperator_gg40 === _0_2._readFinal$0(); else t1 = false; if (!t1) t1 = currentNode instanceof A.NumberExpression0 && currentNode.value < 0; else t1 = true; if (t1) throw A.wrapException(this._async_evaluate0$_exception$2(string$.x22x2b__an, A.FileSpanExtension_subspan(currentNode.get$span(currentNode), 0, 1))); else throw A.wrapException(this._async_evaluate0$_exception$2("Missing math operator.", previousNode.get$span(previousNode).expand$1(0, currentNode.get$span(currentNode)))); } }, visitInterpolatedFunctionExpression$1(node) { return this.visitInterpolatedFunctionExpression$body$_EvaluateVisitor0(node); }, visitInterpolatedFunctionExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$self = this, result, t1, oldInFunction; var $async$visitInterpolatedFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(node.name), $async$visitInterpolatedFunctionExpression$1); case 3: // returning from await. t1 = $async$result; oldInFunction = $async$self._async_evaluate0$_inFunction; $async$self._async_evaluate0$_inFunction = true; $async$goto = 4; 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); case 4: // returning from await. result = $async$result; $async$self._async_evaluate0$_inFunction = oldInFunction; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitInterpolatedFunctionExpression$1, $async$completer); }, _async_evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) { return this._runUserDefinedCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan, run, $V, $V); }, _runUserDefinedCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan, run, $V, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, oldCallable, result, evaluated, $name; var $async$_async_evaluate0$_runUserDefinedCallable$1$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_runUserDefinedCallable$1$4); case 3: // returning from await. evaluated = $async$result; $name = callable.declaration.name; if ($name !== "@content") $name += "()"; oldCallable = $async$self._async_evaluate0$_currentCallable; $async$self._async_evaluate0$_currentCallable = callable; $async$goto = 4; 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); case 4: // returning from await. result = $async$result; $async$self._async_evaluate0$_currentCallable = oldCallable; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_runUserDefinedCallable$1$4, $async$completer); }, _async_evaluate0$_runFunctionCallable$3($arguments, callable, nodeWithSpan) { return this._runFunctionCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan); }, _runFunctionCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, buffer, first, argument, restArg, rest, error, t1, t2, _i, exception, $async$exception, $async$temp1, $async$temp2; var $async$_async_evaluate0$_runFunctionCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start $async$goto = type$.AsyncBuiltInCallable_2._is(callable) ? 3 : 5; break; case 3: // then $async$goto = 6; return A._asyncAwait($async$self._async_evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate0$_runFunctionCallable$3); case 6: // returning from await. $async$returnValue = $async$self._async_evaluate0$_withoutSlash$2($async$result, nodeWithSpan); // goto return $async$goto = 1; break; // goto join $async$goto = 4; break; case 5: // else $async$goto = type$.UserDefinedCallable_AsyncEnvironment_2._is(callable) ? 7 : 9; break; case 7: // then $async$goto = 10; 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); case 10: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; // goto join $async$goto = 8; break; case 9: // else $async$goto = callable instanceof A.PlainCssCallable0 ? 11 : 13; break; case 11: // then t1 = $arguments.named; if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan))); buffer = new A.StringBuffer(callable.name + "("); $async$handler = 15; first = true; t1 = $arguments.positional, t2 = t1.length, _i = 0; case 18: // for condition if (!(_i < t2)) { // goto after for $async$goto = 20; break; } argument = t1[_i]; if (first) first = false; else buffer._contents += ", "; $async$temp1 = buffer; $async$temp2 = A; $async$goto = 21; return A._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(argument), $async$_async_evaluate0$_runFunctionCallable$3); case 21: // returning from await. $async$temp1._contents += $async$temp2.S($async$result); case 19: // for update ++_i; // goto for condition $async$goto = 18; break; case 20: // after for restArg = $arguments.rest; $async$goto = restArg != null ? 22 : 23; break; case 22: // then $async$goto = 24; return A._asyncAwait(restArg.accept$1($async$self), $async$_async_evaluate0$_runFunctionCallable$3); case 24: // returning from await. rest = $async$result; if (!first) buffer._contents += ", "; buffer._contents += $async$self._async_evaluate0$_serialize$2(rest, restArg); case 23: // join $async$handler = 2; // goto after finally $async$goto = 17; break; case 15: // catch $async$handler = 14; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (type$.SassRuntimeException_2._is(t1)) { error = t1; if (!B.JSString_methods.endsWith$1(error._span_exception$_message, "isn't a valid CSS value.")) throw $async$exception; 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)); } else throw $async$exception; // goto after finally $async$goto = 17; break; case 14: // uncaught // goto rethrow $async$goto = 2; break; case 17: // after finally buffer._contents += A.Primitives_stringFromCharCode(41); t1 = buffer._contents; $async$returnValue = new A.SassString0(t1.charCodeAt(0) == 0 ? t1 : t1, false); // goto return $async$goto = 1; break; // goto join $async$goto = 12; break; case 13: // else throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$(callable).toString$0(0) + ".", null)); case 12: // join case 8: // join case 4: // join case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_runFunctionCallable$3, $async$completer); }, _async_evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan) { return this._runBuiltInCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan); }, _runBuiltInCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, result, error, stackTrace, message, namedSet, _0_0, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, message0, _box_0, evaluated, oldCallableNode, $async$exception; var $async$_async_evaluate0$_runBuiltInCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start _box_0 = {}; $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_runBuiltInCallable$3); case 3: // returning from await. evaluated = $async$result; oldCallableNode = $async$self._async_evaluate0$_callableNode; $async$self._async_evaluate0$_callableNode = nodeWithSpan; namedSet = new A.MapKeySet(evaluated._values[0], type$.MapKeySet_String); _box_0.callback = _box_0.overload = null; _0_0 = callable.callbackFor$2(J.get$length$asx(evaluated._values[2]), namedSet); _box_0.overload = _0_0._0; _box_0.callback = _0_0._1; $async$self._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure8(_box_0, evaluated, namedSet)); declaredArguments = _box_0.overload.$arguments; i = J.get$length$asx(evaluated._values[2]), t1 = declaredArguments.length; case 4: // for condition if (!(i < t1)) { // goto after for $async$goto = 6; break; } argument = declaredArguments[i]; t2 = evaluated._values[2]; t3 = evaluated._values[0].remove$1(0, argument.name); $async$goto = t3 == null ? 7 : 8; break; case 7: // then t3 = argument.defaultValue; $async$goto = 9; return A._asyncAwait(t3.accept$1($async$self), $async$_async_evaluate0$_runBuiltInCallable$3); case 9: // returning from await. t3 = $async$self._async_evaluate0$_withoutSlash$2($async$result, t3); case 8: // join J.add$1$ax(t2, t3); case 5: // for update ++i; // goto for condition $async$goto = 4; break; case 6: // after for if (_box_0.overload.restArgument != null) { if (J.get$length$asx(evaluated._values[2]) > t1) { rest = J.sublist$1$ax(evaluated._values[2], t1); J.removeRange$2$ax(evaluated._values[2], t1, J.get$length$asx(evaluated._values[2])); } else rest = B.List_empty19; t1 = evaluated._values[0]; argumentList = A.SassArgumentList$0(rest, t1, evaluated._values[4] === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_rXA0 : evaluated._values[4]); J.add$1$ax(evaluated._values[2], argumentList); } else argumentList = null; result = null; $async$handler = 11; $async$goto = 14; 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); case 14: // returning from await. result = $async$result; $async$handler = 2; // goto after finally $async$goto = 13; break; case 11: // catch $async$handler = 10; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (t1 instanceof A.SassException0) throw $async$exception; else { error = t1; stackTrace = A.getTraceFromException($async$exception); message = null; try { message = A._asString(J.get$message$x(error)); } catch (exception) { message0 = J.toString$0$(error); message = message0; } A.throwWithTrace0($async$self._async_evaluate0$_exception$2(message, nodeWithSpan.get$span(nodeWithSpan)), error, stackTrace); } // goto after finally $async$goto = 13; break; case 10: // uncaught // goto rethrow $async$goto = 2; break; case 13: // after finally $async$self._async_evaluate0$_callableNode = oldCallableNode; if (argumentList == null) { $async$returnValue = result; // goto return $async$goto = 1; break; } t1 = evaluated._values[0]; if (t1.get$isEmpty(t1)) { $async$returnValue = result; // goto return $async$goto = 1; break; } if (argumentList._argument_list$_wereKeywordsAccessed) { $async$returnValue = result; // goto return $async$goto = 1; break; } t1 = evaluated._values[0]; t1 = A.pluralize0("argument", J.get$length$asx(t1.get$keys(t1)), null); t2 = evaluated._values[0]; 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)); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_runBuiltInCallable$3, $async$completer); }, _async_evaluate0$_evaluateArguments$1($arguments) { return this._evaluateArguments$body$_EvaluateVisitor0($arguments); }, _evaluateArguments$body$_EvaluateVisitor0($arguments) { var $async$goto = 0, $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), $async$returnValue, $async$self = this, t1, t2, _i, expression, nodeForSpan, named, namedNodes, t3, t4, $name, value, restArgs, rest, restNodeForSpan, t5, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, positional, positionalNodes, $async$temp1, $async$temp2; var $async$_async_evaluate0$_evaluateArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start positional = A._setArrayType([], type$.JSArray_Value_2); positionalNodes = A._setArrayType([], type$.JSArray_AstNode_2); t1 = $arguments.positional, t2 = t1.length, _i = 0; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } expression = t1[_i]; nodeForSpan = $async$self._async_evaluate0$_expressionNode$1(expression); $async$temp1 = positional; $async$goto = 6; return A._asyncAwait(expression.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$1); case 6: // returning from await. $async$temp1.push($async$self._async_evaluate0$_withoutSlash$2($async$result, nodeForSpan)); positionalNodes.push(nodeForSpan); case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for t1 = type$.String; named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2); t2 = type$.AstNode_2; namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); t3 = A.MapExtensions_get_pairs0($arguments.named, t1, type$.Expression_2), t3 = t3.get$iterator(t3); case 7: // for condition if (!t3.moveNext$0()) { // goto after for $async$goto = 8; break; } t4 = t3.get$current(t3); $name = t4._0; value = t4._1; nodeForSpan = $async$self._async_evaluate0$_expressionNode$1(value); $async$temp1 = named; $async$temp2 = $name; $async$goto = 9; return A._asyncAwait(value.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$1); case 9: // returning from await. $async$temp1.$indexSet(0, $async$temp2, $async$self._async_evaluate0$_withoutSlash$2($async$result, nodeForSpan)); namedNodes.$indexSet(0, $name, nodeForSpan); // goto for condition $async$goto = 7; break; case 8: // after for restArgs = $arguments.rest; if (restArgs == null) { $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, B.ListSeparator_undecided_null_undecided0]); // goto return $async$goto = 1; break; } $async$goto = 10; return A._asyncAwait(restArgs.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$1); case 10: // returning from await. rest = $async$result; restNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(restArgs); if (rest instanceof A.SassMap0) { $async$self._async_evaluate0$_addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure11()); t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t4 = rest._map0$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString_2; t4.moveNext$0();) t3.$indexSet(0, t5._as(t4.get$current(t4))._string0$_text, restNodeForSpan); namedNodes.addAll$1(0, t3); separator = B.ListSeparator_undecided_null_undecided0; } else if (rest instanceof A.SassList0) { t3 = rest._list1$_contents; 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>"))); B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2)); separator = rest._list1$_separator; if (rest instanceof A.SassArgumentList0) { rest._argument_list$_wereKeywordsAccessed = true; rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure13($async$self, named, restNodeForSpan, namedNodes)); } } else { positional.push($async$self._async_evaluate0$_withoutSlash$2(rest, restNodeForSpan)); positionalNodes.push(restNodeForSpan); separator = B.ListSeparator_undecided_null_undecided0; } keywordRestArgs = $arguments.keywordRest; if (keywordRestArgs == null) { $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]); // goto return $async$goto = 1; break; } $async$goto = 11; return A._asyncAwait(keywordRestArgs.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$1); case 11: // returning from await. keywordRest = $async$result; keywordRestNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(keywordRestArgs); if (keywordRest instanceof A.SassMap0) { $async$self._async_evaluate0$_addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure14()); t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t2 = keywordRest._map0$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString_2; t2.moveNext$0();) t1.$indexSet(0, t3._as(t2.get$current(t2))._string0$_text, keywordRestNodeForSpan); namedNodes.addAll$1(0, t1); $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]); // goto return $async$goto = 1; break; } else throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs))); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_evaluateArguments$1, $async$completer); }, _async_evaluate0$_evaluateMacroArguments$1(invocation) { return this._evaluateMacroArguments$body$_EvaluateVisitor0(invocation); }, _evaluateMacroArguments$body$_EvaluateVisitor0(invocation) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_List_Expression_and_Map_String_Expression_2), $async$returnValue, $async$self = this, t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, t1, restArgs_; var $async$_async_evaluate0$_evaluateMacroArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = invocation.$arguments; restArgs_ = t1.rest; if (restArgs_ == null) { $async$returnValue = new A._Record_2(t1.positional, t1.named); // goto return $async$goto = 1; break; } t2 = t1.positional; positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2)); named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression_2); $async$goto = 3; return A._asyncAwait(restArgs_.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1); case 3: // returning from await. rest = $async$result; restNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(restArgs_); if (rest instanceof A.SassMap0) $async$self._async_evaluate0$_addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure11(restArgs_)); else if (rest instanceof A.SassList0) { t2 = rest._list1$_contents; 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>"))); if (rest instanceof A.SassArgumentList0) { rest._argument_list$_wereKeywordsAccessed = true; rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure13($async$self, named, restNodeForSpan, restArgs_)); } } else positional.push(new A.ValueExpression0($async$self._async_evaluate0$_withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_))); keywordRestArgs_ = t1.keywordRest; if (keywordRestArgs_ == null) { $async$returnValue = new A._Record_2(positional, named); // goto return $async$goto = 1; break; } $async$goto = 4; return A._asyncAwait(keywordRestArgs_.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1); case 4: // returning from await. keywordRest = $async$result; keywordRestNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(keywordRestArgs_); if (keywordRest instanceof A.SassMap0) { $async$self._async_evaluate0$_addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure14($async$self, keywordRestNodeForSpan, keywordRestArgs_)); $async$returnValue = new A._Record_2(positional, named); // goto return $async$goto = 1; break; } else throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_))); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_evaluateMacroArguments$1, $async$completer); }, _async_evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert) { map._map0$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure2(this, values, convert, this._async_evaluate0$_expressionNode$1(nodeWithSpan), map, nodeWithSpan)); }, _async_evaluate0$_addRestMap$4(values, map, nodeWithSpan, convert) { return this._async_evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic); }, _async_evaluate0$_verifyArguments$4(positional, named, $arguments, nodeWithSpan) { return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure2($arguments, positional, named)); }, visitSelectorExpression$1(node) { return this.visitSelectorExpression$body$_EvaluateVisitor0(node); }, visitSelectorExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$self = this, t1; var $async$visitSelectorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self._async_evaluate0$_styleRuleIgnoringAtRoot; t1 = t1 == null ? null : t1.originalSelector.get$asSassList(); $async$returnValue = t1 == null ? B.C__SassNull0 : t1; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitSelectorExpression$1, $async$completer); }, visitStringExpression$1(node) { return this.visitStringExpression$body$_EvaluateVisitor0(node); }, visitStringExpression$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassString_2), $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, value, t5, _0_0, text, oldInSupportsDeclaration; var $async$visitStringExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldInSupportsDeclaration = $async$self._async_evaluate0$_inSupportsDeclaration; $async$self._async_evaluate0$_inSupportsDeclaration = false; t1 = A._setArrayType([], type$.JSArray_String); t2 = node.text.contents, t3 = t2.length, t4 = type$.Expression_2, _i = 0; case 3: // for condition if (!(_i < t3)) { // goto after for $async$goto = 5; break; } value = t2[_i]; if (typeof value == "string") { t5 = value; // goto break $label0$0 $async$goto = 6; break; } $async$goto = t4._is(value) ? 7 : 8; break; case 7: // then $async$goto = 9; return A._asyncAwait(value.accept$1($async$self), $async$visitStringExpression$1); case 9: // returning from await. _0_0 = $async$result; $label1$1: { if (_0_0 instanceof A.SassString0) { text = _0_0._string0$_text; t5 = true; } else { text = null; t5 = false; } if (t5) { t5 = text; break $label1$1; } t5 = $async$self._async_evaluate0$_serialize$3$quote(_0_0, value, false); break $label1$1; } // goto break $label0$0 $async$goto = 6; break; case 8: // join t5 = A.throwExpression(A.UnsupportedError$("Unknown interpolation value " + A.S(value))); case 6: // break $label0$0 t1.push(t5); case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for t1 = B.JSArray_methods.join$0(t1); $async$self._async_evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration; $async$returnValue = new A.SassString0(t1, node.hasQuotes); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitStringExpression$1, $async$completer); }, visitSupportsExpression$1(expression) { return this.visitSupportsExpression$body$_EvaluateVisitor0(expression); }, visitSupportsExpression$body$_EvaluateVisitor0(expression) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassString_2), $async$returnValue, $async$self = this, $async$temp1; var $async$visitSupportsExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$temp1 = A; $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(expression.condition), $async$visitSupportsExpression$1); case 3: // returning from await. $async$returnValue = new $async$temp1.SassString0($async$result, false); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitSupportsExpression$1, $async$completer); }, visitCssAtRule$1(node) { return this.visitCssAtRule$body$_EvaluateVisitor0(node); }, visitCssAtRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$returnValue, $async$self = this, wasInKeyframes, wasInUnknownAtRule, t1; var $async$visitCssAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate0$_declarationName != null) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.At_rul, node.span)); if (node.isChildless) { $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0(node.name, node.span, true, node.value)); // goto return $async$goto = 1; break; } wasInKeyframes = $async$self._async_evaluate0$_inKeyframes; wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule; t1 = node.name; if (A.unvendor0(t1.value) === "keyframes") $async$self._async_evaluate0$_inKeyframes = true; else $async$self._async_evaluate0$_inUnknownAtRule = true; $async$goto = 3; 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); case 3: // returning from await. $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule; $async$self._async_evaluate0$_inKeyframes = wasInKeyframes; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitCssAtRule$1, $async$completer); }, visitCssComment$1(node) { return this.visitCssComment$body$_EvaluateVisitor0(node); }, visitCssComment$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this; var $async$visitCssComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start 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)) $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1; $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(new A.ModifiableCssComment0(node.text, node.span)); // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssComment$1, $async$completer); }, visitCssDeclaration$1(node) { return this.visitCssDeclaration$body$_EvaluateVisitor0(node); }, visitCssDeclaration$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this; var $async$visitCssDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap)); // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssDeclaration$1, $async$completer); }, visitCssImport$1(node) { return this.visitCssImport$body$_EvaluateVisitor0(node); }, visitCssImport$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1, modifiableNode; var $async$visitCssImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start modifiableNode = new A.ModifiableCssImport0(node.url, node.modifiers, node.span); 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$__parent, "__parent").addChild$1(modifiableNode); 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)) { $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").addChild$1(modifiableNode); $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1; } else { t1 = $async$self._async_evaluate0$_outOfOrderImports; (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t1).push(modifiableNode); } // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssImport$1, $async$completer); }, visitCssKeyframeBlock$1(node) { return this.visitCssKeyframeBlock$body$_EvaluateVisitor0(node); }, visitCssKeyframeBlock$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this; var $async$visitCssKeyframeBlock$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer); }, visitCssMediaRule$1(node) { return this.visitCssMediaRule$body$_EvaluateVisitor0(node); }, visitCssMediaRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$returnValue, $async$self = this, mergedQueries, t1, mergedSources, t2, t3; var $async$visitCssMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate0$_declarationName != null) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Media_, node.span)); mergedQueries = A.NullableExtension_andThen0($async$self._async_evaluate0$_mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure8($async$self, node)); t1 = mergedQueries == null; if (!t1 && J.get$isEmpty$asx(mergedQueries)) { // goto return $async$goto = 1; break; } if (t1) mergedSources = B.Set_empty5; else { t2 = $async$self._async_evaluate0$_mediaQuerySources; t2.toString; t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2); t3 = $async$self._async_evaluate0$_mediaQueries; t3.toString; t2.addAll$1(0, t3); t2.addAll$1(0, node.queries); mergedSources = t2; } t1 = t1 ? node.queries : mergedQueries; $async$goto = 3; 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); case 3: // returning from await. case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$visitCssMediaRule$1, $async$completer); }, visitCssStyleRule$1(node) { return this.visitCssStyleRule$body$_EvaluateVisitor0(node); }, visitCssStyleRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1, styleRule, t2, t3, t4, originalSelector, rule, oldAtRootExcludingStyleRule, _0_0, _0_1, lastChild; var $async$visitCssStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate0$_declarationName != null) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_, node.span)); t1 = $async$self._async_evaluate0$_atRootExcludingStyleRule; styleRule = t1 ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot; t2 = node._style_rule0$_selector._box0$_inner.value; t3 = styleRule == null; t4 = t3 ? null : styleRule.originalSelector; originalSelector = t2.resolveParentSelectors$2$implicitParent(t4, !t1); 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, originalSelector); oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule; $async$self._async_evaluate0$_atRootExcludingStyleRule = false; $async$goto = 2; return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure8($async$self, rule, node), false, new A._EvaluateVisitor_visitCssStyleRule_closure9(), type$.ModifiableCssStyleRule_2, type$.Null), $async$visitCssStyleRule$1); case 2: // returning from await. $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule; _0_0 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").children; _0_1 = A._InitializedCell$(new A._EvaluateVisitor_visitCssStyleRule_closure10(_0_0)); if (_0_1._readFinal$0() >= 1) { lastChild = J.elementAt$1$ax(_0_0._collection$_source, _0_1._readFinal$0() - 1); t1 = t3; } else { lastChild = null; t1 = false; } if (t1) lastChild.isGroupEnd = true; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssStyleRule$1, $async$completer); }, visitCssStylesheet$1(node) { return this.visitCssStylesheet$body$_EvaluateVisitor0(node); }, visitCssStylesheet$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1; var $async$visitCssStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = J.get$iterator$ax(node.get$children(node)); case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } $async$goto = 4; return A._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1); case 4: // returning from await. // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssStylesheet$1, $async$completer); }, visitCssSupportsRule$1(node) { return this.visitCssSupportsRule$body$_EvaluateVisitor0(node); }, visitCssSupportsRule$body$_EvaluateVisitor0(node) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this; var $async$visitCssSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if ($async$self._async_evaluate0$_declarationName != null) throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Suppor, node.span)); $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$visitCssSupportsRule$1, $async$completer); }, _async_evaluate0$_handleReturn$1$2(list, callback) { return this._handleReturn$body$_EvaluateVisitor0(list, callback); }, _async_evaluate0$_handleReturn$2(list, callback) { return this._async_evaluate0$_handleReturn$1$2(list, callback, type$.dynamic); }, _handleReturn$body$_EvaluateVisitor0(list, callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, t1, _i, _0_0, result, t2; var $async$_async_evaluate0$_handleReturn$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = list.length, _i = 0; case 3: // for condition if (!(_i < list.length)) { // goto after for $async$goto = 5; break; } $async$goto = 6; return A._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate0$_handleReturn$1$2); case 6: // returning from await. _0_0 = $async$result; if (_0_0 != null) { result = _0_0; t2 = true; } else { result = null; t2 = false; } if (t2) { $async$returnValue = result; // goto return $async$goto = 1; break; } case 4: // for update list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_handleReturn$1$2, $async$completer); }, _async_evaluate0$_withEnvironment$1$2(environment, callback, $T) { return this._withEnvironment$body$_EvaluateVisitor0(environment, callback, $T, $T); }, _withEnvironment$body$_EvaluateVisitor0(environment, callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, result, oldEnvironment; var $async$_async_evaluate0$_withEnvironment$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldEnvironment = $async$self._async_evaluate0$_environment; $async$self._async_evaluate0$_environment = environment; $async$goto = 3; return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withEnvironment$1$2); case 3: // returning from await. result = $async$result; $async$self._async_evaluate0$_environment = oldEnvironment; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_withEnvironment$1$2, $async$completer); }, _async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) { return this._interpolationToValue$body$_EvaluateVisitor0(interpolation, trim, warnForColor); }, _async_evaluate0$_interpolationToValue$1(interpolation) { return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false); }, _async_evaluate0$_interpolationToValue$2$warnForColor(interpolation, warnForColor) { return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor); }, _interpolationToValue$body$_EvaluateVisitor0(interpolation, trim, warnForColor) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.CssValue_String_2), $async$returnValue, $async$self = this, result, t1; var $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor); case 3: // returning from await. result = $async$result; t1 = trim ? A.trimAscii0(result, true) : result; $async$returnValue = new A.CssValue0(t1, interpolation.span, type$.CssValue_String_2); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor, $async$completer); }, _async_evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor) { return this._performInterpolation$body$_EvaluateVisitor0(interpolation, warnForColor); }, _async_evaluate0$_performInterpolation$1(interpolation) { return this._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, false); }, _performInterpolation$body$_EvaluateVisitor0(interpolation, warnForColor) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.String), $async$returnValue, $async$self = this, result; var $async$_async_evaluate0$_performInterpolation$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, false, warnForColor), $async$_async_evaluate0$_performInterpolation$2$warnForColor); case 3: // returning from await. result = $async$result._0; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_performInterpolation$2$warnForColor, $async$completer); }, _async_evaluate0$_performInterpolationWithMap$2$warnForColor(interpolation, warnForColor) { return this._performInterpolationWithMap$body$_EvaluateVisitor0(interpolation, true); }, _performInterpolationWithMap$body$_EvaluateVisitor0(interpolation, warnForColor) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_String_and_InterpolationMap_2), $async$returnValue, $async$self = this, _0_0, result, map; var $async$_async_evaluate0$_performInterpolationWithMap$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, true, true), $async$_async_evaluate0$_performInterpolationWithMap$2$warnForColor); case 3: // returning from await. _0_0 = $async$result; result = _0_0._0; map = _0_0._1; map.toString; $async$returnValue = new A._Record_2(result, map); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_performInterpolationWithMap$2$warnForColor, $async$completer); }, _async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, sourceMap, warnForColor) { return this._performInterpolationHelper$body$_EvaluateVisitor0(interpolation, sourceMap, warnForColor); }, _performInterpolationHelper$body$_EvaluateVisitor0(interpolation, sourceMap, warnForColor) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_String_and_nullable_InterpolationMap_2), $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, t6, t7, first, _i, t8, value, result, t9, result0, targetLocations, oldInSupportsDeclaration; var $async$_async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start targetLocations = sourceMap ? A._setArrayType([], type$.JSArray_SourceLocation) : null; oldInSupportsDeclaration = $async$self._async_evaluate0$_inSupportsDeclaration; $async$self._async_evaluate0$_inSupportsDeclaration = false; t1 = interpolation.contents, t2 = t1.length, t3 = type$.Expression_2, t4 = targetLocations == null, t5 = type$.JSArray_Object, t6 = interpolation.span, t7 = type$.Object, first = true, _i = 0, t8 = ""; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } value = t1[_i]; if (!first) if (!t4) targetLocations.push(A.SourceLocation$(t8.length, null, null, null)); if (typeof value == "string") { t8 += value; // goto for update $async$goto = 4; break; } t3._as(value); $async$goto = 6; return A._asyncAwait(value.accept$1($async$self), $async$_async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor); case 6: // returning from await. result = $async$result; if (warnForColor && $.$get$namesByColor0().containsKey$1(result)) { t9 = A._setArrayType([""], t5); result0 = A.List_List$from(t9, false, t7); result0.fixed$length = Array; result0.immutable$list = Array; result0 = new A.Interpolation0(result0, t6); result0.Interpolation$20(t9, t6); t9 = $.$get$namesByColor0(); $async$self._async_evaluate0$_warn$2(string$.You_pr + A.S(t9.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whicw + A.S(t9.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression0(B.BinaryOperator_anB0, new A.StringExpression0(result0, true), value, false).toString$0(0) + "'.", value.get$span(value)); } t8 += $async$self._async_evaluate0$_serialize$3$quote(result, value, false); case 4: // for update ++_i, first = false; // goto for condition $async$goto = 3; break; case 5: // after for $async$self._async_evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration; $async$returnValue = new A._Record_2(t8.charCodeAt(0) == 0 ? t8 : t8, A.NullableExtension_andThen0(targetLocations, new A._EvaluateVisitor__performInterpolationHelper_closure2(interpolation))); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor, $async$completer); }, _async_evaluate0$_evaluateToCss$2$quote(expression, quote) { return this._evaluateToCss$body$_EvaluateVisitor0(expression, quote); }, _async_evaluate0$_evaluateToCss$1(expression) { return this._async_evaluate0$_evaluateToCss$2$quote(expression, true); }, _evaluateToCss$body$_EvaluateVisitor0(expression, quote) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.String), $async$returnValue, $async$self = this; var $async$_async_evaluate0$_evaluateToCss$2$quote = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait(expression.accept$1($async$self), $async$_async_evaluate0$_evaluateToCss$2$quote); case 3: // returning from await. $async$returnValue = $async$self._async_evaluate0$_serialize$3$quote($async$result, expression, quote); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_evaluateToCss$2$quote, $async$completer); }, _async_evaluate0$_serialize$3$quote(value, nodeWithSpan, quote) { return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure2(value, quote)); }, _async_evaluate0$_serialize$2(value, nodeWithSpan) { return this._async_evaluate0$_serialize$3$quote(value, nodeWithSpan, true); }, _async_evaluate0$_expressionNode$1(expression) { var t1; if (expression instanceof A.VariableExpression0) { t1 = this._async_evaluate0$_addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure2(this, expression)); return t1 == null ? expression : t1; } else return expression; }, _async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) { return this._withParent$body$_EvaluateVisitor0(node, callback, scopeWhen, through, $S, $T, $T); }, _async_evaluate0$_withParent$2$2(node, callback, $S, $T) { return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T); }, _async_evaluate0$_withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) { return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T); }, _withParent$body$_EvaluateVisitor0(node, callback, scopeWhen, through, $S, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, t1, result; var $async$_async_evaluate0$_withParent$2$4$scopeWhen$through = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$self._async_evaluate0$_addChild$2$through(node, through); t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent"); $async$self._async_evaluate0$__parent = node; $async$goto = 3; return A._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T), $async$_async_evaluate0$_withParent$2$4$scopeWhen$through); case 3: // returning from await. result = $async$result; $async$self._async_evaluate0$__parent = t1; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_withParent$2$4$scopeWhen$through, $async$completer); }, _async_evaluate0$_addChild$2$through(node, through) { var _0_0, grandparent, t1, $parent = this._async_evaluate0$_assertInModule$2(this._async_evaluate0$__parent, "__parent"); if (through != null) { for (; through.call$1($parent); $parent = grandparent) { _0_0 = $parent._node$_parent; if (_0_0 != null) { grandparent = _0_0; t1 = true; } else { grandparent = null; t1 = false; } if (!t1) throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null)); } if ($parent.get$hasFollowingSibling()) { grandparent = $parent._node$_parent; t1 = grandparent.children; if ($parent.equalsIgnoringChildren$1(t1.get$last(t1))) $parent = type$.ModifiableCssParentNode_2._as(t1.get$last(t1)); else { $parent = $parent.copyWithoutChildren$0(); grandparent.addChild$1($parent); } } } $parent.addChild$1(node); }, _async_evaluate0$_addChild$1(node) { return this._async_evaluate0$_addChild$2$through(node, null); }, _async_evaluate0$_withStyleRule$1$2(rule, callback, $T) { return this._withStyleRule$body$_EvaluateVisitor0(rule, callback, $T, $T); }, _withStyleRule$body$_EvaluateVisitor0(rule, callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, result, oldRule; var $async$_async_evaluate0$_withStyleRule$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldRule = $async$self._async_evaluate0$_styleRuleIgnoringAtRoot; $async$self._async_evaluate0$_styleRuleIgnoringAtRoot = rule; $async$goto = 3; return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStyleRule$1$2); case 3: // returning from await. result = $async$result; $async$self._async_evaluate0$_styleRuleIgnoringAtRoot = oldRule; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_withStyleRule$1$2, $async$completer); }, _async_evaluate0$_withMediaQueries$1$3(queries, sources, callback, $T) { return this._withMediaQueries$body$_EvaluateVisitor0(queries, sources, callback, $T, $T); }, _withMediaQueries$body$_EvaluateVisitor0(queries, sources, callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, result, oldMediaQueries, oldSources; var $async$_async_evaluate0$_withMediaQueries$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start oldMediaQueries = $async$self._async_evaluate0$_mediaQueries; oldSources = $async$self._async_evaluate0$_mediaQuerySources; $async$self._async_evaluate0$_mediaQueries = queries; $async$self._async_evaluate0$_mediaQuerySources = sources; $async$goto = 3; return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withMediaQueries$1$3); case 3: // returning from await. result = $async$result; $async$self._async_evaluate0$_mediaQueries = oldMediaQueries; $async$self._async_evaluate0$_mediaQuerySources = oldSources; $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_withMediaQueries$1$3, $async$completer); }, _async_evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback, $T) { return this._withStackFrame$body$_EvaluateVisitor0(member, nodeWithSpan, callback, $T, $T); }, _withStackFrame$body$_EvaluateVisitor0(member, nodeWithSpan, callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, oldMember, result, t1; var $async$_async_evaluate0$_withStackFrame$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self._async_evaluate0$_stack; t1.push(new A._Record_2($async$self._async_evaluate0$_member, nodeWithSpan)); oldMember = $async$self._async_evaluate0$_member; $async$self._async_evaluate0$_member = member; $async$goto = 3; return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStackFrame$1$3); case 3: // returning from await. result = $async$result; $async$self._async_evaluate0$_member = oldMember; t1.pop(); $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_withStackFrame$1$3, $async$completer); }, _async_evaluate0$_withoutSlash$2(value, nodeForSpan) { if (value instanceof A.SassNumber0 && value.asSlash != null && true) 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_wWh); return value.withoutSlash$0(); }, _async_evaluate0$_stackFrame$2(member, span) { return A.frameForSpan0(span, member, A.NullableExtension_andThen0(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure2(this))); }, _async_evaluate0$_stackTrace$1(span) { var t2, t3, _i, t4, nodeWithSpan, _this = this, t1 = A._setArrayType([], type$.JSArray_Frame); for (t2 = _this._async_evaluate0$_stack, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) { t4 = t2[_i]; nodeWithSpan = t4._1; t1.push(_this._async_evaluate0$_stackFrame$2(t4._0, nodeWithSpan.get$span(nodeWithSpan))); } if (span != null) t1.push(_this._async_evaluate0$_stackFrame$2(_this._async_evaluate0$_member, span)); return A.Trace$(new A.ReversedListIterable(t1, type$.ReversedListIterable_Frame), null); }, _async_evaluate0$_stackTrace$0() { return this._async_evaluate0$_stackTrace$1(null); }, _async_evaluate0$_warn$3(message, span, deprecation) { var t1, trace, _this = this; if (_this._async_evaluate0$_quietDeps) if (!_this._async_evaluate0$_inDependency) { t1 = _this._async_evaluate0$_currentCallable; t1 = t1 == null ? null : t1.inDependency; t1 = t1 === true; } else t1 = true; else t1 = false; if (t1) return; if (!_this._async_evaluate0$_warningsEmitted.add$1(0, new A._Record_2(message, span))) return; trace = _this._async_evaluate0$_stackTrace$1(span); t1 = _this._async_evaluate0$_logger; if (deprecation == null) t1.warn$3$span$trace(0, message, span, trace); else A.WarnForDeprecation_warnForDeprecation0(t1, deprecation, message, span, trace); }, _async_evaluate0$_warn$2(message, span) { return this._async_evaluate0$_warn$3(message, span, null); }, _async_evaluate0$_exception$2(message, span) { var t1, t2; if (span == null) { t1 = B.JSArray_methods.get$last(this._async_evaluate0$_stack)._1; t1 = t1.get$span(t1); } else t1 = span; t2 = this._async_evaluate0$_stackTrace$1(span); return new A.SassRuntimeException0(t2, B.Set_empty, message, t1); }, _async_evaluate0$_exception$1(message) { return this._async_evaluate0$_exception$2(message, null); }, _async_evaluate0$_multiSpanException$3(message, primaryLabel, secondaryLabels) { var t1 = B.JSArray_methods.get$last(this._async_evaluate0$_stack)._1; return A.MultiSpanSassRuntimeException$0(message, t1.get$span(t1), primaryLabel, secondaryLabels, this._async_evaluate0$_stackTrace$0(), null); }, _async_evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback) { var error, stackTrace, t1, exception, addStackFrame = true; try { t1 = callback.call$0(); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassScriptException0) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan)); A.throwWithTrace0(t1.withTrace$1(this._async_evaluate0$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace); } else throw exception; } }, _async_evaluate0$_addExceptionSpan$2(nodeWithSpan, callback) { return this._async_evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic); }, _async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame, $T) { return this._addExceptionSpanAsync$body$_EvaluateVisitor0(nodeWithSpan, callback, addStackFrame, $T, $T); }, _async_evaluate0$_addExceptionSpanAsync$1$2(nodeWithSpan, callback, $T) { return this._async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame(nodeWithSpan, callback, true, $T); }, _addExceptionSpanAsync$body$_EvaluateVisitor0(nodeWithSpan, callback, addStackFrame, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, $async$exception; var $async$_async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start $async$handler = 4; $async$goto = 7; return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame); case 7: // returning from await. t1 = $async$result; $async$returnValue = t1; // goto return $async$goto = 1; break; $async$handler = 2; // goto after finally $async$goto = 6; break; case 4: // catch $async$handler = 3; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (t1 instanceof A.SassScriptException0) { error = t1; stackTrace = A.getTraceFromException($async$exception); t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan)); A.throwWithTrace0(t1.withTrace$1($async$self._async_evaluate0$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace); } else throw $async$exception; // goto after finally $async$goto = 6; break; case 3: // uncaught // goto rethrow $async$goto = 2; break; case 6: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame, $async$completer); }, _async_evaluate0$_addExceptionTrace$1$1(callback, $T) { return this._addExceptionTrace$body$_EvaluateVisitor0(callback, $T, $T); }, _addExceptionTrace$body$_EvaluateVisitor0(callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, $async$exception; var $async$_async_evaluate0$_addExceptionTrace$1$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start $async$handler = 4; $async$goto = 7; return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addExceptionTrace$1$1); case 7: // returning from await. t1 = $async$result; $async$returnValue = t1; // goto return $async$goto = 1; break; $async$handler = 2; // goto after finally $async$goto = 6; break; case 4: // catch $async$handler = 3; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (type$.SassRuntimeException_2._is(t1)) throw $async$exception; else if (t1 instanceof A.SassException0) { error = t1; stackTrace = A.getTraceFromException($async$exception); t1 = error; t2 = J.getInterceptor$z(t1); A.throwWithTrace0(error.withTrace$1($async$self._async_evaluate0$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t2, t1))), error, stackTrace); } else throw $async$exception; // goto after finally $async$goto = 6; break; case 3: // uncaught // goto rethrow $async$goto = 2; break; case 6: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_addExceptionTrace$1$1, $async$completer); }, _async_evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback, $T) { return this._addErrorSpan$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $T); }, _addErrorSpan$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, t3, $async$exception; var $async$_async_evaluate0$_addErrorSpan$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start $async$handler = 4; $async$goto = 7; return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addErrorSpan$1$2); case 7: // returning from await. t1 = $async$result; $async$returnValue = t1; // goto return $async$goto = 1; break; $async$handler = 2; // goto after finally $async$goto = 6; break; case 4: // catch $async$handler = 3; $async$exception = $async$currentError; t1 = A.unwrapException($async$exception); if (type$.SassRuntimeException_2._is(t1)) { error = t1; stackTrace = A.getTraceFromException($async$exception); if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error")) throw $async$exception; t1 = error._span_exception$_message; t2 = nodeWithSpan.get$span(nodeWithSpan); t3 = $async$self._async_evaluate0$_stackTrace$0(); A.throwWithTrace0(new A.SassRuntimeException0(t3, B.Set_empty, t1, t2), error, stackTrace); } else throw $async$exception; // goto after finally $async$goto = 6; break; case 3: // uncaught // goto rethrow $async$goto = 2; break; case 6: // after finally case 1: // return return A._asyncReturn($async$returnValue, $async$completer); case 2: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$_async_evaluate0$_addErrorSpan$1$2, $async$completer); } }; A._EvaluateVisitor_closure38.prototype = { call$1($arguments) { var module, t2, t1 = J.getInterceptor$asx($arguments), variable = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this._async_evaluate0$_environment; t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-"); return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string0$_text) ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A._EvaluateVisitor_closure39.prototype = { call$1($arguments) { var variable = J.$index$asx($arguments, 0).assertString$1("name"), t1 = this.$this._async_evaluate0$_environment; return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-")) != null ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A._EvaluateVisitor_closure40.prototype = { call$1($arguments) { var module, t2, t3, t4, t1 = J.getInterceptor$asx($arguments), variable = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this; t2 = t1._async_evaluate0$_environment; t3 = variable._string0$_text; t4 = A.stringReplaceAllUnchecked(t3, "_", "-"); 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; }, $signature: 21 }; A._EvaluateVisitor_closure41.prototype = { call$1($arguments) { var module, t2, t1 = J.getInterceptor$asx($arguments), variable = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this._async_evaluate0$_environment; t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-"); return t1.getMixin$2$namespace(t2, module == null ? null : module._string0$_text) != null ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A._EvaluateVisitor_closure42.prototype = { call$1($arguments) { var t1 = this.$this._async_evaluate0$_environment; if (!t1._async_environment0$_inMixin) throw A.wrapException(A.SassScriptException$0(string$.conten, null)); return t1._async_environment0$_content != null ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A._EvaluateVisitor_closure43.prototype = { call$1($arguments) { var t2, t3, t4, $name, value, t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text, module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1); if (module == null) throw A.wrapException('There is no module with namespace "' + t1 + '".'); t1 = type$.Value_2; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs0(module.get$variables(), type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString0($name, true), value); } return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 38 }; A._EvaluateVisitor_closure44.prototype = { call$1($arguments) { var t2, t3, t4, $name, value, t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text, module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1); if (module == null) throw A.wrapException('There is no module with namespace "' + t1 + '".'); t1 = type$.Value_2; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs0(module.get$functions(module), type$.String, type$.AsyncCallable_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString0($name, true), new A.SassFunction0(value)); } return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 38 }; A._EvaluateVisitor_closure45.prototype = { call$1($arguments) { var t2, t3, t4, $name, value, t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text, module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1); if (module == null) throw A.wrapException('There is no module with namespace "' + t1 + '".'); t1 = type$.Value_2; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs0(module.get$mixins(), type$.String, type$.AsyncCallable_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString0($name, true), new A.SassMixin0(value)); } return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 38 }; A._EvaluateVisitor_closure46.prototype = { call$1($arguments) { var module, t2, callable, t1 = J.getInterceptor$asx($arguments), $name = t1.$index($arguments, 0).assertString$1("name"), css = t1.$index($arguments, 1).get$isTruthy(); t1 = t1.$index($arguments, 2).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); if (css) { if (module != null) throw A.wrapException(string$.x24css_a); return new A.SassFunction0(new A.PlainCssCallable0($name._string0$_text)); } t1 = this.$this; t2 = t1._async_evaluate0$_callableNode; t2.toString; callable = t1._async_evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure14(t1, $name, module)); if (callable == null) throw A.wrapException("Function not found: " + $name.toString$0(0)); return new A.SassFunction0(callable); }, $signature: 182 }; A._EvaluateVisitor__closure14.prototype = { call$0() { var local, normalizedName = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"), t1 = this.module, namespace = t1 == null ? null : t1._string0$_text; t1 = this.$this; local = t1._async_evaluate0$_environment.getFunction$2$namespace(normalizedName, namespace); if (local != null || namespace != null) return local; return t1._async_evaluate0$_builtInFunctions.$index(0, normalizedName); }, $signature: 103 }; A._EvaluateVisitor_closure47.prototype = { call$1($arguments) { var module, t2, callable, t1 = J.getInterceptor$asx($arguments), $name = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this; t2 = t1._async_evaluate0$_callableNode; t2.toString; callable = t1._async_evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure13(t1, $name, module)); if (callable == null) throw A.wrapException("Mixin not found: " + $name.toString$0(0)); return new A.SassMixin0(callable); }, $signature: 184 }; A._EvaluateVisitor__closure13.prototype = { call$0() { var t1 = this.$this._async_evaluate0$_environment, t2 = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"), t3 = this.module; return t1.getMixin$2$namespace(t2, t3 == null ? null : t3._string0$_text); }, $signature: 103 }; A._EvaluateVisitor_closure48.prototype = { call$1($arguments) { return this.$call$body$_EvaluateVisitor_closure4($arguments); }, $call$body$_EvaluateVisitor_closure4($arguments) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, $name, value, invocation, callableNode, t1, $function, args; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = J.getInterceptor$asx($arguments); $function = t1.$index($arguments, 0); args = type$.SassArgumentList_2._as(t1.$index($arguments, 1)); t1 = $async$self.$this; t2 = t1._async_evaluate0$_callableNode; t2.toString; t3 = A._setArrayType([], type$.JSArray_Expression_2); t4 = type$.String; t5 = type$.Expression_2; t6 = t2.get$span(t2); t7 = t2.get$span(t2); args._argument_list$_wereKeywordsAccessed = true; t8 = args._argument_list$_keywords; if (t8.get$isEmpty(t8)) t2 = null; else { t9 = type$.Value_2; t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9); for (args._argument_list$_wereKeywordsAccessed = true, t8 = A.MapExtensions_get_pairs0(t8, t4, t9), t8 = t8.get$iterator(t8); t8.moveNext$0();) { t11 = t8.get$current(t8); $name = t11._0; value = t11._1; value = value; t10.$indexSet(0, new A.SassString0($name, false), value); } t2 = new A.ValueExpression0(new A.SassMap0(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2)); } 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); $async$goto = $function instanceof A.SassString0 ? 3 : 4; break; case 3: // then t2 = $function.toString$0(0); A.EvaluationContext_current0().warn$2(0, string$.Passina + t2 + "))", B.Deprecation_4iQ); callableNode = t1._async_evaluate0$_callableNode; $async$goto = 5; return A._asyncAwait(t1.visitFunctionExpression$1(new A.FunctionExpression0(null, $function._string0$_text, invocation, callableNode.get$span(callableNode))), $async$call$1); case 5: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 4: // join t2 = $function.assertFunction$1("function"); t3 = t1._async_evaluate0$_callableNode; t3.toString; $async$goto = 6; return A._asyncAwait(t1._async_evaluate0$_runFunctionCallable$3(invocation, t2.callable, t3), $async$call$1); case 6: // returning from await. t3 = $async$result; $async$returnValue = t3; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 99 }; A._EvaluateVisitor_closure49.prototype = { call$1($arguments) { return this.$call$body$_EvaluateVisitor_closure3($arguments); }, $call$body$_EvaluateVisitor_closure3($arguments) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, withMap, t2, values, configuration, t3, t1, url; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = J.getInterceptor$asx($arguments); url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string0$_text); t1 = t1.$index($arguments, 1).get$realNull(); withMap = t1 == null ? null : t1.assertMap$1("with")._map0$_contents; t1 = $async$self.$this; t2 = t1._async_evaluate0$_callableNode; t2.toString; if (withMap != null) { values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2); withMap.forEach$1(0, new A._EvaluateVisitor__closure11(values, t2.get$span(t2), t2)); configuration = new A.ExplicitConfiguration0(t2, values, null); } else configuration = B.Configuration_Map_empty_null0; t3 = t2.get$span(t2); $async$goto = 2; 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); case 2: // returning from await. t1._async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true); // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 185 }; A._EvaluateVisitor__closure11.prototype = { call$2(variable, value) { var t1 = variable.assertString$1("with key"), $name = A.stringReplaceAllUnchecked(t1._string0$_text, "_", "-"); t1 = this.values; if (t1.containsKey$1($name)) throw A.wrapException("The variable $" + $name + " was configured twice."); t1.$indexSet(0, $name, new A.ConfiguredValue0(value, this.span, this.callableNode)); }, $signature: 104 }; A._EvaluateVisitor__closure12.prototype = { call$2(module, _) { var t1 = this.$this; return t1._async_evaluate0$_combineCss$2$clone(module, true).accept$1(t1); }, $signature: 341 }; A._EvaluateVisitor_closure50.prototype = { call$1($arguments) { return this.$call$body$_EvaluateVisitor_closure2($arguments); }, $call$body$_EvaluateVisitor_closure2($arguments) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, callableNode, t2, t3, t4, t5, t1, mixin, args; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = J.getInterceptor$asx($arguments); mixin = t1.$index($arguments, 0); args = type$.SassArgumentList_2._as(t1.$index($arguments, 1)); t1 = $async$self.$this; callableNode = t1._async_evaluate0$_callableNode; t2 = callableNode.get$span(callableNode); t3 = callableNode.get$span(callableNode); t4 = type$.Expression_2; t5 = A.List_List$unmodifiable(B.List_empty20, t4); t4 = A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t4); $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 185 }; A._EvaluateVisitor_run_closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2), $async$returnValue, $async$self = this, module, t2, url, t1, _0_0; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start url = null; t1 = $async$self.node; _0_0 = t1.span.file.url; if (_0_0 != null) { url = _0_0; t2 = true; } else t2 = false; if (t2) { t2 = $async$self.$this; t2._async_evaluate0$_activeModules.$indexSet(0, url, null); if (!(t2._async_evaluate0$_nodeImporter != null && J.toString$0$(url) === "stdin")) t2._async_evaluate0$_loadedUrls.add$1(0, url); } t2 = $async$self.$this; $async$goto = 3; 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); case 3: // returning from await. module = $async$result; $async$returnValue = new A._Record_2_loadedUrls_stylesheet(t2._async_evaluate0$_loadedUrls, t2._async_evaluate0$_combineCss$1(module)); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 342 }; A._EvaluateVisitor_run__closure2.prototype = { call$0() { return this.$this._async_evaluate0$_execute$2(this.importer, this.node); }, $signature: 343 }; A._EvaluateVisitor__loadModule_closure5.prototype = { call$0() { return this.callback.call$2(this._box_1.builtInModule, false); }, $signature: 0 }; A._EvaluateVisitor__loadModule_closure6.prototype = { call$0() { return this.$call$body$_EvaluateVisitor__loadModule_closure0(); }, $call$body$_EvaluateVisitor__loadModule_closure0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, canonicalUrl, oldInDependency, isDependency, t4, message, t1, stylesheet, importer, t2, t3, _1_0, $async$temp1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start t1 = {}; stylesheet = null; importer = null; t2 = $async$self.$this; t3 = $async$self.nodeWithSpan; $async$goto = 2; 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); case 2: // returning from await. _1_0 = $async$result; stylesheet = _1_0._0; importer = _1_0._1; isDependency = _1_0._2; isDependency = isDependency; canonicalUrl = stylesheet.span.file.url; if (canonicalUrl != null) { t4 = t2._async_evaluate0$_activeModules; if (t4.containsKey$1(canonicalUrl)) { message = $async$self.namesInErrors ? "Module loop: " + $.$get$context().prettyUri$1(canonicalUrl) + " is already being loaded." : string$.Modulel; t1 = A.NullableExtension_andThen0(t4.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure5(t2, message)); throw A.wrapException(t1 == null ? t2._async_evaluate0$_exception$1(message) : t1); } else t4.$indexSet(0, canonicalUrl, t3); } t4 = t2._async_evaluate0$_modules.containsKey$1(canonicalUrl); oldInDependency = t2._async_evaluate0$_inDependency; t2._async_evaluate0$_inDependency = isDependency; t1.module = null; $async$handler = 3; $async$temp1 = t1; $async$goto = 6; return A._asyncAwait(t2._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t3), $async$call$0); case 6: // returning from await. $async$temp1.module = $async$result; $async$next.push(5); // goto finally $async$goto = 4; break; case 3: // uncaught $async$next = [1]; case 4: // finally $async$handler = 1; t2._async_evaluate0$_activeModules.remove$1(0, canonicalUrl); t2._async_evaluate0$_inDependency = oldInDependency; // goto the next finally handler $async$goto = $async$next.pop(); break; case 5: // after finally $async$goto = 7; 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); case 7: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); case 1: // rethrow return A._asyncRethrow($async$currentError, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor__loadModule__closure5.prototype = { call$1(previousLoad) { 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)); }, $signature: 105 }; A._EvaluateVisitor__loadModule__closure6.prototype = { call$0() { return this.callback.call$2(this._box_0.module, this.firstLoad); }, $signature: 0 }; A._EvaluateVisitor__execute_closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t3, t4, t5, t6, t1, oldImporter, oldStylesheet, oldRoot, oldPreModuleComments, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtensionStore, t2, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldInKeyframes, oldConfiguration; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; oldImporter = t1._async_evaluate0$_importer; oldStylesheet = t1._async_evaluate0$__stylesheet; oldRoot = t1._async_evaluate0$__root; oldPreModuleComments = t1._async_evaluate0$_preModuleComments; oldParent = t1._async_evaluate0$__parent; oldEndOfImports = t1._async_evaluate0$__endOfImports; oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports; oldExtensionStore = t1._async_evaluate0$__extensionStore; t2 = t1._async_evaluate0$_atRootExcludingStyleRule; oldStyleRule = t2 ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot; oldMediaQueries = t1._async_evaluate0$_mediaQueries; oldDeclarationName = t1._async_evaluate0$_declarationName; oldInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule; oldInKeyframes = t1._async_evaluate0$_inKeyframes; oldConfiguration = t1._async_evaluate0$_configuration; t1._async_evaluate0$_importer = $async$self.importer; t3 = t1._async_evaluate0$__stylesheet = $async$self.stylesheet; t4 = t3.span; t5 = t1._async_evaluate0$__parent = t1._async_evaluate0$__root = A.ModifiableCssStylesheet$0(t4); t1._async_evaluate0$__endOfImports = 0; t1._async_evaluate0$_outOfOrderImports = null; t1._async_evaluate0$__extensionStore = $async$self.extensionStore; t1._async_evaluate0$_declarationName = t1._async_evaluate0$_mediaQueries = t1._async_evaluate0$_styleRuleIgnoringAtRoot = null; t1._async_evaluate0$_inKeyframes = t1._async_evaluate0$_atRootExcludingStyleRule = t1._async_evaluate0$_inUnknownAtRule = false; t6 = $async$self.configuration; if (t6 != null) t1._async_evaluate0$_configuration = t6; $async$goto = 2; return A._asyncAwait(t1.visitStylesheet$1(t3), $async$call$0); case 2: // returning from await. t3 = t1._async_evaluate0$_outOfOrderImports == null ? t5 : new A.CssStylesheet0(new A.UnmodifiableListView(t1._async_evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode_2), t4); $async$self.css._value = t3; $async$self.preModuleComments._value = t1._async_evaluate0$_preModuleComments; t1._async_evaluate0$_importer = oldImporter; t1._async_evaluate0$__stylesheet = oldStylesheet; t1._async_evaluate0$__root = oldRoot; t1._async_evaluate0$_preModuleComments = oldPreModuleComments; t1._async_evaluate0$__parent = oldParent; t1._async_evaluate0$__endOfImports = oldEndOfImports; t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports; t1._async_evaluate0$__extensionStore = oldExtensionStore; t1._async_evaluate0$_styleRuleIgnoringAtRoot = oldStyleRule; t1._async_evaluate0$_mediaQueries = oldMediaQueries; t1._async_evaluate0$_declarationName = oldDeclarationName; t1._async_evaluate0$_inUnknownAtRule = oldInUnknownAtRule; t1._async_evaluate0$_atRootExcludingStyleRule = t2; t1._async_evaluate0$_inKeyframes = oldInKeyframes; t1._async_evaluate0$_configuration = oldConfiguration; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor__combineCss_closure5.prototype = { call$1(module) { return module.get$transitivelyContainsCss(); }, $signature: 123 }; A._EvaluateVisitor__combineCss_closure6.prototype = { call$1(target) { return !this.selectors.contains$1(0, target); }, $signature: 15 }; A._EvaluateVisitor__combineCss_visitModule2.prototype = { call$1(module) { var t1, t2, t3, t4, _i, upstream, _1_0, comments, t5, statements, index, _this = this; if (!_this.seen.add$1(0, module)) return; if (_this.clone) module = module.cloneCss$0(); 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) { upstream = t1[_i]; if (upstream.get$transitivelyContainsCss()) { _1_0 = module.get$preModuleComments().$index(0, upstream); if (_1_0 != null) { comments = _1_0; t5 = true; } else { comments = null; t5 = false; } if (t5) B.JSArray_methods.addAll$1(t3.length === 0 ? t4 : t3, comments); _this.call$1(upstream); } } _this.sorted.addFirst$1(module); t1 = module.get$css(module); statements = t1.get$children(t1); index = _this.$this._async_evaluate0$_indexAfterImports$1(statements); t1 = J.getInterceptor$ax(statements); B.JSArray_methods.addAll$1(t4, t1.getRange$2(statements, 0, index)); B.JSArray_methods.addAll$1(t3, t1.getRange$2(statements, index, t1.get$length(statements))); }, $signature: 345 }; A._EvaluateVisitor__extendModules_closure5.prototype = { call$1(target) { return !this.originalSelectors.contains$1(0, target); }, $signature: 15 }; A._EvaluateVisitor__extendModules_closure6.prototype = { call$0() { return A._setArrayType([], type$.JSArray_ExtensionStore_2); }, $signature: 188 }; A._EvaluateVisitor_visitAtRootRule_closure5.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitAtRootRule_closure6.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 30 }; A._EvaluateVisitor__scopeForAtRoot_closure17.prototype = { call$1(callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__parent, "__parent"); t1._async_evaluate0$__parent = $async$self.newParent; $async$goto = 2; return A._asyncAwait(t1._async_evaluate0$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1); case 2: // returning from await. t1._async_evaluate0$__parent = t2; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 41 }; A._EvaluateVisitor__scopeForAtRoot_closure18.prototype = { call$1(callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, oldAtRootExcludingStyleRule; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; oldAtRootExcludingStyleRule = t1._async_evaluate0$_atRootExcludingStyleRule; t1._async_evaluate0$_atRootExcludingStyleRule = true; $async$goto = 2; return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1); case 2: // returning from await. t1._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 41 }; A._EvaluateVisitor__scopeForAtRoot_closure19.prototype = { call$1(callback) { return this.$this._async_evaluate0$_withMediaQueries$1$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure2(this.innerScope, callback), type$.Null); }, $signature: 41 }; A._EvaluateVisitor__scopeForAtRoot__closure2.prototype = { call$0() { return this.innerScope.call$1(this.callback); }, $signature: 4 }; A._EvaluateVisitor__scopeForAtRoot_closure20.prototype = { call$1(callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, wasInKeyframes; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; wasInKeyframes = t1._async_evaluate0$_inKeyframes; t1._async_evaluate0$_inKeyframes = false; $async$goto = 2; return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1); case 2: // returning from await. t1._async_evaluate0$_inKeyframes = wasInKeyframes; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 41 }; A._EvaluateVisitor__scopeForAtRoot_closure21.prototype = { call$1($parent) { return $parent instanceof A.ModifiableCssAtRule0; }, $signature: 189 }; A._EvaluateVisitor__scopeForAtRoot_closure22.prototype = { call$1(callback) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, wasInUnknownAtRule; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; wasInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule; t1._async_evaluate0$_inUnknownAtRule = false; $async$goto = 2; return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1); case 2: // returning from await. t1._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 41 }; A._EvaluateVisitor_visitContentRule_closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$returnValue, $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } $async$goto = 6; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 6: // returning from await. case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitDeclaration_closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self._box_0.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitEachRule_closure8.prototype = { call$1(value) { var t1 = this.$this, t2 = this.nodeWithSpan; return t1._async_evaluate0$_environment.setLocalVariable$3(this._box_0.variable, t1._async_evaluate0$_withoutSlash$2(value, t2), t2); }, $signature: 57 }; A._EvaluateVisitor_visitEachRule_closure9.prototype = { call$1(value) { return this.$this._async_evaluate0$_setMultipleVariables$3(this._box_0.variables, value, this.nodeWithSpan); }, $signature: 57 }; A._EvaluateVisitor_visitEachRule_closure10.prototype = { call$0() { var _this = this, t1 = _this.$this; return t1._async_evaluate0$_handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure2(t1, _this.setVariables, _this.node)); }, $signature: 76 }; A._EvaluateVisitor_visitEachRule__closure2.prototype = { call$1(element) { var t1; this.setVariables.call$1(element); t1 = this.$this; return t1._async_evaluate0$_handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure2(t1)); }, $signature: 350 }; A._EvaluateVisitor_visitEachRule___closure2.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 108 }; A._EvaluateVisitor_visitAtRule_closure8.prototype = { call$1(value) { return this.$this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(value, true, true); }, $signature: 352 }; A._EvaluateVisitor_visitAtRule_closure9.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t2, t3, _i, t1, styleRule; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; styleRule = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot; $async$goto = styleRule == null || t1._async_evaluate0$_inKeyframes || J.$eq$($async$self.name.value, "font-face") ? 2 : 4; break; case 2: // then t2 = $async$self.children, t3 = t2.length, _i = 0; case 5: // for condition if (!(_i < t3)) { // goto after for $async$goto = 7; break; } $async$goto = 8; return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0); case 8: // returning from await. case 6: // for update ++_i; // goto for condition $async$goto = 5; break; case 7: // after for // goto join $async$goto = 3; break; case 4: // else $async$goto = 9; return A._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure2(t1, $async$self.children), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0); case 9: // returning from await. case 3: // join // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitAtRule__closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitAtRule_closure10.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor_visitForRule_closure14.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber_2), $async$returnValue, $async$self = this; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0); case 3: // returning from await. $async$returnValue = $async$result.assertNumber$0(); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 194 }; A._EvaluateVisitor_visitForRule_closure15.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber_2), $async$returnValue, $async$self = this; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0); case 3: // returning from await. $async$returnValue = $async$result.assertNumber$0(); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 194 }; A._EvaluateVisitor_visitForRule_closure16.prototype = { call$0() { return this.fromNumber.assertInt$0(); }, $signature: 3 }; A._EvaluateVisitor_visitForRule_closure17.prototype = { call$0() { var t1 = this.fromNumber; return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0(); }, $signature: 3 }; A._EvaluateVisitor_visitForRule_closure18.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, i, t3, t4, t5, t6, t7, t8, _0_0, result, t1, t2, nodeWithSpan; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = $async$self.node; nodeWithSpan = t1._async_evaluate0$_expressionNode$1(t2.from); i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.variable, t6 = $async$self.fromNumber, t2 = t2.children; case 3: // for condition if (!(i !== t3.to)) { // goto after for $async$goto = 5; break; } t7 = t1._async_evaluate0$_environment; t8 = t6.get$numeratorUnits(t6); t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits0(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan); $async$goto = 6; return A._asyncAwait(t1._async_evaluate0$_handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure2(t1)), $async$call$0); case 6: // returning from await. _0_0 = $async$result; if (_0_0 != null) { result = _0_0; t7 = true; } else { result = null; t7 = false; } if (t7) { $async$returnValue = result; // goto return $async$goto = 1; break; } case 4: // for update i += t4; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 76 }; A._EvaluateVisitor_visitForRule__closure2.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 108 }; A._EvaluateVisitor_visitForwardRule_closure5.prototype = { call$2(module, firstLoad) { if (firstLoad) this.$this._async_evaluate0$_registerCommentsForModule$1(module); this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node); }, $signature: 121 }; A._EvaluateVisitor_visitForwardRule_closure6.prototype = { call$2(module, firstLoad) { if (firstLoad) this.$this._async_evaluate0$_registerCommentsForModule$1(module); this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node); }, $signature: 121 }; A._EvaluateVisitor__registerCommentsForModule_closure2.prototype = { call$0() { return A._setArrayType([], type$.JSArray_CssComment_2); }, $signature: 245 }; A._EvaluateVisitor_visitIfRule_closure2.prototype = { call$1(clause) { var t1 = this.$this; return t1._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule__closure2(t1, clause), true, clause.hasDeclarations, type$.nullable_Value_2); }, $signature: 357 }; A._EvaluateVisitor_visitIfRule__closure2.prototype = { call$0() { var t1 = this.$this; return t1._async_evaluate0$_handleReturn$2(this.clause.children, new A._EvaluateVisitor_visitIfRule___closure2(t1)); }, $signature: 76 }; A._EvaluateVisitor_visitIfRule___closure2.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 108 }; A._EvaluateVisitor__visitDynamicImport_closure2.prototype = { call$0() { return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure0(); }, $call$body$_EvaluateVisitor__visitDynamicImport_closure0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$returnValue, $async$self = this, t1, t2, _0_0, stylesheet, t3, isDependency, t4, url, t5, t6, oldImporter, oldInDependency, loadsUserDefinedModules, children, t7, t8, t9, t10, environment, module, visitor, _box_0; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start _box_0 = {}; _box_0.isDependency = _box_0.importer = _box_0.stylesheet = null; t1 = $async$self.$this; t2 = $async$self.$import; $async$goto = 3; return A._asyncAwait(t1._async_evaluate0$_loadStylesheet$3$forImport(t2.urlString, t2.span, true), $async$call$0); case 3: // returning from await. _0_0 = $async$result; stylesheet = _box_0.stylesheet = _0_0._0; t3 = _box_0.importer = _0_0._1; isDependency = _0_0._2; _box_0.isDependency = isDependency; t4 = isDependency; url = stylesheet.span.file.url; if (url != null) { t5 = t1._async_evaluate0$_activeModules; if (t5.containsKey$1(url)) { t2 = A.NullableExtension_andThen0(t5.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure11(t1)); throw A.wrapException(t2 == null ? t1._async_evaluate0$_exception$1("This file is already being loaded.") : t2); } t5.$indexSet(0, url, t2); } t2 = stylesheet._stylesheet1$_uses; t5 = type$.UnmodifiableListView_UseRule_2; t6 = new A.UnmodifiableListView(t2, t5); if (t6.get$length(t6) === 0) { t6 = new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2); t6 = t6.get$length(t6) === 0; } else t6 = false; $async$goto = t6 ? 4 : 5; break; case 4: // then oldImporter = t1._async_evaluate0$_importer; t2 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__stylesheet, "_stylesheet"); oldInDependency = t1._async_evaluate0$_inDependency; t1._async_evaluate0$_importer = t3; t1._async_evaluate0$__stylesheet = stylesheet; t1._async_evaluate0$_inDependency = t4; $async$goto = 6; return A._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0); case 6: // returning from await. t1._async_evaluate0$_importer = oldImporter; t1._async_evaluate0$__stylesheet = t2; t1._async_evaluate0$_inDependency = oldInDependency; t1._async_evaluate0$_activeModules.remove$1(0, url); // goto return $async$goto = 1; break; case 5: // join t2 = new A.UnmodifiableListView(t2, t5); if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure12())) { t2 = new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2); loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure13()); } else loadsUserDefinedModules = true; children = A._Cell$(); t2 = t1._async_evaluate0$_environment; t3 = type$.String; t4 = type$.Module_AsyncCallable_2; t5 = type$.AstNode_2; t6 = A._setArrayType([], type$.JSArray_Module_AsyncCallable_2); t7 = t2._async_environment0$_variables; t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7)); t8 = t2._async_environment0$_variableNodes; t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8)); t9 = t2._async_environment0$_functions; t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9)); t10 = t2._async_environment0$_mixins; t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10)); 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); $async$goto = 7; 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); case 7: // returning from await. module = environment.toDummyModule$0(); t1._async_evaluate0$_environment.importForwards$1(module); $async$goto = loadsUserDefinedModules ? 8 : 9; break; case 8: // then $async$goto = module.transitivelyContainsCss ? 10 : 11; break; case 10: // then $async$goto = 12; return A._asyncAwait(t1._async_evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0); case 12: // returning from await. case 11: // join visitor = new A._ImportedCssVisitor2(t1); for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();) t2.get$current(t2).accept$1(visitor); case 9: // join t1._async_evaluate0$_activeModules.remove$1(0, url); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 30 }; A._EvaluateVisitor__visitDynamicImport__closure11.prototype = { call$1(previousLoad) { 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)); }, $signature: 105 }; A._EvaluateVisitor__visitDynamicImport__closure12.prototype = { call$1(rule) { return rule.url.get$scheme() !== "sass"; }, $signature: 197 }; A._EvaluateVisitor__visitDynamicImport__closure13.prototype = { call$1(rule) { return rule.url.get$scheme() !== "sass"; }, $signature: 198 }; A._EvaluateVisitor__visitDynamicImport__closure14.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t7, t8, t1, oldImporter, t2, t3, t4, t5, oldOutOfOrderImports, oldConfiguration, oldInDependency, t6; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; oldImporter = t1._async_evaluate0$_importer; t2 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__stylesheet, "_stylesheet"); t3 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__root, "_root"); t4 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__parent, "__parent"); t5 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__endOfImports, "_endOfImports"); oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports; oldConfiguration = t1._async_evaluate0$_configuration; oldInDependency = t1._async_evaluate0$_inDependency; t6 = $async$self._box_0; t1._async_evaluate0$_importer = t6.importer; t7 = t6.stylesheet; t1._async_evaluate0$__stylesheet = t7; t8 = $async$self.loadsUserDefinedModules; if (t8) { t7 = A.ModifiableCssStylesheet$0(t7.span); t1._async_evaluate0$__root = t7; t1._async_evaluate0$__parent = t1._async_evaluate0$_assertInModule$2(t7, "_root"); t1._async_evaluate0$__endOfImports = 0; t1._async_evaluate0$_outOfOrderImports = null; } t1._async_evaluate0$_inDependency = t6.isDependency; t7 = new A.UnmodifiableListView(t6.stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2); if (!t7.get$isEmpty(t7)) t1._async_evaluate0$_configuration = $async$self.environment.toImplicitConfiguration$0(); $async$goto = 2; return A._asyncAwait(t1.visitStylesheet$1(t6.stylesheet), $async$call$0); case 2: // returning from await. t6 = t8 ? t1._async_evaluate0$_addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode_2); $async$self.children._value = t6; t1._async_evaluate0$_importer = oldImporter; t1._async_evaluate0$__stylesheet = t2; if (t8) { t1._async_evaluate0$__root = t3; t1._async_evaluate0$__parent = t4; t1._async_evaluate0$__endOfImports = t5; t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports; } t1._async_evaluate0$_configuration = oldConfiguration; t1._async_evaluate0$_inDependency = oldInDependency; // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor__applyMixin_closure9.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 30 }; A._EvaluateVisitor__applyMixin__closure6.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 2; return A._asyncAwait($async$self.$this._async_evaluate0$_runBuiltInCallable$3($async$self.$arguments, $async$self.mixin, $async$self.nodeWithSpanWithoutContent), $async$call$0); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 30 }; A._EvaluateVisitor__applyMixin_closure8.prototype = { call$0() { var t1 = this._1_0; if (t1 == null) t1 = type$.AsyncCallable_2._as(t1); return type$.UserDefinedCallable_AsyncEnvironment_2._as(t1).declaration; }, $signature: 130 }; A._EvaluateVisitor__applyMixin_closure10.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor__applyMixin__closure5.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; $async$goto = 2; return A._asyncAwait(t1._async_evaluate0$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin___closure2(t1, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 30 }; A._EvaluateVisitor__applyMixin___closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), $async$self = this, t1, t2, t3, t4, t5, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpanWithoutContent, t5 = type$.nullable_Value_2, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t3._async_evaluate0$_addErrorSpan$1$2(t4, new A._EvaluateVisitor__applyMixin____closure2(t3, t1[_i]), t5), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 30 }; A._EvaluateVisitor__applyMixin____closure2.prototype = { call$0() { return this.statement.accept$1(this.$this); }, $signature: 76 }; A._EvaluateVisitor_visitIncludeRule_closure8.prototype = { call$0() { var t1 = this.node; return this.$this._async_evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace); }, $signature: 103 }; A._EvaluateVisitor_visitIncludeRule_closure9.prototype = { call$1($content) { var t1 = this.$this; return new A.UserDefinedCallable0($content, t1._async_evaluate0$_environment.closure$0(), t1._async_evaluate0$_inDependency, type$.UserDefinedCallable_AsyncEnvironment_2); }, $signature: 361 }; A._EvaluateVisitor_visitIncludeRule_closure10.prototype = { call$0() { return this.node.get$spanWithoutContent(); }, $signature: 33 }; A._EvaluateVisitor_visitMediaRule_closure8.prototype = { call$1(mediaQueries) { return this.$this._async_evaluate0$_mergeMediaQueries$2(mediaQueries, this.queries); }, $signature: 113 }; A._EvaluateVisitor_visitMediaRule_closure9.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = $async$self.mergedQueries; if (t2 == null) t2 = $async$self.queries; $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitMediaRule__closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, styleRule, t2, t3, _i, t1, _0_0; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; _0_0 = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } $async$goto = t2 ? 2 : 4; break; case 2: // then $async$goto = 5; return A._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure2(t1, $async$self.node), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0); case 5: // returning from await. // goto join $async$goto = 3; break; case 4: // else t2 = $async$self.node.children, t3 = t2.length, _i = 0; case 6: // for condition if (!(_i < t3)) { // goto after for $async$goto = 8; break; } $async$goto = 9; return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0); case 9: // returning from await. case 7: // for update ++_i; // goto for condition $async$goto = 6; break; case 8: // after for case 3: // join // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitMediaRule___closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitMediaRule_closure10.prototype = { call$1(node) { var t1; if (!(node instanceof A.ModifiableCssStyleRule0)) { t1 = this.mergedSources; t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule0 && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1)); } else t1 = true; return t1; }, $signature: 8 }; A._EvaluateVisitor_visitStyleRule_closure14.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitStyleRule_closure15.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor_visitStyleRule_closure16.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitStyleRule__closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitStyleRule_closure17.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor_visitStyleRule_closure18.prototype = { call$1(child) { return child instanceof A.ModifiableCssComment0; }, $signature: 148 }; A._EvaluateVisitor_visitSupportsRule_closure5.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, styleRule, t2, t3, _i, t1, _0_0; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; _0_0 = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } $async$goto = t2 ? 2 : 4; break; case 2: // then $async$goto = 5; return A._asyncAwait(t1._async_evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure2(t1, $async$self.node), type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0); case 5: // returning from await. // goto join $async$goto = 3; break; case 4: // else t2 = $async$self.node.children, t3 = t2.length, _i = 0; case 6: // for condition if (!(_i < t3)) { // goto after for $async$goto = 8; break; } $async$goto = 9; return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0); case 9: // returning from await. case 7: // for update ++_i; // goto for condition $async$goto = 6; break; case 8: // after for case 3: // join // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitSupportsRule__closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, _i; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } $async$goto = 5; return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0); case 5: // returning from await. case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitSupportsRule_closure6.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor__visitSupportsCondition_closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.String), $async$returnValue, $async$self = this, t1, t2, t3, t4, $async$temp1, $async$temp2; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = $async$self._box_0; $async$temp1 = A; $async$goto = 3; return A._asyncAwait(t1._async_evaluate0$_evaluateToCss$1(t2.declaration.name), $async$call$0); case 3: // returning from await. t3 = $async$temp1.S($async$result); t4 = t2.declaration.get$isCustomProperty() ? "" : " "; $async$temp1 = "(" + t3 + ":" + t4; $async$temp2 = A; $async$goto = 4; return A._asyncAwait(t1._async_evaluate0$_evaluateToCss$1(t2.declaration.value), $async$call$0); case 4: // returning from await. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")"; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 288 }; A._EvaluateVisitor_visitVariableDeclaration_closure8.prototype = { call$0() { var t1 = this.$this._async_evaluate0$_environment, t2 = this._box_0.override; t1.setVariable$4$global(this.node.name, t2.value, t2.assignmentNode, true); }, $signature: 2 }; A._EvaluateVisitor_visitVariableDeclaration_closure9.prototype = { call$0() { var t1 = this.node; return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace); }, $signature: 46 }; A._EvaluateVisitor_visitVariableDeclaration_closure10.prototype = { call$0() { var t1 = this.$this, t2 = this.node; t1._async_evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace); }, $signature: 2 }; A._EvaluateVisitor_visitUseRule_closure2.prototype = { call$2(module, firstLoad) { var t1, t2, t3, _0_0, $name, t4, t5, span; if (firstLoad) this.$this._async_evaluate0$_registerCommentsForModule$1(module); t1 = this.$this._async_evaluate0$_environment; t2 = this.node; t3 = t2.namespace; if (t3 == null) { t1._async_environment0$_globalModules.$indexSet(0, module, t2); t1._async_environment0$_allModules.push(module); _0_0 = A.IterableExtension_firstWhereOrNull(J.get$keys$z(B.JSArray_methods.get$first(t1._async_environment0$_variables)), module.get$variables().get$containsKey()); if (_0_0 != null) { $name = _0_0; t1 = true; } else { $name = null; t1 = false; } if (t1) A.throwExpression(A.SassScriptException$0(string$.This_ma + A.S($name) + '".', null)); } else { t4 = t1._async_environment0$_modules; if (t4.containsKey$1(t3)) { t5 = t1._async_environment0$_namespaceNodes.$index(0, t3); span = t5 == null ? null : t5.span; t5 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); if (span != null) t5.$indexSet(0, span, "original @use"); A.throwExpression(A.MultiSpanSassScriptException$0(string$.There_ + t3 + '".', "new @use", t5)); } t4.$indexSet(0, t3, module); t1._async_environment0$_namespaceNodes.$indexSet(0, t3, t2); t1._async_environment0$_allModules.push(module); } }, $signature: 121 }; A._EvaluateVisitor_visitWarnRule_closure2.prototype = { call$0() { return this.node.expression.accept$1(this.$this); }, $signature: 80 }; A._EvaluateVisitor_visitWhileRule_closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2), $async$returnValue, $async$self = this, t1, t2, t3, _0_0, result, t4; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children; case 3: // for condition $async$goto = 5; return A._asyncAwait(t2.accept$1(t3), $async$call$0); case 5: // returning from await. if (!$async$result.get$isTruthy()) { // goto after for $async$goto = 4; break; } $async$goto = 6; return A._asyncAwait(t3._async_evaluate0$_handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure2(t3)), $async$call$0); case 6: // returning from await. _0_0 = $async$result; if (_0_0 != null) { result = _0_0; t4 = true; } else { result = null; t4 = false; } if (t4) { $async$returnValue = result; // goto return $async$goto = 1; break; } // goto for condition $async$goto = 3; break; case 4: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 76 }; A._EvaluateVisitor_visitWhileRule__closure2.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 108 }; A._EvaluateVisitor_visitBinaryOperationExpression_closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$self = this, t1, t2, left, $async$temp1, $async$temp2; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node; t2 = $async$self.$this; $async$goto = 3; return A._asyncAwait(t1.left.accept$1(t2), $async$call$0); case 3: // returning from await. left = $async$result; case 4: // switch switch (t1.operator) { case B.BinaryOperator_2jN0: // goto case $async$goto = 6; break; case B.BinaryOperator_M6L0: // goto case $async$goto = 7; break; case B.BinaryOperator_SNp0: // goto case $async$goto = 8; break; case B.BinaryOperator_ql50: // goto case $async$goto = 9; break; case B.BinaryOperator_ViB0: // goto case $async$goto = 10; break; case B.BinaryOperator_cIH0: // goto case $async$goto = 11; break; case B.BinaryOperator_7Tg0: // goto case $async$goto = 12; break; case B.BinaryOperator_U8c0: // goto case $async$goto = 13; break; case B.BinaryOperator_kpg0: // goto case $async$goto = 14; break; case B.BinaryOperator_anB0: // goto case $async$goto = 15; break; case B.BinaryOperator_olz0: // goto case $async$goto = 16; break; case B.BinaryOperator_qN20: // goto case $async$goto = 17; break; case B.BinaryOperator_t8B0: // goto case $async$goto = 18; break; case B.BinaryOperator_OTG0: // goto case $async$goto = 19; break; default: // goto default $async$goto = 20; break; } break; case 6: // case $async$goto = 21; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 21: // returning from await. t1 = $async$result; t1 = new A.SassString0(A.serializeValue0(left, false, true) + "=" + A.serializeValue0(t1, false, true), false); // goto after switch $async$goto = 5; break; case 7: // case $async$goto = left.get$isTruthy() ? 22 : 24; break; case 22: // then $async$result = left; // goto join $async$goto = 23; break; case 24: // else $async$goto = 25; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 25: // returning from await. case 23: // join t1 = $async$result; // goto after switch $async$goto = 5; break; case 8: // case $async$goto = left.get$isTruthy() ? 26 : 28; break; case 26: // then $async$goto = 29; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 29: // returning from await. // goto join $async$goto = 27; break; case 28: // else $async$result = left; case 27: // join t1 = $async$result; // goto after switch $async$goto = 5; break; case 9: // case $async$temp1 = left; $async$goto = 30; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 30: // returning from await. t1 = $async$temp1.$eq(0, $async$result) ? B.SassBoolean_true0 : B.SassBoolean_false0; // goto after switch $async$goto = 5; break; case 10: // case $async$temp1 = left; $async$goto = 31; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 31: // returning from await. t1 = !$async$temp1.$eq(0, $async$result) ? B.SassBoolean_true0 : B.SassBoolean_false0; // goto after switch $async$goto = 5; break; case 11: // case $async$temp1 = left; $async$goto = 32; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 32: // returning from await. t1 = $async$temp1.greaterThan$1($async$result); // goto after switch $async$goto = 5; break; case 12: // case $async$temp1 = left; $async$goto = 33; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 33: // returning from await. t1 = $async$temp1.greaterThanOrEquals$1($async$result); // goto after switch $async$goto = 5; break; case 13: // case $async$temp1 = left; $async$goto = 34; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 34: // returning from await. t1 = $async$temp1.lessThan$1($async$result); // goto after switch $async$goto = 5; break; case 14: // case $async$temp1 = left; $async$goto = 35; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 35: // returning from await. t1 = $async$temp1.lessThanOrEquals$1($async$result); // goto after switch $async$goto = 5; break; case 15: // case $async$temp1 = left; $async$goto = 36; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 36: // returning from await. t1 = $async$temp1.plus$1($async$result); // goto after switch $async$goto = 5; break; case 16: // case $async$temp1 = left; $async$goto = 37; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 37: // returning from await. t1 = $async$temp1.minus$1($async$result); // goto after switch $async$goto = 5; break; case 17: // case $async$temp1 = left; $async$goto = 38; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 38: // returning from await. t1 = $async$temp1.times$1($async$result); // goto after switch $async$goto = 5; break; case 18: // case $async$temp1 = t2; $async$temp2 = left; $async$goto = 39; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 39: // returning from await. t1 = $async$temp1._async_evaluate0$_slash$3($async$temp2, $async$result, t1); // goto after switch $async$goto = 5; break; case 19: // case $async$temp1 = left; $async$goto = 40; return A._asyncAwait(t1.right.accept$1(t2), $async$call$0); case 40: // returning from await. t1 = $async$temp1.modulo$1($async$result); // goto after switch $async$goto = 5; break; case 20: // default t1 = null; case 5: // after switch $async$returnValue = t1; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 80 }; A._EvaluateVisitor__slash_closure5.prototype = { call$0() { return this._1_0._0; }, $signature: 31 }; A._EvaluateVisitor__slash_closure6.prototype = { call$0() { return this._1_0._1; }, $signature: 31 }; A._EvaluateVisitor__slash_recommendation2.prototype = { call$1(expression) { var left, right, t1, _null = null; $label0$0: { if (expression instanceof A.BinaryOperationExpression0) if (B.BinaryOperator_t8B0 === expression.operator) { left = expression.left; right = expression.right; t1 = true; } else { right = _null; left = right; t1 = false; } else { right = _null; left = right; t1 = false; } if (t1) { t1 = "math.div(" + A.S(this.call$1(left)) + ", " + A.S(this.call$1(right)) + ")"; break $label0$0; } if (expression instanceof A.ParenthesizedExpression0) { t1 = expression.expression.toString$0(0); break $label0$0; } t1 = expression.toString$0(0); break $label0$0; } return t1; }, $signature: 118 }; A._EvaluateVisitor_visitVariableExpression_closure2.prototype = { call$0() { var t1 = this.node; return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace); }, $signature: 46 }; A._EvaluateVisitor_visitUnaryOperationExpression_closure2.prototype = { call$0() { var t1, _this = this; switch (_this.node.operator) { case B.UnaryOperator_gg40: t1 = _this.operand.unaryPlus$0(); break; case B.UnaryOperator_TLI0: t1 = _this.operand.unaryMinus$0(); break; case B.UnaryOperator_Ix10: t1 = new A.SassString0("/" + A.serializeValue0(_this.operand, false, true), false); break; case B.UnaryOperator_not_not_not0: t1 = _this.operand.unaryNot$0(); break; default: t1 = null; } return t1; }, $signature: 31 }; A._EvaluateVisitor_visitListExpression_closure2.prototype = { call$1(expression) { return expression.accept$1(this.$this); }, $signature: 368 }; A._EvaluateVisitor_visitFunctionExpression_closure8.prototype = { call$0() { var t1 = this.$this._async_evaluate0$_environment, t2 = this.node; return t1.getFunction$2$namespace(A.stringReplaceAllUnchecked(t2.originalName, "_", "-"), t2.namespace); }, $signature: 103 }; A._EvaluateVisitor_visitFunctionExpression_closure9.prototype = { call$1(argument) { return argument.accept$1(new A._IsCalculationSafeVisitor0()); }, $signature: 119 }; A._EvaluateVisitor_visitFunctionExpression_closure10.prototype = { call$0() { var t1 = this.node; return this.$this._async_evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1); }, $signature: 80 }; A._EvaluateVisitor__checkCalculationArguments_check2.prototype = { call$1(maxArgs) { var t1 = this.node, t2 = t1.$arguments.positional.length; if (t2 === 0) throw A.wrapException(this.$this._async_evaluate0$_exception$2("Missing argument.", t1.span)); else if (maxArgs != null && t2 > maxArgs) 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)); }, call$0() { return this.call$1(null); }, $signature: 86 }; A._EvaluateVisitor__visitCalculationExpression_closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Object), $async$returnValue, $async$self = this, t1, t2, t3, $async$temp1, $async$temp2, $async$temp3; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = $async$self._box_0; t3 = $async$self.inLegacySassFunction; $async$temp1 = A; $async$temp2 = t1._async_evaluate0$_binaryOperatorToCalculationOperator$2(t2.operator, $async$self.node); $async$goto = 3; return A._asyncAwait(t1._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2.left, t3), $async$call$0); case 3: // returning from await. $async$temp3 = $async$result; $async$goto = 4; return A._asyncAwait(t1._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2.right, t3), $async$call$0); case 4: // returning from await. $async$returnValue = $async$temp1.SassCalculation_operateInternal0($async$temp2, $async$temp3, $async$result, t3, !t1._async_evaluate0$_inSupportsDeclaration); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 151 }; A._EvaluateVisitor__checkAdjacentCalculationValues_closure2.prototype = { call$0() { return type$.UnaryOperationExpression_2._as(this._0_0).operator; }, $signature: 120 }; A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure2.prototype = { call$0() { var t1 = this.node; return this.$this._async_evaluate0$_runFunctionCallable$3(t1.$arguments, this.$function, t1); }, $signature: 80 }; A._EvaluateVisitor__runUserDefinedCallable_closure2.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this.callable, t3 = _this.V; 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); }, $signature() { return this.V._eval$1("Future<0>()"); } }; A._EvaluateVisitor__runUserDefinedCallable__closure2.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this.V; return t1._async_evaluate0$_environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure2(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2); }, $signature() { return this.V._eval$1("Future<0>()"); } }; A._EvaluateVisitor__runUserDefinedCallable___closure2.prototype = { call$0() { return this.$call$body$_EvaluateVisitor__runUserDefinedCallable___closure0(this.V); }, $call$body$_EvaluateVisitor__runUserDefinedCallable___closure0($async$type) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter($async$type), $async$returnValue, $async$self = this, declaredArguments, t5, minLength, i, argument, t6, t7, value, t8, restArgument, rest, argumentList, result, t1, t2, t3, t4, $async$temp1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = $async$self.evaluated._values; t3 = $async$self.callable.declaration.$arguments; t4 = $async$self.nodeWithSpan; t1._async_evaluate0$_verifyArguments$4(J.get$length$asx(t2[2]), t2[0], t3, t4); declaredArguments = t3.$arguments; t5 = declaredArguments.length; minLength = Math.min(J.get$length$asx(t2[2]), t5); for (i = 0; i < minLength; ++i) t1._async_evaluate0$_environment.setLocalVariable$3(declaredArguments[i].name, J.$index$asx(t2[2], i), J.$index$asx(t2[3], i)); i = J.get$length$asx(t2[2]); case 3: // for condition if (!(i < t5)) { // goto after for $async$goto = 5; break; } argument = declaredArguments[i]; t6 = t2[0]; t7 = argument.name; value = J.remove$1$z(t6, t7); $async$goto = value == null ? 6 : 7; break; case 6: // then t6 = argument.defaultValue; $async$temp1 = t1; $async$goto = 8; return A._asyncAwait(t6.accept$1(t1), $async$call$0); case 8: // returning from await. value = $async$temp1._async_evaluate0$_withoutSlash$2($async$result, t1._async_evaluate0$_expressionNode$1(t6)); case 7: // join t6 = t1._async_evaluate0$_environment; t8 = J.$index$asx(t2[1], t7); if (t8 == null) { t8 = argument.defaultValue; t8.toString; t8 = t1._async_evaluate0$_expressionNode$1(t8); } t6.setLocalVariable$3(t7, value, t8); case 4: // for update ++i; // goto for condition $async$goto = 3; break; case 5: // after for restArgument = t3.restArgument; if (restArgument != null) { rest = J.get$length$asx(t2[2]) > t5 ? J.sublist$1$ax(t2[2], t5) : B.List_empty19; t5 = t2[0]; t6 = t2[4]; argumentList = A.SassArgumentList$0(rest, t5, t6 === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_rXA0 : t6); t1._async_evaluate0$_environment.setLocalVariable$3(restArgument, argumentList, t4); } else argumentList = null; $async$goto = 9; return A._asyncAwait($async$self.run.call$0(), $async$call$0); case 9: // returning from await. result = $async$result; if (argumentList == null) { $async$returnValue = result; // goto return $async$goto = 1; break; } if (J.get$isEmpty$asx(t2[0])) { $async$returnValue = result; // goto return $async$goto = 1; break; } if (argumentList._argument_list$_wereKeywordsAccessed) { $async$returnValue = result; // goto return $async$goto = 1; break; } throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + A.pluralize0("argument", J.get$length$asx(J.get$keys$z(t2[0])), null) + " named " + A.toSentence0(J.map$1$1$ax(J.get$keys$z(t2[0]), 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)); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature() { return this.V._eval$1("Future<0>()"); } }; A._EvaluateVisitor__runUserDefinedCallable____closure2.prototype = { call$1($name) { return "$" + $name; }, $signature: 7 }; A._EvaluateVisitor__runFunctionCallable_closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0; case 3: // for condition if (!(_i < t3)) { // goto after for $async$goto = 5; break; } $async$goto = 6; return A._asyncAwait(t2[_i].accept$1(t4), $async$call$0); case 6: // returning from await. $returnValue = $async$result; if ($returnValue instanceof A.Value0) { $async$returnValue = $returnValue; // goto return $async$goto = 1; break; } case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for throw A.wrapException(t4._async_evaluate0$_exception$2("Function finished without @return.", t1.span)); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 80 }; A._EvaluateVisitor__runBuiltInCallable_closure8.prototype = { call$0() { return this._box_0.overload.verify$2(J.get$length$asx(this.evaluated._values[2]), this.namedSet); }, $signature: 0 }; A._EvaluateVisitor__runBuiltInCallable_closure9.prototype = { call$0() { return this._box_0.callback.call$1(this.evaluated._values[2]); }, $signature: 371 }; A._EvaluateVisitor__runBuiltInCallable_closure10.prototype = { call$1($name) { return "$" + $name; }, $signature: 7 }; A._EvaluateVisitor__evaluateArguments_closure11.prototype = { call$1(value) { return value; }, $signature: 45 }; A._EvaluateVisitor__evaluateArguments_closure12.prototype = { call$1(value) { return this.$this._async_evaluate0$_withoutSlash$2(value, this.restNodeForSpan); }, $signature: 45 }; A._EvaluateVisitor__evaluateArguments_closure13.prototype = { call$2(key, value) { var _this = this, t1 = _this.restNodeForSpan; _this.named.$indexSet(0, key, _this.$this._async_evaluate0$_withoutSlash$2(value, t1)); _this.namedNodes.$indexSet(0, key, t1); }, $signature: 109 }; A._EvaluateVisitor__evaluateArguments_closure14.prototype = { call$1(value) { return value; }, $signature: 45 }; A._EvaluateVisitor__evaluateMacroArguments_closure11.prototype = { call$1(value) { var t1 = this.restArgs; return new A.ValueExpression0(value, t1.get$span(t1)); }, $signature: 60 }; A._EvaluateVisitor__evaluateMacroArguments_closure12.prototype = { call$1(value) { var t1 = this.restArgs; return new A.ValueExpression0(this.$this._async_evaluate0$_withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1)); }, $signature: 60 }; A._EvaluateVisitor__evaluateMacroArguments_closure13.prototype = { call$2(key, value) { var _this = this, t1 = _this.restArgs; _this.named.$indexSet(0, key, new A.ValueExpression0(_this.$this._async_evaluate0$_withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1))); }, $signature: 109 }; A._EvaluateVisitor__evaluateMacroArguments_closure14.prototype = { call$1(value) { var t1 = this.keywordRestArgs; return new A.ValueExpression0(this.$this._async_evaluate0$_withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1)); }, $signature: 60 }; A._EvaluateVisitor__addRestMap_closure2.prototype = { call$2(key, value) { var t2, _this = this, t1 = _this.$this; if (key instanceof A.SassString0) _this.values.$indexSet(0, key._string0$_text, _this.convert.call$1(t1._async_evaluate0$_withoutSlash$2(value, _this.expressionNode))); else { t2 = _this.nodeWithSpan; 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))); } }, $signature: 104 }; A._EvaluateVisitor__verifyArguments_closure2.prototype = { call$0() { return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String)); }, $signature: 0 }; A._EvaluateVisitor_visitCssAtRule_closure5.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, t4; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1; case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } t4 = t1.__internal$_current; $async$goto = 4; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0); case 4: // returning from await. // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssAtRule_closure6.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor_visitCssKeyframeBlock_closure5.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, t4; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1; case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } t4 = t1.__internal$_current; $async$goto = 4; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0); case 4: // returning from await. // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssKeyframeBlock_closure6.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor_visitCssMediaRule_closure8.prototype = { call$1(mediaQueries) { return this.$this._async_evaluate0$_mergeMediaQueries$2(mediaQueries, this.node.queries); }, $signature: 113 }; A._EvaluateVisitor_visitCssMediaRule_closure9.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; t2 = $async$self.mergedQueries; if (t2 == null) t2 = $async$self.node.queries; $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssMediaRule__closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, styleRule, t2, t3, t4, t1, _0_0; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; _0_0 = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } $async$goto = t2 ? 2 : 4; break; case 2: // then $async$goto = 5; return A._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure2(t1, $async$self.node), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0); case 5: // returning from await. // goto join $async$goto = 3; break; case 4: // else t2 = $async$self.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; case 6: // for condition if (!t2.moveNext$0()) { // goto after for $async$goto = 7; break; } t4 = t2.__internal$_current; $async$goto = 8; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0); case 8: // returning from await. // goto for condition $async$goto = 6; break; case 7: // after for case 3: // join // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssMediaRule___closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, t4; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1; case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } t4 = t1.__internal$_current; $async$goto = 4; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0); case 4: // returning from await. // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssMediaRule_closure10.prototype = { call$1(node) { var t1; if (!(node instanceof A.ModifiableCssStyleRule0)) { t1 = this.mergedSources; t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule0 && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1)); } else t1 = true; return t1; }, $signature: 8 }; A._EvaluateVisitor_visitCssStyleRule_closure8.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; $async$goto = 2; 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); case 2: // returning from await. // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssStyleRule__closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, t4; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1; case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } t4 = t1.__internal$_current; $async$goto = 4; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0); case 4: // returning from await. // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssStyleRule_closure9.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor_visitCssStyleRule_closure10.prototype = { call$0() { return J.get$length$asx(this._0_0._collection$_source); }, $signature: 3 }; A._EvaluateVisitor_visitCssSupportsRule_closure5.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, styleRule, t2, t3, t4, t1, _0_0; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this; _0_0 = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } $async$goto = t2 ? 2 : 4; break; case 2: // then $async$goto = 5; return A._asyncAwait(t1._async_evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure2(t1, $async$self.node), type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0); case 5: // returning from await. // goto join $async$goto = 3; break; case 4: // else t2 = $async$self.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; case 6: // for condition if (!t2.moveNext$0()) { // goto after for $async$goto = 7; break; } t4 = t2.__internal$_current; $async$goto = 8; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0); case 8: // returning from await. // goto for condition $async$goto = 6; break; case 7: // after for case 3: // join // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssSupportsRule__closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), $async$self = this, t1, t2, t3, t4; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1; case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } t4 = t1.__internal$_current; $async$goto = 4; return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0); case 4: // returning from await. // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return A._asyncReturn(null, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 4 }; A._EvaluateVisitor_visitCssSupportsRule_closure6.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor__performInterpolationHelper_closure2.prototype = { call$1(targetLocations) { return A.InterpolationMap$0(this.interpolation, targetLocations); }, $signature: 211 }; A._EvaluateVisitor__serialize_closure2.prototype = { call$0() { return A.serializeValue0(this.value, false, this.quote); }, $signature: 22 }; A._EvaluateVisitor__expressionNode_closure2.prototype = { call$0() { var t1 = this.expression; return this.$this._async_evaluate0$_environment.getVariableNode$2$namespace(t1.name, t1.namespace); }, $signature: 212 }; A._EvaluateVisitor__withoutSlash_recommendation2.prototype = { call$1(number) { var t1, before, after, _1_0 = number.asSlash; $label0$0: { if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_0)) { t1 = type$.SassNumber_2; before = t1._as(_1_0._0); after = t1._as(_1_0._1); t1 = true; } else { before = null; after = null; t1 = false; } if (t1) { t1 = "math.div(" + A.S(this.call$1(before)) + ", " + A.S(this.call$1(after)) + ")"; break $label0$0; } t1 = A.serializeValue0(number, true, true); break $label0$0; } return t1; }, $signature: 213 }; A._EvaluateVisitor__stackFrame_closure2.prototype = { call$1(url) { var t1 = this.$this._async_evaluate0$_importCache; t1 = t1 == null ? null : t1.humanize$1(url); return t1 == null ? url : t1; }, $signature: 48 }; A._ImportedCssVisitor2.prototype = { visitCssAtRule$1(node) { var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure2(); this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, t1); }, visitCssComment$1(node) { return this._async_evaluate0$_visitor._async_evaluate0$_addChild$1(node); }, visitCssDeclaration$1(node) { }, visitCssImport$1(node) { var t2, _s13_ = "_endOfImports", t1 = this._async_evaluate0$_visitor; if (t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__parent, "__parent") !== t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__root, "_root")) t1._async_evaluate0$_addChild$1(node); 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)) { t1._async_evaluate0$_addChild$1(node); t1._async_evaluate0$__endOfImports = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__endOfImports, _s13_) + 1; } else { t2 = t1._async_evaluate0$_outOfOrderImports; (t2 == null ? t1._async_evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t2).push(node); } }, visitCssKeyframeBlock$1(node) { }, visitCssMediaRule$1(node) { var t1 = this._async_evaluate0$_visitor, mediaQueries = t1._async_evaluate0$_mediaQueries; t1._async_evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure2(mediaQueries == null || t1._async_evaluate0$_mergeMediaQueries$2(mediaQueries, node.queries) != null)); }, visitCssStyleRule$1(node) { return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure2()); }, visitCssStylesheet$1(node) { var t1, t2, t3; for (t1 = node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; (t3 == null ? t2._as(t3) : t3).accept$1(this); } }, visitCssSupportsRule$1(node) { return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure2()); } }; A._ImportedCssVisitor_visitCssAtRule_closure2.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._ImportedCssVisitor_visitCssMediaRule_closure2.prototype = { call$1(node) { var t1; if (!(node instanceof A.ModifiableCssStyleRule0)) t1 = this.hasBeenMerged && node instanceof A.ModifiableCssMediaRule0; else t1 = true; return t1; }, $signature: 8 }; A._ImportedCssVisitor_visitCssStyleRule_closure2.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._ImportedCssVisitor_visitCssSupportsRule_closure2.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluationContext2.prototype = { get$currentCallableSpan() { var callableNode, t1, _0_0 = this._async_evaluate0$_visitor._async_evaluate0$_callableNode; if (_0_0 != null) { callableNode = _0_0; t1 = true; } else { callableNode = null; t1 = false; } if (t1) return callableNode.get$span(callableNode); throw A.wrapException(A.StateError$(string$.No_Sasc)); }, warn$2(_, message, deprecation) { var t1 = this._async_evaluate0$_visitor, t2 = t1._async_evaluate0$_importSpan; if (t2 == null) { t2 = t1._async_evaluate0$_callableNode; t2 = t2 == null ? null : t2.get$span(t2); } t1._async_evaluate0$_warn$3(message, t2 == null ? this._async_evaluate0$_defaultWarnNodeWithSpan.span : t2, deprecation); }, $isEvaluationContext0: 1 }; A.JSToDartAsyncFileImporter.prototype = { canonicalize$1(_, url) { return this.canonicalize$body$JSToDartAsyncFileImporter(0, url); }, canonicalize$body$JSToDartAsyncFileImporter(_, url) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Uri), $async$returnValue, $async$self = this, result, t1, resultUrl; var $async$canonicalize$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if (url.get$scheme() === "file") { $async$returnValue = $.$get$_filesystemImporter().canonicalize$1(0, url); // goto return $async$goto = 1; break; } result = A.wrapJSExceptions(new A.JSToDartAsyncFileImporter_canonicalize_closure($async$self, url)); $async$goto = result != null && result instanceof self.Promise ? 3 : 4; break; case 3: // then $async$goto = 5; return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.nullable_Object), $async$canonicalize$1); case 5: // returning from await. result = $async$result; case 4: // join if (result == null) { $async$returnValue = null; // goto return $async$goto = 1; break; } t1 = self.URL; if (!(result instanceof t1)) A.jsThrow(new self.Error(string$.The_fie)); resultUrl = A.Uri_parse(J.toString$0$(type$.JSUrl._as(result))); if (resultUrl.get$scheme() !== "file") A.jsThrow(new self.Error(string$.The_fiu + url.toString$0(0) + '".')); $async$returnValue = $.$get$_filesystemImporter().canonicalize$1(0, resultUrl); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$canonicalize$1, $async$completer); }, load$1(_, url) { return $.$get$_filesystemImporter().load$1(0, url); }, isNonCanonicalScheme$1(scheme) { return scheme !== "file"; } }; A.JSToDartAsyncFileImporter_canonicalize_closure.prototype = { call$0() { return this.$this._findFileUrl.call$2(this.url.toString$0(0), {fromImport: A.fromImport0(), containingUrl: A.NullableExtension_andThen0(A.containingUrl(), A.utils1__dartToJSUrl$closure())}); }, $signature: 28 }; A.AsyncImportCache0.prototype = { canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) { return this.canonicalize$body$AsyncImportCache0(0, url, baseImporter, baseUrl, forImport); }, canonicalize$body$AsyncImportCache0(_, url, baseImporter, baseUrl, forImport) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2), $async$returnValue, $async$self = this, t1, relativeResult; var $async$canonicalize$4$baseImporter$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start if (A.isBrowser()) t1 = (baseImporter == null || baseImporter instanceof A.NoOpImporter0) && $async$self._async_import_cache0$_importers.length === 0; else t1 = false; if (t1) throw A.wrapException(string$.Custom); $async$goto = baseImporter != null && url.get$scheme() === "" ? 3 : 4; break; case 3: // then $async$goto = 5; return A._asyncAwait(A.putIfAbsentAsync0($async$self._async_import_cache0$_relativeCanonicalizeCache, new A._Record_4_baseImporter_baseUrl_forImport([url, baseImporter, baseUrl, forImport]), new A.AsyncImportCache_canonicalize_closure1($async$self, baseImporter, baseUrl, url, forImport), type$.Record_4_Uri_and_AsyncImporter_baseImporter_and_nullable_Uri_baseUrl_and_bool_forImport_2, type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2), $async$canonicalize$4$baseImporter$baseUrl$forImport); case 5: // returning from await. relativeResult = $async$result; if (relativeResult != null) { $async$returnValue = relativeResult; // goto return $async$goto = 1; break; } case 4: // join $async$goto = 6; return A._asyncAwait(A.putIfAbsentAsync0($async$self._async_import_cache0$_canonicalizeCache, new A._Record_2_forImport(url, forImport), new A.AsyncImportCache_canonicalize_closure2($async$self, url, baseUrl, forImport), type$.Record_2_Uri_and_bool_forImport, type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2), $async$canonicalize$4$baseImporter$baseUrl$forImport); case 6: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer); }, _async_import_cache0$_canonicalize$4(importer, url, baseUrl, forImport) { return this._canonicalize$body$AsyncImportCache0(importer, url, baseUrl, forImport); }, _canonicalize$body$AsyncImportCache0(importer, url, baseUrl, forImport) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2), $async$returnValue, $async$self = this, passContainingUrl, t1, result, canonicalize, $async$temp1; var $async$_async_import_cache0$_canonicalize$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start canonicalize = forImport ? new A.AsyncImportCache__canonicalize_closure1(importer, url) : new A.AsyncImportCache__canonicalize_closure2(importer, url); $async$goto = baseUrl != null ? 3 : 5; break; case 3: // then $async$temp1 = url.get$scheme() === ""; if ($async$temp1) $async$result = $async$temp1; else { // goto then $async$goto = 6; break; } // goto join $async$goto = 7; break; case 6: // then $async$goto = 8; return A._asyncAwait(importer.isNonCanonicalScheme$1(url.get$scheme()), $async$_async_import_cache0$_canonicalize$4); case 8: // returning from await. case 7: // join passContainingUrl = $async$result; // goto join $async$goto = 4; break; case 5: // else passContainingUrl = false; case 4: // join t1 = passContainingUrl ? baseUrl : null; $async$goto = 9; return A._asyncAwait(A.withContainingUrl0(t1, canonicalize, type$.FutureOr_nullable_Uri), $async$_async_import_cache0$_canonicalize$4); case 9: // returning from await. result = $async$result; if (result == null) { $async$returnValue = null; // goto return $async$goto = 1; break; } $async$goto = result.get$scheme() === "" ? 10 : 12; break; case 10: // then A.WarnForDeprecation_warnForDeprecation0($async$self._async_import_cache0$_logger, B.Deprecation_E5x, "Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2e_Rela, null, null); // goto join $async$goto = 11; break; case 12: // else $async$goto = 13; return A._asyncAwait(importer.isNonCanonicalScheme$1(result.get$scheme()), $async$_async_import_cache0$_canonicalize$4); case 13: // returning from await. if ($async$result) throw A.wrapException("Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2c_whicu); case 11: // join $async$returnValue = new A._Record_3_originalUrl(importer, result, url); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_async_import_cache0$_canonicalize$4, $async$completer); }, importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, quiet) { return this.importCanonical$body$AsyncImportCache0(importer, canonicalUrl, originalUrl, quiet); }, importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) { return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, false); }, importCanonical$body$AsyncImportCache0(importer, canonicalUrl, originalUrl, quiet) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet_2), $async$returnValue, $async$self = this; var $async$importCanonical$4$originalUrl$quiet = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start $async$goto = 3; return A._asyncAwait(A.putIfAbsentAsync0($async$self._async_import_cache0$_importCache, canonicalUrl, new A.AsyncImportCache_importCanonical_closure0($async$self, importer, canonicalUrl, originalUrl, quiet), type$.Uri, type$.nullable_Stylesheet_2), $async$importCanonical$4$originalUrl$quiet); case 3: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$importCanonical$4$originalUrl$quiet, $async$completer); }, humanize$1(canonicalUrl) { var t2, t1 = this._async_import_cache0$_canonicalizeCache; t1 = A.IterableNullableExtension_whereNotNull(t1.get$values(t1), type$.Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2); t2 = t1.$ti; t2 = A.NullableExtension_andThen0(A.minBy(new A.MappedIterable(new A.WhereIterable(t1, new A.AsyncImportCache_humanize_closure3(canonicalUrl), t2._eval$1("WhereIterable")), new A.AsyncImportCache_humanize_closure4(), t2._eval$1("MappedIterable")), new A.AsyncImportCache_humanize_closure5()), new A.AsyncImportCache_humanize_closure6(canonicalUrl)); return t2 == null ? canonicalUrl : t2; }, sourceMapUrl$1(_, canonicalUrl) { var t1 = this._async_import_cache0$_resultsCache.$index(0, canonicalUrl); t1 = t1 == null ? null : t1.get$sourceMapUrl(t1); return t1 == null ? canonicalUrl : t1; } }; A.AsyncImportCache_canonicalize_closure1.prototype = { call$0() { var _this = this, t1 = _this.baseUrl, t2 = t1 == null ? null : t1.resolveUri$1(_this.url); if (t2 == null) t2 = _this.url; return _this.$this._async_import_cache0$_canonicalize$4(_this.baseImporter, t2, t1, _this.forImport); }, $signature: 214 }; A.AsyncImportCache_canonicalize_closure2.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2), $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, t6, _i, _0_0, result, t7; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.$this, t2 = t1._async_import_cache0$_importers, t3 = t2.length, t4 = $async$self.url, t5 = $async$self.baseUrl, t6 = $async$self.forImport, _i = 0; case 3: // for condition if (!(_i < t2.length)) { // goto after for $async$goto = 5; break; } $async$goto = 6; return A._asyncAwait(t1._async_import_cache0$_canonicalize$4(t2[_i], t4, t5, t6), $async$call$0); case 6: // returning from await. _0_0 = $async$result; if (_0_0 != null) { result = _0_0; t7 = true; } else { result = null; t7 = false; } if (t7) { $async$returnValue = result; // goto return $async$goto = 1; break; } case 4: // for update t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = null; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 214 }; A.AsyncImportCache__canonicalize_closure1.prototype = { call$0() { var t1 = type$.nullable_Object; return A.runZoned(new A.AsyncImportCache__canonicalize__closure0(this.importer, this.resolved), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__inImportRule, true], t1, t1), type$.FutureOr_nullable_Uri); }, $signature: 55 }; A.AsyncImportCache__canonicalize__closure0.prototype = { call$0() { return this.importer.canonicalize$1(0, this.resolved); }, $signature: 55 }; A.AsyncImportCache__canonicalize_closure2.prototype = { call$0() { return this.importer.canonicalize$1(0, this.resolved); }, $signature: 55 }; A.AsyncImportCache_importCanonical_closure0.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet_2), $async$returnValue, $async$self = this, t2, t3, t4, t1, result; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.canonicalUrl; $async$goto = 3; return A._asyncAwait($async$self.importer.load$1(0, t1), $async$call$0); case 3: // returning from await. result = $async$result; if (result == null) { $async$returnValue = null; // goto return $async$goto = 1; break; } t2 = $async$self.$this; t2._async_import_cache0$_resultsCache.$indexSet(0, t1, result); t3 = result.contents; t4 = result.syntax; t1 = $async$self.originalUrl.resolveUri$1(t1); $async$returnValue = A.Stylesheet_Stylesheet$parse0(t3, t4, $async$self.quiet ? $.$get$Logger_quiet0() : t2._async_import_cache0$_logger, t1); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 379 }; A.AsyncImportCache_humanize_closure3.prototype = { call$1(result) { return J.$eq$(result._1, this.canonicalUrl); }, $signature: 380 }; A.AsyncImportCache_humanize_closure4.prototype = { call$1(result) { return result._2; }, $signature: 381 }; A.AsyncImportCache_humanize_closure5.prototype = { call$1(url) { return url.get$path(url).length; }, $signature: 111 }; A.AsyncImportCache_humanize_closure6.prototype = { call$1(url) { var t1 = $.$get$url(), t2 = this.canonicalUrl; return url.resolve$1(A.ParsedPath_ParsedPath$parse(t2.get$path(t2), t1.style).get$basename()); }, $signature: 48 }; A.AtRootQueryParser0.prototype = { parse$0() { return this.wrapSpanFormatException$1(new A.AtRootQueryParser_parse_closure0(this)); } }; A.AtRootQueryParser_parse_closure0.prototype = { call$0() { var include, atRules, t1 = this.$this, t2 = t1.scanner; t2.expectChar$1(40); t1.whitespace$0(); include = t1.scanIdentifier$1("with"); if (!include) t1.expectIdentifier$2$name("without", '"with" or "without"'); t1.whitespace$0(); t2.expectChar$1(58); t1.whitespace$0(); atRules = A.LinkedHashSet_LinkedHashSet$_empty(type$.String); do { atRules.add$1(0, t1.identifier$0().toLowerCase()); t1.whitespace$0(); } while (t1.lookingAtIdentifier$0()); t2.expectChar$1(41); t2.expectDone$0(); return new A.AtRootQuery0(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule")); }, $signature: 382 }; A.AtRootQuery0.prototype = { excludes$1(node) { var t1, _this = this; if (_this._at_root_query0$_all) return !_this.include; $label0$0: { if (node instanceof A.ModifiableCssStyleRule0) { t1 = _this._at_root_query0$_rule !== _this.include; break $label0$0; } if (node instanceof A.ModifiableCssMediaRule0) { t1 = _this.excludesName$1("media"); break $label0$0; } if (node instanceof A.ModifiableCssSupportsRule0) { t1 = _this.excludesName$1("supports"); break $label0$0; } if (node instanceof A.ModifiableCssAtRule0) { t1 = _this.excludesName$1(node.name.value.toLowerCase()); break $label0$0; } t1 = false; break $label0$0; } return t1; }, excludesName$1($name) { var t1 = this._at_root_query0$_all || this.names.contains$1(0, $name); return t1 !== this.include; } }; A.AtRootRule0.prototype = { accept$1$1(visitor) { return visitor.visitAtRootRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var buffer = new A.StringBuffer("@at-root "), t1 = this.query; if (t1 != null) buffer._contents = "@at-root " + (t1.toString$0(0) + " "); t1 = this.children; return buffer.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.ModifiableCssAtRule0.prototype = { accept$1$1(visitor) { return visitor.visitCssAtRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, equalsIgnoringChildren$1(other) { var t1, t2; if (other instanceof A.ModifiableCssAtRule0) { t1 = this.name; t2 = other.name; t1 = t1.$ti._is(t2) && J.$eq$(t2.value, t1.value) && J.$eq$(this.value, other.value) && this.isChildless === other.isChildless; } else t1 = false; return t1; }, copyWithoutChildren$0() { var _this = this; return A.ModifiableCssAtRule$0(_this.name, _this.span, _this.isChildless, _this.value); }, addChild$1(child) { this.super$ModifiableCssParentNode$addChild0(child); }, get$isChildless() { return this.isChildless; }, get$span(receiver) { return this.span; } }; A.AtRule0.prototype = { accept$1$1(visitor) { return visitor.visitAtRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var children, t1 = "@" + this.name.toString$0(0), buffer = new A.StringBuffer(t1), t2 = this.value; if (t2 != null) buffer._contents = t1 + (" " + t2.toString$0(0)); children = this.children; return children == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(children, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.AttributeSelector0.prototype = { accept$1$1(visitor) { return visitor.visitAttributeSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, $eq(_, other) { var _this = this; if (other == null) return false; return other instanceof A.AttributeSelector0 && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier; }, get$hashCode(_) { var _this = this, t1 = _this.name; 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; } }; A.AttributeOperator0.prototype = { _enumToString$0() { return "AttributeOperator." + this._name; }, toString$0(_) { return this._attribute0$_text; } }; A.BinaryOperationExpression0.prototype = { get$span(_) { var right, left = this.left; for (; left instanceof A.BinaryOperationExpression0;) left = left.left; right = this.right; for (; right instanceof A.BinaryOperationExpression0;) right = right.right; return left.get$span(left).expand$1(0, right.get$span(right)); }, get$operatorSpan() { var t3, t4, _this = this, t1 = _this.left, t2 = t1.get$span(t1); t2 = t2.get$file(t2); t3 = _this.right; t4 = t3.get$span(t3); if (t2 === t4.get$file(t4)) { t2 = t1.get$span(t1); t2 = t2.get$end(t2); t4 = t3.get$span(t3); t4 = t2.offset < t4.get$start(t4).offset; t2 = t4; } else t2 = false; if (t2) { t2 = t1.get$span(t1); t2 = t2.get$file(t2); t1 = t1.get$span(t1); t1 = t1.get$end(t1); t3 = t3.get$span(t3); t3 = A.SpanExtensions_trimRight0(A.SpanExtensions_trimLeft0(t2.span$2(0, t1.offset, t3.get$start(t3).offset))); t1 = t3; } else t1 = _this.get$span(_this); return t1; }, accept$1$1(visitor) { return visitor.visitBinaryOperationExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var precedence, t1, t2, right, operator, t3, _this = this, _0_0 = _this.left; $label0$0: { if (_0_0 instanceof A.BinaryOperationExpression0) { precedence = _0_0.operator.precedence; t1 = true; } else { precedence = null; t1 = false; } if (t1) { t1 = precedence < _this.operator.precedence; break $label0$0; } if (_0_0 instanceof A.ListExpression0 && !_0_0.hasBrackets && _0_0.contents.length >= 2) { t1 = true; break $label0$0; } t1 = false; break $label0$0; } t2 = t1 ? "" + A.Primitives_stringFromCharCode(40) : ""; t2 += _0_0.toString$0(0); t1 = t1 ? t2 + A.Primitives_stringFromCharCode(41) : t2; t2 = _this.operator; t1 = t1 + A.Primitives_stringFromCharCode(32) + t2.operator + A.Primitives_stringFromCharCode(32); right = _this.right; $label1$1: { if (right instanceof A.BinaryOperationExpression0) { operator = right.operator; t3 = true; } else { operator = null; t3 = false; } if (t3) { if (operator.precedence <= t2.precedence) { t3 = !(operator === t2 && operator.isAssociative); t2 = t3; } else t2 = false; break $label1$1; } if (right instanceof A.ListExpression0 && !right.hasBrackets && right.contents.length >= 2) { t2 = true; break $label1$1; } t2 = false; break $label1$1; } if (t2) t1 += A.Primitives_stringFromCharCode(40); t1 += right.toString$0(0); if (t2) t1 += A.Primitives_stringFromCharCode(41); return t1.charCodeAt(0) == 0 ? t1 : t1; }, $isExpression0: 1, $isAstNode0: 1 }; A.BinaryOperator0.prototype = { _enumToString$0() { return "BinaryOperator." + this._name; }, toString$0(_) { return this.name; } }; A.BooleanExpression0.prototype = { accept$1$1(visitor) { return visitor.visitBooleanExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return String(this.value); }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.booleanClass_closure.prototype = { call$0() { var t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassBoolean", new A.booleanClass__closure())); A.JSClassExtension_injectSuperclass(t1._as(B.SassBoolean_true0.constructor), jsClass); return jsClass; }, $signature: 24 }; A.booleanClass__closure.prototype = { call$2($self, _) { A.jsThrow(new self.Error("new sass.SassBoolean() isn't allowed.\nUse sass.sassTrue or sass.sassFalse instead.")); }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 215 }; A.legacyBooleanClass_closure.prototype = { call$0() { var t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.types.Boolean", new A.legacyBooleanClass__closure())); J.get$$prototype$x(jsClass).getValue = A.allowInteropCaptureThisNamed("getValue", new A.legacyBooleanClass__closure0()); jsClass.TRUE = B.SassBoolean_true0; jsClass.FALSE = B.SassBoolean_false0; A.JSClassExtension_injectSuperclass(t1._as(B.SassBoolean_true0.constructor), jsClass); return jsClass; }, $signature: 24 }; A.legacyBooleanClass__closure.prototype = { call$2(_, __) { throw A.wrapException("new sass.types.Boolean() isn't allowed.\nUse sass.types.Boolean.TRUE or sass.types.Boolean.FALSE instead."); }, call$1(_) { return this.call$2(_, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 216 }; A.legacyBooleanClass__closure0.prototype = { call$1($self) { return $self === B.SassBoolean_true0; }, $signature: 77 }; A.SassBoolean0.prototype = { get$isTruthy() { return this.value; }, accept$1$1(visitor) { return visitor._serialize0$_buffer.write$1(0, String(this.value)); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertBoolean$1($name) { return this; }, unaryNot$0() { return this.value ? B.SassBoolean_false0 : B.SassBoolean_true0; } }; A.Box0.prototype = { $eq(_, other) { if (other == null) return false; return this.$ti._is(other) && other._box0$_inner === this._box0$_inner; }, get$hashCode(_) { return A.Primitives_objectHashCode(this._box0$_inner); } }; A.ModifiableBox0.prototype = {}; A.BuiltInCallable0.prototype = { callbackFor$2(positional, names) { var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4; 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) { overload = t1[_i]; t3 = overload._0; if (t3.matches$2(positional, names)) return overload; mismatchDistance = t3.$arguments.length - positional; if (minMismatchDistance != null) { t3 = Math.abs(mismatchDistance); t4 = Math.abs(minMismatchDistance); if (t3 > t4) continue; if (t3 === t4 && mismatchDistance < 0) continue; } minMismatchDistance = mismatchDistance; fuzzyMatch = overload; } if (fuzzyMatch != null) return fuzzyMatch; throw A.wrapException(A.StateError$("BuiltInCallable " + this.name + " may not have empty overloads.")); }, withName$1($name) { return new A.BuiltInCallable0($name, this._built_in$_overloads, this.acceptsContent); }, $isAsyncCallable0: 1, $isAsyncBuiltInCallable0: 1, $isCallable: 1, get$name(receiver) { return this.name; }, get$acceptsContent() { return this.acceptsContent; } }; A.BuiltInCallable$mixin_closure0.prototype = { call$1($arguments) { this.callback.call$1($arguments); return B.C__SassNull0; }, $signature: 5 }; A.BuiltInModule0.prototype = { get$upstream() { return B.List_empty18; }, get$variableNodes() { return B.Map_empty12; }, get$extensionStore() { return B.C_EmptyExtensionStore0; }, get$css(_) { return new A.CssStylesheet0(B.List_empty16, A.SourceFile$decoded(B.List_empty4, this.url).span$2(0, 0, 0)); }, get$preModuleComments() { return B.Map_empty11; }, get$transitivelyContainsCss() { return false; }, get$transitivelyContainsExtensions() { return false; }, setVariable$3($name, value, nodeWithSpan) { if (!this.variables.containsKey$1($name)) throw A.wrapException(A.SassScriptException$0("Undefined variable.", null)); throw A.wrapException(A.SassScriptException$0("Cannot modify built-in variable.", null)); }, variableIdentity$1($name) { return this; }, cloneCss$0() { return this; }, $isModule1: 1, get$url(receiver) { return this.url; }, get$functions(receiver) { return this.functions; }, get$mixins() { return this.mixins; }, get$variables() { return this.variables; } }; A.calculationClass_closure.prototype = { call$0() { var t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassCalculation", new A.calculationClass__closure())), t2 = type$.String, t3 = type$.Function; 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)); A.LinkedHashMap_LinkedHashMap$_literal(["assertCalculation", new A.calculationClass__closure4()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass)); A.LinkedHashMap_LinkedHashMap$_literal(["arguments", new A.calculationClass__closure5()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass)); 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); return jsClass; }, $signature: 24 }; A.calculationClass__closure.prototype = { call$2($self, _) { A.jsThrow0(new self.Error("new sass.SassCalculation() isn't allowed")); }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 215 }; A.calculationClass__closure0.prototype = { call$1(argument) { A._assertCalculationValue(argument); return new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([argument], type$.JSArray_Object), type$.Object)); }, $signature: 125 }; A.calculationClass__closure1.prototype = { call$1($arguments) { var t1 = self.immutable.isOrderedMap($arguments) ? J.toArray$0$x(type$.ImmutableList_2._as($arguments)) : type$.List_dynamic._as($arguments), t2 = type$.Object, argList = J.cast$1$0$ax(t1, t2); argList.forEach$1(argList, A.calculation1___assertCalculationValue$closure()); return new A.SassCalculation0("min", A.List_List$unmodifiable(argList, t2)); }, $signature: 125 }; A.calculationClass__closure2.prototype = { call$1($arguments) { var t1 = self.immutable.isOrderedMap($arguments) ? J.toArray$0$x(type$.ImmutableList_2._as($arguments)) : type$.List_dynamic._as($arguments), t2 = type$.Object, argList = J.cast$1$0$ax(t1, t2); argList.forEach$1(argList, A.calculation1___assertCalculationValue$closure()); return new A.SassCalculation0("max", A.List_List$unmodifiable(argList, t2)); }, $signature: 125 }; A.calculationClass__closure3.prototype = { call$3(min, value, max) { var t1; if (!(value == null && !A._isValidClampArg(min))) t1 = max == null && !B.JSArray_methods.any$1([min, value], A.calculation1___isValidClampArg$closure()); else t1 = true; if (t1) A.jsThrow0(new self.Error("Expected at least one SassString or CalculationInterpolation in `" + A.IterableNullableExtension_whereNotNull([min, value, max], type$.Object).toString$0(0) + "`")); t1 = type$.Object; A.IterableNullableExtension_whereNotNull([min, value, max], t1).forEach$1(0, A.calculation1___assertCalculationValue$closure()); return new A.SassCalculation0("clamp", A.List_List$unmodifiable(A.IterableNullableExtension_whereNotNull([min, value, max], t1), t1)); }, call$1(min) { return this.call$3(min, null, null); }, call$2(min, value) { return this.call$3(min, value, null); }, "call*": "call$3", $requiredArgCount: 1, $defaultValues() { return [null, null]; }, $signature: 387 }; A.calculationClass__closure4.prototype = { call$2($self, $name) { return $self; }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 388 }; A.calculationClass__closure5.prototype = { call$1($self) { return new self.immutable.List($self.$arguments); }, $signature: 389 }; A.calculationOperationClass_closure.prototype = { call$0() { var t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.CalculationOperation", new A.calculationOperationClass__closure())), t2 = type$.String, t3 = type$.Function; A.LinkedHashMap_LinkedHashMap$_literal(["equals", new A.calculationOperationClass__closure0(), "hashCode", new A.calculationOperationClass__closure1()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass)); 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)); A.JSClassExtension_injectSuperclass(t1._as(A.SassCalculation_operateInternal0(B.CalculationOperator_IyK0, A.SassNumber_SassNumber0(1, null), A.SassNumber_SassNumber0(1, null), false, false).constructor), jsClass); return jsClass; }, $signature: 24 }; A.calculationOperationClass__closure.prototype = { call$4($self, strOperator, left, right) { var operator = A.IterableExtension_firstWhereOrNull(B.List_cUt, new A.calculationOperationClass___closure(strOperator)); if (operator == null) A.jsThrow0(new self.Error("Invalid operator: " + strOperator)); A._assertCalculationValue(left); A._assertCalculationValue(right); return A.SassCalculation_operateInternal0(operator, left, right, false, false); }, "call*": "call$4", $requiredArgCount: 4, $signature: 390 }; A.calculationOperationClass___closure.prototype = { call$1(value) { return value.operator === this.strOperator; }, $signature: 391 }; A.calculationOperationClass__closure0.prototype = { call$2($self, other) { return $self.$eq(0, other); }, $signature: 392 }; A.calculationOperationClass__closure1.prototype = { call$1($self) { return $self.get$hashCode($self); }, $signature: 393 }; A.calculationOperationClass__closure2.prototype = { call$1($self) { return $self._calculation0$_operator.operator; }, $signature: 394 }; A.calculationOperationClass__closure3.prototype = { call$1($self) { return $self._calculation0$_left; }, $signature: 219 }; A.calculationOperationClass__closure4.prototype = { call$1($self) { return $self._calculation0$_right; }, $signature: 219 }; A.calculationInterpolationClass_closure.prototype = { call$0() { var t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.CalculationInterpolation", new A.calculationInterpolationClass__closure())), t2 = type$.String, t3 = type$.Function; A.LinkedHashMap_LinkedHashMap$_literal(["equals", new A.calculationInterpolationClass__closure0(), "hashCode", new A.calculationInterpolationClass__closure1()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass)); A.LinkedHashMap_LinkedHashMap$_literal(["value", new A.calculationInterpolationClass__closure2()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass)); A.JSClassExtension_injectSuperclass(t1._as(new A.CalculationInterpolation("").constructor), jsClass); return jsClass; }, $signature: 24 }; A.calculationInterpolationClass__closure.prototype = { call$2($self, value) { return new A.CalculationInterpolation(value); }, $signature: 396 }; A.calculationInterpolationClass__closure0.prototype = { call$2($self, other) { return other instanceof A.CalculationInterpolation && $self._calculation0$_value === other._calculation0$_value; }, $signature: 397 }; A.calculationInterpolationClass__closure1.prototype = { call$1($self) { return B.JSString_methods.get$hashCode($self._calculation0$_value); }, $signature: 398 }; A.calculationInterpolationClass__closure2.prototype = { call$1($self) { return $self._calculation0$_value; }, $signature: 399 }; A.SassCalculation0.prototype = { get$isSpecialNumber() { return true; }, accept$1$1(visitor) { return visitor.visitCalculation$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertCalculation$1($name) { return this; }, plus$1(other) { if (other instanceof A.SassString0) return this.super$Value$plus0(other); throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null)); }, minus$1(other) { return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null)); }, unaryPlus$0() { return A.throwExpression(A.SassScriptException$0('Undefined operation "+' + this.toString$0(0) + '".', null)); }, unaryMinus$0() { return A.throwExpression(A.SassScriptException$0('Undefined operation "-' + this.toString$0(0) + '".', null)); }, $eq(_, other) { if (other == null) return false; return other instanceof A.SassCalculation0 && this.name === other.name && B.C_ListEquality.equals$2(0, this.$arguments, other.$arguments); }, get$hashCode(_) { return B.JSString_methods.get$hashCode(this.name) ^ B.C_ListEquality0.hash$1(this.$arguments); } }; A.SassCalculation_sign_closure0.prototype = { call$0() { return type$.SassNumber_2._as(this._0_0)._number1$_value; }, $signature: 92 }; A.SassCalculation_round_closure9.prototype = { call$0() { return this._0_0._0; }, $signature: 14 }; A.SassCalculation_round_closure10.prototype = { call$0() { return this._0_0._1; }, $signature: 28 }; A.SassCalculation_round_closure11.prototype = { call$0() { return this._0_2._readFinal$0() == null; }, $signature: 1 }; A.SassCalculation_round_closure12.prototype = { call$0() { return this._0_0._2; }, $signature: 28 }; A.SassCalculation_round_closure13.prototype = { call$0() { return this._0_5._readFinal$0() == null; }, $signature: 1 }; A.SassCalculation_round_closure14.prototype = { call$0() { return type$.SassString_2._as(this._0_1._readFinal$0())._string0$_text; }, $signature: 22 }; A.SassCalculation_round_closure15.prototype = { call$0() { return "nearest" === this._0_8._readFinal$0(); }, $signature: 1 }; A.SassCalculation_round_closure16.prototype = { call$0() { return "up" === this._0_8._readFinal$0(); }, $signature: 1 }; A.SassCalculation_round_closure17.prototype = { call$0() { return "down" === this._0_8._readFinal$0(); }, $signature: 1 }; A.SassCalculation_round_closure18.prototype = { call$0() { return "to-zero" === this._0_8._readFinal$0(); }, $signature: 1 }; A.SassCalculation__roundWithStep_closure7.prototype = { call$0() { return this._0_0._0; }, $signature: 22 }; A.SassCalculation__roundWithStep_closure6.prototype = { call$0() { return this._0_0._1; }, $signature: 92 }; A.SassCalculation__roundWithStep_closure8.prototype = { call$0() { return "nearest" === this._0_1._readFinal$0(); }, $signature: 1 }; A.SassCalculation__roundWithStep_closure9.prototype = { call$0() { return "to-zero" === this._0_1._readFinal$0(); }, $signature: 1 }; A.SassCalculation__roundWithStep_closure10.prototype = { call$0() { return this._0_2._readFinal$0() > 0; }, $signature: 1 }; A.SassCalculation__roundWithStep_closure11.prototype = { call$0() { return "up" === this._0_1._readFinal$0(); }, $signature: 1 }; A.SassCalculation__roundWithStep_closure12.prototype = { call$0() { return "down" === this._0_1._readFinal$0(); }, $signature: 1 }; A.SassCalculation__simplify_closure3.prototype = { call$0() { return "calc" === this._0_0.name; }, $signature: 1 }; A.SassCalculation__simplify_closure4.prototype = { call$0() { return type$.SassCalculation_2._as(this._0_0).$arguments; }, $signature: 138 }; A.SassCalculation__simplify_closure5.prototype = { call$0() { return J.get$length$asx(this._0_12._readFinal$0()) === 1; }, $signature: 1 }; A.SassCalculation__simplify_closure6.prototype = { call$0() { return J.$index$asx(this._0_12._readFinal$0(), 0); }, $signature: 14 }; A.SassCalculation__verifyLength_closure0.prototype = { call$1(arg) { return arg instanceof A.SassString0; }, $signature: 77 }; A.CalculationOperation0.prototype = { $eq(_, other) { if (other == null) return false; 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); }, get$hashCode(_) { return (A.Primitives_objectHashCode(this._calculation0$_operator) ^ J.get$hashCode$(this._calculation0$_left) ^ J.get$hashCode$(this._calculation0$_right)) >>> 0; }, toString$0(_) { var parenthesized = A.serializeValue0(new A.SassCalculation0("", A._setArrayType([this], type$.JSArray_Object)), true, true); return B.JSString_methods.substring$2(parenthesized, 1, parenthesized.length - 1); } }; A.CalculationOperator0.prototype = { _enumToString$0() { return "CalculationOperator." + this._name; }, toString$0(_) { return this.name; } }; A.CalculationInterpolation.prototype = { $eq(_, other) { if (other == null) return false; return other instanceof A.CalculationInterpolation && this._calculation0$_value === other._calculation0$_value; }, get$hashCode(_) { return B.JSString_methods.get$hashCode(this._calculation0$_value); }, toString$0(_) { return this._calculation0$_value; } }; A.CallableDeclaration0.prototype = { get$span(receiver) { return this.span; } }; A.Chokidar0.prototype = {}; A.ChokidarOptions0.prototype = {}; A.ChokidarWatcher0.prototype = {}; A.ClassSelector0.prototype = { $eq(_, other) { if (other == null) return false; return other instanceof A.ClassSelector0 && other.name === this.name; }, accept$1$1(visitor) { return visitor.visitClassSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, addSuffix$1(suffix) { return new A.ClassSelector0(this.name + suffix, this.span); }, get$hashCode(_) { return B.JSString_methods.get$hashCode(this.name); } }; A._CloneCssVisitor0.prototype = { visitCssAtRule$1(node) { var t1 = node.isChildless, rule = A.ModifiableCssAtRule$0(node.name, node.span, t1, node.value); return t1 ? rule : this._clone_css$_visitChildren$2(rule, node); }, visitCssComment$1(node) { return new A.ModifiableCssComment0(node.text, node.span); }, visitCssDeclaration$1(node) { return A.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap); }, visitCssImport$1(node) { return new A.ModifiableCssImport0(node.url, node.modifiers, node.span); }, visitCssKeyframeBlock$1(node) { return this._clone_css$_visitChildren$2(A.ModifiableCssKeyframeBlock$0(node.selector, node.span), node); }, visitCssMediaRule$1(node) { return this._clone_css$_visitChildren$2(A.ModifiableCssMediaRule$0(node.queries, node.span), node); }, visitCssStyleRule$1(node) { var newSelector, t1, _0_0 = this._clone_css$_oldToNewSelectors.$index(0, node._style_rule0$_selector._box0$_inner.value); if (_0_0 != null) { newSelector = _0_0; t1 = true; } else { newSelector = null; t1 = false; } if (t1) return this._clone_css$_visitChildren$2(A.ModifiableCssStyleRule$0(newSelector, node.span, node.originalSelector), node); else throw A.wrapException(A.StateError$(string$.The_Ex)); }, visitCssStylesheet$1(node) { return this._clone_css$_visitChildren$2(A.ModifiableCssStylesheet$0(node.get$span(node)), node); }, visitCssSupportsRule$1(node) { return this._clone_css$_visitChildren$2(A.ModifiableCssSupportsRule$0(node.condition, node.span), node); }, _clone_css$_visitChildren$1$2(newParent, oldParent) { var t1, t2, newChild; for (t1 = J.get$iterator$ax(oldParent.get$children(oldParent)); t1.moveNext$0();) { t2 = t1.get$current(t1); newChild = t2.accept$1(this); newChild.isGroupEnd = t2.get$isGroupEnd(); newParent.addChild$1(newChild); } return newParent; }, _clone_css$_visitChildren$2(newParent, oldParent) { return this._clone_css$_visitChildren$1$2(newParent, oldParent, type$.ModifiableCssParentNode_2); } }; A.ColorExpression0.prototype = { accept$1$1(visitor) { return visitor.visitColorExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return A.serializeValue0(this.value, true, true); }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.global_closure32.prototype = { call$1($arguments) { return A._rgb0("rgb", $arguments); }, $signature: 5 }; A.global_closure33.prototype = { call$1($arguments) { return A._rgb0("rgb", $arguments); }, $signature: 5 }; A.global_closure34.prototype = { call$1($arguments) { return A._rgbTwoArg0("rgb", $arguments); }, $signature: 5 }; A.global_closure35.prototype = { call$1($arguments) { var parsed = A._parseChannels0("rgb", A._setArrayType(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments)); return parsed instanceof A.SassString0 ? parsed : A._rgb0("rgb", type$.List_Value_2._as(parsed)); }, $signature: 5 }; A.global_closure36.prototype = { call$1($arguments) { return A._rgb0("rgba", $arguments); }, $signature: 5 }; A.global_closure37.prototype = { call$1($arguments) { return A._rgb0("rgba", $arguments); }, $signature: 5 }; A.global_closure38.prototype = { call$1($arguments) { return A._rgbTwoArg0("rgba", $arguments); }, $signature: 5 }; A.global_closure39.prototype = { call$1($arguments) { var parsed = A._parseChannels0("rgba", A._setArrayType(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments)); return parsed instanceof A.SassString0 ? parsed : A._rgb0("rgba", type$.List_Value_2._as(parsed)); }, $signature: 5 }; A.global_closure40.prototype = { call$1($arguments) { var color, t2, t1 = J.getInterceptor$asx($arguments), weight = t1.$index($arguments, 1).assertNumber$1("weight"); if (t1.$index($arguments, 0) instanceof A.SassNumber0 || t1.$index($arguments, 0).get$isSpecialNumber()) { if (weight._number1$_value !== 100 || !weight.hasUnit$1("%")) throw A.wrapException(string$.Only_oa); return A._functionString0("invert", t1.take$1($arguments, 1)); } color = t1.$index($arguments, 0).assertColor$1("color"); t1 = color.get$red(color); t2 = color.get$green(color); return A._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(color), 255 - t2, 255 - t1), color, weight); }, $signature: 5 }; A.global_closure41.prototype = { call$1($arguments) { return A._hsl0("hsl", $arguments); }, $signature: 5 }; A.global_closure42.prototype = { call$1($arguments) { return A._hsl0("hsl", $arguments); }, $signature: 5 }; A.global_closure43.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar()) return A._functionString0("hsl", $arguments); else throw A.wrapException(A.SassScriptException$0("Missing argument $lightness.", null)); }, $signature: 17 }; A.global_closure44.prototype = { call$1($arguments) { var parsed = A._parseChannels0("hsl", A._setArrayType(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments)); return parsed instanceof A.SassString0 ? parsed : A._hsl0("hsl", type$.List_Value_2._as(parsed)); }, $signature: 5 }; A.global_closure45.prototype = { call$1($arguments) { return A._hsl0("hsla", $arguments); }, $signature: 5 }; A.global_closure46.prototype = { call$1($arguments) { return A._hsl0("hsla", $arguments); }, $signature: 5 }; A.global_closure47.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar()) return A._functionString0("hsla", $arguments); else throw A.wrapException(A.SassScriptException$0("Missing argument $lightness.", null)); }, $signature: 17 }; A.global_closure48.prototype = { call$1($arguments) { var parsed = A._parseChannels0("hsla", A._setArrayType(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments)); return parsed instanceof A.SassString0 ? parsed : A._hsl0("hsla", type$.List_Value_2._as(parsed)); }, $signature: 5 }; A.global_closure49.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0) instanceof A.SassNumber0 || t1.$index($arguments, 0).get$isSpecialNumber()) return A._functionString0("grayscale", $arguments); return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0); }, $signature: 5 }; A.global_closure50.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"), degrees = A._angleValue0(t1.$index($arguments, 1), "degrees"); return color.changeHsl$1$hue(color.get$hue(color) + degrees); }, $signature: 36 }; A.global_closure51.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"), amount = t1.$index($arguments, 1).assertNumber$1("amount"); return color.changeHsl$1$lightness(B.JSNumber_methods.clamp$2(color.get$lightness(color) + amount.valueInRange$3(0, 100, "amount"), 0, 100)); }, $signature: 36 }; A.global_closure52.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"), amount = t1.$index($arguments, 1).assertNumber$1("amount"); return color.changeHsl$1$lightness(B.JSNumber_methods.clamp$2(color.get$lightness(color) - amount.valueInRange$3(0, 100, "amount"), 0, 100)); }, $signature: 36 }; A.global_closure53.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0) instanceof A.SassNumber0 || t1.$index($arguments, 0).get$isSpecialNumber()) return A._functionString0("saturate", $arguments); return new A.SassString0("saturate(" + A.serializeValue0(t1.$index($arguments, 0).assertNumber$1("amount"), false, true) + ")", false); }, $signature: 17 }; A.global_closure54.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"), amount = t1.$index($arguments, 1).assertNumber$1("amount"); return color.changeHsl$1$saturation(B.JSNumber_methods.clamp$2(color.get$saturation(color) + amount.valueInRange$3(0, 100, "amount"), 0, 100)); }, $signature: 36 }; A.global_closure55.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), color = t1.$index($arguments, 0).assertColor$1("color"), amount = t1.$index($arguments, 1).assertNumber$1("amount"); return color.changeHsl$1$saturation(B.JSNumber_methods.clamp$2(color.get$saturation(color) - amount.valueInRange$3(0, 100, "amount"), 0, 100)); }, $signature: 36 }; A.global_closure56.prototype = { call$1($arguments) { var argument = J.$index$asx($arguments, 0); if (argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0())) return A._functionString0("alpha", $arguments); return A.SassNumber_SassNumber0(argument.assertColor$1("color")._color1$_alpha, null); }, $signature: 5 }; A.global_closure57.prototype = { call$1($arguments) { var t1, argList = J.$index$asx($arguments, 0).get$asList(); if (argList.length !== 0 && B.JSArray_methods.every$1(argList, new A.global__closure0())) return A._functionString0("alpha", $arguments); t1 = argList.length; if (t1 === 0) throw A.wrapException(A.SassScriptException$0("Missing argument $color.", null)); else throw A.wrapException(A.SassScriptException$0("Only 1 argument allowed, but " + t1 + " were passed.", null)); }, $signature: 17 }; A.global__closure0.prototype = { call$1(argument) { return argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0()); }, $signature: 54 }; A.global_closure58.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0) instanceof A.SassNumber0 || t1.$index($arguments, 0).get$isSpecialNumber()) return A._functionString0("opacity", $arguments); return A.SassNumber_SassNumber0(t1.$index($arguments, 0).assertColor$1("color")._color1$_alpha, null); }, $signature: 5 }; A.module_closure12.prototype = { call$1($arguments) { var result, t2, color, t1 = J.getInterceptor$asx($arguments), weight = t1.$index($arguments, 1).assertNumber$1("weight"); if (t1.$index($arguments, 0) instanceof A.SassNumber0) { if (weight._number1$_value !== 100 || !weight.hasUnit$1("%")) throw A.wrapException(string$.Only_oa); result = A._functionString0("invert", t1.take$1($arguments, 1)); t1 = A.S(t1.$index($arguments, 0)); t2 = result.toString$0(0); A.EvaluationContext_current0().warn$2(0, "Passing a number (" + t1 + string$.x29x20to_ci + t2, B.Deprecation_LT8); return result; } color = t1.$index($arguments, 0).assertColor$1("color"); t1 = color.get$red(color); t2 = color.get$green(color); return A._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(color), 255 - t2, 255 - t1), color, weight); }, $signature: 5 }; A.module_closure13.prototype = { call$1($arguments) { var result, t2, t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0) instanceof A.SassNumber0) { result = A._functionString0("grayscale", t1.take$1($arguments, 1)); t1 = A.S(t1.$index($arguments, 0)); t2 = result.toString$0(0); A.EvaluationContext_current0().warn$2(0, "Passing a number (" + t1 + string$.x29x20to_cg + t2, B.Deprecation_LT8); return result; } return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0); }, $signature: 5 }; A.module_closure14.prototype = { call$1($arguments) { return A._hwb0($arguments); }, $signature: 5 }; A.module_closure15.prototype = { call$1($arguments) { var parsed = A._parseChannels0("hwb", A._setArrayType(["$hue", "$whiteness", "$blackness"], type$.JSArray_String), J.get$first$ax($arguments)); if (parsed instanceof A.SassString0) throw A.wrapException(A.SassScriptException$0('Expected numeric channels, got "' + parsed.toString$0(0) + '".', null)); else return A._hwb0(type$.List_Value_2._as(parsed)); }, $signature: 5 }; A.module_closure16.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber0(t1.get$whiteness(t1), "%"); }, $signature: 12 }; A.module_closure17.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber0(t1.get$blackness(t1), "%"); }, $signature: 12 }; A.module_closure18.prototype = { call$1($arguments) { var result, t1, argument = J.$index$asx($arguments, 0); if (argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0())) { result = A._functionString0("alpha", $arguments); t1 = result.toString$0(0); A.EvaluationContext_current0().warn$2(0, string$.Using_c + t1, B.Deprecation_LT8); return result; } return A.SassNumber_SassNumber0(argument.assertColor$1("color")._color1$_alpha, null); }, $signature: 5 }; A.module_closure19.prototype = { call$1($arguments) { var result, t1 = J.getInterceptor$asx($arguments); if (B.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new A.module__closure4())) { result = A._functionString0("alpha", $arguments); t1 = result.toString$0(0); A.EvaluationContext_current0().warn$2(0, string$.Using_c + t1, B.Deprecation_LT8); return result; } throw A.wrapException(A.SassScriptException$0("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed.", null)); }, $signature: 17 }; A.module__closure4.prototype = { call$1(argument) { return argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0()); }, $signature: 54 }; A.module_closure20.prototype = { call$1($arguments) { var result, t2, t1 = J.getInterceptor$asx($arguments); if (t1.$index($arguments, 0) instanceof A.SassNumber0) { result = A._functionString0("opacity", $arguments); t1 = A.S(t1.$index($arguments, 0)); t2 = result.toString$0(0); A.EvaluationContext_current0().warn$2(0, "Passing a number (" + t1 + string$.x20to_co + t2, B.Deprecation_LT8); return result; } return A.SassNumber_SassNumber0(t1.$index($arguments, 0).assertColor$1("color")._color1$_alpha, null); }, $signature: 5 }; A._red_closure0.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber0(t1.get$red(t1), null); }, $signature: 12 }; A._green_closure0.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber0(t1.get$green(t1), null); }, $signature: 12 }; A._blue_closure0.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber0(t1.get$blue(t1), null); }, $signature: 12 }; A._mix_closure0.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); return A._mixColors0(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight")); }, $signature: 36 }; A._hue_closure0.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber0(t1.get$hue(t1), "deg"); }, $signature: 12 }; A._saturation_closure0.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber0(t1.get$saturation(t1), "%"); }, $signature: 12 }; A._lightness_closure0.prototype = { call$1($arguments) { var t1 = J.get$first$ax($arguments).assertColor$1("color"); return A.SassNumber_SassNumber0(t1.get$lightness(t1), "%"); }, $signature: 12 }; A._complement_closure0.prototype = { call$1($arguments) { var color = J.$index$asx($arguments, 0).assertColor$1("color"); return color.changeHsl$1$hue(color.get$hue(color) + 180); }, $signature: 36 }; A._adjust_closure0.prototype = { call$1($arguments) { return A._updateComponents0($arguments, true, false, false); }, $signature: 36 }; A._scale_closure0.prototype = { call$1($arguments) { return A._updateComponents0($arguments, false, false, true); }, $signature: 36 }; A._change_closure0.prototype = { call$1($arguments) { return A._updateComponents0($arguments, false, true, false); }, $signature: 36 }; A._ieHexStr_closure0.prototype = { call$1($arguments) { var color = J.$index$asx($arguments, 0).assertColor$1("color"), t1 = new A._ieHexStr_closure_hexString0(); return new A.SassString0("#" + A.S(t1.call$1(A.fuzzyRound0(color._color1$_alpha * 255))) + A.S(t1.call$1(color.get$red(color))) + A.S(t1.call$1(color.get$green(color))) + A.S(t1.call$1(color.get$blue(color))), false); }, $signature: 17 }; A._ieHexStr_closure_hexString0.prototype = { call$1(component) { return B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1(component, 16), 2, "0").toUpperCase(); }, $signature: 223 }; A._updateComponents_getParam0.prototype = { call$5$assertPercent$checkPercent$checkUnitless($name, max, assertPercent, checkPercent, checkUnitless) { var t2, t3, t4, _this = this, t1 = _this.keywords.remove$1(0, $name), number = t1 == null ? null : t1.assertNumber$1($name); if (number == null) return null; t1 = _this.scale; t2 = !t1; if (t2 && checkUnitless) if (number.get$hasUnits()) { t3 = number.get$unitString(); t4 = number.unitSuggestion$1($name); A.EvaluationContext_current0().warn$2(0, "$" + $name + ": Passing a number with unit " + t3 + string$.x20is_de + t4 + string$.x0a_Morex3a, B.Deprecation_0bn); } if (t2 && checkPercent) A._checkPercent0(number, $name); if (!t2 || assertPercent) number.assertUnit$2("%", $name); if (t1) max = 100; if (!t2 || assertPercent) t1 = number.valueInRange$3(_this.change ? 0 : -max, max, $name); else { t1 = _this.change ? 0 : -max; t1 = number.valueInRangeWithUnit$4(t1, max, $name, checkPercent ? "%" : ""); } return t1; }, call$2($name, max) { return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, false, false); }, call$3$checkUnitless($name, max, checkUnitless) { return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, false, checkUnitless); }, call$3$checkPercent($name, max, checkPercent) { return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, checkPercent, false); }, call$3$assertPercent($name, max, assertPercent) { return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, assertPercent, false, false); }, $signature: 227 }; A._updateComponents_closure1.prototype = { call$1(hue) { return A._angleValue0(hue, "hue"); }, $signature: 116 }; A._updateComponents_closure2.prototype = { call$1($name) { return "$" + $name; }, $signature: 7 }; A._updateComponents_updateValue0.prototype = { call$3(current, param, max) { var t1; if (param == null) return current; if (this.change) return param; if (this.adjust) return B.JSNumber_methods.clamp$2(current + param, 0, max); t1 = param > 0 ? max - current : current; return current + t1 * (param / 100); }, $signature: 232 }; A._updateComponents_updateRgb0.prototype = { call$2(current, param) { return A.fuzzyRound0(this.updateValue.call$3(current, param, 255)); }, $signature: 238 }; A._functionString_closure0.prototype = { call$1(argument) { return A.serializeValue0(argument, false, true); }, $signature: 225 }; A._removedColorFunction_closure0.prototype = { call$1($arguments) { var t1 = this.name, t2 = J.getInterceptor$asx($arguments), t3 = A.S(t2.$index($arguments, 0)), t4 = this.negative ? "-" : ""; throw A.wrapException(A.SassScriptException$0("The function " + t1 + string$.x28__isn + t3 + ", $" + this.argument + ": " + t4 + A.S(t2.$index($arguments, 1)) + string$.x29x0a_Mor + t1, null)); }, $signature: 406 }; A._rgb_closure0.prototype = { call$1(alpha) { return A._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha"); }, $signature: 116 }; A._hsl_closure0.prototype = { call$1(alpha) { return A._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha"); }, $signature: 116 }; A._hwb_closure0.prototype = { call$1(alpha) { return A._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha"); }, $signature: 116 }; A._parseChannels_closure2.prototype = { call$0() { return this._0_0[0]; }, $signature: 31 }; A._parseChannels_closure3.prototype = { call$1(value) { return value.get$isVar(); }, $signature: 54 }; A._parseChannels_closure4.prototype = { call$0() { return type$.SassNumber_2._as(this._1_0).asSlash; }, $signature: 407 }; A.colorClass_closure.prototype = { call$0() { var t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassColor", new A.colorClass__closure())); J.get$$prototype$x(jsClass).change = A.allowInteropCaptureThisNamed("change", new A.colorClass__closure0()); A.LinkedHashMap_LinkedHashMap$_literal(["red", new A.colorClass__closure1(), "green", new A.colorClass__closure2(), "blue", new A.colorClass__closure3(), "hue", new A.colorClass__closure4(), "saturation", new A.colorClass__closure5(), "lightness", new A.colorClass__closure6(), "whiteness", new A.colorClass__closure7(), "blackness", new A.colorClass__closure8(), "alpha", new A.colorClass__closure9()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass)); A.JSClassExtension_injectSuperclass(t1._as(A.SassColor$rgb0(0, 0, 0, 1).constructor), jsClass); return jsClass; }, $signature: 24 }; A.colorClass__closure.prototype = { call$2($self, color) { var t2, t3, t4, t1 = J.getInterceptor$x(color); if (t1.get$red(color) != null) { t2 = t1.get$red(color); t2.toString; t2 = A.fuzzyRound0(t2); t3 = t1.get$green(color); t3.toString; t3 = A.fuzzyRound0(t3); t4 = t1.get$blue(color); t4.toString; t4 = A.fuzzyRound0(t4); t1 = t1.get$alpha(color); return A.SassColor$rgb0(t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1); } else if (t1.get$saturation(color) != null) { t2 = t1.get$hue(color); t2.toString; t3 = t1.get$saturation(color); t3.toString; t4 = t1.get$lightness(color); t4.toString; t1 = t1.get$alpha(color); return A.SassColor$hsl(t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1); } else { t2 = t1.get$hue(color); t2.toString; t3 = t1.get$whiteness(color); t3.toString; t4 = t1.get$blackness(color); t4.toString; t1 = t1.get$alpha(color); return A.SassColor_SassColor$hwb0(t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1); } }, $signature: 408 }; A.colorClass__closure0.prototype = { call$2($self, options) { var t2, t3, t4, t1 = J.getInterceptor$x(options); if (t1.get$whiteness(options) != null || t1.get$blackness(options) != null) { t2 = t1.get$hue(options); if (t2 == null) t2 = $self.get$hue($self); t3 = t1.get$whiteness(options); if (t3 == null) t3 = $self.get$whiteness($self); t4 = t1.get$blackness(options); if (t4 == null) t4 = $self.get$blackness($self); t1 = t1.get$alpha(options); return $self.changeHwb$4$alpha$blackness$hue$whiteness(t1 == null ? $self._color1$_alpha : t1, t4, t2, t3); } else if (t1.get$hue(options) != null || t1.get$saturation(options) != null || t1.get$lightness(options) != null) { t2 = t1.get$hue(options); if (t2 == null) t2 = $self.get$hue($self); t3 = t1.get$saturation(options); if (t3 == null) t3 = $self.get$saturation($self); t4 = t1.get$lightness(options); if (t4 == null) t4 = $self.get$lightness($self); t1 = t1.get$alpha(options); return $self.changeHsl$4$alpha$hue$lightness$saturation(t1 == null ? $self._color1$_alpha : t1, t2, t4, t3); } else if (t1.get$red(options) != null || t1.get$green(options) != null || t1.get$blue(options) != null) { t2 = A.NullableExtension_andThen0(t1.get$red(options), A.number2__fuzzyRound$closure()); if (t2 == null) t2 = $self.get$red($self); t3 = A.NullableExtension_andThen0(t1.get$green(options), A.number2__fuzzyRound$closure()); if (t3 == null) t3 = $self.get$green($self); t4 = A.NullableExtension_andThen0(t1.get$blue(options), A.number2__fuzzyRound$closure()); if (t4 == null) t4 = $self.get$blue($self); t1 = t1.get$alpha(options); return $self.changeRgb$4$alpha$blue$green$red(t1 == null ? $self._color1$_alpha : t1, t4, t3, t2); } else { t1 = t1.get$alpha(options); return $self.changeAlpha$1(t1 == null ? $self._color1$_alpha : t1); } }, $signature: 409 }; A.colorClass__closure1.prototype = { call$1($self) { return $self.get$red($self); }, $signature: 131 }; A.colorClass__closure2.prototype = { call$1($self) { return $self.get$green($self); }, $signature: 131 }; A.colorClass__closure3.prototype = { call$1($self) { return $self.get$blue($self); }, $signature: 131 }; A.colorClass__closure4.prototype = { call$1($self) { return $self.get$hue($self); }, $signature: 64 }; A.colorClass__closure5.prototype = { call$1($self) { return $self.get$saturation($self); }, $signature: 64 }; A.colorClass__closure6.prototype = { call$1($self) { return $self.get$lightness($self); }, $signature: 64 }; A.colorClass__closure7.prototype = { call$1($self) { return $self.get$whiteness($self); }, $signature: 64 }; A.colorClass__closure8.prototype = { call$1($self) { return $self.get$blackness($self); }, $signature: 64 }; A.colorClass__closure9.prototype = { call$1($self) { return $self._color1$_alpha; }, $signature: 64 }; A._Channels.prototype = {}; A._NodeSassColor.prototype = {}; A.legacyColorClass_closure.prototype = { call$6(thisArg, redOrArgb, green, blue, alpha, dartValue) { var red, t1, t2, t3, t4; if (dartValue != null) { J.set$dartValue$x(thisArg, dartValue); return; } if (green == null || blue == null) { A._asInt(redOrArgb); alpha = B.JSInt_methods._shrOtherPositive$1(redOrArgb, 24) / 255; red = B.JSInt_methods.$mod(B.JSInt_methods._shrOtherPositive$1(redOrArgb, 16), 256); green = B.JSInt_methods.$mod(B.JSInt_methods._shrOtherPositive$1(redOrArgb, 8), 256); blue = B.JSInt_methods.$mod(redOrArgb, 256); } else { redOrArgb.toString; red = redOrArgb; } t1 = A.fuzzyRound0(B.JSNumber_methods.clamp$2(red, 0, 255)); t2 = A.fuzzyRound0(B.JSNumber_methods.clamp$2(green, 0, 255)); t3 = A.fuzzyRound0(B.JSNumber_methods.clamp$2(blue, 0, 255)); t4 = alpha == null ? null : B.JSNumber_methods.clamp$2(alpha, 0, 1); J.set$dartValue$x(thisArg, A.SassColor$rgb0(t1, t2, t3, t4 == null ? 1 : t4)); }, call$2(thisArg, redOrArgb) { return this.call$6(thisArg, redOrArgb, null, null, null, null); }, call$3(thisArg, redOrArgb, green) { return this.call$6(thisArg, redOrArgb, green, null, null, null); }, call$4(thisArg, redOrArgb, green, blue) { return this.call$6(thisArg, redOrArgb, green, blue, null, null); }, call$5(thisArg, redOrArgb, green, blue, alpha) { return this.call$6(thisArg, redOrArgb, green, blue, alpha, null); }, "call*": "call$6", $requiredArgCount: 2, $defaultValues() { return [null, null, null, null]; }, $signature: 412 }; A.legacyColorClass_closure0.prototype = { call$1(thisArg) { return J.get$red$x(J.get$dartValue$x(thisArg)); }, $signature: 133 }; A.legacyColorClass_closure1.prototype = { call$1(thisArg) { return J.get$green$x(J.get$dartValue$x(thisArg)); }, $signature: 133 }; A.legacyColorClass_closure2.prototype = { call$1(thisArg) { return J.get$blue$x(J.get$dartValue$x(thisArg)); }, $signature: 133 }; A.legacyColorClass_closure3.prototype = { call$1(thisArg) { return J.get$dartValue$x(thisArg)._color1$_alpha; }, $signature: 414 }; A.legacyColorClass_closure4.prototype = { call$2(thisArg, value) { var t1 = J.getInterceptor$x(thisArg); t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$red(A.fuzzyRound0(B.JSNumber_methods.clamp$2(value, 0, 255)))); }, $signature: 107 }; A.legacyColorClass_closure5.prototype = { call$2(thisArg, value) { var t1 = J.getInterceptor$x(thisArg); t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$green(A.fuzzyRound0(B.JSNumber_methods.clamp$2(value, 0, 255)))); }, $signature: 107 }; A.legacyColorClass_closure6.prototype = { call$2(thisArg, value) { var t1 = J.getInterceptor$x(thisArg); t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$blue(A.fuzzyRound0(B.JSNumber_methods.clamp$2(value, 0, 255)))); }, $signature: 107 }; A.legacyColorClass_closure7.prototype = { call$2(thisArg, value) { var t1 = J.getInterceptor$x(thisArg); t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$alpha(B.JSNumber_methods.clamp$2(value, 0, 1))); }, $signature: 107 }; A.SassColor0.prototype = { get$red(_) { var t1; if (this._color1$_red == null) this._color1$_hslToRgb$0(); t1 = this._color1$_red; t1.toString; return t1; }, get$green(_) { var t1; if (this._color1$_green == null) this._color1$_hslToRgb$0(); t1 = this._color1$_green; t1.toString; return t1; }, get$blue(_) { var t1; if (this._color1$_blue == null) this._color1$_hslToRgb$0(); t1 = this._color1$_blue; t1.toString; return t1; }, get$hue(_) { var t1; if (this._color1$_hue == null) this._color1$_rgbToHsl$0(); t1 = this._color1$_hue; t1.toString; return t1; }, get$saturation(_) { var t1; if (this._color1$_saturation == null) this._color1$_rgbToHsl$0(); t1 = this._color1$_saturation; t1.toString; return t1; }, get$lightness(_) { var t1; if (this._color1$_lightness == null) this._color1$_rgbToHsl$0(); t1 = this._color1$_lightness; t1.toString; return t1; }, get$whiteness(_) { var _this = this; return Math.min(Math.min(_this.get$red(_this), _this.get$green(_this)), _this.get$blue(_this)) / 255 * 100; }, get$blackness(_) { var _this = this; return 100 - Math.max(Math.max(_this.get$red(_this), _this.get$green(_this)), _this.get$blue(_this)) / 255 * 100; }, accept$1$1(visitor) { return visitor.visitColor$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertColor$1($name) { return this; }, changeRgb$4$alpha$blue$green$red(alpha, blue, green, red) { var _this = this, t1 = red == null ? _this.get$red(_this) : red, t2 = green == null ? _this.get$green(_this) : green, t3 = blue == null ? _this.get$blue(_this) : blue; return A.SassColor$rgb0(t1, t2, t3, alpha == null ? _this._color1$_alpha : alpha); }, changeRgb$3$blue$green$red(blue, green, red) { return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red); }, changeRgb$1$alpha(alpha) { return this.changeRgb$4$alpha$blue$green$red(alpha, null, null, null); }, changeRgb$1$blue(blue) { return this.changeRgb$4$alpha$blue$green$red(null, blue, null, null); }, changeRgb$1$green(green) { return this.changeRgb$4$alpha$blue$green$red(null, null, green, null); }, changeRgb$1$red(red) { return this.changeRgb$4$alpha$blue$green$red(null, null, null, red); }, changeHsl$4$alpha$hue$lightness$saturation(alpha, hue, lightness, saturation) { var _this = this, t1 = hue == null ? _this.get$hue(_this) : hue, t2 = saturation == null ? _this.get$saturation(_this) : saturation, t3 = lightness == null ? _this.get$lightness(_this) : lightness; return A.SassColor$hsl(t1, t2, t3, alpha == null ? _this._color1$_alpha : alpha); }, changeHsl$1$saturation(saturation) { return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation); }, changeHsl$1$lightness(lightness) { return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null); }, changeHsl$1$hue(hue) { return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null); }, changeHwb$4$alpha$blackness$hue$whiteness(alpha, blackness, hue, whiteness) { var t1 = hue == null ? this.get$hue(this) : hue; return A.SassColor_SassColor$hwb0(t1, whiteness, blackness, alpha); }, changeAlpha$1(alpha) { var _this = this; return new A.SassColor0(_this._color1$_red, _this._color1$_green, _this._color1$_blue, _this._color1$_hue, _this._color1$_saturation, _this._color1$_lightness, A.fuzzyAssertRange0(alpha, 0, 1, "alpha"), null); }, plus$1(other) { if (!(other instanceof A.SassNumber0) && !(other instanceof A.SassColor0)) return this.super$Value$plus0(other); throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null)); }, minus$1(other) { if (!(other instanceof A.SassNumber0) && !(other instanceof A.SassColor0)) return this.super$Value$minus0(other); throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null)); }, dividedBy$1(other) { if (!(other instanceof A.SassNumber0) && !(other instanceof A.SassColor0)) return this.super$Value$dividedBy0(other); throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " / " + other.toString$0(0) + '".', null)); }, $eq(_, other) { var _this = this; if (other == null) return false; return other instanceof A.SassColor0 && other.get$red(other) === _this.get$red(_this) && other.get$green(other) === _this.get$green(_this) && other.get$blue(other) === _this.get$blue(_this) && other._color1$_alpha === _this._color1$_alpha; }, get$hashCode(_) { var _this = this; return B.JSInt_methods.get$hashCode(_this.get$red(_this)) ^ B.JSInt_methods.get$hashCode(_this.get$green(_this)) ^ B.JSInt_methods.get$hashCode(_this.get$blue(_this)) ^ B.JSNumber_methods.get$hashCode(_this._color1$_alpha); }, _color1$_rgbToHsl$0() { var t2, lightness, _this = this, scaledRed = _this.get$red(_this) / 255, scaledGreen = _this.get$green(_this) / 255, scaledBlue = _this.get$blue(_this) / 255, max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue), min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue), delta = max - min, t1 = max === min; if (t1) _this._color1$_hue = 0; else if (max === scaledRed) _this._color1$_hue = B.JSNumber_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360); else if (max === scaledGreen) _this._color1$_hue = B.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360); else if (max === scaledBlue) _this._color1$_hue = B.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360); t2 = max + min; lightness = 50 * t2; _this._color1$_lightness = lightness; if (t1) _this._color1$_saturation = 0; else { t1 = 100 * delta; if (lightness < 50) _this._color1$_saturation = t1 / t2; else _this._color1$_saturation = t1 / (2 - max - min); } }, _color1$_hslToRgb$0() { var _this = this, scaledHue = _this.get$hue(_this) / 360, scaledSaturation = _this.get$saturation(_this) / 100, scaledLightness = _this.get$lightness(_this) / 100, m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation, m1 = scaledLightness * 2 - m2; _this._color1$_red = A.fuzzyRound0(A.SassColor__hueToRgb0(m1, m2, scaledHue + 0.3333333333333333) * 255); _this._color1$_green = A.fuzzyRound0(A.SassColor__hueToRgb0(m1, m2, scaledHue) * 255); _this._color1$_blue = A.fuzzyRound0(A.SassColor__hueToRgb0(m1, m2, scaledHue - 0.3333333333333333) * 255); } }; A.SassColor_SassColor$hwb_toRgb0.prototype = { call$1(hue) { return A.fuzzyRound0((A.SassColor__hueToRgb0(0, 1, hue) * this.factor + this._box_0.scaledWhiteness) * 255); }, $signature: 210 }; A._ColorFormatEnum0.prototype = { toString$0(_) { return this._color1$_name; } }; A.SpanColorFormat0.prototype = {}; A.Combinator0.prototype = { _enumToString$0() { return "Combinator." + this._name; }, toString$0(_) { return this._combinator0$_text; } }; A.ModifiableCssComment0.prototype = { accept$1$1(visitor) { return visitor.visitCssComment$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, $isCssComment0: 1, get$span(receiver) { return this.span; } }; A.compileAsync_closure.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.NodeCompileResult), $async$returnValue, $async$self = this, t5, t6, t7, t8, t9, t10, t11, result, t1, t2, t3, t4; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.options; t2 = t1 == null; t3 = t2 ? null : J.get$loadPaths$x(t1); t4 = t2 ? null : J.get$quietDeps$x(t1); if (t4 == null) t4 = false; t5 = A._parseOutputStyle0(t2 ? null : J.get$style$x(t1)); t6 = t2 ? null : J.get$verbose$x(t1); if (t6 == null) t6 = false; t7 = t2 ? null : J.get$charset$x(t1); if (t7 == null) t7 = true; t8 = t2 ? null : J.get$sourceMap$x(t1); if (t8 == null) t8 = false; t9 = t2 ? null : J.get$logger$x(t1); t9 = new A.JSToDartLogger(t9, new A.StderrLogger0($async$self.color), $async$self.ascii); if (t2) t10 = null; else { t10 = J.get$importers$x(t1); t10 = t10 == null ? null : J.map$1$1$ax(t10, new A.compileAsync__closure(), type$.AsyncImporter); } t11 = A._parseFunctions0(t2 ? null : J.get$functions$x(t1), true); $async$goto = 3; return A._asyncAwait(A.compileAsync0($async$self.path, t7, null, t11, null, A.AsyncImportCache$(t10, t3, t9, null), null, null, t9, null, t4, t8, t5, null, true, t6), $async$call$0); case 3: // returning from await. result = $async$result; t1 = t2 ? null : J.get$sourceMapIncludeSources$x(t1); $async$returnValue = A._convertResult(result, t1 == null ? false : t1); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 230 }; A.compileAsync__closure.prototype = { call$1(importer) { return A._parseAsyncImporter(importer); }, $signature: 231 }; A.compileStringAsync_closure.prototype = { call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.NodeCompileResult), $async$returnValue, $async$self = this, t7, t8, t9, t10, t11, t12, t13, t14, result, t1, t2, t3, t4, t5, t6; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = $async$self.options; t2 = t1 == null; t3 = A.parseSyntax(t2 ? null : J.get$syntax$x(t1)); t4 = t2 ? null : A.NullableExtension_andThen0(J.get$url$x(t1), A.utils1__jsToDartUrl$closure()); t5 = t2 ? null : J.get$loadPaths$x(t1); t6 = t2 ? null : J.get$quietDeps$x(t1); if (t6 == null) t6 = false; t7 = A._parseOutputStyle0(t2 ? null : J.get$style$x(t1)); t8 = t2 ? null : J.get$verbose$x(t1); if (t8 == null) t8 = false; t9 = t2 ? null : J.get$charset$x(t1); if (t9 == null) t9 = true; t10 = t2 ? null : J.get$sourceMap$x(t1); if (t10 == null) t10 = false; t11 = t2 ? null : J.get$logger$x(t1); t11 = new A.JSToDartLogger(t11, new A.StderrLogger0($async$self.color), $async$self.ascii); if (t2) t12 = null; else { t12 = J.get$importers$x(t1); t12 = t12 == null ? null : J.map$1$1$ax(t12, new A.compileStringAsync__closure(), type$.AsyncImporter); } t13 = t2 ? null : A.NullableExtension_andThen0(J.get$importer$x(t1), new A.compileStringAsync__closure0()); if (t13 == null) t13 = (t2 ? null : J.get$url$x(t1)) == null ? new A.NoOpImporter0() : null; t14 = A._parseFunctions0(t2 ? null : J.get$functions$x(t1), true); $async$goto = 3; return A._asyncAwait(A.compileStringAsync0($async$self.text, t9, t14, A.AsyncImportCache$(t12, t5, t11, null), t13, null, null, t11, null, t6, t10, t7, t3, t4, true, t8), $async$call$0); case 3: // returning from await. result = $async$result; t1 = t2 ? null : J.get$sourceMapIncludeSources$x(t1); $async$returnValue = A._convertResult(result, t1 == null ? false : t1); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$0, $async$completer); }, $signature: 230 }; A.compileStringAsync__closure.prototype = { call$1(importer) { return A._parseAsyncImporter(importer); }, $signature: 231 }; A.compileStringAsync__closure0.prototype = { call$1(importer) { return A._parseAsyncImporter(importer); }, $signature: 418 }; A._wrapAsyncSassExceptions_closure.prototype = { call$1(error) { var t1; if (error instanceof A.SassException0) t1 = A.throwNodeException(error, this.ascii, this.color, null); else t1 = A.jsThrow(error == null ? type$.Object._as(error) : error); return t1; }, $signature: 419 }; A._simplifyValue_closure.prototype = { call$0() { return this._0_0._0; }, $signature: 22 }; A._simplifyValue_closure0.prototype = { call$0() { return "calc" === this._0_1._readFinal$0(); }, $signature: 1 }; A._simplifyValue_closure1.prototype = { call$0() { return this._0_0._1; }, $signature: 138 }; A._simplifyValue_closure2.prototype = { call$0() { return J.get$length$asx(this._0_4._readFinal$0()); }, $signature: 3 }; A._simplifyValue_closure3.prototype = { call$0() { return J.$index$asx(this._0_4._readFinal$0(), 0); }, $signature: 14 }; A._simplifyValue_closure4.prototype = { call$0() { return "clamp" === this._0_1._readFinal$0(); }, $signature: 1 }; A._parseFunctions_closure0.prototype = { call$2(signature, callback) { var callable, t1 = this.result; if (!this.asynch) { callable = A._Cell$(); callable._value = A.Callable_Callable$fromSignature(signature, new A._parseFunctions__closure2(callback, callable), true); t1.push(callable._readLocal$0()); } else { callable = A._Cell$(); callable._value = A.AsyncCallable_AsyncCallable$fromSignature(signature, new A._parseFunctions__closure3(callback, callable), true); t1.push(callable._readLocal$0()); } }, $signature: 135 }; A._parseFunctions__closure2.prototype = { call$1($arguments) { var t1, t2, _s42_ = string$.Invali, result = A.wrapJSExceptions(new A._parseFunctions___closure6(this.callback, $arguments)); if (result instanceof A.Value0) return A._simplifyValue(result); t1 = result != null && result instanceof self.Promise; t2 = this.callable; if (t1) throw A.wrapException(_s42_ + J.get$name$x(t2.readLocal$0()) + '":\nPromises may only be returned for sass.compileAsync() and sass.compileStringAsync().'); else throw A.wrapException(_s42_ + J.get$name$x(t2.readLocal$0()) + '": ' + A.S(result) + " is not a sass.Value."); }, $signature: 5 }; A._parseFunctions___closure6.prototype = { call$0() { return type$.Function._as(this.callback).call$1(A.toJSArray(this.$arguments)); }, $signature: 58 }; A._parseFunctions__closure3.prototype = { call$1($arguments) { return this.$call$body$_parseFunctions__closure0($arguments); }, $call$body$_parseFunctions__closure0($arguments) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$self = this, result; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start result = A.wrapJSExceptions(new A._parseFunctions___closure5($async$self.callback, $arguments)); $async$goto = result != null && result instanceof self.Promise ? 3 : 4; break; case 3: // then $async$goto = 5; return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.Object), $async$call$1); case 5: // returning from await. result = $async$result; case 4: // join if (result instanceof A.Value0) { $async$returnValue = A._simplifyValue(result); // goto return $async$goto = 1; break; } throw A.wrapException(string$.Invali + J.get$name$x($async$self.callable.readLocal$0()) + '": ' + A.S(result) + " is not a sass.Value."); case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 99 }; A._parseFunctions___closure5.prototype = { call$0() { return type$.Function._as(this.callback).call$1(A.toJSArray(this.$arguments)); }, $signature: 58 }; A._compileStylesheet_closure1.prototype = { call$1(url) { 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); }, $signature: 7 }; A.CompileOptions.prototype = {}; A.CompileStringOptions.prototype = {}; A.NodeCompileResult.prototype = {}; A.CompileResult0.prototype = {}; A.ComplexSassNumber0.prototype = { get$numeratorUnits(_) { return this._complex0$_numeratorUnits; }, get$denominatorUnits(_) { return this._complex0$_denominatorUnits; }, get$hasUnits() { return true; }, get$hasComplexUnits() { return true; }, hasUnit$1(unit) { return false; }, compatibleWithUnit$1(unit) { return false; }, hasPossiblyCompatibleUnits$1(other) { throw A.wrapException(A.UnimplementedError$(string$.Comple)); }, withValue$1(value) { return new A.ComplexSassNumber0(this._complex0$_numeratorUnits, this._complex0$_denominatorUnits, value, null); }, withSlash$2(numerator, denominator) { return new A.ComplexSassNumber0(this._complex0$_numeratorUnits, this._complex0$_denominatorUnits, this._number1$_value, new A._Record_2(numerator, denominator)); } }; A.ComplexSelector0.prototype = { get$specificity() { var result, _this = this, value = _this._complex$__ComplexSelector_specificity_FI; if (value === $) { result = B.JSArray_methods.fold$2(_this.components, 0, new A.ComplexSelector_specificity_closure0()); _this._complex$__ComplexSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI(); _this._complex$__ComplexSelector_specificity_FI = result; value = result; } return value; }, get$singleCompound() { var _0_0, _0_4, selector, t1; if (this.leadingCombinators.length !== 0) return null; _0_0 = this.components; _0_4 = A._InitializedCell$(new A.ComplexSelector_singleCompound_closure0(_0_0)); $label0$0: { if (_0_0.length === 1) { selector = _0_4._readFinal$0().selector; t1 = _0_4._readFinal$0().combinators.length <= 0; } else { selector = null; t1 = false; } if (t1) { t1 = selector; break $label0$0; } t1 = null; break $label0$0; } return t1; }, accept$1$1(visitor) { return visitor.visitComplexSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, isSuperselector$1(other) { return this.leadingCombinators.length === 0 && other.leadingCombinators.length === 0 && A.complexIsSuperselector0(this.components, other.components); }, withAdditionalCombinators$1(combinators) { var _0_0, _0_1, initial, last, t1, t2, _this = this, _null = null; if (combinators.length === 0) return _this; _0_0 = _this.components; _0_1 = A._InitializedCell$(new A.ComplexSelector_withAdditionalCombinators_closure0(_0_0)); $label0$0: { if (_0_1._readFinal$0() >= 1) { initial = B.JSArray_methods.sublist$2(_0_0, 0, _0_1._readFinal$0() - 1); last = _0_0[_0_1._readFinal$0() - 1]; last = last; t1 = true; } else { last = _null; initial = last; t1 = false; } if (t1) { t1 = A.List_List$of(initial, true, type$.ComplexSelectorComponent_2); t1.push(last.withAdditionalCombinators$1(combinators)); t2 = _this.lineBreak || false; t2 = A.ComplexSelector$0(_this.leadingCombinators, t1, _this.span, t2); t1 = t2; break $label0$0; } if (_0_1._readFinal$0() <= 0) { t1 = A.List_List$of(_this.leadingCombinators, true, type$.CssValue_Combinator_2); B.JSArray_methods.addAll$1(t1, combinators); t2 = _this.lineBreak || false; t2 = A.ComplexSelector$0(t1, B.List_empty13, _this.span, t2); t1 = t2; break $label0$0; } t1 = _null; } return t1; }, concatenate$3$forceLineBreak(child, span, forceLineBreak) { var t2, _0_1, initial, last, t3, t4, _this = this, t1 = child.leadingCombinators, _0_0 = _this.components; if (t1.length === 0) { t1 = A.List_List$of(_0_0, true, type$.ComplexSelectorComponent_2); B.JSArray_methods.addAll$1(t1, child.components); t2 = _this.lineBreak || child.lineBreak || forceLineBreak; return A.ComplexSelector$0(_this.leadingCombinators, t1, span, t2); } else { _0_1 = A._InitializedCell$(new A.ComplexSelector_concatenate_closure0(_0_0)); if (_0_1._readFinal$0() >= 1) { initial = B.JSArray_methods.sublist$2(_0_0, 0, _0_1._readFinal$0() - 1); last = _0_0[_0_1._readFinal$0() - 1]; last = last; t2 = true; } else { initial = null; last = null; t2 = false; } t3 = _this.leadingCombinators; t4 = child.components; if (t2) { t2 = A.List_List$of(initial, true, type$.ComplexSelectorComponent_2); t2.push(last.withAdditionalCombinators$1(t1)); B.JSArray_methods.addAll$1(t2, t4); return A.ComplexSelector$0(t3, t2, span, _this.lineBreak || child.lineBreak || forceLineBreak); } else { t2 = A.List_List$of(t3, true, type$.CssValue_Combinator_2); B.JSArray_methods.addAll$1(t2, t1); return A.ComplexSelector$0(t2, t4, span, _this.lineBreak || child.lineBreak || forceLineBreak); } } }, concatenate$2(child, span) { return this.concatenate$3$forceLineBreak(child, span, false); }, get$hashCode(_) { return B.C_ListEquality0.hash$1(this.leadingCombinators) ^ B.C_ListEquality0.hash$1(this.components); }, $eq(_, other) { if (other == null) return false; 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); } }; A.ComplexSelector_specificity_closure0.prototype = { call$2(sum, component) { return sum + component.selector.get$specificity(); }, $signature: 421 }; A.ComplexSelector_singleCompound_closure0.prototype = { call$0() { return this._0_0[0]; }, $signature: 422 }; A.ComplexSelector_withAdditionalCombinators_closure0.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A.ComplexSelector_concatenate_closure0.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A.ComplexSelectorComponent0.prototype = { withAdditionalCombinators$1(combinators) { var t1, t2, _this = this; if (combinators.length === 0) t1 = _this; else { t1 = type$.CssValue_Combinator_2; t2 = A.List_List$of(_this.combinators, true, t1); B.JSArray_methods.addAll$1(t2, combinators); t1 = new A.ComplexSelectorComponent0(_this.selector, A.List_List$unmodifiable(t2, t1), _this.span); } return t1; }, get$hashCode(_) { return B.C_ListEquality0.hash$1(this.selector.components) ^ B.C_ListEquality0.hash$1(this.combinators); }, $eq(_, other) { var t1; if (other == null) return false; if (other instanceof A.ComplexSelectorComponent0) { t1 = B.C_ListEquality.equals$2(0, this.selector.components, other.selector.components); t1 = t1 && B.C_ListEquality.equals$2(0, this.combinators, other.combinators); } else t1 = false; return t1; }, toString$0(_) { var t1 = this.combinators; 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, ""); } }; A.ComplexSelectorComponent_toString_closure0.prototype = { call$1(combinator) { return " " + combinator.toString$0(0); }, $signature: 423 }; A.CompoundSelector0.prototype = { get$specificity() { var result, _this = this, value = _this._compound$__CompoundSelector_specificity_FI; if (value === $) { result = B.JSArray_methods.fold$2(_this.components, 0, new A.CompoundSelector_specificity_closure0()); _this._compound$__CompoundSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI(); _this._compound$__CompoundSelector_specificity_FI = result; value = result; } return value; }, accept$1$1(visitor) { return visitor.visitCompoundSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, get$hashCode(_) { return B.C_ListEquality0.hash$1(this.components); }, $eq(_, other) { if (other == null) return false; return other instanceof A.CompoundSelector0 && B.C_ListEquality.equals$2(0, this.components, other.components); } }; A.CompoundSelector_specificity_closure0.prototype = { call$2(sum, component) { return sum + component.get$specificity(); }, $signature: 424 }; A.Configuration0.prototype = { throughForward$1($forward) { var _0_0, prefix, t1, _1_0, shownVariables, _2_0, hiddenVariables, newValues = this._configuration0$_values; if (newValues.get$isEmpty(newValues)) return B.Configuration_Map_empty_null0; _0_0 = $forward.prefix; if (_0_0 != null) { prefix = _0_0; t1 = true; } else { prefix = null; t1 = false; } if (t1) newValues = new A.UnprefixedMapView0(newValues, prefix, type$.UnprefixedMapView_ConfiguredValue_2); _1_0 = $forward.shownVariables; if (_1_0 != null) { shownVariables = _1_0; t1 = true; } else { shownVariables = null; t1 = false; } if (t1) newValues = new A.LimitedMapView0(newValues, shownVariables._base.intersection$1(new A.MapKeySet(newValues, type$.MapKeySet_nullable_Object)), type$.LimitedMapView_String_ConfiguredValue_2); else { _2_0 = $forward.hiddenVariables; if (_2_0 != null) { hiddenVariables = _2_0; t1 = true; } else { hiddenVariables = null; t1 = false; } if (t1) { t1 = hiddenVariables._base; t1 = t1.get$isNotEmpty(t1); } else t1 = false; if (t1) newValues = A.LimitedMapView$blocklist0(newValues, hiddenVariables, type$.String, type$.ConfiguredValue_2); } return this._configuration0$_withValues$1(newValues); }, _configuration0$_withValues$1(values) { var t1 = this._configuration0$__originalConfiguration; return new A.Configuration0(values, t1 == null ? this : t1); }, toString$0(_) { var t2, t3, $name, value, t1 = A._setArrayType([], type$.JSArray_String); 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();) { t3 = t2.get$current(t2); $name = t3._0; value = t3._1; t1.push("$" + $name + ": " + value.toString$0(0)); } return "(" + B.JSArray_methods.join$1(t1, ",") + ")"; } }; A.ExplicitConfiguration0.prototype = { _configuration0$_withValues$1(values) { var t1 = this._configuration0$__originalConfiguration; if (t1 == null) t1 = this; return new A.ExplicitConfiguration0(this.nodeWithSpan, values, t1); } }; A.ConfiguredValue0.prototype = { toString$0(_) { return A.serializeValue0(this.value, true, true); } }; A.ConfiguredVariable0.prototype = { toString$0(_) { var t1 = this.expression.toString$0(0), t2 = this.isGuarded ? " !default" : ""; return "$" + this.name + ": " + t1 + t2; }, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.ContentBlock0.prototype = { accept$1$1(visitor) { return visitor.visitContentBlock$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t2, t1 = this.$arguments; t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")"; t2 = this.children; return t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}"); } }; A.ContentRule0.prototype = { accept$1$1(visitor) { return visitor.visitContentRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.$arguments; return t1.get$isEmpty(t1) ? "@content;" : "@content(" + t1.toString$0(0) + ");"; }, $isAstNode0: 1, $isStatement0: 1, get$span(receiver) { return this.span; } }; A._disallowedFunctionNames_closure0.prototype = { call$1($function) { return $function.name; }, $signature: 425 }; A.CssParser0.prototype = { get$plainCss() { return true; }, silentComment$0() { var t1 = this.scanner, t2 = t1._string_scanner$_position; this.super$Parser$silentComment0(); this.error$2(0, string$.Silent, t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, atRule$2$root(child, root) { var $name, _0_0, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$1(64); $name = _this.interpolatedIdentifier$0(); _this.whitespace$0(); _0_0 = $name.get$asPlain(); $label0$0: { 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) _this._css$_forbiddenAtRoot$1(start); if ("import" === _0_0) { t1 = _this._css$_cssImportRule$1(start); break $label0$0; } if ("media" === _0_0) { t1 = _this.mediaRule$1(start); break $label0$0; } if ("-moz-document" === _0_0) { t1 = _this.mozDocumentRule$2(start, $name); break $label0$0; } if ("supports" === _0_0) { t1 = _this.supportsRule$1(start); break $label0$0; } t1 = _this.unknownAtRule$2(start, $name); break $label0$0; } return t1; }, _css$_forbiddenAtRoot$1(start) { this.almostAnyValue$0(); this.error$2(0, "This at-rule isn't allowed in plain CSS.", this.scanner.spanFrom$1(start)); }, _css$_cssImportRule$1(start) { var t2, urlSpan, modifiers, _this = this, t1 = _this.scanner, urlStart = new A._SpanScannerState(t1, t1._string_scanner$_position), _0_0 = t1.peekChar$0(); $label0$0: { if (117 === _0_0 || 85 === _0_0) { t2 = _this.dynamicUrl$0(); break $label0$0; } t2 = new A.StringExpression0(_this.interpolatedString$0().asInterpolation$1$static(true), false); break $label0$0; } urlSpan = t1.spanFrom$1(urlStart); _this.whitespace$0(); modifiers = _this.tryImportModifiers$0(); _this.expectStatementSeparator$1("@import rule"); t2 = A._setArrayType([new A.StaticImport0(A.Interpolation$0(A._setArrayType([t2], type$.JSArray_Object), urlSpan), modifiers, t1.spanFrom$1(urlStart))], type$.JSArray_Import_2); t1 = t1.spanFrom$1(start); return new A.ImportRule0(A.List_List$unmodifiable(t2, type$.Import_2), t1); }, parentheses$0() { var expression, t1 = this.scanner, t2 = t1._string_scanner$_position; t1.expectChar$1(40); this.whitespace$0(); expression = this.expressionUntilComma$0(); t1.expectChar$1(41); return new A.ParenthesizedExpression0(expression, t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, identifierLike$0() { var specialFunction, t2, allowEmptySecondArg, $arguments, t3, t4, _this = this, _null = null, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), identifier = _this.interpolatedIdentifier$0(), plain = identifier.get$asPlain(), lower = plain.toLowerCase(), _0_0 = _this.trySpecialFunction$2(lower, start); if (_0_0 != null) { specialFunction = _0_0; t2 = true; } else { specialFunction = _null; t2 = false; } if (t2) return specialFunction; t2 = t1._string_scanner$_position; if (t1.scanChar$1(46)) return _this.namespacedExpression$2(plain, start); if (!t1.scanChar$1(40)) return new A.StringExpression0(identifier, false); allowEmptySecondArg = lower === "var"; $arguments = A._setArrayType([], type$.JSArray_Expression_2); if (!t1.scanChar$1(41)) { do { _this.whitespace$0(); if (allowEmptySecondArg && $arguments.length === 1 && t1.peekChar$0() === 41) { t3 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position); t4 = t3.offset; t4 = A._FileSpan$(t3.file, t4, t4); $arguments.push(new A.StringExpression0(A.Interpolation$0(A._setArrayType([""], type$.JSArray_Object), t4), false)); break; } $arguments.push(_this.expressionUntilComma$1$singleEquals(true)); _this.whitespace$0(); } while (t1.scanChar$1(44)); t1.expectChar$1(41); } if ($.$get$_disallowedFunctionNames0().contains$1(0, plain)) _this.error$2(0, string$.This_f, t1.spanFrom$1(start)); t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2)); t3 = type$.Expression_2; return new A.FunctionExpression0(_null, plain, new A.ArgumentInvocation0(A.List_List$unmodifiable($arguments, t3), A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t3), _null, _null, t2), t1.spanFrom$1(start)); }, namespacedExpression$2(namespace, start) { var expression = this.super$StylesheetParser$namespacedExpression0(namespace, start); this.error$2(0, string$.Modulen, expression.get$span(expression)); } }; A.DebugRule0.prototype = { accept$1$1(visitor) { return visitor.visitDebugRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "@debug " + this.expression.toString$0(0) + ";"; }, $isAstNode0: 1, $isStatement0: 1, get$span(receiver) { return this.span; } }; A.ModifiableCssDeclaration0.prototype = { accept$1$1(visitor) { return visitor.visitCssDeclaration$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return this.name.toString$0(0) + ": " + this.value.toString$0(0) + ";"; }, get$span(receiver) { return this.span; } }; A.Declaration0.prototype = { accept$1$1(visitor) { return visitor.visitDeclaration$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t3, _0_0, children, buffer = new A.StringBuffer(""), t1 = this.name, t2 = "" + t1.toString$0(0); buffer._contents = t2; t2 = buffer._contents = t2 + A.Primitives_stringFromCharCode(58); t3 = this.value; if (t3 != null) { t1 = !B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--") ? buffer._contents = t2 + A.Primitives_stringFromCharCode(32) : t2; buffer._contents = t1 + t3.toString$0(0); } _0_0 = this.children; if (_0_0 != null) { children = _0_0; t1 = true; } else { children = null; t1 = false; } if (t1) return buffer.toString$0(0) + " {" + (children && B.JSArray_methods).join$1(children, " ") + "}"; else return buffer.toString$0(0) + ";"; }, get$span(receiver) { return this.span; } }; A.SupportsDeclaration0.prototype = { get$isCustomProperty() { var text, t1, _0_0 = this.name; $label0$0: { if (_0_0 instanceof A.StringExpression0) if (!_0_0.hasQuotes) { text = _0_0.text; t1 = true; } else { text = null; t1 = false; } else { text = null; t1 = false; } if (t1) { t1 = B.JSString_methods.startsWith$1(text.get$initialPlain(), "--"); break $label0$0; } t1 = false; break $label0$0; } return t1; }, toString$0(_) { return "(" + this.name.toString$0(0) + ": " + this.value.toString$0(0) + ")"; }, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.Deprecation0.prototype = { _enumToString$0() { return "Deprecation." + this._name; }, toString$0(_) { return this.id; } }; A.DeprecationHandlingLogger0.prototype = { warn$4$deprecation$span$trace(_, message, deprecation, span, trace) { this._deprecation_handling$_inner.warn$4$deprecation$span$trace(0, message, deprecation, span, trace); }, warn$3$span$trace($receiver, message, span, trace) { return this.warn$4$deprecation$span$trace($receiver, message, false, span, trace); }, warn$2$span($receiver, message, span) { return this.warn$4$deprecation$span$trace($receiver, message, false, span, null); }, warn$2$trace($receiver, message, trace) { return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace); }, warnForDeprecation$4$span$trace(deprecation, message, span, trace) { var _0_0, _0_1, _0_3, t1, t2, count, _this = this, _null = null; if (_this.fatalDeprecations.contains$1(0, deprecation)) { message += string$.x0a_This + deprecation.toString$0(0) + string$.x20depre; _0_0 = new A._Record_2(span, trace); _0_1 = A._InitializedCell$(new A.DeprecationHandlingLogger_warnForDeprecation_closure1(_0_0)); _0_3 = A._InitializedCell$(new A.DeprecationHandlingLogger_warnForDeprecation_closure2(_0_0)); $label0$0: { if (_0_1.readFinal$0() != null) { span = _0_1.readFinal$0(); t1 = true; } else { span = _null; t1 = false; } if (t1) if (_0_3.readFinal$0() != null) { trace = _0_3.readFinal$0(); t1 = true; } else { trace = _null; t1 = false; } else { trace = _null; t1 = false; } if (t1) { t1 = A.SassRuntimeException$0(message, span, trace, _null); break $label0$0; } if (_0_1.readFinal$0() != null) { span = _0_1.readFinal$0(); t1 = true; } else { span = _null; t1 = false; } if (t1 && _0_3.readFinal$0() == null) { t1 = A.SassException$0(message, span, _null); break $label0$0; } t1 = A.SassScriptException$0(message, _null); break $label0$0; } throw A.wrapException(t1); } if (deprecation.isFuture && !_this.futureDeprecations.contains$1(0, deprecation)) return; if (_this.limitRepetition) { t1 = _this._deprecation_handling$_warningCounts; t2 = t1.$index(0, deprecation); count = (t2 == null ? 0 : t2) + 1; t1.$indexSet(0, deprecation, count); if (count > 5) return; } _this._deprecation_handling$_inner.warn$4$deprecation$span$trace(0, message, true, span, trace); }, debug$2(_, message, span) { return this._deprecation_handling$_inner.debug$2(0, message, span); }, summarize$1$js(js) { var t2, total, t1 = this._deprecation_handling$_warningCounts; t1 = t1.get$values(t1); t2 = A._instanceType(t1); total = A.IterableIntegerExtension_get_sum(new A.MappedIterable(new A.WhereIterable(t1, new A.DeprecationHandlingLogger_summarize_closure1(), t2._eval$1("WhereIterable")), new A.DeprecationHandlingLogger_summarize_closure2(), t2._eval$1("MappedIterable"))); if (total > 0) { t1 = js ? "" : string$.x0aRun_i; this._deprecation_handling$_inner.warn$1(0, "" + total + string$.x20repet + t1); } } }; A.DeprecationHandlingLogger_warnForDeprecation_closure1.prototype = { call$0() { return this._0_0._0; }, $signature: 186 }; A.DeprecationHandlingLogger_warnForDeprecation_closure2.prototype = { call$0() { return this._0_0._1; }, $signature: 187 }; A.DeprecationHandlingLogger_summarize_closure1.prototype = { call$1(count) { return count > 5; }, $signature: 47 }; A.DeprecationHandlingLogger_summarize_closure2.prototype = { call$1(count) { return count - 5; }, $signature: 191 }; A.DynamicImport0.prototype = { toString$0(_) { return A.StringExpression_quoteText0(this.urlString); }, $isImport0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.EachRule0.prototype = { accept$1$1(visitor) { return visitor.visitEachRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.variables, t2 = this.children; 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, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.EachRule_toString_closure0.prototype = { call$1(variable) { return "$" + variable; }, $signature: 7 }; A.EmptyExtensionStore0.prototype = { get$_extension_store$_extensions() { return A.throwExpression(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, A.JSInvocationMirror$(B.Symbol__extensions, "get$_empty_extension_store0$_extensions", 1, [], [], 0))); }, get$_extension_store$_sourceSpecificity() { return A.throwExpression(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, A.JSInvocationMirror$(B.Symbol__sourceSpecificity, "get$_empty_extension_store0$_sourceSpecificity", 1, [], [], 0))); }, get$isEmpty(_) { return true; }, get$simpleSelectors() { return B.C_EmptyUnmodifiableSet0; }, extensionsWhereTarget$1(callback) { return B.List_empty17; }, addExtensions$1(extenders) { throw A.wrapException(A.UnsupportedError$(string$.addExt)); }, clone$0() { return B.Record2_EmptyExtensionStore_Map_empty0; }, $isExtensionStore0: 1 }; A.Environment0.prototype = { closure$0() { var t4, t5, t6, _this = this, t1 = _this._environment0$_forwardedModules, t2 = _this._environment0$_nestedForwardedModules, t3 = _this._environment0$_variables; t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3)); t4 = _this._environment0$_variableNodes; t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4)); t5 = _this._environment0$_functions; t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5)); t6 = _this._environment0$_mixins; t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6)); 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); }, forwardModule$2(module, rule) { var view, t1, t2, _this = this, forwardedModules = _this._environment0$_forwardedModules; if (forwardedModules == null) forwardedModules = _this._environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.AstNode_2); view = A.ForwardedModuleView_ifNecessary0(module, rule, type$.Callable_2); for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules._modifications); t1.moveNext$0();) { t2 = t1.__js_helper$_current; _this._environment0$_assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable"); _this._environment0$_assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function"); _this._environment0$_assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin"); } _this._environment0$_allModules.push(module); forwardedModules.$indexSet(0, view, rule); }, _environment0$_assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) { var larger, smaller, t1, t2, t3, t4, $name, small, large, span; if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) { larger = oldMembers; smaller = newMembers; } else { larger = newMembers; smaller = oldMembers; } for (t1 = type$.String, t2 = A.MapExtensions_get_pairs0(smaller, t1, type$.Object), t2 = t2.get$iterator(t2), t3 = type === "variable"; t2.moveNext$0();) { t4 = t2.get$current(t2); $name = t4._0; small = t4._1; small = small; large = larger.$index(0, $name); if (large == null) continue; if (t3 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(large, small)) continue; if (t3) $name = "$" + $name; t2 = this._environment0$_forwardedModules; if (t2 == null) span = null; else { t2 = t2.$index(0, oldModule); span = t2 == null ? null : J.get$span$z(t2); } t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, t1); if (span != null) t2.$indexSet(0, span, "original @forward"); throw A.wrapException(A.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t2)); } }, importForwards$1(module) { var forwardedModules, t1, t2, t3, t4, node, t5, t6, t7, t8, t9, t10, _i, t11, shadowed, _length, _list, _this = this, forwarded = module._environment0$_environment._environment0$_forwardedModules; if (forwarded == null) return; forwardedModules = _this._environment0$_forwardedModules; if (forwardedModules != null) { t1 = type$.Module_Callable_2; t2 = type$.AstNode_2; t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t1 = A.MapExtensions_get_pairs0(forwarded, t1, t2), t1 = t1.get$iterator(t1), t2 = _this._environment0$_globalModules; t1.moveNext$0();) { t4 = t1.get$current(t1); module = t4._0; node = t4._1; if (!forwardedModules.containsKey$1(module) || !t2.containsKey$1(module)) t3.$indexSet(0, module, node); } forwarded = t3; } else forwardedModules = _this._environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.AstNode_2); t1 = type$.String; t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1); for (t3 = A.LinkedHashMapKeyIterator$(forwarded, forwarded._modifications); t3.moveNext$0();) for (t4 = t3.__js_helper$_current.get$variables(), t4 = J.get$iterator$ax(t4.get$keys(t4)); t4.moveNext$0();) t2.add$1(0, t4.get$current(t4)); t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1); for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded._modifications); t4.moveNext$0();) { t5 = t4.__js_helper$_current; for (t5 = t5.get$functions(t5), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();) t3.add$1(0, t5.get$current(t5)); } t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1); for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded._modifications); t4.moveNext$0();) for (t5 = t4.__js_helper$_current.get$mixins(), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();) t1.add$1(0, t5.get$current(t5)); t4 = _this._environment0$_variables; t5 = t4.length; if (t5 === 1) { 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) { t11 = t8[_i]; module = t11._0; node = t11._1; shadowed = A.ShadowedModuleView_ifNecessary0(module, t3, t1, t2, t10); if (shadowed != null) { t5.remove$1(0, module); t11 = shadowed.variables; if (t11.get$isEmpty(t11)) { t11 = shadowed.functions; if (t11.get$isEmpty(t11)) { t11 = shadowed.mixins; if (t11.get$isEmpty(t11)) { t11 = shadowed._shadowed_view0$_inner; t11 = t11.get$css(t11); t11 = J.get$isEmpty$asx(t11.get$children(t11)); } else t11 = false; } else t11 = false; } else t11 = false; if (!t11) t5.$indexSet(0, shadowed, node); } } 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) { t8 = t6[_i]; module = t8._0; node = t8._1; shadowed = A.ShadowedModuleView_ifNecessary0(module, t3, t1, t2, t10); if (shadowed != null) { forwardedModules.remove$1(0, module); t8 = shadowed.variables; if (t8.get$isEmpty(t8)) { t8 = shadowed.functions; if (t8.get$isEmpty(t8)) { t8 = shadowed.mixins; if (t8.get$isEmpty(t8)) { t8 = shadowed._shadowed_view0$_inner; t8 = t8.get$css(t8); t8 = J.get$isEmpty$asx(t8.get$children(t8)); } else t8 = false; } else t8 = false; } else t8 = false; if (!t8) forwardedModules.$indexSet(0, shadowed, node); } } t5.addAll$1(0, forwarded); forwardedModules.addAll$1(0, forwarded); } else { t6 = _this._environment0$_nestedForwardedModules; if (t6 == null) { _length = t5 - 1; _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_Callable_2); for (t5 = type$.JSArray_Module_Callable_2, _i = 0; _i < _length; ++_i) _list[_i] = A._setArrayType([], t5); _this._environment0$_nestedForwardedModules = _list; t5 = _list; } else t5 = t6; B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t5), new A.LinkedHashMapKeyIterable(forwarded, A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>"))); } for (t2 = A._LinkedHashSetIterator$(t2, t2._collection$_modifications), t5 = _this._environment0$_variableIndices, t6 = _this._environment0$_variableNodes, t7 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t8 = t2._collection$_current; if (t8 == null) t8 = t7._as(t8); t5.remove$1(0, t8); J.remove$1$z(B.JSArray_methods.get$last(t4), t8); J.remove$1$z(B.JSArray_methods.get$last(t6), t8); } for (t2 = A._LinkedHashSetIterator$(t3, t3._collection$_modifications), t3 = _this._environment0$_functionIndices, t4 = _this._environment0$_functions, t5 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t6 = t2._collection$_current; if (t6 == null) t6 = t5._as(t6); t3.remove$1(0, t6); J.remove$1$z(B.JSArray_methods.get$last(t4), t6); } for (t1 = A._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = _this._environment0$_mixinIndices, t3 = _this._environment0$_mixins, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t5 = t1._collection$_current; if (t5 == null) t5 = t4._as(t5); t2.remove$1(0, t5); J.remove$1$z(B.JSArray_methods.get$last(t3), t5); } }, getVariable$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) return _this._environment0$_getModule$1(namespace).get$variables().$index(0, $name); if (_this._environment0$_lastVariableName === $name) { t1 = _this._environment0$_lastVariableIndex; t1.toString; t1 = J.$index$asx(_this._environment0$_variables[t1], $name); return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1; } t1 = _this._environment0$_variableIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._environment0$_lastVariableName = $name; _this._environment0$_lastVariableIndex = index; t1 = J.$index$asx(_this._environment0$_variables[index], $name); return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1; } else { _1_0 = _this._environment0$_variableIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._environment0$_lastVariableName = $name; _this._environment0$_lastVariableIndex = index; t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._environment0$_variables[index], $name); return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1; } else return _this._environment0$_getVariableFromGlobalModule$1($name); } }, getVariable$1($name) { return this.getVariable$2$namespace($name, null); }, _environment0$_getVariableFromGlobalModule$1($name) { return this._environment0$_fromOneModule$3($name, "variable", new A.Environment__getVariableFromGlobalModule_closure0($name)); }, getVariableNode$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) return _this._environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name); if (_this._environment0$_lastVariableName === $name) { t1 = _this._environment0$_lastVariableIndex; t1.toString; t1 = J.$index$asx(_this._environment0$_variableNodes[t1], $name); return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1; } t1 = _this._environment0$_variableIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._environment0$_lastVariableName = $name; _this._environment0$_lastVariableIndex = index; t1 = J.$index$asx(_this._environment0$_variableNodes[index], $name); return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1; } else { _1_0 = _this._environment0$_variableIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { _this._environment0$_lastVariableName = $name; _this._environment0$_lastVariableIndex = index; t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._environment0$_variableNodes[index], $name); return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1; } else return _this._environment0$_getVariableNodeFromGlobalModule$1($name); } }, _environment0$_getVariableNodeFromGlobalModule$1($name) { var t1, t2, _0_0, value; 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();) { t1 = t2._currentIterator; _0_0 = t1.get$current(t1).get$variableNodes().$index(0, $name); if (_0_0 != null) { value = _0_0; t1 = true; } else { value = null; t1 = false; } if (t1) return value; } return null; }, globalVariableExists$2$namespace($name, namespace) { if (namespace != null) return this._environment0$_getModule$1(namespace).get$variables().containsKey$1($name); if (B.JSArray_methods.get$first(this._environment0$_variables).containsKey$1($name)) return true; return this._environment0$_getVariableFromGlobalModule$1($name) != null; }, globalVariableExists$1($name) { return this.globalVariableExists$2$namespace($name, null); }, _environment0$_variableIndex$1($name) { var t1, i; for (t1 = this._environment0$_variables, i = t1.length - 1; i >= 0; --i) if (t1[i].containsKey$1($name)) return i; return null; }, setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) { var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this; if (namespace != null) { _this._environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan); return; } if (global || _this._environment0$_variables.length === 1) { _this._environment0$_variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure2(_this, $name)); t1 = _this._environment0$_variables; if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) { moduleWithName = _this._environment0$_fromOneModule$3($name, "variable", new A.Environment_setVariable_closure3($name)); if (moduleWithName != null) { moduleWithName.setVariable$3($name, value, nodeWithSpan); return; } } J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value); J.$indexSet$ax(B.JSArray_methods.get$first(_this._environment0$_variableNodes), $name, nodeWithSpan); return; } nestedForwardedModules = _this._environment0$_nestedForwardedModules; if (nestedForwardedModules != null && !_this._environment0$_variableIndices.containsKey$1($name) && _this._environment0$_variableIndex$1($name) == null) for (t1 = new A.ReversedListIterable(nestedForwardedModules, A.instanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) { t5 = t3.__internal$_current; if (t5 == null) t5 = t4._as(t5); if (t5.get$variables().containsKey$1($name)) { t5.setVariable$3($name, value, nodeWithSpan); return; } } } if (_this._environment0$_lastVariableName === $name) { t1 = _this._environment0$_lastVariableIndex; t1.toString; index = t1; } else index = _this._environment0$_variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure4(_this, $name)); if (!_this._environment0$_inSemiGlobalScope && index === 0) { index = _this._environment0$_variables.length - 1; _this._environment0$_variableIndices.$indexSet(0, $name, index); } _this._environment0$_lastVariableName = $name; _this._environment0$_lastVariableIndex = index; J.$indexSet$ax(_this._environment0$_variables[index], $name, value); J.$indexSet$ax(_this._environment0$_variableNodes[index], $name, nodeWithSpan); }, setVariable$4$global($name, value, nodeWithSpan, global) { return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null); }, setLocalVariable$3($name, value, nodeWithSpan) { var index, _this = this, t1 = _this._environment0$_variables, t2 = t1.length; _this._environment0$_lastVariableName = $name; index = _this._environment0$_lastVariableIndex = t2 - 1; _this._environment0$_variableIndices.$indexSet(0, $name, index); J.$indexSet$ax(t1[index], $name, value); J.$indexSet$ax(_this._environment0$_variableNodes[index], $name, nodeWithSpan); }, getFunction$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) { t1 = _this._environment0$_getModule$1(namespace); return t1.get$functions(t1).$index(0, $name); } t1 = _this._environment0$_functionIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1 = J.$index$asx(_this._environment0$_functions[index], $name); return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1; } else { _1_0 = _this._environment0$_functionIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._environment0$_functions[index], $name); return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1; } else return _this._environment0$_getFunctionFromGlobalModule$1($name); } }, getFunction$1($name) { return this.getFunction$2$namespace($name, null); }, _environment0$_getFunctionFromGlobalModule$1($name) { return this._environment0$_fromOneModule$3($name, "function", new A.Environment__getFunctionFromGlobalModule_closure0($name)); }, _environment0$_functionIndex$1($name) { var t1, i; for (t1 = this._environment0$_functions, i = t1.length - 1; i >= 0; --i) if (t1[i].containsKey$1($name)) return i; return null; }, getMixin$2$namespace($name, namespace) { var t1, _0_0, index, t2, _1_0, _this = this; if (namespace != null) return _this._environment0$_getModule$1(namespace).get$mixins().$index(0, $name); t1 = _this._environment0$_mixinIndices; _0_0 = t1.$index(0, $name); if (_0_0 != null) { index = _0_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1 = J.$index$asx(_this._environment0$_mixins[index], $name); return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1; } else { _1_0 = _this._environment0$_mixinIndex$1($name); if (_1_0 != null) { index = _1_0; t2 = true; } else { index = null; t2 = false; } if (t2) { t1.$indexSet(0, $name, index); t1 = J.$index$asx(_this._environment0$_mixins[index], $name); return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1; } else return _this._environment0$_getMixinFromGlobalModule$1($name); } }, _environment0$_getMixinFromGlobalModule$1($name) { return this._environment0$_fromOneModule$3($name, "mixin", new A.Environment__getMixinFromGlobalModule_closure0($name)); }, _environment0$_mixinIndex$1($name) { var t1, i; for (t1 = this._environment0$_mixins, i = t1.length - 1; i >= 0; --i) if (t1[i].containsKey$1($name)) return i; return null; }, withContent$2($content, callback) { var oldContent = this._environment0$_content; this._environment0$_content = $content; callback.call$0(); this._environment0$_content = oldContent; }, asMixin$1(callback) { var oldInMixin = this._environment0$_inMixin; this._environment0$_inMixin = true; callback.call$0(); this._environment0$_inMixin = oldInMixin; }, scope$1$3$semiGlobal$when(callback, semiGlobal, when) { var wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6, _this = this; semiGlobal = semiGlobal && _this._environment0$_inSemiGlobalScope; wasInSemiGlobalScope = _this._environment0$_inSemiGlobalScope; _this._environment0$_inSemiGlobalScope = semiGlobal; if (!when) try { t1 = callback.call$0(); return t1; } finally { _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope; } t1 = _this._environment0$_variables; t2 = type$.String; B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value_2)); t3 = _this._environment0$_variableNodes; B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode_2)); t4 = _this._environment0$_functions; t5 = type$.Callable_2; B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5)); t6 = _this._environment0$_mixins; B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5)); t5 = _this._environment0$_nestedForwardedModules; if (t5 != null) t5.push(A._setArrayType([], type$.JSArray_Module_Callable_2)); try { t2 = callback.call$0(); return t2; } finally { _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope; _this._environment0$_lastVariableIndex = _this._environment0$_lastVariableName = null; for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = _this._environment0$_variableIndices; t1.moveNext$0();) { $name = t1.get$current(t1); t2.remove$1(0, $name); } B.JSArray_methods.removeLast$0(t3); for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = _this._environment0$_functionIndices; t1.moveNext$0();) { name0 = t1.get$current(t1); t2.remove$1(0, name0); } for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = _this._environment0$_mixinIndices; t1.moveNext$0();) { name1 = t1.get$current(t1); t2.remove$1(0, name1); } t1 = _this._environment0$_nestedForwardedModules; if (t1 != null) t1.pop(); } }, scope$1$1(callback, $T) { return this.scope$1$3$semiGlobal$when(callback, false, true, $T); }, scope$1$2$when(callback, when, $T) { return this.scope$1$3$semiGlobal$when(callback, false, when, $T); }, scope$1$2$semiGlobal(callback, semiGlobal, $T) { return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T); }, toImplicitConfiguration$0() { var t2, t3, t4, i, values, nodes, t5, t6, $name, value, t1 = type$.String, configuration = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue_2); for (t2 = this._environment0$_variables, t3 = type$.Value_2, t4 = this._environment0$_variableNodes, i = 0; i < t2.length; ++i) { values = t2[i]; nodes = t4[i]; for (t5 = A.MapExtensions_get_pairs0(values, t1, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) { t6 = t5.get$current(t5); $name = t6._0; value = t6._1; t6 = nodes.$index(0, $name); t6.toString; configuration.$indexSet(0, $name, new A.ConfiguredValue0(value, null, t6)); } } return new A.Configuration0(configuration, null); }, toModule$3(css, preModuleComments, extensionStore) { return A._EnvironmentModule__EnvironmentModule1(this, css, preModuleComments, extensionStore, A.NullableExtension_andThen0(this._environment0$_forwardedModules, new A.Environment_toModule_closure0())); }, toDummyModule$0() { return A._EnvironmentModule__EnvironmentModule1(this, new A.CssStylesheet0(new A.UnmodifiableListView(B.List_empty16, type$.UnmodifiableListView_CssNode_2), A.SourceFile$decoded(B.List_empty4, "").span$1(0, 0)), B.Map_empty9, B.C_EmptyExtensionStore0, A.NullableExtension_andThen0(this._environment0$_forwardedModules, new A.Environment_toDummyModule_closure0())); }, _environment0$_getModule$1(namespace) { var module, t1, _0_0 = this._environment0$_modules.$index(0, namespace); if (_0_0 != null) { module = _0_0; t1 = true; } else { module = null; t1 = false; } if (t1) return module; throw A.wrapException(A.SassScriptException$0('There is no module with the namespace "' + namespace + '".', null)); }, _environment0$_fromOneModule$1$3($name, type, callback) { var nestedForwardedModules, t1, t2, t3, t4, t5, _1_0, value, _2_0, identity, valueInModule, identityFromModule, module, node, _null = null, _0_0 = this._environment0$_nestedForwardedModules; if (_0_0 != null) { nestedForwardedModules = _0_0; t1 = true; } else { nestedForwardedModules = _null; t1 = false; } if (t1) for (t1 = new A.ReversedListIterable(nestedForwardedModules, A.instanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) { t5 = t3.__internal$_current; _1_0 = callback.call$1(t5 == null ? t4._as(t5) : t5); if (_1_0 != null) { value = _1_0; t5 = true; } else { value = _null; t5 = false; } if (t5) return value; } } for (t1 = this._environment0$_importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1._modifications); t1.moveNext$0();) { _2_0 = callback.call$1(t1.__js_helper$_current); if (_2_0 != null) { value = _2_0; t2 = true; } else { value = _null; t2 = false; } if (t2) return value; } for (t1 = this._environment0$_globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1._modifications), t3 = type$.Callable_2, identity = _null, value = identity; t2.moveNext$0();) { t4 = t2.__js_helper$_current; valueInModule = callback.call$1(t4); if (valueInModule == null) continue; identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name); if (identityFromModule.$eq(0, identity)) continue; if (value != null) { t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); 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();) { t1 = t3.get$current(t3); module = t1._0; node = t1._1; if (callback.call$1(module) != null) t2.$indexSet(0, node.get$span(node), t4); } throw A.wrapException(A.MultiSpanSassScriptException$0("This " + type + string$.x20is_av, type + " use", t2)); } identity = identityFromModule; value = valueInModule; } return value; }, _environment0$_fromOneModule$3($name, type, callback) { return this._environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic); } }; A.Environment__getVariableFromGlobalModule_closure0.prototype = { call$1(module) { return module.get$variables().$index(0, this.name); }, $signature: 427 }; A.Environment_setVariable_closure2.prototype = { call$0() { var t1 = this.$this; t1._environment0$_lastVariableName = this.name; return t1._environment0$_lastVariableIndex = 0; }, $signature: 3 }; A.Environment_setVariable_closure3.prototype = { call$1(module) { return module.get$variables().containsKey$1(this.name) ? module : null; }, $signature: 428 }; A.Environment_setVariable_closure4.prototype = { call$0() { var t1 = this.$this, t2 = t1._environment0$_variableIndex$1(this.name); return t2 == null ? t1._environment0$_variables.length - 1 : t2; }, $signature: 3 }; A.Environment__getFunctionFromGlobalModule_closure0.prototype = { call$1(module) { return module.get$functions(module).$index(0, this.name); }, $signature: 234 }; A.Environment__getMixinFromGlobalModule_closure0.prototype = { call$1(module) { return module.get$mixins().$index(0, this.name); }, $signature: 234 }; A.Environment_toModule_closure0.prototype = { call$1(modules) { return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable_2); }, $signature: 235 }; A.Environment_toDummyModule_closure0.prototype = { call$1(modules) { return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable_2); }, $signature: 235 }; A._EnvironmentModule1.prototype = { get$url(_) { var t1 = this.css; return t1.get$span(t1).file.url; }, setVariable$3($name, value, nodeWithSpan) { var module, t1, t2, _0_0 = this._environment0$_modulesByVariable.$index(0, $name); if (_0_0 != null) { module = _0_0; t1 = true; } else { module = null; t1 = false; } if (t1) { module.setVariable$3($name, value, nodeWithSpan); return; } t1 = this._environment0$_environment; t2 = t1._environment0$_variables; if (!B.JSArray_methods.get$first(t2).containsKey$1($name)) throw A.wrapException(A.SassScriptException$0("Undefined variable.", null)); J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value); J.$indexSet$ax(B.JSArray_methods.get$first(t1._environment0$_variableNodes), $name, nodeWithSpan); return; }, variableIdentity$1($name) { var module = this._environment0$_modulesByVariable.$index(0, $name); return module == null ? this : module.variableIdentity$1($name); }, cloneCss$0() { var _0_0, _this = this; if (!_this.transitivelyContainsCss) return _this; _0_0 = A.cloneCssStylesheet0(_this.css, _this.extensionStore); 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); }, toString$0(_) { var t1 = this.css; if (t1.get$span(t1).file.url == null) t1 = ""; else { t1 = t1.get$span(t1); t1 = $.$get$context().prettyUri$1(t1.file.url); } return t1; }, $isModule1: 1, get$upstream() { return this.upstream; }, get$variables() { return this.variables; }, get$variableNodes() { return this.variableNodes; }, get$functions(receiver) { return this.functions; }, get$mixins() { return this.mixins; }, get$extensionStore() { return this.extensionStore; }, get$css(receiver) { return this.css; }, get$preModuleComments() { return this.preModuleComments; }, get$transitivelyContainsCss() { return this.transitivelyContainsCss; }, get$transitivelyContainsExtensions() { return this.transitivelyContainsExtensions; } }; A._EnvironmentModule__EnvironmentModule_closure11.prototype = { call$1(module) { return module.get$variables(); }, $signature: 431 }; A._EnvironmentModule__EnvironmentModule_closure12.prototype = { call$1(module) { return module.get$variableNodes(); }, $signature: 649 }; A._EnvironmentModule__EnvironmentModule_closure13.prototype = { call$1(module) { return module.get$functions(module); }, $signature: 236 }; A._EnvironmentModule__EnvironmentModule_closure14.prototype = { call$1(module) { return module.get$mixins(); }, $signature: 236 }; A._EnvironmentModule__EnvironmentModule_closure15.prototype = { call$1(module) { return module.get$transitivelyContainsCss(); }, $signature: 136 }; A._EnvironmentModule__EnvironmentModule_closure16.prototype = { call$1(module) { return module.get$transitivelyContainsExtensions(); }, $signature: 136 }; A.ErrorRule0.prototype = { accept$1$1(visitor) { return visitor.visitErrorRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "@error " + this.expression.toString$0(0) + ";"; }, $isAstNode0: 1, $isStatement0: 1, get$span(receiver) { return this.span; } }; A._EvaluateVisitor1.prototype = { _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) { var t2, metaModule, t3, _i, module, $function, t4, _this = this, _s20_ = "$name, $module: null", _s9_ = "sass:meta", _s7_ = "$module", t1 = type$.JSArray_BuiltInCallable_2, 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), 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); t1 = type$.BuiltInCallable_2; t2 = A.List_List$of($.$get$global6(), true, t1); B.JSArray_methods.addAll$1(t2, $.$get$local0()); B.JSArray_methods.addAll$1(t2, metaFunctions); metaModule = A.BuiltInModule$0("meta", t2, metaMixins, null, t1); 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) { module = t1[_i]; t3.$indexSet(0, module.url, module); } t1 = A._setArrayType([], type$.JSArray_Callable_2); B.JSArray_methods.addAll$1(t1, functions); B.JSArray_methods.addAll$1(t1, $.$get$globalFunctions0()); B.JSArray_methods.addAll$1(t1, metaFunctions); for (t2 = t1.length, t3 = _this._evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) { $function = t1[_i]; t4 = J.get$name$x($function); t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function); } }, run$2(_, importer, node) { var error, stackTrace, t1, exception; try { t1 = type$.nullable_Object; 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); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException0) { error = t1; stackTrace = A.getTraceFromException(exception); A.throwWithTrace0(error.withLoadedUrls$1(this._evaluate0$_loadedUrls), error, stackTrace); } else throw exception; } }, _evaluate0$_assertInModule$1$2(value, $name) { if (value != null) return value; throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module.")); }, _evaluate0$_assertInModule$2(value, $name) { return this._evaluate0$_assertInModule$1$2(value, $name, type$.dynamic); }, _evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) { var _0_0, t2, _this = this, t1 = {}; t1.builtInModule = null; _0_0 = _this._evaluate0$_builtInModules.$index(0, url); if (_0_0 != null) { t1.builtInModule = _0_0; t2 = true; } else t2 = false; if (t2) { if (configuration instanceof A.ExplicitConfiguration0) { t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured."; t2 = configuration.nodeWithSpan; throw A.wrapException(_this._evaluate0$_exception$2(t1, t2.get$span(t2))); } _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure3(t1, callback)); return; } _this._evaluate0$_withStackFrame$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure4(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback)); }, _evaluate0$_loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) { return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false); }, _evaluate0$_loadModule$4(url, stackFrame, nodeWithSpan, callback) { return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false); }, _evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) { var alreadyLoaded, t2, currentConfiguration, t3, message, existingSpan, configurationSpan, environment, css, preModuleComments, extensionStore, module, _this = this, url = stylesheet.span.file.url, t1 = _this._evaluate0$_modules, _0_0 = t1.$index(0, url); if (_0_0 != null) { alreadyLoaded = _0_0; t2 = true; } else { alreadyLoaded = null; t2 = false; } if (t2) { t1 = configuration == null; currentConfiguration = t1 ? _this._evaluate0$_configuration : configuration; t2 = _this._evaluate0$_moduleConfigurations.$index(0, url); t3 = t2._configuration0$__originalConfiguration; t2 = t3 == null ? t2 : t3; t3 = currentConfiguration._configuration0$__originalConfiguration; if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration0) { message = namesInErrors ? $.$get$context().prettyUri$1(url) + string$.x20was_a : string$.This_mw; t2 = _this._evaluate0$_moduleNodes.$index(0, url); existingSpan = t2 == null ? null : t2.get$span(t2); if (t1) { t1 = currentConfiguration.nodeWithSpan; configurationSpan = t1.get$span(t1); } else configurationSpan = null; t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); if (existingSpan != null) t1.$indexSet(0, existingSpan, "original load"); if (configurationSpan != null) t1.$indexSet(0, configurationSpan, "configuration"); throw A.wrapException(t1.get$isEmpty(t1) ? _this._evaluate0$_exception$1(message) : _this._evaluate0$_multiSpanException$3(message, "new load", t1)); } return alreadyLoaded; } environment = A.Environment$0(); css = A._Cell$(); preModuleComments = A._Cell$(); extensionStore = A.ExtensionStore$0(); _this._evaluate0$_withEnvironment$2(environment, new A._EvaluateVisitor__execute_closure1(_this, importer, stylesheet, extensionStore, configuration, css, preModuleComments)); t2 = css._readLocal$0(); t3 = preModuleComments._readLocal$0(); module = environment.toModule$3(t2, t3 == null ? B.Map_empty9 : t3, extensionStore); if (url != null) { t1.$indexSet(0, url, module); _this._evaluate0$_moduleConfigurations.$indexSet(0, url, _this._evaluate0$_configuration); if (nodeWithSpan != null) _this._evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan); } return module; }, _evaluate0$_execute$2(importer, stylesheet) { return this._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null); }, _evaluate0$_addOutOfOrderImports$0() { var t1, t2, _this = this, _s5_ = "_root", _s13_ = "_endOfImports", _0_0 = _this._evaluate0$_outOfOrderImports; $label0$0: { if (_0_0 == null) { t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children; break $label0$0; } t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_); t1 = t1.children; 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); B.JSArray_methods.addAll$1(t1, _0_0); t2 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children; B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_), null, t2.$ti._eval$1("ListBase.E"))); break $label0$0; } return t1; }, _evaluate0$_combineCss$2$clone(root, clone) { var selectors, _0_0, unsatisfiedExtension, t1, imports, css, sorted, t2; if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure3())) { selectors = root.get$extensionStore().get$simpleSelectors(); _0_0 = A.IterableExtension_get_firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure4(selectors))); if (_0_0 != null) { unsatisfiedExtension = _0_0; t1 = true; } else { unsatisfiedExtension = null; t1 = false; } if (t1) this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtension); return root.get$css(root); } t1 = type$.JSArray_CssNode_2; imports = A._setArrayType([], t1); css = A._setArrayType([], t1); t1 = type$.Module_Callable_2; sorted = A.ListQueue$(t1); new A._EvaluateVisitor__combineCss_visitModule1(this, A.LinkedHashSet_LinkedHashSet$_empty(t1), clone, css, imports, sorted).call$1(root); if (root.get$transitivelyContainsExtensions()) this._evaluate0$_extendModules$1(sorted); t1 = B.JSArray_methods.$add(imports, css); t2 = root.get$css(root); return new A.CssStylesheet0(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode_2), t2.get$span(t2)); }, _evaluate0$_combineCss$1(root) { return this._evaluate0$_combineCss$2$clone(root, false); }, _evaluate0$_extendModules$1(sortedModules) { var t1, t2, t3, originalSelectors, $self, t4, t5, _i, upstream, _0_0, url, t6, downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore_2), unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension_2); for (t1 = A._ListQueueIterator$(sortedModules), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1._collection$_current; if (t3 == null) t3 = t2._as(t3); originalSelectors = t3.get$extensionStore().get$simpleSelectors().toSet$0(0); unsatisfiedExtensions.addAll$1(0, t3.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure3(originalSelectors))); $self = downstreamExtensionStores.$index(0, t3.get$url(t3)); t4 = t3.get$extensionStore().get$addExtensions(); if ($self != null) t4.call$1($self); t4 = t3.get$extensionStore(); if (t4.get$isEmpty(t4)) continue; for (t4 = t3.get$upstream(), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, A.throwConcurrentModificationError)(t4), ++_i) { upstream = t4[_i]; _0_0 = upstream.get$url(upstream); if (_0_0 != null) { url = _0_0; t6 = true; } else { url = null; t6 = false; } if (t6) J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(url, new A._EvaluateVisitor__extendModules_closure4()), t3.get$extensionStore()); } unsatisfiedExtensions.removeAll$1(t3.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors))); } if (unsatisfiedExtensions._collection$_length !== 0) this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions)); }, _evaluate0$_throwForUnsatisfiedExtension$1(extension) { throw A.wrapException(A.SassException$0(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span, null)); }, _evaluate0$_indexAfterImports$1(statements) { var t1, lastImport, i, _0_0; for (t1 = J.getInterceptor$asx(statements), lastImport = -1, i = 0; i < t1.get$length(statements); ++i) { $label0$0: { _0_0 = t1.$index(statements, i); if (_0_0 instanceof A.ModifiableCssImport0) break $label0$0; if (_0_0 instanceof A.ModifiableCssComment0) continue; break; } lastImport = i; } return lastImport + 1; }, visitStylesheet$1(node) { var t1, t2, _i; for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i) t1[_i].accept$1(this); return null; }, visitAtRootRule$1(node) { var unparsedQuery, t1, _1_0, query, $parent, included, _2_0, grandparent, t2, root, first, rest, innerCopy, outerCopy, _i, copy, _this = this, _null = null, _s8_ = "__parent", _0_0 = node.query; if (_0_0 != null) { unparsedQuery = _0_0; t1 = true; } else { unparsedQuery = _null; t1 = false; } if (t1) { _1_0 = _this._evaluate0$_performInterpolationWithMap$2$warnForColor(unparsedQuery, true); query = A.AtRootQueryParser$0(_1_0._0, _this._evaluate0$_logger, _null).parse$0(); } else query = B.AtRootQuery_UsS0; $parent = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_); included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode_2); for (t1 = type$.CssStylesheet_2; !t1._is($parent); $parent = grandparent) { if (!query.excludes$1($parent)) included.push($parent); _2_0 = $parent._node$_parent; if (_2_0 != null) { grandparent = _2_0; t2 = true; } else { grandparent = _null; t2 = false; } if (!t2) throw A.wrapException(A.StateError$(string$.CssNod)); } root = _this._evaluate0$_trimIncluded$1(included); if (root === _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_)) { _this._evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure3(_this, node), node.hasDeclarations, type$.Null); return _null; } if (included.length >= 1) { first = included[0]; rest = B.JSArray_methods.sublist$1(included, 1); t1 = true; } else { rest = _null; first = rest; t1 = false; } if (t1) { innerCopy = first.copyWithoutChildren$0(); for (t1 = rest.length, outerCopy = innerCopy, _i = 0; _i < rest.length; rest.length === t1 || (0, A.throwConcurrentModificationError)(rest), ++_i, outerCopy = copy) { copy = rest[_i].copyWithoutChildren$0(); copy.addChild$1(outerCopy); } root.addChild$1(outerCopy); } else innerCopy = root; _this._evaluate0$_scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure4(_this, node)); return _null; }, _evaluate0$_trimIncluded$1(nodes) { var $parent, t1, innermostContiguous, i, t2, _0_0, grandparent, t3, _1_0, root, _this = this, _null = null, _s5_ = "_root", _s22_ = " to be an ancestor of "; if (nodes.length === 0) return _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_); $parent = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent"); for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = grandparent) { for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = grandparent) { _0_0 = $parent._node$_parent; if (_0_0 != null) { grandparent = _0_0; t3 = true; } else { grandparent = _null; t3 = false; } if (!t3) throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null)); } if (innermostContiguous == null) innermostContiguous = i; _1_0 = $parent._node$_parent; if (_1_0 != null) { grandparent = _1_0; t3 = true; } else { grandparent = _null; t3 = false; } if (!t3) throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null)); } if ($parent !== _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_)) return _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_); innermostContiguous.toString; root = nodes[innermostContiguous]; B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length); return root; }, _evaluate0$_scopeForAtRoot$4(node, newParent, query, included) { var _this = this, scope = new A._EvaluateVisitor__scopeForAtRoot_closure11(_this, newParent, node), t1 = query._at_root_query0$_all || query._at_root_query0$_rule; if (t1 !== query.include) scope = new A._EvaluateVisitor__scopeForAtRoot_closure12(_this, scope); if (_this._evaluate0$_mediaQueries != null && query.excludesName$1("media")) scope = new A._EvaluateVisitor__scopeForAtRoot_closure13(_this, scope); if (_this._evaluate0$_inKeyframes && query.excludesName$1("keyframes")) scope = new A._EvaluateVisitor__scopeForAtRoot_closure14(_this, scope); return _this._evaluate0$_inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure15()) ? new A._EvaluateVisitor__scopeForAtRoot_closure16(_this, scope) : scope; }, visitContentBlock$1(node) { return A.throwExpression(A.UnsupportedError$(string$.Evalua)); }, visitContentRule$1(node) { var $content = this._evaluate0$_environment._environment0$_content; if ($content == null) return null; this._evaluate0$_runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure1(this, $content), type$.Null); return null; }, visitDebugRule$1(node) { var value = node.expression.accept$1(this), t1 = value instanceof A.SassString0 ? value._string0$_text : A.serializeValue0(value, true, true); this._evaluate0$_logger.debug$2(0, t1, node.span); return null; }, visitDeclaration$1(node) { var t2, $name, _0_0, declarationName, t3, _1_0, expression, value, t4, t5, _2_0, oldDeclarationName, _this = this, _null = null, t1 = {}; if ((_this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot) == null && !_this._evaluate0$_inUnknownAtRule && !_this._evaluate0$_inKeyframes) throw A.wrapException(_this._evaluate0$_exception$2(string$.Declarm, node.span)); if (_this._evaluate0$_declarationName != null && B.JSString_methods.startsWith$1(node.name.get$initialPlain(), "--")) throw A.wrapException(_this._evaluate0$_exception$2(string$.Declarw, node.span)); t2 = node.name; $name = _this._evaluate0$_interpolationToValue$2$warnForColor(t2, true); _0_0 = _this._evaluate0$_declarationName; if (_0_0 != null) { declarationName = _0_0; t3 = true; } else { declarationName = _null; t3 = false; } if (t3) $name = new A.CssValue0(A.S(declarationName) + "-" + A.S($name.value), $name.span, type$.CssValue_String_2); _1_0 = node.value; if (_1_0 != null) { expression = _1_0; t3 = true; } else { expression = _null; t3 = false; } if (t3) { value = expression.accept$1(_this); if (!value.get$isBlank() || value.get$asList().length === 0) { t3 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent"); t4 = expression.get$span(expression); t2 = B.JSString_methods.startsWith$1(t2.get$initialPlain(), "--"); if (_this._evaluate0$_sourceMap) { t5 = A.NullableExtension_andThen0(_1_0, _this.get$_evaluate0$_expressionNode()); t5 = t5 == null ? _null : J.get$span$z(t5); } else t5 = _null; t3.addChild$1(A.ModifiableCssDeclaration$0($name, new A.CssValue0(value, t4, type$.CssValue_Value_2), node.span, t2, t5)); } else if (J.startsWith$1$s($name.value, "--")) throw A.wrapException(_this._evaluate0$_exception$2("Custom property values may not be empty.", expression.get$span(expression))); } t1.children = null; _2_0 = node.children; if (_2_0 != null) { t1.children = _2_0; t2 = true; } else t2 = false; if (t2) { oldDeclarationName = _this._evaluate0$_declarationName; _this._evaluate0$_declarationName = $name.value; _this._evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure1(t1, _this), node.hasDeclarations, type$.Null); _this._evaluate0$_declarationName = oldDeclarationName; } return _null; }, visitEachRule$1(node) { var t2, _this = this, _box_0 = {}, t1 = node.list, list = t1.accept$1(_this), nodeWithSpan = _this._evaluate0$_expressionNode$1(t1), _0_0 = node.variables; $label0$0: { _box_0.variable = null; if (_0_0.length === 1) { _box_0.variable = _0_0[0]; t1 = true; } else t1 = false; if (t1) { t1 = new A._EvaluateVisitor_visitEachRule_closure5(_box_0, _this, nodeWithSpan); break $label0$0; } t1 = _box_0.variables = null; _box_0.variables = _0_0; t2 = new A._EvaluateVisitor_visitEachRule_closure6(_box_0, _this, nodeWithSpan); t1 = t2; break $label0$0; } return _this._evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure7(_this, list, t1, node), true, type$.nullable_Value_2); }, _evaluate0$_setMultipleVariables$3(variables, value, nodeWithSpan) { var i, list = value.get$asList(), t1 = variables.length, minLength = Math.min(t1, list.length); for (i = 0; i < minLength; ++i) this._evaluate0$_environment.setLocalVariable$3(variables[i], this._evaluate0$_withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan); for (i = minLength; i < t1; ++i) this._evaluate0$_environment.setLocalVariable$3(variables[i], B.C__SassNull0, nodeWithSpan); }, visitErrorRule$1(node) { throw A.wrapException(this._evaluate0$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span)); }, visitExtendRule$1(node) { var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, _0_0, compound, _this = this, _null = null, styleRule = _this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot; if (styleRule == null || _this._evaluate0$_declarationName != null) throw A.wrapException(_this._evaluate0$_exception$2(string$.x40exten, node.span)); for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, _i = 0; _i < t2; ++_i) { complex = t1[_i]; if (!complex.accept$1(B._IsBogusVisitor_true0)) continue; visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true); complex.accept$1(visitor); t6 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)); t7 = complex.accept$1(B.C__IsUselessVisitor0) ? "can't" : "shouldn't"; _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_XV6); } _0_0 = _this._evaluate0$_performInterpolationWithMap$2$warnForColor(node.selector, true); for (t1 = A.SelectorList_SelectorList$parse0(A.trimAscii0(_0_0._0, true), false, true, _0_0._1, _this._evaluate0$_logger).components, t2 = t1.length, t3 = styleRule._style_rule0$_selector._box0$_inner, _i = 0; _i < t2; ++_i) { complex = t1[_i]; compound = complex.get$singleCompound(); if (compound == null) throw A.wrapException(A.SassFormatException$0("complex selectors may not be extended.", complex.span, _null)); t4 = compound.components; t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : _null; if (t5 == null) throw A.wrapException(A.SassFormatException$0(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, compound.span, _null)); _this._evaluate0$_assertInModule$2(_this._evaluate0$__extensionStore, "_extensionStore").addExtension$4(t3.value, t5, node, _this._evaluate0$_mediaQueries); } return _null; }, visitAtRule$1(node) { var $name, value, children, wasInKeyframes, wasInUnknownAtRule, _this = this; if (_this._evaluate0$_declarationName != null) throw A.wrapException(_this._evaluate0$_exception$2(string$.At_rul, node.span)); $name = _this._evaluate0$_interpolationToValue$1(node.name); value = A.NullableExtension_andThen0(node.value, new A._EvaluateVisitor_visitAtRule_closure5(_this)); children = node.children; if (children == null) { _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0($name, node.span, true, value)); return null; } wasInKeyframes = _this._evaluate0$_inKeyframes; wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule; if (A.unvendor0($name.value) === "keyframes") _this._evaluate0$_inKeyframes = true; else _this._evaluate0$_inUnknownAtRule = true; _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); _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule; _this._evaluate0$_inKeyframes = wasInKeyframes; return null; }, visitForRule$1(node) { var _this = this, t1 = {}, t2 = node.from, fromNumber = _this._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure9(_this, node)), t3 = node.to, toNumber = _this._evaluate0$_addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure10(_this, node)), from = _this._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure11(fromNumber)), to = t1.to = _this._evaluate0$_addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure12(toNumber, fromNumber)), direction = from > to ? -1 : 1; if (from === (!node.isExclusive ? t1.to = to + direction : to)) return null; return _this._evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure13(t1, _this, node, from, direction, fromNumber), true, type$.nullable_Value_2); }, visitForwardRule$1(node) { var newConfiguration, t4, _i, variable, $name, _this = this, _s8_ = "@forward", oldConfiguration = _this._evaluate0$_configuration, adjustedConfiguration = oldConfiguration.throughForward$1(node), t1 = node.configuration, t2 = t1.length, t3 = node.url; if (t2 !== 0) { newConfiguration = _this._evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node); _this._evaluate0$_loadModule$5$configuration(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure3(_this, node), newConfiguration); t3 = type$.String; t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3); for (_i = 0; _i < t2; ++_i) { variable = t1[_i]; if (!variable.isGuarded) t4.add$1(0, variable.name); } _this._evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4); t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3); for (_i = 0; _i < t2; ++_i) t3.add$1(0, t1[_i].name); 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) { $name = t2[_i]; if (!t3.contains$1(0, $name)) if (!t1.get$isEmpty(t1)) t1.remove$1(0, $name); } _this._evaluate0$_assertConfigurationIsEmpty$1(newConfiguration); } else { _this._evaluate0$_configuration = adjustedConfiguration; _this._evaluate0$_loadModule$4(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure4(_this, node)); _this._evaluate0$_configuration = oldConfiguration; } return null; }, _evaluate0$_addForwardConfiguration$2(configuration, node) { var t2, t3, _i, variable, t4, oldValue, t5, variableNodeWithSpan, _null = null, t1 = configuration._configuration0$_values, newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2); for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) { variable = t2[_i]; if (variable.isGuarded) { t4 = variable.name; oldValue = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, t4); if (oldValue != null) t5 = true; else { oldValue = _null; t5 = false; } if (t5 && !oldValue.value.$eq(0, B.C__SassNull0)) { newValues.$indexSet(0, t4, oldValue); continue; } } t4 = variable.expression; variableNodeWithSpan = this._evaluate0$_expressionNode$1(t4); newValues.$indexSet(0, variable.name, new A.ConfiguredValue0(this._evaluate0$_withoutSlash$2(t4.accept$1(this), variableNodeWithSpan), variable.span, variableNodeWithSpan)); } if (configuration instanceof A.ExplicitConfiguration0 || t1.get$isEmpty(t1)) return new A.ExplicitConfiguration0(node, newValues, _null); else return new A.Configuration0(newValues, _null); }, _evaluate0$_registerCommentsForModule$1(module) { var _this = this, _s5_ = "_root", t1 = _this._evaluate0$__root; if (t1 == null) return; t1 = _this._evaluate0$_assertInModule$2(t1, _s5_).children; if (t1.get$length(t1) === 0 || !module.get$transitivelyContainsCss()) return; t1 = _this._evaluate0$_preModuleComments; if (t1 == null) t1 = _this._evaluate0$_preModuleComments = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.List_CssComment_2); 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)); _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).clearChildren$0(); _this._evaluate0$__endOfImports = 0; }, _evaluate0$_removeUsedConfiguration$3$except(upstream, downstream, except) { var t1, t2, t3, t4, _i, $name; 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) { $name = t2[_i]; if (except.contains$1(0, $name)) continue; if (!t4.containsKey$1($name)) if (!t1.get$isEmpty(t1)) t1.remove$1(0, $name); } }, _evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) { var t1, _0_0, $name, value; if (!(configuration instanceof A.ExplicitConfiguration0)) return; t1 = configuration._configuration0$_values; if (t1.get$isEmpty(t1)) return; t1 = A.MapExtensions_get_pairs0(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2); _0_0 = t1.get$first(t1); $name = _0_0._0; value = _0_0._1; t1 = nameInError ? "$" + $name + string$.x20was_n : string$.This_v; throw A.wrapException(this._evaluate0$_exception$2(t1, value.configurationSpan)); }, _evaluate0$_assertConfigurationIsEmpty$1(configuration) { return this._evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, false); }, visitFunctionRule$1(node) { var t1 = this._evaluate0$_environment, t2 = t1.closure$0(), t3 = this._evaluate0$_inDependency, t4 = t1._environment0$_functions, index = t4.length - 1, t5 = node.name; t1._environment0$_functionIndices.$indexSet(0, t5, index); J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_Environment_2)); return null; }, visitIfRule$1(node) { var t1, t2, _i, clauseToCheck, clause = node.lastClause; for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) { clauseToCheck = t1[_i]; if (clauseToCheck.expression.accept$1(this).get$isTruthy()) { clause = clauseToCheck; break; } } return A.NullableExtension_andThen0(clause, new A._EvaluateVisitor_visitIfRule_closure1(this)); }, visitImportRule$1(node) { var t1, t2, t3, t4, t5, t6, _i, $import, t7, _0_0, $self, t8, _this = this, _s8_ = "__parent", _s5_ = "_root", _s13_ = "_endOfImports"; 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) { $import = t1[_i]; if ($import instanceof A.DynamicImport0) _this._evaluate0$_visitDynamicImport$1($import); else { t5._as($import); t7 = $import.url; _0_0 = _this._evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(t7, false, false); $self = $import.modifiers; t8 = $self == null ? null : t4.call$1($self); node = new A.ModifiableCssImport0(new A.CssValue0(_0_0._0, t7.span, t3), t8, $import.span); if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) !== _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_)) _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(node); 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)) { t7 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_); node._node$_parent = t7; t7 = t7._node$_children; node._node$_indexInParent = t7.length; t7.push(node); _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1; } else { t7 = _this._evaluate0$_outOfOrderImports; (t7 == null ? _this._evaluate0$_outOfOrderImports = A._setArrayType([], t6) : t7).push(node); } } } return null; }, _evaluate0$_visitDynamicImport$1($import) { return this._evaluate0$_withStackFrame$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure1(this, $import)); }, _evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) { var importCache, _0_0, importer, canonicalUrl, originalUrl, _1_0, isDependency, stylesheet, _2_0, result, _3_0, error, stackTrace, error0, stackTrace0, message, t1, t2, t3, t4, exception, message0, _this = this, _s11_ = "_stylesheet"; baseUrl = baseUrl; try { _this._evaluate0$_importSpan = span; importCache = null; _0_0 = _this._evaluate0$_importCache; if (_0_0 != null) { importCache = _0_0; t1 = true; } else t1 = false; if (t1) { if (baseUrl == null) baseUrl = _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).span.file.url; importer = null; canonicalUrl = null; originalUrl = null; _1_0 = J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), _this._evaluate0$_importer, baseUrl, forImport); if (type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(_1_0)) { importer = _1_0._0; canonicalUrl = _1_0._1; originalUrl = _1_0._2; t1 = true; } else t1 = false; if (t1) { _this._evaluate0$_loadedUrls.add$1(0, canonicalUrl); isDependency = _this._evaluate0$_inDependency || !J.$eq$(importer, _this._evaluate0$_importer); stylesheet = null; t1 = importCache; t2 = importer; t3 = canonicalUrl; t4 = originalUrl; _2_0 = t1.importCanonical$4$originalUrl$quiet(t2, t3, t4, _this._evaluate0$_quietDeps && isDependency); if (_2_0 != null) { stylesheet = _2_0; t1 = true; } else t1 = false; if (t1) { t1 = stylesheet; t2 = importer; return new A._Record_3_importer_isDependency(t1, t2, isDependency); } } } else { result = null; t1 = baseUrl; _3_0 = _this._evaluate0$_importLikeNode$3(url, t1 == null ? _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).span.file.url : t1, forImport); if (_3_0 != null) { result = _3_0; t1 = true; } else t1 = false; if (t1) { t1 = _this._evaluate0$_loadedUrls; A.NullableExtension_andThen0(result._0.span.file.url, t1.get$add(t1)); t1 = result; return t1; } } if (B.JSString_methods.startsWith$1(url, "package:") && true) throw A.wrapException(string$.x22packa); else throw A.wrapException("Can't find stylesheet to import."); } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException0) throw exception; else if (t1 instanceof A.ArgumentError) { error = t1; stackTrace = A.getTraceFromException(exception); A.throwWithTrace0(_this._evaluate0$_exception$1(J.toString$0$(error)), error, stackTrace); } else { error0 = t1; stackTrace0 = A.getTraceFromException(exception); message = null; try { message = A._asString(J.get$message$x(error0)); } catch (exception) { message0 = J.toString$0$(error0); message = message0; } A.throwWithTrace0(_this._evaluate0$_exception$1(message), error0, stackTrace0); } } finally { _this._evaluate0$_importSpan = null; } }, _evaluate0$_loadStylesheet$3$baseUrl(url, span, baseUrl) { return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false); }, _evaluate0$_loadStylesheet$3$forImport(url, span, forImport) { return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport); }, _evaluate0$_importLikeNode$3(originalUrl, previous, forImport) { var isDependency, url, t2, _this = this, t1 = _this._evaluate0$_nodeImporter, result = t1.loadRelative$3(originalUrl, previous, forImport); if (result != null) isDependency = _this._evaluate0$_inDependency; else { result = t1.load$3(0, originalUrl, previous, forImport); if (result == null) return null; isDependency = true; } url = result._1; t1 = J.startsWith$1$s(url, "file") ? A.Syntax_forPath0(url) : B.Syntax_SCSS_scss0; t2 = _this._evaluate0$_quietDeps && isDependency ? $.$get$Logger_quiet0() : _this._evaluate0$_logger; return new A._Record_3_importer_isDependency(A.Stylesheet_Stylesheet$parse0(result._0, t1, t2, url), null, isDependency); }, _evaluate0$_applyMixin$5(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) { var _1_8, t1, _0_0, _this = this, _s37_ = "Mixin doesn't accept a content block.", _s10_ = "invocation"; $label0$0: { _1_8 = A._InitializedCell$(new A._EvaluateVisitor__applyMixin_closure5(mixin)); if (mixin == null) throw A.wrapException(_this._evaluate0$_exception$2("Undefined mixin.", nodeWithSpan.get$span(nodeWithSpan))); t1 = mixin instanceof A.BuiltInCallable0; if (t1 && !mixin.acceptsContent && contentCallable != null) { t1 = _this._evaluate0$_evaluateArguments$1($arguments)._values; _0_0 = mixin.callbackFor$2(t1[2].length, new A.MapKeySet(t1[0], type$.MapKeySet_String)); 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)); } if (t1) { _this._evaluate0$_environment.withContent$2(contentCallable, new A._EvaluateVisitor__applyMixin_closure6(_this, $arguments, mixin, nodeWithSpanWithoutContent)); break $label0$0; } t1 = type$.UserDefinedCallable_Environment_2._is(mixin); if (t1 && _1_8._readFinal$0() instanceof A.MixinRule0 && !_1_8._readFinal$0().get$hasContent() && contentCallable != null) 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)); if (t1) { _this._evaluate0$_runUserDefinedCallable$1$4($arguments, mixin, nodeWithSpanWithoutContent, new A._EvaluateVisitor__applyMixin_closure7(_this, contentCallable, mixin, nodeWithSpanWithoutContent), type$.Null); break $label0$0; } throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + ".")); } }, visitIncludeRule$1(node) { var _this = this; _this._evaluate0$_applyMixin$5(_this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure5(_this, node)), A.NullableExtension_andThen0(node.content, new A._EvaluateVisitor_visitIncludeRule_closure6(_this)), node.$arguments, node, new A._FakeAstNode0(new A._EvaluateVisitor_visitIncludeRule_closure7(node))); return null; }, visitMixinRule$1(node) { var t1 = this._evaluate0$_environment, t2 = t1.closure$0(), t3 = this._evaluate0$_inDependency, t4 = t1._environment0$_mixins, index = t4.length - 1, t5 = node.name; t1._environment0$_mixinIndices.$indexSet(0, t5, index); J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_Environment_2)); return null; }, visitLoudComment$1(node) { var t1, _this = this, _s8_ = "__parent", _s13_ = "_endOfImports"; if (_this._evaluate0$_inFunction) return null; 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)) _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1; t1 = node.text; _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(new A.ModifiableCssComment0(_this._evaluate0$_performInterpolation$1(t1), t1.span)); return null; }, visitMediaRule$1(node) { var _0_0, queries, mergedQueries, t1, mergedSources, t2, t3, _this = this; if (_this._evaluate0$_declarationName != null) throw A.wrapException(_this._evaluate0$_exception$2(string$.Media_, node.span)); _0_0 = _this._evaluate0$_performInterpolationWithMap$2$warnForColor(node.query, true); queries = A.CssMediaQuery_parseList0(_0_0._0, _0_0._1, _this._evaluate0$_logger); mergedQueries = A.NullableExtension_andThen0(_this._evaluate0$_mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure5(_this, queries)); t1 = mergedQueries == null; if (!t1 && J.get$isEmpty$asx(mergedQueries)) return null; if (t1) mergedSources = B.Set_empty5; else { t2 = _this._evaluate0$_mediaQuerySources; t2.toString; t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2); t3 = _this._evaluate0$_mediaQueries; t3.toString; t2.addAll$1(0, t3); t2.addAll$1(0, queries); mergedSources = t2; } t1 = t1 ? queries : mergedQueries; _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); return null; }, _evaluate0$_mergeMediaQueries$2(queries1, queries2) { var t1, t2, t3, t4, _0_0, result, t5, queries = A._setArrayType([], type$.JSArray_CssMediaQuery_2); for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2); t1.moveNext$0();) { t3 = t1.get$current(t1); for (t4 = t2.get$iterator(queries2); t4.moveNext$0();) { _0_0 = t3.merge$1(t4.get$current(t4)); if (B._SingletonCssMediaQueryMergeResult_00 === _0_0) continue; if (B._SingletonCssMediaQueryMergeResult_10 === _0_0) return null; if (_0_0 instanceof A.MediaQuerySuccessfulMergeResult0) { result = _0_0; t5 = true; } else { result = null; t5 = false; } if (t5) queries.push(result.query); } } return queries; }, visitReturnRule$1(node) { var t1 = node.expression; return this._evaluate0$_withoutSlash$2(t1.accept$1(this), t1); }, visitSilentComment$1(node) { return null; }, visitStyleRule$1(node) { var t1, _0_0, selectorText, selectorMap, t2, parsedSelector, rule, oldAtRootExcludingStyleRule, t3, t4, t5, _i, complex, visitor, t6, t7, t8, t9, _this = this, _null = null, _s11_ = "_stylesheet", _s8_ = "__parent"; if (_this._evaluate0$_declarationName != null) throw A.wrapException(_this._evaluate0$_exception$2(string$.Style_, node.span)); t1 = node.selector; _0_0 = _this._evaluate0$_performInterpolationWithMap$2$warnForColor(t1, true); selectorText = _0_0._0; selectorMap = _0_0._1; if (_this._evaluate0$_inKeyframes) { _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(new A.CssValue0(A.List_List$unmodifiable(A.KeyframeSelectorParser$0(selectorText, selectorMap, _this._evaluate0$_logger).parse$0(), type$.String), t1.span, type$.CssValue_List_String_2), node.span), new A._EvaluateVisitor_visitStyleRule_closure9(_this, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure10(), type$.ModifiableCssKeyframeBlock_2, type$.Null); return _null; } t1 = A.SelectorList_SelectorList$parse0(selectorText, !_this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss, !_this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss, selectorMap, _this._evaluate0$_logger); t2 = _this._evaluate0$_styleRuleIgnoringAtRoot; t2 = t2 == null ? _null : t2.originalSelector; parsedSelector = t1.resolveParentSelectors$2$implicitParent(t2, !_this._evaluate0$_atRootExcludingStyleRule); rule = A.ModifiableCssStyleRule$0(_this._evaluate0$_assertInModule$2(_this._evaluate0$__extensionStore, "_extensionStore").addSelector$2(parsedSelector, _this._evaluate0$_mediaQueries), node.span, parsedSelector); oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule; _this._evaluate0$_atRootExcludingStyleRule = false; _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure11(_this, rule, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure12(), type$.ModifiableCssStyleRule_2, type$.Null); _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule; if (!rule.accept$1(B._IsInvisibleVisitor_false_false0)) for (t1 = parsedSelector.components, t2 = t1.length, t3 = type$.SourceSpan, t4 = type$.String, t5 = rule.children, _i = 0; _i < t2; ++_i) { complex = t1[_i]; if (!complex.accept$1(B._IsBogusVisitor_true0)) continue; if (complex.accept$1(B.C__IsUselessVisitor0)) { visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true); complex.accept$1(visitor); _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_XV6); } else if (complex.leadingCombinators.length !== 0) { visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true); complex.accept$1(visitor); _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_XV6); } else { visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true); complex.accept$1(visitor); t6 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)); t7 = complex.accept$1(B._IsBogusVisitor_false0) ? string$.x20It_wi : ""; t8 = A.SpanExtensions_trimRight0(complex.span); if (t5.get$length(t5) === 0) A.throwExpression(A.IterableElementError_noElement()); t9 = J.get$span$z(t5.$index(0, 0)); _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_visitStyleRule_closure13()) ? "\n(try converting to a //-style comment)" : "")], t3, t4), t3, t4)), B.Deprecation_XV6); } } if ((_this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot) == null) { t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).children; t1 = !t1.get$isEmpty(t1); } else t1 = false; if (t1) { t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).children; t1.get$last(t1).isGroupEnd = true; } return _null; }, visitSupportsRule$1(node) { var t1, _this = this; if (_this._evaluate0$_declarationName != null) throw A.wrapException(_this._evaluate0$_exception$2(string$.Suppor, node.span)); t1 = node.condition; _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); return null; }, _evaluate0$_visitSupportsCondition$1(condition) { var operation, t1, t2, negation, interpolation, $function, anything, _this = this, _null = null, _box_0 = {}; $label0$0: { if (condition instanceof A.SupportsOperation0) { operation = condition; t1 = true; } else { operation = _null; t1 = false; } if (t1) { t1 = operation.left; t2 = operation.operator; t2 = _this._evaluate0$_parenthesize$2(t1, t2) + " " + t2 + " " + _this._evaluate0$_parenthesize$2(operation.right, t2); t1 = t2; break $label0$0; } if (condition instanceof A.SupportsNegation0) { negation = condition; t1 = true; } else { negation = _null; t1 = false; } if (t1) { t1 = "not " + _this._evaluate0$_parenthesize$1(negation.condition); break $label0$0; } if (condition instanceof A.SupportsInterpolation0) { interpolation = condition; t1 = true; } else { interpolation = _null; t1 = false; } if (t1) { t1 = interpolation.expression; t1 = _this._evaluate0$_serialize$3$quote(t1.accept$1(_this), t1, false); break $label0$0; } _box_0.declaration = null; if (condition instanceof A.SupportsDeclaration0) { _box_0.declaration = condition; t1 = true; } else t1 = false; if (t1) { t1 = _this._evaluate0$_withSupportsDeclaration$1(new A._EvaluateVisitor__visitSupportsCondition_closure1(_box_0, _this)); break $label0$0; } if (condition instanceof A.SupportsFunction0) { $function = condition; t1 = true; } else { $function = _null; t1 = false; } if (t1) { t1 = _this._evaluate0$_performInterpolation$1($function.name) + "(" + _this._evaluate0$_performInterpolation$1($function.$arguments) + ")"; break $label0$0; } if (condition instanceof A.SupportsAnything0) { anything = condition; t1 = true; } else { anything = _null; t1 = false; } if (t1) { t1 = "(" + _this._evaluate0$_performInterpolation$1(anything.contents) + ")"; break $label0$0; } t1 = A.throwExpression(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeTypeOfDartObject(condition).toString$0(0) + ".", _null)); } return t1; }, _evaluate0$_withSupportsDeclaration$1$1(callback) { var t1, oldInSupportsDeclaration = this._evaluate0$_inSupportsDeclaration; this._evaluate0$_inSupportsDeclaration = true; try { t1 = callback.call$0(); return t1; } finally { this._evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration; } }, _evaluate0$_withSupportsDeclaration$1(callback) { return this._evaluate0$_withSupportsDeclaration$1$1(callback, type$.dynamic); }, _evaluate0$_parenthesize$2(condition, operator) { var t1; if (!(condition instanceof A.SupportsNegation0)) if (condition instanceof A.SupportsOperation0) t1 = operator == null || operator !== condition.operator; else t1 = false; else t1 = true; if (t1) return "(" + this._evaluate0$_visitSupportsCondition$1(condition) + ")"; return this._evaluate0$_visitSupportsCondition$1(condition); }, _evaluate0$_parenthesize$1(condition) { return this._evaluate0$_parenthesize$2(condition, null); }, visitVariableDeclaration$1(node) { var t2, t3, value, _this = this, _null = null, t1 = {}; if (node.isGuarded) { if (node.namespace == null && _this._evaluate0$_environment._environment0$_variables.length === 1) { t1.override = null; t2 = _this._evaluate0$_configuration._configuration0$_values; t2 = t2.get$isEmpty(t2) ? _null : t2.remove$1(0, node.name); if (t2 != null) { t1.override = t2; t3 = t2; t2 = true; } else { t3 = _null; t2 = false; } if (t2 && !t3.value.$eq(0, B.C__SassNull0)) { _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure5(t1, _this, node)); return _null; } } value = _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure6(_this, node)); if (value != null && !value.$eq(0, B.C__SassNull0)) return _null; } if (node.isGlobal && !_this._evaluate0$_environment.globalVariableExists$1(node.name)) { 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."; _this._evaluate0$_warn$3(t1, node.span, B.Deprecation_wKk); } t1 = node.expression; _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure7(_this, node, _this._evaluate0$_withoutSlash$2(t1.accept$1(_this), t1))); return _null; }, visitUseRule$1(node) { var values, _i, variable, t3, variableNodeWithSpan, configuration, _this = this, t1 = node.configuration, t2 = t1.length; if (t2 !== 0) { values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2); for (_i = 0; _i < t2; ++_i) { variable = t1[_i]; t3 = variable.expression; variableNodeWithSpan = _this._evaluate0$_expressionNode$1(t3); values.$indexSet(0, variable.name, new A.ConfiguredValue0(_this._evaluate0$_withoutSlash$2(t3.accept$1(_this), variableNodeWithSpan), variable.span, variableNodeWithSpan)); } configuration = new A.ExplicitConfiguration0(node, values, null); } else configuration = B.Configuration_Map_empty_null0; _this._evaluate0$_loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure1(_this, node), configuration); _this._evaluate0$_assertConfigurationIsEmpty$1(configuration); return null; }, visitWarnRule$1(node) { var _this = this, value = _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitWarnRule_closure1(_this, node)), t1 = value instanceof A.SassString0 ? value._string0$_text : _this._evaluate0$_serialize$2(value, node.expression); _this._evaluate0$_logger.warn$2$trace(0, t1, _this._evaluate0$_stackTrace$1(node.span)); return null; }, visitWhileRule$1(node) { return this._evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure1(this, node), true, node.hasDeclarations, type$.nullable_Value_2); }, visitBinaryOperationExpression$1(node) { var t1, _this = this; if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, "_stylesheet").plainCss) { t1 = node.operator; t1 = t1 !== B.BinaryOperator_2jN0 && t1 !== B.BinaryOperator_t8B0; } else t1 = false; if (t1) throw A.wrapException(_this._evaluate0$_exception$2("Operators aren't allowed in plain CSS.", node.get$operatorSpan())); return _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure1(_this, node)); }, _evaluate0$_slash$3(left, right, node) { var t1, _null = null, result = left.dividedBy$1(right), _1_0 = new A._Record_2(left, right), _1_1 = A._InitializedCell$(new A._EvaluateVisitor__slash_closure3(_1_0)), _1_2 = A._InitializedCell$(new A._EvaluateVisitor__slash_closure4(_1_0)); if (_1_1._readFinal$0() instanceof A.SassNumber0) { left = _1_1._readFinal$0(); if (_1_2._readFinal$0() instanceof A.SassNumber0) { right = _1_2._readFinal$0(); t1 = node.allowsSlash && this._evaluate0$_operandAllowsSlash$1(node.left) && this._evaluate0$_operandAllowsSlash$1(node.right); } else { right = _null; t1 = false; } } else { right = _null; left = right; t1 = false; } if (t1) return type$.SassNumber_2._as(result).withSlash$2(left, right); if (_1_1._readFinal$0() instanceof A.SassNumber0 && _1_2._readFinal$0() instanceof A.SassNumber0) { 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(node), B.Deprecation_wWh); return result; } return result; }, _evaluate0$_operandAllowsSlash$1(node) { var t1, t2; if (node instanceof A.FunctionExpression0) if (node.namespace == null) { t1 = node.originalName; if (B.Set_WfnXb.contains$1(0, A.stringReplaceAllUnchecked(t1, "_", "-").toLowerCase())) { t2 = this._evaluate0$_environment; t1 = t2.getFunction$1(A.stringReplaceAllUnchecked(t1, "_", "-")) == null; } else t1 = false; } else t1 = false; else t1 = true; return t1; }, visitValueExpression$1(node) { return node.value; }, visitVariableExpression$1(node) { var result = this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure1(this, node)); if (result != null) return result; throw A.wrapException(this._evaluate0$_exception$2("Undefined variable.", node.span)); }, visitUnaryOperationExpression$1(node) { return this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitUnaryOperationExpression_closure1(node, node.operand.accept$1(this))); }, visitBooleanExpression$1(node) { return node.value ? B.SassBoolean_true0 : B.SassBoolean_false0; }, visitIfExpression$1(node) { var condition, t1, ifTrue, ifFalse, result, _this = this, _0_0 = _this._evaluate0$_evaluateMacroArguments$1(node), positional = _0_0._0, named = _0_0._1; _this._evaluate0$_verifyArguments$4(positional.length, named, $.$get$IfExpression_declaration0(), node); condition = A.ListExtensions_elementAtOrNull(positional, 0); if (condition == null) { t1 = named.$index(0, "condition"); t1.toString; condition = t1; } ifTrue = A.ListExtensions_elementAtOrNull(positional, 1); if (ifTrue == null) { t1 = named.$index(0, "if-true"); t1.toString; ifTrue = t1; } ifFalse = A.ListExtensions_elementAtOrNull(positional, 2); if (ifFalse == null) { t1 = named.$index(0, "if-false"); t1.toString; ifFalse = t1; } result = condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse; return _this._evaluate0$_withoutSlash$2(result.accept$1(_this), _this._evaluate0$_expressionNode$1(result)); }, visitNullExpression$1(node) { return B.C__SassNull0; }, visitNumberExpression$1(node) { return A.SassNumber_SassNumber0(node.value, node.unit); }, visitParenthesizedExpression$1(node) { var _this = this; 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); }, visitColorExpression$1(node) { return node.value; }, visitListExpression$1(node) { var t1 = node.contents; 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); }, visitMapExpression$1(node) { var t2, t3, _i, t4, key, value, keyValue, valueValue, oldValueSpan, t1 = type$.Value_2, map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1), keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2); for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) { t4 = t2[_i]; key = t4._0; value = t4._1; keyValue = key.accept$1(this); valueValue = value.accept$1(this); if (map.containsKey$1(keyValue)) { t1 = keyNodes.$index(0, keyValue); oldValueSpan = t1 == null ? null : t1.get$span(t1); t1 = key.get$span(key); t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); if (oldValueSpan != null) t2.$indexSet(0, oldValueSpan, "first key"); throw A.wrapException(A.MultiSpanSassRuntimeException$0("Duplicate key.", t1, "second key", t2, this._evaluate0$_stackTrace$1(key.get$span(key)), null)); } map.$indexSet(0, keyValue, valueValue); keyNodes.$indexSet(0, keyValue, key); } return new A.SassMap0(A.ConstantMap_ConstantMap$from(map, t1, t1)); }, visitFunctionExpression$1(node) { var t2, _0_0, t3, t4, oldInFunction, result, _this = this, _s11_ = "_stylesheet", t1 = {}, $function = _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss ? null : _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure5(_this, node)); t1.$function = $function; if ($function == null) { if (node.namespace != null) throw A.wrapException(_this._evaluate0$_exception$2("Undefined function.", node.span)); t2 = node.originalName; _0_0 = A.stringReplaceAllUnchecked(t2, "_", "-").toLowerCase(); if ("min" === _0_0 || "max" === _0_0 || "round" === _0_0 || "abs" === _0_0) { t3 = node.$arguments; t4 = t3.named; t3 = t4.get$isEmpty(t4) && t3.rest == null && B.JSArray_methods.every$1(t3.positional, new A._EvaluateVisitor_visitFunctionExpression_closure6()); } else t3 = false; if (t3) return _this._evaluate0$_visitCalculation$2$inLegacySassFunction(node, true); 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) return _this._evaluate0$_visitCalculation$1(node); if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss) $function = null; else { t3 = _this._evaluate0$_builtInFunctions.$index(0, A.stringReplaceAllUnchecked(t2, "_", "-")); $function = t3; } t1.$function = $function == null ? new A.PlainCssCallable0(t2) : $function; } oldInFunction = _this._evaluate0$_inFunction; _this._evaluate0$_inFunction = true; result = _this._evaluate0$_addErrorSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure7(t1, _this, node)); _this._evaluate0$_inFunction = oldInFunction; return result; }, _evaluate0$_visitCalculation$2$inLegacySassFunction(node, inLegacySassFunction) { var $arguments, oldCallableNode, t1, _0_0, error, stackTrace, t4, _i, exception, _this = this, t2 = node.$arguments, t3 = t2.named; if (t3.get$isNotEmpty(t3)) throw A.wrapException(_this._evaluate0$_exception$2(string$.Keywor, node.span)); else if (t2.rest != null) throw A.wrapException(_this._evaluate0$_exception$2(string$.Rest_a, node.span)); _this._evaluate0$_checkCalculationArguments$1(node); t3 = A._setArrayType([], type$.JSArray_Object); for (t2 = t2.positional, t4 = t2.length, _i = 0; _i < t4; ++_i) t3.push(_this._evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction)); $arguments = t3; if (_this._evaluate0$_inSupportsDeclaration) return new A.SassCalculation0(A.stringReplaceAllUnchecked(node.originalName, "_", "-"), A.List_List$unmodifiable($arguments, type$.Object)); oldCallableNode = _this._evaluate0$_callableNode; _this._evaluate0$_callableNode = node; try { t1 = null; _0_0 = A.stringReplaceAllUnchecked(node.originalName, "_", "-").toLowerCase(); $label0$0: { if ("calc" === _0_0) { t1 = A.SassCalculation_calc0(J.$index$asx($arguments, 0)); break $label0$0; } if ("sqrt" === _0_0) { t1 = A.SassCalculation__singleArgument0("sqrt", J.$index$asx($arguments, 0), A.number2__sqrt$closure(), true); break $label0$0; } if ("sin" === _0_0) { t1 = A.SassCalculation__singleArgument0("sin", J.$index$asx($arguments, 0), A.number2__sin$closure(), false); break $label0$0; } if ("cos" === _0_0) { t1 = A.SassCalculation__singleArgument0("cos", J.$index$asx($arguments, 0), A.number2__cos$closure(), false); break $label0$0; } if ("tan" === _0_0) { t1 = A.SassCalculation__singleArgument0("tan", J.$index$asx($arguments, 0), A.number2__tan$closure(), false); break $label0$0; } if ("asin" === _0_0) { t1 = A.SassCalculation__singleArgument0("asin", J.$index$asx($arguments, 0), A.number2__asin$closure(), true); break $label0$0; } if ("acos" === _0_0) { t1 = A.SassCalculation__singleArgument0("acos", J.$index$asx($arguments, 0), A.number2__acos$closure(), true); break $label0$0; } if ("atan" === _0_0) { t1 = A.SassCalculation__singleArgument0("atan", J.$index$asx($arguments, 0), A.number2__atan$closure(), true); break $label0$0; } if ("abs" === _0_0) { t1 = A.SassCalculation_abs0(J.$index$asx($arguments, 0)); break $label0$0; } if ("exp" === _0_0) { t1 = A.SassCalculation_exp0(J.$index$asx($arguments, 0)); break $label0$0; } if ("sign" === _0_0) { t1 = A.SassCalculation_sign0(J.$index$asx($arguments, 0)); break $label0$0; } if ("min" === _0_0) { t1 = A.SassCalculation_min0($arguments); break $label0$0; } if ("max" === _0_0) { t1 = A.SassCalculation_max0($arguments); break $label0$0; } if ("hypot" === _0_0) { t1 = A.SassCalculation_hypot0($arguments); break $label0$0; } if ("pow" === _0_0) { t1 = A.SassCalculation_pow0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("atan2" === _0_0) { t1 = A.SassCalculation_atan20(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("log" === _0_0) { t1 = A.SassCalculation_log0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("mod" === _0_0) { t1 = A.SassCalculation_mod0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("rem" === _0_0) { t1 = A.SassCalculation_rem0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1)); break $label0$0; } if ("round" === _0_0) { t1 = A.SassCalculation_round0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2)); break $label0$0; } if ("clamp" === _0_0) { t1 = A.SassCalculation_clamp0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2)); break $label0$0; } t3 = A.UnsupportedError$('Unknown calculation name "' + node.get$name(node) + '".'); t1 = A.throwExpression(t3); } t1 = t1; return t1; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassScriptException0) { error = t1; stackTrace = A.getTraceFromException(exception); if (B.JSString_methods.contains$1(error.message, "compatible")) _this._evaluate0$_verifyCompatibleNumbers$2($arguments, t2); A.throwWithTrace0(_this._evaluate0$_exception$2(error.message, node.span), error, stackTrace); } else throw exception; } finally { _this._evaluate0$_callableNode = oldCallableNode; } }, _evaluate0$_visitCalculation$1(node) { return this._evaluate0$_visitCalculation$2$inLegacySassFunction(node, false); }, _evaluate0$_checkCalculationArguments$1(node) { var _0_0, check = new A._EvaluateVisitor__checkCalculationArguments_check1(this, node); $label0$0: { _0_0 = A.stringReplaceAllUnchecked(node.originalName, "_", "-").toLowerCase(); 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) { check.call$1(1); break $label0$0; } if ("min" === _0_0 || "max" === _0_0 || "hypot" === _0_0) { check.call$0(); break $label0$0; } if ("pow" === _0_0 || "atan2" === _0_0 || "log" === _0_0 || "mod" === _0_0 || "rem" === _0_0) { check.call$1(2); break $label0$0; } if ("round" === _0_0 || "clamp" === _0_0) { check.call$1(3); break $label0$0; } throw A.wrapException(A.UnsupportedError$('Unknown calculation name "' + node.get$name(node) + '".')); } }, _evaluate0$_verifyCompatibleNumbers$2(args, nodesWithSpans) { var i, t1, _0_0, arg, number1, j, number2; for (i = 0; t1 = args.length, i < t1; ++i) { _0_0 = args[i]; if (_0_0 instanceof A.SassNumber0) { t1 = _0_0.get$hasComplexUnits(); arg = _0_0; } else { arg = null; t1 = false; } if (t1) throw A.wrapException(this._evaluate0$_exception$2("Number " + A.S(arg) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i]))); } for (i = 0; i < t1 - 1; ++i) { number1 = args[i]; if (!(number1 instanceof A.SassNumber0)) continue; for (j = i + 1; t1 = args.length, j < t1; ++j) { number2 = args[j]; if (!(number2 instanceof A.SassNumber0)) continue; if (number1.hasPossiblyCompatibleUnits$1(number2)) continue; 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)); } } }, _evaluate0$_visitCalculationExpression$2$inLegacySassFunction(node, inLegacySassFunction) { var inner, t1, result, t2, _0_0, _1_0, t3, _i, i, _this = this, _null = null, _box_0 = {}; if (node instanceof A.ParenthesizedExpression0) { inner = node.expression; t1 = true; } else { inner = _null; t1 = false; } if (t1) { result = _this._evaluate0$_visitCalculationExpression$2$inLegacySassFunction(inner, inLegacySassFunction); return result instanceof A.SassString0 ? new A.SassString0("(" + result._string0$_text + ")", false) : result; } if (node instanceof A.StringExpression0 && node.accept$1(new A._IsCalculationSafeVisitor0())) { t1 = node.text; t2 = t1.get$asPlain(); _0_0 = t2 == null ? _null : t2.toLowerCase(); $label0$0: { if ("pi" === _0_0) { t1 = A.SassNumber_SassNumber0(3.141592653589793, _null); break $label0$0; } if ("e" === _0_0) { t1 = A.SassNumber_SassNumber0(2.718281828459045, _null); break $label0$0; } if ("infinity" === _0_0) { t1 = A.SassNumber_SassNumber0(1 / 0, _null); break $label0$0; } if ("-infinity" === _0_0) { t1 = A.SassNumber_SassNumber0(-1 / 0, _null); break $label0$0; } if ("nan" === _0_0) { t1 = A.SassNumber_SassNumber0(0 / 0, _null); break $label0$0; } t1 = new A.SassString0(_this._evaluate0$_performInterpolation$1(t1), false); break $label0$0; } return t1; } _box_0.right = _box_0.left = _box_0.operator = null; if (node instanceof A.BinaryOperationExpression0) { _box_0.operator = node.operator; _box_0.left = node.left; _box_0.right = node.right; t1 = true; } else t1 = false; if (t1) { _this._evaluate0$_checkWhitespaceAroundCalculationOperator$1(node); return _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor__visitCalculationExpression_closure1(_box_0, _this, node, inLegacySassFunction)); } if (node instanceof A.NumberExpression0 || node instanceof A.VariableExpression0 || node instanceof A.FunctionExpression0 || node instanceof A.IfExpression0) { _1_0 = node.accept$1(_this); $label1$1: { if (_1_0 instanceof A.SassNumber0) { result = _1_0; t1 = true; } else { result = _null; t1 = false; } if (t1) { t1 = result; break $label1$1; } if (_1_0 instanceof A.SassCalculation0) { result = _1_0; t1 = true; } else { result = _null; t1 = false; } if (t1) { t1 = result; break $label1$1; } if (_1_0 instanceof A.SassString0) { t1 = !_1_0._string0$_hasQuotes; result = _1_0; } else { result = _null; t1 = false; } if (t1) { t1 = result; break $label1$1; } t1 = A.throwExpression(_this._evaluate0$_exception$2("Value " + _1_0.toString$0(0) + " can't be used in a calculation.", node.get$span(node))); } return t1; } if (node instanceof A.ListExpression0 && !node.hasBrackets && B.ListSeparator_EVt0 === node.separator && node.contents.length >= 2) { t1 = A._setArrayType([], type$.JSArray_Object); for (t2 = node.contents, t3 = t2.length, _i = 0; _i < t3; ++_i) t1.push(_this._evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction)); _this._evaluate0$_checkAdjacentCalculationValues$2(t1, node); for (i = 0; i < t1.length; ++i) { t3 = t1[i]; if (t3 instanceof A.CalculationOperation0 && t2[i] instanceof A.ParenthesizedExpression0) t1[i] = new A.SassString0("(" + A.S(t3) + ")", false); } return new A.SassString0(B.JSArray_methods.join$1(t1, " "), false); } throw A.wrapException(_this._evaluate0$_exception$2(string$.This_e, node.get$span(node))); }, _evaluate0$_checkWhitespaceAroundCalculationOperator$1(node) { var t2, t3, t4, textBetweenOperands, first, last, t1 = node.operator; if (t1 !== B.BinaryOperator_anB0 && t1 !== B.BinaryOperator_olz0) return; t1 = node.left; t2 = t1.get$span(t1); t2 = t2.get$file(t2); t3 = node.right; t4 = t3.get$span(t3); if (t2 !== t4.get$file(t4)) return; t2 = t1.get$span(t1); t2 = t2.get$end(t2); t4 = t3.get$span(t3); if (t2.offset >= t4.get$start(t4).offset) return; t2 = t1.get$span(t1); t2 = t2.get$file(t2); t1 = t1.get$span(t1); t1 = t1.get$end(t1); t3 = t3.get$span(t3); textBetweenOperands = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, t1.offset, t3.get$start(t3).offset), 0, null); first = textBetweenOperands.charCodeAt(0); last = textBetweenOperands.charCodeAt(textBetweenOperands.length - 1); if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47) t1 = !(last === 32 || last === 9 || last === 10 || last === 13 || last === 12 || last === 47); else t1 = true; if (t1) throw A.wrapException(this._evaluate0$_exception$2(string$.x22x2b__an, node.get$operatorSpan())); }, _evaluate0$_binaryOperatorToCalculationOperator$2(operator, node) { var t1; $label0$0: { if (B.BinaryOperator_anB0 === operator) { t1 = B.CalculationOperator_IyK0; break $label0$0; } if (B.BinaryOperator_olz0 === operator) { t1 = B.CalculationOperator_2bx0; break $label0$0; } if (B.BinaryOperator_qN20 === operator) { t1 = B.CalculationOperator_jFr0; break $label0$0; } if (B.BinaryOperator_t8B0 === operator) { t1 = B.CalculationOperator_OvN0; break $label0$0; } t1 = A.throwExpression(this._evaluate0$_exception$2(string$.This_o, node.get$operatorSpan())); } return t1; }, _evaluate0$_checkAdjacentCalculationValues$2(elements, node) { var t1, i, t2, previous, current, previousNode, currentNode, _0_2; for (t1 = elements.length, i = 1; i < t1; ++i) { t2 = i - 1; previous = elements[t2]; current = elements[i]; if (previous instanceof A.SassString0 || current instanceof A.SassString0) continue; t1 = node.contents; previousNode = t1[t2]; currentNode = t1[i]; _0_2 = A._InitializedCell$(new A._EvaluateVisitor__checkAdjacentCalculationValues_closure1(currentNode)); if (currentNode instanceof A.UnaryOperationExpression0) t1 = B.UnaryOperator_TLI0 === _0_2._readFinal$0() || B.UnaryOperator_gg40 === _0_2._readFinal$0(); else t1 = false; if (!t1) t1 = currentNode instanceof A.NumberExpression0 && currentNode.value < 0; else t1 = true; if (t1) throw A.wrapException(this._evaluate0$_exception$2(string$.x22x2b__an, A.FileSpanExtension_subspan(currentNode.get$span(currentNode), 0, 1))); else throw A.wrapException(this._evaluate0$_exception$2("Missing math operator.", previousNode.get$span(previousNode).expand$1(0, currentNode.get$span(currentNode)))); } }, visitInterpolatedFunctionExpression$1(node) { var result, _this = this, t1 = _this._evaluate0$_performInterpolation$1(node.name), oldInFunction = _this._evaluate0$_inFunction; _this._evaluate0$_inFunction = true; result = _this._evaluate0$_addErrorSpan$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure1(_this, node, new A.PlainCssCallable0(t1))); _this._evaluate0$_inFunction = oldInFunction; return result; }, _evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) { var oldCallable, result, _this = this, evaluated = _this._evaluate0$_evaluateArguments$1($arguments), $name = callable.declaration.name; if ($name !== "@content") $name += "()"; oldCallable = _this._evaluate0$_currentCallable; _this._evaluate0$_currentCallable = callable; result = _this._evaluate0$_withStackFrame$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure1(_this, callable, evaluated, nodeWithSpan, run, $V)); _this._evaluate0$_currentCallable = oldCallable; return result; }, _evaluate0$_runFunctionCallable$3($arguments, callable, nodeWithSpan) { var buffer, first, argument, restArg, rest, error, t1, t2, _i, t3, exception, _this = this; if (callable instanceof A.BuiltInCallable0) return _this._evaluate0$_withoutSlash$2(_this._evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), nodeWithSpan); else if (type$.UserDefinedCallable_Environment_2._is(callable)) return _this._evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure1(_this, callable), type$.Value_2); else if (callable instanceof A.PlainCssCallable0) { t1 = $arguments.named; if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null) throw A.wrapException(_this._evaluate0$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan))); buffer = new A.StringBuffer(callable.name + "("); try { first = true; for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) { argument = t1[_i]; if (first) first = false; else buffer._contents += ", "; t3 = argument; buffer._contents += _this._evaluate0$_serialize$3$quote(t3.accept$1(_this), t3, true); } restArg = $arguments.rest; if (restArg != null) { rest = restArg.accept$1(_this); if (!first) buffer._contents += ", "; buffer._contents += _this._evaluate0$_serialize$2(rest, restArg); } } catch (exception) { t1 = A.unwrapException(exception); if (type$.SassRuntimeException_2._is(t1)) { error = t1; if (!B.JSString_methods.endsWith$1(error._span_exception$_message, "isn't a valid CSS value.")) throw exception; 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)); } else throw exception; } buffer._contents += A.Primitives_stringFromCharCode(41); t1 = buffer._contents; return new A.SassString0(t1.charCodeAt(0) == 0 ? t1 : t1, false); } else throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$(callable).toString$0(0) + ".", null)); }, _evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan) { var result, error, stackTrace, message, namedSet, _0_0, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, message0, _this = this, _box_0 = {}, evaluated = _this._evaluate0$_evaluateArguments$1($arguments), oldCallableNode = _this._evaluate0$_callableNode; _this._evaluate0$_callableNode = nodeWithSpan; namedSet = new A.MapKeySet(evaluated._values[0], type$.MapKeySet_String); _box_0.callback = _box_0.overload = null; _0_0 = callable.callbackFor$2(evaluated._values[2].length, namedSet); _box_0.overload = _0_0._0; _box_0.callback = _0_0._1; _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure5(_box_0, evaluated, namedSet)); declaredArguments = _box_0.overload.$arguments; for (i = evaluated._values[2].length, t1 = declaredArguments.length; i < t1; ++i) { argument = declaredArguments[i]; t2 = evaluated._values[2]; t3 = evaluated._values[0].remove$1(0, argument.name); if (t3 == null) { t3 = argument.defaultValue; t3 = _this._evaluate0$_withoutSlash$2(t3.accept$1(_this), t3); } t2.push(t3); } if (_box_0.overload.restArgument != null) { if (evaluated._values[2].length > t1) { rest = B.JSArray_methods.sublist$1(evaluated._values[2], t1); B.JSArray_methods.removeRange$2(evaluated._values[2], t1, evaluated._values[2].length); } else rest = B.List_empty19; t1 = evaluated._values[0]; argumentList = A.SassArgumentList$0(rest, t1, evaluated._values[4] === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_rXA0 : evaluated._values[4]); evaluated._values[2].push(argumentList); } else argumentList = null; result = null; try { result = _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure6(_box_0, evaluated)); } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException0) throw exception; else { error = t1; stackTrace = A.getTraceFromException(exception); message = null; try { message = A._asString(J.get$message$x(error)); } catch (exception) { message0 = J.toString$0$(error); message = message0; } A.throwWithTrace0(_this._evaluate0$_exception$2(message, nodeWithSpan.get$span(nodeWithSpan)), error, stackTrace); } } _this._evaluate0$_callableNode = oldCallableNode; if (argumentList == null) return result; if (evaluated._values[0].__js_helper$_length === 0) return result; if (argumentList._argument_list$_wereKeywordsAccessed) return result; t1 = evaluated._values[0]; t1 = t1.get$keys(t1); t1 = A.pluralize0("argument", t1.get$length(t1), null); t2 = evaluated._values[0]; throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + t1 + " named " + A.toSentence0(t2.get$keys(t2).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)); }, _evaluate0$_evaluateArguments$1($arguments) { var t1, t2, _i, expression, nodeForSpan, named, namedNodes, t3, t4, $name, value, restArgs, rest, restNodeForSpan, t5, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, _this = this, positional = A._setArrayType([], type$.JSArray_Value_2), positionalNodes = A._setArrayType([], type$.JSArray_AstNode_2); for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) { expression = t1[_i]; nodeForSpan = _this._evaluate0$_expressionNode$1(expression); positional.push(_this._evaluate0$_withoutSlash$2(expression.accept$1(_this), nodeForSpan)); positionalNodes.push(nodeForSpan); } t1 = type$.String; named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2); t2 = type$.AstNode_2; namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t3 = A.MapExtensions_get_pairs0($arguments.named, t1, type$.Expression_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; nodeForSpan = _this._evaluate0$_expressionNode$1(value); named.$indexSet(0, $name, _this._evaluate0$_withoutSlash$2(value.accept$1(_this), nodeForSpan)); namedNodes.$indexSet(0, $name, nodeForSpan); } restArgs = $arguments.rest; if (restArgs == null) return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, B.ListSeparator_undecided_null_undecided0]); rest = restArgs.accept$1(_this); restNodeForSpan = _this._evaluate0$_expressionNode$1(restArgs); if (rest instanceof A.SassMap0) { _this._evaluate0$_addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure7()); t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t4 = rest._map0$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString_2; t4.moveNext$0();) t3.$indexSet(0, t5._as(t4.get$current(t4))._string0$_text, restNodeForSpan); namedNodes.addAll$1(0, t3); separator = B.ListSeparator_undecided_null_undecided0; } else if (rest instanceof A.SassList0) { t3 = rest._list1$_contents; 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>"))); B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2)); separator = rest._list1$_separator; if (rest instanceof A.SassArgumentList0) { rest._argument_list$_wereKeywordsAccessed = true; rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure9(_this, named, restNodeForSpan, namedNodes)); } } else { positional.push(_this._evaluate0$_withoutSlash$2(rest, restNodeForSpan)); positionalNodes.push(restNodeForSpan); separator = B.ListSeparator_undecided_null_undecided0; } keywordRestArgs = $arguments.keywordRest; if (keywordRestArgs == null) return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]); keywordRest = keywordRestArgs.accept$1(_this); keywordRestNodeForSpan = _this._evaluate0$_expressionNode$1(keywordRestArgs); if (keywordRest instanceof A.SassMap0) { _this._evaluate0$_addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure10()); t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t2 = keywordRest._map0$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString_2; t2.moveNext$0();) t1.$indexSet(0, t3._as(t2.get$current(t2))._string0$_text, keywordRestNodeForSpan); namedNodes.addAll$1(0, t1); return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]); } else throw A.wrapException(_this._evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs))); }, _evaluate0$_evaluateMacroArguments$1(invocation) { var t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, _this = this, t1 = invocation.$arguments, restArgs_ = t1.rest; if (restArgs_ == null) return new A._Record_2(t1.positional, t1.named); t2 = t1.positional; positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2)); named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression_2); rest = restArgs_.accept$1(_this); restNodeForSpan = _this._evaluate0$_expressionNode$1(restArgs_); if (rest instanceof A.SassMap0) _this._evaluate0$_addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure7(restArgs_)); else if (rest instanceof A.SassList0) { t2 = rest._list1$_contents; 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>"))); if (rest instanceof A.SassArgumentList0) { rest._argument_list$_wereKeywordsAccessed = true; rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure9(_this, named, restNodeForSpan, restArgs_)); } } else positional.push(new A.ValueExpression0(_this._evaluate0$_withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_))); keywordRestArgs_ = t1.keywordRest; if (keywordRestArgs_ == null) return new A._Record_2(positional, named); keywordRest = keywordRestArgs_.accept$1(_this); keywordRestNodeForSpan = _this._evaluate0$_expressionNode$1(keywordRestArgs_); if (keywordRest instanceof A.SassMap0) { _this._evaluate0$_addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure10(_this, keywordRestNodeForSpan, keywordRestArgs_)); return new A._Record_2(positional, named); } else throw A.wrapException(_this._evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_))); }, _evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert) { map._map0$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure1(this, values, convert, this._evaluate0$_expressionNode$1(nodeWithSpan), map, nodeWithSpan)); }, _evaluate0$_addRestMap$4(values, map, nodeWithSpan, convert) { return this._evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic); }, _evaluate0$_verifyArguments$4(positional, named, $arguments, nodeWithSpan) { return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure1($arguments, positional, named)); }, visitSelectorExpression$1(node) { var t1 = this._evaluate0$_styleRuleIgnoringAtRoot; t1 = t1 == null ? null : t1.originalSelector.get$asSassList(); return t1 == null ? B.C__SassNull0 : t1; }, visitStringExpression$1(node) { var t1, t2, t3, t4, _i, value, t5, _0_0, text, _this = this, oldInSupportsDeclaration = _this._evaluate0$_inSupportsDeclaration; _this._evaluate0$_inSupportsDeclaration = false; t1 = A._setArrayType([], type$.JSArray_String); for (t2 = node.text.contents, t3 = t2.length, t4 = type$.Expression_2, _i = 0; _i < t3; ++_i) { value = t2[_i]; $label0$0: { if (typeof value == "string") { t5 = value; break $label0$0; } if (t4._is(value)) { _0_0 = value.accept$1(_this); $label1$1: { if (_0_0 instanceof A.SassString0) { text = _0_0._string0$_text; t5 = true; } else { text = null; t5 = false; } if (t5) { t5 = text; break $label1$1; } t5 = _this._evaluate0$_serialize$3$quote(_0_0, value, false); break $label1$1; } break $label0$0; } t5 = A.throwExpression(A.UnsupportedError$("Unknown interpolation value " + A.S(value))); } t1.push(t5); } t1 = B.JSArray_methods.join$0(t1); _this._evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration; return new A.SassString0(t1, node.hasQuotes); }, visitSupportsExpression$1(expression) { return new A.SassString0(this._evaluate0$_visitSupportsCondition$1(expression.condition), false); }, visitCssAtRule$1(node) { var wasInKeyframes, wasInUnknownAtRule, t1, _this = this; if (_this._evaluate0$_declarationName != null) throw A.wrapException(_this._evaluate0$_exception$2(string$.At_rul, node.span)); if (node.isChildless) { _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0(node.name, node.span, true, node.value)); return; } wasInKeyframes = _this._evaluate0$_inKeyframes; wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule; t1 = node.name; if (A.unvendor0(t1.value) === "keyframes") _this._evaluate0$_inKeyframes = true; else _this._evaluate0$_inUnknownAtRule = true; _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); _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule; _this._evaluate0$_inKeyframes = wasInKeyframes; }, visitCssComment$1(node) { var _this = this, _s8_ = "__parent", _s13_ = "_endOfImports"; 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)) _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1; _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(new A.ModifiableCssComment0(node.text, node.span)); }, visitCssDeclaration$1(node) { this._evaluate0$_assertInModule$2(this._evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap)); }, visitCssImport$1(node) { var t1, _this = this, _s8_ = "__parent", _s5_ = "_root", _s13_ = "_endOfImports", modifiableNode = new A.ModifiableCssImport0(node.url, node.modifiers, node.span); if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) !== _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_)) _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(modifiableNode); 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)) { _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).addChild$1(modifiableNode); _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1; } else { t1 = _this._evaluate0$_outOfOrderImports; (t1 == null ? _this._evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t1).push(modifiableNode); } }, visitCssKeyframeBlock$1(node) { 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); }, visitCssMediaRule$1(node) { var mergedQueries, t1, mergedSources, t2, t3, _this = this; if (_this._evaluate0$_declarationName != null) throw A.wrapException(_this._evaluate0$_exception$2(string$.Media_, node.span)); mergedQueries = A.NullableExtension_andThen0(_this._evaluate0$_mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure5(_this, node)); t1 = mergedQueries == null; if (!t1 && J.get$isEmpty$asx(mergedQueries)) return; if (t1) mergedSources = B.Set_empty5; else { t2 = _this._evaluate0$_mediaQuerySources; t2.toString; t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2); t3 = _this._evaluate0$_mediaQueries; t3.toString; t2.addAll$1(0, t3); t2.addAll$1(0, node.queries); mergedSources = t2; } t1 = t1 ? node.queries : mergedQueries; _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); }, visitCssStyleRule$1(node) { var t1, styleRule, t2, t3, t4, originalSelector, rule, oldAtRootExcludingStyleRule, _0_0, _0_1, lastChild, _this = this; if (_this._evaluate0$_declarationName != null) throw A.wrapException(_this._evaluate0$_exception$2(string$.Style_, node.span)); t1 = _this._evaluate0$_atRootExcludingStyleRule; styleRule = t1 ? null : _this._evaluate0$_styleRuleIgnoringAtRoot; t2 = node._style_rule0$_selector._box0$_inner.value; t3 = styleRule == null; t4 = t3 ? null : styleRule.originalSelector; originalSelector = t2.resolveParentSelectors$2$implicitParent(t4, !t1); rule = A.ModifiableCssStyleRule$0(_this._evaluate0$_assertInModule$2(_this._evaluate0$__extensionStore, "_extensionStore").addSelector$2(originalSelector, _this._evaluate0$_mediaQueries), node.span, originalSelector); oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule; _this._evaluate0$_atRootExcludingStyleRule = false; _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure5(_this, rule, node), false, new A._EvaluateVisitor_visitCssStyleRule_closure6(), type$.ModifiableCssStyleRule_2, type$.Null); _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule; _0_0 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent").children; _0_1 = A._InitializedCell$(new A._EvaluateVisitor_visitCssStyleRule_closure7(_0_0)); if (_0_1._readFinal$0() >= 1) { lastChild = J.elementAt$1$ax(_0_0._collection$_source, _0_1._readFinal$0() - 1); t1 = t3; } else { lastChild = null; t1 = false; } if (t1) lastChild.isGroupEnd = true; }, visitCssStylesheet$1(node) { var t1; for (t1 = J.get$iterator$ax(node.get$children(node)); t1.moveNext$0();) t1.get$current(t1).accept$1(this); }, visitCssSupportsRule$1(node) { var _this = this; if (_this._evaluate0$_declarationName != null) throw A.wrapException(_this._evaluate0$_exception$2(string$.Suppor, node.span)); _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); }, _evaluate0$_handleReturn$1$2(list, callback) { var t1, _i, _0_0, result, t2; for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i) { _0_0 = callback.call$1(list[_i]); if (_0_0 != null) { result = _0_0; t2 = true; } else { result = null; t2 = false; } if (t2) return result; } return null; }, _evaluate0$_handleReturn$2(list, callback) { return this._evaluate0$_handleReturn$1$2(list, callback, type$.dynamic); }, _evaluate0$_withEnvironment$1$2(environment, callback) { var result, oldEnvironment = this._evaluate0$_environment; this._evaluate0$_environment = environment; result = callback.call$0(); this._evaluate0$_environment = oldEnvironment; return result; }, _evaluate0$_withEnvironment$2(environment, callback) { return this._evaluate0$_withEnvironment$1$2(environment, callback, type$.dynamic); }, _evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) { var result = this._evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor), t1 = trim ? A.trimAscii0(result, true) : result; return new A.CssValue0(t1, interpolation.span, type$.CssValue_String_2); }, _evaluate0$_interpolationToValue$1(interpolation) { return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false); }, _evaluate0$_interpolationToValue$2$warnForColor(interpolation, warnForColor) { return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor); }, _evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor) { var _0_0 = this._evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, false, warnForColor); return _0_0._0; }, _evaluate0$_performInterpolation$1(interpolation) { return this._evaluate0$_performInterpolation$2$warnForColor(interpolation, false); }, _evaluate0$_performInterpolationWithMap$2$warnForColor(interpolation, warnForColor) { var _0_0 = this._evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, true, true), map = _0_0._1; map.toString; return new A._Record_2(_0_0._0, map); }, _evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, sourceMap, warnForColor) { var t1, t2, t3, t4, t5, t6, t7, first, _i, t8, value, result, t9, result0, _this = this, _null = null, targetLocations = sourceMap ? A._setArrayType([], type$.JSArray_SourceLocation) : _null, oldInSupportsDeclaration = _this._evaluate0$_inSupportsDeclaration; _this._evaluate0$_inSupportsDeclaration = false; for (t1 = interpolation.contents, t2 = t1.length, t3 = type$.Expression_2, t4 = targetLocations == null, t5 = type$.JSArray_Object, t6 = interpolation.span, t7 = type$.Object, first = true, _i = 0, t8 = ""; _i < t2; ++_i, first = false) { value = t1[_i]; if (!first) if (!t4) targetLocations.push(A.SourceLocation$(t8.length, _null, _null, _null)); if (typeof value == "string") { t8 += value; continue; } t3._as(value); result = value.accept$1(_this); if (warnForColor && $.$get$namesByColor0().containsKey$1(result)) { t9 = A._setArrayType([""], t5); result0 = A.List_List$from(t9, false, t7); result0.fixed$length = Array; result0.immutable$list = Array; result0 = new A.Interpolation0(result0, t6); result0.Interpolation$20(t9, t6); t9 = $.$get$namesByColor0(); _this._evaluate0$_warn$2(string$.You_pr + A.S(t9.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whicw + A.S(t9.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression0(B.BinaryOperator_anB0, new A.StringExpression0(result0, true), value, false).toString$0(0) + "'.", value.get$span(value)); } t8 += _this._evaluate0$_serialize$3$quote(result, value, false); } _this._evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration; return new A._Record_2(t8.charCodeAt(0) == 0 ? t8 : t8, A.NullableExtension_andThen0(targetLocations, new A._EvaluateVisitor__performInterpolationHelper_closure1(interpolation))); }, _evaluate0$_serialize$3$quote(value, nodeWithSpan, quote) { return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure1(value, quote)); }, _evaluate0$_serialize$2(value, nodeWithSpan) { return this._evaluate0$_serialize$3$quote(value, nodeWithSpan, true); }, _evaluate0$_expressionNode$1(expression) { var t1; if (expression instanceof A.VariableExpression0) { t1 = this._evaluate0$_addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure1(this, expression)); return t1 == null ? expression : t1; } else return expression; }, _evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) { var t1, result, _this = this; _this._evaluate0$_addChild$2$through(node, through); t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent"); _this._evaluate0$__parent = node; result = _this._evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T); _this._evaluate0$__parent = t1; return result; }, _evaluate0$_withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) { return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T); }, _evaluate0$_withParent$2$2(node, callback, $S, $T) { return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T); }, _evaluate0$_addChild$2$through(node, through) { var _0_0, grandparent, t1, $parent = this._evaluate0$_assertInModule$2(this._evaluate0$__parent, "__parent"); if (through != null) { for (; through.call$1($parent); $parent = grandparent) { _0_0 = $parent._node$_parent; if (_0_0 != null) { grandparent = _0_0; t1 = true; } else { grandparent = null; t1 = false; } if (!t1) throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null)); } if ($parent.get$hasFollowingSibling()) { grandparent = $parent._node$_parent; t1 = grandparent.children; if ($parent.equalsIgnoringChildren$1(t1.get$last(t1))) $parent = type$.ModifiableCssParentNode_2._as(t1.get$last(t1)); else { $parent = $parent.copyWithoutChildren$0(); grandparent.addChild$1($parent); } } } $parent.addChild$1(node); }, _evaluate0$_addChild$1(node) { return this._evaluate0$_addChild$2$through(node, null); }, _evaluate0$_withStyleRule$1$2(rule, callback) { var result, oldRule = this._evaluate0$_styleRuleIgnoringAtRoot; this._evaluate0$_styleRuleIgnoringAtRoot = rule; result = callback.call$0(); this._evaluate0$_styleRuleIgnoringAtRoot = oldRule; return result; }, _evaluate0$_withStyleRule$2(rule, callback) { return this._evaluate0$_withStyleRule$1$2(rule, callback, type$.dynamic); }, _evaluate0$_withMediaQueries$1$3(queries, sources, callback) { var result, _this = this, oldMediaQueries = _this._evaluate0$_mediaQueries, oldSources = _this._evaluate0$_mediaQuerySources; _this._evaluate0$_mediaQueries = queries; _this._evaluate0$_mediaQuerySources = sources; result = callback.call$0(); _this._evaluate0$_mediaQueries = oldMediaQueries; _this._evaluate0$_mediaQuerySources = oldSources; return result; }, _evaluate0$_withMediaQueries$3(queries, sources, callback) { return this._evaluate0$_withMediaQueries$1$3(queries, sources, callback, type$.dynamic); }, _evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback) { var oldMember, result, _this = this, t1 = _this._evaluate0$_stack; t1.push(new A._Record_2(_this._evaluate0$_member, nodeWithSpan)); oldMember = _this._evaluate0$_member; _this._evaluate0$_member = member; result = callback.call$0(); _this._evaluate0$_member = oldMember; t1.pop(); return result; }, _evaluate0$_withStackFrame$3(member, nodeWithSpan, callback) { return this._evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic); }, _evaluate0$_withoutSlash$2(value, nodeForSpan) { if (value instanceof A.SassNumber0 && value.asSlash != null && true) 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_wWh); return value.withoutSlash$0(); }, _evaluate0$_stackFrame$2(member, span) { return A.frameForSpan0(span, member, A.NullableExtension_andThen0(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure1(this))); }, _evaluate0$_stackTrace$1(span) { var t2, t3, _i, t4, nodeWithSpan, _this = this, t1 = A._setArrayType([], type$.JSArray_Frame); for (t2 = _this._evaluate0$_stack, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) { t4 = t2[_i]; nodeWithSpan = t4._1; t1.push(_this._evaluate0$_stackFrame$2(t4._0, nodeWithSpan.get$span(nodeWithSpan))); } if (span != null) t1.push(_this._evaluate0$_stackFrame$2(_this._evaluate0$_member, span)); return A.Trace$(new A.ReversedListIterable(t1, type$.ReversedListIterable_Frame), null); }, _evaluate0$_stackTrace$0() { return this._evaluate0$_stackTrace$1(null); }, _evaluate0$_warn$3(message, span, deprecation) { var t1, trace, _this = this; if (_this._evaluate0$_quietDeps) if (!_this._evaluate0$_inDependency) { t1 = _this._evaluate0$_currentCallable; t1 = t1 == null ? null : t1.inDependency; t1 = t1 === true; } else t1 = true; else t1 = false; if (t1) return; if (!_this._evaluate0$_warningsEmitted.add$1(0, new A._Record_2(message, span))) return; trace = _this._evaluate0$_stackTrace$1(span); t1 = _this._evaluate0$_logger; if (deprecation == null) t1.warn$3$span$trace(0, message, span, trace); else A.WarnForDeprecation_warnForDeprecation0(t1, deprecation, message, span, trace); }, _evaluate0$_warn$2(message, span) { return this._evaluate0$_warn$3(message, span, null); }, _evaluate0$_exception$2(message, span) { var t1, t2; if (span == null) { t1 = B.JSArray_methods.get$last(this._evaluate0$_stack)._1; t1 = t1.get$span(t1); } else t1 = span; t2 = this._evaluate0$_stackTrace$1(span); return new A.SassRuntimeException0(t2, B.Set_empty, message, t1); }, _evaluate0$_exception$1(message) { return this._evaluate0$_exception$2(message, null); }, _evaluate0$_multiSpanException$3(message, primaryLabel, secondaryLabels) { var t1 = B.JSArray_methods.get$last(this._evaluate0$_stack)._1; return A.MultiSpanSassRuntimeException$0(message, t1.get$span(t1), primaryLabel, secondaryLabels, this._evaluate0$_stackTrace$0(), null); }, _evaluate0$_addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame) { var error, stackTrace, t1, exception; try { t1 = callback.call$0(); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassScriptException0) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan)); A.throwWithTrace0(t1.withTrace$1(this._evaluate0$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace); } else throw exception; } }, _evaluate0$_addExceptionSpan$2(nodeWithSpan, callback) { return this._evaluate0$_addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, true, type$.dynamic); }, _evaluate0$_addExceptionSpan$3$addStackFrame(nodeWithSpan, callback, addStackFrame) { return this._evaluate0$_addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame, type$.dynamic); }, _evaluate0$_addExceptionTrace$1$1(callback) { var error, stackTrace, t1, exception, t2; try { t1 = callback.call$0(); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (type$.SassRuntimeException_2._is(t1)) throw exception; else if (t1 instanceof A.SassException0) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = error; t2 = J.getInterceptor$z(t1); A.throwWithTrace0(error.withTrace$1(this._evaluate0$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t2, t1))), error, stackTrace); } else throw exception; } }, _evaluate0$_addExceptionTrace$1(callback) { return this._evaluate0$_addExceptionTrace$1$1(callback, type$.dynamic); }, _evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback) { var error, stackTrace, t1, exception, t2, t3; try { t1 = callback.call$0(); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (type$.SassRuntimeException_2._is(t1)) { error = t1; stackTrace = A.getTraceFromException(exception); if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error")) throw exception; t1 = error._span_exception$_message; t2 = nodeWithSpan.get$span(nodeWithSpan); t3 = this._evaluate0$_stackTrace$0(); A.throwWithTrace0(new A.SassRuntimeException0(t3, B.Set_empty, t1, t2), error, stackTrace); } else throw exception; } }, _evaluate0$_addErrorSpan$2(nodeWithSpan, callback) { return this._evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic); } }; A._EvaluateVisitor_closure25.prototype = { call$1($arguments) { var module, t2, t1 = J.getInterceptor$asx($arguments), variable = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this._evaluate0$_environment; t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-"); return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string0$_text) ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A._EvaluateVisitor_closure26.prototype = { call$1($arguments) { var variable = J.$index$asx($arguments, 0).assertString$1("name"), t1 = this.$this._evaluate0$_environment; return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-")) != null ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A._EvaluateVisitor_closure27.prototype = { call$1($arguments) { var module, t2, t3, t4, t1 = J.getInterceptor$asx($arguments), variable = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this; t2 = t1._evaluate0$_environment; t3 = variable._string0$_text; t4 = A.stringReplaceAllUnchecked(t3, "_", "-"); 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; }, $signature: 21 }; A._EvaluateVisitor_closure28.prototype = { call$1($arguments) { var module, t2, t1 = J.getInterceptor$asx($arguments), variable = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this._evaluate0$_environment; t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-"); return t1.getMixin$2$namespace(t2, module == null ? null : module._string0$_text) != null ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A._EvaluateVisitor_closure29.prototype = { call$1($arguments) { var t1 = this.$this._evaluate0$_environment; if (!t1._environment0$_inMixin) throw A.wrapException(A.SassScriptException$0(string$.conten, null)); return t1._environment0$_content != null ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A._EvaluateVisitor_closure30.prototype = { call$1($arguments) { var t2, t3, t4, $name, value, t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text, module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1); if (module == null) throw A.wrapException('There is no module with namespace "' + t1 + '".'); t1 = type$.Value_2; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs0(module.get$variables(), type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString0($name, true), value); } return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 38 }; A._EvaluateVisitor_closure31.prototype = { call$1($arguments) { var t2, t3, t4, $name, value, t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text, module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1); if (module == null) throw A.wrapException('There is no module with namespace "' + t1 + '".'); t1 = type$.Value_2; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs0(module.get$functions(module), type$.String, type$.Callable_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString0($name, true), new A.SassFunction0(value)); } return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 38 }; A._EvaluateVisitor_closure32.prototype = { call$1($arguments) { var t2, t3, t4, $name, value, t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text, module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1); if (module == null) throw A.wrapException('There is no module with namespace "' + t1 + '".'); t1 = type$.Value_2; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs0(module.get$mixins(), type$.String, type$.Callable_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); $name = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString0($name, true), new A.SassMixin0(value)); } return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 38 }; A._EvaluateVisitor_closure33.prototype = { call$1($arguments) { var module, t2, callable, t1 = J.getInterceptor$asx($arguments), $name = t1.$index($arguments, 0).assertString$1("name"), css = t1.$index($arguments, 1).get$isTruthy(); t1 = t1.$index($arguments, 2).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); if (css) { if (module != null) throw A.wrapException(string$.x24css_a); return new A.SassFunction0(new A.PlainCssCallable0($name._string0$_text)); } t1 = this.$this; t2 = t1._evaluate0$_callableNode; t2.toString; callable = t1._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure10(t1, $name, module)); if (callable == null) throw A.wrapException("Function not found: " + $name.toString$0(0)); return new A.SassFunction0(callable); }, $signature: 182 }; A._EvaluateVisitor__closure10.prototype = { call$0() { var local, normalizedName = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"), t1 = this.module, namespace = t1 == null ? null : t1._string0$_text; t1 = this.$this; local = t1._evaluate0$_environment.getFunction$2$namespace(normalizedName, namespace); if (local != null || namespace != null) return local; return t1._evaluate0$_builtInFunctions.$index(0, normalizedName); }, $signature: 102 }; A._EvaluateVisitor_closure34.prototype = { call$1($arguments) { var module, t2, callable, t1 = J.getInterceptor$asx($arguments), $name = t1.$index($arguments, 0).assertString$1("name"); t1 = t1.$index($arguments, 1).get$realNull(); module = t1 == null ? null : t1.assertString$1("module"); t1 = this.$this; t2 = t1._evaluate0$_callableNode; t2.toString; callable = t1._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure9(t1, $name, module)); if (callable == null) throw A.wrapException("Mixin not found: " + $name.toString$0(0)); return new A.SassMixin0(callable); }, $signature: 184 }; A._EvaluateVisitor__closure9.prototype = { call$0() { var t1 = this.$this._evaluate0$_environment, t2 = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"), t3 = this.module; return t1.getMixin$2$namespace(t2, t3 == null ? null : t3._string0$_text); }, $signature: 102 }; A._EvaluateVisitor_closure35.prototype = { call$1($arguments) { var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, $name, value, invocation, callableNode, callable, _null = null, t1 = J.getInterceptor$asx($arguments), $function = t1.$index($arguments, 0), args = type$.SassArgumentList_2._as(t1.$index($arguments, 1)); t1 = this.$this; t2 = t1._evaluate0$_callableNode; t2.toString; t3 = A._setArrayType([], type$.JSArray_Expression_2); t4 = type$.String; t5 = type$.Expression_2; t6 = t2.get$span(t2); t7 = t2.get$span(t2); args._argument_list$_wereKeywordsAccessed = true; t8 = args._argument_list$_keywords; if (t8.get$isEmpty(t8)) t2 = _null; else { t9 = type$.Value_2; t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9); for (args._argument_list$_wereKeywordsAccessed = true, t8 = A.MapExtensions_get_pairs0(t8, t4, t9), t8 = t8.get$iterator(t8); t8.moveNext$0();) { t11 = t8.get$current(t8); $name = t11._0; value = t11._1; value = value; t10.$indexSet(0, new A.SassString0($name, false), value); } t2 = new A.ValueExpression0(new A.SassMap0(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2)); } 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); if ($function instanceof A.SassString0) { t2 = $function.toString$0(0); A.EvaluationContext_current0().warn$2(0, string$.Passina + t2 + "))", B.Deprecation_4iQ); callableNode = t1._evaluate0$_callableNode; return t1.visitFunctionExpression$1(new A.FunctionExpression0(_null, $function._string0$_text, invocation, callableNode.get$span(callableNode))); } callable = $function.assertFunction$1("function").callable; if (type$.Callable_2._is(callable)) { t2 = t1._evaluate0$_callableNode; t2.toString; return t1._evaluate0$_runFunctionCallable$3(invocation, callable, t2); } else throw A.wrapException(A.SassScriptException$0("The function " + callable.get$name(callable) + string$.x20is_as, _null)); }, $signature: 5 }; A._EvaluateVisitor_closure36.prototype = { call$1($arguments) { var withMap, t2, values, configuration, t3, t1 = J.getInterceptor$asx($arguments), url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string0$_text); t1 = t1.$index($arguments, 1).get$realNull(); withMap = t1 == null ? null : t1.assertMap$1("with")._map0$_contents; t1 = this.$this; t2 = t1._evaluate0$_callableNode; t2.toString; if (withMap != null) { values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2); withMap.forEach$1(0, new A._EvaluateVisitor__closure7(values, t2.get$span(t2), t2)); configuration = new A.ExplicitConfiguration0(t2, values, null); } else configuration = B.Configuration_Map_empty_null0; t3 = t2.get$span(t2); t1._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure8(t1), t3.get$sourceUrl(t3), configuration, true); t1._evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true); }, $signature: 239 }; A._EvaluateVisitor__closure7.prototype = { call$2(variable, value) { var t1 = variable.assertString$1("with key"), $name = A.stringReplaceAllUnchecked(t1._string0$_text, "_", "-"); t1 = this.values; if (t1.containsKey$1($name)) throw A.wrapException("The variable $" + $name + " was configured twice."); t1.$indexSet(0, $name, new A.ConfiguredValue0(value, this.span, this.callableNode)); }, $signature: 104 }; A._EvaluateVisitor__closure8.prototype = { call$2(module, _) { var t1 = this.$this; return t1._evaluate0$_combineCss$2$clone(module, true).accept$1(t1); }, $signature: 95 }; A._EvaluateVisitor_closure37.prototype = { call$1($arguments) { var callableNode, t2, t3, t4, t5, callable, $content, t1 = J.getInterceptor$asx($arguments), mixin = t1.$index($arguments, 0), args = type$.SassArgumentList_2._as(t1.$index($arguments, 1)); t1 = this.$this; callableNode = t1._evaluate0$_callableNode; t2 = callableNode.get$span(callableNode); t3 = callableNode.get$span(callableNode); t4 = type$.Expression_2; t5 = A.List_List$unmodifiable(B.List_empty20, t4); t4 = A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t4); callable = mixin.assertMixin$1("mixin").callable; $content = t1._evaluate0$_environment._environment0$_content; if (type$.Callable_2._is(callable)) t1._evaluate0$_applyMixin$5(callable, $content, new A.ArgumentInvocation0(t5, t4, new A.ValueExpression0(args, t3), null, t2), callableNode, callableNode); else throw A.wrapException(A.SassScriptException$0("The mixin " + callable.get$name(callable) + string$.x20is_as, null)); }, $signature: 239 }; A._EvaluateVisitor_run_closure1.prototype = { call$0() { var module, t2, _this = this, url = null, t1 = _this.node, _0_0 = t1.span.file.url; if (_0_0 != null) { url = _0_0; t2 = true; } else t2 = false; if (t2) { t2 = _this.$this; t2._evaluate0$_activeModules.$indexSet(0, url, null); if (!(t2._evaluate0$_nodeImporter != null && J.toString$0$(url) === "stdin")) t2._evaluate0$_loadedUrls.add$1(0, url); } t2 = _this.$this; module = t2._evaluate0$_addExceptionTrace$1(new A._EvaluateVisitor_run__closure1(t2, _this.importer, t1)); return new A._Record_2_loadedUrls_stylesheet(t2._evaluate0$_loadedUrls, t2._evaluate0$_combineCss$1(module)); }, $signature: 439 }; A._EvaluateVisitor_run__closure1.prototype = { call$0() { return this.$this._evaluate0$_execute$2(this.importer, this.node); }, $signature: 440 }; A._EvaluateVisitor__loadModule_closure3.prototype = { call$0() { return this.callback.call$2(this._box_1.builtInModule, false); }, $signature: 0 }; A._EvaluateVisitor__loadModule_closure4.prototype = { call$0() { var canonicalUrl, oldInDependency, isDependency, t4, message, _this = this, t1 = {}, stylesheet = null, importer = null, t2 = _this.$this, t3 = _this.nodeWithSpan, _1_0 = t2._evaluate0$_loadStylesheet$3$baseUrl(_this.url.toString$0(0), t3.get$span(t3), _this.baseUrl); stylesheet = _1_0._0; importer = _1_0._1; isDependency = _1_0._2; isDependency = isDependency; canonicalUrl = stylesheet.span.file.url; if (canonicalUrl != null) { t4 = t2._evaluate0$_activeModules; if (t4.containsKey$1(canonicalUrl)) { message = _this.namesInErrors ? "Module loop: " + $.$get$context().prettyUri$1(canonicalUrl) + " is already being loaded." : string$.Modulel; t1 = A.NullableExtension_andThen0(t4.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure3(t2, message)); throw A.wrapException(t1 == null ? t2._evaluate0$_exception$1(message) : t1); } else t4.$indexSet(0, canonicalUrl, t3); } t4 = t2._evaluate0$_modules.containsKey$1(canonicalUrl); oldInDependency = t2._evaluate0$_inDependency; t2._evaluate0$_inDependency = isDependency; t1.module = null; try { t1.module = t2._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t3); } finally { t2._evaluate0$_activeModules.remove$1(0, canonicalUrl); t2._evaluate0$_inDependency = oldInDependency; } t2._evaluate0$_addExceptionSpan$3$addStackFrame(t3, new A._EvaluateVisitor__loadModule__closure4(t1, _this.callback, !t4), false); }, $signature: 2 }; A._EvaluateVisitor__loadModule__closure3.prototype = { call$1(previousLoad) { return this.$this._evaluate0$_multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String)); }, $signature: 105 }; A._EvaluateVisitor__loadModule__closure4.prototype = { call$0() { return this.callback.call$2(this._box_0.module, this.firstLoad); }, $signature: 0 }; A._EvaluateVisitor__execute_closure1.prototype = { call$0() { var t3, t4, t5, t6, _this = this, t1 = _this.$this, oldImporter = t1._evaluate0$_importer, oldStylesheet = t1._evaluate0$__stylesheet, oldRoot = t1._evaluate0$__root, oldPreModuleComments = t1._evaluate0$_preModuleComments, oldParent = t1._evaluate0$__parent, oldEndOfImports = t1._evaluate0$__endOfImports, oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports, oldExtensionStore = t1._evaluate0$__extensionStore, t2 = t1._evaluate0$_atRootExcludingStyleRule, oldStyleRule = t2 ? null : t1._evaluate0$_styleRuleIgnoringAtRoot, oldMediaQueries = t1._evaluate0$_mediaQueries, oldDeclarationName = t1._evaluate0$_declarationName, oldInUnknownAtRule = t1._evaluate0$_inUnknownAtRule, oldInKeyframes = t1._evaluate0$_inKeyframes, oldConfiguration = t1._evaluate0$_configuration; t1._evaluate0$_importer = _this.importer; t3 = t1._evaluate0$__stylesheet = _this.stylesheet; t4 = t3.span; t5 = t1._evaluate0$__parent = t1._evaluate0$__root = A.ModifiableCssStylesheet$0(t4); t1._evaluate0$__endOfImports = 0; t1._evaluate0$_outOfOrderImports = null; t1._evaluate0$__extensionStore = _this.extensionStore; t1._evaluate0$_declarationName = t1._evaluate0$_mediaQueries = t1._evaluate0$_styleRuleIgnoringAtRoot = null; t1._evaluate0$_inKeyframes = t1._evaluate0$_atRootExcludingStyleRule = t1._evaluate0$_inUnknownAtRule = false; t6 = _this.configuration; if (t6 != null) t1._evaluate0$_configuration = t6; t1.visitStylesheet$1(t3); t3 = t1._evaluate0$_outOfOrderImports == null ? t5 : new A.CssStylesheet0(new A.UnmodifiableListView(t1._evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode_2), t4); _this.css._value = t3; _this.preModuleComments._value = t1._evaluate0$_preModuleComments; t1._evaluate0$_importer = oldImporter; t1._evaluate0$__stylesheet = oldStylesheet; t1._evaluate0$__root = oldRoot; t1._evaluate0$_preModuleComments = oldPreModuleComments; t1._evaluate0$__parent = oldParent; t1._evaluate0$__endOfImports = oldEndOfImports; t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports; t1._evaluate0$__extensionStore = oldExtensionStore; t1._evaluate0$_styleRuleIgnoringAtRoot = oldStyleRule; t1._evaluate0$_mediaQueries = oldMediaQueries; t1._evaluate0$_declarationName = oldDeclarationName; t1._evaluate0$_inUnknownAtRule = oldInUnknownAtRule; t1._evaluate0$_atRootExcludingStyleRule = t2; t1._evaluate0$_inKeyframes = oldInKeyframes; t1._evaluate0$_configuration = oldConfiguration; }, $signature: 2 }; A._EvaluateVisitor__combineCss_closure3.prototype = { call$1(module) { return module.get$transitivelyContainsCss(); }, $signature: 136 }; A._EvaluateVisitor__combineCss_closure4.prototype = { call$1(target) { return !this.selectors.contains$1(0, target); }, $signature: 15 }; A._EvaluateVisitor__combineCss_visitModule1.prototype = { call$1(module) { var t1, t2, t3, t4, _i, upstream, _1_0, comments, t5, statements, index, _this = this; if (!_this.seen.add$1(0, module)) return; if (_this.clone) module = module.cloneCss$0(); 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) { upstream = t1[_i]; if (upstream.get$transitivelyContainsCss()) { _1_0 = module.get$preModuleComments().$index(0, upstream); if (_1_0 != null) { comments = _1_0; t5 = true; } else { comments = null; t5 = false; } if (t5) B.JSArray_methods.addAll$1(t3.length === 0 ? t4 : t3, comments); _this.call$1(upstream); } } _this.sorted.addFirst$1(module); t1 = module.get$css(module); statements = t1.get$children(t1); index = _this.$this._evaluate0$_indexAfterImports$1(statements); t1 = J.getInterceptor$ax(statements); B.JSArray_methods.addAll$1(t4, t1.getRange$2(statements, 0, index)); B.JSArray_methods.addAll$1(t3, t1.getRange$2(statements, index, t1.get$length(statements))); }, $signature: 441 }; A._EvaluateVisitor__extendModules_closure3.prototype = { call$1(target) { return !this.originalSelectors.contains$1(0, target); }, $signature: 15 }; A._EvaluateVisitor__extendModules_closure4.prototype = { call$0() { return A._setArrayType([], type$.JSArray_ExtensionStore_2); }, $signature: 188 }; A._EvaluateVisitor_visitAtRootRule_closure3.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitAtRootRule_closure4.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 0 }; A._EvaluateVisitor__scopeForAtRoot_closure11.prototype = { call$1(callback) { var t1 = this.$this, t2 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__parent, "__parent"); t1._evaluate0$__parent = this.newParent; t1._evaluate0$_environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void); t1._evaluate0$__parent = t2; }, $signature: 39 }; A._EvaluateVisitor__scopeForAtRoot_closure12.prototype = { call$1(callback) { var t1 = this.$this, oldAtRootExcludingStyleRule = t1._evaluate0$_atRootExcludingStyleRule; t1._evaluate0$_atRootExcludingStyleRule = true; this.innerScope.call$1(callback); t1._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule; }, $signature: 39 }; A._EvaluateVisitor__scopeForAtRoot_closure13.prototype = { call$1(callback) { return this.$this._evaluate0$_withMediaQueries$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure1(this.innerScope, callback)); }, $signature: 39 }; A._EvaluateVisitor__scopeForAtRoot__closure1.prototype = { call$0() { return this.innerScope.call$1(this.callback); }, $signature: 2 }; A._EvaluateVisitor__scopeForAtRoot_closure14.prototype = { call$1(callback) { var t1 = this.$this, wasInKeyframes = t1._evaluate0$_inKeyframes; t1._evaluate0$_inKeyframes = false; this.innerScope.call$1(callback); t1._evaluate0$_inKeyframes = wasInKeyframes; }, $signature: 39 }; A._EvaluateVisitor__scopeForAtRoot_closure15.prototype = { call$1($parent) { return $parent instanceof A.ModifiableCssAtRule0; }, $signature: 189 }; A._EvaluateVisitor__scopeForAtRoot_closure16.prototype = { call$1(callback) { var t1 = this.$this, wasInUnknownAtRule = t1._evaluate0$_inUnknownAtRule; t1._evaluate0$_inUnknownAtRule = false; this.innerScope.call$1(callback); t1._evaluate0$_inUnknownAtRule = wasInUnknownAtRule; }, $signature: 39 }; A._EvaluateVisitor_visitContentRule_closure1.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); return null; }, $signature: 2 }; A._EvaluateVisitor_visitDeclaration_closure1.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this._box_0.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitEachRule_closure5.prototype = { call$1(value) { var t1 = this.$this, t2 = this.nodeWithSpan; return t1._evaluate0$_environment.setLocalVariable$3(this._box_0.variable, t1._evaluate0$_withoutSlash$2(value, t2), t2); }, $signature: 57 }; A._EvaluateVisitor_visitEachRule_closure6.prototype = { call$1(value) { return this.$this._evaluate0$_setMultipleVariables$3(this._box_0.variables, value, this.nodeWithSpan); }, $signature: 57 }; A._EvaluateVisitor_visitEachRule_closure7.prototype = { call$0() { var _this = this, t1 = _this.$this; return t1._evaluate0$_handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure1(t1, _this.setVariables, _this.node)); }, $signature: 46 }; A._EvaluateVisitor_visitEachRule__closure1.prototype = { call$1(element) { var t1; this.setVariables.call$1(element); t1 = this.$this; return t1._evaluate0$_handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure1(t1)); }, $signature: 241 }; A._EvaluateVisitor_visitEachRule___closure1.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 93 }; A._EvaluateVisitor_visitAtRule_closure5.prototype = { call$1(value) { return this.$this._evaluate0$_interpolationToValue$3$trim$warnForColor(value, true, true); }, $signature: 444 }; A._EvaluateVisitor_visitAtRule_closure6.prototype = { call$0() { var t2, t3, _i, _this = this, t1 = _this.$this, styleRule = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot; if (styleRule == null || t1._evaluate0$_inKeyframes || J.$eq$(_this.name.value, "font-face")) for (t2 = _this.children, t3 = t2.length, _i = 0; _i < t3; ++_i) t2[_i].accept$1(t1); else t1._evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure1(t1, _this.children), false, type$.ModifiableCssStyleRule_2, type$.Null); }, $signature: 2 }; A._EvaluateVisitor_visitAtRule__closure1.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitAtRule_closure7.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor_visitForRule_closure9.prototype = { call$0() { return this.node.from.accept$1(this.$this).assertNumber$0(); }, $signature: 243 }; A._EvaluateVisitor_visitForRule_closure10.prototype = { call$0() { return this.node.to.accept$1(this.$this).assertNumber$0(); }, $signature: 243 }; A._EvaluateVisitor_visitForRule_closure11.prototype = { call$0() { return this.fromNumber.assertInt$0(); }, $signature: 3 }; A._EvaluateVisitor_visitForRule_closure12.prototype = { call$0() { var t1 = this.fromNumber; return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0(); }, $signature: 3 }; A._EvaluateVisitor_visitForRule_closure13.prototype = { call$0() { var i, t3, t4, t5, t6, t7, t8, _0_0, result, _this = this, t1 = _this.$this, t2 = _this.node, nodeWithSpan = t1._evaluate0$_expressionNode$1(t2.from); 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) { t7 = t1._evaluate0$_environment; t8 = t6.get$numeratorUnits(t6); t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits0(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan); _0_0 = t1._evaluate0$_handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure1(t1)); if (_0_0 != null) { result = _0_0; t7 = true; } else { result = null; t7 = false; } if (t7) return result; } return null; }, $signature: 46 }; A._EvaluateVisitor_visitForRule__closure1.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 93 }; A._EvaluateVisitor_visitForwardRule_closure3.prototype = { call$2(module, firstLoad) { if (firstLoad) this.$this._evaluate0$_registerCommentsForModule$1(module); this.$this._evaluate0$_environment.forwardModule$2(module, this.node); }, $signature: 95 }; A._EvaluateVisitor_visitForwardRule_closure4.prototype = { call$2(module, firstLoad) { if (firstLoad) this.$this._evaluate0$_registerCommentsForModule$1(module); this.$this._evaluate0$_environment.forwardModule$2(module, this.node); }, $signature: 95 }; A._EvaluateVisitor__registerCommentsForModule_closure1.prototype = { call$0() { return A._setArrayType([], type$.JSArray_CssComment_2); }, $signature: 245 }; A._EvaluateVisitor_visitIfRule_closure1.prototype = { call$1(clause) { var t1 = this.$this; return t1._evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule__closure1(t1, clause), true, clause.hasDeclarations, type$.nullable_Value_2); }, $signature: 446 }; A._EvaluateVisitor_visitIfRule__closure1.prototype = { call$0() { var t1 = this.$this; return t1._evaluate0$_handleReturn$2(this.clause.children, new A._EvaluateVisitor_visitIfRule___closure1(t1)); }, $signature: 46 }; A._EvaluateVisitor_visitIfRule___closure1.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 93 }; A._EvaluateVisitor__visitDynamicImport_closure1.prototype = { call$0() { var t1, t2, _0_0, stylesheet, t3, isDependency, t4, url, t5, t6, oldImporter, oldInDependency, loadsUserDefinedModules, children, t7, t8, t9, t10, environment, module, visitor, _null = null, _box_0 = {}; _box_0.isDependency = _box_0.importer = _box_0.stylesheet = null; t1 = this.$this; t2 = this.$import; _0_0 = t1._evaluate0$_loadStylesheet$3$forImport(t2.urlString, t2.span, true); stylesheet = _box_0.stylesheet = _0_0._0; t3 = _box_0.importer = _0_0._1; isDependency = _0_0._2; _box_0.isDependency = isDependency; t4 = isDependency; url = stylesheet.span.file.url; if (url != null) { t5 = t1._evaluate0$_activeModules; if (t5.containsKey$1(url)) { t2 = A.NullableExtension_andThen0(t5.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure7(t1)); throw A.wrapException(t2 == null ? t1._evaluate0$_exception$1("This file is already being loaded.") : t2); } t5.$indexSet(0, url, t2); } t2 = stylesheet._stylesheet1$_uses; t5 = type$.UnmodifiableListView_UseRule_2; t6 = new A.UnmodifiableListView(t2, t5); if (t6.get$length(t6) === 0) { t6 = new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2); t6 = t6.get$length(t6) === 0; } else t6 = false; if (t6) { oldImporter = t1._evaluate0$_importer; t2 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__stylesheet, "_stylesheet"); oldInDependency = t1._evaluate0$_inDependency; t1._evaluate0$_importer = t3; t1._evaluate0$__stylesheet = stylesheet; t1._evaluate0$_inDependency = t4; t1.visitStylesheet$1(stylesheet); t1._evaluate0$_importer = oldImporter; t1._evaluate0$__stylesheet = t2; t1._evaluate0$_inDependency = oldInDependency; t1._evaluate0$_activeModules.remove$1(0, url); return; } t2 = new A.UnmodifiableListView(t2, t5); if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure8())) { t2 = new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2); loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure9()); } else loadsUserDefinedModules = true; children = A._Cell$(); t2 = t1._evaluate0$_environment; t3 = type$.String; t4 = type$.Module_Callable_2; t5 = type$.AstNode_2; t6 = A._setArrayType([], type$.JSArray_Module_Callable_2); t7 = t2._environment0$_variables; t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7)); t8 = t2._environment0$_variableNodes; t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8)); t9 = t2._environment0$_functions; t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9)); t10 = t2._environment0$_mixins; t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10)); 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); t1._evaluate0$_withEnvironment$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure10(_box_0, t1, loadsUserDefinedModules, environment, children)); module = environment.toDummyModule$0(); t1._evaluate0$_environment.importForwards$1(module); if (loadsUserDefinedModules) { if (module.transitivelyContainsCss) t1._evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1); visitor = new A._ImportedCssVisitor1(t1); for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();) t2.get$current(t2).accept$1(visitor); } t1._evaluate0$_activeModules.remove$1(0, url); }, $signature: 0 }; A._EvaluateVisitor__visitDynamicImport__closure7.prototype = { call$1(previousLoad) { 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)); }, $signature: 105 }; A._EvaluateVisitor__visitDynamicImport__closure8.prototype = { call$1(rule) { return rule.url.get$scheme() !== "sass"; }, $signature: 197 }; A._EvaluateVisitor__visitDynamicImport__closure9.prototype = { call$1(rule) { return rule.url.get$scheme() !== "sass"; }, $signature: 198 }; A._EvaluateVisitor__visitDynamicImport__closure10.prototype = { call$0() { var t7, t8, _this = this, t1 = _this.$this, oldImporter = t1._evaluate0$_importer, t2 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__stylesheet, "_stylesheet"), t3 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__root, "_root"), t4 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__parent, "__parent"), t5 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__endOfImports, "_endOfImports"), oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports, oldConfiguration = t1._evaluate0$_configuration, oldInDependency = t1._evaluate0$_inDependency, t6 = _this._box_0; t1._evaluate0$_importer = t6.importer; t7 = t6.stylesheet; t1._evaluate0$__stylesheet = t7; t8 = _this.loadsUserDefinedModules; if (t8) { t7 = A.ModifiableCssStylesheet$0(t7.span); t1._evaluate0$__root = t7; t1._evaluate0$__parent = t1._evaluate0$_assertInModule$2(t7, "_root"); t1._evaluate0$__endOfImports = 0; t1._evaluate0$_outOfOrderImports = null; } t1._evaluate0$_inDependency = t6.isDependency; t7 = new A.UnmodifiableListView(t6.stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2); if (!t7.get$isEmpty(t7)) t1._evaluate0$_configuration = _this.environment.toImplicitConfiguration$0(); t1.visitStylesheet$1(t6.stylesheet); t6 = t8 ? t1._evaluate0$_addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode_2); _this.children._value = t6; t1._evaluate0$_importer = oldImporter; t1._evaluate0$__stylesheet = t2; if (t8) { t1._evaluate0$__root = t3; t1._evaluate0$__parent = t4; t1._evaluate0$__endOfImports = t5; t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports; } t1._evaluate0$_configuration = oldConfiguration; t1._evaluate0$_inDependency = oldInDependency; }, $signature: 2 }; A._EvaluateVisitor__applyMixin_closure6.prototype = { call$0() { var _this = this, t1 = _this.$this; t1._evaluate0$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin__closure4(t1, _this.$arguments, _this.mixin, _this.nodeWithSpanWithoutContent)); }, $signature: 0 }; A._EvaluateVisitor__applyMixin__closure4.prototype = { call$0() { var _this = this; _this.$this._evaluate0$_runBuiltInCallable$3(_this.$arguments, _this.mixin, _this.nodeWithSpanWithoutContent); }, $signature: 0 }; A._EvaluateVisitor__applyMixin_closure5.prototype = { call$0() { var t1 = this._1_0; if (t1 == null) t1 = type$.Callable_2._as(t1); return type$.UserDefinedCallable_Environment_2._as(t1).declaration; }, $signature: 130 }; A._EvaluateVisitor__applyMixin_closure7.prototype = { call$0() { var _this = this, t1 = _this.$this; t1._evaluate0$_environment.withContent$2(_this.contentCallable, new A._EvaluateVisitor__applyMixin__closure3(t1, _this.mixin, _this.nodeWithSpanWithoutContent)); }, $signature: 2 }; A._EvaluateVisitor__applyMixin__closure3.prototype = { call$0() { var t1 = this.$this; t1._evaluate0$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin___closure1(t1, this.mixin, this.nodeWithSpanWithoutContent)); }, $signature: 0 }; A._EvaluateVisitor__applyMixin___closure1.prototype = { call$0() { var t1, t2, t3, t4, _i; for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpanWithoutContent, _i = 0; _i < t2; ++_i) t3._evaluate0$_addErrorSpan$2(t4, new A._EvaluateVisitor__applyMixin____closure1(t3, t1[_i])); }, $signature: 0 }; A._EvaluateVisitor__applyMixin____closure1.prototype = { call$0() { return this.statement.accept$1(this.$this); }, $signature: 46 }; A._EvaluateVisitor_visitIncludeRule_closure5.prototype = { call$0() { var t1 = this.node; return this.$this._evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace); }, $signature: 102 }; A._EvaluateVisitor_visitIncludeRule_closure6.prototype = { call$1($content) { var t1 = this.$this; return new A.UserDefinedCallable0($content, t1._evaluate0$_environment.closure$0(), t1._evaluate0$_inDependency, type$.UserDefinedCallable_Environment_2); }, $signature: 447 }; A._EvaluateVisitor_visitIncludeRule_closure7.prototype = { call$0() { return this.node.get$spanWithoutContent(); }, $signature: 33 }; A._EvaluateVisitor_visitMediaRule_closure5.prototype = { call$1(mediaQueries) { return this.$this._evaluate0$_mergeMediaQueries$2(mediaQueries, this.queries); }, $signature: 113 }; A._EvaluateVisitor_visitMediaRule_closure6.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this.mergedQueries; if (t2 == null) t2 = _this.queries; t1._evaluate0$_withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure1(t1, _this.node)); }, $signature: 2 }; A._EvaluateVisitor_visitMediaRule__closure1.prototype = { call$0() { var styleRule, t2, t3, _i, t1 = this.$this, _0_0 = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } if (t2) t1._evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure1(t1, this.node), false, type$.ModifiableCssStyleRule_2, type$.Null); else for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i) t2[_i].accept$1(t1); }, $signature: 2 }; A._EvaluateVisitor_visitMediaRule___closure1.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitMediaRule_closure7.prototype = { call$1(node) { var t1; if (!(node instanceof A.ModifiableCssStyleRule0)) { t1 = this.mergedSources; t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule0 && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1)); } else t1 = true; return t1; }, $signature: 8 }; A._EvaluateVisitor_visitStyleRule_closure9.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitStyleRule_closure10.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor_visitStyleRule_closure11.prototype = { call$0() { var t1 = this.$this; t1._evaluate0$_withStyleRule$2(this.rule, new A._EvaluateVisitor_visitStyleRule__closure1(t1, this.node)); }, $signature: 2 }; A._EvaluateVisitor_visitStyleRule__closure1.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitStyleRule_closure12.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor_visitStyleRule_closure13.prototype = { call$1(child) { return child instanceof A.ModifiableCssComment0; }, $signature: 148 }; A._EvaluateVisitor_visitSupportsRule_closure3.prototype = { call$0() { var styleRule, t2, t3, _i, t1 = this.$this, _0_0 = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } if (t2) t1._evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure1(t1, this.node), type$.ModifiableCssStyleRule_2, type$.Null); else for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i) t2[_i].accept$1(t1); }, $signature: 2 }; A._EvaluateVisitor_visitSupportsRule__closure1.prototype = { call$0() { var t1, t2, t3, _i; for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i) t1[_i].accept$1(t3); }, $signature: 2 }; A._EvaluateVisitor_visitSupportsRule_closure4.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor__visitSupportsCondition_closure1.prototype = { call$0() { var t4, t1 = this.$this, t2 = this._box_0, t3 = t2.declaration.name; t3 = t1._evaluate0$_serialize$3$quote(t3.accept$1(t1), t3, true); t4 = t2.declaration.get$isCustomProperty() ? "" : " "; t2 = t2.declaration.value; return "(" + t3 + ":" + t4 + t1._evaluate0$_serialize$3$quote(t2.accept$1(t1), t2, true) + ")"; }, $signature: 22 }; A._EvaluateVisitor_visitVariableDeclaration_closure5.prototype = { call$0() { var t1 = this.$this._evaluate0$_environment, t2 = this._box_0.override; t1.setVariable$4$global(this.node.name, t2.value, t2.assignmentNode, true); }, $signature: 2 }; A._EvaluateVisitor_visitVariableDeclaration_closure6.prototype = { call$0() { var t1 = this.node; return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace); }, $signature: 46 }; A._EvaluateVisitor_visitVariableDeclaration_closure7.prototype = { call$0() { var t1 = this.$this, t2 = this.node; t1._evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace); }, $signature: 2 }; A._EvaluateVisitor_visitUseRule_closure1.prototype = { call$2(module, firstLoad) { var t1, t2, t3, _0_0, $name, t4, t5, span; if (firstLoad) this.$this._evaluate0$_registerCommentsForModule$1(module); t1 = this.$this._evaluate0$_environment; t2 = this.node; t3 = t2.namespace; if (t3 == null) { t1._environment0$_globalModules.$indexSet(0, module, t2); t1._environment0$_allModules.push(module); _0_0 = A.IterableExtension_firstWhereOrNull(J.get$keys$z(B.JSArray_methods.get$first(t1._environment0$_variables)), module.get$variables().get$containsKey()); if (_0_0 != null) { $name = _0_0; t1 = true; } else { $name = null; t1 = false; } if (t1) A.throwExpression(A.SassScriptException$0(string$.This_ma + A.S($name) + '".', null)); } else { t4 = t1._environment0$_modules; if (t4.containsKey$1(t3)) { t5 = t1._environment0$_namespaceNodes.$index(0, t3); span = t5 == null ? null : t5.span; t5 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String); if (span != null) t5.$indexSet(0, span, "original @use"); A.throwExpression(A.MultiSpanSassScriptException$0(string$.There_ + t3 + '".', "new @use", t5)); } t4.$indexSet(0, t3, module); t1._environment0$_namespaceNodes.$indexSet(0, t3, t2); t1._environment0$_allModules.push(module); } }, $signature: 95 }; A._EvaluateVisitor_visitWarnRule_closure1.prototype = { call$0() { return this.node.expression.accept$1(this.$this); }, $signature: 31 }; A._EvaluateVisitor_visitWhileRule_closure1.prototype = { call$0() { var t1, t2, t3, _0_0, result, t4; for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) { _0_0 = t3._evaluate0$_handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure1(t3)); if (_0_0 != null) { result = _0_0; t4 = true; } else { result = null; t4 = false; } if (t4) return result; } return null; }, $signature: 46 }; A._EvaluateVisitor_visitWhileRule__closure1.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 93 }; A._EvaluateVisitor_visitBinaryOperationExpression_closure1.prototype = { call$0() { var t1 = this.node, t2 = this.$this, left = t1.left.accept$1(t2); switch (t1.operator) { case B.BinaryOperator_2jN0: t1 = t1.right.accept$1(t2); t1 = new A.SassString0(A.serializeValue0(left, false, true) + "=" + A.serializeValue0(t1, false, true), false); break; case B.BinaryOperator_M6L0: t1 = left.get$isTruthy() ? left : t1.right.accept$1(t2); break; case B.BinaryOperator_SNp0: t1 = left.get$isTruthy() ? t1.right.accept$1(t2) : left; break; case B.BinaryOperator_ql50: t1 = left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true0 : B.SassBoolean_false0; break; case B.BinaryOperator_ViB0: t1 = !left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true0 : B.SassBoolean_false0; break; case B.BinaryOperator_cIH0: t1 = left.greaterThan$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_7Tg0: t1 = left.greaterThanOrEquals$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_U8c0: t1 = left.lessThan$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_kpg0: t1 = left.lessThanOrEquals$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_anB0: t1 = left.plus$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_olz0: t1 = left.minus$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_qN20: t1 = left.times$1(t1.right.accept$1(t2)); break; case B.BinaryOperator_t8B0: t1 = t2._evaluate0$_slash$3(left, t1.right.accept$1(t2), t1); break; case B.BinaryOperator_OTG0: t1 = left.modulo$1(t1.right.accept$1(t2)); break; default: t1 = null; } return t1; }, $signature: 31 }; A._EvaluateVisitor__slash_closure3.prototype = { call$0() { return this._1_0._0; }, $signature: 31 }; A._EvaluateVisitor__slash_closure4.prototype = { call$0() { return this._1_0._1; }, $signature: 31 }; A._EvaluateVisitor__slash_recommendation1.prototype = { call$1(expression) { var left, right, t1, _null = null; $label0$0: { if (expression instanceof A.BinaryOperationExpression0) if (B.BinaryOperator_t8B0 === expression.operator) { left = expression.left; right = expression.right; t1 = true; } else { right = _null; left = right; t1 = false; } else { right = _null; left = right; t1 = false; } if (t1) { t1 = "math.div(" + A.S(this.call$1(left)) + ", " + A.S(this.call$1(right)) + ")"; break $label0$0; } if (expression instanceof A.ParenthesizedExpression0) { t1 = expression.expression.toString$0(0); break $label0$0; } t1 = expression.toString$0(0); break $label0$0; } return t1; }, $signature: 118 }; A._EvaluateVisitor_visitVariableExpression_closure1.prototype = { call$0() { var t1 = this.node; return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace); }, $signature: 46 }; A._EvaluateVisitor_visitUnaryOperationExpression_closure1.prototype = { call$0() { var t1, _this = this; switch (_this.node.operator) { case B.UnaryOperator_gg40: t1 = _this.operand.unaryPlus$0(); break; case B.UnaryOperator_TLI0: t1 = _this.operand.unaryMinus$0(); break; case B.UnaryOperator_Ix10: t1 = new A.SassString0("/" + A.serializeValue0(_this.operand, false, true), false); break; case B.UnaryOperator_not_not_not0: t1 = _this.operand.unaryNot$0(); break; default: t1 = null; } return t1; }, $signature: 31 }; A._EvaluateVisitor_visitListExpression_closure1.prototype = { call$1(expression) { return expression.accept$1(this.$this); }, $signature: 448 }; A._EvaluateVisitor_visitFunctionExpression_closure5.prototype = { call$0() { var t1 = this.$this._evaluate0$_environment, t2 = this.node; return t1.getFunction$2$namespace(A.stringReplaceAllUnchecked(t2.originalName, "_", "-"), t2.namespace); }, $signature: 102 }; A._EvaluateVisitor_visitFunctionExpression_closure6.prototype = { call$1(argument) { return argument.accept$1(new A._IsCalculationSafeVisitor0()); }, $signature: 119 }; A._EvaluateVisitor_visitFunctionExpression_closure7.prototype = { call$0() { var t1 = this.node; return this.$this._evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1); }, $signature: 31 }; A._EvaluateVisitor__checkCalculationArguments_check1.prototype = { call$1(maxArgs) { var t1 = this.node, t2 = t1.$arguments.positional.length; if (t2 === 0) throw A.wrapException(this.$this._evaluate0$_exception$2("Missing argument.", t1.span)); else if (maxArgs != null && t2 > maxArgs) 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)); }, call$0() { return this.call$1(null); }, $signature: 86 }; A._EvaluateVisitor__visitCalculationExpression_closure1.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this._box_0, t3 = _this.inLegacySassFunction; 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); }, $signature: 14 }; A._EvaluateVisitor__checkAdjacentCalculationValues_closure1.prototype = { call$0() { return type$.UnaryOperationExpression_2._as(this._0_0).operator; }, $signature: 120 }; A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure1.prototype = { call$0() { var t1 = this.node; return this.$this._evaluate0$_runFunctionCallable$3(t1.$arguments, this.$function, t1); }, $signature: 31 }; A._EvaluateVisitor__runUserDefinedCallable_closure1.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this.callable; return t1._evaluate0$_withEnvironment$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure1(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, _this.V)); }, $signature() { return this.V._eval$1("0()"); } }; A._EvaluateVisitor__runUserDefinedCallable__closure1.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this.V; return t1._evaluate0$_environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure1(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2); }, $signature() { return this.V._eval$1("0()"); } }; A._EvaluateVisitor__runUserDefinedCallable___closure1.prototype = { call$0() { var declaredArguments, t5, minLength, i, argument, t6, t7, value, t8, restArgument, rest, argumentList, result, argumentWord, _this = this, t1 = _this.$this, t2 = _this.evaluated._values, t3 = _this.callable.declaration.$arguments, t4 = _this.nodeWithSpan; t1._evaluate0$_verifyArguments$4(J.get$length$asx(t2[2]), t2[0], t3, t4); declaredArguments = t3.$arguments; t5 = declaredArguments.length; minLength = Math.min(J.get$length$asx(t2[2]), t5); for (i = 0; i < minLength; ++i) t1._evaluate0$_environment.setLocalVariable$3(declaredArguments[i].name, J.$index$asx(t2[2], i), J.$index$asx(t2[3], i)); for (i = J.get$length$asx(t2[2]); i < t5; ++i) { argument = declaredArguments[i]; t6 = t2[0]; t7 = argument.name; value = J.remove$1$z(t6, t7); if (value == null) { t6 = argument.defaultValue; value = t1._evaluate0$_withoutSlash$2(t6.accept$1(t1), t1._evaluate0$_expressionNode$1(t6)); } t6 = t1._evaluate0$_environment; t8 = J.$index$asx(t2[1], t7); if (t8 == null) { t8 = argument.defaultValue; t8.toString; t8 = t1._evaluate0$_expressionNode$1(t8); } t6.setLocalVariable$3(t7, value, t8); } restArgument = t3.restArgument; if (restArgument != null) { rest = J.get$length$asx(t2[2]) > t5 ? J.sublist$1$ax(t2[2], t5) : B.List_empty19; t5 = t2[0]; t6 = t2[4]; argumentList = A.SassArgumentList$0(rest, t5, t6 === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_rXA0 : t6); t1._evaluate0$_environment.setLocalVariable$3(restArgument, argumentList, t4); } else argumentList = null; result = _this.run.call$0(); if (argumentList == null) return result; t5 = t2[0].__js_helper$_length; if (t5 === 0) return result; if (argumentList._argument_list$_wereKeywordsAccessed) return result; argumentWord = A.pluralize0("argument", t5, null); t2 = t2[0]; t5 = A.instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"); 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)); }, $signature() { return this.V._eval$1("0()"); } }; A._EvaluateVisitor__runUserDefinedCallable____closure1.prototype = { call$1($name) { return "$" + $name; }, $signature: 7 }; A._EvaluateVisitor__runFunctionCallable_closure1.prototype = { call$0() { var t1, t2, t3, t4, _i, $returnValue; for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) { $returnValue = t2[_i].accept$1(t4); if ($returnValue instanceof A.Value0) return $returnValue; } throw A.wrapException(t4._evaluate0$_exception$2("Function finished without @return.", t1.span)); }, $signature: 31 }; A._EvaluateVisitor__runBuiltInCallable_closure5.prototype = { call$0() { return this._box_0.overload.verify$2(J.get$length$asx(this.evaluated._values[2]), this.namedSet); }, $signature: 0 }; A._EvaluateVisitor__runBuiltInCallable_closure6.prototype = { call$0() { return this._box_0.callback.call$1(this.evaluated._values[2]); }, $signature: 31 }; A._EvaluateVisitor__runBuiltInCallable_closure7.prototype = { call$1($name) { return "$" + $name; }, $signature: 7 }; A._EvaluateVisitor__evaluateArguments_closure7.prototype = { call$1(value) { return value; }, $signature: 45 }; A._EvaluateVisitor__evaluateArguments_closure8.prototype = { call$1(value) { return this.$this._evaluate0$_withoutSlash$2(value, this.restNodeForSpan); }, $signature: 45 }; A._EvaluateVisitor__evaluateArguments_closure9.prototype = { call$2(key, value) { var _this = this, t1 = _this.restNodeForSpan; _this.named.$indexSet(0, key, _this.$this._evaluate0$_withoutSlash$2(value, t1)); _this.namedNodes.$indexSet(0, key, t1); }, $signature: 109 }; A._EvaluateVisitor__evaluateArguments_closure10.prototype = { call$1(value) { return value; }, $signature: 45 }; A._EvaluateVisitor__evaluateMacroArguments_closure7.prototype = { call$1(value) { var t1 = this.restArgs; return new A.ValueExpression0(value, t1.get$span(t1)); }, $signature: 60 }; A._EvaluateVisitor__evaluateMacroArguments_closure8.prototype = { call$1(value) { var t1 = this.restArgs; return new A.ValueExpression0(this.$this._evaluate0$_withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1)); }, $signature: 60 }; A._EvaluateVisitor__evaluateMacroArguments_closure9.prototype = { call$2(key, value) { var _this = this, t1 = _this.restArgs; _this.named.$indexSet(0, key, new A.ValueExpression0(_this.$this._evaluate0$_withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1))); }, $signature: 109 }; A._EvaluateVisitor__evaluateMacroArguments_closure10.prototype = { call$1(value) { var t1 = this.keywordRestArgs; return new A.ValueExpression0(this.$this._evaluate0$_withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1)); }, $signature: 60 }; A._EvaluateVisitor__addRestMap_closure1.prototype = { call$2(key, value) { var t2, _this = this, t1 = _this.$this; if (key instanceof A.SassString0) _this.values.$indexSet(0, key._string0$_text, _this.convert.call$1(t1._evaluate0$_withoutSlash$2(value, _this.expressionNode))); else { t2 = _this.nodeWithSpan; 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))); } }, $signature: 104 }; A._EvaluateVisitor__verifyArguments_closure1.prototype = { call$0() { return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String)); }, $signature: 0 }; A._EvaluateVisitor_visitCssAtRule_closure3.prototype = { call$0() { var t1, t2, t3, t4; for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t4 = t1.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t2); } }, $signature: 2 }; A._EvaluateVisitor_visitCssAtRule_closure4.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor_visitCssKeyframeBlock_closure3.prototype = { call$0() { var t1, t2, t3, t4; for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t4 = t1.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t2); } }, $signature: 2 }; A._EvaluateVisitor_visitCssKeyframeBlock_closure4.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor_visitCssMediaRule_closure5.prototype = { call$1(mediaQueries) { return this.$this._evaluate0$_mergeMediaQueries$2(mediaQueries, this.node.queries); }, $signature: 113 }; A._EvaluateVisitor_visitCssMediaRule_closure6.prototype = { call$0() { var _this = this, t1 = _this.$this, t2 = _this.mergedQueries; if (t2 == null) t2 = _this.node.queries; t1._evaluate0$_withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure1(t1, _this.node)); }, $signature: 2 }; A._EvaluateVisitor_visitCssMediaRule__closure1.prototype = { call$0() { var styleRule, t2, t3, t4, t1 = this.$this, _0_0 = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } if (t2) t1._evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure1(t1, this.node), false, type$.ModifiableCssStyleRule_2, type$.Null); else for (t2 = this.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t4 = t2.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t1); } }, $signature: 2 }; A._EvaluateVisitor_visitCssMediaRule___closure1.prototype = { call$0() { var t1, t2, t3, t4; for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t4 = t1.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t2); } }, $signature: 2 }; A._EvaluateVisitor_visitCssMediaRule_closure7.prototype = { call$1(node) { var t1; if (!(node instanceof A.ModifiableCssStyleRule0)) { t1 = this.mergedSources; t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule0 && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1)); } else t1 = true; return t1; }, $signature: 8 }; A._EvaluateVisitor_visitCssStyleRule_closure5.prototype = { call$0() { var t1 = this.$this; t1._evaluate0$_withStyleRule$2(this.rule, new A._EvaluateVisitor_visitCssStyleRule__closure1(t1, this.node)); }, $signature: 2 }; A._EvaluateVisitor_visitCssStyleRule__closure1.prototype = { call$0() { var t1, t2, t3, t4; for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t4 = t1.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t2); } }, $signature: 2 }; A._EvaluateVisitor_visitCssStyleRule_closure6.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor_visitCssStyleRule_closure7.prototype = { call$0() { return J.get$length$asx(this._0_0._collection$_source); }, $signature: 3 }; A._EvaluateVisitor_visitCssSupportsRule_closure3.prototype = { call$0() { var styleRule, t2, t3, t4, t1 = this.$this, _0_0 = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot; if (_0_0 != null) { styleRule = _0_0; t2 = true; } else { styleRule = null; t2 = false; } if (t2) t1._evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure1(t1, this.node), type$.ModifiableCssStyleRule_2, type$.Null); else for (t2 = this.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t4 = t2.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t1); } }, $signature: 2 }; A._EvaluateVisitor_visitCssSupportsRule__closure1.prototype = { call$0() { var t1, t2, t3, t4; for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t4 = t1.__internal$_current; (t4 == null ? t3._as(t4) : t4).accept$1(t2); } }, $signature: 2 }; A._EvaluateVisitor_visitCssSupportsRule_closure4.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluateVisitor__performInterpolationHelper_closure1.prototype = { call$1(targetLocations) { return A.InterpolationMap$0(this.interpolation, targetLocations); }, $signature: 211 }; A._EvaluateVisitor__serialize_closure1.prototype = { call$0() { return A.serializeValue0(this.value, false, this.quote); }, $signature: 22 }; A._EvaluateVisitor__expressionNode_closure1.prototype = { call$0() { var t1 = this.expression; return this.$this._evaluate0$_environment.getVariableNode$2$namespace(t1.name, t1.namespace); }, $signature: 212 }; A._EvaluateVisitor__withoutSlash_recommendation1.prototype = { call$1(number) { var t1, before, after, _1_0 = number.asSlash; $label0$0: { if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_0)) { t1 = type$.SassNumber_2; before = t1._as(_1_0._0); after = t1._as(_1_0._1); t1 = true; } else { before = null; after = null; t1 = false; } if (t1) { t1 = "math.div(" + A.S(this.call$1(before)) + ", " + A.S(this.call$1(after)) + ")"; break $label0$0; } t1 = A.serializeValue0(number, true, true); break $label0$0; } return t1; }, $signature: 213 }; A._EvaluateVisitor__stackFrame_closure1.prototype = { call$1(url) { var t1 = this.$this._evaluate0$_importCache; t1 = t1 == null ? null : t1.humanize$1(url); return t1 == null ? url : t1; }, $signature: 48 }; A._ImportedCssVisitor1.prototype = { visitCssAtRule$1(node) { var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure1(); this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, t1); }, visitCssComment$1(node) { return this._evaluate0$_visitor._evaluate0$_addChild$1(node); }, visitCssDeclaration$1(node) { }, visitCssImport$1(node) { var t2, _s13_ = "_endOfImports", t1 = this._evaluate0$_visitor; if (t1._evaluate0$_assertInModule$2(t1._evaluate0$__parent, "__parent") !== t1._evaluate0$_assertInModule$2(t1._evaluate0$__root, "_root")) t1._evaluate0$_addChild$1(node); 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)) { t1._evaluate0$_addChild$1(node); t1._evaluate0$__endOfImports = t1._evaluate0$_assertInModule$2(t1._evaluate0$__endOfImports, _s13_) + 1; } else { t2 = t1._evaluate0$_outOfOrderImports; (t2 == null ? t1._evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t2).push(node); } }, visitCssKeyframeBlock$1(node) { }, visitCssMediaRule$1(node) { var t1 = this._evaluate0$_visitor, mediaQueries = t1._evaluate0$_mediaQueries; t1._evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure1(mediaQueries == null || t1._evaluate0$_mergeMediaQueries$2(mediaQueries, node.queries) != null)); }, visitCssStyleRule$1(node) { return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure1()); }, visitCssStylesheet$1(node) { var t1, t2, t3; for (t1 = node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; (t3 == null ? t2._as(t3) : t3).accept$1(this); } }, visitCssSupportsRule$1(node) { return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure1()); } }; A._ImportedCssVisitor_visitCssAtRule_closure1.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._ImportedCssVisitor_visitCssMediaRule_closure1.prototype = { call$1(node) { var t1; if (!(node instanceof A.ModifiableCssStyleRule0)) t1 = this.hasBeenMerged && node instanceof A.ModifiableCssMediaRule0; else t1 = true; return t1; }, $signature: 8 }; A._ImportedCssVisitor_visitCssStyleRule_closure1.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._ImportedCssVisitor_visitCssSupportsRule_closure1.prototype = { call$1(node) { return node instanceof A.ModifiableCssStyleRule0; }, $signature: 8 }; A._EvaluationContext1.prototype = { get$currentCallableSpan() { var callableNode, t1, _0_0 = this._evaluate0$_visitor._evaluate0$_callableNode; if (_0_0 != null) { callableNode = _0_0; t1 = true; } else { callableNode = null; t1 = false; } if (t1) return callableNode.get$span(callableNode); throw A.wrapException(A.StateError$(string$.No_Sasc)); }, warn$2(_, message, deprecation) { var t1 = this._evaluate0$_visitor, t2 = t1._evaluate0$_importSpan; if (t2 == null) { t2 = t1._evaluate0$_callableNode; t2 = t2 == null ? null : t2.get$span(t2); } t1._evaluate0$_warn$3(message, t2 == null ? this._evaluate0$_defaultWarnNodeWithSpan.span : t2, deprecation); }, $isEvaluationContext0: 1 }; A.EveryCssVisitor0.prototype = { visitCssAtRule$1(node) { var t1 = node.children; return t1.every$1(t1, new A.EveryCssVisitor_visitCssAtRule_closure0(this)); }, visitCssComment$1(node) { return false; }, visitCssDeclaration$1(node) { return false; }, visitCssImport$1(node) { return false; }, visitCssKeyframeBlock$1(node) { var t1 = node.children; return t1.every$1(t1, new A.EveryCssVisitor_visitCssKeyframeBlock_closure0(this)); }, visitCssMediaRule$1(node) { var t1 = node.children; return t1.every$1(t1, new A.EveryCssVisitor_visitCssMediaRule_closure0(this)); }, visitCssStyleRule$1(node) { var t1 = node.children; return t1.every$1(t1, new A.EveryCssVisitor_visitCssStyleRule_closure0(this)); }, visitCssStylesheet$1(node) { return J.every$1$ax(node.get$children(node), new A.EveryCssVisitor_visitCssStylesheet_closure0(this)); }, visitCssSupportsRule$1(node) { var t1 = node.children; return t1.every$1(t1, new A.EveryCssVisitor_visitCssSupportsRule_closure0(this)); } }; A.EveryCssVisitor_visitCssAtRule_closure0.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 8 }; A.EveryCssVisitor_visitCssKeyframeBlock_closure0.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 8 }; A.EveryCssVisitor_visitCssMediaRule_closure0.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 8 }; A.EveryCssVisitor_visitCssStyleRule_closure0.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 8 }; A.EveryCssVisitor_visitCssStylesheet_closure0.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 8 }; A.EveryCssVisitor_visitCssSupportsRule_closure0.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature: 8 }; A._NodeException.prototype = {}; A.exceptionClass_closure.prototype = { call$0() { 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()); A.defineGetter(jsClass, "name", null, "sass.Exception"); 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)); return jsClass; }, $signature: 24 }; A.exceptionClass__closure.prototype = { call$1(exception) { return J.get$_dartException$x(exception)._span_exception$_message; }, $signature: 244 }; A.exceptionClass__closure0.prototype = { call$1(exception) { return J.get$trace$z(J.get$_dartException$x(exception)).toString$0(0); }, $signature: 244 }; A.exceptionClass__closure1.prototype = { call$1(exception) { var t1 = J.get$_dartException$x(exception), t2 = J.getInterceptor$z(t1); return A.SourceSpanException.prototype.get$span.call(t2, t1); }, $signature: 450 }; A.SassException0.prototype = { get$trace(_) { return A.Trace$(A._setArrayType([A.frameForSpan0(A.SourceSpanException.prototype.get$span.call(this, this), "root stylesheet", null)], type$.JSArray_Frame), null); }, get$span(_) { return A.SourceSpanException.prototype.get$span.call(this, this); }, withAdditionalSpan$2(span, label) { var _this = this; return A.MultiSpanSassException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), _this.loadedUrls); }, withTrace$1(trace) { var _this = this, t1 = A.SourceSpanException.prototype.get$span.call(_this, _this), t2 = A.Set_Set$unmodifiable(_this.loadedUrls, type$.Uri); return new A.SassRuntimeException0(trace, t2, _this._span_exception$_message, t1); }, withLoadedUrls$1(loadedUrls) { var t1 = A.SourceSpanException.prototype.get$span.call(this, this), t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri); return new A.SassException0(t2, this._span_exception$_message, t1); }, toString$1$color(_, color) { var t2, _i, frame, t3, _this = this, buffer = new A.StringBuffer(""), t1 = "" + ("Error: " + _this._span_exception$_message + "\n"); buffer._contents = t1; buffer._contents = t1 + A.SourceSpanException.prototype.get$span.call(_this, _this).highlight$1$color(color); for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) { frame = t1[_i]; if (J.get$length$asx(frame) === 0) continue; t3 = buffer._contents += "\n"; buffer._contents = t3 + (" " + A.S(frame)); } t1 = buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, toString$0($receiver) { return this.toString$1$color($receiver, null); } }; A.MultiSpanSassException0.prototype = { withAdditionalSpan$2(span, label) { var _this = this, t1 = A.SourceSpanException.prototype.get$span.call(_this, _this), t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String); t2.$indexSet(0, span, label); return A.MultiSpanSassException$0(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.loadedUrls); }, withTrace$1(trace) { var _this = this; return A.MultiSpanSassRuntimeException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), _this.primaryLabel, _this.secondarySpans, trace, _this.loadedUrls); }, withLoadedUrls$1(loadedUrls) { var _this = this; return A.MultiSpanSassException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), _this.primaryLabel, _this.secondarySpans, loadedUrls); }, toString$1$color(_, color) { var t1, t2, _i, frame, _this = this, useColor = color === true && true, buffer = new A.StringBuffer("Error: " + _this._span_exception$_message + "\n"); A.NullableExtension_andThen0(A.Highlighter$multiple(A.SourceSpanException.prototype.get$span.call(_this, _this), _this.primaryLabel, _this.secondarySpans, useColor, null, null).highlight$0(), buffer.get$write(buffer)); for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) { frame = t1[_i]; if (J.get$length$asx(frame) === 0) continue; buffer._contents += "\n"; buffer._contents += " " + A.S(frame); } t1 = buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, toString$0($receiver) { return this.toString$1$color($receiver, null); }, get$primaryLabel() { return this.primaryLabel; }, get$secondarySpans() { return this.secondarySpans; } }; A.SassRuntimeException0.prototype = { withAdditionalSpan$2(span, label) { var _this = this; return A.MultiSpanSassRuntimeException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), _this.trace, _this.loadedUrls); }, withLoadedUrls$1(loadedUrls) { var _this = this, t1 = A.SourceSpanException.prototype.get$span.call(_this, _this), t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri); return new A.SassRuntimeException0(_this.trace, t2, _this._span_exception$_message, t1); }, get$trace(receiver) { return this.trace; } }; A.MultiSpanSassRuntimeException0.prototype = { withAdditionalSpan$2(span, label) { var _this = this, t1 = A.SourceSpanException.prototype.get$span.call(_this, _this), t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String); t2.$indexSet(0, span, label); return A.MultiSpanSassRuntimeException$0(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.trace, _this.loadedUrls); }, withLoadedUrls$1(loadedUrls) { var _this = this; return A.MultiSpanSassRuntimeException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), _this.primaryLabel, _this.secondarySpans, _this.trace, loadedUrls); }, $isSassRuntimeException0: 1, get$trace(receiver) { return this.trace; } }; A.SassFormatException0.prototype = { get$source() { var t1 = A.SourceSpanException.prototype.get$span.call(this, this); return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null); }, withAdditionalSpan$2(span, label) { var _this = this; return A.MultiSpanSassFormatException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), _this.loadedUrls); }, withLoadedUrls$1(loadedUrls) { var t1 = A.SourceSpanException.prototype.get$span.call(this, this), t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri); return new A.SassFormatException0(t2, this._span_exception$_message, t1); }, $isFormatException: 1, $isSourceSpanFormatException: 1 }; A.MultiSpanSassFormatException0.prototype = { get$source() { var t1 = A.SourceSpanException.prototype.get$span.call(this, this); return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null); }, withAdditionalSpan$2(span, label) { var _this = this, t1 = A.SourceSpanException.prototype.get$span.call(_this, _this), t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String); t2.$indexSet(0, span, label); return A.MultiSpanSassFormatException$0(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.loadedUrls); }, withLoadedUrls$1(loadedUrls) { var _this = this; return A.MultiSpanSassFormatException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, _this), _this.primaryLabel, _this.secondarySpans, loadedUrls); }, $isFormatException: 1, $isSourceSpanFormatException: 1, $isMultiSourceSpanFormatException: 1, $isSassFormatException0: 1 }; A.SassScriptException0.prototype = { withSpan$1(span) { return new A.SassException0(B.Set_empty, this.message, span); }, toString$0(_) { return this.message + string$.x0a_BUG_; }, get$message(receiver) { return this.message; } }; A.MultiSpanSassScriptException0.prototype = { withSpan$1(span) { return A.MultiSpanSassException$0(this.message, span, this.primaryLabel, this.secondarySpans, null); } }; A.Exports.prototype = {}; A.LoggerNamespace.prototype = {}; A._IsCalculationSafeVisitor0.prototype = { visitBinaryOperationExpression$1(node) { var t1; if (B.Set_FIwG40.contains$1(0, node.operator)) t1 = node.left.accept$1(this) || node.right.accept$1(this); else t1 = false; return t1; }, visitBooleanExpression$1(node) { return false; }, visitColorExpression$1(node) { return false; }, visitFunctionExpression$1(node) { return true; }, visitInterpolatedFunctionExpression$1(node) { return true; }, visitIfExpression$1(node) { return true; }, visitListExpression$1(node) { var t1; if (node.separator === B.ListSeparator_EVt0) if (!node.hasBrackets) { t1 = node.contents; t1 = t1.length > 1 && B.JSArray_methods.every$1(t1, new A._IsCalculationSafeVisitor_visitListExpression_closure0(this)); } else t1 = false; else t1 = false; return t1; }, visitMapExpression$1(node) { return false; }, visitNullExpression$1(node) { return false; }, visitNumberExpression$1(node) { return true; }, visitParenthesizedExpression$1(node) { return node.expression.accept$1(this); }, visitSelectorExpression$1(node) { return false; }, visitStringExpression$1(node) { var text, t1, t2; if (node.hasQuotes) return false; text = node.text.get$initialPlain(); if (!B.JSString_methods.startsWith$1(text, "!")) if (!B.JSString_methods.startsWith$1(text, "#")) { t1 = text.length; if ((1 >= t1 ? null : text.charCodeAt(1)) !== 43) { t2 = (3 >= t1 ? null : text.charCodeAt(3)) !== 40; t1 = t2; } else t1 = false; } else t1 = false; else t1 = false; return t1; }, visitSupportsExpression$1(node) { return false; }, visitUnaryOperationExpression$1(node) { return false; }, visitValueExpression$1(node) { return false; }, visitVariableExpression$1(node) { return true; } }; A._IsCalculationSafeVisitor_visitListExpression_closure0.prototype = { call$1(expression) { return expression.accept$1(this.$this); }, $signature: 119 }; A._MakeExpressionCalculationSafe0.prototype = { visitBinaryOperationExpression$1(node) { var t1, t2, t3; if (node.operator === B.BinaryOperator_OTG0) { t1 = A._setArrayType([node], type$.JSArray_Expression_2); t2 = node.get$span(node); t3 = type$.Expression_2; t2 = new A.FunctionExpression0("math", "max", new A.ArgumentInvocation0(A.List_List$unmodifiable(t1, t3), A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t3), null, null, t2), node.get$span(node)); t1 = t2; } else t1 = this.super$ReplaceExpressionVisitor$visitBinaryOperationExpression0(node); return t1; }, visitInterpolatedFunctionExpression$1(node) { return node; }, visitUnaryOperationExpression$1(node) { var t1, _0_0 = node.operator; $label0$0: { if (B.UnaryOperator_gg40 === _0_0) { t1 = node.operand; break $label0$0; } if (B.UnaryOperator_TLI0 === _0_0) { t1 = new A.BinaryOperationExpression0(B.BinaryOperator_qN20, new A.NumberExpression0(-1, null, node.span), node.operand, false); break $label0$0; } t1 = this.super$ReplaceExpressionVisitor$visitUnaryOperationExpression0(node); break $label0$0; } return t1; } }; A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0.prototype = {}; A.ExtendRule0.prototype = { accept$1$1(visitor) { return visitor.visitExtendRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.selector.toString$0(0), t2 = this.isOptional ? " !optional" : ""; return "@extend " + t1 + t2 + ";"; }, $isAstNode0: 1, $isStatement0: 1, get$span(receiver) { return this.span; } }; A.Extension0.prototype = { toString$0(_) { var t1 = this.extender.toString$0(0), t2 = this.target.toString$0(0), t3 = this.isOptional ? " !optional" : ""; return t1 + " {@extend " + t2 + t3 + "}"; } }; A.Extender0.prototype = { assertCompatibleMediaContext$1(mediaContext) { var expectedMediaContext, extension = this._extension$_extension; if (extension == null) return; expectedMediaContext = extension.mediaContext; if (expectedMediaContext == null) return; if (mediaContext != null && B.C_ListEquality.equals$2(0, expectedMediaContext, mediaContext)) return; throw A.wrapException(A.SassException$0(string$.You_ma, extension.span, null)); }, toString$0(_) { return A.serializeSelector0(this.selector, true); } }; A.ExtensionStore0.prototype = { get$isEmpty(_) { return this._extension_store$_extensions.__js_helper$_length === 0; }, get$simpleSelectors() { return new A.MapKeySet(this._extension_store$_selectors, type$.MapKeySet_SimpleSelector_2); }, extensionsWhereTarget$1(callback) { return new A._SyncStarIterable(this.extensionsWhereTarget$body$ExtensionStore0(callback), type$._SyncStarIterable_Extension_2); }, extensionsWhereTarget$body$ExtensionStore0($async$callback) { var $async$self = this; return function() { var callback = $async$callback; var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, simple, sources, t3; return function $async$extensionsWhereTarget$1($async$iterator, $async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start t1 = A.MapExtensions_get_pairs0($async$self._extension_store$_extensions, type$.SimpleSelector_2, type$.Map_ComplexSelector_Extension_2), t1 = t1.get$iterator(t1); case 2: // for condition if (!t1.moveNext$0()) { // goto after for $async$goto = 3; break; } t2 = t1.get$current(t1); simple = t2._0; sources = t2._1; if (!callback.call$1(simple)) { // goto for condition $async$goto = 2; break; } t2 = sources.get$values(sources), t2 = t2.get$iterator(t2); case 4: // for condition if (!t2.moveNext$0()) { // goto after for $async$goto = 5; break; } t3 = t2.get$current(t2); $async$goto = t3 instanceof A.MergedExtension0 ? 6 : 8; break; case 6: // then t3 = t3.unmerge$0(); $async$goto = 9; return $async$iterator._yieldStar$1(new A.WhereIterable(t3, new A.ExtensionStore_extensionsWhereTarget_closure0(), t3.$ti._eval$1("WhereIterable"))); case 9: // after yield // goto join $async$goto = 7; break; case 8: // else $async$goto = !t3.isOptional ? 10 : 11; break; case 10: // then $async$goto = 12; return $async$iterator._async$_current = t3, 1; case 12: // after yield case 11: // join case 7: // join // goto for condition $async$goto = 4; break; case 5: // after for // goto for condition $async$goto = 2; break; case 3: // after for // implicit return return 0; case 1: // rethrow return $async$iterator._datum = $async$currentError, 3; } }; }; }, addSelector$2(selector, mediaContext) { var originalSelector, error, stackTrace, t1, exception, t2, t3, t4, modifiableSelector, _this = this; selector = selector; originalSelector = selector; if (!originalSelector.accept$1(B._IsInvisibleVisitor_true0)) _this._extension_store$_originals.addAll$1(0, originalSelector.components); t1 = _this._extension_store$_extensions; if (t1.__js_helper$_length !== 0) try { selector = _this._extension_store$_extendList$3(originalSelector, t1, mediaContext); } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException0) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = error; t2 = J.getInterceptor$z(t1); t1 = A.SourceSpanException.prototype.get$span.call(t2, t1).message$1(0, ""); t2 = error._span_exception$_message; t3 = error; t4 = J.getInterceptor$z(t3); t3 = A.SourceSpanException.prototype.get$span.call(t4, t3); A.throwWithTrace0(new A.SassException0(B.Set_empty, "From " + t1 + "\n" + t2, t3), error, stackTrace); } else throw exception; } modifiableSelector = new A.ModifiableBox0(selector, type$.ModifiableBox_SelectorList_2); if (mediaContext != null) _this._extension_store$_mediaContexts.$indexSet(0, modifiableSelector, mediaContext); _this._extension_store$_registerSelector$2(selector, modifiableSelector); return new A.Box0(modifiableSelector, type$.Box_SelectorList_2); }, _extension_store$_registerSelector$2(list, selector) { var t1, t2, t3, _i, t4, t5, _i0, t6, t7, _i1, simple, _0_2, selectorInPseudo, t8; for (t1 = list.components, t2 = t1.length, t3 = this._extension_store$_selectors, _i = 0; _i < t2; ++_i) for (t4 = t1[_i].components, t5 = t4.length, _i0 = 0; _i0 < t5; ++_i0) for (t6 = t4[_i0].selector.components, t7 = t6.length, _i1 = 0; _i1 < t7; ++_i1) { simple = t6[_i1]; J.add$1$ax(t3.putIfAbsent$2(simple, new A.ExtensionStore__registerSelector_closure1()), selector); _0_2 = A._InitializedCell$(new A.ExtensionStore__registerSelector_closure2(simple)); if (simple instanceof A.PseudoSelector0) if (_0_2._readFinal$0() != null) { selectorInPseudo = _0_2._readFinal$0(); t8 = true; } else { selectorInPseudo = null; t8 = false; } else { selectorInPseudo = null; t8 = false; } if (t8) this._extension_store$_registerSelector$2(selectorInPseudo, selector); } }, addExtension$4(extender, target, extend, mediaContext) { var t2, t3, t4, t5, t6, t7, t8, t9, t10, newExtensions, _i, complex, t11, extension, _0_0, existingExtension, t12, newExtensionsByTarget, additionalExtensions, _this = this, selectors = _this._extension_store$_selectors.$index(0, target), t1 = _this._extension_store$_extensionsByExtender, existingExtensions = t1.$index(0, target), sources = _this._extension_store$_extensions.putIfAbsent$2(target, new A.ExtensionStore_addExtension_closure2()); 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) { complex = t2[_i]; if (complex.accept$1(B.C__IsUselessVisitor0)) continue; complex.get$specificity(); t11 = new A.Extender0(complex, false); extension = t11._extension$_extension = new A.Extension0(t11, target, mediaContext, t7, t6); _0_0 = sources.$index(0, complex); if (_0_0 != null) { existingExtension = _0_0; t11 = true; } else { existingExtension = null; t11 = false; } if (t11) { sources.$indexSet(0, complex, A.MergedExtension_merge0(existingExtension, extension)); continue; } sources.$indexSet(0, complex, extension); for (t11 = new A._SyncStarIterator(_this._extension_store$_simpleSelectors$1(complex)._outerHelper()); t11.moveNext$0();) { t12 = t11._async$_current; J.add$1$ax(t1.putIfAbsent$2(t12, new A.ExtensionStore_addExtension_closure3()), extension); t5.putIfAbsent$2(t12, new A.ExtensionStore_addExtension_closure4(complex)); } if (!t4 || t8) { if (newExtensions == null) newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t9, t10); newExtensions.$indexSet(0, complex, extension); } } if (newExtensions == null) return; t1 = type$.SimpleSelector_2; newExtensionsByTarget = A.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], t1, type$.Map_ComplexSelector_Extension_2); if (t8) { additionalExtensions = _this._extension_store$_extendExistingExtensions$2(existingExtensions, newExtensionsByTarget); if (additionalExtensions != null) A.mapAddAll20(newExtensionsByTarget, additionalExtensions, t1, t9, t10); } if (!t4) _this._extension_store$_extendExistingSelectors$2(selectors, newExtensionsByTarget); }, _extension_store$_simpleSelectors$1(complex) { return new A._SyncStarIterable(this._simpleSelectors$body$ExtensionStore0(complex), type$._SyncStarIterable_SimpleSelector_2); }, _simpleSelectors$body$ExtensionStore0($async$complex) { var $async$self = this; return function() { var complex = $async$complex; var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, _i, t3, t4, _i0, simple, _0_2, selector, t5, t6, _i1; return function $async$_extension_store$_simpleSelectors$1($async$iterator, $async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start t1 = complex.components, t2 = t1.length, _i = 0; case 2: // for condition if (!(_i < t2)) { // goto after for $async$goto = 4; break; } t3 = t1[_i].selector.components, t4 = t3.length, _i0 = 0; case 5: // for condition if (!(_i0 < t4)) { // goto after for $async$goto = 7; break; } simple = t3[_i0]; $async$goto = 8; return $async$iterator._async$_current = simple, 1; case 8: // after yield _0_2 = A._InitializedCell$(new A.ExtensionStore__simpleSelectors_closure0(simple)); if (simple instanceof A.PseudoSelector0) if (_0_2._readFinal$0() != null) { selector = _0_2._readFinal$0(); t5 = true; } else { selector = null; t5 = false; } else { selector = null; t5 = false; } $async$goto = t5 ? 9 : 10; break; case 9: // then t5 = selector.components, t6 = t5.length, _i1 = 0; case 11: // for condition if (!(_i1 < t6)) { // goto after for $async$goto = 13; break; } $async$goto = 14; return $async$iterator._yieldStar$1($async$self._extension_store$_simpleSelectors$1(t5[_i1])); case 14: // after yield case 12: // for update ++_i1; // goto for condition $async$goto = 11; break; case 13: // after for case 10: // join case 6: // for update ++_i0; // goto for condition $async$goto = 5; break; case 7: // after for case 3: // for update ++_i; // goto for condition $async$goto = 2; break; case 4: // after for // implicit return return 0; case 1: // rethrow return $async$iterator._datum = $async$currentError, 3; } }; }; }, _extension_store$_extendExistingExtensions$2(extensions, newExtensions) { var extension, selectors, error, stackTrace, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, t7, exception, t8, t9, containsExtension, selectors0, t10, t11, t12, t13, t14, withExtender, _0_0, existingExtension, _i0, _i1, _null = null; 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) { extension = t1[_i]; t7 = t6.$index(0, extension.target); t7.toString; selectors = null; try { selectors = this._extension_store$_extendComplex$3(extension.extender.selector, newExtensions, extension.mediaContext); if (selectors == null) continue; } catch (exception) { t8 = A.unwrapException(exception); if (t8 instanceof A.SassException0) { error = t8; stackTrace = A.getTraceFromException(exception); A.throwWithTrace0(error.withAdditionalSpan$2(extension.extender.selector.span, "target selector"), error, stackTrace); } else throw exception; } t8 = J.get$first$ax(selectors); t9 = extension.extender.selector; containsExtension = B.C_ListEquality.equals$2(0, t8.leadingCombinators, t9.leadingCombinators) && B.C_ListEquality.equals$2(0, t8.components, t9.components); if (containsExtension) { t8 = selectors; t9 = A.instanceType(t8); selectors0 = new A.SubListIterable(t8, 1, _null, t9._eval$1("SubListIterable<1>")); selectors0.SubListIterable$3(t8, 1, _null, t9._precomputed1); selectors = selectors0; } for (t8 = J.get$iterator$ax(selectors); t8.moveNext$0();) { t9 = t8.get$current(t8); t10 = extension; t11 = t10.target; t12 = t10.span; t13 = t10.mediaContext; t10 = t10.isOptional; t9.get$specificity(); t14 = new A.Extender0(t9, false); withExtender = t14._extension$_extension = new A.Extension0(t14, t11, t13, t10, t12); _0_0 = t7.$index(0, t9); if (_0_0 != null) { existingExtension = _0_0; t10 = true; } else { existingExtension = _null; t10 = false; } if (t10) t7.$indexSet(0, t9, A.MergedExtension_merge0(existingExtension, withExtender)); else { t7.$indexSet(0, t9, withExtender); for (t10 = t9.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0) for (t12 = t10[_i0].selector.components, t13 = t12.length, _i1 = 0; _i1 < t13; ++_i1) J.add$1$ax(t3.putIfAbsent$2(t12[_i1], new A.ExtensionStore__extendExistingExtensions_closure1()), withExtender); if (newExtensions.containsKey$1(extension.target)) { if (additionalExtensions == null) additionalExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t4, t5); additionalExtensions.putIfAbsent$2(extension.target, new A.ExtensionStore__extendExistingExtensions_closure2()).$indexSet(0, t9, withExtender); } } } if (!containsExtension) t7.remove$1(0, extension.extender); } return additionalExtensions; }, _extension_store$_extendExistingSelectors$2(selectors, newExtensions) { var selector, error, stackTrace, t1, t2, oldValue, exception, t3, t4, t5, t6; for (t1 = selectors.get$iterator(selectors), t2 = this._extension_store$_mediaContexts; t1.moveNext$0();) { selector = t1.get$current(t1); oldValue = selector.value; try { selector.value = this._extension_store$_extendList$3(selector.value, newExtensions, t2.$index(0, selector)); } catch (exception) { t3 = A.unwrapException(exception); if (t3 instanceof A.SassException0) { error = t3; stackTrace = A.getTraceFromException(exception); t3 = selector.value.span.message$1(0, ""); t4 = error._span_exception$_message; t5 = error; t6 = J.getInterceptor$z(t5); t5 = A.SourceSpanException.prototype.get$span.call(t6, t5); A.throwWithTrace0(new A.SassException0(B.Set_empty, "From " + t3 + "\n" + t4, t5), error, stackTrace); } else throw exception; } if (oldValue === selector.value) continue; this._extension_store$_registerSelector$2(selector.value, selector); } }, addExtensions$1(extensionStores) { 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, existingSources, t16, extender, extension, _this = this, _null = null; 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();) { t12 = t1.get$current(t1); if (t12.get$isEmpty(t12)) continue; t11.addAll$1(0, t12.get$_extension_store$_sourceSpecificity()); for (t12 = A.MapExtensions_get_pairs0(t12.get$_extension_store$_extensions(), t2, t3), t12 = t12.get$iterator(t12); t12.moveNext$0();) { t13 = t12.get$current(t12); target = t13._0; newSources = t13._1; if (target instanceof A.PlaceholderSelector0) { first = target.name.charCodeAt(0); t13 = first === 45 || first === 95; } else t13 = false; if (t13) continue; extensionsForTarget = t8.$index(0, target); t13 = extensionsForTarget == null; if (!t13) { if (extensionsToExtend == null) { extensionsToExtend = A._setArrayType([], t9); t14 = extensionsToExtend; } else t14 = extensionsToExtend; B.JSArray_methods.addAll$1(t14, extensionsForTarget); } selectorsForTarget = t7.$index(0, target); t14 = selectorsForTarget != null; if (t14) { if (selectorsToExtend == null) { selectorsToExtend = A.LinkedHashSet_LinkedHashSet$_empty(t10); t15 = selectorsToExtend; } else t15 = selectorsToExtend; t15.addAll$1(0, selectorsForTarget); } _2_0 = t4.$index(0, target); if (_2_0 != null) { existingSources = _2_0; t15 = true; } else { existingSources = _null; t15 = false; } if (t15) for (t15 = A.MapExtensions_get_pairs0(newSources, t5, t6), t15 = t15.get$iterator(t15); t15.moveNext$0();) { t16 = t15.get$current(t15); extender = t16._0; extension = t16._1; if (existingSources.containsKey$1(extender)) { t16 = existingSources.$index(0, extender); extension = A.MergedExtension_merge0(t16, extension); existingSources.$indexSet(0, extender, extension); } else existingSources.$indexSet(0, extender, extension); if (!t13 || t14) { if (newExtensions == null) { newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3); t16 = newExtensions; } else t16 = newExtensions; J.$indexSet$ax(t16.putIfAbsent$2(target, new A.ExtensionStore_addExtensions_closure0()), extender, extension); } } else { t15 = A.LinkedHashMap_LinkedHashMap(_null, _null, _null, t5, t6); t15.addAll$1(0, newSources); t4.$indexSet(0, target, t15); if (!t13 || t14) { if (newExtensions == null) { newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3); t13 = newExtensions; } else t13 = newExtensions; t14 = A.LinkedHashMap_LinkedHashMap(_null, _null, _null, t5, t6); t14.addAll$1(0, newSources); t13.$indexSet(0, target, t14); } } } } if (newExtensions != null) { if (extensionsToExtend != null) _this._extension_store$_extendExistingExtensions$2(extensionsToExtend, newExtensions); if (selectorsToExtend != null) _this._extension_store$_extendExistingSelectors$2(selectorsToExtend, newExtensions); } }, _extension_store$_extendList$3(list, extensions, mediaQueryContext) { var t1, t2, t3, extended, i, complex, result, t4; for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector_2, extended = null, i = 0; i < t2; ++i) { complex = t1[i]; result = this._extension_store$_extendComplex$3(complex, extensions, mediaQueryContext); if (result == null) { if (extended != null) extended.push(complex); } else { if (extended == null) if (i === 0) extended = A._setArrayType([], t3); else { t4 = B.JSArray_methods.sublist$2(t1, 0, i); extended = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4)); } B.JSArray_methods.addAll$1(extended, result); } } if (extended == null) return list; t1 = this._extension_store$_originals; return A.SelectorList$0(this._extension_store$_trim$2(extended, t1.get$contains(t1)), list.span); }, _extension_store$_extendList$2(list, extensions) { return this._extension_store$_extendList$3(list, extensions, null); }, _extension_store$_extendComplex$3(complex, extensions, mediaQueryContext) { var isOriginal, t3, t4, t5, t6, t7, t8, t9, t10, extendedNotExpanded, i, component, extended, t11, t12, t13, t14, _box_0 = {}, t1 = complex.leadingCombinators, t2 = t1.length; if (t2 > 1) return null; isOriginal = this._extension_store$_originals.contains$1(0, complex); 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) { component = t3[i]; extended = this._extension_store$_extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal); if (extended == null) { if (extendedNotExpanded != null) extendedNotExpanded.push(A._setArrayType([A.ComplexSelector$0(B.List_empty14, A._setArrayType([component], t10), t8, t6)], t9)); } else if (extendedNotExpanded != null) extendedNotExpanded.push(extended); else if (i !== 0) { t11 = A._arrayInstanceType(t3); t12 = new A.SubListIterable(t3, 0, i, t11._eval$1("SubListIterable<1>")); t12.SubListIterable$3(t3, 0, i, t11._precomputed1); extendedNotExpanded = A._setArrayType([A._setArrayType([A.ComplexSelector$0(t1, t12, t8, t6)], t9), extended], t5); } else if (t2) extendedNotExpanded = A._setArrayType([extended], t5); else { t11 = A._setArrayType([], t9); for (t12 = J.get$iterator$ax(extended); t12.moveNext$0();) { t13 = t12.get$current(t12); t14 = t13.leadingCombinators; if (t14.length === 0 || B.C_ListEquality.equals$2(0, t1, t14)) { t14 = t13.components; t11.push(A.ComplexSelector$0(t1, t14, t8, !t7 || t13.lineBreak)); } } extendedNotExpanded = A._setArrayType([t11], t5); } } if (extendedNotExpanded == null) return null; _box_0.first = true; t1 = type$.ComplexSelector_2; t1 = J.expand$1$1$ax(A.paths0(extendedNotExpanded, t1), new A.ExtensionStore__extendComplex_closure0(_box_0, this, complex), t1); return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E")); }, _extension_store$_extendCompound$4$inOriginal(component, extensions, mediaQueryContext, inOriginal) { var t3, t4, t5, t6, t7, t8, t9, t10, t11, options, i, simple, extended, t12, result, compound, extenders, complex, extenderPaths, withCombinators, isOriginal, _this = this, _null = null, t1 = _this._extension_store$_mode, targetsUsed = t1 === B.ExtendMode_normal_normal0 || extensions.__js_helper$_length < 2 ? _null : A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector_2), t2 = component.selector, simples = t2.components; 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) { simple = simples[i]; extended = _this._extension_store$_extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed); if (extended == null) { if (options != null) options.push(A._setArrayType([_this._extension_store$_extenderForSimple$1(simple)], t5)); } else { if (options == null) { options = A._setArrayType([], t4); if (i !== 0) { t12 = new A.SubListIterable(simples, 0, i, t8); t12.SubListIterable$3(simples, 0, i, t9); result = A.List_List$from(t12, false, t11); result.fixed$length = Array; result.immutable$list = Array; t12 = result; compound = new A.CompoundSelector0(t12, t10); if (t12.length === 0) A.throwExpression(A.ArgumentError$("components may not be empty.", _null)); result = A.List_List$from(B.List_empty14, false, t6); result.fixed$length = Array; result.immutable$list = Array; t12 = A.ComplexSelector$0(B.List_empty14, A._setArrayType([new A.ComplexSelectorComponent0(compound, result, t10)], t7), t10, false); _this._extension_store$_sourceSpecificityFor$1(compound); options.push(A._setArrayType([new A.Extender0(t12, true)], t5)); } } B.JSArray_methods.addAll$1(options, extended); } } if (options == null) return _null; if (targetsUsed != null && targetsUsed._collection$_length !== extensions.__js_helper$_length) return _null; if (options.length === 1) { extenders = options[0]; t3 = true; } else { extenders = _null; t3 = false; } if (t3) { for (t1 = J.get$iterator$ax(extenders), t2 = component.combinators, t3 = type$.JSArray_ComplexSelector_2, result = _null; t1.moveNext$0();) { t4 = t1.get$current(t1); t4.assertCompatibleMediaContext$1(mediaQueryContext); complex = t4.selector.withAdditionalCombinators$1(t2); if (complex.accept$1(B.C__IsUselessVisitor0)) continue; if (result == null) result = A._setArrayType([], t3); result.push(complex); } return result; } extenderPaths = A.paths0(options, type$.Extender_2); t3 = A._setArrayType([], type$.JSArray_ComplexSelector_2); t1 = t1 === B.ExtendMode_replace_replace0; t4 = !t1; if (t4) 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)); t2 = J.skip$1$ax(extenderPaths, t1 ? 0 : 1); t2 = new A.ListIterator(t2, t2.get$length(t2)); t5 = component.combinators; t6 = A._instanceType(t2)._precomputed1; for (; t2.moveNext$0();) { t1 = t2.__internal$_current; extended = _this._extension_store$_unifyExtenders$3(t1 == null ? t6._as(t1) : t1, mediaQueryContext, t10); if (extended == null) continue; for (t1 = J.get$iterator$ax(extended); t1.moveNext$0();) { withCombinators = t1.get$current(t1).withAdditionalCombinators$1(t5); if (!withCombinators.accept$1(B.C__IsUselessVisitor0)) t3.push(withCombinators); } } isOriginal = new A.ExtensionStore__extendCompound_closure3(); return _this._extension_store$_trim$2(t3, inOriginal && t4 ? new A.ExtensionStore__extendCompound_closure4(B.JSArray_methods.get$first(t3)) : isOriginal); }, _extension_store$_unifyExtenders$3(extenders, mediaQueryContext, span) { var t1, t2, t3, originals, originalsLineBreak, t4, complexes, _null = null, toUnify = A.QueueList$(_null, type$.ComplexSelector_2); for (t1 = J.getInterceptor$ax(extenders), t2 = t1.get$iterator(extenders), t3 = type$.JSArray_SimpleSelector_2, originals = _null, originalsLineBreak = false; t2.moveNext$0();) { t4 = t2.get$current(t2); if (t4.isOriginal) { if (originals == null) originals = A._setArrayType([], t3); t4 = t4.selector; B.JSArray_methods.addAll$1(originals, B.JSArray_methods.get$last(t4.components).selector.components); originalsLineBreak = originalsLineBreak || t4.lineBreak; } else { t4 = t4.selector; if (t4.accept$1(B.C__IsUselessVisitor0)) return _null; else toUnify._queue_list$_add$1(t4); } } if (originals != null) 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)); complexes = A.unifyComplex0(toUnify, span); if (complexes == null) return _null; for (t1 = t1.get$iterator(extenders); t1.moveNext$0();) t1.get$current(t1).assertCompatibleMediaContext$1(mediaQueryContext); return complexes; }, _extension_store$_extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed) { var _1_0, extended, t2, t1 = new A.ExtensionStore__extendSimple_withoutPseudo0(this, extensions, targetsUsed); if (simple instanceof A.PseudoSelector0 && simple.selector != null && true) { _1_0 = this._extension_store$_extendPseudo$3(simple, extensions, mediaQueryContext); if (_1_0 != null) { extended = _1_0; t2 = true; } else { extended = null; t2 = false; } if (t2) return new A.MappedListIterable(extended, new A.ExtensionStore__extendSimple_closure1(this, t1), A.instanceType(extended)._eval$1("MappedListIterable<1,List>")); } return A.NullableExtension_andThen0(t1.call$1(simple), new A.ExtensionStore__extendSimple_closure2()); }, _extension_store$_extenderForSimple$1(simple) { var t1 = simple.span; 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); this._extension_store$_sourceSpecificity.$index(0, simple); return new A.Extender0(t1, true); }, _extension_store$_extendPseudo$3(pseudo, extensions, mediaQueryContext) { var extended, complexes, t1, result, selector = pseudo.selector; if (selector == null) throw A.wrapException(A.ArgumentError$("Selector " + pseudo.toString$0(0) + " must have a selector argument.", null)); extended = this._extension_store$_extendList$3(selector, extensions, mediaQueryContext); if (extended === selector) return null; complexes = extended.components; t1 = pseudo.normalizedName === "not"; 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())) complexes = new A.WhereIterable(complexes, new A.ExtensionStore__extendPseudo_closure6(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>")); complexes = J.expand$1$1$ax(complexes, new A.ExtensionStore__extendPseudo_closure7(pseudo), type$.ComplexSelector_2); if (t1 && selector.components.length === 1) { t1 = A.MappedIterable_MappedIterable(complexes, new A.ExtensionStore__extendPseudo_closure8(pseudo, selector), complexes.$ti._eval$1("Iterable.E"), type$.PseudoSelector_2); result = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E")); return result.length === 0 ? null : result; } else return A._setArrayType([pseudo.withSelector$1(A.SelectorList$0(complexes, selector.span))], type$.JSArray_PseudoSelector_2); }, _extension_store$_trim$2(selectors, isOriginal) { var result, i, t1, t2, numOriginals, _box_0, complex1, j, t3, t4, _i, t5, maxSpecificity; if (selectors.length > 100) return selectors; result = A.QueueList$(null, type$.ComplexSelector_2); $label0$0: for (i = selectors.length - 1, t1 = A._arrayInstanceType(selectors), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), numOriginals = 0; i >= 0; --i) { _box_0 = {}; complex1 = selectors[i]; if (isOriginal.call$1(complex1)) { for (j = 0; j < numOriginals; ++j) if (J.$eq$(result.$index(0, j), complex1)) { A.rotateSlice0(result, 0, j + 1); continue $label0$0; } ++numOriginals; result.addFirst$1(complex1); continue $label0$0; } _box_0.maxSpecificity = 0; for (t3 = complex1.components, t4 = t3.length, _i = 0, t5 = 0; _i < t4; ++_i, t5 = maxSpecificity) { maxSpecificity = Math.max(t5, this._extension_store$_sourceSpecificityFor$1(t3[_i].selector)); _box_0.maxSpecificity = maxSpecificity; } if (result.any$1(result, new A.ExtensionStore__trim_closure1(_box_0, complex1))) continue $label0$0; t3 = new A.SubListIterable(selectors, 0, i, t1); t3.SubListIterable$3(selectors, 0, i, t2); if (t3.any$1(0, new A.ExtensionStore__trim_closure2(_box_0, complex1))) continue $label0$0; result.addFirst$1(complex1); } return result; }, _extension_store$_sourceSpecificityFor$1(compound) { var t1, t2, t3, specificity, _i, t4; for (t1 = compound.components, t2 = t1.length, t3 = this._extension_store$_sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) { t4 = t3.$index(0, t1[_i]); specificity = Math.max(specificity, A.checkNum(t4 == null ? 0 : t4)); } return specificity; }, clone$0() { var t2, t3, t4, _this = this, t1 = type$.SimpleSelector_2, newSelectors = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList_2), newMediaContexts = A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList_2, type$.List_CssMediaQuery_2), oldToNewSelectors = new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_of_SelectorList_and_Box_SelectorList_2); _this._extension_store$_selectors.forEach$1(0, new A.ExtensionStore_clone_closure0(_this, newSelectors, oldToNewSelectors, newMediaContexts)); t2 = type$.Extension_2; t3 = A.copyMapOfMap0(_this._extension_store$_extensions, t1, type$.ComplexSelector_2, t2); t2 = A.copyMapOfList0(_this._extension_store$_extensionsByExtender, t1, t2); t1 = new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int_2); t1.addAll$1(0, _this._extension_store$_sourceSpecificity); t4 = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2); t4.addAll$1(0, _this._extension_store$_originals); return new A._Record_2(new A.ExtensionStore0(newSelectors, t3, t2, newMediaContexts, t1, t4, B.ExtendMode_normal_normal0), oldToNewSelectors); }, get$_extension_store$_extensions() { return this._extension_store$_extensions; }, get$_extension_store$_sourceSpecificity() { return this._extension_store$_sourceSpecificity; } }; A.ExtensionStore_extensionsWhereTarget_closure0.prototype = { call$1(extension) { return !extension.isOptional; }, $signature: 451 }; A.ExtensionStore__registerSelector_closure1.prototype = { call$0() { return A.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableBox_SelectorList_2); }, $signature: 452 }; A.ExtensionStore__registerSelector_closure2.prototype = { call$0() { return type$.PseudoSelector_2._as(this._0_0).selector; }, $signature: 78 }; A.ExtensionStore_addExtension_closure2.prototype = { call$0() { return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2); }, $signature: 140 }; A.ExtensionStore_addExtension_closure3.prototype = { call$0() { return A._setArrayType([], type$.JSArray_Extension_2); }, $signature: 247 }; A.ExtensionStore_addExtension_closure4.prototype = { call$0() { return this.complex.get$specificity(); }, $signature: 3 }; A.ExtensionStore__simpleSelectors_closure0.prototype = { call$0() { return type$.PseudoSelector_2._as(this._0_0).selector; }, $signature: 78 }; A.ExtensionStore__extendExistingExtensions_closure1.prototype = { call$0() { return A._setArrayType([], type$.JSArray_Extension_2); }, $signature: 247 }; A.ExtensionStore__extendExistingExtensions_closure2.prototype = { call$0() { return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2); }, $signature: 140 }; A.ExtensionStore_addExtensions_closure0.prototype = { call$0() { return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2); }, $signature: 140 }; A.ExtensionStore__extendComplex_closure0.prototype = { call$1(path) { var t1 = this.complex; 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); }, $signature: 456 }; A.ExtensionStore__extendComplex__closure0.prototype = { call$1(outputComplex) { var _this = this, t1 = _this._box_0; if (t1.first && _this.$this._extension_store$_originals.contains$1(0, _this.complex)) _this.$this._extension_store$_originals.add$1(0, outputComplex); t1.first = false; return outputComplex; }, $signature: 61 }; A.ExtensionStore__extendCompound_closure2.prototype = { call$1(extender) { return B.JSArray_methods.get$last(extender.selector.components).selector.components; }, $signature: 458 }; A.ExtensionStore__extendCompound_closure3.prototype = { call$1(_) { return false; }, $signature: 18 }; A.ExtensionStore__extendCompound_closure4.prototype = { call$1(complex) { return complex.$eq(0, this.original); }, $signature: 18 }; A.ExtensionStore__extendSimple_withoutPseudo0.prototype = { call$1(simple) { var t1, t2, extensionsForSimple = this.extensions.$index(0, simple); if (extensionsForSimple == null) return null; t1 = this.targetsUsed; if (t1 != null) t1.add$1(0, simple); t1 = A._setArrayType([], type$.JSArray_Extender_2); t2 = this.$this; if (t2._extension_store$_mode !== B.ExtendMode_replace_replace0) t1.push(t2._extension_store$_extenderForSimple$1(simple)); for (t2 = extensionsForSimple.get$values(extensionsForSimple), t2 = t2.get$iterator(t2); t2.moveNext$0();) t1.push(t2.get$current(t2).extender); return t1; }, $signature: 459 }; A.ExtensionStore__extendSimple_closure1.prototype = { call$1(pseudo) { var t1 = this.withoutPseudo.call$1(pseudo); return t1 == null ? A._setArrayType([this.$this._extension_store$_extenderForSimple$1(pseudo)], type$.JSArray_Extender_2) : t1; }, $signature: 460 }; A.ExtensionStore__extendSimple_closure2.prototype = { call$1(result) { return A._setArrayType([result], type$.JSArray_List_Extender_2); }, $signature: 461 }; A.ExtensionStore__extendPseudo_closure4.prototype = { call$1(complex) { return complex.components.length > 1; }, $signature: 18 }; A.ExtensionStore__extendPseudo_closure5.prototype = { call$1(complex) { return complex.components.length === 1; }, $signature: 18 }; A.ExtensionStore__extendPseudo_closure6.prototype = { call$1(complex) { return complex.components.length <= 1; }, $signature: 18 }; A.ExtensionStore__extendPseudo_closure7.prototype = { call$1(complex) { var innerPseudo, innerSelector, t1 = complex.get$singleCompound(); if (t1 == null) innerPseudo = null; else { t1 = t1.components; innerPseudo = t1.length === 1 ? B.JSArray_methods.get$first(t1) : null; } if (!(innerPseudo instanceof A.PseudoSelector0)) return A._setArrayType([complex], type$.JSArray_ComplexSelector_2); innerSelector = innerPseudo.selector; if (innerSelector == null) return A._setArrayType([complex], type$.JSArray_ComplexSelector_2); t1 = this.pseudo; switch (t1.normalizedName) { case "not": if (!B.Set_aAXJu.contains$1(0, innerPseudo.normalizedName)) return A._setArrayType([], type$.JSArray_ComplexSelector_2); return innerSelector.components; case "is": case "matches": case "where": case "any": case "current": case "nth-child": case "nth-last-child": if (innerPseudo.name !== t1.name) return A._setArrayType([], type$.JSArray_ComplexSelector_2); if (innerPseudo.argument != t1.argument) return A._setArrayType([], type$.JSArray_ComplexSelector_2); return innerSelector.components; case "has": case "host": case "host-context": case "slotted": return A._setArrayType([complex], type$.JSArray_ComplexSelector_2); default: return A._setArrayType([], type$.JSArray_ComplexSelector_2); } }, $signature: 462 }; A.ExtensionStore__extendPseudo_closure8.prototype = { call$1(complex) { return this.pseudo.withSelector$1(A.SelectorList$0(A._setArrayType([complex], type$.JSArray_ComplexSelector_2), this.selector.span)); }, $signature: 463 }; A.ExtensionStore__trim_closure1.prototype = { call$1(complex2) { return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1); }, $signature: 18 }; A.ExtensionStore__trim_closure2.prototype = { call$1(complex2) { return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1); }, $signature: 18 }; A.ExtensionStore_clone_closure0.prototype = { call$2(simple, selectors) { var t2, t3, t4, t5, t6, t7, newSelector, _0_0, mediaContext, _this = this, t1 = type$.ModifiableBox_SelectorList_2, newSelectorSet = A.LinkedHashSet_LinkedHashSet$_empty(t1); _this.newSelectors.$indexSet(0, simple, newSelectorSet); 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();) { t7 = t2.get$current(t2); newSelector = new A.ModifiableBox0(t7.value, t1); newSelectorSet.add$1(0, newSelector); t3.$indexSet(0, t7.value, new A.Box0(newSelector, t4)); _0_0 = t5.$index(0, t7); if (_0_0 != null) { mediaContext = _0_0; t7 = true; } else { mediaContext = null; t7 = false; } if (t7) t6.$indexSet(0, newSelector, mediaContext); } }, $signature: 464 }; A.FiberClass.prototype = {}; A.Fiber.prototype = {}; A.JSToDartFileImporter.prototype = { canonicalize$1(_, url) { var result, t1, resultUrl; if (url.get$scheme() === "file") return $.$get$_filesystemImporter0().canonicalize$1(0, url); result = A.wrapJSExceptions(new A.JSToDartFileImporter_canonicalize_closure(this, url)); if (result == null) return null; t1 = self.Promise; if (result instanceof t1) A.jsThrow(new self.Error("The findFileUrl() function can't return a Promise for synchron compile functions.")); else { t1 = self.URL; if (!(result instanceof t1)) A.jsThrow(new self.Error(string$.The_fie)); } resultUrl = A.Uri_parse(J.toString$0$(type$.JSUrl._as(result))); if (resultUrl.get$scheme() !== "file") A.jsThrow(new self.Error(string$.The_fiu + url.toString$0(0) + '".')); return $.$get$_filesystemImporter0().canonicalize$1(0, resultUrl); }, load$1(_, url) { return $.$get$_filesystemImporter0().load$1(0, url); }, isNonCanonicalScheme$1(scheme) { return scheme !== "file"; } }; A.JSToDartFileImporter_canonicalize_closure.prototype = { call$0() { return this.$this._file0$_findFileUrl.call$2(this.url.toString$0(0), {fromImport: A.fromImport0(), containingUrl: A.NullableExtension_andThen0(A.containingUrl(), A.utils1__dartToJSUrl$closure())}); }, $signature: 28 }; A.FilesystemImporter0.prototype = { canonicalize$1(_, url) { if (url.get$scheme() !== "file" && url.get$scheme() !== "") return null; return A.NullableExtension_andThen0(A.resolveImportPath0(A.join(this._filesystem$_loadPath, $.$get$context().style.pathFromUri$1(A._parseUri(url)), null)), new A.FilesystemImporter_canonicalize_closure0()); }, load$1(_, url) { var path = $.$get$context().style.pathFromUri$1(A._parseUri(url)); return A.ImporterResult$(A.readFile0(path), url, A.Syntax_forPath0(path)); }, toString$0(_) { return this._filesystem$_loadPath; } }; A.FilesystemImporter_canonicalize_closure0.prototype = { call$1(resolved) { var t2, t0, _null = null, t1 = A.isNodeJs() ? self.process : _null; if (!J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) { t1 = A.isNodeJs() ? self.process : _null; t1 = J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "darwin"); } else t1 = true; if (t1) { t1 = $.$get$context(); t2 = A._realCasePath0(A.absolute(t1.normalize$1(resolved), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)); t0 = t2; t2 = t1; t1 = t0; } else { t1 = $.$get$context(); t2 = t1.canonicalize$1(0, resolved); t0 = t2; t2 = t1; t1 = t0; } return t2.toUri$1(t1); }, $signature: 164 }; A.ForRule0.prototype = { accept$1$1(visitor) { return visitor.visitForRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var _this = this, t1 = _this.from.toString$0(0), t2 = _this.isExclusive ? "to" : "through", t3 = _this.children; return "@for $" + _this.variable + " from " + t1 + " " + t2 + " " + _this.to.toString$0(0) + " {" + (t3 && B.JSArray_methods).join$1(t3, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.ForwardRule0.prototype = { accept$1$1(visitor) { return visitor.visitForwardRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t2, prefix, _this = this, t1 = "@forward " + A.StringExpression_quoteText0(_this.url.toString$0(0)), shownMixinsAndFunctions = _this.shownMixinsAndFunctions, hiddenMixinsAndFunctions = _this.hiddenMixinsAndFunctions; if (shownMixinsAndFunctions != null) { t2 = _this.shownVariables; t2.toString; t2 = t1 + " show " + _this._forward_rule0$_memberList$2(shownMixinsAndFunctions, t2); t1 = t2; } else { if (hiddenMixinsAndFunctions != null) { t2 = hiddenMixinsAndFunctions._base; t2 = t2.get$isNotEmpty(t2); } else t2 = false; if (t2) { t2 = _this.hiddenVariables; t2.toString; t2 = t1 + " hide " + _this._forward_rule0$_memberList$2(hiddenMixinsAndFunctions, t2); t1 = t2; } } prefix = _this.prefix; if (prefix != null) t1 += " as " + prefix + "*"; t2 = _this.configuration; t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";"; return t1.charCodeAt(0) == 0 ? t1 : t1; }, _forward_rule0$_memberList$2(mixinsAndFunctions, variables) { var t2, t1 = A.List_List$of(mixinsAndFunctions, true, type$.String); for (t2 = variables._base, t2 = t2.get$iterator(t2); t2.moveNext$0();) t1.push("$" + t2.get$current(t2)); return B.JSArray_methods.join$1(t1, ", "); }, $isAstNode0: 1, $isStatement0: 1, get$span(receiver) { return this.span; } }; A.ForwardedModuleView0.prototype = { get$url(_) { var t1 = this._forwarded_view0$_inner; return t1.get$url(t1); }, get$upstream() { return this._forwarded_view0$_inner.get$upstream(); }, get$extensionStore() { return this._forwarded_view0$_inner.get$extensionStore(); }, get$css(_) { var t1 = this._forwarded_view0$_inner; return t1.get$css(t1); }, get$preModuleComments() { return this._forwarded_view0$_inner.get$preModuleComments(); }, get$transitivelyContainsCss() { return this._forwarded_view0$_inner.get$transitivelyContainsCss(); }, get$transitivelyContainsExtensions() { return this._forwarded_view0$_inner.get$transitivelyContainsExtensions(); }, setVariable$3($name, value, nodeWithSpan) { var shownVariables, t2, _1_0, hiddenVariables, _2_0, prefix, _null = null, _s19_ = "Undefined variable.", t1 = this._forwarded_view0$_rule, _0_0 = t1.shownVariables; if (_0_0 != null) { shownVariables = _0_0; t2 = true; } else { shownVariables = _null; t2 = false; } if (t2 && !shownVariables._base.contains$1(0, $name)) throw A.wrapException(A.SassScriptException$0(_s19_, _null)); else { _1_0 = t1.hiddenVariables; if (_1_0 != null) { hiddenVariables = _1_0; t2 = true; } else { hiddenVariables = _null; t2 = false; } if (t2 && hiddenVariables._base.contains$1(0, $name)) throw A.wrapException(A.SassScriptException$0(_s19_, _null)); } _2_0 = t1.prefix; if (_2_0 != null) { prefix = _2_0; t1 = true; } else { prefix = _null; t1 = false; } if (t1) { if (!B.JSString_methods.startsWith$1($name, prefix)) throw A.wrapException(A.SassScriptException$0(_s19_, _null)); $name = B.JSString_methods.substring$1($name, prefix.length); } return this._forwarded_view0$_inner.setVariable$3($name, value, nodeWithSpan); }, variableIdentity$1($name) { var prefix, t1, _0_0 = this._forwarded_view0$_rule.prefix; if (_0_0 != null) { prefix = _0_0; t1 = true; } else { prefix = null; t1 = false; } if (t1) $name = B.JSString_methods.substring$1($name, prefix.length); return this._forwarded_view0$_inner.variableIdentity$1($name); }, $eq(_, other) { if (other == null) return false; return other instanceof A.ForwardedModuleView0 && this._forwarded_view0$_inner.$eq(0, other._forwarded_view0$_inner) && this._forwarded_view0$_rule === other._forwarded_view0$_rule; }, get$hashCode(_) { var t1 = this._forwarded_view0$_inner; return (t1.get$hashCode(t1) ^ A.Primitives_objectHashCode(this._forwarded_view0$_rule)) >>> 0; }, cloneCss$0() { return A.ForwardedModuleView$0(this._forwarded_view0$_inner.cloneCss$0(), this._forwarded_view0$_rule, this.$ti._precomputed1); }, toString$0(_) { return "forwarded " + this._forwarded_view0$_inner.toString$0(0); }, $isModule1: 1, get$variables() { return this.variables; }, get$variableNodes() { return this.variableNodes; }, get$functions(receiver) { return this.functions; }, get$mixins() { return this.mixins; } }; A.FunctionExpression0.prototype = { get$name(_) { return A.stringReplaceAllUnchecked(this.originalName, "_", "-"); }, accept$1$1(visitor) { return visitor.visitFunctionExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.namespace; t1 = t1 != null ? "" + (t1 + ".") : ""; t1 += this.originalName + this.$arguments.toString$0(0); return t1.charCodeAt(0) == 0 ? t1 : t1; }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.JSFunction0.prototype = {}; A.SupportsFunction0.prototype = { toString$0(_) { return this.name.toString$0(0) + "(" + this.$arguments.toString$0(0) + ")"; }, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.functionClass_closure.prototype = { call$0() { var t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassFunction", new A.functionClass__closure())); A.JSClassExtension_injectSuperclass(t1._as(new A.SassFunction0(A.BuiltInCallable$function0("f", "", new A.functionClass__closure0(), null)).constructor), jsClass); return jsClass; }, $signature: 24 }; A.functionClass__closure.prototype = { call$3($self, signature, callback) { var paren = B.JSString_methods.indexOf$1(signature, "("); if (paren === -1 || !B.JSString_methods.endsWith$1(signature, ")")) A.jsThrow(new self.Error('Invalid signature for new sass.SassFunction(): "' + signature + '"')); 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)); }, "call*": "call$3", $requiredArgCount: 3, $signature: 465 }; A.functionClass__closure0.prototype = { call$1(_) { return B.C__SassNull0; }, $signature: 5 }; A.SassFunction0.prototype = { accept$1$1(visitor) { var t1, t2; if (!visitor._serialize0$_inspect) A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " isn't a valid CSS value.", null)); t1 = visitor._serialize0$_buffer; t1.write$1(0, "get-function("); t2 = this.callable; visitor._serialize0$_visitQuotedString$1(t2.get$name(t2)); t1.writeCharCode$1(41); return null; }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertFunction$1($name) { return this; }, $eq(_, other) { if (other == null) return false; return other instanceof A.SassFunction0 && this.callable.$eq(0, other.callable); }, get$hashCode(_) { var t1 = this.callable; return t1.get$hashCode(t1); } }; A.FunctionRule0.prototype = { accept$1$1(visitor) { return visitor.visitFunctionRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.children; return "@function " + this.name + "(" + this.$arguments.toString$0(0) + ") {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}"; } }; A.unifyComplex_closure2.prototype = { call$0() { return this._0_0.leadingCombinators; }, $signature: 249 }; A.unifyComplex_closure3.prototype = { call$0() { return this._1_0.combinators; }, $signature: 249 }; A.unifyComplex_closure4.prototype = { call$1(complex) { return complex.lineBreak; }, $signature: 18 }; A._namespaceAndName_closure0.prototype = { call$0() { return type$.TypeSelector_2._as(this._0_0).name; }, $signature: 467 }; A._weaveParents_closure5.prototype = { call$0() { return this._0_0._0; }, $signature: 250 }; A._weaveParents_closure6.prototype = { call$0() { return this._0_0._1; }, $signature: 250 }; A._weaveParents_closure7.prototype = { call$2(group1, group2) { var t1, unified; if (B.C_ListEquality.equals$2(0, group1, group2)) return group1; if (A._complexIsParentSuperselector0(group1, group2)) return group2; if (A._complexIsParentSuperselector0(group2, group1)) return group1; if (!A._mustUnify0(group1, group2)) return null; t1 = this.span; 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); if (unified == null) t1 = null; else { t1 = A.IterableExtension_get_singleOrNull(unified); t1 = t1 == null ? null : t1.components; } return t1; }, $signature: 469 }; A._weaveParents_closure8.prototype = { call$1(sequence) { return A._complexIsParentSuperselector0(sequence.get$first(sequence), this.group); }, $signature: 251 }; A._weaveParents_closure9.prototype = { call$1(sequence) { return sequence.get$length(sequence) === 0; }, $signature: 251 }; A._weaveParents_closure10.prototype = { call$1(choice) { return J.get$isNotEmpty$asx(choice); }, $signature: 471 }; A._mergeLeadingCombinators_closure3.prototype = { call$0() { return this._0_0._0; }, $signature: 252 }; A._mergeLeadingCombinators_closure4.prototype = { call$0() { return this._0_0._1; }, $signature: 252 }; A._mergeLeadingCombinators_closure5.prototype = { call$0() { var t1 = this._0_1._readFinal$0(); return J.get$length$asx(t1 == null ? type$.List_CssValue_Combinator_2._as(t1) : t1); }, $signature: 3 }; A._mergeLeadingCombinators_closure6.prototype = { call$0() { var t1 = this._0_4._readFinal$0(); return J.get$length$asx(t1 == null ? type$.List_CssValue_Combinator_2._as(t1) : t1); }, $signature: 3 }; A._mergeTrailingCombinators_closure9.prototype = { call$0() { var t1 = this._0_0; return t1.get$length(t1); }, $signature: 3 }; A._mergeTrailingCombinators_closure10.prototype = { call$0() { var t1 = this._1_0; return t1.get$length(t1); }, $signature: 3 }; A._mergeTrailingCombinators_closure11.prototype = { call$0() { return this._4_0._values[0]; }, $signature: 253 }; A._mergeTrailingCombinators_closure12.prototype = { call$0() { return B.Combinator_Htt0 === this._4_1._readFinal$0(); }, $signature: 1 }; A._mergeTrailingCombinators_closure13.prototype = { call$0() { return this._4_0._values[1]; }, $signature: 253 }; A._mergeTrailingCombinators_closure14.prototype = { call$0() { return B.Combinator_Htt0 === this._4_4._readFinal$0(); }, $signature: 1 }; A._mergeTrailingCombinators_closure16.prototype = { call$0() { return this._4_0._values[2]; }, $signature: 254 }; A._mergeTrailingCombinators_closure17.prototype = { call$0() { return this._4_0._values[3]; }, $signature: 254 }; A._mergeTrailingCombinators_closure15.prototype = { call$0() { return B.Combinator_4QF0 === this._4_4._readFinal$0(); }, $signature: 1 }; A._mergeTrailingCombinators_closure18.prototype = { call$0() { return B.Combinator_4QF0 === this._4_1._readFinal$0(); }, $signature: 1 }; A._mustUnify_closure0.prototype = { call$1(component) { return B.JSArray_methods.any$1(component.selector.components, new A._mustUnify__closure0(this.uniqueSelectors)); }, $signature: 52 }; A._mustUnify__closure0.prototype = { call$1(simple) { var t1; if (!(simple instanceof A.IDSelector0)) t1 = simple instanceof A.PseudoSelector0 && !simple.isClass; else t1 = true; return t1 && this.uniqueSelectors.contains$1(0, simple); }, $signature: 15 }; A._chunks_closure3.prototype = { call$0() { return this._0_0._0; }, $signature() { return this.T._eval$1("List<0>()"); } }; A._chunks_closure4.prototype = { call$0() { return J.get$length$asx(this._0_1._readFinal$0()) <= 0; }, $signature: 1 }; A._chunks_closure5.prototype = { call$0() { return this._0_0._1; }, $signature() { return this.T._eval$1("List<0>()"); } }; A._chunks_closure6.prototype = { call$0() { return J.get$length$asx(this._0_5._readFinal$0()) <= 0; }, $signature: 1 }; A.paths_closure0.prototype = { call$2(paths, choice) { var t1 = this.T; t1 = J.expand$1$1$ax(choice, new A.paths__closure0(paths, t1), t1._eval$1("List<0>")); return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E")); }, $signature() { return this.T._eval$1("List>(List>,List<0>)"); } }; A.paths__closure0.prototype = { call$1(option) { var t1 = this.T; return J.map$1$1$ax(this.paths, new A.paths___closure0(option, t1), t1._eval$1("List<0>")); }, $signature() { return this.T._eval$1("Iterable>(0)"); } }; A.paths___closure0.prototype = { call$1(path) { var t1 = A.List_List$of(path, true, this.T); t1.push(this.option); return t1; }, $signature() { return this.T._eval$1("List<0>(List<0>)"); } }; A.listIsSuperselector_closure0.prototype = { call$1(complex1) { return B.JSArray_methods.any$1(this.list1, new A.listIsSuperselector__closure0(complex1)); }, $signature: 18 }; A.listIsSuperselector__closure0.prototype = { call$1(complex2) { return complex2.isSuperselector$1(this.complex1); }, $signature: 18 }; A.complexIsSuperselector_closure1.prototype = { call$1($parent) { return $parent.combinators.length > 1; }, $signature: 52 }; A.complexIsSuperselector_closure2.prototype = { call$1(component) { return A._isSupercombinator0(this.combinator1, A.IterableExtension_get_firstOrNull(component.combinators)); }, $signature: 52 }; A._compatibleWithPreviousCombinator_closure0.prototype = { call$1(component) { var t1 = component.combinators, t2 = A.IterableExtension_get_firstOrNull(t1); if (!J.$eq$(t2 == null ? null : t2.value, B.Combinator_Htt0)) { t1 = A.IterableExtension_get_firstOrNull(t1); t1 = J.$eq$(t1 == null ? null : t1.value, B.Combinator_4QF0); } else t1 = true; return t1; }, $signature: 52 }; A.compoundIsSuperselector_closure1.prototype = { call$0() { return this._0_0._0; }, $signature: 255 }; A.compoundIsSuperselector_closure2.prototype = { call$0() { return this._0_0._1; }, $signature: 255 }; A._selectorPseudoIsSuperselector_closure6.prototype = { call$1(selector2) { return A.listIsSuperselector0(this.selector1.components, selector2.components); }, $signature: 72 }; A._selectorPseudoIsSuperselector_closure7.prototype = { call$1(complex1) { var t1, t2; if (complex1.leadingCombinators.length === 0) { t1 = A._setArrayType([], type$.JSArray_ComplexSelectorComponent_2); t2 = this.parents; if (t2 != null) B.JSArray_methods.addAll$1(t1, t2); t2 = this.compound2; t1.push(new A.ComplexSelectorComponent0(t2, A.List_List$unmodifiable(B.List_empty14, type$.CssValue_Combinator_2), t2.span)); t1 = A.complexIsSuperselector0(complex1.components, t1); } else t1 = false; return t1; }, $signature: 18 }; A._selectorPseudoIsSuperselector_closure8.prototype = { call$1(selector2) { return A.listIsSuperselector0(this.selector1.components, selector2.components); }, $signature: 72 }; A._selectorPseudoIsSuperselector_closure9.prototype = { call$1(selector2) { return A.listIsSuperselector0(this.selector1.components, selector2.components); }, $signature: 72 }; A._selectorPseudoIsSuperselector_closure10.prototype = { call$1(complex) { if (complex.accept$1(B._IsBogusVisitor_true0)) return false; return B.JSArray_methods.any$1(this.compound2.components, new A._selectorPseudoIsSuperselector__closure0(complex, this.pseudo1)); }, $signature: 18 }; A._selectorPseudoIsSuperselector__closure0.prototype = { call$1(simple2) { var t1, selector2, _this = this, _0_4 = A._InitializedCell$(new A._selectorPseudoIsSuperselector___closure2(simple2)); $label0$1: { if (simple2 instanceof A.TypeSelector0) { t1 = B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure3(simple2)); break $label0$1; } if (simple2 instanceof A.IDSelector0) { t1 = B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure4(simple2)); break $label0$1; } if (simple2 instanceof A.PseudoSelector0) { if (_0_4._readFinal$0() != null) { selector2 = _0_4._readFinal$0(); t1 = true; } else { selector2 = null; t1 = false; } t1 = t1 && simple2.name === _this.pseudo1.name; } else { selector2 = null; t1 = false; } if (t1) { t1 = A.listIsSuperselector0(selector2.components, A._setArrayType([_this.complex], type$.JSArray_ComplexSelector_2)); break $label0$1; } t1 = false; break $label0$1; } return t1; }, $signature: 15 }; A._selectorPseudoIsSuperselector___closure3.prototype = { call$1(simple1) { var t1; if (simple1 instanceof A.TypeSelector0) { t1 = this.simple2; t1 = !(t1 instanceof A.TypeSelector0 && t1.name.$eq(0, simple1.name)); } else t1 = false; return t1; }, $signature: 15 }; A._selectorPseudoIsSuperselector___closure4.prototype = { call$1(simple1) { var t1; if (simple1 instanceof A.IDSelector0) { t1 = this.simple2; t1 = !(t1 instanceof A.IDSelector0 && t1.name === simple1.name); } else t1 = false; return t1; }, $signature: 15 }; A._selectorPseudoIsSuperselector___closure2.prototype = { call$0() { return type$.PseudoSelector_2._as(this._0_0).selector; }, $signature: 78 }; A._selectorPseudoIsSuperselector_closure11.prototype = { call$1(selector2) { var t1 = B.C_ListEquality.equals$2(0, this.selector1.components, selector2.components); return t1; }, $signature: 72 }; A._selectorPseudoIsSuperselector_closure12.prototype = { call$1(pseudo2) { var t1, selector2; if (!(pseudo2 instanceof A.PseudoSelector0)) return false; t1 = this.pseudo1; if (pseudo2.name !== t1.name) return false; if (pseudo2.argument != t1.argument) return false; selector2 = pseudo2.selector; if (selector2 == null) return false; return A.listIsSuperselector0(this.selector1.components, selector2.components); }, $signature: 15 }; A._selectorPseudoArgs_closure1.prototype = { call$1(pseudo) { return pseudo.isClass === this.isClass && pseudo.name === this.name; }, $signature: 477 }; A._selectorPseudoArgs_closure2.prototype = { call$1(pseudo) { return pseudo.selector; }, $signature: 478 }; A.globalFunctions_closure0.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2); }, $signature: 5 }; A.IDSelector0.prototype = { get$specificity() { return A._asInt(Math.pow(A.SimpleSelector0.prototype.get$specificity.call(this), 2)); }, accept$1$1(visitor) { return visitor.visitIDSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, addSuffix$1(suffix) { return new A.IDSelector0(this.name + suffix, this.span); }, unify$1(compound) { if (B.JSArray_methods.any$1(compound, new A.IDSelector_unify_closure0(this))) return null; return this.super$SimpleSelector$unify0(compound); }, $eq(_, other) { if (other == null) return false; return other instanceof A.IDSelector0 && other.name === this.name; }, get$hashCode(_) { return B.JSString_methods.get$hashCode(this.name); } }; A.IDSelector_unify_closure0.prototype = { call$1(simple) { var t1; if (simple instanceof A.IDSelector0) t1 = this.$this.name !== simple.name; else t1 = false; return t1; }, $signature: 15 }; A.IfExpression0.prototype = { accept$1$1(visitor) { return visitor.visitIfExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "if" + this.$arguments.toString$0(0); }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.IfRule0.prototype = { accept$1$1(visitor) { return visitor.visitIfRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var result = A.ListExtensions_mapIndexed(this.clauses, new A.IfRule_toString_closure0(), type$.IfClause_2, type$.String).join$1(0, " "), lastClause = this.lastClause; return lastClause != null ? result + (" " + lastClause.toString$0(0)) : result; }, $isAstNode0: 1, $isStatement0: 1, get$span(receiver) { return this.span; } }; A.IfRule_toString_closure0.prototype = { call$2(index, clause) { var t1 = index === 0 ? "if" : "else if"; return "@" + t1 + " " + clause.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(clause.children, " ") + "}"; }, $signature: 479 }; A.IfRuleClause0.prototype = {}; A.IfRuleClause$__closure0.prototype = { call$1(child) { var t1, imports; $label0$0: { if (child instanceof A.VariableDeclaration0 || child instanceof A.FunctionRule0 || child instanceof A.MixinRule0) { t1 = true; break $label0$0; } if (child instanceof A.ImportRule0) { imports = child.imports; t1 = true; } else { imports = null; t1 = false; } if (t1) { t1 = (imports && B.JSArray_methods).any$1(imports, new A.IfRuleClause$___closure0()); break $label0$0; } t1 = false; break $label0$0; } return t1; }, $signature: 257 }; A.IfRuleClause$___closure0.prototype = { call$1($import) { return $import instanceof A.DynamicImport0; }, $signature: 258 }; A.IfClause0.prototype = { toString$0(_) { return "@if " + this.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(this.children, " ") + "}"; } }; A.ElseClause0.prototype = { toString$0(_) { return "@else {" + B.JSArray_methods.join$1(this.children, " ") + "}"; } }; A.ImmutableList0.prototype = {}; A.ImmutableMap0.prototype = {}; A.immutableMapToDartMap_closure.prototype = { call$3(value, key, _) { this.dartMap.$indexSet(0, key, value); }, "call*": "call$3", $requiredArgCount: 3, $signature: 482 }; A.NodeImporter.prototype = { loadRelative$3(url, previous, forImport) { var t1, t2, _null = null; if ($.$get$url().style.rootLength$1(url) > 0) { if (!B.JSString_methods.startsWith$1(url, "/") && !B.JSString_methods.startsWith$1(url, "file:")) return _null; return this._tryPath$2($.$get$context().style.pathFromUri$1(A._parseUri(url)), forImport); } if ((previous == null ? _null : previous.get$scheme()) !== "file") return _null; t1 = $.$get$context(); t2 = t1.style; return this._tryPath$2(A.join(t1.dirname$1(t2.pathFromUri$1(A._parseUri(previous))), t2.pathFromUri$1(A._parseUri(url)), _null), forImport); }, load$3(_, url, previous, forImport) { var t1, t2, _i, _0_0, value, t3, _this = this, previousString = _this._previousToString$1(previous); for (t1 = _this._implementation$_importers, t2 = t1.length, _i = 0; _i < t2; ++_i) { _0_0 = A.wrapJSExceptions(new A.NodeImporter_load_closure(_this, t1[_i], forImport, url, previousString)); if (_0_0 != null) { value = _0_0; t3 = true; } else { value = null; t3 = false; } if (t3) return _this._handleImportResult$4(url, previous, value, forImport); } return _this._resolveLoadPathFromUrl$2(A.Uri_parse(url), forImport); }, loadAsync$3(url, previous, forImport) { return this.loadAsync$body$NodeImporter(url, previous, forImport); }, loadAsync$body$NodeImporter(url, previous, forImport) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_2_String_and_String), $async$returnValue, $async$self = this, t1, t2, _i, _0_0, value, t3, previousString; var $async$loadAsync$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start previousString = $async$self._previousToString$1(previous); t1 = $async$self._implementation$_importers, t2 = t1.length, _i = 0; case 3: // for condition if (!(_i < t2)) { // goto after for $async$goto = 5; break; } $async$goto = 6; return A._asyncAwait($async$self._callImporterAsync$4(t1[_i], url, previousString, forImport), $async$loadAsync$3); case 6: // returning from await. _0_0 = $async$result; if (_0_0 != null) { value = _0_0; t3 = true; } else { value = null; t3 = false; } if (t3) { $async$returnValue = $async$self._handleImportResult$4(url, previous, value, forImport); // goto return $async$goto = 1; break; } case 4: // for update ++_i; // goto for condition $async$goto = 3; break; case 5: // after for $async$returnValue = $async$self._resolveLoadPathFromUrl$2(A.Uri_parse(url), forImport); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$loadAsync$3, $async$completer); }, _previousToString$1(previous) { var t1; $label0$0: { if (previous == null) { t1 = "stdin"; break $label0$0; } if ("file" === previous.get$scheme()) { t1 = $.$get$context().style.pathFromUri$1(A._parseUri(previous)); break $label0$0; } t1 = previous.toString$0(0); break $label0$0; } return t1; }, _resolveLoadPathFromUrl$2(url, forImport) { return url.get$scheme() === "" || url.get$scheme() === "file" ? this._resolveLoadPath$2($.$get$context().style.pathFromUri$1(A._parseUri(url)), forImport) : null; }, _resolveLoadPath$2(path, forImport) { var result, t1, t2, _i, t3, _1_0, _null = null, _0_0 = this._tryPath$2(A.absolute(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), forImport); if (_0_0 != null) { result = _0_0; t1 = true; } else { result = _null; t1 = false; } if (t1) return result; for (t1 = this._includePaths, t2 = t1.length, _i = 0; _i < t2; ++_i) { t3 = A.join(t1[_i], path, _null); _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); if (_1_0 != null) { result = _1_0; t3 = true; } else { result = _null; t3 = false; } if (t3) return result; } return _null; }, _tryPath$2(path, forImport) { var t1; if (forImport) { t1 = type$.nullable_Object; t1 = A.runZoned(new A.NodeImporter__tryPath_closure(path), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__inImportRule, true], t1, t1), type$.nullable_String); } else t1 = A.resolveImportPath0(path); return A.NullableExtension_andThen0(t1, new A.NodeImporter__tryPath_closure0()); }, _handleImportResult$4(url, previous, value, forImport) { var t1, file, contents, t2, resolved; if (value instanceof self.Error) throw A.wrapException(value); if (!type$.NodeImporterResult._is(value)) return null; t1 = J.getInterceptor$x(value); file = t1.get$file(value); contents = t1.get$contents(value); t1 = contents == null; t2 = !t1; if (t2 && A._asString(new self.Function("value", "return typeof value").call$1(contents)) !== "string") A.jsThrow(new A.ArgumentError(true, contents, "contents", "must be a string but was: " + A.jsType(contents))); if (file == null) return new A._Record_2(t1 ? "" : contents, url); else if (t2) return new A._Record_2(contents, $.$get$context().toUri$1(file).toString$0(0)); else { resolved = this.loadRelative$3($.$get$context().toUri$1(file).toString$0(0), previous, forImport); if (resolved == null) resolved = this._resolveLoadPath$2(file, forImport); if (resolved != null) return resolved; throw A.wrapException("Can't find stylesheet to import."); } }, _callImporterAsync$4(importer, url, previousString, forImport) { return this._callImporterAsync$body$NodeImporter(importer, url, previousString, forImport); }, _callImporterAsync$body$NodeImporter(importer, url, previousString, forImport) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Object), $async$returnValue, $async$self = this, t1, result; var $async$_callImporterAsync$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = new A._Future($.Zone__current, type$._Future_Object); result = A.wrapJSExceptions(new A.NodeImporter__callImporterAsync_closure($async$self, importer, forImport, url, previousString, new A._AsyncCompleter(t1, type$._AsyncCompleter_Object))); $async$goto = A._asBool($.$get$_isUndefined().call$1(result)) ? 3 : 4; break; case 3: // then $async$goto = 5; return A._asyncAwait(t1, $async$_callImporterAsync$4); case 5: // returning from await. $async$returnValue = $async$result; // goto return $async$goto = 1; break; case 4: // join $async$returnValue = result; // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$_callImporterAsync$4, $async$completer); }, _renderContext$1(fromImport) { var context = {options: type$.RenderContextOptions._as(this._implementation$_options), fromImport: fromImport}; J.set$context$x(J.get$options$x(context), context); return context; } }; A.NodeImporter_load_closure.prototype = { call$0() { var _this = this; return J.apply$2$x(_this.importer, _this.$this._renderContext$1(_this.forImport), A._setArrayType([_this.url, _this.previousString], type$.JSArray_Object)); }, $signature: 28 }; A.NodeImporter__tryPath_closure.prototype = { call$0() { return A.resolveImportPath0(this.path); }, $signature: 32 }; A.NodeImporter__tryPath_closure0.prototype = { call$1(resolved) { return new A._Record_2(A.readFile0(resolved), $.$get$context().toUri$1(resolved).toString$0(0)); }, $signature: 483 }; A.NodeImporter__callImporterAsync_closure.prototype = { call$0() { var _this = this; 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)); }, $signature: 28 }; A.ModifiableCssImport0.prototype = { accept$1$1(visitor) { return visitor.visitCssImport$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, get$span(receiver) { return this.span; } }; A.ImportCache0.prototype = { canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) { var t1, relativeResult, _this = this; if (A.isBrowser()) t1 = (baseImporter == null || baseImporter instanceof A.NoOpImporter0) && _this._import_cache$_importers.length === 0; else t1 = false; if (t1) throw A.wrapException(string$.Custom); if (baseImporter != null && url.get$scheme() === "") { relativeResult = _this._import_cache$_relativeCanonicalizeCache.putIfAbsent$2(new A._Record_4_baseImporter_baseUrl_forImport([url, baseImporter, baseUrl, forImport]), new A.ImportCache_canonicalize_closure1(_this, baseImporter, baseUrl, url, forImport)); if (relativeResult != null) return relativeResult; } return _this._import_cache$_canonicalizeCache.putIfAbsent$2(new A._Record_2_forImport(url, forImport), new A.ImportCache_canonicalize_closure2(_this, url, baseUrl, forImport)); }, _import_cache$_canonicalize$4(importer, url, baseUrl, forImport) { var passContainingUrl, t1, result, _null = null, canonicalize = forImport ? new A.ImportCache__canonicalize_closure1(importer, url) : new A.ImportCache__canonicalize_closure2(importer, url); if (baseUrl != null) passContainingUrl = url.get$scheme() === "" || importer.isNonCanonicalScheme$1(url.get$scheme()); else passContainingUrl = false; t1 = passContainingUrl ? baseUrl : _null; result = A.withContainingUrl0(t1, canonicalize, type$.nullable_Uri); if (result == null) return _null; if (result.get$scheme() === "") A.WarnForDeprecation_warnForDeprecation0(this._import_cache$_logger, B.Deprecation_E5x, "Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2e_Rela, _null, _null); else if (importer.isNonCanonicalScheme$1(result.get$scheme())) throw A.wrapException("Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2c_whicu); return new A._Record_3_originalUrl(importer, result, url); }, importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, quiet) { return this._import_cache$_importCache.putIfAbsent$2(canonicalUrl, new A.ImportCache_importCanonical_closure0(this, importer, canonicalUrl, originalUrl, quiet)); }, importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) { return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, false); }, humanize$1(canonicalUrl) { var t2, t1 = this._import_cache$_canonicalizeCache; t1 = A.IterableNullableExtension_whereNotNull(t1.get$values(t1), type$.Record_3_Importer_and_Uri_and_Uri_originalUrl_2); t2 = t1.$ti; t2 = A.NullableExtension_andThen0(A.minBy(new A.MappedIterable(new A.WhereIterable(t1, new A.ImportCache_humanize_closure3(canonicalUrl), t2._eval$1("WhereIterable")), new A.ImportCache_humanize_closure4(), t2._eval$1("MappedIterable")), new A.ImportCache_humanize_closure5()), new A.ImportCache_humanize_closure6(canonicalUrl)); return t2 == null ? canonicalUrl : t2; }, sourceMapUrl$1(_, canonicalUrl) { var t1 = this._import_cache$_resultsCache.$index(0, canonicalUrl); t1 = t1 == null ? null : t1.get$sourceMapUrl(t1); return t1 == null ? canonicalUrl : t1; } }; A.ImportCache_canonicalize_closure1.prototype = { call$0() { var _this = this, t1 = _this.baseUrl, t2 = t1 == null ? null : t1.resolveUri$1(_this.url); if (t2 == null) t2 = _this.url; return _this.$this._import_cache$_canonicalize$4(_this.baseImporter, t2, t1, _this.forImport); }, $signature: 259 }; A.ImportCache_canonicalize_closure2.prototype = { call$0() { var t1, t2, t3, t4, t5, t6, _i, _0_0, result, t7, _this = this; for (t1 = _this.$this, t2 = t1._import_cache$_importers, t3 = t2.length, t4 = _this.url, t5 = _this.baseUrl, t6 = _this.forImport, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) { _0_0 = t1._import_cache$_canonicalize$4(t2[_i], t4, t5, t6); if (_0_0 != null) { result = _0_0; t7 = true; } else { result = null; t7 = false; } if (t7) return result; } return null; }, $signature: 259 }; A.ImportCache__canonicalize_closure1.prototype = { call$0() { var t1 = type$.nullable_Object; return A.runZoned(new A.ImportCache__canonicalize__closure0(this.importer, this.resolved), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__inImportRule, true], t1, t1), type$.nullable_Uri); }, $signature: 56 }; A.ImportCache__canonicalize__closure0.prototype = { call$0() { return this.importer.canonicalize$1(0, this.resolved); }, $signature: 56 }; A.ImportCache__canonicalize_closure2.prototype = { call$0() { return this.importer.canonicalize$1(0, this.resolved); }, $signature: 56 }; A.ImportCache_importCanonical_closure0.prototype = { call$0() { var t2, t3, t4, _this = this, t1 = _this.canonicalUrl, result = _this.importer.load$1(0, t1); if (result == null) return null; t2 = _this.$this; t2._import_cache$_resultsCache.$indexSet(0, t1, result); t3 = result.contents; t4 = result.syntax; t1 = _this.originalUrl.resolveUri$1(t1); return A.Stylesheet_Stylesheet$parse0(t3, t4, _this.quiet ? $.$get$Logger_quiet0() : t2._import_cache$_logger, t1); }, $signature: 485 }; A.ImportCache_humanize_closure3.prototype = { call$1(result) { return J.$eq$(result._1, this.canonicalUrl); }, $signature: 486 }; A.ImportCache_humanize_closure4.prototype = { call$1(result) { return result._2; }, $signature: 487 }; A.ImportCache_humanize_closure5.prototype = { call$1(url) { return url.get$path(url).length; }, $signature: 111 }; A.ImportCache_humanize_closure6.prototype = { call$1(url) { var t1 = $.$get$url(), t2 = this.canonicalUrl; return url.resolve$1(A.ParsedPath_ParsedPath$parse(t2.get$path(t2), t1.style).get$basename()); }, $signature: 48 }; A.ImportRule0.prototype = { accept$1$1(visitor) { return visitor.visitImportRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "@import " + B.JSArray_methods.join$1(this.imports, ", ") + ";"; }, $isAstNode0: 1, $isStatement0: 1, get$span(receiver) { return this.span; } }; A.JSImporter.prototype = {}; A.CanonicalizeContext.prototype = {}; A.JSImporterResult.prototype = {}; A.Importer0.prototype = { isNonCanonicalScheme$1(scheme) { return false; } }; A.NodeImporterResult0.prototype = {}; A.IncludeRule0.prototype = { get$spanWithoutContent() { var t2, t3, t1 = this.span; if (!(this.content == null)) { t2 = t1.file; t3 = this.$arguments.span; t3 = A.SpanExtensions_trimRight0(A.SpanExtensions_trimLeft0(t2.span$2(0, A.FileLocation$_(t2, t1._file$_start).offset, t3.get$end(t3).offset))); t1 = t3; } return t1; }, accept$1$1(visitor) { return visitor.visitIncludeRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t2, _this = this, t1 = _this.namespace; t1 = t1 != null ? "@include " + (t1 + ".") : "@include "; t1 += _this.name; t2 = _this.$arguments; if (!t2.get$isEmpty(t2)) t1 += "(" + t2.toString$0(0) + ")"; t2 = _this.content; t1 += t2 == null ? ";" : " " + t2.toString$0(0); return t1.charCodeAt(0) == 0 ? t1 : t1; }, $isAstNode0: 1, $isStatement0: 1, get$span(receiver) { return this.span; } }; A.InterpolatedFunctionExpression0.prototype = { accept$1$1(visitor) { return visitor.visitInterpolatedFunctionExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return this.name.toString$0(0) + this.$arguments.toString$0(0); }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.Interpolation0.prototype = { get$asPlain() { var t1, first, _0_0 = this.contents, _0_1 = A._InitializedCell$(new A.Interpolation_asPlain_closure1(_0_0)), _0_6 = A._InitializedCell$(new A.Interpolation_asPlain_closure2(_0_0)); $label0$0: { if (_0_1._readFinal$0() <= 0) { t1 = ""; break $label0$0; } if (J.$eq$(_0_1._readFinal$0(), 1)) if (typeof _0_6._readFinal$0() == "string") { first = _0_6._readFinal$0(); t1 = true; } else { first = null; t1 = false; } else { first = null; t1 = false; } if (t1) { t1 = first; break $label0$0; } t1 = null; break $label0$0; } return t1; }, get$initialPlain() { var first, t1, _0_0 = this.contents, _0_4 = A._InitializedCell$(new A.Interpolation_initialPlain_closure0(_0_0)); $label0$0: { if (_0_0.length >= 1) if (typeof _0_4._readFinal$0() == "string") { first = _0_4._readFinal$0(); t1 = true; } else { first = null; t1 = false; } else { first = null; t1 = false; } if (t1) { t1 = first; break $label0$0; } t1 = ""; break $label0$0; } return t1; }, Interpolation$20(contents, span) { var t1, t2, t3, i, t4, t5, _s8_ = "contents"; for (t1 = this.contents, t2 = t1.length, t3 = type$.Expression_2, i = 0; i < t2; ++i) { t4 = t1[i]; t5 = typeof t4 == "string"; if (!t5 && !t3._is(t4)) throw A.wrapException(A.ArgumentError$value(t1, _s8_, string$.May_on)); if (i !== 0 && typeof t1[i - 1] == "string" && t5) throw A.wrapException(A.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings.")); } }, toString$0(_) { var t1 = this.contents; return new A.MappedListIterable(t1, new A.Interpolation_toString_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0); }, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.Interpolation_asPlain_closure1.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A.Interpolation_asPlain_closure2.prototype = { call$0() { return this._0_0[0]; }, $signature: 14 }; A.Interpolation_initialPlain_closure0.prototype = { call$0() { return this._0_0[0]; }, $signature: 14 }; A.Interpolation_toString_closure0.prototype = { call$1(value) { return typeof value == "string" ? value : "#{" + A.S(value) + "}"; }, $signature: 139 }; A.SupportsInterpolation0.prototype = { toString$0(_) { return "#{" + this.expression.toString$0(0) + "}"; }, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.InterpolationBuffer0.prototype = { writeCharCode$1(character) { this._interpolation_buffer0$_text._contents += A.Primitives_stringFromCharCode(character); return null; }, addInterpolation$1(interpolation) { var _0_4, first, rest, _this = this, _null = null, toAdd = interpolation.contents, t1 = toAdd.length; if (t1 === 0) return; _0_4 = A._InitializedCell$(new A.InterpolationBuffer_addInterpolation_closure0(toAdd)); if (t1 >= 1) if (typeof _0_4._readFinal$0() == "string") { first = _0_4._readFinal$0(); rest = B.JSArray_methods.sublist$1(toAdd, 1); t1 = true; } else { rest = _null; first = rest; t1 = false; } else { rest = _null; first = rest; t1 = false; } if (t1) { _this._interpolation_buffer0$_text._contents += A.S(first); toAdd = rest; } _this._interpolation_buffer0$_flushText$0(); t1 = _this._interpolation_buffer0$_contents; B.JSArray_methods.addAll$1(t1, toAdd); if (typeof B.JSArray_methods.get$last(t1) == "string") _this._interpolation_buffer0$_text._contents += A.S(t1.pop()); }, _interpolation_buffer0$_flushText$0() { var t1 = this._interpolation_buffer0$_text, t2 = t1._contents; if (t2.length === 0) return; this._interpolation_buffer0$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2); t1._contents = ""; }, interpolation$1(span) { var t1 = A.List_List$of(this._interpolation_buffer0$_contents, true, type$.Object), t2 = this._interpolation_buffer0$_text._contents; if (t2.length !== 0) t1.push(t2.charCodeAt(0) == 0 ? t2 : t2); return A.Interpolation$0(t1, span); }, toString$0(_) { var t1, t2, _i, t3, element; for (t1 = this._interpolation_buffer0$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) { element = t1[_i]; t3 = typeof element == "string" ? t3 + element : t3 + "#{" + A.S(element) + A.Primitives_stringFromCharCode(125); } t1 = t3 + this._interpolation_buffer0$_text.toString$0(0); return t1.charCodeAt(0) == 0 ? t1 : t1; } }; A.InterpolationBuffer_addInterpolation_closure0.prototype = { call$0() { return this._0_0[0]; }, $signature: 14 }; A.InterpolationMap0.prototype = { mapException$1(error) { var t3, t4, _this = this, target = error.get$span(error), source = _this.mapSpan$1(target), startIndex = _this._interpolation_map$_indexInContents$1(target.get$start(target)), endIndex = _this._interpolation_map$_indexInContents$1(target.get$end(target)), t1 = _this._interpolation_map$_interpolation.contents, t2 = error._span_exception$_message; if (!A.SubListIterable$(t1, startIndex, null, A._arrayInstanceType(t1)._precomputed1).take$1(0, endIndex - startIndex + 1).any$1(0, new A.InterpolationMap_mapException_closure0())) return new A.SourceSpanFormatException(error.get$source(), t2, source); else { t1 = type$.SourceSpan; t3 = type$.String; t4 = A.LinkedHashMap_LinkedHashMap$_literal([target, "error in interpolated output"], t1, t3); error.get$source(); return new A.MultiSourceSpanFormatException("", A.ConstantMap_ConstantMap$from(t4, t1, t3), t2, source); } }, mapSpan$1(target) { var t1, start, end, t2, _this = this, _null = null, _0_0 = new A._Record_2(_this._interpolation_map$_mapLocation$1(target.get$start(target)), _this._interpolation_map$_mapLocation$1(target.get$end(target))), _0_1 = A._InitializedCell$(new A.InterpolationMap_mapSpan_closure1(_0_0)), _0_2 = A._InitializedCell$(new A.InterpolationMap_mapSpan_closure2(_0_0)); $label0$0: { t1 = type$.FileSpan; if (t1._is(_0_1._readFinal$0())) { start = _0_1._readFinal$0(); if (t1._is(_0_2._readFinal$0())) { end = _0_2._readFinal$0(); t2 = true; } else { end = _null; t2 = false; } } else { end = _null; start = end; t2 = false; } if (t2) { t1 = start.expand$1(0, end); break $label0$0; } if (t1._is(_0_1._readFinal$0())) { start = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.FileLocation) { end = _0_2._readFinal$0(); t2 = true; } else { end = _null; t2 = false; } } else { end = _null; start = end; t2 = false; } if (t2) { t1 = _this._interpolation_map$_interpolation.span; t1 = t1.get$file(t1).span$2(0, _this._interpolation_map$_expandInterpolationSpanLeft$1(start.get$start(start)), end.offset); break $label0$0; } if (_0_1._readFinal$0() instanceof A.FileLocation) { start = _0_1._readFinal$0(); if (t1._is(_0_2._readFinal$0())) { end = _0_2._readFinal$0(); t1 = true; } else { end = _null; t1 = false; } } else { end = _null; start = end; t1 = false; } if (t1) { t1 = _this._interpolation_map$_interpolation.span; t1 = t1.get$file(t1).span$2(0, start.offset, _this._interpolation_map$_expandInterpolationSpanRight$1(end.get$end(end))); break $label0$0; } if (_0_1._readFinal$0() instanceof A.FileLocation) { start = _0_1._readFinal$0(); if (_0_2._readFinal$0() instanceof A.FileLocation) { end = _0_2._readFinal$0(); t1 = true; } else { end = _null; t1 = false; } } else { end = _null; start = end; t1 = false; } if (t1) { t1 = _this._interpolation_map$_interpolation.span; t1 = t1.get$file(t1).span$2(0, start.offset, end.offset); break $label0$0; } t1 = A.throwExpression("[BUG] Unreachable"); } return t1; }, _interpolation_map$_mapLocation$1(target) { var chunk, t4, previousLocation, _this = this, index = _this._interpolation_map$_indexInContents$1(target), t1 = _this._interpolation_map$_interpolation, t2 = t1.contents, _0_0 = t2[index], t3 = type$.Expression_2; if (t3._is(_0_0)) { chunk = _0_0; t4 = true; } else { chunk = null; t4 = false; } if (t4) return chunk.get$span(chunk); t4 = index === 0; t1 = t1.span; if (t4) previousLocation = t1.get$start(t1); else { t1 = t1.get$file(t1); t2 = t3._as(t2[index - 1]); t2 = t2.get$span(t2); previousLocation = A.FileLocation$_(t1, _this._interpolation_map$_expandInterpolationSpanRight$1(t2.get$end(t2))); } t1 = t4 ? 0 : _this._interpolation_map$_targetLocations[index - 1].get$offset(); return A.FileLocation$_(previousLocation.file, previousLocation.offset + (target.offset - t1)); }, _interpolation_map$_indexInContents$1(target) { var t1, t2, t3, i; for (t1 = this._interpolation_map$_targetLocations, t2 = t1.length, t3 = target.offset, i = 0; i < t2; ++i) if (t3 < t1[i].get$offset()) return i; return this._interpolation_map$_interpolation.contents.length - 1; }, _interpolation_map$_expandInterpolationSpanLeft$1(start) { var i0, prev, char, source = start.file._decodedChars, i = start.offset - 1; for (; i >= 0;) { i0 = i - 1; prev = source[i]; if (prev === 123) { if (source[i0] === 35) { i = i0; break; } i = i0; } else if (prev === 47) { i = i0 - 1; if (source[i0] === 42) for (; true;) { i0 = i - 1; if (source[i] !== 42) { i = i0; continue; } i = i0; do { i0 = i - 1; char = source[i]; if (char === 42) { i = i0; continue; } else break; } while (true); if (char === 47) { i = i0; break; } i = i0; } } else i = i0; } return i; }, _interpolation_map$_expandInterpolationSpanRight$1(end) { var t1, i0, next, second, t2, char, source = end.file._decodedChars, i = end.offset; for (t1 = source.length; i < t1;) { i0 = i + 1; next = source[i]; if (next === 125) { i = i0; break; } if (next === 47) { i = i0 + 1; second = source[i0]; if (second === 47) { while (true) { i0 = i + 1; t2 = source[i]; if (!!(t2 === 10 || t2 === 13 || t2 === 12)) break; i = i0; } i = i0; } else if (second === 42) for (; true;) { i0 = i + 1; if (source[i] !== 42) { i = i0; continue; } i = i0; do { i0 = i + 1; char = source[i]; if (char === 42) { i = i0; continue; } else break; } while (true); if (char === 47) { i = i0; break; } i = i0; } } else i = i0; } return i; } }; A.InterpolationMap_mapException_closure0.prototype = { call$1($content) { return type$.Expression_2._is($content); }, $signature: 77 }; A.InterpolationMap_mapSpan_closure1.prototype = { call$0() { return this._0_0._0; }, $signature: 14 }; A.InterpolationMap_mapSpan_closure2.prototype = { call$0() { return this._0_0._1; }, $signature: 14 }; A._realCasePath_helper0.prototype = { call$1(path) { var dirname = $.$get$context().dirname$1(path); if (dirname === path) return path; return $._realCaseCache0.putIfAbsent$2(path, new A._realCasePath_helper_closure0(this, dirname, path)); }, $signature: 7 }; A._realCasePath_helper_closure0.prototype = { call$0() { var matches, t1, _0_0, match, t3, exception, realDirname = this.helper.call$1(this.dirname), t2 = this.path, basename = A.ParsedPath_ParsedPath$parse(t2, $.$get$context().style).get$basename(); try { matches = J.where$1$ax(A.listDir0(realDirname), new A._realCasePath_helper__closure0(basename)).toList$0(0); t1 = null; _0_0 = matches; $label0$0: { match = null; if (J.get$length$asx(_0_0) === 1) { match = J.$index$asx(_0_0, 0); t3 = true; } else t3 = false; if (t3) { t1 = match; break $label0$0; } t1 = A.join(realDirname, basename, null); break $label0$0; } t1 = t1; return t1; } catch (exception) { if (A.unwrapException(exception) instanceof A.FileSystemException0) return t2; else throw exception; } }, $signature: 22 }; A._realCasePath_helper__closure0.prototype = { call$1(realPath) { return A.equalsIgnoreCase0(A.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename); }, $signature: 10 }; A.FileSystemException0.prototype = { toString$0(_) { var t1 = $.$get$context(); return t1.prettyUri$1(t1.toUri$1(this.path)) + ": " + this.message; }, get$message(receiver) { return this.message; } }; A._readFile_closure0.prototype = { call$0() { return J.readFileSync$2$x(A.fs(), this.path, this.encoding); }, $signature: 58 }; A.fileExists_closure0.prototype = { call$0() { var error, systemError, exception, t1 = this.path; if (!J.existsSync$1$x(A.fs(), t1)) return false; try { t1 = J.isFile$0$x(J.statSync$1$x(A.fs(), t1)); return t1; } catch (exception) { error = A.unwrapException(exception); systemError = type$.JsSystemError._as(error); if (J.$eq$(J.get$code$x(systemError), "ENOENT")) return false; throw exception; } }, $signature: 1 }; A.dirExists_closure0.prototype = { call$0() { var error, systemError, exception, t1 = this.path; if (!J.existsSync$1$x(A.fs(), t1)) return false; try { t1 = J.isDirectory$0$x(J.statSync$1$x(A.fs(), t1)); return t1; } catch (exception) { error = A.unwrapException(exception); systemError = type$.JsSystemError._as(error); if (J.$eq$(J.get$code$x(systemError), "ENOENT")) return false; throw exception; } }, $signature: 1 }; A.listDir_closure0.prototype = { call$0() { var t1 = this.path; if (!this.recursive) 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()); else return new A.listDir_closure_list0().call$1(t1); }, $signature: 149 }; A.listDir__closure1.prototype = { call$1(child) { return A.join(this.path, A._asString(child), null); }, $signature: 101 }; A.listDir__closure2.prototype = { call$1(child) { return !A.dirExists0(child); }, $signature: 10 }; A.listDir_closure_list0.prototype = { call$1($parent) { return J.expand$1$1$ax(J.readdirSync$1$x(A.fs(), $parent), new A.listDir__list_closure0($parent, this), type$.String); }, $signature: 174 }; A.listDir__list_closure0.prototype = { call$1(child) { var path = A.join(this.parent, A._asString(child), null); return A.dirExists0(path) ? this.list.call$1(path) : A._setArrayType([path], type$.JSArray_String); }, $signature: 178 }; A.main_closure.prototype = { call$2(_, __) { }, $signature: 488 }; A.main_closure0.prototype = { call$2(_, __) { }, $signature: 489 }; A.JSToDartLogger.prototype = { warn$4$deprecation$span$trace(_, message, deprecation, span, trace) { var warn, t1 = this._node, _0_0 = t1 == null ? null : J.get$warn$x(t1); if (_0_0 != null) { warn = _0_0; t1 = true; } else { warn = null; t1 = false; } if (t1) { t1 = span == null ? type$.nullable_SourceSpan._as(self.undefined) : span; warn.call$2(message, {deprecation: deprecation, span: t1, stack: J.toString$0$(trace)}); } else this._withAscii$1(new A.JSToDartLogger_warn_closure(this, message, span, trace, deprecation)); }, warn$1($receiver, message) { return this.warn$4$deprecation$span$trace($receiver, message, false, null, null); }, warn$2$span($receiver, message, span) { return this.warn$4$deprecation$span$trace($receiver, message, false, span, null); }, debug$2(_, message, span) { var debug, t1 = this._node, _0_0 = t1 == null ? null : J.get$debug$x(t1); if (_0_0 != null) { debug = _0_0; t1 = true; } else { debug = null; t1 = false; } if (t1) debug.call$2(message, {span: span}); else this._withAscii$1(new A.JSToDartLogger_debug_closure(this, message, span)); }, _withAscii$1$1(callback) { var t1, wasAscii = $._glyphs === B.C_AsciiGlyphSet; $._glyphs = this._ascii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet; try { t1 = callback.call$0(); return t1; } finally { $._glyphs = wasAscii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet; } }, _withAscii$1(callback) { return this._withAscii$1$1(callback, type$.dynamic); } }; A.JSToDartLogger_warn_closure.prototype = { call$0() { var _this = this; _this.$this._fallback.warn$4$deprecation$span$trace(0, _this.message, _this.deprecation, _this.span, _this.trace); }, $signature: 2 }; A.JSToDartLogger_debug_closure.prototype = { call$0() { return this.$this._fallback.debug$2(0, this.message, this.span); }, $signature: 0 }; A.ModifiableCssKeyframeBlock0.prototype = { accept$1$1(visitor) { return visitor.visitCssKeyframeBlock$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, equalsIgnoringChildren$1(other) { return other instanceof A.ModifiableCssKeyframeBlock0 && B.C_ListEquality.equals$2(0, this.selector.value, other.selector.value); }, copyWithoutChildren$0() { return A.ModifiableCssKeyframeBlock$0(this.selector, this.span); }, get$span(receiver) { return this.span; } }; A.KeyframeSelectorParser0.prototype = { parse$0() { return this.wrapSpanFormatException$1(new A.KeyframeSelectorParser_parse_closure0(this)); }, _keyframe_selector$_percentage$0() { var $self, _0_0, t1 = this.scanner, t2 = t1.scanChar$1(43) ? "" + A.Primitives_stringFromCharCode(43) : "", second = t1.peekChar$0(); if (!(second != null && second >= 48 && second <= 57) && second !== 46) t1.error$1(0, "Expected number."); while (true) { $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) break; t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); } if (t1.peekChar$0() === 46) { t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); while (true) { $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) break; t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); } } if (this.scanIdentChar$1(101)) { t2 += A.Primitives_stringFromCharCode(101); _0_0 = t1.peekChar$0(); if (43 === _0_0 || 45 === _0_0) t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) t1.error$1(0, "Expected digit."); do { t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); $self = t1.peekChar$0(); } while ($self != null && $self >= 48 && $self <= 57); } t1.expectChar$1(37); t2 += A.Primitives_stringFromCharCode(37); return t2.charCodeAt(0) == 0 ? t2 : t2; } }; A.KeyframeSelectorParser_parse_closure0.prototype = { call$0() { var selectors = A._setArrayType([], type$.JSArray_String), t1 = this.$this, t2 = t1.scanner; do { t1.whitespace$0(); if (t1.lookingAtIdentifier$0()) if (t1.scanIdentifier$1("from")) selectors.push("from"); else { t1.expectIdentifier$2$name("to", '"to" or "from"'); selectors.push("to"); } else selectors.push(t1._keyframe_selector$_percentage$0()); t1.whitespace$0(); } while (t2.scanChar$1(44)); t2.expectDone$0(); return selectors; }, $signature: 26 }; A.LazyFileSpan0.prototype = { get$span(_) { var t1 = this._lazy_file_span0$_span; return t1 == null ? this._lazy_file_span0$_span = this._lazy_file_span0$_builder.call$0() : t1; }, compareTo$1(_, other) { return this.get$span(this).compareTo$1(0, other); }, get$context(_) { var t1 = this.get$span(this); return t1.get$context(t1); }, get$end(_) { var t1 = this.get$span(this); return t1.get$end(t1); }, expand$1(_, other) { return this.get$span(this).expand$1(0, other); }, get$file(_) { var t1 = this.get$span(this); return t1.get$file(t1); }, highlight$1$color(color) { return this.get$span(this).highlight$1$color(color); }, get$length(_) { var t1 = this.get$span(this); return t1.get$length(t1); }, message$2$color(_, message, color) { return this.get$span(this).message$2$color(0, message, color); }, message$1($receiver, message) { return this.message$2$color($receiver, message, null); }, get$sourceUrl(_) { var t1 = this.get$span(this); return t1.get$sourceUrl(t1); }, get$start(_) { var t1 = this.get$span(this); return t1.get$start(t1); }, get$text() { return this.get$span(this).get$text(); }, $isComparable: 1, $isFileSpan: 1, $isSourceSpan: 1, $isSourceSpanWithContext: 1 }; A.render_closure.prototype = { call$0() { var error, exception; try { this.callback.call$2(null, A.renderSync(this.options)); } catch (exception) { error = A.unwrapException(exception); this.callback.call$2(error, null); } return null; }, $signature: 2 }; A.render_closure0.prototype = { call$1(result) { this.callback.call$2(null, result); }, $signature: 490 }; A.render_closure1.prototype = { call$2(error, stackTrace) { var t2, t3, _null = null, t1 = this.callback; if (error instanceof A.SassException0) t1.call$2(A._wrapException(error, stackTrace), _null); else { t2 = J.toString$0$(error); t3 = A.getTrace0(error); t1.call$2(A._newRenderError(t2, t3 == null ? stackTrace : t3, _null, _null, _null, 3), _null); } }, $signature: 62 }; A._parseFunctions_closure.prototype = { call$2(signature, callback) { var _0_0, _this = this, t1 = {}, t2 = _this.options, context = {options: A._contextOptions(t2, _this.start)}; J.set$context$x(J.get$options$x(context), context); t1.fiber = null; _0_0 = J.get$fiber$x(t2); if (_0_0 != null) { t1.fiber = _0_0; t2 = true; } else t2 = false; if (t2) _this.result.push(A.Callable_Callable$fromSignature(B.JSString_methods.trimLeft$0(signature), new A._parseFunctions__closure(t1, callback, context), false)); else { t1 = _this.result; if (!_this.asynch) t1.push(A.Callable_Callable$fromSignature(B.JSString_methods.trimLeft$0(signature), new A._parseFunctions__closure0(callback, context), false)); else t1.push(A.AsyncCallable_AsyncCallable$fromSignature(B.JSString_methods.trimLeft$0(signature), new A._parseFunctions__closure1(callback, context), false)); } }, $signature: 135 }; A._parseFunctions__closure.prototype = { call$1($arguments) { var result, t1 = this._box_0, currentFiber = J.get$current$x(t1.fiber), t2 = type$.Object; t2 = A.List_List$of(J.map$1$1$ax($arguments, A.value0__wrapValue$closure(), t2), true, t2); t2.push(A.allowInterop(new A._parseFunctions___closure2(currentFiber))); result = A.wrapJSExceptions(new A._parseFunctions___closure3(this.callback, this.context, t2)); return A.unwrapValue(A._asBool($.$get$_isUndefined().call$1(result)) ? A.runZoned(new A._parseFunctions___closure4(t1), null, type$.nullable_Object) : result); }, $signature: 5 }; A._parseFunctions___closure2.prototype = { call$1(result) { A.scheduleMicrotask(new A._parseFunctions____closure(this.currentFiber, result)); }, call$0() { return this.call$1(null); }, "call*": "call$1", $requiredArgCount: 0, $defaultValues() { return [null]; }, $signature: 94 }; A._parseFunctions____closure.prototype = { call$0() { return J.run$1$x(this.currentFiber, this.result); }, $signature: 0 }; A._parseFunctions___closure3.prototype = { call$0() { return J.apply$2$x(type$.JSFunction._as(this.callback), this.context, this.jsArguments); }, $signature: 28 }; A._parseFunctions___closure4.prototype = { call$0() { return J.yield$0$x(this._box_0.fiber); }, $signature: 14 }; A._parseFunctions__closure0.prototype = { call$1($arguments) { return A.unwrapValue(A.wrapJSExceptions(new A._parseFunctions___closure1(this.callback, this.context, $arguments))); }, $signature: 5 }; A._parseFunctions___closure1.prototype = { call$0() { var t1 = type$.JSFunction._as(this.callback), t2 = J.map$1$1$ax(this.$arguments, A.value0__wrapValue$closure(), type$.Object); return J.apply$2$x(t1, this.context, A.List_List$of(t2, true, A._instanceType(t2)._eval$1("ListIterable.E"))); }, $signature: 28 }; A._parseFunctions__closure1.prototype = { call$1($arguments) { return this.$call$body$_parseFunctions__closure($arguments); }, $call$body$_parseFunctions__closure($arguments) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2), $async$returnValue, $async$self = this, result, t1, t2, $async$temp1; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); while (true) switch ($async$goto) { case 0: // Function start t1 = new A._Future($.Zone__current, type$._Future_nullable_Object); t2 = type$.Object; t2 = A.List_List$of(J.map$1$1$ax($arguments, A.value0__wrapValue$closure(), t2), true, t2); t2.push(A.allowInterop(new A._parseFunctions___closure(new A._AsyncCompleter(t1, type$._AsyncCompleter_nullable_Object)))); result = A.wrapJSExceptions(new A._parseFunctions___closure0($async$self.callback, $async$self.context, t2)); $async$temp1 = A; $async$goto = A._asBool($.$get$_isUndefined().call$1(result)) ? 3 : 5; break; case 3: // then $async$goto = 6; return A._asyncAwait(t1, $async$call$1); case 6: // returning from await. // goto join $async$goto = 4; break; case 5: // else $async$result = result; case 4: // join $async$returnValue = $async$temp1.unwrapValue($async$result); // goto return $async$goto = 1; break; case 1: // return return A._asyncReturn($async$returnValue, $async$completer); } }); return A._asyncStartSync($async$call$1, $async$completer); }, $signature: 99 }; A._parseFunctions___closure.prototype = { call$1(result) { return this.completer.complete$1(result); }, call$0() { return this.call$1(null); }, "call*": "call$1", $requiredArgCount: 0, $defaultValues() { return [null]; }, $signature: 160 }; A._parseFunctions___closure0.prototype = { call$0() { return J.apply$2$x(type$.JSFunction._as(this.callback), this.context, this.jsArguments); }, $signature: 28 }; A._parseImporter_closure.prototype = { call$1(importer) { return type$.JSFunction._as(A.allowInteropCaptureThis(new A._parseImporter__closure(this._box_0, importer))); }, $signature: 491 }; A._parseImporter__closure.prototype = { call$4(thisArg, url, previous, _) { var t1 = this._box_0, 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)); if (A._asBool($.$get$_isUndefined().call$1(result))) return A.runZoned(new A._parseImporter___closure0(t1), null, type$.Object); return result; }, call$3(thisArg, url, previous) { return this.call$4(thisArg, url, previous, null); }, "call*": "call$4", $requiredArgCount: 3, $defaultValues() { return [null]; }, $signature: 492 }; A._parseImporter___closure.prototype = { call$1(result) { A.scheduleMicrotask(new A._parseImporter____closure(this.currentFiber, result)); }, $signature: 493 }; A._parseImporter____closure.prototype = { call$0() { return J.run$1$x(this.currentFiber, this.result); }, $signature: 0 }; A._parseImporter___closure0.prototype = { call$0() { return J.yield$0$x(this._box_0.fiber); }, $signature: 14 }; A.LimitedMapView0.prototype = { get$keys(_) { return this._limited_map_view0$_keys; }, get$length(_) { return this._limited_map_view0$_keys._collection$_length; }, get$isEmpty(_) { return this._limited_map_view0$_keys._collection$_length === 0; }, get$isNotEmpty(_) { return this._limited_map_view0$_keys._collection$_length !== 0; }, $index(_, key) { return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.$index(0, key) : null; }, containsKey$1(key) { return this._limited_map_view0$_keys.contains$1(0, key); }, remove$1(_, key) { return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.remove$1(0, key) : null; } }; A.ListExpression0.prototype = { accept$1$1(visitor) { return visitor.visitListExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t2, t3, t4, t5, _this = this, t1 = _this.hasBrackets; if (t1) t2 = "" + A.Primitives_stringFromCharCode(91); else { t2 = _this.contents.length; if (t2 !== 0) t2 = t2 === 1 && _this.separator === B.ListSeparator_rXA0; else t2 = true; t2 = t2 ? "" + A.Primitives_stringFromCharCode(40) : ""; } t3 = _this.contents; t4 = _this.separator === B.ListSeparator_rXA0; t5 = t4 ? ", " : " "; t5 = t2 + new A.MappedListIterable(t3, new A.ListExpression_toString_closure0(_this), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String>")).join$1(0, t5); if (t1) t1 = t5 + A.Primitives_stringFromCharCode(93); else { t1 = t3.length; if (t1 === 0) t1 = t5 + A.Primitives_stringFromCharCode(41); else t1 = t1 === 1 && t4 ? t5 + ",)" : t5; } return t1.charCodeAt(0) == 0 ? t1 : t1; }, _list3$_elementNeedsParens$1(expression) { var childSeparator, t1, _0_13 = A._InitializedCell$(new A.ListExpression__elementNeedsParens_closure0(expression)); $label0$0: { if (expression instanceof A.ListExpression0) if (expression.contents.length >= 2) if (!expression.hasBrackets) { childSeparator = expression.separator; t1 = true; } else { childSeparator = null; t1 = false; } else { childSeparator = null; t1 = false; } else { childSeparator = null; t1 = false; } if (t1) { t1 = this.separator === B.ListSeparator_rXA0 ? childSeparator === B.ListSeparator_rXA0 : childSeparator !== B.ListSeparator_undecided_null_undecided0; break $label0$0; } if (expression instanceof A.UnaryOperationExpression0) t1 = B.UnaryOperator_gg40 === _0_13._readFinal$0() || B.UnaryOperator_TLI0 === _0_13._readFinal$0(); else t1 = false; if (t1) { t1 = this.separator === B.ListSeparator_EVt0; break $label0$0; } t1 = false; break $label0$0; } return t1; }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.ListExpression_toString_closure0.prototype = { call$1(element) { return this.$this._list3$_elementNeedsParens$1(element) ? "(" + element.toString$0(0) + ")" : element.toString$0(0); }, $signature: 118 }; A.ListExpression__elementNeedsParens_closure0.prototype = { call$0() { return type$.UnaryOperationExpression_2._as(this._0_0).operator; }, $signature: 120 }; A._length_closure2.prototype = { call$1($arguments) { return A.SassNumber_SassNumber0(J.$index$asx($arguments, 0).get$asList().length, null); }, $signature: 12 }; A._nth_closure0.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), list = t1.$index($arguments, 0), index = t1.$index($arguments, 1); return list.get$asList()[list.sassIndexToListIndex$2(index, "n")]; }, $signature: 5 }; A._setNth_closure0.prototype = { call$1($arguments) { var newList, t1 = J.getInterceptor$asx($arguments), list = t1.$index($arguments, 0), index = t1.$index($arguments, 1), value = t1.$index($arguments, 2); t1 = list.get$asList(); newList = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1)); newList[list.sassIndexToListIndex$2(index, "n")] = value; return list.withListContents$1(newList); }, $signature: 27 }; A._join_closure0.prototype = { call$1($arguments) { var _0_0, _0_1, _0_3, _0_4, separator, bracketed, t2, t1 = J.getInterceptor$asx($arguments), list1 = t1.$index($arguments, 0), list2 = t1.$index($arguments, 1), separatorParam = t1.$index($arguments, 2).assertString$1("separator"), bracketedParam = t1.$index($arguments, 3), _1_0 = separatorParam._string0$_text; $label1$1: { if ("auto" === _1_0) { _0_0 = new A._Record_2(list1.get$separator(list1), list2.get$separator(list2)); _0_1 = A._InitializedCell$(new A._join__closure2(_0_0)); _0_3 = A._InitializedCell$(new A._join__closure3(_0_1)); _0_4 = A._InitializedCell$(new A._join__closure4(_0_0)); $label0$0: { if (_0_3._readFinal$0() && B.ListSeparator_undecided_null_undecided0 === _0_4._readFinal$0()) { t1 = B.ListSeparator_EVt0; break $label0$0; } if (_0_3._readFinal$0()) { separator = _0_4._readFinal$0(); t1 = true; } else { separator = null; t1 = false; } if (!t1) separator = _0_1._readFinal$0(); t1 = separator; break $label0$0; } break $label1$1; } if ("space" === _1_0) { t1 = B.ListSeparator_EVt0; break $label1$1; } if ("comma" === _1_0) { t1 = B.ListSeparator_rXA0; break $label1$1; } if ("slash" === _1_0) { t1 = B.ListSeparator_zg90; break $label1$1; } t1 = A.throwExpression(A.SassScriptException$0(string$.x24separ, null)); } bracketed = bracketedParam instanceof A.SassString0 && bracketedParam._string0$_text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy(); t2 = A.List_List$of(list1.get$asList(), true, type$.Value_2); B.JSArray_methods.addAll$1(t2, list2.get$asList()); return A.SassList$0(t2, t1, bracketed); }, $signature: 27 }; A._join__closure2.prototype = { call$0() { return this._0_0._0; }, $signature: 261 }; A._join__closure3.prototype = { call$0() { return B.ListSeparator_undecided_null_undecided0 === this._0_1._readFinal$0(); }, $signature: 1 }; A._join__closure4.prototype = { call$0() { return this._0_0._1; }, $signature: 261 }; A._append_closure2.prototype = { call$1($arguments) { var t2, t1 = J.getInterceptor$asx($arguments), list = t1.$index($arguments, 0), value = t1.$index($arguments, 1), _0_0 = t1.$index($arguments, 2).assertString$1("separator")._string0$_text; $label0$0: { if ("auto" === _0_0) { t1 = list.get$separator(list) === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_EVt0 : list.get$separator(list); break $label0$0; } if ("space" === _0_0) { t1 = B.ListSeparator_EVt0; break $label0$0; } if ("comma" === _0_0) { t1 = B.ListSeparator_rXA0; break $label0$0; } if ("slash" === _0_0) { t1 = B.ListSeparator_zg90; break $label0$0; } t1 = A.throwExpression(A.SassScriptException$0(string$.x24separ, null)); } t2 = A.List_List$of(list.get$asList(), true, type$.Value_2); t2.push(value); return list.withListContents$2$separator(t2, t1); }, $signature: 27 }; A._zip_closure0.prototype = { call$1($arguments) { var results, result, _box_0 = {}, t1 = J.$index$asx($arguments, 0).get$asList(), t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List>"), lists = A.List_List$of(new A.MappedListIterable(t1, new A._zip__closure2(), t2), true, t2._eval$1("ListIterable.E")); if (lists.length === 0) return B.SassList_Sof1; _box_0.i = 0; results = A._setArrayType([], type$.JSArray_SassList_2); 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));) { result = A.List_List$from(new A.MappedListIterable(lists, new A._zip__closure4(_box_0), t1), false, t2); result.fixed$length = Array; result.immutable$list = Array; results.push(new A.SassList0(result, B.ListSeparator_EVt0, false)); ++_box_0.i; } return A.SassList$0(results, B.ListSeparator_rXA0, false); }, $signature: 27 }; A._zip__closure2.prototype = { call$1(list) { return list.get$asList(); }, $signature: 496 }; A._zip__closure3.prototype = { call$1(list) { return this._box_0.i !== J.get$length$asx(list); }, $signature: 497 }; A._zip__closure4.prototype = { call$1(list) { return J.$index$asx(list, this._box_0.i); }, $signature: 5 }; A._index_closure2.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), index = B.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1)); return index === -1 ? B.C__SassNull0 : A.SassNumber_SassNumber0(index + 1, null); }, $signature: 5 }; A._separator_closure0.prototype = { call$1($arguments) { var t1, _0_0 = J.get$separator$x(J.$index$asx($arguments, 0)); $label0$0: { if (B.ListSeparator_rXA0 === _0_0) { t1 = new A.SassString0("comma", false); break $label0$0; } if (B.ListSeparator_zg90 === _0_0) { t1 = new A.SassString0("slash", false); break $label0$0; } t1 = new A.SassString0("space", false); break $label0$0; } return t1; }, $signature: 17 }; A._isBracketed_closure0.prototype = { call$1($arguments) { return J.$index$asx($arguments, 0).get$hasBrackets() ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A._slash_closure0.prototype = { call$1($arguments) { var list = J.$index$asx($arguments, 0).get$asList(); if (list.length < 2) throw A.wrapException(A.SassScriptException$0("At least two elements are required.", null)); return A.SassList$0(list, B.ListSeparator_zg90, false); }, $signature: 27 }; A.SelectorList0.prototype = { get$asSassList() { var t1 = this.components; return A.SassList$0(new A.MappedListIterable(t1, new A.SelectorList_asSassList_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), B.ListSeparator_rXA0, false); }, accept$1$1(visitor) { return visitor.visitSelectorList$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, unify$1(other) { var t3, t4, t5, t6, _i, complex1, _i0, t7, t1 = type$.JSArray_ComplexSelector_2, t2 = A._setArrayType([], t1); for (t3 = this.components, t4 = t3.length, t5 = other.components, t6 = t5.length, _i = 0; _i < t4; ++_i) { complex1 = t3[_i]; for (_i0 = 0; _i0 < t6; ++_i0) { t7 = A.unifyComplex0(A._setArrayType([complex1, t5[_i0]], t1), complex1.span); if (t7 != null) B.JSArray_methods.addAll$1(t2, t7); } } return t2.length === 0 ? null : A.SelectorList$0(t2, this.span); }, resolveParentSelectors$2$implicitParent($parent, implicitParent) { var parentSelector, t1, _this = this; if ($parent == null) { parentSelector = B.C__ParentSelectorVisitor0.visitSelectorList$1(_this); if (parentSelector == null) return _this; throw A.wrapException(A.SassException$0(string$.Top_le, parentSelector.span, null)); } t1 = _this.components; return A.SelectorList$0(A.flattenVertically0(new A.MappedListIterable(t1, new A.SelectorList_resolveParentSelectors_closure0(_this, implicitParent, $parent), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable>")), type$.ComplexSelector_2), _this.span); }, resolveParentSelectors$1($parent) { return this.resolveParentSelectors$2$implicitParent($parent, true); }, _list2$_resolveParentSelectorsCompound$2(component, $parent) { var resolvedSimples, parentSelector, error, stackTrace, t2, resolvedSimples0, exception, t1 = component.selector, simples = t1.components, containsSelectorPseudo = J.any$1$ax(simples, new A.SelectorList__resolveParentSelectorsCompound_closure2()); if (!containsSelectorPseudo && !(J.get$first$ax(simples) instanceof A.ParentSelector0)) return null; if (containsSelectorPseudo) { t2 = simples; resolvedSimples0 = new A.MappedListIterable(t2, new A.SelectorList__resolveParentSelectorsCompound_closure3($parent), A.instanceType(t2)._eval$1("MappedListIterable<1,SimpleSelector0>")); } else resolvedSimples0 = simples; resolvedSimples = resolvedSimples0; parentSelector = J.get$first$ax(simples); try { if (!(parentSelector instanceof A.ParentSelector0)) { t2 = component.span; 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); return t2; } else if (J.get$length$asx(simples) === 1 && parentSelector.suffix == null) { t1 = $parent.withAdditionalCombinators$1(component.combinators); return t1.components; } } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException0) { error = t1; stackTrace = A.getTraceFromException(exception); A.throwWithTrace0(error.withAdditionalSpan$2(parentSelector.span, "parent selector"), error, stackTrace); } else throw exception; } t1 = $parent.components; return new A.MappedListIterable(t1, new A.SelectorList__resolveParentSelectorsCompound_closure4(parentSelector, resolvedSimples, component), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>")); }, isSuperselector$1(other) { return A.listIsSuperselector0(this.components, other.components); }, withAdditionalCombinators$1(combinators) { var t1; if (combinators.length === 0) t1 = this; else { t1 = this.components; t1 = A.SelectorList$0(new A.MappedListIterable(t1, new A.SelectorList_withAdditionalCombinators_closure0(combinators), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>")), this.span); } return t1; }, get$hashCode(_) { return B.C_ListEquality0.hash$1(this.components); }, $eq(_, other) { if (other == null) return false; return other instanceof A.SelectorList0 && B.C_ListEquality.equals$2(0, this.components, other.components); } }; A.SelectorList_asSassList_closure0.prototype = { call$1(complex) { var t3, t4, _i, component, t5, visitor, t6, t7, _i0, t1 = type$.JSArray_Value_2, t2 = A._setArrayType([], t1); for (t3 = complex.leadingCombinators, t4 = t3.length, _i = 0; _i < t4; ++_i) t2.push(new A.SassString0(J.toString$0$(t3[_i].value), false)); for (t3 = complex.components, t4 = t3.length, _i = 0; _i < t4; ++_i) { component = t3[_i]; t5 = component.selector; visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true); t5.accept$1(visitor); t5 = A._setArrayType([new A.SassString0(visitor._serialize0$_buffer.toString$0(0), false)], t1); for (t6 = component.combinators, t7 = t6.length, _i0 = 0; _i0 < t7; ++_i0) t5.push(new A.SassString0(J.toString$0$(t6[_i0].value), false)); B.JSArray_methods.addAll$1(t2, t5); } return A.SassList$0(t2, B.ListSeparator_EVt0, false); }, $signature: 498 }; A.SelectorList_resolveParentSelectors_closure0.prototype = { call$1(complex) { 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; if (complex.accept$1(B.C__ParentSelectorVisitor0) == null) { if (!_this.implicitParent) return A._setArrayType([complex], type$.JSArray_ComplexSelector_2); t1 = _this.parent.components; return new A.MappedListIterable(t1, new A.SelectorList_resolveParentSelectors__closure1(complex), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>")); } t1 = type$.JSArray_ComplexSelector_2; newComplexes = A._setArrayType([], t1); 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) { component = t2[_i]; resolved = t4._list2$_resolveParentSelectorsCompound$2(component, t5); if (resolved == null) if (newComplexes.length === 0) newComplexes.push(A.ComplexSelector$0(t7, A._setArrayType([component], t11), t9, false)); else for (i = 0; i < newComplexes.length; ++i) { t12 = newComplexes[i]; t13 = t12.leadingCombinators; t14 = A.List_List$of(t12.components, true, t10); t14.push(component); newComplexes[i] = A.ComplexSelector$0(t13, t14, t9, t12.lineBreak || false); } else if (newComplexes.length === 0) B.JSArray_methods.addAll$1(newComplexes, t8 ? resolved : J.map$1$1$ax(resolved, new A.SelectorList_resolveParentSelectors__closure2(complex), t6)); else { t12 = A._setArrayType([], t1); for (t13 = newComplexes.length, t14 = J.getInterceptor$ax(resolved), _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t13 || (0, A.throwConcurrentModificationError)(newComplexes), ++_i0) { newComplex = newComplexes[_i0]; for (t15 = t14.get$iterator(resolved); t15.moveNext$0();) t12.push(newComplex.concatenate$2(t15.get$current(t15), newComplex.span)); } newComplexes = t12; } } return newComplexes; }, $signature: 499 }; A.SelectorList_resolveParentSelectors__closure1.prototype = { call$1(parentComplex) { var t1 = this.complex; return parentComplex.concatenate$2(t1, t1.span); }, $signature: 61 }; A.SelectorList_resolveParentSelectors__closure2.prototype = { call$1(resolvedComplex) { var t1 = resolvedComplex.leadingCombinators, t2 = this.complex, t3 = t2.leadingCombinators; if (t1.length === 0) t1 = t3; else { t3 = A.List_List$of(t3, true, type$.CssValue_Combinator_2); B.JSArray_methods.addAll$1(t3, t1); t1 = t3; } return A.ComplexSelector$0(t1, resolvedComplex.components, t2.span, resolvedComplex.lineBreak); }, $signature: 61 }; A.SelectorList__resolveParentSelectorsCompound_closure2.prototype = { call$1(simple) { var selector; if (!(simple instanceof A.PseudoSelector0)) return false; selector = simple.selector; return selector != null && selector.accept$1(B.C__ParentSelectorVisitor0) != null; }, $signature: 15 }; A.SelectorList__resolveParentSelectorsCompound_closure3.prototype = { call$1(simple) { var selector, t1, _0_2 = A._InitializedCell$(new A.SelectorList__resolveParentSelectorsCompound__closure0(simple)); $label0$0: { if (simple instanceof A.PseudoSelector0) { if (_0_2._readFinal$0() != null) { selector = _0_2._readFinal$0(); t1 = true; } else { selector = null; t1 = false; } t1 = t1 && selector.accept$1(B.C__ParentSelectorVisitor0) != null; } else { selector = null; t1 = false; } if (t1) { t1 = simple.withSelector$1(selector.resolveParentSelectors$2$implicitParent(this.parent, false)); break $label0$0; } t1 = simple; break $label0$0; } return t1; }, $signature: 500 }; A.SelectorList__resolveParentSelectorsCompound__closure0.prototype = { call$0() { return type$.PseudoSelector_2._as(this._0_0).selector; }, $signature: 78 }; A.SelectorList__resolveParentSelectorsCompound_closure4.prototype = { call$1(complex) { var lastComponent, suffix, lastSimples, t1, t2, last, t3, error, stackTrace, t4, t5, t6, t7, exception, _this = this; try { t4 = complex.components; lastComponent = B.JSArray_methods.get$last(t4); if (lastComponent.combinators.length !== 0) { 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); throw A.wrapException(t1); } suffix = _this.parentSelector.suffix; lastSimples = lastComponent.selector.components; t5 = type$.SimpleSelector_2; t6 = _this.resolvedSimples; t7 = J.getInterceptor$ax(t6); if (suffix == null) { t1 = A.List_List$of(lastSimples, true, t5); J.addAll$1$ax(t1, t7.skip$1(t6, 1)); t1 = t1; } else { t2 = A.List_List$of(A.IterableExtension_get_exceptLast0(lastSimples), true, t5); J.add$1$ax(t2, J.get$last$ax(lastSimples).addSuffix$1(suffix)); J.addAll$1$ax(t2, t7.skip$1(t6, 1)); t1 = t2; } t2 = _this.component; last = A.CompoundSelector$0(t1, t2.selector.span); t3 = A.List_List$of(A.IterableExtension_get_exceptLast0(t4), true, type$.ComplexSelectorComponent_2); t4 = t2.span; J.add$1$ax(t3, new A.ComplexSelectorComponent0(last, A.List_List$unmodifiable(t2.combinators, type$.CssValue_Combinator_2), t4)); t4 = A.ComplexSelector$0(complex.leadingCombinators, t3, t4, complex.lineBreak); return t4; } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.SassException0) { error = t1; stackTrace = A.getTraceFromException(exception); A.throwWithTrace0(error.withAdditionalSpan$2(_this.parentSelector.span, "parent selector"), error, stackTrace); } else throw exception; } }, $signature: 61 }; A.SelectorList_withAdditionalCombinators_closure0.prototype = { call$1(complex) { return complex.withAdditionalCombinators$1(this.combinators); }, $signature: 61 }; A._ParentSelectorVisitor0.prototype = { visitParentSelector$1(selector) { return selector; } }; A.__ParentSelectorVisitor_Object_SelectorSearchVisitor0.prototype = {}; A.listClass_closure.prototype = { call$0() { var t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassList", new A.listClass__closure())); J.get$$prototype$x(jsClass).get = A.allowInteropCaptureThisNamed("get", new A.listClass__closure0()); A.JSClassExtension_injectSuperclass(t1._as(B.SassList_nj9.constructor), jsClass); return jsClass; }, $signature: 24 }; A.listClass__closure.prototype = { call$3($self, contentsOrOptions, options) { var contents, t1, t2; if (self.immutable.isList(contentsOrOptions)) contents = J.cast$1$0$ax(J.toArray$0$x(type$.ImmutableList._as(contentsOrOptions)), type$.Value_2); else if (type$.List_dynamic._is(contentsOrOptions)) contents = J.cast$1$0$ax(contentsOrOptions, type$.Value_2); else { contents = A._setArrayType([], type$.JSArray_Value_2); type$.nullable__ConstructorOptions._as(contentsOrOptions); options = contentsOrOptions; } t1 = options == null; if (!t1) { t2 = J.get$separator$x(options); t2 = A._asBool($.$get$_isUndefined().call$1(t2)); } else t2 = true; t2 = t2 ? B.ListSeparator_rXA0 : A.jsToDartSeparator(J.get$separator$x(options)); t1 = t1 ? null : J.get$brackets$x(options); return A.SassList$0(contents, t2, t1 == null ? false : t1); }, call$1($self) { return this.call$3($self, null, null); }, call$2($self, contentsOrOptions) { return this.call$3($self, contentsOrOptions, null); }, "call*": "call$3", $requiredArgCount: 1, $defaultValues() { return [null, null]; }, $signature: 501 }; A.listClass__closure0.prototype = { call$2($self, indexFloat) { var index = B.JSNumber_methods.floor$0(indexFloat); if (index < 0) index = $self.get$asList().length + index; if (index < 0 || index >= $self.get$asList().length) return self.undefined; return $self.get$asList()[index]; }, $signature: 262 }; A._ConstructorOptions.prototype = {}; A._NodeSassList.prototype = {}; A.legacyListClass_closure.prototype = { call$4(thisArg, $length, commaSeparator, dartValue) { var t1; if (dartValue == null) { $length.toString; t1 = A.Iterable_Iterable$generate($length, new A.legacyListClass__closure(), type$.Value_2); t1 = A.SassList$0(t1, commaSeparator !== false ? B.ListSeparator_rXA0 : B.ListSeparator_EVt0, false); } else t1 = dartValue; J.set$dartValue$x(thisArg, t1); }, call$2(thisArg, $length) { return this.call$4(thisArg, $length, null, null); }, call$3(thisArg, $length, commaSeparator) { return this.call$4(thisArg, $length, commaSeparator, null); }, "call*": "call$4", $requiredArgCount: 2, $defaultValues() { return [null, null]; }, $signature: 503 }; A.legacyListClass__closure.prototype = { call$1(_) { return B.C__SassNull0; }, $signature: 263 }; A.legacyListClass_closure0.prototype = { call$2(thisArg, index) { return A.wrapValue(J.get$dartValue$x(thisArg)._list1$_contents[index]); }, $signature: 505 }; A.legacyListClass_closure1.prototype = { call$3(thisArg, index, value) { var t1 = J.getInterceptor$x(thisArg), t2 = t1.get$dartValue(thisArg)._list1$_contents, mutable = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2)); mutable[index] = A.unwrapValue(value); t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).withListContents$1(mutable)); }, "call*": "call$3", $requiredArgCount: 3, $signature: 506 }; A.legacyListClass_closure2.prototype = { call$1(thisArg) { return J.get$dartValue$x(thisArg)._list1$_separator === B.ListSeparator_rXA0; }, $signature: 507 }; A.legacyListClass_closure3.prototype = { call$2(thisArg, isComma) { var t1 = J.getInterceptor$x(thisArg), t2 = t1.get$dartValue(thisArg)._list1$_contents, t3 = isComma ? B.ListSeparator_rXA0 : B.ListSeparator_EVt0; t1.set$dartValue(thisArg, A.SassList$0(t2, t3, t1.get$dartValue(thisArg)._list1$_hasBrackets)); }, $signature: 508 }; A.legacyListClass_closure4.prototype = { call$1(thisArg) { return J.get$dartValue$x(thisArg)._list1$_contents.length; }, $signature: 509 }; A.SassList0.prototype = { get$separator(_) { return this._list1$_separator; }, get$hasBrackets() { return this._list1$_hasBrackets; }, get$isBlank() { return !this._list1$_hasBrackets && B.JSArray_methods.every$1(this._list1$_contents, new A.SassList_isBlank_closure0()); }, get$asList() { return this._list1$_contents; }, get$lengthAsList() { return this._list1$_contents.length; }, SassList$3$brackets0(contents, _separator, brackets) { if (this._list1$_separator === B.ListSeparator_undecided_null_undecided0 && this._list1$_contents.length > 1) throw A.wrapException(A.ArgumentError$(string$.A_list, null)); }, accept$1$1(visitor) { return visitor.visitList$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertMap$1($name) { return this._list1$_contents.length === 0 ? B.SassMap_Map_empty0 : this.super$Value$assertMap0($name); }, tryMap$0() { return this._list1$_contents.length === 0 ? B.SassMap_Map_empty0 : null; }, $eq(_, other) { var t1, _this = this; if (other == null) return false; 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))) t1 = _this._list1$_contents.length === 0 && other instanceof A.SassMap0 && other.get$asList().length === 0; else t1 = true; return t1; }, get$hashCode(_) { return B.C_ListEquality0.hash$1(this._list1$_contents); } }; A.SassList_isBlank_closure0.prototype = { call$1(element) { return element.get$isBlank(); }, $signature: 54 }; A.ListSeparator0.prototype = { _enumToString$0() { return "ListSeparator." + this._name; }, toString$0(_) { return this._list1$_name; } }; A.JSLogger.prototype = {}; A.WarnOptions.prototype = {}; A.DebugOptions.prototype = {}; A._QuietLogger0.prototype = { warn$4$deprecation$span$trace(_, message, deprecation, span, trace) { }, warn$2$span($receiver, message, span) { return this.warn$4$deprecation$span$trace($receiver, message, false, span, null); } }; A.LoudComment0.prototype = { get$span(_) { return this.text.span; }, accept$1$1(visitor) { return visitor.visitLoudComment$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return this.text.toString$0(0); }, $isAstNode0: 1, $isStatement0: 1 }; A.MapExpression0.prototype = { accept$1$1(visitor) { return visitor.visitMapExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t2, t3, _i, t4, key, value, t1 = A._setArrayType([], type$.JSArray_String); for (t2 = this.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) { t4 = t2[_i]; key = t4._0; value = t4._1; t1.push(key.toString$0(0) + ": " + value.toString$0(0)); } return "(" + B.JSArray_methods.join$1(t1, ", ") + ")"; }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A._get_closure0.prototype = { call$1($arguments) { var value, t1 = J.getInterceptor$asx($arguments), map = t1.$index($arguments, 0).assertMap$1("map"), t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2); B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList()); for (t1 = A.IterableExtension_get_exceptLast0(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) { value = map._map0$_contents.$index(0, t1.get$current(t1)); if (!(value instanceof A.SassMap0)) return B.C__SassNull0; } t1 = map._map0$_contents.$index(0, B.JSArray_methods.get$last(t2)); return t1 == null ? B.C__SassNull0 : t1; }, $signature: 5 }; A._set_closure1.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); return A._modify0(t1.$index($arguments, 0).assertMap$1("map"), A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2), new A._set__closure4($arguments), true); }, $signature: 5 }; A._set__closure4.prototype = { call$1(_) { return J.$index$asx(this.$arguments, 2); }, $signature: 45 }; A._set_closure2.prototype = { call$1($arguments) { var keys, value, t1 = {}, t2 = J.getInterceptor$asx($arguments), map = t2.$index($arguments, 0).assertMap$1("map"), _0_0 = t2.$index($arguments, 1).get$asList(), _0_1 = A._InitializedCell$(new A._set__closure2(_0_0)); if (_0_1._readFinal$0() <= 0) throw A.wrapException(A.SassScriptException$0("Expected $args to contain a key.", null)); if (J.$eq$(_0_1._readFinal$0(), 1)) throw A.wrapException(A.SassScriptException$0("Expected $args to contain a value.", null)); keys = t1.value = null; if (_0_1._readFinal$0() >= 1) { keys = B.JSArray_methods.sublist$2(_0_0, 0, _0_1._readFinal$0() - 1); value = _0_0[_0_1._readFinal$0() - 1]; t1.value = value; t2 = true; } else t2 = false; if (t2) return A._modify0(map, keys, new A._set__closure3(t1), true); throw A.wrapException("[BUG] Unreachable code"); }, $signature: 5 }; A._set__closure2.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A._set__closure3.prototype = { call$1(_) { return this._box_0.value; }, $signature: 45 }; A._merge_closure1.prototype = { call$1($arguments) { var t2, t1 = J.getInterceptor$asx($arguments), map1 = t1.$index($arguments, 0).assertMap$1("map1"), map2 = t1.$index($arguments, 1).assertMap$1("map2"); t1 = type$.Value_2; t2 = A.LinkedHashMap_LinkedHashMap$of(map1._map0$_contents, t1, t1); t2.addAll$1(0, map2._map0$_contents); return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 38 }; A._merge_closure2.prototype = { call$1($arguments) { var keys, last, _null = null, t1 = J.getInterceptor$asx($arguments), map1 = t1.$index($arguments, 0).assertMap$1("map1"), _0_0 = t1.$index($arguments, 1).get$asList(), _0_1 = A._InitializedCell$(new A._merge__closure1(_0_0)); if (_0_1._readFinal$0() <= 0) throw A.wrapException(A.SassScriptException$0("Expected $args to contain a key.", _null)); if (J.$eq$(_0_1._readFinal$0(), 1)) throw A.wrapException(A.SassScriptException$0("Expected $args to contain a map.", _null)); if (_0_1._readFinal$0() >= 1) { keys = B.JSArray_methods.sublist$2(_0_0, 0, _0_1._readFinal$0() - 1); last = _0_0[_0_1._readFinal$0() - 1]; last = last; t1 = true; } else { last = _null; keys = last; t1 = false; } if (t1) return A._modify0(map1, keys, new A._merge__closure2(last.assertMap$1("map2")), true); throw A.wrapException("[BUG] Unreachable code"); }, $signature: 5 }; A._merge__closure1.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A._merge__closure2.prototype = { call$1(oldValue) { var t1, t2, nestedMap = oldValue.tryMap$0(); if (nestedMap == null) return this.map2; t1 = type$.Value_2; t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map0$_contents, t1, t1); t2.addAll$1(0, this.map2._map0$_contents); return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1)); }, $signature: 510 }; A._deepMerge_closure0.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); return A._deepMergeImpl0(t1.$index($arguments, 0).assertMap$1("map1"), t1.$index($arguments, 1).assertMap$1("map2")); }, $signature: 38 }; A._deepRemove_closure0.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), map = t1.$index($arguments, 0).assertMap$1("map"), t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2); B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList()); return A._modify0(map, A.IterableExtension_get_exceptLast0(t2), new A._deepRemove__closure0(t2), false); }, $signature: 5 }; A._deepRemove__closure0.prototype = { call$1(value) { var nestedMap, t1, t2, _0_0 = value.tryMap$0(); if (_0_0 != null) { nestedMap = _0_0; t1 = true; } else { nestedMap = null; t1 = false; } if (t1 && nestedMap._map0$_contents.containsKey$1(B.JSArray_methods.get$last(this.keys))) { t1 = type$.Value_2; t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map0$_contents, t1, t1); t2.remove$1(0, B.JSArray_methods.get$last(this.keys)); return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1)); } return value; }, $signature: 45 }; A._remove_closure1.prototype = { call$1($arguments) { return J.$index$asx($arguments, 0).assertMap$1("map"); }, $signature: 38 }; A._remove_closure2.prototype = { call$1($arguments) { var mutableMap, t3, _i, t1 = J.getInterceptor$asx($arguments), map = t1.$index($arguments, 0).assertMap$1("map"), t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2); B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList()); t1 = type$.Value_2; mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map0$_contents, t1, t1); for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) mutableMap.remove$1(0, t2[_i]); return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1)); }, $signature: 38 }; A._keys_closure0.prototype = { call$1($arguments) { var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map0$_contents; return A.SassList$0(t1.get$keys(t1), B.ListSeparator_rXA0, false); }, $signature: 27 }; A._values_closure0.prototype = { call$1($arguments) { var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map0$_contents; return A.SassList$0(t1.get$values(t1), B.ListSeparator_rXA0, false); }, $signature: 27 }; A._hasKey_closure0.prototype = { call$1($arguments) { var value, t1 = J.getInterceptor$asx($arguments), map = t1.$index($arguments, 0).assertMap$1("map"), t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2); B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList()); for (t1 = A.IterableExtension_get_exceptLast0(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) { value = map._map0$_contents.$index(0, t1.get$current(t1)); if (!(value instanceof A.SassMap0)) return B.SassBoolean_false0; } return map._map0$_contents.containsKey$1(B.JSArray_methods.get$last(t2)) ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A._modify_modifyNestedMap0.prototype = { call$1(map) { var nestedMap, _this = this, t1 = type$.Value_2, mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map0$_contents, t1, t1), t2 = _this.keyIterator, key = t2.get$current(t2); if (!t2.moveNext$0()) { t2 = mutableMap.$index(0, key); if (t2 == null) t2 = B.C__SassNull0; mutableMap.$indexSet(0, key, _this.modify.call$1(t2)); return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1)); } t2 = mutableMap.$index(0, key); nestedMap = t2 == null ? null : t2.tryMap$0(); t2 = nestedMap == null; if (t2 && !_this.addNesting) return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1)); mutableMap.$indexSet(0, key, _this.call$1(t2 ? B.SassMap_Map_empty0 : nestedMap)); return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1)); }, $signature: 511 }; A._deepMergeImpl_closure1.prototype = { call$0() { return this._1_0._0; }, $signature: 264 }; A._deepMergeImpl_closure2.prototype = { call$0() { return this._1_0._1; }, $signature: 264 }; A.MapExtensions_get_pairs_closure0.prototype = { call$1(e) { return new A._Record_2(e.key, e.value); }, $signature() { return this.K._eval$1("@<0>")._bind$1(this.V)._eval$1("+(1,2)(MapEntry<1,2>)"); } }; A.mapClass_closure.prototype = { call$0() { var t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassMap", new A.mapClass__closure())), t2 = J.getInterceptor$x(jsClass); A.defineGetter(t2.get$$prototype(jsClass), "contents", new A.mapClass__closure0(), null); t2.get$$prototype(jsClass).get = A.allowInteropCaptureThisNamed("get", new A.mapClass__closure1()); A.JSClassExtension_injectSuperclass(t1._as(B.SassMap_Map_empty0.constructor), jsClass); return jsClass; }, $signature: 24 }; A.mapClass__closure.prototype = { call$2($self, contents) { var t1; if (contents == null) t1 = B.SassMap_Map_empty0; else { t1 = type$.Value_2; t1 = new A.SassMap0(A.ConstantMap_ConstantMap$from(A.immutableMapToDartMap(contents).cast$2$0(0, t1, t1), t1, t1)); } return t1; }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 513 }; A.mapClass__closure0.prototype = { call$1($self) { return A.dartMapToImmutableMap($self._map0$_contents); }, $signature: 514 }; A.mapClass__closure1.prototype = { call$2($self, indexOrKey) { var index, t1, _0_0, key, value; if (typeof indexOrKey == "number") { index = B.JSNumber_methods.floor$0(indexOrKey); if (index < 0) { t1 = $self._map0$_contents; index = t1.get$length(t1) + index; } if (index >= 0) { t1 = $self._map0$_contents; t1 = index >= t1.get$length(t1); } else t1 = true; if (t1) return self.undefined; t1 = type$.Value_2; _0_0 = A.MapExtensions_get_pairs0($self._map0$_contents, t1, t1).elementAt$1(0, index); key = _0_0._0; value = _0_0._1; value = value; return A.SassList$0(A._setArrayType([key, value], type$.JSArray_Value_2), B.ListSeparator_EVt0, false); } else { t1 = $self._map0$_contents.$index(0, indexOrKey); return t1 == null ? self.undefined : t1; } }, $signature: 515 }; A._NodeSassMap.prototype = {}; A.legacyMapClass_closure.prototype = { call$3(thisArg, $length, dartValue) { var t1, t2, t3, map; if (dartValue == null) { $length.toString; t1 = type$.Value_2; t2 = A.Iterable_Iterable$generate($length, new A.legacyMapClass__closure(), t1); t3 = A.Iterable_Iterable$generate($length, new A.legacyMapClass__closure0(), t1); map = A.LinkedHashMap_LinkedHashMap(null, null, null, t1, t1); A.MapBase__fillMapWithIterables(map, t2, t3); t1 = new A.SassMap0(A.ConstantMap_ConstantMap$from(map, t1, t1)); } else t1 = dartValue; J.set$dartValue$x(thisArg, t1); }, call$2(thisArg, $length) { return this.call$3(thisArg, $length, null); }, "call*": "call$3", $requiredArgCount: 2, $defaultValues() { return [null]; }, $signature: 516 }; A.legacyMapClass__closure.prototype = { call$1(i) { return A.SassNumber_SassNumber0(i, null); }, $signature: 517 }; A.legacyMapClass__closure0.prototype = { call$1(_) { return B.C__SassNull0; }, $signature: 263 }; A.legacyMapClass_closure0.prototype = { call$2(thisArg, index) { var t1 = J.get$dartValue$x(thisArg)._map0$_contents; return A.wrapValue(J.elementAt$1$ax(t1.get$keys(t1), index)); }, $signature: 265 }; A.legacyMapClass_closure1.prototype = { call$2(thisArg, index) { var t1 = J.get$dartValue$x(thisArg)._map0$_contents; return A.wrapValue(t1.get$values(t1).elementAt$1(0, index)); }, $signature: 265 }; A.legacyMapClass_closure2.prototype = { call$1(thisArg) { var t1 = J.get$dartValue$x(thisArg)._map0$_contents; return t1.get$length(t1); }, $signature: 519 }; A.legacyMapClass_closure3.prototype = { call$3(thisArg, index, key) { var newKey, t2, newMap, t3, i, t4, oldKey, oldValue, t1 = J.getInterceptor$x(thisArg), oldMap = t1.get$dartValue(thisArg)._map0$_contents, $length = oldMap.get$length(oldMap); A.IndexError_check(index, $length, oldMap, null, "index"); newKey = A.unwrapValue(key); t2 = type$.Value_2; newMap = A.LinkedHashMap_LinkedHashMap$_empty(t2, t2); for (t3 = A.MapExtensions_get_pairs0(t1.get$dartValue(thisArg)._map0$_contents, t2, t2), t3 = t3.get$iterator(t3), i = 0; t3.moveNext$0();) { t4 = t3.get$current(t3); oldKey = t4._0; oldValue = t4._1; oldValue = oldValue; if (i === index) newMap.$indexSet(0, newKey, oldValue); else { if (newKey.$eq(0, oldKey)) throw A.wrapException(A.ArgumentError$value(key, "key", "is already in the map")); newMap.$indexSet(0, oldKey, oldValue); } ++i; } t1.set$dartValue(thisArg, new A.SassMap0(A.ConstantMap_ConstantMap$from(newMap, t2, t2))); }, "call*": "call$3", $requiredArgCount: 3, $signature: 266 }; A.legacyMapClass_closure4.prototype = { call$3(thisArg, index, value) { var t3, t1 = J.getInterceptor$x(thisArg), t2 = t1.get$dartValue(thisArg)._map0$_contents, key = J.elementAt$1$ax(t2.get$keys(t2), index); t2 = type$.Value_2; t3 = A.LinkedHashMap_LinkedHashMap$of(t1.get$dartValue(thisArg)._map0$_contents, t2, t2); t3.$indexSet(0, key, A.unwrapValue(value)); t1.set$dartValue(thisArg, new A.SassMap0(A.ConstantMap_ConstantMap$from(t3, t2, t2))); }, "call*": "call$3", $requiredArgCount: 3, $signature: 266 }; A.SassMap0.prototype = { get$separator(_) { var t1 = this._map0$_contents; return t1.get$isEmpty(t1) ? B.ListSeparator_undecided_null_undecided0 : B.ListSeparator_rXA0; }, get$asList() { var t3, t4, t5, key, value, result, t1 = type$.JSArray_Value_2, t2 = A._setArrayType([], t1); for (t3 = type$.Value_2, t4 = A.MapExtensions_get_pairs0(this._map0$_contents, t3, t3), t4 = t4.get$iterator(t4); t4.moveNext$0();) { t5 = t4.get$current(t4); key = t5._0; value = t5._1; result = A.List_List$from(A._setArrayType([key, value], t1), false, t3); result.fixed$length = Array; result.immutable$list = Array; t2.push(new A.SassList0(result, B.ListSeparator_EVt0, false)); } return t2; }, get$lengthAsList() { var t1 = this._map0$_contents; return t1.get$length(t1); }, accept$1$1(visitor) { return visitor.visitMap$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertMap$1($name) { return this; }, tryMap$0() { return this; }, $eq(_, other) { var t1; if (other == null) return false; if (!(other instanceof A.SassMap0 && B.C_MapEquality.equals$2(0, other._map0$_contents, this._map0$_contents))) { t1 = this._map0$_contents; t1 = t1.get$isEmpty(t1) && other instanceof A.SassList0 && other._list1$_contents.length === 0; } else t1 = true; return t1; }, get$hashCode(_) { var t1 = this._map0$_contents; return t1.get$isEmpty(t1) ? B.C_ListEquality0.hash$1(B.List_empty19) : B.C_MapEquality.hash$1(t1); } }; A.global_closure31.prototype = { call$1($arguments) { var t1, t2, number = J.$index$asx($arguments, 0).assertNumber$1("number"); if (number.hasUnit$1("%")) { t1 = number.toString$0(0); t2 = number.toString$0(0); A.EvaluationContext_current0().warn$2(0, string$.Passinp + t1 + ")\nTo emit a CSS abs() now: abs(#{" + t2 + string$.x7d__Mor, B.Deprecation_la6); } t1 = number.get$numeratorUnits(number); return A.SassNumber_SassNumber$withUnits0(Math.abs(number._number1$_value), number.get$denominatorUnits(number), t1); }, $signature: 12 }; A.module_closure11.prototype = { call$1(value) { return Math.abs(value); }, $signature: 42 }; A._ceil_closure0.prototype = { call$1(value) { return B.JSNumber_methods.ceil$0(value); }, $signature: 42 }; A._clamp_closure0.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), min = t1.$index($arguments, 0).assertNumber$1("min"), number = t1.$index($arguments, 1).assertNumber$1("number"), max = t1.$index($arguments, 2).assertNumber$1("max"); number.convertValueToMatch$3(min, "number", "min"); max.convertValueToMatch$3(min, "max", "min"); if (min.greaterThanOrEquals$1(max).value) return min; if (min.greaterThanOrEquals$1(number).value) return min; if (number.greaterThanOrEquals$1(max).value) return max; return number; }, $signature: 12 }; A._floor_closure0.prototype = { call$1(value) { return B.JSNumber_methods.floor$0(value); }, $signature: 42 }; A._max_closure0.prototype = { call$1($arguments) { var t1, t2, max, _i, number; 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) { number = t1[_i].assertNumber$0(); if (max == null || max.lessThan$1(number).value) max = number; } if (max != null) return max; throw A.wrapException(A.SassScriptException$0("At least one argument must be passed.", null)); }, $signature: 12 }; A._min_closure0.prototype = { call$1($arguments) { var t1, t2, min, _i, number; 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) { number = t1[_i].assertNumber$0(); if (min == null || min.greaterThan$1(number).value) min = number; } if (min != null) return min; throw A.wrapException(A.SassScriptException$0("At least one argument must be passed.", null)); }, $signature: 12 }; A._round_closure0.prototype = { call$1(number) { return B.JSNumber_methods.round$0(number); }, $signature: 42 }; A._hypot_closure0.prototype = { call$1($arguments) { var subtotal, i, i0, t3, t4, t1 = J.$index$asx($arguments, 0).get$asList(), t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber0>"), numbers = A.List_List$of(new A.MappedListIterable(t1, new A._hypot__closure0(), t2), true, t2._eval$1("ListIterable.E")); t1 = numbers.length; if (t1 === 0) throw A.wrapException(A.SassScriptException$0("At least one argument must be passed.", null)); for (subtotal = 0, i = 0; i < t1; i = i0) { i0 = i + 1; subtotal += Math.pow(numbers[i].convertValueToMatch$3(numbers[0], "numbers[" + i0 + "]", "numbers[1]"), 2); } t1 = Math.sqrt(subtotal); t2 = numbers[0]; t3 = J.getInterceptor$x(t2); t4 = t3.get$numeratorUnits(t2); return A.SassNumber_SassNumber$withUnits0(t1, t3.get$denominatorUnits(t2), t4); }, $signature: 12 }; A._hypot__closure0.prototype = { call$1(argument) { return argument.assertNumber$0(); }, $signature: 521 }; A._log_closure0.prototype = { call$1($arguments) { var base, _s18_ = " to have no units.", _null = null, t1 = J.getInterceptor$asx($arguments), number = t1.$index($arguments, 0).assertNumber$1("number"); if (number.get$hasUnits()) throw A.wrapException(A.SassScriptException$0("$number: Expected " + number.toString$0(0) + _s18_, _null)); else if (J.$eq$(t1.$index($arguments, 1), B.C__SassNull0)) return A.SassNumber_SassNumber0(Math.log(number._number1$_value), _null); base = t1.$index($arguments, 1).assertNumber$1("base"); if (base.get$hasUnits()) throw A.wrapException(A.SassScriptException$0("$base: Expected " + base.toString$0(0) + _s18_, _null)); else return A.SassNumber_SassNumber0(Math.log(number._number1$_value) / Math.log(base._number1$_value), _null); }, $signature: 12 }; A._pow_closure0.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); return A.pow1(t1.$index($arguments, 0).assertNumber$1("base"), t1.$index($arguments, 1).assertNumber$1("exponent")); }, $signature: 12 }; A._atan2_closure0.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), y = t1.$index($arguments, 0).assertNumber$1("y"); 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)); }, $signature: 12 }; A._compatible_closure0.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments); return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A._isUnitless_closure0.prototype = { call$1($arguments) { return !J.$index$asx($arguments, 0).assertNumber$1("number").get$hasUnits() ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A._unit_closure0.prototype = { call$1($arguments) { return new A.SassString0(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true); }, $signature: 17 }; A._percentage_closure0.prototype = { call$1($arguments) { var number = J.$index$asx($arguments, 0).assertNumber$1("number"); number.assertNoUnits$1("number"); return A.SassNumber_SassNumber0(number._number1$_value * 100, "%"); }, $signature: 12 }; A._randomFunction_closure0.prototype = { call$1($arguments) { var limit, t2, t3, t4, limitScalar, t1 = J.getInterceptor$asx($arguments); if (J.$eq$(t1.$index($arguments, 0), B.C__SassNull0)) return A.SassNumber_SassNumber0($.$get$_random2().nextDouble$0(), null); limit = t1.$index($arguments, 0).assertNumber$1("limit"); if (limit.get$hasUnits()) { t1 = limit.toString$0(0); t2 = limit.get$unitString(); t3 = limit.get$unitString(); t4 = limit.get$unitString(); A.EvaluationContext_current0().warn$2(0, string$.math_r + t1 + string$.x29x20in_a + t2 + ")) * 1" + t3 + string$.x0a_To_p + t4 + string$.x29x29__Mo, B.Deprecation_0bn); } limitScalar = limit.assertInt$1("limit"); if (limitScalar < 1) throw A.wrapException(A.SassScriptException$0("$limit: Must be greater than 0, was " + limit.toString$0(0) + ".", null)); return A.SassNumber_SassNumber0($.$get$_random2().nextInt$1(limitScalar) + 1, null); }, $signature: 12 }; A._div_closure0.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), number1 = t1.$index($arguments, 0), number2 = t1.$index($arguments, 1); if (!(number1 instanceof A.SassNumber0) || !(number2 instanceof A.SassNumber0)) { t1 = A.EvaluationContext_current0(); t1.warn$2(0, string$.math_d, null); } return number1.dividedBy$1(number2); }, $signature: 5 }; A._singleArgumentMathFunc_closure0.prototype = { call$1($arguments) { return this.mathFunc.call$1(J.$index$asx($arguments, 0).assertNumber$1("number")); }, $signature: 12 }; A._numberFunction_closure0.prototype = { call$1($arguments) { var number = J.$index$asx($arguments, 0).assertNumber$1("number"), t1 = this.transform.call$1(number._number1$_value), t2 = number.get$numeratorUnits(number); return A.SassNumber_SassNumber$withUnits0(t1, number.get$denominatorUnits(number), t2); }, $signature: 12 }; A.CssMediaQuery0.prototype = { merge$1(other) { 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"; if (!_this.conjunction || !other.conjunction) return B._SingletonCssMediaQueryMergeResult_10; t1 = _this.modifier; ourModifier = t1 == null ? _null : t1.toLowerCase(); t2 = _this.type; t3 = t2 == null; ourType = t3 ? _null : t2.toLowerCase(); t4 = other.modifier; theirModifier = t4 == null ? _null : t4.toLowerCase(); t5 = other.type; t6 = t5 == null; theirType = t6 ? _null : t5.toLowerCase(); t7 = ourType == null; if (t7 && theirType == null) { t1 = A.List_List$of(_this.conditions, true, type$.String); B.JSArray_methods.addAll$1(t1, other.conditions); return new A.MediaQuerySuccessfulMergeResult0(A.CssMediaQuery$condition0(t1, true)); } t8 = ourModifier === "not"; if (t8 !== (theirModifier === "not")) { if (ourType == theirType) { negativeConditions = t8 ? _this.conditions : other.conditions; if (B.JSArray_methods.every$1(negativeConditions, B.JSArray_methods.get$contains(t8 ? other.conditions : _this.conditions))) return B._SingletonCssMediaQueryMergeResult_00; else return B._SingletonCssMediaQueryMergeResult_10; } else if (t3 || A.equalsIgnoreCase0(t2, _s3_) || t6 || A.equalsIgnoreCase0(t5, _s3_)) return B._SingletonCssMediaQueryMergeResult_10; if (t8) { conditions = other.conditions; type = theirType; modifier = theirModifier; } else { conditions = _this.conditions; type = ourType; modifier = ourModifier; } } else if (t8) { if (ourType != theirType) return B._SingletonCssMediaQueryMergeResult_10; fewerConditions = _this.conditions; fewerConditions0 = other.conditions; t3 = fewerConditions.length > fewerConditions0.length; moreConditions = t3 ? fewerConditions : fewerConditions0; if (t3) fewerConditions = fewerConditions0; if (!B.JSArray_methods.every$1(fewerConditions, B.JSArray_methods.get$contains(moreConditions))) return B._SingletonCssMediaQueryMergeResult_10; conditions = moreConditions; type = ourType; modifier = ourModifier; } else if (t3 || A.equalsIgnoreCase0(t2, _s3_)) { type = (t6 || A.equalsIgnoreCase0(t5, _s3_)) && t7 ? _null : theirType; t3 = A.List_List$of(_this.conditions, true, type$.String); B.JSArray_methods.addAll$1(t3, other.conditions); conditions = t3; modifier = theirModifier; } else { if (t6 || A.equalsIgnoreCase0(t5, _s3_)) { t3 = A.List_List$of(_this.conditions, true, type$.String); B.JSArray_methods.addAll$1(t3, other.conditions); conditions = t3; modifier = ourModifier; } else { if (ourType != theirType) return B._SingletonCssMediaQueryMergeResult_00; else { modifier = ourModifier == null ? theirModifier : ourModifier; t3 = A.List_List$of(_this.conditions, true, type$.String); B.JSArray_methods.addAll$1(t3, other.conditions); } conditions = t3; } type = ourType; } t2 = type == ourType ? t2 : t5; return new A.MediaQuerySuccessfulMergeResult0(A.CssMediaQuery$type0(t2, conditions, modifier == ourModifier ? t1 : t4)); }, $eq(_, other) { if (other == null) return false; return other instanceof A.CssMediaQuery0 && other.modifier == this.modifier && other.type == this.type && B.C_ListEquality.equals$2(0, other.conditions, this.conditions); }, get$hashCode(_) { return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ B.C_ListEquality0.hash$1(this.conditions); }, toString$0(_) { var t2, _this = this, t1 = _this.modifier; t1 = t1 != null ? "" + (t1 + " ") : ""; t2 = _this.type; if (t2 != null) { t1 += t2; if (_this.conditions.length !== 0) t1 += " and "; } t2 = _this.conjunction ? " and " : " or "; t2 = t1 + B.JSArray_methods.join$1(_this.conditions, t2); return t2.charCodeAt(0) == 0 ? t2 : t2; } }; A._SingletonCssMediaQueryMergeResult0.prototype = { _enumToString$0() { return "_SingletonCssMediaQueryMergeResult." + this._name; } }; A.MediaQuerySuccessfulMergeResult0.prototype = { toString$0(_) { return this.query.toString$0(0); } }; A.MediaQueryParser0.prototype = { parse$0() { return this.wrapSpanFormatException$1(new A.MediaQueryParser_parse_closure0(this)); }, _media_query$_mediaQuery$0() { var conditions, conjunction, identifier1, identifier2, type, modifier, _this = this, _s3_ = "and", _null = null; if (_this.scanner.peekChar$0() === 40) { conditions = A._setArrayType([_this._media_query$_mediaInParens$0()], type$.JSArray_String); _this.whitespace$0(); if (_this.scanIdentifier$1(_s3_)) { _this.expectWhitespace$0(); B.JSArray_methods.addAll$1(conditions, _this._media_query$_mediaLogicSequence$1(_s3_)); conjunction = true; } else if (_this.scanIdentifier$1("or")) { _this.expectWhitespace$0(); B.JSArray_methods.addAll$1(conditions, _this._media_query$_mediaLogicSequence$1("or")); conjunction = false; } else conjunction = true; return A.CssMediaQuery$condition0(conditions, conjunction); } identifier1 = _this.identifier$0(); if (A.equalsIgnoreCase0(identifier1, "not")) { _this.expectWhitespace$0(); if (!_this.lookingAtIdentifier$0()) return A.CssMediaQuery$condition0(A._setArrayType(["(not " + _this._media_query$_mediaInParens$0() + ")"], type$.JSArray_String), _null); } _this.whitespace$0(); if (!_this.lookingAtIdentifier$0()) return A.CssMediaQuery$type0(identifier1, _null, _null); identifier2 = _this.identifier$0(); if (A.equalsIgnoreCase0(identifier2, _s3_)) { _this.expectWhitespace$0(); type = identifier1; modifier = _null; } else { _this.whitespace$0(); if (_this.scanIdentifier$1(_s3_)) _this.expectWhitespace$0(); else return A.CssMediaQuery$type0(identifier2, _null, identifier1); type = identifier2; modifier = identifier1; } if (_this.scanIdentifier$1("not")) { _this.expectWhitespace$0(); return A.CssMediaQuery$type0(type, A._setArrayType(["(not " + _this._media_query$_mediaInParens$0() + ")"], type$.JSArray_String), modifier); } return A.CssMediaQuery$type0(type, _this._media_query$_mediaLogicSequence$1(_s3_), modifier); }, _media_query$_mediaLogicSequence$1(operator) { var t1, t2, _this = this, result = A._setArrayType([], type$.JSArray_String); for (t1 = _this.scanner; true;) { t1.expectChar$2$name(40, "media condition in parentheses"); t2 = _this.declarationValue$0(); t1.expectChar$1(41); result.push("(" + t2 + ")"); _this.whitespace$0(); if (!_this.scanIdentifier$1(operator)) return result; _this.expectWhitespace$0(); } }, _media_query$_mediaInParens$0() { var t2, t1 = this.scanner; t1.expectChar$2$name(40, "media condition in parentheses"); t2 = this.declarationValue$0(); t1.expectChar$1(41); return "(" + t2 + ")"; } }; A.MediaQueryParser_parse_closure0.prototype = { call$0() { var queries = A._setArrayType([], type$.JSArray_CssMediaQuery_2), t1 = this.$this, t2 = t1.scanner; do { t1.whitespace$0(); queries.push(t1._media_query$_mediaQuery$0()); t1.whitespace$0(); } while (t2.scanChar$1(44)); t2.expectDone$0(); return queries; }, $signature: 522 }; A.ModifiableCssMediaRule0.prototype = { accept$1$1(visitor) { return visitor.visitCssMediaRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, equalsIgnoringChildren$1(other) { return other instanceof A.ModifiableCssMediaRule0 && B.C_ListEquality.equals$2(0, this.queries, other.queries); }, copyWithoutChildren$0() { return A.ModifiableCssMediaRule$0(this.queries, this.span); }, get$span(receiver) { return this.span; } }; A.MediaRule0.prototype = { accept$1$1(visitor) { return visitor.visitMediaRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.children; return "@media " + this.query.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.MergedExtension0.prototype = { unmerge$0() { return new A._SyncStarIterable(this.unmerge$body$MergedExtension0(), type$._SyncStarIterable_Extension_2); }, unmerge$body$MergedExtension0() { var $async$self = this; return function() { var $async$goto = 0, $async$handler = 1, $async$currentError, right, left; return function $async$unmerge$0($async$iterator, $async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; $async$goto = $async$handler; } while (true) switch ($async$goto) { case 0: // Function start left = $async$self.left; $async$goto = left instanceof A.MergedExtension0 ? 2 : 4; break; case 2: // then $async$goto = 5; return $async$iterator._yieldStar$1(left.unmerge$0()); case 5: // after yield // goto join $async$goto = 3; break; case 4: // else $async$goto = 6; return $async$iterator._async$_current = left, 1; case 6: // after yield case 3: // join right = $async$self.right; $async$goto = right instanceof A.MergedExtension0 ? 7 : 9; break; case 7: // then $async$goto = 10; return $async$iterator._yieldStar$1(right.unmerge$0()); case 10: // after yield // goto join $async$goto = 8; break; case 9: // else $async$goto = 11; return $async$iterator._async$_current = right, 1; case 11: // after yield case 8: // join // implicit return return 0; case 1: // rethrow return $async$iterator._datum = $async$currentError, 3; } }; }; } }; A.MergedMapView0.prototype = { get$keys(_) { var t1 = this._merged_map_view$_mapsByKey; return new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")); }, get$length(_) { return this._merged_map_view$_mapsByKey.__js_helper$_length; }, get$isEmpty(_) { return this._merged_map_view$_mapsByKey.__js_helper$_length === 0; }, get$isNotEmpty(_) { return this._merged_map_view$_mapsByKey.__js_helper$_length !== 0; }, MergedMapView$10(maps, $K, $V) { var t1, t2, t3, _i, map, t4, t5, t6; 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) { map = maps[_i]; if (t3._is(map)) for (t4 = map._merged_map_view$_mapsByKey, t4 = t4.get$values(t4), t4 = new A.MappedIterator(J.get$iterator$ax(t4.__internal$_iterable), t4._f), t5 = A._instanceType(t4)._rest[1]; t4.moveNext$0();) { t6 = t4.__internal$_current; if (t6 == null) t6 = t5._as(t6); A.setAll0(t2, t6.get$keys(t6), t6); } else A.setAll0(t2, map.get$keys(map), map); } }, $index(_, key) { var t1 = this._merged_map_view$_mapsByKey.$index(0, this.$ti._precomputed1._as(key)); return t1 == null ? null : t1.$index(0, key); }, $indexSet(_, key, value) { var child, t1, _0_0 = this._merged_map_view$_mapsByKey.$index(0, key); if (_0_0 != null) { child = _0_0; t1 = true; } else { child = null; t1 = false; } if (t1) child.$indexSet(0, key, value); else throw A.wrapException(A.UnsupportedError$(string$.New_en)); }, remove$1(_, key) { throw A.wrapException(A.UnsupportedError$(string$.Entrie)); }, containsKey$1(key) { return this._merged_map_view$_mapsByKey.containsKey$1(key); } }; A.global_closure59.prototype = { call$1($arguments) { return $._features0.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature")._string0$_text) ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A.global_closure60.prototype = { call$1($arguments) { return new A.SassString0(A.serializeValue0(J.get$first$ax($arguments), true, true), false); }, $signature: 17 }; A.global_closure61.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), _0_0 = t1.$index($arguments, 0); $label0$0: { if (_0_0 instanceof A.SassArgumentList0) { t1 = "arglist"; break $label0$0; } if (_0_0 instanceof A.SassBoolean0) { t1 = "bool"; break $label0$0; } if (_0_0 instanceof A.SassColor0) { t1 = "color"; break $label0$0; } if (_0_0 instanceof A.SassList0) { t1 = "list"; break $label0$0; } if (_0_0 instanceof A.SassMap0) { t1 = "map"; break $label0$0; } if (B.C__SassNull0 === _0_0) { t1 = "null"; break $label0$0; } if (_0_0 instanceof A.SassNumber0) { t1 = "number"; break $label0$0; } if (_0_0 instanceof A.SassFunction0) { t1 = "function"; break $label0$0; } if (_0_0 instanceof A.SassMixin0) { t1 = "mixin"; break $label0$0; } if (_0_0 instanceof A.SassCalculation0) { t1 = "calculation"; break $label0$0; } if (_0_0 instanceof A.SassString0) { t1 = "string"; break $label0$0; } t1 = A.throwExpression("[BUG] Unknown value type " + A.S(t1.$index($arguments, 0))); } return new A.SassString0(t1, false); }, $signature: 17 }; A.global_closure62.prototype = { call$1($arguments) { var t2, keywords, t3, t4, key, value, t1 = J.getInterceptor$asx($arguments), _1_0 = t1.$index($arguments, 0); if (_1_0 instanceof A.SassArgumentList0) { t2 = _1_0._argument_list$_wereKeywordsAccessed = true; keywords = _1_0._argument_list$_keywords; } else { keywords = null; t2 = false; } if (t2) { t1 = type$.Value_2; t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t3 = A.MapExtensions_get_pairs0(keywords, type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t4 = t3.get$current(t3); key = t4._0; value = t4._1; value = value; t2.$indexSet(0, new A.SassString0(key, false), value); } return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1)); } else throw A.wrapException("$args: " + A.S(t1.$index($arguments, 0)) + " is not an argument list."); }, $signature: 38 }; A.local_closure2.prototype = { call$1($arguments) { return new A.SassString0(J.$index$asx($arguments, 0).assertCalculation$1("calc").name, true); }, $signature: 17 }; A.local_closure3.prototype = { call$1($arguments) { var t1 = J.$index$asx($arguments, 0).assertCalculation$1("calc").$arguments; return A.SassList$0(new A.MappedListIterable(t1, new A.local__closure2(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), B.ListSeparator_rXA0, false); }, $signature: 27 }; A.local__closure2.prototype = { call$1(argument) { return argument instanceof A.Value0 ? argument : new A.SassString0(J.toString$0$(argument), false); }, $signature: 523 }; A.local_closure4.prototype = { call$1($arguments) { var _0_2, acceptsContent, _0_2_isSet, t1, hasContent, _null = null, mixin = J.$index$asx($arguments, 0).assertMixin$1("mixin"), _0_0 = mixin.callable, _0_5 = A._InitializedCell$(new A.local__closure1(_0_0)); $label0$0: { if (type$.AsyncBuiltInCallable_2._is(_0_0)) { _0_2 = _0_0.get$acceptsContent(); acceptsContent = _0_2; _0_2_isSet = true; t1 = true; } else { acceptsContent = _null; _0_2 = acceptsContent; _0_2_isSet = false; t1 = false; } if (!t1) if (_0_0 instanceof A.BuiltInCallable0) { acceptsContent = _0_2_isSet ? _0_2 : _0_0.acceptsContent; t1 = true; } else t1 = false; else t1 = true; if (t1) { t1 = acceptsContent; break $label0$0; } if (_0_0 instanceof A.UserDefinedCallable0) if (_0_5._readFinal$0() instanceof A.MixinRule0) { hasContent = _0_5._readFinal$0().get$hasContent(); t1 = true; } else { hasContent = _null; t1 = false; } else { hasContent = _null; t1 = false; } if (t1) { t1 = hasContent; break $label0$0; } t1 = A.throwExpression(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + ".")); } return t1 ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A.local__closure1.prototype = { call$0() { return type$.UserDefinedCallable_dynamic_2._as(this._0_0).declaration; }, $signature: 130 }; A.mixinClass_closure.prototype = { call$0() { var t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassMixin", new A.mixinClass__closure())); A.JSClassExtension_injectSuperclass(t1._as(new A.SassMixin0(A.BuiltInCallable$function0("f", "", new A.mixinClass__closure0(), null)).constructor), jsClass); return jsClass; }, $signature: 24 }; A.mixinClass__closure.prototype = { call$1($self) { A.jsThrow(new self.Error("It is not possible to construct a SassMixin through the JavaScript API")); }, $signature: 524 }; A.mixinClass__closure0.prototype = { call$1(_) { return B.C__SassNull0; }, $signature: 5 }; A.SassMixin0.prototype = { accept$1$1(visitor) { var t1, t2; if (!visitor._serialize0$_inspect) A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " isn't a valid CSS value.", null)); t1 = visitor._serialize0$_buffer; t1.write$1(0, "get-mixin("); t2 = this.callable; visitor._serialize0$_visitQuotedString$1(t2.get$name(t2)); t1.writeCharCode$1(41); return null; }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertMixin$1($name) { return this; }, $eq(_, other) { if (other == null) return false; return other instanceof A.SassMixin0 && this.callable.$eq(0, other.callable); }, get$hashCode(_) { var t1 = this.callable; return t1.get$hashCode(t1); } }; A.MixinRule0.prototype = { get$hasContent() { var result, _this = this, value = _this._mixin_rule$__MixinRule_hasContent_FI; if (value === $) { result = J.$eq$(B.C__HasContentVisitor0.visitChildren$1(_this.children), true); _this._mixin_rule$__MixinRule_hasContent_FI !== $ && A.throwUnnamedLateFieldADI(); _this._mixin_rule$__MixinRule_hasContent_FI = result; value = result; } return value; }, accept$1$1(visitor) { return visitor.visitMixinRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = "@mixin " + this.name, t2 = this.$arguments; if (!(t2.$arguments.length === 0 && t2.restArgument == null)) t1 += "(" + t2.toString$0(0) + ")"; t2 = this.children; t2 = t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}"); return t2.charCodeAt(0) == 0 ? t2 : t2; } }; A._HasContentVisitor0.prototype = { visitContentRule$1(_) { return true; } }; A.__HasContentVisitor_Object_StatementSearchVisitor0.prototype = {}; A.ExtendMode0.prototype = { _enumToString$0() { return "ExtendMode." + this._name; }, toString$0(_) { return this.name; } }; A.MultiSpan0.prototype = { get$start(_) { var t1 = this._multi_span0$_primary; return t1.get$start(t1); }, get$end(_) { var t1 = this._multi_span0$_primary; return t1.get$end(t1); }, get$text() { return this._multi_span0$_primary.get$text(); }, get$context(_) { var t1 = this._multi_span0$_primary; return t1.get$context(t1); }, get$file(_) { var t1 = this._multi_span0$_primary; return t1.get$file(t1); }, get$length(_) { var t1 = this._multi_span0$_primary; return t1.get$length(t1); }, get$sourceUrl(_) { var t1 = this._multi_span0$_primary; return t1.get$sourceUrl(t1); }, compareTo$1(_, other) { return this._multi_span0$_primary.compareTo$1(0, other); }, toString$0(_) { return this._multi_span0$_primary.toString$0(0); }, expand$1(_, other) { return new A.MultiSpan0(this._multi_span0$_primary.expand$1(0, other), this.primaryLabel, this.secondarySpans); }, highlight$1$color(color) { var t1 = color === true || false; return A.Highlighter$multiple(this._multi_span0$_primary, this.primaryLabel, this.secondarySpans, t1, null, null).highlight$0(); }, message$2$color(_, message, color) { var t1 = J.$eq$(color, true) || typeof color == "string", t2 = typeof color == "string" ? color : null; return A.SourceSpanExtension_messageMultiple(this._multi_span0$_primary, message, this.primaryLabel, this.secondarySpans, t1, t2, null); }, message$1($receiver, message) { return this.message$2$color($receiver, message, null); }, $isComparable: 1, $isFileSpan: 1, $isSourceSpan: 1, $isSourceSpanWithContext: 1 }; A.SupportsNegation0.prototype = { toString$0(_) { var t1 = this.condition; if (t1 instanceof A.SupportsNegation0 || t1 instanceof A.SupportsOperation0) return "not (" + t1.toString$0(0) + ")"; else return "not " + t1.toString$0(0); }, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.NoOpImporter0.prototype = { canonicalize$1(_, url) { return null; }, load$1(_, url) { return null; }, toString$0(_) { return "(unknown)"; } }; A.NoSourceMapBuffer0.prototype = { get$length(_) { return this._no_source_map_buffer0$_buffer._contents.length; }, forSpan$1$2(span, callback) { return callback.call$0(); }, forSpan$2(span, callback) { return this.forSpan$1$2(span, callback, type$.dynamic); }, write$1(_, object) { this._no_source_map_buffer0$_buffer._contents += A.S(object); return null; }, writeCharCode$1(charCode) { this._no_source_map_buffer0$_buffer._contents += A.Primitives_stringFromCharCode(charCode); return null; }, toString$0(_) { var t1 = this._no_source_map_buffer0$_buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, buildSourceMap$1$prefix(prefix) { return A.throwExpression(A.UnsupportedError$(string$.NoSour)); } }; A._FakeAstNode0.prototype = { get$span(_) { return this._node0$_callback.call$0(); }, $isAstNode0: 1 }; A.CssNode0.prototype = { toString$0(_) { return A.serialize0(this, true, null, true, null, false, null, true)._0; }, $isAstNode0: 1 }; A.CssParentNode0.prototype = {}; A._IsInvisibleVisitor1.prototype = { visitCssAtRule$1(rule) { return false; }, visitCssComment$1(comment) { return this.includeComments && comment.text.charCodeAt(2) !== 33; }, visitCssStyleRule$1(rule) { var t1 = rule._style_rule0$_selector._box0$_inner; return (this.includeBogus ? t1.value.accept$1(B._IsInvisibleVisitor_true0) : t1.value.accept$1(B._IsInvisibleVisitor_false0)) || this.super$EveryCssVisitor$visitCssStyleRule0(rule); } }; A.__IsInvisibleVisitor_Object_EveryCssVisitor0.prototype = {}; A.ModifiableCssNode0.prototype = { get$hasFollowingSibling() { var t2, t1 = this._node$_parent; if (t1 == null) t1 = null; else { t1 = t1.children; t2 = this._node$_indexInParent; t2.toString; t1 = A.SubListIterable$(t1, t2 + 1, null, t1.$ti._eval$1("ListBase.E")).any$1(0, new A.ModifiableCssNode_hasFollowingSibling_closure0()); } return t1 === true; }, get$isGroupEnd() { return this.isGroupEnd; } }; A.ModifiableCssNode_hasFollowingSibling_closure0.prototype = { call$1(sibling) { return !sibling.accept$1(B._IsInvisibleVisitor_true_false0); }, $signature: 148 }; A.ModifiableCssParentNode0.prototype = { get$isChildless() { return false; }, addChild$1(child) { var t1; child._node$_parent = this; t1 = this._node$_children; child._node$_indexInParent = t1.length; t1.push(child); }, clearChildren$0() { var t1, t2, _i, child; for (t1 = this._node$_children, t2 = t1.length, _i = 0; _i < t2; ++_i) { child = t1[_i]; child._node$_indexInParent = child._node$_parent = null; } B.JSArray_methods.clear$0(t1); }, $isCssParentNode0: 1, get$children(receiver) { return this.children; } }; A.NullExpression0.prototype = { accept$1$1(visitor) { return visitor.visitNullExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "null"; }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.legacyNullClass_closure.prototype = { call$0() { var t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.types.Null", new A.legacyNullClass__closure())); jsClass.NULL = B.C__SassNull0; A.JSClassExtension_injectSuperclass(t1._as(B.C__SassNull0.constructor), jsClass); return jsClass; }, $signature: 24 }; A.legacyNullClass__closure.prototype = { call$2(_, __) { throw A.wrapException("new sass.types.Null() isn't allowed. Use sass.types.Null.NULL instead."); }, call$1(_) { return this.call$2(_, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 216 }; A._SassNull0.prototype = { get$isTruthy() { return false; }, get$isBlank() { return true; }, get$realNull() { return null; }, accept$1$1(visitor) { if (visitor._serialize0$_inspect) visitor._serialize0$_buffer.write$1(0, "null"); return null; }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, unaryNot$0() { return B.SassBoolean_true0; } }; A.NumberExpression0.prototype = { accept$1$1(visitor) { return visitor.visitNumberExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return A.serializeValue0(A.SassNumber_SassNumber0(this.value, this.unit), true, true); }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.numberClass_closure.prototype = { call$0() { var t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassNumber", new A.numberClass__closure())), t2 = type$.String, t3 = type$.Function; 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)); 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)); A.JSClassExtension_injectSuperclass(t1._as(self.Object.getPrototypeOf(J.get$$prototype$x(t1._as(A.SassNumber_SassNumber0(0, null).constructor))).constructor), jsClass); return jsClass; }, $signature: 24 }; A.numberClass__closure.prototype = { call$3($self, value, unitOrOptions) { var t1, t2, _null = null; if (typeof unitOrOptions == "string") return A.SassNumber_SassNumber0(value, unitOrOptions); type$.nullable__ConstructorOptions_2._as(unitOrOptions); t1 = unitOrOptions == null; if (t1) t2 = _null; else { t2 = A.NullableExtension_andThen0(J.get$numeratorUnits$x(unitOrOptions), A.immutable__jsToDartList$closure()); t2 = t2 == null ? _null : J.cast$1$0$ax(t2, type$.String); } if (t1) t1 = _null; else { t1 = A.NullableExtension_andThen0(J.get$denominatorUnits$x(unitOrOptions), A.immutable__jsToDartList$closure()); t1 = t1 == null ? _null : J.cast$1$0$ax(t1, type$.String); } return A.SassNumber_SassNumber$withUnits0(value, t1, t2); }, call$2($self, value) { return this.call$3($self, value, null); }, "call*": "call$3", $requiredArgCount: 2, $defaultValues() { return [null]; }, $signature: 525 }; A.numberClass__closure0.prototype = { call$1($self) { return $self._number1$_value; }, $signature: 526 }; A.numberClass__closure1.prototype = { call$1($self) { return A.fuzzyIsInt($self._number1$_value); }, $signature: 267 }; A.numberClass__closure2.prototype = { call$1($self) { return A.fuzzyAsInt0($self._number1$_value); }, $signature: 528 }; A.numberClass__closure3.prototype = { call$1($self) { return new self.immutable.List($self.get$numeratorUnits($self)); }, $signature: 268 }; A.numberClass__closure4.prototype = { call$1($self) { return new self.immutable.List($self.get$denominatorUnits($self)); }, $signature: 268 }; A.numberClass__closure5.prototype = { call$1($self) { return $self.get$hasUnits(); }, $signature: 267 }; A.numberClass__closure6.prototype = { call$2($self, $name) { return $self.assertInt$1($name); }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 530 }; A.numberClass__closure7.prototype = { call$4($self, min, max, $name) { return $self.valueInRange$3(min, max, $name); }, call$3($self, min, max) { return this.call$4($self, min, max, null); }, "call*": "call$4", $requiredArgCount: 3, $defaultValues() { return [null]; }, $signature: 531 }; A.numberClass__closure8.prototype = { call$2($self, $name) { $self.assertNoUnits$1($name); return $self; }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 532 }; A.numberClass__closure9.prototype = { call$3($self, unit, $name) { $self.assertUnit$2(unit, $name); return $self; }, call$2($self, unit) { return this.call$3($self, unit, null); }, "call*": "call$3", $requiredArgCount: 2, $defaultValues() { return [null]; }, $signature: 533 }; A.numberClass__closure10.prototype = { call$2($self, unit) { return $self.hasUnit$1(unit); }, $signature: 269 }; A.numberClass__closure11.prototype = { call$2($self, unit) { return $self.get$hasUnits() && $self.compatibleWithUnit$1(unit); }, $signature: 269 }; A.numberClass__closure12.prototype = { call$4($self, numeratorUnits, denominatorUnits, $name) { var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits), t2 = type$.String; t1 = J.cast$1$0$ax(t1, t2); t2 = J.cast$1$0$ax(self.immutable.isOrderedMap(denominatorUnits) ? J.toArray$0$x(type$.ImmutableList._as(denominatorUnits)) : type$.List_dynamic._as(denominatorUnits), t2); return A.SassNumber_SassNumber$withUnits0($self._number1$_coerceOrConvertValue$4$coerceUnitless$name(t1, t2, false, $name), t2, t1); }, call$3($self, numeratorUnits, denominatorUnits) { return this.call$4($self, numeratorUnits, denominatorUnits, null); }, "call*": "call$4", $requiredArgCount: 3, $defaultValues() { return [null]; }, $signature: 270 }; A.numberClass__closure13.prototype = { call$4($self, other, $name, otherName) { return $self.convertToMatch$3(other, $name, otherName); }, call$2($self, other) { return this.call$4($self, other, null, null); }, call$3($self, other, $name) { return this.call$4($self, other, $name, null); }, "call*": "call$4", $requiredArgCount: 2, $defaultValues() { return [null, null]; }, $signature: 271 }; A.numberClass__closure14.prototype = { call$4($self, numeratorUnits, denominatorUnits, $name) { var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits), t2 = type$.String; t1 = J.cast$1$0$ax(t1, t2); 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); }, call$3($self, numeratorUnits, denominatorUnits) { return this.call$4($self, numeratorUnits, denominatorUnits, null); }, "call*": "call$4", $requiredArgCount: 3, $defaultValues() { return [null]; }, $signature: 272 }; A.numberClass__closure15.prototype = { call$4($self, other, $name, otherName) { return $self.convertValueToMatch$3(other, $name, otherName); }, call$2($self, other) { return this.call$4($self, other, null, null); }, call$3($self, other, $name) { return this.call$4($self, other, $name, null); }, "call*": "call$4", $requiredArgCount: 2, $defaultValues() { return [null, null]; }, $signature: 273 }; A.numberClass__closure16.prototype = { call$4($self, numeratorUnits, denominatorUnits, $name) { var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits), t2 = type$.String; t1 = J.cast$1$0$ax(t1, t2); 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); }, call$3($self, numeratorUnits, denominatorUnits) { return this.call$4($self, numeratorUnits, denominatorUnits, null); }, "call*": "call$4", $requiredArgCount: 3, $defaultValues() { return [null]; }, $signature: 270 }; A.numberClass__closure17.prototype = { call$4($self, other, $name, otherName) { return $self.coerceToMatch$3(other, $name, otherName); }, call$2($self, other) { return this.call$4($self, other, null, null); }, call$3($self, other, $name) { return this.call$4($self, other, $name, null); }, "call*": "call$4", $requiredArgCount: 2, $defaultValues() { return [null, null]; }, $signature: 271 }; A.numberClass__closure18.prototype = { call$4($self, numeratorUnits, denominatorUnits, $name) { var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits), t2 = type$.String; t1 = J.cast$1$0$ax(t1, t2); 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); }, call$3($self, numeratorUnits, denominatorUnits) { return this.call$4($self, numeratorUnits, denominatorUnits, null); }, "call*": "call$4", $requiredArgCount: 3, $defaultValues() { return [null]; }, $signature: 272 }; A.numberClass__closure19.prototype = { call$4($self, other, $name, otherName) { return $self.coerceValueToMatch$3(other, $name, otherName); }, call$2($self, other) { return this.call$4($self, other, null, null); }, call$3($self, other, $name) { return this.call$4($self, other, $name, null); }, "call*": "call$4", $requiredArgCount: 2, $defaultValues() { return [null, null]; }, $signature: 273 }; A._ConstructorOptions0.prototype = {}; A._NodeSassNumber.prototype = {}; A.legacyNumberClass_closure.prototype = { call$4(thisArg, value, unit, dartValue) { var t1; if (dartValue == null) { value.toString; t1 = A._parseNumber(value, unit); } else t1 = dartValue; J.set$dartValue$x(thisArg, t1); }, call$2(thisArg, value) { return this.call$4(thisArg, value, null, null); }, call$3(thisArg, value, unit) { return this.call$4(thisArg, value, unit, null); }, "call*": "call$4", $requiredArgCount: 2, $defaultValues() { return [null, null]; }, $signature: 539 }; A.legacyNumberClass_closure0.prototype = { call$1(thisArg) { return J.get$dartValue$x(thisArg)._number1$_value; }, $signature: 540 }; A.legacyNumberClass_closure1.prototype = { call$2(thisArg, value) { var t1 = J.getInterceptor$x(thisArg), t2 = J.get$numeratorUnits$x(t1.get$dartValue(thisArg)); t1.set$dartValue(thisArg, A.SassNumber_SassNumber$withUnits0(value, J.get$denominatorUnits$x(t1.get$dartValue(thisArg)), t2)); }, $signature: 541 }; A.legacyNumberClass_closure2.prototype = { call$1(thisArg) { var t1 = J.getInterceptor$x(thisArg), t2 = B.JSArray_methods.join$1(J.get$numeratorUnits$x(t1.get$dartValue(thisArg)), "*"), t3 = J.get$denominatorUnits$x(t1.get$dartValue(thisArg)).length === 0 ? "" : "/"; return t2 + t3 + B.JSArray_methods.join$1(J.get$denominatorUnits$x(t1.get$dartValue(thisArg)), "*"); }, $signature: 542 }; A.legacyNumberClass_closure3.prototype = { call$2(thisArg, unit) { var t1 = J.getInterceptor$x(thisArg); t1.set$dartValue(thisArg, A._parseNumber(t1.get$dartValue(thisArg)._number1$_value, unit)); }, $signature: 543 }; A._parseNumber_closure.prototype = { call$1(unit) { return unit.length === 0; }, $signature: 10 }; A._parseNumber_closure0.prototype = { call$1(unit) { return unit.length === 0; }, $signature: 10 }; A.SassNumber0.prototype = { get$unitString() { var _this = this; return _this.get$hasUnits() ? _this._number1$_unitString$2(_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this)) : ""; }, accept$1$1(visitor) { return visitor.visitNumber$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, withoutSlash$0() { var _this = this; return _this.asSlash == null ? _this : _this.withValue$1(_this._number1$_value); }, assertNumber$1($name) { return this; }, assertNumber$0() { return this.assertNumber$1(null); }, assertInt$1($name) { var integer, t1, _0_0 = A.fuzzyAsInt0(this._number1$_value); if (_0_0 != null) { integer = _0_0; t1 = true; } else { integer = null; t1 = false; } if (t1) return integer; throw A.wrapException(A.SassScriptException$0(this.toString$0(0) + " is not an int.", $name)); }, assertInt$0() { return this.assertInt$1(null); }, valueInRange$3(min, max, $name) { var result, t1, _this = this, _0_0 = A.fuzzyCheckRange0(_this._number1$_value, min, max); if (_0_0 != null) { result = _0_0; t1 = true; } else { result = null; t1 = false; } if (t1) return result; 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)); }, valueInRangeWithUnit$4(min, max, $name, unit) { var result, t1, _0_0 = A.fuzzyCheckRange0(this._number1$_value, min, max); if (_0_0 != null) { result = _0_0; t1 = true; } else { result = null; t1 = false; } if (t1) return result; throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + " to be within " + min + unit + " and " + max + unit + ".", $name)); }, hasCompatibleUnits$1(other) { var _this = this; if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length) return false; if (_this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length) return false; return _this.isComparableTo$1(other); }, assertUnit$2(unit, $name) { if (this.hasUnit$1(unit)) return; throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name)); }, assertNoUnits$1($name) { if (!this.get$hasUnits()) return; throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + " to have no units.", $name)); }, assertNoUnits$0() { return this.assertNoUnits$1(null); }, convertToMatch$3(other, $name, otherName) { var t1 = this.convertValueToMatch$3(other, $name, otherName), t2 = other.get$numeratorUnits(other); return A.SassNumber_SassNumber$withUnits0(t1, other.get$denominatorUnits(other), t2); }, convertValueToMatch$3(other, $name, otherName) { return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), false, $name, other, otherName); }, convertValueToMatch$1(other) { return this.convertValueToMatch$3(other, null, null); }, coerce$3(newNumerators, newDenominators, $name) { return A.SassNumber_SassNumber$withUnits0(this.coerceValue$3(newNumerators, newDenominators, $name), newDenominators, newNumerators); }, coerce$2(newNumerators, newDenominators) { return this.coerce$3(newNumerators, newDenominators, null); }, coerceValue$3(newNumerators, newDenominators, $name) { return this._number1$_coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, true, $name); }, coerceValueToUnit$2(unit, $name) { var t1 = type$.JSArray_String; return this.coerceValue$3(A._setArrayType([unit], t1), A._setArrayType([], t1), $name); }, coerceValueToUnit$1(unit) { return this.coerceValueToUnit$2(unit, null); }, coerceToMatch$3(other, $name, otherName) { var t1 = this.coerceValueToMatch$3(other, $name, otherName), t2 = other.get$numeratorUnits(other); return A.SassNumber_SassNumber$withUnits0(t1, other.get$denominatorUnits(other), t2); }, coerceValueToMatch$3(other, $name, otherName) { return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), true, $name, other, otherName); }, coerceValueToMatch$1(other) { return this.coerceValueToMatch$3(other, null, null); }, _number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, other, otherName) { var t1, otherHasUnits, t2, compatibilityException, oldNumerators, oldDenominators, _this = this, _box_0 = {}; if (B.C_ListEquality.equals$2(0, _this.get$numeratorUnits(_this), newNumerators) && B.C_ListEquality.equals$2(0, _this.get$denominatorUnits(_this), newDenominators)) return _this._number1$_value; t1 = J.getInterceptor$asx(newNumerators); otherHasUnits = t1.get$isNotEmpty(newNumerators) || J.get$isNotEmpty$asx(newDenominators); if (coerceUnitless) t2 = !_this.get$hasUnits() || !otherHasUnits; else t2 = false; if (t2) return _this._number1$_value; compatibilityException = new A.SassNumber__coerceOrConvertValue_compatibilityException0(_this, other, otherName, otherHasUnits, $name, newNumerators, newDenominators); _box_0.value = _this._number1$_value; t2 = _this.get$numeratorUnits(_this); oldNumerators = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2)); for (t1 = t1.get$iterator(newNumerators); t1.moveNext$0();) A.removeFirstWhere0(oldNumerators, new A.SassNumber__coerceOrConvertValue_closure3(_box_0, t1.get$current(t1)), new A.SassNumber__coerceOrConvertValue_closure4(compatibilityException)); t1 = _this.get$denominatorUnits(_this); oldDenominators = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1)); for (t1 = J.get$iterator$ax(newDenominators); t1.moveNext$0();) A.removeFirstWhere0(oldDenominators, new A.SassNumber__coerceOrConvertValue_closure5(_box_0, t1.get$current(t1)), new A.SassNumber__coerceOrConvertValue_closure6(compatibilityException)); if (oldNumerators.length !== 0 || oldDenominators.length !== 0) throw A.wrapException(compatibilityException.call$0()); return _box_0.value; }, _number1$_coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, coerceUnitless, $name) { return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, null, null); }, isComparableTo$1(other) { var exception; if (!this.get$hasUnits() || !other.get$hasUnits()) return true; try { this.greaterThan$1(other); return true; } catch (exception) { if (A.unwrapException(exception) instanceof A.SassScriptException0) return false; else throw exception; } }, greaterThan$1(other) { if (other instanceof A.SassNumber0) return this._number1$_coerceUnits$2(other, A.number2__fuzzyGreaterThan$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0; throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null)); }, greaterThanOrEquals$1(other) { if (other instanceof A.SassNumber0) return this._number1$_coerceUnits$2(other, A.number2__fuzzyGreaterThanOrEquals$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0; throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null)); }, lessThan$1(other) { if (other instanceof A.SassNumber0) return this._number1$_coerceUnits$2(other, A.number2__fuzzyLessThan$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0; throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null)); }, lessThanOrEquals$1(other) { if (other instanceof A.SassNumber0) return this._number1$_coerceUnits$2(other, A.number2__fuzzyLessThanOrEquals$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0; throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null)); }, modulo$1(other) { if (other instanceof A.SassNumber0) return this.withValue$1(this._number1$_coerceUnits$2(other, A.number2__moduloLikeSass$closure())); throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null)); }, plus$1(other) { var _this = this; if (other instanceof A.SassNumber0) return _this.withValue$1(_this._number1$_coerceUnits$2(other, new A.SassNumber_plus_closure0())); if (!(other instanceof A.SassColor0)) return _this.super$Value$plus0(other); throw A.wrapException(A.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " + " + other.toString$0(0) + '".', null)); }, minus$1(other) { var _this = this; if (other instanceof A.SassNumber0) return _this.withValue$1(_this._number1$_coerceUnits$2(other, new A.SassNumber_minus_closure0())); if (!(other instanceof A.SassColor0)) return _this.super$Value$minus0(other); throw A.wrapException(A.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " - " + other.toString$0(0) + '".', null)); }, times$1(other) { var _this = this; if (other instanceof A.SassNumber0) { if (!other.get$hasUnits()) return _this.withValue$1(_this._number1$_value * other._number1$_value); return _this.multiplyUnits$3(_this._number1$_value * other._number1$_value, other.get$numeratorUnits(other), other.get$denominatorUnits(other)); } throw A.wrapException(A.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " * " + other.toString$0(0) + '".', null)); }, dividedBy$1(other) { var _this = this; if (other instanceof A.SassNumber0) { if (!other.get$hasUnits()) return _this.withValue$1(_this._number1$_value / other._number1$_value); return _this.multiplyUnits$3(_this._number1$_value / other._number1$_value, other.get$denominatorUnits(other), other.get$numeratorUnits(other)); } return _this.super$Value$dividedBy0(other); }, unaryPlus$0() { return this; }, _number1$_coerceUnits$1$2(other, operation) { var t1, exception; try { t1 = operation.call$2(this._number1$_value, other.coerceValueToMatch$1(this)); return t1; } catch (exception) { if (A.unwrapException(exception) instanceof A.SassScriptException0) { this.coerceValueToMatch$1(other); throw exception; } else throw exception; } }, _number1$_coerceUnits$2(other, operation) { return this._number1$_coerceUnits$1$2(other, operation, type$.dynamic); }, multiplyUnits$3(value, otherNumerators, otherDenominators) { var _0_0, _0_1, _0_2, _0_3, _0_6, _0_7, _0_9, _0_11, _0_13, numerators_case_0, denominators_case_0, t1, denominators_case_00, t2, t3, denominators_case_1, numerators_case_1, newNumerators, mutableOtherDenominators, _i, numerator, mutableDenominatorUnits, _this = this, _null = null, _box_0 = {}; _box_0.value = value; _0_0 = new A._Record_4([_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this), otherNumerators, otherDenominators]); _0_1 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure11(_0_0)); _0_2 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure12(_0_0)); _0_3 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure13(_0_0)); _0_6 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure14(_0_3)); _0_7 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure15(_0_0)); _0_9 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure16(_0_7)); _0_11 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure17(_0_1)); _0_13 = A._InitializedCell$(new A.SassNumber_multiplyUnits_closure18(_0_2)); numerators_case_0 = _0_1._readFinal$0(); denominators_case_0 = _0_2._readFinal$0(); t1 = _0_6._readFinal$0() && _0_9._readFinal$0(); if (!t1) if (_0_11._readFinal$0()) if (_0_13._readFinal$0()) { numerators_case_0 = _0_3._readFinal$0(); denominators_case_00 = _0_7._readFinal$0(); denominators_case_0 = denominators_case_00; t1 = true; } else t1 = false; else t1 = false; else t1 = true; if (t1) { t2 = denominators_case_0; t1 = numerators_case_0; t3 = true; } else { t2 = _null; t1 = t2; t3 = false; } if (!t3) { if (_0_11._readFinal$0()) { denominators_case_1 = _0_2._readFinal$0(); numerators_case_1 = _0_3._readFinal$0(); t3 = _0_9._readFinal$0(); t3 = t3; } else { numerators_case_1 = _null; denominators_case_1 = numerators_case_1; t3 = false; } if (!t3) { numerators_case_1 = _0_1._readFinal$0(); if (_0_13._readFinal$0()) if (_0_6._readFinal$0()) { denominators_case_1 = _0_7._readFinal$0(); t3 = true; } else t3 = false; else t3 = false; } else t3 = true; if (t3) if (!_this._number1$_areAnyConvertible$2(numerators_case_1, denominators_case_1)) { t2 = denominators_case_1; t1 = numerators_case_1; t3 = true; } else t3 = false; else t3 = false; } else t3 = true; if (t3) return A.SassNumber_SassNumber$withUnits0(value, t2, t1); newNumerators = A._setArrayType([], type$.JSArray_String); mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators)); for (t1 = _this.get$numeratorUnits(_this), t2 = t1.length, _i = 0; _i < t2; ++_i) { numerator = t1[_i]; A.removeFirstWhere0(mutableOtherDenominators, new A.SassNumber_multiplyUnits_closure19(_box_0, numerator), new A.SassNumber_multiplyUnits_closure20(newNumerators, numerator)); } t1 = _this.get$denominatorUnits(_this); mutableDenominatorUnits = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1)); for (t1 = otherNumerators.length, _i = 0; _i < t1; ++_i) { numerator = otherNumerators[_i]; A.removeFirstWhere0(mutableDenominatorUnits, new A.SassNumber_multiplyUnits_closure21(_box_0, numerator), new A.SassNumber_multiplyUnits_closure22(newNumerators, numerator)); } t1 = _box_0.value; B.JSArray_methods.addAll$1(mutableDenominatorUnits, mutableOtherDenominators); return A.SassNumber_SassNumber$withUnits0(t1, mutableDenominatorUnits, newNumerators); }, _number1$_areAnyConvertible$2(units1, units2) { return J.any$1$ax(units1, new A.SassNumber__areAnyConvertible_closure0(units2)); }, _number1$_unitString$2(numerators, denominators) { var t1, denominator, _0_0 = new A._Record_2(numerators, denominators), _0_4 = A._InitializedCell$(new A.SassNumber__unitString_closure3(_0_0)), _0_5 = A._InitializedCell$(new A.SassNumber__unitString_closure4(_0_0)), _0_6 = A._InitializedCell$(new A.SassNumber__unitString_closure5(_0_5)), _0_7 = A._InitializedCell$(new A.SassNumber__unitString_closure6(_0_6)); $label0$0: { if (_0_4._readFinal$0() && _0_7._readFinal$0()) { t1 = "no units"; break $label0$0; } if (_0_4._readFinal$0()) if (J.$eq$(_0_6._readFinal$0(), 1)) { denominator = J.$index$asx(_0_5._readFinal$0(), 0); t1 = true; } else { denominator = null; t1 = false; } else { denominator = null; t1 = false; } if (t1) { t1 = A.S(denominator) + "^-1"; break $label0$0; } if (_0_4._readFinal$0()) { t1 = "(" + J.join$1$ax(denominators, "*") + ")^-1"; break $label0$0; } if (_0_7._readFinal$0()) { t1 = J.join$1$ax(numerators, "*"); break $label0$0; } t1 = J.join$1$ax(numerators, "*") + "/" + J.join$1$ax(denominators, "*"); break $label0$0; } return t1; }, $eq(_, other) { var _this = this; if (other == null) return false; if (!(other instanceof A.SassNumber0)) return false; if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length || _this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length) return false; if (!_this.get$hasUnits()) return A.fuzzyEquals0(_this._number1$_value, other._number1$_value); 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)))) return false; 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))); }, get$hashCode(_) { var _this = this, t1 = _this.hashCache; 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; }, _number1$_canonicalizeUnitList$1(units) { var type, t1 = units.length; if (t1 === 0) return units; if (t1 === 1) { type = $.$get$_typesByUnit0().$index(0, B.JSArray_methods.get$first(units)); if (type == null) t1 = units; else { t1 = B.Map_ws7dy.$index(0, type); t1.toString; t1 = A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_String); } return t1; } t1 = A._arrayInstanceType(units)._eval$1("MappedListIterable<1,String>"); t1 = A.List_List$of(new A.MappedListIterable(units, new A.SassNumber__canonicalizeUnitList_closure0(), t1), true, t1._eval$1("ListIterable.E")); B.JSArray_methods.sort$0(t1); return t1; }, _number1$_canonicalMultiplier$1(units) { return B.JSArray_methods.fold$2(units, 1, new A.SassNumber__canonicalMultiplier_closure0(this)); }, canonicalMultiplierForUnit$1(unit) { var t1, innerMap = B.Map_nfuzN.$index(0, unit); if (innerMap == null) t1 = 1; else { t1 = innerMap.get$values(innerMap); t1 = 1 / t1.get$first(t1); } return t1; }, unitSuggestion$2($name, unit) { var t2, t3, result, _this = this, t1 = _this.get$denominatorUnits(_this); t1 = new A.MappedListIterable(t1, new A.SassNumber_unitSuggestion_closure1(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0); t2 = _this.get$numeratorUnits(_this); t2 = new A.MappedListIterable(t2, new A.SassNumber_unitSuggestion_closure2(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String>")).join$0(0); t3 = unit == null ? "" : " * 1" + unit; result = "$" + $name + t1 + t2 + t3; return _this.get$numeratorUnits(_this).length === 0 ? result : "calc(" + result + ")"; }, unitSuggestion$1($name) { return this.unitSuggestion$2($name, null); } }; A.SassNumber_SassNumber$withUnits_closure10.prototype = { call$0() { return this._0_1._readFinal$0() == null; }, $signature: 1 }; A.SassNumber_SassNumber$withUnits_closure9.prototype = { call$0() { return this._0_0._0; }, $signature: 96 }; A.SassNumber_SassNumber$withUnits_closure11.prototype = { call$0() { var t1 = this._0_1._readFinal$0(); return J.get$length$asx(t1 == null ? type$.List_String._as(t1) : t1); }, $signature: 3 }; A.SassNumber_SassNumber$withUnits_closure12.prototype = { call$0() { return this._0_4._readFinal$0() <= 0; }, $signature: 1 }; A.SassNumber_SassNumber$withUnits_closure14.prototype = { call$0() { return this._0_7._readFinal$0() == null; }, $signature: 1 }; A.SassNumber_SassNumber$withUnits_closure13.prototype = { call$0() { return this._0_0._1; }, $signature: 96 }; A.SassNumber_SassNumber$withUnits_closure15.prototype = { call$0() { return J.get$length$asx(this._0_7._readFinal$0()) <= 0; }, $signature: 1 }; A.SassNumber_SassNumber$withUnits_closure16.prototype = { call$0() { return this._1_0._0; }, $signature: 26 }; A.SassNumber_SassNumber$withUnits_closure17.prototype = { call$0() { return J.get$length$asx(this._1_1._readFinal$0()); }, $signature: 3 }; A.SassNumber_SassNumber$withUnits_closure18.prototype = { call$0() { return J.get$length$asx(this._1_0._1) <= 0; }, $signature: 1 }; A.SassNumber__coerceOrConvertValue_compatibilityException0.prototype = { call$0() { var t2, t3, message, t4, type, unit, _this = this, t1 = _this.other; if (t1 != null) { t2 = _this.$this; t3 = t2.toString$0(0) + " and"; message = new A.StringBuffer(t3); t4 = _this.otherName; if (t4 != null) t3 = message._contents = t3 + (" $" + t4 + ":"); t1 = t3 + (" " + t1.toString$0(0) + " have incompatible units"); message._contents = t1; if (!t2.get$hasUnits() || !_this.otherHasUnits) message._contents = t1 + " (one has units and the other doesn't)"; t1 = message.toString$0(0) + "."; t2 = _this.name; return new A.SassScriptException0(t2 == null ? t1 : "$" + t2 + ": " + t1); } else if (!_this.otherHasUnits) { t1 = "Expected " + _this.$this.toString$0(0) + " to have no units."; t2 = _this.name; return new A.SassScriptException0(t2 == null ? t1 : "$" + t2 + ": " + t1); } else { t1 = _this.newNumerators; t2 = J.getInterceptor$asx(t1); if (t2.get$length(t1) === 1 && J.get$isEmpty$asx(_this.newDenominators)) { type = $.$get$_typesByUnit0().$index(0, t2.get$first(t1)); if (type != null) { t1 = _this.$this.toString$0(0); t2 = B.JSArray_methods.contains$1(A._setArrayType([97, 101, 105, 111, 117], type$.JSArray_int), type.charCodeAt(0)) ? "an " + type : "a " + type; t3 = B.Map_ws7dy.$index(0, type); t3.toString; t3 = "Expected " + t1 + " to have " + t2 + " unit (" + B.JSArray_methods.join$1(t3, ", ") + ")."; t2 = _this.name; return new A.SassScriptException0(t2 == null ? t3 : "$" + t2 + ": " + t3); } } t3 = _this.newDenominators; unit = A.pluralize0("unit", t2.get$length(t1) + J.get$length$asx(t3), null); t2 = _this.$this; t3 = "Expected " + t2.toString$0(0) + " to have " + unit + " " + t2._number1$_unitString$2(t1, t3) + "."; t1 = _this.name; return new A.SassScriptException0(t1 == null ? t3 : "$" + t1 + ": " + t3); } }, $signature: 544 }; A.SassNumber__coerceOrConvertValue_closure3.prototype = { call$1(oldNumerator) { var factor = A.conversionFactor0(this.newNumerator, oldNumerator); if (factor == null) return false; this._box_0.value *= factor; return true; }, $signature: 10 }; A.SassNumber__coerceOrConvertValue_closure4.prototype = { call$0() { return A.throwExpression(this.compatibilityException.call$0()); }, $signature: 0 }; A.SassNumber__coerceOrConvertValue_closure5.prototype = { call$1(oldDenominator) { var factor = A.conversionFactor0(this.newDenominator, oldDenominator); if (factor == null) return false; this._box_0.value /= factor; return true; }, $signature: 10 }; A.SassNumber__coerceOrConvertValue_closure6.prototype = { call$0() { return A.throwExpression(this.compatibilityException.call$0()); }, $signature: 0 }; A.SassNumber_plus_closure0.prototype = { call$2(num1, num2) { return num1 + num2; }, $signature: 66 }; A.SassNumber_minus_closure0.prototype = { call$2(num1, num2) { return num1 - num2; }, $signature: 66 }; A.SassNumber_multiplyUnits_closure11.prototype = { call$0() { return this._0_0._values[0]; }, $signature: 26 }; A.SassNumber_multiplyUnits_closure12.prototype = { call$0() { return this._0_0._values[1]; }, $signature: 26 }; A.SassNumber_multiplyUnits_closure13.prototype = { call$0() { return this._0_0._values[2]; }, $signature: 26 }; A.SassNumber_multiplyUnits_closure14.prototype = { call$0() { return J.get$length$asx(this._0_3._readFinal$0()) <= 0; }, $signature: 1 }; A.SassNumber_multiplyUnits_closure15.prototype = { call$0() { return this._0_0._values[3]; }, $signature: 26 }; A.SassNumber_multiplyUnits_closure16.prototype = { call$0() { return J.get$length$asx(this._0_7._readFinal$0()) <= 0; }, $signature: 1 }; A.SassNumber_multiplyUnits_closure17.prototype = { call$0() { return J.get$length$asx(this._0_1._readFinal$0()) <= 0; }, $signature: 1 }; A.SassNumber_multiplyUnits_closure18.prototype = { call$0() { return J.get$length$asx(this._0_2._readFinal$0()) <= 0; }, $signature: 1 }; A.SassNumber_multiplyUnits_closure19.prototype = { call$1(denominator) { var factor = A.conversionFactor0(this.numerator, denominator); if (factor == null) return false; this._box_0.value /= factor; return true; }, $signature: 10 }; A.SassNumber_multiplyUnits_closure20.prototype = { call$0() { return this.newNumerators.push(this.numerator); }, $signature: 0 }; A.SassNumber_multiplyUnits_closure21.prototype = { call$1(denominator) { var factor = A.conversionFactor0(this.numerator, denominator); if (factor == null) return false; this._box_0.value /= factor; return true; }, $signature: 10 }; A.SassNumber_multiplyUnits_closure22.prototype = { call$0() { return this.newNumerators.push(this.numerator); }, $signature: 0 }; A.SassNumber__areAnyConvertible_closure0.prototype = { call$1(unit1) { var innerMap, t1, _0_0 = B.Map_nfuzN.$index(0, unit1); $label0$0: { if (_0_0 != null) { innerMap = _0_0; t1 = true; } else { innerMap = null; t1 = false; } if (t1) { t1 = J.any$1$ax(this.units2, innerMap.get$containsKey()); break $label0$0; } t1 = J.contains$1$asx(this.units2, unit1); break $label0$0; } return t1; }, $signature: 10 }; A.SassNumber__unitString_closure3.prototype = { call$0() { return J.get$length$asx(this._0_0._0) <= 0; }, $signature: 1 }; A.SassNumber__unitString_closure4.prototype = { call$0() { return this._0_0._1; }, $signature: 26 }; A.SassNumber__unitString_closure5.prototype = { call$0() { return J.get$length$asx(this._0_5._readFinal$0()); }, $signature: 3 }; A.SassNumber__unitString_closure6.prototype = { call$0() { return this._0_6._readFinal$0() <= 0; }, $signature: 1 }; A.SassNumber__canonicalizeUnitList_closure0.prototype = { call$1(unit) { var t1, type = $.$get$_typesByUnit0().$index(0, unit); if (type == null) t1 = unit; else { t1 = B.Map_ws7dy.$index(0, type); t1.toString; t1 = B.JSArray_methods.get$first(t1); } return t1; }, $signature: 7 }; A.SassNumber__canonicalMultiplier_closure0.prototype = { call$2(multiplier, unit) { return multiplier * this.$this.canonicalMultiplierForUnit$1(unit); }, $signature: 220 }; A.SassNumber_unitSuggestion_closure1.prototype = { call$1(unit) { return " * 1" + unit; }, $signature: 7 }; A.SassNumber_unitSuggestion_closure2.prototype = { call$1(unit) { return " / 1" + unit; }, $signature: 7 }; A.SupportsOperation0.prototype = { toString$0(_) { var _this = this; return _this._operation0$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation0$_parenthesize$1(_this.right); }, _operation0$_parenthesize$1(condition) { var t1; if (!(condition instanceof A.SupportsNegation0)) t1 = condition instanceof A.SupportsOperation0 && condition.operator === this.operator; else t1 = true; return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0); }, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.ParentSelector0.prototype = { accept$1$1(visitor) { return visitor.visitParentSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, unify$1(compound) { return A.throwExpression(A.UnsupportedError$("& doesn't support unification.")); } }; A.ParentStatement0.prototype = {$isAstNode0: 1, $isStatement0: 1}; A.ParentStatement_closure0.prototype = { call$1(child) { var t1, imports; $label0$0: { if (child instanceof A.VariableDeclaration0 || child instanceof A.FunctionRule0 || child instanceof A.MixinRule0) { t1 = true; break $label0$0; } if (child instanceof A.ImportRule0) { imports = child.imports; t1 = true; } else { imports = null; t1 = false; } if (t1) { t1 = (imports && B.JSArray_methods).any$1(imports, new A.ParentStatement__closure0()); break $label0$0; } t1 = false; break $label0$0; } return t1; }, $signature: 257 }; A.ParentStatement__closure0.prototype = { call$1($import) { return $import instanceof A.DynamicImport0; }, $signature: 258 }; A.ParenthesizedExpression0.prototype = { accept$1$1(visitor) { return visitor.visitParenthesizedExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "(" + this.expression.toString$0(0) + ")"; }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.Parser1.prototype = { _parser0$_parseIdentifier$0() { return this.wrapSpanFormatException$1(new A.Parser__parseIdentifier_closure0(this)); }, whitespace$0() { do this.whitespaceWithoutComments$0(); while (this.scanComment$0()); }, whitespaceWithoutComments$0() { var t3, t1 = this.scanner, t2 = t1.string.length; while (true) { if (t1._string_scanner$_position !== t2) { t3 = t1.peekChar$0(); t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12; } else t3 = false; if (!t3) break; t1.readChar$0(); } }, spaces$0() { var t3, t1 = this.scanner, t2 = t1.string.length; while (true) { if (t1._string_scanner$_position !== t2) { t3 = t1.peekChar$0(); t3 = t3 === 32 || t3 === 9; } else t3 = false; if (!t3) break; t1.readChar$0(); } }, scanComment$0() { var _0_0, t1 = this.scanner; if (t1.peekChar$0() !== 47) return false; _0_0 = t1.peekChar$1(1); if (47 === _0_0) { this.silentComment$0(); return true; } if (42 === _0_0) { this.loudComment$0(); return true; } return false; }, expectWhitespace$0() { var t2, t3, t1 = this.scanner; if (t1._string_scanner$_position !== t1.string.length) { t2 = t1.peekChar$0(); t3 = !(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || this.scanComment$0()); t2 = t3; } else t2 = true; if (t2) t1.error$1(0, "Expected whitespace."); this.whitespace$0(); }, silentComment$0() { var t2, t3, t1 = this.scanner; t1.expect$1("//"); t2 = t1.string.length; while (true) { if (t1._string_scanner$_position !== t2) { t3 = t1.peekChar$0(); t3 = !(t3 === 10 || t3 === 13 || t3 === 12); } else t3 = false; if (!t3) break; t1.readChar$0(); } }, loudComment$0() { var next, t1 = this.scanner; t1.expect$1("/*"); for (; true;) { if (t1.readChar$0() !== 42) continue; do next = t1.readChar$0(); while (next === 42); if (next === 47) break; } }, identifier$2$normalize$unit(normalize, unit) { var t2, _0_0, _this = this, _s20_ = "Expected identifier.", text = new A.StringBuffer(""), t1 = _this.scanner; if (t1.scanChar$1(45)) { t2 = text._contents = "" + A.Primitives_stringFromCharCode(45); if (t1.scanChar$1(45)) { text._contents = t2 + A.Primitives_stringFromCharCode(45); _this._parser0$_identifierBody$3$normalize$unit(text, normalize, unit); t1 = text._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; } } else t2 = ""; $label0$0: { _0_0 = t1.peekChar$0(); if (_0_0 == null) t1.error$1(0, _s20_); if (95 === _0_0 && normalize) { t1.readChar$0(); text._contents = t2 + A.Primitives_stringFromCharCode(45); break $label0$0; } if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128) { text._contents = t2 + A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } if (92 === _0_0) { text._contents = t2 + _this.escape$1$identifierStart(true); break $label0$0; } t1.error$1(0, _s20_); } _this._parser0$_identifierBody$3$normalize$unit(text, normalize, unit); t1 = text._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, identifier$0() { return this.identifier$2$normalize$unit(false, false); }, identifier$1$normalize(normalize) { return this.identifier$2$normalize$unit(normalize, false); }, identifier$1$unit(unit) { return this.identifier$2$normalize$unit(false, unit); }, _parser0$_identifierBody$3$normalize$unit(text, normalize, unit) { var t1, _1_0, _0_0, t2; for (t1 = this.scanner; true;) { _1_0 = t1.peekChar$0(); if (_1_0 == null) break; if (45 === _1_0 && unit) { _0_0 = t1.peekChar$1(1); if (46 !== _0_0) t2 = A._isInt(_0_0) && _0_0 >= 48 && _0_0 <= 57; else t2 = true; if (t2) break; text._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } if (95 === _1_0 && normalize) { t1.readChar$0(); text._contents += A.Primitives_stringFromCharCode(45); continue; } if (_1_0 !== 95) { if (!(_1_0 >= 97 && _1_0 <= 122)) t2 = _1_0 >= 65 && _1_0 <= 90; else t2 = true; t2 = t2 || _1_0 >= 128; } else t2 = true; if (!t2) t2 = _1_0 >= 48 && _1_0 <= 57 || _1_0 === 45; else t2 = true; if (t2) { text._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } if (92 === _1_0) { text._contents += this.escape$0(); continue; } break; } }, _parser0$_identifierBody$1(text) { return this._parser0$_identifierBody$3$normalize$unit(text, false, false); }, string$0() { var buffer, _0_0, t2, t1 = this.scanner, quote = t1.readChar$0(); if (quote !== 39 && quote !== 34) t1.error$2$position(0, "Expected string.", t1._string_scanner$_position - 1); buffer = new A.StringBuffer(""); for (; true;) { _0_0 = t1.peekChar$0(); if (_0_0 === quote) { t1.readChar$0(); break; } if (_0_0 == null || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + "."); if (92 === _0_0) { t2 = t1.peekChar$1(1); if (t2 === 10 || t2 === 13 || t2 === 12) { t1.readChar$0(); t1.readChar$0(); } else buffer._contents += A.Primitives_stringFromCharCode(A.consumeEscapedCharacter0(t1)); continue; } buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } t1 = buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, declarationValue$1$allowEmpty(allowEmpty) { var t1, t2, wroteNewline, next, start, end, t3, _0_0, url, _this = this, buffer = new A.StringBuffer(""), brackets = A._setArrayType([], type$.JSArray_int); for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) { next = t1.peekChar$0(); if (next == null) break; if (92 === next) { buffer._contents += _this.escape$1$identifierStart(true); wroteNewline = false; continue; } if (34 === next || 39 === next) { start = t1._string_scanner$_position; t2.call$0(); end = t1._string_scanner$_position; buffer._contents += B.JSString_methods.substring$2(t1.string, start, end); wroteNewline = false; continue; } if (47 === next) { if (t1.peekChar$1(1) === 42) { t3 = _this.get$loudComment(); start = t1._string_scanner$_position; t3.call$0(); end = t1._string_scanner$_position; buffer._contents += B.JSString_methods.substring$2(t1.string, start, end); } else buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; continue; } if (32 === next || 9 === next) { if (!wroteNewline) { t3 = t1.peekChar$1(1); t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12); } else t3 = true; if (t3) buffer._contents += A.Primitives_stringFromCharCode(32); t1.readChar$0(); continue; } if (10 === next || 13 === next || 12 === next) { t3 = t1.peekChar$1(-1); if (!(t3 === 10 || t3 === 13 || t3 === 12)) buffer._contents += "\n"; t1.readChar$0(); wroteNewline = true; continue; } if (40 === next || 123 === next || 91 === next) { buffer._contents += A.Primitives_stringFromCharCode(next); brackets.push(A.opposite0(t1.readChar$0())); wroteNewline = false; continue; } if (41 === next || 125 === next || 93 === next) { if (brackets.length === 0) break; buffer._contents += A.Primitives_stringFromCharCode(next); t1.expectChar$1(brackets.pop()); wroteNewline = false; continue; } if (59 === next) { if (brackets.length === 0) break; buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } if (117 === next || 85 === next) { _0_0 = _this.tryUrl$0(); if (_0_0 != null) { url = _0_0; t3 = true; } else { url = null; t3 = false; } if (t3) buffer._contents += A.S(url); else buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; continue; } if (_this.lookingAtIdentifier$0()) buffer._contents += _this.identifier$0(); else buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; } if (brackets.length !== 0) t1.expectChar$1(B.JSArray_methods.get$last(brackets)); if (!allowEmpty && buffer._contents.length === 0) t1.error$1(0, "Expected token."); t1 = buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, declarationValue$0() { return this.declarationValue$1$allowEmpty(false); }, tryUrl$0() { var buffer, _0_0, t2, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); if (!_this.scanIdentifier$1("url")) return null; if (!t1.scanChar$1(40)) { t1.set$state(start); return null; } _this.whitespace$0(); buffer = new A.StringBuffer(""); buffer._contents = "" + "url("; for (; true;) { _0_0 = t1.peekChar$0(); if (_0_0 == null) break; if (92 === _0_0) { buffer._contents += _this.escape$0(); continue; } if (37 !== _0_0) if (38 !== _0_0) if (35 !== _0_0) t2 = _0_0 >= 42 && _0_0 <= 126 || _0_0 >= 128; else t2 = true; else t2 = true; else t2 = true; if (t2) { buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } if (_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) { _this.whitespace$0(); if (t1.peekChar$0() !== 41) break; continue; } if (41 === _0_0) { t2 = buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); return t2.charCodeAt(0) == 0 ? t2 : t2; } break; } t1.set$state(start); return null; }, variableName$0() { this.scanner.expectChar$1(36); return this.identifier$1$normalize(true); }, escape$1$identifierStart(identifierStart) { var value, _0_0, i, next, t2, exception, _s25_ = "Expected escape sequence.", t1 = this.scanner, start = t1._string_scanner$_position; t1.expectChar$1(92); value = 0; $label0$1: { _0_0 = t1.peekChar$0(); if (_0_0 == null) t1.error$1(0, _s25_); if (_0_0 === 10 || _0_0 === 13 || _0_0 === 12) t1.error$1(0, _s25_); if (A.CharacterExtension_get_isHex0(_0_0)) { for (i = 0; i < 6; ++i) { next = t1.peekChar$0(); if (next != null) { if (!(next >= 48 && next <= 57)) if (!(next >= 97 && next <= 102)) t2 = next >= 65 && next <= 70; else t2 = true; else t2 = true; t2 = !t2; } else t2 = true; if (t2) break; value *= 16; value += A.asHex0(t1.readChar$0()); } this.scanCharIf$1(new A.Parser_escape_closure0()); break $label0$1; } value = t1.readChar$0(); } if (identifierStart) { t2 = value; t2 = t2 === 95 || A.CharacterExtension_get_isAlphabetic0(t2) || t2 >= 128; } else { t2 = value; if (!(t2 === 95 || A.CharacterExtension_get_isAlphabetic0(t2) || t2 >= 128)) t2 = t2 >= 48 && t2 <= 57 || t2 === 45; else t2 = true; } if (t2) try { t2 = A.Primitives_stringFromCharCode(value); return t2; } catch (exception) { if (type$.RangeError._is(A.unwrapException(exception))) t1.error$3$length$position(0, "Invalid Unicode code point.", t1._string_scanner$_position - start, start); else throw exception; } else { if (!(value <= 31)) if (!J.$eq$(value, 127)) if (identifierStart) { t1 = value; t1 = t1 >= 48 && t1 <= 57; } else t1 = false; else t1 = true; else t1 = true; if (t1) { t1 = "" + A.Primitives_stringFromCharCode(92); if (value > 15) t1 += A.Primitives_stringFromCharCode(A.hexCharFor0(B.JSNumber_methods._shrOtherPositive$1(value, 4))); t1 = t1 + A.Primitives_stringFromCharCode(A.hexCharFor0(value & 15)) + A.Primitives_stringFromCharCode(32); return t1.charCodeAt(0) == 0 ? t1 : t1; } else return A.String_String$fromCharCodes(A._setArrayType([92, value], type$.JSArray_int), 0, null); } }, escape$0() { return this.escape$1$identifierStart(false); }, scanCharIf$1(condition) { var t1 = this.scanner; if (!condition.call$1(t1.peekChar$0())) return false; t1.readChar$0(); return true; }, scanIdentChar$2$caseSensitive(char, caseSensitive) { var next, t3, t1 = new A.Parser_scanIdentChar_matches0(caseSensitive, char), t2 = this.scanner, _0_0 = t2.peekChar$0(); if (_0_0 != null) { next = _0_0; t3 = true; } else { next = null; t3 = false; } if (t3 && t1.call$1(next)) { t2.readChar$0(); return true; } if (92 === _0_0) { t3 = t2._string_scanner$_position; if (t1.call$1(A.consumeEscapedCharacter0(t2))) return true; t2.set$state(new A._SpanScannerState(t2, t3)); } return false; }, scanIdentChar$1(char) { return this.scanIdentChar$2$caseSensitive(char, false); }, expectIdentChar$1(letter) { var t1; if (this.scanIdentChar$2$caseSensitive(letter, false)) return; t1 = this.scanner; t1.error$2$position(0, 'Expected "' + A.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position); }, lookingAtIdentifier$1($forward) { var t1, _1_0, t2, _0_0; if ($forward == null) $forward = 0; t1 = this.scanner; _1_0 = t1.peekChar$1($forward); $label0$0: { if (A._isInt(_1_0)) t2 = _1_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_1_0) || _1_0 >= 128; else t2 = false; if (t2 || 92 === _1_0) { t1 = true; break $label0$0; } if (45 === _1_0) { _0_0 = t1.peekChar$1($forward + 1); $label1$1: { if (A._isInt(_0_0)) t1 = _0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128; else t1 = false; if (t1 || 92 === _0_0 || 45 === _0_0) { t1 = true; break $label1$1; } t1 = false; break $label1$1; } break $label0$0; } t1 = false; break $label0$0; } return t1; }, lookingAtIdentifier$0() { return this.lookingAtIdentifier$1(null); }, lookingAtIdentifierBody$0() { var t1, next = this.scanner.peekChar$0(); if (next != null) { if (!(next === 95 || A.CharacterExtension_get_isAlphabetic0(next) || next >= 128)) t1 = next >= 48 && next <= 57 || next === 45; else t1 = true; t1 = t1 || next === 92; } else t1 = false; return t1; }, scanIdentifier$2$caseSensitive(text, caseSensitive) { var t1, t2, _this = this; if (!_this.lookingAtIdentifier$0()) return false; t1 = _this.scanner; t2 = t1._string_scanner$_position; if (_this._parser0$_consumeIdentifier$2(text, caseSensitive) && !_this.lookingAtIdentifierBody$0()) return true; else { t1.set$state(new A._SpanScannerState(t1, t2)); return false; } }, scanIdentifier$1(text) { return this.scanIdentifier$2$caseSensitive(text, false); }, _parser0$_consumeIdentifier$2(text, caseSensitive) { var t1, t2, t3; for (t1 = new A.CodeUnits(text), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) { t3 = t1.__internal$_current; if (!this.scanIdentChar$2$caseSensitive(t3 == null ? t2._as(t3) : t3, caseSensitive)) return false; } return true; }, expectIdentifier$2$name(text, $name) { var t1, start, t2, t3, t4, t5, t6; if ($name == null) $name = '"' + text + '"'; t1 = this.scanner; start = t1._string_scanner$_position; for (t2 = new A.CodeUnits(text), t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = "Expected " + $name, t4 = t3 + ".", t5 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) { t6 = t2.__internal$_current; if (this.scanIdentChar$2$caseSensitive(t6 == null ? t5._as(t6) : t6, false)) continue; t1.error$2$position(0, t4, start); } if (!this.lookingAtIdentifierBody$0()) return; t1.error$2$position(0, t3, start); }, expectIdentifier$1(text) { return this.expectIdentifier$2$name(text, null); }, rawText$1(consumer) { var t1 = this.scanner, start = t1._string_scanner$_position; consumer.call$0(); return t1.substring$1(0, start); }, spanFrom$1(state) { var span = this.scanner.spanFrom$1(state); return this._parser0$_interpolationMap == null ? span : new A.LazyFileSpan0(new A.Parser_spanFrom_closure0(this, span)); }, error$3(_, message, span, trace) { var exception = new A.StringScannerException(this.scanner.string, message, span); if (trace == null) throw A.wrapException(exception); else A.throwWithTrace0(exception, this.get$error(this), trace); }, error$2($receiver, message, span) { return this.error$3($receiver, message, span, null); }, withErrorMessage$1$2(message, callback) { var error, stackTrace, t1, exception; try { t1 = callback.call$0(); return t1; } catch (exception) { t1 = A.unwrapException(exception); if (type$.SourceSpanFormatException._is(t1)) { error = t1; stackTrace = A.getTraceFromException(exception); t1 = J.get$span$z(error); A.throwWithTrace0(new A.SourceSpanFormatException(error.get$source(), message, t1), error, stackTrace); } else throw exception; } }, withErrorMessage$2(message, callback) { return this.withErrorMessage$1$2(message, callback, type$.dynamic); }, wrapSpanFormatException$1$1(callback) { var error, stackTrace, map, error0, stackTrace0, span, error1, stackTrace1, span0, secondarySpans, t1, t2, span1, description, _0_0, t3, exception, t4, _this = this, _s8_ = "expected"; try { try { t3 = callback.call$0(); return t3; } catch (exception) { t3 = A.unwrapException(exception); if (type$.SourceSpanFormatException._is(t3)) { error = t3; stackTrace = A.getTraceFromException(exception); map = _this._parser0$_interpolationMap; if (map == null) throw exception; A.throwWithTrace0(map.mapException$1(error), error, stackTrace); } else throw exception; } } catch (exception) { t3 = A.unwrapException(exception); if (type$.SourceSpanFormatException._is(t3)) { error0 = t3; stackTrace0 = A.getTraceFromException(exception); span = J.get$span$z(error0); if (A.startsWithIgnoreCase0(error0._span_exception$_message, _s8_)) span = _this._parser0$_adjustExceptionSpan$1(span); t1 = error0._span_exception$_message; t2 = span; A.throwWithTrace0(new A.SassFormatException0(B.Set_empty, t1, t2), error0, stackTrace0); } else if (type$.MultiSourceSpanFormatException._is(t3)) { error1 = t3; stackTrace1 = A.getTraceFromException(exception); span0 = J.get$span$z(error1); t3 = type$.FileSpan; t4 = type$.String; secondarySpans = error1.get$secondarySpans().cast$2$0(0, t3, t4); if (A.startsWithIgnoreCase0(error1._span_exception$_message, _s8_)) { span0 = _this._parser0$_adjustExceptionSpan$1(span0); t1 = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4); for (t3 = A.MapExtensions_get_pairs0(secondarySpans, t3, t4), t3 = t3.get$iterator(t3); t3.moveNext$0();) { t2 = t3.get$current(t3); span1 = null; description = null; _0_0 = t2; span1 = _0_0._0; description = _0_0._1; J.$indexSet$ax(t1, _this._parser0$_adjustExceptionSpan$1(span1), description); } secondarySpans = t1; } A.throwWithTrace0(A.MultiSpanSassFormatException$0(error1._span_exception$_message, span0, error1.get$primaryLabel(), secondarySpans, null), error1, stackTrace1); } else throw exception; } }, wrapSpanFormatException$1(callback) { return this.wrapSpanFormatException$1$1(callback, type$.dynamic); }, _parser0$_adjustExceptionSpan$1(span) { var start, t1; if (span.get$length(span) > 0) return span; start = this._parser0$_firstNewlineBefore$1(span.get$start(span)); if (start.$eq(0, span.get$start(span))) t1 = span; else { t1 = start.offset; t1 = A._FileSpan$(start.file, t1, t1); } return t1; }, _parser0$_firstNewlineBefore$1($location) { var lastNewline, codeUnit, t1 = $location.file, t2 = $location.offset, text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1._decodedChars, 0, t2), 0, null), index = t2 - 1; for (lastNewline = null; index >= 0;) { codeUnit = text.charCodeAt(index); if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12)) { if (lastNewline == null) t1 = $location; else { t2 = new A.FileLocation(t1, lastNewline); t2.FileLocation$_$2(t1, lastNewline); t1 = t2; } return t1; } if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12) lastNewline = index; --index; } return $location; } }; A.Parser__parseIdentifier_closure0.prototype = { call$0() { var t1 = this.$this, result = t1.identifier$0(); t1.scanner.expectDone$0(); return result; }, $signature: 22 }; A.Parser_escape_closure0.prototype = { call$1(char) { return char === 32 || char === 9 || char === 10 || char === 13 || char === 12; }, $signature: 34 }; A.Parser_scanIdentChar_matches0.prototype = { call$1(actual) { var t1 = this.char; return this.caseSensitive ? actual === t1 : A.characterEqualsIgnoreCase0(t1, actual); }, $signature: 47 }; A.Parser_spanFrom_closure0.prototype = { call$0() { return this.$this._parser0$_interpolationMap.mapSpan$1(this.span); }, $signature: 33 }; A.PlaceholderSelector0.prototype = { accept$1$1(visitor) { return visitor.visitPlaceholderSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, addSuffix$1(suffix) { return new A.PlaceholderSelector0(this.name + suffix, this.span); }, $eq(_, other) { if (other == null) return false; return other instanceof A.PlaceholderSelector0 && other.name === this.name; }, get$hashCode(_) { return B.JSString_methods.get$hashCode(this.name); } }; A.PlainCssCallable0.prototype = { $eq(_, other) { if (other == null) return false; return other instanceof A.PlainCssCallable0 && this.name === other.name; }, get$hashCode(_) { return B.JSString_methods.get$hashCode(this.name); }, $isAsyncCallable0: 1, $isCallable: 1, get$name(receiver) { return this.name; } }; A.PrefixedMapView0.prototype = { get$keys(_) { return new A._PrefixedKeys0(this); }, get$length(_) { var t1 = this._prefixed_map_view0$_map; return t1.get$length(t1); }, get$isEmpty(_) { var t1 = this._prefixed_map_view0$_map; return t1.get$isEmpty(t1); }, get$isNotEmpty(_) { var t1 = this._prefixed_map_view0$_map; return t1.get$isNotEmpty(t1); }, $index(_, key) { 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; }, containsKey$1(key) { 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)); } }; A._PrefixedKeys0.prototype = { get$length(_) { var t1 = this._prefixed_map_view0$_view._prefixed_map_view0$_map; return t1.get$length(t1); }, get$iterator(_) { var t1 = this._prefixed_map_view0$_view._prefixed_map_view0$_map; t1 = J.map$1$1$ax(t1.get$keys(t1), new A._PrefixedKeys_iterator_closure0(this), type$.String); return t1.get$iterator(t1); }, contains$1(_, key) { return this._prefixed_map_view0$_view.containsKey$1(key); } }; A._PrefixedKeys_iterator_closure0.prototype = { call$1(key) { return this.$this._prefixed_map_view0$_view._prefixed_map_view0$_prefix + key; }, $signature: 7 }; A.PseudoSelector0.prototype = { get$isHostContext() { return this.isClass && this.name === "host-context" && this.selector != null; }, get$specificity() { var result, _this = this, value = _this._pseudo$__PseudoSelector_specificity_FI; if (value === $) { result = new A.PseudoSelector_specificity_closure0(_this).call$0(); _this._pseudo$__PseudoSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI(); _this._pseudo$__PseudoSelector_specificity_FI = result; value = result; } return value; }, withSelector$1(selector) { var _this = this; return A.PseudoSelector$0(_this.name, _this.span, _this.argument, !_this.isClass, selector); }, addSuffix$1(suffix) { var _this = this; if (_this.argument != null || _this.selector != null) _this.super$SimpleSelector$addSuffix0(suffix); return A.PseudoSelector$0(_this.name + suffix, _this.span, null, !_this.isClass, null); }, unify$1(compound) { var other, result, t2, addedThis, _i, simple, _this = this, t1 = _this.name; if (t1 === "host" || t1 === "host-context") { if (!B.JSArray_methods.every$1(compound, new A.PseudoSelector_unify_closure0())) return null; } else { if (compound.length === 1) { other = compound[0]; if (!(other instanceof A.UniversalSelector0)) if (other instanceof A.PseudoSelector0) t1 = other.isClass && other.name === "host" || other.get$isHostContext(); else t1 = false; else t1 = true; } else { other = null; t1 = false; } if (t1) return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector_2)); } if (B.JSArray_methods.contains$1(compound, _this)) return compound; result = A._setArrayType([], type$.JSArray_SimpleSelector_2); for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) { simple = compound[_i]; if (simple instanceof A.PseudoSelector0 && !simple.isClass) { if (t2) return null; result.push(_this); addedThis = true; } result.push(simple); } if (!addedThis) result.push(_this); return result; }, isSuperselector$1(other) { var selector, t1, t2, _this = this; if (_this.super$SimpleSelector$isSuperselector0(other)) return true; selector = _this.selector; if (selector == null) return _this.$eq(0, other); if (other instanceof A.PseudoSelector0 && !_this.isClass && !other.isClass && _this.normalizedName === "slotted" && other.name === _this.name) { t1 = A.NullableExtension_andThen0(other.selector, selector.get$isSuperselector()); return t1 == null ? false : t1; } t1 = type$.JSArray_SimpleSelector_2; t2 = _this.span; return A.compoundIsSuperselector0(A.CompoundSelector$0(A._setArrayType([_this], t1), t2), A.CompoundSelector$0(A._setArrayType([other], t1), t2), null); }, accept$1$1(visitor) { return visitor.visitPseudoSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, $eq(_, other) { var _this = this; if (other == null) return false; return other instanceof A.PseudoSelector0 && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector); }, get$hashCode(_) { var _this = this, t1 = B.JSString_methods.get$hashCode(_this.name), t2 = !_this.isClass ? 519018 : 218159; return t1 ^ t2 ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector); } }; A.PseudoSelector_specificity_closure0.prototype = { call$0() { var selector, t2, t1 = this.$this; if (!t1.isClass) return 1; selector = t1.selector; if (selector == null) return A.SimpleSelector0.prototype.get$specificity.call(t1); switch (t1.normalizedName) { case "where": return 0; case "is": case "not": case "has": case "matches": t1 = selector.components; return A.IterableIntegerExtension_get_max(new A.MappedListIterable(t1, new A.PseudoSelector_specificity__closure1(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int>"))); case "nth-child": case "nth-last-child": t1 = A.SimpleSelector0.prototype.get$specificity.call(t1); t2 = selector.components; return t1 + A.IterableIntegerExtension_get_max(new A.MappedListIterable(t2, new A.PseudoSelector_specificity__closure2(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,int>"))); default: return A.SimpleSelector0.prototype.get$specificity.call(t1); } }, $signature: 3 }; A.PseudoSelector_specificity__closure1.prototype = { call$1(component) { return component.get$specificity(); }, $signature: 274 }; A.PseudoSelector_specificity__closure2.prototype = { call$1(component) { return component.get$specificity(); }, $signature: 274 }; A.PseudoSelector_unify_closure0.prototype = { call$1(simple) { var t1; if (simple instanceof A.PseudoSelector0) t1 = simple.isClass && simple.name === "host" || simple.selector != null; else t1 = false; return t1; }, $signature: 15 }; A.PublicMemberMapView0.prototype = { get$keys(_) { var t1 = this._public_member_map_view0$_inner; return J.where$1$ax(t1.get$keys(t1), A.utils0__isPublic$closure()); }, containsKey$1(key) { return typeof key == "string" && A.isPublic0(key) && this._public_member_map_view0$_inner.containsKey$1(key); }, $index(_, key) { if (typeof key == "string" && A.isPublic0(key)) return this._public_member_map_view0$_inner.$index(0, key); return null; } }; A.QualifiedName0.prototype = { $eq(_, other) { if (other == null) return false; return other instanceof A.QualifiedName0 && other.name === this.name && other.namespace == this.namespace; }, get$hashCode(_) { return B.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace); }, toString$0(_) { var t1 = this.namespace, t2 = this.name; return t1 == null ? t2 : t1 + "|" + t2; } }; A.JSClass0.prototype = {}; A.JSClassExtension_setCustomInspect_closure.prototype = { call$4($self, _, __, ___) { return this.inspect.call$1($self); }, call$3($self, _, __) { return this.call$4($self, _, __, null); }, "call*": "call$4", $requiredArgCount: 3, $defaultValues() { return [null]; }, $signature: 546 }; A.JSClassExtension_get_defineStaticMethod_closure.prototype = { call$2($name, body) { this._this[$name] = A.allowInteropNamed($name, body); return null; }, $signature: 144 }; A.JSClassExtension_get_defineMethod_closure.prototype = { call$2($name, body) { J.get$$prototype$x(this._this)[$name] = A.allowInteropCaptureThisNamed($name, body); return null; }, $signature: 144 }; A.JSClassExtension_get_defineGetter_closure.prototype = { call$2($name, body) { A.defineGetter(J.get$$prototype$x(this._this), $name, body, null); return null; }, $signature: 144 }; A.RenderContext0.prototype = {}; A.RenderContextOptions0.prototype = {}; A.RenderContextResult0.prototype = {}; A.RenderContextResultStats0.prototype = {}; A.RenderOptions.prototype = {}; A.RenderResult.prototype = {}; A.RenderResultStats.prototype = {}; A.ReplaceExpressionVisitor0.prototype = { visitBinaryOperationExpression$1(node) { return new A.BinaryOperationExpression0(node.operator, node.left.accept$1(this), node.right.accept$1(this), false); }, visitBooleanExpression$1(node) { return node; }, visitColorExpression$1(node) { return node; }, visitFunctionExpression$1(node) { return new A.FunctionExpression0(node.namespace, node.originalName, this.visitArgumentInvocation$1(node.$arguments), node.span); }, visitInterpolatedFunctionExpression$1(node) { return new A.InterpolatedFunctionExpression0(this.visitInterpolation$1(node.name), this.visitArgumentInvocation$1(node.$arguments), node.span); }, visitIfExpression$1(node) { return new A.IfExpression0(this.visitArgumentInvocation$1(node.$arguments), node.span); }, visitListExpression$1(node) { var t1 = node.contents; 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); }, visitMapExpression$1(node) { var t2, t3, _i, t4, key, value, t1 = A._setArrayType([], type$.JSArray_Record_2_Expression_and_Expression_2); for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) { t4 = t2[_i]; key = t4._0; value = t4._1; t1.push(new A._Record_2(key.accept$1(this), value.accept$1(this))); } return new A.MapExpression0(A.List_List$unmodifiable(t1, type$.Record_2_Expression_and_Expression_2), node.span); }, visitNullExpression$1(node) { return node; }, visitNumberExpression$1(node) { return node; }, visitParenthesizedExpression$1(node) { return new A.ParenthesizedExpression0(node.expression.accept$1(this), node.span); }, visitSelectorExpression$1(node) { return node; }, visitStringExpression$1(node) { return new A.StringExpression0(this.visitInterpolation$1(node.text), node.hasQuotes); }, visitSupportsExpression$1(node) { return new A.SupportsExpression0(this.visitSupportsCondition$1(node.condition)); }, visitUnaryOperationExpression$1(node) { return new A.UnaryOperationExpression0(node.operator, node.operand.accept$1(this), node.span); }, visitValueExpression$1(node) { return node; }, visitVariableExpression$1(node) { return node; }, visitArgumentInvocation$1(invocation) { var t5, t6, $name, value, _this = this, t1 = invocation.positional, t2 = type$.String, t3 = type$.Expression_2, t4 = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3); for (t5 = A.MapExtensions_get_pairs0(invocation.named, t2, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) { t6 = t5.get$current(t5); $name = t6._0; value = t6._1; t4.$indexSet(0, $name, value.accept$1(_this)); } t5 = invocation.rest; t5 = t5 == null ? null : t5.accept$1(_this); t6 = invocation.keywordRest; t6 = t6 == null ? null : t6.accept$1(_this); 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); }, visitSupportsCondition$1(condition) { var _this = this; if (condition instanceof A.SupportsOperation0) return A.SupportsOperation$0(_this.visitSupportsCondition$1(condition.left), _this.visitSupportsCondition$1(condition.right), condition.operator, condition.span); else if (condition instanceof A.SupportsNegation0) return new A.SupportsNegation0(_this.visitSupportsCondition$1(condition.condition), condition.span); else if (condition instanceof A.SupportsInterpolation0) return new A.SupportsInterpolation0(condition.expression.accept$1(_this), condition.span); else if (condition instanceof A.SupportsDeclaration0) return new A.SupportsDeclaration0(condition.name.accept$1(_this), condition.value.accept$1(_this), condition.span); else throw A.wrapException(A.SassException$0("BUG: Unknown SupportsCondition " + condition.toString$0(0) + ".", condition.get$span(condition), null)); }, visitInterpolation$1(interpolation) { var t1 = interpolation.contents; return A.Interpolation$0(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitInterpolation_closure0(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object>")), interpolation.span); } }; A.ReplaceExpressionVisitor_visitListExpression_closure0.prototype = { call$1(item) { return item.accept$1(this.$this); }, $signature: 276 }; A.ReplaceExpressionVisitor_visitArgumentInvocation_closure0.prototype = { call$1(expression) { return expression.accept$1(this.$this); }, $signature: 276 }; A.ReplaceExpressionVisitor_visitInterpolation_closure0.prototype = { call$1(node) { return type$.Expression_2._is(node) ? node.accept$1(this.$this) : node; }, $signature: 69 }; A.ImporterResult0.prototype = { get$sourceMapUrl(_) { var t1 = this._result$_sourceMapUrl; return t1 == null ? A.Uri_Uri$dataFromString(this.contents, B.C_Utf8Codec, null) : t1; } }; A.ReturnRule0.prototype = { accept$1$1(visitor) { return visitor.visitReturnRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "@return " + this.expression.toString$0(0) + ";"; }, $isAstNode0: 1, $isStatement0: 1, get$span(receiver) { return this.span; } }; A.SassParser0.prototype = { get$currentIndentation() { return this._sass0$_currentIndentation; }, get$indented() { return true; }, styleRuleSelector$0() { var t4, t1 = this.scanner, t2 = t1._string_scanner$_position, t3 = new A.StringBuffer(""), buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object)); do { buffer.addInterpolation$1(this.almostAnyValue$1$omitComments(true)); t4 = t3._contents += A.Primitives_stringFromCharCode(10); } 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())); return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, expectStatementSeparator$1($name) { var t1, _this = this; if (!_this.atEndOfStatement$0()) _this._sass0$_expectNewline$0(); if (_this._sass0$_peekIndentation$0() <= _this._sass0$_currentIndentation) return; t1 = $name == null ? "here" : "beneath a " + $name; _this.scanner.error$2$position(0, "Nothing may be indented " + t1 + ".", _this._sass0$_nextIndentationEnd.position); }, expectStatementSeparator$0() { return this.expectStatementSeparator$1(null); }, atEndOfStatement$0() { var t1 = this.scanner.peekChar$0(); if (t1 == null) t1 = null; else t1 = t1 === 10 || t1 === 13 || t1 === 12; return t1 !== false; }, lookingAtChildren$0() { return this.atEndOfStatement$0() && this._sass0$_peekIndentation$0() > this._sass0$_currentIndentation; }, importArgument$0() { var url, span, innerError, stackTrace, t1, _0_0, start, next, t2, exception, _this = this; $label0$0: { t1 = _this.scanner; _0_0 = t1.peekChar$0(); if (117 === _0_0 || 85 === _0_0) { start = new A._SpanScannerState(t1, t1._string_scanner$_position); if (_this.scanIdentifier$1("url")) if (t1.scanChar$1(40)) { t1.set$state(start); return _this.super$StylesheetParser$importArgument0(); } else t1.set$state(start); break $label0$0; } if (39 === _0_0 || 34 === _0_0) return _this.super$StylesheetParser$importArgument0(); } start = new A._SpanScannerState(t1, t1._string_scanner$_position); next = t1.peekChar$0(); while (true) { if (next != null) if (next !== 44) if (next !== 59) t2 = !(next === 10 || next === 13 || next === 12); else t2 = false; else t2 = false; else t2 = false; if (!t2) break; t1.readChar$0(); next = t1.peekChar$0(); } url = t1.substring$1(0, start.position); span = t1.spanFrom$1(start); if (_this.isPlainImportUrl$1(url)) return new A.StaticImport0(A.Interpolation$0(A._setArrayType([A.serializeValue0(new A.SassString0(url, true), true, true)], type$.JSArray_Object), span), null, span); else try { t1 = _this.parseImportUrl$1(url); return new A.DynamicImport0(t1, span); } catch (exception) { t1 = A.unwrapException(exception); if (type$.FormatException._is(t1)) { innerError = t1; stackTrace = A.getTraceFromException(exception); _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), span, stackTrace); } else throw exception; } }, scanElse$1(ifIndentation) { var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this; if (_this._sass0$_peekIndentation$0() !== ifIndentation) return false; t1 = _this.scanner; t2 = t1._string_scanner$_position; startIndentation = _this._sass0$_currentIndentation; startNextIndentation = _this._sass0$_nextIndentation; startNextIndentationEnd = _this._sass0$_nextIndentationEnd; _this._sass0$_readIndentation$0(); if (t1.scanChar$1(64) && _this.scanIdentifier$1("else")) return true; t1.set$state(new A._SpanScannerState(t1, t2)); _this._sass0$_currentIndentation = startIndentation; _this._sass0$_nextIndentation = startNextIndentation; _this._sass0$_nextIndentationEnd = startNextIndentationEnd; return false; }, children$1(_, child) { var children = A._setArrayType([], type$.JSArray_Statement_2); this._sass0$_whileIndentedLower$1(new A.SassParser_children_closure0(this, child, children)); return children; }, statements$1(statement) { var statements, t2, _1_0, child, t3, t1 = this.scanner, _0_0 = t1.peekChar$0(); if (9 === _0_0 || 32 === _0_0) t1.error$3$length$position(0, string$.Indent, t1._string_scanner$_position, 0); statements = A._setArrayType([], type$.JSArray_Statement_2); for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) { _1_0 = this._sass0$_child$1(statement); if (_1_0 != null) { child = _1_0; t3 = true; } else { child = null; t3 = false; } if (t3) statements.push(child); this._sass0$_readIndentation$0(); } return statements; }, _sass0$_child$1(child) { var _0_0, _this = this, t1 = _this.scanner, _1_0 = t1.peekChar$0(); $label0$0: { if (13 === _1_0 || 10 === _1_0 || 12 === _1_0) { t1 = null; break $label0$0; } if (36 === _1_0) { t1 = _this.variableDeclarationWithoutNamespace$0(); break $label0$0; } if (47 === _1_0) { _0_0 = t1.peekChar$1(1); $label1$1: { if (47 === _0_0) { t1 = _this._sass0$_silentComment$0(); break $label1$1; } if (42 === _0_0) { t1 = _this._sass0$_loudComment$0(); break $label1$1; } t1 = child.call$0(); break $label1$1; } break $label0$0; } t1 = child.call$0(); break $label0$0; } return t1; }, _sass0$_silentComment$0() { var buffer, parentIndentation, t3, t4, t5, commentPrefix, i, t6, i0, t7, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; t1.expect$1("//"); buffer = new A.StringBuffer(""); parentIndentation = _this._sass0$_currentIndentation; t3 = t1.string.length; t4 = 1 + parentIndentation; t5 = 2 + parentIndentation; $label0$0: do { commentPrefix = t1.scanChar$1(47) ? "///" : "//"; for (i = commentPrefix.length; true;) { t6 = buffer._contents += commentPrefix; for (i0 = i; i0 < _this._sass0$_currentIndentation - parentIndentation; ++i0) { t6 += A.Primitives_stringFromCharCode(32); buffer._contents = t6; } while (true) { if (t1._string_scanner$_position !== t3) { t7 = t1.peekChar$0(); t7 = !(t7 === 10 || t7 === 13 || t7 === 12); } else t7 = false; if (!t7) break; t6 += A.Primitives_stringFromCharCode(t1.readChar$0()); buffer._contents = t6; } buffer._contents = t6 + "\n"; if (_this._sass0$_peekIndentation$0() < parentIndentation) break $label0$0; if (_this._sass0$_peekIndentation$0() === parentIndentation) { if (t1.peekChar$1(t4) === 47 && t1.peekChar$1(t5) === 47) _this._sass0$_readIndentation$0(); break; } _this._sass0$_readIndentation$0(); } } while (t1.scan$1("//")); t3 = buffer._contents; return _this.lastSilentComment = new A.SilentComment0(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _sass0$_loudComment$0() { var t3, t4, buffer, parentIndentation, t5, t6, first, beginningOfComment, t7, end, i, _0_0, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; t1.expect$1("/*"); t3 = new A.StringBuffer(""); t4 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer0(t3, t4); t3._contents = "" + "/*"; parentIndentation = _this._sass0$_currentIndentation; for (t5 = t1.string, t6 = t5.length, first = true; true; first = false) { if (first) { beginningOfComment = t1._string_scanner$_position; _this.spaces$0(); t7 = t1.peekChar$0(); if (t7 === 10 || t7 === 13 || t7 === 12) { _this._sass0$_readIndentation$0(); t3._contents += A.Primitives_stringFromCharCode(32); } else { end = t1._string_scanner$_position; t3._contents += B.JSString_methods.substring$2(t5, beginningOfComment, end); } } else { t7 = t3._contents += "\n"; t3._contents = t7 + " * "; } for (i = 3; i < _this._sass0$_currentIndentation - parentIndentation; ++i) t3._contents += A.Primitives_stringFromCharCode(32); for (; t1._string_scanner$_position !== t6;) { _0_0 = t1.peekChar$0(); if (10 === _0_0 || 13 === _0_0 || 12 === _0_0) break; if (35 === _0_0) { if (t1.peekChar$1(1) === 123) { t7 = _this.singleInterpolation$0(); buffer._interpolation_buffer0$_flushText$0(); t4.push(t7); } else t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } if (_this._sass0$_peekIndentation$0() <= parentIndentation) break; for (; _this._sass0$_lookingAtDoubleNewline$0();) { _this._sass0$_expectNewline$0(); t7 = t3._contents += "\n"; t3._contents = t7 + " *"; } _this._sass0$_readIndentation$0(); } t4 = t3._contents; if (!B.JSString_methods.endsWith$1(B.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/")) t3._contents += " */"; return new A.LoudComment0(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)))); }, whitespaceWithoutComments$0() { var t1, t2, next; for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) { next = t1.peekChar$0(); if (next !== 9 && next !== 32) break; t1.readChar$0(); } }, loudComment$0() { var next, t1 = this.scanner; t1.expect$1("/*"); for (; true;) { next = t1.readChar$0(); if (next === 10 || next === 13 || next === 12) t1.error$1(0, "expected */."); if (next !== 42) continue; do next = t1.readChar$0(); while (next === 42); if (next === 47) break; } }, _sass0$_expectNewline$0() { var t1 = this.scanner, _0_0 = t1.peekChar$0(); if (59 === _0_0) t1.error$1(0, string$.semico); if (13 === _0_0) { t1.readChar$0(); if (t1.peekChar$0() === 10) t1.readChar$0(); return; } if (10 === _0_0 || 12 === _0_0) { t1.readChar$0(); return; } t1.error$1(0, "expected newline."); }, _sass0$_lookingAtDoubleNewline$0() { var _0_0, t1 = this.scanner, _1_0 = t1.peekChar$0(); $label1$1: { if (13 === _1_0) { _0_0 = t1.peekChar$1(1); $label0$0: { if (10 === _0_0) { t1 = t1.peekChar$1(2); t1 = t1 === 10 || t1 === 13 || t1 === 12; break $label0$0; } if (13 === _0_0 || 12 === _0_0) { t1 = true; break $label0$0; } t1 = false; break $label0$0; } break $label1$1; } if (10 === _1_0 || 12 === _1_0) { t1 = t1.peekChar$1(1); t1 = t1 === 10 || t1 === 13 || t1 === 12; break $label1$1; } t1 = false; break $label1$1; } return t1; }, _sass0$_whileIndentedLower$1(body) { var t1, t2, childIndentation, indentation, t3, t4, _this = this, parentIndentation = _this._sass0$_currentIndentation; for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._sass0$_peekIndentation$0() > parentIndentation;) { indentation = _this._sass0$_readIndentation$0(); if (childIndentation == null) childIndentation = indentation; if (childIndentation !== indentation) { t3 = t1._string_scanner$_position; t4 = t2.getColumn$1(t3); t1.error$3$length$position(0, "Inconsistent indentation, expected " + childIndentation + " spaces.", t2.getColumn$1(t1._string_scanner$_position), t3 - t4); } body.call$0(); } }, _sass0$_readIndentation$0() { var t1, _this = this, currentIndentation = _this._sass0$_nextIndentation; if (currentIndentation == null) currentIndentation = _this._sass0$_nextIndentation = _this._sass0$_peekIndentation$0(); _this._sass0$_currentIndentation = currentIndentation; t1 = _this._sass0$_nextIndentationEnd; t1.toString; _this.scanner.set$state(t1); _this._sass0$_nextIndentationEnd = _this._sass0$_nextIndentation = null; return currentIndentation; }, _sass0$_peekIndentation$0() { var cached, t1, t2, t3, start, containsTab, containsSpace, nextIndentation, _1_0, t4, _this = this, _0_0 = _this._sass0$_nextIndentation; if (_0_0 != null) { cached = _0_0; t1 = true; } else { cached = null; t1 = false; } if (t1) return cached; t1 = _this.scanner; t2 = t1._string_scanner$_position; t3 = t1.string.length; if (t2 === t3) { _this._sass0$_nextIndentation = 0; _this._sass0$_nextIndentationEnd = new A._SpanScannerState(t1, t2); return 0; } start = new A._SpanScannerState(t1, t2); if (!_this.scanCharIf$1(new A.SassParser__peekIndentation_closure1())) t1.error$2$position(0, "Expected newline.", t1._string_scanner$_position); containsTab = A._Cell$(); containsSpace = A._Cell$(); nextIndentation = A._Cell$(); t2 = nextIndentation.__late_helper$_name; do { containsSpace._value = containsTab._value = false; nextIndentation._value = 0; for (; true;) { $label0$0: { _1_0 = t1.peekChar$0(); if (32 === _1_0) { containsSpace._value = true; break $label0$0; } if (9 === _1_0) { containsTab._value = true; break $label0$0; } break; } t4 = nextIndentation._value; if (t4 === nextIndentation) A.throwExpression(A.LateError$localNI(t2)); nextIndentation._value = t4 + 1; t1.readChar$0(); } t4 = t1._string_scanner$_position; if (t4 === t3) { _this._sass0$_nextIndentation = 0; _this._sass0$_nextIndentationEnd = new A._SpanScannerState(t1, t4); t1.set$state(start); return 0; } } while (_this.scanCharIf$1(new A.SassParser__peekIndentation_closure2())); t2 = containsTab._readLocal$0(); t3 = containsSpace._readLocal$0(); if (t2) { if (t3) { t2 = t1._string_scanner$_position; t3 = t1._sourceFile; t4 = t3.getColumn$1(t2); t1.error$3$length$position(0, "Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4); } else if (_this._sass0$_spaces === true) { t2 = t1._string_scanner$_position; t3 = t1._sourceFile; t4 = t3.getColumn$1(t2); t1.error$3$length$position(0, "Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4); } } else if (t3 && _this._sass0$_spaces === false) { t2 = t1._string_scanner$_position; t3 = t1._sourceFile; t4 = t3.getColumn$1(t2); t1.error$3$length$position(0, "Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4); } _this._sass0$_nextIndentation = nextIndentation._readLocal$0(); if (nextIndentation._readLocal$0() > 0) if (_this._sass0$_spaces == null) _this._sass0$_spaces = containsSpace._readLocal$0(); _this._sass0$_nextIndentationEnd = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.set$state(start); return nextIndentation._readLocal$0(); } }; A.SassParser_styleRuleSelector_closure0.prototype = { call$1(char) { return char === 10 || char === 13 || char === 12; }, $signature: 34 }; A.SassParser_children_closure0.prototype = { call$0() { var parsedChild, t1, _0_0 = this.$this._sass0$_child$1(this.child); if (_0_0 != null) { parsedChild = _0_0; t1 = true; } else { parsedChild = null; t1 = false; } if (t1) this.children.push(parsedChild); }, $signature: 0 }; A.SassParser__peekIndentation_closure1.prototype = { call$1(char) { return char === 10 || char === 13 || char === 12; }, $signature: 34 }; A.SassParser__peekIndentation_closure2.prototype = { call$1(char) { return char === 10 || char === 13 || char === 12; }, $signature: 34 }; A._Exports.prototype = {}; A._wrapMain_closure.prototype = { call$1(_) { return A._translateReturnValue(this.main.call$0()); }, $signature: 88 }; A._wrapMain_closure0.prototype = { call$1(args) { return A._translateReturnValue(this.main.call$1(A.List_List$from(type$.List_dynamic._as(args), true, type$.String))); }, $signature: 88 }; A.ScssParser0.prototype = { get$indented() { return false; }, get$currentIndentation() { return 0; }, styleRuleSelector$0() { return this.almostAnyValue$0(); }, expectStatementSeparator$1($name) { var t1, _0_0; this.whitespaceWithoutComments$0(); t1 = this.scanner; if (t1._string_scanner$_position === t1.string.length) return; _0_0 = t1.peekChar$0(); if (59 === _0_0 || 125 === _0_0) return; t1.expectChar$1(59); }, expectStatementSeparator$0() { return this.expectStatementSeparator$1(null); }, atEndOfStatement$0() { var next = this.scanner.peekChar$0(); return next == null || next === 59 || next === 125 || next === 123; }, lookingAtChildren$0() { return this.scanner.peekChar$0() === 123; }, scanElse$1(ifIndentation) { var t3, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; _this.whitespace$0(); t3 = t1._string_scanner$_position; if (t1.scanChar$1(64)) { if (_this.scanIdentifier$2$caseSensitive("else", true)) return true; if (_this.scanIdentifier$2$caseSensitive("elseif", true)) { A.WarnForDeprecation_warnForDeprecation0(_this.logger, B.Deprecation_elseif_false_elseif, string$.x40elsei, t1.spanFrom$1(new A._SpanScannerState(t1, t3)), null); t1.set$position(t1._string_scanner$_position - 2); return true; } } t1.set$state(new A._SpanScannerState(t1, t2)); return false; }, children$1(_, child) { var children, _this = this, t1 = _this.scanner; t1.expectChar$1(123); _this.whitespaceWithoutComments$0(); children = A._setArrayType([], type$.JSArray_Statement_2); for (; true;) switch (t1.peekChar$0()) { case 36: children.push(_this.variableDeclarationWithoutNamespace$0()); break; case 47: switch (t1.peekChar$1(1)) { case 47: children.push(_this._scss0$_silentComment$0()); _this.whitespaceWithoutComments$0(); break; case 42: children.push(_this._scss0$_loudComment$0()); _this.whitespaceWithoutComments$0(); break; default: children.push(child.call$0()); } break; case 59: t1.readChar$0(); _this.whitespaceWithoutComments$0(); break; case 125: t1.expectChar$1(125); return children; default: children.push(child.call$0()); } }, statements$1(statement) { var t1, t2, _0_0, child, t3, _1_0, _this = this, statements = A._setArrayType([], type$.JSArray_Statement_2); _this.whitespaceWithoutComments$0(); for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) switch (t1.peekChar$0()) { case 36: statements.push(_this.variableDeclarationWithoutNamespace$0()); break; case 47: switch (t1.peekChar$1(1)) { case 47: statements.push(_this._scss0$_silentComment$0()); _this.whitespaceWithoutComments$0(); break; case 42: statements.push(_this._scss0$_loudComment$0()); _this.whitespaceWithoutComments$0(); break; default: _0_0 = statement.call$0(); if (_0_0 != null) { child = _0_0; t3 = true; } else { child = null; t3 = false; } if (t3) statements.push(child); } break; case 59: t1.readChar$0(); _this.whitespaceWithoutComments$0(); break; default: _1_0 = statement.call$0(); if (_1_0 != null) { child = _1_0; t3 = true; } else { child = null; t3 = false; } if (t3) statements.push(child); } return statements; }, _scss0$_silentComment$0() { var t2, t3, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expect$1("//"); t2 = t1.string.length; do { while (true) { if (t1._string_scanner$_position !== t2) { t3 = t1.readChar$0(); t3 = !(t3 === 10 || t3 === 13 || t3 === 12); } else t3 = false; if (!t3) break; } if (t1._string_scanner$_position === t2) break; _this.spaces$0(); } while (t1.scan$1("//")); if (_this.get$plainCss()) _this.error$2(0, string$.Silent, t1.spanFrom$1(start)); return _this.lastSilentComment = new A.SilentComment0(t1.substring$1(0, start.position), t1.spanFrom$1(start)); }, _scss0$_loudComment$0() { var t3, t4, buffer, t5, endPosition, t6, result, t1 = this.scanner, t2 = t1._string_scanner$_position; t1.expect$1("/*"); t3 = new A.StringBuffer(""); t4 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer0(t3, t4); t3._contents = "" + "/*"; $label0$1: for (; true;) switch (t1.peekChar$0()) { case 35: if (t1.peekChar$1(1) === 123) { t5 = this.singleInterpolation$0(); buffer._interpolation_buffer0$_flushText$0(); t4.push(t5); } else t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); break; case 42: t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); if (t1.peekChar$0() !== 47) continue $label0$1; t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); endPosition = t1._string_scanner$_position; t5 = t1._sourceFile; t6 = new A._SpanScannerState(t1, t2).position; t1 = new A._FileSpan(t5, t6, endPosition); t1._FileSpan$3(t5, t6, endPosition); t6 = type$.Object; t5 = A.List_List$of(t4, true, t6); t2 = t3._contents; if (t2.length !== 0) t5.push(t2.charCodeAt(0) == 0 ? t2 : t2); result = A.List_List$from(t5, false, t6); result.fixed$length = Array; result.immutable$list = Array; t2 = new A.Interpolation0(result, t1); t2.Interpolation$20(t5, t1); return new A.LoudComment0(t2); case 13: t1.readChar$0(); if (t1.peekChar$0() !== 10) t3._contents += A.Primitives_stringFromCharCode(10); break; case 12: t1.readChar$0(); t3._contents += A.Primitives_stringFromCharCode(10); break; default: t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } } }; A.Selector0.prototype = { assertNotBogus$1$name($name) { var t1; if (!this.accept$1(B._IsBogusVisitor_true0)) return; t1 = this.toString$0(0); A.EvaluationContext_current0().warn$2(0, "$" + $name + ": " + (t1 + string$.x20is_nov), B.Deprecation_XV6); }, toString$0(_) { var visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true); this.accept$1(visitor); return visitor._serialize0$_buffer.toString$0(0); }, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A._IsInvisibleVisitor2.prototype = { visitSelectorList$1(list) { return B.JSArray_methods.every$1(list.components, this.get$visitComplexSelector()); }, visitComplexSelector$1(complex) { var t1; if (!this.super$AnySelectorVisitor$visitComplexSelector0(complex)) t1 = this.includeBogus && complex.accept$1(B._IsBogusVisitor_false0); else t1 = true; return t1; }, visitPlaceholderSelector$1(placeholder) { return true; }, visitPseudoSelector$1(pseudo) { var selector, t1, _0_0 = pseudo.selector; if (_0_0 != null) { selector = _0_0; t1 = true; } else { selector = null; t1 = false; } if (t1) { if (pseudo.name === "not") t1 = this.includeBogus && selector.accept$1(B._IsBogusVisitor_true0); else t1 = this.visitSelectorList$1(selector); return t1; } else return false; } }; A._IsBogusVisitor0.prototype = { visitComplexSelector$1(complex) { var t2, t1 = complex.components; if (t1.length === 0) return complex.leadingCombinators.length !== 0; else { t2 = this.includeLeadingCombinator ? 0 : 1; 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)); } }, visitPseudoSelector$1(pseudo) { var selector = pseudo.selector; if (selector == null) return false; return pseudo.name === "has" ? selector.accept$1(B._IsBogusVisitor_false0) : selector.accept$1(B._IsBogusVisitor_true0); } }; A._IsBogusVisitor_visitComplexSelector_closure0.prototype = { call$1(component) { return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector); }, $signature: 52 }; A._IsUselessVisitor0.prototype = { visitComplexSelector$1(complex) { return complex.leadingCombinators.length > 1 || B.JSArray_methods.any$1(complex.components, new A._IsUselessVisitor_visitComplexSelector_closure0(this)); }, visitPseudoSelector$1(pseudo) { return pseudo.accept$1(B._IsBogusVisitor_true0); } }; A._IsUselessVisitor_visitComplexSelector_closure0.prototype = { call$1(component) { return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector); }, $signature: 52 }; A.__IsBogusVisitor_Object_AnySelectorVisitor0.prototype = {}; A.__IsInvisibleVisitor_Object_AnySelectorVisitor0.prototype = {}; A.__IsUselessVisitor_Object_AnySelectorVisitor0.prototype = {}; A.SelectorExpression0.prototype = { accept$1$1(visitor) { return visitor.visitSelectorExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "&"; }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A._nest_closure0.prototype = { call$1($arguments) { var t1 = {}, selectors = J.$index$asx($arguments, 0).get$asList(); if (selectors.length === 0) throw A.wrapException(A.SassScriptException$0(string$.x24selec, null)); t1.first = true; 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(); }, $signature: 27 }; A._nest__closure1.prototype = { call$1(selector) { var t1 = this._box_0, result = A.SassApiValue_assertSelector0(selector, !t1.first, null); t1.first = false; return result; }, $signature: 277 }; A._nest__closure2.prototype = { call$2($parent, child) { return child.resolveParentSelectors$1($parent); }, $signature: 278 }; A._append_closure1.prototype = { call$1($arguments) { var selectors = J.$index$asx($arguments, 0).get$asList(); if (selectors.length === 0) throw A.wrapException(A.SassScriptException$0(string$.x24selec, null)); return new A.MappedListIterable(selectors, new A._append__closure1(), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0>")).reduce$1(0, new A._append__closure2(A.EvaluationContext_current0().get$currentCallableSpan())).get$asSassList(); }, $signature: 27 }; A._append__closure1.prototype = { call$1(selector) { return A.SassApiValue_assertSelector0(selector, false, null); }, $signature: 277 }; A._append__closure2.prototype = { call$2($parent, child) { var t1 = child.components, t2 = this.span; return A.SelectorList$0(new A.MappedListIterable(t1, new A._append___closure0($parent, t2), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>")), t2).resolveParentSelectors$1($parent); }, $signature: 278 }; A._append___closure0.prototype = { call$1(complex) { var _0_0, component, rest, t1, newCompound, t2, _null = null; if (complex.leadingCombinators.length !== 0) throw A.wrapException(A.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", _null)); _0_0 = complex.components; if (_0_0.length >= 1) { component = _0_0[0]; rest = B.JSArray_methods.sublist$1(_0_0, 1); t1 = true; } else { rest = _null; component = rest; t1 = false; } if (!t1) throw A.wrapException(A.StateError$("Pattern matching error")); newCompound = A._prependParent0(component.selector); if (newCompound == null) throw A.wrapException(A.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", _null)); t1 = this.span; t2 = A._setArrayType([new A.ComplexSelectorComponent0(newCompound, A.List_List$unmodifiable(component.combinators, type$.CssValue_Combinator_2), t1)], type$.JSArray_ComplexSelectorComponent_2); B.JSArray_methods.addAll$1(t2, rest); return A.ComplexSelector$0(B.List_empty14, t2, t1, false); }, $signature: 61 }; A._extend_closure0.prototype = { call$1($arguments) { var target, source, _s8_ = "selector", _s8_0 = "extendee", _s8_1 = "extender", t1 = J.getInterceptor$asx($arguments), selector = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, _s8_); selector.assertNotBogus$1$name(_s8_); target = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, _s8_0); target.assertNotBogus$1$name(_s8_0); source = A.SassApiValue_assertSelector0(t1.$index($arguments, 2), false, _s8_1); source.assertNotBogus$1$name(_s8_1); return A.ExtensionStore__extendOrReplace0(selector, source, target, B.ExtendMode_allTargets_allTargets0, A.EvaluationContext_current0().get$currentCallableSpan()).get$asSassList(); }, $signature: 27 }; A._replace_closure0.prototype = { call$1($arguments) { var target, source, _s8_ = "selector", _s8_0 = "original", _s11_ = "replacement", t1 = J.getInterceptor$asx($arguments), selector = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, _s8_); selector.assertNotBogus$1$name(_s8_); target = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, _s8_0); target.assertNotBogus$1$name(_s8_0); source = A.SassApiValue_assertSelector0(t1.$index($arguments, 2), false, _s11_); source.assertNotBogus$1$name(_s11_); return A.ExtensionStore__extendOrReplace0(selector, source, target, B.ExtendMode_replace_replace0, A.EvaluationContext_current0().get$currentCallableSpan()).get$asSassList(); }, $signature: 27 }; A._unify_closure0.prototype = { call$1($arguments) { var selector2, _s9_ = "selector1", _s9_0 = "selector2", t1 = J.getInterceptor$asx($arguments), selector1 = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, _s9_); selector1.assertNotBogus$1$name(_s9_); selector2 = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, _s9_0); selector2.assertNotBogus$1$name(_s9_0); t1 = selector1.unify$1(selector2); t1 = t1 == null ? null : t1.get$asSassList(); return t1 == null ? B.C__SassNull0 : t1; }, $signature: 5 }; A._isSuperselector_closure0.prototype = { call$1($arguments) { var selector2, t1 = J.getInterceptor$asx($arguments), selector1 = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, "super"); selector1.assertNotBogus$1$name("super"); selector2 = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, "sub"); selector2.assertNotBogus$1$name("sub"); return A.listIsSuperselector0(selector1.components, selector2.components) ? B.SassBoolean_true0 : B.SassBoolean_false0; }, $signature: 21 }; A._simpleSelectors_closure0.prototype = { call$1($arguments) { var t1 = A.SassApiValue_assertCompoundSelector0(J.$index$asx($arguments, 0), "selector").components; return A.SassList$0(new A.MappedListIterable(t1, new A._simpleSelectors__closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), B.ListSeparator_rXA0, false); }, $signature: 27 }; A._simpleSelectors__closure0.prototype = { call$1(simple) { return new A.SassString0(A.serializeSelector0(simple, true), false); }, $signature: 551 }; A._parse_closure0.prototype = { call$1($arguments) { return A.SassApiValue_assertSelector0(J.$index$asx($arguments, 0), false, "selector").get$asSassList(); }, $signature: 27 }; A._prependParent_closure1.prototype = { call$0() { return this._0_0.length >= 1; }, $signature: 1 }; A._prependParent_closure2.prototype = { call$0() { return this._0_0[0]; }, $signature: 279 }; A.SelectorParser0.prototype = { parse$0() { return this.wrapSpanFormatException$1(new A.SelectorParser_parse_closure0(this)); }, parseCompoundSelector$0() { return this.wrapSpanFormatException$1(new A.SelectorParser_parseCompoundSelector_closure0(this)); }, _selector$_selectorList$0() { var t4, t5, lineBreak, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, t3 = t1._sourceFile, previousLine = t3.getLine$1(t2), components = A._setArrayType([_this._selector$_complexSelector$0()], type$.JSArray_ComplexSelector_2); _this.whitespace$0(); for (t4 = t1.string.length; t1.scanChar$1(44);) { _this.whitespace$0(); if (t1.peekChar$0() === 44) continue; t5 = t1._string_scanner$_position; if (t5 === t4) break; lineBreak = t3.getLine$1(t5) !== previousLine; if (lineBreak) previousLine = t3.getLine$1(t1._string_scanner$_position); components.push(_this._selector$_complexSelector$1$lineBreak(lineBreak)); } return A.SelectorList$0(components, _this.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _selector$_complexSelector$1$lineBreak(lineBreak) { var t4, lastCompound, initialCombinators, _0_0, t5, result, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, componentStart = new A._SpanScannerState(t1, t2), t3 = type$.JSArray_CssValue_Combinator_2, combinators = A._setArrayType([], t3), components = A._setArrayType([], type$.JSArray_ComplexSelectorComponent_2); for (t4 = type$.CssValue_Combinator_2, lastCompound = null, initialCombinators = null; true;) { _this.whitespace$0(); _0_0 = t1.peekChar$0(); if (43 === _0_0) { t5 = t1._string_scanner$_position; t1.readChar$0(); combinators.push(new A.CssValue0(B.Combinator_4QF0, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4)); continue; } if (62 === _0_0) { t5 = t1._string_scanner$_position; t1.readChar$0(); combinators.push(new A.CssValue0(B.Combinator_Cht0, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4)); continue; } if (126 === _0_0) { t5 = t1._string_scanner$_position; t1.readChar$0(); combinators.push(new A.CssValue0(B.Combinator_Htt0, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4)); continue; } if (_0_0 == null) break; if (91 !== _0_0) if (46 !== _0_0) if (35 !== _0_0) if (37 !== _0_0) if (58 !== _0_0) if (38 !== _0_0) if (42 !== _0_0) if (124 !== _0_0) t5 = _this.lookingAtIdentifier$0(); else t5 = true; else t5 = true; else t5 = true; else t5 = true; else t5 = true; else t5 = true; else t5 = true; else t5 = true; if (t5) { if (lastCompound != null) { t5 = _this.spanFrom$1(componentStart); result = A.List_List$from(combinators, false, t4); result.fixed$length = Array; result.immutable$list = Array; components.push(new A.ComplexSelectorComponent0(lastCompound, result, t5)); } else if (combinators.length !== 0) { componentStart = new A._SpanScannerState(t1, t1._string_scanner$_position); initialCombinators = combinators; } lastCompound = _this._selector$_compoundSelector$0(); combinators = A._setArrayType([], t3); if (t1.peekChar$0() === 38) t1.error$1(0, string$.x22x26__ma); continue; } break; } if (lastCompound != null) { t3 = _this.spanFrom$1(componentStart); components.push(new A.ComplexSelectorComponent0(lastCompound, A.List_List$unmodifiable(combinators, t4), t3)); } else if (combinators.length !== 0) initialCombinators = combinators; else t1.error$1(0, "expected selector."); t3 = initialCombinators == null ? B.List_empty14 : initialCombinators; return A.ComplexSelector$0(t3, components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)), lineBreak); }, _selector$_complexSelector$0() { return this._selector$_complexSelector$1$lineBreak(false); }, _selector$_compoundSelector$0() { var t3, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, components = A._setArrayType([_this._selector$_simpleSelector$0()], type$.JSArray_SimpleSelector_2); while (true) { t3 = t1.peekChar$0(); if (!(t3 === 42 || t3 === 91 || t3 === 46 || t3 === 35 || t3 === 37 || t3 === 58)) break; components.push(_this._selector$_simpleSelector$1$allowParent(false)); } return A.CompoundSelector$0(components, _this.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _selector$_simpleSelector$1$allowParent(allowParent) { var t2, $name, text, t3, suffix, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); if (allowParent == null) allowParent = _this._selector$_allowParent; switch (t1.peekChar$0()) { case 91: return _this._selector$_attributeSelector$0(); case 46: t2 = t1._string_scanner$_position; t1.expectChar$1(46); return new A.ClassSelector0(_this.identifier$0(), _this.spanFrom$1(new A._SpanScannerState(t1, t2))); case 35: t2 = t1._string_scanner$_position; t1.expectChar$1(35); return new A.IDSelector0(_this.identifier$0(), _this.spanFrom$1(new A._SpanScannerState(t1, t2))); case 37: t2 = t1._string_scanner$_position; t1.expectChar$1(37); $name = _this.identifier$0(); t2 = _this.spanFrom$1(new A._SpanScannerState(t1, t2)); if (!_this._selector$_allowPlaceholder) _this.error$2(0, string$.Placeh, t1.spanFrom$1(start)); return new A.PlaceholderSelector0($name, t2); case 58: return _this._selector$_pseudoSelector$0(); case 38: t2 = t1._string_scanner$_position; t1.expectChar$1(38); if (_this.lookingAtIdentifierBody$0()) { text = new A.StringBuffer(""); _this._parser0$_identifierBody$1(text); if (text._contents.length === 0) t1.error$1(0, "Expected identifier body."); t3 = text._contents; suffix = t3.charCodeAt(0) == 0 ? t3 : t3; } else suffix = null; t2 = _this.spanFrom$1(new A._SpanScannerState(t1, t2)); if (!allowParent) _this.error$2(0, "Parent selectors aren't allowed here.", t1.spanFrom$1(start)); return new A.ParentSelector0(suffix, t2); default: return _this._selector$_typeOrUniversalSelector$0(); } }, _selector$_simpleSelector$0() { return this._selector$_simpleSelector$1$allowParent(null); }, _selector$_attributeSelector$0() { var $name, operator, next, value, modifier, _this = this, _null = null, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$1(91); _this.whitespace$0(); $name = _this._selector$_attributeName$0(); _this.whitespace$0(); if (t1.scanChar$1(93)) return new A.AttributeSelector0($name, _null, _null, _null, _this.spanFrom$1(start)); operator = _this._selector$_attributeOperator$0(); _this.whitespace$0(); next = t1.peekChar$0(); value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0(); _this.whitespace$0(); next = t1.peekChar$0(); modifier = next != null && A.CharacterExtension_get_isAlphabetic0(next) ? A.Primitives_stringFromCharCode(t1.readChar$0()) : _null; t1.expectChar$1(93); return new A.AttributeSelector0($name, operator, value, modifier, _this.spanFrom$1(start)); }, _selector$_attributeName$0() { var nameOrNamespace, _this = this, t1 = _this.scanner; if (t1.scanChar$1(42)) { t1.expectChar$1(124); return new A.QualifiedName0(_this.identifier$0(), "*"); } if (t1.scanChar$1(124)) return new A.QualifiedName0(_this.identifier$0(), ""); nameOrNamespace = _this.identifier$0(); if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61) return new A.QualifiedName0(nameOrNamespace, null); t1.readChar$0(); return new A.QualifiedName0(_this.identifier$0(), nameOrNamespace); }, _selector$_attributeOperator$0() { var t1 = this.scanner, t2 = t1._string_scanner$_position; switch (t1.readChar$0()) { case 61: return B.AttributeOperator_ES60; case 126: t1.expectChar$1(61); return B.AttributeOperator_r600; case 124: t1.expectChar$1(61); return B.AttributeOperator_ivT0; case 94: t1.expectChar$1(61); return B.AttributeOperator_eot0; case 36: t1.expectChar$1(61); return B.AttributeOperator_BGd0; case 42: t1.expectChar$1(61); return B.AttributeOperator_8aB0; default: t1.error$2$position(0, 'Expected "]".', t2); } }, _selector$_pseudoSelector$0() { var element, $name, unvendored, selector, argument, t2, _this = this, _null = null, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$1(58); element = t1.scanChar$1(58); $name = _this.identifier$0(); if (!t1.scanChar$1(40)) return A.PseudoSelector$0($name, _this.spanFrom$1(start), _null, element, _null); _this.whitespace$0(); unvendored = A.unvendor0($name); if (element) if ($._selectorPseudoElements0.contains$1(0, unvendored)) { selector = _this._selector$_selectorList$0(); argument = _null; } else { argument = _this.declarationValue$1$allowEmpty(true); selector = _null; } else if ($._selectorPseudoClasses0.contains$1(0, unvendored)) { selector = _this._selector$_selectorList$0(); argument = _null; } else if (unvendored === "nth-child" || unvendored === "nth-last-child") { argument = _this._selector$_aNPlusB$0(); _this.whitespace$0(); t2 = t1.peekChar$1(-1); if ((t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12) && t1.peekChar$0() !== 41) { _this.expectIdentifier$1("of"); argument += " of"; _this.whitespace$0(); selector = _this._selector$_selectorList$0(); } else selector = _null; } else { argument = B.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true)); selector = _null; } t1.expectChar$1(41); return A.PseudoSelector$0($name, _this.spanFrom$1(start), argument, element, selector); }, _selector$_aNPlusB$0() { var t1, _0_0, t2, $self, next, _this = this; $label0$0: { t1 = _this.scanner; _0_0 = t1.peekChar$0(); if (101 === _0_0 || 69 === _0_0) { _this.expectIdentifier$1("even"); return "even"; } if (111 === _0_0 || 79 === _0_0) { _this.expectIdentifier$1("odd"); return "odd"; } if (43 === _0_0 || 45 === _0_0) { t2 = "" + A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } t2 = ""; } $self = t1.peekChar$0(); if ($self != null && $self >= 48 && $self <= 57) { do { t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); $self = t1.peekChar$0(); } while ($self != null && $self >= 48 && $self <= 57); _this.whitespace$0(); if (!_this.scanIdentChar$1(110)) return t2.charCodeAt(0) == 0 ? t2 : t2; } else _this.expectIdentChar$1(110); t2 += A.Primitives_stringFromCharCode(110); _this.whitespace$0(); next = t1.peekChar$0(); if (next !== 43 && next !== 45) return t2.charCodeAt(0) == 0 ? t2 : t2; t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); _this.whitespace$0(); $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) t1.error$1(0, "Expected a number."); do { t2 += A.Primitives_stringFromCharCode(t1.readChar$0()); $self = t1.peekChar$0(); } while ($self != null && $self >= 48 && $self <= 57); return t2.charCodeAt(0) == 0 ? t2 : t2; }, _selector$_typeOrUniversalSelector$0() { var nameOrNamespace, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); if (t1.scanChar$1(42)) { if (!t1.scanChar$1(124)) return new A.UniversalSelector0(null, _this.spanFrom$1(start)); 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)); } else if (t1.scanChar$1(124)) 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)); nameOrNamespace = _this.identifier$0(); if (!t1.scanChar$1(124)) return new A.TypeSelector0(new A.QualifiedName0(nameOrNamespace, null), _this.spanFrom$1(start)); else if (t1.scanChar$1(42)) return new A.UniversalSelector0(nameOrNamespace, _this.spanFrom$1(start)); else return new A.TypeSelector0(new A.QualifiedName0(_this.identifier$0(), nameOrNamespace), _this.spanFrom$1(start)); } }; A.SelectorParser_parse_closure0.prototype = { call$0() { var t1 = this.$this, selector = t1._selector$_selectorList$0(); t1 = t1.scanner; if (t1._string_scanner$_position !== t1.string.length) t1.error$1(0, "expected selector."); return selector; }, $signature: 553 }; A.SelectorParser_parseCompoundSelector_closure0.prototype = { call$0() { var t1 = this.$this, compound = t1._selector$_compoundSelector$0(); t1 = t1.scanner; if (t1._string_scanner$_position !== t1.string.length) t1.error$1(0, "expected selector."); return compound; }, $signature: 554 }; A.SelectorSearchVisitor0.prototype = { visitAttributeSelector$1(attribute) { return null; }, visitClassSelector$1(klass) { return null; }, visitIDSelector$1(id) { return null; }, visitParentSelector$1(placeholder) { return null; }, visitPlaceholderSelector$1(placeholder) { return null; }, visitTypeSelector$1(type) { return null; }, visitUniversalSelector$1(universal) { return null; }, visitComplexSelector$1(complex) { return A.IterableExtension_search0(complex.components, new A.SelectorSearchVisitor_visitComplexSelector_closure0(this)); }, visitCompoundSelector$1(compound) { return A.IterableExtension_search0(compound.components, new A.SelectorSearchVisitor_visitCompoundSelector_closure0(this)); }, visitPseudoSelector$1(pseudo) { return A.NullableExtension_andThen0(pseudo.selector, this.get$visitSelectorList()); }, visitSelectorList$1(list) { return A.IterableExtension_search0(list.components, this.get$visitComplexSelector()); } }; A.SelectorSearchVisitor_visitComplexSelector_closure0.prototype = { call$1(component) { return this.$this.visitCompoundSelector$1(component.selector); }, $signature() { return A._instanceType(this.$this)._eval$1("SelectorSearchVisitor0.T?(ComplexSelectorComponent0)"); } }; A.SelectorSearchVisitor_visitCompoundSelector_closure0.prototype = { call$1(simple) { return simple.accept$1(this.$this); }, $signature() { return A._instanceType(this.$this)._eval$1("SelectorSearchVisitor0.T?(SimpleSelector0)"); } }; A.serialize_closure0.prototype = { call$1(codeUnit) { return codeUnit > 127; }, $signature: 47 }; A._SerializeVisitor0.prototype = { visitCssStylesheet$1(node) { var t1, t2, t3, t4, t5, t6, t7, previous, previous0, t8, _this = this; 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();) { previous0 = t1.get$current(t1); if (t2) t8 = t3 ? previous0.accept$1(B._IsInvisibleVisitor_true_true0) : previous0.accept$1(B._IsInvisibleVisitor_true_false0); else t8 = false; if (t8) continue; if (previous != null) { if (t5._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment0)) t6.writeCharCode$1(59); if (_this._serialize0$_isTrailingComment$2(previous0, previous)) { if (t4) t6.writeCharCode$1(32); } else { if (t4) t6.write$1(0, t7); if (previous.get$isGroupEnd()) if (t4) t6.write$1(0, t7); } } previous0.accept$1(_this); previous = previous0; } if (previous != null) t1 = (t5._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment0)) && t4; else t1 = false; if (t1) t6.writeCharCode$1(59); }, visitCssComment$1(node) { this._serialize0$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssComment_closure0(this, node)); }, visitCssAtRule$1(node) { var t1, _this = this; _this._serialize0$_writeIndentation$0(); t1 = _this._serialize0$_buffer; t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssAtRule_closure0(_this, node)); if (!node.isChildless) { if (_this._serialize0$_style !== B.OutputStyle_10) t1.writeCharCode$1(32); _this._serialize0$_visitChildren$1(node); } }, visitCssMediaRule$1(node) { var t1, _this = this; _this._serialize0$_writeIndentation$0(); t1 = _this._serialize0$_buffer; t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssMediaRule_closure0(_this, node)); if (_this._serialize0$_style !== B.OutputStyle_10) t1.writeCharCode$1(32); _this._serialize0$_visitChildren$1(node); }, visitCssImport$1(node) { this._serialize0$_writeIndentation$0(); this._serialize0$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssImport_closure0(this, node)); }, _serialize0$_writeImportUrl$1(url) { var urlContents, maybeQuote, _this = this; if (_this._serialize0$_style !== B.OutputStyle_10 || url.charCodeAt(0) !== 117) { _this._serialize0$_buffer.write$1(0, url); return; } urlContents = B.JSString_methods.substring$2(url, 4, url.length - 1); maybeQuote = urlContents.charCodeAt(0); if (maybeQuote === 39 || maybeQuote === 34) _this._serialize0$_buffer.write$1(0, urlContents); else _this._serialize0$_visitQuotedString$1(urlContents); }, visitCssKeyframeBlock$1(node) { var t1, _this = this; _this._serialize0$_writeIndentation$0(); t1 = _this._serialize0$_buffer; t1.forSpan$2(node.selector.span, new A._SerializeVisitor_visitCssKeyframeBlock_closure0(_this, node)); if (_this._serialize0$_style !== B.OutputStyle_10) t1.writeCharCode$1(32); _this._serialize0$_visitChildren$1(node); }, _serialize0$_visitMediaQuery$1(query) { var modifier, t1, _1_0, type, _2_0, condition, operator, t2, _this = this, _0_0 = query.modifier; if (_0_0 != null) { modifier = _0_0; t1 = true; } else { modifier = null; t1 = false; } if (t1) { t1 = _this._serialize0$_buffer; t1.write$1(0, modifier); t1.writeCharCode$1(32); } _1_0 = query.type; if (_1_0 != null) { type = _1_0; t1 = true; } else { type = null; t1 = false; } if (t1) { t1 = _this._serialize0$_buffer; t1.write$1(0, type); if (query.conditions.length !== 0) t1.write$1(0, " and "); } _2_0 = query.conditions; if (_2_0.length === 1) t1 = B.JSString_methods.startsWith$1(_2_0[0], "(not "); else t1 = false; if (t1) { t1 = _this._serialize0$_buffer; t1.write$1(0, "not "); condition = B.JSArray_methods.get$first(_2_0); t1.write$1(0, B.JSString_methods.substring$2(condition, 5, condition.length - 1)); } else { operator = query.conjunction ? "and" : "or"; t1 = _this._serialize0$_style === B.OutputStyle_10 ? operator + " " : " " + operator + " "; t2 = _this._serialize0$_buffer; _this._serialize0$_writeBetween$3(_2_0, t1, t2.get$write(t2)); } }, visitCssStyleRule$1(node) { var t1, _this = this; _this._serialize0$_writeIndentation$0(); t1 = _this._serialize0$_buffer; t1.forSpan$2(node._style_rule0$_selector._box0$_inner.value.span, new A._SerializeVisitor_visitCssStyleRule_closure0(_this, node)); if (_this._serialize0$_style !== B.OutputStyle_10) t1.writeCharCode$1(32); _this._serialize0$_visitChildren$1(node); }, visitCssSupportsRule$1(node) { var t1, _this = this; _this._serialize0$_writeIndentation$0(); t1 = _this._serialize0$_buffer; t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssSupportsRule_closure0(_this, node)); if (_this._serialize0$_style !== B.OutputStyle_10) t1.writeCharCode$1(32); _this._serialize0$_visitChildren$1(node); }, visitCssDeclaration$1(node) { var error, stackTrace, error0, stackTrace0, t1, t2, exception, _this = this; _this._serialize0$_writeIndentation$0(); t1 = node.name; _this._serialize0$_write$1(t1); t2 = _this._serialize0$_buffer; t2.writeCharCode$1(58); if (J.startsWith$1$s(t1.value, "--") && node.parsedAsCustomProperty) t2.forSpan$2(node.value.span, new A._SerializeVisitor_visitCssDeclaration_closure1(_this, node)); else { if (_this._serialize0$_style !== B.OutputStyle_10) t2.writeCharCode$1(32); try { t2.forSpan$2(node.valueSpanForMap, new A._SerializeVisitor_visitCssDeclaration_closure2(_this, node)); } catch (exception) { t1 = A.unwrapException(exception); if (t1 instanceof A.MultiSpanSassScriptException0) { error = t1; stackTrace = A.getTraceFromException(exception); A.throwWithTrace0(A.MultiSpanSassException$0(error.message, node.value.span, error.primaryLabel, error.secondarySpans, null), error, stackTrace); } else if (t1 instanceof A.SassScriptException0) { error0 = t1; stackTrace0 = A.getTraceFromException(exception); t1 = error0.message; A.throwWithTrace0(new A.SassException0(B.Set_empty, t1, node.value.span), error0, stackTrace0); } else throw exception; } } }, _serialize0$_writeFoldedValue$1(node) { var t1, t2, next, t3, scanner = A.StringScanner$(type$.SassString_2._as(node.value.value)._string0$_text, null, null); for (t1 = scanner.string.length, t2 = this._serialize0$_buffer; scanner._string_scanner$_position !== t1;) { next = scanner.readChar$0(); if (next !== 10) { t2.writeCharCode$1(next); continue; } t2.writeCharCode$1(32); while (true) { t3 = scanner.peekChar$0(); if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12)) break; scanner.readChar$0(); } } }, _serialize0$_writeReindentedValue$1(node) { var _0_0, t1, _this = this, value = type$.SassString_2._as(node.value.value)._string0$_text; $label0$0: { _0_0 = _this._serialize0$_minimumIndentation$1(value); if (_0_0 == null) { _this._serialize0$_buffer.write$1(0, value); break $label0$0; } if (-1 === _0_0) { t1 = _this._serialize0$_buffer; t1.write$1(0, A.trimAsciiRight0(value, true)); t1.writeCharCode$1(32); break $label0$0; } t1 = node.name.span; t1 = t1.get$start(t1); _this._serialize0$_writeWithIndent$2(value, Math.min(_0_0, t1.file.getColumn$1(t1.offset))); } }, _serialize0$_minimumIndentation$1(text) { var character, t2, min, next, min0, scanner = A.LineScanner$(text), t1 = scanner.string.length; while (true) { if (scanner._string_scanner$_position !== t1) { character = scanner.super$StringScanner$readChar(); scanner._adjustLineAndColumn$1(character); t2 = character !== 10; } else t2 = false; if (!t2) break; } if (scanner._string_scanner$_position === t1) return scanner.peekChar$1(-1) === 10 ? -1 : null; for (min = null; scanner._string_scanner$_position !== t1;) { for (; scanner._string_scanner$_position !== t1;) { next = scanner.peekChar$0(); if (next !== 32 && next !== 9) break; scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar()); } if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10)) continue; min0 = scanner._line_scanner$_column; min = min == null ? min0 : Math.min(min, min0); while (true) { if (scanner._string_scanner$_position !== t1) { character = scanner.super$StringScanner$readChar(); scanner._adjustLineAndColumn$1(character); t2 = character !== 10; } else t2 = false; if (!t2) break; } } return min == null ? -1 : min; }, _serialize0$_writeWithIndent$2(text, minimumIndentation) { var t1, t2, t3, character, lineStart, newlines, end, scanner = A.LineScanner$(text); for (t1 = scanner.string, t2 = t1.length, t3 = this._serialize0$_buffer; scanner._string_scanner$_position !== t2;) { character = scanner.super$StringScanner$readChar(); scanner._adjustLineAndColumn$1(character); if (character === 10) break; t3.writeCharCode$1(character); } for (; true;) { lineStart = scanner._string_scanner$_position; for (newlines = 1; true;) { if (scanner._string_scanner$_position === t2) { t3.writeCharCode$1(32); return; } $label0$2: { character = scanner.super$StringScanner$readChar(); scanner._adjustLineAndColumn$1(character); if (32 === character || 9 === character) continue; if (10 === character) { lineStart = scanner._string_scanner$_position; ++newlines; break $label0$2; } break; } } this._serialize0$_writeTimes$2(10, newlines); this._serialize0$_writeIndentation$0(); end = scanner._string_scanner$_position; t3.write$1(0, B.JSString_methods.substring$2(t1, lineStart + minimumIndentation, end)); for (; true;) { if (scanner._string_scanner$_position === t2) return; character = scanner.super$StringScanner$readChar(); scanner._adjustLineAndColumn$1(character); if (character === 10) break; t3.writeCharCode$1(character); } } }, visitCalculation$1(value) { var t2, _this = this, t1 = _this._serialize0$_buffer; t1.write$1(0, value.name); t1.writeCharCode$1(40); t2 = _this._serialize0$_style === B.OutputStyle_10 ? "," : ", "; _this._serialize0$_writeBetween$3(value.$arguments, t2, _this.get$_serialize0$_writeCalculationValue()); t1.writeCharCode$1(41); }, _serialize0$_writeCalculationValue$1(value) { var _2_5, t1, _0_0, _1_0, unit, t2, operator, left, right, parenthesizeLeft, operatorWhitespace, parenthesizeRight, _this = this, _null = null; $label0$0: { _2_5 = A._InitializedCell$(new A._SerializeVisitor__writeCalculationValue_closure0(value)); t1 = value instanceof A.SassNumber0; if (t1 && _2_5._readFinal$0() && value.get$hasComplexUnits()) { if (!_this._serialize0$_inspect) throw A.wrapException(A.SassScriptException$0(A.S(value) + " isn't a valid CSS value.", _null)); _this._serialize0$_writeNumber$1(value._number1$_value); _this._serialize0$_buffer.write$1(0, value.get$unitString()); break $label0$0; } if (t1 && _2_5._readFinal$0()) { $label1$1: { _0_0 = value._number1$_value; if (1 / 0 === _0_0) { _this._serialize0$_buffer.write$1(0, "infinity"); break $label1$1; } if (-1 / 0 === _0_0) { _this._serialize0$_buffer.write$1(0, "-infinity"); break $label1$1; } if (isNaN(_0_0)) _this._serialize0$_buffer.write$1(0, "NaN"); } _1_0 = A.IterableExtension_get_firstOrNull(J.get$numeratorUnits$x(value)); if (_1_0 != null) { unit = _1_0; t1 = true; } else { unit = _null; t1 = false; } if (t1) { t1 = _this._serialize0$_style !== B.OutputStyle_10; if (t1) _this._serialize0$_buffer.writeCharCode$1(32); t2 = _this._serialize0$_buffer; t2.writeCharCode$1(42); if (t1) t2.writeCharCode$1(32); t2.writeCharCode$1(49); t2.write$1(0, unit); } break $label0$0; } if (value instanceof A.Value0) { value.accept$1(_this); break $label0$0; } if (value instanceof A.CalculationOperation0) { operator = value._calculation0$_operator; left = value._calculation0$_left; right = value._calculation0$_right; right = right; t1 = true; } else { right = _null; left = right; operator = left; t1 = false; } if (t1) { parenthesizeLeft = left instanceof A.CalculationOperation0 && left._calculation0$_operator.precedence < operator.precedence; if (parenthesizeLeft) _this._serialize0$_buffer.writeCharCode$1(40); _this._serialize0$_writeCalculationValue$1(left); if (parenthesizeLeft) _this._serialize0$_buffer.writeCharCode$1(41); operatorWhitespace = _this._serialize0$_style !== B.OutputStyle_10 || operator.precedence === 1; if (operatorWhitespace) _this._serialize0$_buffer.writeCharCode$1(32); t1 = _this._serialize0$_buffer; t1.write$1(0, operator.operator); if (operatorWhitespace) t1.writeCharCode$1(32); if (!(right instanceof A.CalculationOperation0 && _this._serialize0$_parenthesizeCalculationRhs$2(operator, right._calculation0$_operator))) parenthesizeRight = operator === B.CalculationOperator_OvN0 && right instanceof A.SassNumber0 && !isFinite(right._number1$_value) && right.get$hasUnits(); else parenthesizeRight = true; if (parenthesizeRight) t1.writeCharCode$1(40); _this._serialize0$_writeCalculationValue$1(right); if (parenthesizeRight) t1.writeCharCode$1(41); } } }, _serialize0$_parenthesizeCalculationRhs$2(outer, right) { var t1; $label0$0: { if (B.CalculationOperator_OvN0 === outer) { t1 = true; break $label0$0; } if (B.CalculationOperator_IyK0 === outer) { t1 = false; break $label0$0; } t1 = right === B.CalculationOperator_IyK0 || right === B.CalculationOperator_2bx0; break $label0$0; } return t1; }, visitColor$1(value) { var hexLength, _0_0, $name, t1, _1_0, format, opaque, t2, _3_0, _this = this; if (_this._serialize0$_style === B.OutputStyle_10) if (!A.fuzzyEquals0(value._color1$_alpha, 1)) _this._serialize0$_writeRgb$1(value); else { hexLength = _this._serialize0$_canUseShortHex$1(value) ? 4 : 7; _0_0 = $.$get$namesByColor0().$index(0, value); if (_0_0 != null) { $name = _0_0; t1 = true; } else { $name = null; t1 = false; } if (t1 && $name.length <= hexLength) _this._serialize0$_buffer.write$1(0, $name); else { t1 = _this._serialize0$_buffer; if (_this._serialize0$_canUseShortHex$1(value)) { t1.writeCharCode$1(35); t1.writeCharCode$1(A.hexCharFor0(value.get$red(value) & 15)); t1.writeCharCode$1(A.hexCharFor0(value.get$green(value) & 15)); t1.writeCharCode$1(A.hexCharFor0(value.get$blue(value) & 15)); } else { t1.writeCharCode$1(35); _this._serialize0$_writeHexComponent$1(value.get$red(value)); _this._serialize0$_writeHexComponent$1(value.get$green(value)); _this._serialize0$_writeHexComponent$1(value.get$blue(value)); } } } else { _1_0 = value.format; if (_1_0 != null) { format = _1_0; t1 = true; } else { format = null; t1 = false; } if (t1) $label0$0: { if (B._ColorFormatEnum_rgbFunction0 === format) { _this._serialize0$_writeRgb$1(value); break $label0$0; } if (B._ColorFormatEnum_hslFunction0 === format) { t1 = value._color1$_alpha; opaque = A.fuzzyEquals0(t1, 1); t2 = _this._serialize0$_buffer; t2.write$1(0, opaque ? "hsl(" : "hsla("); _this._serialize0$_writeNumber$1(value.get$hue(value)); t2.write$1(0, ", "); _this._serialize0$_writeNumber$1(value.get$saturation(value)); t2.writeCharCode$1(37); t2.write$1(0, ", "); _this._serialize0$_writeNumber$1(value.get$lightness(value)); t2.writeCharCode$1(37); if (!opaque) { t2.write$1(0, ", "); _this._serialize0$_writeNumber$1(t1); } t2.writeCharCode$1(41); break $label0$0; } if (format instanceof A.SpanColorFormat0) { _this._serialize0$_buffer.write$1(0, format._color1$_span.get$text()); break $label0$0; } } else { _3_0 = $.$get$namesByColor0().$index(0, value); if (_3_0 != null) { $name = _3_0; t1 = true; } else { $name = null; t1 = false; } if (t1 && !A.fuzzyEquals0(value._color1$_alpha, 0)) _this._serialize0$_buffer.write$1(0, $name); else if (A.fuzzyEquals0(value._color1$_alpha, 1)) { _this._serialize0$_buffer.writeCharCode$1(35); _this._serialize0$_writeHexComponent$1(value.get$red(value)); _this._serialize0$_writeHexComponent$1(value.get$green(value)); _this._serialize0$_writeHexComponent$1(value.get$blue(value)); } else _this._serialize0$_writeRgb$1(value); } } }, _serialize0$_writeRgb$1(value) { var t3, t1 = value._color1$_alpha, opaque = A.fuzzyEquals0(t1, 1), t2 = this._serialize0$_buffer; t2.write$1(0, opaque ? "rgb(" : "rgba("); t2.write$1(0, value.get$red(value)); t3 = this._serialize0$_style === B.OutputStyle_10; t2.write$1(0, t3 ? "," : ", "); t2.write$1(0, value.get$green(value)); t2.write$1(0, t3 ? "," : ", "); t2.write$1(0, value.get$blue(value)); if (!opaque) { t2.write$1(0, t3 ? "," : ", "); this._serialize0$_writeNumber$1(t1); } t2.writeCharCode$1(41); }, _serialize0$_canUseShortHex$1(color) { var t1 = color.get$red(color); if ((t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4)) { t1 = color.get$green(color); if ((t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4)) { t1 = color.get$blue(color); t1 = (t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4); } else t1 = false; } else t1 = false; return t1; }, _serialize0$_writeHexComponent$1(color) { var t1 = this._serialize0$_buffer; t1.writeCharCode$1(A.hexCharFor0(B.JSInt_methods._shrOtherPositive$1(color, 4))); t1.writeCharCode$1(A.hexCharFor0(color & 15)); }, visitList$1(value) { var t2, t3, singleton, t4, t5, _this = this, t1 = value._list1$_hasBrackets; if (t1) _this._serialize0$_buffer.writeCharCode$1(91); else if (value._list1$_contents.length === 0) { if (!_this._serialize0$_inspect) throw A.wrapException(A.SassScriptException$0("() isn't a valid CSS value.", null)); _this._serialize0$_buffer.write$1(0, "()"); return; } t2 = _this._serialize0$_inspect; if (t2) if (value._list1$_contents.length === 1) { t3 = value._list1$_separator; t3 = t3 === B.ListSeparator_rXA0 || t3 === B.ListSeparator_zg90; singleton = t3; } else singleton = false; else singleton = false; if (singleton && !t1) _this._serialize0$_buffer.writeCharCode$1(40); t3 = value._list1$_contents; t3 = t2 ? t3 : new A.WhereIterable(t3, new A._SerializeVisitor_visitList_closure2(), A._arrayInstanceType(t3)._eval$1("WhereIterable<1>")); t4 = value._list1$_separator; t5 = _this._serialize0$_separatorString$1(t4); _this._serialize0$_writeBetween$3(t3, t5, t2 ? new A._SerializeVisitor_visitList_closure3(_this, value) : new A._SerializeVisitor_visitList_closure4(_this)); if (singleton) { t2 = _this._serialize0$_buffer; t2.write$1(0, t4.separator); if (!t1) t2.writeCharCode$1(41); } if (t1) _this._serialize0$_buffer.writeCharCode$1(93); }, _serialize0$_separatorString$1(separator) { var t1; $label0$0: { if (B.ListSeparator_rXA0 === separator) { t1 = this._serialize0$_style === B.OutputStyle_10 ? "," : ", "; break $label0$0; } if (B.ListSeparator_zg90 === separator) { t1 = this._serialize0$_style === B.OutputStyle_10 ? "/" : " / "; break $label0$0; } if (B.ListSeparator_EVt0 === separator) { t1 = " "; break $label0$0; } t1 = ""; break $label0$0; } return t1; }, _serialize0$_elementNeedsParens$2(separator, value) { var t1; $label1$1: { if (value instanceof A.SassList0 && value._list1$_contents.length > 1 && !value._list1$_hasBrackets) { $label0$0: { if (B.ListSeparator_rXA0 === separator) { t1 = value._list1$_separator === B.ListSeparator_rXA0; break $label0$0; } if (B.ListSeparator_zg90 === separator) { t1 = value._list1$_separator; t1 = t1 === B.ListSeparator_rXA0 || t1 === B.ListSeparator_zg90; break $label0$0; } t1 = value._list1$_separator !== B.ListSeparator_undecided_null_undecided0; break $label0$0; } break $label1$1; } t1 = false; break $label1$1; } return t1; }, visitMap$1(map) { var t1, t2, _this = this; if (!_this._serialize0$_inspect) throw A.wrapException(A.SassScriptException$0(map.toString$0(0) + " isn't a valid CSS value.", null)); t1 = _this._serialize0$_buffer; t1.writeCharCode$1(40); t2 = map._map0$_contents; _this._serialize0$_writeBetween$3(t2.get$entries(t2), ", ", new A._SerializeVisitor_visitMap_closure0(_this)); t1.writeCharCode$1(41); }, _serialize0$_writeMapElement$1(value) { var needsParens = value instanceof A.SassList0 && value._list1$_separator === B.ListSeparator_rXA0 && !value._list1$_hasBrackets; if (needsParens) this._serialize0$_buffer.writeCharCode$1(40); value.accept$1(this); if (needsParens) this._serialize0$_buffer.writeCharCode$1(41); }, visitNumber$1(value) { var before, after, t1, _1_0, first, _this = this, _null = null, _0_0 = value.asSlash; if (type$.Record_2_nullable_Object_and_nullable_Object._is(_0_0)) { before = _0_0._0; after = _0_0._1; t1 = true; } else { after = _null; before = after; t1 = false; } if (t1) { _this.visitNumber$1(before); _this._serialize0$_buffer.writeCharCode$1(47); _this.visitNumber$1(after); return; } t1 = value._number1$_value; if (!isFinite(t1)) { _this.visitCalculation$1(new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object))); return; } _this._serialize0$_writeNumber$1(t1); if (!_this._serialize0$_inspect) { if (value.get$hasComplexUnits()) throw A.wrapException(A.SassScriptException$0(value.toString$0(0) + " isn't a valid CSS value.", _null)); _1_0 = value.get$numeratorUnits(value); if (_1_0.length === 1) { first = _1_0[0]; t1 = true; } else { first = _null; t1 = false; } if (t1) _this._serialize0$_buffer.write$1(0, first); } else _this._serialize0$_buffer.write$1(0, value.get$unitString()); }, _serialize0$_writeNumber$1(number) { var integer, t1, text, _this = this, _0_0 = A.fuzzyAsInt0(number); if (_0_0 != null) { integer = _0_0; t1 = true; } else { integer = null; t1 = false; } if (t1) { _this._serialize0$_buffer.write$1(0, _this._serialize0$_removeExponent$1(J.toString$0$(integer))); return; } text = _this._serialize0$_removeExponent$1(B.JSNumber_methods.toString$0(number)); if (text.length < 12) { if (_this._serialize0$_style === B.OutputStyle_10 && text.charCodeAt(0) === 48) text = B.JSString_methods.substring$1(text, 1); _this._serialize0$_buffer.write$1(0, text); return; } _this._serialize0$_writeRounded$1(text); }, _serialize0$_removeExponent$1(text) { var buffer, t2, t3, additionalZeroes, negative = text.charCodeAt(0) === 45, exponent = A._Cell$(), t1 = text.length, i = 0; while (true) { if (!(i < t1)) { buffer = null; break; } c$0: { if (text.charCodeAt(i) !== 101) break c$0; buffer = new A.StringBuffer(""); t2 = buffer._contents = "" + A.Primitives_stringFromCharCode(text.charCodeAt(0)); if (negative) { t2 += A.Primitives_stringFromCharCode(text.charCodeAt(1)); buffer._contents = t2; if (i > 3) buffer._contents = t2 + B.JSString_methods.substring$2(text, 3, i); } else if (i > 2) buffer._contents = t2 + B.JSString_methods.substring$2(text, 2, i); exponent._value = A.int_parse(B.JSString_methods.substring$2(text, i + 1, t1), null); break; } ++i; } if (buffer == null) return text; if (exponent._readLocal$0() > 0) { t1 = exponent._readLocal$0(); t2 = buffer._contents; t3 = negative ? 1 : 0; additionalZeroes = t1 - (t2.length - 1 - t3); for (t1 = t2, i = 0; i < additionalZeroes; ++i) t1 = buffer._contents += A.Primitives_stringFromCharCode(48); return t1.charCodeAt(0) == 0 ? t1 : t1; } else { negative = text.charCodeAt(0) === 45; t1 = (negative ? "" + A.Primitives_stringFromCharCode(45) : "") + "0."; t2 = exponent.__late_helper$_name; i = -1; while (true) { t3 = exponent._value; if (t3 === exponent) A.throwExpression(A.LateError$localNI(t2)); if (!(i > t3)) break; t1 += A.Primitives_stringFromCharCode(48); --i; } if (negative) { t2 = buffer._contents; t2 = B.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1); } else t2 = buffer; t2 = t1 + A.S(t2); return t2.charCodeAt(0) == 0 ? t2 : t2; } }, _serialize0$_writeRounded$1(text) { var t1, digits, negative, textIndex, digitsIndex, textIndex0, codeUnit, digitsIndex0, indexAfterPrecision, digitsIndex1, newDigit, writtenIndex, t2, _this = this; if (B.JSString_methods.endsWith$1(text, ".0")) { _this._serialize0$_buffer.write$1(0, B.JSString_methods.substring$2(text, 0, text.length - 2)); return; } t1 = text.length; digits = new Uint8Array(t1 + 1); negative = text.charCodeAt(0) === 45; textIndex = negative ? 1 : 0; for (digitsIndex = 1; true; textIndex = textIndex0, digitsIndex = digitsIndex0) { if (textIndex === t1) { _this._serialize0$_buffer.write$1(0, text); return; } textIndex0 = textIndex + 1; codeUnit = text.charCodeAt(textIndex); if (codeUnit === 46) { textIndex = textIndex0; break; } digitsIndex0 = digitsIndex + 1; digits[digitsIndex] = codeUnit - 48; } indexAfterPrecision = textIndex + 10; if (indexAfterPrecision >= t1) { _this._serialize0$_buffer.write$1(0, text); return; } for (digitsIndex0 = digitsIndex; textIndex < indexAfterPrecision; textIndex = textIndex0, digitsIndex0 = digitsIndex1) { digitsIndex1 = digitsIndex0 + 1; textIndex0 = textIndex + 1; digits[digitsIndex0] = text.charCodeAt(textIndex) - 48; } if (text.charCodeAt(textIndex) - 48 >= 5) for (; true; digitsIndex0 = digitsIndex1) { digitsIndex1 = digitsIndex0 - 1; newDigit = digits[digitsIndex1] + 1; digits[digitsIndex1] = newDigit; if (newDigit !== 10) break; } for (; digitsIndex0 < digitsIndex; ++digitsIndex0) digits[digitsIndex0] = 0; while (true) { t1 = digitsIndex0 > digitsIndex; if (!(t1 && digits[digitsIndex0 - 1] === 0)) break; --digitsIndex0; } if (digitsIndex0 === 2 && digits[0] === 0 && digits[1] === 0) { _this._serialize0$_buffer.writeCharCode$1(48); return; } if (negative) _this._serialize0$_buffer.writeCharCode$1(45); if (digits[0] === 0) writtenIndex = _this._serialize0$_style === B.OutputStyle_10 && digits[1] === 0 ? 2 : 1; else writtenIndex = 0; for (t2 = _this._serialize0$_buffer; writtenIndex < digitsIndex; ++writtenIndex) t2.writeCharCode$1(48 + digits[writtenIndex]); if (t1) { t2.writeCharCode$1(46); for (; writtenIndex < digitsIndex0; ++writtenIndex) t2.writeCharCode$1(48 + digits[writtenIndex]); } }, _serialize0$_visitQuotedString$2$forceDoubleQuote(string, forceDoubleQuote) { var t1, includesSingleQuote, includesDoubleQuote, i, char, _1_2, _1_4, _0_0, newIndex, t2, quote, _this = this, buffer = forceDoubleQuote ? _this._serialize0$_buffer : new A.StringBuffer(""); if (forceDoubleQuote) buffer.writeCharCode$1(34); for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) { char = string.charCodeAt(i); _1_2 = A._InitializedCell$(new A._SerializeVisitor__visitQuotedString_closure1(char)); _1_4 = A._InitializedCell$(new A._SerializeVisitor__visitQuotedString_closure2(char)); if (_1_2._readFinal$0() && forceDoubleQuote) { buffer.writeCharCode$1(39); continue; } if (_1_2._readFinal$0() && includesDoubleQuote) { _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true); return; } if (_1_2._readFinal$0()) { buffer.writeCharCode$1(39); includesSingleQuote = true; continue; } if (_1_4._readFinal$0() && forceDoubleQuote) { buffer.writeCharCode$1(92); buffer.writeCharCode$1(34); continue; } if (_1_4._readFinal$0() && includesSingleQuote) { _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true); return; } if (_1_4._readFinal$0()) { buffer.writeCharCode$1(34); includesDoubleQuote = true; continue; } 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) { _this._serialize0$_writeEscape$4(buffer, char, string, i); continue; } if (92 === char) { buffer.writeCharCode$1(92); buffer.writeCharCode$1(92); continue; } _0_0 = _this._serialize0$_tryPrivateUseCharacter$4(buffer, char, string, i); if (_0_0 != null) { newIndex = _0_0; t2 = true; } else { newIndex = null; t2 = false; } if (t2) i = newIndex; else buffer.writeCharCode$1(char); } if (forceDoubleQuote) buffer.writeCharCode$1(34); else { quote = includesDoubleQuote ? 39 : 34; t1 = _this._serialize0$_buffer; t1.writeCharCode$1(quote); t1.write$1(0, buffer); t1.writeCharCode$1(quote); } }, _serialize0$_visitQuotedString$1(string) { return this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, false); }, _serialize0$_visitUnquotedString$1(string) { var t1, t2, afterNewline, i, _1_0, _0_0, newIndex, t3; for (t1 = string.length, t2 = this._serialize0$_buffer, afterNewline = false, i = 0; i < t1; ++i) { _1_0 = string.charCodeAt(i); if (10 === _1_0) { t2.writeCharCode$1(32); afterNewline = true; continue; } if (32 === _1_0) { if (!afterNewline) t2.writeCharCode$1(32); continue; } _0_0 = this._serialize0$_tryPrivateUseCharacter$4(t2, _1_0, string, i); if (_0_0 != null) { newIndex = _0_0; t3 = true; } else { newIndex = null; t3 = false; } if (t3) i = newIndex; else t2.writeCharCode$1(_1_0); afterNewline = false; } }, _serialize0$_tryPrivateUseCharacter$4(buffer, codeUnit, string, i) { var t1; if (this._serialize0$_style === B.OutputStyle_10) return null; if (codeUnit >= 57344 && codeUnit <= 63743) { this._serialize0$_writeEscape$4(buffer, codeUnit, string, i); return i; } if (codeUnit >>> 7 === 439 && string.length > i + 1) { t1 = i + 1; this._serialize0$_writeEscape$4(buffer, 65536 + ((codeUnit & 1023) << 10) + (string.charCodeAt(t1) & 1023), string, t1); return t1; } return null; }, _serialize0$_writeEscape$4(buffer, character, string, i) { var t1, next; buffer.writeCharCode$1(92); buffer.write$1(0, B.JSInt_methods.toRadixString$1(character, 16)); t1 = i + 1; if (string.length === t1) return; next = string.charCodeAt(t1); if (A.CharacterExtension_get_isHex0(next) || 32 === next || 9 === next) buffer.writeCharCode$1(32); }, visitAttributeSelector$1(attribute) { var _0_0, value, t2, t1 = this._serialize0$_buffer; t1.writeCharCode$1(91); t1.write$1(0, attribute.name); _0_0 = attribute.value; if (_0_0 != null) { value = _0_0; t2 = true; } else { value = null; t2 = false; } if (t2) { t1.write$1(0, attribute.op); if (A.Parser_isIdentifier0(value) && !J.startsWith$1$s(value, "--")) { t1.write$1(0, value); t2 = attribute.modifier; if (t2 != null) t1.writeCharCode$1(32); } else { this._serialize0$_visitQuotedString$1(value); t2 = attribute.modifier; if (t2 != null) if (this._serialize0$_style !== B.OutputStyle_10) t1.writeCharCode$1(32); } A.NullableExtension_andThen0(t2, t1.get$write(t1)); } t1.writeCharCode$1(93); }, visitClassSelector$1(klass) { var t1 = this._serialize0$_buffer; t1.writeCharCode$1(46); t1.write$1(0, klass.name); }, visitComplexSelector$1(complex) { var t2, t3, t4, t5, t6, i, component, t7, t8, t9, _this = this, t1 = complex.leadingCombinators; _this._serialize0$_writeCombinators$1(t1); if (t1.length >= 1 && complex.components.length >= 1) if (_this._serialize0$_style !== B.OutputStyle_10) _this._serialize0$_buffer.writeCharCode$1(32); 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) { component = t1[i]; _this.visitCompoundSelector$1(component.selector); t7 = component.combinators; t8 = t7.length === 0; if (!t8) if (t6) t4.writeCharCode$1(32); t9 = t5 ? "" : " "; _this._serialize0$_writeBetween$3(t7, t9, t4.get$write(t4)); if (i !== t3) t7 = !t5 || t8; else t7 = false; if (t7) t4.writeCharCode$1(32); } }, _serialize0$_writeCombinators$1(combinators) { var t1 = this._serialize0$_style === B.OutputStyle_10 ? "" : " ", t2 = this._serialize0$_buffer; return this._serialize0$_writeBetween$3(combinators, t1, t2.get$write(t2)); }, visitCompoundSelector$1(compound) { var t2, t3, _i, t1 = this._serialize0$_buffer, start = t1.get$length(t1); for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i) t2[_i].accept$1(this); if (t1.get$length(t1) === start) t1.writeCharCode$1(42); }, visitIDSelector$1(id) { var t1 = this._serialize0$_buffer; t1.writeCharCode$1(35); t1.write$1(0, id.name); }, visitSelectorList$1(list) { var t1, t2, t3, t4, first, t5, _this = this, complexes = list.components; 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();) { t5 = t1.get$current(t1); if (first) first = false; else { t3.writeCharCode$1(44); if (t5.lineBreak) { if (t2) t3.write$1(0, t4); _this._serialize0$_writeIndentation$0(); } else if (t2) t3.writeCharCode$1(32); } _this.visitComplexSelector$1(t5); } }, visitParentSelector$1($parent) { var t1 = this._serialize0$_buffer; t1.writeCharCode$1(38); A.NullableExtension_andThen0($parent.suffix, t1.get$write(t1)); }, visitPlaceholderSelector$1(placeholder) { var t1 = this._serialize0$_buffer; t1.writeCharCode$1(37); t1.write$1(0, placeholder.name); }, visitPseudoSelector$1(pseudo) { var t2, t3, _0_4 = A._InitializedCell$(new A._SerializeVisitor_visitPseudoSelector_closure0(pseudo)), t1 = pseudo.name; if ("not" === t1 && _0_4._readFinal$0() instanceof A.SelectorList0 && _0_4._readFinal$0().accept$1(B._IsInvisibleVisitor_true0)) return; t2 = this._serialize0$_buffer; t2.writeCharCode$1(58); if (!pseudo.isSyntacticClass) t2.writeCharCode$1(58); t2.write$1(0, t1); t1 = pseudo.argument; t3 = t1 == null; if (t3 && pseudo.selector == null) return; t2.writeCharCode$1(40); if (!t3) { t2.write$1(0, t1); if (pseudo.selector != null) t2.writeCharCode$1(32); } A.NullableExtension_andThen0(pseudo.selector, this.get$visitSelectorList()); t2.writeCharCode$1(41); }, visitTypeSelector$1(type) { this._serialize0$_buffer.write$1(0, type.name); }, visitUniversalSelector$1(universal) { var t2, t1 = universal.namespace; if (t1 != null) { t2 = this._serialize0$_buffer; t2.write$1(0, t1); t2.writeCharCode$1(124); } this._serialize0$_buffer.writeCharCode$1(42); }, _serialize0$_write$1(value) { return this._serialize0$_buffer.forSpan$2(value.span, new A._SerializeVisitor__write_closure0(this, value)); }, _serialize0$_visitChildren$1($parent) { var t2, t3, t4, t5, t6, t7, t8, prePrevious, previous, t9, previous0, t10, savedIndentation, _this = this, t1 = _this._serialize0$_buffer; t1.writeCharCode$1(123); for (t2 = $parent.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = _this._serialize0$_style === B.OutputStyle_10, t4 = !t3, t5 = _this.get$_serialize0$_requiresSemicolon(), t6 = !_this._serialize0$_inspect, t7 = A._instanceType(t2)._precomputed1, t8 = _this._lineFeed.text, prePrevious = null, previous = null; t2.moveNext$0();) { t9 = t2.__internal$_current; previous0 = t9 == null ? t7._as(t9) : t9; if (t6) t9 = t3 ? previous0.accept$1(B._IsInvisibleVisitor_true_true0) : previous0.accept$1(B._IsInvisibleVisitor_true_false0); else t9 = false; if (t9) continue; t9 = previous == null; t10 = t9 ? null : t5.call$1(previous); if (t10 == null ? false : t10) t1.writeCharCode$1(59); if (_this._serialize0$_isTrailingComment$2(previous0, t9 ? $parent : previous)) { if (t4) t1.writeCharCode$1(32); savedIndentation = _this._serialize0$_indentation; _this._serialize0$_indentation = 0; new A._SerializeVisitor__visitChildren_closure1(_this, previous0).call$0(); _this._serialize0$_indentation = savedIndentation; } else { if (t4) t1.write$1(0, t8); ++_this._serialize0$_indentation; new A._SerializeVisitor__visitChildren_closure2(_this, previous0).call$0(); --_this._serialize0$_indentation; } prePrevious = previous; previous = previous0; } if (previous != null) { if ((type$.CssParentNode_2._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment0)) && t4) t1.writeCharCode$1(59); if (prePrevious == null && _this._serialize0$_isTrailingComment$2(previous, $parent)) { if (t4) t1.writeCharCode$1(32); } else { _this._serialize0$_writeLineFeed$0(); _this._serialize0$_writeIndentation$0(); } } t1.writeCharCode$1(125); }, _serialize0$_requiresSemicolon$1(node) { return type$.CssParentNode_2._is(node) ? node.get$isChildless() : !(node instanceof A.ModifiableCssComment0); }, _serialize0$_isTrailingComment$2(node, previous) { var t1, t2, t3, searchFrom, endOffset, t4, span; if (this._serialize0$_style === B.OutputStyle_10) return false; if (!(node instanceof A.ModifiableCssComment0)) return false; t1 = node.span; t2 = t1.get$sourceUrl(t1); t3 = previous.get$span(previous); if (!J.$eq$(t2, t3.get$sourceUrl(t3))) return false; t2 = previous.get$span(previous); 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)) { t1 = t1.get$start(t1); t1 = t1.file.getLine$1(t1.offset); t2 = previous.get$span(previous); t2 = t2.get$end(t2); return t1 === t2.file.getLine$1(t2.offset); } t2 = t1.get$start(t1); t3 = previous.get$span(previous); searchFrom = t2.offset - t3.get$start(t3).offset - 1; if (searchFrom < 0) return false; endOffset = Math.max(0, B.JSString_methods.lastIndexOf$2(previous.get$span(previous).get$text(), "{", searchFrom)); t2 = previous.get$span(previous); t2 = t2.get$file(t2); t3 = previous.get$span(previous); t3 = t3.get$start(t3); t4 = previous.get$span(previous); span = t2.span$2(0, t3.offset, t4.get$start(t4).offset + endOffset); t1 = t1.get$start(t1); t1 = t1.file.getLine$1(t1.offset); t4 = A.FileLocation$_(span.file, span._end); return t1 === t4.file.getLine$1(t4.offset); }, _serialize0$_writeLineFeed$0() { if (this._serialize0$_style !== B.OutputStyle_10) this._serialize0$_buffer.write$1(0, this._lineFeed.text); }, _serialize0$_writeIndentation$0() { var _this = this; if (_this._serialize0$_style === B.OutputStyle_10) return; _this._serialize0$_writeTimes$2(_this._serialize0$_indentCharacter, _this._serialize0$_indentation * _this._serialize0$_indentWidth); }, _serialize0$_writeTimes$2(char, times) { var t1, i; for (t1 = this._serialize0$_buffer, i = 0; i < times; ++i) t1.writeCharCode$1(char); }, _serialize0$_writeBetween$1$3(iterable, text, callback) { var t1, t2, first, value; for (t1 = J.get$iterator$ax(iterable), t2 = this._serialize0$_buffer, first = true; t1.moveNext$0();) { value = t1.get$current(t1); if (first) first = false; else t2.write$1(0, text); callback.call$1(value); } }, _serialize0$_writeBetween$3(iterable, text, callback) { return this._serialize0$_writeBetween$1$3(iterable, text, callback, type$.dynamic); } }; A._SerializeVisitor_visitCssComment_closure0.prototype = { call$0() { var t2, t3, _0_0, minimumIndentation, t4, t1 = this.$this; if (t1._serialize0$_style === B.OutputStyle_10 && this.node.text.charCodeAt(2) !== 33) return; t2 = this.node; t3 = t2.text; if (B.JSString_methods.startsWith$1(t3, A.RegExp_RegExp("/\\*# source(Mapping)?URL=", false))) return; _0_0 = t1._serialize0$_minimumIndentation$1(t3); if (_0_0 != null) { minimumIndentation = _0_0; t4 = true; } else { minimumIndentation = null; t4 = false; } if (t4) { t2 = t2.span; t2 = t2.get$start(t2); t2 = t2.file.getColumn$1(t2.offset); minimumIndentation = Math.min(A.checkNum(minimumIndentation), t2); t1._serialize0$_writeIndentation$0(); t1._serialize0$_writeWithIndent$2(t3, minimumIndentation); } else { t1._serialize0$_writeIndentation$0(); t1._serialize0$_buffer.write$1(0, t3); } }, $signature: 2 }; A._SerializeVisitor_visitCssAtRule_closure0.prototype = { call$0() { var t3, _0_0, value, t1 = this.$this, t2 = t1._serialize0$_buffer; t2.writeCharCode$1(64); t3 = this.node; t1._serialize0$_write$1(t3.name); _0_0 = t3.value; if (_0_0 != null) { value = _0_0; t3 = true; } else { value = null; t3 = false; } if (t3) { t2.writeCharCode$1(32); t1._serialize0$_write$1(value); } }, $signature: 2 }; A._SerializeVisitor_visitCssMediaRule_closure0.prototype = { call$0() { var t3, firstQuery, t4, t5, t1 = this.$this, t2 = t1._serialize0$_buffer; t2.write$1(0, "@media"); t3 = this.node.queries; firstQuery = B.JSArray_methods.get$first(t3); t4 = t1._serialize0$_style === B.OutputStyle_10; if (t4) if (firstQuery.modifier == null) if (firstQuery.type == null) { t5 = firstQuery.conditions; t5 = t5.length === 1 && J.startsWith$1$s(B.JSArray_methods.get$first(t5), "(not "); } else t5 = true; else t5 = true; else t5 = true; if (t5) t2.writeCharCode$1(32); t2 = t4 ? "," : ", "; t1._serialize0$_writeBetween$3(t3, t2, t1.get$_serialize0$_visitMediaQuery()); }, $signature: 2 }; A._SerializeVisitor_visitCssImport_closure0.prototype = { call$0() { var t3, t4, _0_0, modifiers, t1 = this.$this, t2 = t1._serialize0$_buffer; t2.write$1(0, "@import"); t3 = t1._serialize0$_style !== B.OutputStyle_10; if (t3) t2.writeCharCode$1(32); t4 = this.node; t2.forSpan$2(t4.url.span, new A._SerializeVisitor_visitCssImport__closure0(t1, t4)); _0_0 = t4.modifiers; if (_0_0 != null) { modifiers = _0_0; t1 = true; } else { modifiers = null; t1 = false; } if (t1) { if (t3) t2.writeCharCode$1(32); t2.write$1(0, modifiers); } }, $signature: 2 }; A._SerializeVisitor_visitCssImport__closure0.prototype = { call$0() { return this.$this._serialize0$_writeImportUrl$1(this.node.url.value); }, $signature: 0 }; A._SerializeVisitor_visitCssKeyframeBlock_closure0.prototype = { call$0() { var t1 = this.$this, t2 = t1._serialize0$_style === B.OutputStyle_10 ? "," : ", ", t3 = t1._serialize0$_buffer; return t1._serialize0$_writeBetween$3(this.node.selector.value, t2, t3.get$write(t3)); }, $signature: 0 }; A._SerializeVisitor_visitCssStyleRule_closure0.prototype = { call$0() { return this.$this.visitSelectorList$1(this.node._style_rule0$_selector._box0$_inner.value); }, $signature: 0 }; A._SerializeVisitor_visitCssSupportsRule_closure0.prototype = { call$0() { var t1 = this.$this, t2 = t1._serialize0$_buffer; t2.write$1(0, "@supports"); if (!(t1._serialize0$_style === B.OutputStyle_10 && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40)) t2.writeCharCode$1(32); t1._serialize0$_write$1(this.node.condition); }, $signature: 2 }; A._SerializeVisitor_visitCssDeclaration_closure1.prototype = { call$0() { var t1 = this.$this, t2 = this.node; if (t1._serialize0$_style === B.OutputStyle_10) t1._serialize0$_writeFoldedValue$1(t2); else t1._serialize0$_writeReindentedValue$1(t2); }, $signature: 2 }; A._SerializeVisitor_visitCssDeclaration_closure2.prototype = { call$0() { return this.node.value.value.accept$1(this.$this); }, $signature: 0 }; A._SerializeVisitor__writeCalculationValue_closure0.prototype = { call$0() { return !isFinite(this._2_0._number1$_value); }, $signature: 1 }; A._SerializeVisitor_visitList_closure2.prototype = { call$1(element) { return !element.get$isBlank(); }, $signature: 54 }; A._SerializeVisitor_visitList_closure3.prototype = { call$1(element) { var t1 = this.$this, needsParens = t1._serialize0$_elementNeedsParens$2(this.value._list1$_separator, element); if (needsParens) t1._serialize0$_buffer.writeCharCode$1(40); element.accept$1(t1); if (needsParens) t1._serialize0$_buffer.writeCharCode$1(41); }, $signature: 57 }; A._SerializeVisitor_visitList_closure4.prototype = { call$1(element) { element.accept$1(this.$this); }, $signature: 57 }; A._SerializeVisitor_visitMap_closure0.prototype = { call$1(entry) { var t1 = this.$this; t1._serialize0$_writeMapElement$1(entry.key); t1._serialize0$_buffer.write$1(0, ": "); t1._serialize0$_writeMapElement$1(entry.value); }, $signature: 557 }; A._SerializeVisitor__visitQuotedString_closure1.prototype = { call$0() { return 39 === this._1_0; }, $signature: 1 }; A._SerializeVisitor__visitQuotedString_closure2.prototype = { call$0() { return 34 === this._1_0; }, $signature: 1 }; A._SerializeVisitor_visitSelectorList_closure0.prototype = { call$1(complex) { return !complex.accept$1(B._IsInvisibleVisitor_true0); }, $signature: 18 }; A._SerializeVisitor_visitPseudoSelector_closure0.prototype = { call$0() { return this._0_0.selector; }, $signature: 78 }; A._SerializeVisitor__write_closure0.prototype = { call$0() { return this.$this._serialize0$_buffer.write$1(0, this.value.value); }, $signature: 0 }; A._SerializeVisitor__visitChildren_closure1.prototype = { call$0() { return this.child.accept$1(this.$this); }, $signature: 0 }; A._SerializeVisitor__visitChildren_closure2.prototype = { call$0() { this.child.accept$1(this.$this); }, $signature: 0 }; A.OutputStyle0.prototype = { _enumToString$0() { return "OutputStyle." + this._name; } }; A.LineFeed0.prototype = { _enumToString$0() { return "LineFeed." + this._name; }, toString$0(_) { return this.name; } }; A.ShadowedModuleView0.prototype = { get$url(_) { var t1 = this._shadowed_view0$_inner; return t1.get$url(t1); }, get$upstream() { return this._shadowed_view0$_inner.get$upstream(); }, get$extensionStore() { return this._shadowed_view0$_inner.get$extensionStore(); }, get$css(_) { var t1 = this._shadowed_view0$_inner; return t1.get$css(t1); }, get$preModuleComments() { return this._shadowed_view0$_inner.get$preModuleComments(); }, get$transitivelyContainsCss() { return this._shadowed_view0$_inner.get$transitivelyContainsCss(); }, get$transitivelyContainsExtensions() { return this._shadowed_view0$_inner.get$transitivelyContainsExtensions(); }, setVariable$3($name, value, nodeWithSpan) { if (!this.variables.containsKey$1($name)) throw A.wrapException(A.SassScriptException$0("Undefined variable.", null)); else this._shadowed_view0$_inner.setVariable$3($name, value, nodeWithSpan); }, variableIdentity$1($name) { return this._shadowed_view0$_inner.variableIdentity$1($name); }, $eq(_, other) { var t1, t2, _this = this; if (other == null) return false; if (other instanceof A.ShadowedModuleView0) if (_this._shadowed_view0$_inner.$eq(0, other._shadowed_view0$_inner)) { t1 = _this.variables; t1 = t1.get$keys(t1); t2 = other.variables; if (B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) { t1 = _this.functions; t1 = t1.get$keys(t1); t2 = other.functions; if (B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) { t1 = _this.mixins; t1 = t1.get$keys(t1); t2 = other.mixins; t2 = B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2)); t1 = t2; } else t1 = false; } else t1 = false; } else t1 = false; else t1 = false; return t1; }, get$hashCode(_) { var t1 = this._shadowed_view0$_inner; return t1.get$hashCode(t1); }, cloneCss$0() { var _this = this; return new A.ShadowedModuleView0(_this._shadowed_view0$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti); }, toString$0(_) { return "shadowed " + this._shadowed_view0$_inner.toString$0(0); }, $isModule1: 1, get$variables() { return this.variables; }, get$variableNodes() { return this.variableNodes; }, get$functions(receiver) { return this.functions; }, get$mixins() { return this.mixins; } }; A.SilentComment0.prototype = { accept$1$1(visitor) { return visitor.visitSilentComment$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return this.text; }, $isAstNode0: 1, $isStatement0: 1, get$span(receiver) { return this.span; } }; A.SimpleSelector0.prototype = { get$specificity() { return 1000; }, addSuffix$1(suffix) { 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)); }, unify$1(compound) { var other, t1, result, addedThis, _i, simple, _this = this; if (compound.length === 1) { other = compound[0]; if (!(other instanceof A.UniversalSelector0)) if (other instanceof A.PseudoSelector0) t1 = other.isClass && other.name === "host" || other.get$isHostContext(); else t1 = false; else t1 = true; } else { other = null; t1 = false; } if (t1) return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector_2)); if (B.JSArray_methods.contains$1(compound, _this)) return compound; result = A._setArrayType([], type$.JSArray_SimpleSelector_2); for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) { simple = compound[_i]; if (!addedThis && simple instanceof A.PseudoSelector0) { result.push(_this); addedThis = true; } result.push(simple); } if (!addedThis) result.push(_this); return result; }, isSuperselector$1(other) { var list; if (this.$eq(0, other)) return true; if (other instanceof A.PseudoSelector0 && other.isClass) { list = other.selector; if (list != null && $._subselectorPseudos0.contains$1(0, other.normalizedName)) return B.JSArray_methods.every$1(list.components, new A.SimpleSelector_isSuperselector_closure0(this)); } return false; } }; A.SimpleSelector_isSuperselector_closure0.prototype = { call$1(complex) { var t1 = complex.components; return t1.length !== 0 && B.JSArray_methods.any$1(B.JSArray_methods.get$last(t1).selector.components, new A.SimpleSelector_isSuperselector__closure0(this.$this)); }, $signature: 18 }; A.SimpleSelector_isSuperselector__closure0.prototype = { call$1(simple) { return this.$this.isSuperselector$1(simple); }, $signature: 15 }; A.SingleUnitSassNumber0.prototype = { get$numeratorUnits(_) { return A.List_List$unmodifiable([this._single_unit$_unit], type$.String); }, get$denominatorUnits(_) { return B.List_empty; }, get$hasUnits() { return true; }, get$hasComplexUnits() { return false; }, withValue$1(value) { return new A.SingleUnitSassNumber0(this._single_unit$_unit, value, null); }, withSlash$2(numerator, denominator) { return new A.SingleUnitSassNumber0(this._single_unit$_unit, this._number1$_value, new A._Record_2(numerator, denominator)); }, hasUnit$1(unit) { return unit === this._single_unit$_unit; }, hasCompatibleUnits$1(other) { return other instanceof A.SingleUnitSassNumber0 && A.conversionFactor0(this._single_unit$_unit, other._single_unit$_unit) != null; }, hasPossiblyCompatibleUnits$1(other) { var t1, knownCompatibilities, otherUnit; if (!(other instanceof A.SingleUnitSassNumber0)) return false; t1 = $.$get$_knownCompatibilitiesByUnit0(); knownCompatibilities = t1.$index(0, this._single_unit$_unit.toLowerCase()); if (knownCompatibilities == null) return true; otherUnit = other._single_unit$_unit.toLowerCase(); return knownCompatibilities.contains$1(0, otherUnit) || !t1.containsKey$1(otherUnit); }, compatibleWithUnit$1(unit) { return A.conversionFactor0(this._single_unit$_unit, unit) != null; }, coerceToMatch$3(other, $name, otherName) { var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceToUnit$1(other._single_unit$_unit) : null; return t1 == null ? this.super$SassNumber$coerceToMatch0(other, $name, otherName) : t1; }, coerceToMatch$1(other) { return this.coerceToMatch$3(other, null, null); }, coerceValueToMatch$3(other, $name, otherName) { var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceValueToUnit$1(other._single_unit$_unit) : null; return t1 == null ? this.super$SassNumber$coerceValueToMatch0(other, $name, otherName) : t1; }, coerceValueToMatch$1(other) { return this.coerceValueToMatch$3(other, null, null); }, convertToMatch$3(other, $name, otherName) { var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceToUnit$1(other._single_unit$_unit) : null; return t1 == null ? this.super$SassNumber$convertToMatch(other, $name, otherName) : t1; }, convertValueToMatch$3(other, $name, otherName) { var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceValueToUnit$1(other._single_unit$_unit) : null; return t1 == null ? this.super$SassNumber$convertValueToMatch0(other, $name, otherName) : t1; }, convertValueToMatch$1(other) { return this.convertValueToMatch$3(other, null, null); }, coerce$3(newNumerators, newDenominators, $name) { var t1 = J.getInterceptor$asx(newNumerators); t1 = t1.get$length(newNumerators) === 1 && J.get$isEmpty$asx(newDenominators) ? this._single_unit$_coerceToUnit$1(t1.$index(newNumerators, 0)) : null; return t1 == null ? this.super$SassNumber$coerce0(newNumerators, newDenominators, $name) : t1; }, coerce$2(newNumerators, newDenominators) { return this.coerce$3(newNumerators, newDenominators, null); }, coerceValue$3(newNumerators, newDenominators, $name) { var t1 = J.getInterceptor$asx(newNumerators); t1 = t1.get$length(newNumerators) === 1 && J.get$isEmpty$asx(newDenominators) ? this._single_unit$_coerceValueToUnit$1(t1.$index(newNumerators, 0)) : null; return t1 == null ? this.super$SassNumber$coerceValue0(newNumerators, newDenominators, $name) : t1; }, coerceValueToUnit$2(unit, $name) { var t1 = this._single_unit$_coerceValueToUnit$1(unit); return t1 == null ? this.super$SassNumber$coerceValueToUnit0(unit, $name) : t1; }, coerceValueToUnit$1(unit) { return this.coerceValueToUnit$2(unit, null); }, _single_unit$_coerceToUnit$1(unit) { var t1 = this._single_unit$_unit; if (t1 === unit) return this; return A.NullableExtension_andThen0(A.conversionFactor0(unit, t1), new A.SingleUnitSassNumber__coerceToUnit_closure0(this, unit)); }, _single_unit$_coerceValueToUnit$1(unit) { return A.NullableExtension_andThen0(A.conversionFactor0(unit, this._single_unit$_unit), new A.SingleUnitSassNumber__coerceValueToUnit_closure0(this)); }, multiplyUnits$3(value, otherNumerators, otherDenominators) { var mutableOtherDenominators, t1 = {}; t1.value = value; t1.newNumerators = otherNumerators; mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators)); A.removeFirstWhere0(mutableOtherDenominators, new A.SingleUnitSassNumber_multiplyUnits_closure1(t1, this), new A.SingleUnitSassNumber_multiplyUnits_closure2(t1, this)); return A.SassNumber_SassNumber$withUnits0(t1.value, mutableOtherDenominators, t1.newNumerators); }, unaryMinus$0() { return new A.SingleUnitSassNumber0(this._single_unit$_unit, -this._number1$_value, null); }, $eq(_, other) { var factor; if (other == null) return false; if (other instanceof A.SingleUnitSassNumber0) { factor = A.conversionFactor0(other._single_unit$_unit, this._single_unit$_unit); return factor != null && A.fuzzyEquals0(this._number1$_value * factor, other._number1$_value); } else return false; }, get$hashCode(_) { var _this = this, t1 = _this.hashCache; return t1 == null ? _this.hashCache = A.fuzzyHashCode0(_this._number1$_value * _this.canonicalMultiplierForUnit$1(_this._single_unit$_unit)) : t1; } }; A.SingleUnitSassNumber__coerceToUnit_closure0.prototype = { call$1(factor) { return new A.SingleUnitSassNumber0(this.unit, this.$this._number1$_value * factor, null); }, $signature: 558 }; A.SingleUnitSassNumber__coerceValueToUnit_closure0.prototype = { call$1(factor) { return this.$this._number1$_value * factor; }, $signature: 42 }; A.SingleUnitSassNumber_multiplyUnits_closure1.prototype = { call$1(denominator) { var factor = A.conversionFactor0(denominator, this.$this._single_unit$_unit); if (factor == null) return false; this._box_0.value *= factor; return true; }, $signature: 10 }; A.SingleUnitSassNumber_multiplyUnits_closure2.prototype = { call$0() { var t1 = A._setArrayType([this.$this._single_unit$_unit], type$.JSArray_String), t2 = this._box_0; B.JSArray_methods.addAll$1(t1, t2.newNumerators); t2.newNumerators = t1; }, $signature: 0 }; A.SourceMapBuffer0.prototype = { get$_source_map_buffer0$_targetLocation() { var t1 = this._source_map_buffer0$_buffer._contents, t2 = this._source_map_buffer0$_line; return A.SourceLocation$(t1.length, this._source_map_buffer0$_column, t2, null); }, get$length(_) { return this._source_map_buffer0$_buffer._contents.length; }, forSpan$1$2(span, callback) { var t1, _this = this, wasInSpan = _this._source_map_buffer0$_inSpan; _this._source_map_buffer0$_inSpan = true; _this._source_map_buffer0$_addEntry$2(span.get$start(span), _this.get$_source_map_buffer0$_targetLocation()); try { t1 = callback.call$0(); return t1; } finally { _this._source_map_buffer0$_inSpan = wasInSpan; } }, forSpan$2(span, callback) { return this.forSpan$1$2(span, callback, type$.dynamic); }, _source_map_buffer0$_addEntry$2(source, target) { var entry, t2, t1 = this._source_map_buffer0$_entries; if (t1.length !== 0) { entry = B.JSArray_methods.get$last(t1); t2 = entry.source; if (t2.file.getLine$1(t2.offset) === source.file.getLine$1(source.offset) && entry.target.line === target.line) return; if (entry.target.offset === target.offset) return; } t1.push(new A.Entry(source, target, null)); }, write$1(_, object) { var t1, i, string = J.toString$0$(object); this._source_map_buffer0$_buffer._contents += string; for (t1 = string.length, i = 0; i < t1; ++i) if (string.charCodeAt(i) === 10) this._source_map_buffer0$_writeLine$0(); else ++this._source_map_buffer0$_column; }, writeCharCode$1(charCode) { this._source_map_buffer0$_buffer._contents += A.Primitives_stringFromCharCode(charCode); if (charCode === 10) this._source_map_buffer0$_writeLine$0(); else ++this._source_map_buffer0$_column; }, _source_map_buffer0$_writeLine$0() { var _this = this, t1 = _this._source_map_buffer0$_entries; 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) t1.pop(); ++_this._source_map_buffer0$_line; _this._source_map_buffer0$_column = 0; if (_this._source_map_buffer0$_inSpan) t1.push(new A.Entry(B.JSArray_methods.get$last(t1).source, _this.get$_source_map_buffer0$_targetLocation(), null)); }, toString$0(_) { var t1 = this._source_map_buffer0$_buffer._contents; return t1.charCodeAt(0) == 0 ? t1 : t1; }, buildSourceMap$1$prefix(prefix) { var i, t2, prefixColumn, _box_0 = {}, t1 = prefix.length; if (t1 === 0) return A.SingleMapping_SingleMapping$fromEntries(this._source_map_buffer0$_entries); _box_0.prefixColumn = _box_0.prefixLines = 0; for (i = 0, t2 = 0; i < t1; ++i) if (prefix.charCodeAt(i) === 10) { ++_box_0.prefixLines; _box_0.prefixColumn = 0; t2 = 0; } else { prefixColumn = t2 + 1; _box_0.prefixColumn = prefixColumn; t2 = prefixColumn; } t2 = this._source_map_buffer0$_entries; 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>"))); } }; A.SourceMapBuffer_buildSourceMap_closure0.prototype = { call$1(entry) { var t1 = entry.target, t2 = t1.line, t3 = this._box_0, t4 = t3.prefixLines; t3 = t2 === 0 ? t3.prefixColumn : 0; return new A.Entry(entry.source, A.SourceLocation$(t1.offset + this.prefixLength, t1.column + t3, t2 + t4, null), entry.identifierName); }, $signature: 206 }; A.updateSourceSpanPrototype_closure.prototype = { call$1(span) { return span.get$start(span); }, $signature: 280 }; A.updateSourceSpanPrototype_closure0.prototype = { call$1(span) { return span.get$end(span); }, $signature: 280 }; A.updateSourceSpanPrototype_closure1.prototype = { call$1(span) { return A.NullableExtension_andThen0(span.get$sourceUrl(span), A.utils1__dartToJSUrl$closure()); }, $signature: 560 }; A.updateSourceSpanPrototype_closure2.prototype = { call$1(span) { return span.get$text(); }, $signature: 281 }; A.updateSourceSpanPrototype_closure3.prototype = { call$1(span) { return span.get$context(span); }, $signature: 281 }; A.updateSourceSpanPrototype_closure4.prototype = { call$1($location) { return $location.get$line(); }, $signature: 282 }; A.updateSourceSpanPrototype_closure5.prototype = { call$1($location) { return $location.get$column(); }, $signature: 282 }; A.StatementSearchVisitor0.prototype = { visitAtRootRule$1(node) { return this.visitChildren$1(node.children); }, visitAtRule$1(node) { return A.NullableExtension_andThen0(node.children, this.get$visitChildren()); }, visitContentBlock$1(node) { return this.visitChildren$1(node.children); }, visitContentRule$1(node) { return null; }, visitDebugRule$1(node) { return null; }, visitDeclaration$1(node) { return A.NullableExtension_andThen0(node.children, this.get$visitChildren()); }, visitEachRule$1(node) { return this.visitChildren$1(node.children); }, visitErrorRule$1(node) { return null; }, visitExtendRule$1(node) { return null; }, visitForRule$1(node) { return this.visitChildren$1(node.children); }, visitForwardRule$1(node) { return null; }, visitFunctionRule$1(node) { return this.visitChildren$1(node.children); }, visitIfRule$1(node) { var t1 = A.IterableExtension_search0(node.clauses, new A.StatementSearchVisitor_visitIfRule_closure1(this)); return t1 == null ? A.NullableExtension_andThen0(node.lastClause, new A.StatementSearchVisitor_visitIfRule_closure2(this)) : t1; }, visitImportRule$1(node) { return null; }, visitIncludeRule$1(node) { return A.NullableExtension_andThen0(node.content, this.get$visitContentBlock()); }, visitLoudComment$1(node) { return null; }, visitMediaRule$1(node) { return this.visitChildren$1(node.children); }, visitMixinRule$1(node) { return this.visitChildren$1(node.children); }, visitReturnRule$1(node) { return null; }, visitSilentComment$1(node) { return null; }, visitStyleRule$1(node) { return this.visitChildren$1(node.children); }, visitStylesheet$1(node) { return this.visitChildren$1(node.children); }, visitSupportsRule$1(node) { return this.visitChildren$1(node.children); }, visitUseRule$1(node) { return null; }, visitVariableDeclaration$1(node) { return null; }, visitWarnRule$1(node) { return null; }, visitWhileRule$1(node) { return this.visitChildren$1(node.children); }, visitChildren$1(children) { return A.IterableExtension_search0(children, new A.StatementSearchVisitor_visitChildren_closure0(this)); } }; A.StatementSearchVisitor_visitIfRule_closure1.prototype = { call$1(clause) { return A.IterableExtension_search0(clause.children, new A.StatementSearchVisitor_visitIfRule__closure2(this.$this)); }, $signature() { return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(IfClause0)"); } }; A.StatementSearchVisitor_visitIfRule__closure2.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature() { return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(Statement0)"); } }; A.StatementSearchVisitor_visitIfRule_closure2.prototype = { call$1(lastClause) { return A.IterableExtension_search0(lastClause.children, new A.StatementSearchVisitor_visitIfRule__closure1(this.$this)); }, $signature() { return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(ElseClause0)"); } }; A.StatementSearchVisitor_visitIfRule__closure1.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature() { return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(Statement0)"); } }; A.StatementSearchVisitor_visitChildren_closure0.prototype = { call$1(child) { return child.accept$1(this.$this); }, $signature() { return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(Statement0)"); } }; A.StaticImport0.prototype = { toString$0(_) { var t1 = this.url.toString$0(0), t2 = this.modifiers; return t1 + (t2 == null ? "" : " " + t2.toString$0(0)); }, $isImport0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.StderrLogger0.prototype = { warn$4$deprecation$span$trace(_, message, deprecation, span, trace) { var t2, result = new A.StringBuffer(""), t1 = this.color; if (t1) { t2 = result._contents = "" + "\x1b[33m\x1b[1m"; t2 = result._contents = (deprecation ? result._contents = t2 + "Deprecation " : t2) + "Warning\x1b[0m"; } else t2 = result._contents = (deprecation ? result._contents = "" + "DEPRECATION " : "") + "WARNING"; if (span == null) t1 = result._contents = t2 + (": " + message + "\n"); else if (trace != null) { t1 = t2 + (": " + message + "\n\n" + span.highlight$1$color(t1) + "\n"); result._contents = t1; } else { t1 = t2 + (" on " + span.message$2$color(0, "\n" + message, t1) + "\n"); result._contents = t1; } if (trace != null) result._contents = t1 + (A.indent0(B.JSString_methods.trimRight$0(trace.toString$0(0)), 4) + "\n"); A.printError0(result); }, warn$1($receiver, message) { return this.warn$4$deprecation$span$trace($receiver, message, false, null, null); }, warn$3$span$trace($receiver, message, span, trace) { return this.warn$4$deprecation$span$trace($receiver, message, false, span, trace); }, warn$2$span($receiver, message, span) { return this.warn$4$deprecation$span$trace($receiver, message, false, span, null); }, warn$2$trace($receiver, message, trace) { return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace); }, debug$2(_, message, span) { var url, t3, t1 = span.file, t2 = span._file$_start; if (A.FileLocation$_(t1, t2).file.url == null) url = "-"; else { t3 = A.FileLocation$_(t1, t2); url = $.$get$context().prettyUri$1(t3.file.url); } t1 = A.FileLocation$_(t1, t2); t1 = t1.file.getLine$1(t1.offset); t2 = this.color ? "\x1b[1mDebug\x1b[0m" : "DEBUG"; t2 = "" + (url + ":" + (t1 + 1) + " ") + t2 + (": " + message); A.printError0(t2.charCodeAt(0) == 0 ? t2 : t2); } }; A.StringExpression0.prototype = { get$span(_) { return this.text.span; }, accept$1$1(visitor) { return visitor.visitStringExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, asInterpolation$1$static($static) { var t1, t2, quote, t3, t4, buffer, t5, t6, _i, value; if (!this.hasQuotes) return this.text; t1 = this.text; t2 = t1.contents; quote = A.StringExpression__bestQuote0(new A.WhereTypeIterable(t2, type$.WhereTypeIterable_String)); t3 = new A.StringBuffer(""); t4 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer0(t3, t4); t3._contents += A.Primitives_stringFromCharCode(quote); for (t5 = t2.length, t6 = type$.Expression_2, _i = 0; _i < t5; ++_i) { value = t2[_i]; if (t6._is(value)) { buffer._interpolation_buffer0$_flushText$0(); t4.push(value); continue; } if (typeof value == "string") A.StringExpression__quoteInnerText0(value, quote, buffer, $static); } t3._contents += A.Primitives_stringFromCharCode(quote); return buffer.interpolation$1(t1.span); }, asInterpolation$0() { return this.asInterpolation$1$static(false); }, toString$0(_) { return this.asInterpolation$0().toString$0(0); }, $isExpression0: 1, $isAstNode0: 1 }; A.module_closure10.prototype = { call$1($arguments) { var limit, t2, chunks, i, lastEnd, match, t3, t1 = J.getInterceptor$asx($arguments), string = t1.$index($arguments, 0).assertString$1("string"), separator = t1.$index($arguments, 1).assertString$1("separator"); t1 = t1.$index($arguments, 2).get$realNull(); limit = t1 == null ? null : t1.assertNumber$1("limit").assertInt$1("limit"); if (limit != null && limit < 1) throw A.wrapException(A.SassScriptException$0("$limit: Must be 1 or greater, was " + A.S(limit) + ".", null)); t1 = string._string0$_text; if (t1.length === 0) return B.SassList_Sof2; else { t2 = separator._string0$_text; if (t2.length === 0) return A.SassList$0(A.MappedIterable_MappedIterable(new A.Runes(t1), new A.module__closure2(string), type$.Runes._eval$1("Iterable.E"), type$.Value_2), B.ListSeparator_rXA0, true); } chunks = A._setArrayType([], type$.JSArray_String); 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();) { match = t2.__js_helper$_current; t3 = match.start; chunks.push(B.JSString_methods.substring$2(t1, lastEnd, t3)); lastEnd = t3 + match.pattern.length; ++i; if (i === limit) break; } chunks.push(B.JSString_methods.substring$1(t1, lastEnd)); return A.SassList$0(new A.MappedListIterable(chunks, new A.module__closure3(string), type$.MappedListIterable_String_Value_2), B.ListSeparator_rXA0, true); }, $signature: 27 }; A.module__closure2.prototype = { call$1(rune) { return new A.SassString0(A.Primitives_stringFromCharCode(rune), this.string._string0$_hasQuotes); }, $signature: 563 }; A.module__closure3.prototype = { call$1(chunk) { return new A.SassString0(chunk, this.string._string0$_hasQuotes); }, $signature: 564 }; A._unquote_closure0.prototype = { call$1($arguments) { var string = J.$index$asx($arguments, 0).assertString$1("string"); if (!string._string0$_hasQuotes) return string; return new A.SassString0(string._string0$_text, false); }, $signature: 17 }; A._quote_closure0.prototype = { call$1($arguments) { var string = J.$index$asx($arguments, 0).assertString$1("string"); if (string._string0$_hasQuotes) return string; return new A.SassString0(string._string0$_text, true); }, $signature: 17 }; A._length_closure1.prototype = { call$1($arguments) { return A.SassNumber_SassNumber0(J.$index$asx($arguments, 0).assertString$1("string").get$_string0$_sassLength(), null); }, $signature: 12 }; A._insert_closure0.prototype = { call$1($arguments) { var indexInt, codeUnitIndex, _s5_ = "index", t1 = J.getInterceptor$asx($arguments), string = t1.$index($arguments, 0).assertString$1("string"), insert = t1.$index($arguments, 1).assertString$1("insert"), index = t1.$index($arguments, 2).assertNumber$1(_s5_); index.assertNoUnits$1(_s5_); indexInt = index.assertInt$1(_s5_); if (indexInt < 0) indexInt = Math.max(string.get$_string0$_sassLength() + indexInt + 2, 0); t1 = string._string0$_text; codeUnitIndex = A.codepointIndexToCodeUnitIndex0(t1, A._codepointForIndex0(indexInt, string.get$_string0$_sassLength(), false)); return new A.SassString0(B.JSString_methods.replaceRange$3(t1, codeUnitIndex, codeUnitIndex, insert._string0$_text), string._string0$_hasQuotes); }, $signature: 17 }; A._index_closure1.prototype = { call$1($arguments) { var t1 = J.getInterceptor$asx($arguments), t2 = t1.$index($arguments, 0).assertString$1("string")._string0$_text, codeUnitIndex = B.JSString_methods.indexOf$1(t2, t1.$index($arguments, 1).assertString$1("substring")._string0$_text); if (codeUnitIndex === -1) return B.C__SassNull0; return A.SassNumber_SassNumber0(A.codeUnitIndexToCodepointIndex0(t2, codeUnitIndex) + 1, null); }, $signature: 5 }; A._slice_closure0.prototype = { call$1($arguments) { var lengthInCodepoints, endInt, startCodepoint, endCodepoint, _s8_ = "start-at", t1 = J.getInterceptor$asx($arguments), string = t1.$index($arguments, 0).assertString$1("string"), start = t1.$index($arguments, 1).assertNumber$1(_s8_), end = t1.$index($arguments, 2).assertNumber$1("end-at"); start.assertNoUnits$1(_s8_); end.assertNoUnits$1("end-at"); lengthInCodepoints = string.get$_string0$_sassLength(); endInt = end.assertInt$0(); if (endInt === 0) return string._string0$_hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0(); startCodepoint = A._codepointForIndex0(start.assertInt$0(), lengthInCodepoints, false); endCodepoint = A._codepointForIndex0(endInt, lengthInCodepoints, true); if (endCodepoint === lengthInCodepoints) --endCodepoint; if (endCodepoint < startCodepoint) return string._string0$_hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0(); t1 = string._string0$_text; return new A.SassString0(B.JSString_methods.substring$2(t1, A.codepointIndexToCodeUnitIndex0(t1, startCodepoint), A.codepointIndexToCodeUnitIndex0(t1, endCodepoint + 1)), string._string0$_hasQuotes); }, $signature: 17 }; A._toUpperCase_closure0.prototype = { call$1($arguments) { var t1, t2, i, t3, t4, string = J.$index$asx($arguments, 0).assertString$1("string"); for (t1 = string._string0$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) { t4 = t1.charCodeAt(i); t3 += A.Primitives_stringFromCharCode(t4 >= 97 && t4 <= 122 ? t4 & 4294967263 : t4); } return new A.SassString0(t3.charCodeAt(0) == 0 ? t3 : t3, string._string0$_hasQuotes); }, $signature: 17 }; A._toLowerCase_closure0.prototype = { call$1($arguments) { var t1, t2, i, t3, t4, string = J.$index$asx($arguments, 0).assertString$1("string"); for (t1 = string._string0$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) { t4 = t1.charCodeAt(i); t3 += A.Primitives_stringFromCharCode(t4 >= 65 && t4 <= 90 ? t4 | 32 : t4); } return new A.SassString0(t3.charCodeAt(0) == 0 ? t3 : t3, string._string0$_hasQuotes); }, $signature: 17 }; A._uniqueId_closure0.prototype = { call$1($arguments) { var t1 = $.$get$_previousUniqueId0() + ($.$get$_random1().nextInt$1(36) + 1); $._previousUniqueId0 = t1; if (t1 > Math.pow(36, 6)) $._previousUniqueId0 = B.JSInt_methods.$mod($.$get$_previousUniqueId0(), A._asInt(Math.pow(36, 6))); return new A.SassString0("u" + B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1($.$get$_previousUniqueId0(), 36), 6, "0"), false); }, $signature: 17 }; A.stringClass_closure.prototype = { call$0() { var t2, t1 = type$.JSClass, jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassString", new A.stringClass__closure())); 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)); J.get$$prototype$x(jsClass).sassIndexToStringIndex = A.allowInteropCaptureThisNamed("sassIndexToStringIndex", new A.stringClass__closure3()); t2 = $.$get$_emptyQuoted0(); A.JSClassExtension_injectSuperclass(t1._as(t2.constructor), jsClass); return jsClass; }, $signature: 24 }; A.stringClass__closure.prototype = { call$3($self, textOrOptions, options) { var t1; if (typeof textOrOptions == "string") { t1 = options == null ? null : J.get$quotes$x(options); t1 = new A.SassString0(textOrOptions, t1 == null ? true : t1); } else { type$.nullable__ConstructorOptions_3._as(textOrOptions); t1 = textOrOptions == null ? null : J.get$quotes$x(textOrOptions); t1 = (t1 == null ? true : t1) ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0(); } return t1; }, call$1($self) { return this.call$3($self, null, null); }, call$2($self, textOrOptions) { return this.call$3($self, textOrOptions, null); }, "call*": "call$3", $requiredArgCount: 1, $defaultValues() { return [null, null]; }, $signature: 565 }; A.stringClass__closure0.prototype = { call$1($self) { return $self._string0$_text; }, $signature: 566 }; A.stringClass__closure1.prototype = { call$1($self) { return $self._string0$_hasQuotes; }, $signature: 567 }; A.stringClass__closure2.prototype = { call$1($self) { return $self.get$_string0$_sassLength(); }, $signature: 568 }; A.stringClass__closure3.prototype = { call$3($self, sassIndex, $name) { var t1, index = sassIndex.assertNumber$1($name).assertInt$1($name); if (index === 0) A.throwExpression(A.SassScriptException$0("String index may not be 0.", $name)); else if (Math.abs(index) > $self.get$_string0$_sassLength()) A.throwExpression(A.SassScriptException$0("Invalid index " + sassIndex.toString$0(0) + " for a string with " + $self.get$_string0$_sassLength() + " characters.", $name)); t1 = index < 0 ? $self.get$_string0$_sassLength() + index : index - 1; return A.codepointIndexToCodeUnitIndex0($self._string0$_text, t1); }, call$2($self, sassIndex) { return this.call$3($self, sassIndex, null); }, "call*": "call$3", $requiredArgCount: 2, $defaultValues() { return [null]; }, $signature: 569 }; A._ConstructorOptions1.prototype = {}; A._NodeSassString.prototype = {}; A.legacyStringClass_closure.prototype = { call$3(thisArg, value, dartValue) { var t1; if (dartValue == null) { value.toString; t1 = new A.SassString0(value, false); } else t1 = dartValue; J.set$dartValue$x(thisArg, t1); }, call$2(thisArg, value) { return this.call$3(thisArg, value, null); }, "call*": "call$3", $requiredArgCount: 2, $defaultValues() { return [null]; }, $signature: 570 }; A.legacyStringClass_closure0.prototype = { call$1(thisArg) { return J.get$dartValue$x(thisArg)._string0$_text; }, $signature: 571 }; A.legacyStringClass_closure1.prototype = { call$2(thisArg, value) { J.set$dartValue$x(thisArg, new A.SassString0(value, false)); }, $signature: 572 }; A.SassString0.prototype = { get$_string0$_sassLength() { var t1, result, _this = this, value = _this._string0$__SassString__sassLength_FI; if (value === $) { t1 = new A.Runes(_this._string0$_text); result = t1.get$length(t1); _this._string0$__SassString__sassLength_FI !== $ && A.throwUnnamedLateFieldADI(); _this._string0$__SassString__sassLength_FI = result; value = result; } return value; }, get$isSpecialNumber() { var t1, _2_0, _0_0, _1_0; if (this._string0$_hasQuotes) return false; t1 = this._string0$_text; if (t1.length < 6) return false; _2_0 = t1.charCodeAt(0); $label1$1: { if (99 === _2_0 || 67 === _2_0) { _0_0 = t1.charCodeAt(1); $label0$0: { if (108 === _0_0 || 76 === _0_0) { t1 = (t1.charCodeAt(2) | 32) === 97 && (t1.charCodeAt(3) | 32) === 109 && (t1.charCodeAt(4) | 32) === 112 && t1.charCodeAt(5) === 40; break $label0$0; } if (97 === _0_0 || 65 === _0_0) { t1 = (t1.charCodeAt(2) | 32) === 108 && (t1.charCodeAt(3) | 32) === 99 && t1.charCodeAt(4) === 40; break $label0$0; } t1 = false; break $label0$0; } break $label1$1; } if (118 === _2_0 || 86 === _2_0) { t1 = (t1.charCodeAt(1) | 32) === 97 && (t1.charCodeAt(2) | 32) === 114 && t1.charCodeAt(3) === 40; break $label1$1; } if (101 === _2_0 || 69 === _2_0) { t1 = (t1.charCodeAt(1) | 32) === 110 && (t1.charCodeAt(2) | 32) === 118 && t1.charCodeAt(3) === 40; break $label1$1; } if (109 === _2_0 || 77 === _2_0) { _1_0 = t1.charCodeAt(1); $label2$2: { if (97 === _1_0 || 65 === _1_0) { t1 = (t1.charCodeAt(2) | 32) === 120 && t1.charCodeAt(3) === 40; break $label2$2; } if (105 === _1_0 || 73 === _1_0) { t1 = (t1.charCodeAt(2) | 32) === 110 && t1.charCodeAt(3) === 40; break $label2$2; } t1 = false; break $label2$2; } break $label1$1; } t1 = false; break $label1$1; } return t1; }, get$isVar() { if (this._string0$_hasQuotes) return false; var t1 = this._string0$_text; if (t1.length < 8) return false; return (t1.charCodeAt(0) | 32) === 118 && (t1.charCodeAt(1) | 32) === 97 && (t1.charCodeAt(2) | 32) === 114 && t1.charCodeAt(3) === 40; }, get$isBlank() { return !this._string0$_hasQuotes && this._string0$_text.length === 0; }, accept$1$1(visitor) { var t1 = visitor._serialize0$_quote && this._string0$_hasQuotes, t2 = this._string0$_text; if (t1) visitor._serialize0$_visitQuotedString$1(t2); else visitor._serialize0$_visitUnquotedString$1(t2); return null; }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, assertString$1($name) { return this; }, plus$1(other) { var t1 = this._string0$_text, t2 = this._string0$_hasQuotes; return other instanceof A.SassString0 ? new A.SassString0(t1 + other._string0$_text, t2) : new A.SassString0(t1 + A.serializeValue0(other, false, true), t2); }, $eq(_, other) { if (other == null) return false; return other instanceof A.SassString0 && this._string0$_text === other._string0$_text; }, get$hashCode(_) { var t1 = this._string0$_hashCache; return t1 == null ? this._string0$_hashCache = B.JSString_methods.get$hashCode(this._string0$_text) : t1; } }; A.ModifiableCssStyleRule0.prototype = { accept$1$1(visitor) { return visitor.visitCssStyleRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, equalsIgnoringChildren$1(other) { var t1; if (other instanceof A.ModifiableCssStyleRule0) t1 = B.C_ListEquality.equals$2(0, other._style_rule0$_selector._box0$_inner.value.components, this._style_rule0$_selector._box0$_inner.value.components); else t1 = false; return t1; }, copyWithoutChildren$0() { return A.ModifiableCssStyleRule$0(this._style_rule0$_selector, this.span, this.originalSelector); }, get$span(receiver) { return this.span; } }; A.StyleRule0.prototype = { accept$1$1(visitor) { return visitor.visitStyleRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.children; return this.selector.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.CssStylesheet0.prototype = { get$isGroupEnd() { return false; }, get$isChildless() { return false; }, accept$1$1(visitor) { return visitor.visitCssStylesheet$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, get$children(receiver) { return this.children; }, get$span(receiver) { return this.span; } }; A.ModifiableCssStylesheet0.prototype = { accept$1$1(visitor) { return visitor.visitCssStylesheet$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, equalsIgnoringChildren$1(other) { return other instanceof A.ModifiableCssStylesheet0; }, copyWithoutChildren$0() { return A.ModifiableCssStylesheet$0(this.span); }, $isCssStylesheet0: 1, get$span(receiver) { return this.span; } }; A.StylesheetParser0.prototype = { parse$0() { return this.wrapSpanFormatException$1(new A.StylesheetParser_parse_closure0(this)); }, parseArgumentDeclaration$0() { return this._stylesheet0$_parseSingleProduction$1$1(new A.StylesheetParser_parseArgumentDeclaration_closure0(this), type$.ArgumentDeclaration_2); }, _stylesheet0$_parseSingleProduction$1$1(production, $T) { return this.wrapSpanFormatException$1(new A.StylesheetParser__parseSingleProduction_closure0(this, production, $T)); }, parseSignature$1$requireParens(requireParens) { return this.wrapSpanFormatException$1(new A.StylesheetParser_parseSignature_closure(this, requireParens)); }, _stylesheet0$_statement$1$root(root) { var t2, _this = this, t1 = _this.scanner, _0_0 = t1.peekChar$0(); if (64 === _0_0) return _this.atRule$2$root(new A.StylesheetParser__statement_closure0(_this), root); if (43 === _0_0) { if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1)) return _this._stylesheet0$_styleRule$0(); _this._stylesheet0$_isUseAllowed = false; t2 = t1._string_scanner$_position; t1.readChar$0(); return _this._stylesheet0$_includeRule$1(new A._SpanScannerState(t1, t2)); } if (61 === _0_0) { if (!_this.get$indented()) return _this._stylesheet0$_styleRule$0(); _this._stylesheet0$_isUseAllowed = false; t2 = t1._string_scanner$_position; t1.readChar$0(); _this.whitespace$0(); return _this._stylesheet0$_mixinRule$1(new A._SpanScannerState(t1, t2)); } if (125 === _0_0) t1.error$2$length(0, 'unmatched "}".', 1); return _this._stylesheet0$_inStyleRule || _this._stylesheet0$_inUnknownAtRule || _this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock ? _this._stylesheet0$_declarationOrStyleRule$0() : _this._stylesheet0$_variableDeclarationOrStyleRule$0(); }, _stylesheet0$_statement$0() { return this._stylesheet0$_statement$1$root(false); }, variableDeclarationWithoutNamespace$2(namespace, start_) { var t1, start, $name, t2, value, flagStart, t3, guarded, global, _0_0, endPosition, t4, t5, t6, declaration, _this = this, precedingComment = _this.lastSilentComment; _this.lastSilentComment = null; if (start_ == null) { t1 = _this.scanner; start = new A._SpanScannerState(t1, t1._string_scanner$_position); } else start = start_; $name = _this.variableName$0(); t1 = namespace != null; if (t1) _this._stylesheet0$_assertPublic$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure1(_this, start)); if (_this.get$plainCss()) _this.error$2(0, string$.Sass_v, _this.scanner.spanFrom$1(start)); _this.whitespace$0(); t2 = _this.scanner; t2.expectChar$1(58); _this.whitespace$0(); value = _this._stylesheet0$_expression$0(); flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position); for (t3 = _this.logger, guarded = false, global = false; t2.scanChar$1(33);) { $label0$0: { _0_0 = _this.identifier$0(); if ("default" === _0_0) { if (guarded) { endPosition = t2._string_scanner$_position; t4 = t2._sourceFile; t5 = flagStart.position; t6 = new A._FileSpan(t4, t5, endPosition); t6._FileSpan$3(t4, t5, endPosition); A.WarnForDeprecation_warnForDeprecation0(t3, B.Deprecation_ynv, string$.x21defau, t6, null); } guarded = true; break $label0$0; } if ("global" === _0_0) { if (t1) { endPosition = t2._string_scanner$_position; t4 = t2._sourceFile; t5 = flagStart.position; t6 = new A._FileSpan(t4, t5, endPosition); t6._FileSpan$3(t4, t5, endPosition); _this.error$2(0, string$.x21globai, t6); } else if (global) { endPosition = t2._string_scanner$_position; t4 = t2._sourceFile; t5 = flagStart.position; t6 = new A._FileSpan(t4, t5, endPosition); t6._FileSpan$3(t4, t5, endPosition); A.WarnForDeprecation_warnForDeprecation0(t3, B.Deprecation_ynv, string$.x21globas, t6, null); } global = true; break $label0$0; } endPosition = t2._string_scanner$_position; t4 = t2._sourceFile; t5 = flagStart.position; t6 = new A._FileSpan(t4, t5, endPosition); t6._FileSpan$3(t4, t5, endPosition); _this.error$2(0, "Invalid flag name.", t6); } _this.whitespace$0(); flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position); } _this.expectStatementSeparator$1("variable declaration"); declaration = A.VariableDeclaration$0($name, value, t2.spanFrom$1(start), precedingComment, global, guarded, namespace); if (global) _this._stylesheet0$_globalVariables.putIfAbsent$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure2(declaration)); return declaration; }, variableDeclarationWithoutNamespace$0() { return this.variableDeclarationWithoutNamespace$2(null, null); }, _stylesheet0$_variableDeclarationOrStyleRule$0() { var t1, t2, variableOrInterpolation, t3, _this = this; if (_this.get$plainCss()) return _this._stylesheet0$_styleRule$0(); if (_this.get$indented() && _this.scanner.scanChar$1(92)) return _this._stylesheet0$_styleRule$0(); if (!_this.lookingAtIdentifier$0()) return _this._stylesheet0$_styleRule$0(); t1 = _this.scanner; t2 = t1._string_scanner$_position; variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0(); if (variableOrInterpolation instanceof A.VariableDeclaration0) t1 = variableOrInterpolation; else { t3 = new A.InterpolationBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object)); t3.addInterpolation$1(type$.Interpolation_2._as(variableOrInterpolation)); t2 = _this._stylesheet0$_styleRule$2(t3, new A._SpanScannerState(t1, t2)); t1 = t2; } return t1; }, _stylesheet0$_declarationOrStyleRule$0() { var t1, t2, declarationOrBuffer, _this = this; if (_this.get$plainCss() && _this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inUnknownAtRule) return _this._stylesheet0$_propertyOrVariableDeclaration$0(); if (_this.get$indented() && _this.scanner.scanChar$1(92)) return _this._stylesheet0$_styleRule$0(); t1 = _this.scanner; t2 = t1._string_scanner$_position; declarationOrBuffer = _this._stylesheet0$_declarationOrBuffer$0(); return type$.Statement_2._is(declarationOrBuffer) ? declarationOrBuffer : _this._stylesheet0$_styleRule$2(type$.InterpolationBuffer_2._as(declarationOrBuffer), new A._SpanScannerState(t1, t2)); }, _stylesheet0$_declarationOrBuffer$0() { var midBuffer, couldBeSelector, beforeDeclaration, additional, t3, startsWithPunctuation, variableOrInterpolation, t4, $name, postColonWhitespace, exception, _this = this, t1 = {}, t2 = _this.scanner, start = new A._SpanScannerState(t2, t2._string_scanner$_position), nameBuffer = new A.InterpolationBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object)); if (_this._stylesheet0$_lookingAtPotentialPropertyHack$0()) { t3 = t2.readChar$0(); nameBuffer._interpolation_buffer0$_text._contents += A.Primitives_stringFromCharCode(t3); t3 = _this.rawText$1(_this.get$whitespace()); nameBuffer._interpolation_buffer0$_text._contents += t3; startsWithPunctuation = true; } else startsWithPunctuation = false; if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) return nameBuffer; variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._stylesheet0$_variableDeclarationOrInterpolation$0(); if (variableOrInterpolation instanceof A.VariableDeclaration0) return variableOrInterpolation; else nameBuffer.addInterpolation$1(type$.Interpolation_2._as(variableOrInterpolation)); _this._stylesheet0$_isUseAllowed = false; if (t2.matches$1("/*")) { t3 = _this.rawText$1(_this.get$loudComment()); nameBuffer._interpolation_buffer0$_text._contents += t3; } midBuffer = new A.StringBuffer(""); t3 = _this.get$whitespace(); midBuffer._contents += _this.rawText$1(t3); t4 = t2._string_scanner$_position; if (!t2.scanChar$1(58)) { if (midBuffer._contents.length !== 0) nameBuffer._interpolation_buffer0$_text._contents += A.Primitives_stringFromCharCode(32); return nameBuffer; } midBuffer._contents += A.Primitives_stringFromCharCode(58); $name = nameBuffer.interpolation$1(t2.spanFrom$2(start, new A._SpanScannerState(t2, t4))); if (B.JSString_methods.startsWith$1($name.get$initialPlain(), "--")) { t1 = _this._stylesheet0$_interpolatedDeclarationValue$0(); _this.expectStatementSeparator$1("custom property"); return A.Declaration$0($name, new A.StringExpression0(t1, false), t2.spanFrom$1(start)); } if (t2.scanChar$1(58)) { t1 = nameBuffer; t2 = t1._interpolation_buffer0$_text; t2._contents += A.S(midBuffer); t2._contents += A.Primitives_stringFromCharCode(58); return t1; } else if (_this.get$indented() && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) { t1 = nameBuffer; t1._interpolation_buffer0$_text._contents += A.S(midBuffer); return t1; } postColonWhitespace = _this.rawText$1(t3); if (_this.lookingAtChildren$0()) return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new A.StylesheetParser__declarationOrBuffer_closure1($name)); midBuffer._contents += postColonWhitespace; couldBeSelector = postColonWhitespace.length === 0 && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0(); beforeDeclaration = new A._SpanScannerState(t2, t2._string_scanner$_position); t3 = t1.value = null; try { t3 = t1.value = _this._stylesheet0$_expression$0(); if (_this.lookingAtChildren$0()) { if (couldBeSelector) _this.expectStatementSeparator$0(); } else if (!_this.atEndOfStatement$0()) _this.expectStatementSeparator$0(); } catch (exception) { if (type$.FormatException._is(A.unwrapException(exception))) { if (!couldBeSelector) throw exception; t2.set$state(beforeDeclaration); additional = _this.almostAnyValue$0(); if (!_this.get$indented() && t2.peekChar$0() === 59) throw exception; nameBuffer._interpolation_buffer0$_text._contents += A.S(midBuffer); nameBuffer.addInterpolation$1(additional); return nameBuffer; } else throw exception; } if (_this.lookingAtChildren$0()) return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new A.StylesheetParser__declarationOrBuffer_closure2(t1, $name)); else { _this.expectStatementSeparator$0(); return A.Declaration$0($name, t3, t2.spanFrom$1(start)); } }, _stylesheet0$_variableDeclarationOrInterpolation$0() { var t1, start, identifier, t2, buffer, _this = this; if (!_this.lookingAtIdentifier$0()) return _this.interpolatedIdentifier$0(); t1 = _this.scanner; start = new A._SpanScannerState(t1, t1._string_scanner$_position); identifier = _this.identifier$0(); if (t1.matches$1(".$")) { t1.readChar$0(); return _this.variableDeclarationWithoutNamespace$2(identifier, start); } else { t2 = new A.StringBuffer(""); buffer = new A.InterpolationBuffer0(t2, A._setArrayType([], type$.JSArray_Object)); t2._contents = "" + identifier; if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0()) buffer.addInterpolation$1(_this.interpolatedIdentifier$0()); return buffer.interpolation$1(t1.spanFrom$1(start)); } }, _stylesheet0$_styleRule$2(buffer, start_) { var t2, start, interpolation, wasInStyleRule, _this = this, t1 = {}; _this._stylesheet0$_isUseAllowed = false; if (start_ == null) { t2 = _this.scanner; start = new A._SpanScannerState(t2, t2._string_scanner$_position); } else start = start_; interpolation = t1.interpolation = _this.styleRuleSelector$0(); if (buffer != null) { buffer.addInterpolation$1(interpolation); t2 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(start)); } else t2 = interpolation; if (t2.contents.length === 0) _this.scanner.error$1(0, 'expected "}".'); wasInStyleRule = _this._stylesheet0$_inStyleRule; _this._stylesheet0$_inStyleRule = true; return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__styleRule_closure0(t1, _this, wasInStyleRule, start)); }, _stylesheet0$_styleRule$0() { return this._stylesheet0$_styleRule$2(null, null); }, _stylesheet0$_propertyOrVariableDeclaration$1$parseCustomProperties(parseCustomProperties) { var t3, nameBuffer, variableOrInterpolation, $name, value, _this = this, _s48_ = string$.Nested, t1 = {}, t2 = _this.scanner, start = new A._SpanScannerState(t2, t2._string_scanner$_position); t1.name = null; if (_this._stylesheet0$_lookingAtPotentialPropertyHack$0()) { t3 = new A.StringBuffer(""); nameBuffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object)); t3._contents += A.Primitives_stringFromCharCode(t2.readChar$0()); t3._contents += _this.rawText$1(_this.get$whitespace()); nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0()); t3 = t1.name = nameBuffer.interpolation$1(t2.spanFrom$1(start)); } else if (!_this.get$plainCss()) { variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0(); if (variableOrInterpolation instanceof A.VariableDeclaration0) return variableOrInterpolation; else { type$.Interpolation_2._as(variableOrInterpolation); t1.name = variableOrInterpolation; } t3 = variableOrInterpolation; } else { $name = _this.interpolatedIdentifier$0(); t1.name = $name; t3 = $name; } _this.whitespace$0(); t2.expectChar$1(58); if (parseCustomProperties && B.JSString_methods.startsWith$1(t3.get$initialPlain(), "--")) { t1 = _this._stylesheet0$_interpolatedDeclarationValue$0(); _this.expectStatementSeparator$1("custom property"); return A.Declaration$0(t3, new A.StringExpression0(t1, false), t2.spanFrom$1(start)); } _this.whitespace$0(); if (_this.lookingAtChildren$0()) { if (_this.get$plainCss()) t2.error$1(0, _s48_); return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new A.StylesheetParser__propertyOrVariableDeclaration_closure1(t1)); } value = _this._stylesheet0$_expression$0(); if (_this.lookingAtChildren$0()) { if (_this.get$plainCss()) t2.error$1(0, _s48_); return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new A.StylesheetParser__propertyOrVariableDeclaration_closure2(t1, value)); } else { _this.expectStatementSeparator$0(); return A.Declaration$0(t3, value, t2.spanFrom$1(start)); } }, _stylesheet0$_propertyOrVariableDeclaration$0() { return this._stylesheet0$_propertyOrVariableDeclaration$1$parseCustomProperties(true); }, _stylesheet0$_declarationChild$0() { return this.scanner.peekChar$0() === 64 ? this._stylesheet0$_declarationAtRule$0() : this._stylesheet0$_propertyOrVariableDeclaration$1$parseCustomProperties(false); }, atRule$2$root(child, root) { var $name, wasUseAllowed, value, optional, url, namespace, configuration, span, _this = this, _s9_ = "@use rule", t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$2$name(64, "@-rule"); $name = _this.interpolatedIdentifier$0(); _this.whitespace$0(); wasUseAllowed = _this._stylesheet0$_isUseAllowed; _this._stylesheet0$_isUseAllowed = false; switch ($name.get$asPlain()) { case "at-root": return _this._stylesheet0$_atRootRule$1(start); case "content": return _this._stylesheet0$_contentRule$1(start); case "debug": return _this._stylesheet0$_debugRule$1(start); case "each": return _this._stylesheet0$_eachRule$2(start, child); case "else": return _this._stylesheet0$_disallowedAtRule$1(start); case "error": return _this._stylesheet0$_errorRule$1(start); case "extend": if (!_this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inMixin && !_this._stylesheet0$_inContentBlock) _this.error$2(0, string$.x40exten, t1.spanFrom$1(start)); value = _this.almostAnyValue$0(); optional = t1.scanChar$1(33); if (optional) _this.expectIdentifier$1("optional"); _this.expectStatementSeparator$1("@extend rule"); return new A.ExtendRule0(value, optional, t1.spanFrom$1(start)); case "for": return _this._stylesheet0$_forRule$2(start, child); case "forward": _this._stylesheet0$_isUseAllowed = wasUseAllowed; if (!root) _this._stylesheet0$_disallowedAtRule$1(start); return _this._stylesheet0$_forwardRule$1(start); case "function": return _this._stylesheet0$_functionRule$1(start); case "if": return _this._stylesheet0$_ifRule$2(start, child); case "import": return _this._stylesheet0$_importRule$1(start); case "include": return _this._stylesheet0$_includeRule$1(start); case "media": return _this.mediaRule$1(start); case "mixin": return _this._stylesheet0$_mixinRule$1(start); case "-moz-document": return _this.mozDocumentRule$2(start, $name); case "return": return _this._stylesheet0$_disallowedAtRule$1(start); case "supports": return _this.supportsRule$1(start); case "use": _this._stylesheet0$_isUseAllowed = wasUseAllowed; if (!root) _this._stylesheet0$_disallowedAtRule$1(start); url = _this._stylesheet0$_urlString$0(); _this.whitespace$0(); namespace = _this._stylesheet0$_useNamespace$2(url, start); _this.whitespace$0(); configuration = _this._stylesheet0$_configuration$0(); _this.expectStatementSeparator$1(_s9_); span = t1.spanFrom$1(start); if (!_this._stylesheet0$_isUseAllowed) _this.error$2(0, string$.x40use_r, span); _this.expectStatementSeparator$1(_s9_); t1 = new A.UseRule0(url, namespace, configuration == null ? B.List_empty21 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2), span); t1.UseRule$4$configuration0(url, namespace, span, configuration); return t1; case "warn": return _this._stylesheet0$_warnRule$1(start); case "while": return _this._stylesheet0$_whileRule$2(start, child); default: return _this.unknownAtRule$2(start, $name); } }, _stylesheet0$_declarationAtRule$0() { var _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), _0_0 = _this._stylesheet0$_plainAtRuleName$0(); $label0$0: { if ("content" === _0_0) { t1 = _this._stylesheet0$_contentRule$1(start); break $label0$0; } if ("debug" === _0_0) { t1 = _this._stylesheet0$_debugRule$1(start); break $label0$0; } if ("each" === _0_0) { t1 = _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_declarationChild()); break $label0$0; } if ("else" === _0_0) _this._stylesheet0$_disallowedAtRule$1(start); if ("error" === _0_0) { t1 = _this._stylesheet0$_errorRule$1(start); break $label0$0; } if ("for" === _0_0) { t1 = _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_declarationChild()); break $label0$0; } if ("if" === _0_0) { t1 = _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_declarationChild()); break $label0$0; } if ("include" === _0_0) { t1 = _this._stylesheet0$_includeRule$1(start); break $label0$0; } if ("warn" === _0_0) { t1 = _this._stylesheet0$_warnRule$1(start); break $label0$0; } if ("while" === _0_0) { t1 = _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_declarationChild()); break $label0$0; } t1 = _this._stylesheet0$_disallowedAtRule$1(start); } return t1; }, _stylesheet0$_functionChild$0() { var state, variableDeclarationError, stackTrace, statement, t2, namespace, exception, t3, start, _0_0, value, _this = this, t1 = _this.scanner; if (t1.peekChar$0() !== 64) { t2 = t1._string_scanner$_position; state = new A._SpanScannerState(t1, t2); try { namespace = _this.identifier$0(); t1.expectChar$1(46); t2 = _this.variableDeclarationWithoutNamespace$2(namespace, new A._SpanScannerState(t1, t2)); return t2; } catch (exception) { t2 = A.unwrapException(exception); t3 = type$.SourceSpanFormatException; if (t3._is(t2)) { variableDeclarationError = t2; stackTrace = A.getTraceFromException(exception); t1.set$state(state); statement = null; try { statement = _this._stylesheet0$_declarationOrStyleRule$0(); } catch (exception) { if (t3._is(A.unwrapException(exception))) throw A.wrapException(variableDeclarationError); else throw exception; } t2 = statement instanceof A.StyleRule0 ? "style rules" : "declarations"; _this.error$3(0, "@function rules may not contain " + t2 + ".", J.get$span$z(statement), stackTrace); } else throw exception; } } start = new A._SpanScannerState(t1, t1._string_scanner$_position); _0_0 = _this._stylesheet0$_plainAtRuleName$0(); $label0$0: { if ("debug" === _0_0) { t1 = _this._stylesheet0$_debugRule$1(start); break $label0$0; } if ("each" === _0_0) { t1 = _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_functionChild()); break $label0$0; } if ("else" === _0_0) _this._stylesheet0$_disallowedAtRule$1(start); if ("error" === _0_0) { t1 = _this._stylesheet0$_errorRule$1(start); break $label0$0; } if ("for" === _0_0) { t1 = _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_functionChild()); break $label0$0; } if ("if" === _0_0) { t1 = _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_functionChild()); break $label0$0; } if ("return" === _0_0) { value = _this._stylesheet0$_expression$0(); _this.expectStatementSeparator$1("@return rule"); t1 = new A.ReturnRule0(value, t1.spanFrom$1(start)); break $label0$0; } if ("warn" === _0_0) { t1 = _this._stylesheet0$_warnRule$1(start); break $label0$0; } if ("while" === _0_0) { t1 = _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_functionChild()); break $label0$0; } t1 = _this._stylesheet0$_disallowedAtRule$1(start); } return t1; }, _stylesheet0$_plainAtRuleName$0() { this.scanner.expectChar$2$name(64, "@-rule"); var $name = this.identifier$0(); this.whitespace$0(); return $name; }, _stylesheet0$_atRootRule$1(start) { var t2, t3, t4, buffer, t5, query, _this = this, t1 = _this.scanner; if (t1.peekChar$0() === 40) { t2 = t1._string_scanner$_position; t3 = new A.StringBuffer(""); t4 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer0(t3, t4); t1.expectChar$1(40); t3._contents += A.Primitives_stringFromCharCode(40); _this.whitespace$0(); t5 = _this._stylesheet0$_expression$0(); buffer._interpolation_buffer0$_flushText$0(); t4.push(t5); if (t1.scanChar$1(58)) { _this.whitespace$0(); t3._contents += A.Primitives_stringFromCharCode(58); t3._contents += A.Primitives_stringFromCharCode(32); t5 = _this._stylesheet0$_expression$0(); buffer._interpolation_buffer0$_flushText$0(); t4.push(t5); } t1.expectChar$1(41); _this.whitespace$0(); t3._contents += A.Primitives_stringFromCharCode(41); query = buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))); _this.whitespace$0(); return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__atRootRule_closure1(query)); } else if (_this.lookingAtChildren$0()) return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__atRootRule_closure2()); else return A.AtRootRule$0(A._setArrayType([_this._stylesheet0$_styleRule$0()], type$.JSArray_Statement_2), t1.spanFrom$1(start), null); }, _stylesheet0$_contentRule$1(start) { var t1, $arguments, t2, t3, _this = this; if (!_this._stylesheet0$_inMixin) _this.error$2(0, string$.x40conte, _this.scanner.spanFrom$1(start)); _this.whitespace$0(); t1 = _this.scanner; if (t1.peekChar$0() === 40) $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true); else { t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position); t3 = t2.offset; $arguments = A.ArgumentInvocation$empty0(A._FileSpan$(t2.file, t3, t3)); } _this.expectStatementSeparator$1("@content rule"); return new A.ContentRule0($arguments, t1.spanFrom$1(start)); }, _stylesheet0$_debugRule$1(start) { var value = this._stylesheet0$_expression$0(); this.expectStatementSeparator$1("@debug rule"); return new A.DebugRule0(value, this.scanner.spanFrom$1(start)); }, _stylesheet0$_eachRule$2(start, child) { var variables, t1, _this = this, wasInControlDirective = _this._stylesheet0$_inControlDirective; _this._stylesheet0$_inControlDirective = true; variables = A._setArrayType([_this.variableName$0()], type$.JSArray_String); _this.whitespace$0(); for (t1 = _this.scanner; t1.scanChar$1(44);) { _this.whitespace$0(); t1.expectChar$1(36); variables.push(_this.identifier$1$normalize(true)); _this.whitespace$0(); } _this.expectIdentifier$1("in"); _this.whitespace$0(); return _this._stylesheet0$_withChildren$3(child, start, new A.StylesheetParser__eachRule_closure0(_this, wasInControlDirective, variables, _this._stylesheet0$_expression$0())); }, _stylesheet0$_errorRule$1(start) { var value = this._stylesheet0$_expression$0(); this.expectStatementSeparator$1("@error rule"); return new A.ErrorRule0(value, this.scanner.spanFrom$1(start)); }, _stylesheet0$_functionRule$1(start) { var $name, $arguments, _0_0, _this = this, precedingComment = _this.lastSilentComment; _this.lastSilentComment = null; $name = _this.identifier$1$normalize(true); _this.whitespace$0(); $arguments = _this._stylesheet0$_argumentDeclaration$0(); if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock) _this.error$2(0, string$.Mixinscf, _this.scanner.spanFrom$1(start)); else if (_this._stylesheet0$_inControlDirective) _this.error$2(0, string$.Functi, _this.scanner.spanFrom$1(start)); _0_0 = A.unvendor0($name); 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) _this.error$2(0, "Invalid function name.", _this.scanner.spanFrom$1(start)); _this.whitespace$0(); return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_functionChild(), start, new A.StylesheetParser__functionRule_closure0($name, $arguments, precedingComment)); }, _stylesheet0$_forRule$2(start, child) { var variable, from, _this = this, t1 = {}, wasInControlDirective = _this._stylesheet0$_inControlDirective; _this._stylesheet0$_inControlDirective = true; variable = _this.variableName$0(); _this.whitespace$0(); _this.expectIdentifier$1("from"); _this.whitespace$0(); t1.exclusive = null; from = _this._stylesheet0$_expression$1$until(new A.StylesheetParser__forRule_closure1(t1, _this)); if (t1.exclusive == null) _this.scanner.error$1(0, 'Expected "to" or "through".'); _this.whitespace$0(); return _this._stylesheet0$_withChildren$3(child, start, new A.StylesheetParser__forRule_closure2(t1, _this, wasInControlDirective, variable, from, _this._stylesheet0$_expression$0())); }, _stylesheet0$_forwardRule$1(start) { var prefix, _0_0, t1, t2, hiddenVariables, hiddenMixinsAndFunctions, shownVariables, shownMixinsAndFunctions, _1_0, configuration, span, t3, t4, _this = this, _null = null, url = _this._stylesheet0$_urlString$0(); _this.whitespace$0(); if (_this.scanIdentifier$1("as")) { _this.whitespace$0(); prefix = _this.identifier$1$normalize(true); _this.scanner.expectChar$1(42); _this.whitespace$0(); } else prefix = _null; if (_this.scanIdentifier$1("show")) { _0_0 = _this._stylesheet0$_memberList$0(); t1 = _0_0._0; t2 = _0_0._1; hiddenVariables = _null; hiddenMixinsAndFunctions = hiddenVariables; shownVariables = t2; shownMixinsAndFunctions = t1; } else { if (_this.scanIdentifier$1("hide")) { _1_0 = _this._stylesheet0$_memberList$0(); t1 = _1_0._0; t2 = _1_0._1; hiddenVariables = t2; hiddenMixinsAndFunctions = t1; } else { hiddenVariables = _null; hiddenMixinsAndFunctions = hiddenVariables; } shownVariables = _null; shownMixinsAndFunctions = shownVariables; } configuration = _this._stylesheet0$_configuration$1$allowGuarded(true); _this.expectStatementSeparator$1("@forward rule"); span = _this.scanner.spanFrom$1(start); if (!_this._stylesheet0$_isUseAllowed) _this.error$2(0, string$.x40forwa, span); if (shownMixinsAndFunctions != null) { shownVariables.toString; t1 = type$.String; t2 = A.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1); t3 = type$.UnmodifiableSetView_String; t1 = A.LinkedHashSet_LinkedHashSet$of(shownVariables, t1); t4 = configuration == null ? B.List_empty21 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2); return new A.ForwardRule0(url, new A.UnmodifiableSetView0(t2, t3), new A.UnmodifiableSetView0(t1, t3), _null, _null, prefix, t4, span); } else if (hiddenMixinsAndFunctions != null) { hiddenVariables.toString; t1 = type$.String; t2 = A.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1); t3 = type$.UnmodifiableSetView_String; t1 = A.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1); t4 = configuration == null ? B.List_empty21 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2); return new A.ForwardRule0(url, _null, _null, new A.UnmodifiableSetView0(t2, t3), new A.UnmodifiableSetView0(t1, t3), prefix, t4, span); } else return new A.ForwardRule0(url, _null, _null, _null, _null, prefix, configuration == null ? B.List_empty21 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2), span); }, _stylesheet0$_memberList$0() { var _this = this, t1 = type$.String, identifiers = A.LinkedHashSet_LinkedHashSet$_empty(t1), variables = A.LinkedHashSet_LinkedHashSet$_empty(t1); t1 = _this.scanner; do { _this.whitespace$0(); _this.withErrorMessage$2(string$.Expect, new A.StylesheetParser__memberList_closure0(_this, variables, identifiers)); _this.whitespace$0(); } while (t1.scanChar$1(44)); return new A._Record_2(identifiers, variables); }, _stylesheet0$_ifRule$2(start, child) { var condition, children, clauses, lastClause, span, _this = this, ifIndentation = _this.get$currentIndentation(), wasInControlDirective = _this._stylesheet0$_inControlDirective; _this._stylesheet0$_inControlDirective = true; condition = _this._stylesheet0$_expression$0(); children = _this.children$1(0, child); _this.whitespaceWithoutComments$0(); clauses = A._setArrayType([A.IfClause$0(condition, children)], type$.JSArray_IfClause_2); while (true) { if (!_this.scanElse$1(ifIndentation)) { lastClause = null; break; } _this.whitespace$0(); if (_this.scanIdentifier$1("if")) { _this.whitespace$0(); clauses.push(A.IfClause$0(_this._stylesheet0$_expression$0(), _this.children$1(0, child))); } else { lastClause = A.ElseClause$0(_this.children$1(0, child)); break; } } _this._stylesheet0$_inControlDirective = wasInControlDirective; span = _this.scanner.spanFrom$1(start); _this.whitespaceWithoutComments$0(); return new A.IfRule0(A.List_List$unmodifiable(clauses, type$.IfClause_2), lastClause, span); }, _stylesheet0$_importRule$1(start) { var argument, t3, _this = this, imports = A._setArrayType([], type$.JSArray_Import_2), t1 = _this.scanner, t2 = _this.logger; do { _this.whitespace$0(); argument = _this.importArgument$0(); t3 = argument instanceof A.DynamicImport0; if (t3) A.WarnForDeprecation_warnForDeprecation0(t2, B.Deprecation_import_true_import, string$.Sass__, argument.span, null); if ((_this._stylesheet0$_inControlDirective || _this._stylesheet0$_inMixin) && t3) _this._stylesheet0$_disallowedAtRule$1(start); imports.push(argument); _this.whitespace$0(); } while (t1.scanChar$1(44)); _this.expectStatementSeparator$1("@import rule"); t1 = t1.spanFrom$1(start); return new A.ImportRule0(A.List_List$unmodifiable(imports, type$.Import_2), t1); }, importArgument$0() { var url, urlSpan, innerError, stackTrace, modifiers, t2, exception, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), _0_0 = t1.peekChar$0(); if (117 === _0_0 || 85 === _0_0) { url = _this.dynamicUrl$0(); _this.whitespace$0(); modifiers = _this.tryImportModifiers$0(); return new A.StaticImport0(A.Interpolation$0(A._setArrayType([url], type$.JSArray_Object), t1.spanFrom$1(start)), modifiers, t1.spanFrom$1(start)); } url = _this.string$0(); urlSpan = t1.spanFrom$1(start); _this.whitespace$0(); modifiers = _this.tryImportModifiers$0(); if (_this.isPlainImportUrl$1(url) || modifiers != null) { t2 = urlSpan; return new A.StaticImport0(A.Interpolation$0(A._setArrayType([A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, null)], type$.JSArray_Object), urlSpan), modifiers, t1.spanFrom$1(start)); } else try { t1 = _this.parseImportUrl$1(url); return new A.DynamicImport0(t1, urlSpan); } catch (exception) { t1 = A.unwrapException(exception); if (type$.FormatException._is(t1)) { innerError = t1; stackTrace = A.getTraceFromException(exception); _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), urlSpan, stackTrace); } else throw exception; } }, parseImportUrl$1(url) { var t1 = $.$get$windows(); if (t1.style.rootLength$1(url) > 0 && !$.$get$url().style.isRootRelative$1(url)) return t1.toUri$1(url).toString$0(0); A.Uri_parse(url); return url; }, isPlainImportUrl$1(url) { var _0_0, t1; if (url.length < 5) return false; if (B.JSString_methods.endsWith$1(url, ".css")) return true; _0_0 = url.charCodeAt(0); $label0$0: { if (47 === _0_0) { t1 = url.charCodeAt(1) === 47; break $label0$0; } if (104 === _0_0) { t1 = B.JSString_methods.startsWith$1(url, "http://") || B.JSString_methods.startsWith$1(url, "https://"); break $label0$0; } t1 = false; break $label0$0; } return t1; }, tryImportModifiers$0() { var t1, start, t2, t3, buffer, identifier, t4, $name, query, endPosition, t5, result, _this = this; if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0() && _this.scanner.peekChar$0() !== 40) return null; t1 = _this.scanner; start = new A._SpanScannerState(t1, t1._string_scanner$_position); t2 = new A.StringBuffer(""); t3 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer0(t2, t3); for (; true;) if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) { if (!(t3.length === 0 && t2._contents.length === 0)) t2._contents += A.Primitives_stringFromCharCode(32); identifier = _this.interpolatedIdentifier$0(); buffer.addInterpolation$1(identifier); t4 = identifier.get$asPlain(); $name = t4 == null ? null : t4.toLowerCase(); if ($name !== "and" && t1.scanChar$1(40)) { if ($name === "supports") { query = _this._stylesheet0$_importSupportsQuery$0(); t4 = !(query instanceof A.SupportsDeclaration0); if (t4) t2._contents += A.Primitives_stringFromCharCode(40); buffer._interpolation_buffer0$_flushText$0(); t3.push(new A.SupportsExpression0(query)); if (t4) t2._contents += A.Primitives_stringFromCharCode(41); } else { t2._contents += A.Primitives_stringFromCharCode(40); buffer.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true)); t2._contents += A.Primitives_stringFromCharCode(41); } t1.expectChar$1(41); _this.whitespace$0(); } else { _this.whitespace$0(); if (t1.scanChar$1(44)) { t2._contents += ", "; buffer.addInterpolation$1(_this._stylesheet0$_mediaQueryList$0()); endPosition = t1._string_scanner$_position; t4 = t1._sourceFile; t5 = start.position; t1 = new A._FileSpan(t4, t5, endPosition); t1._FileSpan$3(t4, t5, endPosition); t5 = type$.Object; t4 = A.List_List$of(t3, true, t5); t3 = t2._contents; if (t3.length !== 0) t4.push(t3.charCodeAt(0) == 0 ? t3 : t3); result = A.List_List$from(t4, false, t5); result.fixed$length = Array; result.immutable$list = Array; t2 = new A.Interpolation0(result, t1); t2.Interpolation$20(t4, t1); return t2; } } } else if (t1.peekChar$0() === 40) { if (!(t3.length === 0 && t2._contents.length === 0)) t2._contents += A.Primitives_stringFromCharCode(32); buffer.addInterpolation$1(_this._stylesheet0$_mediaQueryList$0()); endPosition = t1._string_scanner$_position; t1 = t1._sourceFile; t4 = start.position; t5 = new A._FileSpan(t1, t4, endPosition); t5._FileSpan$3(t1, t4, endPosition); t4 = type$.Object; t3 = A.List_List$of(t3, true, t4); t1 = t2._contents; if (t1.length !== 0) t3.push(t1.charCodeAt(0) == 0 ? t1 : t1); result = A.List_List$from(t3, false, t4); result.fixed$length = Array; result.immutable$list = Array; t1 = new A.Interpolation0(result, t5); t1.Interpolation$20(t3, t5); return t1; } else { endPosition = t1._string_scanner$_position; t1 = t1._sourceFile; t4 = start.position; t5 = new A._FileSpan(t1, t4, endPosition); t5._FileSpan$3(t1, t4, endPosition); t4 = type$.Object; t3 = A.List_List$of(t3, true, t4); t1 = t2._contents; if (t1.length !== 0) t3.push(t1.charCodeAt(0) == 0 ? t1 : t1); result = A.List_List$from(t3, false, t4); result.fixed$length = Array; result.immutable$list = Array; t1 = new A.Interpolation0(result, t5); t1.Interpolation$20(t3, t5); return t1; } }, _stylesheet0$_importSupportsQuery$0() { var t1, t2, _0_0, $function, $name, _this = this; if (_this.scanIdentifier$1("not")) { _this.whitespace$0(); t1 = _this.scanner; t2 = t1._string_scanner$_position; return new A.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2))); } else { t1 = _this.scanner; if (t1.peekChar$0() === 40) return _this._stylesheet0$_supportsCondition$0(); else { _0_0 = _this._stylesheet0$_tryImportSupportsFunction$0(); if (_0_0 != null) { $function = _0_0; t2 = true; } else { $function = null; t2 = false; } if (t2) return $function; t2 = t1._string_scanner$_position; $name = _this._stylesheet0$_expression$0(); t1.expectChar$1(58); return _this._stylesheet0$_supportsDeclarationValue$2($name, new A._SpanScannerState(t1, t2)); } } }, _stylesheet0$_tryImportSupportsFunction$0() { var t1, start, $name, value, _this = this; if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) return null; t1 = _this.scanner; start = new A._SpanScannerState(t1, t1._string_scanner$_position); $name = _this.interpolatedIdentifier$0(); if (!t1.scanChar$1(40)) { t1.set$state(start); return null; } value = _this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true); t1.expectChar$1(41); return new A.SupportsFunction0($name, value, t1.spanFrom$1(start)); }, _stylesheet0$_includeRule$1(start) { var name0, namespace, $arguments, t2, t3, contentArguments, contentArguments_, wasInContentBlock, $content, _this = this, _null = null, $name = _this.identifier$0(), t1 = _this.scanner; if (t1.scanChar$1(46)) { name0 = _this._stylesheet0$_publicIdentifier$0(); namespace = $name; $name = name0; } else { $name = A.stringReplaceAllUnchecked($name, "_", "-"); namespace = _null; } _this.whitespace$0(); if (t1.peekChar$0() === 40) $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true); else { t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position); t3 = t2.offset; $arguments = A.ArgumentInvocation$empty0(A._FileSpan$(t2.file, t3, t3)); } _this.whitespace$0(); if (_this.scanIdentifier$1("using")) { _this.whitespace$0(); contentArguments = _this._stylesheet0$_argumentDeclaration$0(); _this.whitespace$0(); } else contentArguments = _null; t2 = contentArguments == null; if (!t2 || _this.lookingAtChildren$0()) { if (t2) { t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position); t3 = t2.offset; contentArguments_ = new A.ArgumentDeclaration0(B.List_empty22, _null, A._FileSpan$(t2.file, t3, t3)); } else contentArguments_ = contentArguments; wasInContentBlock = _this._stylesheet0$_inContentBlock; _this._stylesheet0$_inContentBlock = true; $content = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__includeRule_closure0(contentArguments_)); _this._stylesheet0$_inContentBlock = wasInContentBlock; } else { _this.expectStatementSeparator$0(); $content = _null; } t1 = t1.spanFrom$2(start, start); t2 = $content == null ? $arguments : $content; return new A.IncludeRule0(namespace, $name, $arguments, $content, t1.expand$1(0, t2.get$span(t2))); }, mediaRule$1(start) { return this._stylesheet0$_withChildren$3(this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_mediaRule_closure0(this._stylesheet0$_mediaQueryList$0())); }, _stylesheet0$_mixinRule$1(start) { var $name, t1, $arguments, t2, t3, _this = this, precedingComment = _this.lastSilentComment; _this.lastSilentComment = null; $name = _this.identifier$1$normalize(true); _this.whitespace$0(); t1 = _this.scanner; if (t1.peekChar$0() === 40) $arguments = _this._stylesheet0$_argumentDeclaration$0(); else { t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position); t3 = t2.offset; $arguments = new A.ArgumentDeclaration0(B.List_empty22, null, A._FileSpan$(t2.file, t3, t3)); } if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock) _this.error$2(0, string$.Mixinscm, t1.spanFrom$1(start)); else if (_this._stylesheet0$_inControlDirective) _this.error$2(0, string$.Mixinsb, t1.spanFrom$1(start)); _this.whitespace$0(); _this._stylesheet0$_inMixin = true; return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__mixinRule_closure0(_this, $name, $arguments, precedingComment)); }, mozDocumentRule$2(start, $name) { var t5, t6, identifier, _0_0, contents, argument, trailing, endPosition, t7, t8, start0, end, _this = this, _box_0 = {}, t1 = _this.scanner, t2 = t1._string_scanner$_position, t3 = new A.StringBuffer(""), t4 = A._setArrayType([], type$.JSArray_Object), buffer = new A.InterpolationBuffer0(t3, t4); _box_0.needsDeprecationWarning = false; for (t5 = _this.get$whitespace(); true;) { if (t1.peekChar$0() === 35) { t6 = _this.singleInterpolation$0(); buffer._interpolation_buffer0$_flushText$0(); t4.push(t6); _box_0.needsDeprecationWarning = true; } else { t6 = t1._string_scanner$_position; identifier = _this.identifier$0(); $label0$0: { if ("url" === identifier || "url-prefix" === identifier || "domain" === identifier) { _0_0 = _this._stylesheet0$_tryUrlContents$2$name(new A._SpanScannerState(t1, t6), identifier); if (_0_0 != null) { contents = _0_0; t6 = true; } else { contents = null; t6 = false; } if (t6) buffer.addInterpolation$1(contents); else { t1.expectChar$1(40); _this.whitespace$0(); argument = _this.interpolatedString$0(); t1.expectChar$1(41); t3._contents += identifier; t3._contents += A.Primitives_stringFromCharCode(40); buffer.addInterpolation$1(argument.asInterpolation$0()); t3._contents += A.Primitives_stringFromCharCode(41); } t6 = t3._contents; trailing = t6.charCodeAt(0) == 0 ? t6 : t6; 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("")')) _box_0.needsDeprecationWarning = true; break $label0$0; } if ("regexp" === identifier) { t3._contents += "regexp("; t1.expectChar$1(40); buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0()); t1.expectChar$1(41); t3._contents += A.Primitives_stringFromCharCode(41); _box_0.needsDeprecationWarning = true; break $label0$0; } endPosition = t1._string_scanner$_position; t7 = t1._sourceFile; t8 = new A._FileSpan(t7, t6, endPosition); t8._FileSpan$3(t7, t6, endPosition); _this.error$2(0, "Invalid function name.", t8); } } _this.whitespace$0(); if (!t1.scanChar$1(44)) break; t3._contents += A.Primitives_stringFromCharCode(44); start0 = t1._string_scanner$_position; t5.call$0(); end = t1._string_scanner$_position; t3._contents += B.JSString_methods.substring$2(t1.string, start0, end); } 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))))); }, supportsRule$1(start) { var _this = this, condition = _this._stylesheet0$_supportsCondition$0(); _this.whitespace$0(); return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_supportsRule_closure0(condition)); }, _stylesheet0$_useNamespace$2(url, start) { var namespace, basename, dot, t1, exception, _this = this; if (_this.scanIdentifier$1("as")) { _this.whitespace$0(); return _this.scanner.scanChar$1(42) ? null : _this.identifier$0(); } basename = url.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(url.get$pathSegments()); dot = B.JSString_methods.indexOf$1(basename, "."); t1 = B.JSString_methods.startsWith$1(basename, "_") ? 1 : 0; namespace = B.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot); try { t1 = A.SpanScanner$(namespace, null); t1 = new A.Parser1(t1, _this.logger, null)._parser0$_parseIdentifier$0(); return t1; } catch (exception) { if (type$.SassFormatException_2._is(A.unwrapException(exception))) _this.error$2(0, 'The default namespace "' + A.S(namespace) + string$.x22x20is_n, _this.scanner.spanFrom$1(start)); else throw exception; } }, _stylesheet0$_configuration$1$allowGuarded(allowGuarded) { var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, t4, t5, span, _this = this; if (!_this.scanIdentifier$1("with")) return null; variableNames = A.LinkedHashSet_LinkedHashSet$_empty(type$.String); configuration = A._setArrayType([], type$.JSArray_ConfiguredVariable_2); _this.whitespace$0(); t1 = _this.scanner; t1.expectChar$1(40); for (; true;) { _this.whitespace$0(); t2 = t1._string_scanner$_position; t1.expectChar$1(36); $name = _this.identifier$1$normalize(true); _this.whitespace$0(); t1.expectChar$1(58); _this.whitespace$0(); expression = _this.expressionUntilComma$0(); t3 = t1._string_scanner$_position; if (allowGuarded && t1.scanChar$1(33)) if (_this.identifier$0() === "default") { _this.whitespace$0(); guarded = true; } else { endPosition = t1._string_scanner$_position; t4 = t1._sourceFile; t5 = new A._FileSpan(t4, t3, endPosition); t5._FileSpan$3(t4, t3, endPosition); _this.error$2(0, "Invalid flag name.", t5); guarded = false; } else guarded = false; endPosition = t1._string_scanner$_position; t3 = t1._sourceFile; span = new A._FileSpan(t3, t2, endPosition); span._FileSpan$3(t3, t2, endPosition); if (variableNames.contains$1(0, $name)) _this.error$2(0, string$.The_sa, span); variableNames.add$1(0, $name); configuration.push(new A.ConfiguredVariable0($name, expression, guarded, span)); if (!t1.scanChar$1(44)) break; _this.whitespace$0(); if (!_this._stylesheet0$_lookingAtExpression$0()) break; } t1.expectChar$1(41); return configuration; }, _stylesheet0$_configuration$0() { return this._stylesheet0$_configuration$1$allowGuarded(false); }, _stylesheet0$_warnRule$1(start) { var value = this._stylesheet0$_expression$0(); this.expectStatementSeparator$1("@warn rule"); return new A.WarnRule0(value, this.scanner.spanFrom$1(start)); }, _stylesheet0$_whileRule$2(start, child) { var _this = this, wasInControlDirective = _this._stylesheet0$_inControlDirective; _this._stylesheet0$_inControlDirective = true; return _this._stylesheet0$_withChildren$3(child, start, new A.StylesheetParser__whileRule_closure0(_this, wasInControlDirective, _this._stylesheet0$_expression$0())); }, unknownAtRule$2(start, $name) { var t2, t3, rule, _this = this, t1 = {}, wasInUnknownAtRule = _this._stylesheet0$_inUnknownAtRule; _this._stylesheet0$_inUnknownAtRule = true; t1.value = null; t2 = _this.scanner; t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this.almostAnyValue$0() : null; if (_this.lookingAtChildren$0()) rule = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_unknownAtRule_closure0(t1, $name)); else { _this.expectStatementSeparator$0(); rule = A.AtRule$0($name, t2.spanFrom$1(start), null, t3); } _this._stylesheet0$_inUnknownAtRule = wasInUnknownAtRule; return rule; }, _stylesheet0$_disallowedAtRule$1(start) { this.almostAnyValue$0(); this.error$2(0, "This at-rule is not allowed here.", this.scanner.spanFrom$1(start)); }, _stylesheet0$_argumentDeclaration$0() { var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, t4, t5, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; t1.expectChar$1(40); _this.whitespace$0(); $arguments = A._setArrayType([], type$.JSArray_Argument_2); named = A.LinkedHashSet_LinkedHashSet$_empty(type$.String); while (true) { if (!(t1.peekChar$0() === 36)) { restArgument = null; break; } t3 = t1._string_scanner$_position; t1.expectChar$1(36); $name = _this.identifier$1$normalize(true); _this.whitespace$0(); if (t1.scanChar$1(58)) { _this.whitespace$0(); defaultValue = _this.expressionUntilComma$0(); } else { if (t1.scanChar$1(46)) { t1.expectChar$1(46); t1.expectChar$1(46); _this.whitespace$0(); restArgument = $name; break; } defaultValue = null; } endPosition = t1._string_scanner$_position; t4 = t1._sourceFile; t5 = new A._FileSpan(t4, t3, endPosition); t5._FileSpan$3(t4, t3, endPosition); $arguments.push(new A.Argument0($name, defaultValue, t5)); if (!named.add$1(0, $name)) _this.error$2(0, "Duplicate argument.", B.JSArray_methods.get$last($arguments).span); if (!t1.scanChar$1(44)) { restArgument = null; break; } _this.whitespace$0(); } t1.expectChar$1(41); t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2)); return new A.ArgumentDeclaration0(A.List_List$unmodifiable($arguments, type$.Argument_2), restArgument, t1); }, _stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, mixin) { var positional, t3, t4, named, keywordRest, t5, rest, expression, t6, t7, result, _this = this, _null = null, t1 = _this.scanner, t2 = t1._string_scanner$_position; t1.expectChar$1(40); _this.whitespace$0(); positional = A._setArrayType([], type$.JSArray_Expression_2); t3 = type$.String; t4 = type$.Expression_2; named = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4); t5 = !mixin; rest = _null; while (true) { if (!_this._stylesheet0$_lookingAtExpression$0()) { keywordRest = _null; break; } expression = _this.expressionUntilComma$1$singleEquals(t5); _this.whitespace$0(); if (expression instanceof A.VariableExpression0 && t1.scanChar$1(58)) { _this.whitespace$0(); t6 = expression.name; if (named.containsKey$1(t6)) _this.error$2(0, "Duplicate argument.", expression.span); named.$indexSet(0, t6, _this.expressionUntilComma$1$singleEquals(t5)); } else if (t1.scanChar$1(46)) { t1.expectChar$1(46); t1.expectChar$1(46); if (rest != null) { _this.whitespace$0(); keywordRest = expression; break; } rest = expression; } else if (named.__js_helper$_length !== 0) _this.error$2(0, string$.Positi, expression.get$span(expression)); else positional.push(expression); _this.whitespace$0(); if (!t1.scanChar$1(44)) { keywordRest = _null; break; } _this.whitespace$0(); if (allowEmptySecondArg && positional.length === 1 && named.__js_helper$_length === 0 && rest == null && t1.peekChar$0() === 41) { t5 = t1._sourceFile; t6 = t1._string_scanner$_position; new A.FileLocation(t5, t6).FileLocation$_$2(t5, t6); t7 = new A._FileSpan(t5, t6, t6); t7._FileSpan$3(t5, t6, t6); t6 = A._setArrayType([""], type$.JSArray_Object); result = A.List_List$from(t6, false, type$.Object); result.fixed$length = Array; result.immutable$list = Array; t5 = new A.Interpolation0(result, t7); t5.Interpolation$20(t6, t7); positional.push(new A.StringExpression0(t5, false)); keywordRest = _null; break; } } t1.expectChar$1(41); t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2)); return new A.ArgumentInvocation0(A.List_List$unmodifiable(positional, t4), A.ConstantMap_ConstantMap$from(named, t3, t4), rest, keywordRest, t1); }, _stylesheet0$_argumentInvocation$0() { return this._stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(false, false); }, _stylesheet0$_argumentInvocation$1$allowEmptySecondArg(allowEmptySecondArg) { return this._stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, false); }, _stylesheet0$_argumentInvocation$1$mixin(mixin) { return this._stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(false, mixin); }, _stylesheet0$_expression$3$bracketList$singleEquals$until(bracketList, singleEquals, until) { var t2, beforeBracket, start, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, t3, _3_0, _3_28, _3_32, _3_40, _1_0, t4, _2_0, commaExpressions, spaceExpressions, singleExpression, _this = this, _s20_ = "Expected expression.", _box_0 = {}, t1 = until != null; if (t1 && until.call$0()) _this.scanner.error$1(0, _s20_); if (bracketList) { t2 = _this.scanner; beforeBracket = new A._SpanScannerState(t2, t2._string_scanner$_position); t2.expectChar$1(91); _this.whitespace$0(); if (t2.scanChar$1(93)) { t1 = A._setArrayType([], type$.JSArray_Expression_2); t2 = t2.spanFrom$1(beforeBracket); return new A.ListExpression0(A.List_List$unmodifiable(t1, type$.Expression_2), B.ListSeparator_undecided_null_undecided0, true, t2); } } else beforeBracket = null; t2 = _this.scanner; start = new A._SpanScannerState(t2, t2._string_scanner$_position); wasInParentheses = _this._stylesheet0$_inParentheses; _box_0.operands_ = _box_0.operators_ = _box_0.spaceExpressions_ = _box_0.commaExpressions_ = null; _box_0.allowSlash = true; _box_0.singleExpression_ = _this._stylesheet0$_singleExpression$0(); resetState = new A.StylesheetParser__expression_resetState0(_box_0, _this, start); resolveOneOperation = new A.StylesheetParser__expression_resolveOneOperation0(_box_0, _this); resolveOperations = new A.StylesheetParser__expression_resolveOperations0(_box_0, resolveOneOperation); addSingleExpression = new A.StylesheetParser__expression_addSingleExpression0(_box_0, _this, resetState, resolveOperations); addOperator = new A.StylesheetParser__expression_addOperator0(_box_0, _this, resolveOneOperation); resolveSpaceExpressions = new A.StylesheetParser__expression_resolveSpaceExpressions0(_box_0, _this, resolveOperations); for (t3 = type$.JSArray_Expression_2; true;) { _this.whitespace$0(); if (t1 && until.call$0()) break; _3_0 = t2.peekChar$0(); _3_28 = A._InitializedCell$(new A.StylesheetParser__expression_closure2(_3_0)); _3_32 = A._InitializedCell$(new A.StylesheetParser__expression_closure3(_3_0)); _3_40 = A._InitializedCell$(new A.StylesheetParser__expression_closure4(_3_0)); if (_3_0 == null) break; if (40 === _3_0) { addSingleExpression.call$1(_this.parentheses$0()); continue; } if (91 === _3_0) { addSingleExpression.call$1(_this._stylesheet0$_expression$1$bracketList(true)); continue; } if (36 === _3_0) { addSingleExpression.call$1(_this._stylesheet0$_variable$0()); continue; } if (38 === _3_0) { addSingleExpression.call$1(_this._stylesheet0$_selector$0()); continue; } if (39 === _3_0 || 34 === _3_0) { addSingleExpression.call$1(_this.interpolatedString$0()); continue; } if (35 === _3_0) { addSingleExpression.call$1(_this._stylesheet0$_hashExpression$0()); continue; } if (61 === _3_0) { t2.readChar$0(); if (singleEquals && t2.peekChar$0() !== 61) addOperator.call$1(B.BinaryOperator_2jN0); else { t2.expectChar$1(61); addOperator.call$1(B.BinaryOperator_ql50); } continue; } if (33 === _3_0) { $label0$1: { _1_0 = t2.peekChar$1(1); if (61 === _1_0) { t2.readChar$0(); t2.readChar$0(); addOperator.call$1(B.BinaryOperator_ViB0); break $label0$1; } if (_1_0 != null) if (105 !== _1_0) if (73 !== _1_0) t4 = _1_0 === 32 || _1_0 === 9 || _1_0 === 10 || _1_0 === 13 || _1_0 === 12; else t4 = true; else t4 = true; else t4 = true; if (t4) { addSingleExpression.call$1(_this._stylesheet0$_importantExpression$0()); break $label0$1; } break; } continue; } if (60 === _3_0) { t2.readChar$0(); addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_kpg0 : B.BinaryOperator_U8c0); continue; } if (62 === _3_0) { t2.readChar$0(); addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_7Tg0 : B.BinaryOperator_cIH0); continue; } if (42 === _3_0) { t2.readChar$0(); addOperator.call$1(B.BinaryOperator_qN20); continue; } if (_3_28._readFinal$0() && _box_0.singleExpression_ == null) { addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0()); continue; } if (_3_28._readFinal$0()) { t2.readChar$0(); addOperator.call$1(B.BinaryOperator_anB0); continue; } if (45 === _3_0) { _2_0 = t2.peekChar$1(1); if (A._isInt(_2_0) && _2_0 >= 48 && _2_0 <= 57 || 46 === _2_0) if (_box_0.singleExpression_ != null) { t4 = t2.peekChar$1(-1); t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12; } else t4 = true; else t4 = false; if (t4) addSingleExpression.call$1(_this._stylesheet0$_number$0()); else if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) addSingleExpression.call$1(_this.identifierLike$0()); else if (_box_0.singleExpression_ == null) addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0()); else { t2.readChar$0(); addOperator.call$1(B.BinaryOperator_olz0); } continue; } if (_3_32._readFinal$0() && _box_0.singleExpression_ == null) { addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0()); continue; } if (_3_32._readFinal$0()) { t2.readChar$0(); addOperator.call$1(B.BinaryOperator_t8B0); continue; } if (37 === _3_0) { t2.readChar$0(); addOperator.call$1(B.BinaryOperator_OTG0); continue; } if (_3_0 >= 48 && _3_0 <= 57) { addSingleExpression.call$1(_this._stylesheet0$_number$0()); continue; } if (_3_40._readFinal$0() && t2.peekChar$1(1) === 46) break; if (_3_40._readFinal$0()) { addSingleExpression.call$1(_this._stylesheet0$_number$0()); continue; } if (97 === _3_0 && !_this.get$plainCss() && _this.scanIdentifier$1("and")) { addOperator.call$1(B.BinaryOperator_SNp0); continue; } if (111 === _3_0 && !_this.get$plainCss() && _this.scanIdentifier$1("or")) { addOperator.call$1(B.BinaryOperator_M6L0); continue; } if ((117 === _3_0 || 85 === _3_0) && t2.peekChar$1(1) === 43) { addSingleExpression.call$1(_this._stylesheet0$_unicodeRange$0()); continue; } if (!(_3_0 >= 97 && _3_0 <= 122)) t4 = _3_0 >= 65 && _3_0 <= 90 || 95 === _3_0 || 92 === _3_0 || _3_0 >= 128; else t4 = true; if (t4) { addSingleExpression.call$1(_this.identifierLike$0()); continue; } if (44 === _3_0) { if (_this._stylesheet0$_inParentheses) { _this._stylesheet0$_inParentheses = false; if (_box_0.allowSlash) { resetState.call$0(); continue; } } commaExpressions = _box_0.commaExpressions_; if (commaExpressions == null) commaExpressions = _box_0.commaExpressions_ = A._setArrayType([], t3); if (_box_0.singleExpression_ == null) t2.error$1(0, _s20_); resolveSpaceExpressions.call$0(); t4 = _box_0.singleExpression_; t4.toString; commaExpressions.push(t4); t2.readChar$0(); _box_0.allowSlash = true; _box_0.singleExpression_ = null; continue; } break; } if (bracketList) t2.expectChar$1(93); commaExpressions = _box_0.commaExpressions_; spaceExpressions = _box_0.spaceExpressions_; if (commaExpressions != null) { resolveSpaceExpressions.call$0(); _this._stylesheet0$_inParentheses = wasInParentheses; singleExpression = _box_0.singleExpression_; if (singleExpression != null) commaExpressions.push(singleExpression); t1 = t2.spanFrom$1(beforeBracket == null ? start : beforeBracket); return new A.ListExpression0(A.List_List$unmodifiable(commaExpressions, type$.Expression_2), B.ListSeparator_rXA0, bracketList, t1); } else if (bracketList && spaceExpressions != null) { resolveOperations.call$0(); t1 = _box_0.singleExpression_; t1.toString; spaceExpressions.push(t1); beforeBracket.toString; t2 = t2.spanFrom$1(beforeBracket); return new A.ListExpression0(A.List_List$unmodifiable(spaceExpressions, type$.Expression_2), B.ListSeparator_EVt0, true, t2); } else { resolveSpaceExpressions.call$0(); if (bracketList) { t1 = _box_0.singleExpression_; t1.toString; t3 = A._setArrayType([t1], t3); beforeBracket.toString; t2 = t2.spanFrom$1(beforeBracket); _box_0.singleExpression_ = new A.ListExpression0(A.List_List$unmodifiable(t3, type$.Expression_2), B.ListSeparator_undecided_null_undecided0, true, t2); } t1 = _box_0.singleExpression_; t1.toString; return t1; } }, _stylesheet0$_expression$2$singleEquals$until(singleEquals, until) { return this._stylesheet0$_expression$3$bracketList$singleEquals$until(false, singleEquals, until); }, _stylesheet0$_expression$1$bracketList(bracketList) { return this._stylesheet0$_expression$3$bracketList$singleEquals$until(bracketList, false, null); }, _stylesheet0$_expression$0() { return this._stylesheet0$_expression$3$bracketList$singleEquals$until(false, false, null); }, _stylesheet0$_expression$1$until(until) { return this._stylesheet0$_expression$3$bracketList$singleEquals$until(false, false, until); }, expressionUntilComma$1$singleEquals(singleEquals) { return this._stylesheet0$_expression$2$singleEquals$until(singleEquals, new A.StylesheetParser_expressionUntilComma_closure0(this)); }, expressionUntilComma$0() { return this.expressionUntilComma$1$singleEquals(false); }, _stylesheet0$_isSlashOperand$1(expression) { var t1; if (!(expression instanceof A.NumberExpression0)) if (!(expression instanceof A.FunctionExpression0)) t1 = expression instanceof A.BinaryOperationExpression0 && expression.allowsSlash; else t1 = true; else t1 = true; return t1; }, _stylesheet0$_singleExpression$0() { var next, t2, _this = this, _s20_ = "Expected expression.", t1 = _this.scanner, _0_0 = t1.peekChar$0(); $label0$0: { if (_0_0 == null) t1.error$1(0, _s20_); if (40 === _0_0) { t1 = _this.parentheses$0(); break $label0$0; } if (47 === _0_0) { t1 = _this._stylesheet0$_unaryOperation$0(); break $label0$0; } if (46 === _0_0) { t1 = _this._stylesheet0$_number$0(); break $label0$0; } if (91 === _0_0) { t1 = _this._stylesheet0$_expression$1$bracketList(true); break $label0$0; } if (36 === _0_0) { t1 = _this._stylesheet0$_variable$0(); break $label0$0; } if (38 === _0_0) { t1 = _this._stylesheet0$_selector$0(); break $label0$0; } if (39 === _0_0 || 34 === _0_0) { t1 = _this.interpolatedString$0(); break $label0$0; } if (35 === _0_0) { t1 = _this._stylesheet0$_hashExpression$0(); break $label0$0; } if (43 === _0_0) { next = t1.peekChar$1(1); t1 = next != null && next >= 48 && next <= 57 || next === 46 ? _this._stylesheet0$_number$0() : _this._stylesheet0$_unaryOperation$0(); break $label0$0; } if (45 === _0_0) { t1 = _this._stylesheet0$_minusExpression$0(); break $label0$0; } if (33 === _0_0) { t1 = _this._stylesheet0$_importantExpression$0(); break $label0$0; } if ((117 === _0_0 || 85 === _0_0) && t1.peekChar$1(1) === 43) { t1 = _this._stylesheet0$_unicodeRange$0(); break $label0$0; } if (_0_0 >= 48 && _0_0 <= 57) { t1 = _this._stylesheet0$_number$0(); break $label0$0; } if (!(_0_0 >= 97 && _0_0 <= 122)) t2 = _0_0 >= 65 && _0_0 <= 90 || 95 === _0_0 || 92 === _0_0 || _0_0 >= 128; else t2 = true; if (t2) { t1 = _this.identifierLike$0(); break $label0$0; } t1 = t1.error$1(0, _s20_); } return t1; }, parentheses$0() { var start, first, expressions, t1, t2, _this = this, wasInParentheses = _this._stylesheet0$_inParentheses; _this._stylesheet0$_inParentheses = true; try { t1 = _this.scanner; start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$1(40); _this.whitespace$0(); if (!_this._stylesheet0$_lookingAtExpression$0()) { t1.expectChar$1(41); t2 = A._setArrayType([], type$.JSArray_Expression_2); t1 = t1.spanFrom$1(start); t2 = A.List_List$unmodifiable(t2, type$.Expression_2); return new A.ListExpression0(t2, B.ListSeparator_undecided_null_undecided0, false, t1); } first = _this.expressionUntilComma$0(); if (t1.scanChar$1(58)) { _this.whitespace$0(); t1 = _this._stylesheet0$_map$2(first, start); return t1; } if (!t1.scanChar$1(44)) { t1.expectChar$1(41); t1 = t1.spanFrom$1(start); return new A.ParenthesizedExpression0(first, t1); } _this.whitespace$0(); expressions = A._setArrayType([first], type$.JSArray_Expression_2); for (; true;) { if (!_this._stylesheet0$_lookingAtExpression$0()) break; J.add$1$ax(expressions, _this.expressionUntilComma$0()); if (!t1.scanChar$1(44)) break; _this.whitespace$0(); } t1.expectChar$1(41); t1 = t1.spanFrom$1(start); t2 = A.List_List$unmodifiable(expressions, type$.Expression_2); return new A.ListExpression0(t2, B.ListSeparator_rXA0, false, t1); } finally { _this._stylesheet0$_inParentheses = wasInParentheses; } }, _stylesheet0$_map$2(first, start) { var t1, key, _this = this, pairs = A._setArrayType([new A._Record_2(first, _this.expressionUntilComma$0())], type$.JSArray_Record_2_Expression_and_Expression_2); for (t1 = _this.scanner; t1.scanChar$1(44);) { _this.whitespace$0(); if (!_this._stylesheet0$_lookingAtExpression$0()) break; key = _this.expressionUntilComma$0(); t1.expectChar$1(58); _this.whitespace$0(); pairs.push(new A._Record_2(key, _this.expressionUntilComma$0())); } t1.expectChar$1(41); t1 = t1.spanFrom$1(start); return new A.MapExpression0(A.List_List$unmodifiable(pairs, type$.Record_2_Expression_and_Expression_2), t1); }, _stylesheet0$_hashExpression$0() { var start, t2, identifier, buffer, _this = this, t1 = _this.scanner; if (t1.peekChar$1(1) === 123) return _this.identifierLike$0(); start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$1(35); t2 = t1.peekChar$0(); if (t2 == null) t2 = null; else t2 = t2 >= 48 && t2 <= 57; if (t2 === true) return new A.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start), t1.spanFrom$1(start)); t2 = t1._string_scanner$_position; identifier = _this.interpolatedIdentifier$0(); if (_this._stylesheet0$_isHexColor$1(identifier)) { t1.set$state(new A._SpanScannerState(t1, t2)); return new A.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start), t1.spanFrom$1(start)); } t2 = new A.StringBuffer(""); buffer = new A.InterpolationBuffer0(t2, A._setArrayType([], type$.JSArray_Object)); t2._contents += A.Primitives_stringFromCharCode(35); buffer.addInterpolation$1(identifier); return new A.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false); }, _stylesheet0$_hexColorContents$1(start) { var red, green, blue, alpha, digit4, t2, t3, t4, _this = this, digit1 = _this._stylesheet0$_hexDigit$0(), digit2 = _this._stylesheet0$_hexDigit$0(), digit3 = _this._stylesheet0$_hexDigit$0(), t1 = _this.scanner, $self = t1.peekChar$0(); if (!($self != null && A.CharacterExtension_get_isHex0($self))) { red = (digit1 << 4 >>> 0) + digit1; green = (digit2 << 4 >>> 0) + digit2; blue = (digit3 << 4 >>> 0) + digit3; alpha = null; } else { digit4 = _this._stylesheet0$_hexDigit$0(); $self = t1.peekChar$0(); t2 = $self != null && A.CharacterExtension_get_isHex0($self); t3 = digit1 << 4 >>> 0; t4 = digit3 << 4 >>> 0; if (!t2) { red = t3 + digit1; green = (digit2 << 4 >>> 0) + digit2; blue = t4 + digit3; alpha = ((digit4 << 4 >>> 0) + digit4) / 255; } else { red = t3 + digit2; green = t4 + digit4; blue = (_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0(); $self = t1.peekChar$0(); alpha = $self != null && A.CharacterExtension_get_isHex0($self) ? ((_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0()) / 255 : null; } } t2 = alpha == null; t3 = t2 ? 1 : alpha; return A.SassColor$rgbInternal0(red, green, blue, t3, t2 ? new A.SpanColorFormat0(t1.spanFrom$1(start)) : null); }, _stylesheet0$_isHexColor$1(interpolation) { var t1, plain = interpolation.get$asPlain(), _0_2 = A._InitializedCell$(new A.StylesheetParser__isHexColor_closure1(plain)); if (typeof plain == "string") t1 = 3 === _0_2._readFinal$0() || 4 === _0_2._readFinal$0() || 6 === _0_2._readFinal$0() || 8 === _0_2._readFinal$0(); else t1 = false; if (t1) { t1 = new A.CodeUnits(plain); return t1.every$1(t1, new A.StylesheetParser__isHexColor_closure2()); } else return false; }, _stylesheet0$_hexDigit$0() { var t1 = this.scanner, t2 = t1.peekChar$0(); t2 = t2 == null ? null : A.CharacterExtension_get_isHex0(t2); return t2 === true ? A.asHex0(t1.readChar$0()) : t1.error$1(0, "Expected hex digit."); }, _stylesheet0$_minusExpression$0() { var _this = this, _0_0 = _this.scanner.peekChar$1(1); if (A._isInt(_0_0) && _0_0 >= 48 && _0_0 <= 57 || 46 === _0_0) return _this._stylesheet0$_number$0(); if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) return _this.identifierLike$0(); return _this._stylesheet0$_unaryOperation$0(); }, _stylesheet0$_importantExpression$0() { var t1 = this.scanner, t2 = t1._string_scanner$_position; t1.readChar$0(); this.whitespace$0(); this.expectIdentifier$1("important"); t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2)); return new A.StringExpression0(A.Interpolation$0(A._setArrayType(["!important"], type$.JSArray_Object), t2), false); }, _stylesheet0$_unaryOperation$0() { var _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, operator = _this._stylesheet0$_unaryOperatorFor$1(t1.readChar$0()); if (operator == null) t1.error$2$position(0, "Expected unary operator.", t1._string_scanner$_position - 1); else if (_this.get$plainCss() && operator !== B.UnaryOperator_Ix10) t1.error$3$length$position(0, "Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1); _this.whitespace$0(); return new A.UnaryOperationExpression0(operator, _this._stylesheet0$_singleExpression$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _stylesheet0$_unaryOperatorFor$1(character) { var t1; $label0$0: { if (43 === character) { t1 = B.UnaryOperator_gg40; break $label0$0; } if (45 === character) { t1 = B.UnaryOperator_TLI0; break $label0$0; } if (47 === character) { t1 = B.UnaryOperator_Ix10; break $label0$0; } t1 = null; break $label0$0; } return t1; }, _stylesheet0$_number$0() { var number, unit, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, first = t1.peekChar$0(), t3 = first !== 43; if (!t3 || first === 45) t1.readChar$0(); if (t1.peekChar$0() !== 46) _this._stylesheet0$_consumeNaturalNumber$0(); _this._stylesheet0$_tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2 && t3 && first !== 45); _this._stylesheet0$_tryExponent$0(); number = A.double_parse(t1.substring$1(0, t2)); if (t1.scanChar$1(37)) unit = "%"; else { if (_this.lookingAtIdentifier$0()) t3 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45; else t3 = false; unit = t3 ? _this.identifier$1$unit(true) : null; } return new A.NumberExpression0(number, unit, t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _stylesheet0$_consumeNaturalNumber$0() { var $self, t1 = this.scanner, t2 = t1.readChar$0(); if (!(t2 >= 48 && t2 <= 57)) t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position - 1); while (true) { $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) break; t1.readChar$0(); } }, _stylesheet0$_tryDecimal$1$allowTrailingDot(allowTrailingDot) { var $self, t1 = this.scanner; if (t1.peekChar$0() !== 46) return; $self = t1.peekChar$1(1); if (!($self != null && $self >= 48 && $self <= 57)) { if (allowTrailingDot) return; t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position + 1); } t1.readChar$0(); while (true) { $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) break; t1.readChar$0(); } }, _stylesheet0$_tryExponent$0() { var next, $self, t1 = this.scanner, first = t1.peekChar$0(); if (first !== 101 && first !== 69) return; next = t1.peekChar$1(1); if (!(next != null && next >= 48 && next <= 57) && next !== 45 && next !== 43) return; t1.readChar$0(); if (43 === next || 45 === next) t1.readChar$0(); $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) t1.error$1(0, "Expected digit."); while (true) { $self = t1.peekChar$0(); if (!($self != null && $self >= 48 && $self <= 57)) break; t1.readChar$0(); } }, _stylesheet0$_unicodeRange$0() { var firstRangeLength, hasQuestionMark, t2, secondRangeLength, _this = this, _s26_ = "Expected at most 6 digits.", t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); _this.expectIdentChar$1(117); t1.expectChar$1(43); for (firstRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure1());) ++firstRangeLength; for (hasQuestionMark = false; t1.scanChar$1(63); hasQuestionMark = true) ++firstRangeLength; if (firstRangeLength === 0) t1.error$1(0, 'Expected hex digit or "?".'); else if (firstRangeLength > 6) _this.error$2(0, _s26_, t1.spanFrom$1(start)); else if (hasQuestionMark) { t2 = t1.substring$1(0, start.position); t1 = t1.spanFrom$1(start); return new A.StringExpression0(A.Interpolation$0(A._setArrayType([t2], type$.JSArray_Object), t1), false); } if (t1.scanChar$1(45)) { t2 = t1._string_scanner$_position; for (secondRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure2());) ++secondRangeLength; if (secondRangeLength === 0) t1.error$1(0, "Expected hex digit."); else if (secondRangeLength > 6) _this.error$2(0, _s26_, t1.spanFrom$1(new A._SpanScannerState(t1, t2))); } if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0()) t1.error$1(0, "Expected end of identifier."); t2 = t1.substring$1(0, start.position); t1 = t1.spanFrom$1(start); return new A.StringExpression0(A.Interpolation$0(A._setArrayType([t2], type$.JSArray_Object), t1), false); }, _stylesheet0$_variable$0() { var _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), $name = _this.variableName$0(); if (_this.get$plainCss()) _this.error$2(0, string$.Sass_v, t1.spanFrom$1(start)); return new A.VariableExpression0(null, $name, t1.spanFrom$1(start)); }, _stylesheet0$_selector$0() { var t1, start, _this = this; if (_this.get$plainCss()) _this.scanner.error$2$length(0, string$.The_pa, 1); t1 = _this.scanner; start = new A._SpanScannerState(t1, t1._string_scanner$_position); t1.expectChar$1(38); if (t1.scanChar$1(38)) { _this.logger.warn$2$span(0, string$.In_Sas, t1.spanFrom$1(start)); t1.set$position(t1._string_scanner$_position - 1); } return new A.SelectorExpression0(t1.spanFrom$1(start)); }, interpolatedString$0() { var t3, t4, buffer, _0_0, second, t5, t1 = this.scanner, t2 = t1._string_scanner$_position, quote = t1.readChar$0(); if (quote !== 39 && quote !== 34) t1.error$2$position(0, "Expected string.", t2); t3 = new A.StringBuffer(""); t4 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer0(t3, t4); for (; true;) { _0_0 = t1.peekChar$0(); if (_0_0 === quote) { t1.readChar$0(); break; } if (_0_0 == null || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + "."); if (92 === _0_0) { second = t1.peekChar$1(1); if (second === 10 || second === 13 || second === 12) { t1.readChar$0(); t1.readChar$0(); if (second === 13) t1.scanChar$1(10); } else t3._contents += A.Primitives_stringFromCharCode(A.consumeEscapedCharacter0(t1)); continue; } if (35 === _0_0 && t1.peekChar$1(1) === 123) { t5 = this.singleInterpolation$0(); buffer._interpolation_buffer0$_flushText$0(); t4.push(t5); continue; } t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } return new A.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))), true); }, identifierLike$0() { var invocation, expression, _0_0, color, t3, _1_0, specialFunction, _2_0, _2_2, _2_4, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), identifier = _this.interpolatedIdentifier$0(), plain = identifier.get$asPlain(), lower = A._Cell$(), t2 = plain != null; if (t2) { if (plain === "if" && t1.peekChar$0() === 40) { invocation = _this._stylesheet0$_argumentInvocation$0(); return new A.IfExpression0(invocation, identifier.span.expand$1(0, invocation.span)); } else if (plain === "not") { _this.whitespace$0(); expression = _this._stylesheet0$_singleExpression$0(); return new A.UnaryOperationExpression0(B.UnaryOperator_not_not_not0, expression, identifier.span.expand$1(0, expression.get$span(expression))); } lower._value = plain.toLowerCase(); if (t1.peekChar$0() !== 40) { switch (plain) { case "false": return new A.BooleanExpression0(false, identifier.span); case "null": return new A.NullExpression0(identifier.span); case "true": return new A.BooleanExpression0(true, identifier.span); } _0_0 = $.$get$colorsByName0().$index(0, lower._readLocal$0()); if (_0_0 != null) { color = _0_0; t3 = true; } else { color = null; t3 = false; } if (t3) { t1 = identifier.span; return new A.ColorExpression0(A.SassColor$rgbInternal0(color.get$red(color), color.get$green(color), color.get$blue(color), color._color1$_alpha, new A.SpanColorFormat0(t1)), t1); } } _1_0 = _this.trySpecialFunction$2(lower._readLocal$0(), start); if (_1_0 != null) { specialFunction = _1_0; t3 = true; } else { specialFunction = null; t3 = false; } if (t3) return specialFunction; } _2_0 = t1.peekChar$0(); _2_2 = A._InitializedCell$(new A.StylesheetParser_identifierLike_closure1(_2_0)); _2_4 = A._InitializedCell$(new A.StylesheetParser_identifierLike_closure2(_2_0)); if (_2_2._readFinal$0() && t1.peekChar$1(1) === 46) return new A.StringExpression0(identifier, false); if (_2_2._readFinal$0()) { t1.readChar$0(); if (t2) return _this.namespacedExpression$2(plain, start); _this.error$2(0, string$.Interpn, identifier.span); } if (_2_4._readFinal$0() && t2) return new A.FunctionExpression0(null, plain, _this._stylesheet0$_argumentInvocation$1$allowEmptySecondArg(J.$eq$(lower._readLocal$0(), "var")), t1.spanFrom$1(start)); if (_2_4._readFinal$0()) return new A.InterpolatedFunctionExpression0(identifier, _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start)); return new A.StringExpression0(identifier, false); }, namespacedExpression$2(namespace, start) { var $name, _this = this, t1 = _this.scanner; if (t1.peekChar$0() === 36) { $name = _this.variableName$0(); _this._stylesheet0$_assertPublic$2($name, new A.StylesheetParser_namespacedExpression_closure0(_this, start)); return new A.VariableExpression0(namespace, $name, t1.spanFrom$1(start)); } return new A.FunctionExpression0(namespace, _this._stylesheet0$_publicIdentifier$0(), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start)); }, trySpecialFunction$2($name, start) { var t1, buffer, t2, next, t3, _this = this, normalized = A.unvendor0($name); $label0$0: { if (!("calc" === normalized && normalized !== $name && _this.scanner.scanChar$1(40))) t1 = ("element" === normalized || "expression" === normalized) && _this.scanner.scanChar$1(40); else t1 = true; if (t1) { t1 = new A.StringBuffer(""); buffer = new A.InterpolationBuffer0(t1, A._setArrayType([], type$.JSArray_Object)); t1._contents = "" + $name; t1._contents += A.Primitives_stringFromCharCode(40); break $label0$0; } if ("progid" === normalized && _this.scanner.scanChar$1(58)) { t1 = new A.StringBuffer(""); buffer = new A.InterpolationBuffer0(t1, A._setArrayType([], type$.JSArray_Object)); t1._contents = "" + $name; t1._contents += A.Primitives_stringFromCharCode(58); t2 = _this.scanner; next = t2.peekChar$0(); while (true) { if (next != null) { if (!(next >= 97 && next <= 122)) t3 = next >= 65 && next <= 90; else t3 = true; t3 = t3 || next === 46; } else t3 = false; if (!t3) break; t1._contents += A.Primitives_stringFromCharCode(t2.readChar$0()); next = t2.peekChar$0(); } t2.expectChar$1(40); t1._contents += A.Primitives_stringFromCharCode(40); break $label0$0; } if ("url" === normalized) return A.NullableExtension_andThen0(_this._stylesheet0$_tryUrlContents$1(start), new A.StylesheetParser_trySpecialFunction_closure0()); return null; } buffer.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(true)); t1 = _this.scanner; t1.expectChar$1(41); buffer._interpolation_buffer0$_text._contents += A.Primitives_stringFromCharCode(41); return new A.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false); }, _stylesheet0$_tryUrlContents$2$name(start, $name) { var t3, t4, buffer, _0_0, _0_6, t5, endPosition, result, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; if (!t1.scanChar$1(40)) return null; _this.whitespaceWithoutComments$0(); t3 = new A.StringBuffer(""); t4 = A._setArrayType([], type$.JSArray_Object); buffer = new A.InterpolationBuffer0(t3, t4); t3._contents = "" + ($name == null ? "url" : $name); t3._contents += A.Primitives_stringFromCharCode(40); for (; true;) { _0_0 = t1.peekChar$0(); _0_6 = A._InitializedCell$(new A.StylesheetParser__tryUrlContents_closure0(_0_0)); if (_0_0 == null) break; if (92 === _0_0) { t3._contents += _this.escape$0(); continue; } if (_0_6._readFinal$0() && t1.peekChar$1(1) === 123) { t5 = _this.singleInterpolation$0(); buffer._interpolation_buffer0$_flushText$0(); t4.push(t5); continue; } if (33 !== _0_0) if (37 !== _0_0) if (38 !== _0_0) if (!_0_6._readFinal$0()) t5 = _0_0 >= 42 && _0_0 <= 126 || _0_0 >= 128; else t5 = true; else t5 = true; else t5 = true; else t5 = true; if (t5) { t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } if (_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) { _this.whitespaceWithoutComments$0(); if (t1.peekChar$0() !== 41) break; continue; } if (41 === _0_0) { t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); endPosition = t1._string_scanner$_position; t2 = t1._sourceFile; t5 = start.position; t1 = new A._FileSpan(t2, t5, endPosition); t1._FileSpan$3(t2, t5, endPosition); t5 = type$.Object; t2 = A.List_List$of(t4, true, t5); t4 = t3._contents; if (t4.length !== 0) t2.push(t4.charCodeAt(0) == 0 ? t4 : t4); result = A.List_List$from(t2, false, t5); result.fixed$length = Array; result.immutable$list = Array; t3 = new A.Interpolation0(result, t1); t3.Interpolation$20(t2, t1); return t3; } break; } t1.set$state(new A._SpanScannerState(t1, t2)); return null; }, _stylesheet0$_tryUrlContents$1(start) { return this._stylesheet0$_tryUrlContents$2$name(start, null); }, dynamicUrl$0() { var _0_0, contents, t2, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); _this.expectIdentifier$1("url"); _0_0 = _this._stylesheet0$_tryUrlContents$1(start); if (_0_0 != null) { contents = _0_0; t2 = true; } else { contents = null; t2 = false; } if (t2) return new A.StringExpression0(contents, false); return new A.InterpolatedFunctionExpression0(A.Interpolation$0(A._setArrayType(["url"], type$.JSArray_Object), t1.spanFrom$1(start)), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start)); }, almostAnyValue$1$omitComments(omitComments) { var t4, t5, t6, _1_0, commentStart, end, t7, _0_0, contents, t8, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, t3 = new A.StringBuffer(""), buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object)); for (t4 = t1.string, t5 = t4.length, t6 = !omitComments; true;) $label0$0: { _1_0 = t1.peekChar$0(); if (92 === _1_0) { t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } if (34 === _1_0 || 39 === _1_0) { buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0()); break $label0$0; } if (47 === _1_0) { commentStart = t1._string_scanner$_position; if (_this.scanComment$0()) { if (t6) { end = t1._string_scanner$_position; t3._contents += B.JSString_methods.substring$2(t4, commentStart, end); } } else t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } if (35 === _1_0 && t1.peekChar$1(1) === 123) { buffer.addInterpolation$1(_this.interpolatedIdentifier$0()); break $label0$0; } if (13 === _1_0 || 10 === _1_0 || 12 === _1_0) { if (_this.get$indented()) break; t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } if (33 === _1_0 || 59 === _1_0 || 123 === _1_0 || 125 === _1_0) break; if (117 === _1_0 || 85 === _1_0) { t7 = t1._string_scanner$_position; if (!_this.scanIdentifier$1("url")) { t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); continue; } _0_0 = _this._stylesheet0$_tryUrlContents$1(new A._SpanScannerState(t1, t7)); if (_0_0 != null) { contents = _0_0; t8 = true; } else { contents = null; t8 = false; } if (t8) buffer.addInterpolation$1(contents); else { if ((t7 === 0 ? 1 / t7 < 0 : t7 < 0) || t7 > t5) A.throwExpression(A.ArgumentError$("Invalid position " + t7, null)); t1._string_scanner$_position = t7; t1._lastMatch = null; t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } break $label0$0; } if (_1_0 == null) break; t7 = _this.lookingAtIdentifier$0(); if (t7) { t3._contents += _this.identifier$0(); break $label0$0; } t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, almostAnyValue$0() { return this.almostAnyValue$1$omitComments(false); }, _stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(allowColon, allowEmpty, allowSemicolon) { var t4, t5, t6, t7, wroteNewline, _1_0, _1_12, _1_14, _1_16, _1_18, _1_20, t8, start, end, bracket, _0_0, contents, t9, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, t3 = new A.StringBuffer(""), buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object)), brackets = A._setArrayType([], type$.JSArray_int); for (t4 = t1.string, t5 = t4.length, t6 = !allowColon, t7 = !allowSemicolon, wroteNewline = false; true;) $label0$0: { _1_0 = t1.peekChar$0(); _1_12 = A._InitializedCell$(new A.StylesheetParser__interpolatedDeclarationValue_closure4(_1_0)); _1_14 = A._InitializedCell$(new A.StylesheetParser__interpolatedDeclarationValue_closure5(_1_0)); _1_16 = A._InitializedCell$(new A.StylesheetParser__interpolatedDeclarationValue_closure6(_1_0)); _1_18 = A._InitializedCell$(new A.StylesheetParser__interpolatedDeclarationValue_closure7(_1_0)); _1_20 = A._InitializedCell$(new A.StylesheetParser__interpolatedDeclarationValue_closure8(_1_0)); if (92 === _1_0) { t3._contents += _this.escape$1$identifierStart(true); wroteNewline = false; break $label0$0; } if (34 === _1_0 || 39 === _1_0) { buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0()); wroteNewline = false; break $label0$0; } if (47 === _1_0 && t1.peekChar$1(1) === 42) { t8 = _this.get$loudComment(); start = t1._string_scanner$_position; t8.call$0(); end = t1._string_scanner$_position; t3._contents += B.JSString_methods.substring$2(t4, start, end); wroteNewline = false; break $label0$0; } if (35 === _1_0 && t1.peekChar$1(1) === 123) { buffer.addInterpolation$1(_this.interpolatedIdentifier$0()); wroteNewline = false; break $label0$0; } if (_1_12._readFinal$0() || _1_14._readFinal$0()) if (!wroteNewline) { t8 = t1.peekChar$1(1); t8 = t8 === 32 || t8 === 9 || t8 === 10 || t8 === 13 || t8 === 12; } else t8 = false; else t8 = false; if (t8) { t1.readChar$0(); break $label0$0; } if (_1_12._readFinal$0() || _1_14._readFinal$0()) { t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } if ((_1_16._readFinal$0() || _1_18._readFinal$0() || _1_20._readFinal$0()) && _this.get$indented()) break; if (_1_16._readFinal$0() || _1_18._readFinal$0() || _1_20._readFinal$0()) { t8 = t1.peekChar$1(-1); if (!(t8 === 10 || t8 === 13 || t8 === 12)) t3._contents += "\n"; t1.readChar$0(); wroteNewline = true; break $label0$0; } if (40 === _1_0 || 123 === _1_0 || 91 === _1_0) { bracket = t1.readChar$0(); t3._contents += A.Primitives_stringFromCharCode(bracket); brackets.push(A.opposite0(bracket)); wroteNewline = false; break $label0$0; } if (41 === _1_0 || 125 === _1_0 || 93 === _1_0) { if (brackets.length === 0) break; bracket = brackets.pop(); t1.expectChar$1(bracket); t3._contents += A.Primitives_stringFromCharCode(bracket); wroteNewline = false; break $label0$0; } if (59 === _1_0) { if (t7 && brackets.length === 0) break; t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; break $label0$0; } if (58 === _1_0) { if (t6 && brackets.length === 0) break; t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; break $label0$0; } if (117 === _1_0 || 85 === _1_0) { t8 = t1._string_scanner$_position; if (!_this.scanIdentifier$1("url")) { t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; continue; } _0_0 = _this._stylesheet0$_tryUrlContents$1(new A._SpanScannerState(t1, t8)); if (_0_0 != null) { contents = _0_0; t9 = true; } else { contents = null; t9 = false; } if (t9) buffer.addInterpolation$1(contents); else { if ((t8 === 0 ? 1 / t8 < 0 : t8 < 0) || t8 > t5) A.throwExpression(A.ArgumentError$("Invalid position " + t8, null)); t1._string_scanner$_position = t8; t1._lastMatch = null; t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); } wroteNewline = false; break $label0$0; } if (_1_0 == null) break; t8 = _this.lookingAtIdentifier$0(); if (t8) { t3._contents += _this.identifier$0(); wroteNewline = false; break $label0$0; } t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); wroteNewline = false; } if (brackets.length !== 0) t1.expectChar$1(B.JSArray_methods.get$last(brackets)); if (!allowEmpty && buffer._interpolation_buffer0$_contents.length === 0 && t3._contents.length === 0) t1.error$1(0, "Expected token."); return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(allowEmpty) { return this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, allowEmpty, false); }, _stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(allowEmpty, allowSemicolon) { return this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, allowEmpty, allowSemicolon); }, _stylesheet0$_interpolatedDeclarationValue$0() { return this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, false, false); }, interpolatedIdentifier$0() { var _0_0, _this = this, _s20_ = "Expected identifier.", t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), t2 = new A.StringBuffer(""), t3 = A._setArrayType([], type$.JSArray_Object), buffer = new A.InterpolationBuffer0(t2, t3); if (t1.scanChar$1(45)) { t2._contents += A.Primitives_stringFromCharCode(45); if (t1.scanChar$1(45)) { t2._contents += A.Primitives_stringFromCharCode(45); _this._stylesheet0$_interpolatedIdentifierBody$1(buffer); return buffer.interpolation$1(t1.spanFrom$1(start)); } } $label0$0: { _0_0 = t1.peekChar$0(); if (_0_0 == null) t1.error$1(0, _s20_); if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128) { t2._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); break $label0$0; } if (92 === _0_0) { t2._contents += _this.escape$1$identifierStart(true); break $label0$0; } if (35 === _0_0 && t1.peekChar$1(1) === 123) { t2 = _this.singleInterpolation$0(); buffer._interpolation_buffer0$_flushText$0(); t3.push(t2); break $label0$0; } t1.error$1(0, _s20_); } _this._stylesheet0$_interpolatedIdentifierBody$1(buffer); return buffer.interpolation$1(t1.spanFrom$1(start)); }, _stylesheet0$_interpolatedIdentifierBody$1(buffer) { var t1, t2, t3, _0_0, t4; for (t1 = buffer._interpolation_buffer0$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer0$_text; true;) { _0_0 = t2.peekChar$0(); if (_0_0 == null) break; if (95 !== _0_0) if (45 !== _0_0) { if (!(_0_0 >= 97 && _0_0 <= 122)) t4 = _0_0 >= 65 && _0_0 <= 90; else t4 = true; if (!t4) t4 = _0_0 >= 48 && _0_0 <= 57; else t4 = true; t4 = t4 || _0_0 >= 128; } else t4 = true; else t4 = true; if (t4) { t3._contents += A.Primitives_stringFromCharCode(t2.readChar$0()); continue; } if (92 === _0_0) { t3._contents += this.escape$0(); continue; } if (35 === _0_0 && t2.peekChar$1(1) === 123) { t4 = this.singleInterpolation$0(); buffer._interpolation_buffer0$_flushText$0(); t1.push(t4); continue; } break; } }, singleInterpolation$0() { var contents, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; t1.expect$1("#{"); _this.whitespace$0(); contents = _this._stylesheet0$_expression$0(); t1.expectChar$1(125); if (_this.get$plainCss()) _this.error$2(0, string$.Interpp, t1.spanFrom$1(new A._SpanScannerState(t1, t2))); return contents; }, _stylesheet0$_mediaQueryList$0() { var _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, t3 = new A.StringBuffer(""), buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object)); for (; true;) { _this.whitespace$0(); _this._stylesheet0$_mediaQuery$1(buffer); _this.whitespace$0(); if (!t1.scanChar$1(44)) break; t3._contents += A.Primitives_stringFromCharCode(44); t3._contents += A.Primitives_stringFromCharCode(32); } return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))); }, _stylesheet0$_mediaQuery$1(buffer) { var identifier1, t1, identifier2, _this = this, _s3_ = "and"; if (_this.scanner.peekChar$0() === 40) { _this._stylesheet0$_mediaInParens$1(buffer); _this.whitespace$0(); if (_this.scanIdentifier$1(_s3_)) { buffer._interpolation_buffer0$_text._contents += " and "; _this.expectWhitespace$0(); _this._stylesheet0$_mediaLogicSequence$2(buffer, _s3_); } else if (_this.scanIdentifier$1("or")) { buffer._interpolation_buffer0$_text._contents += " or "; _this.expectWhitespace$0(); _this._stylesheet0$_mediaLogicSequence$2(buffer, "or"); } return; } identifier1 = _this.interpolatedIdentifier$0(); if (A.equalsIgnoreCase0(identifier1.get$asPlain(), "not")) { _this.expectWhitespace$0(); if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) { buffer._interpolation_buffer0$_text._contents += "not "; _this._stylesheet0$_mediaOrInterp$1(buffer); return; } } _this.whitespace$0(); buffer.addInterpolation$1(identifier1); if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) return; t1 = buffer._interpolation_buffer0$_text; t1._contents += A.Primitives_stringFromCharCode(32); identifier2 = _this.interpolatedIdentifier$0(); if (A.equalsIgnoreCase0(identifier2.get$asPlain(), _s3_)) { _this.expectWhitespace$0(); t1._contents += " and "; } else { _this.whitespace$0(); buffer.addInterpolation$1(identifier2); if (_this.scanIdentifier$1(_s3_)) { _this.expectWhitespace$0(); t1._contents += " and "; } else return; } if (_this.scanIdentifier$1("not")) { _this.expectWhitespace$0(); t1._contents += "not "; _this._stylesheet0$_mediaOrInterp$1(buffer); return; } _this._stylesheet0$_mediaLogicSequence$2(buffer, _s3_); return; }, _stylesheet0$_mediaLogicSequence$2(buffer, operator) { var t1, t2, _this = this; for (t1 = buffer._interpolation_buffer0$_text; true;) { _this._stylesheet0$_mediaOrInterp$1(buffer); _this.whitespace$0(); if (!_this.scanIdentifier$1(operator)) return; _this.expectWhitespace$0(); t2 = t1._contents += A.Primitives_stringFromCharCode(32); t1._contents = t2 + operator; t1._contents += A.Primitives_stringFromCharCode(32); } }, _stylesheet0$_mediaOrInterp$1(buffer) { var interpolation; if (this.scanner.peekChar$0() === 35) { interpolation = this.singleInterpolation$0(); buffer.addInterpolation$1(A.Interpolation$0(A._setArrayType([interpolation], type$.JSArray_Object), interpolation.get$span(interpolation))); } else this._stylesheet0$_mediaInParens$1(buffer); }, _stylesheet0$_mediaInParens$1(buffer) { var t2, t3, t4, next, t5, _this = this, t1 = _this.scanner; t1.expectChar$2$name(40, "media condition in parentheses"); t2 = buffer._interpolation_buffer0$_text; t2._contents += A.Primitives_stringFromCharCode(40); _this.whitespace$0(); if (t1.peekChar$0() === 40) { _this._stylesheet0$_mediaInParens$1(buffer); _this.whitespace$0(); if (_this.scanIdentifier$1("and")) { t2._contents += " and "; _this.expectWhitespace$0(); _this._stylesheet0$_mediaLogicSequence$2(buffer, "and"); } else if (_this.scanIdentifier$1("or")) { t2._contents += " or "; _this.expectWhitespace$0(); _this._stylesheet0$_mediaLogicSequence$2(buffer, "or"); } } else if (_this.scanIdentifier$1("not")) { t2._contents += "not "; _this.expectWhitespace$0(); _this._stylesheet0$_mediaOrInterp$1(buffer); } else { t3 = _this._stylesheet0$_expressionUntilComparison$0(); buffer._interpolation_buffer0$_flushText$0(); t4 = buffer._interpolation_buffer0$_contents; t4.push(t3); if (t1.scanChar$1(58)) { _this.whitespace$0(); t2._contents += A.Primitives_stringFromCharCode(58); t2._contents += A.Primitives_stringFromCharCode(32); t3 = _this._stylesheet0$_expression$0(); buffer._interpolation_buffer0$_flushText$0(); t4.push(t3); } else { next = t1.peekChar$0(); t3 = 60 !== next; if (!t3 || 62 === next || 61 === next) { t2._contents += A.Primitives_stringFromCharCode(32); t2._contents += A.Primitives_stringFromCharCode(t1.readChar$0()); if ((!t3 || 62 === next) && t1.scanChar$1(61)) t2._contents += A.Primitives_stringFromCharCode(61); t2._contents += A.Primitives_stringFromCharCode(32); _this.whitespace$0(); t5 = _this._stylesheet0$_expressionUntilComparison$0(); buffer._interpolation_buffer0$_flushText$0(); t4.push(t5); if (!t3 || 62 === next) { next.toString; t3 = t1.scanChar$1(next); } else t3 = false; if (t3) { t2._contents += A.Primitives_stringFromCharCode(32); t2._contents += A.Primitives_stringFromCharCode(next); if (t1.scanChar$1(61)) t2._contents += A.Primitives_stringFromCharCode(61); t2._contents += A.Primitives_stringFromCharCode(32); _this.whitespace$0(); t3 = _this._stylesheet0$_expressionUntilComparison$0(); buffer._interpolation_buffer0$_flushText$0(); t4.push(t3); } } } } t1.expectChar$1(41); _this.whitespace$0(); t2._contents += A.Primitives_stringFromCharCode(41); }, _stylesheet0$_expressionUntilComparison$0() { return this._stylesheet0$_expression$1$until(new A.StylesheetParser__expressionUntilComparison_closure0(this)); }, _stylesheet0$_supportsCondition$0() { var condition, operator, right, endPosition, t3, t4, lowerOperator, _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position; if (_this.scanIdentifier$1("not")) { _this.whitespace$0(); return new A.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2))); } condition = _this._stylesheet0$_supportsConditionInParens$0(); _this.whitespace$0(); for (operator = null; _this.lookingAtIdentifier$0();) { if (operator != null) _this.expectIdentifier$1(operator); else if (_this.scanIdentifier$1("or")) operator = "or"; else { _this.expectIdentifier$1("and"); operator = "and"; } _this.whitespace$0(); right = _this._stylesheet0$_supportsConditionInParens$0(); endPosition = t1._string_scanner$_position; t3 = t1._sourceFile; t4 = new A._FileSpan(t3, t2, endPosition); t4._FileSpan$3(t3, t2, endPosition); condition = new A.SupportsOperation0(condition, right, operator, t4); lowerOperator = operator.toLowerCase(); if (lowerOperator !== "and" && lowerOperator !== "or") A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".')); _this.whitespace$0(); } return condition; }, _stylesheet0$_supportsConditionInParens$0() { var $name, nameStart, wasInParentheses, identifier, operation, _1_0, contents, identifier0, t2, $arguments, _0_0, _0_4, expression, condition, exception, declaration, _this = this, t1 = _this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position); if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) { identifier0 = _this.interpolatedIdentifier$0(); t2 = identifier0.get$asPlain(); if ((t2 == null ? null : t2.toLowerCase()) === "not") _this.error$2(0, '"not" is not a valid identifier here.', identifier0.span); if (t1.scanChar$1(40)) { $arguments = _this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true); t1.expectChar$1(41); return new A.SupportsFunction0(identifier0, $arguments, t1.spanFrom$1(start)); } else { _0_0 = identifier0.contents; _0_4 = A._InitializedCell$(new A.StylesheetParser__supportsConditionInParens_closure0(_0_0)); if (_0_0.length === 1) if (type$.Expression_2._is(_0_4._readFinal$0())) { expression = _0_4._readFinal$0(); t2 = true; } else { expression = null; t2 = false; } else { expression = null; t2 = false; } if (t2) return new A.SupportsInterpolation0(expression, t1.spanFrom$1(start)); else _this.error$2(0, "Expected @supports condition.", identifier0.span); } } t1.expectChar$1(40); _this.whitespace$0(); if (_this.scanIdentifier$1("not")) { _this.whitespace$0(); condition = _this._stylesheet0$_supportsConditionInParens$0(); t1.expectChar$1(41); return new A.SupportsNegation0(condition, t1.spanFrom$1(start)); } else if (t1.peekChar$0() === 40) { condition = _this._stylesheet0$_supportsCondition$0(); t1.expectChar$1(41); return condition; } $name = null; nameStart = new A._SpanScannerState(t1, t1._string_scanner$_position); wasInParentheses = _this._stylesheet0$_inParentheses; try { $name = _this._stylesheet0$_expression$0(); t1.expectChar$1(58); } catch (exception) { if (type$.FormatException._is(A.unwrapException(exception))) { t1.set$state(nameStart); _this._stylesheet0$_inParentheses = wasInParentheses; identifier = _this.interpolatedIdentifier$0(); operation = null; _1_0 = _this._stylesheet0$_trySupportsOperation$2(identifier, nameStart); if (_1_0 != null) { operation = _1_0; t2 = true; } else t2 = false; if (t2) { t1.expectChar$1(41); return operation; } t2 = new A.InterpolationBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object)); t2.addInterpolation$1(identifier); t2.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(false, true, true)); contents = t2.interpolation$1(t1.spanFrom$1(nameStart)); if (t1.peekChar$0() === 58) throw exception; t1.expectChar$1(41); return new A.SupportsAnything0(contents, t1.spanFrom$1(start)); } else throw exception; } declaration = _this._stylesheet0$_supportsDeclarationValue$2($name, start); t1.expectChar$1(41); return declaration; }, _stylesheet0$_supportsDeclarationValue$2($name, start) { var t1, value, _this = this; if ($name instanceof A.StringExpression0) if (!$name.hasQuotes) t1 = B.JSString_methods.startsWith$1($name.text.get$initialPlain(), "--"); else t1 = false; else t1 = false; if (t1) value = new A.StringExpression0(_this._stylesheet0$_interpolatedDeclarationValue$0(), false); else { _this.whitespace$0(); value = _this._stylesheet0$_expression$0(); } return new A.SupportsDeclaration0($name, value, _this.scanner.spanFrom$1(start)); }, _stylesheet0$_trySupportsOperation$2(interpolation, start) { var expression, beforeWhitespace, t2, t3, operator, operation, right, t4, endPosition, t5, t6, lowerOperator, _this = this, _null = null, t1 = interpolation.contents; if (t1.length !== 1) return _null; expression = B.JSArray_methods.get$first(t1); if (!type$.Expression_2._is(expression)) return _null; t1 = _this.scanner; beforeWhitespace = new A._SpanScannerState(t1, t1._string_scanner$_position); _this.whitespace$0(); for (t2 = start.position, t3 = interpolation.span, operator = _null, operation = operator; _this.lookingAtIdentifier$0();) { if (operator != null) _this.expectIdentifier$1(operator); else if (_this.scanIdentifier$1("and")) operator = "and"; else { if (!_this.scanIdentifier$1("or")) { if (beforeWhitespace._scanner !== t1) A.throwExpression(A.ArgumentError$(string$.The_gi, _null)); t2 = beforeWhitespace.position; if ((t2 === 0 ? 1 / t2 < 0 : t2 < 0) || t2 > t1.string.length) A.throwExpression(A.ArgumentError$("Invalid position " + t2, _null)); t1._string_scanner$_position = t2; return t1._lastMatch = null; } operator = "or"; } _this.whitespace$0(); right = _this._stylesheet0$_supportsConditionInParens$0(); t4 = operation == null ? new A.SupportsInterpolation0(expression, t3) : operation; endPosition = t1._string_scanner$_position; t5 = t1._sourceFile; t6 = new A._FileSpan(t5, t2, endPosition); t6._FileSpan$3(t5, t2, endPosition); operation = new A.SupportsOperation0(t4, right, operator, t6); lowerOperator = operator.toLowerCase(); if (lowerOperator !== "and" && lowerOperator !== "or") A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".')); _this.whitespace$0(); } return operation; }, _stylesheet0$_lookingAtInterpolatedIdentifier$0() { var _0_0, t1 = this.scanner, _1_0 = t1.peekChar$0(); $label0$0: { if (_1_0 == null) { t1 = false; break $label0$0; } if (_1_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_1_0) || _1_0 >= 128 || 92 === _1_0) { t1 = true; break $label0$0; } if (35 === _1_0) { t1 = t1.peekChar$1(1) === 123; break $label0$0; } if (45 === _1_0) { _0_0 = t1.peekChar$1(1); $label1$1: { if (_0_0 == null) { t1 = false; break $label1$1; } if (35 === _0_0) { t1 = t1.peekChar$1(2) === 123; break $label1$1; } if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128 || 92 === _0_0 || 45 === _0_0) { t1 = true; break $label1$1; } t1 = false; break $label1$1; } break $label0$0; } t1 = false; break $label0$0; } return t1; }, _stylesheet0$_lookingAtPotentialPropertyHack$0() { var t1 = this.scanner, _0_0 = t1.peekChar$0(); $label0$0: { if (58 === _0_0 || 42 === _0_0 || 46 === _0_0) { t1 = true; break $label0$0; } if (35 === _0_0) { t1 = t1.peekChar$1(1) !== 123; break $label0$0; } t1 = false; break $label0$0; } return t1; }, _stylesheet0$_lookingAtInterpolatedIdentifierBody$0() { var t2, t1 = this.scanner, _0_0 = t1.peekChar$0(); $label0$0: { if (_0_0 == null) { t1 = false; break $label0$0; } if (!(_0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128)) t2 = _0_0 >= 48 && _0_0 <= 57 || _0_0 === 45; else t2 = true; if (t2 || 92 === _0_0) { t1 = true; break $label0$0; } if (35 === _0_0) { t1 = t1.peekChar$1(1) === 123; break $label0$0; } t1 = false; break $label0$0; } return t1; }, _stylesheet0$_lookingAtExpression$0() { var _0_0, t1 = this.scanner, _1_0 = t1.peekChar$0(); $label0$0: { if (_1_0 == null) { t1 = false; break $label0$0; } if (46 === _1_0) { t1 = t1.peekChar$1(1) !== 46; break $label0$0; } if (33 === _1_0) { _0_0 = t1.peekChar$1(1); $label1$1: { if (_0_0 != null) if (105 !== _0_0) if (73 !== _0_0) t1 = _0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12; else t1 = true; else t1 = true; else t1 = true; if (t1) { t1 = true; break $label1$1; } t1 = false; break $label1$1; } break $label0$0; } if (40 !== _1_0) if (47 !== _1_0) if (91 !== _1_0) if (39 !== _1_0) if (34 !== _1_0) if (35 !== _1_0) if (43 !== _1_0) if (45 !== _1_0) if (92 !== _1_0) if (36 !== _1_0) if (38 !== _1_0) if (!(_1_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_1_0) || _1_0 >= 128)) t1 = _1_0 >= 48 && _1_0 <= 57; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; else t1 = true; if (t1) { t1 = true; break $label0$0; } t1 = false; break $label0$0; } return t1; }, _stylesheet0$_withChildren$1$3(child, start, create) { var result = create.call$2(this.children$1(0, child), this.scanner.spanFrom$1(start)); this.whitespaceWithoutComments$0(); return result; }, _stylesheet0$_withChildren$3(child, start, create) { return this._stylesheet0$_withChildren$1$3(child, start, create, type$.dynamic); }, _stylesheet0$_urlString$0() { var innerError, stackTrace, t2, exception, t1 = this.scanner, start = new A._SpanScannerState(t1, t1._string_scanner$_position), url = this.string$0(); try { t2 = A.Uri_parse(url); return t2; } catch (exception) { t2 = A.unwrapException(exception); if (type$.FormatException._is(t2)) { innerError = t2; stackTrace = A.getTraceFromException(exception); this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), t1.spanFrom$1(start), stackTrace); } else throw exception; } }, _stylesheet0$_publicIdentifier$0() { var _this = this, t1 = _this.scanner, t2 = t1._string_scanner$_position, result = _this.identifier$1$normalize(true); _this._stylesheet0$_assertPublic$2(result, new A.StylesheetParser__publicIdentifier_closure0(_this, new A._SpanScannerState(t1, t2))); return result; }, _stylesheet0$_assertPublic$2(identifier, span) { var first = identifier.charCodeAt(0); if (!(first === 45 || first === 95)) return; this.error$2(0, string$.Privat, span.call$0()); }, get$plainCss() { return false; } }; A.StylesheetParser_parse_closure0.prototype = { call$0() { var statements, t4, t1 = this.$this, t2 = t1.scanner, t3 = t2._string_scanner$_position; t2.scanChar$1(65279); statements = t1.statements$1(new A.StylesheetParser_parse__closure1(t1)); t2.expectDone$0(); t4 = t1._stylesheet0$_globalVariables; t4 = t4.get$values(t4); 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)); return A.Stylesheet$internal0(statements, t2.spanFrom$1(new A._SpanScannerState(t2, t3)), t1.get$plainCss()); }, $signature: 575 }; A.StylesheetParser_parse__closure1.prototype = { call$0() { var t1 = this.$this; if (t1.scanner.scan$1("@charset")) { t1.whitespace$0(); t1.string$0(); return null; } return t1._stylesheet0$_statement$1$root(true); }, $signature: 576 }; A.StylesheetParser_parse__closure2.prototype = { call$1(declaration) { var t1 = declaration.expression; return A.VariableDeclaration$0(declaration.name, new A.NullExpression0(t1.get$span(t1)), declaration.span, null, false, true, null); }, $signature: 577 }; A.StylesheetParser_parseArgumentDeclaration_closure0.prototype = { call$0() { var $arguments, t1 = this.$this, t2 = t1.scanner; t2.expectChar$2$name(64, "@-rule"); t1.identifier$0(); t1.whitespace$0(); t1.identifier$0(); $arguments = t1._stylesheet0$_argumentDeclaration$0(); t1.whitespace$0(); t2.expectChar$1(123); return $arguments; }, $signature: 578 }; A.StylesheetParser__parseSingleProduction_closure0.prototype = { call$0() { var result = this.production.call$0(); this.$this.scanner.expectDone$0(); return result; }, $signature() { return this.T._eval$1("0()"); } }; A.StylesheetParser_parseSignature_closure.prototype = { call$0() { var $arguments, t2, t3, t1 = this.$this, $name = t1.identifier$0(); if (this.requireParens || t1.scanner.peekChar$0() === 40) $arguments = t1._stylesheet0$_argumentDeclaration$0(); else { t2 = t1.scanner; t2 = A.FileLocation$_(t2._sourceFile, t2._string_scanner$_position); t3 = t2.offset; $arguments = new A.ArgumentDeclaration0(B.List_empty22, null, A._FileSpan$(t2.file, t3, t3)); } t1.scanner.expectDone$0(); return new A._Record_2($name, $arguments); }, $signature: 579 }; A.StylesheetParser__statement_closure0.prototype = { call$0() { return this.$this._stylesheet0$_statement$0(); }, $signature: 145 }; A.StylesheetParser_variableDeclarationWithoutNamespace_closure1.prototype = { call$0() { return this.$this.scanner.spanFrom$1(this.start); }, $signature: 33 }; A.StylesheetParser_variableDeclarationWithoutNamespace_closure2.prototype = { call$0() { return this.declaration; }, $signature: 580 }; A.StylesheetParser__declarationOrBuffer_closure1.prototype = { call$2(children, span) { return A.Declaration$nested0(this.name, children, span, null); }, $signature: 82 }; A.StylesheetParser__declarationOrBuffer_closure2.prototype = { call$2(children, span) { return A.Declaration$nested0(this.name, children, span, this._box_0.value); }, $signature: 82 }; A.StylesheetParser__styleRule_closure0.prototype = { call$2(children, span) { var _this = this, t1 = _this.$this; if (t1.get$indented() && children.length === 0) t1.logger.warn$2$span(0, string$.This_s, _this._box_0.interpolation.span); t1._stylesheet0$_inStyleRule = _this.wasInStyleRule; return A.StyleRule$0(_this._box_0.interpolation, children, t1.scanner.spanFrom$1(_this.start)); }, $signature: 582 }; A.StylesheetParser__propertyOrVariableDeclaration_closure1.prototype = { call$2(children, span) { return A.Declaration$nested0(this._box_0.name, children, span, null); }, $signature: 82 }; A.StylesheetParser__propertyOrVariableDeclaration_closure2.prototype = { call$2(children, span) { return A.Declaration$nested0(this._box_0.name, children, span, this.value); }, $signature: 82 }; A.StylesheetParser__atRootRule_closure1.prototype = { call$2(children, span) { return A.AtRootRule$0(children, span, this.query); }, $signature: 285 }; A.StylesheetParser__atRootRule_closure2.prototype = { call$2(children, span) { return A.AtRootRule$0(children, span, null); }, $signature: 285 }; A.StylesheetParser__eachRule_closure0.prototype = { call$2(children, span) { var _this = this; _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective; return A.EachRule$0(_this.variables, _this.list, children, span); }, $signature: 584 }; A.StylesheetParser__functionRule_closure0.prototype = { call$2(children, span) { return A.FunctionRule$0(this.name, this.$arguments, children, span, this.precedingComment); }, $signature: 585 }; A.StylesheetParser__forRule_closure1.prototype = { call$0() { var t1 = this.$this; if (!t1.lookingAtIdentifier$0()) return false; if (t1.scanIdentifier$1("to")) return this._box_0.exclusive = true; else if (t1.scanIdentifier$1("through")) { this._box_0.exclusive = false; return true; } else return false; }, $signature: 1 }; A.StylesheetParser__forRule_closure2.prototype = { call$2(children, span) { var t1, _this = this; _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective; t1 = _this._box_0.exclusive; t1.toString; return A.ForRule$0(_this.variable, _this.from, _this.to, children, span, t1); }, $signature: 586 }; A.StylesheetParser__memberList_closure0.prototype = { call$0() { var t1 = this.$this; if (t1.scanner.peekChar$0() === 36) this.variables.add$1(0, t1.variableName$0()); else this.identifiers.add$1(0, t1.identifier$1$normalize(true)); }, $signature: 2 }; A.StylesheetParser__includeRule_closure0.prototype = { call$2(children, span) { return A.ContentBlock$0(this.contentArguments_, children, span); }, $signature: 587 }; A.StylesheetParser_mediaRule_closure0.prototype = { call$2(children, span) { return A.MediaRule$0(this.query, children, span); }, $signature: 588 }; A.StylesheetParser__mixinRule_closure0.prototype = { call$2(children, span) { var _this = this; _this.$this._stylesheet0$_inMixin = false; return A.MixinRule$0(_this.name, _this.$arguments, children, span, _this.precedingComment); }, $signature: 589 }; A.StylesheetParser_mozDocumentRule_closure0.prototype = { call$2(children, span) { var _this = this; if (_this._box_0.needsDeprecationWarning) A.WarnForDeprecation_warnForDeprecation0(_this.$this.logger, B.Deprecation_GbU, string$.x40_moz_, span, null); return A.AtRule$0(_this.name, span, children, _this.value); }, $signature: 286 }; A.StylesheetParser_supportsRule_closure0.prototype = { call$2(children, span) { return A.SupportsRule$0(this.condition, children, span); }, $signature: 591 }; A.StylesheetParser__whileRule_closure0.prototype = { call$2(children, span) { this.$this._stylesheet0$_inControlDirective = this.wasInControlDirective; return A.WhileRule$0(this.condition, children, span); }, $signature: 592 }; A.StylesheetParser_unknownAtRule_closure0.prototype = { call$2(children, span) { return A.AtRule$0(this.name, span, children, this._box_0.value); }, $signature: 286 }; A.StylesheetParser__expression_resetState0.prototype = { call$0() { var t2, t1 = this._box_0; t1.operands_ = t1.operators_ = t1.spaceExpressions_ = t1.commaExpressions_ = null; t2 = this.$this; t2.scanner.set$state(this.start); t1.allowSlash = true; t1.singleExpression_ = t2._stylesheet0$_singleExpression$0(); }, $signature: 0 }; A.StylesheetParser__expression_resolveOneOperation0.prototype = { call$0() { var t2, t3, t4, t5, t6, t7, _this = this, t1 = _this._box_0, operator = t1.operators_.pop(), left = t1.operands_.pop(), right = t1.singleExpression_; if (right == null) { t2 = _this.$this.scanner; t3 = operator.operator.length; t2.error$3$length$position(0, "Expected expression.", t3, t2._string_scanner$_position - t3); } if (t1.allowSlash) { t2 = _this.$this; t2 = !t2._stylesheet0$_inParentheses && operator === B.BinaryOperator_t8B0 && t2._stylesheet0$_isSlashOperand$1(left) && t2._stylesheet0$_isSlashOperand$1(right); } else t2 = false; if (t2) t1.singleExpression_ = new A.BinaryOperationExpression0(B.BinaryOperator_t8B0, left, right, true); else { t1.singleExpression_ = new A.BinaryOperationExpression0(operator, left, right, false); t2 = t1.allowSlash = false; if (B.BinaryOperator_anB0 === operator || B.BinaryOperator_olz0 === operator) { t3 = _this.$this; t4 = t3.scanner.string; t5 = right.get$span(right); t5 = t5.get$start(t5); t6 = right.get$span(right); t7 = operator.operator; if (B.JSString_methods.substring$2(t4, t5.offset - 1, t6.get$start(t6).offset) === t7) { t2 = left.get$span(left); t2 = t4.charCodeAt(t2.get$end(t2).offset); t2 = t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12; } if (t2) { t2 = left.toString$0(0); t4 = right.toString$0(0); t5 = left.toString$0(0); t6 = right.toString$0(0); t1 = t1.singleExpression_; A.WarnForDeprecation_warnForDeprecation0(t3.logger, B.Deprecation_EsU, "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), null); } } } }, $signature: 0 }; A.StylesheetParser__expression_resolveOperations0.prototype = { call$0() { var t1, operators = this._box_0.operators_; if (operators == null) return; for (t1 = this.resolveOneOperation; operators.length !== 0;) t1.call$0(); }, $signature: 0 }; A.StylesheetParser__expression_addSingleExpression0.prototype = { call$1(expression) { var t2, spaceExpressions, _this = this, t1 = _this._box_0; if (t1.singleExpression_ != null) { t2 = _this.$this; if (t2._stylesheet0$_inParentheses) { t2._stylesheet0$_inParentheses = false; if (t1.allowSlash) { _this.resetState.call$0(); return; } } spaceExpressions = t1.spaceExpressions_; if (spaceExpressions == null) spaceExpressions = t1.spaceExpressions_ = A._setArrayType([], type$.JSArray_Expression_2); _this.resolveOperations.call$0(); t2 = t1.singleExpression_; t2.toString; spaceExpressions.push(t2); t1.allowSlash = true; } t1.singleExpression_ = expression; }, $signature: 593 }; A.StylesheetParser__expression_addOperator0.prototype = { call$1(operator) { var t2, t3, operators, operands, t4, singleExpression, t1 = this.$this; if (t1.get$plainCss() && operator !== B.BinaryOperator_2jN0 && operator !== B.BinaryOperator_anB0 && operator !== B.BinaryOperator_olz0 && operator !== B.BinaryOperator_qN20 && operator !== B.BinaryOperator_t8B0) { t2 = t1.scanner; t3 = operator.operator.length; t2.error$3$length$position(0, "Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3); } t2 = this._box_0; t2.allowSlash = t2.allowSlash && operator === B.BinaryOperator_t8B0; operators = t2.operators_; if (operators == null) operators = t2.operators_ = A._setArrayType([], type$.JSArray_BinaryOperator_2); operands = t2.operands_; if (operands == null) operands = t2.operands_ = A._setArrayType([], type$.JSArray_Expression_2); t3 = this.resolveOneOperation; t4 = operator.precedence; while (true) { if (!(operators.length !== 0 && B.JSArray_methods.get$last(operators).precedence >= t4)) break; t3.call$0(); } operators.push(operator); singleExpression = t2.singleExpression_; if (singleExpression == null) { t3 = t1.scanner; t4 = operator.operator.length; t3.error$3$length$position(0, "Expected expression.", t4, t3._string_scanner$_position - t4); } operands.push(singleExpression); t1.whitespace$0(); t2.singleExpression_ = t1._stylesheet0$_singleExpression$0(); }, $signature: 594 }; A.StylesheetParser__expression_resolveSpaceExpressions0.prototype = { call$0() { var t1, spaceExpressions, singleExpression, t2; this.resolveOperations.call$0(); t1 = this._box_0; spaceExpressions = t1.spaceExpressions_; if (spaceExpressions == null) return; singleExpression = t1.singleExpression_; if (singleExpression == null) this.$this.scanner.error$1(0, "Expected expression."); spaceExpressions.push(singleExpression); t2 = B.JSArray_methods.get$first(spaceExpressions); t2 = t2.get$span(t2).expand$1(0, singleExpression.get$span(singleExpression)); t1.singleExpression_ = new A.ListExpression0(A.List_List$unmodifiable(spaceExpressions, type$.Expression_2), B.ListSeparator_EVt0, false, t2); t1.spaceExpressions_ = null; }, $signature: 0 }; A.StylesheetParser__expression_closure2.prototype = { call$0() { return 43 === this._3_0; }, $signature: 1 }; A.StylesheetParser__expression_closure3.prototype = { call$0() { return 47 === this._3_0; }, $signature: 1 }; A.StylesheetParser__expression_closure4.prototype = { call$0() { return 46 === this._3_0; }, $signature: 1 }; A.StylesheetParser_expressionUntilComma_closure0.prototype = { call$0() { return this.$this.scanner.peekChar$0() === 44; }, $signature: 1 }; A.StylesheetParser__isHexColor_closure1.prototype = { call$0() { var t1 = this._0_0; return (t1 == null ? A._asString(t1) : t1).length; }, $signature: 3 }; A.StylesheetParser__isHexColor_closure2.prototype = { call$1(char) { return A.CharacterExtension_get_isHex0(char); }, $signature: 47 }; A.StylesheetParser__unicodeRange_closure1.prototype = { call$1(char) { return char != null && A.CharacterExtension_get_isHex0(char); }, $signature: 34 }; A.StylesheetParser__unicodeRange_closure2.prototype = { call$1(char) { return char != null && A.CharacterExtension_get_isHex0(char); }, $signature: 34 }; A.StylesheetParser_identifierLike_closure1.prototype = { call$0() { return 46 === this._2_0; }, $signature: 1 }; A.StylesheetParser_identifierLike_closure2.prototype = { call$0() { return 40 === this._2_0; }, $signature: 1 }; A.StylesheetParser_namespacedExpression_closure0.prototype = { call$0() { return this.$this.scanner.spanFrom$1(this.start); }, $signature: 33 }; A.StylesheetParser_trySpecialFunction_closure0.prototype = { call$1(contents) { return new A.StringExpression0(contents, false); }, $signature: 595 }; A.StylesheetParser__tryUrlContents_closure0.prototype = { call$0() { return 35 === this._0_0; }, $signature: 1 }; A.StylesheetParser__interpolatedDeclarationValue_closure4.prototype = { call$0() { return 32 === this._1_0; }, $signature: 1 }; A.StylesheetParser__interpolatedDeclarationValue_closure5.prototype = { call$0() { return 9 === this._1_0; }, $signature: 1 }; A.StylesheetParser__interpolatedDeclarationValue_closure6.prototype = { call$0() { return 10 === this._1_0; }, $signature: 1 }; A.StylesheetParser__interpolatedDeclarationValue_closure7.prototype = { call$0() { return 13 === this._1_0; }, $signature: 1 }; A.StylesheetParser__interpolatedDeclarationValue_closure8.prototype = { call$0() { return 12 === this._1_0; }, $signature: 1 }; A.StylesheetParser__expressionUntilComparison_closure0.prototype = { call$0() { var t1 = this.$this.scanner, _0_0 = t1.peekChar$0(); $label0$0: { if (61 === _0_0) { t1 = t1.peekChar$1(1) !== 61; break $label0$0; } if (60 === _0_0 || 62 === _0_0) { t1 = true; break $label0$0; } t1 = false; break $label0$0; } return t1; }, $signature: 1 }; A.StylesheetParser__supportsConditionInParens_closure0.prototype = { call$0() { return this._0_0[0]; }, $signature: 14 }; A.StylesheetParser__publicIdentifier_closure0.prototype = { call$0() { return this.$this.scanner.spanFrom$1(this.start); }, $signature: 33 }; A.Stylesheet0.prototype = { Stylesheet$internal$3$plainCss0(children, span, plainCss) { var t1, t2, t3, t4, _i, child; for (t1 = this.children, t2 = t1.length, t3 = this._stylesheet1$_forwards, t4 = this._stylesheet1$_uses, _i = 0; _i < t2; ++_i) { child = t1[_i]; if (child instanceof A.UseRule0) { t4.push(child); continue; } if (child instanceof A.ForwardRule0) { t3.push(child); continue; } if (child instanceof A.SilentComment0 || child instanceof A.LoudComment0 || child instanceof A.VariableDeclaration0) continue; break; } }, accept$1$1(visitor) { return visitor.visitStylesheet$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.children; return (t1 && B.JSArray_methods).join$1(t1, " "); }, get$span(receiver) { return this.span; } }; A.SupportsExpression0.prototype = { get$span(_) { var t1 = this.condition; return t1.get$span(t1); }, accept$1$1(visitor) { return visitor.visitSupportsExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return this.condition.toString$0(0); }, $isExpression0: 1, $isAstNode0: 1 }; A.ModifiableCssSupportsRule0.prototype = { accept$1$1(visitor) { return visitor.visitCssSupportsRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, equalsIgnoringChildren$1(other) { var t1, t2; if (other instanceof A.ModifiableCssSupportsRule0) { t1 = this.condition; t2 = other.condition; t1 = t1.$ti._is(t2) && J.$eq$(t2.value, t1.value); } else t1 = false; return t1; }, copyWithoutChildren$0() { return A.ModifiableCssSupportsRule$0(this.condition, this.span); }, get$span(receiver) { return this.span; } }; A.SupportsRule0.prototype = { accept$1$1(visitor) { return visitor.visitSupportsRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.children; return "@supports " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}"; }, get$span(receiver) { return this.span; } }; A.JSToDartImporter.prototype = { canonicalize$1(_, url) { var t1, result = A.wrapJSExceptions(new A.JSToDartImporter_canonicalize_closure(this, url)); if (result == null) return null; t1 = self.URL; if (result instanceof t1) return A.Uri_parse(J.toString$0$(type$.JSUrl._as(result))); t1 = self.Promise; if (result instanceof t1) A.jsThrow(new self.Error("The canonicalize() function can't return a Promise for synchronous compile functions.")); else A.jsThrow(new self.Error(string$.The_ca)); }, load$1(_, url) { var t1, contents, syntax, t2, result = A.wrapJSExceptions(new A.JSToDartImporter_load_closure(this, url)); if (result == null) return null; t1 = self.Promise; if (result instanceof t1) A.jsThrow(new self.Error("The load() function can't return a Promise for synchronous compile functions.")); type$.JSImporterResult._as(result); t1 = J.getInterceptor$x(result); contents = t1.get$contents(result); if (A._asString(new self.Function("value", "return typeof value").call$1(contents)) !== "string") A.jsThrow(new A.ArgumentError(true, contents, "contents", "must be a string but was: " + A.jsType(contents))); syntax = t1.get$syntax(result); if (contents == null || syntax == null) A.jsThrow(new self.Error(string$.The_lo)); t2 = A.parseSyntax(syntax); return A.ImporterResult$(contents, A.NullableExtension_andThen0(t1.get$sourceMapUrl(result), A.utils1__jsToDartUrl$closure()), t2); }, isNonCanonicalScheme$1(scheme) { return this._sync$_nonCanonicalSchemes.contains$1(0, scheme); } }; A.JSToDartImporter_canonicalize_closure.prototype = { call$0() { return this.$this._sync$_canonicalize.call$2(this.url.toString$0(0), {fromImport: A.fromImport0(), containingUrl: A.NullableExtension_andThen0(A.containingUrl(), A.utils1__dartToJSUrl$closure())}); }, $signature: 28 }; A.JSToDartImporter_load_closure.prototype = { call$0() { return this.$this._sync$_load.call$1(new self.URL(this.url.toString$0(0))); }, $signature: 28 }; A.Syntax0.prototype = { _enumToString$0() { return "Syntax." + this._name; }, toString$0(_) { return this._syntax0$_name; } }; A.TypeSelector0.prototype = { get$specificity() { return 1; }, accept$1$1(visitor) { return visitor.visitTypeSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, addSuffix$1(suffix) { var t1 = this.name; return new A.TypeSelector0(new A.QualifiedName0(t1.name + suffix, t1.namespace), this.span); }, unify$1(compound) { var unified, t1, _0_0 = B.JSArray_methods.get$first(compound); if (_0_0 instanceof A.UniversalSelector0 || _0_0 instanceof A.TypeSelector0) { unified = A.unifyUniversalAndElement0(this, B.JSArray_methods.get$first(compound)); if (unified == null) return null; t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector_2); B.JSArray_methods.addAll$1(t1, A.SubListIterable$(compound, 1, null, A._arrayInstanceType(compound)._precomputed1)); return t1; } else { t1 = A._setArrayType([this], type$.JSArray_SimpleSelector_2); B.JSArray_methods.addAll$1(t1, compound); return t1; } }, isSuperselector$1(other) { var t1, t2; if (!this.super$SimpleSelector$isSuperselector0(other)) if (other instanceof A.TypeSelector0) { t1 = this.name; t2 = other.name; if (t1.name === t2.name) { t1 = t1.namespace; t1 = t1 === "*" || t1 == t2.namespace; } else t1 = false; } else t1 = false; else t1 = true; return t1; }, $eq(_, other) { if (other == null) return false; return other instanceof A.TypeSelector0 && other.name.$eq(0, this.name); }, get$hashCode(_) { var t1 = this.name; return B.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace); } }; A.Types.prototype = {}; A.UnaryOperationExpression0.prototype = { accept$1$1(visitor) { return visitor.visitUnaryOperationExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var operand, t1 = this.operator, t2 = t1.operator; t1 = t1 === B.UnaryOperator_not_not_not0 ? t2 + A.Primitives_stringFromCharCode(32) : t2; operand = this.operand; $label0$0: { if (!(operand instanceof A.BinaryOperationExpression0)) if (!(operand instanceof A.UnaryOperationExpression0)) t2 = operand instanceof A.ListExpression0 && !operand.hasBrackets && operand.contents.length >= 2; else t2 = true; else t2 = true; if (t2) { t2 = true; break $label0$0; } t2 = false; break $label0$0; } if (t2) t1 += "40"; t1 += operand.toString$0(0); if (t2) t1 += "41"; return t1.charCodeAt(0) == 0 ? t1 : t1; }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.UnaryOperator0.prototype = { _enumToString$0() { return "UnaryOperator." + this._name; }, toString$0(_) { return this.name; } }; A.UnitlessSassNumber0.prototype = { get$numeratorUnits(_) { return B.List_empty; }, get$denominatorUnits(_) { return B.List_empty; }, get$hasUnits() { return false; }, get$hasComplexUnits() { return false; }, withValue$1(value) { return new A.UnitlessSassNumber0(value, null); }, withSlash$2(numerator, denominator) { return new A.UnitlessSassNumber0(this._number1$_value, new A._Record_2(numerator, denominator)); }, hasUnit$1(unit) { return false; }, hasCompatibleUnits$1(other) { return other instanceof A.UnitlessSassNumber0; }, hasPossiblyCompatibleUnits$1(other) { return other instanceof A.UnitlessSassNumber0; }, compatibleWithUnit$1(unit) { return true; }, coerceToMatch$3(other, $name, otherName) { return other.withValue$1(this._number1$_value); }, coerceToMatch$1(other) { return this.coerceToMatch$3(other, null, null); }, coerceValueToMatch$3(other, $name, otherName) { return this._number1$_value; }, coerceValueToMatch$1(other) { return this.coerceValueToMatch$3(other, null, null); }, convertToMatch$3(other, $name, otherName) { return other.get$hasUnits() ? this.super$SassNumber$convertToMatch(other, $name, otherName) : this; }, convertValueToMatch$3(other, $name, otherName) { return other.get$hasUnits() ? this.super$SassNumber$convertValueToMatch0(other, $name, otherName) : this._number1$_value; }, convertValueToMatch$1(other) { return this.convertValueToMatch$3(other, null, null); }, coerce$3(newNumerators, newDenominators, $name) { return A.SassNumber_SassNumber$withUnits0(this._number1$_value, newDenominators, newNumerators); }, coerce$2(newNumerators, newDenominators) { return this.coerce$3(newNumerators, newDenominators, null); }, coerceValue$3(newNumerators, newDenominators, $name) { return this._number1$_value; }, coerceValueToUnit$2(unit, $name) { return this._number1$_value; }, coerceValueToUnit$1(unit) { return this.coerceValueToUnit$2(unit, null); }, greaterThan$1(other) { var t1, t2; if (other instanceof A.SassNumber0) { t1 = this._number1$_value; t2 = other._number1$_value; return t1 > t2 && !A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0; } return this.super$SassNumber$greaterThan0(other); }, greaterThanOrEquals$1(other) { var t1, t2; if (other instanceof A.SassNumber0) { t1 = this._number1$_value; t2 = other._number1$_value; return t1 > t2 || A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0; } return this.super$SassNumber$greaterThanOrEquals0(other); }, lessThan$1(other) { var t1, t2; if (other instanceof A.SassNumber0) { t1 = this._number1$_value; t2 = other._number1$_value; return t1 < t2 && !A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0; } return this.super$SassNumber$lessThan0(other); }, lessThanOrEquals$1(other) { var t1, t2; if (other instanceof A.SassNumber0) { t1 = this._number1$_value; t2 = other._number1$_value; return t1 < t2 || A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0; } return this.super$SassNumber$lessThanOrEquals0(other); }, modulo$1(other) { if (other instanceof A.SassNumber0) return other.withValue$1(A.moduloLikeSass0(this._number1$_value, other._number1$_value)); return this.super$SassNumber$modulo0(other); }, plus$1(other) { if (other instanceof A.SassNumber0) return other.withValue$1(this._number1$_value + other._number1$_value); return this.super$SassNumber$plus0(other); }, minus$1(other) { if (other instanceof A.SassNumber0) return other.withValue$1(this._number1$_value - other._number1$_value); return this.super$SassNumber$minus0(other); }, times$1(other) { if (other instanceof A.SassNumber0) return other.withValue$1(this._number1$_value * other._number1$_value); return this.super$SassNumber$times0(other); }, dividedBy$1(other) { var t1, t2; if (other instanceof A.SassNumber0) { t1 = this._number1$_value / other._number1$_value; if (other.get$hasUnits()) { t2 = other.get$denominatorUnits(other); t2 = A.SassNumber_SassNumber$withUnits0(t1, other.get$numeratorUnits(other), t2); t1 = t2; } else t1 = new A.UnitlessSassNumber0(t1, null); return t1; } return this.super$SassNumber$dividedBy0(other); }, unaryMinus$0() { return new A.UnitlessSassNumber0(-this._number1$_value, null); }, $eq(_, other) { if (other == null) return false; return other instanceof A.UnitlessSassNumber0 && A.fuzzyEquals0(this._number1$_value, other._number1$_value); }, get$hashCode(_) { var t1 = this.hashCache; return t1 == null ? this.hashCache = A.fuzzyHashCode0(this._number1$_value) : t1; } }; A.UniversalSelector0.prototype = { get$specificity() { return 0; }, accept$1$1(visitor) { return visitor.visitUniversalSelector$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, unify$1(compound) { var rest, t1, unified, first, _this = this, _null = null, _0_1 = A._InitializedCell$(new A.UniversalSelector_unify_closure1(compound)), _0_4 = A._InitializedCell$(new A.UniversalSelector_unify_closure2(compound)); if (_0_1._readFinal$0() >= 1) if (_0_4._readFinal$0() instanceof A.UniversalSelector0 || _0_4._readFinal$0() instanceof A.TypeSelector0) { rest = B.JSArray_methods.sublist$1(compound, 1); t1 = true; } else { rest = _null; t1 = false; } else { rest = _null; t1 = false; } if (t1) { unified = A.unifyUniversalAndElement0(_this, B.JSArray_methods.get$first(compound)); if (unified == null) return _null; t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector_2); B.JSArray_methods.addAll$1(t1, rest); return t1; } if (J.$eq$(_0_1._readFinal$0(), 1)) if (_0_4._readFinal$0() instanceof A.PseudoSelector0) { first = _0_4._readFinal$0(); t1 = first.isClass && first.name === "host" || first.get$isHostContext(); } else t1 = false; else t1 = false; if (t1) return _null; if (_0_1._readFinal$0() <= 0) return A._setArrayType([_this], type$.JSArray_SimpleSelector_2); t1 = _this.namespace; if (t1 == null || t1 === "*") t1 = compound; else { t1 = A._setArrayType([_this], type$.JSArray_SimpleSelector_2); B.JSArray_methods.addAll$1(t1, compound); } return t1; }, isSuperselector$1(other) { var t1 = this.namespace; if (t1 === "*") return true; if (other instanceof A.TypeSelector0) return t1 == other.name.namespace; if (other instanceof A.UniversalSelector0) return t1 == other.namespace; return t1 == null || this.super$SimpleSelector$isSuperselector0(other); }, $eq(_, other) { if (other == null) return false; return other instanceof A.UniversalSelector0 && other.namespace == this.namespace; }, get$hashCode(_) { return J.get$hashCode$(this.namespace); } }; A.UniversalSelector_unify_closure1.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A.UniversalSelector_unify_closure2.prototype = { call$0() { return this._0_0[0]; }, $signature: 279 }; A.UnprefixedMapView0.prototype = { get$keys(_) { return new A._UnprefixedKeys0(this); }, $index(_, key) { return typeof key == "string" ? this._unprefixed_map_view0$_map.$index(0, this._unprefixed_map_view0$_prefix + key) : null; }, containsKey$1(key) { return typeof key == "string" && this._unprefixed_map_view0$_map.containsKey$1(this._unprefixed_map_view0$_prefix + key); }, remove$1(_, key) { return typeof key == "string" ? this._unprefixed_map_view0$_map.remove$1(0, this._unprefixed_map_view0$_prefix + key) : null; } }; A._UnprefixedKeys0.prototype = { get$iterator(_) { var t1 = this._unprefixed_map_view0$_view._unprefixed_map_view0$_map; 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); return t1.get$iterator(t1); }, contains$1(_, key) { return this._unprefixed_map_view0$_view.containsKey$1(key); } }; A._UnprefixedKeys_iterator_closure1.prototype = { call$1(key) { return B.JSString_methods.startsWith$1(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix); }, $signature: 10 }; A._UnprefixedKeys_iterator_closure2.prototype = { call$1(key) { return B.JSString_methods.substring$1(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix.length); }, $signature: 7 }; A.JSUrl0.prototype = {}; A.UseRule0.prototype = { UseRule$4$configuration0(url, namespace, span, configuration) { var t1, t2, _i, variable; for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) { variable = t1[_i]; if (variable.isGuarded) throw A.wrapException(A.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule.")); } }, accept$1$1(visitor) { return visitor.visitUseRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.url, t2 = "@use " + A.StringExpression_quoteText0(t1.toString$0(0)), basename = t1.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(t1.get$pathSegments()), dot = B.JSString_methods.indexOf$1(basename, "."); t1 = this.namespace; if (t1 !== B.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot)) t1 = t2 + (" as " + (t1 == null ? "*" : t1)); else t1 = t2; t2 = this.configuration; t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";"; return t1.charCodeAt(0) == 0 ? t1 : t1; }, $isAstNode0: 1, $isStatement0: 1, get$span(receiver) { return this.span; } }; A.UserDefinedCallable0.prototype = { get$name(_) { return this.declaration.name; }, $isAsyncCallable0: 1, $isCallable: 1 }; A.resolveImportPath_closure1.prototype = { call$0() { return A._exactlyOne0(A._tryPath0($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension)); }, $signature: 32 }; A.resolveImportPath_closure2.prototype = { call$0() { return A._exactlyOne0(A._tryPathWithExtensions0(this.path + ".import")); }, $signature: 32 }; A._tryPathAsDirectory_closure0.prototype = { call$0() { return A._exactlyOne0(A._tryPathWithExtensions0(A.join(this.path, "index.import", null))); }, $signature: 32 }; A._exactlyOne_closure1.prototype = { call$0() { return this._0_0.length; }, $signature: 3 }; A._exactlyOne_closure2.prototype = { call$1(path) { var t1 = $.$get$context(); return " " + t1.prettyUri$1(t1.toUri$1(path)); }, $signature: 7 }; A._PropertyDescriptor0.prototype = {}; A.futureToPromise_closure0.prototype = { call$2(resolve, reject) { this.future.then$1$2$onError(0, new A.futureToPromise__closure0(resolve), new A.futureToPromise__closure1(reject), type$.void); }, $signature: 596 }; A.futureToPromise__closure0.prototype = { call$1(result) { return this.resolve.call$1(result); }, $signature: 37 }; A.futureToPromise__closure1.prototype = { call$2(error, stackTrace) { A.attachTrace0(error, stackTrace); this.reject.call$1(error); }, $signature: 62 }; A.objectToMap_closure.prototype = { call$2(key, value) { this.map.$indexSet(0, key, value); return value; }, $signature: 135 }; A.indent_closure0.prototype = { call$1(line) { return B.JSString_methods.$mul(" ", this.indentation) + line; }, $signature: 7 }; A.flattenVertically_closure1.prototype = { call$1(inner) { return A.QueueList_QueueList$from(inner, this.T); }, $signature() { return this.T._eval$1("QueueList<0>(Iterable<0>)"); } }; A.flattenVertically_closure2.prototype = { call$1(queue) { this.result.push(queue.removeFirst$0()); return queue.get$length(queue) === 0; }, $signature() { return this.T._eval$1("bool(QueueList<0>)"); } }; A.longestCommonSubsequence_backtrack0.prototype = { call$2(i, j) { var selection, t1, _this = this; if (i === -1 || j === -1) return A._setArrayType([], _this.T._eval$1("JSArray<0>")); selection = _this.selections[i][j]; if (selection != null) { t1 = _this.call$2(i - 1, j - 1); J.add$1$ax(t1, selection); return t1; } t1 = _this.lengths; return t1[i + 1][j] > t1[i][j + 1] ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j); }, $signature() { return this.T._eval$1("List<0>(int,int)"); } }; A.mapAddAll2_closure0.prototype = { call$2(key, inner) { var innerDestination, t2, t1 = this.destination, _0_0 = t1.$index(0, key); if (_0_0 != null) { innerDestination = _0_0; t2 = true; } else { innerDestination = null; t2 = false; } if (t2) innerDestination.addAll$1(0, inner); else t1.$indexSet(0, key, inner); }, $signature() { return this.K1._eval$1("@<0>")._bind$1(this.K2)._bind$1(this.V)._eval$1("~(1,Map<2,3>)"); } }; A.CssValue0.prototype = { $eq(_, other) { if (other == null) return false; return this.$ti._is(other) && J.$eq$(other.value, this.value); }, get$hashCode(_) { return J.get$hashCode$(this.value); }, toString$0(_) { return J.toString$0$(this.value); }, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.ValueExpression0.prototype = { accept$1$1(visitor) { return visitor.visitValueExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return A.serializeValue0(this.value, true, true); }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.valueClass_closure.prototype = { call$0() { var t2, t1 = type$.JSClass, jsClass = t1._as(self.Object.getPrototypeOf(J.get$$prototype$x(t1._as(B.C__SassNull0.constructor))).constructor); A.JSClassExtension_setCustomInspect(jsClass, new A.valueClass__closure()); t1 = type$.String; t2 = type$.Function; 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)); 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)); return jsClass; }, $signature: 24 }; A.valueClass__closure.prototype = { call$1($self) { return J.toString$0$($self); }, $signature: 139 }; A.valueClass__closure0.prototype = { call$1($self) { return new self.immutable.List($self.get$asList()); }, $signature: 597 }; A.valueClass__closure1.prototype = { call$1($self) { return $self.get$hasBrackets(); }, $signature: 54 }; A.valueClass__closure2.prototype = { call$1($self) { return $self.get$isTruthy(); }, $signature: 54 }; A.valueClass__closure3.prototype = { call$1($self) { return $self.get$realNull(); }, $signature: 241 }; A.valueClass__closure4.prototype = { call$1($self) { return $self.get$separator($self).separator; }, $signature: 598 }; A.valueClass__closure5.prototype = { call$3($self, sassIndex, $name) { return $self.sassIndexToListIndex$2(sassIndex, $name); }, call$2($self, sassIndex) { return this.call$3($self, sassIndex, null); }, "call*": "call$3", $requiredArgCount: 2, $defaultValues() { return [null]; }, $signature: 599 }; A.valueClass__closure6.prototype = { call$2($self, index) { return index < 1 && index >= -1 ? $self : self.undefined; }, $signature: 262 }; A.valueClass__closure7.prototype = { call$2($self, $name) { return $self.assertBoolean$1($name); }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 600 }; A.valueClass__closure8.prototype = { call$2($self, $name) { return $self.assertCalculation$1($name); }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 601 }; A.valueClass__closure9.prototype = { call$2($self, $name) { return $self.assertColor$1($name); }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 602 }; A.valueClass__closure10.prototype = { call$2($self, $name) { return $self.assertFunction$1($name); }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 603 }; A.valueClass__closure11.prototype = { call$2($self, $name) { return $self.assertMap$1($name); }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 604 }; A.valueClass__closure12.prototype = { call$2($self, $name) { return $self.assertMixin$1($name); }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 605 }; A.valueClass__closure13.prototype = { call$2($self, $name) { return $self.assertNumber$1($name); }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 606 }; A.valueClass__closure14.prototype = { call$2($self, $name) { return $self.assertString$1($name); }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 607 }; A.valueClass__closure15.prototype = { call$1($self) { return $self.tryMap$0(); }, $signature: 608 }; A.valueClass__closure16.prototype = { call$2($self, other) { return $self.$eq(0, other); }, $signature: 609 }; A.valueClass__closure17.prototype = { call$2($self, _) { return $self.get$hashCode($self); }, call$1($self) { return this.call$2($self, null); }, "call*": "call$2", $requiredArgCount: 1, $defaultValues() { return [null]; }, $signature: 610 }; A.valueClass__closure18.prototype = { call$1($self) { return A.serializeValue0($self, true, true); }, $signature: 225 }; A.Value0.prototype = { get$isTruthy() { return true; }, get$separator(_) { return B.ListSeparator_undecided_null_undecided0; }, get$hasBrackets() { return false; }, get$asList() { return A._setArrayType([this], type$.JSArray_Value_2); }, get$lengthAsList() { return 1; }, get$isBlank() { return false; }, get$isSpecialNumber() { return false; }, get$isVar() { return false; }, get$realNull() { return this; }, sassIndexToListIndex$2(sassIndex, $name) { var t1, t2, index, indexValue = sassIndex.assertNumber$1($name); if (indexValue.get$hasUnits()) { t1 = indexValue.get$unitString(); t2 = indexValue.unitSuggestion$1($name == null ? "index" : $name); A.EvaluationContext_current0().warn$2(0, "$" + A.S($name) + ": Passing a number with unit " + t1 + string$.x20is_de + t2 + string$.x0a_Morex3a, B.Deprecation_0bn); } index = indexValue.assertInt$1($name); if (index === 0) throw A.wrapException(A.SassScriptException$0("List index may not be 0.", $name)); if (Math.abs(index) > this.get$lengthAsList()) throw A.wrapException(A.SassScriptException$0("Invalid index " + sassIndex.toString$0(0) + " for a list with " + this.get$lengthAsList() + " elements.", $name)); return index < 0 ? this.get$lengthAsList() + index : index - 1; }, assertBoolean$1($name) { return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a boolean.", $name)); }, assertCalculation$1($name) { return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a calculation.", $name)); }, assertColor$1($name) { return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a color.", $name)); }, assertFunction$1($name) { return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a function reference.", $name)); }, assertMixin$1($name) { return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a mixin reference.", $name)); }, assertMap$1($name) { return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a map.", $name)); }, tryMap$0() { return null; }, assertNumber$1($name) { return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a number.", $name)); }, assertNumber$0() { return this.assertNumber$1(null); }, assertString$1($name) { return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a string.", $name)); }, _value$_selectorString$1($name) { var string, t1, _0_0 = this._value$_selectorStringOrNull$0(); if (_0_0 != null) { string = _0_0; t1 = true; } else { string = null; t1 = false; } if (t1) return string; throw A.wrapException(A.SassScriptException$0(this.toString$0(0) + string$.x20is_noa, $name)); }, _value$_selectorStringOrNull$0() { var t1, t2, result, _1_0, _i, complex, string, compound, _this = this, _null = null; if (_this instanceof A.SassString0) return _this._string0$_text; if (!(_this instanceof A.SassList0)) return _null; t1 = _this._list1$_contents; t2 = t1.length; if (t2 === 0) return _null; result = A._setArrayType([], type$.JSArray_String); $label0$1: { _1_0 = _this._list1$_separator; if (B.ListSeparator_rXA0 === _1_0) { for (_i = 0; _i < t2; ++_i) { complex = t1[_i]; if (complex instanceof A.SassString0) { result.push(complex._string0$_text); continue; } if (complex instanceof A.SassList0 && B.ListSeparator_EVt0 === complex._list1$_separator) { string = complex._value$_selectorStringOrNull$0(); if (string == null) return _null; result.push(string); continue; } return _null; } break $label0$1; } if (B.ListSeparator_zg90 === _1_0) return _null; for (_i = 0; _i < t2; ++_i) { compound = t1[_i]; if (!(compound instanceof A.SassString0)) return _null; result.push(compound._string0$_text); } } return B.JSArray_methods.join$1(result, _1_0 === B.ListSeparator_rXA0 ? ", " : " "); }, withListContents$2$separator(contents, separator) { var t1 = separator == null ? this.get$separator(this) : separator, t2 = this.get$hasBrackets(); return A.SassList$0(contents, t1, t2); }, withListContents$1(contents) { return this.withListContents$2$separator(contents, null); }, greaterThan$1(other) { return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null)); }, greaterThanOrEquals$1(other) { return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null)); }, lessThan$1(other) { return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null)); }, lessThanOrEquals$1(other) { return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null)); }, times$1(other) { return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " * " + other.toString$0(0) + '".', null)); }, modulo$1(other) { return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null)); }, plus$1(other) { var t1; $label0$0: { if (other instanceof A.SassString0) { t1 = new A.SassString0(A.serializeValue0(this, false, true) + other._string0$_text, other._string0$_hasQuotes); break $label0$0; } if (other instanceof A.SassCalculation0) A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null)); t1 = new A.SassString0(A.serializeValue0(this, false, true) + A.serializeValue0(other, false, true), false); break $label0$0; } return t1; }, minus$1(other) { 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); }, dividedBy$1(other) { return new A.SassString0(A.serializeValue0(this, false, true) + "/" + A.serializeValue0(other, false, true), false); }, unaryPlus$0() { return new A.SassString0("+" + A.serializeValue0(this, false, true), false); }, unaryMinus$0() { return new A.SassString0("-" + A.serializeValue0(this, false, true), false); }, unaryNot$0() { return B.SassBoolean_false0; }, withoutSlash$0() { return this; }, toString$0(_) { return A.serializeValue0(this, true, true); } }; A.VariableExpression0.prototype = { accept$1$1(visitor) { return visitor.visitVariableExpression$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.namespace, t2 = this.name; return t1 == null ? "$" + t2 : t1 + ".$" + t2; }, $isExpression0: 1, $isAstNode0: 1, get$span(receiver) { return this.span; } }; A.VariableDeclaration0.prototype = { accept$1$1(visitor) { return visitor.visitVariableDeclaration$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.namespace; t1 = t1 != null ? "" + (t1 + ".") : ""; t1 += "$" + this.name + ": " + this.expression.toString$0(0) + ";"; return t1.charCodeAt(0) == 0 ? t1 : t1; }, $isAstNode0: 1, $isStatement0: 1, get$span(receiver) { return this.span; } }; A.WarnRule0.prototype = { accept$1$1(visitor) { return visitor.visitWarnRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { return "@warn " + this.expression.toString$0(0) + ";"; }, $isAstNode0: 1, $isStatement0: 1, get$span(receiver) { return this.span; } }; A.WhileRule0.prototype = { accept$1$1(visitor) { return visitor.visitWhileRule$1(this); }, accept$1(visitor) { return this.accept$1$1(visitor, type$.dynamic); }, toString$0(_) { var t1 = this.children; return "@while " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}"; }, get$span(receiver) { return this.span; } }; (function aliases() { var _ = J.LegacyJavaScriptObject.prototype; _.super$LegacyJavaScriptObject$toString = _.toString$0; _ = A.JsLinkedHashMap.prototype; _.super$JsLinkedHashMap$internalContainsKey = _.internalContainsKey$1; _.super$JsLinkedHashMap$internalGet = _.internalGet$1; _.super$JsLinkedHashMap$internalSet = _.internalSet$2; _.super$JsLinkedHashMap$internalRemove = _.internalRemove$1; _ = A._BufferingStreamSubscription.prototype; _.super$_BufferingStreamSubscription$_add = _._async$_add$1; _.super$_BufferingStreamSubscription$_addError = _._addError$2; _ = A.ListBase.prototype; _.super$ListBase$setRange = _.setRange$4; _ = A.Iterable.prototype; _.super$Iterable$where = _.where$1; _.super$Iterable$skipWhile = _.skipWhile$1; _ = A.ModifiableCssParentNode.prototype; _.super$ModifiableCssParentNode$addChild = _.addChild$1; _ = A.SimpleSelector.prototype; _.super$SimpleSelector$addSuffix = _.addSuffix$1; _.super$SimpleSelector$unify = _.unify$1; _.super$SimpleSelector$isSuperselector = _.isSuperselector$1; _ = A.Parser.prototype; _.super$Parser$silentComment = _.silentComment$0; _ = A.StylesheetParser.prototype; _.super$StylesheetParser$importArgument = _.importArgument$0; _.super$StylesheetParser$namespacedExpression = _.namespacedExpression$2; _ = A.Value.prototype; _.super$Value$assertMap = _.assertMap$1; _.super$Value$plus = _.plus$1; _.super$Value$minus = _.minus$1; _.super$Value$dividedBy = _.dividedBy$1; _ = A.SassNumber.prototype; _.super$SassNumber$convertValueToMatch = _.convertValueToMatch$3; _.super$SassNumber$coerce = _.coerce$3; _.super$SassNumber$coerceValue = _.coerceValue$3; _.super$SassNumber$coerceValueToUnit = _.coerceValueToUnit$2; _.super$SassNumber$coerceToMatch = _.coerceToMatch$3; _.super$SassNumber$coerceValueToMatch = _.coerceValueToMatch$3; _.super$SassNumber$greaterThan = _.greaterThan$1; _.super$SassNumber$greaterThanOrEquals = _.greaterThanOrEquals$1; _.super$SassNumber$lessThan = _.lessThan$1; _.super$SassNumber$lessThanOrEquals = _.lessThanOrEquals$1; _.super$SassNumber$modulo = _.modulo$1; _.super$SassNumber$plus = _.plus$1; _.super$SassNumber$minus = _.minus$1; _.super$SassNumber$times = _.times$1; _.super$SassNumber$dividedBy = _.dividedBy$1; _ = A.AnySelectorVisitor.prototype; _.super$AnySelectorVisitor$visitComplexSelector = _.visitComplexSelector$1; _ = A.EveryCssVisitor.prototype; _.super$EveryCssVisitor$visitCssStyleRule = _.visitCssStyleRule$1; _ = A.ReplaceExpressionVisitor.prototype; _.super$ReplaceExpressionVisitor$visitBinaryOperationExpression = _.visitBinaryOperationExpression$1; _.super$ReplaceExpressionVisitor$visitUnaryOperationExpression = _.visitUnaryOperationExpression$1; _ = A.SourceSpanMixin.prototype; _.super$SourceSpanMixin$compareTo = _.compareTo$1; _.super$SourceSpanMixin$$eq = _.$eq; _ = A.StringScanner.prototype; _.super$StringScanner$readChar = _.readChar$0; _.super$StringScanner$scanChar = _.scanChar$1; _.super$StringScanner$scan = _.scan$1; _.super$StringScanner$matches = _.matches$1; _ = A.AnySelectorVisitor0.prototype; _.super$AnySelectorVisitor$visitComplexSelector0 = _.visitComplexSelector$1; _ = A.EveryCssVisitor0.prototype; _.super$EveryCssVisitor$visitCssStyleRule0 = _.visitCssStyleRule$1; _ = A.ModifiableCssParentNode0.prototype; _.super$ModifiableCssParentNode$addChild0 = _.addChild$1; _ = A.SassNumber0.prototype; _.super$SassNumber$convertToMatch = _.convertToMatch$3; _.super$SassNumber$convertValueToMatch0 = _.convertValueToMatch$3; _.super$SassNumber$coerce0 = _.coerce$3; _.super$SassNumber$coerceValue0 = _.coerceValue$3; _.super$SassNumber$coerceValueToUnit0 = _.coerceValueToUnit$2; _.super$SassNumber$coerceToMatch0 = _.coerceToMatch$3; _.super$SassNumber$coerceValueToMatch0 = _.coerceValueToMatch$3; _.super$SassNumber$greaterThan0 = _.greaterThan$1; _.super$SassNumber$greaterThanOrEquals0 = _.greaterThanOrEquals$1; _.super$SassNumber$lessThan0 = _.lessThan$1; _.super$SassNumber$lessThanOrEquals0 = _.lessThanOrEquals$1; _.super$SassNumber$modulo0 = _.modulo$1; _.super$SassNumber$plus0 = _.plus$1; _.super$SassNumber$minus0 = _.minus$1; _.super$SassNumber$times0 = _.times$1; _.super$SassNumber$dividedBy0 = _.dividedBy$1; _ = A.Parser1.prototype; _.super$Parser$silentComment0 = _.silentComment$0; _ = A.ReplaceExpressionVisitor0.prototype; _.super$ReplaceExpressionVisitor$visitBinaryOperationExpression0 = _.visitBinaryOperationExpression$1; _.super$ReplaceExpressionVisitor$visitUnaryOperationExpression0 = _.visitUnaryOperationExpression$1; _ = A.SimpleSelector0.prototype; _.super$SimpleSelector$addSuffix0 = _.addSuffix$1; _.super$SimpleSelector$unify0 = _.unify$1; _.super$SimpleSelector$isSuperselector0 = _.isSuperselector$1; _ = A.StylesheetParser0.prototype; _.super$StylesheetParser$importArgument0 = _.importArgument$0; _.super$StylesheetParser$namespacedExpression0 = _.namespacedExpression$2; _ = A.Value0.prototype; _.super$Value$assertMap0 = _.assertMap$1; _.super$Value$plus0 = _.plus$1; _.super$Value$minus0 = _.minus$1; _.super$Value$dividedBy0 = _.dividedBy$1; })(); (function installTearOffs() { var _static_2 = hunkHelpers._static_2, _instance_1_i = hunkHelpers._instance_1i, _instance_1_u = hunkHelpers._instance_1u, _static_1 = hunkHelpers._static_1, _static_0 = hunkHelpers._static_0, _static = hunkHelpers.installStaticTearOff, _instance = hunkHelpers.installInstanceTearOff, _instance_2_u = hunkHelpers._instance_2u, _instance_0_i = hunkHelpers._instance_0i, _instance_0_u = hunkHelpers._instance_0u; _static_2(J, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 287); _instance_1_i(J.JSArray.prototype, "get$contains", "contains$1", 11); _instance_1_i(A._CastIterableBase.prototype, "get$contains", "contains$1", 11); _instance_1_u(A.CastMap.prototype, "get$containsKey", "containsKey$1", 11); _instance_1_u(A.ConstantStringMap.prototype, "get$containsKey", "containsKey$1", 11); _instance_1_i(A.ConstantStringSet.prototype, "get$contains", "contains$1", 11); _instance_1_i(A.GeneralConstantSet.prototype, "get$contains", "contains$1", 11); _instance_1_u(A.JsLinkedHashMap.prototype, "get$containsKey", "containsKey$1", 11); _static_1(A, "async__AsyncRun__scheduleImmediateJsOverride$closure", "_AsyncRun__scheduleImmediateJsOverride", 147); _static_1(A, "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", "_AsyncRun__scheduleImmediateWithSetImmediate", 147); _static_1(A, "async__AsyncRun__scheduleImmediateWithTimer$closure", "_AsyncRun__scheduleImmediateWithTimer", 147); _static_0(A, "async___startMicrotaskLoop$closure", "_startMicrotaskLoop", 0); _static_1(A, "async___nullDataHandler$closure", "_nullDataHandler", 127); _static_2(A, "async___nullErrorHandler$closure", "_nullErrorHandler", 71); _static_0(A, "async___nullDoneHandler$closure", "_nullDoneHandler", 0); _static(A, "async___rootHandleUncaughtError$closure", 5, null, ["call$5"], ["_rootHandleUncaughtError"], 613, 0); _static(A, "async___rootRun$closure", 4, null, ["call$1$4", "call$4"], ["_rootRun", function($self, $parent, zone, f) { return A._rootRun($self, $parent, zone, f, type$.dynamic); }], 614, 1); _static(A, "async___rootRunUnary$closure", 5, null, ["call$2$5", "call$5"], ["_rootRunUnary", function($self, $parent, zone, f, arg) { return A._rootRunUnary($self, $parent, zone, f, arg, type$.dynamic, type$.dynamic); }], 615, 1); _static(A, "async___rootRunBinary$closure", 6, null, ["call$3$6", "call$6"], ["_rootRunBinary", function($self, $parent, zone, f, arg1, arg2) { return A._rootRunBinary($self, $parent, zone, f, arg1, arg2, type$.dynamic, type$.dynamic, type$.dynamic); }], 616, 1); _static(A, "async___rootRegisterCallback$closure", 4, null, ["call$1$4", "call$4"], ["_rootRegisterCallback", function($self, $parent, zone, f) { return A._rootRegisterCallback($self, $parent, zone, f, type$.dynamic); }], 617, 0); _static(A, "async___rootRegisterUnaryCallback$closure", 4, null, ["call$2$4", "call$4"], ["_rootRegisterUnaryCallback", function($self, $parent, zone, f) { return A._rootRegisterUnaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic); }], 618, 0); _static(A, "async___rootRegisterBinaryCallback$closure", 4, null, ["call$3$4", "call$4"], ["_rootRegisterBinaryCallback", function($self, $parent, zone, f) { return A._rootRegisterBinaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic, type$.dynamic); }], 619, 0); _static(A, "async___rootErrorCallback$closure", 5, null, ["call$5"], ["_rootErrorCallback"], 620, 0); _static(A, "async___rootScheduleMicrotask$closure", 4, null, ["call$4"], ["_rootScheduleMicrotask"], 621, 0); _static(A, "async___rootCreateTimer$closure", 5, null, ["call$5"], ["_rootCreateTimer"], 622, 0); _static(A, "async___rootCreatePeriodicTimer$closure", 5, null, ["call$5"], ["_rootCreatePeriodicTimer"], 623, 0); _static(A, "async___rootPrint$closure", 4, null, ["call$4"], ["_rootPrint"], 624, 0); _static_1(A, "async___printToZone$closure", "_printToZone", 85); _static(A, "async___rootFork$closure", 5, null, ["call$5"], ["_rootFork"], 625, 0); _instance(A._AsyncCompleter.prototype, "get$complete", 0, 0, function() { return [null]; }, ["call$1", "call$0"], ["complete$1", "complete$0"], 160, 0, 0); _instance_2_u(A._Future.prototype, "get$_completeError", "_completeError$2", 71); var _; _instance_1_i(_ = A._StreamController.prototype, "get$add", "add$1", 37); _instance(_, "get$addError", 0, 1, function() { return [null]; }, ["call$2", "call$1"], ["addError$2", "addError$1"], 172, 0, 0); _instance_0_i(_, "get$close", "close$0", 334); _instance_1_u(_, "get$_async$_add", "_async$_add$1", 37); _instance_2_u(_, "get$_addError", "_addError$2", 71); _instance_0_u(_, "get$_close", "_close$0", 0); _instance_0_u(_ = A._ControllerSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 0); _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 0); _instance(_ = A._BufferingStreamSubscription.prototype, "get$pause", 1, 0, null, ["call$1", "call$0"], ["pause$1", "pause$0"], 353, 0, 0); _instance_0_i(_, "get$resume", "resume$0", 0); _instance_0_u(_, "get$_async$_onPause", "_async$_onPause$0", 0); _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 0); _instance_1_u(_ = A._StreamIterator.prototype, "get$_onData", "_onData$1", 37); _instance_2_u(_, "get$_onError", "_onError$2", 71); _instance_0_u(_, "get$_onDone", "_onDone$0", 0); _instance_0_u(_ = A._ForwardingStreamSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 0); _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 0); _instance_1_u(_, "get$_handleData", "_handleData$1", 37); _instance_2_u(_, "get$_handleError", "_handleError$2", 370); _instance_0_u(_, "get$_handleDone", "_handleDone$0", 0); _static_2(A, "collection___defaultEquals$closure", "_defaultEquals", 289); _static_1(A, "collection___defaultHashCode$closure", "_defaultHashCode", 290); _static_2(A, "collection_ListBase__compareAny$closure", "ListBase__compareAny", 287); _instance_1_u(A._HashMap.prototype, "get$containsKey", "containsKey$1", 11); _instance_1_u(A._LinkedCustomHashMap.prototype, "get$containsKey", "containsKey$1", 11); _instance(_ = A._LinkedHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 209, 0, 0); _instance_1_i(_, "get$contains", "contains$1", 11); _instance_1_i(_, "get$add", "add$1", 11); _instance(A._LinkedIdentityHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 209, 0, 0); _instance_1_u(A.MapBase.prototype, "get$containsKey", "containsKey$1", 11); _instance_1_u(A.MapView.prototype, "get$containsKey", "containsKey$1", 11); _instance_1_i(A.UnmodifiableSetView.prototype, "get$contains", "contains$1", 11); _static_1(A, "convert___defaultToEncodable$closure", "_defaultToEncodable", 88); _static_1(A, "core__identityHashCode$closure", "identityHashCode", 290); _static_2(A, "core__identical$closure", "identical", 289); _static_1(A, "core_Uri_decodeComponent$closure", "Uri_decodeComponent", 7); _instance_1_i(A.Iterable.prototype, "get$contains", "contains$1", 11); _instance_1_i(A.StringBuffer.prototype, "get$write", "write$1", 37); _static(A, "math0__max$closure", 2, null, ["call$1$2", "call$2"], ["max", function(a, b) { return A.max(a, b, type$.num); }], 628, 1); _instance_1_u(A.ArgResults.prototype, "get$wasParsed", "wasParsed$1", 10); _instance_1_u(_ = A.StreamCompleter.prototype, "get$setSourceStream", "setSourceStream$1", 37); _instance(_, "get$setError", 0, 1, function() { return [null]; }, ["call$2", "call$1"], ["setError$2", "setError$1"], 172, 0, 0); _instance_0_u(_ = A.StreamGroup.prototype, "get$_onListen", "_onListen$0", 0); _instance_0_u(_, "get$_onPause", "_onPause$0", 0); _instance_0_u(_, "get$_onResume", "_onResume$0", 0); _instance_0_u(_, "get$_onCancel", "_onCancel$0", 284); _instance_0_i(A.ReplAdapter.prototype, "get$exit", "exit$0", 0); _instance_1_i(A.EmptyUnmodifiableSet.prototype, "get$contains", "contains$1", 11); _instance_1_i(A.UnionSet.prototype, "get$contains", "contains$1", 11); _instance_1_i(A._DelegatingIterableBase.prototype, "get$contains", "contains$1", 11); _instance_1_i(A.MapKeySet.prototype, "get$contains", "contains$1", 11); _instance_1_u(A.VersionRange.prototype, "get$allows", "allows$1", 536); _instance_1_u(A._IsInvisibleVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 19); _instance_1_u(A._IsBogusVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 19); _instance_1_u(A._IsUselessVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 19); _instance_1_u(A.SelectorList.prototype, "get$isSuperselector", "isSuperselector$1", 73); _instance_1_u(A.PseudoSelector.prototype, "get$isSuperselector", "isSuperselector$1", 16); _instance_1_u(A.SimpleSelector.prototype, "get$isSuperselector", "isSuperselector$1", 16); _instance_1_u(A.TypeSelector.prototype, "get$isSuperselector", "isSuperselector$1", 16); _instance_1_u(A.UniversalSelector.prototype, "get$isSuperselector", "isSuperselector$1", 16); _instance_1_u(A.EmptyExtensionStore.prototype, "get$addExtensions", "addExtensions$1", 173); _instance_1_u(A.ExtensionStore.prototype, "get$addExtensions", "addExtensions$1", 173); _static_1(A, "functions___isUnique$closure", "_isUnique", 16); _static_1(A, "color0___opacify$closure", "_opacify", 35); _static_1(A, "color0___transparentize$closure", "_transparentize", 35); _instance_0_u(_ = A.Parser.prototype, "get$whitespace", "whitespace$0", 0); _instance_0_u(_, "get$loudComment", "loudComment$0", 0); _instance_0_u(_, "get$string", "string$0", 22); _instance(_, "get$error", 1, 2, function() { return [null]; }, ["call$3", "call$2"], ["error$3", "error$2"], 192, 0, 0); _instance_0_u(A.SassParser.prototype, "get$loudComment", "loudComment$0", 0); _instance(_ = A.StylesheetParser.prototype, "get$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_statement$1$root", "_statement$0"], 356, 0, 0); _instance_0_u(_, "get$_declarationChild", "_declarationChild$0", 142); _instance_0_u(_, "get$_functionChild", "_functionChild$0", 142); _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"], 359, 0, 0); _instance(A.LazyFileSpan.prototype, "get$message", 1, 1, function() { return {color: null}; }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 141, 0, 0); _instance_1_u(A.LimitedMapView.prototype, "get$containsKey", "containsKey$1", 11); _instance_1_u(A.MergedMapView.prototype, "get$containsKey", "containsKey$1", 11); _instance(A.MultiSpan.prototype, "get$message", 1, 1, function() { return {color: null}; }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 205, 0, 0); _instance_1_i(A.NoSourceMapBuffer.prototype, "get$write", "write$1", 37); _instance_1_u(A.PrefixedMapView.prototype, "get$containsKey", "containsKey$1", 11); _instance_1_u(A.PublicMemberMapView.prototype, "get$containsKey", "containsKey$1", 11); _instance_1_i(A.SourceMapBuffer.prototype, "get$write", "write$1", 37); _instance_1_u(A.UnprefixedMapView.prototype, "get$containsKey", "containsKey$1", 11); _static_1(A, "utils__isPublic$closure", "isPublic", 10); _static_1(A, "calculation_SassCalculation__simplify$closure", "SassCalculation__simplify", 69); _instance_1_u(A.AnySelectorVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 19); _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"], 426, 0, 0); _instance_1_u(_, "get$_async_evaluate$_expressionNode", "_async_evaluate$_expressionNode$1", 221); _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"], 545, 0, 0); _instance_1_u(_, "get$_expressionNode", "_expressionNode$1", 221); _instance_1_u(_ = A.RecursiveStatementVisitor.prototype, "get$visitContentBlock", "visitContentBlock$1", 626); _instance_1_u(_, "get$visitChildren", "visitChildren$1", 627); _instance_1_u(_ = A.SelectorSearchVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", "SelectorSearchVisitor.T?(ComplexSelector)"); _instance_1_u(_, "get$visitSelectorList", "visitSelectorList$1", "SelectorSearchVisitor.T?(SelectorList)"); _instance_1_u(_ = A._SerializeVisitor.prototype, "get$_visitMediaQuery", "_visitMediaQuery$1", 644); _instance_1_u(_, "get$_writeCalculationValue", "_writeCalculationValue$1", 110); _instance_1_u(_, "get$visitSelectorList", "visitSelectorList$1", 645); _instance_1_u(_, "get$_requiresSemicolon", "_requiresSemicolon$1", 9); _instance_1_u(_ = A.StatementSearchVisitor.prototype, "get$visitContentBlock", "visitContentBlock$1", "StatementSearchVisitor.T?(ContentBlock)"); _instance_1_u(_, "get$visitChildren", "visitChildren$1", "StatementSearchVisitor.T?(List)"); _instance(A.SourceSpanMixin.prototype, "get$message", 1, 1, function() { return {color: null}; }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 141, 0, 0); _static_1(A, "frame_Frame___parseVM_tearOff$closure", "Frame___parseVM_tearOff", 98); _static_1(A, "frame_Frame___parseV8_tearOff$closure", "Frame___parseV8_tearOff", 98); _static_1(A, "frame_Frame___parseFirefox_tearOff$closure", "Frame___parseFirefox_tearOff", 98); _static_1(A, "frame_Frame___parseFriendly_tearOff$closure", "Frame___parseFriendly_tearOff", 98); _static_1(A, "trace_Trace___parseVM_tearOff$closure", "Trace___parseVM_tearOff", 292); _static_1(A, "trace_Trace___parseFriendly_tearOff$closure", "Trace___parseFriendly_tearOff", 292); _static(A, "from_handlers__TransformByHandlers__defaultHandleError$closure", 3, null, ["call$1$3", "call$3"], ["TransformByHandlers__defaultHandleError", function(error, stackTrace, sink) { return A.TransformByHandlers__defaultHandleError(error, stackTrace, sink, type$.dynamic); }], 631, 0); _static(A, "rate_limit___collect$closure", 2, null, ["call$1$2", "call$2"], ["_collect", function($event, soFar) { return A._collect($event, soFar, type$.dynamic); }], 632, 0); _instance_1_u(A.AnySelectorVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 18); _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"], 332, 0, 0); _instance_1_u(_, "get$_async_evaluate0$_expressionNode", "_async_evaluate0$_expressionNode$1", 179); _static_1(A, "calculation1___assertCalculationValue$closure", "_assertCalculationValue", 110); _static_1(A, "calculation1___isValidClampArg$closure", "_isValidClampArg", 11); _static_1(A, "calculation0_SassCalculation__simplify$closure", "SassCalculation__simplify0", 69); _static_1(A, "color2___opacify$closure", "_opacify0", 36); _static_1(A, "color2___transparentize$closure", "_transparentize0", 36); _static(A, "compile__compile$closure", 1, function() { return [null]; }, ["call$2", "call$1"], ["compile0", function(path) { return A.compile0(path, null); }], 633, 0); _static(A, "compile__compileString$closure", 1, function() { return [null]; }, ["call$2", "call$1"], ["compileString0", function(text) { return A.compileString0(text, null); }], 634, 0); _static(A, "compile__compileAsync$closure", 1, function() { return [null]; }, ["call$2", "call$1"], ["compileAsync1", function(path) { return A.compileAsync1(path, null); }], 635, 0); _static(A, "compile__compileStringAsync$closure", 1, function() { return [null]; }, ["call$2", "call$1"], ["compileStringAsync1", function(text) { return A.compileStringAsync1(text, null); }], 636, 0); _static_1(A, "compile___parseImporter$closure", "_parseImporter0", 637); _static_1(A, "compile___simplifyCalcArg$closure", "_simplifyCalcArg", 69); _instance_1_u(A.EmptyExtensionStore0.prototype, "get$addExtensions", "addExtensions$1", 233); _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"], 435, 0, 0); _instance_1_u(_, "get$_evaluate0$_expressionNode", "_evaluate0$_expressionNode$1", 179); _instance_1_u(A.ExtensionStore0.prototype, "get$addExtensions", "addExtensions$1", 233); _static_1(A, "functions0___isUnique$closure", "_isUnique0", 15); _static_1(A, "immutable__jsToDartList$closure", "jsToDartList", 638); _instance(A.LazyFileSpan0.prototype, "get$message", 1, 1, function() { return {color: null}; }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 141, 0, 0); _static_2(A, "legacy__render$closure", "render", 639); _static_1(A, "legacy__renderSync$closure", "renderSync", 640); _instance_1_u(A.LimitedMapView0.prototype, "get$containsKey", "containsKey$1", 11); _instance_1_u(A.SelectorList0.prototype, "get$isSuperselector", "isSuperselector$1", 72); _instance_1_u(A.MergedMapView0.prototype, "get$containsKey", "containsKey$1", 11); _instance(A.MultiSpan0.prototype, "get$message", 1, 1, function() { return {color: null}; }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 205, 0, 0); _instance_1_i(A.NoSourceMapBuffer0.prototype, "get$write", "write$1", 37); _instance_0_u(_ = A.Parser1.prototype, "get$whitespace", "whitespace$0", 0); _instance_0_u(_, "get$loudComment", "loudComment$0", 0); _instance_0_u(_, "get$string", "string$0", 22); _instance(_, "get$error", 1, 2, function() { return [null]; }, ["call$3", "call$2"], ["error$3", "error$2"], 192, 0, 0); _instance_1_u(A.PrefixedMapView0.prototype, "get$containsKey", "containsKey$1", 11); _instance_1_u(A.PseudoSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 15); _instance_1_u(A.PublicMemberMapView0.prototype, "get$containsKey", "containsKey$1", 11); _instance_0_u(A.SassParser0.prototype, "get$loudComment", "loudComment$0", 0); _instance_1_u(A._IsInvisibleVisitor2.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 18); _instance_1_u(A._IsBogusVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 18); _instance_1_u(A._IsUselessVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 18); _instance_1_u(_ = A.SelectorSearchVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", "SelectorSearchVisitor0.T?(ComplexSelector0)"); _instance_1_u(_, "get$visitSelectorList", "visitSelectorList$1", "SelectorSearchVisitor0.T?(SelectorList0)"); _instance_1_u(_ = A._SerializeVisitor0.prototype, "get$_serialize0$_visitMediaQuery", "_serialize0$_visitMediaQuery$1", 555); _instance_1_u(_, "get$_serialize0$_writeCalculationValue", "_serialize0$_writeCalculationValue$1", 110); _instance_1_u(_, "get$visitSelectorList", "visitSelectorList$1", 556); _instance_1_u(_, "get$_serialize0$_requiresSemicolon", "_serialize0$_requiresSemicolon$1", 8); _instance_1_u(A.SimpleSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 15); _instance_1_i(A.SourceMapBuffer0.prototype, "get$write", "write$1", 37); _instance_1_u(_ = A.StatementSearchVisitor0.prototype, "get$visitContentBlock", "visitContentBlock$1", "StatementSearchVisitor0.T?(ContentBlock0)"); _instance_1_u(_, "get$visitChildren", "visitChildren$1", "StatementSearchVisitor0.T?(List)"); _instance(_ = A.StylesheetParser0.prototype, "get$_stylesheet0$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_stylesheet0$_statement$1$root", "_stylesheet0$_statement$0"], 573, 0, 0); _instance_0_u(_, "get$_stylesheet0$_declarationChild", "_stylesheet0$_declarationChild$0", 145); _instance_0_u(_, "get$_stylesheet0$_functionChild", "_stylesheet0$_functionChild$0", 145); _instance_1_u(A.TypeSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 15); _instance_1_u(A.UniversalSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 15); _instance_1_u(A.UnprefixedMapView0.prototype, "get$containsKey", "containsKey$1", 11); _static_1(A, "utils1__jsToDartUrl$closure", "jsToDartUrl", 641); _static_1(A, "utils1__dartToJSUrl$closure", "dartToJSUrl", 642); _static_1(A, "utils0__isPublic$closure", "isPublic0", 10); _static(A, "path__absolute$closure", 1, function() { return [null, null, null, null, null, null, null, null, null, null, null, null, null, null]; }, ["call$15", "call$1", "call$2", "call$3", "call$4", "call$5", "call$6"], ["absolute", function(part1) { return A.absolute(part1, null, null, null, null, null, null, null, null, null, null, null, null, null, null); }, function(part1, part2) { return A.absolute(part1, part2, null, null, null, null, null, null, null, null, null, null, null, null, null); }, function(part1, part2, part3) { return A.absolute(part1, part2, part3, null, null, null, null, null, null, null, null, null, null, null, null); }, function(part1, part2, part3, part4) { return A.absolute(part1, part2, part3, part4, null, null, null, null, null, null, null, null, null, null, null); }, function(part1, part2, part3, part4, part5) { return A.absolute(part1, part2, part3, part4, part5, null, null, null, null, null, null, null, null, null, null); }, function(part1, part2, part3, part4, part5, part6) { return A.absolute(part1, part2, part3, part4, part5, part6, null, null, null, null, null, null, null, null, null); }], 643, 0); _static_1(A, "path__prettyUri$closure", "prettyUri", 101); _static_2(A, "number0__fuzzyLessThan$closure", "fuzzyLessThan", 49); _static_2(A, "number0__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals", 49); _static_2(A, "number0__fuzzyGreaterThan$closure", "fuzzyGreaterThan", 49); _static_2(A, "number0__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals", 49); _static_2(A, "number0__moduloLikeSass$closure", "moduloLikeSass", 66); _static_1(A, "number0__sqrt$closure", "sqrt", 50); _static_1(A, "number0__sin$closure", "sin", 50); _static_1(A, "number0__cos$closure", "cos", 50); _static_1(A, "number0__tan$closure", "tan", 50); _static_1(A, "number0__atan$closure", "atan", 50); _static_1(A, "number0__asin$closure", "asin", 50); _static_1(A, "number0__acos$closure", "acos", 50); _static_2(A, "number2__fuzzyLessThan$closure", "fuzzyLessThan0", 49); _static_2(A, "number2__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals0", 49); _static_2(A, "number2__fuzzyGreaterThan$closure", "fuzzyGreaterThan0", 49); _static_2(A, "number2__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals0", 49); _static_1(A, "number2__fuzzyRound$closure", "fuzzyRound0", 646); _static_2(A, "number2__moduloLikeSass$closure", "moduloLikeSass0", 66); _static_1(A, "number2__sqrt$closure", "sqrt0", 51); _static_1(A, "number2__sin$closure", "sin0", 51); _static_1(A, "number2__cos$closure", "cos0", 51); _static_1(A, "number2__tan$closure", "tan0", 51); _static_1(A, "number2__atan$closure", "atan0", 51); _static_1(A, "number2__asin$closure", "asin0", 51); _static_1(A, "number2__acos$closure", "acos0", 51); _static_1(A, "sass__main$closure", "main1", 648); _static_1(A, "utils2__validateUrlScheme$closure", "validateUrlScheme", 85); _static_1(A, "value0__wrapValue$closure", "wrapValue", 432); })(); (function inheritance() { var _mixin = hunkHelpers.mixin, _inherit = hunkHelpers.inherit, _inheritMany = hunkHelpers.inheritMany; _inherit(A.Object, null); _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.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._InitializedCell, 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._JSRandom, A.ArgParser, A.ArgResults, A.Option, A.OptionType, A.Parser0, A._Usage, 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._IsCalculationSafeVisitor, 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, A.DynamicImport, A.StaticImport, A.Interpolation, A.ParentStatement, A.ContentRule, A.DebugRule, A.ErrorRule, A.ExtendRule, A.ForwardRule, A.IfRule, A.IfRuleClause, A.ImportRule, A.IncludeRule, A.LoudComment, A.__HasContentVisitor_Object_StatementSearchVisitor, A.ReturnRule, A.SilentComment, A.UseRule, A.VariableDeclaration, A.WarnRule, 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.ImporterResult, A.InterpolationBuffer, A.InterpolationMap, A.FileSystemException, A._QuietLogger, A.DeprecationHandlingLogger, 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.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.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.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.ParentStatement0, A.CssNode0, A.Selector0, A.BinaryOperationExpression0, A.BooleanExpression0, A.Box0, A.ModifiableBox0, A.BuiltInCallable0, A.BuiltInModule0, A.CalculationOperation0, A.CalculationInterpolation, A._CloneCssVisitor0, A.ColorExpression0, A._ColorFormatEnum0, A.SpanColorFormat0, A.CompileResult0, A.ComplexSelectorComponent0, A.Configuration0, A.ConfiguredValue0, A.ConfiguredVariable0, A.ContentRule0, A.DebugRule0, A.SupportsDeclaration0, A.DeprecationHandlingLogger0, A.DynamicImport0, A.EmptyExtensionStore0, A.Environment0, A._EnvironmentModule1, A.ErrorRule0, A._EvaluateVisitor1, A._ImportedCssVisitor1, A._EvaluationContext1, A.EveryCssVisitor0, A.SassScriptException0, A._IsCalculationSafeVisitor0, A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0, A.ExtendRule0, A.Extension0, A.Extender0, A.ExtensionStore0, A.ForwardRule0, A.ForwardedModuleView0, A.FunctionExpression0, A.SupportsFunction0, A.IfExpression0, A.IfRule0, A.IfRuleClause0, A.NodeImporter, A.ImportCache0, A.ImportRule0, A.IncludeRule0, A.InterpolatedFunctionExpression0, A.Interpolation0, A.SupportsInterpolation0, A.InterpolationBuffer0, A.InterpolationMap0, A.FileSystemException0, A.JSToDartLogger, A.LazyFileSpan0, A.ListExpression0, A.__ParentSelectorVisitor_Object_SelectorSearchVisitor0, A._QuietLogger0, A.LoudComment0, A.MapExpression0, A.CssMediaQuery0, A.MediaQuerySuccessfulMergeResult0, A.__HasContentVisitor_Object_StatementSearchVisitor0, A.MultiSpan0, A.SupportsNegation0, A.NoSourceMapBuffer0, A._FakeAstNode0, A.__IsInvisibleVisitor_Object_EveryCssVisitor0, A.NullExpression0, A.NumberExpression0, A.SupportsOperation0, A.ParenthesizedExpression0, A.PlainCssCallable0, A.QualifiedName0, A.ReplaceExpressionVisitor0, A.ImporterResult0, A.ReturnRule0, A.__IsInvisibleVisitor_Object_AnySelectorVisitor0, A.__IsBogusVisitor_Object_AnySelectorVisitor0, A.__IsUselessVisitor_Object_AnySelectorVisitor0, A.SelectorExpression0, A.SelectorSearchVisitor0, A._SerializeVisitor0, A.ShadowedModuleView0, A.SilentComment0, A.SourceMapBuffer0, A.StatementSearchVisitor0, A.StaticImport0, A.StderrLogger0, A.StringExpression0, A.SupportsExpression0, A.UnaryOperationExpression0, A.UseRule0, A.UserDefinedCallable0, A.CssValue0, A.ValueExpression0, A.VariableExpression0, A.VariableDeclaration0, A.WarnRule0]); _inheritMany(J.Interceptor, [J.JSBool, J.JSNull, J.JavaScriptObject, J.JSNumber, J.JSString]); _inheritMany(J.JavaScriptObject, [J.LegacyJavaScriptObject, J.JSArray, A.NativeByteBuffer, A.NativeTypedData]); _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.JSClass, A.JSUrl, A._PropertyDescriptor, A.JSArray1, A.Chokidar0, A.ChokidarOptions0, A.ChokidarWatcher0, A._Channels, A._NodeSassColor, A.CompileOptions, A.NodeCompileResult, A.Exports, A.LoggerNamespace, A.FiberClass, A.Fiber, A.JSFunction0, A.ImmutableList0, A.ImmutableMap0, A.JSImporter, A.CanonicalizeContext, A.JSImporterResult, A.NodeImporterResult0, A._ConstructorOptions, A._NodeSassList, A.JSLogger, A.WarnOptions, A.DebugOptions, A._NodeSassMap, A._ConstructorOptions0, A._NodeSassNumber, A.JSClass0, A.RenderContext0, A.RenderContextOptions0, A.RenderContextResult0, A.RenderContextResultStats0, A.RenderOptions, A.RenderResult, A.RenderResultStats, A._Exports, A._ConstructorOptions1, A._NodeSassString, A.Types, A.JSUrl0, A._PropertyDescriptor0]); _inherit(J.JSUnmodifiableArray, J.JSArray); _inheritMany(J.JSNumber, [J.JSInt, J.JSNumNotInt]); _inheritMany(A.Iterable, [A._CastIterableBase, A.EfficientLengthIterable, A.MappedIterable, A.WhereIterable, A.ExpandIterable, A.TakeIterable, A.SkipIterable, A.SkipWhileIterable, A.FollowedByIterable, A.WhereTypeIterable, A._KeysOrValues, A._AllMatchesIterable, A._StringAllMatchesIterable, A._SyncStarIterable, A.Runes, A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin, A._PrefixedKeys, A._UnprefixedKeys, A._PrefixedKeys0, A._UnprefixedKeys0]); _inheritMany(A._CastIterableBase, [A.CastIterable, A.__CastListBase__CastIterableBase_ListMixin, A.CastSet]); _inherit(A._EfficientLengthCastIterable, A.CastIterable); _inherit(A._CastListBase, A.__CastListBase__CastIterableBase_ListMixin); _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._Uri__makePath_closure, A._createTables_setChars, A._createTables_setRange, A.jsify__convert, A.ArgParser__addOption_closure, A._Usage__writeOption_closure, A._Usage__buildAllowedList_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._IsCalculationSafeVisitor_visitListExpression_closure, 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.IDSelector_unify_closure, A.SelectorList_asSassList_closure, A.SelectorList_resolveParentSelectors_closure, A.SelectorList_resolveParentSelectors__closure, A.SelectorList_resolveParentSelectors__closure0, A.SelectorList__resolveParentSelectorsCompound_closure, A.SelectorList__resolveParentSelectorsCompound_closure0, A.SelectorList__resolveParentSelectorsCompound_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.BuiltInCallable$mixin_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.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_closure1, A._weaveParents_closure2, A._weaveParents_closure3, A._weaveParents_closure4, 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._selectorPseudoIsSuperselector_closure, A._selectorPseudoIsSuperselector_closure0, A._selectorPseudoIsSuperselector_closure1, A._selectorPseudoIsSuperselector_closure2, A._selectorPseudoIsSuperselector_closure3, A._selectorPseudoIsSuperselector__closure, A._selectorPseudoIsSuperselector___closure0, A._selectorPseudoIsSuperselector___closure1, 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__closure, A.global_closure26, 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__closure1, A.module_closure9, A._red_closure, A._green_closure, A._blue_closure, A._mix_closure, A._hue_closure, A._saturation_closure, A._lightness_closure, A._complement_closure, A._adjust_closure, A._scale_closure, A._change_closure, A._ieHexStr_closure, A._ieHexStr_closure_hexString, A._updateComponents_getParam, A._updateComponents_closure, A._updateComponents_closure0, A._updateComponents_updateValue, A._functionString_closure, A._removedColorFunction_closure, A._rgb_closure, A._hsl_closure, A._hwb_closure, A._parseChannels_closure0, 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__closure1, A._set_closure0, A._set__closure0, A._merge_closure, A._merge_closure0, A._merge__closure0, 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.global_closure27, A.global_closure28, A.global_closure29, A.global_closure30, A.local_closure, A.local_closure0, A.local__closure0, A.local_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._exactlyOne_closure0, 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.DeprecationHandlingLogger_summarize_closure, A.DeprecationHandlingLogger_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_closure0, 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_SassColor$hwb_toRgb, A.SassList_isBlank_closure, A.SassNumber__coerceOrConvertValue_closure, A.SassNumber__coerceOrConvertValue_closure1, A.SassNumber_multiplyUnits_closure7, A.SassNumber_multiplyUnits_closure9, 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_closure5, A._EvaluateVisitor_visitStyleRule_closure7, A._EvaluateVisitor_visitStyleRule_closure8, 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_closure3, 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_closure2, A._EvaluateVisitor_visitStyleRule_closure3, 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_closure0, 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.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._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_closure15, A._EvaluateVisitor_visitStyleRule_closure17, A._EvaluateVisitor_visitStyleRule_closure18, 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_closure9, 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.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.global_closure32, A.global_closure33, A.global_closure34, A.global_closure35, A.global_closure36, A.global_closure37, A.global_closure38, A.global_closure39, A.global_closure40, A.global_closure41, A.global_closure42, A.global_closure43, 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__closure0, A.global_closure58, A.module_closure12, A.module_closure13, A.module_closure14, A.module_closure15, A.module_closure16, A.module_closure17, A.module_closure18, A.module_closure19, A.module__closure4, A.module_closure20, A._red_closure0, A._green_closure0, A._blue_closure0, A._mix_closure0, A._hue_closure0, A._saturation_closure0, A._lightness_closure0, A._complement_closure0, A._adjust_closure0, A._scale_closure0, A._change_closure0, A._ieHexStr_closure0, A._ieHexStr_closure_hexString0, A._updateComponents_getParam0, A._updateComponents_closure1, A._updateComponents_closure2, A._updateComponents_updateValue0, A._functionString_closure0, A._removedColorFunction_closure0, A._rgb_closure0, A._hsl_closure0, A._hwb_closure0, A._parseChannels_closure3, A.colorClass__closure1, A.colorClass__closure2, A.colorClass__closure3, A.colorClass__closure4, A.colorClass__closure5, A.colorClass__closure6, A.colorClass__closure7, A.colorClass__closure8, A.colorClass__closure9, A.legacyColorClass_closure, A.legacyColorClass_closure0, A.legacyColorClass_closure1, A.legacyColorClass_closure2, A.legacyColorClass_closure3, A.SassColor_SassColor$hwb_toRgb0, A.compileAsync__closure, A.compileStringAsync__closure, A.compileStringAsync__closure0, A._wrapAsyncSassExceptions_closure, A._parseFunctions__closure2, A._parseFunctions__closure3, A._compileStylesheet_closure1, A.ComplexSelectorComponent_toString_closure0, A._disallowedFunctionNames_closure0, A.DeprecationHandlingLogger_summarize_closure1, A.DeprecationHandlingLogger_summarize_closure2, 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_closure10, A._EvaluateVisitor_visitStyleRule_closure12, A._EvaluateVisitor_visitStyleRule_closure13, 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_closure6, 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._IsCalculationSafeVisitor_visitListExpression_closure0, 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_closure4, A._weaveParents_closure8, A._weaveParents_closure9, A._weaveParents_closure10, 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._selectorPseudoIsSuperselector_closure6, A._selectorPseudoIsSuperselector_closure7, A._selectorPseudoIsSuperselector_closure8, A._selectorPseudoIsSuperselector_closure9, A._selectorPseudoIsSuperselector_closure10, A._selectorPseudoIsSuperselector__closure0, A._selectorPseudoIsSuperselector___closure3, A._selectorPseudoIsSuperselector___closure4, A._selectorPseudoIsSuperselector_closure11, A._selectorPseudoIsSuperselector_closure12, A._selectorPseudoArgs_closure1, A._selectorPseudoArgs_closure2, A.globalFunctions_closure0, 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.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_resolveParentSelectors_closure0, A.SelectorList_resolveParentSelectors__closure1, A.SelectorList_resolveParentSelectors__closure2, A.SelectorList__resolveParentSelectorsCompound_closure2, A.SelectorList__resolveParentSelectorsCompound_closure3, A.SelectorList__resolveParentSelectorsCompound_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__closure4, A._set_closure2, A._set__closure3, A._merge_closure1, A._merge_closure2, A._merge__closure2, 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_closure31, A.module_closure11, 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.global_closure59, A.global_closure60, A.global_closure61, A.global_closure62, A.local_closure2, A.local_closure3, A.local__closure2, A.local_closure4, A.mixinClass__closure, A.mixinClass__closure0, A.ModifiableCssNode_hasFollowingSibling_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_closure19, A.SassNumber_multiplyUnits_closure21, A.SassNumber__areAnyConvertible_closure0, A.SassNumber__canonicalizeUnitList_closure0, A.SassNumber_unitSuggestion_closure1, A.SassNumber_unitSuggestion_closure2, A.ParentStatement_closure0, A.ParentStatement__closure0, 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_closure, A.updateSourceSpanPrototype_closure0, A.updateSourceSpanPrototype_closure1, A.updateSourceSpanPrototype_closure2, A.updateSourceSpanPrototype_closure3, A.updateSourceSpanPrototype_closure4, A.updateSourceSpanPrototype_closure5, A.StatementSearchVisitor_visitIfRule_closure1, A.StatementSearchVisitor_visitIfRule__closure2, A.StatementSearchVisitor_visitIfRule_closure2, A.StatementSearchVisitor_visitIfRule__closure1, A.StatementSearchVisitor_visitChildren_closure0, A.module_closure10, A.module__closure2, A.module__closure3, 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.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_closure2, A.StylesheetParser__unicodeRange_closure1, A.StylesheetParser__unicodeRange_closure2, A.StylesheetParser_trySpecialFunction_closure0, A._UnprefixedKeys_iterator_closure1, A._UnprefixedKeys_iterator_closure2, A._exactlyOne_closure2, 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]); _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._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.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_closure1, A.paths_closure, A._updateComponents_updateRgb, A._nest__closure0, A._append__closure0, A.ImportCache_clearCanonicalize_closure, A.StylesheetParser__declarationOrBuffer_closure, A.StylesheetParser__declarationOrBuffer_closure0, A.StylesheetParser__styleRule_closure, A.StylesheetParser__propertyOrVariableDeclaration_closure, A.StylesheetParser__propertyOrVariableDeclaration_closure0, 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_parseLocation, 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._updateComponents_updateRgb0, A.colorClass__closure, A.colorClass__closure0, 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_closure7, 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.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__declarationOrBuffer_closure1, A.StylesheetParser__declarationOrBuffer_closure2, A.StylesheetParser__styleRule_closure0, A.StylesheetParser__propertyOrVariableDeclaration_closure1, A.StylesheetParser__propertyOrVariableDeclaration_closure2, 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]); _inherit(A.CastList, A._CastListBase); _inheritMany(A.MapBase, [A.CastMap, A.JsLinkedHashMap, A._HashMap, A.UnmodifiableMapBase, A.MergedMapView, A.MergedMapView0]); _inheritMany(A.Error, [A.LateError, 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]); _inherit(A.UnmodifiableListBase, A.ListBase); _inheritMany(A.UnmodifiableListBase, [A.CodeUnits, A.UnmodifiableListView]); _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.ListExpression__elementNeedsParens_closure, A.Interpolation_asPlain_closure, A.Interpolation_asPlain_closure0, A.Interpolation_initialPlain_closure, A.ComplexSelector_singleCompound_closure, A.ComplexSelector_withAdditionalCombinators_closure, A.ComplexSelector_concatenate_closure, A.SelectorList__resolveParentSelectorsCompound__closure, A.PseudoSelector_specificity_closure, A.UniversalSelector_unify_closure, A.UniversalSelector_unify_closure0, A.AsyncEnvironment_setVariable_closure, A.AsyncEnvironment_setVariable_closure1, A.AsyncImportCache_canonicalize_closure, A.AsyncImportCache_canonicalize_closure0, A.AsyncImportCache__canonicalize_closure, A.AsyncImportCache__canonicalize__closure, A.AsyncImportCache__canonicalize_closure0, A.AsyncImportCache_importCanonical_closure, A.Environment_setVariable_closure, A.Environment_setVariable_closure1, A.compileStylesheets_closure, A.ExecutableOptions__parser_closure, A.ExecutableOptions__parser__closure, A.ExecutableOptions__parser__closure0, A.ExecutableOptions_interactive_closure, A.ExecutableOptions_fatalDeprecations_closure, A._Watcher__debounceEvents__closure, A._Watcher__debounceEvents__closure0, A._Watcher__debounceEvents__closure1, A.ExtensionStore__registerSelector_closure, A.ExtensionStore__registerSelector_closure0, A.ExtensionStore_addExtension_closure, A.ExtensionStore_addExtension_closure0, A.ExtensionStore_addExtension_closure1, A.ExtensionStore__simpleSelectors_closure, A.ExtensionStore__extendExistingExtensions_closure, A.ExtensionStore__extendExistingExtensions_closure0, A.ExtensionStore_addExtensions_closure, A.unifyComplex_closure, A.unifyComplex_closure0, A._namespaceAndName_closure, A._weaveParents_closure, A._weaveParents_closure0, A._mergeLeadingCombinators_closure, A._mergeLeadingCombinators_closure0, A._mergeLeadingCombinators_closure1, A._mergeLeadingCombinators_closure2, A._mergeTrailingCombinators_closure, A._mergeTrailingCombinators_closure0, A._mergeTrailingCombinators_closure1, A._mergeTrailingCombinators_closure2, A._mergeTrailingCombinators_closure3, A._mergeTrailingCombinators_closure4, A._mergeTrailingCombinators_closure6, A._mergeTrailingCombinators_closure7, A._mergeTrailingCombinators_closure5, A._mergeTrailingCombinators_closure8, A._chunks_closure, A._chunks_closure0, A._chunks_closure1, A._chunks_closure2, A.compoundIsSuperselector_closure, A.compoundIsSuperselector_closure0, A._selectorPseudoIsSuperselector___closure, A._parseChannels_closure, A._parseChannels_closure1, A._join__closure, A._join__closure0, A._join__closure1, A._set__closure, A._merge__closure, A._deepMergeImpl_closure, A._deepMergeImpl_closure0, A.local__closure, A._prependParent_closure, A._prependParent_closure0, A.ImportCache_canonicalize_closure, A.ImportCache_canonicalize_closure0, A.ImportCache__canonicalize_closure, A.ImportCache__canonicalize__closure, A.ImportCache__canonicalize_closure0, A.ImportCache_importCanonical_closure, A.resolveImportPath_closure, A.resolveImportPath_closure0, A._tryPathAsDirectory_closure, A._exactlyOne_closure, A.InterpolationBuffer_addInterpolation_closure, A.InterpolationMap_mapSpan_closure, A.InterpolationMap_mapSpan_closure0, 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.DeprecationHandlingLogger_warnForDeprecation_closure, A.DeprecationHandlingLogger_warnForDeprecation_closure0, 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__expression_closure, A.StylesheetParser__expression_closure0, A.StylesheetParser__expression_closure1, A.StylesheetParser_expressionUntilComma_closure, A.StylesheetParser__isHexColor_closure, A.StylesheetParser_identifierLike_closure, A.StylesheetParser_identifierLike_closure0, A.StylesheetParser_namespacedExpression_closure, A.StylesheetParser__tryUrlContents_closure, A.StylesheetParser__interpolatedDeclarationValue_closure, A.StylesheetParser__interpolatedDeclarationValue_closure0, A.StylesheetParser__interpolatedDeclarationValue_closure1, A.StylesheetParser__interpolatedDeclarationValue_closure2, A.StylesheetParser__interpolatedDeclarationValue_closure3, A.StylesheetParser__expressionUntilComparison_closure, A.StylesheetParser__supportsConditionInParens_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.MultiDirWatcher_watch_closure, A.SassCalculation_sign_closure, A.SassCalculation_round_closure, A.SassCalculation_round_closure0, A.SassCalculation_round_closure1, A.SassCalculation_round_closure2, A.SassCalculation_round_closure3, A.SassCalculation_round_closure4, A.SassCalculation_round_closure5, A.SassCalculation_round_closure6, A.SassCalculation_round_closure7, A.SassCalculation_round_closure8, A.SassCalculation__roundWithStep_closure0, A.SassCalculation__roundWithStep_closure, A.SassCalculation__roundWithStep_closure1, A.SassCalculation__roundWithStep_closure2, A.SassCalculation__roundWithStep_closure3, A.SassCalculation__roundWithStep_closure4, A.SassCalculation__roundWithStep_closure5, A.SassCalculation__simplify_closure, A.SassCalculation__simplify_closure0, A.SassCalculation__simplify_closure1, A.SassCalculation__simplify_closure2, A.SassNumber_SassNumber$withUnits_closure0, A.SassNumber_SassNumber$withUnits_closure, A.SassNumber_SassNumber$withUnits_closure1, A.SassNumber_SassNumber$withUnits_closure2, A.SassNumber_SassNumber$withUnits_closure4, A.SassNumber_SassNumber$withUnits_closure3, A.SassNumber_SassNumber$withUnits_closure5, A.SassNumber_SassNumber$withUnits_closure6, A.SassNumber_SassNumber$withUnits_closure7, A.SassNumber_SassNumber$withUnits_closure8, A.SassNumber__coerceOrConvertValue_compatibilityException, A.SassNumber__coerceOrConvertValue_closure0, A.SassNumber__coerceOrConvertValue_closure2, A.SassNumber_multiplyUnits_closure, A.SassNumber_multiplyUnits_closure0, A.SassNumber_multiplyUnits_closure1, A.SassNumber_multiplyUnits_closure2, A.SassNumber_multiplyUnits_closure3, A.SassNumber_multiplyUnits_closure4, A.SassNumber_multiplyUnits_closure5, A.SassNumber_multiplyUnits_closure6, A.SassNumber_multiplyUnits_closure8, A.SassNumber_multiplyUnits_closure10, A.SassNumber__unitString_closure, A.SassNumber__unitString_closure0, A.SassNumber__unitString_closure1, A.SassNumber__unitString_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_closure3, A._EvaluateVisitor__applyMixin__closure2, A._EvaluateVisitor__applyMixin_closure2, A._EvaluateVisitor__applyMixin_closure4, 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_closure4, 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__slash_closure1, A._EvaluateVisitor__slash_closure2, A._EvaluateVisitor_visitVariableExpression_closure0, A._EvaluateVisitor_visitUnaryOperationExpression_closure0, A._EvaluateVisitor_visitFunctionExpression_closure2, A._EvaluateVisitor_visitFunctionExpression_closure4, A._EvaluateVisitor__visitCalculationExpression_closure0, A._EvaluateVisitor__checkAdjacentCalculationValues_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_visitCssStyleRule_closure4, 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_closure0, A._EvaluateVisitor__applyMixin__closure0, A._EvaluateVisitor__applyMixin_closure, A._EvaluateVisitor__applyMixin_closure1, 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_closure1, 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__slash_closure, A._EvaluateVisitor__slash_closure0, A._EvaluateVisitor_visitVariableExpression_closure, A._EvaluateVisitor_visitUnaryOperationExpression_closure, A._EvaluateVisitor_visitFunctionExpression_closure, A._EvaluateVisitor_visitFunctionExpression_closure1, A._EvaluateVisitor__visitCalculationExpression_closure, A._EvaluateVisitor__checkAdjacentCalculationValues_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_closure, A._EvaluateVisitor_visitCssStyleRule__closure, A._EvaluateVisitor_visitCssStyleRule_closure1, A._EvaluateVisitor_visitCssSupportsRule_closure, A._EvaluateVisitor_visitCssSupportsRule__closure, A._EvaluateVisitor__serialize_closure, A._EvaluateVisitor__expressionNode_closure, A._FindDependenciesVisitor_visitIncludeRule_closure, A._FindDependenciesVisitor_visitIncludeRule_closure0, 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__writeCalculationValue_closure, A._SerializeVisitor__visitQuotedString_closure, A._SerializeVisitor__visitQuotedString_closure0, A._SerializeVisitor_visitPseudoSelector_closure, 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_closure9, A._EvaluateVisitor__applyMixin__closure6, A._EvaluateVisitor__applyMixin_closure8, A._EvaluateVisitor__applyMixin_closure10, 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_closure14, A._EvaluateVisitor_visitStyleRule_closure16, 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__slash_closure5, A._EvaluateVisitor__slash_closure6, A._EvaluateVisitor_visitVariableExpression_closure2, A._EvaluateVisitor_visitUnaryOperationExpression_closure2, A._EvaluateVisitor_visitFunctionExpression_closure8, A._EvaluateVisitor_visitFunctionExpression_closure10, A._EvaluateVisitor__visitCalculationExpression_closure2, A._EvaluateVisitor__checkAdjacentCalculationValues_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_closure8, A._EvaluateVisitor_visitCssStyleRule__closure2, A._EvaluateVisitor_visitCssStyleRule_closure10, A._EvaluateVisitor_visitCssSupportsRule_closure5, A._EvaluateVisitor_visitCssSupportsRule__closure2, A._EvaluateVisitor__serialize_closure2, A._EvaluateVisitor__expressionNode_closure2, A.JSToDartAsyncFileImporter_canonicalize_closure, A.AsyncImportCache_canonicalize_closure1, A.AsyncImportCache_canonicalize_closure2, A.AsyncImportCache__canonicalize_closure1, A.AsyncImportCache__canonicalize__closure0, A.AsyncImportCache__canonicalize_closure2, A.AsyncImportCache_importCanonical_closure0, A.AtRootQueryParser_parse_closure0, A.booleanClass_closure, A.legacyBooleanClass_closure, A.calculationClass_closure, A.calculationOperationClass_closure, A.calculationInterpolationClass_closure, A.SassCalculation_sign_closure0, A.SassCalculation_round_closure9, A.SassCalculation_round_closure10, A.SassCalculation_round_closure11, A.SassCalculation_round_closure12, A.SassCalculation_round_closure13, A.SassCalculation_round_closure14, A.SassCalculation_round_closure15, A.SassCalculation_round_closure16, A.SassCalculation_round_closure17, A.SassCalculation_round_closure18, A.SassCalculation__roundWithStep_closure7, A.SassCalculation__roundWithStep_closure6, A.SassCalculation__roundWithStep_closure8, A.SassCalculation__roundWithStep_closure9, A.SassCalculation__roundWithStep_closure10, A.SassCalculation__roundWithStep_closure11, A.SassCalculation__roundWithStep_closure12, A.SassCalculation__simplify_closure3, A.SassCalculation__simplify_closure4, A.SassCalculation__simplify_closure5, A.SassCalculation__simplify_closure6, A._parseChannels_closure2, A._parseChannels_closure4, A.colorClass_closure, A.compileAsync_closure, A.compileStringAsync_closure, A._simplifyValue_closure, A._simplifyValue_closure0, A._simplifyValue_closure1, A._simplifyValue_closure2, A._simplifyValue_closure3, A._simplifyValue_closure4, A._parseFunctions___closure6, A._parseFunctions___closure5, A.ComplexSelector_singleCompound_closure0, A.ComplexSelector_withAdditionalCombinators_closure0, A.ComplexSelector_concatenate_closure0, A.DeprecationHandlingLogger_warnForDeprecation_closure1, A.DeprecationHandlingLogger_warnForDeprecation_closure2, 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_closure6, A._EvaluateVisitor__applyMixin__closure4, A._EvaluateVisitor__applyMixin_closure5, A._EvaluateVisitor__applyMixin_closure7, 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_closure9, A._EvaluateVisitor_visitStyleRule_closure11, 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__slash_closure3, A._EvaluateVisitor__slash_closure4, A._EvaluateVisitor_visitVariableExpression_closure1, A._EvaluateVisitor_visitUnaryOperationExpression_closure1, A._EvaluateVisitor_visitFunctionExpression_closure5, A._EvaluateVisitor_visitFunctionExpression_closure7, A._EvaluateVisitor__visitCalculationExpression_closure1, A._EvaluateVisitor__checkAdjacentCalculationValues_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_closure5, A._EvaluateVisitor_visitCssStyleRule__closure1, A._EvaluateVisitor_visitCssStyleRule_closure7, A._EvaluateVisitor_visitCssSupportsRule_closure3, A._EvaluateVisitor_visitCssSupportsRule__closure1, A._EvaluateVisitor__serialize_closure1, A._EvaluateVisitor__expressionNode_closure1, A.exceptionClass_closure, A.ExtensionStore__registerSelector_closure1, A.ExtensionStore__registerSelector_closure2, A.ExtensionStore_addExtension_closure2, A.ExtensionStore_addExtension_closure3, A.ExtensionStore_addExtension_closure4, A.ExtensionStore__simpleSelectors_closure0, A.ExtensionStore__extendExistingExtensions_closure1, A.ExtensionStore__extendExistingExtensions_closure2, A.ExtensionStore_addExtensions_closure0, A.JSToDartFileImporter_canonicalize_closure, A.functionClass_closure, A.unifyComplex_closure2, A.unifyComplex_closure3, A._namespaceAndName_closure0, A._weaveParents_closure5, A._weaveParents_closure6, A._mergeLeadingCombinators_closure3, A._mergeLeadingCombinators_closure4, A._mergeLeadingCombinators_closure5, A._mergeLeadingCombinators_closure6, A._mergeTrailingCombinators_closure9, A._mergeTrailingCombinators_closure10, A._mergeTrailingCombinators_closure11, A._mergeTrailingCombinators_closure12, A._mergeTrailingCombinators_closure13, A._mergeTrailingCombinators_closure14, A._mergeTrailingCombinators_closure16, A._mergeTrailingCombinators_closure17, A._mergeTrailingCombinators_closure15, A._mergeTrailingCombinators_closure18, A._chunks_closure3, A._chunks_closure4, A._chunks_closure5, A._chunks_closure6, A.compoundIsSuperselector_closure1, A.compoundIsSuperselector_closure2, A._selectorPseudoIsSuperselector___closure2, A.NodeImporter_load_closure, A.NodeImporter__tryPath_closure, A.NodeImporter__callImporterAsync_closure, A.ImportCache_canonicalize_closure1, A.ImportCache_canonicalize_closure2, A.ImportCache__canonicalize_closure1, A.ImportCache__canonicalize__closure0, A.ImportCache__canonicalize_closure2, A.ImportCache_importCanonical_closure0, A.Interpolation_asPlain_closure1, A.Interpolation_asPlain_closure2, A.Interpolation_initialPlain_closure0, A.InterpolationBuffer_addInterpolation_closure0, A.InterpolationMap_mapSpan_closure1, A.InterpolationMap_mapSpan_closure2, A._realCasePath_helper_closure0, A._readFile_closure0, A.fileExists_closure0, A.dirExists_closure0, A.listDir_closure0, A.JSToDartLogger_warn_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.ListExpression__elementNeedsParens_closure0, A._join__closure2, A._join__closure3, A._join__closure4, A.SelectorList__resolveParentSelectorsCompound__closure0, A.listClass_closure, A._set__closure2, A._merge__closure1, A._deepMergeImpl_closure1, A._deepMergeImpl_closure2, A.mapClass_closure, A.MediaQueryParser_parse_closure0, A.local__closure1, A.mixinClass_closure, A.legacyNullClass_closure, A.numberClass_closure, A.SassNumber_SassNumber$withUnits_closure10, A.SassNumber_SassNumber$withUnits_closure9, A.SassNumber_SassNumber$withUnits_closure11, A.SassNumber_SassNumber$withUnits_closure12, A.SassNumber_SassNumber$withUnits_closure14, A.SassNumber_SassNumber$withUnits_closure13, A.SassNumber_SassNumber$withUnits_closure15, A.SassNumber_SassNumber$withUnits_closure16, A.SassNumber_SassNumber$withUnits_closure17, A.SassNumber_SassNumber$withUnits_closure18, A.SassNumber__coerceOrConvertValue_compatibilityException0, A.SassNumber__coerceOrConvertValue_closure4, A.SassNumber__coerceOrConvertValue_closure6, A.SassNumber_multiplyUnits_closure11, A.SassNumber_multiplyUnits_closure12, A.SassNumber_multiplyUnits_closure13, A.SassNumber_multiplyUnits_closure14, A.SassNumber_multiplyUnits_closure15, A.SassNumber_multiplyUnits_closure16, A.SassNumber_multiplyUnits_closure17, A.SassNumber_multiplyUnits_closure18, A.SassNumber_multiplyUnits_closure20, A.SassNumber_multiplyUnits_closure22, A.SassNumber__unitString_closure3, A.SassNumber__unitString_closure4, A.SassNumber__unitString_closure5, A.SassNumber__unitString_closure6, A.Parser__parseIdentifier_closure0, A.Parser_spanFrom_closure0, A.PseudoSelector_specificity_closure0, A.SassParser_children_closure0, A._prependParent_closure1, A._prependParent_closure2, 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__writeCalculationValue_closure0, A._SerializeVisitor__visitQuotedString_closure1, A._SerializeVisitor__visitQuotedString_closure2, A._SerializeVisitor_visitPseudoSelector_closure0, A._SerializeVisitor__write_closure0, A._SerializeVisitor__visitChildren_closure1, A._SerializeVisitor__visitChildren_closure2, A.SingleUnitSassNumber_multiplyUnits_closure2, 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__expression_closure2, A.StylesheetParser__expression_closure3, A.StylesheetParser__expression_closure4, A.StylesheetParser_expressionUntilComma_closure0, A.StylesheetParser__isHexColor_closure1, A.StylesheetParser_identifierLike_closure1, A.StylesheetParser_identifierLike_closure2, A.StylesheetParser_namespacedExpression_closure0, A.StylesheetParser__tryUrlContents_closure0, A.StylesheetParser__interpolatedDeclarationValue_closure4, A.StylesheetParser__interpolatedDeclarationValue_closure5, A.StylesheetParser__interpolatedDeclarationValue_closure6, A.StylesheetParser__interpolatedDeclarationValue_closure7, A.StylesheetParser__interpolatedDeclarationValue_closure8, A.StylesheetParser__expressionUntilComparison_closure0, A.StylesheetParser__supportsConditionInParens_closure0, A.StylesheetParser__publicIdentifier_closure0, A.JSToDartImporter_canonicalize_closure, A.JSToDartImporter_load_closure, A.UniversalSelector_unify_closure1, A.UniversalSelector_unify_closure2, A.resolveImportPath_closure1, A.resolveImportPath_closure2, A._tryPathAsDirectory_closure0, A._exactlyOne_closure1, A.valueClass_closure]); _inheritMany(A.EfficientLengthIterable, [A.ListIterable, A.EmptyIterable, A.LinkedHashMapKeyIterable, A._HashMapKeyIterable, A._MapBaseValueIterable]); _inheritMany(A.ListIterable, [A.SubListIterable, A.MappedListIterable, A.ReversedListIterable, A.ListQueue, A._GeneratorIterable]); _inherit(A.EfficientLengthMappedIterable, A.MappedIterable); _inherit(A.EfficientLengthTakeIterable, A.TakeIterable); _inherit(A.EfficientLengthSkipIterable, A.SkipIterable); _inherit(A.EfficientLengthFollowedByIterable, A.FollowedByIterable); _inheritMany(A._Record, [A._Record2, A._Record3, A._RecordN]); _inheritMany(A._Record2, [A._Record_2, A._Record_2_forImport, A._Record_2_imports_modules, A._Record_2_loadedUrls_stylesheet, A._Record_2_sourceMap]); _inheritMany(A._Record3, [A._Record_3, A._Record_3_importer_isDependency, A._Record_3_originalUrl]); _inheritMany(A._RecordN, [A._Record_4, A._Record_4_baseImporter_baseUrl_forImport, A._Record_5_named_namedNodes_positional_positionalNodes_separator]); _inheritMany(A.MapView, [A._UnmodifiableMapView_MapView__UnmodifiableMapMixin, A.PathMap]); _inherit(A.UnmodifiableMapView, A._UnmodifiableMapView_MapView__UnmodifiableMapMixin); _inherit(A.ConstantMapView, A.UnmodifiableMapView); _inherit(A.ConstantStringMap, A.ConstantMap); _inheritMany(A.SetBase, [A.ConstantSet, A._SetBase, A._UnmodifiableSetView_SetBase__UnmodifiableSetMixin, A._UnionSet_SetBase_UnmodifiableSetMixin]); _inheritMany(A.ConstantSet, [A.ConstantStringSet, A.GeneralConstantSet]); _inherit(A.Instantiation1, A.Instantiation); _inherit(A.NullError, A.TypeError); _inheritMany(A.TearOffClosure, [A.StaticClosure, A.BoundClosure]); _inheritMany(A.JsLinkedHashMap, [A.JsIdentityLinkedHashMap, A.JsConstantLinkedHashMap, A._LinkedCustomHashMap]); _inheritMany(A.NativeTypedData, [A.NativeByteData, A.NativeTypedArray]); _inheritMany(A.NativeTypedArray, [A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin]); _inherit(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin); _inherit(A.NativeTypedArrayOfDouble, A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin); _inherit(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin); _inherit(A.NativeTypedArrayOfInt, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin); _inheritMany(A.NativeTypedArrayOfDouble, [A.NativeFloat32List, A.NativeFloat64List]); _inheritMany(A.NativeTypedArrayOfInt, [A.NativeInt16List, A.NativeInt32List, A.NativeInt8List, A.NativeUint16List, A.NativeUint32List, A.NativeUint8ClampedList, A.NativeUint8List]); _inherit(A._TypeError, A._Error); _inheritMany(A._Completer, [A._AsyncCompleter, A._SyncCompleter]); _inheritMany(A._StreamController, [A._AsyncStreamController, A._SyncStreamController]); _inheritMany(A.Stream, [A._StreamImpl, A._ForwardingStream, A._CompleterStream]); _inherit(A._ControllerStream, A._StreamImpl); _inheritMany(A._BufferingStreamSubscription, [A._ControllerSubscription, A._ForwardingStreamSubscription]); _inherit(A._StreamControllerAddStreamState, A._AddStreamState); _inheritMany(A._DelayedEvent, [A._DelayedData, A._DelayedError]); _inherit(A._ExpandStream, A._ForwardingStream); _inheritMany(A._Zone, [A._CustomZone, A._RootZone]); _inherit(A._IdentityHashMap, A._HashMap); _inherit(A._LinkedHashSet, A._SetBase); _inherit(A._LinkedIdentityHashSet, A._LinkedHashSet); _inherit(A.UnmodifiableSetView, A._UnmodifiableSetView_SetBase__UnmodifiableSetMixin); _inheritMany(A.Codec, [A.Encoding, A.Base64Codec, A.JsonCodec]); _inheritMany(A.Encoding, [A.AsciiCodec, A.Utf8Codec]); _inheritMany(A.Converter, [A._UnicodeSubsetEncoder, A.Base64Encoder, A.JsonEncoder, A.Utf8Encoder, A.Utf8Decoder]); _inherit(A.AsciiEncoder, A._UnicodeSubsetEncoder); _inheritMany(A.ByteConversionSink, [A._Base64EncoderSink, A._Utf8StringSinkAdapter]); _inherit(A._Utf8Base64EncoderSink, A._Base64EncoderSink); _inherit(A.JsonCyclicError, A.JsonUnsupportedObjectError); _inherit(A._JsonStringStringifier, A._JsonStringifier); _inherit(A._StringSinkConversionSink, A.StringConversionSink); _inherit(A._StringCallbackSink, A._StringSinkConversionSink); _inheritMany(A.ArgumentError, [A.RangeError, A.IndexError]); _inherit(A._DataUri, A._Uri); _inherit(A.ArgParserException, A.FormatException); _inherit(A.EmptyUnmodifiableSet, A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin); _inherit(A.QueueList, A._QueueList_Object_ListMixin); _inherit(A._CastQueueList, A.QueueList); _inherit(A.UnionSet, A._UnionSet_SetBase_UnmodifiableSetMixin); _inheritMany(A._DelegatingIterableBase, [A.DelegatingSet, A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin]); _inherit(A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, A.DelegatingSet); _inherit(A.UnmodifiableSetView0, A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin); _inherit(A.MapKeySet, A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin); _inheritMany(A.NodeJsError, [A.JsAssertionError, A.JsRangeError, A.JsReferenceError, A.JsSyntaxError, A.JsTypeError, A.JsSystemError]); _inheritMany(A.Socket, [A.TTYReadStream, A.TTYWriteStream]); _inherit(A.InternalStyle, A.Style); _inheritMany(A.InternalStyle, [A.PosixStyle, A.UrlStyle, A.WindowsStyle]); _inheritMany(A._Enum, [A._SingletonCssMediaQueryMergeResult, A.BinaryOperator, A.UnaryOperator, A.AttributeOperator, A.Combinator, A.Deprecation, A.ExtendMode, A.Syntax, A.CalculationOperator, A.ListSeparator, A.OutputStyle, A.LineFeed, A.AttributeOperator0, A.BinaryOperator0, A.CalculationOperator0, A.Combinator0, A.Deprecation0, A.ListSeparator0, A._SingletonCssMediaQueryMergeResult0, A.ExtendMode0, A.OutputStyle0, A.LineFeed0, A.Syntax0, A.UnaryOperator0]); _inheritMany(A.CssNode, [A.ModifiableCssNode, A.CssParentNode]); _inheritMany(A.ModifiableCssNode, [A.ModifiableCssParentNode, A.ModifiableCssComment, A.ModifiableCssDeclaration, A.ModifiableCssImport]); _inheritMany(A.ModifiableCssParentNode, [A.ModifiableCssAtRule, A.ModifiableCssKeyframeBlock, A.ModifiableCssMediaRule, A.ModifiableCssStyleRule, A.ModifiableCssStylesheet, A.ModifiableCssSupportsRule]); _inherit(A._IsInvisibleVisitor, A.__IsInvisibleVisitor_Object_EveryCssVisitor); _inherit(A.CssStylesheet, A.CssParentNode); _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]); _inheritMany(A.CallableDeclaration, [A.ContentBlock, A.FunctionRule, A.MixinRule]); _inheritMany(A.IfRuleClause, [A.IfClause, A.ElseClause]); _inherit(A._HasContentVisitor, A.__HasContentVisitor_Object_StatementSearchVisitor); _inherit(A._IsInvisibleVisitor0, A.__IsInvisibleVisitor_Object_AnySelectorVisitor); _inherit(A._IsBogusVisitor, A.__IsBogusVisitor_Object_AnySelectorVisitor); _inherit(A._IsUselessVisitor, A.__IsUselessVisitor_Object_AnySelectorVisitor); _inheritMany(A.Selector, [A.SimpleSelector, A.ComplexSelector, A.CompoundSelector, A.SelectorList]); _inheritMany(A.SimpleSelector, [A.AttributeSelector, A.ClassSelector, A.IDSelector, A.ParentSelector, A.PlaceholderSelector, A.PseudoSelector, A.TypeSelector, A.UniversalSelector]); _inherit(A._ParentSelectorVisitor, A.__ParentSelectorVisitor_Object_SelectorSearchVisitor); _inherit(A.ExplicitConfiguration, A.Configuration); _inheritMany(A.SourceSpanException, [A.SassException, A.SourceSpanFormatException, A.MultiSourceSpanException, A.SassException0]); _inheritMany(A.SassException, [A.MultiSpanSassException, A.SassRuntimeException, A.SassFormatException]); _inheritMany(A.MultiSpanSassException, [A.MultiSpanSassRuntimeException, A.MultiSpanSassFormatException]); _inherit(A.MultiSpanSassScriptException, A.SassScriptException); _inherit(A.MergedExtension, A.Extension); _inherit(A.Importer, A.AsyncImporter); _inheritMany(A.Importer, [A.FilesystemImporter, A.NoOpImporter]); _inheritMany(A.Parser, [A.AtRootQueryParser, A.StylesheetParser, A.KeyframeSelectorParser, A.MediaQueryParser, A.SelectorParser]); _inheritMany(A.StylesheetParser, [A.ScssParser, A.SassParser]); _inherit(A.CssParser, A.ScssParser); _inheritMany(A.UnmodifiableMapBase, [A.LimitedMapView, A.PrefixedMapView, A.PublicMemberMapView, A.UnprefixedMapView, A.LimitedMapView0, A.PrefixedMapView0, A.PublicMemberMapView0, A.UnprefixedMapView0]); _inheritMany(A.Value, [A.SassList, A.SassBoolean, A.SassCalculation, A.SassColor, A.SassFunction, A.SassMap, A.SassMixin, A._SassNull, A.SassNumber, A.SassString]); _inherit(A.SassArgumentList, A.SassList); _inheritMany(A.SassNumber, [A.ComplexSassNumber, A.SingleUnitSassNumber, A.UnitlessSassNumber]); _inherit(A._MakeExpressionCalculationSafe, A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor); _inherit(A._FindDependenciesVisitor, A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor); _inherit(A.SingleMapping, A.Mapping); _inherit(A.FileLocation, A.SourceLocationMixin); _inheritMany(A.SourceSpanMixin, [A._FileSpan, A.SourceSpanBase]); _inherit(A.MultiSourceSpanFormatException, A.MultiSourceSpanException); _inherit(A.SourceSpanWithContext, A.SourceSpanBase); _inherit(A.StringScannerException, A.SourceSpanFormatException); _inheritMany(A.StringScanner, [A.LineScanner, A.SpanScanner]); _inheritMany(A.Value0, [A.SassList0, A.SassBoolean0, A.SassCalculation0, A.SassColor0, A.SassNumber0, A.SassFunction0, A.SassMap0, A.SassMixin0, A._SassNull0, A.SassString0]); _inherit(A.SassArgumentList0, A.SassList0); _inheritMany(A.AsyncImporter0, [A.JSToDartAsyncImporter, A.JSToDartAsyncFileImporter, A.Importer0]); _inheritMany(A.Parser1, [A.AtRootQueryParser0, A.StylesheetParser0, A.KeyframeSelectorParser0, A.MediaQueryParser0, A.SelectorParser0]); _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]); _inheritMany(A.CssNode0, [A.ModifiableCssNode0, A.CssParentNode0]); _inheritMany(A.ModifiableCssNode0, [A.ModifiableCssParentNode0, A.ModifiableCssComment0, A.ModifiableCssDeclaration0, A.ModifiableCssImport0]); _inheritMany(A.ModifiableCssParentNode0, [A.ModifiableCssAtRule0, A.ModifiableCssKeyframeBlock0, A.ModifiableCssMediaRule0, A.ModifiableCssStyleRule0, A.ModifiableCssStylesheet0, A.ModifiableCssSupportsRule0]); _inheritMany(A.Selector0, [A.SimpleSelector0, A.ComplexSelector0, A.CompoundSelector0, A.SelectorList0]); _inheritMany(A.SimpleSelector0, [A.AttributeSelector0, A.ClassSelector0, A.IDSelector0, A.ParentSelector0, A.PlaceholderSelector0, A.PseudoSelector0, A.TypeSelector0, A.UniversalSelector0]); _inherit(A.CompileStringOptions, A.CompileOptions); _inheritMany(A.SassNumber0, [A.ComplexSassNumber0, A.SingleUnitSassNumber0, A.UnitlessSassNumber0]); _inherit(A.ExplicitConfiguration0, A.Configuration0); _inheritMany(A.CallableDeclaration0, [A.ContentBlock0, A.FunctionRule0, A.MixinRule0]); _inheritMany(A.StylesheetParser0, [A.ScssParser0, A.SassParser0]); _inherit(A.CssParser0, A.ScssParser0); _inherit(A._NodeException, A.JsError); _inheritMany(A.SassException0, [A.MultiSpanSassException0, A.SassRuntimeException0, A.SassFormatException0]); _inheritMany(A.MultiSpanSassException0, [A.MultiSpanSassRuntimeException0, A.MultiSpanSassFormatException0]); _inherit(A.MultiSpanSassScriptException0, A.SassScriptException0); _inherit(A._MakeExpressionCalculationSafe0, A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0); _inheritMany(A.Importer0, [A.JSToDartFileImporter, A.FilesystemImporter0, A.NoOpImporter0, A.JSToDartImporter]); _inheritMany(A.IfRuleClause0, [A.IfClause0, A.ElseClause0]); _inherit(A._ParentSelectorVisitor0, A.__ParentSelectorVisitor_Object_SelectorSearchVisitor0); _inherit(A.MergedExtension0, A.Extension0); _inherit(A._HasContentVisitor0, A.__HasContentVisitor_Object_StatementSearchVisitor0); _inherit(A._IsInvisibleVisitor1, A.__IsInvisibleVisitor_Object_EveryCssVisitor0); _inherit(A._IsInvisibleVisitor2, A.__IsInvisibleVisitor_Object_AnySelectorVisitor0); _inherit(A._IsBogusVisitor0, A.__IsBogusVisitor_Object_AnySelectorVisitor0); _inherit(A._IsUselessVisitor0, A.__IsUselessVisitor_Object_AnySelectorVisitor0); _inherit(A.CssStylesheet0, A.CssParentNode0); _mixin(A.UnmodifiableListBase, A.UnmodifiableListMixin); _mixin(A.__CastListBase__CastIterableBase_ListMixin, A.ListBase); _mixin(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, A.ListBase); _mixin(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, A.FixedLengthListMixin); _mixin(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, A.ListBase); _mixin(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, A.FixedLengthListMixin); _mixin(A._AsyncStreamController, A._AsyncStreamControllerDispatch); _mixin(A._SyncStreamController, A._SyncStreamControllerDispatch); _mixin(A.UnmodifiableMapBase, A._UnmodifiableMapMixin); _mixin(A._UnmodifiableMapView_MapView__UnmodifiableMapMixin, A._UnmodifiableMapMixin); _mixin(A._UnmodifiableSetView_SetBase__UnmodifiableSetMixin, A._UnmodifiableSetMixin); _mixin(A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin, A.UnmodifiableSetMixin); _mixin(A._QueueList_Object_ListMixin, A.ListBase); _mixin(A._UnionSet_SetBase_UnmodifiableSetMixin, A.UnmodifiableSetMixin); _mixin(A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, A.UnmodifiableSetMixin); _mixin(A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin, A.UnmodifiableSetMixin); _mixin(A.__IsInvisibleVisitor_Object_EveryCssVisitor, A.EveryCssVisitor); _mixin(A.__HasContentVisitor_Object_StatementSearchVisitor, A.StatementSearchVisitor); _mixin(A.__IsBogusVisitor_Object_AnySelectorVisitor, A.AnySelectorVisitor); _mixin(A.__IsInvisibleVisitor_Object_AnySelectorVisitor, A.AnySelectorVisitor); _mixin(A.__IsUselessVisitor_Object_AnySelectorVisitor, A.AnySelectorVisitor); _mixin(A.__ParentSelectorVisitor_Object_SelectorSearchVisitor, A.SelectorSearchVisitor); _mixin(A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor, A.ReplaceExpressionVisitor); _mixin(A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor, A.RecursiveStatementVisitor); _mixin(A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0, A.ReplaceExpressionVisitor0); _mixin(A.__ParentSelectorVisitor_Object_SelectorSearchVisitor0, A.SelectorSearchVisitor0); _mixin(A.__HasContentVisitor_Object_StatementSearchVisitor0, A.StatementSearchVisitor0); _mixin(A.__IsInvisibleVisitor_Object_EveryCssVisitor0, A.EveryCssVisitor0); _mixin(A.__IsBogusVisitor_Object_AnySelectorVisitor0, A.AnySelectorVisitor0); _mixin(A.__IsInvisibleVisitor_Object_AnySelectorVisitor0, A.AnySelectorVisitor0); _mixin(A.__IsUselessVisitor_Object_AnySelectorVisitor0, A.AnySelectorVisitor0); })(); var init = { typeUniverse: {eC: new Map(), tR: {}, eT: {}, tPV: {}, sEA: []}, mangledGlobalNames: {int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List"}, mangledNames: {}, types: ["~()", "bool()", "Null()", "int()", "Future()", "Value0(List)", "Value(List)", "String(String)", "bool(CssNode0)", "bool(CssNode)", "bool(String)", "bool(Object?)", "SassNumber0(List)", "SassNumber(List)", "Object()", "bool(SimpleSelector0)", "bool(SimpleSelector)", "SassString0(List)", "bool(ComplexSelector0)", "bool(ComplexSelector)", "SassString(List)", "SassBoolean0(List)", "String()", "SassBoolean(List)", "JSClass0()", "Value()", "List()", "SassList0(List)", "Object?()", "SassList(List)", "Future<~>()", "Value0()", "String?()", "FileSpan()", "bool(int?)", "SassColor(List)", "SassColor0(List)", "~(Object?)", "SassMap0(List)", "Null(~())", "SassMap(List)", "Future(Future<~>())", "double(double)", "Value(Value)", "Value?()", "Value0(Value0)", "Value0?()", "bool(int)", "Uri(Uri)", "bool(num,num)", "SassNumber(SassNumber)", "SassNumber0(SassNumber0)", "bool(ComplexSelectorComponent0)", "bool(ComplexSelectorComponent)", "bool(Value0)", "Uri?/()", "Uri?()", "~(Value0)", "@()", "ComplexSelector(ComplexSelector)", "ValueExpression0(Value0)", "ComplexSelector0(ComplexSelector0)", "Null(Object,StackTrace)", "~(Value)", "double(SassColor0)", "ValueExpression(Value)", "double(double,double)", "Future()", "Null(@)", "Object(Object)", "Future()", "~(Object,StackTrace)", "bool(SelectorList0)", "bool(SelectorList)", "Frame()", "SelectorList?()", "Future()", "bool(Object)", "SelectorList0?()", "bool(Value)", "Future()", "SassRuntimeException(AstNode)", "Declaration0(List,FileSpan)", "List?(List)", "Declaration(List,FileSpan)", "~(String)", "~([int?])", "~(String,Value)", "@(@)", "Callable0?()", "~(Module0,bool)", "Value?(Statement)", "double()", "Value0?(Statement0)", "Null([Object?])", "~(Module1,bool)", "List?()", "AsyncCallable?()", "Frame(String)", "Future(List)", "+originalUrl(Importer,Uri,Uri)?()", "String(@)", "Callable?()", "AsyncCallable0?()", "~(Value0,Value0)", "SassRuntimeException0(AstNode0)", "~(Value,Value)", "Null(_NodeSassColor,num)", "Future(Statement0)", "~(String,Value0)", "~(Object)", "int(Uri)", "Stylesheet?()", "List?(List)", "Future(Statement)", "double(Value)", "double(Value0)", "Map()", "String(Expression0)", "bool(Expression0)", "UnaryOperator0()", "Null(Module1,bool)", "bool(@)", "bool(Module1)", "bool(ModifiableCssNode)", "SassCalculation0(Object)", "bool(Expression)", "~(@)", "bool(_Highlight)", "Null(Module0,bool)", "CallableDeclaration0()", "int(SassColor0)", "String(Expression)", "int(_NodeSassColor)", "bool(Module0)", "~(String,Object?)", "bool(Module1)", "UnaryOperator()", "List()", "String(Object)", "Map()", "String(String{color:Object?})", "Statement()", "CallableDeclaration()", "~(String,Function)", "Statement0()", "bool(Module0)", "~(~())", "bool(ModifiableCssNode0)", "Iterable()", "bool(Statement)", "Future()", "bool(Import)", "SelectorList(Value)", "InterpolationMap(List)", "AstNode?()", "String(SassNumber)", "SelectorList(SelectorList,SelectorList)", "~(List)", "Future(List)", "~([Object?])", "SassNumber()", "Expression(Expression)", "Callable0?(Module0)", "Uri(String)", "int(Frame)", "String(Frame)", "MapKeySet>(Map,AstNode>)", "Trace()", "bool(Frame)", "Map(Module0)", "bool(String?)", "~(Object[StackTrace?])", "~(Iterable)", "Iterable(String)", "AsyncCallable0?(Module1)", "MapKeySet>(Map,AstNode0>)", "Map(Module1)", "Iterable(@)", "AstNode0(AstNode0)", "DateTime()", "~(String[~])", "SassFunction0(List)", "~(Uint8List,String,int)", "SassMixin0(List)", "Future<~>(List)", "FileSpan?()", "Trace?()", "List()", "bool(ModifiableCssParentNode0)", "List()", "int(int)", "0&(String,FileSpan[StackTrace?])", "List>()", "Future()", "ComplexSelectorComponent?()", "bool(Queue>)", "bool(UseRule0)", "bool(ForwardRule0)", "VariableDeclaration()", "List>?()", "AtRootRule(List,FileSpan)", "AtRule(List,FileSpan)", "Combinator?()", "QueueList()", "String(String{color:@})", "Entry(Entry)", "+(PseudoSelector,int)?()", "~(String,@)", "Set<0^>()", "int(double)", "InterpolationMap0(List)", "AstNode0?()", "String(SassNumber0)", "Future<+originalUrl(AsyncImporter0,Uri,Uri)?>()", "0&(Object[Object?])", "0&(@[@])", "int(ComplexSelector)", "SimpleSelector()", "Object(CalculationOperation0)", "double(double,String)", "AstNode(AstNode)", "SassFunction(List)", "String(int)", "SassMixin(List)", "String(Value0)", "Future<~>(List)", "double?(String,num{assertPercent:bool,checkPercent:bool,checkUnitless:bool})", "AsyncCallable?(Module0)", "List()", "Future()", "AsyncImporter0(Object?)", "double(double,double?,num)", "~(Iterable)", "Callable?(Module1)", "MapKeySet>(Map,AstNode0>)", "Map(Module1)", "bool(ModifiableCssParentNode)", "int(int,double?)", "~(List)", "MapKeySet>(Map,AstNode>)", "Value0?(Value0)", "Map(Module0)", "SassNumber0()", "String(_NodeException)", "List()", "ListSeparator()", "List()", "Future()", "List>()", "ComplexSelectorComponent0?()", "bool(Queue>)", "List>?()", "Combinator0?()", "QueueList()", "+(PseudoSelector0,int)?()", "~(@,@)", "bool(Statement0)", "bool(Import0)", "+originalUrl(Importer0,Uri,Uri)?()", "List()", "ListSeparator0()", "@(Value0,num)", "Value0(int)", "SassMap0?()", "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)", "bool(UseRule)", "Expression0(Expression0)", "SelectorList0(Value0)", "SelectorList0(SelectorList0,SelectorList0)", "SimpleSelector0()", "FileLocation(FileSpan)", "String(FileSpan)", "int(SourceLocation)", "bool(ForwardRule)", "Future<~>?()", "AtRootRule0(List,FileSpan)", "AtRule0(List,FileSpan)", "int(@,@)", "Future()", "bool(Object?,Object?)", "int(Object?)", "~(Object?,Object?)", "Trace(String)", "SassMap?()", "Future<+originalUrl(AsyncImporter,Uri,Uri)?>()", "WhileRule(List,FileSpan)", "SourceFile()", "SourceFile?(int)", "String?(SourceFile?)", "int(_Line)", "SassString(SimpleSelector)", "Object(_Line)", "Object(_Highlight)", "int(_Highlight,_Highlight)", "List<_Line>(MapEntry>)", "SourceSpanWithContext()", "List(Trace)", "int(Trace)", "SassString(int)", "String(Trace)", "SassString(String)", "~(String,int)", "Frame(String,String)", "~(String,int?)", "int(int,int)", "Frame(Frame)", "bool(+originalUrl(Importer,Uri,Uri))", "Uri(+originalUrl(Importer,Uri,Uri))", "bool(+baseImporter,baseUrl,forImport(Uri,Importer,Uri?,bool),+originalUrl(Importer,Uri,Uri)?)", "String(Argument0)", "bool(Deprecation)", "SassArgumentList0(Object,Object,Object[String?])", "ImmutableMap0(SassArgumentList0)", "Value?(Module0)", "Value0?(Module1)", "Module1?(Module1)", "Module0?(Module0)", "@(String)", "Map(Module1)", "Map(Module1)", "Uint8List(@,@)", "Map(Module0)", "Future>(Interpolation0{trim:bool,warnForColor:bool})", "Map(Module0)", "Future<@>()", "String(int,IfClause)", "+(String?,String?)()", "ArgParser()", "Object?(Object?)", "Set()", "Future<~>(String)", "~(Module1,bool)", "Future<+loadedUrls,stylesheet(Set,CssStylesheet0)>()", "Future>()", "List(List)", "~(Module1)", "AtRootQuery()", "String(BuiltInCallable)", "List()", "ChangeType?()", "Future(Value0)", "ChangeType()", "Future>(Interpolation0)", "~([Future<~>?])", "SelectorList()", "CompoundSelector()", "Statement({root:bool})", "Future(IfRuleClause0)", "bool(Extension)", "Expression({bracketList:bool,singleEquals:bool,until:bool()?})", "Stylesheet()", "UserDefinedCallable0(ContentBlock0)", "Statement?()", "VariableDeclaration(VariableDeclaration)", "ArgumentDeclaration()", "Set>()", "UseRule()", "~(String,Option)", "Future(Expression0)", "StyleRule(List,FileSpan)", "~(@,StackTrace)", "Value0/()", "EachRule(List,FileSpan)", "FunctionRule(List,FileSpan)", "ForRule(List,FileSpan)", "ContentBlock(List,FileSpan)", "MediaRule(List,FileSpan)", "MixinRule(List,FileSpan)", "Iterable(List)", "Future()", "bool(+originalUrl(AsyncImporter0,Uri,Uri))", "Uri(+originalUrl(AsyncImporter0,Uri,Uri))", "AtRootQuery0()", "SupportsRule(List,FileSpan)", "List(Extender)", "~(Expression)", "~(BinaryOperator)", "SassCalculation0(Object[Object?,Object?])", "SassCalculation0(SassCalculation0[String?])", "ImmutableList(SassCalculation0)", "Object(Object,String,Object,Object)", "bool(CalculationOperator0)", "bool(CalculationOperation0,Object)", "int(CalculationOperation0)", "String(CalculationOperation0)", "StringExpression(Interpolation)", "CalculationInterpolation(Object,String)", "bool(CalculationInterpolation,Object)", "int(CalculationInterpolation)", "String(CalculationInterpolation)", "DateTime(StylesheetNode)", "List?(SimpleSelector)", "List(PseudoSelector)", "List>(List)", "List(ComplexSelector)", "PseudoSelector(ComplexSelector)", "0&(List)", "+(SassNumber0,SassNumber0)?()", "SassColor0(Object,_Channels)", "SassColor0(SassColor0,_Channels)", "~(SimpleSelector,Set>)", "int(int,ComplexSelectorComponent)", "Null(_NodeSassColor,num?[num?,num?,num?,SassColor0?])", "QualifiedName()", "double(_NodeSassColor)", "SassScriptException()", "ComplexSelectorComponent()", "List?(List,List)", "AsyncImporter0(JSImporter)", "0&(@)", "SingleUnitSassNumber(double)", "int(int,ComplexSelectorComponent0)", "ComplexSelectorComponent0()", "String(CssValue0)", "int(int,SimpleSelector0)", "String(BuiltInCallable0)", "Future>(Interpolation{trim:bool,warnForColor:bool})", "Value0?(Module1)", "Module1?(Module1)", "String(CssValue)", "bool(List>)", "Map(Module1)", "Object(Value0)", "int(int,SimpleSelector)", "@(@,String)", "CssValue0(Interpolation0{trim:bool,warnForColor:bool})", "Null(@,StackTrace)", "SassList(ComplexSelector)", "~(Module0,bool)", "+loadedUrls,stylesheet(Set,CssStylesheet0)()", "Module1()", "~(Module1)", "Future<+loadedUrls,stylesheet(Set,CssStylesheet)>()", "Future>()", "CssValue0(Interpolation0)", "bool(PseudoSelector)", "Value0?(IfRuleClause0)", "UserDefinedCallable0(ContentBlock0)", "Value0(Expression0)", "~(Module0)", "FileSpan(_NodeException)", "bool(Extension0)", "Set>()", "SelectorList?(PseudoSelector)", "Iterable(ComplexSelector)", "_Future<@>(@)", "Iterable(List)", "SimpleSelector(SimpleSelector)", "List(Extender0)", "List?(SimpleSelector0)", "List(PseudoSelector0)", "List>(List)", "List(ComplexSelector0)", "PseudoSelector0(ComplexSelector0)", "~(SimpleSelector0,Set>)", "SassFunction0(Object,String,Value0(List))", "Null(@,@)", "QualifiedName0()", "Future(Value)", "List?(List,List)", "Null(Function,Function)", "bool(List>)", "Future>(Interpolation)", "String(String?)", "Value?(Module0)", "Module0?(Module0)", "~(int,@)", "bool(PseudoSelector0)", "SelectorList0?(PseudoSelector0)", "String(int,IfClause0)", "Future(IfRuleClause)", "String(Value)", "~(Object?,Object,Object?)", "+(String,String)(String)", "0&(List)", "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)", "UserDefinedCallable(ContentBlock)", "bool(String?,String?)", "List(Value0)", "bool(List)", "SassList0(ComplexSelector0)", "Iterable(ComplexSelector0)", "SimpleSelector0(SimpleSelector0)", "SassList0(Object[Object?,_ConstructorOptions?])", "+(SassNumber,SassNumber)?()", "Null(_NodeSassList,int?[bool?,SassList0?])", "Map(Module0)", "Object(_NodeSassList,int)", "Null(_NodeSassList,int,Object)", "bool(_NodeSassList)", "Null(_NodeSassList,bool)", "int(_NodeSassList)", "SassMap0(Value0)", "SassMap0(SassMap0)", "Map(Module0)", "SassMap0(Object[ImmutableMap0?])", "ImmutableMap0(SassMap0)", "@(SassMap0,Object)", "Null(_NodeSassMap,int?[SassMap0?])", "SassNumber0(int)", "Future(Expression)", "int(_NodeSassMap)", "List(Value)", "SassNumber0(Value0)", "List()", "Value0(Object)", "0&(Object)", "SassNumber0(Object,num[Object?])", "double(SassNumber0)", "bool(List)", "int?(SassNumber0)", "Value/()", "int(SassNumber0[String?])", "double(SassNumber0,num,num[String?])", "SassNumber0(SassNumber0[String?])", "SassNumber0(SassNumber0,String[String?])", "int(String?)", "Object(String)", "bool(Version)", "SassMap(Value)", "SassMap(SassMap)", "Null(_NodeSassNumber,num?[String?,SassNumber0?])", "double(_NodeSassNumber)", "Null(_NodeSassNumber,num)", "String(_NodeSassNumber)", "Null(_NodeSassNumber,String)", "SassScriptException0()", "CssValue(Interpolation{trim:bool,warnForColor:bool})", "String(Object,@,@[@])", "~(Symbol0,@)", "Future()", "SassNumber(Value)", "+loadedUrls,stylesheet(Set,CssStylesheet)()", "SassString0(SimpleSelector0)", "Module0()", "SelectorList0()", "CompoundSelector0()", "~(CssMediaQuery0)", "~(SelectorList0)", "~(MapEntry)", "SingleUnitSassNumber0(double)", "~(Module0)", "JSUrl0?(FileSpan)", "Value?(Value)", "Value(Object)", "SassString0(int)", "SassString0(String)", "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})", "CssValue(Interpolation)", "Stylesheet0()", "Statement0?()", "VariableDeclaration0(VariableDeclaration0)", "ArgumentDeclaration0()", "+(String,ArgumentDeclaration0)()", "VariableDeclaration0()", "bool(+originalUrl(AsyncImporter,Uri,Uri))", "StyleRule0(List,FileSpan)", "Value?(IfRuleClause)", "EachRule0(List,FileSpan)", "FunctionRule0(List,FileSpan)", "ForRule0(List,FileSpan)", "ContentBlock0(List,FileSpan)", "MediaRule0(List,FileSpan)", "MixinRule0(List,FileSpan)", "UserDefinedCallable(ContentBlock)", "SupportsRule0(List,FileSpan)", "WhileRule0(List,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?])", "Value(Expression)", "Expression()", "~(Zone?,ZoneDelegate?,Zone,Object,StackTrace)", "0^(Zone?,ZoneDelegate?,Zone,0^())", "0^(Zone?,ZoneDelegate?,Zone,0^(1^),1^)", "0^(Zone?,ZoneDelegate?,Zone,0^(1^,2^),1^,2^)", "0^()(Zone,ZoneDelegate,Zone,0^())", "0^(1^)(Zone,ZoneDelegate,Zone,0^(1^))", "0^(1^,2^)(Zone,ZoneDelegate,Zone,0^(1^,2^))", "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?)", "~(ContentBlock)", "~(List)", "0^(0^,0^)", "Uri(+originalUrl(AsyncImporter,Uri,Uri))", "String(Argument)", "~(Object,StackTrace,EventSink<0^>)", "List<0^>(0^,List<0^>?)", "NodeCompileResult(String[CompileOptions?])", "NodeCompileResult(String[CompileStringOptions?])", "Promise(String[CompileOptions?])", "Promise(String[CompileStringOptions?])", "Importer0(Object?)", "List(Object?)", "~(RenderOptions,~(Object?,RenderResult?))", "RenderResult(RenderOptions)", "Uri(JSUrl0)", "JSUrl0(Uri)", "String(String[String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?])", "~(CssMediaQuery)", "~(SelectorList)", "int(num)", "~(MapEntry)", "Future<~>(List)", "Map(Module1)"], interceptorsByTag: null, leafTags: null, arrayRti: Symbol("$ti"), rttc: { "2;": (t1, t2) => o => o instanceof A._Record_2 && t1._is(o._0) && t2._is(o._1), "2;forImport": (t1, t2) => o => o instanceof A._Record_2_forImport && t1._is(o._0) && t2._is(o._1), "2;sourceMap": (t1, t2) => o => o instanceof A._Record_2_sourceMap && t1._is(o._0) && t2._is(o._1), "2;imports,modules": (t1, t2) => o => o instanceof A._Record_2_imports_modules && t1._is(o._0) && t2._is(o._1), "2;loadedUrls,stylesheet": (t1, t2) => o => o instanceof A._Record_2_loadedUrls_stylesheet && t1._is(o._0) && t2._is(o._1), "3;": (t1, t2, t3) => o => o instanceof A._Record_3 && t1._is(o._0) && t2._is(o._1) && t3._is(o._2), "3;originalUrl": (t1, t2, t3) => o => o instanceof A._Record_3_originalUrl && t1._is(o._0) && t2._is(o._1) && t3._is(o._2), "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), "4;": types => o => o instanceof A._Record_4 && A.pairwiseIsTest(types, o._values), "4;baseImporter,baseUrl,forImport": types => o => o instanceof A._Record_4_baseImporter_baseUrl_forImport && A.pairwiseIsTest(types, o._values), "5;named,namedNodes,positional,positionalNodes,separator": types => o => o instanceof A._Record_5_named_namedNodes_positional_positionalNodes_separator && A.pairwiseIsTest(types, o._values) } }; 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","JSClass":"LegacyJavaScriptObject","JSUrl":"LegacyJavaScriptObject","_PropertyDescriptor":"LegacyJavaScriptObject","JSArray1":"LegacyJavaScriptObject","Chokidar0":"LegacyJavaScriptObject","ChokidarOptions0":"LegacyJavaScriptObject","ChokidarWatcher0":"LegacyJavaScriptObject","_Channels":"LegacyJavaScriptObject","_NodeSassColor":"LegacyJavaScriptObject","CompileOptions":"LegacyJavaScriptObject","CompileStringOptions":"LegacyJavaScriptObject","NodeCompileResult":"LegacyJavaScriptObject","_NodeException":"LegacyJavaScriptObject","Exports":"LegacyJavaScriptObject","LoggerNamespace":"LegacyJavaScriptObject","Fiber":"LegacyJavaScriptObject","FiberClass":"LegacyJavaScriptObject","JSFunction0":"LegacyJavaScriptObject","ImmutableList0":"LegacyJavaScriptObject","ImmutableMap0":"LegacyJavaScriptObject","JSImporter":"LegacyJavaScriptObject","CanonicalizeContext":"LegacyJavaScriptObject","JSImporterResult":"LegacyJavaScriptObject","NodeImporterResult0":"LegacyJavaScriptObject","_ConstructorOptions":"LegacyJavaScriptObject","_NodeSassList":"LegacyJavaScriptObject","WarnOptions":"LegacyJavaScriptObject","DebugOptions":"LegacyJavaScriptObject","JSLogger":"LegacyJavaScriptObject","_NodeSassMap":"LegacyJavaScriptObject","_ConstructorOptions0":"LegacyJavaScriptObject","_NodeSassNumber":"LegacyJavaScriptObject","JSClass0":"LegacyJavaScriptObject","RenderContext0":"LegacyJavaScriptObject","RenderContextOptions0":"LegacyJavaScriptObject","RenderContextResult0":"LegacyJavaScriptObject","RenderContextResultStats0":"LegacyJavaScriptObject","RenderOptions":"LegacyJavaScriptObject","RenderResult":"LegacyJavaScriptObject","RenderResultStats":"LegacyJavaScriptObject","_Exports":"LegacyJavaScriptObject","_ConstructorOptions1":"LegacyJavaScriptObject","_NodeSassString":"LegacyJavaScriptObject","Types":"LegacyJavaScriptObject","JSUrl0":"LegacyJavaScriptObject","_PropertyDescriptor0":"LegacyJavaScriptObject","JSBool":{"bool":[],"TrustedGetRuntimeType":[]},"JSNull":{"Null":[],"TrustedGetRuntimeType":[]},"LegacyJavaScriptObject":{"Promise":[],"JsSystemError":[],"ImmutableList":[],"_Channels":[],"_NodeSassColor":[],"CompileOptions":[],"CompileStringOptions":[],"NodeCompileResult":[],"_NodeException":[],"Fiber":[],"JSFunction0":[],"ImmutableList0":[],"ImmutableMap0":[],"JSImporter":[],"JSImporterResult":[],"NodeImporterResult0":[],"_ConstructorOptions":[],"_NodeSassList":[],"WarnOptions":[],"DebugOptions":[],"_NodeSassMap":[],"_ConstructorOptions0":[],"_NodeSassNumber":[],"JSClass0":[],"RenderContextOptions0":[],"RenderOptions":[],"RenderResult":[],"_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"],"Iterable.E":"2","ListBase.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":[]},"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"},"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"],"JavaScriptIndexingBehavior":["double"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]},"NativeTypedArrayOfInt":{"ListBase":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"NativeFloat32List":{"NativeTypedArrayOfDouble":[],"ListBase":["double"],"Float32List":[],"JavaScriptIndexingBehavior":["double"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double"},"NativeFloat64List":{"NativeTypedArrayOfDouble":[],"ListBase":["double"],"Float64List":[],"JavaScriptIndexingBehavior":["double"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double"},"NativeInt16List":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Int16List":[],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeInt32List":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Int32List":[],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeInt8List":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Int8List":[],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeUint16List":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Uint16List":[],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeUint32List":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Uint32List":[],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeUint8ClampedList":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Uint8ClampedList":[],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeUint8List":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Uint8List":[],"JavaScriptIndexingBehavior":["int"],"List":["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":{"ListIterable":["1"],"Queue":["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"]},"AsciiCodec":{"Codec":["String","List"]},"_UnicodeSubsetEncoder":{"Converter":["String","List"]},"AsciiEncoder":{"Converter":["String","List"]},"Base64Codec":{"Codec":["List","String"]},"Base64Encoder":{"Converter":["List","String"]},"Encoding":{"Codec":["String","List"]},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"JsonCodec":{"Codec":["Object?","String"]},"JsonEncoder":{"Converter":["Object?","String"]},"Utf8Codec":{"Codec":["String","List"]},"Utf8Encoder":{"Converter":["String","List"]},"Utf8Decoder":{"Converter":["List","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":{"Uri":[]},"_SimpleUri":{"Uri":[]},"_DataUri":{"Uri":[]},"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":[],"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":[]},"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":[]},"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":[]},"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":[]},"SupportsAnything0":{"AstNode0":[]},"Argument0":{"AstNode0":[]},"ArgumentDeclaration0":{"AstNode0":[]},"ArgumentInvocation0":{"AstNode0":[]},"SassArgumentList0":{"SassList0":[],"Value0":[]},"JSToDartAsyncImporter":{"AsyncImporter0":[]},"AsyncBuiltInCallable0":{"AsyncCallable0":[]},"_EnvironmentModule2":{"Module1":["AsyncCallable0"]},"_EvaluationContext2":{"EvaluationContext0":[]},"JSToDartAsyncFileImporter":{"AsyncImporter0":[]},"AtRootRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssAtRule0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"AtRule0":{"Statement0":[],"AstNode0":[]},"AttributeSelector0":{"SimpleSelector0":[],"AstNode0":[]},"BinaryOperationExpression0":{"Expression0":[],"AstNode0":[]},"BooleanExpression0":{"Expression0":[],"AstNode0":[]},"SassBoolean0":{"Value0":[]},"BuiltInCallable0":{"Callable":[],"AsyncBuiltInCallable0":[],"AsyncCallable0":[]},"BuiltInModule0":{"Module1":["1"]},"SassCalculation0":{"Value0":[]},"CallableDeclaration0":{"Statement0":[],"AstNode0":[]},"ClassSelector0":{"SimpleSelector0":[],"AstNode0":[]},"ColorExpression0":{"Expression0":[],"AstNode0":[]},"SassColor0":{"Value0":[]},"ModifiableCssComment0":{"ModifiableCssNode0":[],"CssComment0":[],"CssNode0":[],"AstNode0":[]},"ComplexSassNumber0":{"SassNumber0":[],"Value0":[]},"ComplexSelector0":{"AstNode0":[]},"CompoundSelector0":{"AstNode0":[]},"ExplicitConfiguration0":{"Configuration0":[]},"ConfiguredVariable0":{"AstNode0":[]},"ContentBlock0":{"Statement0":[],"AstNode0":[]},"ContentRule0":{"Statement0":[],"AstNode0":[]},"DebugRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssDeclaration0":{"ModifiableCssNode0":[],"CssNode0":[],"AstNode0":[]},"Declaration0":{"Statement0":[],"AstNode0":[]},"SupportsDeclaration0":{"AstNode0":[]},"DynamicImport0":{"Import0":[],"AstNode0":[]},"EachRule0":{"Statement0":[],"AstNode0":[]},"EmptyExtensionStore0":{"ExtensionStore0":[]},"_EnvironmentModule1":{"Module1":["Callable"]},"ErrorRule0":{"Statement0":[],"AstNode0":[]},"_EvaluationContext1":{"EvaluationContext0":[]},"SassRuntimeException0":{"Exception":[]},"SassException0":{"Exception":[]},"MultiSpanSassException0":{"Exception":[]},"MultiSpanSassRuntimeException0":{"SassRuntimeException0":[],"Exception":[]},"SassFormatException0":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"MultiSpanSassFormatException0":{"MultiSourceSpanFormatException":[],"SassFormatException0":[],"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"Expression0":{"AstNode0":[]},"ExtendRule0":{"Statement0":[],"AstNode0":[]},"JSToDartFileImporter":{"Importer0":[],"AsyncImporter0":[]},"FilesystemImporter0":{"Importer0":[],"AsyncImporter0":[]},"ForRule0":{"Statement0":[],"AstNode0":[]},"ForwardRule0":{"Statement0":[],"AstNode0":[]},"ForwardedModuleView0":{"Module1":["1"]},"FunctionExpression0":{"Expression0":[],"AstNode0":[]},"SupportsFunction0":{"AstNode0":[]},"SassFunction0":{"Value0":[]},"FunctionRule0":{"Statement0":[],"AstNode0":[]},"IDSelector0":{"SimpleSelector0":[],"AstNode0":[]},"IfExpression0":{"Expression0":[],"AstNode0":[]},"IfClause0":{"IfRuleClause0":[]},"ElseClause0":{"IfRuleClause0":[]},"IfRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssImport0":{"ModifiableCssNode0":[],"CssNode0":[],"AstNode0":[]},"ImportRule0":{"Statement0":[],"AstNode0":[]},"Importer0":{"AsyncImporter0":[]},"IncludeRule0":{"Statement0":[],"AstNode0":[]},"InterpolatedFunctionExpression0":{"Expression0":[],"AstNode0":[]},"Interpolation0":{"AstNode0":[]},"SupportsInterpolation0":{"AstNode0":[]},"ModifiableCssKeyframeBlock0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"LazyFileSpan0":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"LimitedMapView0":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"ListExpression0":{"Expression0":[],"AstNode0":[]},"SelectorList0":{"AstNode0":[]},"_ParentSelectorVisitor0":{"SelectorSearchVisitor0":["ParentSelector0"],"SelectorSearchVisitor0.T":"ParentSelector0"},"SassList0":{"Value0":[]},"LoudComment0":{"Statement0":[],"AstNode0":[]},"MapExpression0":{"Expression0":[],"AstNode0":[]},"SassMap0":{"Value0":[]},"ModifiableCssMediaRule0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"MediaRule0":{"Statement0":[],"AstNode0":[]},"MergedExtension0":{"Extension0":[]},"MergedMapView0":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"SassMixin0":{"Value0":[]},"MixinRule0":{"Statement0":[],"AstNode0":[]},"_HasContentVisitor0":{"StatementSearchVisitor0":["bool"],"StatementSearchVisitor0.T":"bool"},"MultiSpan0":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"SupportsNegation0":{"AstNode0":[]},"NoOpImporter0":{"Importer0":[],"AsyncImporter0":[]},"_FakeAstNode0":{"AstNode0":[]},"CssNode0":{"AstNode0":[]},"CssParentNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssParentNode0":{"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"NullExpression0":{"Expression0":[],"AstNode0":[]},"_SassNull0":{"Value0":[]},"NumberExpression0":{"Expression0":[],"AstNode0":[]},"SassNumber0":{"Value0":[]},"SupportsOperation0":{"AstNode0":[]},"ParentSelector0":{"SimpleSelector0":[],"AstNode0":[]},"ParentStatement0":{"Statement0":[],"AstNode0":[]},"ParenthesizedExpression0":{"Expression0":[],"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"},"PseudoSelector0":{"SimpleSelector0":[],"AstNode0":[]},"PublicMemberMapView0":{"MapBase":["String","1"],"Map":["String","1"],"MapBase.V":"1","MapBase.K":"String"},"ReturnRule0":{"Statement0":[],"AstNode0":[]},"Selector0":{"AstNode0":[]},"SelectorExpression0":{"Expression0":[],"AstNode0":[]},"ShadowedModuleView0":{"Module1":["1"]},"SilentComment0":{"Statement0":[],"AstNode0":[]},"SimpleSelector0":{"AstNode0":[]},"SingleUnitSassNumber0":{"SassNumber0":[],"Value0":[]},"StaticImport0":{"Import0":[],"AstNode0":[]},"StringExpression0":{"Expression0":[],"AstNode0":[]},"SassString0":{"Value0":[]},"ModifiableCssStyleRule0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"StyleRule0":{"Statement0":[],"AstNode0":[]},"CssStylesheet0":{"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"ModifiableCssStylesheet0":{"ModifiableCssParentNode0":[],"CssStylesheet0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"Stylesheet0":{"Statement0":[],"AstNode0":[]},"SupportsExpression0":{"Expression0":[],"AstNode0":[]},"ModifiableCssSupportsRule0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"SupportsRule0":{"Statement0":[],"AstNode0":[]},"JSToDartImporter":{"Importer0":[],"AsyncImporter0":[]},"TypeSelector0":{"SimpleSelector0":[],"AstNode0":[]},"UnaryOperationExpression0":{"Expression0":[],"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":[],"AstNode0":[]},"UserDefinedCallable0":{"Callable":[],"AsyncCallable0":[]},"CssValue0":{"AstNode0":[]},"ValueExpression0":{"Expression0":[],"AstNode0":[]},"VariableExpression0":{"Expression0":[],"AstNode0":[]},"VariableDeclaration0":{"Statement0":[],"AstNode0":[]},"WarnRule0":{"Statement0":[],"AstNode0":[]},"WhileRule0":{"Statement0":[],"AstNode0":[]},"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":[]},"Import":{"AstNode":[]},"Statement":{"AstNode":[]},"Callable0":{"AsyncCallable":[]},"Callable":{"AsyncCallable0":[]},"CssComment0":{"CssNode0":[],"AstNode0":[]},"Import0":{"AstNode0":[]},"Statement0":{"AstNode0":[]}}')); A._Universe_addErasedTypes(init.typeUniverse, JSON.parse('{"ArrayIterator":1,"ListIterator":1,"MappedIterator":2,"WhereIterator":1,"ExpandIterator":2,"TakeIterator":1,"SkipIterator":1,"SkipWhileIterator":1,"EmptyIterator":1,"FollowedByIterator":1,"FixedLengthListMixin":1,"UnmodifiableListMixin":1,"UnmodifiableListBase":1,"__CastListBase__CastIterableBase_ListMixin":2,"_KeysOrValuesOrElementsIterator":1,"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,"_HashMapKeyIterator":1,"_LinkedHashSetIterator":1,"UnmodifiableMapBase":2,"_MapBaseValueIterator":2,"_UnmodifiableMapMixin":2,"MapView":2,"_ListQueueIterator":1,"_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,"MapEquality":2,"_QueueList_Object_ListMixin":1,"_UnionSet_SetBase_UnmodifiableSetMixin":1,"UnmodifiableSetMixin":1,"_UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin":1,"_DelegatingIterableBase":1,"_MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin":1,"ParentStatement":1,"ParentStatement0":1}')); var string$ = { x0a_BUG_: "\n\nBUG: This should include a source span!", x0a_Morex20: "\n\nMore info and automated migrator: https://sass-lang.com/d/slash-div", x0a_Morex3a: "\n\nMore info: https://sass-lang.com/d/function-units", x0a_See_: "\n\nSee https://sass-lang.com/d/function-units", x0a_This: "\n\nThis is only an error because you've set the ", x0a_To_p: "\n\nTo preserve current behavior: math.random(math.div($limit, 1", x0a_but_: "\n\nbut you may have intended it to mean:\n\n ", x0aRun_i: "\nRun in verbose mode to see all warnings.", x0aThis_: "\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators", x0aYou_m: "\nYou may not @extend the same selector from within different media queries.", x20It_wi: " It will be omitted from the generated CSS.", 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", x20depre: " deprecation to be fatal.\nRemove this setting if you need to keep using this feature.", x20in_in: " in interpolation here.\nIt may end up represented as ", x20is_as: " is asynchronous.\nThis is probably caused by a bug in a Sass plugin.", x20is_av: " is available from multiple global modules.", x20is_de: " is deprecated.\n\nTo preserve current behavior: ", x20is_noa: " is not a valid selector: it must be a string,\na list of strings, or a list of lists of strings.", 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", x20must_b: " must be either nearest, up, down or to-zero.", x20must_n: " must not be greater than the number of characters in the file, ", x20repet: " repetitive deprecation warnings omitted.", x20targe: " targetLocations if the interpolation has ", 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", x20to_co: " to color.opacity() is deprecated.\n\nRecommendation: ", x20was_a: ' was already loaded, so it can\'t be configured using "with".', x20was_n: " was not declared with !default in the @used module.", x20was_p: " was passed both by position and by name.", x21defau: "!default should only be written once for each variable.\nThis will be an error in Dart Sass 2.0.0.", x21globai: "!global isn't allowed for variables in other modules.", x21globas: "!global should only be written once for each variable.\nThis will be an error in Dart Sass 2.0.0.", x22x20can_: "\" can't be used as a parent in a compound selector.", 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', 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', x22x20is_n: '" is not a valid Sass identifier.\n\nRecommendation: add an "as" clause to define an explicit namespace.', x22x20is_o: "\" is only valid for nesting and shouldn't\nhave children other than style rules.", x22x26__ma: '"&" may only used at the beginning of a compound selector.', x22x29__If: "\").\nIf you really want to use the color value here, use '", x22x2b__an: '"+" and "-" must be surrounded by whitespace in calculations.', x22packa: '"package:" URLs aren\'t supported on this platform.', x24css_a: "$css and $module may not both be passed at once.", x24list1: "$list1, $list2, $separator: auto, $bracketed: auto", x24selec: "$selectors: At least one selector must be passed.", x24separ: '$separator: Must be "space", "comma", "slash", or "auto".', x28__isn: "() isn't in the sass:color module.\n\nRecommendation: color.adjust(", x29x0a_Mor: ")\n\nMore info: https://sass-lang.com/documentation/functions/color#", x29x20in_a: ") in a future release.\n\nRecommendation: math.random(math.div($limit, 1", x29x20is_d: ") is deprecated.\n\nTo preserve current behavior: ", x29x20to_cg: ") to color.grayscale() is deprecated.\n\nRecommendation: ", x29x20to_ci: ") to color.invert() is deprecated.\n\nRecommendation: ", x29x29__Mo: "))\n\nMore info: https://sass-lang.com/d/function-units", x2c_whicu: ", which uses a scheme declared as non-canonical.", x2c_whicw: ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "', x2e_Rela: ".\nRelative canonical URLs are deprecated and will eventually be disallowed.", x3d_____: "===== asynchronous gap ===========================\n", 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.", x40conte: "@content is only allowed within mixin declarations.", x40elsei: "@elseif is deprecated and will not be supported in future Sass versions.\n\nRecommendation: @else if", x40exten: "@extend may only be used within style rules.", x40forwa: "@forward rules must be written before any other rules.", x40funct: "@function if($condition, $if-true, $if-false) {", x40use_r: "@use rules must be written before any other rules.", A_list: "A list with more than one element must have an explicit separator.", ABCDEF: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", An_impa: "An importer may not have a findFileUrl method as well as canonicalize and load methods.", An_impu: "An importer must have either canonicalize and load methods, or a findFileUrl method.", As_of_R: "As of Dart Sass 2.0.0, !global assignments won't be able to declare new variables.\n\nRecommendation: add `", 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.", At_rul: "At-rules may not be used within nested declarations.", Cannotff: "Cannot extract a file path from a URI with a fragment component", Cannotfq: "Cannot extract a file path from a URI with a query component", Cannotn: "Cannot extract a non-Windows file path from a file URI with an authority", Comple: "ComplexSassNumber.hasPossiblyCompatibleUnits is not implemented.", Could_: 'Could not find an option with short name "-', CssNod: "CssNodes must have a CssStylesheet transitive parent node.", Custom: "Custom importers are required to load stylesheets when compiling in the browser.", Declarm: "Declarations may only be used within style rules.", Declarw: 'Declarations whose names begin with "--" may not be nested.', Either: "Either options.data or options.file must be set.", Entrie: "Entries may not be removed from MergedMapView.", 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", Evalua: "Evaluation handles @include and its content block together.", Expect: "Expected variable, mixin, or function name", Functi: "Functions may not be declared in control directives.", HSL_pa: "HSL parameters may not be passed along with HWB parameters.", If_con: "If conditions is longer than one element, conjunction may not be null.", If_par: "If parsedAsCustomProperty is true, value must contain a SassString (was `", If_str: "If strategy is not null, step is required.", In_Sas: 'In Sass, "&&" means two copies of the parent selector. You probably want to use "and" instead.', Indent: "Indenting at the beginning of the document is illegal.", Interpn: "Interpolation isn't allowed in namespaces.", Interpp: "Interpolation isn't allowed in plain CSS.", Invali: 'Invalid return value for custom function "', It_s_n: "It's not clear which file to import. Found:\n", Keywor: "Keyword arguments can't be used with calculations.", Local_: "Local '' has been assigned during initialization.", May_on: "May only contains Strings or Expressions.", Media_: "Media rules may not be used within nested declarations.", Mixinsb: "Mixins may not be declared in control directives.", Mixinscf: "Mixins may not contain function declarations.", Mixinscm: "Mixins may not contain mixin declarations.", Modulel: "Module loop: this module is already being loaded.", Modulen: "Module namespaces aren't allowed in plain CSS.", Nested: "Nested declarations aren't allowed in plain CSS.", New_en: "New entries may not be added to MergedMapView.", No_Sasc: "No Sass callable is currently being evaluated.", No_Sass: "No Sass stylesheet is currently being evaluated.", NoSour: "NoSourceMapBuffer.buildSourceMap() is not supported.", Number: "Number to round and step arguments are required.", Only_2: "Only 2 slash-separated elements allowed, but ", Only_oa: "Only one argument may be passed to the plain-CSS invert() function.", Only_op: "Only one positional argument is allowed. All other arguments must be passed by name.", Other_: "Other modules' members can't be defined with !global.", Passina: "Passing a string to call() is deprecated and will be illegal in Dart Sass 2.0.0.\n\nRecommendation: call(get-function(", 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(", Placeh: "Placeholder selectors aren't allowed here.", Plain_: "Plain CSS functions don't support keyword arguments.", Positi: "Positional arguments must come before keyword arguments.", Privat: "Private members can't be accessed from outside their modules.", RGB_pa: "RGB parameters may not be passed along with ", Rest_a: "Rest arguments can't be used with calculations.", Sass__: "Sass @import rules will be deprecated in the future.\nRemove the --future-deprecation=import flag to silence this warning for now.", Sass_v: "Sass variables aren't allowed in plain CSS.", Silent: "Silent comments aren't allowed in plain CSS.", Style_: "Style rules may not be used within nested declarations.", Suppor: "Supports rules may not be used within nested declarations.", The_Ex: "The ExtensionStore and CssStylesheet passed to cloneCssStylesheet() must come from the same compilation.", The_ca: "The canonicalize() method must return a URL.", The_fie: "The findFileUrl() method must return a URL.", The_fiu: 'The findFileUrl() must return a URL with scheme file://, was "', The_gi: "The given LineScannerState was not returned by this LineScanner.", The_lo: "The load() function must return an object with contents and syntax fields.", The_pa: "The parent selector isn't allowed in plain CSS.", The_sa: "The same variable may only be configured once.", The_ta: 'The target selector was not found.\nUse "@extend ', There_: "There's already a module with namespace \"", This_d: 'This declaration has no argument named "$', This_e: "This expression can't be used in a calculation.", This_f: "This function isn't allowed in plain CSS.", This_ma: 'This module and the new module both define a variable named "$', This_mw: 'This module was already loaded, so it can\'t be configured using "with".', This_o: "This operation can't be used in a calculation.", This_s: "This selector doesn't have any properties and won't be rendered.", This_v: "This variable was not declared with !default in the @used module.", Top_le: 'Top-level selectors may not contain the parent selector "&".', Using__i: "Using / for division is deprecated and will be removed in Dart Sass 2.0.0.\n\nRecommendation: ", Using__o: "Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.\n\nRecommendation: ", Using_c: "Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: ", Variab_: "Variable keyword argument map must have string keys.\n", Variabs: "Variable keyword arguments must be a map (was ", You_ma: "You may not @extend selectors across media queries.", You_pr: "You probably don't mean to use the color value ", x60_inst: "` instead.\nSee https://sass-lang.com/d/extend-compound for details.\n", addExt: "addExtensions() can't be called for a const ExtensionStore.", compou: "compound selectors may no longer be extended.\nConsider `@extend ", conten: "content-exists() may only be called within a mixin.", fileEx: "fileExists() is only supported on Node.js", leadin: "leadingCombinators and components may not both be empty.", math_d: "math.div() will only support number arguments in a future release.\nUse list.slash() instead for a slash separator.", math_r: "math.random() will no longer ignore $limit units (", must_b: "must be a UniversalSelector or a TypeSelector", parsed: 'parsedAsCustomProperty must be false if name doesn\'t begin with "--".', semico: "semicolons aren't allowed in the indented syntax.", throug: "through() must return false for at least one parent of ", x7d__Mor: "})\nMore info: https://sass-lang.com/d/abs-percent" }; var type$ = (function rtii() { var findType = A.findType; return { $env_1_1_String: findType("@"), ArgParser: findType("ArgParser"), Argument: findType("Argument"), ArgumentDeclaration: findType("ArgumentDeclaration"), ArgumentDeclaration_2: findType("ArgumentDeclaration0"), Argument_2: findType("Argument0"), AstNode: findType("AstNode"), AstNode_2: findType("AstNode0"), AsyncBuiltInCallable: findType("AsyncBuiltInCallable"), AsyncBuiltInCallable_2: findType("AsyncBuiltInCallable0"), AsyncCallable: findType("AsyncCallable"), AsyncCallable_2: findType("AsyncCallable0"), AsyncImporter: findType("AsyncImporter0"), Box_SelectorList: findType("Box"), Box_SelectorList_2: findType("Box0"), BuiltInCallable: findType("BuiltInCallable"), BuiltInCallable_2: findType("BuiltInCallable0"), BuiltInModule_AsyncCallable: findType("BuiltInModule"), BuiltInModule_AsyncCallable_2: findType("BuiltInModule0"), BuiltInModule_Callable: findType("BuiltInModule"), BuiltInModule_Callable_2: findType("BuiltInModule0"), ByteBuffer: findType("ByteBuffer"), ByteData: findType("ByteData"), Callable: findType("Callable0"), Callable_2: findType("Callable"), ChangeType: findType("ChangeType"), Comparable_dynamic: findType("Comparable<@>"), Comparable_nullable_Object: findType("Comparable"), CompileResult: findType("CompileResult"), CompileResult_2: findType("CompileResult0"), ComplexSelector: findType("ComplexSelector"), ComplexSelectorComponent: findType("ComplexSelectorComponent"), ComplexSelectorComponent_2: findType("ComplexSelectorComponent0"), ComplexSelector_2: findType("ComplexSelector0"), Configuration: findType("Configuration"), Configuration_2: findType("Configuration0"), ConfiguredValue: findType("ConfiguredValue"), ConfiguredValue_2: findType("ConfiguredValue0"), ConfiguredVariable: findType("ConfiguredVariable"), ConfiguredVariable_2: findType("ConfiguredVariable0"), ConstantMapView_Symbol_dynamic: findType("ConstantMapView"), ConstantStringMap_String_double: findType("ConstantStringMap"), ConstantStringSet_String: findType("ConstantStringSet"), CssComment: findType("CssComment"), CssComment_2: findType("CssComment0"), CssMediaQuery: findType("CssMediaQuery"), CssMediaQuery_2: findType("CssMediaQuery0"), CssParentNode: findType("CssParentNode"), CssParentNode_2: findType("CssParentNode0"), CssStylesheet: findType("CssStylesheet"), CssStylesheet_2: findType("CssStylesheet0"), CssValue_Combinator: findType("CssValue"), CssValue_Combinator_2: findType("CssValue0"), CssValue_List_String: findType("CssValue>"), CssValue_List_String_2: findType("CssValue0>"), CssValue_String: findType("CssValue"), CssValue_String_2: findType("CssValue0"), CssValue_Value: findType("CssValue"), CssValue_Value_2: findType("CssValue0"), DateTime: findType("DateTime"), Deprecation: findType("Deprecation"), Deprecation_2: findType("Deprecation0"), EfficientLengthIterable_dynamic: findType("EfficientLengthIterable<@>"), Error: findType("Error"), EvaluationContext: findType("EvaluationContext"), EvaluationContext_2: findType("EvaluationContext0"), Exception: findType("Exception"), Expression: findType("Expression"), Expression_2: findType("Expression0"), Extender: findType("Extender"), Extender_2: findType("Extender0"), Extension: findType("Extension"), Extension_2: findType("Extension0"), FileSpan: findType("FileSpan"), Float32List: findType("Float32List"), Float64List: findType("Float64List"), FormatException: findType("FormatException"), Frame: findType("Frame"), Function: findType("Function"), FutureOr_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet: findType("+loadedUrls,stylesheet(Set,CssStylesheet)/"), FutureOr_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2: findType("+loadedUrls,stylesheet(Set,CssStylesheet0)/"), FutureOr_nullable_Uri: findType("Uri?/"), Future_void: findType("Future<~>"), IfClause: findType("IfClause"), IfClause_2: findType("IfClause0"), ImmutableList: findType("ImmutableList0"), ImmutableList_2: findType("ImmutableList"), ImmutableMap: findType("ImmutableMap0"), Import: findType("Import"), Import_2: findType("Import0"), Importer: findType("Importer0"), ImporterResult: findType("ImporterResult"), ImporterResult_2: findType("ImporterResult0"), Int16List: findType("Int16List"), Int32List: findType("Int32List"), Int8List: findType("Int8List"), Interpolation: findType("Interpolation"), InterpolationBuffer: findType("InterpolationBuffer"), InterpolationBuffer_2: findType("InterpolationBuffer0"), Interpolation_2: findType("Interpolation0"), Iterable_ComplexSelectorComponent: findType("Iterable"), Iterable_ComplexSelectorComponent_2: findType("Iterable"), Iterable_dynamic: findType("Iterable<@>"), Iterable_nullable_Object: findType("Iterable"), JSArray_Argument: findType("JSArray"), JSArray_Argument_2: findType("JSArray"), JSArray_AstNode: findType("JSArray"), JSArray_AstNode_2: findType("JSArray"), JSArray_AsyncBuiltInCallable: findType("JSArray"), JSArray_AsyncBuiltInCallable_2: findType("JSArray"), JSArray_AsyncCallable: findType("JSArray"), JSArray_AsyncCallable_2: findType("JSArray"), JSArray_AsyncImporter: findType("JSArray"), JSArray_AsyncImporter_2: findType("JSArray"), JSArray_BinaryOperator: findType("JSArray"), JSArray_BinaryOperator_2: findType("JSArray"), JSArray_BuiltInCallable: findType("JSArray"), JSArray_BuiltInCallable_2: findType("JSArray"), JSArray_Callable: findType("JSArray"), JSArray_Callable_2: findType("JSArray"), JSArray_ComplexSelector: findType("JSArray"), JSArray_ComplexSelectorComponent: findType("JSArray"), JSArray_ComplexSelectorComponent_2: findType("JSArray"), JSArray_ComplexSelector_2: findType("JSArray"), JSArray_ConfiguredVariable: findType("JSArray"), JSArray_ConfiguredVariable_2: findType("JSArray"), JSArray_CssComment: findType("JSArray"), JSArray_CssComment_2: findType("JSArray"), JSArray_CssMediaQuery: findType("JSArray"), JSArray_CssMediaQuery_2: findType("JSArray"), JSArray_CssNode: findType("JSArray"), JSArray_CssNode_2: findType("JSArray"), JSArray_CssValue_Combinator: findType("JSArray>"), JSArray_CssValue_Combinator_2: findType("JSArray>"), JSArray_Entry: findType("JSArray"), JSArray_Expression: findType("JSArray"), JSArray_Expression_2: findType("JSArray"), JSArray_Extender: findType("JSArray"), JSArray_Extender_2: findType("JSArray"), JSArray_Extension: findType("JSArray"), JSArray_ExtensionStore: findType("JSArray"), JSArray_ExtensionStore_2: findType("JSArray"), JSArray_Extension_2: findType("JSArray"), JSArray_ForwardRule: findType("JSArray"), JSArray_ForwardRule_2: findType("JSArray"), JSArray_Frame: findType("JSArray"), JSArray_Future_nullable_Record_3_int_and_String_and_nullable_String: findType("JSArray>"), JSArray_IfClause: findType("JSArray"), JSArray_IfClause_2: findType("JSArray"), JSArray_Import: findType("JSArray"), JSArray_Import_2: findType("JSArray"), JSArray_Importer: findType("JSArray"), JSArray_Importer_2: findType("JSArray"), JSArray_Iterable_ComplexSelectorComponent: findType("JSArray>"), JSArray_Iterable_ComplexSelectorComponent_2: findType("JSArray>"), JSArray_JSFunction: findType("JSArray"), JSArray_List_ComplexSelector: findType("JSArray>"), JSArray_List_ComplexSelectorComponent: findType("JSArray>"), JSArray_List_ComplexSelectorComponent_2: findType("JSArray>"), JSArray_List_ComplexSelector_2: findType("JSArray>"), JSArray_List_Extender: findType("JSArray>"), JSArray_List_Extender_2: findType("JSArray>"), JSArray_List_Iterable_ComplexSelectorComponent: findType("JSArray>>"), JSArray_List_Iterable_ComplexSelectorComponent_2: findType("JSArray>>"), JSArray_Map_String_AstNode: findType("JSArray>"), JSArray_Map_String_AstNode_2: findType("JSArray>"), JSArray_Map_String_AsyncCallable: findType("JSArray>"), JSArray_Map_String_AsyncCallable_2: findType("JSArray>"), JSArray_Map_String_Callable: findType("JSArray>"), JSArray_Map_String_Callable_2: findType("JSArray>"), JSArray_Map_String_Value: findType("JSArray>"), JSArray_Map_String_Value_2: findType("JSArray>"), JSArray_ModifiableCssImport: findType("JSArray"), JSArray_ModifiableCssImport_2: findType("JSArray"), JSArray_ModifiableCssNode: findType("JSArray"), JSArray_ModifiableCssNode_2: findType("JSArray"), JSArray_ModifiableCssParentNode: findType("JSArray"), JSArray_ModifiableCssParentNode_2: findType("JSArray"), JSArray_Module_AsyncCallable: findType("JSArray>"), JSArray_Module_AsyncCallable_2: findType("JSArray>"), JSArray_Module_Callable: findType("JSArray>"), JSArray_Module_Callable_2: findType("JSArray>"), JSArray_Object: findType("JSArray"), JSArray_PseudoSelector: findType("JSArray"), JSArray_PseudoSelector_2: findType("JSArray"), JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value: findType("JSArray<+(ArgumentDeclaration,Value(List))>"), JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2: findType("JSArray<+(ArgumentDeclaration0,Value0(List))>"), JSArray_Record_2_Expression_and_Expression: findType("JSArray<+(Expression,Expression)>"), JSArray_Record_2_Expression_and_Expression_2: findType("JSArray<+(Expression0,Expression0)>"), JSArray_Record_2_String_and_AstNode: findType("JSArray<+(String,AstNode)>"), JSArray_Record_2_String_and_AstNode_2: findType("JSArray<+(String,AstNode0)>"), JSArray_SassList: findType("JSArray"), JSArray_SassList_2: findType("JSArray"), JSArray_SimpleSelector: findType("JSArray"), JSArray_SimpleSelector_2: findType("JSArray"), JSArray_SourceLocation: findType("JSArray"), JSArray_Statement: findType("JSArray"), JSArray_Statement_2: findType("JSArray"), JSArray_String: findType("JSArray"), JSArray_StylesheetNode: findType("JSArray"), JSArray_TargetEntry: findType("JSArray"), JSArray_TargetLineEntry: findType("JSArray"), JSArray_Trace: findType("JSArray"), JSArray_UseRule: findType("JSArray"), JSArray_UseRule_2: findType("JSArray"), JSArray_Value: findType("JSArray"), JSArray_Value_2: findType("JSArray"), JSArray_WatchEvent: findType("JSArray"), JSArray__Highlight: findType("JSArray<_Highlight>"), JSArray__Line: findType("JSArray<_Line>"), JSArray_dynamic: findType("JSArray<@>"), JSArray_int: findType("JSArray"), JSArray_nullable_Record_3_int_and_String_and_nullable_String: findType("JSArray<+(int,String,String?)?>"), JSArray_nullable_String: findType("JSArray"), JSClass: findType("JSClass0"), JSFunction: findType("JSFunction0"), JSImporter: findType("JSImporter"), JSImporterResult: findType("JSImporterResult"), JSNull: findType("JSNull"), JSUrl: findType("JSUrl0"), JavaScriptFunction: findType("JavaScriptFunction"), JavaScriptIndexingBehavior_dynamic: findType("JavaScriptIndexingBehavior<@>"), JsIdentityLinkedHashMap_SimpleSelector_int: findType("JsIdentityLinkedHashMap"), JsIdentityLinkedHashMap_SimpleSelector_int_2: findType("JsIdentityLinkedHashMap"), JsIdentityLinkedHashMap_of_SelectorList_and_Box_SelectorList: findType("JsIdentityLinkedHashMap>"), JsIdentityLinkedHashMap_of_SelectorList_and_Box_SelectorList_2: findType("JsIdentityLinkedHashMap>"), JsLinkedHashMap_Symbol_dynamic: findType("JsLinkedHashMap"), JsSystemError: findType("JsSystemError"), LimitedMapView_String_ConfiguredValue: findType("LimitedMapView"), LimitedMapView_String_ConfiguredValue_2: findType("LimitedMapView0"), List_ComplexSelectorComponent: findType("List"), List_ComplexSelectorComponent_2: findType("List"), List_CssComment: findType("List"), List_CssComment_2: findType("List"), List_CssMediaQuery: findType("List"), List_CssMediaQuery_2: findType("List"), List_CssValue_Combinator: findType("List>"), List_CssValue_Combinator_2: findType("List>"), List_Extension: findType("List"), List_ExtensionStore: findType("List"), List_ExtensionStore_2: findType("List"), List_Extension_2: findType("List"), List_List_ComplexSelectorComponent: findType("List>"), List_List_ComplexSelectorComponent_2: findType("List>"), List_Module_AsyncCallable: findType("List>"), List_Module_AsyncCallable_2: findType("List>"), List_Module_Callable: findType("List>"), List_Module_Callable_2: findType("List>"), List_String: findType("List"), List_Value: findType("List"), List_Value_2: findType("List"), List_WatchEvent: findType("List"), List_dynamic: findType("List<@>"), List_int: findType("List"), List_nullable_Object: findType("List"), MapKeySet_Module_AsyncCallable: findType("MapKeySet>"), MapKeySet_Module_AsyncCallable_2: findType("MapKeySet>"), MapKeySet_Module_Callable: findType("MapKeySet>"), MapKeySet_Module_Callable_2: findType("MapKeySet>"), MapKeySet_SimpleSelector: findType("MapKeySet"), MapKeySet_SimpleSelector_2: findType("MapKeySet"), MapKeySet_String: findType("MapKeySet"), MapKeySet_nullable_Object: findType("MapKeySet"), Map_ComplexSelector_Extension: findType("Map"), Map_ComplexSelector_Extension_2: findType("Map"), Map_String_AstNode: findType("Map"), Map_String_AstNode_2: findType("Map"), Map_String_AsyncCallable: findType("Map"), Map_String_AsyncCallable_2: findType("Map"), Map_String_Callable: findType("Map"), Map_String_Callable_2: findType("Map"), Map_String_Value: findType("Map"), Map_String_Value_2: findType("Map"), Map_String_dynamic: findType("Map"), Map_dynamic_dynamic: findType("Map<@,@>"), Map_of_nullable_Object_and_nullable_Object: findType("Map"), MappedIterable_String_Frame: findType("MappedIterable"), MappedListIterable_Frame_Frame: findType("MappedListIterable"), MappedListIterable_String_Object: findType("MappedListIterable"), MappedListIterable_String_String: findType("MappedListIterable"), MappedListIterable_String_Trace: findType("MappedListIterable"), MappedListIterable_String_Value: findType("MappedListIterable"), MappedListIterable_String_Value_2: findType("MappedListIterable"), MappedListIterable_String_dynamic: findType("MappedListIterable"), ModifiableBox_SelectorList: findType("ModifiableBox"), ModifiableBox_SelectorList_2: findType("ModifiableBox0"), ModifiableCssAtRule: findType("ModifiableCssAtRule"), ModifiableCssAtRule_2: findType("ModifiableCssAtRule0"), ModifiableCssKeyframeBlock: findType("ModifiableCssKeyframeBlock"), ModifiableCssKeyframeBlock_2: findType("ModifiableCssKeyframeBlock0"), ModifiableCssMediaRule: findType("ModifiableCssMediaRule"), ModifiableCssMediaRule_2: findType("ModifiableCssMediaRule0"), ModifiableCssNode: findType("ModifiableCssNode"), ModifiableCssNode_2: findType("ModifiableCssNode0"), ModifiableCssParentNode: findType("ModifiableCssParentNode"), ModifiableCssParentNode_2: findType("ModifiableCssParentNode0"), ModifiableCssStyleRule: findType("ModifiableCssStyleRule"), ModifiableCssStyleRule_2: findType("ModifiableCssStyleRule0"), ModifiableCssSupportsRule: findType("ModifiableCssSupportsRule"), ModifiableCssSupportsRule_2: findType("ModifiableCssSupportsRule0"), Module_AsyncCallable: findType("Module0"), Module_AsyncCallable_2: findType("Module1"), Module_Callable: findType("Module0"), Module_Callable_2: findType("Module1"), MultiSourceSpanFormatException: findType("MultiSourceSpanFormatException"), NativeTypedArrayOfDouble: findType("NativeTypedArrayOfDouble"), NativeTypedArrayOfInt: findType("NativeTypedArrayOfInt"), NativeUint8List: findType("NativeUint8List"), Never: findType("0&"), NodeCompileResult: findType("NodeCompileResult"), NodeImporterResult: findType("NodeImporterResult0"), Null: findType("Null"), Object: findType("Object"), Option: findType("Option"), PathMap_ChangeType: findType("PathMap"), PathMap_Stream_WatchEvent: findType("PathMap>"), PathMap_String: findType("PathMap"), PathMap_nullable_String: findType("PathMap"), Promise: findType("Promise"), PseudoSelector: findType("PseudoSelector"), PseudoSelector_2: findType("PseudoSelector0"), RangeError: findType("RangeError"), Record: findType("Record"), Record_0: findType("+()"), Record_2_Expression_and_Expression: findType("+(Expression,Expression)"), Record_2_Expression_and_Expression_2: findType("+(Expression0,Expression0)"), Record_2_List_Expression_and_Map_String_Expression: findType("+(List,Map)"), Record_2_List_Expression_and_Map_String_Expression_2: findType("+(List,Map)"), Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet: findType("+loadedUrls,stylesheet(Set,CssStylesheet)"), Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2: findType("+loadedUrls,stylesheet(Set,CssStylesheet0)"), Record_2_String_and_InterpolationMap: findType("+(String,InterpolationMap)"), Record_2_String_and_InterpolationMap_2: findType("+(String,InterpolationMap0)"), Record_2_String_and_SourceSpan: findType("+(String,SourceSpan)"), Record_2_String_and_nullable_InterpolationMap: findType("+(String,InterpolationMap?)"), Record_2_String_and_nullable_InterpolationMap_2: findType("+(String,InterpolationMap0?)"), Record_2_Uri_and_bool_forImport: findType("+forImport(Uri,bool)"), Record_2_nullable_Object_and_nullable_Object: findType("+(Object?,Object?)"), Record_2_nullable_String_and_nullable_String: findType("+(String?,String?)"), Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl: findType("+originalUrl(AsyncImporter,Uri,Uri)"), Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2: findType("+originalUrl(AsyncImporter0,Uri,Uri)"), Record_3_Importer_and_Uri_and_Uri_originalUrl: findType("+originalUrl(Importer,Uri,Uri)"), Record_3_Importer_and_Uri_and_Uri_originalUrl_2: findType("+originalUrl(Importer0,Uri,Uri)"), Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency: findType("+importer,isDependency(Stylesheet,AsyncImporter?,bool)"), Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency_2: findType("+importer,isDependency(Stylesheet0,AsyncImporter0?,bool)"), Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl: findType("+originalUrl(Object?,Object?,Object?)"), Record_4_Uri_and_AsyncImporter_baseImporter_and_nullable_Uri_baseUrl_and_bool_forImport: findType("+baseImporter,baseUrl,forImport(Uri,AsyncImporter,Uri?,bool)"), Record_4_Uri_and_AsyncImporter_baseImporter_and_nullable_Uri_baseUrl_and_bool_forImport_2: findType("+baseImporter,baseUrl,forImport(Uri,AsyncImporter0,Uri?,bool)"), Record_4_Uri_and_Importer_baseImporter_and_nullable_Uri_baseUrl_and_bool_forImport: findType("+baseImporter,baseUrl,forImport(Uri,Importer,Uri?,bool)"), Record_4_Uri_and_Importer_baseImporter_and_nullable_Uri_baseUrl_and_bool_forImport_2: findType("+baseImporter,baseUrl,forImport(Uri,Importer0,Uri?,bool)"), 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,Map,List,List,ListSeparator)"), 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,Map,List,List,ListSeparator0)"), RegExpMatch: findType("RegExpMatch"), RenderContextOptions: findType("RenderContextOptions0"), RenderResult: findType("RenderResult"), Result_String: findType("Result"), ReversedListIterable_Frame: findType("ReversedListIterable"), Runes: findType("Runes"), SassArgumentList: findType("SassArgumentList"), SassArgumentList_2: findType("SassArgumentList0"), SassBoolean: findType("SassBoolean"), SassBoolean_2: findType("SassBoolean0"), SassCalculation: findType("SassCalculation"), SassCalculation_2: findType("SassCalculation0"), SassColor: findType("SassColor"), SassColor_2: findType("SassColor0"), SassFormatException: findType("SassFormatException"), SassFormatException_2: findType("SassFormatException0"), SassList: findType("SassList"), SassList_2: findType("SassList0"), SassMap: findType("SassMap"), SassMap_2: findType("SassMap0"), SassNumber: findType("SassNumber"), SassNumber_2: findType("SassNumber0"), SassRuntimeException: findType("SassRuntimeException"), SassRuntimeException_2: findType("SassRuntimeException0"), SassString: findType("SassString"), SassString_2: findType("SassString0"), SelectorList: findType("SelectorList"), SelectorList_2: findType("SelectorList0"), Set_ModifiableBox_SelectorList: findType("Set>"), Set_ModifiableBox_SelectorList_2: findType("Set>"), Set_Uri: findType("Set"), SimpleSelector: findType("SimpleSelector"), SimpleSelector_2: findType("SimpleSelector0"), SourceFile: findType("SourceFile"), SourceLocation: findType("SourceLocation"), SourceSpan: findType("SourceSpan"), SourceSpanFormatException: findType("SourceSpanFormatException"), SourceSpanWithContext: findType("SourceSpanWithContext"), StackTrace: findType("StackTrace"), Statement: findType("Statement"), Statement_2: findType("Statement0"), StaticImport: findType("StaticImport"), StaticImport_2: findType("StaticImport0"), StreamCompleter_WatchEvent: findType("StreamCompleter"), StreamGroup_WatchEvent: findType("StreamGroup"), StreamQueue_String: findType("StreamQueue"), Stream_WatchEvent: findType("Stream"), String: findType("String"), StylesheetNode: findType("StylesheetNode"), Timer: findType("Timer"), Trace: findType("Trace"), TrustedGetRuntimeType: findType("TrustedGetRuntimeType"), TypeError: findType("TypeError"), TypeSelector: findType("TypeSelector"), TypeSelector_2: findType("TypeSelector0"), Uint16List: findType("Uint16List"), Uint32List: findType("Uint32List"), Uint8ClampedList: findType("Uint8ClampedList"), Uint8List: findType("Uint8List"), UnaryOperationExpression: findType("UnaryOperationExpression"), UnaryOperationExpression_2: findType("UnaryOperationExpression0"), UnionSet_Uri: findType("UnionSet"), UnknownJavaScriptObject: findType("UnknownJavaScriptObject"), UnmodifiableListView_CssComment: findType("UnmodifiableListView"), UnmodifiableListView_CssComment_2: findType("UnmodifiableListView"), UnmodifiableListView_CssNode: findType("UnmodifiableListView"), UnmodifiableListView_CssNode_2: findType("UnmodifiableListView"), UnmodifiableListView_ForwardRule: findType("UnmodifiableListView"), UnmodifiableListView_ForwardRule_2: findType("UnmodifiableListView"), UnmodifiableListView_ModifiableCssNode: findType("UnmodifiableListView"), UnmodifiableListView_ModifiableCssNode_2: findType("UnmodifiableListView"), UnmodifiableListView_String: findType("UnmodifiableListView"), UnmodifiableListView_UseRule: findType("UnmodifiableListView"), UnmodifiableListView_UseRule_2: findType("UnmodifiableListView"), UnmodifiableMapView_String_ArgParser: findType("UnmodifiableMapView"), UnmodifiableMapView_String_ConfiguredValue: findType("UnmodifiableMapView"), UnmodifiableMapView_String_ConfiguredValue_2: findType("UnmodifiableMapView"), UnmodifiableMapView_String_Option: findType("UnmodifiableMapView"), UnmodifiableMapView_String_Value: findType("UnmodifiableMapView"), UnmodifiableMapView_String_Value_2: findType("UnmodifiableMapView"), UnmodifiableMapView_of_Uri_and_nullable_StylesheetNode: findType("UnmodifiableMapView"), UnmodifiableMapView_of_nullable_String_and_String: findType("UnmodifiableMapView"), UnmodifiableMapView_of_nullable_String_and_nullable_String: findType("UnmodifiableMapView"), UnmodifiableSetView_String: findType("UnmodifiableSetView0"), UnmodifiableSetView_StylesheetNode: findType("UnmodifiableSetView0"), UnmodifiableSetView_Uri: findType("UnmodifiableSetView0"), UnprefixedMapView_ConfiguredValue: findType("UnprefixedMapView"), UnprefixedMapView_ConfiguredValue_2: findType("UnprefixedMapView0"), Uri: findType("Uri"), UseRule: findType("UseRule"), UserDefinedCallable_AsyncEnvironment: findType("UserDefinedCallable"), UserDefinedCallable_AsyncEnvironment_2: findType("UserDefinedCallable0"), UserDefinedCallable_Environment: findType("UserDefinedCallable"), UserDefinedCallable_Environment_2: findType("UserDefinedCallable0"), UserDefinedCallable_dynamic: findType("UserDefinedCallable<@>"), UserDefinedCallable_dynamic_2: findType("UserDefinedCallable0<@>"), Value: findType("Value"), Value_2: findType("Value0"), Value_Function_List_Value: findType("Value(List)"), Value_Function_List_Value_2: findType("Value0(List)"), VariableDeclaration: findType("VariableDeclaration"), VariableDeclaration_2: findType("VariableDeclaration0"), VersionRange: findType("VersionRange"), WatchEvent: findType("WatchEvent"), WhereIterable_List_Iterable_ComplexSelectorComponent: findType("WhereIterable>>"), WhereIterable_List_Iterable_ComplexSelectorComponent_2: findType("WhereIterable>>"), WhereIterable_String: findType("WhereIterable"), WhereTypeIterable_PseudoSelector: findType("WhereTypeIterable"), WhereTypeIterable_PseudoSelector_2: findType("WhereTypeIterable"), WhereTypeIterable_String: findType("WhereTypeIterable"), _AsyncCompleter_Object: findType("_AsyncCompleter"), _AsyncCompleter_Stream_WatchEvent: findType("_AsyncCompleter>"), _AsyncCompleter_String: findType("_AsyncCompleter"), _AsyncCompleter_nullable_Object: findType("_AsyncCompleter"), _CompleterStream_WatchEvent: findType("_CompleterStream"), _EventRequest_dynamic: findType("_EventRequest<@>"), _Future_Object: findType("_Future"), _Future_Stream_WatchEvent: findType("_Future>"), _Future_String: findType("_Future"), _Future_bool: findType("_Future"), _Future_dynamic: findType("_Future<@>"), _Future_int: findType("_Future"), _Future_nullable_Object: findType("_Future"), _Future_void: findType("_Future<~>"), _Highlight: findType("_Highlight"), _IdentityHashMap_of_nullable_Object_and_nullable_Object: findType("_IdentityHashMap"), _LinkedIdentityHashSet_ComplexSelector: findType("_LinkedIdentityHashSet"), _LinkedIdentityHashSet_ComplexSelector_2: findType("_LinkedIdentityHashSet"), _LinkedIdentityHashSet_Extension: findType("_LinkedIdentityHashSet"), _LinkedIdentityHashSet_Extension_2: findType("_LinkedIdentityHashSet"), _MapEntry: findType("_MapEntry"), _NodeException: findType("_NodeException"), _SyncStarIterable_Extension: findType("_SyncStarIterable"), _SyncStarIterable_Extension_2: findType("_SyncStarIterable"), _SyncStarIterable_SimpleSelector: findType("_SyncStarIterable"), _SyncStarIterable_SimpleSelector_2: findType("_SyncStarIterable"), _SyncStarIterable_String: findType("_SyncStarIterable"), bool: findType("bool"), double: findType("double"), dynamic: findType("@"), dynamic_Function: findType("@()"), dynamic_Function_Object: findType("@(Object)"), dynamic_Function_Object_StackTrace: findType("@(Object,StackTrace)"), int: findType("int"), legacy_Never: findType("0&*"), legacy_Object: findType("Object*"), nullable_AstNode: findType("AstNode?"), nullable_AstNode_2: findType("AstNode0?"), nullable_Future_Null: findType("Future?"), nullable_Future_void: findType("Future<~>?"), nullable_ImporterResult: findType("ImporterResult0?"), nullable_Object: findType("Object?"), nullable_Record_2_String_and_String: findType("+(String,String)?"), nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl: findType("+originalUrl(AsyncImporter,Uri,Uri)?"), nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2: findType("+originalUrl(AsyncImporter0,Uri,Uri)?"), nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl: findType("+originalUrl(Importer,Uri,Uri)?"), nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2: findType("+originalUrl(Importer0,Uri,Uri)?"), nullable_Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency: findType("+importer,isDependency(Stylesheet,AsyncImporter?,bool)?"), nullable_Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency_2: findType("+importer,isDependency(Stylesheet0,AsyncImporter0?,bool)?"), nullable_Record_3_int_and_String_and_nullable_String: findType("+(int,String,String?)?"), nullable_SourceFile: findType("SourceFile?"), nullable_SourceSpan: findType("SourceSpan?"), nullable_StreamSubscription_WatchEvent: findType("StreamSubscription?"), nullable_String: findType("String?"), nullable_Stylesheet: findType("Stylesheet?"), nullable_StylesheetNode: findType("StylesheetNode?"), nullable_Stylesheet_2: findType("Stylesheet0?"), nullable_Uri: findType("Uri?"), nullable_Value: findType("Value?"), nullable_Value_2: findType("Value0?"), nullable__ConstructorOptions: findType("_ConstructorOptions?"), nullable__ConstructorOptions_2: findType("_ConstructorOptions0?"), nullable__ConstructorOptions_3: findType("_ConstructorOptions1?"), nullable__Highlight: findType("_Highlight?"), num: findType("num"), void: findType("~"), void_Function_Object: findType("~(Object)"), void_Function_Object_StackTrace: findType("~(Object,StackTrace)") }; })(); (function constants() { var makeConstList = hunkHelpers.makeConstList; B.Interceptor_methods = J.Interceptor.prototype; B.JSArray_methods = J.JSArray.prototype; B.JSInt_methods = J.JSInt.prototype; B.JSNull_methods = J.JSNull.prototype; B.JSNumber_methods = J.JSNumber.prototype; B.JSString_methods = J.JSString.prototype; B.JavaScriptFunction_methods = J.JavaScriptFunction.prototype; B.JavaScriptObject_methods = J.JavaScriptObject.prototype; B.NativeUint32List_methods = A.NativeUint32List.prototype; B.NativeUint8List_methods = A.NativeUint8List.prototype; B.PlainJavaScriptObject_methods = J.PlainJavaScriptObject.prototype; B.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype; B.AsciiEncoder_127 = new A.AsciiEncoder(127); B.C_EmptyUnmodifiableSet1 = new A.EmptyUnmodifiableSet(A.findType("EmptyUnmodifiableSet")); B.AtRootQuery_UsS = new A.AtRootQuery(false, B.C_EmptyUnmodifiableSet1, false, true); B.AtRootQuery_UsS0 = new A.AtRootQuery0(false, B.C_EmptyUnmodifiableSet1, false, true); B.AttributeOperator_8aB = new A.AttributeOperator("*=", "substring"); B.AttributeOperator_8aB0 = new A.AttributeOperator0("*=", "substring"); B.AttributeOperator_BGd = new A.AttributeOperator("$=", "suffix"); B.AttributeOperator_BGd0 = new A.AttributeOperator0("$=", "suffix"); B.AttributeOperator_ES6 = new A.AttributeOperator("=", "equal"); B.AttributeOperator_ES60 = new A.AttributeOperator0("=", "equal"); B.AttributeOperator_eot = new A.AttributeOperator("^=", "prefix"); B.AttributeOperator_eot0 = new A.AttributeOperator0("^=", "prefix"); B.AttributeOperator_ivT = new A.AttributeOperator("|=", "dash"); B.AttributeOperator_ivT0 = new A.AttributeOperator0("|=", "dash"); B.AttributeOperator_r60 = new A.AttributeOperator("~=", "include"); B.AttributeOperator_r600 = new A.AttributeOperator0("~=", "include"); B.BinaryOperator_2jN = new A.BinaryOperator("single equals", "=", 0, false, "singleEquals"); B.BinaryOperator_2jN0 = new A.BinaryOperator0("single equals", "=", 0, false, "singleEquals"); B.BinaryOperator_7Tg = new A.BinaryOperator("greater than or equals", ">=", 4, false, "greaterThanOrEquals"); B.BinaryOperator_7Tg0 = new A.BinaryOperator0("greater than or equals", ">=", 4, false, "greaterThanOrEquals"); B.BinaryOperator_M6L = new A.BinaryOperator("or", "or", 1, true, "or"); B.BinaryOperator_M6L0 = new A.BinaryOperator0("or", "or", 1, true, "or"); B.BinaryOperator_OTG = new A.BinaryOperator("modulo", "%", 6, false, "modulo"); B.BinaryOperator_OTG0 = new A.BinaryOperator0("modulo", "%", 6, false, "modulo"); B.BinaryOperator_SNp = new A.BinaryOperator("and", "and", 2, true, "and"); B.BinaryOperator_SNp0 = new A.BinaryOperator0("and", "and", 2, true, "and"); B.BinaryOperator_U8c = new A.BinaryOperator("less than", "<", 4, false, "lessThan"); B.BinaryOperator_U8c0 = new A.BinaryOperator0("less than", "<", 4, false, "lessThan"); B.BinaryOperator_ViB = new A.BinaryOperator("not equals", "!=", 3, false, "notEquals"); B.BinaryOperator_ViB0 = new A.BinaryOperator0("not equals", "!=", 3, false, "notEquals"); B.BinaryOperator_anB = new A.BinaryOperator("plus", "+", 5, true, "plus"); B.BinaryOperator_anB0 = new A.BinaryOperator0("plus", "+", 5, true, "plus"); B.BinaryOperator_cIH = new A.BinaryOperator("greater than", ">", 4, false, "greaterThan"); B.BinaryOperator_cIH0 = new A.BinaryOperator0("greater than", ">", 4, false, "greaterThan"); B.BinaryOperator_kpg = new A.BinaryOperator("less than or equals", "<=", 4, false, "lessThanOrEquals"); B.BinaryOperator_kpg0 = new A.BinaryOperator0("less than or equals", "<=", 4, false, "lessThanOrEquals"); B.BinaryOperator_olz = new A.BinaryOperator("minus", "-", 5, false, "minus"); B.BinaryOperator_olz0 = new A.BinaryOperator0("minus", "-", 5, false, "minus"); B.BinaryOperator_qN2 = new A.BinaryOperator("times", "*", 6, true, "times"); B.BinaryOperator_qN20 = new A.BinaryOperator0("times", "*", 6, true, "times"); B.BinaryOperator_ql5 = new A.BinaryOperator("equals", "==", 3, false, "equals"); B.BinaryOperator_ql50 = new A.BinaryOperator0("equals", "==", 3, false, "equals"); B.BinaryOperator_t8B = new A.BinaryOperator("divided by", "/", 6, false, "dividedBy"); B.BinaryOperator_t8B0 = new A.BinaryOperator0("divided by", "/", 6, false, "dividedBy"); B.CONSTANT = new A.Instantiation1(A.math0__max$closure(), A.findType("Instantiation1")); B.C_AsciiCodec = new A.AsciiCodec(); B.C_AsciiGlyphSet = new A.AsciiGlyphSet(); B.C_Base64Encoder = new A.Base64Encoder(); B.C_Base64Codec = new A.Base64Codec(); B.C_DefaultEquality = new A.DefaultEquality(); B.C_EmptyExtensionStore = new A.EmptyExtensionStore(); B.C_EmptyExtensionStore0 = new A.EmptyExtensionStore0(); B.C_EmptyIterator = new A.EmptyIterator(); B.C_EmptyUnmodifiableSet = new A.EmptyUnmodifiableSet(A.findType("EmptyUnmodifiableSet")); B.C_EmptyUnmodifiableSet0 = new A.EmptyUnmodifiableSet(A.findType("EmptyUnmodifiableSet")); B.C_IterableEquality = new A.IterableEquality(); B.C_JS_CONST = function getTagFallback(o) { var s = Object.prototype.toString.call(o); return s.substring(8, s.length - 1); }; B.C_JS_CONST0 = function() { var toStringFunction = Object.prototype.toString; function getTag(o) { var s = toStringFunction.call(o); return s.substring(8, s.length - 1); } function getUnknownTag(object, tag) { if (/^HTML[A-Z].*Element$/.test(tag)) { var name = toStringFunction.call(object); if (name == "[object Object]") return null; return "HTMLElement"; } } function getUnknownTagGenericBrowser(object, tag) { if (object instanceof HTMLElement) return "HTMLElement"; return getUnknownTag(object, tag); } function prototypeForTag(tag) { if (typeof window == "undefined") return null; if (typeof window[tag] == "undefined") return null; var constructor = window[tag]; if (typeof constructor != "function") return null; return constructor.prototype; } function discriminator(tag) { return null; } var isBrowser = typeof HTMLElement == "function"; return { getTag: getTag, getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag, prototypeForTag: prototypeForTag, discriminator: discriminator }; }; B.C_JS_CONST6 = function(getTagFallback) { return function(hooks) { if (typeof navigator != "object") return hooks; var userAgent = navigator.userAgent; if (typeof userAgent != "string") return hooks; if (userAgent.indexOf("DumpRenderTree") >= 0) return hooks; if (userAgent.indexOf("Chrome") >= 0) { function confirm(p) { return typeof window == "object" && window[p] && window[p].name == p; } if (confirm("Window") && confirm("HTMLElement")) return hooks; } hooks.getTag = getTagFallback; }; }; B.C_JS_CONST1 = function(hooks) { if (typeof dartExperimentalFixupGetTag != "function") return hooks; hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); }; B.C_JS_CONST5 = function(hooks) { if (typeof navigator != "object") return hooks; var userAgent = navigator.userAgent; if (typeof userAgent != "string") return hooks; if (userAgent.indexOf("Firefox") == -1) return hooks; var getTag = hooks.getTag; var quickMap = { "BeforeUnloadEvent": "Event", "DataTransfer": "Clipboard", "GeoGeolocation": "Geolocation", "Location": "!Location", "WorkerMessageEvent": "MessageEvent", "XMLDocument": "!Document"}; function getTagFirefox(o) { var tag = getTag(o); return quickMap[tag] || tag; } hooks.getTag = getTagFirefox; }; B.C_JS_CONST4 = function(hooks) { if (typeof navigator != "object") return hooks; var userAgent = navigator.userAgent; if (typeof userAgent != "string") return hooks; if (userAgent.indexOf("Trident/") == -1) return hooks; var getTag = hooks.getTag; var quickMap = { "BeforeUnloadEvent": "Event", "DataTransfer": "Clipboard", "HTMLDDElement": "HTMLElement", "HTMLDTElement": "HTMLElement", "HTMLPhraseElement": "HTMLElement", "Position": "Geoposition" }; function getTagIE(o) { var tag = getTag(o); var newTag = quickMap[tag]; if (newTag) return newTag; if (tag == "Object") { if (window.DataView && (o instanceof window.DataView)) return "DataView"; } return tag; } function prototypeForTagIE(tag) { var constructor = window[tag]; if (constructor == null) return null; return constructor.prototype; } hooks.getTag = getTagIE; hooks.prototypeForTag = prototypeForTagIE; }; B.C_JS_CONST2 = function(hooks) { var getTag = hooks.getTag; var prototypeForTag = hooks.prototypeForTag; function getTagFixed(o) { var tag = getTag(o); if (tag == "Document") { if (!!o.xmlVersion) return "!Document"; return "!HTMLDocument"; } return tag; } function prototypeForTagFixed(tag) { if (tag == "Document") return null; return prototypeForTag(tag); } hooks.getTag = getTagFixed; hooks.prototypeForTag = prototypeForTagFixed; }; B.C_JS_CONST3 = function(hooks) { return hooks; } ; B.C_JsonCodec = new A.JsonCodec(); B.C_ListEquality0 = new A.ListEquality(); B.C_ListEquality = new A.ListEquality(); B.C_MapEquality = new A.MapEquality(); B.C_OutOfMemoryError = new A.OutOfMemoryError(); B.C_SentinelValue = new A.SentinelValue(); B.C_UnicodeGlyphSet = new A.UnicodeGlyphSet(); B.C_Utf8Codec = new A.Utf8Codec(); B.C_Utf8Encoder = new A.Utf8Encoder(); B.C__DelayedDone = new A._DelayedDone(); B.C__HasContentVisitor = new A._HasContentVisitor(); B.C__HasContentVisitor0 = new A._HasContentVisitor0(); B.C__IsUselessVisitor = new A._IsUselessVisitor(); B.C__IsUselessVisitor0 = new A._IsUselessVisitor0(); B.C__JSRandom = new A._JSRandom(); B.C__MakeExpressionCalculationSafe = new A._MakeExpressionCalculationSafe(); B.C__MakeExpressionCalculationSafe0 = new A._MakeExpressionCalculationSafe0(); B.C__ParentSelectorVisitor = new A._ParentSelectorVisitor(); B.C__ParentSelectorVisitor0 = new A._ParentSelectorVisitor0(); B.C__Required = new A._Required(); B.C__RootZone = new A._RootZone(); B.C__SassNull = new A._SassNull(); B.C__SassNull0 = new A._SassNull0(); B.CalculationOperator_2bx = new A.CalculationOperator("minus", "-", 1, "minus"); B.CalculationOperator_2bx0 = new A.CalculationOperator0("minus", "-", 1, "minus"); B.CalculationOperator_IyK = new A.CalculationOperator("plus", "+", 1, "plus"); B.CalculationOperator_IyK0 = new A.CalculationOperator0("plus", "+", 1, "plus"); B.CalculationOperator_OvN = new A.CalculationOperator("divided by", "/", 2, "dividedBy"); B.CalculationOperator_OvN0 = new A.CalculationOperator0("divided by", "/", 2, "dividedBy"); B.CalculationOperator_jFr = new A.CalculationOperator("times", "*", 2, "times"); B.CalculationOperator_jFr0 = new A.CalculationOperator0("times", "*", 2, "times"); B.ChangeType_add = new A.ChangeType("add"); B.ChangeType_modify = new A.ChangeType("modify"); B.ChangeType_remove = new A.ChangeType("remove"); B.Combinator_4QF = new A.Combinator("+", "nextSibling"); B.Combinator_4QF0 = new A.Combinator0("+", "nextSibling"); B.Combinator_Cht = new A.Combinator(">", "child"); B.Combinator_Cht0 = new A.Combinator0(">", "child"); B.Combinator_Htt = new A.Combinator("~", "followingSibling"); B.Combinator_Htt0 = new A.Combinator0("~", "followingSibling"); B.Object_empty = {}; B.Map_empty17 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); B.Configuration_Map_empty_null = new A.Configuration(B.Map_empty17, null); B.Map_empty18 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); B.Configuration_Map_empty_null0 = new A.Configuration0(B.Map_empty18, null); B.Deprecation_043 = new A.Deprecation("abs-percent", "1.65.0", "Passing percentages to the Sass abs() function.", false, "absPercent"); B.Deprecation_0bn = new A.Deprecation0("function-units", false, "functionUnits"); B.Deprecation_4iQ = new A.Deprecation0("call-string", false, "callString"); B.Deprecation_8WR = new A.Deprecation("function-units", "1.56.0", "Passing invalid units to built-in functions.", false, "functionUnits"); B.Deprecation_Auo = new A.Deprecation("duplicate-var-flags", "1.62.0", "Using !default or !global multiple times for one variable.", false, "duplicateVariableFlags"); B.Deprecation_B8J = new A.Deprecation("import", null, "@import rules.", true, "import"); B.Deprecation_E5x = new A.Deprecation0("relative-canonical", false, "relativeCanonical"); B.Deprecation_EsU = new A.Deprecation0("strict-unary", false, "strictUnary"); B.Deprecation_GbU = new A.Deprecation0("moz-document", false, "mozDocument"); B.Deprecation_JAZ = new A.Deprecation("elseif", "1.3.2", "@elseif.", false, "elseif"); B.Deprecation_LT8 = new A.Deprecation0("color-module-compat", false, "colorModuleCompat"); B.Deprecation_UZD = new A.Deprecation0("null-alpha", false, "nullAlpha"); B.Deprecation_XV6 = new A.Deprecation0("bogus-combinators", false, "bogusCombinators"); B.Deprecation_elseif_false_elseif = new A.Deprecation0("elseif", false, "elseif"); B.Deprecation_gJ9 = new A.Deprecation("moz-document", "1.7.2", "@-moz-document.", false, "mozDocument"); B.Deprecation_hzy = new A.Deprecation("new-global", "1.17.2", "Declaring new variables with !global.", false, "newGlobal"); B.Deprecation_import_true_import = new A.Deprecation0("import", true, "import"); B.Deprecation_la6 = new A.Deprecation0("abs-percent", false, "absPercent"); B.Deprecation_mFp = new A.Deprecation("relative-canonical", "1.14.2", null, false, "relativeCanonical"); B.Deprecation_qVK = new A.Deprecation("call-string", "0.0.0", "Passing a string directly to meta.call().", false, "callString"); B.Deprecation_s4m = new A.Deprecation("color-module-compat", "1.23.0", "Using color module functions in place of plain CSS functions.", false, "colorModuleCompat"); B.Deprecation_sIK = new A.Deprecation("strict-unary", "1.55.0", "Ambiguous + and - operators.", false, "strictUnary"); B.Deprecation_vrR = new A.Deprecation("bogus-combinators", "1.54.0", "Leading, trailing, and repeated combinators.", false, "bogusCombinators"); B.Deprecation_wKk = new A.Deprecation0("new-global", false, "newGlobal"); B.Deprecation_wWh = new A.Deprecation0("slash-div", false, "slashDiv"); B.Deprecation_xHK = new A.Deprecation("slash-div", "1.33.0", "/ operator for division.", false, "slashDiv"); B.Deprecation_ynv = new A.Deprecation0("duplicate-var-flags", false, "duplicateVariableFlags"); B.Duration_0 = new A.Duration(0); B.ExtendMode_allTargets_allTargets = new A.ExtendMode("allTargets", "allTargets"); B.ExtendMode_allTargets_allTargets0 = new A.ExtendMode0("allTargets", "allTargets"); B.ExtendMode_normal_normal = new A.ExtendMode("normal", "normal"); B.ExtendMode_normal_normal0 = new A.ExtendMode0("normal", "normal"); B.ExtendMode_replace_replace = new A.ExtendMode("replace", "replace"); B.ExtendMode_replace_replace0 = new A.ExtendMode0("replace", "replace"); B.JsonEncoder_null = new A.JsonEncoder(null); B.LineFeed_SsD = new A.LineFeed0("lf", "\n", "lf"); B.LineFeed_gg4 = new A.LineFeed0("crlf", "\r\n", "crlf"); B.LineFeed_lf = new A.LineFeed("lf"); B.LineFeed_oyU = new A.LineFeed0("cr", "\r", "cr"); B.LineFeed_t2a = new A.LineFeed0("lfcr", "\n\r", "lfcr"); B.ListSeparator_EVt = new A.ListSeparator("space", " ", "space"); B.ListSeparator_EVt0 = new A.ListSeparator0("space", " ", "space"); B.ListSeparator_rXA = new A.ListSeparator("comma", ",", "comma"); B.ListSeparator_rXA0 = new A.ListSeparator0("comma", ",", "comma"); B.ListSeparator_undecided_null_undecided = new A.ListSeparator("undecided", null, "undecided"); B.ListSeparator_undecided_null_undecided0 = new A.ListSeparator0("undecided", null, "undecided"); B.ListSeparator_zg9 = new A.ListSeparator("slash", "/", "slash"); B.ListSeparator_zg90 = new A.ListSeparator0("slash", "/", "slash"); B.Deprecation_7XU = new A.Deprecation("null-alpha", "1.62.3", "Passing null as alpha in the JS API.", false, "nullAlpha"); B.Deprecation_WbD = new A.Deprecation("calc-interp", null, null, false, "calcInterp"); B.Deprecation_A0N = new A.Deprecation("user-authored", null, null, false, "userAuthored"); B.List_GN8 = A._setArrayType(makeConstList([B.Deprecation_qVK, B.Deprecation_JAZ, B.Deprecation_gJ9, B.Deprecation_mFp, B.Deprecation_hzy, B.Deprecation_s4m, B.Deprecation_xHK, B.Deprecation_vrR, B.Deprecation_sIK, B.Deprecation_8WR, B.Deprecation_043, B.Deprecation_Auo, B.Deprecation_7XU, B.Deprecation_WbD, B.Deprecation_B8J, B.Deprecation_A0N]), A.findType("JSArray")); B.List_M1A = A._setArrayType(makeConstList([0, 0, 24576, 1023, 65534, 34815, 65534, 18431]), type$.JSArray_int); B.List_MMm = A._setArrayType(makeConstList([0, 0, 26624, 1023, 65534, 2047, 65534, 2047]), type$.JSArray_int); B.List_OL3 = A._setArrayType(makeConstList([0, 0, 32722, 12287, 65534, 34815, 65534, 18431]), type$.JSArray_int); B.List_XRg0 = A._setArrayType(makeConstList([0, 0, 32722, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_int); B.List_XRg = A._setArrayType(makeConstList([0, 0, 65490, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_int); B.List_YmH = A._setArrayType(makeConstList([0, 0, 32776, 33792, 1, 10240, 0, 0]), type$.JSArray_int); B.List_cUt = A._setArrayType(makeConstList([B.CalculationOperator_IyK0, B.CalculationOperator_2bx0, B.CalculationOperator_jFr0, B.CalculationOperator_OvN0]), A.findType("JSArray")); B.List_ejq = A._setArrayType(makeConstList([0, 0, 32754, 11263, 65534, 34815, 65534, 18431]), type$.JSArray_int); B.List_empty11 = A._setArrayType(makeConstList([]), type$.JSArray_Argument); B.List_empty22 = A._setArrayType(makeConstList([]), type$.JSArray_Argument_2); B.List_empty24 = A._setArrayType(makeConstList([]), type$.JSArray_AsyncCallable_2); B.List_empty25 = A._setArrayType(makeConstList([]), type$.JSArray_AsyncImporter); B.List_empty2 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelector); B.List_empty15 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelector_2); B.List_empty0 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelectorComponent); B.List_empty13 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelectorComponent_2); B.List_empty10 = A._setArrayType(makeConstList([]), type$.JSArray_ConfiguredVariable); B.List_empty21 = A._setArrayType(makeConstList([]), type$.JSArray_ConfiguredVariable_2); B.List_empty3 = A._setArrayType(makeConstList([]), type$.JSArray_CssNode); B.List_empty16 = A._setArrayType(makeConstList([]), type$.JSArray_CssNode_2); B.List_empty1 = A._setArrayType(makeConstList([]), type$.JSArray_CssValue_Combinator); B.List_empty14 = A._setArrayType(makeConstList([]), type$.JSArray_CssValue_Combinator_2); B.List_empty9 = A._setArrayType(makeConstList([]), type$.JSArray_Expression); B.List_empty20 = A._setArrayType(makeConstList([]), type$.JSArray_Expression_2); B.List_empty5 = A._setArrayType(makeConstList([]), type$.JSArray_Extension); B.List_empty17 = A._setArrayType(makeConstList([]), type$.JSArray_Extension_2); B.List_empty23 = A._setArrayType(makeConstList([]), type$.JSArray_Importer); B.List_empty7 = A._setArrayType(makeConstList([]), A.findType("JSArray>")); B.List_empty18 = A._setArrayType(makeConstList([]), A.findType("JSArray>")); B.List_empty12 = A._setArrayType(makeConstList([]), type$.JSArray_Statement); B.List_empty = A._setArrayType(makeConstList([]), type$.JSArray_String); B.List_empty8 = A._setArrayType(makeConstList([]), type$.JSArray_Value); B.List_empty19 = A._setArrayType(makeConstList([]), type$.JSArray_Value_2); B.List_empty4 = A._setArrayType(makeConstList([]), type$.JSArray_int); B.List_empty6 = A._setArrayType(makeConstList([]), type$.JSArray_dynamic); B.Object_gR2 = {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}; B.Set_UGQ3 = new A.ConstantStringSet(B.Object_gR2, 49, type$.ConstantStringSet_String); B.Object_wEo = {deg: 0, grad: 1, rad: 2, turn: 3}; B.Set_gf1m2 = new A.ConstantStringSet(B.Object_wEo, 4, type$.ConstantStringSet_String); B.Object_s_0_ms_1 = {s: 0, ms: 1}; B.Set_23h = new A.ConstantStringSet(B.Object_s_0_ms_1, 2, type$.ConstantStringSet_String); B.Object_hz_0_khz_1 = {hz: 0, khz: 1}; B.Set_AKW81 = new A.ConstantStringSet(B.Object_hz_0_khz_1, 2, type$.ConstantStringSet_String); B.Object_f7G = {dpi: 0, dpcm: 1, dppx: 2}; B.Set_wDQui = new A.ConstantStringSet(B.Object_f7G, 3, type$.ConstantStringSet_String); B.List_gyp = A._setArrayType(makeConstList([B.Set_UGQ3, B.Set_gf1m2, B.Set_23h, B.Set_AKW81, B.Set_wDQui]), A.findType("JSArray>")); B.List_oFp = A._setArrayType(makeConstList([0, 0, 65490, 45055, 65535, 34815, 65534, 18431]), type$.JSArray_int); B.List_yzX = A._setArrayType(makeConstList([0, 0, 27858, 1023, 65534, 51199, 65535, 32767]), type$.JSArray_int); B.Map_empty7 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap,List>")); B.Map_empty0 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap,List>")); B.Map_empty2 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap,List>")); B.Map_empty15 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap,List>")); B.Map_empty9 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap,List>")); B.Map_empty11 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap,List>")); B.Map_empty4 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); B.Map_empty12 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); B.Map_empty6 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); B.Map_empty14 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); B.Map_empty8 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap>")); B.Map_empty1 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap>")); B.Map_empty16 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap>")); B.Map_empty10 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap>")); B.Map_empty5 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); B.Map_empty13 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); B.Map_empty3 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); B.Map_empty = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); B.Object_UMI = {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}; B.Object_MIo = {in: 0, cm: 1, pc: 2, mm: 3, q: 4, pt: 5, px: 6}; B.Map_scaO3 = new A.ConstantStringMap(B.Object_MIo, [1, 0.39370078740157477, 0.16666666666666666, 0.03937007874015748, 0.00984251968503937, 0.013888888888888888, 0.010416666666666666], type$.ConstantStringMap_String_double); B.Map_scsoL = new A.ConstantStringMap(B.Object_MIo, [2.54, 1, 0.42333333333333334, 0.1, 0.025, 0.035277777777777776, 0.026458333333333334], type$.ConstantStringMap_String_double); B.Map_sci7B = new A.ConstantStringMap(B.Object_MIo, [6, 2.3622047244094486, 1, 0.2362204724409449, 0.05905511811023623, 0.08333333333333333, 0.0625], type$.ConstantStringMap_String_double); B.Map_sc8pl = new A.ConstantStringMap(B.Object_MIo, [25.4, 10, 4.233333333333333, 1, 0.25, 0.35277777777777775, 0.26458333333333334], type$.ConstantStringMap_String_double); B.Map_sckr3 = new A.ConstantStringMap(B.Object_MIo, [101.6, 40, 16.933333333333334, 4, 1, 1.411111111111111, 1.0583333333333333], type$.ConstantStringMap_String_double); B.Map_scaBQ = new A.ConstantStringMap(B.Object_MIo, [72, 28.346456692913385, 12, 2.834645669291339, 0.7086614173228347, 1, 0.75], type$.ConstantStringMap_String_double); B.Map_scGVy = new A.ConstantStringMap(B.Object_MIo, [96, 37.79527559055118, 16, 3.7795275590551185, 0.9448818897637796, 1.3333333333333333, 1], type$.ConstantStringMap_String_double); B.Map_ia0 = new A.ConstantStringMap(B.Object_wEo, [1, 0.9, 57.29577951308232, 360], type$.ConstantStringMap_String_double); B.Map_iaijl = new A.ConstantStringMap(B.Object_wEo, [1.1111111111111112, 1, 63.66197723675813, 400], type$.ConstantStringMap_String_double); B.Map_iaMqi = new A.ConstantStringMap(B.Object_wEo, [0.017453292519943295, 0.015707963267948967, 1, 6.283185307179586], type$.ConstantStringMap_String_double); B.Map_iaJel = new A.ConstantStringMap(B.Object_wEo, [0.002777777777777778, 0.0025, 0.15915494309189535, 1], type$.ConstantStringMap_String_double); B.Map_V0M2a = new A.ConstantStringMap(B.Object_s_0_ms_1, [1, 0.001], type$.ConstantStringMap_String_double); B.Map_V0nPR = new A.ConstantStringMap(B.Object_s_0_ms_1, [1000, 1], type$.ConstantStringMap_String_double); B.Object_Hz_0_kHz_1 = {Hz: 0, kHz: 1}; B.Map_8secN = new A.ConstantStringMap(B.Object_Hz_0_kHz_1, [1, 1000], type$.ConstantStringMap_String_double); B.Map_8sxHw = new A.ConstantStringMap(B.Object_Hz_0_kHz_1, [0.001, 1], type$.ConstantStringMap_String_double); B.Map_lyv9F = new A.ConstantStringMap(B.Object_f7G, [1, 2.54, 96], type$.ConstantStringMap_String_double); B.Map_lyhdB = new A.ConstantStringMap(B.Object_f7G, [0.39370078740157477, 1, 37.79527559055118], type$.ConstantStringMap_String_double); B.Map_lyCkv = new A.ConstantStringMap(B.Object_f7G, [0.010416666666666666, 0.026458333333333334, 1], type$.ConstantStringMap_String_double); B.Map_nfuzN = new A.ConstantStringMap(B.Object_UMI, [B.Map_scaO3, B.Map_scsoL, B.Map_sci7B, B.Map_sc8pl, B.Map_sckr3, B.Map_scaBQ, B.Map_scGVy, B.Map_ia0, B.Map_iaijl, B.Map_iaMqi, B.Map_iaJel, B.Map_V0M2a, B.Map_V0nPR, B.Map_8secN, B.Map_8sxHw, B.Map_lyv9F, B.Map_lyhdB, B.Map_lyCkv], A.findType("ConstantStringMap>")); B.Object_kaS = {length: 0, angle: 1, time: 2, frequency: 3, "pixel density": 4}; B.List_scn = A._setArrayType(makeConstList(["in", "cm", "pc", "mm", "q", "pt", "px"]), type$.JSArray_String); B.List_deg_grad_rad_turn = A._setArrayType(makeConstList(["deg", "grad", "rad", "turn"]), type$.JSArray_String); B.List_s_ms = A._setArrayType(makeConstList(["s", "ms"]), type$.JSArray_String); B.List_Hz_kHz = A._setArrayType(makeConstList(["Hz", "kHz"]), type$.JSArray_String); B.List_dpi_dpcm_dppx = A._setArrayType(makeConstList(["dpi", "dpcm", "dppx"]), type$.JSArray_String); B.Map_ws7dy = new A.ConstantStringMap(B.Object_kaS, [B.List_scn, B.List_deg_grad_rad_turn, B.List_s_ms, B.List_Hz_kHz, B.List_dpi_dpcm_dppx], A.findType("ConstantStringMap>")); B.OptionType_YwU = new A.OptionType("OptionType.single"); B.OptionType_nMZ = new A.OptionType("OptionType.flag"); B.OptionType_qyr = new A.OptionType("OptionType.multiple"); B.OutputStyle_0 = new A.OutputStyle("expanded"); B.OutputStyle_00 = new A.OutputStyle0("expanded"); B.OutputStyle_1 = new A.OutputStyle("compressed"); B.OutputStyle_10 = new A.OutputStyle0("compressed"); B.Map_empty19 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap>")); B.Record2_EmptyExtensionStore_Map_empty = new A._Record_2(B.C_EmptyExtensionStore, B.Map_empty19); B.Map_empty20 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap>")); B.Record2_EmptyExtensionStore_Map_empty0 = new A._Record_2(B.C_EmptyExtensionStore0, B.Map_empty20); B.SassBoolean_false = new A.SassBoolean(false); B.SassBoolean_false0 = new A.SassBoolean0(false); B.SassBoolean_true = new A.SassBoolean(true); B.SassBoolean_true0 = new A.SassBoolean0(true); B.SassList_Sof = new A.SassList(B.List_empty8, B.ListSeparator_rXA, false); B.SassList_Sof0 = new A.SassList(B.List_empty8, B.ListSeparator_rXA, true); B.SassList_Sof1 = new A.SassList0(B.List_empty19, B.ListSeparator_rXA0, false); B.SassList_Sof2 = new A.SassList0(B.List_empty19, B.ListSeparator_rXA0, true); B.SassList_nj9 = new A.SassList0(B.List_empty19, B.ListSeparator_undecided_null_undecided0, false); B.Map_empty21 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); B.SassMap_Map_empty = new A.SassMap(B.Map_empty21); B.Map_empty22 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); B.SassMap_Map_empty0 = new A.SassMap0(B.Map_empty22); B.Set_FIwG4 = new A.GeneralConstantSet([B.BinaryOperator_qN2, B.BinaryOperator_t8B, B.BinaryOperator_anB, B.BinaryOperator_olz], A.findType("GeneralConstantSet")); B.Set_FIwG40 = new A.GeneralConstantSet([B.BinaryOperator_qN20, B.BinaryOperator_t8B0, B.BinaryOperator_anB0, B.BinaryOperator_olz0], A.findType("GeneralConstantSet")); B.Object_sd2 = {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}; B.Set_WfnXb = new A.ConstantStringSet(B.Object_sd2, 17, type$.ConstantStringSet_String); B.Object_C0t = {is: 0, matches: 1, where: 2}; B.Set_aAXJu = new A.ConstantStringSet(B.Object_C0t, 3, type$.ConstantStringSet_String); B.Set_empty1 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet")); B.Set_empty5 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet")); B.Set_empty2 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet>")); B.Set_empty0 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet>")); B.Set_empty6 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet>")); B.Set_empty4 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet>")); B.Set_empty7 = new A.ConstantStringSet(B.Object_empty, 0, type$.ConstantStringSet_String); B.Set_empty3 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet")); B.Set_empty = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet")); B.StderrLogger_false = new A.StderrLogger(false); B.StderrLogger_false0 = new A.StderrLogger0(false); B.Symbol__containingUrl = new A.Symbol("_containingUrl"); B.Symbol__evaluationContext = new A.Symbol("_evaluationContext"); B.Symbol__extensions = new A.Symbol("_extensions"); B.Symbol__inImportRule = new A.Symbol("_inImportRule"); B.Symbol__none = new A.Symbol("_none"); B.Symbol__sourceSpecificity = new A.Symbol("_sourceSpecificity"); B.Symbol_call = new A.Symbol("call"); B.Syntax_CSS_css = new A.Syntax("CSS", "css"); B.Syntax_CSS_css0 = new A.Syntax0("CSS", "css"); B.Syntax_SCSS_scss = new A.Syntax("SCSS", "scss"); B.Syntax_SCSS_scss0 = new A.Syntax0("SCSS", "scss"); B.Syntax_Sass_sass = new A.Syntax("Sass", "sass"); B.Syntax_Sass_sass0 = new A.Syntax0("Sass", "sass"); B.Type_ByteBuffer_RkP = A.typeLiteral("ByteBuffer"); B.Type_ByteData_zNC = A.typeLiteral("ByteData"); B.Type_Float32List_LB7 = A.typeLiteral("Float32List"); B.Type_Float64List_LB7 = A.typeLiteral("Float64List"); B.Type_Int16List_uXf = A.typeLiteral("Int16List"); B.Type_Int32List_O50 = A.typeLiteral("Int32List"); B.Type_Int8List_ekJ = A.typeLiteral("Int8List"); B.Type_Object_xQ6 = A.typeLiteral("Object"); B.Type_Uint16List_2bx = A.typeLiteral("Uint16List"); B.Type_Uint32List_2bx = A.typeLiteral("Uint32List"); B.Type_Uint8ClampedList_Jik = A.typeLiteral("Uint8ClampedList"); B.Type_Uint8List_WLA = A.typeLiteral("Uint8List"); B.UnaryOperator_Ix1 = new A.UnaryOperator("divide", "/", "divide"); B.UnaryOperator_Ix10 = new A.UnaryOperator0("divide", "/", "divide"); B.UnaryOperator_TLI = new A.UnaryOperator("minus", "-", "minus"); B.UnaryOperator_TLI0 = new A.UnaryOperator0("minus", "-", "minus"); B.UnaryOperator_gg4 = new A.UnaryOperator("plus", "+", "plus"); B.UnaryOperator_gg40 = new A.UnaryOperator0("plus", "+", "plus"); B.UnaryOperator_not_not_not = new A.UnaryOperator("not", "not", "not"); B.UnaryOperator_not_not_not0 = new A.UnaryOperator0("not", "not", "not"); B.Utf8Decoder_false = new A.Utf8Decoder(false); B._ColorFormatEnum_hslFunction = new A._ColorFormatEnum("hslFunction"); B._ColorFormatEnum_hslFunction0 = new A._ColorFormatEnum0("hslFunction"); B._ColorFormatEnum_rgbFunction = new A._ColorFormatEnum("rgbFunction"); B._ColorFormatEnum_rgbFunction0 = new A._ColorFormatEnum0("rgbFunction"); B._IsBogusVisitor_false = new A._IsBogusVisitor(false); B._IsBogusVisitor_false0 = new A._IsBogusVisitor0(false); B._IsBogusVisitor_true = new A._IsBogusVisitor(true); B._IsBogusVisitor_true0 = new A._IsBogusVisitor0(true); B._IsInvisibleVisitor_false = new A._IsInvisibleVisitor0(false); B._IsInvisibleVisitor_false0 = new A._IsInvisibleVisitor2(false); B._IsInvisibleVisitor_false_false = new A._IsInvisibleVisitor(false, false); B._IsInvisibleVisitor_false_false0 = new A._IsInvisibleVisitor1(false, false); B._IsInvisibleVisitor_true = new A._IsInvisibleVisitor0(true); B._IsInvisibleVisitor_true0 = new A._IsInvisibleVisitor2(true); B._IsInvisibleVisitor_true_false = new A._IsInvisibleVisitor(true, false); B._IsInvisibleVisitor_true_false0 = new A._IsInvisibleVisitor1(true, false); B._IsInvisibleVisitor_true_true = new A._IsInvisibleVisitor(true, true); B._IsInvisibleVisitor_true_true0 = new A._IsInvisibleVisitor1(true, true); B._PathDirection_8Gl = new A._PathDirection("at root"); B._PathDirection_988 = new A._PathDirection("below root"); B._PathDirection_FIw = new A._PathDirection("reaches root"); B._PathDirection_ZGD = new A._PathDirection("above root"); B._PathRelation_different = new A._PathRelation("different"); B._PathRelation_equal = new A._PathRelation("equal"); B._PathRelation_inconclusive = new A._PathRelation("inconclusive"); B._PathRelation_within = new A._PathRelation("within"); B._SingletonCssMediaQueryMergeResult_0 = new A._SingletonCssMediaQueryMergeResult("empty"); B._SingletonCssMediaQueryMergeResult_00 = new A._SingletonCssMediaQueryMergeResult0("empty"); B._SingletonCssMediaQueryMergeResult_1 = new A._SingletonCssMediaQueryMergeResult("unrepresentable"); B._SingletonCssMediaQueryMergeResult_10 = new A._SingletonCssMediaQueryMergeResult0("unrepresentable"); B._StreamGroupState_canceled = new A._StreamGroupState("canceled"); B._StreamGroupState_dormant = new A._StreamGroupState("dormant"); B._StreamGroupState_listening = new A._StreamGroupState("listening"); B._StreamGroupState_paused = new A._StreamGroupState("paused"); B._StringStackTrace_3uE = new A._StringStackTrace(""); B._ZoneFunction_3bB = new A._ZoneFunction(B.C__RootZone, A.async___rootCreatePeriodicTimer$closure()); B._ZoneFunction_7G2 = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterBinaryCallback$closure()); B._ZoneFunction_Eeh = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterUnaryCallback$closure()); B._ZoneFunction_NMc = new A._ZoneFunction(B.C__RootZone, A.async___rootHandleUncaughtError$closure()); B._ZoneFunction__RootZone__rootCreateTimer = new A._ZoneFunction(B.C__RootZone, A.async___rootCreateTimer$closure()); B._ZoneFunction__RootZone__rootErrorCallback = new A._ZoneFunction(B.C__RootZone, A.async___rootErrorCallback$closure()); B._ZoneFunction__RootZone__rootFork = new A._ZoneFunction(B.C__RootZone, A.async___rootFork$closure()); B._ZoneFunction__RootZone__rootPrint = new A._ZoneFunction(B.C__RootZone, A.async___rootPrint$closure()); B._ZoneFunction__RootZone__rootRegisterCallback = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterCallback$closure()); B._ZoneFunction__RootZone__rootRun = new A._ZoneFunction(B.C__RootZone, A.async___rootRun$closure()); B._ZoneFunction__RootZone__rootRunBinary = new A._ZoneFunction(B.C__RootZone, A.async___rootRunBinary$closure()); B._ZoneFunction__RootZone__rootRunUnary = new A._ZoneFunction(B.C__RootZone, A.async___rootRunUnary$closure()); B._ZoneFunction__RootZone__rootScheduleMicrotask = new A._ZoneFunction(B.C__RootZone, A.async___rootScheduleMicrotask$closure()); B._ZoneSpecification_ALf = new A._ZoneSpecification(null, null, null, null, null, null, null, null, null, null, null, null, null); })(); (function staticFields() { $._JS_INTEROP_INTERCEPTOR_TAG = null; $.toStringVisiting = A._setArrayType([], type$.JSArray_Object); $.printToZone = null; $.Primitives__identityHashCodeProperty = null; $.BoundClosure__receiverFieldNameCache = null; $.BoundClosure__interceptorFieldNameCache = null; $.getTagFunction = null; $.alternateTagFunction = null; $.prototypeForTagFunction = null; $.dispatchRecordsForInstanceTags = null; $.interceptorsForUncacheableTags = null; $.initNativeDispatchFlag = null; $._Record__computedFieldKeys = A._setArrayType([], A.findType("JSArray?>")); $._nextCallback = null; $._lastCallback = null; $._lastPriorityCallback = null; $._isInCallbackLoop = false; $.Zone__current = B.C__RootZone; $._RootZone__rootDelegate = null; $.Uri__cachedBaseString = ""; $.Uri__cachedBaseUri = null; $._fs = null; $._currentUriBase = null; $._current = null; $._subselectorPseudos = A.LinkedHashSet_LinkedHashSet$_literal(["is", "matches", "where", "any", "nth-child", "nth-last-child"], type$.String); $._rootishPseudoClasses = A.LinkedHashSet_LinkedHashSet$_literal(["root", "scope", "host", "host-context"], type$.String); $._features = A.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.String); $._realCaseCache = function() { var t1 = type$.String; return A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); }(); $._selectorPseudoClasses = A.LinkedHashSet_LinkedHashSet$_literal(["not", "is", "matches", "where", "current", "any", "has", "host", "host-context"], type$.String); $._selectorPseudoElements = A.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.String); $._glyphs = B.C_UnicodeGlyphSet; $._rootishPseudoClasses0 = A.LinkedHashSet_LinkedHashSet$_literal(["root", "scope", "host", "host-context"], type$.String); $._realCaseCache0 = function() { var t1 = type$.String; return A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); }(); $._features0 = A.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.String); $._selectorPseudoClasses0 = A.LinkedHashSet_LinkedHashSet$_literal(["not", "is", "matches", "where", "current", "any", "has", "host", "host-context"], type$.String); $._selectorPseudoElements0 = A.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.String); $._subselectorPseudos0 = A.LinkedHashSet_LinkedHashSet$_literal(["is", "matches", "where", "any", "nth-child", "nth-last-child"], type$.String); })(); (function lazyInitializers() { var _lazyFinal = hunkHelpers.lazyFinal, _lazy = hunkHelpers.lazy; _lazyFinal($, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => A.getIsolateAffinityTag("_$dart_dartClosure")); _lazyFinal($, "nullFuture", "$get$nullFuture", () => B.C__RootZone.run$1$1(0, new A.nullFuture_closure(), A.findType("Future"))); _lazyFinal($, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn({ toString: function() { return "$receiver$"; } }))); _lazyFinal($, "TypeErrorDecoder_notClosurePattern", "$get$TypeErrorDecoder_notClosurePattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn({$method$: null, toString: function() { return "$receiver$"; } }))); _lazyFinal($, "TypeErrorDecoder_nullCallPattern", "$get$TypeErrorDecoder_nullCallPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn(null))); _lazyFinal($, "TypeErrorDecoder_nullLiteralCallPattern", "$get$TypeErrorDecoder_nullLiteralCallPattern", () => A.TypeErrorDecoder_extractPattern(function() { var $argumentsExpr$ = "$arguments$"; try { null.$method$($argumentsExpr$); } catch (e) { return e.message; } }())); _lazyFinal($, "TypeErrorDecoder_undefinedCallPattern", "$get$TypeErrorDecoder_undefinedCallPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn(void 0))); _lazyFinal($, "TypeErrorDecoder_undefinedLiteralCallPattern", "$get$TypeErrorDecoder_undefinedLiteralCallPattern", () => A.TypeErrorDecoder_extractPattern(function() { var $argumentsExpr$ = "$arguments$"; try { (void 0).$method$($argumentsExpr$); } catch (e) { return e.message; } }())); _lazyFinal($, "TypeErrorDecoder_nullPropertyPattern", "$get$TypeErrorDecoder_nullPropertyPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokePropertyErrorOn(null))); _lazyFinal($, "TypeErrorDecoder_nullLiteralPropertyPattern", "$get$TypeErrorDecoder_nullLiteralPropertyPattern", () => A.TypeErrorDecoder_extractPattern(function() { try { null.$method$; } catch (e) { return e.message; } }())); _lazyFinal($, "TypeErrorDecoder_undefinedPropertyPattern", "$get$TypeErrorDecoder_undefinedPropertyPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokePropertyErrorOn(void 0))); _lazyFinal($, "TypeErrorDecoder_undefinedLiteralPropertyPattern", "$get$TypeErrorDecoder_undefinedLiteralPropertyPattern", () => A.TypeErrorDecoder_extractPattern(function() { try { (void 0).$method$; } catch (e) { return e.message; } }())); _lazyFinal($, "_AsyncRun__scheduleImmediateClosure", "$get$_AsyncRun__scheduleImmediateClosure", () => A._AsyncRun__initializeScheduleImmediate()); _lazyFinal($, "Future__nullFuture", "$get$Future__nullFuture", () => A.findType("_Future")._as($.$get$nullFuture())); _lazyFinal($, "Future__falseFuture", "$get$Future__falseFuture", () => A._Future$zoneValue(false, B.C__RootZone, type$.bool)); _lazyFinal($, "_RootZone__rootMap", "$get$_RootZone__rootMap", () => { var t1 = type$.dynamic; return A.HashMap_HashMap(t1, t1); }); _lazyFinal($, "Utf8Decoder__decoder", "$get$Utf8Decoder__decoder", () => new A.Utf8Decoder__decoder_closure().call$0()); _lazyFinal($, "Utf8Decoder__decoderNonfatal", "$get$Utf8Decoder__decoderNonfatal", () => new A.Utf8Decoder__decoderNonfatal_closure().call$0()); _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)))); _lazyFinal($, "_Uri__isWindowsCached", "$get$_Uri__isWindowsCached", () => typeof process != "undefined" && Object.prototype.toString.call(process) == "[object process]" && process.platform == "win32"); _lazyFinal($, "_Uri__needsNoEncoding", "$get$_Uri__needsNoEncoding", () => A.RegExp_RegExp("^[\\-\\.0-9A-Z_a-z~]*$", false)); _lazy($, "_hasErrorStackProperty", "$get$_hasErrorStackProperty", () => new Error().stack != void 0); _lazyFinal($, "_hashSeed", "$get$_hashSeed", () => A.objectHashCode(B.Type_Object_xQ6)); _lazyFinal($, "_scannerTables", "$get$_scannerTables", () => A._createTables()); _lazyFinal($, "Option__invalidChars", "$get$Option__invalidChars", () => A.RegExp_RegExp("[ \\t\\r\\n\"'\\\\/]", false)); _lazyFinal($, "_isStrictMode", "$get$_isStrictMode", () => new A._isStrictMode_closure().call$0()); _lazyFinal($, "alwaysValid", "$get$alwaysValid", () => new A.alwaysValid_closure()); _lazyFinal($, "readline", "$get$readline", () => self.readline); _lazyFinal($, "windows", "$get$windows", () => A.Context_Context($.$get$Style_windows())); _lazyFinal($, "url", "$get$url", () => A.Context_Context($.$get$Style_url())); _lazyFinal($, "context", "$get$context", () => new A.Context($.$get$Style_platform(), null)); _lazyFinal($, "Style_posix", "$get$Style_posix", () => new A.PosixStyle(A.RegExp_RegExp("/", false), A.RegExp_RegExp("[^/]$", false), A.RegExp_RegExp("^/", false))); _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))); _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))); _lazyFinal($, "Style_platform", "$get$Style_platform", () => A.Style__getPlatformStyle()); _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)); _lazyFinal($, "completeVersion", "$get$completeVersion", () => A.RegExp_RegExp($.$get$startVersion().pattern + "$", false)); _lazyFinal($, "IfExpression_declaration", "$get$IfExpression_declaration", () => A.ArgumentDeclaration_ArgumentDeclaration$parse(string$.x40funct, null)); _lazyFinal($, "colorsByName", "$get$colorsByName", () => A.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", A.SassColor$rgb(154, 205, 50, 1), "yellow", A.SassColor$rgb(255, 255, 0, 1), "whitesmoke", A.SassColor$rgb(245, 245, 245, 1), "white", A.SassColor$rgb(255, 255, 255, 1), "wheat", A.SassColor$rgb(245, 222, 179, 1), "violet", A.SassColor$rgb(238, 130, 238, 1), "turquoise", A.SassColor$rgb(64, 224, 208, 1), "transparent", A.SassColor$rgb(0, 0, 0, 0), "tomato", A.SassColor$rgb(255, 99, 71, 1), "thistle", A.SassColor$rgb(216, 191, 216, 1), "teal", A.SassColor$rgb(0, 128, 128, 1), "tan", A.SassColor$rgb(210, 180, 140, 1), "steelblue", A.SassColor$rgb(70, 130, 180, 1), "springgreen", A.SassColor$rgb(0, 255, 127, 1), "snow", A.SassColor$rgb(255, 250, 250, 1), "slategrey", A.SassColor$rgb(112, 128, 144, 1), "slategray", A.SassColor$rgb(112, 128, 144, 1), "slateblue", A.SassColor$rgb(106, 90, 205, 1), "skyblue", A.SassColor$rgb(135, 206, 235, 1), "silver", A.SassColor$rgb(192, 192, 192, 1), "sienna", A.SassColor$rgb(160, 82, 45, 1), "seashell", A.SassColor$rgb(255, 245, 238, 1), "seagreen", A.SassColor$rgb(46, 139, 87, 1), "sandybrown", A.SassColor$rgb(244, 164, 96, 1), "salmon", A.SassColor$rgb(250, 128, 114, 1), "saddlebrown", A.SassColor$rgb(139, 69, 19, 1), "royalblue", A.SassColor$rgb(65, 105, 225, 1), "rosybrown", A.SassColor$rgb(188, 143, 143, 1), "red", A.SassColor$rgb(255, 0, 0, 1), "rebeccapurple", A.SassColor$rgb(102, 51, 153, 1), "purple", A.SassColor$rgb(128, 0, 128, 1), "powderblue", A.SassColor$rgb(176, 224, 230, 1), "plum", A.SassColor$rgb(221, 160, 221, 1), "pink", A.SassColor$rgb(255, 192, 203, 1), "peru", A.SassColor$rgb(205, 133, 63, 1), "peachpuff", A.SassColor$rgb(255, 218, 185, 1), "papayawhip", A.SassColor$rgb(255, 239, 213, 1), "palevioletred", A.SassColor$rgb(219, 112, 147, 1), "paleturquoise", A.SassColor$rgb(175, 238, 238, 1), "palegreen", A.SassColor$rgb(152, 251, 152, 1), "palegoldenrod", A.SassColor$rgb(238, 232, 170, 1), "orchid", A.SassColor$rgb(218, 112, 214, 1), "orangered", A.SassColor$rgb(255, 69, 0, 1), "orange", A.SassColor$rgb(255, 165, 0, 1), "olivedrab", A.SassColor$rgb(107, 142, 35, 1), "olive", A.SassColor$rgb(128, 128, 0, 1), "oldlace", A.SassColor$rgb(253, 245, 230, 1), "navy", A.SassColor$rgb(0, 0, 128, 1), "navajowhite", A.SassColor$rgb(255, 222, 173, 1), "moccasin", A.SassColor$rgb(255, 228, 181, 1), "mistyrose", A.SassColor$rgb(255, 228, 225, 1), "mintcream", A.SassColor$rgb(245, 255, 250, 1), "midnightblue", A.SassColor$rgb(25, 25, 112, 1), "mediumvioletred", A.SassColor$rgb(199, 21, 133, 1), "mediumturquoise", A.SassColor$rgb(72, 209, 204, 1), "mediumspringgreen", A.SassColor$rgb(0, 250, 154, 1), "mediumslateblue", A.SassColor$rgb(123, 104, 238, 1), "mediumseagreen", A.SassColor$rgb(60, 179, 113, 1), "mediumpurple", A.SassColor$rgb(147, 112, 219, 1), "mediumorchid", A.SassColor$rgb(186, 85, 211, 1), "mediumblue", A.SassColor$rgb(0, 0, 205, 1), "mediumaquamarine", A.SassColor$rgb(102, 205, 170, 1), "maroon", A.SassColor$rgb(128, 0, 0, 1), "magenta", A.SassColor$rgb(255, 0, 255, 1), "linen", A.SassColor$rgb(250, 240, 230, 1), "limegreen", A.SassColor$rgb(50, 205, 50, 1), "lime", A.SassColor$rgb(0, 255, 0, 1), "lightyellow", A.SassColor$rgb(255, 255, 224, 1), "lightsteelblue", A.SassColor$rgb(176, 196, 222, 1), "lightslategrey", A.SassColor$rgb(119, 136, 153, 1), "lightslategray", A.SassColor$rgb(119, 136, 153, 1), "lightskyblue", A.SassColor$rgb(135, 206, 250, 1), "lightseagreen", A.SassColor$rgb(32, 178, 170, 1), "lightsalmon", A.SassColor$rgb(255, 160, 122, 1), "lightpink", A.SassColor$rgb(255, 182, 193, 1), "lightgrey", A.SassColor$rgb(211, 211, 211, 1), "lightgreen", A.SassColor$rgb(144, 238, 144, 1), "lightgray", A.SassColor$rgb(211, 211, 211, 1), "lightgoldenrodyellow", A.SassColor$rgb(250, 250, 210, 1), "lightcyan", A.SassColor$rgb(224, 255, 255, 1), "lightcoral", A.SassColor$rgb(240, 128, 128, 1), "lightblue", A.SassColor$rgb(173, 216, 230, 1), "lemonchiffon", A.SassColor$rgb(255, 250, 205, 1), "lawngreen", A.SassColor$rgb(124, 252, 0, 1), "lavenderblush", A.SassColor$rgb(255, 240, 245, 1), "lavender", A.SassColor$rgb(230, 230, 250, 1), "khaki", A.SassColor$rgb(240, 230, 140, 1), "ivory", A.SassColor$rgb(255, 255, 240, 1), "indigo", A.SassColor$rgb(75, 0, 130, 1), "indianred", A.SassColor$rgb(205, 92, 92, 1), "hotpink", A.SassColor$rgb(255, 105, 180, 1), "honeydew", A.SassColor$rgb(240, 255, 240, 1), "grey", A.SassColor$rgb(128, 128, 128, 1), "greenyellow", A.SassColor$rgb(173, 255, 47, 1), "green", A.SassColor$rgb(0, 128, 0, 1), "gray", A.SassColor$rgb(128, 128, 128, 1), "goldenrod", A.SassColor$rgb(218, 165, 32, 1), "gold", A.SassColor$rgb(255, 215, 0, 1), "ghostwhite", A.SassColor$rgb(248, 248, 255, 1), "gainsboro", A.SassColor$rgb(220, 220, 220, 1), "fuchsia", A.SassColor$rgb(255, 0, 255, 1), "forestgreen", A.SassColor$rgb(34, 139, 34, 1), "floralwhite", A.SassColor$rgb(255, 250, 240, 1), "firebrick", A.SassColor$rgb(178, 34, 34, 1), "dodgerblue", A.SassColor$rgb(30, 144, 255, 1), "dimgrey", A.SassColor$rgb(105, 105, 105, 1), "dimgray", A.SassColor$rgb(105, 105, 105, 1), "deepskyblue", A.SassColor$rgb(0, 191, 255, 1), "deeppink", A.SassColor$rgb(255, 20, 147, 1), "darkviolet", A.SassColor$rgb(148, 0, 211, 1), "darkturquoise", A.SassColor$rgb(0, 206, 209, 1), "darkslategrey", A.SassColor$rgb(47, 79, 79, 1), "darkslategray", A.SassColor$rgb(47, 79, 79, 1), "darkslateblue", A.SassColor$rgb(72, 61, 139, 1), "darkseagreen", A.SassColor$rgb(143, 188, 143, 1), "darksalmon", A.SassColor$rgb(233, 150, 122, 1), "darkred", A.SassColor$rgb(139, 0, 0, 1), "darkorchid", A.SassColor$rgb(153, 50, 204, 1), "darkorange", A.SassColor$rgb(255, 140, 0, 1), "darkolivegreen", A.SassColor$rgb(85, 107, 47, 1), "darkmagenta", A.SassColor$rgb(139, 0, 139, 1), "darkkhaki", A.SassColor$rgb(189, 183, 107, 1), "darkgrey", A.SassColor$rgb(169, 169, 169, 1), "darkgreen", A.SassColor$rgb(0, 100, 0, 1), "darkgray", A.SassColor$rgb(169, 169, 169, 1), "darkgoldenrod", A.SassColor$rgb(184, 134, 11, 1), "darkcyan", A.SassColor$rgb(0, 139, 139, 1), "darkblue", A.SassColor$rgb(0, 0, 139, 1), "cyan", A.SassColor$rgb(0, 255, 255, 1), "crimson", A.SassColor$rgb(220, 20, 60, 1), "cornsilk", A.SassColor$rgb(255, 248, 220, 1), "cornflowerblue", A.SassColor$rgb(100, 149, 237, 1), "coral", A.SassColor$rgb(255, 127, 80, 1), "chocolate", A.SassColor$rgb(210, 105, 30, 1), "chartreuse", A.SassColor$rgb(127, 255, 0, 1), "cadetblue", A.SassColor$rgb(95, 158, 160, 1), "burlywood", A.SassColor$rgb(222, 184, 135, 1), "brown", A.SassColor$rgb(165, 42, 42, 1), "blueviolet", A.SassColor$rgb(138, 43, 226, 1), "blue", A.SassColor$rgb(0, 0, 255, 1), "blanchedalmond", A.SassColor$rgb(255, 235, 205, 1), "black", A.SassColor$rgb(0, 0, 0, 1), "bisque", A.SassColor$rgb(255, 228, 196, 1), "beige", A.SassColor$rgb(245, 245, 220, 1), "azure", A.SassColor$rgb(240, 255, 255, 1), "aquamarine", A.SassColor$rgb(127, 255, 212, 1), "aqua", A.SassColor$rgb(0, 255, 255, 1), "antiquewhite", A.SassColor$rgb(250, 235, 215, 1), "aliceblue", A.SassColor$rgb(240, 248, 255, 1)], type$.String, type$.SassColor)); _lazyFinal($, "namesByColor", "$get$namesByColor", () => { var $name, color, t1 = type$.SassColor, t2 = type$.String, t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t1 = A.MapExtensions_get_pairs($.$get$colorsByName(), t2, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) { t2 = t1.get$current(t1); $name = t2._0; color = t2._1; t3.$indexSet(0, color, $name); } return t3; }); _lazyFinal($, "ExecutableOptions__separatorBar", "$get$ExecutableOptions__separatorBar", () => A.isWindows() ? "=" : "\u2501"); _lazyFinal($, "ExecutableOptions__parser", "$get$ExecutableOptions__parser", () => new A.ExecutableOptions__parser_closure().call$0()); _lazyFinal($, "globalFunctions", "$get$globalFunctions", () => { var t1 = type$.BuiltInCallable, t2 = A.List_List$of($.$get$global0(), true, t1); B.JSArray_methods.addAll$1(t2, $.$get$global1()); B.JSArray_methods.addAll$1(t2, $.$get$global2()); B.JSArray_methods.addAll$1(t2, $.$get$global3()); B.JSArray_methods.addAll$1(t2, $.$get$global4()); B.JSArray_methods.addAll$1(t2, $.$get$global5()); B.JSArray_methods.addAll$1(t2, $.$get$global()); t2.push(A.BuiltInCallable$function("if", "$condition, $if-true, $if-false", new A.globalFunctions_closure(), null)); return A.UnmodifiableListView$(t2, t1); }); _lazyFinal($, "coreModules", "$get$coreModules", () => A.UnmodifiableListView$(A._setArrayType([$.$get$module(), $.$get$module0(), $.$get$module1(), $.$get$module2(), $.$get$module3(), $.$get$module4()], A.findType("JSArray>")), type$.BuiltInModule_Callable)); _lazyFinal($, "_microsoftFilterStart", "$get$_microsoftFilterStart", () => A.RegExp_RegExp("^[a-zA-Z]+\\s*=", false)); _lazyFinal($, "global", "$get$global0", () => { var _s27_ = "$red, $green, $blue, $alpha", _s19_ = "$red, $green, $blue", _s37_ = "$hue, $saturation, $lightness, $alpha", _s29_ = "$hue, $saturation, $lightness", _s17_ = "$hue, $saturation", _s15_ = "$color, $amount", t1 = type$.String, t2 = type$.Value_Function_List_Value; return A.UnmodifiableListView$(A._setArrayType([$.$get$_red(), $.$get$_green(), $.$get$_blue(), $.$get$_mix(), A.BuiltInCallable$overloadedFunction("rgb", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure0(), _s19_, new A.global_closure1(), "$color, $alpha", new A.global_closure2(), "$channels", new A.global_closure3()], t1, t2)), A.BuiltInCallable$overloadedFunction("rgba", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure4(), _s19_, new A.global_closure5(), "$color, $alpha", new A.global_closure6(), "$channels", new A.global_closure7()], t1, t2)), A._function4("invert", "$color, $weight: 100%", new A.global_closure8()), $.$get$_hue(), $.$get$_saturation(), $.$get$_lightness(), $.$get$_complement(), A.BuiltInCallable$overloadedFunction("hsl", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure9(), _s29_, new A.global_closure10(), _s17_, new A.global_closure11(), "$channels", new A.global_closure12()], t1, t2)), A.BuiltInCallable$overloadedFunction("hsla", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure13(), _s29_, new A.global_closure14(), _s17_, new A.global_closure15(), "$channels", new A.global_closure16()], t1, t2)), A._function4("grayscale", "$color", new A.global_closure17()), A._function4("adjust-hue", "$color, $degrees", new A.global_closure18()), A._function4("lighten", _s15_, new A.global_closure19()), A._function4("darken", _s15_, new A.global_closure20()), A.BuiltInCallable$overloadedFunction("saturate", A.LinkedHashMap_LinkedHashMap$_literal(["$amount", new A.global_closure21(), "$color, $amount", new A.global_closure22()], t1, t2)), A._function4("desaturate", _s15_, new A.global_closure23()), A._function4("opacify", _s15_, A.color0___opacify$closure()), A._function4("fade-in", _s15_, A.color0___opacify$closure()), A._function4("transparentize", _s15_, A.color0___transparentize$closure()), A._function4("fade-out", _s15_, A.color0___transparentize$closure()), A.BuiltInCallable$overloadedFunction("alpha", A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.global_closure24(), "$args...", new A.global_closure25()], t1, t2)), A._function4("opacity", "$color", new A.global_closure26()), $.$get$_ieHexStr(), $.$get$_adjust().withName$1("adjust-color"), $.$get$_scale().withName$1("scale-color"), $.$get$_change().withName$1("change-color")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable); }); _lazyFinal($, "module", "$get$module", () => { var _s9_ = "lightness", _s10_ = "saturation", _s6_ = "$color", _s5_ = "alpha", t1 = type$.String, t2 = type$.Value_Function_List_Value; return A.BuiltInModule$("color", A._setArrayType([$.$get$_red(), $.$get$_green(), $.$get$_blue(), $.$get$_mix(), A._function4("invert", "$color, $weight: 100%", new A.module_closure1()), $.$get$_hue(), $.$get$_saturation(), $.$get$_lightness(), $.$get$_complement(), 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._function4("grayscale", _s6_, new A.module_closure2()), A.BuiltInCallable$overloadedFunction("hwb", A.LinkedHashMap_LinkedHashMap$_literal(["$hue, $whiteness, $blackness, $alpha: 1", new A.module_closure3(), "$channels", new A.module_closure4()], t1, t2)), A._function4("whiteness", _s6_, new A.module_closure5()), A._function4("blackness", _s6_, new A.module_closure6()), 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_closure7(), "$args...", new A.module_closure8()], t1, t2)), A._function4("opacity", _s6_, new A.module_closure9()), $.$get$_adjust(), $.$get$_scale(), $.$get$_change(), $.$get$_ieHexStr()], type$.JSArray_Callable), null, null, type$.Callable); }); _lazyFinal($, "_red", "$get$_red", () => A._function4("red", "$color", new A._red_closure())); _lazyFinal($, "_green", "$get$_green", () => A._function4("green", "$color", new A._green_closure())); _lazyFinal($, "_blue", "$get$_blue", () => A._function4("blue", "$color", new A._blue_closure())); _lazyFinal($, "_mix", "$get$_mix", () => A._function4("mix", "$color1, $color2, $weight: 50%", new A._mix_closure())); _lazyFinal($, "_hue", "$get$_hue", () => A._function4("hue", "$color", new A._hue_closure())); _lazyFinal($, "_saturation", "$get$_saturation", () => A._function4("saturation", "$color", new A._saturation_closure())); _lazyFinal($, "_lightness", "$get$_lightness", () => A._function4("lightness", "$color", new A._lightness_closure())); _lazyFinal($, "_complement", "$get$_complement", () => A._function4("complement", "$color", new A._complement_closure())); _lazyFinal($, "_adjust", "$get$_adjust", () => A._function4("adjust", "$color, $kwargs...", new A._adjust_closure())); _lazyFinal($, "_scale", "$get$_scale", () => A._function4("scale", "$color, $kwargs...", new A._scale_closure())); _lazyFinal($, "_change", "$get$_change", () => A._function4("change", "$color, $kwargs...", new A._change_closure())); _lazyFinal($, "_ieHexStr", "$get$_ieHexStr", () => A._function4("ie-hex-str", "$color", new A._ieHexStr_closure())); _lazyFinal($, "global0", "$get$global1", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_length0(), $.$get$_nth(), $.$get$_setNth(), $.$get$_join(), $.$get$_append0(), $.$get$_zip(), $.$get$_index0(), $.$get$_isBracketed(), $.$get$_separator().withName$1("list-separator")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable)); _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)); _lazyFinal($, "_length", "$get$_length0", () => A._function3("length", "$list", new A._length_closure0())); _lazyFinal($, "_nth", "$get$_nth", () => A._function3("nth", "$list, $n", new A._nth_closure())); _lazyFinal($, "_setNth", "$get$_setNth", () => A._function3("set-nth", "$list, $n, $value", new A._setNth_closure())); _lazyFinal($, "_join", "$get$_join", () => A._function3("join", string$.x24list1, new A._join_closure())); _lazyFinal($, "_append", "$get$_append0", () => A._function3("append", "$list, $val, $separator: auto", new A._append_closure0())); _lazyFinal($, "_zip", "$get$_zip", () => A._function3("zip", "$lists...", new A._zip_closure())); _lazyFinal($, "_index", "$get$_index0", () => A._function3("index", "$list, $value", new A._index_closure0())); _lazyFinal($, "_separator", "$get$_separator", () => A._function3("separator", "$list", new A._separator_closure())); _lazyFinal($, "_isBracketed", "$get$_isBracketed", () => A._function3("is-bracketed", "$list", new A._isBracketed_closure())); _lazyFinal($, "_slash", "$get$_slash", () => A._function3("slash", "$elements...", new A._slash_closure())); _lazyFinal($, "global1", "$get$global2", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_get().withName$1("map-get"), $.$get$_merge().withName$1("map-merge"), $.$get$_remove().withName$1("map-remove"), $.$get$_keys().withName$1("map-keys"), $.$get$_values().withName$1("map-values"), $.$get$_hasKey().withName$1("map-has-key")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable)); _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)); _lazyFinal($, "_get", "$get$_get", () => A._function2("get", "$map, $key, $keys...", new A._get_closure())); _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))); _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))); _lazyFinal($, "_deepMerge", "$get$_deepMerge", () => A._function2("deep-merge", "$map1, $map2", new A._deepMerge_closure())); _lazyFinal($, "_deepRemove", "$get$_deepRemove", () => A._function2("deep-remove", "$map, $key, $keys...", new A._deepRemove_closure())); _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))); _lazyFinal($, "_keys", "$get$_keys", () => A._function2("keys", "$map", new A._keys_closure())); _lazyFinal($, "_values", "$get$_values", () => A._function2("values", "$map", new A._values_closure())); _lazyFinal($, "_hasKey", "$get$_hasKey", () => A._function2("has-key", "$map, $key, $keys...", new A._hasKey_closure())); _lazyFinal($, "global2", "$get$global3", () => A.UnmodifiableListView$(A._setArrayType([A._function1("abs", "$number", new A.global_closure()), $.$get$_ceil(), $.$get$_floor(), $.$get$_max(), $.$get$_min(), $.$get$_percentage(), $.$get$_randomFunction(), $.$get$_round(), $.$get$_unit(), $.$get$_compatible().withName$1("comparable"), $.$get$_isUnitless().withName$1("unitless")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable)); _lazyFinal($, "module2", "$get$module2", () => { var _null = null; 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); }); _lazyFinal($, "_ceil", "$get$_ceil", () => A._numberFunction("ceil", new A._ceil_closure())); _lazyFinal($, "_clamp", "$get$_clamp", () => A._function1("clamp", "$min, $number, $max", new A._clamp_closure())); _lazyFinal($, "_floor", "$get$_floor", () => A._numberFunction("floor", new A._floor_closure())); _lazyFinal($, "_max", "$get$_max", () => A._function1("max", "$numbers...", new A._max_closure())); _lazyFinal($, "_min", "$get$_min", () => A._function1("min", "$numbers...", new A._min_closure())); _lazyFinal($, "_round", "$get$_round", () => A._numberFunction("round", new A._round_closure())); _lazyFinal($, "_hypot", "$get$_hypot", () => A._function1("hypot", "$numbers...", new A._hypot_closure())); _lazyFinal($, "_log", "$get$_log", () => A._function1("log", "$number, $base: null", new A._log_closure())); _lazyFinal($, "_pow", "$get$_pow", () => A._function1("pow", "$base, $exponent", new A._pow_closure())); _lazyFinal($, "_sqrt", "$get$_sqrt", () => A._singleArgumentMathFunc("sqrt", A.number0__sqrt$closure())); _lazyFinal($, "_acos", "$get$_acos", () => A._singleArgumentMathFunc("acos", A.number0__acos$closure())); _lazyFinal($, "_asin", "$get$_asin", () => A._singleArgumentMathFunc("asin", A.number0__asin$closure())); _lazyFinal($, "_atan", "$get$_atan", () => A._singleArgumentMathFunc("atan", A.number0__atan$closure())); _lazyFinal($, "_atan2", "$get$_atan2", () => A._function1("atan2", "$y, $x", new A._atan2_closure())); _lazyFinal($, "_cos", "$get$_cos", () => A._singleArgumentMathFunc("cos", A.number0__cos$closure())); _lazyFinal($, "_sin", "$get$_sin", () => A._singleArgumentMathFunc("sin", A.number0__sin$closure())); _lazyFinal($, "_tan", "$get$_tan", () => A._singleArgumentMathFunc("tan", A.number0__tan$closure())); _lazyFinal($, "_compatible", "$get$_compatible", () => A._function1("compatible", "$number1, $number2", new A._compatible_closure())); _lazyFinal($, "_isUnitless", "$get$_isUnitless", () => A._function1("is-unitless", "$number", new A._isUnitless_closure())); _lazyFinal($, "_unit", "$get$_unit", () => A._function1("unit", "$number", new A._unit_closure())); _lazyFinal($, "_percentage", "$get$_percentage", () => A._function1("percentage", "$number", new A._percentage_closure())); _lazyFinal($, "_random", "$get$_random0", () => A.Random_Random()); _lazyFinal($, "_randomFunction", "$get$_randomFunction", () => A._function1("random", "$limit: null", new A._randomFunction_closure())); _lazyFinal($, "_div", "$get$_div", () => A._function1("div", "$number1, $number2", new A._div_closure())); _lazyFinal($, "global3", "$get$global", () => A.UnmodifiableListView$(A._setArrayType([A._function5("feature-exists", "$feature", new A.global_closure27()), A._function5("inspect", "$value", new A.global_closure28()), A._function5("type-of", "$value", new A.global_closure29()), A._function5("keywords", "$args", new A.global_closure30())], type$.JSArray_BuiltInCallable), type$.BuiltInCallable)); _lazyFinal($, "local", "$get$local", () => A.UnmodifiableListView$(A._setArrayType([A._function5("calc-name", "$calc", new A.local_closure()), A._function5("calc-args", "$calc", new A.local_closure0()), A._function5("accepts-content", "$mixin", new A.local_closure1())], type$.JSArray_BuiltInCallable), type$.BuiltInCallable)); _lazyFinal($, "global4", "$get$global4", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_isSuperselector(), $.$get$_simpleSelectors(), $.$get$_parse().withName$1("selector-parse"), $.$get$_nest().withName$1("selector-nest"), $.$get$_append().withName$1("selector-append"), $.$get$_extend().withName$1("selector-extend"), $.$get$_replace().withName$1("selector-replace"), $.$get$_unify().withName$1("selector-unify")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable)); _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)); _lazyFinal($, "_nest", "$get$_nest", () => A._function0("nest", "$selectors...", new A._nest_closure())); _lazyFinal($, "_append0", "$get$_append", () => A._function0("append", "$selectors...", new A._append_closure())); _lazyFinal($, "_extend", "$get$_extend", () => A._function0("extend", "$selector, $extendee, $extender", new A._extend_closure())); _lazyFinal($, "_replace", "$get$_replace", () => A._function0("replace", "$selector, $original, $replacement", new A._replace_closure())); _lazyFinal($, "_unify", "$get$_unify", () => A._function0("unify", "$selector1, $selector2", new A._unify_closure())); _lazyFinal($, "_isSuperselector", "$get$_isSuperselector", () => A._function0("is-superselector", "$super, $sub", new A._isSuperselector_closure())); _lazyFinal($, "_simpleSelectors", "$get$_simpleSelectors", () => A._function0("simple-selectors", "$selector", new A._simpleSelectors_closure())); _lazyFinal($, "_parse", "$get$_parse", () => A._function0("parse", "$selector", new A._parse_closure())); _lazyFinal($, "_random0", "$get$_random", () => A.Random_Random()); _lazy($, "_previousUniqueId", "$get$_previousUniqueId", () => $.$get$_random().nextInt$1(A._asInt(A.pow(36, 6)))); _lazyFinal($, "global5", "$get$global5", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_unquote(), $.$get$_quote(), $.$get$_toUpperCase(), $.$get$_toLowerCase(), $.$get$_uniqueId(), $.$get$_length().withName$1("str-length"), $.$get$_insert().withName$1("str-insert"), $.$get$_index().withName$1("str-index"), $.$get$_slice().withName$1("str-slice")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable)); _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._function("split", "$string, $separator, $limit: null", new A.module_closure())], type$.JSArray_Callable), null, null, type$.Callable)); _lazyFinal($, "_unquote", "$get$_unquote", () => A._function("unquote", "$string", new A._unquote_closure())); _lazyFinal($, "_quote", "$get$_quote", () => A._function("quote", "$string", new A._quote_closure())); _lazyFinal($, "_length0", "$get$_length", () => A._function("length", "$string", new A._length_closure())); _lazyFinal($, "_insert", "$get$_insert", () => A._function("insert", "$string, $insert, $index", new A._insert_closure())); _lazyFinal($, "_index0", "$get$_index", () => A._function("index", "$string, $substring", new A._index_closure())); _lazyFinal($, "_slice", "$get$_slice", () => A._function("slice", "$string, $start-at, $end-at: -1", new A._slice_closure())); _lazyFinal($, "_toUpperCase", "$get$_toUpperCase", () => A._function("to-upper-case", "$string", new A._toUpperCase_closure())); _lazyFinal($, "_toLowerCase", "$get$_toLowerCase", () => A._function("to-lower-case", "$string", new A._toLowerCase_closure())); _lazyFinal($, "_uniqueId", "$get$_uniqueId", () => A._function("unique-id", "", new A._uniqueId_closure())); _lazyFinal($, "_jsThrow", "$get$_jsThrow0", () => new self.Function("error", "throw error;")); _lazyFinal($, "Logger_quiet", "$get$Logger_quiet", () => new A._QuietLogger()); _lazyFinal($, "_disallowedFunctionNames", "$get$_disallowedFunctionNames", () => { var t1 = $.$get$globalFunctions(); t1 = t1.map$1$1(t1, new A._disallowedFunctionNames_closure(), type$.String).toSet$0(0); t1.add$1(0, "if"); t1.remove$1(0, "rgb"); t1.remove$1(0, "rgba"); t1.remove$1(0, "hsl"); t1.remove$1(0, "hsla"); t1.remove$1(0, "grayscale"); t1.remove$1(0, "invert"); t1.remove$1(0, "alpha"); t1.remove$1(0, "opacity"); t1.remove$1(0, "saturate"); t1.remove$1(0, "min"); t1.remove$1(0, "max"); t1.remove$1(0, "round"); t1.remove$1(0, "abs"); return t1; }); _lazyFinal($, "_epsilon", "$get$_epsilon", () => A.pow(10, -11)); _lazyFinal($, "_inverseEpsilon", "$get$_inverseEpsilon", () => A.pow(10, 11)); _lazyFinal($, "bogusSpan", "$get$bogusSpan", () => A.SourceFile$decoded(A._setArrayType([], type$.JSArray_int), null).span$1(0, 0)); _lazyFinal($, "_noSourceUrl", "$get$_noSourceUrl", () => A.Uri_parse("-")); _lazyFinal($, "_traces", "$get$_traces", () => A.Expando$()); _lazyFinal($, "_typesByUnit", "$get$_typesByUnit", () => { var t3, type, units, t1 = type$.String, t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t1 = A.MapExtensions_get_pairs(B.Map_ws7dy, t1, type$.List_String), t1 = t1.get$iterator(t1); t1.moveNext$0();) { t3 = t1.get$current(t1); type = t3._0; units = t3._1; for (t3 = J.get$iterator$ax(units); t3.moveNext$0();) t2.$indexSet(0, t3.get$current(t3), type); } return t2; }); _lazyFinal($, "_knownCompatibilitiesByUnit", "$get$_knownCompatibilitiesByUnit", () => { var _i, set, t2, t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, A.findType("Set")); for (_i = 0; _i < 5; ++_i) { set = B.List_gyp[_i]; for (t2 = set.get$iterator(set); t2.moveNext$0();) t1.$indexSet(0, t2.get$current(t2), set); } return t1; }); _lazyFinal($, "_emptyQuoted", "$get$_emptyQuoted", () => A.SassString$("", true)); _lazyFinal($, "_emptyUnquoted", "$get$_emptyUnquoted", () => A.SassString$("", false)); _lazyFinal($, "maxInt32", "$get$maxInt32", () => A._asInt(A.pow(2, 31)) - 1); _lazyFinal($, "minInt32", "$get$minInt32", () => -A._asInt(A.pow(2, 31))); _lazyFinal($, "_vmFrame", "$get$_vmFrame", () => A.RegExp_RegExp("^#\\d+\\s+(\\S.*) \\((.+?)((?::\\d+){0,2})\\)$", false)); _lazyFinal($, "_v8Frame", "$get$_v8Frame", () => A.RegExp_RegExp("^\\s*at (?:(\\S.*?)(?: \\[as [^\\]]+\\])? \\((.*)\\)|(.*))$", false)); _lazyFinal($, "_v8UrlLocation", "$get$_v8UrlLocation", () => A.RegExp_RegExp("^(.*?):(\\d+)(?::(\\d+))?$|native$", false)); _lazyFinal($, "_v8EvalLocation", "$get$_v8EvalLocation", () => A.RegExp_RegExp("^eval at (?:\\S.*?) \\((.*)\\)(?:, .*?:\\d+:\\d+)?$", false)); _lazyFinal($, "_firefoxEvalLocation", "$get$_firefoxEvalLocation", () => A.RegExp_RegExp("(\\S+)@(\\S+) line (\\d+) >.* (Function|eval):\\d+:\\d+", false)); _lazyFinal($, "_firefoxSafariFrame", "$get$_firefoxSafariFrame", () => A.RegExp_RegExp("^(?:([^@(/]*)(?:\\(.*\\))?((?:/[^/]*)*)(?:\\(.*\\))?@)?(.*?):(\\d*)(?::(\\d*))?$", false)); _lazyFinal($, "_friendlyFrame", "$get$_friendlyFrame", () => A.RegExp_RegExp("^(\\S+)(?: (\\d+)(?::(\\d+))?)?\\s+([^\\d].*)$", false)); _lazyFinal($, "_asyncBody", "$get$_asyncBody", () => A.RegExp_RegExp("<(|[^>]+)_async_body>", false)); _lazyFinal($, "_initialDot", "$get$_initialDot", () => A.RegExp_RegExp("^\\.", false)); _lazyFinal($, "Frame__uriRegExp", "$get$Frame__uriRegExp", () => A.RegExp_RegExp("^[a-zA-Z][-+.a-zA-Z\\d]*://", false)); _lazyFinal($, "Frame__windowsRegExp", "$get$Frame__windowsRegExp", () => A.RegExp_RegExp("^([a-zA-Z]:[\\\\/]|\\\\\\\\)", false)); _lazyFinal($, "_terseRegExp", "$get$_terseRegExp", () => A.RegExp_RegExp("(-patch)?([/\\\\].*)?$", false)); _lazyFinal($, "_v8Trace", "$get$_v8Trace", () => A.RegExp_RegExp("\\n ?at ", false)); _lazyFinal($, "_v8TraceLine", "$get$_v8TraceLine", () => A.RegExp_RegExp(" ?at ", false)); _lazyFinal($, "_firefoxEvalTrace", "$get$_firefoxEvalTrace", () => A.RegExp_RegExp("@\\S+ line \\d+ >.* (Function|eval):\\d+:\\d+", false)); _lazyFinal($, "_firefoxSafariTrace", "$get$_firefoxSafariTrace", () => A.RegExp_RegExp("^(([.0-9A-Za-z_$/<]|\\(.*\\))*@)?[^\\s]*:\\d*$", true)); _lazyFinal($, "_friendlyTrace", "$get$_friendlyTrace", () => A.RegExp_RegExp("^[^\\s<][^\\s]*( \\d+(:\\d+)?)?[ \\t]+[^\\s]+$", true)); _lazyFinal($, "vmChainGap", "$get$vmChainGap", () => A.RegExp_RegExp("^\\n?$", true)); _lazyFinal($, "_newlineRegExp", "$get$_newlineRegExp", () => A.RegExp_RegExp("\\r\\n?|\\n", false)); _lazyFinal($, "argumentListClass", "$get$argumentListClass", () => new A.argumentListClass_closure().call$0()); _lazyFinal($, "_filesystemImporter", "$get$_filesystemImporter", () => A.FilesystemImporter$(".")); _lazyFinal($, "booleanClass", "$get$booleanClass", () => new A.booleanClass_closure().call$0()); _lazyFinal($, "legacyBooleanClass", "$get$legacyBooleanClass", () => new A.legacyBooleanClass_closure().call$0()); _lazyFinal($, "calculationClass", "$get$calculationClass", () => new A.calculationClass_closure().call$0()); _lazyFinal($, "calculationOperationClass", "$get$calculationOperationClass", () => new A.calculationOperationClass_closure().call$0()); _lazyFinal($, "calculationInterpolationClass", "$get$calculationInterpolationClass", () => new A.calculationInterpolationClass_closure().call$0()); _lazyFinal($, "_microsoftFilterStart0", "$get$_microsoftFilterStart0", () => A.RegExp_RegExp("^[a-zA-Z]+\\s*=", false)); _lazyFinal($, "global6", "$get$global7", () => { var _s27_ = "$red, $green, $blue, $alpha", _s19_ = "$red, $green, $blue", _s37_ = "$hue, $saturation, $lightness, $alpha", _s29_ = "$hue, $saturation, $lightness", _s17_ = "$hue, $saturation", _s15_ = "$color, $amount", t1 = type$.String, t2 = type$.Value_Function_List_Value_2; return A.UnmodifiableListView$(A._setArrayType([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), A.BuiltInCallable$overloadedFunction0("rgb", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure32(), _s19_, new A.global_closure33(), "$color, $alpha", new A.global_closure34(), "$channels", new A.global_closure35()], t1, t2)), A.BuiltInCallable$overloadedFunction0("rgba", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure36(), _s19_, new A.global_closure37(), "$color, $alpha", new A.global_closure38(), "$channels", new A.global_closure39()], t1, t2)), A._function11("invert", "$color, $weight: 100%", new A.global_closure40()), $.$get$_hue0(), $.$get$_saturation0(), $.$get$_lightness0(), $.$get$_complement0(), A.BuiltInCallable$overloadedFunction0("hsl", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure41(), _s29_, new A.global_closure42(), _s17_, new A.global_closure43(), "$channels", new A.global_closure44()], t1, t2)), A.BuiltInCallable$overloadedFunction0("hsla", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure45(), _s29_, new A.global_closure46(), _s17_, new A.global_closure47(), "$channels", new A.global_closure48()], t1, t2)), A._function11("grayscale", "$color", new A.global_closure49()), A._function11("adjust-hue", "$color, $degrees", new A.global_closure50()), A._function11("lighten", _s15_, new A.global_closure51()), A._function11("darken", _s15_, new A.global_closure52()), A.BuiltInCallable$overloadedFunction0("saturate", A.LinkedHashMap_LinkedHashMap$_literal(["$amount", new A.global_closure53(), "$color, $amount", new A.global_closure54()], t1, t2)), A._function11("desaturate", _s15_, new A.global_closure55()), A._function11("opacify", _s15_, A.color2___opacify$closure()), A._function11("fade-in", _s15_, A.color2___opacify$closure()), A._function11("transparentize", _s15_, A.color2___transparentize$closure()), A._function11("fade-out", _s15_, A.color2___transparentize$closure()), A.BuiltInCallable$overloadedFunction0("alpha", A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.global_closure56(), "$args...", new A.global_closure57()], t1, t2)), A._function11("opacity", "$color", new A.global_closure58()), $.$get$_ieHexStr0(), $.$get$_adjust0().withName$1("adjust-color"), $.$get$_scale0().withName$1("scale-color"), $.$get$_change0().withName$1("change-color")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2); }); _lazyFinal($, "module5", "$get$module5", () => { var _s9_ = "lightness", _s10_ = "saturation", _s6_ = "$color", _s5_ = "alpha", t1 = type$.String, t2 = type$.Value_Function_List_Value_2; return A.BuiltInModule$0("color", A._setArrayType([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), A._function11("invert", "$color, $weight: 100%", new A.module_closure12()), $.$get$_hue0(), $.$get$_saturation0(), $.$get$_lightness0(), $.$get$_complement0(), 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._function11("grayscale", _s6_, new A.module_closure13()), A.BuiltInCallable$overloadedFunction0("hwb", A.LinkedHashMap_LinkedHashMap$_literal(["$hue, $whiteness, $blackness, $alpha: 1", new A.module_closure14(), "$channels", new A.module_closure15()], t1, t2)), A._function11("whiteness", _s6_, new A.module_closure16()), A._function11("blackness", _s6_, new A.module_closure17()), 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_closure18(), "$args...", new A.module_closure19()], t1, t2)), A._function11("opacity", _s6_, new A.module_closure20()), $.$get$_adjust0(), $.$get$_scale0(), $.$get$_change0(), $.$get$_ieHexStr0()], type$.JSArray_Callable_2), null, null, type$.Callable_2); }); _lazyFinal($, "_red0", "$get$_red0", () => A._function11("red", "$color", new A._red_closure0())); _lazyFinal($, "_green0", "$get$_green0", () => A._function11("green", "$color", new A._green_closure0())); _lazyFinal($, "_blue0", "$get$_blue0", () => A._function11("blue", "$color", new A._blue_closure0())); _lazyFinal($, "_mix0", "$get$_mix0", () => A._function11("mix", "$color1, $color2, $weight: 50%", new A._mix_closure0())); _lazyFinal($, "_hue0", "$get$_hue0", () => A._function11("hue", "$color", new A._hue_closure0())); _lazyFinal($, "_saturation0", "$get$_saturation0", () => A._function11("saturation", "$color", new A._saturation_closure0())); _lazyFinal($, "_lightness0", "$get$_lightness0", () => A._function11("lightness", "$color", new A._lightness_closure0())); _lazyFinal($, "_complement0", "$get$_complement0", () => A._function11("complement", "$color", new A._complement_closure0())); _lazyFinal($, "_adjust0", "$get$_adjust0", () => A._function11("adjust", "$color, $kwargs...", new A._adjust_closure0())); _lazyFinal($, "_scale0", "$get$_scale0", () => A._function11("scale", "$color, $kwargs...", new A._scale_closure0())); _lazyFinal($, "_change0", "$get$_change0", () => A._function11("change", "$color, $kwargs...", new A._change_closure0())); _lazyFinal($, "_ieHexStr0", "$get$_ieHexStr0", () => A._function11("ie-hex-str", "$color", new A._ieHexStr_closure0())); _lazyFinal($, "colorClass", "$get$colorClass", () => new A.colorClass_closure().call$0()); _lazyFinal($, "legacyColorClass", "$get$legacyColorClass", () => { var t1 = A.createJSClass("sass.types.Color", new A.legacyColorClass_closure()); 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)); return t1; }); _lazyFinal($, "colorsByName0", "$get$colorsByName0", () => A.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", A.SassColor$rgb0(154, 205, 50, 1), "yellow", A.SassColor$rgb0(255, 255, 0, 1), "whitesmoke", A.SassColor$rgb0(245, 245, 245, 1), "white", A.SassColor$rgb0(255, 255, 255, 1), "wheat", A.SassColor$rgb0(245, 222, 179, 1), "violet", A.SassColor$rgb0(238, 130, 238, 1), "turquoise", A.SassColor$rgb0(64, 224, 208, 1), "transparent", A.SassColor$rgb0(0, 0, 0, 0), "tomato", A.SassColor$rgb0(255, 99, 71, 1), "thistle", A.SassColor$rgb0(216, 191, 216, 1), "teal", A.SassColor$rgb0(0, 128, 128, 1), "tan", A.SassColor$rgb0(210, 180, 140, 1), "steelblue", A.SassColor$rgb0(70, 130, 180, 1), "springgreen", A.SassColor$rgb0(0, 255, 127, 1), "snow", A.SassColor$rgb0(255, 250, 250, 1), "slategrey", A.SassColor$rgb0(112, 128, 144, 1), "slategray", A.SassColor$rgb0(112, 128, 144, 1), "slateblue", A.SassColor$rgb0(106, 90, 205, 1), "skyblue", A.SassColor$rgb0(135, 206, 235, 1), "silver", A.SassColor$rgb0(192, 192, 192, 1), "sienna", A.SassColor$rgb0(160, 82, 45, 1), "seashell", A.SassColor$rgb0(255, 245, 238, 1), "seagreen", A.SassColor$rgb0(46, 139, 87, 1), "sandybrown", A.SassColor$rgb0(244, 164, 96, 1), "salmon", A.SassColor$rgb0(250, 128, 114, 1), "saddlebrown", A.SassColor$rgb0(139, 69, 19, 1), "royalblue", A.SassColor$rgb0(65, 105, 225, 1), "rosybrown", A.SassColor$rgb0(188, 143, 143, 1), "red", A.SassColor$rgb0(255, 0, 0, 1), "rebeccapurple", A.SassColor$rgb0(102, 51, 153, 1), "purple", A.SassColor$rgb0(128, 0, 128, 1), "powderblue", A.SassColor$rgb0(176, 224, 230, 1), "plum", A.SassColor$rgb0(221, 160, 221, 1), "pink", A.SassColor$rgb0(255, 192, 203, 1), "peru", A.SassColor$rgb0(205, 133, 63, 1), "peachpuff", A.SassColor$rgb0(255, 218, 185, 1), "papayawhip", A.SassColor$rgb0(255, 239, 213, 1), "palevioletred", A.SassColor$rgb0(219, 112, 147, 1), "paleturquoise", A.SassColor$rgb0(175, 238, 238, 1), "palegreen", A.SassColor$rgb0(152, 251, 152, 1), "palegoldenrod", A.SassColor$rgb0(238, 232, 170, 1), "orchid", A.SassColor$rgb0(218, 112, 214, 1), "orangered", A.SassColor$rgb0(255, 69, 0, 1), "orange", A.SassColor$rgb0(255, 165, 0, 1), "olivedrab", A.SassColor$rgb0(107, 142, 35, 1), "olive", A.SassColor$rgb0(128, 128, 0, 1), "oldlace", A.SassColor$rgb0(253, 245, 230, 1), "navy", A.SassColor$rgb0(0, 0, 128, 1), "navajowhite", A.SassColor$rgb0(255, 222, 173, 1), "moccasin", A.SassColor$rgb0(255, 228, 181, 1), "mistyrose", A.SassColor$rgb0(255, 228, 225, 1), "mintcream", A.SassColor$rgb0(245, 255, 250, 1), "midnightblue", A.SassColor$rgb0(25, 25, 112, 1), "mediumvioletred", A.SassColor$rgb0(199, 21, 133, 1), "mediumturquoise", A.SassColor$rgb0(72, 209, 204, 1), "mediumspringgreen", A.SassColor$rgb0(0, 250, 154, 1), "mediumslateblue", A.SassColor$rgb0(123, 104, 238, 1), "mediumseagreen", A.SassColor$rgb0(60, 179, 113, 1), "mediumpurple", A.SassColor$rgb0(147, 112, 219, 1), "mediumorchid", A.SassColor$rgb0(186, 85, 211, 1), "mediumblue", A.SassColor$rgb0(0, 0, 205, 1), "mediumaquamarine", A.SassColor$rgb0(102, 205, 170, 1), "maroon", A.SassColor$rgb0(128, 0, 0, 1), "magenta", A.SassColor$rgb0(255, 0, 255, 1), "linen", A.SassColor$rgb0(250, 240, 230, 1), "limegreen", A.SassColor$rgb0(50, 205, 50, 1), "lime", A.SassColor$rgb0(0, 255, 0, 1), "lightyellow", A.SassColor$rgb0(255, 255, 224, 1), "lightsteelblue", A.SassColor$rgb0(176, 196, 222, 1), "lightslategrey", A.SassColor$rgb0(119, 136, 153, 1), "lightslategray", A.SassColor$rgb0(119, 136, 153, 1), "lightskyblue", A.SassColor$rgb0(135, 206, 250, 1), "lightseagreen", A.SassColor$rgb0(32, 178, 170, 1), "lightsalmon", A.SassColor$rgb0(255, 160, 122, 1), "lightpink", A.SassColor$rgb0(255, 182, 193, 1), "lightgrey", A.SassColor$rgb0(211, 211, 211, 1), "lightgreen", A.SassColor$rgb0(144, 238, 144, 1), "lightgray", A.SassColor$rgb0(211, 211, 211, 1), "lightgoldenrodyellow", A.SassColor$rgb0(250, 250, 210, 1), "lightcyan", A.SassColor$rgb0(224, 255, 255, 1), "lightcoral", A.SassColor$rgb0(240, 128, 128, 1), "lightblue", A.SassColor$rgb0(173, 216, 230, 1), "lemonchiffon", A.SassColor$rgb0(255, 250, 205, 1), "lawngreen", A.SassColor$rgb0(124, 252, 0, 1), "lavenderblush", A.SassColor$rgb0(255, 240, 245, 1), "lavender", A.SassColor$rgb0(230, 230, 250, 1), "khaki", A.SassColor$rgb0(240, 230, 140, 1), "ivory", A.SassColor$rgb0(255, 255, 240, 1), "indigo", A.SassColor$rgb0(75, 0, 130, 1), "indianred", A.SassColor$rgb0(205, 92, 92, 1), "hotpink", A.SassColor$rgb0(255, 105, 180, 1), "honeydew", A.SassColor$rgb0(240, 255, 240, 1), "grey", A.SassColor$rgb0(128, 128, 128, 1), "greenyellow", A.SassColor$rgb0(173, 255, 47, 1), "green", A.SassColor$rgb0(0, 128, 0, 1), "gray", A.SassColor$rgb0(128, 128, 128, 1), "goldenrod", A.SassColor$rgb0(218, 165, 32, 1), "gold", A.SassColor$rgb0(255, 215, 0, 1), "ghostwhite", A.SassColor$rgb0(248, 248, 255, 1), "gainsboro", A.SassColor$rgb0(220, 220, 220, 1), "fuchsia", A.SassColor$rgb0(255, 0, 255, 1), "forestgreen", A.SassColor$rgb0(34, 139, 34, 1), "floralwhite", A.SassColor$rgb0(255, 250, 240, 1), "firebrick", A.SassColor$rgb0(178, 34, 34, 1), "dodgerblue", A.SassColor$rgb0(30, 144, 255, 1), "dimgrey", A.SassColor$rgb0(105, 105, 105, 1), "dimgray", A.SassColor$rgb0(105, 105, 105, 1), "deepskyblue", A.SassColor$rgb0(0, 191, 255, 1), "deeppink", A.SassColor$rgb0(255, 20, 147, 1), "darkviolet", A.SassColor$rgb0(148, 0, 211, 1), "darkturquoise", A.SassColor$rgb0(0, 206, 209, 1), "darkslategrey", A.SassColor$rgb0(47, 79, 79, 1), "darkslategray", A.SassColor$rgb0(47, 79, 79, 1), "darkslateblue", A.SassColor$rgb0(72, 61, 139, 1), "darkseagreen", A.SassColor$rgb0(143, 188, 143, 1), "darksalmon", A.SassColor$rgb0(233, 150, 122, 1), "darkred", A.SassColor$rgb0(139, 0, 0, 1), "darkorchid", A.SassColor$rgb0(153, 50, 204, 1), "darkorange", A.SassColor$rgb0(255, 140, 0, 1), "darkolivegreen", A.SassColor$rgb0(85, 107, 47, 1), "darkmagenta", A.SassColor$rgb0(139, 0, 139, 1), "darkkhaki", A.SassColor$rgb0(189, 183, 107, 1), "darkgrey", A.SassColor$rgb0(169, 169, 169, 1), "darkgreen", A.SassColor$rgb0(0, 100, 0, 1), "darkgray", A.SassColor$rgb0(169, 169, 169, 1), "darkgoldenrod", A.SassColor$rgb0(184, 134, 11, 1), "darkcyan", A.SassColor$rgb0(0, 139, 139, 1), "darkblue", A.SassColor$rgb0(0, 0, 139, 1), "cyan", A.SassColor$rgb0(0, 255, 255, 1), "crimson", A.SassColor$rgb0(220, 20, 60, 1), "cornsilk", A.SassColor$rgb0(255, 248, 220, 1), "cornflowerblue", A.SassColor$rgb0(100, 149, 237, 1), "coral", A.SassColor$rgb0(255, 127, 80, 1), "chocolate", A.SassColor$rgb0(210, 105, 30, 1), "chartreuse", A.SassColor$rgb0(127, 255, 0, 1), "cadetblue", A.SassColor$rgb0(95, 158, 160, 1), "burlywood", A.SassColor$rgb0(222, 184, 135, 1), "brown", A.SassColor$rgb0(165, 42, 42, 1), "blueviolet", A.SassColor$rgb0(138, 43, 226, 1), "blue", A.SassColor$rgb0(0, 0, 255, 1), "blanchedalmond", A.SassColor$rgb0(255, 235, 205, 1), "black", A.SassColor$rgb0(0, 0, 0, 1), "bisque", A.SassColor$rgb0(255, 228, 196, 1), "beige", A.SassColor$rgb0(245, 245, 220, 1), "azure", A.SassColor$rgb0(240, 255, 255, 1), "aquamarine", A.SassColor$rgb0(127, 255, 212, 1), "aqua", A.SassColor$rgb0(0, 255, 255, 1), "antiquewhite", A.SassColor$rgb0(250, 235, 215, 1), "aliceblue", A.SassColor$rgb0(240, 248, 255, 1)], type$.String, type$.SassColor_2)); _lazyFinal($, "namesByColor0", "$get$namesByColor0", () => { var $name, color, t1 = type$.SassColor_2, t2 = type$.String, t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2); for (t1 = A.MapExtensions_get_pairs0($.$get$colorsByName0(), t2, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) { t2 = t1.get$current(t1); $name = t2._0; color = t2._1; t3.$indexSet(0, color, $name); } return t3; }); _lazyFinal($, "_disallowedFunctionNames0", "$get$_disallowedFunctionNames0", () => { var t1 = $.$get$globalFunctions0(); t1 = t1.map$1$1(t1, new A._disallowedFunctionNames_closure0(), type$.String).toSet$0(0); t1.add$1(0, "if"); t1.remove$1(0, "rgb"); t1.remove$1(0, "rgba"); t1.remove$1(0, "hsl"); t1.remove$1(0, "hsla"); t1.remove$1(0, "grayscale"); t1.remove$1(0, "invert"); t1.remove$1(0, "alpha"); t1.remove$1(0, "opacity"); t1.remove$1(0, "saturate"); t1.remove$1(0, "min"); t1.remove$1(0, "max"); t1.remove$1(0, "round"); t1.remove$1(0, "abs"); return t1; }); _lazyFinal($, "exceptionClass", "$get$exceptionClass", () => new A.exceptionClass_closure().call$0()); _lazyFinal($, "_filesystemImporter0", "$get$_filesystemImporter0", () => A.FilesystemImporter$(".")); _lazyFinal($, "functionClass", "$get$functionClass", () => new A.functionClass_closure().call$0()); _lazyFinal($, "globalFunctions0", "$get$globalFunctions0", () => { var t1 = type$.BuiltInCallable_2, t2 = A.List_List$of($.$get$global7(), true, t1); B.JSArray_methods.addAll$1(t2, $.$get$global8()); B.JSArray_methods.addAll$1(t2, $.$get$global9()); B.JSArray_methods.addAll$1(t2, $.$get$global10()); B.JSArray_methods.addAll$1(t2, $.$get$global11()); B.JSArray_methods.addAll$1(t2, $.$get$global12()); B.JSArray_methods.addAll$1(t2, $.$get$global6()); t2.push(A.BuiltInCallable$function0("if", "$condition, $if-true, $if-false", new A.globalFunctions_closure0(), null)); return A.UnmodifiableListView$(t2, t1); }); _lazyFinal($, "coreModules0", "$get$coreModules0", () => A.UnmodifiableListView$(A._setArrayType([$.$get$module5(), $.$get$module6(), $.$get$module7(), $.$get$module8(), $.$get$module9(), $.$get$module10()], A.findType("JSArray>")), type$.BuiltInModule_Callable_2)); _lazyFinal($, "IfExpression_declaration0", "$get$IfExpression_declaration0", () => A.ArgumentDeclaration_ArgumentDeclaration$parse0(string$.x40funct, null)); _lazyFinal($, "global7", "$get$global8", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_length2(), $.$get$_nth0(), $.$get$_setNth0(), $.$get$_join0(), $.$get$_append2(), $.$get$_zip0(), $.$get$_index2(), $.$get$_isBracketed0(), $.$get$_separator0().withName$1("list-separator")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2)); _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)); _lazyFinal($, "_length1", "$get$_length2", () => A._function10("length", "$list", new A._length_closure2())); _lazyFinal($, "_nth0", "$get$_nth0", () => A._function10("nth", "$list, $n", new A._nth_closure0())); _lazyFinal($, "_setNth0", "$get$_setNth0", () => A._function10("set-nth", "$list, $n, $value", new A._setNth_closure0())); _lazyFinal($, "_join0", "$get$_join0", () => A._function10("join", string$.x24list1, new A._join_closure0())); _lazyFinal($, "_append1", "$get$_append2", () => A._function10("append", "$list, $val, $separator: auto", new A._append_closure2())); _lazyFinal($, "_zip0", "$get$_zip0", () => A._function10("zip", "$lists...", new A._zip_closure0())); _lazyFinal($, "_index1", "$get$_index2", () => A._function10("index", "$list, $value", new A._index_closure2())); _lazyFinal($, "_separator0", "$get$_separator0", () => A._function10("separator", "$list", new A._separator_closure0())); _lazyFinal($, "_isBracketed0", "$get$_isBracketed0", () => A._function10("is-bracketed", "$list", new A._isBracketed_closure0())); _lazyFinal($, "_slash0", "$get$_slash0", () => A._function10("slash", "$elements...", new A._slash_closure0())); _lazyFinal($, "listClass", "$get$listClass", () => new A.listClass_closure().call$0()); _lazyFinal($, "legacyListClass", "$get$legacyListClass", () => { var t1 = A.createJSClass("sass.types.List", new A.legacyListClass_closure()); 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)); return t1; }); _lazyFinal($, "Logger_quiet0", "$get$Logger_quiet0", () => new A._QuietLogger0()); _lazyFinal($, "global8", "$get$global9", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_get0().withName$1("map-get"), $.$get$_merge0().withName$1("map-merge"), $.$get$_remove0().withName$1("map-remove"), $.$get$_keys0().withName$1("map-keys"), $.$get$_values0().withName$1("map-values"), $.$get$_hasKey0().withName$1("map-has-key")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2)); _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)); _lazyFinal($, "_get0", "$get$_get0", () => A._function9("get", "$map, $key, $keys...", new A._get_closure0())); _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))); _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))); _lazyFinal($, "_deepMerge0", "$get$_deepMerge0", () => A._function9("deep-merge", "$map1, $map2", new A._deepMerge_closure0())); _lazyFinal($, "_deepRemove0", "$get$_deepRemove0", () => A._function9("deep-remove", "$map, $key, $keys...", new A._deepRemove_closure0())); _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))); _lazyFinal($, "_keys0", "$get$_keys0", () => A._function9("keys", "$map", new A._keys_closure0())); _lazyFinal($, "_values0", "$get$_values0", () => A._function9("values", "$map", new A._values_closure0())); _lazyFinal($, "_hasKey0", "$get$_hasKey0", () => A._function9("has-key", "$map, $key, $keys...", new A._hasKey_closure0())); _lazyFinal($, "mapClass", "$get$mapClass", () => new A.mapClass_closure().call$0()); _lazyFinal($, "legacyMapClass", "$get$legacyMapClass", () => { var t1 = A.createJSClass("sass.types.Map", new A.legacyMapClass_closure()); 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)); return t1; }); _lazyFinal($, "global9", "$get$global10", () => A.UnmodifiableListView$(A._setArrayType([A._function8("abs", "$number", new A.global_closure31()), $.$get$_ceil0(), $.$get$_floor0(), $.$get$_max0(), $.$get$_min0(), $.$get$_percentage0(), $.$get$_randomFunction0(), $.$get$_round0(), $.$get$_unit0(), $.$get$_compatible0().withName$1("comparable"), $.$get$_isUnitless0().withName$1("unitless")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2)); _lazyFinal($, "module8", "$get$module8", () => { var _null = null; return A.BuiltInModule$0("math", A._setArrayType([A._numberFunction0("abs", new A.module_closure11()), $.$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); }); _lazyFinal($, "_ceil0", "$get$_ceil0", () => A._numberFunction0("ceil", new A._ceil_closure0())); _lazyFinal($, "_clamp0", "$get$_clamp0", () => A._function8("clamp", "$min, $number, $max", new A._clamp_closure0())); _lazyFinal($, "_floor0", "$get$_floor0", () => A._numberFunction0("floor", new A._floor_closure0())); _lazyFinal($, "_max0", "$get$_max0", () => A._function8("max", "$numbers...", new A._max_closure0())); _lazyFinal($, "_min0", "$get$_min0", () => A._function8("min", "$numbers...", new A._min_closure0())); _lazyFinal($, "_round0", "$get$_round0", () => A._numberFunction0("round", new A._round_closure0())); _lazyFinal($, "_hypot0", "$get$_hypot0", () => A._function8("hypot", "$numbers...", new A._hypot_closure0())); _lazyFinal($, "_log0", "$get$_log0", () => A._function8("log", "$number, $base: null", new A._log_closure0())); _lazyFinal($, "_pow0", "$get$_pow0", () => A._function8("pow", "$base, $exponent", new A._pow_closure0())); _lazyFinal($, "_sqrt0", "$get$_sqrt0", () => A._singleArgumentMathFunc0("sqrt", A.number2__sqrt$closure())); _lazyFinal($, "_acos0", "$get$_acos0", () => A._singleArgumentMathFunc0("acos", A.number2__acos$closure())); _lazyFinal($, "_asin0", "$get$_asin0", () => A._singleArgumentMathFunc0("asin", A.number2__asin$closure())); _lazyFinal($, "_atan0", "$get$_atan0", () => A._singleArgumentMathFunc0("atan", A.number2__atan$closure())); _lazyFinal($, "_atan20", "$get$_atan20", () => A._function8("atan2", "$y, $x", new A._atan2_closure0())); _lazyFinal($, "_cos0", "$get$_cos0", () => A._singleArgumentMathFunc0("cos", A.number2__cos$closure())); _lazyFinal($, "_sin0", "$get$_sin0", () => A._singleArgumentMathFunc0("sin", A.number2__sin$closure())); _lazyFinal($, "_tan0", "$get$_tan0", () => A._singleArgumentMathFunc0("tan", A.number2__tan$closure())); _lazyFinal($, "_compatible0", "$get$_compatible0", () => A._function8("compatible", "$number1, $number2", new A._compatible_closure0())); _lazyFinal($, "_isUnitless0", "$get$_isUnitless0", () => A._function8("is-unitless", "$number", new A._isUnitless_closure0())); _lazyFinal($, "_unit0", "$get$_unit0", () => A._function8("unit", "$number", new A._unit_closure0())); _lazyFinal($, "_percentage0", "$get$_percentage0", () => A._function8("percentage", "$number", new A._percentage_closure0())); _lazyFinal($, "_random1", "$get$_random2", () => A.Random_Random()); _lazyFinal($, "_randomFunction0", "$get$_randomFunction0", () => A._function8("random", "$limit: null", new A._randomFunction_closure0())); _lazyFinal($, "_div0", "$get$_div0", () => A._function8("div", "$number1, $number2", new A._div_closure0())); _lazyFinal($, "global10", "$get$global6", () => A.UnmodifiableListView$(A._setArrayType([A._function12("feature-exists", "$feature", new A.global_closure59()), A._function12("inspect", "$value", new A.global_closure60()), A._function12("type-of", "$value", new A.global_closure61()), A._function12("keywords", "$args", new A.global_closure62())], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2)); _lazyFinal($, "local0", "$get$local0", () => A.UnmodifiableListView$(A._setArrayType([A._function12("calc-name", "$calc", new A.local_closure2()), A._function12("calc-args", "$calc", new A.local_closure3()), A._function12("accepts-content", "$mixin", new A.local_closure4())], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2)); _lazyFinal($, "mixinClass", "$get$mixinClass", () => new A.mixinClass_closure().call$0()); _lazyFinal($, "legacyNullClass", "$get$legacyNullClass", () => new A.legacyNullClass_closure().call$0()); _lazyFinal($, "_epsilon0", "$get$_epsilon0", () => A.pow(10, -11)); _lazyFinal($, "_inverseEpsilon0", "$get$_inverseEpsilon0", () => A.pow(10, 11)); _lazyFinal($, "numberClass", "$get$numberClass", () => new A.numberClass_closure().call$0()); _lazyFinal($, "legacyNumberClass", "$get$legacyNumberClass", () => { var t1 = A.createJSClass("sass.types.Number", new A.legacyNumberClass_closure()); 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)); return t1; }); _lazyFinal($, "_typesByUnit0", "$get$_typesByUnit0", () => { var t3, type, units, t1 = type$.String, t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); for (t1 = A.MapExtensions_get_pairs0(B.Map_ws7dy, t1, type$.List_String), t1 = t1.get$iterator(t1); t1.moveNext$0();) { t3 = t1.get$current(t1); type = t3._0; units = t3._1; for (t3 = J.get$iterator$ax(units); t3.moveNext$0();) t2.$indexSet(0, t3.get$current(t3), type); } return t2; }); _lazyFinal($, "global11", "$get$global11", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_isSuperselector0(), $.$get$_simpleSelectors0(), $.$get$_parse0().withName$1("selector-parse"), $.$get$_nest0().withName$1("selector-nest"), $.$get$_append1().withName$1("selector-append"), $.$get$_extend0().withName$1("selector-extend"), $.$get$_replace0().withName$1("selector-replace"), $.$get$_unify0().withName$1("selector-unify")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2)); _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)); _lazyFinal($, "_nest0", "$get$_nest0", () => A._function7("nest", "$selectors...", new A._nest_closure0())); _lazyFinal($, "_append2", "$get$_append1", () => A._function7("append", "$selectors...", new A._append_closure1())); _lazyFinal($, "_extend0", "$get$_extend0", () => A._function7("extend", "$selector, $extendee, $extender", new A._extend_closure0())); _lazyFinal($, "_replace0", "$get$_replace0", () => A._function7("replace", "$selector, $original, $replacement", new A._replace_closure0())); _lazyFinal($, "_unify0", "$get$_unify0", () => A._function7("unify", "$selector1, $selector2", new A._unify_closure0())); _lazyFinal($, "_isSuperselector0", "$get$_isSuperselector0", () => A._function7("is-superselector", "$super, $sub", new A._isSuperselector_closure0())); _lazyFinal($, "_simpleSelectors0", "$get$_simpleSelectors0", () => A._function7("simple-selectors", "$selector", new A._simpleSelectors_closure0())); _lazyFinal($, "_parse0", "$get$_parse0", () => A._function7("parse", "$selector", new A._parse_closure0())); _lazyFinal($, "_knownCompatibilitiesByUnit0", "$get$_knownCompatibilitiesByUnit0", () => { var _i, set, t2, t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, A.findType("Set")); for (_i = 0; _i < 5; ++_i) { set = B.List_gyp[_i]; for (t2 = set.get$iterator(set); t2.moveNext$0();) t1.$indexSet(0, t2.get$current(t2), set); } return t1; }); _lazyFinal($, "bogusSpan0", "$get$bogusSpan0", () => A.SourceFile$decoded(A._setArrayType([], type$.JSArray_int), null).span$1(0, 0)); _lazyFinal($, "_random2", "$get$_random1", () => A.Random_Random()); _lazy($, "_previousUniqueId0", "$get$_previousUniqueId0", () => $.$get$_random1().nextInt$1(A._asInt(A.pow(36, 6)))); _lazyFinal($, "global12", "$get$global12", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_unquote0(), $.$get$_quote0(), $.$get$_toUpperCase0(), $.$get$_toLowerCase0(), $.$get$_uniqueId0(), $.$get$_length1().withName$1("str-length"), $.$get$_insert0().withName$1("str-insert"), $.$get$_index1().withName$1("str-index"), $.$get$_slice0().withName$1("str-slice")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2)); _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._function6("split", "$string, $separator, $limit: null", new A.module_closure10())], type$.JSArray_Callable_2), null, null, type$.Callable_2)); _lazyFinal($, "_unquote0", "$get$_unquote0", () => A._function6("unquote", "$string", new A._unquote_closure0())); _lazyFinal($, "_quote0", "$get$_quote0", () => A._function6("quote", "$string", new A._quote_closure0())); _lazyFinal($, "_length2", "$get$_length1", () => A._function6("length", "$string", new A._length_closure1())); _lazyFinal($, "_insert0", "$get$_insert0", () => A._function6("insert", "$string, $insert, $index", new A._insert_closure0())); _lazyFinal($, "_index2", "$get$_index1", () => A._function6("index", "$string, $substring", new A._index_closure1())); _lazyFinal($, "_slice0", "$get$_slice0", () => A._function6("slice", "$string, $start-at, $end-at: -1", new A._slice_closure0())); _lazyFinal($, "_toUpperCase0", "$get$_toUpperCase0", () => A._function6("to-upper-case", "$string", new A._toUpperCase_closure0())); _lazyFinal($, "_toLowerCase0", "$get$_toLowerCase0", () => A._function6("to-lower-case", "$string", new A._toLowerCase_closure0())); _lazyFinal($, "_uniqueId0", "$get$_uniqueId0", () => A._function6("unique-id", "", new A._uniqueId_closure0())); _lazyFinal($, "stringClass", "$get$stringClass", () => new A.stringClass_closure().call$0()); _lazyFinal($, "legacyStringClass", "$get$legacyStringClass", () => { var t1 = A.createJSClass("sass.types.String", new A.legacyStringClass_closure()); A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getValue", new A.legacyStringClass_closure0(), "setValue", new A.legacyStringClass_closure1()], type$.String, type$.Function)); return t1; }); _lazyFinal($, "_emptyQuoted0", "$get$_emptyQuoted0", () => A.SassString$0("", true)); _lazyFinal($, "_emptyUnquoted0", "$get$_emptyUnquoted0", () => A.SassString$0("", false)); _lazyFinal($, "_urlSchemeRegExp", "$get$_urlSchemeRegExp", () => A.RegExp_RegExp("^[a-z0-9+.-]+$", false)); _lazyFinal($, "_jsThrow0", "$get$_jsThrow", () => new self.Function("error", "throw error;")); _lazyFinal($, "_isUndefined", "$get$_isUndefined", () => new self.Function("value", "return value === undefined;")); _lazyFinal($, "_noSourceUrl0", "$get$_noSourceUrl0", () => A.Uri_parse("-")); _lazyFinal($, "_traces0", "$get$_traces0", () => A.Expando$()); _lazyFinal($, "valueClass", "$get$valueClass", () => new A.valueClass_closure().call$0()); })(); (function nativeSupport() { !function() { var intern = function(s) { var o = {}; o[s] = 1; return Object.keys(hunkHelpers.convertToFastObject(o))[0]; }; init.getIsolateTag = function(name) { return intern("___dart_" + name + init.isolateTag); }; var tableProperty = "___dart_isolate_tags_"; var usedProperties = Object[tableProperty] || (Object[tableProperty] = Object.create(null)); var rootProperty = "_ZxYxX"; for (var i = 0;; i++) { var property = intern(rootProperty + "_" + i + "_"); if (!(property in usedProperties)) { usedProperties[property] = 1; init.isolateTag = property; break; } } init.dispatchPropertyName = init.getIsolateTag("dispatch_record"); }(); 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}); 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}); A.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView"; A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView"; A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView"; A.NativeTypedArrayOfDouble.$nativeSuperclassTag = "ArrayBufferView"; A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView"; A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView"; A.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView"; })(); Function.prototype.call$0 = function() { return this(); }; Function.prototype.call$1 = function(a) { return this(a); }; Function.prototype.call$2 = function(a, b) { return this(a, b); }; Function.prototype.call$3$1 = function(a) { return this(a); }; Function.prototype.call$2$1 = function(a) { return this(a); }; Function.prototype.call$1$1 = function(a) { return this(a); }; Function.prototype.call$3 = function(a, b, c) { return this(a, b, c); }; Function.prototype.call$4 = function(a, b, c, d) { return this(a, b, c, d); }; Function.prototype.call$3$3 = function(a, b, c) { return this(a, b, c); }; Function.prototype.call$2$2 = function(a, b) { return this(a, b); }; Function.prototype.call$5 = function(a, b, c, d, e) { return this(a, b, c, d, e); }; Function.prototype.call$6 = function(a, b, c, d, e, f) { return this(a, b, c, d, e, f); }; Function.prototype.call$2$0 = function() { return this(); }; Function.prototype.call$1$0 = function() { return this(); }; Function.prototype.call$1$2 = function(a, b) { return this(a, b); }; Function.prototype.call$2$3 = function(a, b, c) { return this(a, b, c); }; convertAllToFastObject(holders); convertToFastObject($); (function(callback) { if (typeof document === "undefined") { callback(null); return; } if (typeof document.currentScript != "undefined") { callback(document.currentScript); return; } var scripts = document.scripts; function onLoad(event) { for (var i = 0; i < scripts.length; ++i) scripts[i].removeEventListener("load", onLoad, false); callback(event.target); } for (var i = 0; i < scripts.length; ++i) scripts[i].addEventListener("load", onLoad, false); })(function(currentScript) { init.currentScript = currentScript; var callMain = A.main2; if (typeof dartMainRunner === "function") dartMainRunner(callMain, []); else callMain([]); }); })(); } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"), "/", "/index.js", __webpack_require__(/*! ./../buffer/index.js */ "./node_modules/buffer/index.js").Buffer)) /***/ }), /***/ "./node_modules/sass/sass.node.js": /*!****************************************!*\ !*** ./node_modules/sass/sass.node.js ***! \****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(/*! ./sass.dart.js */ "./node_modules/sass/sass.dart.js"); const library = globalThis._cliPkgExports.pop(); if (globalThis._cliPkgExports.length === 0) delete globalThis._cliPkgExports; library.load({ util: __webpack_require__(/*! util */ "./node_modules/util/util.js"), stream: __webpack_require__(/*! stream */ "./node_modules/stream-browserify/index.js"), fs: __webpack_require__(/*! fs */ "./node_modules/node-libs-browser/mock/empty.js"), immutable: __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.es.js"), }); module.exports = library; /***/ }), /***/ "./node_modules/sdp/sdp.js": /*!*********************************!*\ !*** ./node_modules/sdp/sdp.js ***! \*********************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* eslint-env node */ // SDP helpers. const SDPUtils = {}; // Generate an alphanumeric identifier for cname or mids. // TODO: use UUIDs instead? https://gist.github.com/jed/982883 SDPUtils.generateIdentifier = function() { return Math.random().toString(36).substring(2, 12); }; // The RTCP CNAME used by all peerconnections from the same JS. SDPUtils.localCName = SDPUtils.generateIdentifier(); // Splits SDP into lines, dealing with both CRLF and LF. SDPUtils.splitLines = function(blob) { return blob.trim().split('\n').map(line => line.trim()); }; // Splits SDP into sessionpart and mediasections. Ensures CRLF. SDPUtils.splitSections = function(blob) { const parts = blob.split('\nm='); return parts.map((part, index) => (index > 0 ? 'm=' + part : part).trim() + '\r\n'); }; // Returns the session description. SDPUtils.getDescription = function(blob) { const sections = SDPUtils.splitSections(blob); return sections && sections[0]; }; // Returns the individual media sections. SDPUtils.getMediaSections = function(blob) { const sections = SDPUtils.splitSections(blob); sections.shift(); return sections; }; // Returns lines that start with a certain prefix. SDPUtils.matchPrefix = function(blob, prefix) { return SDPUtils.splitLines(blob).filter(line => line.indexOf(prefix) === 0); }; // Parses an ICE candidate line. Sample input: // candidate:702786350 2 udp 41819902 8.8.8.8 60769 typ relay raddr 8.8.8.8 // rport 55996" // Input can be prefixed with a=. SDPUtils.parseCandidate = function(line) { let parts; // Parse both variants. if (line.indexOf('a=candidate:') === 0) { parts = line.substring(12).split(' '); } else { parts = line.substring(10).split(' '); } const candidate = { foundation: parts[0], component: {1: 'rtp', 2: 'rtcp'}[parts[1]] || parts[1], protocol: parts[2].toLowerCase(), priority: parseInt(parts[3], 10), ip: parts[4], address: parts[4], // address is an alias for ip. port: parseInt(parts[5], 10), // skip parts[6] == 'typ' type: parts[7], }; for (let i = 8; i < parts.length; i += 2) { switch (parts[i]) { case 'raddr': candidate.relatedAddress = parts[i + 1]; break; case 'rport': candidate.relatedPort = parseInt(parts[i + 1], 10); break; case 'tcptype': candidate.tcpType = parts[i + 1]; break; case 'ufrag': candidate.ufrag = parts[i + 1]; // for backward compatibility. candidate.usernameFragment = parts[i + 1]; break; default: // extension handling, in particular ufrag. Don't overwrite. if (candidate[parts[i]] === undefined) { candidate[parts[i]] = parts[i + 1]; } break; } } return candidate; }; // Translates a candidate object into SDP candidate attribute. // This does not include the a= prefix! SDPUtils.writeCandidate = function(candidate) { const sdp = []; sdp.push(candidate.foundation); const component = candidate.component; if (component === 'rtp') { sdp.push(1); } else if (component === 'rtcp') { sdp.push(2); } else { sdp.push(component); } sdp.push(candidate.protocol.toUpperCase()); sdp.push(candidate.priority); sdp.push(candidate.address || candidate.ip); sdp.push(candidate.port); const type = candidate.type; sdp.push('typ'); sdp.push(type); if (type !== 'host' && candidate.relatedAddress && candidate.relatedPort) { sdp.push('raddr'); sdp.push(candidate.relatedAddress); sdp.push('rport'); sdp.push(candidate.relatedPort); } if (candidate.tcpType && candidate.protocol.toLowerCase() === 'tcp') { sdp.push('tcptype'); sdp.push(candidate.tcpType); } if (candidate.usernameFragment || candidate.ufrag) { sdp.push('ufrag'); sdp.push(candidate.usernameFragment || candidate.ufrag); } return 'candidate:' + sdp.join(' '); }; // Parses an ice-options line, returns an array of option tags. // Sample input: // a=ice-options:foo bar SDPUtils.parseIceOptions = function(line) { return line.substring(14).split(' '); }; // Parses a rtpmap line, returns RTCRtpCoddecParameters. Sample input: // a=rtpmap:111 opus/48000/2 SDPUtils.parseRtpMap = function(line) { let parts = line.substring(9).split(' '); const parsed = { payloadType: parseInt(parts.shift(), 10), // was: id }; parts = parts[0].split('/'); parsed.name = parts[0]; parsed.clockRate = parseInt(parts[1], 10); // was: clockrate parsed.channels = parts.length === 3 ? parseInt(parts[2], 10) : 1; // legacy alias, got renamed back to channels in ORTC. parsed.numChannels = parsed.channels; return parsed; }; // Generates a rtpmap line from RTCRtpCodecCapability or // RTCRtpCodecParameters. SDPUtils.writeRtpMap = function(codec) { let pt = codec.payloadType; if (codec.preferredPayloadType !== undefined) { pt = codec.preferredPayloadType; } const channels = codec.channels || codec.numChannels || 1; return 'a=rtpmap:' + pt + ' ' + codec.name + '/' + codec.clockRate + (channels !== 1 ? '/' + channels : '') + '\r\n'; }; // Parses a extmap line (headerextension from RFC 5285). Sample input: // a=extmap:2 urn:ietf:params:rtp-hdrext:toffset // a=extmap:2/sendonly urn:ietf:params:rtp-hdrext:toffset SDPUtils.parseExtmap = function(line) { const parts = line.substring(9).split(' '); return { id: parseInt(parts[0], 10), direction: parts[0].indexOf('/') > 0 ? parts[0].split('/')[1] : 'sendrecv', uri: parts[1], attributes: parts.slice(2).join(' '), }; }; // Generates an extmap line from RTCRtpHeaderExtensionParameters or // RTCRtpHeaderExtension. SDPUtils.writeExtmap = function(headerExtension) { return 'a=extmap:' + (headerExtension.id || headerExtension.preferredId) + (headerExtension.direction && headerExtension.direction !== 'sendrecv' ? '/' + headerExtension.direction : '') + ' ' + headerExtension.uri + (headerExtension.attributes ? ' ' + headerExtension.attributes : '') + '\r\n'; }; // Parses a fmtp line, returns dictionary. Sample input: // a=fmtp:96 vbr=on;cng=on // Also deals with vbr=on; cng=on SDPUtils.parseFmtp = function(line) { const parsed = {}; let kv; const parts = line.substring(line.indexOf(' ') + 1).split(';'); for (let j = 0; j < parts.length; j++) { kv = parts[j].trim().split('='); parsed[kv[0].trim()] = kv[1]; } return parsed; }; // Generates a fmtp line from RTCRtpCodecCapability or RTCRtpCodecParameters. SDPUtils.writeFmtp = function(codec) { let line = ''; let pt = codec.payloadType; if (codec.preferredPayloadType !== undefined) { pt = codec.preferredPayloadType; } if (codec.parameters && Object.keys(codec.parameters).length) { const params = []; Object.keys(codec.parameters).forEach(param => { if (codec.parameters[param] !== undefined) { params.push(param + '=' + codec.parameters[param]); } else { params.push(param); } }); line += 'a=fmtp:' + pt + ' ' + params.join(';') + '\r\n'; } return line; }; // Parses a rtcp-fb line, returns RTCPRtcpFeedback object. Sample input: // a=rtcp-fb:98 nack rpsi SDPUtils.parseRtcpFb = function(line) { const parts = line.substring(line.indexOf(' ') + 1).split(' '); return { type: parts.shift(), parameter: parts.join(' '), }; }; // Generate a=rtcp-fb lines from RTCRtpCodecCapability or RTCRtpCodecParameters. SDPUtils.writeRtcpFb = function(codec) { let lines = ''; let pt = codec.payloadType; if (codec.preferredPayloadType !== undefined) { pt = codec.preferredPayloadType; } if (codec.rtcpFeedback && codec.rtcpFeedback.length) { // FIXME: special handling for trr-int? codec.rtcpFeedback.forEach(fb => { lines += 'a=rtcp-fb:' + pt + ' ' + fb.type + (fb.parameter && fb.parameter.length ? ' ' + fb.parameter : '') + '\r\n'; }); } return lines; }; // Parses a RFC 5576 ssrc media attribute. Sample input: // a=ssrc:3735928559 cname:something SDPUtils.parseSsrcMedia = function(line) { const sp = line.indexOf(' '); const parts = { ssrc: parseInt(line.substring(7, sp), 10), }; const colon = line.indexOf(':', sp); if (colon > -1) { parts.attribute = line.substring(sp + 1, colon); parts.value = line.substring(colon + 1); } else { parts.attribute = line.substring(sp + 1); } return parts; }; // Parse a ssrc-group line (see RFC 5576). Sample input: // a=ssrc-group:semantics 12 34 SDPUtils.parseSsrcGroup = function(line) { const parts = line.substring(13).split(' '); return { semantics: parts.shift(), ssrcs: parts.map(ssrc => parseInt(ssrc, 10)), }; }; // Extracts the MID (RFC 5888) from a media section. // Returns the MID or undefined if no mid line was found. SDPUtils.getMid = function(mediaSection) { const mid = SDPUtils.matchPrefix(mediaSection, 'a=mid:')[0]; if (mid) { return mid.substring(6); } }; // Parses a fingerprint line for DTLS-SRTP. SDPUtils.parseFingerprint = function(line) { const parts = line.substring(14).split(' '); return { algorithm: parts[0].toLowerCase(), // algorithm is case-sensitive in Edge. value: parts[1].toUpperCase(), // the definition is upper-case in RFC 4572. }; }; // Extracts DTLS parameters from SDP media section or sessionpart. // FIXME: for consistency with other functions this should only // get the fingerprint line as input. See also getIceParameters. SDPUtils.getDtlsParameters = function(mediaSection, sessionpart) { const lines = SDPUtils.matchPrefix(mediaSection + sessionpart, 'a=fingerprint:'); // Note: a=setup line is ignored since we use the 'auto' role in Edge. return { role: 'auto', fingerprints: lines.map(SDPUtils.parseFingerprint), }; }; // Serializes DTLS parameters to SDP. SDPUtils.writeDtlsParameters = function(params, setupType) { let sdp = 'a=setup:' + setupType + '\r\n'; params.fingerprints.forEach(fp => { sdp += 'a=fingerprint:' + fp.algorithm + ' ' + fp.value + '\r\n'; }); return sdp; }; // Parses a=crypto lines into // https://rawgit.com/aboba/edgertc/master/msortc-rs4.html#dictionary-rtcsrtpsdesparameters-members SDPUtils.parseCryptoLine = function(line) { const parts = line.substring(9).split(' '); return { tag: parseInt(parts[0], 10), cryptoSuite: parts[1], keyParams: parts[2], sessionParams: parts.slice(3), }; }; SDPUtils.writeCryptoLine = function(parameters) { return 'a=crypto:' + parameters.tag + ' ' + parameters.cryptoSuite + ' ' + (typeof parameters.keyParams === 'object' ? SDPUtils.writeCryptoKeyParams(parameters.keyParams) : parameters.keyParams) + (parameters.sessionParams ? ' ' + parameters.sessionParams.join(' ') : '') + '\r\n'; }; // Parses the crypto key parameters into // https://rawgit.com/aboba/edgertc/master/msortc-rs4.html#rtcsrtpkeyparam* SDPUtils.parseCryptoKeyParams = function(keyParams) { if (keyParams.indexOf('inline:') !== 0) { return null; } const parts = keyParams.substring(7).split('|'); return { keyMethod: 'inline', keySalt: parts[0], lifeTime: parts[1], mkiValue: parts[2] ? parts[2].split(':')[0] : undefined, mkiLength: parts[2] ? parts[2].split(':')[1] : undefined, }; }; SDPUtils.writeCryptoKeyParams = function(keyParams) { return keyParams.keyMethod + ':' + keyParams.keySalt + (keyParams.lifeTime ? '|' + keyParams.lifeTime : '') + (keyParams.mkiValue && keyParams.mkiLength ? '|' + keyParams.mkiValue + ':' + keyParams.mkiLength : ''); }; // Extracts all SDES parameters. SDPUtils.getCryptoParameters = function(mediaSection, sessionpart) { const lines = SDPUtils.matchPrefix(mediaSection + sessionpart, 'a=crypto:'); return lines.map(SDPUtils.parseCryptoLine); }; // Parses ICE information from SDP media section or sessionpart. // FIXME: for consistency with other functions this should only // get the ice-ufrag and ice-pwd lines as input. SDPUtils.getIceParameters = function(mediaSection, sessionpart) { const ufrag = SDPUtils.matchPrefix(mediaSection + sessionpart, 'a=ice-ufrag:')[0]; const pwd = SDPUtils.matchPrefix(mediaSection + sessionpart, 'a=ice-pwd:')[0]; if (!(ufrag && pwd)) { return null; } return { usernameFragment: ufrag.substring(12), password: pwd.substring(10), }; }; // Serializes ICE parameters to SDP. SDPUtils.writeIceParameters = function(params) { let sdp = 'a=ice-ufrag:' + params.usernameFragment + '\r\n' + 'a=ice-pwd:' + params.password + '\r\n'; if (params.iceLite) { sdp += 'a=ice-lite\r\n'; } return sdp; }; // Parses the SDP media section and returns RTCRtpParameters. SDPUtils.parseRtpParameters = function(mediaSection) { const description = { codecs: [], headerExtensions: [], fecMechanisms: [], rtcp: [], }; const lines = SDPUtils.splitLines(mediaSection); const mline = lines[0].split(' '); description.profile = mline[2]; for (let i = 3; i < mline.length; i++) { // find all codecs from mline[3..] const pt = mline[i]; const rtpmapline = SDPUtils.matchPrefix( mediaSection, 'a=rtpmap:' + pt + ' ')[0]; if (rtpmapline) { const codec = SDPUtils.parseRtpMap(rtpmapline); const fmtps = SDPUtils.matchPrefix( mediaSection, 'a=fmtp:' + pt + ' '); // Only the first a=fmtp: is considered. codec.parameters = fmtps.length ? SDPUtils.parseFmtp(fmtps[0]) : {}; codec.rtcpFeedback = SDPUtils.matchPrefix( mediaSection, 'a=rtcp-fb:' + pt + ' ') .map(SDPUtils.parseRtcpFb); description.codecs.push(codec); // parse FEC mechanisms from rtpmap lines. switch (codec.name.toUpperCase()) { case 'RED': case 'ULPFEC': description.fecMechanisms.push(codec.name.toUpperCase()); break; default: // only RED and ULPFEC are recognized as FEC mechanisms. break; } } } SDPUtils.matchPrefix(mediaSection, 'a=extmap:').forEach(line => { description.headerExtensions.push(SDPUtils.parseExtmap(line)); }); const wildcardRtcpFb = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-fb:* ') .map(SDPUtils.parseRtcpFb); description.codecs.forEach(codec => { wildcardRtcpFb.forEach(fb=> { const duplicate = codec.rtcpFeedback.find(existingFeedback => { return existingFeedback.type === fb.type && existingFeedback.parameter === fb.parameter; }); if (!duplicate) { codec.rtcpFeedback.push(fb); } }); }); // FIXME: parse rtcp. return description; }; // Generates parts of the SDP media section describing the capabilities / // parameters. SDPUtils.writeRtpDescription = function(kind, caps) { let sdp = ''; // Build the mline. sdp += 'm=' + kind + ' '; sdp += caps.codecs.length > 0 ? '9' : '0'; // reject if no codecs. sdp += ' ' + (caps.profile || 'UDP/TLS/RTP/SAVPF') + ' '; sdp += caps.codecs.map(codec => { if (codec.preferredPayloadType !== undefined) { return codec.preferredPayloadType; } return codec.payloadType; }).join(' ') + '\r\n'; sdp += 'c=IN IP4 0.0.0.0\r\n'; sdp += 'a=rtcp:9 IN IP4 0.0.0.0\r\n'; // Add a=rtpmap lines for each codec. Also fmtp and rtcp-fb. caps.codecs.forEach(codec => { sdp += SDPUtils.writeRtpMap(codec); sdp += SDPUtils.writeFmtp(codec); sdp += SDPUtils.writeRtcpFb(codec); }); let maxptime = 0; caps.codecs.forEach(codec => { if (codec.maxptime > maxptime) { maxptime = codec.maxptime; } }); if (maxptime > 0) { sdp += 'a=maxptime:' + maxptime + '\r\n'; } if (caps.headerExtensions) { caps.headerExtensions.forEach(extension => { sdp += SDPUtils.writeExtmap(extension); }); } // FIXME: write fecMechanisms. return sdp; }; // Parses the SDP media section and returns an array of // RTCRtpEncodingParameters. SDPUtils.parseRtpEncodingParameters = function(mediaSection) { const encodingParameters = []; const description = SDPUtils.parseRtpParameters(mediaSection); const hasRed = description.fecMechanisms.indexOf('RED') !== -1; const hasUlpfec = description.fecMechanisms.indexOf('ULPFEC') !== -1; // filter a=ssrc:... cname:, ignore PlanB-msid const ssrcs = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:') .map(line => SDPUtils.parseSsrcMedia(line)) .filter(parts => parts.attribute === 'cname'); const primarySsrc = ssrcs.length > 0 && ssrcs[0].ssrc; let secondarySsrc; const flows = SDPUtils.matchPrefix(mediaSection, 'a=ssrc-group:FID') .map(line => { const parts = line.substring(17).split(' '); return parts.map(part => parseInt(part, 10)); }); if (flows.length > 0 && flows[0].length > 1 && flows[0][0] === primarySsrc) { secondarySsrc = flows[0][1]; } description.codecs.forEach(codec => { if (codec.name.toUpperCase() === 'RTX' && codec.parameters.apt) { let encParam = { ssrc: primarySsrc, codecPayloadType: parseInt(codec.parameters.apt, 10), }; if (primarySsrc && secondarySsrc) { encParam.rtx = {ssrc: secondarySsrc}; } encodingParameters.push(encParam); if (hasRed) { encParam = JSON.parse(JSON.stringify(encParam)); encParam.fec = { ssrc: primarySsrc, mechanism: hasUlpfec ? 'red+ulpfec' : 'red', }; encodingParameters.push(encParam); } } }); if (encodingParameters.length === 0 && primarySsrc) { encodingParameters.push({ ssrc: primarySsrc, }); } // we support both b=AS and b=TIAS but interpret AS as TIAS. let bandwidth = SDPUtils.matchPrefix(mediaSection, 'b='); if (bandwidth.length) { if (bandwidth[0].indexOf('b=TIAS:') === 0) { bandwidth = parseInt(bandwidth[0].substring(7), 10); } else if (bandwidth[0].indexOf('b=AS:') === 0) { // use formula from JSEP to convert b=AS to TIAS value. bandwidth = parseInt(bandwidth[0].substring(5), 10) * 1000 * 0.95 - (50 * 40 * 8); } else { bandwidth = undefined; } encodingParameters.forEach(params => { params.maxBitrate = bandwidth; }); } return encodingParameters; }; // parses http://draft.ortc.org/#rtcrtcpparameters* SDPUtils.parseRtcpParameters = function(mediaSection) { const rtcpParameters = {}; // Gets the first SSRC. Note that with RTX there might be multiple // SSRCs. const remoteSsrc = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:') .map(line => SDPUtils.parseSsrcMedia(line)) .filter(obj => obj.attribute === 'cname')[0]; if (remoteSsrc) { rtcpParameters.cname = remoteSsrc.value; rtcpParameters.ssrc = remoteSsrc.ssrc; } // Edge uses the compound attribute instead of reducedSize // compound is !reducedSize const rsize = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-rsize'); rtcpParameters.reducedSize = rsize.length > 0; rtcpParameters.compound = rsize.length === 0; // parses the rtcp-mux attrіbute. // Note that Edge does not support unmuxed RTCP. const mux = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-mux'); rtcpParameters.mux = mux.length > 0; return rtcpParameters; }; SDPUtils.writeRtcpParameters = function(rtcpParameters) { let sdp = ''; if (rtcpParameters.reducedSize) { sdp += 'a=rtcp-rsize\r\n'; } if (rtcpParameters.mux) { sdp += 'a=rtcp-mux\r\n'; } if (rtcpParameters.ssrc !== undefined && rtcpParameters.cname) { sdp += 'a=ssrc:' + rtcpParameters.ssrc + ' cname:' + rtcpParameters.cname + '\r\n'; } return sdp; }; // parses either a=msid: or a=ssrc:... msid lines and returns // the id of the MediaStream and MediaStreamTrack. SDPUtils.parseMsid = function(mediaSection) { let parts; const spec = SDPUtils.matchPrefix(mediaSection, 'a=msid:'); if (spec.length === 1) { parts = spec[0].substring(7).split(' '); return {stream: parts[0], track: parts[1]}; } const planB = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:') .map(line => SDPUtils.parseSsrcMedia(line)) .filter(msidParts => msidParts.attribute === 'msid'); if (planB.length > 0) { parts = planB[0].value.split(' '); return {stream: parts[0], track: parts[1]}; } }; // SCTP // parses draft-ietf-mmusic-sctp-sdp-26 first and falls back // to draft-ietf-mmusic-sctp-sdp-05 SDPUtils.parseSctpDescription = function(mediaSection) { const mline = SDPUtils.parseMLine(mediaSection); const maxSizeLine = SDPUtils.matchPrefix(mediaSection, 'a=max-message-size:'); let maxMessageSize; if (maxSizeLine.length > 0) { maxMessageSize = parseInt(maxSizeLine[0].substring(19), 10); } if (isNaN(maxMessageSize)) { maxMessageSize = 65536; } const sctpPort = SDPUtils.matchPrefix(mediaSection, 'a=sctp-port:'); if (sctpPort.length > 0) { return { port: parseInt(sctpPort[0].substring(12), 10), protocol: mline.fmt, maxMessageSize, }; } const sctpMapLines = SDPUtils.matchPrefix(mediaSection, 'a=sctpmap:'); if (sctpMapLines.length > 0) { const parts = sctpMapLines[0] .substring(10) .split(' '); return { port: parseInt(parts[0], 10), protocol: parts[1], maxMessageSize, }; } }; // SCTP // outputs the draft-ietf-mmusic-sctp-sdp-26 version that all browsers // support by now receiving in this format, unless we originally parsed // as the draft-ietf-mmusic-sctp-sdp-05 format (indicated by the m-line // protocol of DTLS/SCTP -- without UDP/ or TCP/) SDPUtils.writeSctpDescription = function(media, sctp) { let output = []; if (media.protocol !== 'DTLS/SCTP') { output = [ 'm=' + media.kind + ' 9 ' + media.protocol + ' ' + sctp.protocol + '\r\n', 'c=IN IP4 0.0.0.0\r\n', 'a=sctp-port:' + sctp.port + '\r\n', ]; } else { output = [ 'm=' + media.kind + ' 9 ' + media.protocol + ' ' + sctp.port + '\r\n', 'c=IN IP4 0.0.0.0\r\n', 'a=sctpmap:' + sctp.port + ' ' + sctp.protocol + ' 65535\r\n', ]; } if (sctp.maxMessageSize !== undefined) { output.push('a=max-message-size:' + sctp.maxMessageSize + '\r\n'); } return output.join(''); }; // Generate a session ID for SDP. // https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-20#section-5.2.1 // recommends using a cryptographically random +ve 64-bit value // but right now this should be acceptable and within the right range SDPUtils.generateSessionId = function() { return Math.random().toString().substr(2, 22); }; // Write boiler plate for start of SDP // sessId argument is optional - if not supplied it will // be generated randomly // sessVersion is optional and defaults to 2 // sessUser is optional and defaults to 'thisisadapterortc' SDPUtils.writeSessionBoilerplate = function(sessId, sessVer, sessUser) { let sessionId; const version = sessVer !== undefined ? sessVer : 2; if (sessId) { sessionId = sessId; } else { sessionId = SDPUtils.generateSessionId(); } const user = sessUser || 'thisisadapterortc'; // FIXME: sess-id should be an NTP timestamp. return 'v=0\r\n' + 'o=' + user + ' ' + sessionId + ' ' + version + ' IN IP4 127.0.0.1\r\n' + 's=-\r\n' + 't=0 0\r\n'; }; // Gets the direction from the mediaSection or the sessionpart. SDPUtils.getDirection = function(mediaSection, sessionpart) { // Look for sendrecv, sendonly, recvonly, inactive, default to sendrecv. const lines = SDPUtils.splitLines(mediaSection); for (let i = 0; i < lines.length; i++) { switch (lines[i]) { case 'a=sendrecv': case 'a=sendonly': case 'a=recvonly': case 'a=inactive': return lines[i].substring(2); default: // FIXME: What should happen here? } } if (sessionpart) { return SDPUtils.getDirection(sessionpart); } return 'sendrecv'; }; SDPUtils.getKind = function(mediaSection) { const lines = SDPUtils.splitLines(mediaSection); const mline = lines[0].split(' '); return mline[0].substring(2); }; SDPUtils.isRejected = function(mediaSection) { return mediaSection.split(' ', 2)[1] === '0'; }; SDPUtils.parseMLine = function(mediaSection) { const lines = SDPUtils.splitLines(mediaSection); const parts = lines[0].substring(2).split(' '); return { kind: parts[0], port: parseInt(parts[1], 10), protocol: parts[2], fmt: parts.slice(3).join(' '), }; }; SDPUtils.parseOLine = function(mediaSection) { const line = SDPUtils.matchPrefix(mediaSection, 'o=')[0]; const parts = line.substring(2).split(' '); return { username: parts[0], sessionId: parts[1], sessionVersion: parseInt(parts[2], 10), netType: parts[3], addressType: parts[4], address: parts[5], }; }; // a very naive interpretation of a valid SDP. SDPUtils.isValidSDP = function(blob) { if (typeof blob !== 'string' || blob.length === 0) { return false; } const lines = SDPUtils.splitLines(blob); for (let i = 0; i < lines.length; i++) { if (lines[i].length < 2 || lines[i].charAt(1) !== '=') { return false; } // TODO: check the modifier a bit more. } return true; }; // Expose public methods. if (true) { module.exports = SDPUtils; } /***/ }), /***/ "./node_modules/side-channel-list/index.js": /*!*************************************************!*\ !*** ./node_modules/side-channel-list/index.js ***! \*************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var inspect = __webpack_require__(/*! object-inspect */ "./node_modules/side-channel-list/node_modules/object-inspect/index.js"); var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js"); /* * This function traverses the list returning the node corresponding to the given key. * * That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. * By doing so, all the recently used nodes can be accessed relatively quickly. */ /** @type {import('./list.d.ts').listGetNode} */ // eslint-disable-next-line consistent-return var listGetNode = function (list, key, isDelete) { /** @type {typeof list | NonNullable<(typeof list)['next']>} */ var prev = list; /** @type {(typeof list)['next']} */ var curr; // eslint-disable-next-line eqeqeq for (; (curr = prev.next) != null; prev = curr) { if (curr.key === key) { prev.next = curr.next; if (!isDelete) { // eslint-disable-next-line no-extra-parens curr.next = /** @type {NonNullable} */ (list.next); list.next = curr; // eslint-disable-line no-param-reassign } return curr; } } }; /** @type {import('./list.d.ts').listGet} */ var listGet = function (objects, key) { if (!objects) { return void undefined; } var node = listGetNode(objects, key); return node && node.value; }; /** @type {import('./list.d.ts').listSet} */ var listSet = function (objects, key, value) { var node = listGetNode(objects, key); if (node) { node.value = value; } else { // Prepend the new node to the beginning of the list objects.next = /** @type {import('./list.d.ts').ListNode} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens key: key, next: objects.next, value: value }); } }; /** @type {import('./list.d.ts').listHas} */ var listHas = function (objects, key) { if (!objects) { return false; } return !!listGetNode(objects, key); }; /** @type {import('./list.d.ts').listDelete} */ // eslint-disable-next-line consistent-return var listDelete = function (objects, key) { if (objects) { return listGetNode(objects, key, true); } }; /** @type {import('.')} */ module.exports = function getSideChannelList() { /** @typedef {ReturnType} Channel */ /** @typedef {Parameters[0]} K */ /** @typedef {Parameters[1]} V */ /** @type {import('./list.d.ts').RootNode | undefined} */ var $o; /** @type {Channel} */ var channel = { assert: function (key) { if (!channel.has(key)) { throw new $TypeError('Side channel does not contain ' + inspect(key)); } }, 'delete': function (key) { var root = $o && $o.next; var deletedNode = listDelete($o, key); if (deletedNode && root && root === deletedNode) { $o = void undefined; } return !!deletedNode; }, get: function (key) { return listGet($o, key); }, has: function (key) { return listHas($o, key); }, set: function (key, value) { if (!$o) { // Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head $o = { next: void undefined }; } // eslint-disable-next-line no-extra-parens listSet(/** @type {NonNullable} */ ($o), key, value); } }; // @ts-expect-error TODO: figure out why this is erroring return channel; }; /***/ }), /***/ "./node_modules/side-channel-list/node_modules/object-inspect/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/side-channel-list/node_modules/object-inspect/index.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {var hasMap = typeof Map === 'function' && Map.prototype; var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; var mapForEach = hasMap && Map.prototype.forEach; var hasSet = typeof Set === 'function' && Set.prototype; var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; var setForEach = hasSet && Set.prototype.forEach; var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype; var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; var booleanValueOf = Boolean.prototype.valueOf; var objectToString = Object.prototype.toString; var functionToString = Function.prototype.toString; var $match = String.prototype.match; var $slice = String.prototype.slice; var $replace = String.prototype.replace; var $toUpperCase = String.prototype.toUpperCase; var $toLowerCase = String.prototype.toLowerCase; var $test = RegExp.prototype.test; var $concat = Array.prototype.concat; var $join = Array.prototype.join; var $arrSlice = Array.prototype.slice; var $floor = Math.floor; var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; var gOPS = Object.getOwnPropertySymbols; var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; // ie, `has-tostringtag/shams var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') ? Symbol.toStringTag : null; var isEnumerable = Object.prototype.propertyIsEnumerable; var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ( [].__proto__ === Array.prototype // eslint-disable-line no-proto ? function (O) { return O.__proto__; // eslint-disable-line no-proto } : null ); function addNumericSeparator(num, str) { if ( num === Infinity || num === -Infinity || num !== num || (num && num > -1000 && num < 1000) || $test.call(/e/, str) ) { return str; } var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; if (typeof num === 'number') { var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) if (int !== num) { var intStr = String(int); var dec = $slice.call(str, intStr.length + 1); return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); } } return $replace.call(str, sepRegex, '$&_'); } var utilInspect = __webpack_require__(/*! ./util.inspect */ 9); var inspectCustom = utilInspect.custom; var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; var quotes = { __proto__: null, 'double': '"', single: "'" }; var quoteREs = { __proto__: null, 'double': /(["\\])/g, single: /(['\\])/g }; module.exports = function inspect_(obj, options, depth, seen) { var opts = options || {}; if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) { throw new TypeError('option "quoteStyle" must be "single" or "double"'); } if ( has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null ) ) { throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); } var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') { throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); } if ( has(opts, 'indent') && opts.indent !== null && opts.indent !== '\t' && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) ) { throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); } if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); } var numericSeparator = opts.numericSeparator; if (typeof obj === 'undefined') { return 'undefined'; } if (obj === null) { return 'null'; } if (typeof obj === 'boolean') { return obj ? 'true' : 'false'; } if (typeof obj === 'string') { return inspectString(obj, opts); } if (typeof obj === 'number') { if (obj === 0) { return Infinity / obj > 0 ? '0' : '-0'; } var str = String(obj); return numericSeparator ? addNumericSeparator(obj, str) : str; } if (typeof obj === 'bigint') { var bigIntStr = String(obj) + 'n'; return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; } var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; if (typeof depth === 'undefined') { depth = 0; } if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { return isArray(obj) ? '[Array]' : '[Object]'; } var indent = getIndent(opts, depth); if (typeof seen === 'undefined') { seen = []; } else if (indexOf(seen, obj) >= 0) { return '[Circular]'; } function inspect(value, from, noIndent) { if (from) { seen = $arrSlice.call(seen); seen.push(from); } if (noIndent) { var newOpts = { depth: opts.depth }; if (has(opts, 'quoteStyle')) { newOpts.quoteStyle = opts.quoteStyle; } return inspect_(value, newOpts, depth + 1, seen); } return inspect_(value, opts, depth + 1, seen); } if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable var name = nameOf(obj); var keys = arrObjKeys(obj, inspect); return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); } if (isSymbol(obj)) { var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; } if (isElement(obj)) { var s = '<' + $toLowerCase.call(String(obj.nodeName)); var attrs = obj.attributes || []; for (var i = 0; i < attrs.length; i++) { s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); } s += '>'; if (obj.childNodes && obj.childNodes.length) { s += '...'; } s += ''; return s; } if (isArray(obj)) { if (obj.length === 0) { return '[]'; } var xs = arrObjKeys(obj, inspect); if (indent && !singleLineValues(xs)) { return '[' + indentedJoin(xs, indent) + ']'; } return '[ ' + $join.call(xs, ', ') + ' ]'; } if (isError(obj)) { var parts = arrObjKeys(obj, inspect); if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) { return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; } if (parts.length === 0) { return '[' + String(obj) + ']'; } return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; } if (typeof obj === 'object' && customInspect) { if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) { return utilInspect(obj, { depth: maxDepth - depth }); } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') { return obj.inspect(); } } if (isMap(obj)) { var mapParts = []; if (mapForEach) { mapForEach.call(obj, function (value, key) { mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); }); } return collectionOf('Map', mapSize.call(obj), mapParts, indent); } if (isSet(obj)) { var setParts = []; if (setForEach) { setForEach.call(obj, function (value) { setParts.push(inspect(value, obj)); }); } return collectionOf('Set', setSize.call(obj), setParts, indent); } if (isWeakMap(obj)) { return weakCollectionOf('WeakMap'); } if (isWeakSet(obj)) { return weakCollectionOf('WeakSet'); } if (isWeakRef(obj)) { return weakCollectionOf('WeakRef'); } if (isNumber(obj)) { return markBoxed(inspect(Number(obj))); } if (isBigInt(obj)) { return markBoxed(inspect(bigIntValueOf.call(obj))); } if (isBoolean(obj)) { return markBoxed(booleanValueOf.call(obj)); } if (isString(obj)) { return markBoxed(inspect(String(obj))); } // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other /* eslint-env browser */ if (typeof window !== 'undefined' && obj === window) { return '{ [object Window] }'; } if ( (typeof globalThis !== 'undefined' && obj === globalThis) || (typeof global !== 'undefined' && obj === global) ) { return '{ [object globalThis] }'; } if (!isDate(obj) && !isRegExp(obj)) { var ys = arrObjKeys(obj, inspect); var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; var protoTag = obj instanceof Object ? '' : 'null prototype'; var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); if (ys.length === 0) { return tag + '{}'; } if (indent) { return tag + '{' + indentedJoin(ys, indent) + '}'; } return tag + '{ ' + $join.call(ys, ', ') + ' }'; } return String(obj); }; function wrapQuotes(s, defaultStyle, opts) { var style = opts.quoteStyle || defaultStyle; var quoteChar = quotes[style]; return quoteChar + s + quoteChar; } function quote(s) { return $replace.call(String(s), /"/g, '"'); } function canTrustToString(obj) { return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined')); } function isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); } function isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); } function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); } function isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); } function isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); } function isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); } function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); } // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives function isSymbol(obj) { if (hasShammedSymbols) { return obj && typeof obj === 'object' && obj instanceof Symbol; } if (typeof obj === 'symbol') { return true; } if (!obj || typeof obj !== 'object' || !symToString) { return false; } try { symToString.call(obj); return true; } catch (e) {} return false; } function isBigInt(obj) { if (!obj || typeof obj !== 'object' || !bigIntValueOf) { return false; } try { bigIntValueOf.call(obj); return true; } catch (e) {} return false; } var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; function has(obj, key) { return hasOwn.call(obj, key); } function toStr(obj) { return objectToString.call(obj); } function nameOf(f) { if (f.name) { return f.name; } var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); if (m) { return m[1]; } return null; } function indexOf(xs, x) { if (xs.indexOf) { return xs.indexOf(x); } for (var i = 0, l = xs.length; i < l; i++) { if (xs[i] === x) { return i; } } return -1; } function isMap(x) { if (!mapSize || !x || typeof x !== 'object') { return false; } try { mapSize.call(x); try { setSize.call(x); } catch (s) { return true; } return x instanceof Map; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isWeakMap(x) { if (!weakMapHas || !x || typeof x !== 'object') { return false; } try { weakMapHas.call(x, weakMapHas); try { weakSetHas.call(x, weakSetHas); } catch (s) { return true; } return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isWeakRef(x) { if (!weakRefDeref || !x || typeof x !== 'object') { return false; } try { weakRefDeref.call(x); return true; } catch (e) {} return false; } function isSet(x) { if (!setSize || !x || typeof x !== 'object') { return false; } try { setSize.call(x); try { mapSize.call(x); } catch (m) { return true; } return x instanceof Set; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isWeakSet(x) { if (!weakSetHas || !x || typeof x !== 'object') { return false; } try { weakSetHas.call(x, weakSetHas); try { weakMapHas.call(x, weakMapHas); } catch (s) { return true; } return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isElement(x) { if (!x || typeof x !== 'object') { return false; } if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { return true; } return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; } function inspectString(str, opts) { if (str.length > opts.maxStringLength) { var remaining = str.length - opts.maxStringLength; var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; } var quoteRE = quoteREs[opts.quoteStyle || 'single']; quoteRE.lastIndex = 0; // eslint-disable-next-line no-control-regex var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte); return wrapQuotes(s, 'single', opts); } function lowbyte(c) { var n = c.charCodeAt(0); var x = { 8: 'b', 9: 't', 10: 'n', 12: 'f', 13: 'r' }[n]; if (x) { return '\\' + x; } return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); } function markBoxed(str) { return 'Object(' + str + ')'; } function weakCollectionOf(type) { return type + ' { ? }'; } function collectionOf(type, size, entries, indent) { var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); return type + ' (' + size + ') {' + joinedEntries + '}'; } function singleLineValues(xs) { for (var i = 0; i < xs.length; i++) { if (indexOf(xs[i], '\n') >= 0) { return false; } } return true; } function getIndent(opts, depth) { var baseIndent; if (opts.indent === '\t') { baseIndent = '\t'; } else if (typeof opts.indent === 'number' && opts.indent > 0) { baseIndent = $join.call(Array(opts.indent + 1), ' '); } else { return null; } return { base: baseIndent, prev: $join.call(Array(depth + 1), baseIndent) }; } function indentedJoin(xs, indent) { if (xs.length === 0) { return ''; } var lineJoiner = '\n' + indent.prev + indent.base; return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; } function arrObjKeys(obj, inspect) { var isArr = isArray(obj); var xs = []; if (isArr) { xs.length = obj.length; for (var i = 0; i < obj.length; i++) { xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; } } var syms = typeof gOPS === 'function' ? gOPS(obj) : []; var symMap; if (hasShammedSymbols) { symMap = {}; for (var k = 0; k < syms.length; k++) { symMap['$' + syms[k]] = syms[k]; } } for (var key in obj) { // eslint-disable-line no-restricted-syntax if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section continue; // eslint-disable-line no-restricted-syntax, no-continue } else if ($test.call(/[^\w$]/, key)) { xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); } else { xs.push(key + ': ' + inspect(obj[key], obj)); } } if (typeof gOPS === 'function') { for (var j = 0; j < syms.length; j++) { if (isEnumerable.call(obj, syms[j])) { xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); } } } return xs; } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) /***/ }), /***/ "./node_modules/side-channel-map/index.js": /*!************************************************!*\ !*** ./node_modules/side-channel-map/index.js ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/side-channel-map/node_modules/get-intrinsic/index.js"); var callBound = __webpack_require__(/*! call-bound */ "./node_modules/call-bound/index.js"); var inspect = __webpack_require__(/*! object-inspect */ "./node_modules/side-channel-map/node_modules/object-inspect/index.js"); var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js"); var $Map = GetIntrinsic('%Map%', true); /** @type {(thisArg: Map, key: K) => V} */ var $mapGet = callBound('Map.prototype.get', true); /** @type {(thisArg: Map, key: K, value: V) => void} */ var $mapSet = callBound('Map.prototype.set', true); /** @type {(thisArg: Map, key: K) => boolean} */ var $mapHas = callBound('Map.prototype.has', true); /** @type {(thisArg: Map, key: K) => boolean} */ var $mapDelete = callBound('Map.prototype.delete', true); /** @type {(thisArg: Map) => number} */ var $mapSize = callBound('Map.prototype.size', true); /** @type {import('.')} */ module.exports = !!$Map && /** @type {Exclude} */ function getSideChannelMap() { /** @typedef {ReturnType} Channel */ /** @typedef {Parameters[0]} K */ /** @typedef {Parameters[1]} V */ /** @type {Map | undefined} */ var $m; /** @type {Channel} */ var channel = { assert: function (key) { if (!channel.has(key)) { throw new $TypeError('Side channel does not contain ' + inspect(key)); } }, 'delete': function (key) { if ($m) { var result = $mapDelete($m, key); if ($mapSize($m) === 0) { $m = void undefined; } return result; } return false; }, get: function (key) { // eslint-disable-line consistent-return if ($m) { return $mapGet($m, key); } }, has: function (key) { if ($m) { return $mapHas($m, key); } return false; }, set: function (key, value) { if (!$m) { // @ts-expect-error TS can't handle narrowing a variable inside a closure $m = new $Map(); } $mapSet($m, key, value); } }; // @ts-expect-error TODO: figure out why TS is erroring here return channel; }; /***/ }), /***/ "./node_modules/side-channel-map/node_modules/es-define-property/index.js": /*!********************************************************************************!*\ !*** ./node_modules/side-channel-map/node_modules/es-define-property/index.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('.')} */ var $defineProperty = Object.defineProperty || false; if ($defineProperty) { try { $defineProperty({}, 'a', { value: 1 }); } catch (e) { // IE 8 has a broken defineProperty $defineProperty = false; } } module.exports = $defineProperty; /***/ }), /***/ "./node_modules/side-channel-map/node_modules/es-object-atoms/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/side-channel-map/node_modules/es-object-atoms/index.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('.')} */ module.exports = Object; /***/ }), /***/ "./node_modules/side-channel-map/node_modules/get-intrinsic/index.js": /*!***************************************************************************!*\ !*** ./node_modules/side-channel-map/node_modules/get-intrinsic/index.js ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var undefined; var $Object = __webpack_require__(/*! es-object-atoms */ "./node_modules/side-channel-map/node_modules/es-object-atoms/index.js"); var $Error = __webpack_require__(/*! es-errors */ "./node_modules/es-errors/index.js"); var $EvalError = __webpack_require__(/*! es-errors/eval */ "./node_modules/es-errors/eval.js"); var $RangeError = __webpack_require__(/*! es-errors/range */ "./node_modules/es-errors/range.js"); var $ReferenceError = __webpack_require__(/*! es-errors/ref */ "./node_modules/es-errors/ref.js"); var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "./node_modules/es-errors/syntax.js"); var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js"); var $URIError = __webpack_require__(/*! es-errors/uri */ "./node_modules/es-errors/uri.js"); var abs = __webpack_require__(/*! math-intrinsics/abs */ "./node_modules/math-intrinsics/abs.js"); var floor = __webpack_require__(/*! math-intrinsics/floor */ "./node_modules/math-intrinsics/floor.js"); var max = __webpack_require__(/*! math-intrinsics/max */ "./node_modules/math-intrinsics/max.js"); var min = __webpack_require__(/*! math-intrinsics/min */ "./node_modules/math-intrinsics/min.js"); var pow = __webpack_require__(/*! math-intrinsics/pow */ "./node_modules/math-intrinsics/pow.js"); var round = __webpack_require__(/*! math-intrinsics/round */ "./node_modules/math-intrinsics/round.js"); var sign = __webpack_require__(/*! math-intrinsics/sign */ "./node_modules/math-intrinsics/sign.js"); var $Function = Function; // eslint-disable-next-line consistent-return var getEvalledConstructor = function (expressionSyntax) { try { return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); } catch (e) {} }; var $gOPD = __webpack_require__(/*! gopd */ "./node_modules/side-channel-map/node_modules/gopd/index.js"); var $defineProperty = __webpack_require__(/*! es-define-property */ "./node_modules/side-channel-map/node_modules/es-define-property/index.js"); var throwTypeError = function () { throw new $TypeError(); }; var ThrowTypeError = $gOPD ? (function () { try { // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties arguments.callee; // IE 8 does not throw here return throwTypeError; } catch (calleeThrows) { try { // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') return $gOPD(arguments, 'callee').get; } catch (gOPDthrows) { return throwTypeError; } } }()) : throwTypeError; var hasSymbols = __webpack_require__(/*! has-symbols */ "./node_modules/side-channel-map/node_modules/has-symbols/index.js")(); var getProto = __webpack_require__(/*! get-proto */ "./node_modules/get-proto/index.js"); var $ObjectGPO = __webpack_require__(/*! get-proto/Object.getPrototypeOf */ "./node_modules/get-proto/Object.getPrototypeOf.js"); var $ReflectGPO = __webpack_require__(/*! get-proto/Reflect.getPrototypeOf */ "./node_modules/get-proto/Reflect.getPrototypeOf.js"); var $apply = __webpack_require__(/*! call-bind-apply-helpers/functionApply */ "./node_modules/call-bind-apply-helpers/functionApply.js"); var $call = __webpack_require__(/*! call-bind-apply-helpers/functionCall */ "./node_modules/call-bind-apply-helpers/functionCall.js"); var needsEval = {}; var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); var INTRINSICS = { __proto__: null, '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, '%Array%': Array, '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, '%AsyncFromSyncIteratorPrototype%': undefined, '%AsyncFunction%': needsEval, '%AsyncGenerator%': needsEval, '%AsyncGeneratorFunction%': needsEval, '%AsyncIteratorPrototype%': needsEval, '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, '%Boolean%': Boolean, '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, '%Date%': Date, '%decodeURI%': decodeURI, '%decodeURIComponent%': decodeURIComponent, '%encodeURI%': encodeURI, '%encodeURIComponent%': encodeURIComponent, '%Error%': $Error, '%eval%': eval, // eslint-disable-line no-eval '%EvalError%': $EvalError, '%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array, '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, '%Function%': $Function, '%GeneratorFunction%': needsEval, '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, '%isFinite%': isFinite, '%isNaN%': isNaN, '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, '%JSON%': typeof JSON === 'object' ? JSON : undefined, '%Map%': typeof Map === 'undefined' ? undefined : Map, '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), '%Math%': Math, '%Number%': Number, '%Object%': $Object, '%Object.getOwnPropertyDescriptor%': $gOPD, '%parseFloat%': parseFloat, '%parseInt%': parseInt, '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, '%RangeError%': $RangeError, '%ReferenceError%': $ReferenceError, '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, '%RegExp%': RegExp, '%Set%': typeof Set === 'undefined' ? undefined : Set, '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, '%String%': String, '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, '%Symbol%': hasSymbols ? Symbol : undefined, '%SyntaxError%': $SyntaxError, '%ThrowTypeError%': ThrowTypeError, '%TypedArray%': TypedArray, '%TypeError%': $TypeError, '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, '%URIError%': $URIError, '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet, '%Function.prototype.call%': $call, '%Function.prototype.apply%': $apply, '%Object.defineProperty%': $defineProperty, '%Object.getPrototypeOf%': $ObjectGPO, '%Math.abs%': abs, '%Math.floor%': floor, '%Math.max%': max, '%Math.min%': min, '%Math.pow%': pow, '%Math.round%': round, '%Math.sign%': sign, '%Reflect.getPrototypeOf%': $ReflectGPO }; if (getProto) { try { null.error; // eslint-disable-line no-unused-expressions } catch (e) { // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 var errorProto = getProto(getProto(e)); INTRINSICS['%Error.prototype%'] = errorProto; } } var doEval = function doEval(name) { var value; if (name === '%AsyncFunction%') { value = getEvalledConstructor('async function () {}'); } else if (name === '%GeneratorFunction%') { value = getEvalledConstructor('function* () {}'); } else if (name === '%AsyncGeneratorFunction%') { value = getEvalledConstructor('async function* () {}'); } else if (name === '%AsyncGenerator%') { var fn = doEval('%AsyncGeneratorFunction%'); if (fn) { value = fn.prototype; } } else if (name === '%AsyncIteratorPrototype%') { var gen = doEval('%AsyncGenerator%'); if (gen && getProto) { value = getProto(gen.prototype); } } INTRINSICS[name] = value; return value; }; var LEGACY_ALIASES = { __proto__: null, '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], '%ArrayPrototype%': ['Array', 'prototype'], '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], '%ArrayProto_values%': ['Array', 'prototype', 'values'], '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], '%BooleanPrototype%': ['Boolean', 'prototype'], '%DataViewPrototype%': ['DataView', 'prototype'], '%DatePrototype%': ['Date', 'prototype'], '%ErrorPrototype%': ['Error', 'prototype'], '%EvalErrorPrototype%': ['EvalError', 'prototype'], '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], '%FunctionPrototype%': ['Function', 'prototype'], '%Generator%': ['GeneratorFunction', 'prototype'], '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], '%JSONParse%': ['JSON', 'parse'], '%JSONStringify%': ['JSON', 'stringify'], '%MapPrototype%': ['Map', 'prototype'], '%NumberPrototype%': ['Number', 'prototype'], '%ObjectPrototype%': ['Object', 'prototype'], '%ObjProto_toString%': ['Object', 'prototype', 'toString'], '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], '%PromisePrototype%': ['Promise', 'prototype'], '%PromiseProto_then%': ['Promise', 'prototype', 'then'], '%Promise_all%': ['Promise', 'all'], '%Promise_reject%': ['Promise', 'reject'], '%Promise_resolve%': ['Promise', 'resolve'], '%RangeErrorPrototype%': ['RangeError', 'prototype'], '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], '%RegExpPrototype%': ['RegExp', 'prototype'], '%SetPrototype%': ['Set', 'prototype'], '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], '%StringPrototype%': ['String', 'prototype'], '%SymbolPrototype%': ['Symbol', 'prototype'], '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], '%TypedArrayPrototype%': ['TypedArray', 'prototype'], '%TypeErrorPrototype%': ['TypeError', 'prototype'], '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], '%URIErrorPrototype%': ['URIError', 'prototype'], '%WeakMapPrototype%': ['WeakMap', 'prototype'], '%WeakSetPrototype%': ['WeakSet', 'prototype'] }; var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js"); var hasOwn = __webpack_require__(/*! hasown */ "./node_modules/hasown/index.js"); var $concat = bind.call($call, Array.prototype.concat); var $spliceApply = bind.call($apply, Array.prototype.splice); var $replace = bind.call($call, String.prototype.replace); var $strSlice = bind.call($call, String.prototype.slice); var $exec = bind.call($call, RegExp.prototype.exec); /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ var stringToPath = function stringToPath(string) { var first = $strSlice(string, 0, 1); var last = $strSlice(string, -1); if (first === '%' && last !== '%') { throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); } else if (last === '%' && first !== '%') { throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); } var result = []; $replace(string, rePropName, function (match, number, quote, subString) { result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; }); return result; }; /* end adaptation */ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { var intrinsicName = name; var alias; if (hasOwn(LEGACY_ALIASES, intrinsicName)) { alias = LEGACY_ALIASES[intrinsicName]; intrinsicName = '%' + alias[0] + '%'; } if (hasOwn(INTRINSICS, intrinsicName)) { var value = INTRINSICS[intrinsicName]; if (value === needsEval) { value = doEval(intrinsicName); } if (typeof value === 'undefined' && !allowMissing) { throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); } return { alias: alias, name: intrinsicName, value: value }; } throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); }; module.exports = function GetIntrinsic(name, allowMissing) { if (typeof name !== 'string' || name.length === 0) { throw new $TypeError('intrinsic name must be a non-empty string'); } if (arguments.length > 1 && typeof allowMissing !== 'boolean') { throw new $TypeError('"allowMissing" argument must be a boolean'); } if ($exec(/^%?[^%]*%?$/, name) === null) { throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name'); } var parts = stringToPath(name); var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); var intrinsicRealName = intrinsic.name; var value = intrinsic.value; var skipFurtherCaching = false; var alias = intrinsic.alias; if (alias) { intrinsicBaseName = alias[0]; $spliceApply(parts, $concat([0, 1], alias)); } for (var i = 1, isOwn = true; i < parts.length; i += 1) { var part = parts[i]; var first = $strSlice(part, 0, 1); var last = $strSlice(part, -1); if ( ( (first === '"' || first === "'" || first === '`') || (last === '"' || last === "'" || last === '`') ) && first !== last ) { throw new $SyntaxError('property names with quotes must have matching quotes'); } if (part === 'constructor' || !isOwn) { skipFurtherCaching = true; } intrinsicBaseName += '.' + part; intrinsicRealName = '%' + intrinsicBaseName + '%'; if (hasOwn(INTRINSICS, intrinsicRealName)) { value = INTRINSICS[intrinsicRealName]; } else if (value != null) { if (!(part in value)) { if (!allowMissing) { throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); } return void undefined; } if ($gOPD && (i + 1) >= parts.length) { var desc = $gOPD(value, part); isOwn = !!desc; // By convention, when a data property is converted to an accessor // property to emulate a data property that does not suffer from // the override mistake, that accessor's getter is marked with // an `originalValue` property. Here, when we detect this, we // uphold the illusion by pretending to see that original data // property, i.e., returning the value rather than the getter // itself. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { value = desc.get; } else { value = value[part]; } } else { isOwn = hasOwn(value, part); value = value[part]; } if (isOwn && !skipFurtherCaching) { INTRINSICS[intrinsicRealName] = value; } } } return value; }; /***/ }), /***/ "./node_modules/side-channel-map/node_modules/gopd/gOPD.js": /*!*****************************************************************!*\ !*** ./node_modules/side-channel-map/node_modules/gopd/gOPD.js ***! \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./gOPD')} */ module.exports = Object.getOwnPropertyDescriptor; /***/ }), /***/ "./node_modules/side-channel-map/node_modules/gopd/index.js": /*!******************************************************************!*\ !*** ./node_modules/side-channel-map/node_modules/gopd/index.js ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('.')} */ var $gOPD = __webpack_require__(/*! ./gOPD */ "./node_modules/side-channel-map/node_modules/gopd/gOPD.js"); if ($gOPD) { try { $gOPD([], 'length'); } catch (e) { // IE 8 has a broken gOPD $gOPD = null; } } module.exports = $gOPD; /***/ }), /***/ "./node_modules/side-channel-map/node_modules/has-symbols/index.js": /*!*************************************************************************!*\ !*** ./node_modules/side-channel-map/node_modules/has-symbols/index.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var origSymbol = typeof Symbol !== 'undefined' && Symbol; var hasSymbolSham = __webpack_require__(/*! ./shams */ "./node_modules/side-channel-map/node_modules/has-symbols/shams.js"); /** @type {import('.')} */ module.exports = function hasNativeSymbols() { if (typeof origSymbol !== 'function') { return false; } if (typeof Symbol !== 'function') { return false; } if (typeof origSymbol('foo') !== 'symbol') { return false; } if (typeof Symbol('bar') !== 'symbol') { return false; } return hasSymbolSham(); }; /***/ }), /***/ "./node_modules/side-channel-map/node_modules/has-symbols/shams.js": /*!*************************************************************************!*\ !*** ./node_modules/side-channel-map/node_modules/has-symbols/shams.js ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./shams')} */ /* eslint complexity: [2, 18], max-statements: [2, 33] */ module.exports = function hasSymbols() { if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } if (typeof Symbol.iterator === 'symbol') { return true; } /** @type {{ [k in symbol]?: unknown }} */ var obj = {}; var sym = Symbol('test'); var symObj = Object(sym); if (typeof sym === 'string') { return false; } if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } // temp disabled per https://github.com/ljharb/object.assign/issues/17 // if (sym instanceof Symbol) { return false; } // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 // if (!(symObj instanceof Symbol)) { return false; } // if (typeof Symbol.prototype.toString !== 'function') { return false; } // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } var symVal = 42; obj[sym] = symVal; for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } var syms = Object.getOwnPropertySymbols(obj); if (syms.length !== 1 || syms[0] !== sym) { return false; } if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } if (typeof Object.getOwnPropertyDescriptor === 'function') { // eslint-disable-next-line no-extra-parens var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym)); if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } } return true; }; /***/ }), /***/ "./node_modules/side-channel-map/node_modules/object-inspect/index.js": /*!****************************************************************************!*\ !*** ./node_modules/side-channel-map/node_modules/object-inspect/index.js ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {var hasMap = typeof Map === 'function' && Map.prototype; var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; var mapForEach = hasMap && Map.prototype.forEach; var hasSet = typeof Set === 'function' && Set.prototype; var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; var setForEach = hasSet && Set.prototype.forEach; var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype; var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; var booleanValueOf = Boolean.prototype.valueOf; var objectToString = Object.prototype.toString; var functionToString = Function.prototype.toString; var $match = String.prototype.match; var $slice = String.prototype.slice; var $replace = String.prototype.replace; var $toUpperCase = String.prototype.toUpperCase; var $toLowerCase = String.prototype.toLowerCase; var $test = RegExp.prototype.test; var $concat = Array.prototype.concat; var $join = Array.prototype.join; var $arrSlice = Array.prototype.slice; var $floor = Math.floor; var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; var gOPS = Object.getOwnPropertySymbols; var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; // ie, `has-tostringtag/shams var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') ? Symbol.toStringTag : null; var isEnumerable = Object.prototype.propertyIsEnumerable; var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ( [].__proto__ === Array.prototype // eslint-disable-line no-proto ? function (O) { return O.__proto__; // eslint-disable-line no-proto } : null ); function addNumericSeparator(num, str) { if ( num === Infinity || num === -Infinity || num !== num || (num && num > -1000 && num < 1000) || $test.call(/e/, str) ) { return str; } var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; if (typeof num === 'number') { var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) if (int !== num) { var intStr = String(int); var dec = $slice.call(str, intStr.length + 1); return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); } } return $replace.call(str, sepRegex, '$&_'); } var utilInspect = __webpack_require__(/*! ./util.inspect */ 10); var inspectCustom = utilInspect.custom; var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; var quotes = { __proto__: null, 'double': '"', single: "'" }; var quoteREs = { __proto__: null, 'double': /(["\\])/g, single: /(['\\])/g }; module.exports = function inspect_(obj, options, depth, seen) { var opts = options || {}; if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) { throw new TypeError('option "quoteStyle" must be "single" or "double"'); } if ( has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null ) ) { throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); } var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') { throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); } if ( has(opts, 'indent') && opts.indent !== null && opts.indent !== '\t' && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) ) { throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); } if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); } var numericSeparator = opts.numericSeparator; if (typeof obj === 'undefined') { return 'undefined'; } if (obj === null) { return 'null'; } if (typeof obj === 'boolean') { return obj ? 'true' : 'false'; } if (typeof obj === 'string') { return inspectString(obj, opts); } if (typeof obj === 'number') { if (obj === 0) { return Infinity / obj > 0 ? '0' : '-0'; } var str = String(obj); return numericSeparator ? addNumericSeparator(obj, str) : str; } if (typeof obj === 'bigint') { var bigIntStr = String(obj) + 'n'; return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; } var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; if (typeof depth === 'undefined') { depth = 0; } if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { return isArray(obj) ? '[Array]' : '[Object]'; } var indent = getIndent(opts, depth); if (typeof seen === 'undefined') { seen = []; } else if (indexOf(seen, obj) >= 0) { return '[Circular]'; } function inspect(value, from, noIndent) { if (from) { seen = $arrSlice.call(seen); seen.push(from); } if (noIndent) { var newOpts = { depth: opts.depth }; if (has(opts, 'quoteStyle')) { newOpts.quoteStyle = opts.quoteStyle; } return inspect_(value, newOpts, depth + 1, seen); } return inspect_(value, opts, depth + 1, seen); } if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable var name = nameOf(obj); var keys = arrObjKeys(obj, inspect); return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); } if (isSymbol(obj)) { var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; } if (isElement(obj)) { var s = '<' + $toLowerCase.call(String(obj.nodeName)); var attrs = obj.attributes || []; for (var i = 0; i < attrs.length; i++) { s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); } s += '>'; if (obj.childNodes && obj.childNodes.length) { s += '...'; } s += ''; return s; } if (isArray(obj)) { if (obj.length === 0) { return '[]'; } var xs = arrObjKeys(obj, inspect); if (indent && !singleLineValues(xs)) { return '[' + indentedJoin(xs, indent) + ']'; } return '[ ' + $join.call(xs, ', ') + ' ]'; } if (isError(obj)) { var parts = arrObjKeys(obj, inspect); if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) { return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; } if (parts.length === 0) { return '[' + String(obj) + ']'; } return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; } if (typeof obj === 'object' && customInspect) { if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) { return utilInspect(obj, { depth: maxDepth - depth }); } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') { return obj.inspect(); } } if (isMap(obj)) { var mapParts = []; if (mapForEach) { mapForEach.call(obj, function (value, key) { mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); }); } return collectionOf('Map', mapSize.call(obj), mapParts, indent); } if (isSet(obj)) { var setParts = []; if (setForEach) { setForEach.call(obj, function (value) { setParts.push(inspect(value, obj)); }); } return collectionOf('Set', setSize.call(obj), setParts, indent); } if (isWeakMap(obj)) { return weakCollectionOf('WeakMap'); } if (isWeakSet(obj)) { return weakCollectionOf('WeakSet'); } if (isWeakRef(obj)) { return weakCollectionOf('WeakRef'); } if (isNumber(obj)) { return markBoxed(inspect(Number(obj))); } if (isBigInt(obj)) { return markBoxed(inspect(bigIntValueOf.call(obj))); } if (isBoolean(obj)) { return markBoxed(booleanValueOf.call(obj)); } if (isString(obj)) { return markBoxed(inspect(String(obj))); } // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other /* eslint-env browser */ if (typeof window !== 'undefined' && obj === window) { return '{ [object Window] }'; } if ( (typeof globalThis !== 'undefined' && obj === globalThis) || (typeof global !== 'undefined' && obj === global) ) { return '{ [object globalThis] }'; } if (!isDate(obj) && !isRegExp(obj)) { var ys = arrObjKeys(obj, inspect); var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; var protoTag = obj instanceof Object ? '' : 'null prototype'; var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); if (ys.length === 0) { return tag + '{}'; } if (indent) { return tag + '{' + indentedJoin(ys, indent) + '}'; } return tag + '{ ' + $join.call(ys, ', ') + ' }'; } return String(obj); }; function wrapQuotes(s, defaultStyle, opts) { var style = opts.quoteStyle || defaultStyle; var quoteChar = quotes[style]; return quoteChar + s + quoteChar; } function quote(s) { return $replace.call(String(s), /"/g, '"'); } function canTrustToString(obj) { return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined')); } function isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); } function isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); } function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); } function isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); } function isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); } function isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); } function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); } // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives function isSymbol(obj) { if (hasShammedSymbols) { return obj && typeof obj === 'object' && obj instanceof Symbol; } if (typeof obj === 'symbol') { return true; } if (!obj || typeof obj !== 'object' || !symToString) { return false; } try { symToString.call(obj); return true; } catch (e) {} return false; } function isBigInt(obj) { if (!obj || typeof obj !== 'object' || !bigIntValueOf) { return false; } try { bigIntValueOf.call(obj); return true; } catch (e) {} return false; } var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; function has(obj, key) { return hasOwn.call(obj, key); } function toStr(obj) { return objectToString.call(obj); } function nameOf(f) { if (f.name) { return f.name; } var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); if (m) { return m[1]; } return null; } function indexOf(xs, x) { if (xs.indexOf) { return xs.indexOf(x); } for (var i = 0, l = xs.length; i < l; i++) { if (xs[i] === x) { return i; } } return -1; } function isMap(x) { if (!mapSize || !x || typeof x !== 'object') { return false; } try { mapSize.call(x); try { setSize.call(x); } catch (s) { return true; } return x instanceof Map; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isWeakMap(x) { if (!weakMapHas || !x || typeof x !== 'object') { return false; } try { weakMapHas.call(x, weakMapHas); try { weakSetHas.call(x, weakSetHas); } catch (s) { return true; } return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isWeakRef(x) { if (!weakRefDeref || !x || typeof x !== 'object') { return false; } try { weakRefDeref.call(x); return true; } catch (e) {} return false; } function isSet(x) { if (!setSize || !x || typeof x !== 'object') { return false; } try { setSize.call(x); try { mapSize.call(x); } catch (m) { return true; } return x instanceof Set; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isWeakSet(x) { if (!weakSetHas || !x || typeof x !== 'object') { return false; } try { weakSetHas.call(x, weakSetHas); try { weakMapHas.call(x, weakMapHas); } catch (s) { return true; } return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isElement(x) { if (!x || typeof x !== 'object') { return false; } if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { return true; } return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; } function inspectString(str, opts) { if (str.length > opts.maxStringLength) { var remaining = str.length - opts.maxStringLength; var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; } var quoteRE = quoteREs[opts.quoteStyle || 'single']; quoteRE.lastIndex = 0; // eslint-disable-next-line no-control-regex var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte); return wrapQuotes(s, 'single', opts); } function lowbyte(c) { var n = c.charCodeAt(0); var x = { 8: 'b', 9: 't', 10: 'n', 12: 'f', 13: 'r' }[n]; if (x) { return '\\' + x; } return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); } function markBoxed(str) { return 'Object(' + str + ')'; } function weakCollectionOf(type) { return type + ' { ? }'; } function collectionOf(type, size, entries, indent) { var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); return type + ' (' + size + ') {' + joinedEntries + '}'; } function singleLineValues(xs) { for (var i = 0; i < xs.length; i++) { if (indexOf(xs[i], '\n') >= 0) { return false; } } return true; } function getIndent(opts, depth) { var baseIndent; if (opts.indent === '\t') { baseIndent = '\t'; } else if (typeof opts.indent === 'number' && opts.indent > 0) { baseIndent = $join.call(Array(opts.indent + 1), ' '); } else { return null; } return { base: baseIndent, prev: $join.call(Array(depth + 1), baseIndent) }; } function indentedJoin(xs, indent) { if (xs.length === 0) { return ''; } var lineJoiner = '\n' + indent.prev + indent.base; return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; } function arrObjKeys(obj, inspect) { var isArr = isArray(obj); var xs = []; if (isArr) { xs.length = obj.length; for (var i = 0; i < obj.length; i++) { xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; } } var syms = typeof gOPS === 'function' ? gOPS(obj) : []; var symMap; if (hasShammedSymbols) { symMap = {}; for (var k = 0; k < syms.length; k++) { symMap['$' + syms[k]] = syms[k]; } } for (var key in obj) { // eslint-disable-line no-restricted-syntax if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section continue; // eslint-disable-line no-restricted-syntax, no-continue } else if ($test.call(/[^\w$]/, key)) { xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); } else { xs.push(key + ': ' + inspect(obj[key], obj)); } } if (typeof gOPS === 'function') { for (var j = 0; j < syms.length; j++) { if (isEnumerable.call(obj, syms[j])) { xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); } } } return xs; } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) /***/ }), /***/ "./node_modules/side-channel-weakmap/index.js": /*!****************************************************!*\ !*** ./node_modules/side-channel-weakmap/index.js ***! \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/side-channel-weakmap/node_modules/get-intrinsic/index.js"); var callBound = __webpack_require__(/*! call-bound */ "./node_modules/call-bound/index.js"); var inspect = __webpack_require__(/*! object-inspect */ "./node_modules/side-channel-weakmap/node_modules/object-inspect/index.js"); var getSideChannelMap = __webpack_require__(/*! side-channel-map */ "./node_modules/side-channel-map/index.js"); var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js"); var $WeakMap = GetIntrinsic('%WeakMap%', true); /** @type {(thisArg: WeakMap, key: K) => V} */ var $weakMapGet = callBound('WeakMap.prototype.get', true); /** @type {(thisArg: WeakMap, key: K, value: V) => void} */ var $weakMapSet = callBound('WeakMap.prototype.set', true); /** @type {(thisArg: WeakMap, key: K) => boolean} */ var $weakMapHas = callBound('WeakMap.prototype.has', true); /** @type {(thisArg: WeakMap, key: K) => boolean} */ var $weakMapDelete = callBound('WeakMap.prototype.delete', true); /** @type {import('.')} */ module.exports = $WeakMap ? /** @type {Exclude} */ function getSideChannelWeakMap() { /** @typedef {ReturnType} Channel */ /** @typedef {Parameters[0]} K */ /** @typedef {Parameters[1]} V */ /** @type {WeakMap | undefined} */ var $wm; /** @type {Channel | undefined} */ var $m; /** @type {Channel} */ var channel = { assert: function (key) { if (!channel.has(key)) { throw new $TypeError('Side channel does not contain ' + inspect(key)); } }, 'delete': function (key) { if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { if ($wm) { return $weakMapDelete($wm, key); } } else if (getSideChannelMap) { if ($m) { return $m['delete'](key); } } return false; }, get: function (key) { if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { if ($wm) { return $weakMapGet($wm, key); } } return $m && $m.get(key); }, has: function (key) { if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { if ($wm) { return $weakMapHas($wm, key); } } return !!$m && $m.has(key); }, set: function (key, value) { if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { if (!$wm) { $wm = new $WeakMap(); } $weakMapSet($wm, key, value); } else if (getSideChannelMap) { if (!$m) { $m = getSideChannelMap(); } // eslint-disable-next-line no-extra-parens /** @type {NonNullable} */ ($m).set(key, value); } } }; // @ts-expect-error TODO: figure out why this is erroring return channel; } : getSideChannelMap; /***/ }), /***/ "./node_modules/side-channel-weakmap/node_modules/es-define-property/index.js": /*!************************************************************************************!*\ !*** ./node_modules/side-channel-weakmap/node_modules/es-define-property/index.js ***! \************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('.')} */ var $defineProperty = Object.defineProperty || false; if ($defineProperty) { try { $defineProperty({}, 'a', { value: 1 }); } catch (e) { // IE 8 has a broken defineProperty $defineProperty = false; } } module.exports = $defineProperty; /***/ }), /***/ "./node_modules/side-channel-weakmap/node_modules/es-object-atoms/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/side-channel-weakmap/node_modules/es-object-atoms/index.js ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('.')} */ module.exports = Object; /***/ }), /***/ "./node_modules/side-channel-weakmap/node_modules/get-intrinsic/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/side-channel-weakmap/node_modules/get-intrinsic/index.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var undefined; var $Object = __webpack_require__(/*! es-object-atoms */ "./node_modules/side-channel-weakmap/node_modules/es-object-atoms/index.js"); var $Error = __webpack_require__(/*! es-errors */ "./node_modules/es-errors/index.js"); var $EvalError = __webpack_require__(/*! es-errors/eval */ "./node_modules/es-errors/eval.js"); var $RangeError = __webpack_require__(/*! es-errors/range */ "./node_modules/es-errors/range.js"); var $ReferenceError = __webpack_require__(/*! es-errors/ref */ "./node_modules/es-errors/ref.js"); var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "./node_modules/es-errors/syntax.js"); var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js"); var $URIError = __webpack_require__(/*! es-errors/uri */ "./node_modules/es-errors/uri.js"); var abs = __webpack_require__(/*! math-intrinsics/abs */ "./node_modules/math-intrinsics/abs.js"); var floor = __webpack_require__(/*! math-intrinsics/floor */ "./node_modules/math-intrinsics/floor.js"); var max = __webpack_require__(/*! math-intrinsics/max */ "./node_modules/math-intrinsics/max.js"); var min = __webpack_require__(/*! math-intrinsics/min */ "./node_modules/math-intrinsics/min.js"); var pow = __webpack_require__(/*! math-intrinsics/pow */ "./node_modules/math-intrinsics/pow.js"); var round = __webpack_require__(/*! math-intrinsics/round */ "./node_modules/math-intrinsics/round.js"); var sign = __webpack_require__(/*! math-intrinsics/sign */ "./node_modules/math-intrinsics/sign.js"); var $Function = Function; // eslint-disable-next-line consistent-return var getEvalledConstructor = function (expressionSyntax) { try { return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); } catch (e) {} }; var $gOPD = __webpack_require__(/*! gopd */ "./node_modules/side-channel-weakmap/node_modules/gopd/index.js"); var $defineProperty = __webpack_require__(/*! es-define-property */ "./node_modules/side-channel-weakmap/node_modules/es-define-property/index.js"); var throwTypeError = function () { throw new $TypeError(); }; var ThrowTypeError = $gOPD ? (function () { try { // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties arguments.callee; // IE 8 does not throw here return throwTypeError; } catch (calleeThrows) { try { // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') return $gOPD(arguments, 'callee').get; } catch (gOPDthrows) { return throwTypeError; } } }()) : throwTypeError; var hasSymbols = __webpack_require__(/*! has-symbols */ "./node_modules/side-channel-weakmap/node_modules/has-symbols/index.js")(); var getProto = __webpack_require__(/*! get-proto */ "./node_modules/get-proto/index.js"); var $ObjectGPO = __webpack_require__(/*! get-proto/Object.getPrototypeOf */ "./node_modules/get-proto/Object.getPrototypeOf.js"); var $ReflectGPO = __webpack_require__(/*! get-proto/Reflect.getPrototypeOf */ "./node_modules/get-proto/Reflect.getPrototypeOf.js"); var $apply = __webpack_require__(/*! call-bind-apply-helpers/functionApply */ "./node_modules/call-bind-apply-helpers/functionApply.js"); var $call = __webpack_require__(/*! call-bind-apply-helpers/functionCall */ "./node_modules/call-bind-apply-helpers/functionCall.js"); var needsEval = {}; var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); var INTRINSICS = { __proto__: null, '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, '%Array%': Array, '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, '%AsyncFromSyncIteratorPrototype%': undefined, '%AsyncFunction%': needsEval, '%AsyncGenerator%': needsEval, '%AsyncGeneratorFunction%': needsEval, '%AsyncIteratorPrototype%': needsEval, '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, '%Boolean%': Boolean, '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, '%Date%': Date, '%decodeURI%': decodeURI, '%decodeURIComponent%': decodeURIComponent, '%encodeURI%': encodeURI, '%encodeURIComponent%': encodeURIComponent, '%Error%': $Error, '%eval%': eval, // eslint-disable-line no-eval '%EvalError%': $EvalError, '%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array, '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, '%Function%': $Function, '%GeneratorFunction%': needsEval, '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, '%isFinite%': isFinite, '%isNaN%': isNaN, '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, '%JSON%': typeof JSON === 'object' ? JSON : undefined, '%Map%': typeof Map === 'undefined' ? undefined : Map, '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), '%Math%': Math, '%Number%': Number, '%Object%': $Object, '%Object.getOwnPropertyDescriptor%': $gOPD, '%parseFloat%': parseFloat, '%parseInt%': parseInt, '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, '%RangeError%': $RangeError, '%ReferenceError%': $ReferenceError, '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, '%RegExp%': RegExp, '%Set%': typeof Set === 'undefined' ? undefined : Set, '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, '%String%': String, '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, '%Symbol%': hasSymbols ? Symbol : undefined, '%SyntaxError%': $SyntaxError, '%ThrowTypeError%': ThrowTypeError, '%TypedArray%': TypedArray, '%TypeError%': $TypeError, '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, '%URIError%': $URIError, '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet, '%Function.prototype.call%': $call, '%Function.prototype.apply%': $apply, '%Object.defineProperty%': $defineProperty, '%Object.getPrototypeOf%': $ObjectGPO, '%Math.abs%': abs, '%Math.floor%': floor, '%Math.max%': max, '%Math.min%': min, '%Math.pow%': pow, '%Math.round%': round, '%Math.sign%': sign, '%Reflect.getPrototypeOf%': $ReflectGPO }; if (getProto) { try { null.error; // eslint-disable-line no-unused-expressions } catch (e) { // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 var errorProto = getProto(getProto(e)); INTRINSICS['%Error.prototype%'] = errorProto; } } var doEval = function doEval(name) { var value; if (name === '%AsyncFunction%') { value = getEvalledConstructor('async function () {}'); } else if (name === '%GeneratorFunction%') { value = getEvalledConstructor('function* () {}'); } else if (name === '%AsyncGeneratorFunction%') { value = getEvalledConstructor('async function* () {}'); } else if (name === '%AsyncGenerator%') { var fn = doEval('%AsyncGeneratorFunction%'); if (fn) { value = fn.prototype; } } else if (name === '%AsyncIteratorPrototype%') { var gen = doEval('%AsyncGenerator%'); if (gen && getProto) { value = getProto(gen.prototype); } } INTRINSICS[name] = value; return value; }; var LEGACY_ALIASES = { __proto__: null, '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], '%ArrayPrototype%': ['Array', 'prototype'], '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], '%ArrayProto_values%': ['Array', 'prototype', 'values'], '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], '%BooleanPrototype%': ['Boolean', 'prototype'], '%DataViewPrototype%': ['DataView', 'prototype'], '%DatePrototype%': ['Date', 'prototype'], '%ErrorPrototype%': ['Error', 'prototype'], '%EvalErrorPrototype%': ['EvalError', 'prototype'], '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], '%FunctionPrototype%': ['Function', 'prototype'], '%Generator%': ['GeneratorFunction', 'prototype'], '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], '%JSONParse%': ['JSON', 'parse'], '%JSONStringify%': ['JSON', 'stringify'], '%MapPrototype%': ['Map', 'prototype'], '%NumberPrototype%': ['Number', 'prototype'], '%ObjectPrototype%': ['Object', 'prototype'], '%ObjProto_toString%': ['Object', 'prototype', 'toString'], '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], '%PromisePrototype%': ['Promise', 'prototype'], '%PromiseProto_then%': ['Promise', 'prototype', 'then'], '%Promise_all%': ['Promise', 'all'], '%Promise_reject%': ['Promise', 'reject'], '%Promise_resolve%': ['Promise', 'resolve'], '%RangeErrorPrototype%': ['RangeError', 'prototype'], '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], '%RegExpPrototype%': ['RegExp', 'prototype'], '%SetPrototype%': ['Set', 'prototype'], '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], '%StringPrototype%': ['String', 'prototype'], '%SymbolPrototype%': ['Symbol', 'prototype'], '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], '%TypedArrayPrototype%': ['TypedArray', 'prototype'], '%TypeErrorPrototype%': ['TypeError', 'prototype'], '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], '%URIErrorPrototype%': ['URIError', 'prototype'], '%WeakMapPrototype%': ['WeakMap', 'prototype'], '%WeakSetPrototype%': ['WeakSet', 'prototype'] }; var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js"); var hasOwn = __webpack_require__(/*! hasown */ "./node_modules/hasown/index.js"); var $concat = bind.call($call, Array.prototype.concat); var $spliceApply = bind.call($apply, Array.prototype.splice); var $replace = bind.call($call, String.prototype.replace); var $strSlice = bind.call($call, String.prototype.slice); var $exec = bind.call($call, RegExp.prototype.exec); /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ var stringToPath = function stringToPath(string) { var first = $strSlice(string, 0, 1); var last = $strSlice(string, -1); if (first === '%' && last !== '%') { throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); } else if (last === '%' && first !== '%') { throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); } var result = []; $replace(string, rePropName, function (match, number, quote, subString) { result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; }); return result; }; /* end adaptation */ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { var intrinsicName = name; var alias; if (hasOwn(LEGACY_ALIASES, intrinsicName)) { alias = LEGACY_ALIASES[intrinsicName]; intrinsicName = '%' + alias[0] + '%'; } if (hasOwn(INTRINSICS, intrinsicName)) { var value = INTRINSICS[intrinsicName]; if (value === needsEval) { value = doEval(intrinsicName); } if (typeof value === 'undefined' && !allowMissing) { throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); } return { alias: alias, name: intrinsicName, value: value }; } throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); }; module.exports = function GetIntrinsic(name, allowMissing) { if (typeof name !== 'string' || name.length === 0) { throw new $TypeError('intrinsic name must be a non-empty string'); } if (arguments.length > 1 && typeof allowMissing !== 'boolean') { throw new $TypeError('"allowMissing" argument must be a boolean'); } if ($exec(/^%?[^%]*%?$/, name) === null) { throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name'); } var parts = stringToPath(name); var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); var intrinsicRealName = intrinsic.name; var value = intrinsic.value; var skipFurtherCaching = false; var alias = intrinsic.alias; if (alias) { intrinsicBaseName = alias[0]; $spliceApply(parts, $concat([0, 1], alias)); } for (var i = 1, isOwn = true; i < parts.length; i += 1) { var part = parts[i]; var first = $strSlice(part, 0, 1); var last = $strSlice(part, -1); if ( ( (first === '"' || first === "'" || first === '`') || (last === '"' || last === "'" || last === '`') ) && first !== last ) { throw new $SyntaxError('property names with quotes must have matching quotes'); } if (part === 'constructor' || !isOwn) { skipFurtherCaching = true; } intrinsicBaseName += '.' + part; intrinsicRealName = '%' + intrinsicBaseName + '%'; if (hasOwn(INTRINSICS, intrinsicRealName)) { value = INTRINSICS[intrinsicRealName]; } else if (value != null) { if (!(part in value)) { if (!allowMissing) { throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); } return void undefined; } if ($gOPD && (i + 1) >= parts.length) { var desc = $gOPD(value, part); isOwn = !!desc; // By convention, when a data property is converted to an accessor // property to emulate a data property that does not suffer from // the override mistake, that accessor's getter is marked with // an `originalValue` property. Here, when we detect this, we // uphold the illusion by pretending to see that original data // property, i.e., returning the value rather than the getter // itself. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { value = desc.get; } else { value = value[part]; } } else { isOwn = hasOwn(value, part); value = value[part]; } if (isOwn && !skipFurtherCaching) { INTRINSICS[intrinsicRealName] = value; } } } return value; }; /***/ }), /***/ "./node_modules/side-channel-weakmap/node_modules/gopd/gOPD.js": /*!*********************************************************************!*\ !*** ./node_modules/side-channel-weakmap/node_modules/gopd/gOPD.js ***! \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./gOPD')} */ module.exports = Object.getOwnPropertyDescriptor; /***/ }), /***/ "./node_modules/side-channel-weakmap/node_modules/gopd/index.js": /*!**********************************************************************!*\ !*** ./node_modules/side-channel-weakmap/node_modules/gopd/index.js ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('.')} */ var $gOPD = __webpack_require__(/*! ./gOPD */ "./node_modules/side-channel-weakmap/node_modules/gopd/gOPD.js"); if ($gOPD) { try { $gOPD([], 'length'); } catch (e) { // IE 8 has a broken gOPD $gOPD = null; } } module.exports = $gOPD; /***/ }), /***/ "./node_modules/side-channel-weakmap/node_modules/has-symbols/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/side-channel-weakmap/node_modules/has-symbols/index.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var origSymbol = typeof Symbol !== 'undefined' && Symbol; var hasSymbolSham = __webpack_require__(/*! ./shams */ "./node_modules/side-channel-weakmap/node_modules/has-symbols/shams.js"); /** @type {import('.')} */ module.exports = function hasNativeSymbols() { if (typeof origSymbol !== 'function') { return false; } if (typeof Symbol !== 'function') { return false; } if (typeof origSymbol('foo') !== 'symbol') { return false; } if (typeof Symbol('bar') !== 'symbol') { return false; } return hasSymbolSham(); }; /***/ }), /***/ "./node_modules/side-channel-weakmap/node_modules/has-symbols/shams.js": /*!*****************************************************************************!*\ !*** ./node_modules/side-channel-weakmap/node_modules/has-symbols/shams.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @type {import('./shams')} */ /* eslint complexity: [2, 18], max-statements: [2, 33] */ module.exports = function hasSymbols() { if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } if (typeof Symbol.iterator === 'symbol') { return true; } /** @type {{ [k in symbol]?: unknown }} */ var obj = {}; var sym = Symbol('test'); var symObj = Object(sym); if (typeof sym === 'string') { return false; } if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } // temp disabled per https://github.com/ljharb/object.assign/issues/17 // if (sym instanceof Symbol) { return false; } // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 // if (!(symObj instanceof Symbol)) { return false; } // if (typeof Symbol.prototype.toString !== 'function') { return false; } // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } var symVal = 42; obj[sym] = symVal; for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } var syms = Object.getOwnPropertySymbols(obj); if (syms.length !== 1 || syms[0] !== sym) { return false; } if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } if (typeof Object.getOwnPropertyDescriptor === 'function') { // eslint-disable-next-line no-extra-parens var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym)); if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } } return true; }; /***/ }), /***/ "./node_modules/side-channel-weakmap/node_modules/object-inspect/index.js": /*!********************************************************************************!*\ !*** ./node_modules/side-channel-weakmap/node_modules/object-inspect/index.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {var hasMap = typeof Map === 'function' && Map.prototype; var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; var mapForEach = hasMap && Map.prototype.forEach; var hasSet = typeof Set === 'function' && Set.prototype; var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; var setForEach = hasSet && Set.prototype.forEach; var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype; var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; var booleanValueOf = Boolean.prototype.valueOf; var objectToString = Object.prototype.toString; var functionToString = Function.prototype.toString; var $match = String.prototype.match; var $slice = String.prototype.slice; var $replace = String.prototype.replace; var $toUpperCase = String.prototype.toUpperCase; var $toLowerCase = String.prototype.toLowerCase; var $test = RegExp.prototype.test; var $concat = Array.prototype.concat; var $join = Array.prototype.join; var $arrSlice = Array.prototype.slice; var $floor = Math.floor; var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; var gOPS = Object.getOwnPropertySymbols; var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; // ie, `has-tostringtag/shams var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') ? Symbol.toStringTag : null; var isEnumerable = Object.prototype.propertyIsEnumerable; var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ( [].__proto__ === Array.prototype // eslint-disable-line no-proto ? function (O) { return O.__proto__; // eslint-disable-line no-proto } : null ); function addNumericSeparator(num, str) { if ( num === Infinity || num === -Infinity || num !== num || (num && num > -1000 && num < 1000) || $test.call(/e/, str) ) { return str; } var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; if (typeof num === 'number') { var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) if (int !== num) { var intStr = String(int); var dec = $slice.call(str, intStr.length + 1); return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); } } return $replace.call(str, sepRegex, '$&_'); } var utilInspect = __webpack_require__(/*! ./util.inspect */ 11); var inspectCustom = utilInspect.custom; var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; var quotes = { __proto__: null, 'double': '"', single: "'" }; var quoteREs = { __proto__: null, 'double': /(["\\])/g, single: /(['\\])/g }; module.exports = function inspect_(obj, options, depth, seen) { var opts = options || {}; if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) { throw new TypeError('option "quoteStyle" must be "single" or "double"'); } if ( has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null ) ) { throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); } var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') { throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); } if ( has(opts, 'indent') && opts.indent !== null && opts.indent !== '\t' && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) ) { throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); } if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); } var numericSeparator = opts.numericSeparator; if (typeof obj === 'undefined') { return 'undefined'; } if (obj === null) { return 'null'; } if (typeof obj === 'boolean') { return obj ? 'true' : 'false'; } if (typeof obj === 'string') { return inspectString(obj, opts); } if (typeof obj === 'number') { if (obj === 0) { return Infinity / obj > 0 ? '0' : '-0'; } var str = String(obj); return numericSeparator ? addNumericSeparator(obj, str) : str; } if (typeof obj === 'bigint') { var bigIntStr = String(obj) + 'n'; return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; } var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; if (typeof depth === 'undefined') { depth = 0; } if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { return isArray(obj) ? '[Array]' : '[Object]'; } var indent = getIndent(opts, depth); if (typeof seen === 'undefined') { seen = []; } else if (indexOf(seen, obj) >= 0) { return '[Circular]'; } function inspect(value, from, noIndent) { if (from) { seen = $arrSlice.call(seen); seen.push(from); } if (noIndent) { var newOpts = { depth: opts.depth }; if (has(opts, 'quoteStyle')) { newOpts.quoteStyle = opts.quoteStyle; } return inspect_(value, newOpts, depth + 1, seen); } return inspect_(value, opts, depth + 1, seen); } if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable var name = nameOf(obj); var keys = arrObjKeys(obj, inspect); return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); } if (isSymbol(obj)) { var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; } if (isElement(obj)) { var s = '<' + $toLowerCase.call(String(obj.nodeName)); var attrs = obj.attributes || []; for (var i = 0; i < attrs.length; i++) { s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); } s += '>'; if (obj.childNodes && obj.childNodes.length) { s += '...'; } s += ''; return s; } if (isArray(obj)) { if (obj.length === 0) { return '[]'; } var xs = arrObjKeys(obj, inspect); if (indent && !singleLineValues(xs)) { return '[' + indentedJoin(xs, indent) + ']'; } return '[ ' + $join.call(xs, ', ') + ' ]'; } if (isError(obj)) { var parts = arrObjKeys(obj, inspect); if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) { return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; } if (parts.length === 0) { return '[' + String(obj) + ']'; } return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; } if (typeof obj === 'object' && customInspect) { if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) { return utilInspect(obj, { depth: maxDepth - depth }); } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') { return obj.inspect(); } } if (isMap(obj)) { var mapParts = []; if (mapForEach) { mapForEach.call(obj, function (value, key) { mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); }); } return collectionOf('Map', mapSize.call(obj), mapParts, indent); } if (isSet(obj)) { var setParts = []; if (setForEach) { setForEach.call(obj, function (value) { setParts.push(inspect(value, obj)); }); } return collectionOf('Set', setSize.call(obj), setParts, indent); } if (isWeakMap(obj)) { return weakCollectionOf('WeakMap'); } if (isWeakSet(obj)) { return weakCollectionOf('WeakSet'); } if (isWeakRef(obj)) { return weakCollectionOf('WeakRef'); } if (isNumber(obj)) { return markBoxed(inspect(Number(obj))); } if (isBigInt(obj)) { return markBoxed(inspect(bigIntValueOf.call(obj))); } if (isBoolean(obj)) { return markBoxed(booleanValueOf.call(obj)); } if (isString(obj)) { return markBoxed(inspect(String(obj))); } // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other /* eslint-env browser */ if (typeof window !== 'undefined' && obj === window) { return '{ [object Window] }'; } if ( (typeof globalThis !== 'undefined' && obj === globalThis) || (typeof global !== 'undefined' && obj === global) ) { return '{ [object globalThis] }'; } if (!isDate(obj) && !isRegExp(obj)) { var ys = arrObjKeys(obj, inspect); var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; var protoTag = obj instanceof Object ? '' : 'null prototype'; var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); if (ys.length === 0) { return tag + '{}'; } if (indent) { return tag + '{' + indentedJoin(ys, indent) + '}'; } return tag + '{ ' + $join.call(ys, ', ') + ' }'; } return String(obj); }; function wrapQuotes(s, defaultStyle, opts) { var style = opts.quoteStyle || defaultStyle; var quoteChar = quotes[style]; return quoteChar + s + quoteChar; } function quote(s) { return $replace.call(String(s), /"/g, '"'); } function canTrustToString(obj) { return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined')); } function isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); } function isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); } function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); } function isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); } function isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); } function isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); } function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); } // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives function isSymbol(obj) { if (hasShammedSymbols) { return obj && typeof obj === 'object' && obj instanceof Symbol; } if (typeof obj === 'symbol') { return true; } if (!obj || typeof obj !== 'object' || !symToString) { return false; } try { symToString.call(obj); return true; } catch (e) {} return false; } function isBigInt(obj) { if (!obj || typeof obj !== 'object' || !bigIntValueOf) { return false; } try { bigIntValueOf.call(obj); return true; } catch (e) {} return false; } var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; function has(obj, key) { return hasOwn.call(obj, key); } function toStr(obj) { return objectToString.call(obj); } function nameOf(f) { if (f.name) { return f.name; } var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); if (m) { return m[1]; } return null; } function indexOf(xs, x) { if (xs.indexOf) { return xs.indexOf(x); } for (var i = 0, l = xs.length; i < l; i++) { if (xs[i] === x) { return i; } } return -1; } function isMap(x) { if (!mapSize || !x || typeof x !== 'object') { return false; } try { mapSize.call(x); try { setSize.call(x); } catch (s) { return true; } return x instanceof Map; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isWeakMap(x) { if (!weakMapHas || !x || typeof x !== 'object') { return false; } try { weakMapHas.call(x, weakMapHas); try { weakSetHas.call(x, weakSetHas); } catch (s) { return true; } return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isWeakRef(x) { if (!weakRefDeref || !x || typeof x !== 'object') { return false; } try { weakRefDeref.call(x); return true; } catch (e) {} return false; } function isSet(x) { if (!setSize || !x || typeof x !== 'object') { return false; } try { setSize.call(x); try { mapSize.call(x); } catch (m) { return true; } return x instanceof Set; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isWeakSet(x) { if (!weakSetHas || !x || typeof x !== 'object') { return false; } try { weakSetHas.call(x, weakSetHas); try { weakMapHas.call(x, weakMapHas); } catch (s) { return true; } return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isElement(x) { if (!x || typeof x !== 'object') { return false; } if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { return true; } return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; } function inspectString(str, opts) { if (str.length > opts.maxStringLength) { var remaining = str.length - opts.maxStringLength; var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; } var quoteRE = quoteREs[opts.quoteStyle || 'single']; quoteRE.lastIndex = 0; // eslint-disable-next-line no-control-regex var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte); return wrapQuotes(s, 'single', opts); } function lowbyte(c) { var n = c.charCodeAt(0); var x = { 8: 'b', 9: 't', 10: 'n', 12: 'f', 13: 'r' }[n]; if (x) { return '\\' + x; } return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); } function markBoxed(str) { return 'Object(' + str + ')'; } function weakCollectionOf(type) { return type + ' { ? }'; } function collectionOf(type, size, entries, indent) { var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); return type + ' (' + size + ') {' + joinedEntries + '}'; } function singleLineValues(xs) { for (var i = 0; i < xs.length; i++) { if (indexOf(xs[i], '\n') >= 0) { return false; } } return true; } function getIndent(opts, depth) { var baseIndent; if (opts.indent === '\t') { baseIndent = '\t'; } else if (typeof opts.indent === 'number' && opts.indent > 0) { baseIndent = $join.call(Array(opts.indent + 1), ' '); } else { return null; } return { base: baseIndent, prev: $join.call(Array(depth + 1), baseIndent) }; } function indentedJoin(xs, indent) { if (xs.length === 0) { return ''; } var lineJoiner = '\n' + indent.prev + indent.base; return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; } function arrObjKeys(obj, inspect) { var isArr = isArray(obj); var xs = []; if (isArr) { xs.length = obj.length; for (var i = 0; i < obj.length; i++) { xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; } } var syms = typeof gOPS === 'function' ? gOPS(obj) : []; var symMap; if (hasShammedSymbols) { symMap = {}; for (var k = 0; k < syms.length; k++) { symMap['$' + syms[k]] = syms[k]; } } for (var key in obj) { // eslint-disable-line no-restricted-syntax if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section continue; // eslint-disable-line no-restricted-syntax, no-continue } else if ($test.call(/[^\w$]/, key)) { xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); } else { xs.push(key + ': ' + inspect(obj[key], obj)); } } if (typeof gOPS === 'function') { for (var j = 0; j < syms.length; j++) { if (isEnumerable.call(obj, syms[j])) { xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); } } } return xs; } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) /***/ }), /***/ "./node_modules/stream-browserify/index.js": /*!*************************************************!*\ !*** ./node_modules/stream-browserify/index.js ***! \*************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. module.exports = Stream; var EE = __webpack_require__(/*! events */ "./node_modules/events/events.js").EventEmitter; var inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"); inherits(Stream, EE); Stream.Readable = __webpack_require__(/*! readable-stream/readable.js */ "./node_modules/readable-stream/readable-browser.js"); Stream.Writable = __webpack_require__(/*! readable-stream/writable.js */ "./node_modules/readable-stream/writable-browser.js"); Stream.Duplex = __webpack_require__(/*! readable-stream/duplex.js */ "./node_modules/readable-stream/duplex-browser.js"); Stream.Transform = __webpack_require__(/*! readable-stream/transform.js */ "./node_modules/readable-stream/transform.js"); Stream.PassThrough = __webpack_require__(/*! readable-stream/passthrough.js */ "./node_modules/readable-stream/passthrough.js"); // Backwards-compat with node 0.4.x Stream.Stream = Stream; // old-style streams. Note that the pipe method (the only relevant // part of this class) is overridden in the Readable class. function Stream() { EE.call(this); } Stream.prototype.pipe = function(dest, options) { var source = this; function ondata(chunk) { if (dest.writable) { if (false === dest.write(chunk) && source.pause) { source.pause(); } } } source.on('data', ondata); function ondrain() { if (source.readable && source.resume) { source.resume(); } } dest.on('drain', ondrain); // If the 'end' option is not supplied, dest.end() will be called when // source gets the 'end' or 'close' events. Only dest.end() once. if (!dest._isStdio && (!options || options.end !== false)) { source.on('end', onend); source.on('close', onclose); } var didOnEnd = false; function onend() { if (didOnEnd) return; didOnEnd = true; dest.end(); } function onclose() { if (didOnEnd) return; didOnEnd = true; if (typeof dest.destroy === 'function') dest.destroy(); } // don't leave dangling pipes when there are errors. function onerror(er) { cleanup(); if (EE.listenerCount(this, 'error') === 0) { throw er; // Unhandled stream error in pipe. } } source.on('error', onerror); dest.on('error', onerror); // remove all the event listeners that were added. function cleanup() { source.removeListener('data', ondata); dest.removeListener('drain', ondrain); source.removeListener('end', onend); source.removeListener('close', onclose); source.removeListener('error', onerror); dest.removeListener('error', onerror); source.removeListener('end', cleanup); source.removeListener('close', cleanup); dest.removeListener('close', cleanup); } source.on('end', cleanup); source.on('close', cleanup); dest.on('close', cleanup); dest.emit('pipe', source); // Allow for unix-like usage: A.pipe(B).pipe(C) return dest; }; /***/ }), /***/ "./node_modules/string_decoder/lib/string_decoder.js": /*!***********************************************************!*\ !*** ./node_modules/string_decoder/lib/string_decoder.js ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. /**/ var Buffer = __webpack_require__(/*! safe-buffer */ "./node_modules/safe-buffer/index.js").Buffer; /**/ var isEncoding = Buffer.isEncoding || function (encoding) { encoding = '' + encoding; switch (encoding && encoding.toLowerCase()) { case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw': return true; default: return false; } }; function _normalizeEncoding(enc) { if (!enc) return 'utf8'; var retried; while (true) { switch (enc) { case 'utf8': case 'utf-8': return 'utf8'; case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': return 'utf16le'; case 'latin1': case 'binary': return 'latin1'; case 'base64': case 'ascii': case 'hex': return enc; default: if (retried) return; // undefined enc = ('' + enc).toLowerCase(); retried = true; } } }; // Do not cache `Buffer.isEncoding` when checking encoding names as some // modules monkey-patch it to support additional encodings function normalizeEncoding(enc) { var nenc = _normalizeEncoding(enc); if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc); return nenc || enc; } // StringDecoder provides an interface for efficiently splitting a series of // buffers into a series of JS strings without breaking apart multi-byte // characters. exports.StringDecoder = StringDecoder; function StringDecoder(encoding) { this.encoding = normalizeEncoding(encoding); var nb; switch (this.encoding) { case 'utf16le': this.text = utf16Text; this.end = utf16End; nb = 4; break; case 'utf8': this.fillLast = utf8FillLast; nb = 4; break; case 'base64': this.text = base64Text; this.end = base64End; nb = 3; break; default: this.write = simpleWrite; this.end = simpleEnd; return; } this.lastNeed = 0; this.lastTotal = 0; this.lastChar = Buffer.allocUnsafe(nb); } StringDecoder.prototype.write = function (buf) { if (buf.length === 0) return ''; var r; var i; if (this.lastNeed) { r = this.fillLast(buf); if (r === undefined) return ''; i = this.lastNeed; this.lastNeed = 0; } else { i = 0; } if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i); return r || ''; }; StringDecoder.prototype.end = utf8End; // Returns only complete characters in a Buffer StringDecoder.prototype.text = utf8Text; // Attempts to complete a partial non-UTF-8 character using bytes from a Buffer StringDecoder.prototype.fillLast = function (buf) { if (this.lastNeed <= buf.length) { buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed); return this.lastChar.toString(this.encoding, 0, this.lastTotal); } buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length); this.lastNeed -= buf.length; }; // Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a // continuation byte. If an invalid byte is detected, -2 is returned. function utf8CheckByte(byte) { if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4; return byte >> 6 === 0x02 ? -1 : -2; } // Checks at most 3 bytes at the end of a Buffer in order to detect an // incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4) // needed to complete the UTF-8 character (if applicable) are returned. function utf8CheckIncomplete(self, buf, i) { var j = buf.length - 1; if (j < i) return 0; var nb = utf8CheckByte(buf[j]); if (nb >= 0) { if (nb > 0) self.lastNeed = nb - 1; return nb; } if (--j < i || nb === -2) return 0; nb = utf8CheckByte(buf[j]); if (nb >= 0) { if (nb > 0) self.lastNeed = nb - 2; return nb; } if (--j < i || nb === -2) return 0; nb = utf8CheckByte(buf[j]); if (nb >= 0) { if (nb > 0) { if (nb === 2) nb = 0;else self.lastNeed = nb - 3; } return nb; } return 0; } // Validates as many continuation bytes for a multi-byte UTF-8 character as // needed or are available. If we see a non-continuation byte where we expect // one, we "replace" the validated continuation bytes we've seen so far with // a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding // behavior. The continuation byte check is included three times in the case // where all of the continuation bytes for a character exist in the same buffer. // It is also done this way as a slight performance increase instead of using a // loop. function utf8CheckExtraBytes(self, buf, p) { if ((buf[0] & 0xC0) !== 0x80) { self.lastNeed = 0; return '\ufffd'; } if (self.lastNeed > 1 && buf.length > 1) { if ((buf[1] & 0xC0) !== 0x80) { self.lastNeed = 1; return '\ufffd'; } if (self.lastNeed > 2 && buf.length > 2) { if ((buf[2] & 0xC0) !== 0x80) { self.lastNeed = 2; return '\ufffd'; } } } } // Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer. function utf8FillLast(buf) { var p = this.lastTotal - this.lastNeed; var r = utf8CheckExtraBytes(this, buf, p); if (r !== undefined) return r; if (this.lastNeed <= buf.length) { buf.copy(this.lastChar, p, 0, this.lastNeed); return this.lastChar.toString(this.encoding, 0, this.lastTotal); } buf.copy(this.lastChar, p, 0, buf.length); this.lastNeed -= buf.length; } // Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a // partial character, the character's bytes are buffered until the required // number of bytes are available. function utf8Text(buf, i) { var total = utf8CheckIncomplete(this, buf, i); if (!this.lastNeed) return buf.toString('utf8', i); this.lastTotal = total; var end = buf.length - (total - this.lastNeed); buf.copy(this.lastChar, 0, end); return buf.toString('utf8', i, end); } // For UTF-8, a replacement character is added when ending on a partial // character. function utf8End(buf) { var r = buf && buf.length ? this.write(buf) : ''; if (this.lastNeed) return r + '\ufffd'; return r; } // UTF-16LE typically needs two bytes per character, but even if we have an even // number of bytes available, we need to check if we end on a leading/high // surrogate. In that case, we need to wait for the next two bytes in order to // decode the last character properly. function utf16Text(buf, i) { if ((buf.length - i) % 2 === 0) { var r = buf.toString('utf16le', i); if (r) { var c = r.charCodeAt(r.length - 1); if (c >= 0xD800 && c <= 0xDBFF) { this.lastNeed = 2; this.lastTotal = 4; this.lastChar[0] = buf[buf.length - 2]; this.lastChar[1] = buf[buf.length - 1]; return r.slice(0, -1); } } return r; } this.lastNeed = 1; this.lastTotal = 2; this.lastChar[0] = buf[buf.length - 1]; return buf.toString('utf16le', i, buf.length - 1); } // For UTF-16LE we do not explicitly append special replacement characters if we // end on a partial character, we simply let v8 handle that. function utf16End(buf) { var r = buf && buf.length ? this.write(buf) : ''; if (this.lastNeed) { var end = this.lastTotal - this.lastNeed; return r + this.lastChar.toString('utf16le', 0, end); } return r; } function base64Text(buf, i) { var n = (buf.length - i) % 3; if (n === 0) return buf.toString('base64', i); this.lastNeed = 3 - n; this.lastTotal = 3; if (n === 1) { this.lastChar[0] = buf[buf.length - 1]; } else { this.lastChar[0] = buf[buf.length - 2]; this.lastChar[1] = buf[buf.length - 1]; } return buf.toString('base64', i, buf.length - n); } function base64End(buf) { var r = buf && buf.length ? this.write(buf) : ''; if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed); return r; } // Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex) function simpleWrite(buf) { return buf.toString(this.encoding); } function simpleEnd(buf) { return buf && buf.length ? this.write(buf) : ''; } /***/ }), /***/ "./node_modules/url/node_modules/object-inspect/index.js": /*!***************************************************************!*\ !*** ./node_modules/url/node_modules/object-inspect/index.js ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {var hasMap = typeof Map === 'function' && Map.prototype; var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; var mapForEach = hasMap && Map.prototype.forEach; var hasSet = typeof Set === 'function' && Set.prototype; var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; var setForEach = hasSet && Set.prototype.forEach; var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype; var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; var booleanValueOf = Boolean.prototype.valueOf; var objectToString = Object.prototype.toString; var functionToString = Function.prototype.toString; var $match = String.prototype.match; var $slice = String.prototype.slice; var $replace = String.prototype.replace; var $toUpperCase = String.prototype.toUpperCase; var $toLowerCase = String.prototype.toLowerCase; var $test = RegExp.prototype.test; var $concat = Array.prototype.concat; var $join = Array.prototype.join; var $arrSlice = Array.prototype.slice; var $floor = Math.floor; var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; var gOPS = Object.getOwnPropertySymbols; var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; // ie, `has-tostringtag/shams var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') ? Symbol.toStringTag : null; var isEnumerable = Object.prototype.propertyIsEnumerable; var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ( [].__proto__ === Array.prototype // eslint-disable-line no-proto ? function (O) { return O.__proto__; // eslint-disable-line no-proto } : null ); function addNumericSeparator(num, str) { if ( num === Infinity || num === -Infinity || num !== num || (num && num > -1000 && num < 1000) || $test.call(/e/, str) ) { return str; } var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; if (typeof num === 'number') { var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) if (int !== num) { var intStr = String(int); var dec = $slice.call(str, intStr.length + 1); return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); } } return $replace.call(str, sepRegex, '$&_'); } var utilInspect = __webpack_require__(/*! ./util.inspect */ 8); var inspectCustom = utilInspect.custom; var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; var quotes = { __proto__: null, 'double': '"', single: "'" }; var quoteREs = { __proto__: null, 'double': /(["\\])/g, single: /(['\\])/g }; module.exports = function inspect_(obj, options, depth, seen) { var opts = options || {}; if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) { throw new TypeError('option "quoteStyle" must be "single" or "double"'); } if ( has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null ) ) { throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); } var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') { throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); } if ( has(opts, 'indent') && opts.indent !== null && opts.indent !== '\t' && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) ) { throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); } if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); } var numericSeparator = opts.numericSeparator; if (typeof obj === 'undefined') { return 'undefined'; } if (obj === null) { return 'null'; } if (typeof obj === 'boolean') { return obj ? 'true' : 'false'; } if (typeof obj === 'string') { return inspectString(obj, opts); } if (typeof obj === 'number') { if (obj === 0) { return Infinity / obj > 0 ? '0' : '-0'; } var str = String(obj); return numericSeparator ? addNumericSeparator(obj, str) : str; } if (typeof obj === 'bigint') { var bigIntStr = String(obj) + 'n'; return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; } var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; if (typeof depth === 'undefined') { depth = 0; } if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { return isArray(obj) ? '[Array]' : '[Object]'; } var indent = getIndent(opts, depth); if (typeof seen === 'undefined') { seen = []; } else if (indexOf(seen, obj) >= 0) { return '[Circular]'; } function inspect(value, from, noIndent) { if (from) { seen = $arrSlice.call(seen); seen.push(from); } if (noIndent) { var newOpts = { depth: opts.depth }; if (has(opts, 'quoteStyle')) { newOpts.quoteStyle = opts.quoteStyle; } return inspect_(value, newOpts, depth + 1, seen); } return inspect_(value, opts, depth + 1, seen); } if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable var name = nameOf(obj); var keys = arrObjKeys(obj, inspect); return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); } if (isSymbol(obj)) { var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; } if (isElement(obj)) { var s = '<' + $toLowerCase.call(String(obj.nodeName)); var attrs = obj.attributes || []; for (var i = 0; i < attrs.length; i++) { s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); } s += '>'; if (obj.childNodes && obj.childNodes.length) { s += '...'; } s += ''; return s; } if (isArray(obj)) { if (obj.length === 0) { return '[]'; } var xs = arrObjKeys(obj, inspect); if (indent && !singleLineValues(xs)) { return '[' + indentedJoin(xs, indent) + ']'; } return '[ ' + $join.call(xs, ', ') + ' ]'; } if (isError(obj)) { var parts = arrObjKeys(obj, inspect); if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) { return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; } if (parts.length === 0) { return '[' + String(obj) + ']'; } return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; } if (typeof obj === 'object' && customInspect) { if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) { return utilInspect(obj, { depth: maxDepth - depth }); } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') { return obj.inspect(); } } if (isMap(obj)) { var mapParts = []; if (mapForEach) { mapForEach.call(obj, function (value, key) { mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); }); } return collectionOf('Map', mapSize.call(obj), mapParts, indent); } if (isSet(obj)) { var setParts = []; if (setForEach) { setForEach.call(obj, function (value) { setParts.push(inspect(value, obj)); }); } return collectionOf('Set', setSize.call(obj), setParts, indent); } if (isWeakMap(obj)) { return weakCollectionOf('WeakMap'); } if (isWeakSet(obj)) { return weakCollectionOf('WeakSet'); } if (isWeakRef(obj)) { return weakCollectionOf('WeakRef'); } if (isNumber(obj)) { return markBoxed(inspect(Number(obj))); } if (isBigInt(obj)) { return markBoxed(inspect(bigIntValueOf.call(obj))); } if (isBoolean(obj)) { return markBoxed(booleanValueOf.call(obj)); } if (isString(obj)) { return markBoxed(inspect(String(obj))); } // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other /* eslint-env browser */ if (typeof window !== 'undefined' && obj === window) { return '{ [object Window] }'; } if ( (typeof globalThis !== 'undefined' && obj === globalThis) || (typeof global !== 'undefined' && obj === global) ) { return '{ [object globalThis] }'; } if (!isDate(obj) && !isRegExp(obj)) { var ys = arrObjKeys(obj, inspect); var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; var protoTag = obj instanceof Object ? '' : 'null prototype'; var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); if (ys.length === 0) { return tag + '{}'; } if (indent) { return tag + '{' + indentedJoin(ys, indent) + '}'; } return tag + '{ ' + $join.call(ys, ', ') + ' }'; } return String(obj); }; function wrapQuotes(s, defaultStyle, opts) { var style = opts.quoteStyle || defaultStyle; var quoteChar = quotes[style]; return quoteChar + s + quoteChar; } function quote(s) { return $replace.call(String(s), /"/g, '"'); } function canTrustToString(obj) { return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined')); } function isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); } function isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); } function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); } function isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); } function isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); } function isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); } function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); } // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives function isSymbol(obj) { if (hasShammedSymbols) { return obj && typeof obj === 'object' && obj instanceof Symbol; } if (typeof obj === 'symbol') { return true; } if (!obj || typeof obj !== 'object' || !symToString) { return false; } try { symToString.call(obj); return true; } catch (e) {} return false; } function isBigInt(obj) { if (!obj || typeof obj !== 'object' || !bigIntValueOf) { return false; } try { bigIntValueOf.call(obj); return true; } catch (e) {} return false; } var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; function has(obj, key) { return hasOwn.call(obj, key); } function toStr(obj) { return objectToString.call(obj); } function nameOf(f) { if (f.name) { return f.name; } var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); if (m) { return m[1]; } return null; } function indexOf(xs, x) { if (xs.indexOf) { return xs.indexOf(x); } for (var i = 0, l = xs.length; i < l; i++) { if (xs[i] === x) { return i; } } return -1; } function isMap(x) { if (!mapSize || !x || typeof x !== 'object') { return false; } try { mapSize.call(x); try { setSize.call(x); } catch (s) { return true; } return x instanceof Map; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isWeakMap(x) { if (!weakMapHas || !x || typeof x !== 'object') { return false; } try { weakMapHas.call(x, weakMapHas); try { weakSetHas.call(x, weakSetHas); } catch (s) { return true; } return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isWeakRef(x) { if (!weakRefDeref || !x || typeof x !== 'object') { return false; } try { weakRefDeref.call(x); return true; } catch (e) {} return false; } function isSet(x) { if (!setSize || !x || typeof x !== 'object') { return false; } try { setSize.call(x); try { mapSize.call(x); } catch (m) { return true; } return x instanceof Set; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isWeakSet(x) { if (!weakSetHas || !x || typeof x !== 'object') { return false; } try { weakSetHas.call(x, weakSetHas); try { weakMapHas.call(x, weakMapHas); } catch (s) { return true; } return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 } catch (e) {} return false; } function isElement(x) { if (!x || typeof x !== 'object') { return false; } if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { return true; } return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; } function inspectString(str, opts) { if (str.length > opts.maxStringLength) { var remaining = str.length - opts.maxStringLength; var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; } var quoteRE = quoteREs[opts.quoteStyle || 'single']; quoteRE.lastIndex = 0; // eslint-disable-next-line no-control-regex var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte); return wrapQuotes(s, 'single', opts); } function lowbyte(c) { var n = c.charCodeAt(0); var x = { 8: 'b', 9: 't', 10: 'n', 12: 'f', 13: 'r' }[n]; if (x) { return '\\' + x; } return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); } function markBoxed(str) { return 'Object(' + str + ')'; } function weakCollectionOf(type) { return type + ' { ? }'; } function collectionOf(type, size, entries, indent) { var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); return type + ' (' + size + ') {' + joinedEntries + '}'; } function singleLineValues(xs) { for (var i = 0; i < xs.length; i++) { if (indexOf(xs[i], '\n') >= 0) { return false; } } return true; } function getIndent(opts, depth) { var baseIndent; if (opts.indent === '\t') { baseIndent = '\t'; } else if (typeof opts.indent === 'number' && opts.indent > 0) { baseIndent = $join.call(Array(opts.indent + 1), ' '); } else { return null; } return { base: baseIndent, prev: $join.call(Array(depth + 1), baseIndent) }; } function indentedJoin(xs, indent) { if (xs.length === 0) { return ''; } var lineJoiner = '\n' + indent.prev + indent.base; return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; } function arrObjKeys(obj, inspect) { var isArr = isArray(obj); var xs = []; if (isArr) { xs.length = obj.length; for (var i = 0; i < obj.length; i++) { xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; } } var syms = typeof gOPS === 'function' ? gOPS(obj) : []; var symMap; if (hasShammedSymbols) { symMap = {}; for (var k = 0; k < syms.length; k++) { symMap['$' + syms[k]] = syms[k]; } } for (var key in obj) { // eslint-disable-line no-restricted-syntax if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section continue; // eslint-disable-line no-restricted-syntax, no-continue } else if ($test.call(/[^\w$]/, key)) { xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); } else { xs.push(key + ': ' + inspect(obj[key], obj)); } } if (typeof gOPS === 'function') { for (var j = 0; j < syms.length; j++) { if (isEnumerable.call(obj, syms[j])) { xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); } } } return xs; } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) /***/ }), /***/ "./node_modules/url/node_modules/qs/lib/formats.js": /*!*********************************************************!*\ !*** ./node_modules/url/node_modules/qs/lib/formats.js ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var replace = String.prototype.replace; var percentTwenties = /%20/g; var Format = { RFC1738: 'RFC1738', RFC3986: 'RFC3986' }; module.exports = { 'default': Format.RFC3986, formatters: { RFC1738: function (value) { return replace.call(value, percentTwenties, '+'); }, RFC3986: function (value) { return String(value); } }, RFC1738: Format.RFC1738, RFC3986: Format.RFC3986 }; /***/ }), /***/ "./node_modules/url/node_modules/qs/lib/index.js": /*!*******************************************************!*\ !*** ./node_modules/url/node_modules/qs/lib/index.js ***! \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var stringify = __webpack_require__(/*! ./stringify */ "./node_modules/url/node_modules/qs/lib/stringify.js"); var parse = __webpack_require__(/*! ./parse */ "./node_modules/url/node_modules/qs/lib/parse.js"); var formats = __webpack_require__(/*! ./formats */ "./node_modules/url/node_modules/qs/lib/formats.js"); module.exports = { formats: formats, parse: parse, stringify: stringify }; /***/ }), /***/ "./node_modules/url/node_modules/qs/lib/parse.js": /*!*******************************************************!*\ !*** ./node_modules/url/node_modules/qs/lib/parse.js ***! \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./utils */ "./node_modules/url/node_modules/qs/lib/utils.js"); var has = Object.prototype.hasOwnProperty; var isArray = Array.isArray; var defaults = { allowDots: false, allowEmptyArrays: false, allowPrototypes: false, allowSparse: false, arrayLimit: 20, charset: 'utf-8', charsetSentinel: false, comma: false, decodeDotInKeys: false, decoder: utils.decode, delimiter: '&', depth: 5, duplicates: 'combine', ignoreQueryPrefix: false, interpretNumericEntities: false, parameterLimit: 1000, parseArrays: true, plainObjects: false, strictDepth: false, strictNullHandling: false, throwOnLimitExceeded: false }; var interpretNumericEntities = function (str) { return str.replace(/&#(\d+);/g, function ($0, numberStr) { return String.fromCharCode(parseInt(numberStr, 10)); }); }; var parseArrayValue = function (val, options, currentArrayLength) { if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { return val.split(','); } if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) { throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.'); } return val; }; // This is what browsers will submit when the ✓ character occurs in an // application/x-www-form-urlencoded body and the encoding of the page containing // the form is iso-8859-1, or when the submitted form has an accept-charset // attribute of iso-8859-1. Presumably also with other charsets that do not contain // the ✓ character, such as us-ascii. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') var parseValues = function parseQueryStringValues(str, options) { var obj = { __proto__: null }; var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']'); var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; var parts = cleanStr.split( options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit ); if (options.throwOnLimitExceeded && parts.length > limit) { throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.'); } var skipIndex = -1; // Keep track of where the utf8 sentinel was found var i; var charset = options.charset; if (options.charsetSentinel) { for (i = 0; i < parts.length; ++i) { if (parts[i].indexOf('utf8=') === 0) { if (parts[i] === charsetSentinel) { charset = 'utf-8'; } else if (parts[i] === isoSentinel) { charset = 'iso-8859-1'; } skipIndex = i; i = parts.length; // The eslint settings do not allow break; } } } for (i = 0; i < parts.length; ++i) { if (i === skipIndex) { continue; } var part = parts[i]; var bracketEqualsPos = part.indexOf(']='); var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; var key; var val; if (pos === -1) { key = options.decoder(part, defaults.decoder, charset, 'key'); val = options.strictNullHandling ? null : ''; } else { key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); val = utils.maybeMap( parseArrayValue( part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0 ), function (encodedVal) { return options.decoder(encodedVal, defaults.decoder, charset, 'value'); } ); } if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { val = interpretNumericEntities(String(val)); } if (part.indexOf('[]=') > -1) { val = isArray(val) ? [val] : val; } var existing = has.call(obj, key); if (existing && options.duplicates === 'combine') { obj[key] = utils.combine(obj[key], val); } else if (!existing || options.duplicates === 'last') { obj[key] = val; } } return obj; }; var parseObject = function (chain, val, options, valuesParsed) { var currentArrayLength = 0; if (chain.length > 0 && chain[chain.length - 1] === '[]') { var parentKey = chain.slice(0, -1).join(''); currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0; } var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength); for (var i = chain.length - 1; i >= 0; --i) { var obj; var root = chain[i]; if (root === '[]' && options.parseArrays) { obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null)) ? [] : utils.combine([], leaf); } else { obj = options.plainObjects ? { __proto__: null } : {}; var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot; var index = parseInt(decodedRoot, 10); if (!options.parseArrays && decodedRoot === '') { obj = { 0: leaf }; } else if ( !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit) ) { obj = []; obj[index] = leaf; } else if (decodedRoot !== '__proto__') { obj[decodedRoot] = leaf; } } leaf = obj; } return leaf; }; var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { if (!givenKey) { return; } // Transform dot notation to bracket notation var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; // The regex chunks var brackets = /(\[[^[\]]*])/; var child = /(\[[^[\]]*])/g; // Get the parent var segment = options.depth > 0 && brackets.exec(key); var parent = segment ? key.slice(0, segment.index) : key; // Stash the parent if it exists var keys = []; if (parent) { // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties if (!options.plainObjects && has.call(Object.prototype, parent)) { if (!options.allowPrototypes) { return; } } keys.push(parent); } // Loop through children appending to the array until we hit depth var i = 0; while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) { i += 1; if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { if (!options.allowPrototypes) { return; } } keys.push(segment[1]); } // If there's a remainder, check strictDepth option for throw, else just add whatever is left if (segment) { if (options.strictDepth === true) { throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true'); } keys.push('[' + key.slice(segment.index) + ']'); } return parseObject(keys, val, options, valuesParsed); }; var normalizeParseOptions = function normalizeParseOptions(opts) { if (!opts) { return defaults; } if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') { throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided'); } if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') { throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided'); } if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') { throw new TypeError('Decoder has to be a function.'); } if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); } if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') { throw new TypeError('`throwOnLimitExceeded` option must be a boolean'); } var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates; if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') { throw new TypeError('The duplicates option must be either combine, first, or last'); } var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots; return { allowDots: allowDots, allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse, arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, charset: charset, charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys, decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, // eslint-disable-next-line no-implicit-coercion, no-extra-parens depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth, duplicates: duplicates, ignoreQueryPrefix: opts.ignoreQueryPrefix === true, interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, parseArrays: opts.parseArrays !== false, plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth, strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling, throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false }; }; module.exports = function (str, opts) { var options = normalizeParseOptions(opts); if (str === '' || str === null || typeof str === 'undefined') { return options.plainObjects ? { __proto__: null } : {}; } var tempObj = typeof str === 'string' ? parseValues(str, options) : str; var obj = options.plainObjects ? { __proto__: null } : {}; // Iterate over the keys and setup the new object var keys = Object.keys(tempObj); for (var i = 0; i < keys.length; ++i) { var key = keys[i]; var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); obj = utils.merge(obj, newObj, options); } if (options.allowSparse === true) { return obj; } return utils.compact(obj); }; /***/ }), /***/ "./node_modules/url/node_modules/qs/lib/stringify.js": /*!***********************************************************!*\ !*** ./node_modules/url/node_modules/qs/lib/stringify.js ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var getSideChannel = __webpack_require__(/*! side-channel */ "./node_modules/url/node_modules/side-channel/index.js"); var utils = __webpack_require__(/*! ./utils */ "./node_modules/url/node_modules/qs/lib/utils.js"); var formats = __webpack_require__(/*! ./formats */ "./node_modules/url/node_modules/qs/lib/formats.js"); var has = Object.prototype.hasOwnProperty; var arrayPrefixGenerators = { brackets: function brackets(prefix) { return prefix + '[]'; }, comma: 'comma', indices: function indices(prefix, key) { return prefix + '[' + key + ']'; }, repeat: function repeat(prefix) { return prefix; } }; var isArray = Array.isArray; var push = Array.prototype.push; var pushToArray = function (arr, valueOrArray) { push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); }; var toISO = Date.prototype.toISOString; var defaultFormat = formats['default']; var defaults = { addQueryPrefix: false, allowDots: false, allowEmptyArrays: false, arrayFormat: 'indices', charset: 'utf-8', charsetSentinel: false, commaRoundTrip: false, delimiter: '&', encode: true, encodeDotInKeys: false, encoder: utils.encode, encodeValuesOnly: false, filter: void undefined, format: defaultFormat, formatter: formats.formatters[defaultFormat], // deprecated indices: false, serializeDate: function serializeDate(date) { return toISO.call(date); }, skipNulls: false, strictNullHandling: false }; var isNonNullishPrimitive = function isNonNullishPrimitive(v) { return typeof v === 'string' || typeof v === 'number' || typeof v === 'boolean' || typeof v === 'symbol' || typeof v === 'bigint'; }; var sentinel = {}; var stringify = function stringify( object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel ) { var obj = object; var tmpSc = sideChannel; var step = 0; var findFlag = false; while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) { // Where object last appeared in the ref tree var pos = tmpSc.get(object); step += 1; if (typeof pos !== 'undefined') { if (pos === step) { throw new RangeError('Cyclic object value'); } else { findFlag = true; // Break while } } if (typeof tmpSc.get(sentinel) === 'undefined') { step = 0; } } if (typeof filter === 'function') { obj = filter(prefix, obj); } else if (obj instanceof Date) { obj = serializeDate(obj); } else if (generateArrayPrefix === 'comma' && isArray(obj)) { obj = utils.maybeMap(obj, function (value) { if (value instanceof Date) { return serializeDate(value); } return value; }); } if (obj === null) { if (strictNullHandling) { return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix; } obj = ''; } if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { if (encoder) { var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format); return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))]; } return [formatter(prefix) + '=' + formatter(String(obj))]; } var values = []; if (typeof obj === 'undefined') { return values; } var objKeys; if (generateArrayPrefix === 'comma' && isArray(obj)) { // we need to join elements in if (encodeValuesOnly && encoder) { obj = utils.maybeMap(obj, encoder); } objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }]; } else if (isArray(filter)) { objKeys = filter; } else { var keys = Object.keys(obj); objKeys = sort ? keys.sort(sort) : keys; } var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix); var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix; if (allowEmptyArrays && isArray(obj) && obj.length === 0) { return adjustedPrefix + '[]'; } for (var j = 0; j < objKeys.length; ++j) { var key = objKeys[j]; var value = typeof key === 'object' && key && typeof key.value !== 'undefined' ? key.value : obj[key]; if (skipNulls && value === null) { continue; } var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key); var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']'); sideChannel.set(object, step); var valueSideChannel = getSideChannel(); valueSideChannel.set(sentinel, sideChannel); pushToArray(values, stringify( value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel )); } return values; }; var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { if (!opts) { return defaults; } if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') { throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided'); } if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') { throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided'); } if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { throw new TypeError('Encoder has to be a function.'); } var charset = opts.charset || defaults.charset; if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); } var format = formats['default']; if (typeof opts.format !== 'undefined') { if (!has.call(formats.formatters, opts.format)) { throw new TypeError('Unknown format option provided.'); } format = opts.format; } var formatter = formats.formatters[format]; var filter = defaults.filter; if (typeof opts.filter === 'function' || isArray(opts.filter)) { filter = opts.filter; } var arrayFormat; if (opts.arrayFormat in arrayPrefixGenerators) { arrayFormat = opts.arrayFormat; } else if ('indices' in opts) { arrayFormat = opts.indices ? 'indices' : 'repeat'; } else { arrayFormat = defaults.arrayFormat; } if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') { throw new TypeError('`commaRoundTrip` must be a boolean, or absent'); } var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots; return { addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, allowDots: allowDots, allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, arrayFormat: arrayFormat, charset: charset, charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, commaRoundTrip: !!opts.commaRoundTrip, delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys, encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, filter: filter, format: format, formatter: formatter, serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, sort: typeof opts.sort === 'function' ? opts.sort : null, strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling }; }; module.exports = function (object, opts) { var obj = object; var options = normalizeStringifyOptions(opts); var objKeys; var filter; if (typeof options.filter === 'function') { filter = options.filter; obj = filter('', obj); } else if (isArray(options.filter)) { filter = options.filter; objKeys = filter; } var keys = []; if (typeof obj !== 'object' || obj === null) { return ''; } var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat]; var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip; if (!objKeys) { objKeys = Object.keys(obj); } if (options.sort) { objKeys.sort(options.sort); } var sideChannel = getSideChannel(); for (var i = 0; i < objKeys.length; ++i) { var key = objKeys[i]; var value = obj[key]; if (options.skipNulls && value === null) { continue; } pushToArray(keys, stringify( value, key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel )); } var joined = keys.join(options.delimiter); var prefix = options.addQueryPrefix === true ? '?' : ''; if (options.charsetSentinel) { if (options.charset === 'iso-8859-1') { // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark prefix += 'utf8=%26%2310003%3B&'; } else { // encodeURIComponent('✓') prefix += 'utf8=%E2%9C%93&'; } } return joined.length > 0 ? prefix + joined : ''; }; /***/ }), /***/ "./node_modules/url/node_modules/qs/lib/utils.js": /*!*******************************************************!*\ !*** ./node_modules/url/node_modules/qs/lib/utils.js ***! \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var formats = __webpack_require__(/*! ./formats */ "./node_modules/url/node_modules/qs/lib/formats.js"); var has = Object.prototype.hasOwnProperty; var isArray = Array.isArray; var hexTable = (function () { var array = []; for (var i = 0; i < 256; ++i) { array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); } return array; }()); var compactQueue = function compactQueue(queue) { while (queue.length > 1) { var item = queue.pop(); var obj = item.obj[item.prop]; if (isArray(obj)) { var compacted = []; for (var j = 0; j < obj.length; ++j) { if (typeof obj[j] !== 'undefined') { compacted.push(obj[j]); } } item.obj[item.prop] = compacted; } } }; var arrayToObject = function arrayToObject(source, options) { var obj = options && options.plainObjects ? { __proto__: null } : {}; for (var i = 0; i < source.length; ++i) { if (typeof source[i] !== 'undefined') { obj[i] = source[i]; } } return obj; }; var merge = function merge(target, source, options) { /* eslint no-param-reassign: 0 */ if (!source) { return target; } if (typeof source !== 'object' && typeof source !== 'function') { if (isArray(target)) { target.push(source); } else if (target && typeof target === 'object') { if ( (options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source) ) { target[source] = true; } } else { return [target, source]; } return target; } if (!target || typeof target !== 'object') { return [target].concat(source); } var mergeTarget = target; if (isArray(target) && !isArray(source)) { mergeTarget = arrayToObject(target, options); } if (isArray(target) && isArray(source)) { source.forEach(function (item, i) { if (has.call(target, i)) { var targetItem = target[i]; if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { target[i] = merge(targetItem, item, options); } else { target.push(item); } } else { target[i] = item; } }); return target; } return Object.keys(source).reduce(function (acc, key) { var value = source[key]; if (has.call(acc, key)) { acc[key] = merge(acc[key], value, options); } else { acc[key] = value; } return acc; }, mergeTarget); }; var assign = function assignSingleSource(target, source) { return Object.keys(source).reduce(function (acc, key) { acc[key] = source[key]; return acc; }, target); }; var decode = function (str, defaultDecoder, charset) { var strWithoutPlus = str.replace(/\+/g, ' '); if (charset === 'iso-8859-1') { // unescape never throws, no try...catch needed: return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); } // utf-8 try { return decodeURIComponent(strWithoutPlus); } catch (e) { return strWithoutPlus; } }; var limit = 1024; /* eslint operator-linebreak: [2, "before"] */ var encode = function encode(str, defaultEncoder, charset, kind, format) { // This code was originally written by Brian White (mscdex) for the io.js core querystring library. // It has been adapted here for stricter adherence to RFC 3986 if (str.length === 0) { return str; } var string = str; if (typeof str === 'symbol') { string = Symbol.prototype.toString.call(str); } else if (typeof str !== 'string') { string = String(str); } if (charset === 'iso-8859-1') { return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; }); } var out = ''; for (var j = 0; j < string.length; j += limit) { var segment = string.length >= limit ? string.slice(j, j + limit) : string; var arr = []; for (var i = 0; i < segment.length; ++i) { var c = segment.charCodeAt(i); if ( c === 0x2D // - || c === 0x2E // . || c === 0x5F // _ || c === 0x7E // ~ || (c >= 0x30 && c <= 0x39) // 0-9 || (c >= 0x41 && c <= 0x5A) // a-z || (c >= 0x61 && c <= 0x7A) // A-Z || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( ) ) { arr[arr.length] = segment.charAt(i); continue; } if (c < 0x80) { arr[arr.length] = hexTable[c]; continue; } if (c < 0x800) { arr[arr.length] = hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]; continue; } if (c < 0xD800 || c >= 0xE000) { arr[arr.length] = hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]; continue; } i += 1; c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF)); arr[arr.length] = hexTable[0xF0 | (c >> 18)] + hexTable[0x80 | ((c >> 12) & 0x3F)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]; } out += arr.join(''); } return out; }; var compact = function compact(value) { var queue = [{ obj: { o: value }, prop: 'o' }]; var refs = []; for (var i = 0; i < queue.length; ++i) { var item = queue[i]; var obj = item.obj[item.prop]; var keys = Object.keys(obj); for (var j = 0; j < keys.length; ++j) { var key = keys[j]; var val = obj[key]; if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { queue.push({ obj: obj, prop: key }); refs.push(val); } } } compactQueue(queue); return value; }; var isRegExp = function isRegExp(obj) { return Object.prototype.toString.call(obj) === '[object RegExp]'; }; var isBuffer = function isBuffer(obj) { if (!obj || typeof obj !== 'object') { return false; } return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); }; var combine = function combine(a, b) { return [].concat(a, b); }; var maybeMap = function maybeMap(val, fn) { if (isArray(val)) { var mapped = []; for (var i = 0; i < val.length; i += 1) { mapped.push(fn(val[i])); } return mapped; } return fn(val); }; module.exports = { arrayToObject: arrayToObject, assign: assign, combine: combine, compact: compact, decode: decode, encode: encode, isBuffer: isBuffer, isRegExp: isRegExp, maybeMap: maybeMap, merge: merge }; /***/ }), /***/ "./node_modules/url/node_modules/side-channel/index.js": /*!*************************************************************!*\ !*** ./node_modules/url/node_modules/side-channel/index.js ***! \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js"); var inspect = __webpack_require__(/*! object-inspect */ "./node_modules/url/node_modules/object-inspect/index.js"); var getSideChannelList = __webpack_require__(/*! side-channel-list */ "./node_modules/side-channel-list/index.js"); var getSideChannelMap = __webpack_require__(/*! side-channel-map */ "./node_modules/side-channel-map/index.js"); var getSideChannelWeakMap = __webpack_require__(/*! side-channel-weakmap */ "./node_modules/side-channel-weakmap/index.js"); var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList; /** @type {import('.')} */ module.exports = function getSideChannel() { /** @typedef {ReturnType} Channel */ /** @type {Channel | undefined} */ var $channelData; /** @type {Channel} */ var channel = { assert: function (key) { if (!channel.has(key)) { throw new $TypeError('Side channel does not contain ' + inspect(key)); } }, 'delete': function (key) { return !!$channelData && $channelData['delete'](key); }, get: function (key) { return $channelData && $channelData.get(key); }, has: function (key) { return !!$channelData && $channelData.has(key); }, set: function (key, value) { if (!$channelData) { $channelData = makeChannel(); } $channelData.set(key, value); } }; // @ts-expect-error TODO: figure out why this is erroring return channel; }; /***/ }), /***/ "./node_modules/url/url.js": /*!*********************************!*\ !*** ./node_modules/url/url.js ***! \*********************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* * Copyright Joyent, Inc. and other Node contributors. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to permit * persons to whom the Software is furnished to do so, subject to the * following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE * USE OR OTHER DEALINGS IN THE SOFTWARE. */ var punycode = __webpack_require__(/*! punycode/ */ "./node_modules/node-libs-browser/node_modules/punycode/punycode.js"); function Url() { this.protocol = null; this.slashes = null; this.auth = null; this.host = null; this.port = null; this.hostname = null; this.hash = null; this.search = null; this.query = null; this.pathname = null; this.path = null; this.href = null; } // Reference: RFC 3986, RFC 1808, RFC 2396 /* * define these here so at least they only have to be * compiled once on the first module load. */ var protocolPattern = /^([a-z0-9.+-]+:)/i, portPattern = /:[0-9]*$/, // Special case for a simple path URL simplePathPattern = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, /* * RFC 2396: characters reserved for delimiting URLs. * We actually just auto-escape these. */ delims = [ '<', '>', '"', '`', ' ', '\r', '\n', '\t' ], // RFC 2396: characters not allowed for various reasons. unwise = [ '{', '}', '|', '\\', '^', '`' ].concat(delims), // Allowed by RFCs, but cause of XSS attacks. Always escape these. autoEscape = ['\''].concat(unwise), /* * Characters that are never ever allowed in a hostname. * Note that any invalid chars are also handled, but these * are the ones that are *expected* to be seen, so we fast-path * them. */ nonHostChars = [ '%', '/', '?', ';', '#' ].concat(autoEscape), hostEndingChars = [ '/', '?', '#' ], hostnameMaxLen = 255, hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/, hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, // protocols that can allow "unsafe" and "unwise" chars. unsafeProtocol = { javascript: true, 'javascript:': true }, // protocols that never have a hostname. hostlessProtocol = { javascript: true, 'javascript:': true }, // protocols that always contain a // bit. slashedProtocol = { http: true, https: true, ftp: true, gopher: true, file: true, 'http:': true, 'https:': true, 'ftp:': true, 'gopher:': true, 'file:': true }, querystring = __webpack_require__(/*! qs */ "./node_modules/url/node_modules/qs/lib/index.js"); function urlParse(url, parseQueryString, slashesDenoteHost) { if (url && typeof url === 'object' && url instanceof Url) { return url; } var u = new Url(); u.parse(url, parseQueryString, slashesDenoteHost); return u; } Url.prototype.parse = function (url, parseQueryString, slashesDenoteHost) { if (typeof url !== 'string') { throw new TypeError("Parameter 'url' must be a string, not " + typeof url); } /* * Copy chrome, IE, opera backslash-handling behavior. * Back slashes before the query string get converted to forward slashes * See: https://code.google.com/p/chromium/issues/detail?id=25916 */ var queryIndex = url.indexOf('?'), splitter = queryIndex !== -1 && queryIndex < url.indexOf('#') ? '?' : '#', uSplit = url.split(splitter), slashRegex = /\\/g; uSplit[0] = uSplit[0].replace(slashRegex, '/'); url = uSplit.join(splitter); var rest = url; /* * trim before proceeding. * This is to support parse stuff like " http://foo.com \n" */ rest = rest.trim(); if (!slashesDenoteHost && url.split('#').length === 1) { // Try fast path regexp var simplePath = simplePathPattern.exec(rest); if (simplePath) { this.path = rest; this.href = rest; this.pathname = simplePath[1]; if (simplePath[2]) { this.search = simplePath[2]; if (parseQueryString) { this.query = querystring.parse(this.search.substr(1)); } else { this.query = this.search.substr(1); } } else if (parseQueryString) { this.search = ''; this.query = {}; } return this; } } var proto = protocolPattern.exec(rest); if (proto) { proto = proto[0]; var lowerProto = proto.toLowerCase(); this.protocol = lowerProto; rest = rest.substr(proto.length); } /* * figure out if it's got a host * user@server is *always* interpreted as a hostname, and url * resolution will treat //foo/bar as host=foo,path=bar because that's * how the browser resolves relative URLs. */ if (slashesDenoteHost || proto || rest.match(/^\/\/[^@/]+@[^@/]+/)) { var slashes = rest.substr(0, 2) === '//'; if (slashes && !(proto && hostlessProtocol[proto])) { rest = rest.substr(2); this.slashes = true; } } if (!hostlessProtocol[proto] && (slashes || (proto && !slashedProtocol[proto]))) { /* * there's a hostname. * the first instance of /, ?, ;, or # ends the host. * * If there is an @ in the hostname, then non-host chars *are* allowed * to the left of the last @ sign, unless some host-ending character * comes *before* the @-sign. * URLs are obnoxious. * * ex: * http://a@b@c/ => user:a@b host:c * http://a@b?@c => user:a host:c path:/?@c */ /* * v0.12 TODO(isaacs): This is not quite how Chrome does things. * Review our test case against browsers more comprehensively. */ // find the first instance of any hostEndingChars var hostEnd = -1; for (var i = 0; i < hostEndingChars.length; i++) { var hec = rest.indexOf(hostEndingChars[i]); if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { hostEnd = hec; } } /* * at this point, either we have an explicit point where the * auth portion cannot go past, or the last @ char is the decider. */ var auth, atSign; if (hostEnd === -1) { // atSign can be anywhere. atSign = rest.lastIndexOf('@'); } else { /* * atSign must be in auth portion. * http://a@b/c@d => host:b auth:a path:/c@d */ atSign = rest.lastIndexOf('@', hostEnd); } /* * Now we have a portion which is definitely the auth. * Pull that off. */ if (atSign !== -1) { auth = rest.slice(0, atSign); rest = rest.slice(atSign + 1); this.auth = decodeURIComponent(auth); } // the host is the remaining to the left of the first non-host char hostEnd = -1; for (var i = 0; i < nonHostChars.length; i++) { var hec = rest.indexOf(nonHostChars[i]); if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { hostEnd = hec; } } // if we still have not hit it, then the entire thing is a host. if (hostEnd === -1) { hostEnd = rest.length; } this.host = rest.slice(0, hostEnd); rest = rest.slice(hostEnd); // pull out port. this.parseHost(); /* * we've indicated that there is a hostname, * so even if it's empty, it has to be present. */ this.hostname = this.hostname || ''; /* * if hostname begins with [ and ends with ] * assume that it's an IPv6 address. */ var ipv6Hostname = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']'; // validate a little. if (!ipv6Hostname) { var hostparts = this.hostname.split(/\./); for (var i = 0, l = hostparts.length; i < l; i++) { var part = hostparts[i]; if (!part) { continue; } if (!part.match(hostnamePartPattern)) { var newpart = ''; for (var j = 0, k = part.length; j < k; j++) { if (part.charCodeAt(j) > 127) { /* * we replace non-ASCII char with a temporary placeholder * we need this to make sure size of hostname is not * broken by replacing non-ASCII by nothing */ newpart += 'x'; } else { newpart += part[j]; } } // we test again with ASCII char only if (!newpart.match(hostnamePartPattern)) { var validParts = hostparts.slice(0, i); var notHost = hostparts.slice(i + 1); var bit = part.match(hostnamePartStart); if (bit) { validParts.push(bit[1]); notHost.unshift(bit[2]); } if (notHost.length) { rest = '/' + notHost.join('.') + rest; } this.hostname = validParts.join('.'); break; } } } } if (this.hostname.length > hostnameMaxLen) { this.hostname = ''; } else { // hostnames are always lower case. this.hostname = this.hostname.toLowerCase(); } if (!ipv6Hostname) { /* * IDNA Support: Returns a punycoded representation of "domain". * It only converts parts of the domain name that * have non-ASCII characters, i.e. it doesn't matter if * you call it with a domain that already is ASCII-only. */ this.hostname = punycode.toASCII(this.hostname); } var p = this.port ? ':' + this.port : ''; var h = this.hostname || ''; this.host = h + p; this.href += this.host; /* * strip [ and ] from the hostname * the host field still retains them, though */ if (ipv6Hostname) { this.hostname = this.hostname.substr(1, this.hostname.length - 2); if (rest[0] !== '/') { rest = '/' + rest; } } } /* * now rest is set to the post-host stuff. * chop off any delim chars. */ if (!unsafeProtocol[lowerProto]) { /* * First, make 100% sure that any "autoEscape" chars get * escaped, even if encodeURIComponent doesn't think they * need to be. */ for (var i = 0, l = autoEscape.length; i < l; i++) { var ae = autoEscape[i]; if (rest.indexOf(ae) === -1) { continue; } var esc = encodeURIComponent(ae); if (esc === ae) { esc = escape(ae); } rest = rest.split(ae).join(esc); } } // chop off from the tail first. var hash = rest.indexOf('#'); if (hash !== -1) { // got a fragment string. this.hash = rest.substr(hash); rest = rest.slice(0, hash); } var qm = rest.indexOf('?'); if (qm !== -1) { this.search = rest.substr(qm); this.query = rest.substr(qm + 1); if (parseQueryString) { this.query = querystring.parse(this.query); } rest = rest.slice(0, qm); } else if (parseQueryString) { // no query string, but parseQueryString still requested this.search = ''; this.query = {}; } if (rest) { this.pathname = rest; } if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) { this.pathname = '/'; } // to support http.request if (this.pathname || this.search) { var p = this.pathname || ''; var s = this.search || ''; this.path = p + s; } // finally, reconstruct the href based on what has been validated. this.href = this.format(); return this; }; // format a parsed object into a url string function urlFormat(obj) { /* * ensure it's an object, and not a string url. * If it's an obj, this is a no-op. * this way, you can call url_format() on strings * to clean up potentially wonky urls. */ if (typeof obj === 'string') { obj = urlParse(obj); } if (!(obj instanceof Url)) { return Url.prototype.format.call(obj); } return obj.format(); } Url.prototype.format = function () { var auth = this.auth || ''; if (auth) { auth = encodeURIComponent(auth); auth = auth.replace(/%3A/i, ':'); auth += '@'; } var protocol = this.protocol || '', pathname = this.pathname || '', hash = this.hash || '', host = false, query = ''; if (this.host) { host = auth + this.host; } else if (this.hostname) { host = auth + (this.hostname.indexOf(':') === -1 ? this.hostname : '[' + this.hostname + ']'); if (this.port) { host += ':' + this.port; } } if (this.query && typeof this.query === 'object' && Object.keys(this.query).length) { query = querystring.stringify(this.query, { arrayFormat: 'repeat', addQueryPrefix: false }); } var search = this.search || (query && ('?' + query)) || ''; if (protocol && protocol.substr(-1) !== ':') { protocol += ':'; } /* * only the slashedProtocols get the //. Not mailto:, xmpp:, etc. * unless they had them to begin with. */ if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) { host = '//' + (host || ''); if (pathname && pathname.charAt(0) !== '/') { pathname = '/' + pathname; } } else if (!host) { host = ''; } if (hash && hash.charAt(0) !== '#') { hash = '#' + hash; } if (search && search.charAt(0) !== '?') { search = '?' + search; } pathname = pathname.replace(/[?#]/g, function (match) { return encodeURIComponent(match); }); search = search.replace('#', '%23'); return protocol + host + pathname + search + hash; }; function urlResolve(source, relative) { return urlParse(source, false, true).resolve(relative); } Url.prototype.resolve = function (relative) { return this.resolveObject(urlParse(relative, false, true)).format(); }; function urlResolveObject(source, relative) { if (!source) { return relative; } return urlParse(source, false, true).resolveObject(relative); } Url.prototype.resolveObject = function (relative) { if (typeof relative === 'string') { var rel = new Url(); rel.parse(relative, false, true); relative = rel; } var result = new Url(); var tkeys = Object.keys(this); for (var tk = 0; tk < tkeys.length; tk++) { var tkey = tkeys[tk]; result[tkey] = this[tkey]; } /* * hash is always overridden, no matter what. * even href="" will remove it. */ result.hash = relative.hash; // if the relative url is empty, then there's nothing left to do here. if (relative.href === '') { result.href = result.format(); return result; } // hrefs like //foo/bar always cut to the protocol. if (relative.slashes && !relative.protocol) { // take everything except the protocol from relative var rkeys = Object.keys(relative); for (var rk = 0; rk < rkeys.length; rk++) { var rkey = rkeys[rk]; if (rkey !== 'protocol') { result[rkey] = relative[rkey]; } } // urlParse appends trailing / to urls like http://www.example.com if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) { result.pathname = '/'; result.path = result.pathname; } result.href = result.format(); return result; } if (relative.protocol && relative.protocol !== result.protocol) { /* * if it's a known url protocol, then changing * the protocol does weird things * first, if it's not file:, then we MUST have a host, * and if there was a path * to begin with, then we MUST have a path. * if it is file:, then the host is dropped, * because that's known to be hostless. * anything else is assumed to be absolute. */ if (!slashedProtocol[relative.protocol]) { var keys = Object.keys(relative); for (var v = 0; v < keys.length; v++) { var k = keys[v]; result[k] = relative[k]; } result.href = result.format(); return result; } result.protocol = relative.protocol; if (!relative.host && !hostlessProtocol[relative.protocol]) { var relPath = (relative.pathname || '').split('/'); while (relPath.length && !(relative.host = relPath.shift())) { } if (!relative.host) { relative.host = ''; } if (!relative.hostname) { relative.hostname = ''; } if (relPath[0] !== '') { relPath.unshift(''); } if (relPath.length < 2) { relPath.unshift(''); } result.pathname = relPath.join('/'); } else { result.pathname = relative.pathname; } result.search = relative.search; result.query = relative.query; result.host = relative.host || ''; result.auth = relative.auth; result.hostname = relative.hostname || relative.host; result.port = relative.port; // to support http.request if (result.pathname || result.search) { var p = result.pathname || ''; var s = result.search || ''; result.path = p + s; } result.slashes = result.slashes || relative.slashes; result.href = result.format(); return result; } var isSourceAbs = result.pathname && result.pathname.charAt(0) === '/', isRelAbs = relative.host || relative.pathname && relative.pathname.charAt(0) === '/', mustEndAbs = isRelAbs || isSourceAbs || (result.host && relative.pathname), removeAllDots = mustEndAbs, srcPath = result.pathname && result.pathname.split('/') || [], relPath = relative.pathname && relative.pathname.split('/') || [], psychotic = result.protocol && !slashedProtocol[result.protocol]; /* * if the url is a non-slashed url, then relative * links like ../.. should be able * to crawl up to the hostname, as well. This is strange. * result.protocol has already been set by now. * Later on, put the first path part into the host field. */ if (psychotic) { result.hostname = ''; result.port = null; if (result.host) { if (srcPath[0] === '') { srcPath[0] = result.host; } else { srcPath.unshift(result.host); } } result.host = ''; if (relative.protocol) { relative.hostname = null; relative.port = null; if (relative.host) { if (relPath[0] === '') { relPath[0] = relative.host; } else { relPath.unshift(relative.host); } } relative.host = null; } mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === ''); } if (isRelAbs) { // it's absolute. result.host = relative.host || relative.host === '' ? relative.host : result.host; result.hostname = relative.hostname || relative.hostname === '' ? relative.hostname : result.hostname; result.search = relative.search; result.query = relative.query; srcPath = relPath; // fall through to the dot-handling below. } else if (relPath.length) { /* * it's relative * throw away the existing file, and take the new path instead. */ if (!srcPath) { srcPath = []; } srcPath.pop(); srcPath = srcPath.concat(relPath); result.search = relative.search; result.query = relative.query; } else if (relative.search != null) { /* * just pull out the search. * like href='?foo'. * Put this after the other two cases because it simplifies the booleans */ if (psychotic) { result.host = srcPath.shift(); result.hostname = result.host; /* * occationaly the auth can get stuck only in host * this especially happens in cases like * url.resolveObject('mailto:local1@domain1', 'local2@domain2') */ var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false; if (authInHost) { result.auth = authInHost.shift(); result.hostname = authInHost.shift(); result.host = result.hostname; } } result.search = relative.search; result.query = relative.query; // to support http.request if (result.pathname !== null || result.search !== null) { result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : ''); } result.href = result.format(); return result; } if (!srcPath.length) { /* * no path at all. easy. * we've already handled the other stuff above. */ result.pathname = null; // to support http.request if (result.search) { result.path = '/' + result.search; } else { result.path = null; } result.href = result.format(); return result; } /* * if a url ENDs in . or .., then it must get a trailing slash. * however, if it ends in anything else non-slashy, * then it must NOT get a trailing slash. */ var last = srcPath.slice(-1)[0]; var hasTrailingSlash = (result.host || relative.host || srcPath.length > 1) && (last === '.' || last === '..') || last === ''; /* * strip single dots, resolve double dots to parent dir * if the path tries to go above the root, `up` ends up > 0 */ var up = 0; for (var i = srcPath.length; i >= 0; i--) { last = srcPath[i]; if (last === '.') { srcPath.splice(i, 1); } else if (last === '..') { srcPath.splice(i, 1); up++; } else if (up) { srcPath.splice(i, 1); up--; } } // if the path is allowed to go above the root, restore leading ..s if (!mustEndAbs && !removeAllDots) { for (; up--; up) { srcPath.unshift('..'); } } if (mustEndAbs && srcPath[0] !== '' && (!srcPath[0] || srcPath[0].charAt(0) !== '/')) { srcPath.unshift(''); } if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) { srcPath.push(''); } var isAbsolute = srcPath[0] === '' || (srcPath[0] && srcPath[0].charAt(0) === '/'); // put the host back if (psychotic) { result.hostname = isAbsolute ? '' : srcPath.length ? srcPath.shift() : ''; result.host = result.hostname; /* * occationaly the auth can get stuck only in host * this especially happens in cases like * url.resolveObject('mailto:local1@domain1', 'local2@domain2') */ var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false; if (authInHost) { result.auth = authInHost.shift(); result.hostname = authInHost.shift(); result.host = result.hostname; } } mustEndAbs = mustEndAbs || (result.host && srcPath.length); if (mustEndAbs && !isAbsolute) { srcPath.unshift(''); } if (srcPath.length > 0) { result.pathname = srcPath.join('/'); } else { result.pathname = null; result.path = null; } // to support request.http if (result.pathname !== null || result.search !== null) { result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : ''); } result.auth = relative.auth || result.auth; result.slashes = result.slashes || relative.slashes; result.href = result.format(); return result; }; Url.prototype.parseHost = function () { var host = this.host; var port = portPattern.exec(host); if (port) { port = port[0]; if (port !== ':') { this.port = port.substr(1); } host = host.substr(0, host.length - port.length); } if (host) { this.hostname = host; } }; exports.parse = urlParse; exports.resolve = urlResolve; exports.resolveObject = urlResolveObject; exports.format = urlFormat; exports.Url = Url; /***/ }), /***/ "./node_modules/util-deprecate/browser.js": /*!************************************************!*\ !*** ./node_modules/util-deprecate/browser.js ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) { /** * Module exports. */ module.exports = deprecate; /** * Mark that a method should not be used. * Returns a modified function which warns once by default. * * If `localStorage.noDeprecation = true` is set, then it is a no-op. * * If `localStorage.throwDeprecation = true` is set, then deprecated functions * will throw an Error when invoked. * * If `localStorage.traceDeprecation = true` is set, then deprecated functions * will invoke `console.trace()` instead of `console.error()`. * * @param {Function} fn - the function to deprecate * @param {String} msg - the string to print to the console when `fn` is invoked * @returns {Function} a new "deprecated" version of `fn` * @api public */ function deprecate (fn, msg) { if (config('noDeprecation')) { return fn; } var warned = false; function deprecated() { if (!warned) { if (config('throwDeprecation')) { throw new Error(msg); } else if (config('traceDeprecation')) { console.trace(msg); } else { console.warn(msg); } warned = true; } return fn.apply(this, arguments); } return deprecated; } /** * Checks `localStorage` for boolean values for the given `name`. * * @param {String} name * @returns {Boolean} * @api private */ function config (name) { // accessing global.localStorage can trigger a DOMException in sandboxed iframes try { if (!global.localStorage) return false; } catch (_) { return false; } var val = global.localStorage[name]; if (null == val) return false; return String(val).toLowerCase() === 'true'; } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) /***/ }), /***/ "./node_modules/util/node_modules/inherits/inherits_browser.js": /*!*********************************************************************!*\ !*** ./node_modules/util/node_modules/inherits/inherits_browser.js ***! \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { if (typeof Object.create === 'function') { // implementation from standard node.js 'util' module module.exports = function inherits(ctor, superCtor) { ctor.super_ = superCtor ctor.prototype = Object.create(superCtor.prototype, { constructor: { value: ctor, enumerable: false, writable: true, configurable: true } }); }; } else { // old school shim for old browsers module.exports = function inherits(ctor, superCtor) { ctor.super_ = superCtor var TempCtor = function () {} TempCtor.prototype = superCtor.prototype ctor.prototype = new TempCtor() ctor.prototype.constructor = ctor } } /***/ }), /***/ "./node_modules/util/support/isBufferBrowser.js": /*!******************************************************!*\ !*** ./node_modules/util/support/isBufferBrowser.js ***! \******************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = function isBuffer(arg) { return arg && typeof arg === 'object' && typeof arg.copy === 'function' && typeof arg.fill === 'function' && typeof arg.readUInt8 === 'function'; } /***/ }), /***/ "./node_modules/util/util.js": /*!***********************************!*\ !*** ./node_modules/util/util.js ***! \***********************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors(obj) { var keys = Object.keys(obj); var descriptors = {}; for (var i = 0; i < keys.length; i++) { descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]); } return descriptors; }; var formatRegExp = /%[sdj%]/g; exports.format = function(f) { if (!isString(f)) { var objects = []; for (var i = 0; i < arguments.length; i++) { objects.push(inspect(arguments[i])); } return objects.join(' '); } var i = 1; var args = arguments; var len = args.length; var str = String(f).replace(formatRegExp, function(x) { if (x === '%%') return '%'; if (i >= len) return x; switch (x) { case '%s': return String(args[i++]); case '%d': return Number(args[i++]); case '%j': try { return JSON.stringify(args[i++]); } catch (_) { return '[Circular]'; } default: return x; } }); for (var x = args[i]; i < len; x = args[++i]) { if (isNull(x) || !isObject(x)) { str += ' ' + x; } else { str += ' ' + inspect(x); } } return str; }; // Mark that a method should not be used. // Returns a modified function which warns once by default. // If --no-deprecation is set, then it is a no-op. exports.deprecate = function(fn, msg) { if (typeof process !== 'undefined' && process.noDeprecation === true) { return fn; } // Allow for deprecating things in the process of starting up. if (typeof process === 'undefined') { return function() { return exports.deprecate(fn, msg).apply(this, arguments); }; } var warned = false; function deprecated() { if (!warned) { if (process.throwDeprecation) { throw new Error(msg); } else if (process.traceDeprecation) { console.trace(msg); } else { console.error(msg); } warned = true; } return fn.apply(this, arguments); } return deprecated; }; var debugs = {}; var debugEnviron; exports.debuglog = function(set) { if (isUndefined(debugEnviron)) debugEnviron = Object({"NODE_ENV":"staging","VUE_APP_ENV":"staging","VUE_APP_API_ROOT":"/dispatch","VUE_APP_API_WS":"wss://v5qy.te.baibaodun.com.cn/dispatch","VUE_APP_BCX_API_URL":"https://identify.test.bcxin.com.cn","VUE_APP_SDK_IM_ID":"1400522511","VUE_APP_SDK_TRTC_ID":"1400522511","VUE_APP_SECRETE_KEY":"5d0e73298984029fab13f00137a666b924a8d51d88287cbc4a1b78b7c3e98210","VUE_APP_IM_AUDIO_API":"/IMAudio","VUE_APP_PTT_SERVER":"wss://ssl.baibaodun.cn:9007","VUE_APP_GWSD_WS_SERVER":"wss://ssl.baibaodun.cn:8989","VUE_APP_GWSD_CMD_SERVER":"wss://ssl.baibaodun.cn:8084","VUE_APP_GWSD_API_ROOT":"/pttApi","VUE_APP_PTT_ADMIN_NAME":"ttadmin3","VUE_APP_UPLOAD_FILE_API":"https://v5qy.te.baibaodun.com.cn/v3/shared/common/resources","VUE_APP_MAP_TYPE":"tianditu","VUE_APP_API":"https://v5qy.te.baibaodun.com.cn","VUE_APP_ENABLE_SCREEN":"true","VUE_APP_DISPALY_RISK_CIRCLE":"true","VUE_APP_SYSTEM_REGION":"1405","BASE_URL":"","PACKAGE_VERSION":"1.0.0-202566151.20250606150112"}).NODE_DEBUG || ''; set = set.toUpperCase(); if (!debugs[set]) { if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { var pid = process.pid; debugs[set] = function() { var msg = exports.format.apply(exports, arguments); console.error('%s %d: %s', set, pid, msg); }; } else { debugs[set] = function() {}; } } return debugs[set]; }; /** * Echos the value of a value. Trys to print the value out * in the best way possible given the different types. * * @param {Object} obj The object to print out. * @param {Object} opts Optional options object that alters the output. */ /* legacy: obj, showHidden, depth, colors*/ function inspect(obj, opts) { // default options var ctx = { seen: [], stylize: stylizeNoColor }; // legacy... if (arguments.length >= 3) ctx.depth = arguments[2]; if (arguments.length >= 4) ctx.colors = arguments[3]; if (isBoolean(opts)) { // legacy... ctx.showHidden = opts; } else if (opts) { // got an "options" object exports._extend(ctx, opts); } // set default options if (isUndefined(ctx.showHidden)) ctx.showHidden = false; if (isUndefined(ctx.depth)) ctx.depth = 2; if (isUndefined(ctx.colors)) ctx.colors = false; if (isUndefined(ctx.customInspect)) ctx.customInspect = true; if (ctx.colors) ctx.stylize = stylizeWithColor; return formatValue(ctx, obj, ctx.depth); } exports.inspect = inspect; // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics inspect.colors = { 'bold' : [1, 22], 'italic' : [3, 23], 'underline' : [4, 24], 'inverse' : [7, 27], 'white' : [37, 39], 'grey' : [90, 39], 'black' : [30, 39], 'blue' : [34, 39], 'cyan' : [36, 39], 'green' : [32, 39], 'magenta' : [35, 39], 'red' : [31, 39], 'yellow' : [33, 39] }; // Don't use 'blue' not visible on cmd.exe inspect.styles = { 'special': 'cyan', 'number': 'yellow', 'boolean': 'yellow', 'undefined': 'grey', 'null': 'bold', 'string': 'green', 'date': 'magenta', // "name": intentionally not styling 'regexp': 'red' }; function stylizeWithColor(str, styleType) { var style = inspect.styles[styleType]; if (style) { return '\u001b[' + inspect.colors[style][0] + 'm' + str + '\u001b[' + inspect.colors[style][1] + 'm'; } else { return str; } } function stylizeNoColor(str, styleType) { return str; } function arrayToHash(array) { var hash = {}; array.forEach(function(val, idx) { hash[val] = true; }); return hash; } function formatValue(ctx, value, recurseTimes) { // Provide a hook for user-specified inspect functions. // Check that value is an object with an inspect function on it if (ctx.customInspect && value && isFunction(value.inspect) && // Filter out the util module, it's inspect function is special value.inspect !== exports.inspect && // Also filter out any prototype objects using the circular check. !(value.constructor && value.constructor.prototype === value)) { var ret = value.inspect(recurseTimes, ctx); if (!isString(ret)) { ret = formatValue(ctx, ret, recurseTimes); } return ret; } // Primitive types cannot have properties var primitive = formatPrimitive(ctx, value); if (primitive) { return primitive; } // Look up the keys of the object. var keys = Object.keys(value); var visibleKeys = arrayToHash(keys); if (ctx.showHidden) { keys = Object.getOwnPropertyNames(value); } // IE doesn't make error fields non-enumerable // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { return formatError(value); } // Some type of object without properties can be shortcutted. if (keys.length === 0) { if (isFunction(value)) { var name = value.name ? ': ' + value.name : ''; return ctx.stylize('[Function' + name + ']', 'special'); } if (isRegExp(value)) { return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); } if (isDate(value)) { return ctx.stylize(Date.prototype.toString.call(value), 'date'); } if (isError(value)) { return formatError(value); } } var base = '', array = false, braces = ['{', '}']; // Make Array say that they are Array if (isArray(value)) { array = true; braces = ['[', ']']; } // Make functions say that they are functions if (isFunction(value)) { var n = value.name ? ': ' + value.name : ''; base = ' [Function' + n + ']'; } // Make RegExps say that they are RegExps if (isRegExp(value)) { base = ' ' + RegExp.prototype.toString.call(value); } // Make dates with properties first say the date if (isDate(value)) { base = ' ' + Date.prototype.toUTCString.call(value); } // Make error with message first say the error if (isError(value)) { base = ' ' + formatError(value); } if (keys.length === 0 && (!array || value.length == 0)) { return braces[0] + base + braces[1]; } if (recurseTimes < 0) { if (isRegExp(value)) { return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); } else { return ctx.stylize('[Object]', 'special'); } } ctx.seen.push(value); var output; if (array) { output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); } else { output = keys.map(function(key) { return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); }); } ctx.seen.pop(); return reduceToSingleString(output, base, braces); } function formatPrimitive(ctx, value) { if (isUndefined(value)) return ctx.stylize('undefined', 'undefined'); if (isString(value)) { var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '') .replace(/'/g, "\\'") .replace(/\\"/g, '"') + '\''; return ctx.stylize(simple, 'string'); } if (isNumber(value)) return ctx.stylize('' + value, 'number'); if (isBoolean(value)) return ctx.stylize('' + value, 'boolean'); // For some reason typeof null is "object", so special case here. if (isNull(value)) return ctx.stylize('null', 'null'); } function formatError(value) { return '[' + Error.prototype.toString.call(value) + ']'; } function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { var output = []; for (var i = 0, l = value.length; i < l; ++i) { if (hasOwnProperty(value, String(i))) { output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true)); } else { output.push(''); } } keys.forEach(function(key) { if (!key.match(/^\d+$/)) { output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true)); } }); return output; } function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { var name, str, desc; desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] }; if (desc.get) { if (desc.set) { str = ctx.stylize('[Getter/Setter]', 'special'); } else { str = ctx.stylize('[Getter]', 'special'); } } else { if (desc.set) { str = ctx.stylize('[Setter]', 'special'); } } if (!hasOwnProperty(visibleKeys, key)) { name = '[' + key + ']'; } if (!str) { if (ctx.seen.indexOf(desc.value) < 0) { if (isNull(recurseTimes)) { str = formatValue(ctx, desc.value, null); } else { str = formatValue(ctx, desc.value, recurseTimes - 1); } if (str.indexOf('\n') > -1) { if (array) { str = str.split('\n').map(function(line) { return ' ' + line; }).join('\n').substr(2); } else { str = '\n' + str.split('\n').map(function(line) { return ' ' + line; }).join('\n'); } } } else { str = ctx.stylize('[Circular]', 'special'); } } if (isUndefined(name)) { if (array && key.match(/^\d+$/)) { return str; } name = JSON.stringify('' + key); if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { name = name.substr(1, name.length - 2); name = ctx.stylize(name, 'name'); } else { name = name.replace(/'/g, "\\'") .replace(/\\"/g, '"') .replace(/(^"|"$)/g, "'"); name = ctx.stylize(name, 'string'); } } return name + ': ' + str; } function reduceToSingleString(output, base, braces) { var numLinesEst = 0; var length = output.reduce(function(prev, cur) { numLinesEst++; if (cur.indexOf('\n') >= 0) numLinesEst++; return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; }, 0); if (length > 60) { return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1]; } return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; } // NOTE: These type checking functions intentionally don't use `instanceof` // because it is fragile and can be easily faked with `Object.create()`. function isArray(ar) { return Array.isArray(ar); } exports.isArray = isArray; function isBoolean(arg) { return typeof arg === 'boolean'; } exports.isBoolean = isBoolean; function isNull(arg) { return arg === null; } exports.isNull = isNull; function isNullOrUndefined(arg) { return arg == null; } exports.isNullOrUndefined = isNullOrUndefined; function isNumber(arg) { return typeof arg === 'number'; } exports.isNumber = isNumber; function isString(arg) { return typeof arg === 'string'; } exports.isString = isString; function isSymbol(arg) { return typeof arg === 'symbol'; } exports.isSymbol = isSymbol; function isUndefined(arg) { return arg === void 0; } exports.isUndefined = isUndefined; function isRegExp(re) { return isObject(re) && objectToString(re) === '[object RegExp]'; } exports.isRegExp = isRegExp; function isObject(arg) { return typeof arg === 'object' && arg !== null; } exports.isObject = isObject; function isDate(d) { return isObject(d) && objectToString(d) === '[object Date]'; } exports.isDate = isDate; function isError(e) { return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error); } exports.isError = isError; function isFunction(arg) { return typeof arg === 'function'; } exports.isFunction = isFunction; function isPrimitive(arg) { return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || // ES6 symbol typeof arg === 'undefined'; } exports.isPrimitive = isPrimitive; exports.isBuffer = __webpack_require__(/*! ./support/isBuffer */ "./node_modules/util/support/isBufferBrowser.js"); function objectToString(o) { return Object.prototype.toString.call(o); } function pad(n) { return n < 10 ? '0' + n.toString(10) : n.toString(10); } var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; // 26 Feb 16:19:34 function timestamp() { var d = new Date(); var time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(':'); return [d.getDate(), months[d.getMonth()], time].join(' '); } // log is just a thin wrapper to console.log that prepends a timestamp exports.log = function() { console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments)); }; /** * Inherit the prototype methods from one constructor into another. * * The Function.prototype.inherits from lang.js rewritten as a standalone * function (not on Function.prototype). NOTE: If this file is to be loaded * during bootstrapping this function needs to be rewritten using some native * functions as prototype setup using normal JavaScript does not work as * expected during bootstrapping (see mirror.js in r114903). * * @param {function} ctor Constructor function which needs to inherit the * prototype. * @param {function} superCtor Constructor function to inherit prototype from. */ exports.inherits = __webpack_require__(/*! inherits */ "./node_modules/util/node_modules/inherits/inherits_browser.js"); exports._extend = function(origin, add) { // Don't do anything if add isn't an object if (!add || !isObject(add)) return origin; var keys = Object.keys(add); var i = keys.length; while (i--) { origin[keys[i]] = add[keys[i]]; } return origin; }; function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } var kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined; exports.promisify = function promisify(original) { if (typeof original !== 'function') throw new TypeError('The "original" argument must be of type Function'); if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) { var fn = original[kCustomPromisifiedSymbol]; if (typeof fn !== 'function') { throw new TypeError('The "util.promisify.custom" argument must be of type Function'); } Object.defineProperty(fn, kCustomPromisifiedSymbol, { value: fn, enumerable: false, writable: false, configurable: true }); return fn; } function fn() { var promiseResolve, promiseReject; var promise = new Promise(function (resolve, reject) { promiseResolve = resolve; promiseReject = reject; }); var args = []; for (var i = 0; i < arguments.length; i++) { args.push(arguments[i]); } args.push(function (err, value) { if (err) { promiseReject(err); } else { promiseResolve(value); } }); try { original.apply(this, args); } catch (err) { promiseReject(err); } return promise; } Object.setPrototypeOf(fn, Object.getPrototypeOf(original)); if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, { value: fn, enumerable: false, writable: false, configurable: true }); return Object.defineProperties( fn, getOwnPropertyDescriptors(original) ); } exports.promisify.custom = kCustomPromisifiedSymbol function callbackifyOnRejected(reason, cb) { // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M). // Because `null` is a special error value in callbacks which means "no error // occurred", we error-wrap so the callback consumer can distinguish between // "the promise rejected with null" or "the promise fulfilled with undefined". if (!reason) { var newReason = new Error('Promise was rejected with a falsy value'); newReason.reason = reason; reason = newReason; } return cb(reason); } function callbackify(original) { if (typeof original !== 'function') { throw new TypeError('The "original" argument must be of type Function'); } // We DO NOT return the promise as it gives the user a false sense that // the promise is actually somehow related to the callback's execution // and that the callback throwing will reject the promise. function callbackified() { var args = []; for (var i = 0; i < arguments.length; i++) { args.push(arguments[i]); } var maybeCb = args.pop(); if (typeof maybeCb !== 'function') { throw new TypeError('The last argument must be of type Function'); } var self = this; var cb = function() { return maybeCb.apply(self, arguments); }; // In true node style we process the callback on `nextTick` with all the // implications (stack, `uncaughtException`, `async_hooks`) original.apply(this, args) .then(function(ret) { process.nextTick(cb, null, ret) }, function(rej) { process.nextTick(callbackifyOnRejected, rej, cb) }); } Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original)); Object.defineProperties(callbackified, getOwnPropertyDescriptors(original)); return callbackified; } exports.callbackify = callbackify; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ "./node_modules/node-libs-browser/mock/process.js"))) /***/ }), /***/ "./node_modules/vue-cropper/dist/index.js": /*!************************************************!*\ !*** ./node_modules/vue-cropper/dist/index.js ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { !function(t,e){ true?module.exports=e():undefined}(self,(()=>(()=>{"use strict";var t={814:(t,e,n)=>{n.d(e,{Z:()=>u});var i=n(537),r=n.n(i),o=n(645),s=n.n(o),a=n(667),h=n.n(a),c=new URL(n(738),n.b),p=s()(r()),l=h()(c);p.push([t.id,`\n.vue-cropper[data-v-998fa048] {\n position: relative;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n direction: ltr;\n touch-action: none;\n text-align: left;\n background-image: url(${l});\n}\n.cropper-box[data-v-998fa048],\n.cropper-box-canvas[data-v-998fa048],\n.cropper-drag-box[data-v-998fa048],\n.cropper-crop-box[data-v-998fa048],\n.cropper-face[data-v-998fa048] {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n user-select: none;\n}\n.cropper-box-canvas img[data-v-998fa048] {\n position: relative;\n text-align: left;\n user-select: none;\n transform: none;\n max-width: none;\n max-height: none;\n}\n.cropper-box[data-v-998fa048] {\n overflow: hidden;\n}\n.cropper-move[data-v-998fa048] {\n cursor: move;\n}\n.cropper-crop[data-v-998fa048] {\n cursor: crosshair;\n}\n.cropper-modal[data-v-998fa048] {\n background: rgba(0, 0, 0, 0.5);\n}\n.cropper-crop-box[data-v-998fa048] {\n /*border: 2px solid #39f;*/\n}\n.cropper-view-box[data-v-998fa048] {\n display: block;\n overflow: hidden;\n width: 100%;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n user-select: none;\n}\n.cropper-view-box img[data-v-998fa048] {\n user-select: none;\n text-align: left;\n max-width: none;\n max-height: none;\n}\n.cropper-face[data-v-998fa048] {\n top: 0;\n left: 0;\n background-color: #fff;\n opacity: 0.1;\n}\n.crop-info[data-v-998fa048] {\n position: absolute;\n left: 0px;\n min-width: 65px;\n text-align: center;\n color: white;\n line-height: 20px;\n background-color: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n}\n.crop-line[data-v-998fa048] {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n opacity: 0.1;\n}\n.line-w[data-v-998fa048] {\n top: -3px;\n left: 0;\n height: 5px;\n cursor: n-resize;\n}\n.line-a[data-v-998fa048] {\n top: 0;\n left: -3px;\n width: 5px;\n cursor: w-resize;\n}\n.line-s[data-v-998fa048] {\n bottom: -3px;\n left: 0;\n height: 5px;\n cursor: s-resize;\n}\n.line-d[data-v-998fa048] {\n top: 0;\n right: -3px;\n width: 5px;\n cursor: e-resize;\n}\n.crop-point[data-v-998fa048] {\n position: absolute;\n width: 8px;\n height: 8px;\n opacity: 0.75;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-998fa048] {\n top: -4px;\n left: -4px;\n cursor: nw-resize;\n}\n.point2[data-v-998fa048] {\n top: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: n-resize;\n}\n.point3[data-v-998fa048] {\n top: -4px;\n right: -4px;\n cursor: ne-resize;\n}\n.point4[data-v-998fa048] {\n top: 50%;\n left: -4px;\n margin-top: -3px;\n cursor: w-resize;\n}\n.point5[data-v-998fa048] {\n top: 50%;\n right: -4px;\n margin-top: -3px;\n cursor: e-resize;\n}\n.point6[data-v-998fa048] {\n bottom: -5px;\n left: -4px;\n cursor: sw-resize;\n}\n.point7[data-v-998fa048] {\n bottom: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: s-resize;\n}\n.point8[data-v-998fa048] {\n bottom: -5px;\n right: -4px;\n cursor: se-resize;\n}\n@media screen and (max-width: 500px) {\n.crop-point[data-v-998fa048] {\n position: absolute;\n width: 20px;\n height: 20px;\n opacity: 0.45;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-998fa048] {\n top: -10px;\n left: -10px;\n}\n.point2[data-v-998fa048],\n .point4[data-v-998fa048],\n .point5[data-v-998fa048],\n .point7[data-v-998fa048] {\n display: none;\n}\n.point3[data-v-998fa048] {\n top: -10px;\n right: -10px;\n}\n.point4[data-v-998fa048] {\n top: 0;\n left: 0;\n}\n.point6[data-v-998fa048] {\n bottom: -10px;\n left: -10px;\n}\n.point8[data-v-998fa048] {\n bottom: -10px;\n right: -10px;\n}\n}\n`,"",{version:3,sources:["webpack://./src/vue-cropper.vue"],names:[],mappings:";AAs7DA;EACA,kBAAA;EACA,WAAA;EACA,YAAA;EACA,sBAAA;EACA,iBAAA;EACA,yBAAA;EACA,sBAAA;EACA,qBAAA;EACA,cAAA;EACA,kBAAA;EACA,gBAAA;EACA,yDAAA;AACA;AAEA;;;;;EAKA,kBAAA;EACA,MAAA;EACA,QAAA;EACA,SAAA;EACA,OAAA;EACA,iBAAA;AACA;AAEA;EACA,kBAAA;EACA,gBAAA;EACA,iBAAA;EACA,eAAA;EACA,eAAA;EACA,gBAAA;AACA;AAEA;EACA,gBAAA;AACA;AAEA;EACA,YAAA;AACA;AAEA;EACA,iBAAA;AACA;AAEA;EACA,8BAAA;AACA;AAEA;EACA,0BAAA;AACA;AAEA;EACA,cAAA;EACA,gBAAA;EACA,WAAA;EACA,YAAA;EACA,uBAAA;EACA,uCAAA;EACA,iBAAA;AACA;AAEA;EACA,iBAAA;EACA,gBAAA;EACA,eAAA;EACA,gBAAA;AACA;AAEA;EACA,MAAA;EACA,OAAA;EACA,sBAAA;EACA,YAAA;AACA;AAEA;EACA,kBAAA;EACA,SAAA;EACA,eAAA;EACA,kBAAA;EACA,YAAA;EACA,iBAAA;EACA,oCAAA;EACA,eAAA;AACA;AAEA;EACA,kBAAA;EACA,cAAA;EACA,WAAA;EACA,YAAA;EACA,YAAA;AACA;AAEA;EACA,SAAA;EACA,OAAA;EACA,WAAA;EACA,gBAAA;AACA;AAEA;EACA,MAAA;EACA,UAAA;EACA,UAAA;EACA,gBAAA;AACA;AAEA;EACA,YAAA;EACA,OAAA;EACA,WAAA;EACA,gBAAA;AACA;AAEA;EACA,MAAA;EACA,WAAA;EACA,UAAA;EACA,gBAAA;AACA;AAEA;EACA,kBAAA;EACA,UAAA;EACA,WAAA;EACA,aAAA;EACA,sBAAA;EACA,mBAAA;AACA;AAEA;EACA,SAAA;EACA,UAAA;EACA,iBAAA;AACA;AAEA;EACA,SAAA;EACA,SAAA;EACA,iBAAA;EACA,gBAAA;AACA;AAEA;EACA,SAAA;EACA,WAAA;EACA,iBAAA;AACA;AAEA;EACA,QAAA;EACA,UAAA;EACA,gBAAA;EACA,gBAAA;AACA;AAEA;EACA,QAAA;EACA,WAAA;EACA,gBAAA;EACA,gBAAA;AACA;AAEA;EACA,YAAA;EACA,UAAA;EACA,iBAAA;AACA;AAEA;EACA,YAAA;EACA,SAAA;EACA,iBAAA;EACA,gBAAA;AACA;AAEA;EACA,YAAA;EACA,WAAA;EACA,iBAAA;AACA;AAEA;AACA;IACA,kBAAA;IACA,WAAA;IACA,YAAA;IACA,aAAA;IACA,sBAAA;IACA,mBAAA;AACA;AAEA;IACA,UAAA;IACA,WAAA;AACA;AAEA;;;;IAIA,aAAA;AACA;AAEA;IACA,UAAA;IACA,YAAA;AACA;AAEA;IACA,MAAA;IACA,OAAA;AACA;AAEA;IACA,aAAA;IACA,WAAA;AACA;AAEA;IACA,aAAA;IACA,YAAA;AACA;AACA",sourcesContent:['\n\n